[Ltrace-devel] [PATCH 9/9] Change --enable-libunwind back to --with-libunwind

Zachary T Welch zwelch at codesourcery.com
Fri Nov 5 22:03:05 UTC 2010


Allows libunwind to be installed in non-standard locations.

Signed-off-by: Zachary T Welch <zwelch at codesourcery.com>
---
 configure.ac |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index fe5d6fd..8e82a7e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -61,9 +61,15 @@ AC_SUBST(libsupcxx_LIBS)
 
 
 # HAVE_LIBUNWIND
-AC_ARG_ENABLE(libunwind,
+AC_ARG_WITH(libunwind,
   AS_HELP_STRING([--enable-libunwind], [Use libunwind frame unwinding support]),
-  [],[enable_libunwind=maybe])
+  [case "${withval}" in
+  (yes|no) enable_libunwind=$withval;;
+  (*) enable_libunwind=yes
+    CPPFLAGS="-I${withval}/include"
+    LDFLAGS="-L${withval}/lib"
+    ;;
+esac],[enable_libunwind=maybe])
 
 AC_CHECK_HEADERS([libunwind.h], [have_libunwind_h=yes])
 AC_CHECK_HEADERS([libunwind-ptrace.h], [have_libunwind_ptrace_h=yes])
-- 
1.7.2.2




More information about the Ltrace-devel mailing list