Commit b5f2396c authored by Jeff Trawick's avatar Jeff Trawick
Browse files

When checking for gcc, use variable ac_cv_prog_gcc instead of GCC.

This gets AP_DEBUG set properly for --enable-maintainer-mode builds.

(As libtool configuration is removed from other places -- e.g., pcre,
expat -- the same change will be needed of those configuration
scripts use GCC.)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89084 13f79535-47bb-0310-9956-ffa450edef68
parent fd8bf58b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -203,14 +203,14 @@ AC_ARG_WITH(port,[ --with-port=PORT Port on which to listen (default is

AC_ARG_ENABLE(debug,[  --enable-debug            Turn on debugging and compile time warnings],
  [APR_ADDTO(CFLAGS,-g)
   if test "$GCC" = "yes"; then
   if test $ac_cv_prog_gcc = yes; then
     APR_ADDTO(CFLAGS,-Wall)
   fi
])dnl

AC_ARG_ENABLE(maintainer-mode,[  --enable-maintainer-mode  Turn on debugging and compile time warnings],
  [APR_ADDTO(CFLAGS,-g)
   if test "$GCC" = "yes"; then
   if test $ac_cv_prog_gcc = yes; then
     APR_ADDTO(CFLAGS,[-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -DAP_DEBUG])
   fi
])dnl