# HG changeset patch # User Jim Blandy # Date 733031480 0 # Node ID b1c74a8a020b00b50c38fbb222d6d16b4daf39f0 # Parent c12e0f0a3179191b612b5b4e04ab05c890d6b5a8 Arrange for C compilation throughout the tree to get C_SWITCH_SYSTEM from the configuration files. * configure: Extract C_SWITCH_SYSTEM from the machine and system-dependent files, and save it in the top-level Makefile. * Makefile.in (C_SWITCH_SYSTEM): New flag for configure to edit. (lib-src/Makefile): Edit C_SWITCH_SYSTEM into lib-src/Makefile. diff -r c12e0f0a3179 -r b1c74a8a020b Makefile.in --- a/Makefile.in Thu Mar 25 03:40:35 1993 +0000 +++ b/Makefile.in Thu Mar 25 03:51:20 1993 +0000 @@ -42,6 +42,7 @@ CC=cc CONFIG_CFLAGS=-g +C_SWITCH_SYSTEM= ### These help us choose version- and architecture-specific directories ### to install files in. @@ -253,6 +254,7 @@ -e 's|^\(archlibdir *=\).*$$|\1'"${archlibdir}"'|' \ -e 's|^CC *=.*$$|CC='"${CC}"'|' \ -e 's|^CONFIG_CFLAGS *=.*$$|CONFIG_CFLAGS='"${CONFIG_CFLAGS}"'|' \ + -e 's|^C_SWITCH_SYSTEM *=.*$$|C_SWITCH_SYSTEM='"${C_SWITCH_SYSTEM}"'|' \ -e 's|^LOADLIBES *=.*$$|LOADLIBES='"${libsrc_libs}"'|' \ -e '/^# DIST: /d') > lib-src/Makefile.tmp ${srcdir}/move-if-change lib-src/Makefile.tmp lib-src/Makefile diff -r c12e0f0a3179 -r b1c74a8a020b configure1.in --- a/configure1.in Thu Mar 25 03:40:35 1993 +0000 +++ b/configure1.in Thu Mar 25 03:51:20 1993 +0000 @@ -944,7 +944,11 @@ #ifndef LIBS_SYSTEM #define LIBS_SYSTEM #endif +#ifndef C_SWITCH_SYSTEM +#define C_SWITCH_SYSTEM +#endf @configure@ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM +@configure@ c_switch_system=C_SWITCH_SYSTEM #ifdef SYSTEM_MALLOC @configure@ system_malloc=yes #else @@ -1027,13 +1031,14 @@ # If you are thinking about editing it, you should seriously consider # running \`${progname}' instead, or editing # \`${srcdir}/Makefile.in' itself." - /bin/sed < ${srcdir}/Makefile.in \ - -e 's|^configname *=.*$|configname='"${configuration}"'|' \ - -e 's|^version *=.*$|version='"${version}"'|' \ - -e 's|^srcdir *=.*$|srcdir='"${srcdir}"'|' \ - -e 's|^CC *=.*$|CC='"${default_cc}"'|' \ + /bin/sed < ${srcdir}/Makefile.in \ + -e 's|^configname *=.*$|configname='"${configuration}"'|' \ + -e 's|^version *=.*$|version='"${version}"'|' \ + -e 's|^srcdir *=.*$|srcdir='"${srcdir}"'|' \ + -e 's|^CC *=.*$|CC='"${default_cc}"'|' \ -e 's|^CONFIG_CFLAGS *=.*$|CONFIG_CFLAGS='"${default_cflags}"'|' \ - -e 's|^LOADLIBES *=.*$|LOADLIBES='"${libsrc_libs}"'|' \ + -e 's|^C_SWITCH_SYSTEM *=.*$|C_SWITCH_SYSTEM='"${c_switch_system}"'|' \ + -e 's|^LOADLIBES *=.*$|LOADLIBES='"${libsrc_libs}"'|' \ -e '/^# DIST: /d') > Makefile.tmp ${srcdir}/move-if-change Makefile.tmp Makefile