[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
This commit is contained in:
Dana Robinson 2015-02-19 02:44:55 -05:00
parent a2b08b6e27
commit 265782d3eb

View File

@ -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
*,*)