diff --git a/configure b/configure index 1abf761..3e9bc24 100755 --- a/configure +++ b/configure @@ -26254,7 +26254,7 @@ if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lbfd ${pbxlibdir} $LIBS" +LIBS="-lbfd ${pbxlibdir} -ldl -liberty $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF @@ -26328,7 +26328,7 @@ fi # now check for the header. if test "${AST_BFD_FOUND}" = "yes"; then - BFD_LIB="${pbxlibdir} -lbfd " + BFD_LIB="${pbxlibdir} -lbfd -ldl -liberty" # if --with-BFD=DIR has been specified, use it. if test "x${BFD_DIR}" != "x"; then BFD_INCLUDE="-I${BFD_DIR}/include" diff --git a/configure.ac b/configure.ac index 4e19d4b..c708651 100644 --- a/configure.ac +++ b/configure.ac @@ -1053,7 +1053,7 @@ AC_CHECK_TOOL(PKGCONFIG, pkg-config, No) AST_EXT_LIB_CHECK([ALSA], [asound], [snd_spcm_init], [alsa/asoundlib.h], [-lm -ldl]) -AST_EXT_LIB_CHECK([BFD], [bfd], [bfd_openr], [bfd.h]) +AST_EXT_LIB_CHECK([BFD], [bfd], [bfd_openr], [bfd.h], [-ldl -liberty]) AST_EXT_LIB_CHECK([CURSES], [curses], [initscr], [curses.h])