]> granicus.if.org Git - apache/commitdiff
A little CFLAGS reformation. Additions to Apache's CFLAGS should be
authorManoj Kasichainula <manoj@apache.org>
Thu, 2 Mar 2000 02:01:03 +0000 (02:01 +0000)
committerManoj Kasichainula <manoj@apache.org>
Thu, 2 Mar 2000 02:01:03 +0000 (02:01 +0000)
using EXTRA_CFLAGS instead, so we don't affect packages that Apache
configures.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84690 13f79535-47bb-0310-9956-ffa450edef68

configure.in

index e8818d26caf4887c39dba54ed7660a89bfb30e2e..71fbc940a3a5e572a29eacac27aeebddbd8db878 100644 (file)
@@ -16,9 +16,6 @@ APACHE_SUBST(APACHE_VERSION)
 test "$exec_prefix" = "NONE" && exec_prefix='${prefix}'
 test "$prefix" = "NONE" && prefix='/usr/local'
 
-dnl We want this one before the checks, so the checks can modify CFLAGS
-test -z "$CFLAGS" && auto_cflags=1
-
 dnl Needed for APACHE_MODULE() to work
 cwd=`pwd`
 
@@ -113,7 +110,7 @@ fi
 
 dnl ## Checking command-line options
 test -n "$GCC" && test "$USE_MAINTAINER_MODE" = "yes" && \
-    CFLAGS="$CFLAGS -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
+    EXTRA_CFLAGS="$EXTRA_CFLAGS -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
 
 APACHE_ENABLE_LAYOUT
 APACHE_ENABLE_MODULES
@@ -147,7 +144,7 @@ if test "$apache_need_shared" = "yes"; then
   $SHELL $srcdir/ltconfig --output=shlibtool --disable-static --srcdir=$srcdir --cache-file=./config.cache $srcdir/ltmain.sh
 fi
 
-CFLAGS="$CFLAGS \`\$(abs_srcdir)/apaci\`"
+EXTRA_CFLAGS="$EXTRA_CFLAGS \`\$(abs_srcdir)/apaci\`"
 
 APACHE_FAST_OUTPUT(apaci Makefile ap/Makefile lib/Makefile main/Makefile
            modules/Makefile os/Makefile)