diff options
author | Jesse Thilo <jthilo@gnu.org> | 2000-04-13 18:03:25 +0000 |
---|---|---|
committer | Jesse Thilo <jthilo@gnu.org> | 2000-04-13 18:03:25 +0000 |
commit | 630f52125883755101f5958d3529b1df505ae5c7 (patch) | |
tree | 88d49de933cc49d705bdbb2019445402ebfd3f24 /m4 | |
parent | e1edb685d97f3b0a0dd70a7e7be73908c00176da (diff) | |
download | bison-630f52125883755101f5958d3529b1df505ae5c7.tar.gz |
# added --enable-gcc-warnings (not for user consumption).
Diffstat (limited to 'm4')
-rw-r--r-- | m4/warning.m4 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/m4/warning.m4 b/m4/warning.m4 new file mode 100644 index 00000000..d169d5a7 --- /dev/null +++ b/m4/warning.m4 @@ -0,0 +1,11 @@ +AC_DEFUN(BISON_WARNING, +[AC_MSG_CHECKING(whether compiler accepts $1) +AC_SUBST(WARNING_CFLAGS) +ac_save_CFLAGS="$CFLAGS" +CFLAGS="$CFLAGS $1" +AC_TRY_COMPILE(, +[int x;], +WARNING_CFLAGS="$WARNING_CFLAGS $1" +AC_MSG_RESULT(yes), +AC_MSG_RESULT(no)) +CFLAGS="$ac_save_CFLAGS"]) |