AC_TRY_COMPILE([
#if defined(__sgi) && defined(__LP64__)
#error 64-bit mips
+#endif
+ ], [], [
+ ABI=32
+ ], [
+ ABI=64
+ ])
+ ;;
+ *powerpc64*)
+ AC_TRY_COMPILE([
+#if defined(__PPC64__)
+#error 64-bit powerpc
#endif
], [], [
ABI=32
fi
;;
*powerpc64*)
- asm_path="powerpc64"
- if test "x$enable_fat" = xyes ; then
- asm_path="powerpc64/fat $asm_path"
- OPT_NETTLE_SOURCES="fat-ppc.c $OPT_NETTLE_SOURCES"
- FAT_TEST_LIST="none crypto_ext"
- elif test "x$enable_power_crypto_ext" = xyes ; then
- asm_path="powerpc64/p8 $asm_path"
+ if test "$ABI" = 64 ; then
+ asm_path="powerpc64"
+ if test "x$enable_fat" = xyes ; then
+ asm_path="powerpc64/fat $asm_path"
+ OPT_NETTLE_SOURCES="fat-ppc.c $OPT_NETTLE_SOURCES"
+ FAT_TEST_LIST="none crypto_ext"
+ elif test "x$enable_power_crypto_ext" = xyes ; then
+ asm_path="powerpc64/p8 $asm_path"
+ fi
fi
;;