Merge "res_corosync: Fix linking issue with Corosync 2.x"

This commit is contained in:
Jenkins2
2017-10-17 11:08:13 -05:00
committed by Gerrit Code Review
2 changed files with 3 additions and 3 deletions

4
configure vendored
View File

@@ -31953,7 +31953,7 @@ if eval \${$as_ac_Lib+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lcpg ${pbxlibdir} -lcpg $LIBS"
LIBS="-lcpg ${pbxlibdir} -lcpg -lcfg $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -31995,7 +31995,7 @@ fi
# now check for the header.
if test "${AST_COROSYNC_FOUND}" = "yes"; then
COROSYNC_LIB="${pbxlibdir} -lcpg -lcpg"
COROSYNC_LIB="${pbxlibdir} -lcpg -lcpg -lcfg"
# if --with-COROSYNC=DIR has been specified, use it.
if test "x${COROSYNC_DIR}" != "x"; then
COROSYNC_INCLUDE="-I${COROSYNC_DIR}/include"

View File

@@ -2425,7 +2425,7 @@ fi
AST_EXT_LIB_CHECK([CODEC2], [codec2], [codec2_create], [codec2/codec2.h])
AST_EXT_LIB_CHECK([COROSYNC], [cpg], [cpg_join], [corosync/cpg.h], [-lcpg])
AST_EXT_LIB_CHECK([COROSYNC], [cpg], [cpg_join], [corosync/cpg.h], [-lcpg -lcfg])
AST_EXT_LIB_CHECK([COROSYNC_CFG_STATE_TRACK], [cfg], [corosync_cfg_state_track], [corosync/cfg.h], [-lcfg])
AST_EXT_LIB_CHECK([SPEEX], [speex], [speex_encode], [speex/speex.h], [-lm])