aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2017-03-02 19:02:44 +0000
committerEmil Velikov <[email protected]>2017-03-13 11:30:07 +0000
commitb82bd31c54cc91b972a027492fa75b13cd9c7267 (patch)
tree1efd8b41d097cd116655d412991063277b7d6066 /configure.ac
parent9aebdb5d082ec640fe8a14704201952bddb50a88 (diff)
configure.ac: require pthread-stubs only where available
The project is a thing only for BSD platforms. Or in other words - for any other platforms building/installing pthread-stubs results only in a pthread-stub.pc file. And even where it provides a DSO, there's a fundamental design issue with it - see the pthread-stubs mailing list for the specifics. v2: Update comment above the switch statement (Jon Turney). Reviewed-by: Jeremy Huddleston Sequoia <[email protected]> Acked-by: Gary Wong <[email protected]> Tested-by: Eric Engestrom <[email protected]> Acked-by: Randy Fishel <[email protected]> Cc: Niveditha Rau <[email protected]> Signed-off-by: Emil Velikov <[email protected]>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index aa5cb75dfb9..bc9a9e48ddb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -801,9 +801,10 @@ if test "x$android" = xno; then
test -z "$PTHREAD_LIBS" && PTHREAD_LIBS="-lpthread"
fi
-dnl pthread-stubs is mandatory on targets where it exists
+dnl pthread-stubs is mandatory on BSD platforms, due to the nature of the
+dnl project. Even then there's a notable issue as described in the project README
case "$host_os" in
-cygwin* )
+linux* | cygwin* | darwin* | solaris* | gnu*)
pthread_stubs_possible="no"
;;
* )