]> granicus.if.org Git - yasm/commitdiff
Only enable -ansi -pedantic -Wall in maintainer mode.
authorPeter Johnson <peter@tortall.net>
Tue, 13 Feb 2007 06:29:01 +0000 (06:29 -0000)
committerPeter Johnson <peter@tortall.net>
Tue, 13 Feb 2007 06:29:01 +0000 (06:29 -0000)
svn path=/trunk/yasm/; revision=1766

configure.ac

index e07c7b3ee502c6728ea89b94203503e24a4c8b74..b34ea2506b8f407b66e30262079d2982d03fdb6c 100644 (file)
@@ -217,8 +217,10 @@ if test "$gcov" = "yes"; then
 fi
 
 # If we're using GCC, then we can turn on -ansi -pedantic -Wall too.
-if test "$GCC" = yes; then
-  MORE_CFLAGS="-ansi -pedantic -Wall $MORE_CFLAGS"
+if test "$USE_MAINTAINER_MODE" = "yes"; then
+  if test "$GCC" = yes; then
+    MORE_CFLAGS="-ansi -pedantic -Wall $MORE_CFLAGS"
+  fi
 fi
 AC_SUBST(MORE_CFLAGS)