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
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