aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1994-09-18 19:00:32 +0000
committerKarl Heuer1994-09-18 19:00:32 +0000
commitf48c727a2403490b67c3e8e13cdabef042eabe6b (patch)
treeb59cf1444bd2af3dd2e7767775faf05a0e389d5b
parent2e36cabbeeadbf3bd50a4a530c8fc646536988f8 (diff)
downloademacs-f48c727a2403490b67c3e8e13cdabef042eabe6b.tar.gz
emacs-f48c727a2403490b67c3e8e13cdabef042eabe6b.zip
Add HAVE_STRUCT_UTIMBUF.
-rwxr-xr-xconfigure1.in17
1 files changed, 16 insertions, 1 deletions
diff --git a/configure1.in b/configure1.in
index f101ac7e8a4..175584fabc8 100755
--- a/configure1.in
+++ b/configure1.in
@@ -1180,7 +1180,7 @@ dnl checks for UNIX variants that set `DEFS'
1180AC_AIX 1180AC_AIX
1181 1181
1182dnl checks for header files 1182dnl checks for header files
1183AC_HAVE_HEADERS(sys/timeb.h sys/time.h unistd.h) 1183AC_HAVE_HEADERS(sys/timeb.h sys/time.h unistd.h utime.h)
1184AC_STDC_HEADERS 1184AC_STDC_HEADERS
1185AC_TIME_WITH_SYS_TIME 1185AC_TIME_WITH_SYS_TIME
1186dnl In Autoconf 1.8 use AC_SYS_SIGLIST_DECLARED instead of this. 1186dnl In Autoconf 1.8 use AC_SYS_SIGLIST_DECLARED instead of this.
@@ -1191,6 +1191,21 @@ AC_COMPILE_CHECK(sys_siglist declaration in signal.h or unistd.h,
1191#include <unistd.h> 1191#include <unistd.h>
1192#endif], [char *msg = *(sys_siglist + 1);], 1192#endif], [char *msg = *(sys_siglist + 1);],
1193 AC_DEFINE(SYS_SIGLIST_DECLARED)) 1193 AC_DEFINE(SYS_SIGLIST_DECLARED))
1194dnl Some systems have utime.h but don't declare the struct anyplace.
1195AC_COMPILE_CHECK(struct utimbuf, [#ifdef TIME_WITH_SYS_TIME
1196#include <sys/time.h>
1197#include <time.h>
1198#else
1199#ifdef HAVE_SYS_TIME_H
1200#include <sys/time.h>
1201#else
1202#include <time.h>
1203#endif
1204#endif
1205#ifdef HAVE_UTIME_H
1206#include <utime.h>
1207#endif], [static struct utimbuf x; x.actime = x.modtime;],
1208 AC_DEFINE(HAVE_STRUCT_UTIMBUF))
1194 1209
1195dnl checks for typedefs 1210dnl checks for typedefs
1196AC_RETSIGTYPE 1211AC_RETSIGTYPE