X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=configure.in;h=96fb21c469fa8c1ec10cbed745d8738359fae8f9;hb=935d65c3d5a7c332d7dcba970b9f432a622f316c;hp=88eef9ab58fe88c1499313d579d7f5869792494b;hpb=eb3398894accce09ddc23c89c320113207f0dec5;p=freeglut 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 \