diff --git a/ChangeLog b/ChangeLog index 9bbeb88..ce80636 100644 --- a/ChangeLog +++ b/ChangeLog @@ -140,6 +140,10 @@ no result, so I have now hacked CMakeLists.txt along the lines of some changes I found on the Internet. The new code no longer needs the policy setting, and it appears to work fine on Linux. +35. Setting --enable-jit=auto for an out-of-tree build failed because the +source directory wasn't in the search path for AC_TRY_COMPILE always. Patch +from Ross Burton. + Version 10.32 10-September-2018 ------------------------------- diff --git a/configure.ac b/configure.ac index c59a439..237f002 100644 --- a/configure.ac +++ b/configure.ac @@ -146,12 +146,15 @@ AC_ARG_ENABLE(jit, # This code enables JIT if the hardware supports it. if test "$enable_jit" = "auto"; then AC_LANG(C) + SAVE_CPPFLAGS=$CPPFLAGS + CPPFLAGS=-I$srcdir AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ #define SLJIT_CONFIG_AUTO 1 #include "src/sljit/sljitConfigInternal.h" #if (defined SLJIT_CONFIG_UNSUPPORTED && SLJIT_CONFIG_UNSUPPORTED) #error unsupported #endif]])], enable_jit=yes, enable_jit=no) + CPPFLAGS=$SAVE_CPPFLAGS echo checking for JIT support on this hardware... $enable_jit fi