aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-04-13 05:37:24 +0000
committerRichard M. Stallman1994-04-13 05:37:24 +0000
commit6e4b48e2a8cbdc1d69408d5ce69bdf64dbbe9c06 (patch)
tree0c5086e858a226fc3db8f9ac6dadc46678d7c8f6
parent29491e325168279a8372fd1428deefcebb7af1ba (diff)
downloademacs-6e4b48e2a8cbdc1d69408d5ce69bdf64dbbe9c06.tar.gz
emacs-6e4b48e2a8cbdc1d69408d5ce69bdf64dbbe9c06.zip
(window_system): If no X, set USE_X_TOOLKIT=no.
(printing the choices): State choice of toolkit. (libsrc_libs): Recalculate after writing config.h; then update lib-src/Makefile. Conditionals testing for null $CC were backwards.
-rwxr-xr-xconfigure1.in35
1 files changed, 31 insertions, 4 deletions
diff --git a/configure1.in b/configure1.in
index f2eeff2e3d2..9040f09eec7 100755
--- a/configure1.in
+++ b/configure1.in
@@ -1317,9 +1317,9 @@ configure___ system_malloc=no
1317#endif 1317#endif
1318 1318
1319#ifdef __GNUC__ 1319#ifdef __GNUC__
1320configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH 1320configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH $(CFLAGS)
1321#else 1321#else
1322configure___ CFLAGS=C_DEBUG_SWITCH 1322configure___ CFLAGS=C_DEBUG_SWITCH $(CFLAGS)
1323#endif 1323#endif
1324' > ${tempcname} 1324' > ${tempcname}
1325# The value of CPP is a quoted variable reference, so we need to do this 1325# The value of CPP is a quoted variable reference, so we need to do this
@@ -1409,7 +1409,6 @@ if [ -f /usr/lpp/X11/bin/smt.exp ]; then
1409 [ 1409 [
1410fi 1410fi
1411 1411
1412
1413#### Specify what sort of things we'll be editing into Makefile and config.h. 1412#### Specify what sort of things we'll be editing into Makefile and config.h.
1414### Use configuration here uncanonicalized to avoid exceeding size limits. 1413### Use configuration here uncanonicalized to avoid exceeding size limits.
1415] 1414]
@@ -1433,7 +1432,6 @@ AC_SUBST(archlibdir)
1433AC_SUBST(docdir) 1432AC_SUBST(docdir)
1434AC_SUBST(c_switch_system) 1433AC_SUBST(c_switch_system)
1435AC_SUBST(c_switch_machine) 1434AC_SUBST(c_switch_machine)
1436AC_SUBST(libsrc_libs)
1437AC_SUBST(LD_SWITCH_X_SITE) 1435AC_SUBST(LD_SWITCH_X_SITE)
1438AC_SUBST(LD_SWITCH_X_SITE_AUX) 1436AC_SUBST(LD_SWITCH_X_SITE_AUX)
1439AC_SUBST(C_SWITCH_X_SITE) 1437AC_SUBST(C_SWITCH_X_SITE)
@@ -1537,6 +1535,7 @@ Configured for \`${canonical}'.
1537 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} 1535 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
1538 Should Emacs use the relocating allocator for buffers? ${REL_ALLOC} 1536 Should Emacs use the relocating allocator for buffers? ${REL_ALLOC}
1539 What window system should Emacs use? ${window_system}${x_includes+ 1537 What window system should Emacs use? ${window_system}${x_includes+
1538 What toolkit should Emacs use? ${USE_X_TOOLKIT}
1540 Where do we find X Windows header files? }${x_includes}${x_libraries+ 1539 Where do we find X Windows header files? }${x_includes}${x_libraries+
1541 Where do we find X Windows libraries? }${x_libraries} 1540 Where do we find X Windows libraries? }${x_libraries}
1542 1541
@@ -1549,6 +1548,7 @@ test -n "${exec_prefix}" &&
1549 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` 1548 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
1550] 1549]
1551AC_OUTPUT(Makefile lib-src/Makefile oldXMenu/Makefile lwlib/Makefile src/Makefile.in, [ 1550AC_OUTPUT(Makefile lib-src/Makefile oldXMenu/Makefile lwlib/Makefile src/Makefile.in, [
1551
1552# Build src/Makefile from ${srcdir}/src/Makefile.in. This must be done 1552# 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. 1553# after src/config.h is built, since we rely on that file.
1554 1554
@@ -1578,3 +1578,30 @@ echo creating src/Makefile
1578 chmod 444 Makefile.new; 1578 chmod 444 Makefile.new;
1579 mv -f Makefile.new Makefile; 1579 mv -f Makefile.new Makefile;
1580)]) 1580)])
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[
1588echo '
1589#include "'${srcdir}'/src/'${opsysfile}'"
1590#include "'${srcdir}'/src/'${machfile}'"
1591#ifndef LIBS_MACHINE
1592#define LIBS_MACHINE
1593#endif
1594#ifndef LIBS_SYSTEM
1595#define LIBS_SYSTEM
1596#endif
1597configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
1598' > ${tempcname}
1599${CPP} -Isrc ${tempcname} \
1600 | grep 'configure___' \
1601 | sed -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/' > foofoo1
1602eval `cat foofoo1`
1603rm ${tempcname}
1604
1605cat lib-src/Makefile | sed -e "s/@libsrc_libs@/$libsrc_libs/" > lib-src/Makefoo
1606mv lib-src/Makefoo lib-src/Makefile
1607] \ No newline at end of file