Only run `test-with-guile-module' when pthread support is built.
authorLudovic Courtès <ludo@gnu.org>
Sat, 26 Apr 2008 19:55:29 +0000 (21:55 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sat, 26 Apr 2008 19:55:29 +0000 (21:55 +0200)
ChangeLog
configure.in
test-suite/ChangeLog
test-suite/standalone/Makefile.am

index ee01164b57a8451de58c91aca140d6f2ba09f8fc..eada026e176e9a1723fed75ec3fd46bf81c091cb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-04-26  Ludovic Courtès  <ludo@gnu.org>
+
+       * configure.in (BUILD_PTHREAD_SUPPORT): New Automake
+       conditional.
+
 2008-04-26  Ludovic Courtès  <ludo@gnu.org>
 
        * Makefile.am (EXTRA_DIST): Remove `ANON-CVS' and `SNAPSHOTS'.
index 5dc280ae06278d9f5f0eb1055634b6fecaf6b317..390c33bd381acd022cb600e8f201d20bb9b5c417 100644 (file)
@@ -1173,6 +1173,9 @@ AC_SUBST(SCM_I_GSC_NEED_BRACES_ON_PTHREAD_MUTEX_INITIALIZER, 0)
 
 case "$with_threads" in
   "yes" | "pthread" | "pthreads" | "pthread-threads" | "")
+
+    build_pthread_support="yes"
+
     ACX_PTHREAD(CC="$PTHREAD_CC"
       LIBS="$PTHREAD_LIBS $LIBS"
       SCM_I_GSC_USE_PTHREAD_THREADS=1
@@ -1252,6 +1255,10 @@ esac
 AC_MSG_CHECKING(what kind of threads to support)
 AC_MSG_RESULT($with_threads)
 
+AM_CONDITIONAL([BUILD_PTHREAD_SUPPORT],
+  [test "x$build_pthread_support" = "xyes"])
+
+
 ## Check whether pthread_attr_getstack works for the main thread
 
 if test "$with_threads" = pthreads; then
index 67c28035de9d8f6d4e9db67ab8f2eb4f0e46ae40..c6846461a5fb3de11329879d8773d95d55178fbc 100644 (file)
@@ -1,3 +1,9 @@
+2008-04-26  Ludovic Courtès  <ludo@gnu.org>
+
+       * standalone/Makefile.am (TESTS): Only add
+       `test-with-guile-module' when `BUILD_PTHREAD_SUPPORT' is true.
+       Reported by Alain Guibert <alguibert+bts@free.fr>.
+
 2008-04-26  Ludovic Courtès  <ludo@gnu.org>
 
        * tests/srfi-35.test (cond-expand): New test.
index 2b189670cc006b773a45577fe3c52d50a1112322..9af6a17a5c635230150e21e363ea239e6e329416 100644 (file)
@@ -26,6 +26,7 @@ noinst_LTLIBRARIES =
 check_PROGRAMS = 
 check_SCRIPTS =
 BUILT_SOURCES =
+EXTRA_DIST =
 
 TESTS_ENVIRONMENT = "${top_builddir}/pre-inst-guile-env"
 
@@ -110,13 +111,21 @@ TESTS += test-conversion
 check_SCRIPTS += test-use-srfi
 TESTS += test-use-srfi
 
+if BUILD_PTHREAD_SUPPORT
+
 # test-with-guile-module
 test_with_guile_module_CFLAGS = ${test_cflags}
 test_with_guile_module_LDADD = ${top_builddir}/libguile/libguile.la
 check_PROGRAMS += test-with-guile-module
 TESTS += test-with-guile-module
 
+else
+
+EXTRA_DIST += test-with-guile-module.c
+
+endif
+
 all-local:
        cd ${srcdir} && chmod u+x ${check_SCRIPTS}
 
-EXTRA_DIST = ${check_SCRIPTS}
+EXTRA_DIST += ${check_SCRIPTS}