You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Alan Coopersmith <al...@godzilla.eecs.berkeley.edu> on 1997/07/08 01:10:01 UTC
config/834: Configure doesn't copy Configuration settings to support/Makefile
>Number: 834
>Category: config
>Synopsis: Configure doesn't copy Configuration settings to support/Makefile
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache (Apache HTTP Project)
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Mon Jul 7 16:10:01 1997
>Originator: alanc@godzilla.eecs.berkeley.edu
>Organization:
apache
>Release: 1.2.1
>Environment:
AIX 3.2.5 RS/6000
IBM C Compiler (xlc 1.3)
>Description:
Options set in the "Makefile configuration" section of the Configuration file
are copied to the src/Makefile, but not the support/Makefile.
>How-To-Repeat:
Set CC, OPTIM, etc. in src/Configuration, run Configure, and
then look at support/Makefile
>Fix:
--- apache_1.2.1/src/Configure Wed Jul 2 22:59:43 1997
+++ apache_1.2.1-mine/src/Configure Mon Jul 7 15:49:26 1997
@@ -124,7 +124,7 @@
#
# Now add Makefile additions and Rules
#
-awk >>Makefile <$tmpfile '\
+awk >Makefile.config <$tmpfile '\
BEGIN { print "# Makefile options inherited from Configure"; \
print "###############"; \
} \
@@ -514,7 +514,7 @@
# Show the final values of the rules
-echo "###############" > Makefile.config
+echo "###############" >> Makefile.config
echo "# Platform: $OS" >> Makefile.config
echo "# Final Rules:" >> Makefile.config
echo "# Rule WANTHSREGEX=$RULE_WANTHSREGEX" >> Makefile.config
@@ -535,7 +535,7 @@
# and set a "safe" optimization level
#
-if egrep "^CC[ ]*=" Makefile > /dev/null; then
+if egrep "^CC[ ]*=" Makefile.config > /dev/null; then
CC="" # clear it just in case
else
if [ "x$CC" = "x" ]; then
@@ -553,7 +553,7 @@
#
# Ditto for optimization
#
-if egrep "^OPTIM[ ]*=" Makefile > /dev/null; then
+if egrep "^OPTIM[ ]*=" Makefile.config > /dev/null; then
OPTIM="" # ditto
else
if [ "x$OPTIM" = "x" ]; then
%0
>Audit-Trail:
>Unformatted: