diff options
author | Brent Cook <bcook@openbsd.org> | 2017-07-08 17:46:16 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2017-07-08 17:46:16 -0500 |
commit | 9b88fa46bb727d811d95f7696d91cbc07278f65e (patch) | |
tree | e2ce2533d826ca4507ddbdfad1f2a2f3f27f065b /configure.ac | |
parent | 334245374a084ba175225c209ac9e18af5a60150 (diff) | |
download | portable-9b88fa46bb727d811d95f7696d91cbc07278f65e.tar.gz portable-9b88fa46bb727d811d95f7696d91cbc07278f65e.tar.bz2 portable-9b88fa46bb727d811d95f7696d91cbc07278f65e.zip |
generate the crypto export symbol list at build time
we currently do it at configure time, which makes this a generated
source, but generated sources should be cleaned up, which breaks
'make clean; make'
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/configure.ac b/configure.ac index 9fd7c2d..6f98b3e 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -54,8 +54,6 @@ CHECK_CRYPTO_COMPAT | |||
54 | CHECK_VA_COPY | 54 | CHECK_VA_COPY |
55 | CHECK_B64_NTOP | 55 | CHECK_B64_NTOP |
56 | 56 | ||
57 | GENERATE_CRYPTO_PORTABLE_SYM | ||
58 | |||
59 | AC_ARG_WITH([openssldir], | 57 | AC_ARG_WITH([openssldir], |
60 | AS_HELP_STRING([--with-openssldir], | 58 | AS_HELP_STRING([--with-openssldir], |
61 | [Set the default openssl directory]), | 59 | [Set the default openssl directory]), |
@@ -80,19 +78,15 @@ AC_TRY_COMPILE([#include "$srcdir/crypto/modes/modes_lcl.h"], | |||
80 | BSWAP4=no) | 78 | BSWAP4=no) |
81 | CFLAGS="$old_cflags" | 79 | CFLAGS="$old_cflags" |
82 | 80 | ||
83 | case $host_cpu in | 81 | AS_CASE([$host_cpu], |
84 | *sparc*) | 82 | [*sparc*], [CPPFLAGS="$CPPFLAGS -D__STRICT_ALIGNMENT"], |
85 | CPPFLAGS="$CPPFLAGS -D__STRICT_ALIGNMENT" | 83 | [*arm*], AS_IF([test "x$BSWAP4" = "xyes"],, |
86 | ;; | 84 | CPPFLAGS="$CPPFLAGS -D__STRICT_ALIGNMENT"), |
87 | *arm*) | 85 | [*amd64*], [host_cpu=x86_64, HOSTARCH=intel], |
88 | AS_IF([test "x$BSWAP4" = "xyes"],, | 86 | [i?86], [HOSTARCH=intel], |
89 | CPPFLAGS="$CPPFLAGS -D__STRICT_ALIGNMENT") | 87 | [x86_64], [HOSTARCH=intel] |
90 | ;; | 88 | ) |
91 | *amd64*) | 89 | AM_CONDITIONAL([HOST_CPU_IS_INTEL], [test "x$HOSTARCH" = "xintel"]) |
92 | host_cpu=x86_64 | ||
93 | ;; | ||
94 | |||
95 | esac | ||
96 | 90 | ||
97 | AC_MSG_CHECKING([if .gnu.warning accepts long strings]) | 91 | AC_MSG_CHECKING([if .gnu.warning accepts long strings]) |
98 | AC_LINK_IFELSE([AC_LANG_SOURCE([[ | 92 | AC_LINK_IFELSE([AC_LANG_SOURCE([[ |