configure.ac: Move `asm-debug' after we've finished CPU/ABI detection.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 12 Sep 2019 19:18:09 +0000 (20:18 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 12 Sep 2019 19:18:09 +0000 (20:18 +0100)
Fortunately it doesn't actually print anything, but if it did it would
produce much confusion.

configure.ac

index 042c7c3..93a1149 100644 (file)
@@ -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.