Added test for pgno_t that should avoid breaking NetBSD
authorSam Hartman <hartmans@mit.edu>
Fri, 14 Jul 1995 19:22:17 +0000 (19:22 +0000)
committerSam Hartman <hartmans@mit.edu>
Fri, 14 Jul 1995 19:22:17 +0000 (19:22 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6296 dc483132-0cff-0310-8789-dd5450dbe970

src/util/berk_db/hash/ChangeLog
src/util/berk_db/hash/configure.in

index 096ec3a655deeb2982da9ff93984ee5b53d1ff11..90b3f8481a1f5eaf3be8b227a8870f4d1ef6605b 100644 (file)
@@ -1,3 +1,8 @@
+Fri Jul 14 13:51:42 1995  Sam Hartman  <hartmans@screw-loose.MIT.EDU>
+
+       * configure.in: Implement test for pgno_t that works under NetBSD
+        and Irix 5.3--possibly other systems too.
+
 Sat Jul  1 23:15:59 1995  Tom Yu  <tlyu@lothlorien.MIT.EDU>
 
        * configure.in: Don't check for pgno_t; it's not in sys/types.h on
index 1afb56b70ca9e2b5b0450f951dc85a363810c354..8c529db673759bc91942da540e71c4bf6f0ee09a 100644 (file)
@@ -12,7 +12,17 @@ AC_CHECK_TYPE(int16_t, short)
 AC_CHECK_TYPE(u_int16_t, unsigned short)
 AC_CHECK_TYPE(int32_t, int)
 AC_CHECK_TYPE(u_int32_t, unsigned int)
-dnl AC_CHECK_TYPE(pgno_t, u_int32_t)
+AC_MSG_CHECKING(Whether pgno_t is defined)
+AC_CACHE_VAL(krb5_cv_pgno_t,[AC_TRY_COMPILE(
+[#include <sys/types.h>
+#include <ndbm.h>
+],[
+pgno_t t;],
+krb5_cv_pgno_t=yes,krb5_cv_pgno_t=no)])
+AC_MSG_RESULT($krb5_cv_pgno_t)
+if test $krb5_cv_pgno_t = no; then
+   AC_DEFINE_UNQUOTED(pgno_t, u_int32_t)
+   fi
 dnl
 dnl Determine the size of datum and DBT size fields. If they are not the same
 dnl then the elements need to be copied.