From 0c0601612e5fb1d91614625fe2d90dd498f8ce01 Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Fri, 14 Jul 1995 19:22:17 +0000 Subject: [PATCH] Added test for pgno_t that should avoid breaking NetBSD git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6296 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/berk_db/hash/ChangeLog | 5 +++++ src/util/berk_db/hash/configure.in | 12 +++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/util/berk_db/hash/ChangeLog b/src/util/berk_db/hash/ChangeLog index 096ec3a65..90b3f8481 100644 --- a/src/util/berk_db/hash/ChangeLog +++ b/src/util/berk_db/hash/ChangeLog @@ -1,3 +1,8 @@ +Fri Jul 14 13:51:42 1995 Sam Hartman + + * 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 * configure.in: Don't check for pgno_t; it's not in sys/types.h on diff --git a/src/util/berk_db/hash/configure.in b/src/util/berk_db/hash/configure.in index 1afb56b70..8c529db67 100644 --- a/src/util/berk_db/hash/configure.in +++ b/src/util/berk_db/hash/configure.in @@ -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 +#include +],[ +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. -- 2.26.2