# HG changeset patch # User Jim Blandy # Date 732869677 0 # Node ID 47e301d9868bbbc3cddfcb585956a9b05c977363 # Parent bc2f7dc78412b6d711ab354da136393fd73edf77 * 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. diff -r bc2f7dc78412 -r 47e301d9868b configure1.in --- a/configure1.in Tue Mar 23 06:26:18 1993 +0000 +++ b/configure1.in Tue Mar 23 06:54:37 1993 +0000 @@ -96,7 +96,7 @@ config_h_opts=" \ HAVE_X_WINDOWS HAVE_X11 HAVE_X_MENU \ SIGTYPE GNU_MALLOC REL_ALLOC LISP_FLOAT_TYPE HAVE_CONST\ -LD_SWITCH_X_SITE C_SWITCH_X_SITE" +LD_SWITCH_X_SITE C_SWITCH_X_SITE HAVE_XFREE386" ### Record all the arguments, so we can save them in config.status. arguments="$@" @@ -792,7 +792,9 @@ "" ) echo " No window system specifed. Looking for X Windows." window_system=none - if [ -r /usr/lib/libX11.a -o -d /usr/include/X11 ]; then + if [ -r /usr/lib/libX11.a \ + -o -d /usr/include/X11 \ + -o -d /usr/X386/include]; then window_system=x11 fi ;; @@ -828,6 +830,17 @@ ;; esac +### Check for XFree386. It needs special hacks. +case ${window_system} in + x11 ) + if [ -d /usr/X386/include ]; then + HAVE_XFREE386=yes + if [ "${C_SWITCH_X_SITE}" = "" ]; then + C_SWITCH_X_SITE="-I/usr/X386/include + fi + fi + ;; +esac #### Choose a compiler. echo "Checking compilers." @@ -936,8 +949,8 @@ #endif ' > ${tempcname} eval `${default_cc} -E ${tempcname} \ - | grep '@configure@' \ - | sed -e 's/^@configure@//'` + | grep '@configure@' \ + | sed -e 's/^@configure@ \([^=]*=\)\(.*\)$/\1"\2"/'` rm ${tempcname} # Do the opsystem or machine files prohibit the use of the GNU malloc?