diff options
author | Brent Cook <busterb@gmail.com> | 2023-02-14 02:52:10 -0600 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2023-02-14 02:52:10 -0600 |
commit | 20fb2bdb1197008f46c080b8539084c69b7a8c92 (patch) | |
tree | e4a15c5e14849e766a6d7a30d7e938208a9f8448 /configure.ac | |
parent | d36629044db1f6f074a26dc502c9cff7a09fd374 (diff) | |
download | portable-20fb2bdb1197008f46c080b8539084c69b7a8c92.tar.gz portable-20fb2bdb1197008f46c080b8539084c69b7a8c92.tar.bz2 portable-20fb2bdb1197008f46c080b8539084c69b7a8c92.zip |
add CPU checks, include initial bn_arch.h headers
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 6080109..87c6d5b 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -76,11 +76,26 @@ AM_CONDITIONAL([ENABLE_TESTS], [test "x$enable_tests" = xyes]) | |||
76 | AS_CASE([$host_cpu], | 76 | AS_CASE([$host_cpu], |
77 | [*arm*], [host_cpu=arm], | 77 | [*arm*], [host_cpu=arm], |
78 | [*amd64*], [host_cpu=x86_64 HOSTARCH=intel], | 78 | [*amd64*], [host_cpu=x86_64 HOSTARCH=intel], |
79 | [i?86], [HOSTARCH=intel], | 79 | [i?86], [host_cpu=i386 HOSTARCH=intel], |
80 | [mipsel*], [host_cpu=mips], | ||
81 | [mips64el*], [host_cpu=mips64], | ||
82 | [powerpc*], [host_cpu=powerpc], | ||
83 | [ppc64*], [host_cpu=powerpc64], | ||
80 | [x86_64], [HOSTARCH=intel] | 84 | [x86_64], [HOSTARCH=intel] |
81 | ) | 85 | ) |
82 | AM_CONDITIONAL([HOST_CPU_IS_INTEL], [test "x$HOSTARCH" = "xintel"]) | 86 | AM_CONDITIONAL([HOST_CPU_IS_INTEL], [test "x$HOSTARCH" = "xintel"]) |
83 | 87 | ||
88 | AM_CONDITIONAL([HOST_AARCH64], [test "$host_cpu" = "aarch64"]) | ||
89 | AM_CONDITIONAL([HOST_ARM], [test "$host_cpu" = "arm"]) | ||
90 | AM_CONDITIONAL([HOST_I386], [test "$host_cpu" = "i386"]) | ||
91 | AM_CONDITIONAL([HOST_MIPS], [test "$host_cpu" = "mips"]) | ||
92 | AM_CONDITIONAL([HOST_MIPS64], [test "$host_cpu" = "mips64"]) | ||
93 | AM_CONDITIONAL([HOST_POWERPC], [test "$host_cpu" = "powerpc"]) | ||
94 | AM_CONDITIONAL([HOST_POWERPC64], [test "$host_cpu" = "ppc64"]) | ||
95 | AM_CONDITIONAL([HOST_RISCV64], [test "$host_cpu" = "riscv64"]) | ||
96 | AM_CONDITIONAL([HOST_SPARC64], [test "$host_cpu" = "sparc64"]) | ||
97 | AM_CONDITIONAL([HOST_X86_64], [test "$host_cpu" = "x86_64"]) | ||
98 | |||
84 | AC_MSG_CHECKING([if .gnu.warning accepts long strings]) | 99 | AC_MSG_CHECKING([if .gnu.warning accepts long strings]) |
85 | AC_LINK_IFELSE([AC_LANG_SOURCE([[ | 100 | AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
86 | extern void SSLv3_method(); | 101 | extern void SSLv3_method(); |