From 8695b506884a06f1262986118e7067127278b3ae Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Sun, 1 Mar 2015 15:57:21 -0600 Subject: check if the BSWAP assembly for ARM works before building --- configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure.ac b/configure.ac index 81433c8..8f174ad 100644 --- a/configure.ac +++ b/configure.ac @@ -57,6 +57,14 @@ case $host_cpu in *sparc*) CFLAGS="$CFLAGS -D__STRICT_ALIGNMENT" ;; + *arm*) + old_cflags=$CFLAGS + CFLAGS="$old_cflags -I$srcdir/include" + AC_TRY_COMPILE([#include "$srcdir/crypto/modes/modes_lcl.h"], + [int a = 0; BSWAP4(a);], + CFLAGS="$old_cflags", + CFLAGS="$old_cflags -D__STRICT_ALIGNMENT") + ;; esac AM_CONDITIONAL([HOST_DARWIN], [test x$HOST_OS = xdarwin]) -- cgit v1.2.3-55-g6feb