mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-18 17:50:29 +02:00
AC_CACHE_VAL; #define UTIMBUF_NEEDS_POSIX outside AC_CACHE_VAL, so it gets done whether or not the cache variable has a value.
19 lines
580 B
Text
19 lines
580 B
Text
dnl On the NeXT, #including <utime.h> doesn't give you a definition for
|
|
dnl struct utime, unless you #define _POSIX_SOURCE.
|
|
|
|
AC_DEFUN(GUILE_STRUCT_UTIMBUF, [
|
|
AC_CACHE_CHECK([whether we need POSIX to get struct utimbuf],
|
|
guile_cv_struct_utimbuf_needs_posix,
|
|
[AC_TRY_CPP([
|
|
#ifdef __EMX__
|
|
#include <sys/utime.h>
|
|
#else
|
|
#include <utime.h>
|
|
#endif
|
|
struct utime blah;
|
|
],
|
|
guile_cv_struct_utimbuf_needs_posix=no,
|
|
guile_cv_struct_utimbuf_needs_posix=yes)])
|
|
if test "$guile_cv_struct_utimbuf_needs_posix" = yes; then
|
|
AC_DEFINE(UTIMBUF_NEEDS_POSIX)
|
|
fi])
|