summaryrefslogtreecommitdiff
path: root/net/yate/files/patch-configure.ac
blob: e85d38d43979056c405941bb14b56fec290d8c74 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- configure.ac.orig	2024-01-15 13:41:34 UTC
+++ configure.ac
@@ -113,7 +113,8 @@ if [[ "x$ac_cv_no_overload_virt" = "xyes" ]]; then
 fi
 AC_MSG_RESULT([$ac_cv_no_overload_virt])
 
-GCC_UNRESOLVED_SYMBOLS="-Wl,--unresolved-symbols=ignore-in-shared-libs"
+#GCC_UNRESOLVED_SYMBOLS="-Wl,--unresolved-symbols=ignore-in-shared-libs"
+GCC_UNRESOLVED_SYMBOLS=""
 ld_unresolved_symbols=no
 AC_MSG_CHECKING([if ld supports reporting unresolved symbols])
 SAVE_CFLAGS="$CFLAGS"
@@ -1204,7 +1205,7 @@ AC_SUBST(SPEEX_LIB)
 
 HAVE_AMRNB=no
 AMRNB_INC=""
-AMRNB_LIB="-lamrnb"
+AMRNB_LIB="-lopencore-amrnb"
 AC_ARG_WITH(amrnb,AC_HELP_STRING([--with-amrnb=DIR],[use AMR-NB if available (default)]),[ac_cv_use_amrnb=$withval],[ac_cv_use_amrnb=/usr])
 if [[ "x$ac_cv_use_amrnb" = "xstatic" ]]; then
     ac_cv_use_amrnb=/usr
@@ -1213,9 +1214,9 @@ fi
 if [[ "x$ac_cv_use_amrnb" != "xno" ]]; then
 AC_MSG_CHECKING([for AMR-NB in $ac_cv_use_amrnb])
 local_lib="$ARCHLIB"
-amrinc="$ac_cv_use_amrnb/include/amrnb"
-test -f "$ac_cv_use_amrnb/$local_lib/libamrnb.so" || local_lib="lib"
-if [[ -f "$ac_cv_use_amrnb/$local_lib/libamrnb.so" -a -f "$amrinc/interf_rom.h" ]]; then
+amrinc="$ac_cv_use_amrnb/include/opencore-amrnb"
+test -f "$ac_cv_use_amrnb/$local_lib/libopencore-amrnb.so" || local_lib="lib"
+if [[ -f "$ac_cv_use_amrnb/$local_lib/libopencore-amrnb.so" -a -f "$amrinc/interf_enc.h" ]]; then
     HAVE_AMRNB=yes
     AMRNB_LIB="-L$ac_cv_use_amrnb/$local_lib $AMRNB_LIB"
     AMRNB_INC="-I$amrinc"