aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-12-17 23:30:55 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-12-17 23:30:55 +0000
commite81ed3fc262e65b8e5f2a3d207c1b435ca2e669d (patch)
tree74460e8cd1b5b2149afa0f07b856a96ad8bac972 /configure
parent1c923ad9517ce0ce50806f1348fc861089285b01 (diff)
Merged revisions 298905 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r298905 | tilghman | 2010-12-17 15:40:56 -0600 (Fri, 17 Dec 2010) | 6 lines Let Asterisk find better backtrace information with libbfd. The menuselect option BETTER_BACKTRACES, if enabled, will use libbfd to search for better symbol information within both the Asterisk binary, as well as loaded modules, to assist when using inline backtraces to track down problems. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@298957 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure256
1 files changed, 218 insertions, 38 deletions
diff --git a/configure b/configure
index 83e8d1934..3d3c4379c 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.ac Revision: 298050 .
+# From configure.ac Revision: 298817 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.65 for asterisk 1.6.2.
#
@@ -632,6 +632,7 @@ CONFIG_LIBXML2
GSM_INTERNAL
PBX_DAHDI_HALF_FULL
PKGCONFIG
+PBX_DLADDR
PBX_IP_MTU_DISCOVER
AST_SHADOW_WARNINGS
AST_NO_STRICT_OVERFLOW
@@ -879,10 +880,10 @@ PBX_GSM
GSM_DIR
GSM_INCLUDE
GSM_LIB
-PBX_BKTR
-BKTR_DIR
-BKTR_INCLUDE
-BKTR_LIB
+PBX_FFMPEG
+FFMPEG_DIR
+FFMPEG_INCLUDE
+FFMPEG_LIB
PBX_DAHDI
DAHDI_DIR
DAHDI_INCLUDE
@@ -899,10 +900,14 @@ PBX_CAP
CAP_DIR
CAP_INCLUDE
CAP_LIB
-PBX_FFMPEG
-FFMPEG_DIR
-FFMPEG_INCLUDE
-FFMPEG_LIB
+PBX_BKTR
+BKTR_DIR
+BKTR_INCLUDE
+BKTR_LIB
+PBX_BFD
+BFD_DIR
+BFD_INCLUDE
+BFD_LIB
PBX_ALSA
ALSA_DIR
ALSA_INCLUDE
@@ -1029,12 +1034,13 @@ enable_option_checking
with_gnu_ld
enable_dev_mode
with_asound
-with_avcodec
+with_bfd
+with_execinfo
with_cap
with_curses
with_crypto
with_dahdi
-with_execinfo
+with_avcodec
with_gsm
with_gtk
with_gtk2
@@ -1733,12 +1739,13 @@ Optional Packages:
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
--with-asound=PATH use Advanced Linux Sound Architecture files in PATH
- --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
+ --with-bfd=PATH use Debug symbol decoding files in PATH
+ --with-execinfo=PATH use Stack Backtrace files in PATH
--with-cap=PATH use POSIX 1.e capabilities files in PATH
--with-curses=PATH use curses files in PATH
--with-crypto=PATH use OpenSSL Cryptography files in PATH
--with-dahdi=PATH use DAHDI files in PATH
- --with-execinfo=PATH use Stack Backtrace files in PATH
+ --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
--with-gsm=PATH use External GSM files in PATH , use 'internal' GSM
otherwise
--with-gtk=PATH use gtk files in PATH
@@ -8365,26 +8372,61 @@ fi
- FFMPEG_DESCRIP="Ffmpeg and avcodec"
- FFMPEG_OPTION="avcodec"
- PBX_FFMPEG=0
+ BFD_DESCRIP="Debug symbol decoding"
+ BFD_OPTION="bfd"
+ PBX_BFD=0
-# Check whether --with-avcodec was given.
-if test "${with_avcodec+set}" = set; then :
- withval=$with_avcodec;
+# Check whether --with-bfd was given.
+if test "${with_bfd+set}" = set; then :
+ withval=$with_bfd;
case ${withval} in
n|no)
- USE_FFMPEG=no
+ USE_BFD=no
# -1 is a magic value used by menuselect to know that the package
# was disabled, other than 'not found'
- PBX_FFMPEG=-1
+ PBX_BFD=-1
;;
y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} FFMPEG"
+ ac_mandatory_list="${ac_mandatory_list} BFD"
;;
*)
- FFMPEG_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} FFMPEG"
+ BFD_DIR="${withval}"
+ ac_mandatory_list="${ac_mandatory_list} BFD"
+ ;;
+ esac
+
+fi
+
+
+
+
+
+
+
+
+# BKTR is used for backtrace support on platforms that do not
+# have it natively.
+
+ BKTR_DESCRIP="Stack Backtrace"
+ BKTR_OPTION="execinfo"
+ PBX_BKTR=0
+
+# Check whether --with-execinfo was given.
+if test "${with_execinfo+set}" = set; then :
+ withval=$with_execinfo;
+ case ${withval} in
+ n|no)
+ USE_BKTR=no
+ # -1 is a magic value used by menuselect to know that the package
+ # was disabled, other than 'not found'
+ PBX_BKTR=-1
+ ;;
+ y|ye|yes)
+ ac_mandatory_list="${ac_mandatory_list} BKTR"
+ ;;
+ *)
+ BKTR_DIR="${withval}"
+ ac_mandatory_list="${ac_mandatory_list} BKTR"
;;
esac
@@ -8525,29 +8567,26 @@ fi
-# BKTR is used for backtrace support on platforms that do not
-# have it natively.
-
- BKTR_DESCRIP="Stack Backtrace"
- BKTR_OPTION="execinfo"
- PBX_BKTR=0
+ FFMPEG_DESCRIP="Ffmpeg and avcodec"
+ FFMPEG_OPTION="avcodec"
+ PBX_FFMPEG=0
-# Check whether --with-execinfo was given.
-if test "${with_execinfo+set}" = set; then :
- withval=$with_execinfo;
+# Check whether --with-avcodec was given.
+if test "${with_avcodec+set}" = set; then :
+ withval=$with_avcodec;
case ${withval} in
n|no)
- USE_BKTR=no
+ USE_FFMPEG=no
# -1 is a magic value used by menuselect to know that the package
# was disabled, other than 'not found'
- PBX_BKTR=-1
+ PBX_FFMPEG=-1
;;
y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} BKTR"
+ ac_mandatory_list="${ac_mandatory_list} FFMPEG"
;;
*)
- BKTR_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} BKTR"
+ FFMPEG_DIR="${withval}"
+ ac_mandatory_list="${ac_mandatory_list} FFMPEG"
;;
esac
@@ -15341,6 +15380,41 @@ $as_echo "#define TYPEOF_FD_SET_FDS_BITS long long" >>confdefs.h
fi ; fi ; fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in dlfcn.h" >&5
+$as_echo_n "checking for dladdr in dlfcn.h... " >&6; }
+PBX_DLADDR=0
+old_LIBS=${LIBS}
+LIBS="${LIBS} -ldl"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#define _GNU_SOURCE 1
+#include <dlfcn.h>
+int
+main ()
+{
+dladdr((void *)0, (void *)0)
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ PBX_DLADDR=1
+
+
+$as_echo "#define HAVE_DLADDR 1" >>confdefs.h
+
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=${old_LIBS}
+
# PKGCONFIG is used in later tests
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
@@ -15545,6 +15619,112 @@ fi
+if test "x${PBX_BFD}" != "x1" -a "${USE_BFD}" != "no"; then
+ pbxlibdir=""
+ # if --with-BFD=DIR has been specified, use it.
+ if test "x${BFD_DIR}" != "x"; then
+ if test -d ${BFD_DIR}/lib; then
+ pbxlibdir="-L${BFD_DIR}/lib"
+ else
+ pbxlibdir="-L${BFD_DIR}"
+ fi
+ fi
+ pbxfuncname="bfd_openr"
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_BFD_FOUND=yes
+ else
+ ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
+ CFLAGS="${CFLAGS} "
+ as_ac_Lib=`$as_echo "ac_cv_lib_bfd_${pbxfuncname}" | $as_tr_sh`
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lbfd" >&5
+$as_echo_n "checking for ${pbxfuncname} in -lbfd... " >&6; }
+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"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char ${pbxfuncname} ();
+int
+main ()
+{
+return ${pbxfuncname} ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ eval "$as_ac_Lib=yes"
+else
+ eval "$as_ac_Lib=no"
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+eval ac_res=\$$as_ac_Lib
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+eval as_val=\$$as_ac_Lib
+ if test "x$as_val" = x""yes; then :
+ AST_BFD_FOUND=yes
+else
+ AST_BFD_FOUND=no
+fi
+
+ CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
+ fi
+
+ # now check for the header.
+ if test "${AST_BFD_FOUND}" = "yes"; then
+ BFD_LIB="${pbxlibdir} -lbfd "
+ # if --with-BFD=DIR has been specified, use it.
+ if test "x${BFD_DIR}" != "x"; then
+ BFD_INCLUDE="-I${BFD_DIR}/include"
+ fi
+ BFD_INCLUDE="${BFD_INCLUDE} "
+ if test "xbfd.h" = "x" ; then # no header, assume found
+ BFD_HEADER_FOUND="1"
+ else # check for the header
+ ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
+ CPPFLAGS="${CPPFLAGS} ${BFD_INCLUDE}"
+ ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
+if test "x$ac_cv_header_bfd_h" = x""yes; then :
+ BFD_HEADER_FOUND=1
+else
+ BFD_HEADER_FOUND=0
+fi
+
+
+ CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
+ fi
+ if test "x${BFD_HEADER_FOUND}" = "x0" ; then
+ BFD_LIB=""
+ BFD_INCLUDE=""
+ else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ BFD_LIB=""
+ fi
+ PBX_BFD=1
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_BFD 1
+_ACEOF
+
+ fi
+ fi
+fi
+
+
+
+
if test "x${PBX_CURSES}" != "x1" -a "${USE_CURSES}" != "no"; then
pbxlibdir=""
# if --with-CURSES=DIR has been specified, use it.