diff options
author | Rickard Green <rickard@erlang.org> | 2021-03-05 11:36:28 +0100 |
---|---|---|
committer | Rickard Green <rickard@erlang.org> | 2021-04-28 14:38:39 +0200 |
commit | 9ce3bcd57af647d2883700aadd761086e8852fda (patch) | |
tree | 0314c5928d1359cfd6a76f682c86a4ca9b0c7559 | |
parent | f01ea0ab3d0517fbda145a32346a6cd3310f862a (diff) | |
download | erlang-9ce3bcd57af647d2883700aadd761086e8852fda.tar.gz |
Make erts configure fail if sctp support request cannot be satisfied
-rw-r--r-- | erts/configure.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/erts/configure.in b/erts/configure.in index 418a111922..fd3190f0f1 100644 --- a/erts/configure.in +++ b/erts/configure.in @@ -1774,6 +1774,15 @@ if test "x$enable_sctp" != "xno" ; then ]) fi +case "x$enable_sctp" in + xno|x) + ;; + *) + if test "x$LIBSCTP" = "x" ; then + AC_MSG_ERROR([sctp support requested, but cannot be enabled since 'netinet/sctp.h' is missing]) + fi;; +esac + if test x"$ac_cv_header_netinet_sctp_h" = x"yes"; then AS_IF([test "x$enable_sctp" = "xlib"], AC_CHECK_LIB(sctp, sctp_bindx)) |