build: Fix pthread detection code when there isn't one.

The code was testing the output variable $use_pthread rather than
the input variable $enable_pthread when checking that pthreads
were actually found when requested.
This commit is contained in:
Hib Eris 2010-07-21 22:34:05 +03:00 committed by M Joonas Pihlaja
parent 108b1c7825
commit fd1e731c9d

View file

@ -243,7 +243,7 @@ AC_DEFUN([CAIRO_CONFIGURE_PTHREAD],[dnl
fi
dnl Make sure we scored some pthreads.
if test "x$use_pthread" = "xyes" -a "x$have_pthread" != "xyes"; then
if test "x$enable_pthread" = "xyes" -a "x$have_pthread" != "xyes"; then
AC_MSG_ERROR([pthread requested but not found])
fi