]> granicus.if.org Git - flex/commitdiff
use automake conditional around pthread test
authorWill Estes <westes575@gmail.com>
Thu, 3 Jul 2014 02:19:12 +0000 (22:19 -0400)
committerWill Estes <westes575@gmail.com>
Wed, 12 Nov 2014 10:14:28 +0000 (05:14 -0500)
configure.ac
tests/Makefile.am

index 4edc9046273ca879374d1a28b000861cd82ae5ba..977ea3ad09b01c119f4d6f799d4cd37c48fa282f 100644 (file)
@@ -93,6 +93,7 @@ AC_DEFINE([HAVE_LIBPTHREAD], 1, [pthread library] ),
 AC_DEFINE([HAVE_LIBPTHREAD], 0, [pthread library] )
 )
 AC_CHECK_HEADERS([pthread.h])
+AM_CONDITIONAL([want_pthread], [test x$ac_cv_lib_pthread_pthread_mutex_lock = xyes])
 
 AC_CHECK_LIB(m, log10)
 
index ea94ad8e9a3a7125894faf94ed55032c722d370f..b9935c4e027016c8774decfba6f32ef4d446d514 100644 (file)
@@ -110,8 +110,10 @@ DIRECT_TESTS = \
  I3_TESTS = \
        cxx_yywrap.i3
 
+if want_pthread
 PTHREAD_TESTS = \
        pthread.pthread
+endif
 
 ONE_TESTS = \
        lineno_nr.one \