HP-UX's X/Open network library requirement check follow-up

This commit is contained in:
Yang Tse
2009-05-03 17:35:44 +00:00
parent b5c599c80c
commit 9b4253fe67
4 changed files with 58 additions and 42 deletions

View File

@@ -498,27 +498,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])
CURL_CHECK_LIB_XNET
dnl gethostbyname without lib or in the nsl lib?
AC_CHECK_FUNC(gethostbyname,