$NetBSD: patch-aa,v 1.8 2010/02/07 17:59:40 gdt Exp $ --- configure.orig 2009-12-04 21:45:59.000000000 +0100 +++ configure @@ -4630,7 +4630,7 @@ sys.exit(sys.hexversion < minverhex)" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else - as_fn_error "too old" "$LINENO" 5 + true fi am_display_PYTHON=$PYTHON else @@ -16571,13 +16570,13 @@ if test "x$ac_cv_lib_c_open" = x""yes; t fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setcancelstate in -lpthread" >&5 -$as_echo_n "checking for pthread_setcancelstate in -lpthread... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setcancelstate in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}" >&5 +$as_echo_n "checking for pthread_setcancelstate in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}... " >&6; } if test "${ac_cv_lib_pthread_pthread_setcancelstate+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lpthread $LIBS" +LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -16608,7 +16607,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setcancelstate" >&5 $as_echo "$ac_cv_lib_pthread_pthread_setcancelstate" >&6; } if test "x$ac_cv_lib_pthread_pthread_setcancelstate" = x""yes; then : - LIBPTHREAD="-lpthread" + LIBPTHREAD="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}" $as_echo "#define HAVE_LIBPTHREAD /**/" >>confdefs.h