aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-21 21:30:24 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-21 21:30:24 +0000
commit971fcdc9ff2fc6420e7a78e8ad573f868a389a52 (patch)
tree3956f501f210d6e189034f8ce1bab5181986a22b
parenta1c19a6b5c854f7f4682fd7856639a541a50c9a5 (diff)
enable support for stack backtrace for stuff built in utils/
(this was present in the main tree but forgotten here). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89506 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xconfigure6
-rw-r--r--configure.ac2
-rw-r--r--utils/Makefile2
3 files changed, 6 insertions, 4 deletions
diff --git a/configure b/configure
index 7f62553ae..deb772f2a 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.ac Revision: 89472 .
+# From configure.ac Revision: 89475 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61.
#
@@ -34749,7 +34749,7 @@ if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lexecinfo ${pbxlibdir} -lexecinfo $LIBS"
+LIBS="-lexecinfo ${pbxlibdir} $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -34815,7 +34815,7 @@ fi
# now check for the header.
if test "${AST_BKTR_FOUND}" = "yes"; then
- BKTR_LIB="${pbxlibdir} -lexecinfo -lexecinfo"
+ BKTR_LIB="${pbxlibdir} -lexecinfo "
# if --with-BKTR=DIR has been specified, use it.
if test "x${BKTR_DIR}" != "x"; then
BKTR_INCLUDE="-I${BKTR_DIR}/include"
diff --git a/configure.ac b/configure.ac
index bc8fe5502..828722c11 100644
--- a/configure.ac
+++ b/configure.ac
@@ -861,7 +861,7 @@ AST_EXT_LIB_CHECK([UNIXODBC], [odbc], [SQLConnect], [sql.h], [])
AST_EXT_LIB_CHECK([OGG], [ogg], [ogg_sync_init], [])
-AST_EXT_LIB_CHECK([BKTR], [execinfo], [backtrace], [execinfo.h], [-lexecinfo])
+AST_EXT_LIB_CHECK([BKTR], [execinfo], [backtrace], [execinfo.h])
# possible places for oss definitions
AST_EXT_LIB_CHECK([OSS], [ossaudio], [], [linux/soundcard.h])
diff --git a/utils/Makefile b/utils/Makefile
index 95fcee186..4ae97d3ab 100644
--- a/utils/Makefile
+++ b/utils/Makefile
@@ -19,6 +19,8 @@
ALL_UTILS:=astman smsq stereorize streamplayer aelparse muted check_expr conf2ael hashtest2 hashtest
UTILS:=$(ALL_UTILS)
+LIBS += $(BKTR_LIB) # astobj2 with devmode uses backtrace
+
include $(ASTTOPDIR)/Makefile.rules
ifeq ($(OSARCH),SunOS)