1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00

* aclocal.m4 (GUILE_STRUCT_UTIMBUF): Use AC_CACHE_CHECK instead of

AC_CACHE_VAL; #define UTIMBUF_NEEDS_POSIX outside AC_CACHE_VAL, so
it gets done whether or not the cache variable has a value.
This commit is contained in:
Jim Blandy 1996-10-03 05:04:37 +00:00
parent 3c205827ce
commit e7247600b3

11
libguile/aclocal.m4 vendored
View file

@ -2,8 +2,8 @@ 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_MSG_CHECKING([whether we need POSIX to get struct utimbuf])
AC_CACHE_VAL(guile_cv_struct_utimbuf_needs_posix,
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>
@ -13,6 +13,7 @@ AC_DEFUN(GUILE_STRUCT_UTIMBUF, [
struct utime blah;
],
guile_cv_struct_utimbuf_needs_posix=no,
guile_cv_struct_utimbuf_needs_posix=yes
AC_DEFINE(UTIMBUF_NEEDS_POSIX))])
AC_MSG_RESULT($guile_cv_struct_utimbuf_needs_posix)])
guile_cv_struct_utimbuf_needs_posix=yes)])
if test "$guile_cv_struct_utimbuf_needs_posix" = yes; then
AC_DEFINE(UTIMBUF_NEEDS_POSIX)
fi])