Added an option to enable gcc compiler warnings.

I've explicitly excluded the one about adding parentheses.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@380 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
cjp 2003-12-03 19:03:13 +00:00
parent 2e4d5de7c0
commit a9d59e0c78

View File

@ -50,6 +50,13 @@ fi
AC_SUBST(LIBRARY) AC_SUBST(LIBRARY)
AC_SUBST(HEADER) AC_SUBST(HEADER)
AC_ARG_ENABLE(warnings,
[ --enable-warnings Enable gcc compiler warnings],
if test "x$GCC" == xyes
then
CFLAGS="$CFLAGS -Wall -Wno-parentheses -Werror"
fi)
AC_OUTPUT(\ AC_OUTPUT(\
Makefile \ Makefile \
doc/Makefile \ doc/Makefile \