Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@novell.com>2002-02-14 04:04:34 +0300
committerJeffrey Stedfast <fejj@novell.com>2002-02-14 04:04:34 +0300
commitcb22a00528f1bfff81cedf7c607e3d4a9efb7a19 (patch)
tree5b575d82c51a97f98a88eddb31a91f3f23e65f13
parentaefe6a0b33c8d63b5326259520fb02f13104a32b (diff)
2002-02-14 Jeffrey Stedfast <fejj@ximian.com>
* configure.in: Add checks to see if we need to link to libsocket, libnsl, and/or librt. Also check for inet_pton and inet_aton. svn path=/trunk/mono/; revision=2393
-rw-r--r--ChangeLog5
-rw-r--r--acconfig.h2
-rw-r--r--configure.in18
3 files changed, 25 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ce01973f9ec..f14a79e8b98 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-02-14 Jeffrey Stedfast <fejj@ximian.com>
+
+ * configure.in: Add checks to see if we need to link to libsocket,
+ libnsl, and/or librt. Also check for inet_pton and inet_aton.
+
2002-02-13 Jeffrey Stedfast <fejj@ximian.com>
* acconfig.h: #undef USE_MONO_MUTEX
diff --git a/acconfig.h b/acconfig.h
index 9f3b620fe9c..324d1c735cc 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -1,3 +1,5 @@
+#undef HAVE_INET_PTON
+#undef HAVE_INET_ATON
#undef HAVE_PTHREAD
#undef HAVE_PTHREAD_MUTEX_TIMEDLOCK
#undef USE_MONO_MUTEX
diff --git a/configure.in b/configure.in
index f0c99d4e4be..fe01eff31c2 100644
--- a/configure.in
+++ b/configure.in
@@ -28,6 +28,8 @@ AC_HEADER_STDC
AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL
+AC_CHECK_HEADERS(sys/filio.h sys/sockio.h)
+
# not 64 bit clean in cross-compile
AC_CHECK_SIZEOF(void *, 4)
@@ -153,7 +155,18 @@ if test x$platform_win32 = xno; then
if test $large_offt = no; then
AC_MSG_WARN([No 64 bit file size support available])
fi
+
+ dnl *****************************
+ dnl *** Checks for libsocket ***
+ dnl *****************************
+ AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket")
+
+ dnl *****************************
+ dnl *** Checks for libnsl ***
+ dnl *****************************
+ AC_CHECK_LIB(nsl, gethostbyaddr, LIBS="$LIBS -lnsl")
+ AC_CHECK_FUNCS(inet_pton inet_aton)
dnl *****************************
dnl *** Checks for libpthread ***
@@ -237,6 +250,11 @@ if test x$platform_win32 = xno; then
], [
AC_MSG_ERROR([libpthread is required on non-win32 hosts])
])
+
+ dnl ********************************
+ dnl *** Checks for semaphore lib ***
+ dnl ********************************
+ AC_CHECK_LIB(rt, sem_init, LIBS="$LIBS -lrt")
fi
if test "x$cross_compiling" = "xno"; then