aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2023-02-14 02:52:10 -0600
committerBrent Cook <busterb@gmail.com>2023-02-14 02:52:10 -0600
commit20fb2bdb1197008f46c080b8539084c69b7a8c92 (patch)
treee4a15c5e14849e766a6d7a30d7e938208a9f8448 /configure.ac
parentd36629044db1f6f074a26dc502c9cff7a09fd374 (diff)
downloadportable-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.ac17
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])
76AS_CASE([$host_cpu], 76AS_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)
82AM_CONDITIONAL([HOST_CPU_IS_INTEL], [test "x$HOSTARCH" = "xintel"]) 86AM_CONDITIONAL([HOST_CPU_IS_INTEL], [test "x$HOSTARCH" = "xintel"])
83 87
88AM_CONDITIONAL([HOST_AARCH64], [test "$host_cpu" = "aarch64"])
89AM_CONDITIONAL([HOST_ARM], [test "$host_cpu" = "arm"])
90AM_CONDITIONAL([HOST_I386], [test "$host_cpu" = "i386"])
91AM_CONDITIONAL([HOST_MIPS], [test "$host_cpu" = "mips"])
92AM_CONDITIONAL([HOST_MIPS64], [test "$host_cpu" = "mips64"])
93AM_CONDITIONAL([HOST_POWERPC], [test "$host_cpu" = "powerpc"])
94AM_CONDITIONAL([HOST_POWERPC64], [test "$host_cpu" = "ppc64"])
95AM_CONDITIONAL([HOST_RISCV64], [test "$host_cpu" = "riscv64"])
96AM_CONDITIONAL([HOST_SPARC64], [test "$host_cpu" = "sparc64"])
97AM_CONDITIONAL([HOST_X86_64], [test "$host_cpu" = "x86_64"])
98
84AC_MSG_CHECKING([if .gnu.warning accepts long strings]) 99AC_MSG_CHECKING([if .gnu.warning accepts long strings])
85AC_LINK_IFELSE([AC_LANG_SOURCE([[ 100AC_LINK_IFELSE([AC_LANG_SOURCE([[
86extern void SSLv3_method(); 101extern void SSLv3_method();