]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Recognize arm64 in configure
authorNiels Möller <nisse@lysator.liu.se>
Tue, 8 Dec 2020 16:51:46 +0000 (17:51 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Tue, 5 Jan 2021 13:12:34 +0000 (14:12 +0100)
Makefile.in
configure.ac

index cfbc45bb19e795f8b87bbb0d9eec64ae75f5c53c..a87e0a9ed642e523b2d3a94d19455d1aa369c674 100644 (file)
@@ -615,7 +615,7 @@ distdir: $(DISTFILES)
        done
        set -e; for d in sparc32 sparc64 x86 \
                x86_64 x86_64/aesni x86_64/sha_ni x86_64/fat \
-               arm arm/neon arm/v6 arm/fat \
+               arm arm/neon arm/v6 arm/fat arm64 \
                powerpc64 powerpc64/p7 powerpc64/p8 powerpc64/fat ; do \
          mkdir "$(distdir)/$$d" ; \
          find "$(srcdir)/$$d" -maxdepth 1 '(' -name '*.asm' -o -name '*.m4' -o -name README ')' \
index 763df3b589804f3b435c8413988aaf3ac2ab623b..e76f93754dafb0491e8d775536e2bc1f3cc22c53 100644 (file)
@@ -344,6 +344,18 @@ case "$host_cpu" in
       ABI=64
     ])
     ;;
+  aarch64)
+    AC_TRY_COMPILE([
+#if defined(__aarch64__)
+#error 64-bit powerpc
+#endif
+    ], [], [
+      ABI=32
+    ], [
+      ABI=64
+    ])
+    ;;
+
 esac
 
 if test "x$ABI" != xstandard ; then
@@ -459,6 +471,17 @@ if test "x$enable_assembler" = xyes ; then
        fi
       fi
       ;;
+    aarch64*)
+      if test "$ABI" = 64 ; then
+       asm_path=arm64
+      else
+       # As far as I understand, Neon instructions are unlikely to be
+       # missing. It may be omitted "only for implementations
+       # targeting specialized markets", to quote the Armv8 reference
+       # manual.
+       asm_path="arm/neon arm/v6 arm"
+      fi
+      ;;
     *powerpc64*)
       if test "$ABI" = 64 ; then
        GMP_ASM_POWERPC_R_REGISTERS