# HG changeset patch # User Richard M. Stallman # Date 766471692 0 # Node ID b8a9395c1b3fc6422c9e90b7391306431a7338a7 # Parent ffd959526822cae92d05b7c4bdb349b47a5e60db (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. diff -r ffd959526822 -r b8a9395c1b3f configure1.in --- a/configure1.in Sat Apr 16 04:46:43 1994 +0000 +++ b/configure1.in Sat Apr 16 04:48:12 1994 +0000 @@ -769,9 +769,10 @@ machine=symmetry opsys=bsd4-3 ;; - ## Unspecified sysv on an ncr machine defaults to svr4. + ## Unspecified sysv on an ncr machine defaults to svr4.2. + ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) i[34]86-ncr-sysv* ) - machine=intel386 opsys=usg5-4 + machine=intel386 opsys=usg5-4-2 ;; ## Intel 860 @@ -1547,7 +1548,7 @@ test -n "${exec_prefix}" && exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` ] -AC_OUTPUT(Makefile lib-src/Makefile oldXMenu/Makefile lwlib/Makefile src/Makefile.in, [ +AC_OUTPUT(Makefile lib-src/Makefile.in oldXMenu/Makefile lwlib/Makefile src/Makefile.in, [ # Build src/Makefile from ${srcdir}/src/Makefile.in. This must be done # after src/config.h is built, since we rely on that file. @@ -1566,6 +1567,19 @@ `" changequote([,])dnl +echo creating lib-src/Makefile +( cd lib-src + rm -f junk.c + sed -e 's@^# \(Generated.*\)$@/* \1 */@' \ + -e 's@/\*\*/#\(.*\)$@/* \1 */@' \ + < Makefile.in > junk.c + $CPP $undefs -I. -I$top_srcdir/lib-src $CPPFLAGS junk.c | + sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > Makefile.new + rm -f junk.c + chmod 444 Makefile.new; + mv -f Makefile.new Makefile; +) + echo creating src/Makefile ( cd src rm -f junk.c @@ -1578,28 +1592,3 @@ chmod 444 Makefile.new; mv -f Makefile.new Makefile; )]) - -# Now recalculate libsrc_libs based on the new decisions made above, -# and substitute it into lib-src/Makefile. -# This is necessary in case the m/ or s/ file contains conditionals -# that test macros defined by config.h. - -[ -echo ' -#include "config.h" -#ifndef LIBS_MACHINE -#define LIBS_MACHINE -#endif -#ifndef LIBS_SYSTEM -#define LIBS_SYSTEM -#endif -configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM -' > ${tempcname} -eval `${CPP} -Isrc -I${srcdir}/src ${tempcname} \ - | grep 'configure___' \ - | sed -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/'` -rm ${tempcname} - -cat lib-src/Makefile | sed -e "s/@libsrc_libs@/$libsrc_libs/" > lib-src/Makefoo -mv lib-src/Makefoo lib-src/Makefile -]