new parameter -s textonly
[swftools.git] / m4 / gcc.2.95.m4
1 AC_DEFUN([RFX_CHECK_OLDGCC],
2 [
3 AC_MSG_CHECKING([whether gcc supports lazy variable declaration])
4
5 cat > conftest.c << EOF
6 #include <stdlib.h>
7 #include <stdio.h>
8
9 int main (int argc, char*argv[])
10 {
11     int a,b;
12     b=3;
13     int c;
14     c=4;
15     return 0;
16 }
17 EOF
18
19 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
20 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
21   AC_MSG_RESULT(yes)
22   GCC_IS_OK=true
23   export GCC_IS_OK
24 else
25   echo "configure: failed program was:" >&5
26   cat conftest.c >&5
27   AC_MSG_RESULT(no)
28 fi
29 rm -f conftest*
30 ])