summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-05-03 17:35:44 +0000
committerYang Tse <yangsita@gmail.com>2009-05-03 17:35:44 +0000
commit0eeb553827984c3c2b57c2579ca1dc5898529b77 (patch)
tree79f2ae379a31159ae9c0824488957087c2e76f77 /configure.ac
parent3a55bbebf11207721db8a77cff88c82298ee41ff (diff)
downloadc-ares-0eeb553827984c3c2b57c2579ca1dc5898529b77.tar.gz
c-ares-0eeb553827984c3c2b57c2579ca1dc5898529b77.tar.bz2
c-ares-0eeb553827984c3c2b57c2579ca1dc5898529b77.zip
HP-UX's X/Open network library requirement check follow-up
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac22
1 files changed, 1 insertions, 21 deletions
diff --git a/configure.ac b/configure.ac
index 78dde89..5655e53 100644
--- a/configure.ac
+++ b/configure.ac
@@ -191,27 +191,7 @@ dnl **********************************************************************
dnl Checks for libraries.
dnl **********************************************************************
-tst_lib_xnet_required="no"
-AC_MSG_CHECKING([if X/Open network library is required])
-CURL_CHECK_DEF([__hpux], [], [silent])
-CURL_CHECK_DEF_CC([_XOPEN_SOURCE_EXTENDED], [], [silent])
-if test "$curl_cv_have_def__XOPEN_SOURCE_EXTENDED" = "yes" &&
- test "$curl_cv_have_def___hpux" = "yes"; then
- my_ac_save_LIBS=$LIBS
- LIBS="-lxnet $LIBS"
- AC_LINK_IFELSE([
- AC_LANG_PROGRAM([[
- ]],[[
- if(0 != getpeername(0, 0, 0))
- return 1;
- ]])
- ],[
- tst_lib_xnet_required="yes"
- ],[
- LIBS=$my_ac_save_LIBS
- ])
-fi
-AC_MSG_RESULT([$tst_lib_xnet_required])
+CARES_CHECK_LIB_XNET
dnl gethostbyname without lib or in the nsl lib?
AC_CHECK_FUNC(gethostbyname,