diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 5f70a7c..30c7dd6 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -285,10 +285,14 @@ AC_ARG_ENABLE([asm], | |||
285 | AM_CONDITIONAL([OPENSSL_NO_ASM], [test "x$enable_asm" = "xno"]) | 285 | AM_CONDITIONAL([OPENSSL_NO_ASM], [test "x$enable_asm" = "xno"]) |
286 | 286 | ||
287 | old_cflags=$CFLAGS | 287 | old_cflags=$CFLAGS |
288 | CFLAGS="$old_cflags -I$srcdir/include" | 288 | CFLAGS="$USER_CFLAGS -I$srcdir/include" |
289 | AC_MSG_CHECKING([if BSWAP4 builds without __STRICT_ALIGNMENT]) | ||
289 | AC_TRY_COMPILE([#include "$srcdir/crypto/modes/modes_lcl.h"], | 290 | AC_TRY_COMPILE([#include "$srcdir/crypto/modes/modes_lcl.h"], |
290 | [int a = 0; BSWAP4(a);], | 291 | [int a = 0; BSWAP4(a);], |
291 | BSWAP4=yes, BSWAP4=no) | 292 | AC_MSG_RESULT([yes]) |
293 | BSWAP4=yes, | ||
294 | AC_MSG_RESULT([no]) | ||
295 | BSWAP4=no) | ||
292 | CFLAGS="$old_cflags" | 296 | CFLAGS="$old_cflags" |
293 | 297 | ||
294 | case $host_cpu in | 298 | case $host_cpu in |
@@ -297,7 +301,7 @@ case $host_cpu in | |||
297 | ;; | 301 | ;; |
298 | *arm*) | 302 | *arm*) |
299 | AS_IF([test "x$BSWAP4" = "xyes"],, | 303 | AS_IF([test "x$BSWAP4" = "xyes"],, |
300 | CFLAGS="$old_cflags -D__STRICT_ALIGNMENT") | 304 | CFLAGS="$CFLAGS -D__STRICT_ALIGNMENT") |
301 | ;; | 305 | ;; |
302 | esac | 306 | esac |
303 | 307 | ||