]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Add check for openSUSE when detecting bfd library
authorMatthew Jordan <mjordan@digium.com>
Sat, 28 Sep 2013 22:02:37 +0000 (22:02 +0000)
committerMatthew Jordan <mjordan@digium.com>
Sat, 28 Sep 2013 22:02:37 +0000 (22:02 +0000)
In ASTERISK-17842, some additional library checks were added to the configure
script so that the bfd library could be found on CentOS and Fedora systems.

As it turns out, openSUSE requires an additional library. This patch adds
another check to the configure script for openSUSE that will add that library.

Review: https://reviewboard.asterisk.org/r/2885/

(closes issue AST-1169)
Reported by: Guenther Kelleter
........

Merged revisions 400073 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 400075 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/certified/branches/11.2@400076 65c4cc65-6c06-0410-ace0-fbb531ad65f3

configure.ac

index 19acac7c86077519c453f2ecf305c5251625c484..4634a75cbb48064bdefef60a3c38de2a98dfa503 100644 (file)
@@ -1183,6 +1183,11 @@ if test "${PBX_BFD}" = "0"; then
   AST_EXT_LIB_CHECK([BFD], [bfd], [bfd_check_format], [bfd.h], [-ldl -liberty])
 fi
 
+if test "${PBX_BFD}" = "0"; then
+  # openSUSE requires -lz
+  AST_EXT_LIB_CHECK([BFD], [bfd], [bfd_check_format], [bfd.h], [-ldl -liberty -lz])
+fi
+
 if test "x${OSARCH}" = "xlinux-gnu" ; then
   AST_EXT_LIB_CHECK([CAP], [cap], [cap_from_text], [sys/capability.h])
 fi