]> granicus.if.org Git - apache/commitdiff
Make sure that --enable-maintainer-mode increase warnings/errors level.
authorJean-Frederic Clere <jfclere@apache.org>
Tue, 29 Sep 2009 07:34:33 +0000 (07:34 +0000)
committerJean-Frederic Clere <jfclere@apache.org>
Tue, 29 Sep 2009 07:34:33 +0000 (07:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@819848 13f79535-47bb-0310-9956-ffa450edef68

configure.in

index c15b51a6b9e78248aea621e2bde09c4b678eeb64..b9b5eeeaae63b57eb4151eda444e6a5491e24d0c 100644 (file)
@@ -525,6 +525,11 @@ AC_ARG_ENABLE(exception-hook,APACHE_HELP_STRING(--enable-exception-hook,Enable f
 AC_ARG_ENABLE(maintainer-mode,APACHE_HELP_STRING(--enable-maintainer-mode,Turn on debugging and compile time warnings),
 [
   APR_ADDTO(CPPFLAGS, -DAP_DEBUG)
+  if test "$GCC" = "yes"; then
+    APR_ADDTO(CFLAGS,[-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations])
+  elif test "$AIX_XLC" = "yes"; then
+    APR_ADDTO(CFLAGS,-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro)
+  fi
 ])dnl
 
 dnl Conditionally enable PIE support for GNU toolchains.