From: Date: Fri, 28 May 2010 03:45:27 +0000 (+0000) Subject: Improve libunwind detection. X-Git-Tag: accepted/tizen/5.0/unified/20181102.024921~152 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f31f51085c0bc0e4f61880d6032128afc31b1199;p=platform%2Fupstream%2Fglog.git Improve libunwind detection. http://code.google.com/p/google-glog/issues/detail?id=42 git-svn-id: https://google-glog.googlecode.com/svn/trunk@84 eb4d4688-79bd-11dd-afb4-1d65580434c0 --- diff --git a/configure b/configure index 7b0c1c4..f97f9dc 100755 --- a/configure +++ b/configure @@ -21133,7 +21133,9 @@ if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF - + ac_cv_have_libunwind_h=1 +else + ac_cv_have_libunwind_h=0 fi done diff --git a/configure.ac b/configure.ac index 34436df..13a2681 100644 --- a/configure.ac +++ b/configure.ac @@ -36,7 +36,7 @@ AC_CHECK_HEADERS(sys/syscall.h) # For backtrace with glibc. AC_CHECK_HEADERS(execinfo.h) # For backtrace with libunwind. -AC_CHECK_HEADERS(libunwind.h) +AC_CHECK_HEADERS(libunwind.h, ac_cv_have_libunwind_h=1, ac_cv_have_libunwind_h=0) AC_CHECK_HEADERS(ucontext.h) AC_CHECK_HEADERS(sys/utsname.h) AC_CHECK_HEADERS(pwd.h)