diff --git a/build/configure.ac.pthread b/build/configure.ac.pthread index 52033619a..29c930da9 100644 --- a/build/configure.ac.pthread +++ b/build/configure.ac.pthread @@ -135,11 +135,11 @@ dnl with the given flags and libs. Execute on dnl success and on failure. AC_DEFUN([CAIRO_CHECK_PTHREAD],[dnl CAIRO_CC_TRY_LINK_WITH_ENV_SILENT( - [CFLAGS="$2"; - LIBS="$3"], + [CFLAGS="$CFLAGS $2"; + LIBS="$LIBS $3"], [$4], - [$1_CFLAGS="$CFLAGS"; - $1_LIBS="$LIBS"; + [$1_CFLAGS="$2"; + $1_LIBS="$3"; $5], [$1_CFLAGS=""; $1_LIBS="";