diff options
author | Sascha Schumann <sas@php.net> | 2003-06-27 07:12:54 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2003-06-27 07:12:54 +0000 |
commit | dc324648fe162a2cccc63b30169de85b1b5e9f7b (patch) | |
tree | 34b07a9e4efba616817827c5f5d722af8a15853f /configure.in | |
parent | ac795777769d574d64bcf65312b1cf790d8297b3 (diff) | |
download | php-git-dc324648fe162a2cccc63b30169de85b1b5e9f7b.tar.gz |
Try to link the getaddrinfo test, so that one can disable it using
-Dgetaddrinfo=NO_getaddrinfo.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 6bc64aa429..b392306047 100644 --- a/configure.in +++ b/configure.in @@ -521,7 +521,7 @@ vsnprintf \ dnl Check for getaddrinfo, should be a better way, but... AC_CACHE_CHECK([for getaddrinfo], ac_cv_func_getaddrinfo, -[AC_TRY_COMPILE([#include <netdb.h>], +[AC_TRY_LINK([#include <netdb.h>], [struct addrinfo *g,h;g=&h;getaddrinfo("","",g,&g);], ac_cv_func_getaddrinfo=yes, ac_cv_func_getaddrinfo=no)]) if test "$ac_cv_func_getaddrinfo" = yes; then |