From: Mark Wooding Date: Thu, 12 Sep 2019 19:18:09 +0000 (+0100) Subject: configure.ac: Move `asm-debug' after we've finished CPU/ABI detection. X-Git-Tag: 2.5.0~11 X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/commitdiff_plain/eb9c5e880c24b7e5383e70bedd92ff22e4bf050b?hp=9bfacb4f6d5be052968fa1e312f00e3af3bd9fdb configure.ac: Move `asm-debug' after we've finished CPU/ABI detection. Fortunately it doesn't actually print anything, but if it did it would produce much confusion. --- diff --git a/configure.ac b/configure.ac index 042c7c32..93a1149e 100644 --- a/configure.ac +++ b/configure.ac @@ -158,17 +158,6 @@ catacomb_DEFINE_CPU_OR_ABI([CPUFAM], [2], [cpu], catacomb_DEFINE_CPU_OR_ABI([ABI], [3], [abi], [ABI_], [Define if target ABI is \`$][3\'.]) -AC_ARG_ENABLE([asm-debug], - AS_HELP_STRING([--enable-asm-debug], - [enable assembler debugging features]), - [mdw_asm_debug=$enableval], [mdw_asm_debug=no]) -case $CPUFAM in nil) mdw_asm_debug=no ;; esac -case mdw_asm_debug in - no) ;; - *) AC_DEFINE([ENABLE_ASM_DEBUG], [1], - [Define to enable assembler-level debugging.]) ;; -esac - dnl Establish Automake conditions for things. catacomb_CPU_FAMILIES([catacomb_CLEAR_FLAGS]) m4_define([catacomb_COND_CPU], @@ -191,6 +180,17 @@ case $CPUFAM in *) AC_MSG_RESULT([$CPUFAM/$ABI]) ;; esac +AC_ARG_ENABLE([asm-debug], + AS_HELP_STRING([--enable-asm-debug], + [enable assembler debugging features]), + [mdw_asm_debug=$enableval], [mdw_asm_debug=no]) +case $CPUFAM in nil) mdw_asm_debug=no ;; esac +case mdw_asm_debug in + no) ;; + *) AC_DEFINE([ENABLE_ASM_DEBUG], [1], + [Define to enable assembler-level debugging.]) ;; +esac + dnl-------------------------------------------------------------------------- dnl CPU-specific assembler features.