From efa6ba96ac868b9f6e8935b8465267ff762891ed Mon Sep 17 00:00:00 2001 From: Przemyslaw Pawelczyk Date: Mon, 22 Feb 2010 02:05:59 +0100 Subject: Check for/build elfutils iff translator is enabled. * configure.ac: Don't bother with elfutils if $enable_translator = no. --- configure | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'configure') diff --git a/configure b/configure index a2f0a78c..e032e262 100755 --- a/configure +++ b/configure @@ -8654,9 +8654,10 @@ fi ` -if test $build_elfutils = no; then - # Need libdwfl-capable recent elfutils http://elfutils.fedorahosted.org/ - save_LIBS="$LIBS" +if test $enable_translator = yes; then + if test $build_elfutils = no; then + # Need libdwfl-capable recent elfutils http://elfutils.fedorahosted.org/ + save_LIBS="$LIBS" { $as_echo "$as_me:$LINENO: checking for dwfl_module_getsym in -ldw" >&5 $as_echo_n "checking for dwfl_module_getsym in -ldw... " >&6; } @@ -8732,7 +8733,7 @@ _ACEOF else - { { $as_echo "$as_me:$LINENO: error: missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" >&5 + { { $as_echo "$as_me:$LINENO: error: missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" >&5 $as_echo "$as_me: error: missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" >&2;} { (exit 1); exit 1; }; } fi @@ -8812,16 +8813,17 @@ _ACEOF else - { { $as_echo "$as_me:$LINENO: error: elfutils, libdw too old, need 0.126+" >&5 + { { $as_echo "$as_me:$LINENO: error: elfutils, libdw too old, need 0.126+" >&5 $as_echo "$as_me: error: elfutils, libdw too old, need 0.126+" >&2;} { (exit 1); exit 1; }; } fi - stap_LIBS="-Wl,--start-group -ldw -lebl -Wl,--end-group -lelf" - LIBS="$save_LIBS" -else - # We built our own and stap_LDFLAGS points at the install. - stap_LIBS="-Wl,--start-group -ldw -lebl -Wl,--end-group -lelf" + stap_LIBS="-Wl,--start-group -ldw -lebl -Wl,--end-group -lelf" + LIBS="$save_LIBS" + else + # We built our own and stap_LDFLAGS points at the install. + stap_LIBS="-Wl,--start-group -ldw -lebl -Wl,--end-group -lelf" + fi fi @@ -9309,7 +9311,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test $build_elfutils = yes; then +if test $build_elfutils = yes -a $enable_translator = yes; then case "$with_elfutils" in /*) elfutils_srcdir="$with_elfutils" ;; *) elfutils_srcdir="../$with_elfutils" ;; -- cgit