configure: rework pthread handling to allow for user defined flags
commit1973b0d790155b5d8a32a6f7401116fad2205721
authorBen Walton <bwalton@artsci.utoronto.ca>
Thu, 12 Mar 2009 19:20:12 +0000 (12 15:20 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 13 Mar 2009 06:23:39 +0000 (12 23:23 -0700)
treef371118470c4418630d4203a8ffb29921fdc219e
parenta8304f7a70832a8e333fcf547589bc9d3bc0ca3c
configure: rework pthread handling to allow for user defined flags

The tests for POSIX threads can now be controlled by the user with the
--enable-pthreads=FLAGS option.  If this is set (to some value other
than yes or no), the value is passed to the compiler.  Thread support
is based solely on the outcome of this test.  The user may specify not
to use threading at all or to use the default tests (first -pthread
then -lpthread) by not specifying FLAGS when passing --enable-pthreads.

Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
configure.ac