summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordsmith <dsmith>2008-01-28 21:15:28 +0000
committerdsmith <dsmith>2008-01-28 21:15:28 +0000
commit564eb0a8ce73a298715c94e02988a29c2064a4ad (patch)
treeb3286dd3cbb5a9639a5c0c24917408120e11795d /configure
parent0f16be729dd58136d9791f6fc5d492f34bbbeeba (diff)
downloadsystemtap-steved-564eb0a8ce73a298715c94e02988a29c2064a4ad.tar.gz
systemtap-steved-564eb0a8ce73a298715c94e02988a29c2064a4ad.tar.xz
systemtap-steved-564eb0a8ce73a298715c94e02988a29c2064a4ad.zip
2008-01-28 David Smith <dsmith@redhat.com>
* configure.ac: Fixed a bug when "--disable-permon" was used. Added "--enable-crash" option. * configure: Regenerated. * Makefile.am: Improved staplog.so compile command. * Makefile.in: Regenerated.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure55
1 files changed, 39 insertions, 16 deletions
diff --git a/configure b/configure
index 0a14c6a5..97e625ac 100755
--- a/configure
+++ b/configure
@@ -706,6 +706,7 @@ U
ANSI2KNR
RANLIB
sqlite3_LIBS
+staplog_CPPFLAGS
BUILD_CRASHMOD_TRUE
BUILD_CRASHMOD_FALSE
BUILD_ELFUTILS_TRUE
@@ -1318,6 +1319,11 @@ Optional Features:
--enable-prologues make -P prologue-searching default
--enable-ssp enable gcc stack-protector
--enable-sqlite build with sqlite support
+ --enable-crash[=DIRECTORY]
+ enable crash extension (default is disabled).
+ Optional DIRECTORY is the path to the crash header
+ file (needed if installed in a non-standard
+ location).
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
@@ -5828,14 +5834,13 @@ fi
# Check whether --enable-perfmon was given.
if test "${enable_perfmon+set}" = set; then
enableval=$enable_perfmon;
- CFLAGS="$CFLAGS -DPERFMON"
- CXXFLAGS="$CXXFLAGS -DPERFMON"
- LIBS="$LIBS -lpfm"
- if test "$enable_perfmon" != "yes"; then
- CFLAGS="$CFLAGS -I$enable_perfmon/include"
- CXXFLAGS="$CXXFLAGS -I$enable_perfmon/include"
- LDFLAGS="$LDFLAGS -L$enable_perfmon/lib"
- fi
+ if test "$enable_perfmon" != "no"; then
+ CPPFLAGS="$CPPFLAGS -DPERFMON"
+ LIBS="$LIBS -lpfm"
+ if test "$enable_perfmon" != "yes"; then
+ CPPFLAGS="$CPPFLAGS -I$enable_perfmon/include"
+ LDFLAGS="$LDFLAGS -L$enable_perfmon/lib"
+ fi
{ echo "$as_me:$LINENO: checking for pfm_start in -lpfm" >&5
echo $ECHO_N "checking for pfm_start in -lpfm... $ECHO_C" >&6; }
@@ -5907,12 +5912,12 @@ _ACEOF
else
- { { echo "$as_me:$LINENO: error: systemtap cannot find required perfmon libs" >&5
-echo "$as_me: error: systemtap cannot find required perfmon libs" >&2;}
+ { { echo "$as_me:$LINENO: error: systemtap cannot find required perfmon libs (libpfm-devel may need to be installed" >&5
+echo "$as_me: error: systemtap cannot find required perfmon libs (libpfm-devel may need to be installed" >&2;}
{ (exit 1); exit 1; }; }
fi
-
+ fi
fi
@@ -6046,6 +6051,15 @@ fi
fi
+# Check whether --enable-crash was given.
+if test "${enable_crash+set}" = set; then
+ enableval=$enable_crash; if test "$enable_crash" != "no"; then
+ save_CPPFLAGS="$CPPFLAGS"
+ if test "$enable_crash" != "yes"; then
+ staplog_CPPFLAGS=-I$enable_crash
+ CPPFLAGS="${staplog_CPPFLAGS} $CPPFLAGS"
+
+ fi
for ac_header in crash/defs.h
do
@@ -6101,14 +6115,22 @@ if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
- build_crashmod=yes
+
else
- build_crashmod=no
+ { { echo "$as_me:$LINENO: error: cannot find required crash header (crash-devel may need to be installed)" >&5
+echo "$as_me: error: cannot find required crash header (crash-devel may need to be installed)" >&2;}
+ { (exit 1); exit 1; }; }
fi
done
- if test $build_crashmod = yes; then
+ CPPFLAGS="$save_CPPFLAGS"
+ fi
+else
+ enable_crash="no"
+fi
+
+ if test "$enable_crash" != "no"; then
BUILD_CRASHMOD_TRUE=
BUILD_CRASHMOD_FALSE='#'
else
@@ -7370,11 +7392,11 @@ U!$U$ac_delim
ANSI2KNR!$ANSI2KNR$ac_delim
RANLIB!$RANLIB$ac_delim
sqlite3_LIBS!$sqlite3_LIBS$ac_delim
+staplog_CPPFLAGS!$staplog_CPPFLAGS$ac_delim
BUILD_CRASHMOD_TRUE!$BUILD_CRASHMOD_TRUE$ac_delim
BUILD_CRASHMOD_FALSE!$BUILD_CRASHMOD_FALSE$ac_delim
BUILD_ELFUTILS_TRUE!$BUILD_ELFUTILS_TRUE$ac_delim
BUILD_ELFUTILS_FALSE!$BUILD_ELFUTILS_FALSE$ac_delim
-elfutils_abs_srcdir!$elfutils_abs_srcdir$ac_delim
_ACEOF
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
@@ -7416,6 +7438,7 @@ _ACEOF
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
cat >conf$$subs.sed <<_ACEOF
+elfutils_abs_srcdir!$elfutils_abs_srcdir$ac_delim
stap_LIBS!$stap_LIBS$ac_delim
DATE!$DATE$ac_delim
PROCFLAGS!$PROCFLAGS$ac_delim
@@ -7425,7 +7448,7 @@ LIBOBJS!$LIBOBJS$ac_delim
LTLIBOBJS!$LTLIBOBJS$ac_delim
_ACEOF
- if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
+ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
break
elif $ac_last_try; then
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5