aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1996-02-26 19:42:29 +0000
committerRichard M. Stallman1996-02-26 19:42:29 +0000
commitfcc303f4c1853369188ed49b6ced75a0b85e2ecb (patch)
treecc3ccddd9e5e26f99452e4f1c7c648d264d69b25
parent1f35e359755969c75a9532c503195b9c0014cc38 (diff)
downloademacs-fcc303f4c1853369188ed49b6ced75a0b85e2ecb.tar.gz
emacs-fcc303f4c1853369188ed49b6ced75a0b85e2ecb.zip
Improve messages about X versions.
(LOCALTIME_CACHE): Cope if $ac_cv_func_tzset is null. (HAVE_X11XTR6): Set it as a shell variable. (HAVE_LIBXMU): If HAVE_X11XTR6, use -lSM and -lICE.
-rw-r--r--configure.in22
1 files changed, 14 insertions, 8 deletions
diff --git a/configure.in b/configure.in
index 8bcd982eb55..da8b2efc794 100644
--- a/configure.in
+++ b/configure.in
@@ -1307,9 +1307,9 @@ if test "${window_system}" = "x11"; then
1307[#if XlibSpecificationRelease < 6 1307[#if XlibSpecificationRelease < 6
1308fail; 1308fail;
1309#endif 1309#endif
1310], [AC_MSG_RESULT(6) 1310], [AC_MSG_RESULT(6 or newer)
1311 AC_DEFINE(HAVE_X11R6)], 1311 AC_DEFINE(HAVE_X11R6)],
1312 [AC_MSG_RESULT(not 6)]) 1312 [AC_MSG_RESULT(before 6)])
1313fi 1313fi
1314 1314
1315if test x"${USE_X_TOOLKIT}" = xmaybe; then 1315if test x"${USE_X_TOOLKIT}" = xmaybe; then
@@ -1318,10 +1318,10 @@ if test x"${USE_X_TOOLKIT}" = xmaybe; then
1318[#if XlibSpecificationRelease < 5 1318[#if XlibSpecificationRelease < 5
1319fail; 1319fail;
1320#endif 1320#endif
1321], [AC_MSG_RESULT(5, use toolkit) 1321], [AC_MSG_RESULT(5 or newer; use toolkit by default)
1322 USE_X_TOOLKIT=LUCID 1322 USE_X_TOOLKIT=LUCID
1323 AC_DEFINE(HAVE_X11R5)], 1323 AC_DEFINE(HAVE_X11R5)],
1324 [AC_MSG_RESULT(not 5, do not use toolkit) 1324 [AC_MSG_RESULT(before 5; do not use toolkit by default)
1325 USE_X_TOOLKIT=none]) 1325 USE_X_TOOLKIT=none])
1326fi 1326fi
1327 1327
@@ -1333,14 +1333,20 @@ if test "${USE_X_TOOLKIT}" != "none"; then
1333[#if XtSpecificationRelease < 6 1333[#if XtSpecificationRelease < 6
1334fail; 1334fail;
1335#endif 1335#endif
1336], [AC_MSG_RESULT(6) 1336], [AC_MSG_RESULT(6 or newer)
1337 HAVE_X11XTR6=yes
1337 AC_DEFINE(HAVE_X11XTR6)], 1338 AC_DEFINE(HAVE_X11XTR6)],
1338 [AC_MSG_RESULT(not 6)]) 1339 [AC_MSG_RESULT(before 6)
1340 HAVE_X11XTR6=no])
1339 1341
1340dnl If using toolkit, check whether libXmu.a exists. 1342dnl If using toolkit, check whether libXmu.a exists.
1341dnl tranle@intellicorp.com says libXmu.a can need XtMalloc in libXt.a to link. 1343dnl tranle@intellicorp.com says libXmu.a can need XtMalloc in libXt.a to link.
1342 OLDLIBS="$LIBS" 1344 OLDLIBS="$LIBS"
1343 LIBS="-lXt $LIBS" 1345 if test x$HAVE_X11XTR6 = xyes; then
1346 LIBS="-lXt -lSM -lICE $LIBS"
1347 else
1348 LIBS="-lXt $LIBS"
1349 fi
1344 AC_CHECK_LIB(Xmu, XmuConvertStandardSelection) 1350 AC_CHECK_LIB(Xmu, XmuConvertStandardSelection)
1345 LIBS="$OLDLIBS" 1351 LIBS="$OLDLIBS"
1346fi 1352fi
@@ -1364,7 +1370,7 @@ strerror fpathconf select mktime eaccess getpagesize tzset)
1364 1370
1365AC_MSG_CHECKING(whether localtime caches TZ) 1371AC_MSG_CHECKING(whether localtime caches TZ)
1366AC_CACHE_VAL(emacs_cv_localtime_cache, 1372AC_CACHE_VAL(emacs_cv_localtime_cache,
1367[if test $ac_cv_func_tzset = yes; then 1373[if test x$ac_cv_func_tzset = xyes; then
1368AC_TRY_RUN([#include <time.h> 1374AC_TRY_RUN([#include <time.h>
1369#if STDC_HEADERS 1375#if STDC_HEADERS
1370# include <stdlib.h> 1376# include <stdlib.h>