From: Jonathan Rose Date: Mon, 26 Mar 2012 19:49:40 +0000 (+0000) Subject: Fix BETTER_BACKTRACES library detection for Fedora/RedHat/CentOS X-Git-Tag: 11.0.0-beta1~485 X-Git-Url: http://git.asterisk.org/gitweb/?p=asterisk%2Fasterisk.git;a=commitdiff_plain;h=337f9339778363986dc4b536c3ca2e402336c947;hp=5affceaa156250f240d742377576c17c6709e4f7;ds=inline Fix BETTER_BACKTRACES library detection for Fedora/RedHat/CentOS (closes ASTERISK-17842) Reported by: Bryon Clark Patches: 20110512__issue19278.diff.txt uploaded by Tilghman Lesher (license 5003) configure_bfd_with_dl_and_iberty.patch uploaded by Bryon Clark (license 6157) ........ Merged revisions 360488 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 360489 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@360490 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/configure.ac b/configure.ac index 92d58c6..4ba9873 100644 --- a/configure.ac +++ b/configure.ac @@ -1145,6 +1145,11 @@ AST_EXT_LIB_CHECK([ALSA], [asound], [snd_spcm_init], [alsa/asoundlib.h], [-lm -l AST_EXT_LIB_CHECK([BFD], [bfd], [bfd_openr], [bfd.h]) +if test "${PBX_BFD}" = "0"; then + # Fedora/RedHat/CentOS require extra libraries + AST_EXT_LIB_CHECK([BFD], [bfd], [bfd_check_format], [bfd.h], [-ldl -liberty]) +fi + if test "x${OSARCH}" = "xlinux-gnu" ; then AST_EXT_LIB_CHECK([CAP], [cap], [cap_from_text], [sys/capability.h]) fi