aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
1 files changed, 0 insertions, 14 deletions
diff --git a/configure.ac b/configure.ac
index 888ca19..75b88fe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -75,26 +75,12 @@ AC_ARG_ENABLE([tests],
75 [enable_tests="yes"]) 75 [enable_tests="yes"])
76AM_CONDITIONAL([ENABLE_TESTS], [test "x$enable_tests" = xyes]) 76AM_CONDITIONAL([ENABLE_TESTS], [test "x$enable_tests" = xyes])
77 77
78# Add CPU-specific alignment flags
79old_cflags=$CFLAGS
80CFLAGS="$CFLAGS -I$srcdir/include"
81AC_MSG_CHECKING([if BSWAP4 builds without __STRICT_ALIGNMENT])
82AC_TRY_COMPILE([#include "$srcdir/crypto/modes/modes_lcl.h"],
83 [int a = 0; BSWAP4(a);],
84 AC_MSG_RESULT([yes])
85 BSWAP4=yes,
86 AC_MSG_RESULT([no])
87 BSWAP4=no)
88CFLAGS="$old_cflags"
89
90AS_CASE([$host_cpu], 78AS_CASE([$host_cpu],
91 [*sparc*], [CPPFLAGS="$CPPFLAGS -D__STRICT_ALIGNMENT"],
92 [*arm*], [host_cpu=arm], 79 [*arm*], [host_cpu=arm],
93 [*amd64*], [host_cpu=x86_64 HOSTARCH=intel], 80 [*amd64*], [host_cpu=x86_64 HOSTARCH=intel],
94 [i?86], [HOSTARCH=intel], 81 [i?86], [HOSTARCH=intel],
95 [x86_64], [HOSTARCH=intel] 82 [x86_64], [HOSTARCH=intel]
96) 83)
97AS_IF([test "x$BSWAP4" = "xyes" -a "$host_cpu" = "arm" ],,CPPFLAGS="$CPPFLAGS -D__STRICT_ALIGNMENT")
98AM_CONDITIONAL([HOST_CPU_IS_INTEL], [test "x$HOSTARCH" = "xintel"]) 84AM_CONDITIONAL([HOST_CPU_IS_INTEL], [test "x$HOSTARCH" = "xintel"])
99 85
100AC_MSG_CHECKING([if .gnu.warning accepts long strings]) 86AC_MSG_CHECKING([if .gnu.warning accepts long strings])