Merge pull request #104 from devinamatthews/misspellings

Add flexible options for thread model (pthread/posix for pthreads etc.).
This commit is contained in:
Field G. Van Zee
2016-10-25 13:02:57 -05:00
committed by GitHub

7
configure vendored
View File

@@ -506,11 +506,14 @@ main()
echo "${script_name}: using OpenMP for threading."
enable_openmp='yes'
enable_openmp_01=1
elif [ "x${threading_model}" = "xpthreads" ]; then
elif [ "x${threading_model}" = "xpthreads" ] ||
[ "x${threading_model}" = "xpthread" ] ||
[ "x${threading_model}" = "xposix" ]; then
echo "${script_name}: using Pthreads for threading."
enable_pthreads='yes'
enable_pthreads_01=1
elif [ "x${threading_model}" = "xno" ]; then
elif [ "x${threading_model}" = "xno" ] ||
[ "x${threading_model}" = "xnone" ]; then
echo "${script_name}: threading is disabled."
else
echo "Unsupported threading model: ${threading_model}."