mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
Add detection of -lnsl, -lsocket, -linet
This commit is contained in:
parent
3b4931c0be
commit
d376986c1e
@ -205,6 +205,12 @@ AC_PATH_PROG(FINGER, finger, /usr/ucb/finger, $PATH:/usr/ucb)
|
||||
dnl ----------------------------------------------------------------
|
||||
dnl Checks for libraries
|
||||
|
||||
AC_CHECK_FUNC(socket, :,
|
||||
[ AC_CHECK_LIB(nsl, gethostname)
|
||||
AC_CHECK_LIB(socket, socket)
|
||||
AC_CHECK_LIB(inet, socket)
|
||||
])
|
||||
|
||||
ol_link_threads=no
|
||||
if test $ol_with_threads = auto -o $ol_with_threads = posix ; then
|
||||
AC_CHECK_HEADERS(pthread.h sched.h)
|
||||
@ -552,7 +558,6 @@ AC_CHECK_FUNCS( \
|
||||
mktime \
|
||||
select \
|
||||
socket \
|
||||
strdup \
|
||||
strerror \
|
||||
strstr \
|
||||
strrchr \
|
||||
|
@ -193,6 +193,15 @@
|
||||
/* Define if you have the <unistd.h> header file. */
|
||||
#undef HAVE_UNISTD_H
|
||||
|
||||
/* Define if you have the inet library (-linet). */
|
||||
#undef HAVE_LIBINET
|
||||
|
||||
/* Define if you have the nsl library (-lnsl). */
|
||||
#undef HAVE_LIBNSL
|
||||
|
||||
/* Define if you have the socket library (-lsocket). */
|
||||
#undef HAVE_LIBSOCKET
|
||||
|
||||
#ifdef HAVE_STDDEF_H
|
||||
# include <stddef.h>
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user