configure: Use AC_SEARCH_LIBS for the Solaris libs to avoid unused function checks.
This commit is contained in:
parent
41c599646f
commit
2871041910
|
@ -15748,9 +15748,6 @@ fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -15766,7 +15763,6 @@ for ac_func in \
|
||||||
asctime_r \
|
asctime_r \
|
||||||
chsize \
|
chsize \
|
||||||
clone \
|
clone \
|
||||||
connect \
|
|
||||||
dlopen \
|
dlopen \
|
||||||
epoll_create \
|
epoll_create \
|
||||||
ffs \
|
ffs \
|
||||||
|
@ -15779,14 +15775,12 @@ for ac_func in \
|
||||||
futimes \
|
futimes \
|
||||||
futimesat \
|
futimesat \
|
||||||
getdirentries \
|
getdirentries \
|
||||||
gethostbyname \
|
|
||||||
getopt_long \
|
getopt_long \
|
||||||
getpagesize \
|
getpagesize \
|
||||||
getpwuid \
|
getpwuid \
|
||||||
gettid \
|
gettid \
|
||||||
gettimeofday \
|
gettimeofday \
|
||||||
getuid \
|
getuid \
|
||||||
inet_aton \
|
|
||||||
kqueue \
|
kqueue \
|
||||||
lstat \
|
lstat \
|
||||||
memmove \
|
memmove \
|
||||||
|
@ -16156,16 +16150,12 @@ fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$ac_cv_func_gethostbyname" = no
|
{ echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
|
||||||
then
|
echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
|
||||||
|
if test "${ac_cv_search_gethostbyname+set}" = set; then
|
||||||
{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
|
|
||||||
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
|
|
||||||
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
|
|
||||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||||
else
|
else
|
||||||
ac_check_lib_save_LIBS=$LIBS
|
ac_func_search_save_LIBS=$LIBS
|
||||||
LIBS="-lnsl $LIBS"
|
|
||||||
cat >conftest.$ac_ext <<_ACEOF
|
cat >conftest.$ac_ext <<_ACEOF
|
||||||
/* confdefs.h. */
|
/* confdefs.h. */
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
@ -16188,6 +16178,13 @@ return gethostbyname ();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
for ac_lib in '' nsl; do
|
||||||
|
if test -z "$ac_lib"; then
|
||||||
|
ac_res="none required"
|
||||||
|
else
|
||||||
|
ac_res=-l$ac_lib
|
||||||
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
||||||
|
fi
|
||||||
rm -f conftest.$ac_objext conftest$ac_exeext
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
||||||
if { (ac_try="$ac_link"
|
if { (ac_try="$ac_link"
|
||||||
case "(($ac_try" in
|
case "(($ac_try" in
|
||||||
|
@ -16206,41 +16203,43 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
||||||
test ! -s conftest.err
|
test ! -s conftest.err
|
||||||
} && test -s conftest$ac_exeext &&
|
} && test -s conftest$ac_exeext &&
|
||||||
$as_test_x conftest$ac_exeext; then
|
$as_test_x conftest$ac_exeext; then
|
||||||
ac_cv_lib_nsl_gethostbyname=yes
|
ac_cv_search_gethostbyname=$ac_res
|
||||||
else
|
else
|
||||||
echo "$as_me: failed program was:" >&5
|
echo "$as_me: failed program was:" >&5
|
||||||
sed 's/^/| /' conftest.$ac_ext >&5
|
sed 's/^/| /' conftest.$ac_ext >&5
|
||||||
|
|
||||||
ac_cv_lib_nsl_gethostbyname=no
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
||||||
conftest$ac_exeext conftest.$ac_ext
|
conftest$ac_exeext
|
||||||
LIBS=$ac_check_lib_save_LIBS
|
if test "${ac_cv_search_gethostbyname+set}" = set; then
|
||||||
|
break
|
||||||
fi
|
fi
|
||||||
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
|
done
|
||||||
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
|
if test "${ac_cv_search_gethostbyname+set}" = set; then
|
||||||
if test $ac_cv_lib_nsl_gethostbyname = yes; then
|
:
|
||||||
cat >>confdefs.h <<_ACEOF
|
else
|
||||||
#define HAVE_LIBNSL 1
|
ac_cv_search_gethostbyname=no
|
||||||
_ACEOF
|
fi
|
||||||
|
rm conftest.$ac_ext
|
||||||
LIBS="-lnsl $LIBS"
|
LIBS=$ac_func_search_save_LIBS
|
||||||
|
fi
|
||||||
|
{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
|
||||||
|
echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
|
||||||
|
ac_res=$ac_cv_search_gethostbyname
|
||||||
|
if test "$ac_res" != no; then
|
||||||
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$ac_cv_func_connect" = no
|
{ echo "$as_me:$LINENO: checking for library containing connect" >&5
|
||||||
then
|
echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6; }
|
||||||
|
if test "${ac_cv_search_connect+set}" = set; then
|
||||||
{ echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
|
|
||||||
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
|
|
||||||
if test "${ac_cv_lib_socket_connect+set}" = set; then
|
|
||||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||||
else
|
else
|
||||||
ac_check_lib_save_LIBS=$LIBS
|
ac_func_search_save_LIBS=$LIBS
|
||||||
LIBS="-lsocket $LIBS"
|
|
||||||
cat >conftest.$ac_ext <<_ACEOF
|
cat >conftest.$ac_ext <<_ACEOF
|
||||||
/* confdefs.h. */
|
/* confdefs.h. */
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
@ -16263,6 +16262,13 @@ return connect ();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
for ac_lib in '' socket; do
|
||||||
|
if test -z "$ac_lib"; then
|
||||||
|
ac_res="none required"
|
||||||
|
else
|
||||||
|
ac_res=-l$ac_lib
|
||||||
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
||||||
|
fi
|
||||||
rm -f conftest.$ac_objext conftest$ac_exeext
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
||||||
if { (ac_try="$ac_link"
|
if { (ac_try="$ac_link"
|
||||||
case "(($ac_try" in
|
case "(($ac_try" in
|
||||||
|
@ -16281,41 +16287,43 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
||||||
test ! -s conftest.err
|
test ! -s conftest.err
|
||||||
} && test -s conftest$ac_exeext &&
|
} && test -s conftest$ac_exeext &&
|
||||||
$as_test_x conftest$ac_exeext; then
|
$as_test_x conftest$ac_exeext; then
|
||||||
ac_cv_lib_socket_connect=yes
|
ac_cv_search_connect=$ac_res
|
||||||
else
|
else
|
||||||
echo "$as_me: failed program was:" >&5
|
echo "$as_me: failed program was:" >&5
|
||||||
sed 's/^/| /' conftest.$ac_ext >&5
|
sed 's/^/| /' conftest.$ac_ext >&5
|
||||||
|
|
||||||
ac_cv_lib_socket_connect=no
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
||||||
conftest$ac_exeext conftest.$ac_ext
|
conftest$ac_exeext
|
||||||
LIBS=$ac_check_lib_save_LIBS
|
if test "${ac_cv_search_connect+set}" = set; then
|
||||||
|
break
|
||||||
fi
|
fi
|
||||||
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
|
done
|
||||||
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
|
if test "${ac_cv_search_connect+set}" = set; then
|
||||||
if test $ac_cv_lib_socket_connect = yes; then
|
:
|
||||||
cat >>confdefs.h <<_ACEOF
|
else
|
||||||
#define HAVE_LIBSOCKET 1
|
ac_cv_search_connect=no
|
||||||
_ACEOF
|
fi
|
||||||
|
rm conftest.$ac_ext
|
||||||
LIBS="-lsocket $LIBS"
|
LIBS=$ac_func_search_save_LIBS
|
||||||
|
fi
|
||||||
|
{ echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
|
||||||
|
echo "${ECHO_T}$ac_cv_search_connect" >&6; }
|
||||||
|
ac_res=$ac_cv_search_connect
|
||||||
|
if test "$ac_res" != no; then
|
||||||
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$ac_cv_func_inet_aton" = no
|
{ echo "$as_me:$LINENO: checking for library containing inet_aton" >&5
|
||||||
then
|
echo $ECHO_N "checking for library containing inet_aton... $ECHO_C" >&6; }
|
||||||
|
if test "${ac_cv_search_inet_aton+set}" = set; then
|
||||||
{ echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
|
|
||||||
echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
|
|
||||||
if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
|
|
||||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||||
else
|
else
|
||||||
ac_check_lib_save_LIBS=$LIBS
|
ac_func_search_save_LIBS=$LIBS
|
||||||
LIBS="-lresolv $LIBS"
|
|
||||||
cat >conftest.$ac_ext <<_ACEOF
|
cat >conftest.$ac_ext <<_ACEOF
|
||||||
/* confdefs.h. */
|
/* confdefs.h. */
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
@ -16338,6 +16346,13 @@ return inet_aton ();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
for ac_lib in '' resolv; do
|
||||||
|
if test -z "$ac_lib"; then
|
||||||
|
ac_res="none required"
|
||||||
|
else
|
||||||
|
ac_res=-l$ac_lib
|
||||||
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
||||||
|
fi
|
||||||
rm -f conftest.$ac_objext conftest$ac_exeext
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
||||||
if { (ac_try="$ac_link"
|
if { (ac_try="$ac_link"
|
||||||
case "(($ac_try" in
|
case "(($ac_try" in
|
||||||
|
@ -16356,30 +16371,36 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
||||||
test ! -s conftest.err
|
test ! -s conftest.err
|
||||||
} && test -s conftest$ac_exeext &&
|
} && test -s conftest$ac_exeext &&
|
||||||
$as_test_x conftest$ac_exeext; then
|
$as_test_x conftest$ac_exeext; then
|
||||||
ac_cv_lib_resolv_inet_aton=yes
|
ac_cv_search_inet_aton=$ac_res
|
||||||
else
|
else
|
||||||
echo "$as_me: failed program was:" >&5
|
echo "$as_me: failed program was:" >&5
|
||||||
sed 's/^/| /' conftest.$ac_ext >&5
|
sed 's/^/| /' conftest.$ac_ext >&5
|
||||||
|
|
||||||
ac_cv_lib_resolv_inet_aton=no
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
||||||
conftest$ac_exeext conftest.$ac_ext
|
conftest$ac_exeext
|
||||||
LIBS=$ac_check_lib_save_LIBS
|
if test "${ac_cv_search_inet_aton+set}" = set; then
|
||||||
|
break
|
||||||
fi
|
fi
|
||||||
{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
|
done
|
||||||
echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
|
if test "${ac_cv_search_inet_aton+set}" = set; then
|
||||||
if test $ac_cv_lib_resolv_inet_aton = yes; then
|
:
|
||||||
cat >>confdefs.h <<_ACEOF
|
else
|
||||||
#define HAVE_LIBRESOLV 1
|
ac_cv_search_inet_aton=no
|
||||||
_ACEOF
|
fi
|
||||||
|
rm conftest.$ac_ext
|
||||||
LIBS="-lresolv $LIBS"
|
LIBS=$ac_func_search_save_LIBS
|
||||||
|
fi
|
||||||
|
{ echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5
|
||||||
|
echo "${ECHO_T}$ac_cv_search_inet_aton" >&6; }
|
||||||
|
ac_res=$ac_cv_search_inet_aton
|
||||||
|
if test "$ac_res" != no; then
|
||||||
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
18
configure.ac
18
configure.ac
|
@ -1153,7 +1153,6 @@ AC_CHECK_FUNCS(\
|
||||||
asctime_r \
|
asctime_r \
|
||||||
chsize \
|
chsize \
|
||||||
clone \
|
clone \
|
||||||
connect \
|
|
||||||
dlopen \
|
dlopen \
|
||||||
epoll_create \
|
epoll_create \
|
||||||
ffs \
|
ffs \
|
||||||
|
@ -1166,14 +1165,12 @@ AC_CHECK_FUNCS(\
|
||||||
futimes \
|
futimes \
|
||||||
futimesat \
|
futimesat \
|
||||||
getdirentries \
|
getdirentries \
|
||||||
gethostbyname \
|
|
||||||
getopt_long \
|
getopt_long \
|
||||||
getpagesize \
|
getpagesize \
|
||||||
getpwuid \
|
getpwuid \
|
||||||
gettid \
|
gettid \
|
||||||
gettimeofday \
|
gettimeofday \
|
||||||
getuid \
|
getuid \
|
||||||
inet_aton \
|
|
||||||
kqueue \
|
kqueue \
|
||||||
lstat \
|
lstat \
|
||||||
memmove \
|
memmove \
|
||||||
|
@ -1222,22 +1219,13 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl Check for -lnsl for Solaris
|
dnl Check for -lnsl for Solaris
|
||||||
if test "$ac_cv_func_gethostbyname" = no
|
AC_SEARCH_LIBS(gethostbyname, nsl)
|
||||||
then
|
|
||||||
AC_CHECK_LIB(nsl,gethostbyname)
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl Check for -lsocket for Solaris
|
dnl Check for -lsocket for Solaris
|
||||||
if test "$ac_cv_func_connect" = no
|
AC_SEARCH_LIBS(connect, socket)
|
||||||
then
|
|
||||||
AC_CHECK_LIB(socket,connect)
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl Check for -lresolv for Solaris
|
dnl Check for -lresolv for Solaris
|
||||||
if test "$ac_cv_func_inet_aton" = no
|
AC_SEARCH_LIBS(inet_aton, resolv)
|
||||||
then
|
|
||||||
AC_CHECK_LIB(resolv,inet_aton)
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl **** Check for functions which may rely on -lsocket on Solaris.
|
dnl **** Check for functions which may rely on -lsocket on Solaris.
|
||||||
AC_CHECK_FUNCS(\
|
AC_CHECK_FUNCS(\
|
||||||
|
|
|
@ -47,9 +47,6 @@
|
||||||
/* Define to 1 if you have the `clone' function. */
|
/* Define to 1 if you have the `clone' function. */
|
||||||
#undef HAVE_CLONE
|
#undef HAVE_CLONE
|
||||||
|
|
||||||
/* Define to 1 if you have the `connect' function. */
|
|
||||||
#undef HAVE_CONNECT
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <CoreAudio/CoreAudio.h> header file. */
|
/* Define to 1 if you have the <CoreAudio/CoreAudio.h> header file. */
|
||||||
#undef HAVE_COREAUDIO_COREAUDIO_H
|
#undef HAVE_COREAUDIO_COREAUDIO_H
|
||||||
|
|
||||||
|
@ -180,9 +177,6 @@
|
||||||
/* Define to 1 if you have the `getdirentries' function. */
|
/* Define to 1 if you have the `getdirentries' function. */
|
||||||
#undef HAVE_GETDIRENTRIES
|
#undef HAVE_GETDIRENTRIES
|
||||||
|
|
||||||
/* Define to 1 if you have the `gethostbyname' function. */
|
|
||||||
#undef HAVE_GETHOSTBYNAME
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `getnameinfo' function. */
|
/* Define to 1 if you have the `getnameinfo' function. */
|
||||||
#undef HAVE_GETNAMEINFO
|
#undef HAVE_GETNAMEINFO
|
||||||
|
|
||||||
|
@ -243,9 +237,6 @@
|
||||||
/* Define to 1 if you have the <ieeefp.h> header file. */
|
/* Define to 1 if you have the <ieeefp.h> header file. */
|
||||||
#undef HAVE_IEEEFP_H
|
#undef HAVE_IEEEFP_H
|
||||||
|
|
||||||
/* Define to 1 if you have the `inet_aton' function. */
|
|
||||||
#undef HAVE_INET_ATON
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `inet_network' function. */
|
/* Define to 1 if you have the `inet_network' function. */
|
||||||
#undef HAVE_INET_NETWORK
|
#undef HAVE_INET_NETWORK
|
||||||
|
|
||||||
|
@ -309,18 +300,9 @@
|
||||||
/* Define to 1 if you have the `i386' library (-li386). */
|
/* Define to 1 if you have the `i386' library (-li386). */
|
||||||
#undef HAVE_LIBI386
|
#undef HAVE_LIBI386
|
||||||
|
|
||||||
/* Define to 1 if you have the `nsl' library (-lnsl). */
|
|
||||||
#undef HAVE_LIBNSL
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `ossaudio' library (-lossaudio). */
|
/* Define to 1 if you have the `ossaudio' library (-lossaudio). */
|
||||||
#undef HAVE_LIBOSSAUDIO
|
#undef HAVE_LIBOSSAUDIO
|
||||||
|
|
||||||
/* Define to 1 if you have the `resolv' library (-lresolv). */
|
|
||||||
#undef HAVE_LIBRESOLV
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `socket' library (-lsocket). */
|
|
||||||
#undef HAVE_LIBSOCKET
|
|
||||||
|
|
||||||
/* Define if you have the Xinerama library */
|
/* Define if you have the Xinerama library */
|
||||||
#undef HAVE_LIBXINERAMA
|
#undef HAVE_LIBXINERAMA
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue