changeset 3196:c3470c4abe5e

* configure.in: Extract UNEXEC from the system configuration files, compute the name of the source file corresponding to the object file, and #define it as UNEXEC_SRC in config.h.
author Jim Blandy <jimb@redhat.com>
date Fri, 28 May 1993 04:33:12 +0000
parents 1071243e14c7
children 0d180fefccc6
files configure1.in
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure1.in	Fri May 28 04:32:28 1993 +0000
+++ b/configure1.in	Fri May 28 04:33:12 1993 +0000
@@ -1013,6 +1013,13 @@
 #endif
 @configure@ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
 @configure@ c_switch_system=C_SWITCH_SYSTEM
+
+#ifdef UNEXEC
+@configure@ unexec=UNEXEC
+#else
+@configure@ unexec=unexec.o
+#endif
+
 #ifdef SYSTEM_MALLOC
 @configure@ system_malloc=yes
 #else
@@ -1027,6 +1034,8 @@
        | sed -e 's/^@configure@ \([^=]*=\)\(.*\)$/\1"\2"/'`
 rm ${tempcname}
 
+### Compute the unexec source name from the object name.
+UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
 
 # Do the opsystem or machine files prohibit the use of the GNU malloc?
 # Assume not, until told otherwise.
@@ -1073,6 +1082,7 @@
 AC_DEFINE_UNQUOTED(config_opsysfile, "\"${opsysfile}\"")
 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE})
 AC_DEFINE_UNQUOTED(C_SWITCH_X_SITE,  ${C_SWITCH_X_SITE})
+AC_DEFINE_UNQUOTED(UNEXEC_SRC,       ${UNEXEC_SRC})
 
 [
 if [ "${HAVE_X_WINDOWS}" = "yes" ] ; then