]> granicus.if.org Git - strace/commitdiff
Define AC_STAT64.
authorUlrich Drepper <drepper@redhat.com>
Fri, 24 Dec 1999 08:02:15 +0000 (08:02 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 24 Dec 1999 08:02:15 +0000 (08:02 +0000)
aclocal.m4

index 264d5e3fa20c84d182d03594b2cda4c3347d2ff6..905e7f2648c5961f034b93bd1abde4628b220bb0 100644 (file)
@@ -284,3 +284,18 @@ then
        AC_DEFINE(HAVE_MSG_CONTROL)
 fi
 ])
+
+dnl ### A macro to determine whether stat64 is defined.
+AC_DEFUN(AC_STAT64,
+[AC_MSG_CHECKING(for stat64 in asm/stat.h)
+AC_CACHE_VAL(ac_cv_type_stat64,
+[AC_TRY_COMPILE([#include <asm/stat.h>],
+[struct stat64 st;],
+ac_cv_type_stat64=yes,
+ac_cv_type_stat64no)])
+AC_MSG_RESULT($ac_cv_type_stat64)
+if test "$ac_cv_type_stat64" = yes
+then
+       AC_DEFINE(HAVE_STAT64)
+fi
+])