From: Stig Venaas Date: Sat, 9 Sep 2000 12:09:43 +0000 (+0000) Subject: More restrictive getaddrinfo check, better not find it than breaking builds X-Git-Tag: php-4.0.3RC1~227 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f802468c2aaf33de099fa85d8baa15162f9ea14e;p=php More restrictive getaddrinfo check, better not find it than breaking builds --- diff --git a/configure.in b/configure.in index c9b7318494..f17d3a191f 100644 --- a/configure.in +++ b/configure.in @@ -347,7 +347,6 @@ ctime_r \ cuserid \ flock \ gcvt \ -getaddrinfo \ getlogin \ gethostbyaddr \ getrusage \ @@ -394,6 +393,14 @@ utime \ vsnprintf \ ) +dnl Check for getaddrinfo, should be a better way, but... +AC_CACHE_CHECK([for getaddrinfo], ac_cv_func_getaddrinfo, +[AC_TRY_COMPILE([#include ], [getaddrinfo(NULL,NULL,NULL,NULL);], + ac_cv_func_getaddrinfo=yes, ac_cv_func_getaddrinfo=no)]) +if test "$ac_cv_func_getaddrinfo" = yes; then + AC_DEFINE(HAVE_GETADDRINFO,1,[Define if you have the getaddrinfo function]) +fi + AC_REPLACE_FUNCS(strlcat strlcpy getopt) AC_FUNC_UTIME_NULL AC_FUNC_ALLOCA