aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwab1997-12-17 13:16:22 +0000
committerAndreas Schwab1997-12-17 13:16:22 +0000
commitfd0a060bee18b603877a9eaba7bcffc69397f9fe (patch)
tree51f793b85e0a992b59665efd46e831474044e04b
parent6f72f1c28d173dda4246e749affbc61be640d227 (diff)
downloademacs-fd0a060bee18b603877a9eaba7bcffc69397f9fe.tar.gz
emacs-fd0a060bee18b603877a9eaba7bcffc69397f9fe.zip
Cache more tests. Add missing quotes around
message with embedded comma.
-rw-r--r--configure.in116
1 files changed, 72 insertions, 44 deletions
diff --git a/configure.in b/configure.in
index 4bc8d980534..3b247f67ce5 100644
--- a/configure.in
+++ b/configure.in
@@ -1082,7 +1082,7 @@ AC_HEADER_TIME
1082AC_DECL_SYS_SIGLIST 1082AC_DECL_SYS_SIGLIST
1083 1083
1084dnl Some systems have utime.h but don't declare the struct anyplace. 1084dnl Some systems have utime.h but don't declare the struct anyplace.
1085AC_MSG_CHECKING(for struct utimbuf) 1085AC_CACHE_CHECK(for struct utimbuf, emacs_cv_struct_utimbuf,
1086AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIME 1086AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIME
1087#include <sys/time.h> 1087#include <sys/time.h>
1088#include <time.h> 1088#include <time.h>
@@ -1096,14 +1096,15 @@ AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIME
1096#ifdef HAVE_UTIME_H 1096#ifdef HAVE_UTIME_H
1097#include <utime.h> 1097#include <utime.h>
1098#endif], [static struct utimbuf x; x.actime = x.modtime;], 1098#endif], [static struct utimbuf x; x.actime = x.modtime;],
1099 [AC_MSG_RESULT(yes) 1099 emacs_cv_struct_utimbuf=yes, emacs_cv_struct_utimbuf=no))
1100 AC_DEFINE(HAVE_STRUCT_UTIMBUF)], 1100if test $emacs_cv_struct_utimbuf = yes; then
1101 AC_MSG_RESULT(no)) 1101 AC_DEFINE(HAVE_STRUCT_UTIMBUF)
1102fi
1102 1103
1103dnl checks for typedefs 1104dnl checks for typedefs
1104AC_TYPE_SIGNAL 1105AC_TYPE_SIGNAL
1105 1106
1106AC_MSG_CHECKING(for struct timeval) 1107AC_CACHE_CHECK(for struct timeval, emacs_cv_struct_timeval,
1107AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIME 1108AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIME
1108#include <sys/time.h> 1109#include <sys/time.h>
1109#include <time.h> 1110#include <time.h>
@@ -1114,11 +1115,11 @@ AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIME
1114#include <time.h> 1115#include <time.h>
1115#endif 1116#endif
1116#endif], [static struct timeval x; x.tv_sec = x.tv_usec;], 1117#endif], [static struct timeval x; x.tv_sec = x.tv_usec;],
1117 [AC_MSG_RESULT(yes) 1118 emacs_cv_struct_timeval=yes, emacs_cv_struct_timeval=no))
1118 HAVE_TIMEVAL=yes 1119HAVE_TIMEVAL=$emacs_cv_struct_timeval
1119 AC_DEFINE(HAVE_TIMEVAL)], 1120if test $emacs_cv_struct_timeval = yes; then
1120 [AC_MSG_RESULT(no) 1121 AC_DEFINE(HAVE_TIMEVAL)
1121 HAVE_TIMEVAL=no]) 1122fi
1122 1123
1123dnl checks for structure members 1124dnl checks for structure members
1124AC_STRUCT_TM 1125AC_STRUCT_TM
@@ -1357,11 +1358,14 @@ GNU_MALLOC=yes
1357doug_lea_malloc=yes 1358doug_lea_malloc=yes
1358AC_CHECK_FUNC(malloc_get_state, ,doug_lea_malloc=no) 1359AC_CHECK_FUNC(malloc_get_state, ,doug_lea_malloc=no)
1359AC_CHECK_FUNC(malloc_set_state, ,doug_lea_malloc=no) 1360AC_CHECK_FUNC(malloc_set_state, ,doug_lea_malloc=no)
1360AC_MSG_CHECKING(whether __after_morecore_hook exists) 1361AC_CACHE_CHECK(whether __after_morecore_hook exists,
1362 emacs_cv_var___after_morecore_hook,
1361AC_TRY_LINK([extern void (* __after_morecore_hook)();],[__after_morecore_hook = 0], 1363AC_TRY_LINK([extern void (* __after_morecore_hook)();],[__after_morecore_hook = 0],
1362 [AC_MSG_RESULT(yes)], 1364 emacs_cv_var___after_morecore_hook=yes,
1363 [AC_MSG_RESULT(no) 1365 emacs_cv_var___after_morecore_hook=no))
1364 doug_lea_malloc=no]) 1366if test $emacs_cv_var___after_morecore_hook = no; then
1367 doug_lea_malloc=no
1368fi
1365if test "${system_malloc}" = "yes"; then 1369if test "${system_malloc}" = "yes"; then
1366 GNU_MALLOC=no 1370 GNU_MALLOC=no
1367 GNU_MALLOC_reason=" 1371 GNU_MALLOC_reason="
@@ -1472,27 +1476,36 @@ fi
1472 1476
1473if test "${window_system}" = "x11"; then 1477if test "${window_system}" = "x11"; then
1474 AC_MSG_CHECKING(X11 version 6) 1478 AC_MSG_CHECKING(X11 version 6)
1479 AC_CACHE_VAL(emacs_cv_x11_version_6,
1475 AC_TRY_LINK([#include <X11/Xlib.h>], 1480 AC_TRY_LINK([#include <X11/Xlib.h>],
1476[#if XlibSpecificationRelease < 6 1481[#if XlibSpecificationRelease < 6
1477fail; 1482fail;
1478#endif 1483#endif
1479], [AC_MSG_RESULT(6 or newer) 1484], emacs_cv_x11_version_6=yes, emacs_cv_x11_version_6=no))
1480 AC_DEFINE(HAVE_X11R6)], 1485 if test $emacs_cv_x11_version_6 = yes; then
1481 [AC_MSG_RESULT(before 6)]) 1486 AC_MSG_RESULT(6 or newer)
1487 AC_DEFINE(HAVE_X11R6)
1488 else
1489 AC_MSG_RESULT(before 6)
1490 fi
1482fi 1491fi
1483 1492
1484if test "${window_system}" = "x11"; then 1493if test "${window_system}" = "x11"; then
1485 AC_MSG_CHECKING(X11 version 5) 1494 AC_MSG_CHECKING(X11 version 5)
1495 AC_CACHE_VAL(emacs_cv_x11_version_5,
1486 AC_TRY_LINK([#include <X11/Xlib.h>], 1496 AC_TRY_LINK([#include <X11/Xlib.h>],
1487[#if XlibSpecificationRelease < 5 1497[#if XlibSpecificationRelease < 5
1488fail; 1498fail;
1489#endif 1499#endif
1490], [AC_MSG_RESULT(5 or newer) 1500], emacs_cv_x11_version_5=yes, emacs_cv_x11_version_5=no))
1501 if test $emacs_cv_x11_version_5 = yes; then
1502 AC_MSG_RESULT(5 or newer)
1491 HAVE_X11R5=yes 1503 HAVE_X11R5=yes
1492 AC_DEFINE(HAVE_X11R5)], 1504 AC_DEFINE(HAVE_X11R5)
1493 [ 1505 else
1494 HAVE_X11R5=no 1506 HAVE_X11R5=no
1495 AC_MSG_RESULT(before 5)]) 1507 AC_MSG_RESULT(before 5)
1508 fi
1496fi 1509fi
1497 1510
1498dnl Do not put whitespace before the #include statements below. 1511dnl Do not put whitespace before the #include statements below.
@@ -1500,14 +1513,20 @@ dnl Older compilers (eg sunos4 cc) choke on it.
1500if test x"${USE_X_TOOLKIT}" = xmaybe; then 1513if test x"${USE_X_TOOLKIT}" = xmaybe; then
1501 if test x"${HAVE_X11R5}" = xyes; then 1514 if test x"${HAVE_X11R5}" = xyes; then
1502 AC_MSG_CHECKING(X11 version 5 with Xaw) 1515 AC_MSG_CHECKING(X11 version 5 with Xaw)
1516 AC_CACHE_VAL(emacs_cv_x11_version_5_with_xaw,
1503 AC_TRY_LINK([ 1517 AC_TRY_LINK([
1504#include <X11/Intrinsic.h> 1518#include <X11/Intrinsic.h>
1505#include <X11/Xaw/Simple.h>], 1519#include <X11/Xaw/Simple.h>],
1506 [], 1520 [],
1507 [AC_MSG_RESULT(5 or newer, with Xaw; use toolkit by default) 1521 emacs_cv_x11_version_5_with_xaw=yes,
1508 USE_X_TOOLKIT=LUCID], 1522 emacs_cv_x11_version_5_with_xaw=no))
1509 [AC_MSG_RESULT(before 5 or no Xaw; do not use toolkit by default) 1523 if test $emacs_cv_x11_version_5_with_xaw = yes; then
1510 USE_X_TOOLKIT=none]) 1524 AC_MSG_RESULT([5 or newer, with Xaw; use toolkit by default])
1525 USE_X_TOOLKIT=LUCID
1526 else
1527 AC_MSG_RESULT(before 5 or no Xaw; do not use toolkit by default)
1528 USE_X_TOOLKIT=none
1529 fi
1511 else 1530 else
1512 USE_X_TOOLKIT=none 1531 USE_X_TOOLKIT=none
1513 fi 1532 fi
@@ -1517,15 +1536,19 @@ X_TOOLKIT_TYPE=$USE_X_TOOLKIT
1517 1536
1518if test "${USE_X_TOOLKIT}" != "none"; then 1537if test "${USE_X_TOOLKIT}" != "none"; then
1519 AC_MSG_CHECKING(X11 toolkit version) 1538 AC_MSG_CHECKING(X11 toolkit version)
1539 AC_CACHE_VAL(emacs_cv_x11_toolkit_version_6,
1520 AC_TRY_LINK([#include <X11/Intrinsic.h>], 1540 AC_TRY_LINK([#include <X11/Intrinsic.h>],
1521[#if XtSpecificationRelease < 6 1541[#if XtSpecificationRelease < 6
1522fail; 1542fail;
1523#endif 1543#endif
1524], [AC_MSG_RESULT(6 or newer) 1544], emacs_cv_x11_toolkit_version_6=yes, emacs_cv_x11_toolkit_version_6=no))
1525 HAVE_X11XTR6=yes 1545 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
1526 AC_DEFINE(HAVE_X11XTR6)], 1546 if test $emacs_cv_x11_toolkit_version_6 = yes; then
1527 [AC_MSG_RESULT(before 6) 1547 AC_MSG_RESULT(6 or newer)
1528 HAVE_X11XTR6=no]) 1548 AC_DEFINE(HAVE_X11XTR6)
1549 else
1550 AC_MSG_RESULT(before 6)
1551 fi
1529 1552
1530dnl If using toolkit, check whether libXmu.a exists. 1553dnl If using toolkit, check whether libXmu.a exists.
1531dnl tranle@intellicorp.com says libXmu.a can need XtMalloc in libXt.a to link. 1554dnl tranle@intellicorp.com says libXmu.a can need XtMalloc in libXt.a to link.
@@ -1540,27 +1563,29 @@ dnl tranle@intellicorp.com says libXmu.a can need XtMalloc in libXt.a to link.
1540fi 1563fi
1541 1564
1542if test "${USE_X_TOOLKIT}" = "MOTIF"; then 1565if test "${USE_X_TOOLKIT}" = "MOTIF"; then
1543 AC_MSG_CHECKING(for Motif version 2.1) 1566 AC_CACHE_CHECK(for Motif version 2.1, emacs_cv_motif_version_2_1,
1544 AC_TRY_COMPILE([#include <Xm/Xm.h>], 1567 AC_TRY_COMPILE([#include <Xm/Xm.h>],
1545 [#if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) 1568 [#if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
1546int x = 5; 1569int x = 5;
1547#else 1570#else
1548Motif version prior to 2.1. 1571Motif version prior to 2.1.
1549#endif], 1572#endif],
1550 [AC_MSG_RESULT(yes) 1573 emacs_cv_motif_version_2_1=yes, emacs_cv_motif_version_2_1=no))
1551 HAVE_MOTIF_2_1=yes 1574 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
1552 AC_DEFINE(HAVE_MOTIF_2_1)], 1575 if test $emacs_cv_motif_version_2_1 = yes; then
1553 [AC_MSG_RESULT(no) 1576 AC_DEFINE(HAVE_MOTIF_2_1)
1554 HAVE_MOTIF_2_1=no]) 1577 fi
1555fi 1578fi
1556 1579
1557# If netdb.h doesn't declare h_errno, we must declare it by hand. 1580# If netdb.h doesn't declare h_errno, we must declare it by hand.
1558AC_MSG_CHECKING(whether netdb declares h_errno) 1581AC_CACHE_CHECK(whether netdb declares h_errno,
1582 emacs_cv_netdb_declares_h_errno,
1559AC_TRY_LINK([#include <netdb.h>], 1583AC_TRY_LINK([#include <netdb.h>],
1560 [return h_errno;], 1584 [return h_errno;],
1561 [AC_MSG_RESULT(yes) 1585 emacs_cv_netdb_declares_h_errno=yes, emacs_cv_netdb_declares_h_errno=no))
1562 AC_DEFINE(HAVE_H_ERRNO)], 1586if test $emacs_cv_netdb_declares_h_errno = yes; then
1563 [AC_MSG_RESULT(no)]) 1587 AC_DEFINE(HAVE_H_ERRNO)
1588fi
1564 1589
1565AC_FUNC_ALLOCA 1590AC_FUNC_ALLOCA
1566 1591
@@ -1663,7 +1688,8 @@ if test $emacs_cv_localtime_cache = yes; then
1663fi 1688fi
1664 1689
1665if test "x$HAVE_TIMEVAL" = xyes; then 1690if test "x$HAVE_TIMEVAL" = xyes; then
1666AC_MSG_CHECKING(whether gettimeofday can accept two arguments) 1691AC_CACHE_CHECK(whether gettimeofday can accept two arguments,
1692 emacs_cv_gettimeofday_two_arguments,
1667AC_TRY_LINK([ 1693AC_TRY_LINK([
1668#ifdef TIME_WITH_SYS_TIME 1694#ifdef TIME_WITH_SYS_TIME
1669#include <sys/time.h> 1695#include <sys/time.h>
@@ -1681,9 +1707,11 @@ AC_TRY_LINK([
1681 struct timezone dummy; 1707 struct timezone dummy;
1682 gettimeofday (&time, &dummy); 1708 gettimeofday (&time, &dummy);
1683], 1709],
1684 [AC_MSG_RESULT(yes)], 1710 emacs_cv_gettimeofday_two_arguments=yes,
1685 [AC_MSG_RESULT(no) 1711 emacs_cv_gettimeofday_two_arguments=no))
1686 AC_DEFINE(GETTIMEOFDAY_ONE_ARGUMENT)]) 1712 if test $emacs_cv_gettimeofday_two_arguments = no; then
1713 AC_DEFINE(GETTIMEOFDAY_ONE_ARGUMENT)
1714 fi
1687fi 1715fi
1688 1716
1689ok_so_far=yes 1717ok_so_far=yes