configure: Disable pthread_h if linking failed
authorMartin Storsjo <martin@martin.st>
Fri, 4 May 2018 06:32:41 +0000 (09:32 +0300)
committerMartin Storsjo <martin@martin.st>
Fri, 4 May 2018 06:37:51 +0000 (09:37 +0300)
commite63c29c7603a49d18fee1192a5fe3895a0b05876
tree8a00447e93271ced9026c37c72b04ec2404a96d5
parent04d8700862851885ae5c164dac82d3e0c44965ab
configure: Disable pthread_h if linking failed

When doing both check_header and check_lib, the check_header call
will already enable pthread_h if the header was found. This was
overlooked when the pthread linking check was amended into a header
check and a separate linking check in 9b7d4cce635e.

This brings back the same result as the original check in 38dc27cc6.

Change-Id: I0efb38f5780f7c79e2eb2b14290d6094096ea222
build/make/configure.sh
configure