diff options
| author | Richard M. Stallman | 1994-04-16 04:48:12 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-04-16 04:48:12 +0000 |
| commit | 4acc682468f0878913f9d456dcd7f17fd6a22016 (patch) | |
| tree | 5f01eb41abc50e0532052fe2555082ecdcc257c5 | |
| parent | 29ed054212a30b61b1d83060593097cba5166e9a (diff) | |
| download | emacs-4acc682468f0878913f9d456dcd7f17fd6a22016.tar.gz emacs-4acc682468f0878913f9d456dcd7f17fd6a22016.zip | |
(lib-src/Makefile.in): Make this from Makefile.in.in
and run it thru cpp, as with src/Makefile.in.
(i[34]86-ncr-sysv*): Use usg5-4-2.
| -rwxr-xr-x | configure1.in | 45 |
1 files changed, 17 insertions, 28 deletions
diff --git a/configure1.in b/configure1.in index 368613e9214..25f87d87ffa 100755 --- a/configure1.in +++ b/configure1.in | |||
| @@ -769,9 +769,10 @@ case "${canonical}" in | |||
| 769 | machine=symmetry opsys=bsd4-3 | 769 | machine=symmetry opsys=bsd4-3 |
| 770 | ;; | 770 | ;; |
| 771 | 771 | ||
| 772 | ## Unspecified sysv on an ncr machine defaults to svr4. | 772 | ## Unspecified sysv on an ncr machine defaults to svr4.2. |
| 773 | ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) | ||
| 773 | i[34]86-ncr-sysv* ) | 774 | i[34]86-ncr-sysv* ) |
| 774 | machine=intel386 opsys=usg5-4 | 775 | machine=intel386 opsys=usg5-4-2 |
| 775 | ;; | 776 | ;; |
| 776 | 777 | ||
| 777 | ## Intel 860 | 778 | ## Intel 860 |
| @@ -1547,7 +1548,7 @@ test -n "${prefix}" && | |||
| 1547 | test -n "${exec_prefix}" && | 1548 | test -n "${exec_prefix}" && |
| 1548 | exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | 1549 | exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` |
| 1549 | ] | 1550 | ] |
| 1550 | AC_OUTPUT(Makefile lib-src/Makefile oldXMenu/Makefile lwlib/Makefile src/Makefile.in, [ | 1551 | AC_OUTPUT(Makefile lib-src/Makefile.in oldXMenu/Makefile lwlib/Makefile src/Makefile.in, [ |
| 1551 | 1552 | ||
| 1552 | # Build src/Makefile from ${srcdir}/src/Makefile.in. This must be done | 1553 | # Build src/Makefile from ${srcdir}/src/Makefile.in. This must be done |
| 1553 | # after src/config.h is built, since we rely on that file. | 1554 | # after src/config.h is built, since we rely on that file. |
| @@ -1566,6 +1567,19 @@ sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/ */ -U/g' \ | |||
| 1566 | `" | 1567 | `" |
| 1567 | changequote([,])dnl | 1568 | changequote([,])dnl |
| 1568 | 1569 | ||
| 1570 | echo creating lib-src/Makefile | ||
| 1571 | ( cd lib-src | ||
| 1572 | rm -f junk.c | ||
| 1573 | sed -e 's@^# \(Generated.*\)$@/* \1 */@' \ | ||
| 1574 | -e 's@/\*\*/#\(.*\)$@/* \1 */@' \ | ||
| 1575 | < Makefile.in > junk.c | ||
| 1576 | $CPP $undefs -I. -I$top_srcdir/lib-src $CPPFLAGS junk.c | | ||
| 1577 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > Makefile.new | ||
| 1578 | rm -f junk.c | ||
| 1579 | chmod 444 Makefile.new; | ||
| 1580 | mv -f Makefile.new Makefile; | ||
| 1581 | ) | ||
| 1582 | |||
| 1569 | echo creating src/Makefile | 1583 | echo creating src/Makefile |
| 1570 | ( cd src | 1584 | ( cd src |
| 1571 | rm -f junk.c | 1585 | rm -f junk.c |
| @@ -1578,28 +1592,3 @@ echo creating src/Makefile | |||
| 1578 | chmod 444 Makefile.new; | 1592 | chmod 444 Makefile.new; |
| 1579 | mv -f Makefile.new Makefile; | 1593 | mv -f Makefile.new Makefile; |
| 1580 | )]) | 1594 | )]) |
| 1581 | |||
| 1582 | # Now recalculate libsrc_libs based on the new decisions made above, | ||
| 1583 | # and substitute it into lib-src/Makefile. | ||
| 1584 | # This is necessary in case the m/ or s/ file contains conditionals | ||
| 1585 | # that test macros defined by config.h. | ||
| 1586 | |||
| 1587 | [ | ||
| 1588 | echo ' | ||
| 1589 | #include "config.h" | ||
| 1590 | #ifndef LIBS_MACHINE | ||
| 1591 | #define LIBS_MACHINE | ||
| 1592 | #endif | ||
| 1593 | #ifndef LIBS_SYSTEM | ||
| 1594 | #define LIBS_SYSTEM | ||
| 1595 | #endif | ||
| 1596 | configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM | ||
| 1597 | ' > ${tempcname} | ||
| 1598 | eval `${CPP} -Isrc -I${srcdir}/src ${tempcname} \ | ||
| 1599 | | grep 'configure___' \ | ||
| 1600 | | sed -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/'` | ||
| 1601 | rm ${tempcname} | ||
| 1602 | |||
| 1603 | cat lib-src/Makefile | sed -e "s/@libsrc_libs@/$libsrc_libs/" > lib-src/Makefoo | ||
| 1604 | mv lib-src/Makefoo lib-src/Makefile | ||
| 1605 | ] | ||