comparison configure1.in @ 6957:22e3af0deae4

(src/Makefile, lib-src/Makefile): Delete ^L. Fix definition of $undefs.
author Karl Heuer <kwzh@gnu.org>
date Tue, 19 Apr 1994 00:43:06 +0000
parents b44a0c16d7ad
children b416d80f578e
comparison
equal deleted inserted replaced
6956:d62ea6bf83dc 6957:22e3af0deae4
1575 # or the ${configuration} value might, just might, happen to be an 1575 # or the ${configuration} value might, just might, happen to be an
1576 # identifier like `sun4' or `i386' or something, and be predefined by 1576 # identifier like `sun4' or `i386' or something, and be predefined by
1577 # the C preprocessor to some helpful value like 1, or maybe the empty 1577 # the C preprocessor to some helpful value like 1, or maybe the empty
1578 # string. Needless to say consequent macro substitutions are less 1578 # string. Needless to say consequent macro substitutions are less
1579 # than conducive to the makefile finding the correct directory. 1579 # than conducive to the makefile finding the correct directory.
1580 undefs="`echo $top_srcdir $configuration | 1580 undefs="`echo $top_srcdir $configuration |
1581 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/ */ -U/g' \ 1581 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
1582 -e 's/ -U$//' -e 's/^[^ ]/-U/' \ 1582 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
1583 -e 's/-U[0-9][^ ]*//g' \
1584 `" 1583 `"
1585 changequote([,])dnl 1584 changequote([,])dnl
1586 1585
1587 echo creating lib-src/Makefile 1586 echo creating lib-src/Makefile
1588 ( cd lib-src 1587 ( cd lib-src
1589 rm -f junk.c 1588 rm -f junk.c
1590 sed -e 's@^# \(Generated.*\)$@/* \1 */@' \ 1589 sed -e 's@^# \(Generated.*\)$@/* \1 */@' \
1591 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \ 1590 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \
1592 < Makefile.in > junk.c 1591 < Makefile.in > junk.c
1593 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | 1592 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c |
1594 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > Makefile.new 1593 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > Makefile.new
1595 rm -f junk.c 1594 rm -f junk.c
1596 chmod 444 Makefile.new; 1595 chmod 444 Makefile.new;
1597 mv -f Makefile.new Makefile; 1596 mv -f Makefile.new Makefile;
1598 ) 1597 )
1599 1598
1602 rm -f junk.c 1601 rm -f junk.c
1603 sed -e 's@^# \(Generated.*\)$@/* \1 */@' \ 1602 sed -e 's@^# \(Generated.*\)$@/* \1 */@' \
1604 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \ 1603 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \
1605 < Makefile.in > junk.c 1604 < Makefile.in > junk.c
1606 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | 1605 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c |
1607 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > Makefile.new 1606 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > Makefile.new
1608 rm -f junk.c 1607 rm -f junk.c
1609 chmod 444 Makefile.new; 1608 chmod 444 Makefile.new;
1610 mv -f Makefile.new Makefile; 1609 mv -f Makefile.new Makefile;
1611 )]) 1610 )])