New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
configure: always check for pthreads when --enable-pthreads is specified #1295
Conversation
Otherwise if threaded resolver is disabled, configure will fail with configure: error: --enable-pthreads but pthreads was not found Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
@Keruspe, thanks for your PR! By analyzing the history of the files in this pull request, we identified @bagder, @yangtse and @dfandrich to be potential reviewers. |
Can you give me the exact options to reproduce this in configure? When diff --git a/configure.ac b/configure.ac
index 1e76c49..55d057f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3420,6 +3420,9 @@ AC_HELP_STRING([--disable-pthreads],[Disable POSIX threads]),
want_pthreads=no
;;
*) AC_MSG_RESULT(yes)
+ if test "$dontwant_rt" = "yes"; then
+ AC_MSG_ERROR([options --disable-rt and --enable-pthreads are mutually exclusive])
+ fi
want_pthreads=yes
;;
esac ], [ |
Just The problem is that pthreads checks are only performed if The two solution here I guess are either to error out as you suggested or make |
Better handle some options conflicts that can occur if --enable-pthreads. Bug: curl#1295 Reported-by: Marc-Antoine Perennou
Thanks, I see it now. Unfortunately to handle all the combinations is a little more complicated than I thought. Can you please try this: |
seems to work fine here with your patch |
Better handle options conflicts that can occur if --enable-pthreads. Bug: #1295 Reported-by: Marc-Antoine Perennou
Thanks, landed in 5f139d6. |
Otherwise if threaded resolver is disabled, configure will fail with
configure: error: --enable-pthreads but pthreads was not found