mirror of
https://github.com/curl/curl.git
synced 2026-08-26 11:23:35 +03:00
HP-UX's X/Open network library requirement check follow-up
This commit is contained in:
parent
b5c599c80c
commit
9b4253fe67
4 changed files with 58 additions and 42 deletions
28
acinclude.m4
28
acinclude.m4
|
|
@ -156,6 +156,34 @@ int main (void)
|
|||
])
|
||||
|
||||
|
||||
dnl CURL_CHECK_LIB_XNET
|
||||
dnl -------------------------------------------------
|
||||
dnl Verify if X/Open network library is required.
|
||||
|
||||
AC_DEFUN([CURL_CHECK_LIB_XNET], [
|
||||
AC_MSG_CHECKING([if X/Open network library is required])
|
||||
tst_lib_xnet_required="no"
|
||||
AC_COMPILE_IFELSE([
|
||||
AC_LANG_SOURCE([[
|
||||
int main (void)
|
||||
{
|
||||
#if defined(__hpux) && defined(_XOPEN_SOURCE) && defined(_XOPEN_SOURCE >= 600)
|
||||
return 0;
|
||||
#if defined(__hpux) && defined(_XOPEN_SOURCE) && defined(_XOPEN_SOURCE_EXTENDED)
|
||||
return 0;
|
||||
#else
|
||||
force compilation error
|
||||
#endif
|
||||
}
|
||||
]])
|
||||
],[
|
||||
tst_lib_xnet_required="yes"
|
||||
LIBS="$LIBS -lxnet"
|
||||
])
|
||||
AC_MSG_RESULT([$tst_lib_xnet_required])
|
||||
])
|
||||
|
||||
|
||||
dnl CURL_CHECK_AIX_ALL_SOURCE
|
||||
dnl -------------------------------------------------
|
||||
dnl Provides a replacement of traditional AC_AIX with
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue