Merge pull request #772 from signalwire/unimrcp-sofia-detect

[build] detect system installed sofia-sip using PKG_CONFIG_PATH
This commit is contained in:
Andrey Volk 2020-08-04 21:37:06 +04:00 committed by GitHub
commit 84d34847dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -29,6 +29,12 @@ AC_DEFUN([UNIMRCP_CHECK_SOFIA],
fi
done
dnl Check for installed Sofia-SIP in PKG_CONFIG_PATH
if test "$found_sofia" != "yes" && $PKG_CONFIG sofia-sip-ua > /dev/null 2>&1 ; then
found_sofia="yes"
sofia_config_path="sofia-sip-ua"
fi
dnl Check for full path to Sofia-SIP pkg-config file
if test "$found_sofia" != "yes" && test -f "$sofia_path" && $PKG_CONFIG $sofia_path > /dev/null 2>&1 ; then
found_sofia="yes"