aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-02-06 17:11:25 +0100
committerHarald Welte <laforge@gnumonks.org>2019-02-06 18:08:59 +0000
commit845285077d28825da11cdfe845e3bf1e9bd5b23f (patch)
tree949721af4d2af93cea45a4eb43ad260864180f38
parentca292dd6078432a48106b62d11ef64b4b6d6fcf6 (diff)
configure.ac: Check for libsctp
Since we merged the SGs interface, we include <netinet/sctp.h>, which is provided by libsctp. Change-Id: Id2321e4cb3800929cea56785e5c5bd7480408806
-rw-r--r--configure.ac11
1 files changed, 11 insertions, 0 deletions
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(LIBOSMOSCCP, libosmo-sccp >= 1.0.0)
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],