summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1993-06-16 15:09:42 +0000
committerJim Blandy <jimb@redhat.com>1993-06-16 15:09:42 +0000
commit30945baf85c3513149b51076e5502ed9f4a80e78 (patch)
tree2d5ab8e32ed1220a6a932cf4f3cd56b680174419
parenteebae3dd5ca9e7f3fd04ed7e6c503d73f1da3888 (diff)
downloademacs-30945baf85c3513149b51076e5502ed9f4a80e78.tar.gz
* configure.in (version): Check the X libraries for XrmSetDatabase
and random, and see if we have -lXbsd.
-rwxr-xr-xconfigure1.in37
1 files changed, 22 insertions, 15 deletions
diff --git a/configure1.in b/configure1.in
index cec0333b99b..89fb67dcb81 100755
--- a/configure1.in
+++ b/configure1.in
@@ -365,21 +365,11 @@ if [ `pwd` != `(cd ${srcdir} && pwd)` ] \
fi
### Make the necessary directories, if they don't exist.
-if [ ! -d ./src ]; then
- mkdir ./src
-fi
-if [ ! -d ./lib-src ]; then
- mkdir ./lib-src
-fi
-if [ ! -d ./cpp ]; then
- mkdir ./cpp
-fi
-if [ ! -d ./oldXMenu ]; then
- mkdir ./oldXMenu
-fi
-if [ ! -d ./etc ]; then
- mkdir ./etc
-fi
+for dir in ./src ./lib-src ./cpp ./oldXMenu ./etc ; do
+ if [ ! -d ${dir} ]; then
+ mkdir ${dir}
+ fi
+done
#### Given the configuration name, set machfile and opsysfile to the
#### names of the m/*.h and s/*.h files we should use.
@@ -1134,6 +1124,23 @@ fi
LISP_FLOAT_TYPE=yes
+#### Add the X libraries to the list, and check for some functions found there.
+CFLAGS_save="$CFLAGS"
+CFLAGS="${CFLAGS} ${LD_SWITCH_X_SITE}"
+]
+AC_HAVE_LIBRARY(-lXbsd)
+[
+LIBS_save="$LIBS"
+if [ "${HAVE_X11}" = "yes" ] ; then
+ LIBS="-lX11 ${LIBS}"
+fi
+]
+AC_HAVE_FUNCS(XrmSetDatabase random)
+[
+CFLAGS="$CFLAGS_save"
+LIBS="$LIBS_save"
+
+
#### Find out which version of Emacs this is.
version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
| sed -e 's/^.*"\([0-9][0-9]*\.[0-9][0-9]*\)\..*$/\1/'`