Added SCTP and netinet/sctp.h checking
git-svn-id: http://voip.null.ro/svn/yate@759 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
1fd2071305
commit
d59cd027a6
23
configure.in
23
configure.in
|
@ -137,6 +137,29 @@ if [[ "x$ac_cv_use_fdsize" != "xno" ]]; then
|
||||||
fi
|
fi
|
||||||
AC_SUBST(FDSIZE_HACK)
|
AC_SUBST(FDSIZE_HACK)
|
||||||
|
|
||||||
|
HAVE_SCTP=no
|
||||||
|
HAVE_SCTP_NETINET=no
|
||||||
|
AC_LANG_SAVE
|
||||||
|
AC_LANG_C
|
||||||
|
AC_MSG_CHECKING([for basic SCTP support])
|
||||||
|
AC_TRY_COMPILE([#include <sys/types.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#include <netinet/in.h>],[int fd = socket(PF_INET,SOCK_SEQPACKET,IPPROTO_SCTP);],[HAVE_SCTP=yes])
|
||||||
|
AC_MSG_RESULT([$HAVE_SCTP])
|
||||||
|
AC_MSG_CHECKING([for netinet/sctp.h usability])
|
||||||
|
AC_TRY_COMPILE([#include <sys/types.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#include <netinet/in.h>
|
||||||
|
#include <netinet/sctp.h>],[int fd = socket(PF_INET,SOCK_SEQPACKET,IPPROTO_SCTP);],[HAVE_SCTP_NETINET=yes])
|
||||||
|
AC_MSG_RESULT([$HAVE_SCTP_NETINET])
|
||||||
|
if [[ "x$HAVE_SCTP_NETINET" != "xno" ]]; then
|
||||||
|
# including netinet/sctp.h fixes SCTP support so enable it
|
||||||
|
HAVE_SCTP=yes
|
||||||
|
fi
|
||||||
|
AC_LANG_RESTORE
|
||||||
|
AC_SUBST(HAVE_SCTP)
|
||||||
|
AC_SUBST(HAVE_SCTP_NETINET)
|
||||||
|
|
||||||
# Checks for optional libraries.
|
# Checks for optional libraries.
|
||||||
|
|
||||||
HAVE_RESOLV=no
|
HAVE_RESOLV=no
|
||||||
|
|
Loading…
Reference in New Issue