* aclocal.m4 (GUILE_STRUCT_UTIMBUF): Use AC_CACHE_CHECK instead of
authorJim Blandy <jimb@red-bean.com>
Thu, 3 Oct 1996 05:04:37 +0000 (05:04 +0000)
committerJim Blandy <jimb@red-bean.com>
Thu, 3 Oct 1996 05:04:37 +0000 (05:04 +0000)
AC_CACHE_VAL; #define UTIMBUF_NEEDS_POSIX outside AC_CACHE_VAL, so
it gets done whether or not the cache variable has a value.

libguile/aclocal.m4

index 2446edc..a0e0347 100644 (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])