From 7c0836668f25b0fb9af529b5e87f12eec92a2b73 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Thu, 25 Apr 2002 00:57:31 +0000 Subject: [PATCH] * configure.in: If the return type for gethostbyname_r can't be determined, just pretend it's not avaliable. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14421 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/ChangeLog | 3 +++ src/include/configure.in | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/include/ChangeLog b/src/include/ChangeLog index 56ad4e43d..76dc404bd 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,5 +1,8 @@ 2002-04-24 Ken Raeburn + * configure.in: If the return type for gethostbyname_r can't be + determined, just pretend it's not avaliable. + * fake-addrinfo.h (getaddrinfo) [_AIX]: Declare and initialize variable "ai". diff --git a/src/include/configure.in b/src/include/configure.in index 6ddfdfe40..f18527f5b 100644 --- a/src/include/configure.in +++ b/src/include/configure.in @@ -29,7 +29,8 @@ if test "$ac_cv_func_gethostbyname_r" = yes; then AC_MSG_RESULT($krb5_cv_gethostbyname_r_returns_ptr) if test "$krb5_cv_gethostbyname_r_returns_int" = "$krb5_cv_gethostbyname_r_returns_ptr"; then - AC_MSG_ERROR(cannot determine return type of gethostbyname_r) + AC_MSG_WARN(cannot determine return type of gethostbyname_r -- disabling) + ac_cv_func_gethostbyname_r=no fi if test "$krb5_cv_gethostbyname_r_returns_int" = yes; then AC_DEFINE(GETHOSTBYNAME_R_RETURNS_INT, 1, [Define if gethostbyname_r returns int rather than struct hostent * ]) -- 2.26.2