]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
Build: Define HAVE_CRC_X86_ASM when 32-bit x86 CRC assembly is used
authorLasse Collin <lasse.collin@tukaani.org>
Fri, 10 May 2024 13:00:26 +0000 (16:00 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Sun, 23 Jun 2024 11:36:44 +0000 (14:36 +0300)
This makes it easier to determine when the CRC tables are needed.

configure.ac

index 3a8e445456bf9a048958ddd497421ef88fa96380..4ff747a954480e8f1e3852d3c7cbeeb231d12dac 100644 (file)
@@ -358,8 +358,13 @@ if test "x$enable_assembler" = xyes; then
        esac
 fi
 case $enable_assembler in
-       x86 | no)
-               AC_MSG_RESULT([$enable_assembler])
+       x86)
+               AC_DEFINE([HAVE_CRC_X86_ASM], [1], [Define to 1 if
+                       the 32-bit x86 CRC assembly files are used.])
+               AC_MSG_RESULT([x86])
+               ;;
+       no)
+               AC_MSG_RESULT([no])
                ;;
        *)
                AC_MSG_RESULT([])