[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Libunwind-devel] [PATCH 10/17] configure: use AC_ARG_ENABLE(arg, text,
From: |
Cody P Schafer |
Subject: |
[Libunwind-devel] [PATCH 10/17] configure: use AC_ARG_ENABLE(arg, text, , custom-act) |
Date: |
Fri, 14 Sep 2012 17:11:55 -0700 |
Instead of explicitly specifying "[enable_$arg=$enablearg]", use an
empty parameter to get autoconf's default (which is identical).
---
configure.in | 20 ++++++++------------
1 file changed, 8 insertions(+), 12 deletions(-)
diff --git a/configure.in b/configure.in
index 9ecc479..22c22df 100644
--- a/configure.in
+++ b/configure.in
@@ -102,8 +102,7 @@ SET_ARCH([$host_cpu],[host_arch])
SET_ARCH([$target_cpu],[target_arch])
AC_ARG_ENABLE(coredump,
- AS_HELP_STRING([--enable-coredump],[building libunwind-coredump
library]),
- [enable_coredump=$enableval],
+ AS_HELP_STRING([--enable-coredump],[building libunwind-coredump
library]),,
[AS_CASE([$host_arch], [x86*], [enable_coredump=yes],
[enable_coredump=no])]
)
@@ -180,8 +179,7 @@ AC_MSG_RESULT([$enable_debug])
AC_MSG_CHECKING([whether to enable C++ exception support])
AC_ARG_ENABLE(cxx_exceptions,
-AS_HELP_STRING([--enable-cxx-exceptions],[use libunwind to handle C++
exceptions]),
-[enable_cxx_exceptions=$enableval],
+AS_HELP_STRING([--enable-cxx-exceptions],[use libunwind to handle C++
exceptions]),,
[
# C++ exception handling doesn't work too well on x86
case $target_arch in
@@ -197,8 +195,7 @@ AC_MSG_RESULT([$enable_cxx_exceptions])
AC_MSG_CHECKING([whether to load .debug_frame sections])
AC_ARG_ENABLE(debug_frame,
-AS_HELP_STRING([--enable-debug-frame],[Load the ".debug_frame" section if
available]),
-[enable_debug_frame=$enableval], [
+AS_HELP_STRING([--enable-debug-frame],[Load the ".debug_frame" section if
available]),, [
case "${target_arch}" in
(arm) enable_debug_frame=yes;;
(*) enable_debug_frame=no;;
@@ -210,8 +207,8 @@ AC_MSG_RESULT([$enable_debug_frame])
AC_MSG_CHECKING([whether to block signals during mutex ops])
AC_ARG_ENABLE(block_signals,
-AS_HELP_STRING([--enable-block-signals],[Block signals before performing mutex
operations]),
-[enable_block_signals=$enableval], [enable_block_signals=yes])
+AS_HELP_STRING([--enable-block-signals],[Block signals before performing mutex
operations]),,
+[enable_block_signals=yes])
if test x$enable_block_signals = xyes; then
AC_DEFINE([CONFIG_BLOCK_SIGNALS], [], [Block signals before mutex
operations])
fi
@@ -219,8 +216,8 @@ AC_MSG_RESULT([$enable_block_signals])
AC_MSG_CHECKING([whether to validate memory addresses before use])
AC_ARG_ENABLE(conservative_checks,
-AS_HELP_STRING([--enable-conservative-checks],[Validate all memory addresses
before use]),
-[enable_conservative_checks=$enableval], [enable_conservative_checks=yes])
+AS_HELP_STRING([--enable-conservative-checks],[Validate all memory addresses
before use]),,
+[enable_conservative_checks=yes])
if test x$enable_conservative_checks = xyes; then
AC_DEFINE(CONSERVATIVE_CHECKS, 1,
[Define to 1 if you want every memory access validated])
@@ -237,8 +234,7 @@ AC_MSG_RESULT([$enable_msabi_support])
AC_MSG_CHECKING([whether to support LZMA-compressed symbol tables])
AC_ARG_ENABLE(minidebuginfo,
-AS_HELP_STRING([--enable-minidebuginfo], [Enables support for LZMA-compressed
symbol tables]),
-[enable_minidebuginfo=$enableval], [enable_minidebuginfo=auto])
+AS_HELP_STRING([--enable-minidebuginfo], [Enables support for LZMA-compressed
symbol tables]),, [enable_minidebuginfo=auto])
AC_MSG_RESULT([$enable_minidebuginfo])
if test x$enable_minidebuginfo != xno; then
AC_CHECK_LIB([lzma], [lzma_mf_is_supported],
--
1.7.11.3
- [Libunwind-devel] [PATCH 16/17] ptrace: check for NULL arg., (continued)
- [Libunwind-devel] [PATCH 16/17] ptrace: check for NULL arg., Cody P Schafer, 2012/09/14
- [Libunwind-devel] [PATCH 14/17] configure: rename configure.in to configure.ac, Cody P Schafer, 2012/09/14
- [Libunwind-devel] [PATCH 11/17] UPT: Add reg offsets for ppc32/64, Cody P Schafer, 2012/09/14
- [Libunwind-devel] [PATCH 12/17] ppc64: be explicit in access_reg range check, Cody P Schafer, 2012/09/14
- [Libunwind-devel] [PATCH 17/17] ptrace: add more Debug to access_reg, Cody P Schafer, 2012/09/14
- [Libunwind-devel] [PATCH 13/17] ppc64: add FRAME_POINTER & NIP to regname., Cody P Schafer, 2012/09/14
- [Libunwind-devel] [PATCH 15/17] ptrace/access_reg: print out register name on "bad register", Cody P Schafer, 2012/09/14
- [Libunwind-devel] [PATCH 10/17] configure: use AC_ARG_ENABLE(arg, text, , custom-act),
Cody P Schafer <=
- [Libunwind-devel] [PATCH 03/17] ppc32: add UNUSED attribute to dmy_ctxt, Cody P Schafer, 2012/09/14
- [Libunwind-devel] [PATCH 09/17] configure: use AC_ARG_ENABLE's defaults when possible, Cody P Schafer, 2012/09/14