diff -urNp libxml2-2.7.7/m4/libtool.m4 libxml2-2.7.7x/m4/libtool.m4
--- libxml2-2.7.7/m4/libtool.m4	2010-03-15 17:18:17.000000000 +0200
+++ libxml2-2.7.7x/m4/libtool.m4	2010-03-15 17:18:17.000000000 +0200
@@ -3006,7 +3006,7 @@ mingw* | pw32*)
     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
     lt_cv_file_magic_cmd='func_win32_libid'
   else
-    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
+    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
     lt_cv_file_magic_cmd='$OBJDUMP -f'
   fi
   ;;
diff -urNp libxml2-2.7.7/ltmain.sh libxml2-2.7.7x/ltmain.sh
--- libxml2-2.7.7/ltmain.sh	2010-03-15 17:18:17.000000000 +0200
+++ libxml2-2.7.7x/ltmain.sh	2010-03-15 17:18:17.000000000 +0200
@@ -2560,7 +2560,7 @@ func_win32_libid ()
     ;;
   *ar\ archive*) # could be an import, or static
     if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
-       $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
+       $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null ; then
       win32_nmres=`eval $NM -f posix -A $1 |
 	$SED -n -e '
 	    1,100{
diff -urNp libxml2-2.7.7/configure libxml2-2.7.7x/configure
--- libxml2-2.7.7/configure	2010-03-15 17:18:22.000000000 +0200
+++ libxml2-2.7.7x/configure	2010-03-15 17:18:22.000000000 +0200
@@ -6350,7 +6350,7 @@ mingw* | pw32*)
     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
     lt_cv_file_magic_cmd='func_win32_libid'
   else
-    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
+    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
     lt_cv_file_magic_cmd='$OBJDUMP -f'
   fi
   ;;
