aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2016-10-13 15:05:19 +0200
committerBjörn-Egil Dahlberg <[email protected]>2016-11-08 10:14:59 +0100
commit6f3e884ff20381724c995dd7cbf05eec3a164a7b (patch)
tree61a1950fb06bc1911ebc6d5762677087bf62cd9d /erts
parente6059f94571a6c968c15b9de6b7d63ebd64f9acf (diff)
downloadotp-6f3e884ff20381724c995dd7cbf05eec3a164a7b.tar.gz
otp-6f3e884ff20381724c995dd7cbf05eec3a164a7b.tar.bz2
otp-6f3e884ff20381724c995dd7cbf05eec3a164a7b.zip
Revert "Check libsctp for sctp funcs in configure.in"
This reverts commit 52fae83743a6e84d719f4f82fe45e6e0efdbd6f0: Check libsctp for sctp funcs in configure.in Call AC_CHECK_LIB before calling AC_CHECK_FUNCS to check for functions in libsctp. Otherwise AC_CHECK_FUNCS will not link with libsctp to see if function exists. Reverting to the old behaviour of not checking for libsctp before checking for sctp functions. Then it works on Linux by loading libsctp and looking up the symbols i runtime, and it works on FreeBSD since there is no separate libsctp to link against - the functions are part of the default system libraries.
Diffstat (limited to 'erts')
-rw-r--r--erts/configure.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/erts/configure.in b/erts/configure.in
index 883ce2db68..6a26bbf06a 100644
--- a/erts/configure.in
+++ b/erts/configure.in
@@ -1710,8 +1710,7 @@ 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])
+ 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,