From 265782d3eb7ea6779562168b8714a8ab79ca30cd Mon Sep 17 00:00:00 2001 From: Dana Robinson Date: Thu, 19 Feb 2015 02:44:55 -0500 Subject: [svn-r26226] Fixed the --with-pthread option so that it correctly handles 'yes' and 'no', which was broken after other work in this area. Part of: HDFFV-9087 Tested on: 64-bit linux VM --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index b4f747a..426ca2f 100644 --- a/configure.ac +++ b/configure.ac @@ -1647,12 +1647,15 @@ if test "X$THREADSAFE" = "Xyes"; then [withval=check]) case "$withval" in - check) + check | yes) AC_CHECK_HEADERS([pthread.h],, [unset HAVE_PTHREAD]) if test "x$HAVE_PTHREAD" = "xyes"; then AC_CHECK_LIB([pthread], [pthread_self],, [unset HAVE_PTHREAD]) fi ;; + no) + AC_MSG_ERROR([Must use Pthreads with thread safety]) + ;; *) case "$withval" in *,*) -- cgit v0.12