summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/build_posix/configure.ac.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/build_posix/configure.ac.in')
-rw-r--r--src/third_party/wiredtiger/build_posix/configure.ac.in21
1 files changed, 17 insertions, 4 deletions
diff --git a/src/third_party/wiredtiger/build_posix/configure.ac.in b/src/third_party/wiredtiger/build_posix/configure.ac.in
index bbc6cf89d91..cbd9e4e4123 100644
--- a/src/third_party/wiredtiger/build_posix/configure.ac.in
+++ b/src/third_party/wiredtiger/build_posix/configure.ac.in
@@ -58,6 +58,17 @@ AS_CASE([$host_cpu],
[powerpc*], [wt_cv_powerpc="yes"],
[wt_cv_powerpc="no"])
AM_CONDITIONAL([POWERPC_HOST], [test "$wt_cv_powerpc" = "yes"])
+AS_CASE([$host_cpu],
+ [amd*|i[[3456]]86*|pentium|x86*], [wt_cv_x86="yes"], [wt_cv_x86="no"])
+AM_CONDITIONAL([X86_HOST], [test "$wt_cv_x86" = "yes"])
+AS_CASE([$host_cpu],
+ [s390x*], [wt_cv_zseries="yes"],
+ [wt_cv_zseries="no"])
+AM_CONDITIONAL([ZSERIES_HOST], [test "$wt_cv_zseries" = "yes"])
+AS_CASE([$host_cpu],
+ [aarch64*], [wt_cv_arm64="yes"],
+ [wt_cv_arm64="no"])
+AM_CONDITIONAL([ARM64_HOST], [test "$wt_cv_arm64" = "yes"])
# This is a workaround as part of WT-2459. Currently, clang (v3.7) does not
# support compiling the ASM code we have to perform the CRC checks on PowerPC.
@@ -85,8 +96,10 @@ fi
# Java and Python APIs
if test "$wt_cv_enable_java" = "yes" -o "$wt_cv_enable_python" = "yes"; then
+ # Only a warning, we need to build release packages without SWIG.
AX_PKG_SWIG(2.0.4, [],
- [AC_MSG_WARN([SWIG is required to rebuild Java or Python APIs.])])
+ [AC_MSG_WARN([SWIG is required to rebuild Java or Python APIs.]) &&
+ SWIG="SWIG_NOT_FOUND_DURING_CONFIGURE"])
fi
if test "$wt_cv_enable_java" = "yes"; then
@@ -119,9 +132,8 @@ AC_CHECK_LIB(dl, dlopen)
AC_CHECK_LIB(rt, sched_yield)
AC_CHECK_FUNCS([\
- clock_gettime fallocate fcntl fread_unlocked ftruncate gettimeofday\
- posix_fadvise posix_fallocate posix_madvise\
- strtouq sync_file_range])
+ clock_gettime fallocate ftruncate gettimeofday posix_fadvise\
+ posix_fallocate posix_madvise strtouq sync_file_range])
# OS X wrongly reports that it has fdatasync
AS_CASE([$host_os], [darwin*], [], [AC_CHECK_FUNCS([fdatasync])])
@@ -225,6 +237,7 @@ AM_COND_IF([LEVELDB],
AC_CONFIG_FILES([
Makefile
wiredtiger.h:src/include/wiredtiger.in
+ wiredtiger_ext.h:src/include/wiredtiger_ext.h
wiredtiger.pc:build_posix/wiredtiger.pc.in
])
AC_OUTPUT