Fixed a couple of config.cache problems.

This commit is contained in:
Ove Kaaven 2000-03-04 19:13:52 +00:00 committed by Alexandre Julliard
parent d37c1bb570
commit ce2b7241a0

View file

@ -7,6 +7,10 @@
# require Xpm # require Xpm
# Feb 25 2000 - Ove Kåven # Feb 25 2000 - Ove Kåven
# auto-add /usr/local/lib to /etc/ld.so.conf # auto-add /usr/local/lib to /etc/ld.so.conf
# Mar 2 2000 - Ove Kåven
# source rather than grep config.cache
# use sourced config.cache to start ldconfig
# reconfigure if config.cache doesn't exist
# defaults # defaults
@ -28,9 +32,11 @@ fi
# run the configure script, if necessary # run the configure script, if necessary
if [ -f Makefile ] && [ Makefile -nt configure ] if [ -f config.cache ] && [ -f Makefile ] && [ Makefile -nt configure ]
then { then {
echo "I see that WINE has already been configured, so I'll skip that." echo "I see that WINE has already been configured, so I'll skip that."
# load configure results
. ./config.cache
} }
else { else {
# we'll run with defaults (we need libwine.a later) # we'll run with defaults (we need libwine.a later)
@ -44,14 +50,17 @@ else {
exit 1 exit 1
} }
fi fi
# load configure results
. ./config.cache
# make sure X was found # make sure X was found
if ! grep -qs "have_x=yes" config.cache eval "$ac_cv_have_x"
if [ "$have_x" != "yes" ]
then { then {
echo "Install the X development headers and try again." echo "Install the X development headers and try again."
rm -f config.cache rm -f config.cache
exit 1 exit 1
} }
elif ! grep -qs "xpm_h=yes" config.cache elif [ "$ac_cv_header_X11_xpm_h" != "yes" ]
then { then {
echo "Install the Xpm development headers and try again." echo "Install the Xpm development headers and try again."
rm -f config.cache rm -f config.cache
@ -103,7 +112,7 @@ else {
echo "/usr/local/lib didn't exist in your /etc/ld.so.conf, adding it now..." echo "/usr/local/lib didn't exist in your /etc/ld.so.conf, adding it now..."
echo /usr/local/lib >>/etc/ld.so.conf echo /usr/local/lib >>/etc/ld.so.conf
echo "Re-running ldconfig..." echo "Re-running ldconfig..."
ldconfig eval "$ac_cv_path_LDCONFIG"
} }
fi fi
} }