Skip to content

Commit

Permalink
2002-02-16 Jeffrey Stedfast <fejj@ximian.com>
Browse files Browse the repository at this point in the history
	* configure.in: Add checks for SOL_IP, SOL_TCP, IP_PKTINFO,
	IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP.

svn path=/trunk/mono/; revision=2444
  • Loading branch information
jstedfast committed Feb 16, 2002
1 parent 4ff60e1 commit ad35083
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 3 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
2002-02-16 Jeffrey Stedfast <fejj@ximian.com>

* configure.in: Add checks for SOL_IP, SOL_TCP, IP_PKTINFO,
IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP.

2002-02-14 Jeffrey Stedfast <fejj@ximian.com>

* configure.in: Add checks to see if we need to link to libsocket,
Expand Down
5 changes: 5 additions & 0 deletions acconfig.h
@@ -1,5 +1,10 @@
#undef HAVE_INET_PTON
#undef HAVE_INET_ATON
#undef HAVE_SOL_IP
#undef HAVE_SOL_TCP
#undef HAVE_IP_PKTINFO
#undef HAVE_IP_ADD_MEMBERSHIP
#undef HAVE_IP_DROP_MEMBERSHIP
#undef HAVE_PTHREAD
#undef HAVE_PTHREAD_MUTEX_TIMEDLOCK
#undef USE_MONO_MUTEX
Expand Down
78 changes: 75 additions & 3 deletions configure.in
Expand Up @@ -160,7 +160,79 @@ if test x$platform_win32 = xno; then
dnl *** Checks for libsocket ***
dnl *****************************
AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket")


dnl *****************************
dnl *** Checks for SOL_IP ***
dnl *****************************
AC_MSG_CHECKING(for SOL_IP)
AC_TRY_COMPILE([#include <netdb.h>], [
int level = SOL_IP;
], [
# Yes, we have it...
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_SOL_IP)
], [
# We'll have to use getprotobyname
AC_MSG_RESULT(no)
])

dnl *****************************
dnl *** Checks for SOL_TCP ***
dnl *****************************
AC_MSG_CHECKING(for SOL_TCP)
AC_TRY_COMPILE([#include <netdb.h>], [
int level = SOL_TCP;
], [
# Yes, we have it...
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_SOL_TCP)
], [
# We'll have to use getprotobyname
AC_MSG_RESULT(no)
])

dnl *****************************
dnl *** Checks for IP_PKTINFO ***
dnl *****************************
AC_MSG_CHECKING(for IP_PKTINFO)
AC_TRY_COMPILE([#include <netdb.h>], [
int level = IP_PKTINFO;
], [
# Yes, we have it...
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_IP_PKTINFO)
], [
AC_MSG_RESULT(no)
])

dnl ************************************
dnl *** Checks for IP_ADD_MEMBERSHIP ***
dnl ************************************
AC_MSG_CHECKING(for IP_ADD_MEMBERSHIP)
AC_TRY_COMPILE([#include <netdb.h>], [
int level = IP_ADD_MEMBERSHIP;
], [
# Yes, we have it...
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_IP_ADD_MEMBERSHIP)
], [
AC_MSG_RESULT(no)
])

dnl *************************************
dnl *** Checks for IP_DROP_MEMBERSHIP ***
dnl *************************************
AC_MSG_CHECKING(for IP_DROP_MEMBERSHIP)
AC_TRY_COMPILE([#include <netdb.h>], [
int level = IP_DROP_MEMBERSHIP;
], [
# Yes, we have it...
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_IP_DROP_MEMBERSHIP)
], [
AC_MSG_RESULT(no)
])

dnl *****************************
dnl *** Checks for libnsl ***
dnl *****************************
Expand All @@ -187,7 +259,7 @@ if test x$platform_win32 = xno; then
pthread_mutex_timedlock(&mut, NULL);
], [
# Works!
AC_MSG_RESULT(ok)
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_PTHREAD_MUTEX_TIMEDLOCK)
], [
AC_MSG_RESULT(no)
Expand All @@ -200,7 +272,7 @@ if test x$platform_win32 = xno; then
pthread_mutex_t mut=PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_timedlock(&mut, NULL);
], [
AC_MSG_RESULT(ok)
AC_MSG_RESULT(yes)
pthread_CFLAGS="-D_GNU_SOURCE"
AC_DEFINE(HAVE_PTHREAD_MUTEX_TIMEDLOCK)
], [
Expand Down

0 comments on commit ad35083

Please sign in to comment.