Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
exit with a hard error only if --enable-threads was passed
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Sep 21, 2017
1 parent 38ffd75 commit 4bc47f6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions configure
Expand Up @@ -1291,11 +1291,15 @@ check_std_threads() {
result "ok"
else
result "not available"
message "Error: C++ std::thread and std::mutex is not available."
message " Either reconfigure with \`--disable-threads' or use a"
message " C++ compiler which supports C++ std::thread and std::mutex."

if test "x${enable_threads}" = "xyes" ; then
message "Error: C++ std::thread and std::mutex is not available."
message " Either reconfigure with \`--disable-threads' or use a"
message " C++ compiler which supports C++ std::thread and std::mutex."
exit 1
fi

enable_threads="no"
exit 1
fi
fi
}
Expand Down

0 comments on commit 4bc47f6

Please sign in to comment.