From 7747b2d4f0b08fac5cd08c26f9f8df7d00bf3e9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sun, 5 Jul 2009 21:10:35 +0200 Subject: [PATCH] Fix the `BUILD_PTHREAD_SUPPORT' Automake conditional when not using pthread. * configure.in: Set $build_pthread_support to "no" when thread support isn't built. This fixes the `BUILD_PTHREAD_SUPPORT' Automake conditional. --- configure.in | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/configure.in b/configure.in index 59ebefcbf..61754a490 100644 --- a/configure.in +++ b/configure.in @@ -1281,11 +1281,12 @@ case "$with_threads" in build_pthread_support="yes" - ACX_PTHREAD(CC="$PTHREAD_CC" - LIBS="$PTHREAD_LIBS $LIBS" - SCM_I_GSC_USE_PTHREAD_THREADS=1 - with_threads="pthreads", - with_threads="null") + ACX_PTHREAD([CC="$PTHREAD_CC" + LIBS="$PTHREAD_LIBS $LIBS" + SCM_I_GSC_USE_PTHREAD_THREADS=1 + with_threads="pthreads"], + [with_threads="null" + build_pthread_support="no"]) old_CFLAGS="$CFLAGS" CFLAGS="$PTHREAD_CFLAGS $CFLAGS"