aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-05-05 04:12:44 +0000
committerRichard M. Stallman1994-05-05 04:12:44 +0000
commit23aaa3427fed4dcf3a4d7a77ca39533185b9d7a1 (patch)
tree165aa9ca0f097a81d5d80837f14fe9606e47e2ae
parenteb4252f765c8213ddb6cf29b57395222b0617272 (diff)
downloademacs-23aaa3427fed4dcf3a4d7a77ca39533185b9d7a1.tar.gz
emacs-23aaa3427fed4dcf3a4d7a77ca39533185b9d7a1.zip
(making src/Makefile and lib-src/Makefile):
Split off the autoconf substitutions and don't pass them thru cpp. (undefs): Use $canonical as well as $configuration.
-rwxr-xr-xconfigure1.in36
1 files changed, 21 insertions, 15 deletions
diff --git a/configure1.in b/configure1.in
index 181ddab5fe5..e5d99117e1c 100755
--- a/configure1.in
+++ b/configure1.in
@@ -1612,7 +1612,7 @@ changequote(,)dnl The horror, the horror.
1612# the C preprocessor to some helpful value like 1, or maybe the empty 1612# the C preprocessor to some helpful value like 1, or maybe the empty
1613# string. Needless to say consequent macro substitutions are less 1613# string. Needless to say consequent macro substitutions are less
1614# than conducive to the makefile finding the correct directory. 1614# than conducive to the makefile finding the correct directory.
1615undefs="`echo $top_srcdir $configuration | 1615undefs="`echo $top_srcdir $configuration $canonical |
1616sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ 1616sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
1617 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ 1617 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
1618`" 1618`"
@@ -1620,26 +1620,32 @@ changequote([,])dnl
1620 1620
1621echo creating lib-src/Makefile 1621echo creating lib-src/Makefile
1622( cd lib-src 1622( cd lib-src
1623 rm -f junk.c 1623 rm -f junk.c junk1.c junk2.c
1624 sed -e 's@^# \(Generated.*\)$@/* \1 */@' \ 1624 sed -e '/start of cpp stuff/q' \
1625 < Makefile.in > junk1.c
1626 sed -e '1,/start of cpp stuff/d'\
1625 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \ 1627 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \
1626 < Makefile.in > junk.c 1628 < Makefile.in > junk.c
1627 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | 1629 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \
1628 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > Makefile.new 1630 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c
1629 rm -f junk.c 1631 cat junk1.c junk2.c > Makefile.new
1630 chmod 444 Makefile.new; 1632 rm -f junk.c junk1.c junk2.c
1631 mv -f Makefile.new Makefile; 1633 chmod 444 Makefile.new
1634 mv -f Makefile.new Makefile
1632) 1635)
1633 1636
1634echo creating src/Makefile 1637echo creating src/Makefile
1635( cd src 1638( cd src
1636 rm -f junk.c 1639 rm -f junk.c junk1.c junk2.c
1637 sed -e 's@^# \(Generated.*\)$@/* \1 */@' \ 1640 sed -e '/start of cpp stuff/q' \
1641 < Makefile.in > junk1.c
1642 sed -e '1,/start of cpp stuff/d'\
1638 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \ 1643 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \
1639 < Makefile.in > junk.c 1644 < Makefile.in > junk.c
1640 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | 1645 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \
1641 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > Makefile.new 1646 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c
1642 rm -f junk.c 1647 cat junk1.c junk2.c > Makefile.new
1643 chmod 444 Makefile.new; 1648 rm -f junk.c junk1.c junk2.c
1644 mv -f Makefile.new Makefile; 1649 chmod 444 Makefile.new
1650 mv -f Makefile.new Makefile
1645)]) 1651)])