[svn-r26423] Made the thread-safe + high-level library combination "unsupported".

A detailed error message is emitted if this combination is attempted.
Builders can use --enable-unsupported to build the combo.

Note that default builds will now need to use --disable-hl with
--enable-threadsafe since the high-level library is built by default. 

Part of: HDFFV-8719

Tested on: Local Linux w/ various combinations of configure options.
This commit is contained in:
Dana Robinson 2015-03-10 23:59:20 -05:00
parent bdb7ec3497
commit 9afdf275f8

View File

@ -1508,6 +1508,17 @@ AC_ARG_ENABLE([threadsafe],
## with the thread-safety option because the lock is not hoisted
## into the higher-level API calls.
## --enable-threadsafe is incompatible with --enable-hl unless
## --enable-unsupported has been specified on the configure line.
##
## Note that the high-level library is enabled by default so most
## users will have to add --disable-hl to the configure options.
if test "X${ALLOW_UNSUPPORTED}" != "Xyes"; then
if test "X${HDF5_HL}" = "Xyes" -a "X${enable_threadsafe}" = "Xyes"; then
AC_MSG_ERROR([The thread-safe library is incompatible with the high-level library. --enable-unsupported will allow building the high-level library, though this configuration is not supported by The HDF Group. Alternatively,--disable-hl can be used to prevent building the high-level library (recommended).])
fi
fi
## The --enable-threadsafe flag is not compatible with --enable-cxx.
## If the user tried to specify both flags, throw an error, unless
## they also provided the --enable-unsupported flag.