diff options
author | Harald Welte <laforge@osmocom.org> | 2021-01-07 13:49:47 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2021-01-07 13:51:52 +0100 |
commit | da79be8e8d04689308f22b36de996f804772a8e5 (patch) | |
tree | cf5e2e66b9a863d76a98d9bc3c8660766e7de86d | |
parent | 7798ccfa8a4908e7bc1f099101d81e3c0b80d080 (diff) |
configure.ac: Ensure netinet/sctp.h is present
we unconditionally depend on this header file, yet nothing
in configure.ac ensures its presence. Building on a clean
Debian 10 with all existing dependencies installed passes
configure but fails at compilation time.
Change-Id: I0a4407ef6ee512ad5ea8775d90acfe1c4fa67cd0
-rw-r--r-- | configure.ac | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 692db57..c186855 100644 --- a/configure.ac +++ b/configure.ac @@ -31,6 +31,8 @@ AS_CASE(["$LD"],[*clang*], [AS_CASE(["${host_os}"], [*linux*],[archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'])]) +AC_CHECK_HEADERS(netinet/sctp.h,,AC_MSG_ERROR(netinet/sctp.h not found)) + dnl check for pkg-config (explained in detail in libosmocore/configure.ac) AC_PATH_PROG(PKG_CONFIG_INSTALLED, pkg-config, no) if test "x$PKG_CONFIG_INSTALLED" = "xno"; then |