author | Ben Walton <bwalton@artsci.utoronto.ca> | |
Thu, 12 Mar 2009 19:20:12 +0000 (15:20 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 13 Mar 2009 06:23:39 +0000 (23:23 -0700) | ||
commit | 1973b0d790155b5d8a32a6f7401116fad2205721 | |
tree | f371118470c4418630d4203a8ffb29921fdc219e | tree | snapshot |
parent | a8304f7a70832a8e333fcf547589bc9d3bc0ca3c | commit | diff |
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>
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 | diff | blob | history |