From: Christopher John Purnell Date: Wed, 3 Dec 2003 19:03:13 +0000 (+0000) Subject: Added an option to enable gcc compiler warnings. X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=8a92830a7e30ffcfcc4eae50b0853f8dc7b944c1;p=freeglut Added an option to enable gcc compiler warnings. 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 --- diff --git a/configure.in b/configure.in index 88eef9a..96fb21c 100644 --- a/configure.in +++ b/configure.in @@ -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 \