Harald Welte has submitted this change and it was merged. ( 
https://gerrit.osmocom.org/12846 )

Change subject: configure.ac: Check for libsctp
......................................................................

configure.ac: Check for libsctp

Since we merged the SGs interface, we include <netinet/sctp.h>, which
is provided by libsctp.

Change-Id: Id2321e4cb3800929cea56785e5c5bd7480408806
---
M configure.ac
1 file changed, 11 insertions(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Pau Espin Pedrol: Looks good to me, but someone else must approve
  Jenkins Builder: Verified



diff --git a/configure.ac b/configure.ac
index 17f4b90..f8787cf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -46,6 +46,17 @@
 PKG_CHECK_MODULES(LIBOSMOMGCPCLIENT, libosmo-mgcp-client >= 1.5.0)
 PKG_CHECK_MODULES(LIBOSMOGSUPCLIENT, libosmo-gsup-client >= 1.0.0)

+old_LIBS=$LIBS
+AC_SEARCH_LIBS([sctp_send], [sctp], [
+       AC_DEFINE(HAVE_LIBSCTP, 1, [Define 1 to enable SCTP support])
+       AC_SUBST(HAVE_LIBSCTP, [1])
+       if test -n "$ac_lib"; then
+               AC_SUBST(LIBSCTP_LIBS, [-l$ac_lib])
+       fi
+       ], [
+       AC_MSG_ERROR([sctp_send not found in searched libs])])
+LIBS=$old_LIBS
+
 AC_ARG_ENABLE(sanitize,
        [AS_HELP_STRING(
                [--enable-sanitize],

--
To view, visit https://gerrit.osmocom.org/12846
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Id2321e4cb3800929cea56785e5c5bd7480408806
Gerrit-Change-Number: 12846
Gerrit-PatchSet: 2
Gerrit-Owner: Harald Welte <[email protected]>
Gerrit-Reviewer: Harald Welte <[email protected]>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Pau Espin Pedrol <[email protected]>
Gerrit-CC: Vadim Yanitskiy <[email protected]>

Reply via email to