# added --enable-gcc-warnings (not for user consumption).

This commit is contained in:
Jesse Thilo
2000-04-13 18:03:25 +00:00
parent e1edb685d9
commit 630f521258
3 changed files with 35 additions and 1 deletions

11
m4/warning.m4 Normal file
View File

@@ -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"])