Added an option to enable gcc compiler warnings.
authorChristopher John Purnell <cjp@lost.org.uk>
Wed, 3 Dec 2003 19:03:13 +0000 (19:03 +0000)
committerChristopher John Purnell <cjp@lost.org.uk>
Wed, 3 Dec 2003 19:03:13 +0000 (19:03 +0000)
I've explicitly excluded the one about adding parentheses.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@380 7f0cb862-5218-0410-a997-914c9d46530a

configure.in

index 88eef9a..96fb21c 100644 (file)
@@ -50,6 +50,13 @@ fi
 AC_SUBST(LIBRARY)
 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(\
        Makefile \
        doc/Makefile \