diff options
author | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2001-12-07 15:48:06 +0000 |
---|---|---|
committer | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2001-12-07 15:48:06 +0000 |
commit | f8328b0a1548b083771c312326cd30a40816092a (patch) | |
tree | 74e6f05170cd081e203dd392b6a42a724c5f4e5c /build/apr_network.m4 | |
parent | 9b877e78aaeac61c464b1164a356d1b483e70452 (diff) | |
download | libapr-f8328b0a1548b083771c312326cd30a40816092a.tar.gz |
don't try to use getaddrinfo() on systems without gai_strerror()
this fixes a build error on RedHat 5.2
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62608 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build/apr_network.m4')
-rw-r--r-- | build/apr_network.m4 | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/build/apr_network.m4 b/build/apr_network.m4 index ecaa405a5..4645abd4f 100644 --- a/build/apr_network.m4 +++ b/build/apr_network.m4 @@ -5,6 +5,10 @@ dnl dnl dnl check for working getaddrinfo() dnl +dnl Note that if the system doesn't have gai_strerror(), we +dnl can't use getaddrinfo() because we can't get strings +dnl describing the error codes. +dnl AC_DEFUN(APR_CHECK_WORKING_GETADDRINFO,[ AC_CACHE_CHECK(for working getaddrinfo, ac_cv_working_getaddrinfo,[ AC_TRY_RUN( [ @@ -44,7 +48,11 @@ void main(void) { ac_cv_working_getaddrinfo="yes" ])]) if test "$ac_cv_working_getaddrinfo" = "yes"; then - AC_DEFINE(HAVE_GETADDRINFO, 1, [Define if getaddrinfo exists and works well enough for APR]) + if test "$ac_cv_func_gai_strerror" != "yes"; then + ac_cv_working_getaddrinfo="no" + else + AC_DEFINE(HAVE_GETADDRINFO, 1, [Define if getaddrinfo exists and works well enough for APR]) + fi fi ]) |