]>
Commit | Line | Data |
---|---|---|
630f5212 JT |
1 | AC_DEFUN(BISON_WARNING, |
2 | [AC_MSG_CHECKING(whether compiler accepts $1) | |
3 | AC_SUBST(WARNING_CFLAGS) | |
4 | ac_save_CFLAGS="$CFLAGS" | |
5 | CFLAGS="$CFLAGS $1" | |
6 | AC_TRY_COMPILE(, | |
7 | [int x;], | |
8 | WARNING_CFLAGS="$WARNING_CFLAGS $1" | |
9 | AC_MSG_RESULT(yes), | |
10 | AC_MSG_RESULT(no)) | |
11 | CFLAGS="$ac_save_CFLAGS"]) |