Add detection of -lnsl, -lsocket, -linet

This commit is contained in:
Kurt Zeilenga 1998-09-21 20:43:53 +00:00
parent 3b4931c0be
commit d376986c1e
3 changed files with 391 additions and 187 deletions

562
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -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 \

View File

@ -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