aboutsummaryrefslogtreecommitdiffstats
path: root/erts/configure.in
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2016-10-19 10:33:20 +0200
committerRaimo Niskanen <[email protected]>2016-10-19 10:33:20 +0200
commit613f7c3a7b9e1764e045c1253d1cef4958a234c5 (patch)
tree96fc1368c1e10155fc353955109a806a491b6caf /erts/configure.in
parent8aed60e7ad127f1189f308b8f9926ac7b24532e3 (diff)
parent826ebfba7b0624e52015fe6882aef3db758b9d03 (diff)
downloadotp-613f7c3a7b9e1764e045c1253d1cef4958a234c5.tar.gz
otp-613f7c3a7b9e1764e045c1253d1cef4958a234c5.tar.bz2
otp-613f7c3a7b9e1764e045c1253d1cef4958a234c5.zip
Merge branch 'maint'
Diffstat (limited to 'erts/configure.in')
-rw-r--r--erts/configure.in21
1 files changed, 14 insertions, 7 deletions
diff --git a/erts/configure.in b/erts/configure.in
index 0e599a65ab..86defd5119 100644
--- a/erts/configure.in
+++ b/erts/configure.in
@@ -188,12 +188,18 @@ AS_HELP_STRING([--disable-kernel-poll], [disable kernel poll support]),
AC_ARG_ENABLE(sctp,
-AS_HELP_STRING([--enable-sctp], [enable sctp support (default)])
+AS_HELP_STRING([--enable-sctp], [enable sctp support (default)
+to on demand load the SCTP library in runtime if needed])
+AS_HELP_STRING([--enable-sctp=lib], [enable sctp support
+to link against the SCTP library])
AS_HELP_STRING([--disable-sctp], [disable sctp support]),
-[ case "$enableval" in
- no) enable_sctp=no ;;
- *) enable_sctp=yes ;;
- esac ], enable_sctp=unknown)
+[ case "x$enableval" in
+ xno|xyes|xlib|x)
+ ;;
+ x*)
+ AC_MSG_ERROR("invalid value --enable-sctp=$enableval")
+ ;;
+ esac ])
AC_ARG_ENABLE(hipe,
AS_HELP_STRING([--enable-hipe], [enable hipe support])
@@ -1703,8 +1709,9 @@ if test "x$enable_sctp" != "xno" ; then
fi
if test x"$ac_cv_header_netinet_sctp_h" = x"yes"; then
- AC_CHECK_LIB(sctp, sctp_bindx)
- AC_CHECK_FUNCS([sctp_peeloff sctp_getladdrs sctp_freeladdrs sctp_getpaddrs sctp_freepaddrs])
+ AS_IF([test "x$enable_sctp" = "xlib"],
+ AC_CHECK_LIB(sctp, sctp_bindx))
+ AC_CHECK_FUNCS([sctp_bindx sctp_peeloff sctp_getladdrs sctp_freeladdrs sctp_getpaddrs sctp_freepaddrs])
AC_CHECK_DECLS([SCTP_UNORDERED, SCTP_ADDR_OVER, SCTP_ABORT,
SCTP_EOF, SCTP_SENDALL, SCTP_ADDR_CONFIRMED,
SCTP_DELAYED_ACK_TIME,