aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2015-03-01 15:57:21 -0600
committerBrent Cook <busterb@gmail.com>2015-03-01 15:57:21 -0600
commit8695b506884a06f1262986118e7067127278b3ae (patch)
treef34d92362556b05bc26fd0b6e6e6434f99039eb5
parent557df7eed8faf7febc2314e1aba863353e397942 (diff)
downloadportable-8695b506884a06f1262986118e7067127278b3ae.tar.gz
portable-8695b506884a06f1262986118e7067127278b3ae.tar.bz2
portable-8695b506884a06f1262986118e7067127278b3ae.zip
check if the BSWAP assembly for ARM works before building
-rw-r--r--configure.ac8
1 files changed, 8 insertions, 0 deletions
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
57 *sparc*) 57 *sparc*)
58 CFLAGS="$CFLAGS -D__STRICT_ALIGNMENT" 58 CFLAGS="$CFLAGS -D__STRICT_ALIGNMENT"
59 ;; 59 ;;
60 *arm*)
61 old_cflags=$CFLAGS
62 CFLAGS="$old_cflags -I$srcdir/include"
63 AC_TRY_COMPILE([#include "$srcdir/crypto/modes/modes_lcl.h"],
64 [int a = 0; BSWAP4(a);],
65 CFLAGS="$old_cflags",
66 CFLAGS="$old_cflags -D__STRICT_ALIGNMENT")
67 ;;
60esac 68esac
61 69
62AM_CONDITIONAL([HOST_DARWIN], [test x$HOST_OS = xdarwin]) 70AM_CONDITIONAL([HOST_DARWIN], [test x$HOST_OS = xdarwin])