use a configure script test for PMTU discovery control instead of just assuming it's available on Linux

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@45027 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2006-10-13 15:41:14 +00:00
parent 3a602aa1d7
commit 1944a9a07c
4 changed files with 85 additions and 3 deletions

View File

@@ -296,6 +296,15 @@ AC_LINK_IFELSE(
AC_MSG_RESULT(no)
)
AC_MSG_CHECKING(for IP_MTU_DISCOVER)
AC_LINK_IFELSE(
AC_LANG_PROGRAM([#include <netinet/in.h>],
[int foo = IP_MTU_DISCOVER;]),
AC_MSG_RESULT(yes)
AC_DEFINE([HAVE_IP_MTU_DISCOVER], 1, [Define to 1 if your system has PMTU discovery on UDP sockets.]),
AC_MSG_RESULT(no)
)
AC_CHECK_HEADER([libkern/OSAtomic.h],
[AC_DEFINE_UNQUOTED([HAVE_OSX_ATOMICS], 1, [Define to 1 if OSX atomic operations are supported.])])