From e3ba889dca33958f907dcf98c9472248a320086b Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Fri, 11 May 2001 15:33:06 +0000 Subject: [PATCH] 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 --- configure.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index b5ac44a544..c1624f994b 100644 --- a/configure.in +++ b/configure.in @@ -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 -- 2.40.0