Changeset View
Changeset View
Standalone View
Standalone View
configure.ac
| Context not available. | |||||
| AC_HELP_STRING([--disable-arm-crypto-support], | AC_HELP_STRING([--disable-arm-crypto-support], | ||||
| [Disable support for the ARMv8 Crypto Extension instructions]), | [Disable support for the ARMv8 Crypto Extension instructions]), | ||||
| armcryptosupport=$enableval,armcryptosupport=yes) | armcryptosupport=$enableval,armcryptosupport=yes) | ||||
| AC_MSG_RESULT($armcryptosupport) | AC_MSG_RESULT($armcryptosupport) | ||||
| # Implementation of the --disable-ppc-crypto-support switch. | |||||
| AC_MSG_CHECKING([whether PPC crypto support is requested]) | |||||
| AC_ARG_ENABLE(ppc-crypto-support, | |||||
| AC_HELP_STRING([--disable-ppc-crypto-support], | |||||
| [Disable support for the PPC crypto instructions introduced in POWER 8 (PowerISA 2.07)]), | |||||
| ppccryptosupport=$enableval,ppccryptosupport=yes) | |||||
| AC_MSG_RESULT($ppccryptosupport) | |||||
| # Implementation of the --disable-O-flag-munging switch. | # Implementation of the --disable-O-flag-munging switch. | ||||
| AC_MSG_CHECKING([whether a -O flag munging is requested]) | AC_MSG_CHECKING([whether a -O flag munging is requested]) | ||||
| AC_ARG_ENABLE([O-flag-munging], | AC_ARG_ENABLE([O-flag-munging], | ||||
| AC_HELP_STRING([--disable-O-flag-munging], | AC_HELP_STRING([--disable-O-flag-munging], | ||||
| [Disable modification of the cc -O flag]), | [Disable modification of the cc -O flag]), | ||||
| Context not available. | |||||
| padlocksupport="n/a" | padlocksupport="n/a" | ||||
| jentsupport="n/a" | jentsupport="n/a" | ||||
| drngsupport="n/a" | drngsupport="n/a" | ||||
| fi | fi | ||||
| if test "$mpi_cpu_arch" != "arm" ; then | if test "$mpi_cpu_arch" != "arm" && test "$mpi_cpu_arch" != "aarch64"; then | ||||
| if test "$mpi_cpu_arch" != "aarch64" ; then | neonsupport="n/a" | ||||
| neonsupport="n/a" | armcryptosupport="n/a" | ||||
| armcryptosupport="n/a" | |||||
| fi | |||||
| fi | fi | ||||
| if test "$mpi_cpu_arch" != "ppc"; then | |||||
| ppccryptosupport="n/a" | |||||
| fi | |||||
| ############################################# | ############################################# | ||||
| #### #### | #### #### | ||||
| #### Platform specific compiler checks. #### | #### Platform specific compiler checks. #### | ||||
| #### #### | #### #### | ||||
| ############################################# | ############################################# | ||||
| Context not available. | |||||
| fi | fi | ||||
| if test x"$armcryptosupport" = xyes ; then | if test x"$armcryptosupport" = xyes ; then | ||||
| AC_DEFINE(ENABLE_ARM_CRYPTO_SUPPORT,1, | AC_DEFINE(ENABLE_ARM_CRYPTO_SUPPORT,1, | ||||
| [Enable support for ARMv8 Crypto Extension instructions.]) | [Enable support for ARMv8 Crypto Extension instructions.]) | ||||
| fi | fi | ||||
| if test x"$ppccryptosupport" = xyes ; then | |||||
| AC_DEFINE(ENABLE_PPC_CRYPTO_SUPPORT,1, | |||||
| [Enable support for POWER 8 (PowerISA 2.07) crypto extension.]) | |||||
| fi | |||||
| if test x"$jentsupport" = xyes ; then | if test x"$jentsupport" = xyes ; then | ||||
| AC_DEFINE(ENABLE_JENT_SUPPORT, 1, | AC_DEFINE(ENABLE_JENT_SUPPORT, 1, | ||||
| [Enable support for the jitter entropy collector.]) | [Enable support for the jitter entropy collector.]) | ||||
| fi | fi | ||||
| if test x"$padlocksupport" = xyes ; then | if test x"$padlocksupport" = xyes ; then | ||||
| Context not available. | |||||
| # Build with the ARMv8/AArch64 CE implementation | # Build with the ARMv8/AArch64 CE implementation | ||||
| GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael-armv8-ce.lo" | GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael-armv8-ce.lo" | ||||
| GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael-armv8-aarch64-ce.lo" | GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael-armv8-aarch64-ce.lo" | ||||
| ;; | ;; | ||||
| powerpc64le-*-*) | |||||
| # Build with the crypto extension implementation | |||||
| GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael-ppc8.lo" | |||||
| ;; | |||||
| powerpc64-*-*) | |||||
| # Big-Endian. | |||||
| # Build with the crypto extension implementation | |||||
| GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael-ppc8be.lo" | |||||
| ;; | |||||
| powerpc-*-*) | |||||
| # Big-Endian. | |||||
| # Build with the crypto extension implementation | |||||
| GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael-ppc832.lo" | |||||
| ;; | |||||
| esac | esac | ||||
| case "$mpi_cpu_arch" in | case "$mpi_cpu_arch" in | ||||
| x86) | x86) | ||||
| # Build with the AES-NI implementation | # Build with the AES-NI implementation | ||||
| Context not available. | |||||
| m68k) | m68k) | ||||
| AC_DEFINE(HAVE_CPU_ARCH_M68K, 1, [Defined for M68k platforms]) | AC_DEFINE(HAVE_CPU_ARCH_M68K, 1, [Defined for M68k platforms]) | ||||
| ;; | ;; | ||||
| ppc) | ppc) | ||||
| AC_DEFINE(HAVE_CPU_ARCH_PPC, 1, [Defined for PPC platforms]) | AC_DEFINE(HAVE_CPU_ARCH_PPC, 1, [Defined for PPC platforms]) | ||||
| GCRYPT_HWF_MODULES="libgcrypt_la-hwf-ppc.lo" | |||||
| ;; | ;; | ||||
| arm) | arm) | ||||
| AC_DEFINE(HAVE_CPU_ARCH_ARM, 1, [Defined for ARM platforms]) | AC_DEFINE(HAVE_CPU_ARCH_ARM, 1, [Defined for ARM platforms]) | ||||
| GCRYPT_HWF_MODULES="libgcrypt_la-hwf-arm.lo" | GCRYPT_HWF_MODULES="libgcrypt_la-hwf-arm.lo" | ||||
| ;; | ;; | ||||
| Context not available. | |||||
| GCRY_MSG_SHOW([Try using DRNG (RDRAND): ],[$drngsupport]) | GCRY_MSG_SHOW([Try using DRNG (RDRAND): ],[$drngsupport]) | ||||
| GCRY_MSG_SHOW([Try using Intel AVX: ],[$avxsupport]) | GCRY_MSG_SHOW([Try using Intel AVX: ],[$avxsupport]) | ||||
| GCRY_MSG_SHOW([Try using Intel AVX2: ],[$avx2support]) | GCRY_MSG_SHOW([Try using Intel AVX2: ],[$avx2support]) | ||||
| GCRY_MSG_SHOW([Try using ARM NEON: ],[$neonsupport]) | GCRY_MSG_SHOW([Try using ARM NEON: ],[$neonsupport]) | ||||
| GCRY_MSG_SHOW([Try using ARMv8 crypto: ],[$armcryptosupport]) | GCRY_MSG_SHOW([Try using ARMv8 crypto: ],[$armcryptosupport]) | ||||
| GCRY_MSG_SHOW([Try using PPC crypto: ],[$ppccryptosupport]) | |||||
| GCRY_MSG_SHOW([],[]) | GCRY_MSG_SHOW([],[]) | ||||
| if test "x${gpg_config_script_warn}" != x; then | if test "x${gpg_config_script_warn}" != x; then | ||||
| cat <<G10EOF | cat <<G10EOF | ||||
| Mismatches between the target platform and the to | Mismatches between the target platform and the to | ||||
| Context not available. | |||||