diff options
author | Brent Cook <busterb@gmail.com> | 2015-03-01 15:57:21 -0600 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2015-03-01 15:57:21 -0600 |
commit | 8695b506884a06f1262986118e7067127278b3ae (patch) | |
tree | f34d92362556b05bc26fd0b6e6e6434f99039eb5 | |
parent | 557df7eed8faf7febc2314e1aba863353e397942 (diff) | |
download | portable-8695b506884a06f1262986118e7067127278b3ae.tar.gz portable-8695b506884a06f1262986118e7067127278b3ae.tar.bz2 portable-8695b506884a06f1262986118e7067127278b3ae.zip |
check if the BSWAP assembly for ARM works before building
-rw-r--r-- | configure.ac | 8 |
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 | ;; | ||
60 | esac | 68 | esac |
61 | 69 | ||
62 | AM_CONDITIONAL([HOST_DARWIN], [test x$HOST_OS = xdarwin]) | 70 | AM_CONDITIONAL([HOST_DARWIN], [test x$HOST_OS = xdarwin]) |