summaryrefslogtreecommitdiff
path: root/configure1.in
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1993-03-23 06:54:37 +0000
committerJim Blandy <jimb@redhat.com>1993-03-23 06:54:37 +0000
commita6ae354c3af3ef41b49e4553b253055599dfef6c (patch)
tree94be506fc612a378f1d779d7e14dfde1890112aa /configure1.in
parenteabbf6d61b03ce9b4ffd5c92ea4afaed835df7f0 (diff)
downloademacs-a6ae354c3af3ef41b49e4553b253055599dfef6c.tar.gz
* 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.
Diffstat (limited to 'configure1.in')
-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."
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 @@ case "${window_system}" in
"" )
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 @@ case ${HAVE_X11} in
;;
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 @@ echo '
#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?