include libexecinfo for backtraces on other platforms. Not tested & make distcheck is broken atm. I'm heading for beers now

This commit is contained in:
Fish 2007-09-26 07:28:05 +00:00
parent 00dcbe93ce
commit 2d6d55a31a
38 changed files with 1311 additions and 28 deletions

4
.gitattributes vendored
View file

@ -314,6 +314,10 @@ lib/event/poll.c -text
lib/event/rtsig.c -text
lib/event/select.c -text
lib/event/signal.c -text
lib/execinfo/Makefile.am -text
lib/execinfo/Makefile.in -text
lib/execinfo/README -text
lib/execinfo/gen.py -text
lib/nxml/Makefile.am -text
lib/nxml/Makefile.in -text
lib/nxml/mrss.h -text

View file

@ -40,10 +40,10 @@ DIST_COMMON = README $(am__configure_deps) $(dist_bin_SCRIPTS) \
$(dist_data_DATA) $(dist_doc_DATA) $(srcdir)/Makefile.am \
$(srcdir)/Makefile.in $(srcdir)/neostats.in \
$(top_srcdir)/autotools/rules.mk $(top_srcdir)/configure \
AUTHORS COPYING ChangeLog INSTALL NEWS TODO autotools/compile \
autotools/config.guess autotools/config.sub autotools/depcomp \
autotools/install-sh autotools/ltmain.sh autotools/missing \
autotools/mkinstalldirs
$(top_srcdir)/lib/pcre/Makefile.in AUTHORS COPYING ChangeLog \
INSTALL NEWS TODO autotools/compile autotools/config.guess \
autotools/config.sub autotools/depcomp autotools/install-sh \
autotools/ltmain.sh autotools/missing autotools/mkinstalldirs
subdir = .
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/autotools/acinclude.m4 \
@ -60,7 +60,7 @@ am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
configure.lineno configure.status.lineno
mkinstalldirs = $(SHELL) $(top_srcdir)/autotools/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/include/config.h
CONFIG_CLEAN_FILES = neostats
CONFIG_CLEAN_FILES = lib/pcre/Makefile neostats
am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(neodir)" \
"$(DESTDIR)$(datadir)" "$(DESTDIR)$(docdir)"
dist_binSCRIPT_INSTALL = $(INSTALL_SCRIPT)
@ -106,6 +106,7 @@ AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BLD_LIBEXEC = @BLD_LIBEXEC@
BUILD_CURL_FALSE = @BUILD_CURL_FALSE@
BUILD_CURL_TRUE = @BUILD_CURL_TRUE@
BUILD_PCRE_FALSE = @BUILD_PCRE_FALSE@
@ -158,6 +159,7 @@ LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LNK_LIBEXEC = @LNK_LIBEXEC@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@
@ -294,6 +296,8 @@ $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
cd $(srcdir) && $(AUTOCONF)
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
lib/pcre/Makefile: $(top_builddir)/config.status $(top_srcdir)/lib/pcre/Makefile.in
cd $(top_builddir) && $(SHELL) ./config.status $@
neostats: $(top_builddir)/config.status $(srcdir)/neostats.in
cd $(top_builddir) && $(SHELL) ./config.status $@
@ -474,7 +478,7 @@ distclean-tags:
distdir: $(DISTFILES)
$(am__remove_distdir)
mkdir $(distdir)
$(mkdir_p) $(distdir)/. $(distdir)/autotools $(distdir)/doc
$(mkdir_p) $(distdir)/. $(distdir)/autotools $(distdir)/doc $(distdir)/lib/pcre
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
list='$(DISTFILES)'; for file in $$list; do \

39
configure vendored
View file

@ -851,6 +851,8 @@ SED
unamepath
LIBOBJS
POW_LIB
BLD_LIBEXEC
LNK_LIBEXEC
PCRE_LIBS
PCRE_CFLAGS
BUILD_PCRE_TRUE
@ -4480,7 +4482,7 @@ ia64-*-hpux*)
;;
*-*-irix6*)
# Find out which ABI we are using.
echo '#line 4483 "configure"' > conftest.$ac_ext
echo '#line 4485 "configure"' > conftest.$ac_ext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
@ -6341,11 +6343,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:6344: $lt_compile\"" >&5)
(eval echo "\"\$as_me:6346: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:6348: \$? = $ac_status" >&5
echo "$as_me:6350: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@ -6609,11 +6611,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:6612: $lt_compile\"" >&5)
(eval echo "\"\$as_me:6614: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:6616: \$? = $ac_status" >&5
echo "$as_me:6618: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@ -6713,11 +6715,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:6716: $lt_compile\"" >&5)
(eval echo "\"\$as_me:6718: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:6720: \$? = $ac_status" >&5
echo "$as_me:6722: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@ -9165,7 +9167,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
#line 9168 "configure"
#line 9170 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@ -9265,7 +9267,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
#line 9268 "configure"
#line 9270 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@ -15487,14 +15489,22 @@ fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
echo "${ECHO_T}$ac_cv_func_backtrace" >&6; }
if test $ac_cv_func_backtrace = yes; then
LIBS="-g $LIBS"
else
BLD_LIBEXEC="execinfo"
LNK_LIBEXEC="execinfo/libexecinfo.la"
CFLAGS="$CFLAGS -I`pwd`/lib/execinfo/"
LIBS="-g $LIBS"
fi
cat >>confdefs.h <<\_ACEOF
#define HAVE_BACKTRACE 1
_ACEOF
LIBS="-g $LIBS"
fi
@ -26514,7 +26524,7 @@ CFLAGS="$CFLAGS -fno-strict-aliasing"
ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile modules/protocol/Makefile modules/dbm/Makefile modules/dbm/bdb/Makefile modules/dbm/gdbm/Makefile lib/Makefile lib/curl/Makefile lib/pcre/Makefile lib/event/Makefile lib/nxml/Makefile modules/Makefile modules/connectserv/Makefile modules/extauth/Makefile modules/hostserv/Makefile modules/ircdauth/Makefile modules/statserv/Makefile modules/textserv/Makefile modules/quoteserv/Makefile modules/limitserv/Makefile modules/operlog/Makefile modules/dccpartyline/Makefile modules/perltest/Makefile modules/templateauth/Makefile modules/template/Makefile neostats"
ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile modules/protocol/Makefile modules/dbm/Makefile modules/dbm/bdb/Makefile modules/dbm/gdbm/Makefile lib/Makefile lib/curl/Makefile lib/pcre/Makefile lib/event/Makefile lib/nxml/Makefile lib/execinfo/Makefile modules/Makefile modules/connectserv/Makefile modules/extauth/Makefile modules/hostserv/Makefile modules/ircdauth/Makefile modules/statserv/Makefile modules/textserv/Makefile modules/quoteserv/Makefile modules/limitserv/Makefile modules/operlog/Makefile modules/dccpartyline/Makefile modules/perltest/Makefile modules/templateauth/Makefile modules/template/Makefile neostats"
cat >confcache <<\_ACEOF
@ -27223,6 +27233,7 @@ do
"lib/pcre/Makefile") CONFIG_FILES="$CONFIG_FILES lib/pcre/Makefile" ;;
"lib/event/Makefile") CONFIG_FILES="$CONFIG_FILES lib/event/Makefile" ;;
"lib/nxml/Makefile") CONFIG_FILES="$CONFIG_FILES lib/nxml/Makefile" ;;
"lib/execinfo/Makefile") CONFIG_FILES="$CONFIG_FILES lib/execinfo/Makefile" ;;
"modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
"modules/connectserv/Makefile") CONFIG_FILES="$CONFIG_FILES modules/connectserv/Makefile" ;;
"modules/extauth/Makefile") CONFIG_FILES="$CONFIG_FILES modules/extauth/Makefile" ;;
@ -27443,6 +27454,8 @@ SED!$SED$ac_delim
unamepath!$unamepath$ac_delim
LIBOBJS!$LIBOBJS$ac_delim
POW_LIB!$POW_LIB$ac_delim
BLD_LIBEXEC!$BLD_LIBEXEC$ac_delim
LNK_LIBEXEC!$LNK_LIBEXEC$ac_delim
PCRE_LIBS!$PCRE_LIBS$ac_delim
PCRE_CFLAGS!$PCRE_CFLAGS$ac_delim
BUILD_PCRE_TRUE!$BUILD_PCRE_TRUE$ac_delim
@ -27487,7 +27500,7 @@ RDYNAMIC_FLAG!$RDYNAMIC_FLAG$ac_delim
LTLIBOBJS!$LTLIBOBJS$ac_delim
_ACEOF
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 47; then
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 49; then
break
elif $ac_last_try; then
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5

View file

@ -223,9 +223,18 @@ AC_CHECK_FUNCS(strnlen strlcpy strlcat strndup)
dnl backtrace is used for segv reporting
AC_CHECK_FUNC(backtrace,
[AC_DEFINE(HAVE_BACKTRACE, 1, 'backtrace function available')
[LIBS="-g $LIBS"],
[BLD_LIBEXEC="execinfo"
LNK_LIBEXEC="execinfo/libexecinfo.la"
CFLAGS="$CFLAGS -I`pwd`/lib/execinfo/"
LIBS="-g $LIBS"]
)
AC_DEFINE(HAVE_BACKTRACE, 1, 'backtrace function available')
AC_SUBST([BLD_LIBEXEC])
AC_SUBST([LNK_LIBEXEC])
dnl this is needed so function names can be resolved
dnl LDFLAGS="-Wl,--export-dynamic $LDFLAGS"
dnl **** Check for underscore on external symbols ****
@ -457,6 +466,7 @@ AC_CONFIG_FILES([Makefile
lib/pcre/Makefile
lib/event/Makefile
lib/nxml/Makefile
lib/execinfo/Makefile
modules/Makefile
modules/connectserv/Makefile
modules/extauth/Makefile

View file

@ -77,6 +77,7 @@ AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BLD_LIBEXEC = @BLD_LIBEXEC@
BUILD_CURL_FALSE = @BUILD_CURL_FALSE@
BUILD_CURL_TRUE = @BUILD_CURL_TRUE@
BUILD_PCRE_FALSE = @BUILD_PCRE_FALSE@
@ -129,6 +130,7 @@ LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LNK_LIBEXEC = @LNK_LIBEXEC@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@

View file

@ -1,7 +1,8 @@
SUBDIRS = pcre curl event nxml
SUBDIRS = pcre curl event nxml $(BLD_LIBEXEC)
DIST_SUBDIRS = pcre curl event nxml execinfo
lib_LTLIBRARIES = libneostats.la
libneostats_la_SOURCES =
libneostats_la_LIBADD = pcre/libpcre.la nxml/libmrss.la curl/libcurl.la
libneostats_la_LIBADD = pcre/libpcre.la nxml/libmrss.la curl/libcurl.la $(LNK_LIBEXEC)
libneostats_la_LDFLAGS =-version-info 1:0:0
include $(top_srcdir)/autotools/rules.mk

View file

@ -61,8 +61,9 @@ am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
am__installdirs = "$(DESTDIR)$(libdir)"
libLTLIBRARIES_INSTALL = $(INSTALL)
LTLIBRARIES = $(lib_LTLIBRARIES)
am__DEPENDENCIES_1 =
libneostats_la_DEPENDENCIES = pcre/libpcre.la nxml/libmrss.la \
curl/libcurl.la
curl/libcurl.la $(am__DEPENDENCIES_1)
am_libneostats_la_OBJECTS =
libneostats_la_OBJECTS = $(am_libneostats_la_OBJECTS)
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include
@ -82,7 +83,6 @@ RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
uninstall-recursive
ETAGS = etags
CTAGS = ctags
DIST_SUBDIRS = $(SUBDIRS)
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
pkglibdir = $(prefix)/modules
ACLOCAL = @ACLOCAL@
@ -94,6 +94,7 @@ AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BLD_LIBEXEC = @BLD_LIBEXEC@
BUILD_CURL_FALSE = @BUILD_CURL_FALSE@
BUILD_CURL_TRUE = @BUILD_CURL_TRUE@
BUILD_PCRE_FALSE = @BUILD_PCRE_FALSE@
@ -146,6 +147,7 @@ LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LNK_LIBEXEC = @LNK_LIBEXEC@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@
@ -228,10 +230,11 @@ sysconfdir = @sysconfdir@
target_alias = @target_alias@
unamepath = @unamepath@
wi_PWD = @wi_PWD@
SUBDIRS = pcre curl event nxml
SUBDIRS = pcre curl event nxml $(BLD_LIBEXEC)
DIST_SUBDIRS = pcre curl event nxml execinfo
lib_LTLIBRARIES = libneostats.la
libneostats_la_SOURCES =
libneostats_la_LIBADD = pcre/libpcre.la nxml/libmrss.la curl/libcurl.la
libneostats_la_LIBADD = pcre/libpcre.la nxml/libmrss.la curl/libcurl.la $(LNK_LIBEXEC)
libneostats_la_LDFLAGS = -version-info 1:0:0
LINK = $(CCDV) $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(AM_LDFLAGS) $(LDFLAGS) -o $@

View file

@ -107,6 +107,7 @@ AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BLD_LIBEXEC = @BLD_LIBEXEC@
BUILD_CURL_FALSE = @BUILD_CURL_FALSE@
BUILD_CURL_TRUE = @BUILD_CURL_TRUE@
BUILD_PCRE_FALSE = @BUILD_PCRE_FALSE@
@ -159,6 +160,7 @@ LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LNK_LIBEXEC = @LNK_LIBEXEC@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@

View file

@ -93,6 +93,7 @@ AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BLD_LIBEXEC = @BLD_LIBEXEC@
BUILD_CURL_FALSE = @BUILD_CURL_FALSE@
BUILD_CURL_TRUE = @BUILD_CURL_TRUE@
BUILD_PCRE_FALSE = @BUILD_PCRE_FALSE@
@ -145,6 +146,7 @@ LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LNK_LIBEXEC = @LNK_LIBEXEC@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@

5
lib/execinfo/Makefile.am Normal file
View file

@ -0,0 +1,5 @@
noinst_LTLIBRARIES = libexecinfo.la
libexecinfo_la_SOURCES = execinfo.c stacktraverse.c
noinst_HEADERS = execinfo.h stacktraverse.h
include $(top_srcdir)/autotools/rules.mk

602
lib/execinfo/Makefile.in Normal file
View file

@ -0,0 +1,602 @@
# Makefile.in generated by automake 1.9.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ../..
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
INSTALL = @INSTALL@
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
DIST_COMMON = README $(noinst_HEADERS) $(srcdir)/Makefile.am \
$(srcdir)/Makefile.in $(top_srcdir)/autotools/rules.mk
subdir = lib/execinfo
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/autotools/acinclude.m4 \
$(top_srcdir)/autotools/ax_distversion.m4 \
$(top_srcdir)/autotools/ax_maintainer_mode_auto_silent.m4 \
$(top_srcdir)/autotools/ax_path_lib_curl.m4 \
$(top_srcdir)/autotools/ax_path_lib_pcre.m4 \
$(top_srcdir)/autotools/berkeley_db.m4 \
$(top_srcdir)/autotools/ccdv.m4 \
$(top_srcdir)/autotools/libevent.m4 $(top_srcdir)/configure.in
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
mkinstalldirs = $(SHELL) $(top_srcdir)/autotools/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/include/config.h
CONFIG_CLEAN_FILES =
LTLIBRARIES = $(noinst_LTLIBRARIES)
libexecinfo_la_LIBADD =
am_libexecinfo_la_OBJECTS = execinfo.lo stacktraverse.lo
libexecinfo_la_OBJECTS = $(am_libexecinfo_la_OBJECTS)
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include
depcomp = $(SHELL) $(top_srcdir)/autotools/depcomp
am__depfiles_maybe = depfiles
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
SOURCES = $(libexecinfo_la_SOURCES)
DIST_SOURCES = $(libexecinfo_la_SOURCES)
HEADERS = $(noinst_HEADERS)
ETAGS = etags
CTAGS = ctags
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
pkglibdir = $(prefix)/modules
ACLOCAL = @ACLOCAL@
AMDEP_FALSE = @AMDEP_FALSE@
AMDEP_TRUE = @AMDEP_TRUE@
AMTAR = @AMTAR@
AR = @AR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BLD_LIBEXEC = @BLD_LIBEXEC@
BUILD_CURL_FALSE = @BUILD_CURL_FALSE@
BUILD_CURL_TRUE = @BUILD_CURL_TRUE@
BUILD_PCRE_FALSE = @BUILD_PCRE_FALSE@
BUILD_PCRE_TRUE = @BUILD_PCRE_TRUE@
CABUNDLE_FALSE = @CABUNDLE_FALSE@
CABUNDLE_TRUE = @CABUNDLE_TRUE@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CCDV = @CCDV@
CFLAGS = @CFLAGS@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CURL_CA_BUNDLE = @CURL_CA_BUNDLE@
CURL_CFLAGS = @CURL_CFLAGS@
CURL_DISABLE_LDAP = @CURL_DISABLE_LDAP@
CURL_LIBS = @CURL_LIBS@
CYGPATH_W = @CYGPATH_W@
DB_CPPFLAGS = @DB_CPPFLAGS@
DB_LDFLAGS = @DB_LDFLAGS@
DB_LIBS = @DB_LIBS@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DISTDIRVERSION = @DISTDIRVERSION@
DO_BDB_FALSE = @DO_BDB_FALSE@
DO_BDB_TRUE = @DO_BDB_TRUE@
DO_PERL_FALSE = @DO_PERL_FALSE@
DO_PERL_TRUE = @DO_PERL_TRUE@
ECHO = @ECHO@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EVNTLIBOBJS = @EVNTLIBOBJS@
EXEEXT = @EXEEXT@
GREP = @GREP@
HAVE_LIBZ = @HAVE_LIBZ@
HAVE_LIBZ_FALSE = @HAVE_LIBZ_FALSE@
HAVE_LIBZ_TRUE = @HAVE_LIBZ_TRUE@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
IPV6_ENABLED = @IPV6_ENABLED@
LDFLAGS = @LDFLAGS@
LEX = @LEX@
LEXLIB = @LEXLIB@
LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
LIBDB = @LIBDB@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LNK_LIBEXEC = @LNK_LIBEXEC@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@
MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
MAKEINFO = @MAKEINFO@
MODULES = @MODULES@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
PCRE_CFLAGS = @PCRE_CFLAGS@
PCRE_LIBS = @PCRE_LIBS@
PERL_CFLAGS = @PERL_CFLAGS@
PERL_LDFLAGS = @PERL_LDFLAGS@
PKGCONFIG = @PKGCONFIG@
POW_LIB = @POW_LIB@
PROTOCOL = @PROTOCOL@
RANDOM_FILE = @RANDOM_FILE@
RANLIB = @RANLIB@
RDYNAMIC_FLAG = @RDYNAMIC_FLAG@
SED = @SED@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
USECCDV = @USECCDV@
USE_GNUTLS = @USE_GNUTLS@
USE_SSLEAY = @USE_SSLEAY@
VERSION = @VERSION@
YACC = @YACC@
YFLAGS = @YFLAGS@
ac_ct_CC = @ac_ct_CC@
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
datadir = $(prefix)/data
datarootdir = @datarootdir@
docdir = $(prefix)/doc
dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
perlpath = @perlpath@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
sbindir = @sbindir@
sedpath = @sedpath@
sharedstatedir = @sharedstatedir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
unamepath = @unamepath@
wi_PWD = @wi_PWD@
noinst_LTLIBRARIES = libexecinfo.la
libexecinfo_la_SOURCES = execinfo.c stacktraverse.c
noinst_HEADERS = execinfo.h stacktraverse.h
LINK = $(CCDV) $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(AM_LDFLAGS) $(LDFLAGS) -o $@
distdir = @DISTDIRVERSION@
all: all-am
.SUFFIXES:
.SUFFIXES: .c .lo .o .obj
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/autotools/rules.mk $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
&& exit 0; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/execinfo/Makefile'; \
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu lib/execinfo/Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
clean-noinstLTLIBRARIES:
-test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
@list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
test "$$dir" != "$$p" || dir=.; \
echo "rm -f \"$${dir}/so_locations\""; \
rm -f "$${dir}/so_locations"; \
done
libexecinfo.la: $(libexecinfo_la_OBJECTS) $(libexecinfo_la_DEPENDENCIES)
$(LINK) $(libexecinfo_la_LDFLAGS) $(libexecinfo_la_OBJECTS) $(libexecinfo_la_LIBADD) $(LIBS)
mostlyclean-compile:
-rm -f *.$(OBJEXT)
distclean-compile:
-rm -f *.tab.c
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/execinfo.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stacktraverse.Plo@am__quote@
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
distclean-libtool:
-rm -f libtool
uninstall-info-am:
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
mkid -fID $$unique
tags: TAGS
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$tags $$unique; \
fi
ctags: CTAGS
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$tags $$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& cd $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) $$here
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir: $(DISTFILES)
$(mkdir_p) $(distdir)/../../autotools
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
list='$(DISTFILES)'; for file in $$list; do \
case $$file in \
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
esac; \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
dir="/$$dir"; \
$(mkdir_p) "$(distdir)$$dir"; \
else \
dir=''; \
fi; \
if test -d $$d/$$file; then \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
fi; \
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
else \
test -f $(distdir)/$$file \
|| cp -p $$d/$$file $(distdir)/$$file \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile $(LTLIBRARIES) $(HEADERS)
installdirs:
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
clean-generic:
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-am
clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
mostlyclean-am
distclean: distclean-am
-rm -rf ./$(DEPDIR)
-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
distclean-libtool distclean-tags
dvi: dvi-am
dvi-am:
html: html-am
info: info-am
info-am:
install-data-am:
install-exec-am:
install-info: install-info-am
install-man:
installcheck-am:
maintainer-clean: maintainer-clean-am
-rm -rf ./$(DEPDIR)
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
mostlyclean-libtool
pdf: pdf-am
pdf-am:
ps: ps-am
ps-am:
uninstall-am: uninstall-info-am
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
clean-libtool clean-noinstLTLIBRARIES ctags distclean \
distclean-compile distclean-generic distclean-libtool \
distclean-tags distdir dvi dvi-am html html-am info info-am \
install install-am install-data install-data-am install-exec \
install-exec-am install-info install-info-am install-man \
install-strip installcheck installcheck-am installdirs \
maintainer-clean maintainer-clean-generic mostlyclean \
mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
pdf pdf-am ps ps-am tags uninstall uninstall-am \
uninstall-info-am
.c.o:
@USECCDV@ @echo "Building $@"
@am__fastdepCC_TRUE@ @if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
@am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
@am__fastdepCC_TRUE@ fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@ @source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
.c.obj:
@USECCDV@ @echo "Building $@"
@am__fastdepCC_TRUE@ @if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
@am__fastdepCC_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
@am__fastdepCC_TRUE@ fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@ @source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(LTCOMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`
.c.lo:
@USECCDV@ @echo "Building $@"
@am__fastdepCC_TRUE@ @if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
@am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; \
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
@am__fastdepCC_TRUE@ fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@ @source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
install-pkglibLTLIBRARIES: $(pkglib_LTLIBRARIES)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(pkglibdir)
@list='ls .libs/*.so'; for p in $$list; do \
if test -f $$p; then \
f="`echo $$p | sed -e 's|^.*/||'`"; \
$(CCDV) $(LIBTOOL) --mode=install $(pkglibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(pkglibdir)/$$f; \
if test "x#" != "x@USECCDV@"; then echo "Installing $$f"; fi; \
else :; fi; \
done
install-binSCRIPTS: $(bin_SCRIPTS)
@$(NORMAL_INSTALL)
test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
@list='$(bin_SCRIPTS)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
if test -f $$d$$p; then \
f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
$(CCDV) $(binSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(bindir)/$$f"; \
if test "x#" != "x@USECCDV@"; then echo "Installing $$f"; fi; \
else :; fi; \
done
install-dist_binSCRIPTS: $(dist_bin_SCRIPTS)
@$(NORMAL_INSTALL)
test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
@list='$(dist_bin_SCRIPTS)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
if test -f $$d$$p; then \
f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
$(CCDV) $(dist_binSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(bindir)/$$f"; \
if test "x#" != "x@USECCDV@"; then echo "Installing $$f"; fi; \
else :; fi; \
done
install-dist_dataDATA: $(dist_data_DATA)
@$(NORMAL_INSTALL)
test -z "$(datadir)" || $(mkdir_p) "$(DESTDIR)$(datadir)"
@list='$(dist_data_DATA)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
f=$(am__strip_dir) \
$(CCDV) $(dist_dataDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(datadir)/$$f"; \
if test "x#" != "x@USECCDV@"; then echo "Installing $$f"; fi; \
done
install-dist_docDATA: $(dist_doc_DATA)
@$(NORMAL_INSTALL)
test -z "$(docdir)" || $(mkdir_p) "$(DESTDIR)$(docdir)"
@list='$(dist_doc_DATA)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
f=$(am__strip_dir) \
$(CCDV) $(dist_docDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(docdir)/$$f"; \
if test "x#" != "x@USECCDV@"; then echo "Installing $$f"; fi; \
done
install-includeHEADERS: $(include_HEADERS)
@$(NORMAL_INSTALL)
test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
@list='$(include_HEADERS)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
f=$(am__strip_dir) \
$(CCDV) $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
if test "x#" != "x@USECCDV@"; then echo "Installing $$f"; fi; \
done
install-binPROGRAMS: $(bin_PROGRAMS)
@$(NORMAL_INSTALL)
test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
@list='$(bin_PROGRAMS)'; for p in $$list; do \
p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
if test -f $$p \
|| test -f $$p1 \
; then \
f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
$(CCDV) $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
if test "x#" != "x@USECCDV@"; then echo "Installing $$f"; fi; \
else :; fi; \
done
install-libLTLIBRARIES: $(lib_LTLIBRARIES)
@$(NORMAL_INSTALL)
test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
if test -f $$p; then \
f=$(am__strip_dir) \
$(CCDV) $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
if test "x#" != "x@USECCDV@"; then echo "Installing $$f"; fi; \
else :; fi; \
done
install-neoSCRIPTS: $(neo_SCRIPTS)
@$(NORMAL_INSTALL)
test -z "$(neodir)" || $(mkdir_p) "$(DESTDIR)$(neodir)"
@list='$(neo_SCRIPTS)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
if test -f $$d$$p; then \
f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
$(CCDV) $(neoSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(neodir)/$$f"; \
else :; fi; \
done
distcleancheck:
@:
distuninstallcheck:
@:
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

32
lib/execinfo/README Normal file
View file

@ -0,0 +1,32 @@
I. About
This is a quick-n-dirty BSD licensed clone of backtrace facility found
in the GNU libc, mainly intended for porting linuxish code to BSD
platforms, however it can be used at any platform which has a gcc
compiler.
More information about API can be found here:
http://www.gnu.org/software/libc/manual/html_node/Backtraces.html
II. Known limitations
- Depth of stack trace is limited to 128 levels, which should be enough
in most cases, the limit can be increased by editing gen.py and
regenerating stacktraverse.c. The reason for that limitation steams
from the fact that __builtin_return_address() function takes only
constant as an argument, while gcc(1) has problems compiling giant
switch() tables. For example to compile one with 1024 entries gcc(1)
needs more than 1GB of memory (sic!);
- executable have to be linked using `-Wl,--export-dynamic' option,
in order for function names to be displayed properly.
III. Author
Author of this junk is Maxim Sobolev <sobomax@FreeBSD.org>. Any feedback,
patches or suggestions are greatly appreciated.
$Id: README,v 1.2 2004/07/19 05:13:42 sobomax Exp $

160
lib/execinfo/execinfo.c Normal file
View file

@ -0,0 +1,160 @@
/*
* Copyright (c) 2003 Maxim Sobolev <sobomax@FreeBSD.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: execinfo.c,v 1.3 2004/07/19 05:21:09 sobomax Exp $
*/
#include <sys/types.h>
#include <sys/uio.h>
#include <dlfcn.h>
#include <math.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "execinfo.h"
#include "stacktraverse.h"
#define D10(x) ceil(log10(((x) == 0) ? 2 : ((x) + 1)))
inline static void *
realloc_safe(void *ptr, size_t size)
{
void *nptr;
nptr = realloc(ptr, size);
if (nptr == NULL)
free(ptr);
return nptr;
}
int
backtrace(void **buffer, int size)
{
int i;
for (i = 1; getframeaddr(i + 1) != NULL && i != size + 1; i++) {
buffer[i - 1] = getreturnaddr(i);
if (buffer[i - 1] == NULL)
break;
}
return i - 1;
}
char **
backtrace_symbols(void *const *buffer, int size)
{
int i, clen, alen, offset;
char **rval;
char *cp;
Dl_info info;
clen = size * sizeof(char *);
rval = malloc(clen);
if (rval == NULL)
return NULL;
(char **)cp = &(rval[size]);
for (i = 0; i < size; i++) {
if (dladdr(buffer[i], &info) != 0) {
if (info.dli_sname == NULL)
info.dli_sname = "???";
if (info.dli_saddr == NULL)
info.dli_saddr = buffer[i];
offset = buffer[i] - info.dli_saddr;
/* "0x01234567 <function+offset> at filename" */
alen = 2 + /* "0x" */
(sizeof(void *) * 2) + /* "01234567" */
2 + /* " <" */
strlen(info.dli_sname) + /* "function" */
1 + /* "+" */
D10(offset) + /* "offset */
5 + /* "> at " */
strlen(info.dli_fname) + /* "filename" */
1; /* "\0" */
rval = realloc_safe(rval, clen + alen);
if (rval == NULL)
return NULL;
snprintf(cp, alen, "%p <%s+%d> at %s",
buffer[i], info.dli_sname, offset, info.dli_fname);
} else {
alen = 2 + /* "0x" */
(sizeof(void *) * 2) + /* "01234567" */
1; /* "\0" */
rval = realloc_safe(rval, clen + alen);
if (rval == NULL)
return NULL;
snprintf(cp, alen, "%p", buffer[i]);
}
rval[i] = cp;
cp += alen;
}
return rval;
}
void
backtrace_symbols_fd(void *const *buffer, int size, int fd)
{
int i, len, offset;
char *buf;
Dl_info info;
for (i = 0; i < size; i++) {
if (dladdr(buffer[i], &info) != 0) {
if (info.dli_sname == NULL)
info.dli_sname = "???";
if (info.dli_saddr == NULL)
info.dli_saddr = buffer[i];
offset = buffer[i] - info.dli_saddr;
/* "0x01234567 <function+offset> at filename" */
len = 2 + /* "0x" */
(sizeof(void *) * 2) + /* "01234567" */
2 + /* " <" */
strlen(info.dli_sname) + /* "function" */
1 + /* "+" */
D10(offset) + /* "offset */
5 + /* "> at " */
strlen(info.dli_fname) + /* "filename" */
2; /* "\n\0" */
buf = alloca(len);
if (buf == NULL)
return;
snprintf(buf, len, "%p <%s+%d> at %s\n",
buffer[i], info.dli_sname, offset, info.dli_fname);
} else {
len = 2 + /* "0x" */
(sizeof(void *) * 2) + /* "01234567" */
2; /* "\n\0" */
buf = alloca(len);
if (buf == NULL)
return;
snprintf(buf, len, "%p\n", buffer[i]);
}
write(fd, buf, len - 1);
}
}

44
lib/execinfo/execinfo.h Normal file
View file

@ -0,0 +1,44 @@
/*
* Copyright (c) 2003 Maxim Sobolev <sobomax@FreeBSD.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: execinfo.h,v 1.2 2004/07/19 05:20:29 sobomax Exp $
*/
#ifndef _EXECINFO_H_
#define _EXECINFO_H_
#ifdef __cplusplus
extern "C" {
#endif
int backtrace(void **, int);
char ** backtrace_symbols(void *const *, int);
void backtrace_symbols_fd(void *const *, int, int);
#ifdef __cplusplus
}
#endif
#endif /* _EXECINFO_H_ */

43
lib/execinfo/gen.py Executable file
View file

@ -0,0 +1,43 @@
#!/usr/local/bin/python
#
# Copyright (c) 2003 Maxim Sobolev <sobomax@FreeBSD.org>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# $Id: gen.py,v 1.1 2003/08/10 14:47:54 sobomax Exp $
PROLOGUE = '#include <stddef.h>\n\n#include "stacktraverse.h"\n\nvoid *\nget%saddr(int level)\n{\n\n switch(level) {'
BODY = ' case %d: return __builtin_%s_address(%d);'
EPILOGUE = ' default: return NULL;\n }\n}'
MAXDEPTH = 128
def gen(name, maxnum):
print PROLOGUE % name
for i in range(0, maxnum):
print BODY % (i, name, i + 1)
print EPILOGUE
gen("return", MAXDEPTH)
print ''
gen("frame", MAXDEPTH)

View file

@ -0,0 +1,281 @@
#include <stddef.h>
#include "stacktraverse.h"
void *
getreturnaddr(int level)
{
switch(level) {
case 0: return __builtin_return_address(1);
case 1: return __builtin_return_address(2);
case 2: return __builtin_return_address(3);
case 3: return __builtin_return_address(4);
case 4: return __builtin_return_address(5);
case 5: return __builtin_return_address(6);
case 6: return __builtin_return_address(7);
case 7: return __builtin_return_address(8);
case 8: return __builtin_return_address(9);
case 9: return __builtin_return_address(10);
case 10: return __builtin_return_address(11);
case 11: return __builtin_return_address(12);
case 12: return __builtin_return_address(13);
case 13: return __builtin_return_address(14);
case 14: return __builtin_return_address(15);
case 15: return __builtin_return_address(16);
case 16: return __builtin_return_address(17);
case 17: return __builtin_return_address(18);
case 18: return __builtin_return_address(19);
case 19: return __builtin_return_address(20);
case 20: return __builtin_return_address(21);
case 21: return __builtin_return_address(22);
case 22: return __builtin_return_address(23);
case 23: return __builtin_return_address(24);
case 24: return __builtin_return_address(25);
case 25: return __builtin_return_address(26);
case 26: return __builtin_return_address(27);
case 27: return __builtin_return_address(28);
case 28: return __builtin_return_address(29);
case 29: return __builtin_return_address(30);
case 30: return __builtin_return_address(31);
case 31: return __builtin_return_address(32);
case 32: return __builtin_return_address(33);
case 33: return __builtin_return_address(34);
case 34: return __builtin_return_address(35);
case 35: return __builtin_return_address(36);
case 36: return __builtin_return_address(37);
case 37: return __builtin_return_address(38);
case 38: return __builtin_return_address(39);
case 39: return __builtin_return_address(40);
case 40: return __builtin_return_address(41);
case 41: return __builtin_return_address(42);
case 42: return __builtin_return_address(43);
case 43: return __builtin_return_address(44);
case 44: return __builtin_return_address(45);
case 45: return __builtin_return_address(46);
case 46: return __builtin_return_address(47);
case 47: return __builtin_return_address(48);
case 48: return __builtin_return_address(49);
case 49: return __builtin_return_address(50);
case 50: return __builtin_return_address(51);
case 51: return __builtin_return_address(52);
case 52: return __builtin_return_address(53);
case 53: return __builtin_return_address(54);
case 54: return __builtin_return_address(55);
case 55: return __builtin_return_address(56);
case 56: return __builtin_return_address(57);
case 57: return __builtin_return_address(58);
case 58: return __builtin_return_address(59);
case 59: return __builtin_return_address(60);
case 60: return __builtin_return_address(61);
case 61: return __builtin_return_address(62);
case 62: return __builtin_return_address(63);
case 63: return __builtin_return_address(64);
case 64: return __builtin_return_address(65);
case 65: return __builtin_return_address(66);
case 66: return __builtin_return_address(67);
case 67: return __builtin_return_address(68);
case 68: return __builtin_return_address(69);
case 69: return __builtin_return_address(70);
case 70: return __builtin_return_address(71);
case 71: return __builtin_return_address(72);
case 72: return __builtin_return_address(73);
case 73: return __builtin_return_address(74);
case 74: return __builtin_return_address(75);
case 75: return __builtin_return_address(76);
case 76: return __builtin_return_address(77);
case 77: return __builtin_return_address(78);
case 78: return __builtin_return_address(79);
case 79: return __builtin_return_address(80);
case 80: return __builtin_return_address(81);
case 81: return __builtin_return_address(82);
case 82: return __builtin_return_address(83);
case 83: return __builtin_return_address(84);
case 84: return __builtin_return_address(85);
case 85: return __builtin_return_address(86);
case 86: return __builtin_return_address(87);
case 87: return __builtin_return_address(88);
case 88: return __builtin_return_address(89);
case 89: return __builtin_return_address(90);
case 90: return __builtin_return_address(91);
case 91: return __builtin_return_address(92);
case 92: return __builtin_return_address(93);
case 93: return __builtin_return_address(94);
case 94: return __builtin_return_address(95);
case 95: return __builtin_return_address(96);
case 96: return __builtin_return_address(97);
case 97: return __builtin_return_address(98);
case 98: return __builtin_return_address(99);
case 99: return __builtin_return_address(100);
case 100: return __builtin_return_address(101);
case 101: return __builtin_return_address(102);
case 102: return __builtin_return_address(103);
case 103: return __builtin_return_address(104);
case 104: return __builtin_return_address(105);
case 105: return __builtin_return_address(106);
case 106: return __builtin_return_address(107);
case 107: return __builtin_return_address(108);
case 108: return __builtin_return_address(109);
case 109: return __builtin_return_address(110);
case 110: return __builtin_return_address(111);
case 111: return __builtin_return_address(112);
case 112: return __builtin_return_address(113);
case 113: return __builtin_return_address(114);
case 114: return __builtin_return_address(115);
case 115: return __builtin_return_address(116);
case 116: return __builtin_return_address(117);
case 117: return __builtin_return_address(118);
case 118: return __builtin_return_address(119);
case 119: return __builtin_return_address(120);
case 120: return __builtin_return_address(121);
case 121: return __builtin_return_address(122);
case 122: return __builtin_return_address(123);
case 123: return __builtin_return_address(124);
case 124: return __builtin_return_address(125);
case 125: return __builtin_return_address(126);
case 126: return __builtin_return_address(127);
case 127: return __builtin_return_address(128);
default: return NULL;
}
}
#include <stddef.h>
#include "stacktraverse.h"
void *
getframeaddr(int level)
{
switch(level) {
case 0: return __builtin_frame_address(1);
case 1: return __builtin_frame_address(2);
case 2: return __builtin_frame_address(3);
case 3: return __builtin_frame_address(4);
case 4: return __builtin_frame_address(5);
case 5: return __builtin_frame_address(6);
case 6: return __builtin_frame_address(7);
case 7: return __builtin_frame_address(8);
case 8: return __builtin_frame_address(9);
case 9: return __builtin_frame_address(10);
case 10: return __builtin_frame_address(11);
case 11: return __builtin_frame_address(12);
case 12: return __builtin_frame_address(13);
case 13: return __builtin_frame_address(14);
case 14: return __builtin_frame_address(15);
case 15: return __builtin_frame_address(16);
case 16: return __builtin_frame_address(17);
case 17: return __builtin_frame_address(18);
case 18: return __builtin_frame_address(19);
case 19: return __builtin_frame_address(20);
case 20: return __builtin_frame_address(21);
case 21: return __builtin_frame_address(22);
case 22: return __builtin_frame_address(23);
case 23: return __builtin_frame_address(24);
case 24: return __builtin_frame_address(25);
case 25: return __builtin_frame_address(26);
case 26: return __builtin_frame_address(27);
case 27: return __builtin_frame_address(28);
case 28: return __builtin_frame_address(29);
case 29: return __builtin_frame_address(30);
case 30: return __builtin_frame_address(31);
case 31: return __builtin_frame_address(32);
case 32: return __builtin_frame_address(33);
case 33: return __builtin_frame_address(34);
case 34: return __builtin_frame_address(35);
case 35: return __builtin_frame_address(36);
case 36: return __builtin_frame_address(37);
case 37: return __builtin_frame_address(38);
case 38: return __builtin_frame_address(39);
case 39: return __builtin_frame_address(40);
case 40: return __builtin_frame_address(41);
case 41: return __builtin_frame_address(42);
case 42: return __builtin_frame_address(43);
case 43: return __builtin_frame_address(44);
case 44: return __builtin_frame_address(45);
case 45: return __builtin_frame_address(46);
case 46: return __builtin_frame_address(47);
case 47: return __builtin_frame_address(48);
case 48: return __builtin_frame_address(49);
case 49: return __builtin_frame_address(50);
case 50: return __builtin_frame_address(51);
case 51: return __builtin_frame_address(52);
case 52: return __builtin_frame_address(53);
case 53: return __builtin_frame_address(54);
case 54: return __builtin_frame_address(55);
case 55: return __builtin_frame_address(56);
case 56: return __builtin_frame_address(57);
case 57: return __builtin_frame_address(58);
case 58: return __builtin_frame_address(59);
case 59: return __builtin_frame_address(60);
case 60: return __builtin_frame_address(61);
case 61: return __builtin_frame_address(62);
case 62: return __builtin_frame_address(63);
case 63: return __builtin_frame_address(64);
case 64: return __builtin_frame_address(65);
case 65: return __builtin_frame_address(66);
case 66: return __builtin_frame_address(67);
case 67: return __builtin_frame_address(68);
case 68: return __builtin_frame_address(69);
case 69: return __builtin_frame_address(70);
case 70: return __builtin_frame_address(71);
case 71: return __builtin_frame_address(72);
case 72: return __builtin_frame_address(73);
case 73: return __builtin_frame_address(74);
case 74: return __builtin_frame_address(75);
case 75: return __builtin_frame_address(76);
case 76: return __builtin_frame_address(77);
case 77: return __builtin_frame_address(78);
case 78: return __builtin_frame_address(79);
case 79: return __builtin_frame_address(80);
case 80: return __builtin_frame_address(81);
case 81: return __builtin_frame_address(82);
case 82: return __builtin_frame_address(83);
case 83: return __builtin_frame_address(84);
case 84: return __builtin_frame_address(85);
case 85: return __builtin_frame_address(86);
case 86: return __builtin_frame_address(87);
case 87: return __builtin_frame_address(88);
case 88: return __builtin_frame_address(89);
case 89: return __builtin_frame_address(90);
case 90: return __builtin_frame_address(91);
case 91: return __builtin_frame_address(92);
case 92: return __builtin_frame_address(93);
case 93: return __builtin_frame_address(94);
case 94: return __builtin_frame_address(95);
case 95: return __builtin_frame_address(96);
case 96: return __builtin_frame_address(97);
case 97: return __builtin_frame_address(98);
case 98: return __builtin_frame_address(99);
case 99: return __builtin_frame_address(100);
case 100: return __builtin_frame_address(101);
case 101: return __builtin_frame_address(102);
case 102: return __builtin_frame_address(103);
case 103: return __builtin_frame_address(104);
case 104: return __builtin_frame_address(105);
case 105: return __builtin_frame_address(106);
case 106: return __builtin_frame_address(107);
case 107: return __builtin_frame_address(108);
case 108: return __builtin_frame_address(109);
case 109: return __builtin_frame_address(110);
case 110: return __builtin_frame_address(111);
case 111: return __builtin_frame_address(112);
case 112: return __builtin_frame_address(113);
case 113: return __builtin_frame_address(114);
case 114: return __builtin_frame_address(115);
case 115: return __builtin_frame_address(116);
case 116: return __builtin_frame_address(117);
case 117: return __builtin_frame_address(118);
case 118: return __builtin_frame_address(119);
case 119: return __builtin_frame_address(120);
case 120: return __builtin_frame_address(121);
case 121: return __builtin_frame_address(122);
case 122: return __builtin_frame_address(123);
case 123: return __builtin_frame_address(124);
case 124: return __builtin_frame_address(125);
case 125: return __builtin_frame_address(126);
case 126: return __builtin_frame_address(127);
case 127: return __builtin_frame_address(128);
default: return NULL;
}
}

View file

@ -0,0 +1,35 @@
/*
* Copyright (c) 2003 Maxim Sobolev <sobomax@FreeBSD.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: stacktraverse.h,v 1.1 2003/08/10 14:47:54 sobomax Exp $
*/
#ifndef _STACKTRAVERSE_H_
#define _STACKTRAVERSE_H_
void *getreturnaddr(int);
void *getframeaddr(int);
#endif /* _STACKTRAVERSE_H_ */

View file

@ -96,6 +96,7 @@ AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BLD_LIBEXEC = @BLD_LIBEXEC@
BUILD_CURL_FALSE = @BUILD_CURL_FALSE@
BUILD_CURL_TRUE = @BUILD_CURL_TRUE@
BUILD_PCRE_FALSE = @BUILD_PCRE_FALSE@
@ -148,6 +149,7 @@ LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LNK_LIBEXEC = @LNK_LIBEXEC@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@

View file

@ -73,6 +73,7 @@ AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BLD_LIBEXEC = @BLD_LIBEXEC@
BUILD_CURL_FALSE = @BUILD_CURL_FALSE@
BUILD_CURL_TRUE = @BUILD_CURL_TRUE@
BUILD_PCRE_FALSE = @BUILD_PCRE_FALSE@
@ -125,6 +126,7 @@ LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LNK_LIBEXEC = @LNK_LIBEXEC@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@

View file

@ -1,5 +1,5 @@
pkglib_LTLIBRARIES = connectserv.la
connectserv_la_SOURCES = cs.c cs.h cs_help.c
connectserv_la_LDFLAGS = -module -avoid-version
connectserv_la_LDFLAGS = -module -avoid-version --export-dynamic
AM_CFLAGS = -I$(top_srcdir)/include @PCRE_CFLAGS@ @CURL_CFLAGS@
include $(top_srcdir)/autotools/rules.mk

View file

@ -88,6 +88,7 @@ AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BLD_LIBEXEC = @BLD_LIBEXEC@
BUILD_CURL_FALSE = @BUILD_CURL_FALSE@
BUILD_CURL_TRUE = @BUILD_CURL_TRUE@
BUILD_PCRE_FALSE = @BUILD_PCRE_FALSE@
@ -140,6 +141,7 @@ LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LNK_LIBEXEC = @LNK_LIBEXEC@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@
@ -224,7 +226,7 @@ unamepath = @unamepath@
wi_PWD = @wi_PWD@
pkglib_LTLIBRARIES = connectserv.la
connectserv_la_SOURCES = cs.c cs.h cs_help.c
connectserv_la_LDFLAGS = -module -avoid-version
connectserv_la_LDFLAGS = -module -avoid-version --export-dynamic
AM_CFLAGS = -I$(top_srcdir)/include @PCRE_CFLAGS@ @CURL_CFLAGS@
LINK = $(CCDV) $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(AM_LDFLAGS) $(LDFLAGS) -o $@

View file

@ -92,6 +92,7 @@ AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BLD_LIBEXEC = @BLD_LIBEXEC@
BUILD_CURL_FALSE = @BUILD_CURL_FALSE@
BUILD_CURL_TRUE = @BUILD_CURL_TRUE@
BUILD_PCRE_FALSE = @BUILD_PCRE_FALSE@
@ -144,6 +145,7 @@ LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LNK_LIBEXEC = @LNK_LIBEXEC@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@

View file

@ -88,6 +88,7 @@ AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BLD_LIBEXEC = @BLD_LIBEXEC@
BUILD_CURL_FALSE = @BUILD_CURL_FALSE@
BUILD_CURL_TRUE = @BUILD_CURL_TRUE@
BUILD_PCRE_FALSE = @BUILD_PCRE_FALSE@
@ -140,6 +141,7 @@ LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LNK_LIBEXEC = @LNK_LIBEXEC@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@

View file

@ -94,6 +94,7 @@ AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BLD_LIBEXEC = @BLD_LIBEXEC@
BUILD_CURL_FALSE = @BUILD_CURL_FALSE@
BUILD_CURL_TRUE = @BUILD_CURL_TRUE@
BUILD_PCRE_FALSE = @BUILD_PCRE_FALSE@
@ -146,6 +147,7 @@ LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LNK_LIBEXEC = @LNK_LIBEXEC@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@

View file

@ -88,6 +88,7 @@ AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BLD_LIBEXEC = @BLD_LIBEXEC@
BUILD_CURL_FALSE = @BUILD_CURL_FALSE@
BUILD_CURL_TRUE = @BUILD_CURL_TRUE@
BUILD_PCRE_FALSE = @BUILD_PCRE_FALSE@
@ -140,6 +141,7 @@ LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LNK_LIBEXEC = @LNK_LIBEXEC@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@

View file

@ -88,6 +88,7 @@ AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BLD_LIBEXEC = @BLD_LIBEXEC@
BUILD_CURL_FALSE = @BUILD_CURL_FALSE@
BUILD_CURL_TRUE = @BUILD_CURL_TRUE@
BUILD_PCRE_FALSE = @BUILD_PCRE_FALSE@
@ -140,6 +141,7 @@ LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LNK_LIBEXEC = @LNK_LIBEXEC@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@

View file

@ -88,6 +88,7 @@ AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BLD_LIBEXEC = @BLD_LIBEXEC@
BUILD_CURL_FALSE = @BUILD_CURL_FALSE@
BUILD_CURL_TRUE = @BUILD_CURL_TRUE@
BUILD_PCRE_FALSE = @BUILD_PCRE_FALSE@
@ -140,6 +141,7 @@ LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LNK_LIBEXEC = @LNK_LIBEXEC@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@

View file

@ -88,6 +88,7 @@ AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BLD_LIBEXEC = @BLD_LIBEXEC@
BUILD_CURL_FALSE = @BUILD_CURL_FALSE@
BUILD_CURL_TRUE = @BUILD_CURL_TRUE@
BUILD_PCRE_FALSE = @BUILD_PCRE_FALSE@
@ -140,6 +141,7 @@ LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LNK_LIBEXEC = @LNK_LIBEXEC@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@

View file

@ -88,6 +88,7 @@ AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BLD_LIBEXEC = @BLD_LIBEXEC@
BUILD_CURL_FALSE = @BUILD_CURL_FALSE@
BUILD_CURL_TRUE = @BUILD_CURL_TRUE@
BUILD_PCRE_FALSE = @BUILD_PCRE_FALSE@
@ -140,6 +141,7 @@ LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LNK_LIBEXEC = @LNK_LIBEXEC@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@

View file

@ -88,6 +88,7 @@ AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BLD_LIBEXEC = @BLD_LIBEXEC@
BUILD_CURL_FALSE = @BUILD_CURL_FALSE@
BUILD_CURL_TRUE = @BUILD_CURL_TRUE@
BUILD_PCRE_FALSE = @BUILD_PCRE_FALSE@
@ -140,6 +141,7 @@ LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LNK_LIBEXEC = @LNK_LIBEXEC@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@

View file

@ -90,6 +90,7 @@ AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BLD_LIBEXEC = @BLD_LIBEXEC@
BUILD_CURL_FALSE = @BUILD_CURL_FALSE@
BUILD_CURL_TRUE = @BUILD_CURL_TRUE@
BUILD_PCRE_FALSE = @BUILD_PCRE_FALSE@
@ -142,6 +143,7 @@ LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LNK_LIBEXEC = @LNK_LIBEXEC@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@

View file

@ -139,6 +139,7 @@ AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BLD_LIBEXEC = @BLD_LIBEXEC@
BUILD_CURL_FALSE = @BUILD_CURL_FALSE@
BUILD_CURL_TRUE = @BUILD_CURL_TRUE@
BUILD_PCRE_FALSE = @BUILD_PCRE_FALSE@
@ -191,6 +192,7 @@ LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LNK_LIBEXEC = @LNK_LIBEXEC@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@

View file

@ -91,6 +91,7 @@ AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BLD_LIBEXEC = @BLD_LIBEXEC@
BUILD_CURL_FALSE = @BUILD_CURL_FALSE@
BUILD_CURL_TRUE = @BUILD_CURL_TRUE@
BUILD_PCRE_FALSE = @BUILD_PCRE_FALSE@
@ -143,6 +144,7 @@ LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LNK_LIBEXEC = @LNK_LIBEXEC@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@

View file

@ -93,6 +93,7 @@ AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BLD_LIBEXEC = @BLD_LIBEXEC@
BUILD_CURL_FALSE = @BUILD_CURL_FALSE@
BUILD_CURL_TRUE = @BUILD_CURL_TRUE@
BUILD_PCRE_FALSE = @BUILD_PCRE_FALSE@
@ -145,6 +146,7 @@ LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LNK_LIBEXEC = @LNK_LIBEXEC@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@

View file

@ -88,6 +88,7 @@ AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BLD_LIBEXEC = @BLD_LIBEXEC@
BUILD_CURL_FALSE = @BUILD_CURL_FALSE@
BUILD_CURL_TRUE = @BUILD_CURL_TRUE@
BUILD_PCRE_FALSE = @BUILD_PCRE_FALSE@
@ -140,6 +141,7 @@ LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LNK_LIBEXEC = @LNK_LIBEXEC@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@

View file

@ -88,6 +88,7 @@ AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BLD_LIBEXEC = @BLD_LIBEXEC@
BUILD_CURL_FALSE = @BUILD_CURL_FALSE@
BUILD_CURL_TRUE = @BUILD_CURL_TRUE@
BUILD_PCRE_FALSE = @BUILD_PCRE_FALSE@
@ -140,6 +141,7 @@ LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LNK_LIBEXEC = @LNK_LIBEXEC@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@

View file

@ -91,6 +91,7 @@ AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BLD_LIBEXEC = @BLD_LIBEXEC@
BUILD_CURL_FALSE = @BUILD_CURL_FALSE@
BUILD_CURL_TRUE = @BUILD_CURL_TRUE@
BUILD_PCRE_FALSE = @BUILD_PCRE_FALSE@
@ -143,6 +144,7 @@ LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LNK_LIBEXEC = @LNK_LIBEXEC@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@

View file

@ -120,6 +120,7 @@ AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BLD_LIBEXEC = @BLD_LIBEXEC@
BUILD_CURL_FALSE = @BUILD_CURL_FALSE@
BUILD_CURL_TRUE = @BUILD_CURL_TRUE@
BUILD_PCRE_FALSE = @BUILD_PCRE_FALSE@
@ -172,6 +173,7 @@ LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LNK_LIBEXEC = @LNK_LIBEXEC@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@