diff options
| author | Karl Heuer | 1994-09-18 19:00:32 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-09-18 19:00:32 +0000 |
| commit | f48c727a2403490b67c3e8e13cdabef042eabe6b (patch) | |
| tree | b59cf1444bd2af3dd2e7767775faf05a0e389d5b | |
| parent | 2e36cabbeeadbf3bd50a4a530c8fc646536988f8 (diff) | |
| download | emacs-f48c727a2403490b67c3e8e13cdabef042eabe6b.tar.gz emacs-f48c727a2403490b67c3e8e13cdabef042eabe6b.zip | |
Add HAVE_STRUCT_UTIMBUF.
| -rwxr-xr-x | configure1.in | 17 |
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' | |||
| 1180 | AC_AIX | 1180 | AC_AIX |
| 1181 | 1181 | ||
| 1182 | dnl checks for header files | 1182 | dnl checks for header files |
| 1183 | AC_HAVE_HEADERS(sys/timeb.h sys/time.h unistd.h) | 1183 | AC_HAVE_HEADERS(sys/timeb.h sys/time.h unistd.h utime.h) |
| 1184 | AC_STDC_HEADERS | 1184 | AC_STDC_HEADERS |
| 1185 | AC_TIME_WITH_SYS_TIME | 1185 | AC_TIME_WITH_SYS_TIME |
| 1186 | dnl In Autoconf 1.8 use AC_SYS_SIGLIST_DECLARED instead of this. | 1186 | dnl 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)) |
| 1194 | dnl Some systems have utime.h but don't declare the struct anyplace. | ||
| 1195 | AC_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 | ||
| 1195 | dnl checks for typedefs | 1210 | dnl checks for typedefs |
| 1196 | AC_RETSIGTYPE | 1211 | AC_RETSIGTYPE |