aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Blandy1993-03-23 06:54:37 +0000
committerJim Blandy1993-03-23 06:54:37 +0000
commit5d9aefc7280dc6c701b326fd76f71dc5a78a2c6d (patch)
treec51444437118b43b325caa7b2eea6ef12d4b1555
parent9927a7b1aa5a81120e500a2584bf85d06d978323 (diff)
downloademacs-5d9aefc7280dc6c701b326fd76f71dc5a78a2c6d.tar.gz
emacs-5d9aefc7280dc6c701b326fd76f71dc5a78a2c6d.zip
* configure: Add special code to detect XFree386, and tell
config.h about it. * configure: Properly handle extracting values of LIBS_MACHINE and LIBS_SYSTEM that contain spaces.
-rwxr-xr-xconfigure1.in21
1 files changed, 17 insertions, 4 deletions
diff --git a/configure1.in b/configure1.in
index 89b8450a620..3661ff75b21 100755
--- a/configure1.in
+++ b/configure1.in
@@ -96,7 +96,7 @@ unsuccessful after disturbing the status quo, it removes config.status."
96config_h_opts=" \ 96config_h_opts=" \
97HAVE_X_WINDOWS HAVE_X11 HAVE_X_MENU \ 97HAVE_X_WINDOWS HAVE_X11 HAVE_X_MENU \
98SIGTYPE GNU_MALLOC REL_ALLOC LISP_FLOAT_TYPE HAVE_CONST\ 98SIGTYPE GNU_MALLOC REL_ALLOC LISP_FLOAT_TYPE HAVE_CONST\
99LD_SWITCH_X_SITE C_SWITCH_X_SITE" 99LD_SWITCH_X_SITE C_SWITCH_X_SITE HAVE_XFREE386"
100 100
101### Record all the arguments, so we can save them in config.status. 101### Record all the arguments, so we can save them in config.status.
102arguments="$@" 102arguments="$@"
@@ -792,7 +792,9 @@ case "${window_system}" in
792 "" ) 792 "" )
793 echo " No window system specifed. Looking for X Windows." 793 echo " No window system specifed. Looking for X Windows."
794 window_system=none 794 window_system=none
795 if [ -r /usr/lib/libX11.a -o -d /usr/include/X11 ]; then 795 if [ -r /usr/lib/libX11.a \
796 -o -d /usr/include/X11 \
797 -o -d /usr/X386/include]; then
796 window_system=x11 798 window_system=x11
797 fi 799 fi
798 ;; 800 ;;
@@ -828,6 +830,17 @@ case ${HAVE_X11} in
828 ;; 830 ;;
829esac 831esac
830 832
833### Check for XFree386. It needs special hacks.
834case ${window_system} in
835 x11 )
836 if [ -d /usr/X386/include ]; then
837 HAVE_XFREE386=yes
838 if [ "${C_SWITCH_X_SITE}" = "" ]; then
839 C_SWITCH_X_SITE="-I/usr/X386/include
840 fi
841 fi
842 ;;
843esac
831 844
832#### Choose a compiler. 845#### Choose a compiler.
833echo "Checking compilers." 846echo "Checking compilers."
@@ -936,8 +949,8 @@ echo '
936#endif 949#endif
937' > ${tempcname} 950' > ${tempcname}
938eval `${default_cc} -E ${tempcname} \ 951eval `${default_cc} -E ${tempcname} \
939 | grep '@configure@' \ 952 | grep '@configure@' \
940 | sed -e 's/^@configure@//'` 953 | sed -e 's/^@configure@ \([^=]*=\)\(.*\)$/\1"\2"/'`
941rm ${tempcname} 954rm ${tempcname}
942 955
943# Do the opsystem or machine files prohibit the use of the GNU malloc? 956# Do the opsystem or machine files prohibit the use of the GNU malloc?