From 72e25ffe7010391778433c9f5ed6a5e217e1d7c4 Mon Sep 17 00:00:00 2001 From: ph10 Date: Fri, 10 Jan 2014 16:25:55 +0000 Subject: Only test for pthreads when not under Windows. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1439 2f5784b3-3f2a-0410-8824-cb99058d5e15 --- configure.ac | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 516936a..02992b8 100644 --- a/configure.ac +++ b/configure.ac @@ -686,11 +686,15 @@ if test "$enable_pcre32" = "yes"; then Define to any value to enable the 32 bit PCRE library.]) fi +# Unless running under Windows, JIT support requires pthreads. + if test "$enable_jit" = "yes"; then - AX_PTHREAD([], [AC_MSG_ERROR([JIT support requires pthreads])]) - CC="$PTHREAD_CC" - CFLAGS="$PTHREAD_CFLAGS $CFLAGS" - LIBS="$PTHREAD_LIBS $LIBS" + if test "$HAVE_WINDOWS_H" != "1"; then + AX_PTHREAD([], [AC_MSG_ERROR([JIT support requires pthreads])]) + CC="$PTHREAD_CC" + CFLAGS="$PTHREAD_CFLAGS $CFLAGS" + LIBS="$PTHREAD_LIBS $LIBS" + fi AC_DEFINE([SUPPORT_JIT], [], [ Define to any value to enable support for Just-In-Time compiling.]) else -- cgit v1.2.1