Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 1 | In out-of-tree builds the #include fails because $srcdir isn't in the include path. Set CPPFLAGS so that it is. |
| 2 | |
| 3 | Upstream-Status: Backport [r1750] |
| 4 | Signed-off-by: Ross Burton <ross.burton@intel.com> |
| 5 | |
| 6 | Index: configure.ac |
| 7 | =================================================================== |
| 8 | --- a/configure.ac (revision 1749) |
| 9 | +++ b/configure.ac (working copy) |
| 10 | @@ -159,6 +159,8 @@ |
| 11 | |
| 12 | if test "$enable_jit" = "auto"; then |
| 13 | AC_LANG(C) |
| 14 | + SAVE_CPPFLAGS=$CPPFLAGS |
| 15 | + CPPFLAGS=-I$srcdir |
| 16 | AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ |
| 17 | #define SLJIT_CONFIG_AUTO 1 |
| 18 | #include "sljit/sljitConfigInternal.h" |
| 19 | @@ -165,6 +167,7 @@ |
| 20 | #if (defined SLJIT_CONFIG_UNSUPPORTED && SLJIT_CONFIG_UNSUPPORTED) |
| 21 | #error unsupported |
| 22 | #endif]])], enable_jit=yes, enable_jit=no) |
| 23 | + CPPFLAGS=$SAVE_CPPFLAGS |
| 24 | fi |
| 25 | |
| 26 | # Handle --disable-pcregrep-jit (enabled by default) |