--- misc/libxml2-2.7.8/configure 2008-01-11 17:01:56.000000000 +0900 +++ misc/build/libxml2-2.7.8/configure 2009-09-07 20:48:47.656250000 +0900 @@ -13566,6 +13566,8 @@ if test "$with_modules" != "no" ; then case "$host" in + *-*-mingw*) + ;; *-*-cygwin*) MODULE_EXTENSION=".dll" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lcygwin" >&5 @@ -13868,11 +13868,10 @@ fi case $host_os in - *mingw32*) if test "$THREAD_LIBS" != "-lpthread"; then + *mingw32*) WITH_THREADS="1" THREADS_W32="Win32" THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_WIN32_THREADS" - fi ;; *cygwin*) THREAD_LIBS="" ;; --- misc/libxml2-2.7.8/libxml.h 2007-11-23 19:47:23.000000000 +0900 +++ misc/build/libxml2-2.7.8/libxml.h 2009-07-10 14:37:34.988250000 +0900 @@ -30,6 +30,10 @@ #include #else #include "config.h" +#ifdef __MINGW32__ +#undef HAVE_LIBPTHREAD +#undef HAVE_PTHREAD_H +#endif #include #endif