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:56:26 +0100 |
commit | d37d3c8181cb232f79f676828d34699bbee24f5e (patch) | |
tree | 88c2571eb2f610362f7e46ae65c16c3085830099 | |
parent | 3f70fcd4171d6a5ebaa648f6dfbfd4893f66c26f (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 |