diff -ur gnumach-20040222/aclocal.m4 gnumach-20040222-ac-fixed/aclocal.m4 --- gnumach-20040222/aclocal.m4 1999-04-30 17:34:20.000000000 -0700 +++ gnumach-20040222-ac-fixed/aclocal.m4 2004-02-28 16:59:31.000000000 -0800 @@ -12,10 +12,9 @@ fi AC_PROG_CC_WORKS_LOCAL -AC_PROG_CC_GNU +AC_PROG_CC -if test $ac_cv_prog_gcc = yes; then - GCC=yes +if test "$GCC" == "yes"; then dnl Check whether -g works, even if CFLAGS is set, in case the package dnl plays around with CFLAGS (such as to build both debugging and dnl normal versions of a library), tasteless as that idea is. @@ -56,7 +55,7 @@ [AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS $LDFLAGS) works]) AC_LANG_SAVE AC_LANG_C -AC_TRY_COMPILER([main(){return(0);}], ac_cv_prog_cc_works, ac_cv_prog_cc_cross) +AC_TRY_COMPILE([], [main(){return(0);}], [ac_cv_prog_cc_works=yes], [ac_cv_prog_cc_works=no] ) AC_LANG_RESTORE AC_MSG_RESULT($ac_cv_prog_cc_works) if test $ac_cv_prog_cc_works = no; then