net/asterisk-13.x: bump to 13.17.0
[feed/telephony.git] / net / asterisk-13.x / patches / 052-musl-libcap.patch
1 --- a/configure.ac
2 +++ b/configure.ac
3 @@ -181,6 +181,9 @@ case "${host_os}" in
4 linux-gnu*)
5 OSARCH=linux-gnu
6 ;;
7 + linux-musl*)
8 + OSARCH=linux-musl
9 + ;;
10 kfreebsd*-gnu)
11 OSARCH=kfreebsd-gnu
12 ;;
13 @@ -1403,9 +1406,11 @@ if test "${PBX_BFD}" = "0"; then
14 AST_EXT_LIB_CHECK([BFD], [bfd], [bfd_check_format], [bfd.h], [-ldl -liberty -lz])
15 fi
16
17 -if test "x${OSARCH}" = "xlinux-gnu" ; then
18 +case "${OSARCH}" in
19 +linux*)
20 AST_EXT_LIB_CHECK([CAP], [cap], [cap_from_text], [sys/capability.h])
21 -fi
22 + ;;
23 +esac
24
25 AST_C_DEFINE_CHECK([DAHDI], [DAHDI_RESET_COUNTERS], [dahdi/user.h], [230])
26 AST_C_DEFINE_CHECK([DAHDI], [DAHDI_DEFAULT_MTU_MRU], [dahdi/user.h], [220])
27 --- a/main/Makefile
28 +++ b/main/Makefile
29 @@ -47,7 +47,7 @@ AST_LIBS+=$(AST_CLANG_BLOCKS_LIBS)
30 AST_LIBS+=$(RT_LIB)
31 AST_LIBS+=$(SYSTEMD_LIB)
32
33 -ifneq ($(findstring $(OSARCH), linux-gnu uclinux linux-uclibc kfreebsd-gnu),)
34 +ifneq ($(findstring $(OSARCH), linux-gnu uclinux linux-uclibc linux-musl kfreebsd-gnu),)
35 AST_LIBS+=-ldl
36 ifneq (x$(CAP_LIB),x)
37 AST_LIBS+=$(CAP_LIB)