diff options
author | Jason Evans <je@facebook.com> | 2010-10-07 18:59:12 (GMT) |
---|---|---|
committer | Jason Evans <je@facebook.com> | 2010-10-07 18:59:12 (GMT) |
commit | ac6f3c2bb510754a52642b2a3440d009164916da (patch) | |
tree | d94fc55ac309fc6354de255bea06310f01ec6cba /jemalloc/configure.ac | |
parent | 9f3b0a74fdaac6fa5eb8b5a875b8901bc56b2f5e (diff) | |
download | jemalloc-ac6f3c2bb510754a52642b2a3440d009164916da.zip jemalloc-ac6f3c2bb510754a52642b2a3440d009164916da.tar.gz jemalloc-ac6f3c2bb510754a52642b2a3440d009164916da.tar.bz2 |
Re-organize prof-libgcc configuration.
Re-organize code for --enable-prof-libgcc so that configure doesn't
report both libgcc and libunwind support as being configured in. This
change has no impact on how jemalloc is actually configured/built.
Diffstat (limited to 'jemalloc/configure.ac')
-rw-r--r-- | jemalloc/configure.ac | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/jemalloc/configure.ac b/jemalloc/configure.ac index 687cafc..b27955d 100644 --- a/jemalloc/configure.ac +++ b/jemalloc/configure.ac @@ -437,13 +437,16 @@ AC_SUBST([roff_no_prof]) dnl If libunwind isn't enabled, try to use libgcc rather than gcc intrinsics dnl for backtracing. -if test "x$enable_prof" = "x1" -a "x$enable_prof_libunwind" = "x0" \ - -a "x$GCC" = "xyes" -a "x$enable_prof_libgcc" = "x1" ; then - enable_prof_libgcc="1" - AC_CHECK_HEADERS([unwind.h], , [enable_prof_libgcc="0"]) - AC_CHECK_LIB([gcc], [_Unwind_Backtrace], [LIBS="$LIBS -lgcc"], [enable_prof_libgcc="0"]) - if test "x${enable_prof_libgcc}" = "x1" ; then - AC_DEFINE([JEMALLOC_PROF_LIBGCC], [ ]) +if test "x$enable_prof" = "x1" -a "x$enable_prof_libgcc" = "x1" ; then + if test "x$enable_prof_libunwind" = "x0" -a "x$GCC" = "xyes" ; then + enable_prof_libgcc="1" + AC_CHECK_HEADERS([unwind.h], , [enable_prof_libgcc="0"]) + AC_CHECK_LIB([gcc], [_Unwind_Backtrace], [LIBS="$LIBS -lgcc"], [enable_prof_libgcc="0"]) + if test "x${enable_prof_libgcc}" = "x1" ; then + AC_DEFINE([JEMALLOC_PROF_LIBGCC], [ ]) + fi + else + enable_prof_libgcc="0" fi fi |