Mercurial > emacs
comparison configure1.in @ 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 | d4e38dec127d |
children | add7f1e21bee |
comparison
equal
deleted
inserted
replaced
3195:1071243e14c7 | 3196:c3470c4abe5e |
---|---|
1011 #ifndef C_SWITCH_SYSTEM | 1011 #ifndef C_SWITCH_SYSTEM |
1012 #define C_SWITCH_SYSTEM | 1012 #define C_SWITCH_SYSTEM |
1013 #endif | 1013 #endif |
1014 @configure@ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM | 1014 @configure@ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM |
1015 @configure@ c_switch_system=C_SWITCH_SYSTEM | 1015 @configure@ c_switch_system=C_SWITCH_SYSTEM |
1016 | |
1017 #ifdef UNEXEC | |
1018 @configure@ unexec=UNEXEC | |
1019 #else | |
1020 @configure@ unexec=unexec.o | |
1021 #endif | |
1022 | |
1016 #ifdef SYSTEM_MALLOC | 1023 #ifdef SYSTEM_MALLOC |
1017 @configure@ system_malloc=yes | 1024 @configure@ system_malloc=yes |
1018 #else | 1025 #else |
1019 @configure@ system_malloc=no | 1026 @configure@ system_malloc=no |
1020 #endif | 1027 #endif |
1025 eval `${foo} ${tempcname} \ | 1032 eval `${foo} ${tempcname} \ |
1026 | grep '@configure@' \ | 1033 | grep '@configure@' \ |
1027 | sed -e 's/^@configure@ \([^=]*=\)\(.*\)$/\1"\2"/'` | 1034 | sed -e 's/^@configure@ \([^=]*=\)\(.*\)$/\1"\2"/'` |
1028 rm ${tempcname} | 1035 rm ${tempcname} |
1029 | 1036 |
1037 ### Compute the unexec source name from the object name. | |
1038 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | |
1030 | 1039 |
1031 # Do the opsystem or machine files prohibit the use of the GNU malloc? | 1040 # Do the opsystem or machine files prohibit the use of the GNU malloc? |
1032 # Assume not, until told otherwise. | 1041 # Assume not, until told otherwise. |
1033 GNU_MALLOC=yes | 1042 GNU_MALLOC=yes |
1034 if [ "${system_malloc}" = "yes" ]; then | 1043 if [ "${system_malloc}" = "yes" ]; then |
1071 | 1080 |
1072 AC_DEFINE_UNQUOTED(config_machfile, "\"${machfile}\"") | 1081 AC_DEFINE_UNQUOTED(config_machfile, "\"${machfile}\"") |
1073 AC_DEFINE_UNQUOTED(config_opsysfile, "\"${opsysfile}\"") | 1082 AC_DEFINE_UNQUOTED(config_opsysfile, "\"${opsysfile}\"") |
1074 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE}) | 1083 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE}) |
1075 AC_DEFINE_UNQUOTED(C_SWITCH_X_SITE, ${C_SWITCH_X_SITE}) | 1084 AC_DEFINE_UNQUOTED(C_SWITCH_X_SITE, ${C_SWITCH_X_SITE}) |
1085 AC_DEFINE_UNQUOTED(UNEXEC_SRC, ${UNEXEC_SRC}) | |
1076 | 1086 |
1077 [ | 1087 [ |
1078 if [ "${HAVE_X_WINDOWS}" = "yes" ] ; then | 1088 if [ "${HAVE_X_WINDOWS}" = "yes" ] ; then |
1079 ] AC_DEFINE(HAVE_X_WINDOWS) [ | 1089 ] AC_DEFINE(HAVE_X_WINDOWS) [ |
1080 fi | 1090 fi |