From: Ezra Peisach Date: Wed, 24 Oct 2001 15:23:49 +0000 (+0000) Subject: * configure.in: Add optional argument to AC_DEFINE to provide X-Git-Tag: krb5-1.3-alpha1~1010 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f0fe7018949eaec61d5a664ee30cc0a2120208ac;p=krb5.git * configure.in: Add optional argument to AC_DEFINE to provide comment in generated header file. * acconfig.h: Remove int32_t and u_int32_t, handled by configure.in git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13843 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/db2/ChangeLog b/src/util/db2/ChangeLog index cf9a91631..19950f34d 100644 --- a/src/util/db2/ChangeLog +++ b/src/util/db2/ChangeLog @@ -1,3 +1,10 @@ +2001-10-24 Ezra Peisach + + * configure.in: Add optional argument to AC_DEFINE to provide + comment in generated header file. + + * acconfig.h: Remove int32_t and u_int32_t, handled by configure.in + 2001-07-08 Ezra Peisach * hash/hash_func.c (hash4): Declare first argument const. diff --git a/src/util/db2/acconfig.h b/src/util/db2/acconfig.h index d36e23fe2..a0d1a9e30 100644 --- a/src/util/db2/acconfig.h +++ b/src/util/db2/acconfig.h @@ -3,8 +3,8 @@ /* BSD4.3, non-posix types */ #undef u_char -#undef u_short #undef u_int +#undef u_short #undef u_long /* sized types used by db internals */ @@ -13,5 +13,3 @@ #undef u_int8_t #undef int16_t #undef u_int16_t -#undef int32_t -#undef u_int32_t diff --git a/src/util/db2/configure.in b/src/util/db2/configure.in index 0bc653f1e..1e444d89b 100644 --- a/src/util/db2/configure.in +++ b/src/util/db2/configure.in @@ -44,14 +44,14 @@ AC_CACHE_VAL(ac_cv_type_$1, #endif], [$1 test_variable;], ac_cv_type_$1=yes, ac_cv_type_$1=no)])dnl AC_MSG_RESULT($ac_cv_type_$1) if test $ac_cv_type_$1 = no; then - AC_DEFINE($1, $2) + AC_DEFINE($1, $2, [Define to \`$2' if not defined on system]) fi ]) + AC_CHECK_TYPE(ssize_t, int) AC_CHECK_TYPE(u_char, unsigned char) -AC_CHECK_TYPE(u_short, unsigned short) AC_CHECK_TYPE(u_int, unsigned int) AC_CHECK_TYPE(u_long, unsigned long) @@ -71,18 +71,18 @@ AC_CHECK_SIZEOF(int) dnl checks for library functions AC_CHECK_FUNC(memmove, , [MEMMOVE_OBJ=memmove.o -AC_DEFINE(memmove, kdb2__memmove) -AC_DEFINE(MEMMOVE)]) +AC_DEFINE(memmove, kdb2__memmove,[Define to kdb2__memmove to provide private memmove function]) +AC_DEFINE(MEMMOVE,1,[Define if memmove.o is compiled in])]) AC_SUBST(MEMMOVE_OBJ) -AC_CHECK_FUNCS(mkstemp, , +AC_CHECK_FUNC(mkstemp, , [MKSTEMP_OBJ=mkstemp.o -AC_DEFINE(mkstemp, kdb2__mkstemp)]) +AC_DEFINE(mkstemp, kdb2__mkstemp,[Define to \`kdb2__mkstemp' to provide private mkstemp function])]) AC_SUBST(MKSTEMP_OBJ) -AC_CHECK_FUNCS(strerror, , +AC_CHECK_FUNC(strerror, , [STRERROR_OBJ=strerror.o -AC_DEFINE(strerror, kdb2__strerror)]) +AC_DEFINE(strerror, kdb2__strerror,[Define to \`kdb2__strerror' to provide private strerror function])]) AC_SUBST(STRERROR_OBJ) KRB5_BUILD_LIBRARY