X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=m4%2Fgcc.2.95.m4;h=f8fa0399745d46c655ffb74e8e0430ec24441115;hp=54b3809fae67443eefc1d649154c24024e53646e;hb=HEAD;hpb=e8aea812fa749bafe738f83c8ab76a33a00667a7 diff --git a/m4/gcc.2.95.m4 b/m4/gcc.2.95.m4 index 54b3809..f8fa039 100644 --- a/m4/gcc.2.95.m4 +++ b/m4/gcc.2.95.m4 @@ -1,8 +1,8 @@ -AC_DEFUN(RFX_CHECK_OLDGCC, +AC_DEFUN([RFX_CHECK_OLDGCC], [ AC_MSG_CHECKING([whether gcc supports lazy variable declaration]) -cat > conftest.cpp << EOF +cat > conftest.c << EOF #include #include @@ -11,19 +11,19 @@ int main (int argc, char*argv[]) int a,b; b=3; int c; - c=4 + c=4; return 0; } EOF -testprog_link='$CC $CPPFLAGS $CFLAGS conftest.cpp -o conftest${ac_exeext}' -if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then +testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}' +if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then AC_MSG_RESULT(yes) GCC_IS_OK=true export GCC_IS_OK else echo "configure: failed program was:" >&5 - cat conftest.cpp >&5 + cat conftest.c >&5 AC_MSG_RESULT(no) fi rm -f conftest*