2006-12-21 01:30:28 -05:00
|
|
|
dnl ======================================================================
|
|
|
|
dnl SAC_TPORT - perform checks for tport
|
|
|
|
dnl ======================================================================
|
|
|
|
AC_DEFUN([SAC_TPORT], [
|
|
|
|
|
|
|
|
AC_ARG_WITH(sigcomp,
|
2007-04-14 22:03:41 -04:00
|
|
|
[ --with-sigcomp=dir use Sofia SigComp package [[not used]]],,
|
2006-12-21 01:30:28 -05:00
|
|
|
with_sigcomp=no)
|
|
|
|
|
|
|
|
if test -n "${with_sigcomp}" && test "${with_sigcomp}" != no ; then
|
|
|
|
if test "${with_sigcomp}" != yes ; then
|
|
|
|
CPPFLAGS="-I${with_sigcomp}/include $CPPFLAGS"
|
|
|
|
LIBS="-L${with_sigcomp}/lib -lsigcomp $LIBS"
|
|
|
|
else
|
|
|
|
LIBS="-lsigcomp $LIBS"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_CHECK_HEADERS(sigcomp.h,,AC_MSG_ERROR([cannot find Sofia SigComp includes]))
|
|
|
|
|
|
|
|
AC_CHECK_FUNC(sigcomp_library_2_5,
|
|
|
|
[AC_DEFINE([HAVE_SIGCOMP], 1, [Define to 1 if you have Sofia sigcomp >= 2.5])
|
2008-12-16 13:05:22 -05:00
|
|
|
AC_DEFINE([HAVE_SOFIA_SIGCOMP], 1, [Define to 1 if you have Sofia sigcomp >= 2.5])],
|
2006-12-21 01:30:28 -05:00
|
|
|
AC_MSG_ERROR(Sofia SigComp API >= 2.5 was not found))
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Check for features used by tport.
|
|
|
|
AC_SYS_IP_RECVERR
|
|
|
|
AC_SYS_IPV6_RECVERR
|
|
|
|
|
2007-04-14 22:03:41 -04:00
|
|
|
AC_CHECK_HEADERS([netinet/tcp.h netinet/sctp.h],[],[],[
|
2007-05-08 15:14:10 -04:00
|
|
|
#include <sys/types.h>
|
2007-04-14 22:03:41 -04:00
|
|
|
#include <sys/socket.h>
|
|
|
|
])
|
2006-12-21 01:30:28 -05:00
|
|
|
|
2007-04-14 22:03:41 -04:00
|
|
|
AC_ARG_ENABLE(sctp,
|
|
|
|
[ --enable-sctp use SCTP [[disabled]]],,
|
2006-12-21 01:30:28 -05:00
|
|
|
enable_sigcomp=no)
|
|
|
|
|
|
|
|
if test x$enable_sctp = xyes; then
|
|
|
|
AC_DEFINE(HAVE_SCTP, 1, [Define to 1 if you have SCTP])
|
|
|
|
fi
|
|
|
|
])
|