1*cdf0e10cSrcweir--- misc/xmlsec1-1.2.14/configure 2009-09-29 15:55:33.269924586 +0200 2*cdf0e10cSrcweir+++ misc/build/xmlsec1-1.2.14/configure 2009-09-29 15:55:08.838176411 +0200 3*cdf0e10cSrcweir@@ -13184,7 +13184,9 @@ 4*cdf0e10cSrcweir done 5*cdf0e10cSrcweir 6*cdf0e10cSrcweir for dir in $ac_nss_lib_dir ; do 7*cdf0e10cSrcweir- if test -f $dir/libnspr4.so -o -f $dir/libnspr4.dylib ; then 8*cdf0e10cSrcweir+ case $host_os in 9*cdf0e10cSrcweir+ cygwin* | mingw* | pw32*) 10*cdf0e10cSrcweir+ if test -f $dir/libnspr4.$libext ; then 11*cdf0e10cSrcweir if test "z$dir" = "z/usr/lib" ; then 12*cdf0e10cSrcweir NSPR_LIBS="$NSPR_LIBS_LIST" 13*cdf0e10cSrcweir else 14*cdf0e10cSrcweir@@ -13197,6 +13199,25 @@ 15*cdf0e10cSrcweir NSPR_LIBS_FOUND="yes" 16*cdf0e10cSrcweir break 17*cdf0e10cSrcweir fi 18*cdf0e10cSrcweir+ ;; 19*cdf0e10cSrcweir+ 20*cdf0e10cSrcweir+ *) 21*cdf0e10cSrcweir+ 22*cdf0e10cSrcweir+ if test -f $dir/libnspr4.so -o -f $dir/libnspr4.dylib ; then 23*cdf0e10cSrcweir+ if test "z$dir" = "z/usr/lib" ; then 24*cdf0e10cSrcweir+ NSPR_LIBS="$NSPR_LIBS_LIST" 25*cdf0e10cSrcweir+ else 26*cdf0e10cSrcweir+ if test "z$with_gnu_ld" = "zyes" ; then 27*cdf0e10cSrcweir+ NSPR_LIBS="-Wl,-rpath-link -Wl,$dir -L$dir $NSPR_LIBS_LIST" 28*cdf0e10cSrcweir+ else 29*cdf0e10cSrcweir+ NSPR_LIBS="-L$dir $NSPR_LIBS_LIST" 30*cdf0e10cSrcweir+ fi 31*cdf0e10cSrcweir+ fi 32*cdf0e10cSrcweir+ NSPR_LIBS_FOUND="yes" 33*cdf0e10cSrcweir+ break 34*cdf0e10cSrcweir+ fi 35*cdf0e10cSrcweir+ ;; 36*cdf0e10cSrcweir+ esac 37*cdf0e10cSrcweir done 38*cdf0e10cSrcweir fi 39*cdf0e10cSrcweir 40*cdf0e10cSrcweir@@ -13266,6 +13287,24 @@ 41*cdf0e10cSrcweir done 42*cdf0e10cSrcweir 43*cdf0e10cSrcweir for dir in $ac_nss_lib_dir ; do 44*cdf0e10cSrcweir+ case $host_os in 45*cdf0e10cSrcweir+ cygwin* | mingw* | pw32*) 46*cdf0e10cSrcweir+ if test -f $dir/libnss3.$libext ; then 47*cdf0e10cSrcweir+ if test "z$dir" = "z/usr/lib" ; then 48*cdf0e10cSrcweir+ NSS_LIBS="$NSS_LIBS_LIST" 49*cdf0e10cSrcweir+ else 50*cdf0e10cSrcweir+ if test "z$with_gnu_ld" = "zyes" ; then 51*cdf0e10cSrcweir+ NSS_LIBS="-Wl,-rpath-link -Wl,$dir -L$dir $NSS_LIBS_LIST" 52*cdf0e10cSrcweir+ else 53*cdf0e10cSrcweir+ NSS_LIBS="-L$dir $NSS_LIBS_LIST" 54*cdf0e10cSrcweir+ fi 55*cdf0e10cSrcweir+ fi 56*cdf0e10cSrcweir+ NSS_LIBS_FOUND="yes" 57*cdf0e10cSrcweir+ break 58*cdf0e10cSrcweir+ fi 59*cdf0e10cSrcweir+ ;; 60*cdf0e10cSrcweir+ 61*cdf0e10cSrcweir+ *) 62*cdf0e10cSrcweir if test -f $dir/libnss3.so -o -f $dir/libnss3.dylib ; then 63*cdf0e10cSrcweir if test "z$dir" = "z/usr/lib" ; then 64*cdf0e10cSrcweir NSS_LIBS="$NSS_LIBS_LIST" 65*cdf0e10cSrcweir@@ -13279,6 +13318,8 @@ 66*cdf0e10cSrcweir NSS_LIBS_FOUND="yes" 67*cdf0e10cSrcweir break 68*cdf0e10cSrcweir fi 69*cdf0e10cSrcweir+ ;; 70*cdf0e10cSrcweir+ esac 71*cdf0e10cSrcweir done 72*cdf0e10cSrcweir fi 73*cdf0e10cSrcweir 74*cdf0e10cSrcweir@@ -13684,7 +13725,7 @@ 75*cdf0e10cSrcweir $as_echo "$MSCRYPTO_ENABLE" >&6; } 76*cdf0e10cSrcweir else 77*cdf0e10cSrcweir LIBS_SAVE="$LIBS" 78*cdf0e10cSrcweir- LIBS="$LIBS -lcrypt32" 79*cdf0e10cSrcweir+ LIBS="$LIBS ${PSDK_HOME}/lib/crypt32.lib" 80*cdf0e10cSrcweir { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mscrypto libraries" >&5 81*cdf0e10cSrcweir $as_echo_n "checking for mscrypto libraries... " >&6; } 82*cdf0e10cSrcweir cat confdefs.h - <<_ACEOF >conftest.$ac_ext 83*cdf0e10cSrcweir@@ -13711,13 +13752,7 @@ 84*cdf0e10cSrcweir XMLSEC_NO_MSCRYPTO="0" 85*cdf0e10cSrcweir 86*cdf0e10cSrcweir MSCRYPTO_CFLAGS="$MSCRYPTO_CFLAGS -DXMLSEC_CRYPTO_MSCRYPTO=1" 87*cdf0e10cSrcweir- case $host in 88*cdf0e10cSrcweir- *-*-mingw*) 89*cdf0e10cSrcweir- MSCRYPTO_LIBS='-Wl,$(srcdir)/mingw-crypt32.def';; 90*cdf0e10cSrcweir- *) 91*cdf0e10cSrcweir- MSCRYPTO_LIBS="-lcrypt32";; 92*cdf0e10cSrcweir- esac 93*cdf0e10cSrcweir- 94*cdf0e10cSrcweir+ MSCRYPTO_LIBS="${PSDK_HOME}/lib/crypt32.lib" 95*cdf0e10cSrcweir if test "z$XMLSEC_CRYPTO" = "z" ; then 96*cdf0e10cSrcweir XMLSEC_CRYPTO="mscrypto" 97*cdf0e10cSrcweir XMLSEC_CRYPTO_LIB="$MSCRYPTO_CRYPTO_LIB" 98*cdf0e10cSrcweir--- misc/xmlsec1-1.2.14/configure.in 2009-09-29 15:55:33.282288142 +0200 99*cdf0e10cSrcweir+++ misc/build/xmlsec1-1.2.14/configure.in 2009-09-29 15:49:39.614223428 +0200 100*cdf0e10cSrcweir@@ -671,7 +671,9 @@ 101*cdf0e10cSrcweir done 102*cdf0e10cSrcweir 103*cdf0e10cSrcweir for dir in $ac_nss_lib_dir ; do 104*cdf0e10cSrcweir- if test -f $dir/libnspr4.so -o -f $dir/libnspr4.dylib ; then 105*cdf0e10cSrcweir+ case $host_os in 106*cdf0e10cSrcweir+ cygwin* | mingw* | pw32*) 107*cdf0e10cSrcweir+ if test -f $dir/libnspr4.$libext ; then 108*cdf0e10cSrcweir dnl do not add -L/usr/lib because compiler does it anyway 109*cdf0e10cSrcweir if test "z$dir" = "z/usr/lib" ; then 110*cdf0e10cSrcweir NSPR_LIBS="$NSPR_LIBS_LIST" 111*cdf0e10cSrcweir@@ -685,6 +687,26 @@ 112*cdf0e10cSrcweir NSPR_LIBS_FOUND="yes" 113*cdf0e10cSrcweir break 114*cdf0e10cSrcweir fi 115*cdf0e10cSrcweir+ ;; 116*cdf0e10cSrcweir+ 117*cdf0e10cSrcweir+ *) 118*cdf0e10cSrcweir+ 119*cdf0e10cSrcweir+ if test -f $dir/libnspr4.so -o -f $dir/libnspr4.dylib ; then 120*cdf0e10cSrcweir+ dnl do not add -L/usr/lib because compiler does it anyway 121*cdf0e10cSrcweir+ if test "z$dir" = "z/usr/lib" ; then 122*cdf0e10cSrcweir+ NSPR_LIBS="$NSPR_LIBS_LIST" 123*cdf0e10cSrcweir+ else 124*cdf0e10cSrcweir+ if test "z$with_gnu_ld" = "zyes" ; then 125*cdf0e10cSrcweir+ NSPR_LIBS="-Wl,-rpath-link -Wl,$dir -L$dir $NSPR_LIBS_LIST" 126*cdf0e10cSrcweir+ else 127*cdf0e10cSrcweir+ NSPR_LIBS="-L$dir $NSPR_LIBS_LIST" 128*cdf0e10cSrcweir+ fi 129*cdf0e10cSrcweir+ fi 130*cdf0e10cSrcweir+ NSPR_LIBS_FOUND="yes" 131*cdf0e10cSrcweir+ break 132*cdf0e10cSrcweir+ fi 133*cdf0e10cSrcweir+ ;; 134*cdf0e10cSrcweir+ esac 135*cdf0e10cSrcweir done 136*cdf0e10cSrcweir fi 137*cdf0e10cSrcweir 138*cdf0e10cSrcweir@@ -742,6 +764,25 @@ 139*cdf0e10cSrcweir done 140*cdf0e10cSrcweir 141*cdf0e10cSrcweir for dir in $ac_nss_lib_dir ; do 142*cdf0e10cSrcweir+ case $host_os in 143*cdf0e10cSrcweir+ cygwin* | mingw* | pw32*) 144*cdf0e10cSrcweir+ if test -f $dir/libnss3.$libext ; then 145*cdf0e10cSrcweir+ dnl do not add -L/usr/lib because compiler does it anyway 146*cdf0e10cSrcweir+ if test "z$dir" = "z/usr/lib" ; then 147*cdf0e10cSrcweir+ NSS_LIBS="$NSS_LIBS_LIST" 148*cdf0e10cSrcweir+ else 149*cdf0e10cSrcweir+ if test "z$with_gnu_ld" = "zyes" ; then 150*cdf0e10cSrcweir+ NSS_LIBS="-Wl,-rpath-link -Wl,$dir -L$dir $NSS_LIBS_LIST" 151*cdf0e10cSrcweir+ else 152*cdf0e10cSrcweir+ NSS_LIBS="-L$dir $NSS_LIBS_LIST" 153*cdf0e10cSrcweir+ fi 154*cdf0e10cSrcweir+ fi 155*cdf0e10cSrcweir+ NSS_LIBS_FOUND="yes" 156*cdf0e10cSrcweir+ break 157*cdf0e10cSrcweir+ fi 158*cdf0e10cSrcweir+ ;; 159*cdf0e10cSrcweir+ 160*cdf0e10cSrcweir+ *) 161*cdf0e10cSrcweir if test -f $dir/libnss3.so -o -f $dir/libnss3.dylib ; then 162*cdf0e10cSrcweir dnl do not add -L/usr/lib because compiler does it anyway 163*cdf0e10cSrcweir if test "z$dir" = "z/usr/lib" ; then 164*cdf0e10cSrcweir@@ -756,6 +797,8 @@ 165*cdf0e10cSrcweir NSS_LIBS_FOUND="yes" 166*cdf0e10cSrcweir break 167*cdf0e10cSrcweir fi 168*cdf0e10cSrcweir+ ;; 169*cdf0e10cSrcweir+ esac 170*cdf0e10cSrcweir done 171*cdf0e10cSrcweir fi 172*cdf0e10cSrcweir 173*cdf0e10cSrcweir@@ -926,7 +969,7 @@ 174*cdf0e10cSrcweir dnl cannot detect __stdcall functions 175*cdf0e10cSrcweir dnl AC_CHECK_LIB(crypt32, CertOpenStore, .... 176*cdf0e10cSrcweir LIBS_SAVE="$LIBS" 177*cdf0e10cSrcweir- LIBS="$LIBS -lcrypt32" 178*cdf0e10cSrcweir+ LIBS="$LIBS ${PSDK_HOME}/lib/crypt32.lib" 179*cdf0e10cSrcweir AC_MSG_CHECKING(for mscrypto libraries) 180*cdf0e10cSrcweir AC_LINK_IFELSE([ 181*cdf0e10cSrcweir #include <windows.h> 182*cdf0e10cSrcweir@@ -943,15 +986,7 @@ 183*cdf0e10cSrcweir XMLSEC_NO_MSCRYPTO="0" 184*cdf0e10cSrcweir 185*cdf0e10cSrcweir MSCRYPTO_CFLAGS="$MSCRYPTO_CFLAGS -DXMLSEC_CRYPTO_MSCRYPTO=1" 186*cdf0e10cSrcweir- case $host in 187*cdf0e10cSrcweir- *-*-mingw*) 188*cdf0e10cSrcweir- dnl since mingw crypt32 library is limited 189*cdf0e10cSrcweir- dnl we use own def-file 190*cdf0e10cSrcweir- MSCRYPTO_LIBS='-Wl,$(srcdir)/mingw-crypt32.def';; 191*cdf0e10cSrcweir- *) 192*cdf0e10cSrcweir- MSCRYPTO_LIBS="-lcrypt32";; 193*cdf0e10cSrcweir- esac 194*cdf0e10cSrcweir- 195*cdf0e10cSrcweir+ MSCRYPTO_LIBS="${PSDK_HOME}/lib/crypt32.lib" 196*cdf0e10cSrcweir dnl first crypto library is default one 197*cdf0e10cSrcweir if test "z$XMLSEC_CRYPTO" = "z" ; then 198*cdf0e10cSrcweir XMLSEC_CRYPTO="mscrypto" 199*cdf0e10cSrcweir--- misc/xmlsec1-1.2.14/ltmain.sh 2009-06-25 22:53:19.000000000 +0200 200*cdf0e10cSrcweir+++ misc/build/xmlsec1-1.2.14/ltmain.sh 2009-09-29 15:49:39.628349554 +0200 201*cdf0e10cSrcweir@@ -4868,6 +4868,11 @@ 202*cdf0e10cSrcweir fi 203*cdf0e10cSrcweir ;; 204*cdf0e10cSrcweir 205*cdf0e10cSrcweir+ *.lib) 206*cdf0e10cSrcweir+ deplibs="$deplibs $arg" 207*cdf0e10cSrcweir+ continue 208*cdf0e10cSrcweir+ ;; 209*cdf0e10cSrcweir+ 210*cdf0e10cSrcweir *.$libext) 211*cdf0e10cSrcweir # An archive. 212*cdf0e10cSrcweir deplibs="$deplibs $arg" 213*cdf0e10cSrcweir@@ -5213,6 +5218,10 @@ 214*cdf0e10cSrcweir continue 215*cdf0e10cSrcweir ;; 216*cdf0e10cSrcweir *.la) lib="$deplib" ;; 217*cdf0e10cSrcweir+ *.lib) 218*cdf0e10cSrcweir+ deplibs="$deplib $deplibs" 219*cdf0e10cSrcweir+ continue 220*cdf0e10cSrcweir+ ;; 221*cdf0e10cSrcweir *.$libext) 222*cdf0e10cSrcweir if test "$pass" = conv; then 223*cdf0e10cSrcweir deplibs="$deplib $deplibs" 224*cdf0e10cSrcweir--- misc/xmlsec1-1.2.14/src/nss/keywrapers.c 2009-09-29 15:55:33.430875248 +0200 225*cdf0e10cSrcweir+++ misc/build/xmlsec1-1.2.14/src/nss/keywrapers.c 2009-09-29 15:49:39.749963247 +0200 226*cdf0e10cSrcweir@@ -1126,6 +1126,7 @@ 227*cdf0e10cSrcweir NULL, /* void* reserved1; */ 228*cdf0e10cSrcweir }; 229*cdf0e10cSrcweir 230*cdf0e10cSrcweir+#ifndef __MINGW32__ 231*cdf0e10cSrcweir /** 232*cdf0e10cSrcweir * xmlSecNssTransformKWAes128GetKlass: 233*cdf0e10cSrcweir * 234*cdf0e10cSrcweir@@ -1160,6 +1161,7 @@ 235*cdf0e10cSrcweir xmlSecNssTransformKWAes256GetKlass(void) { 236*cdf0e10cSrcweir return(&xmlSecNssKWAes256Klass); 237*cdf0e10cSrcweir } 238*cdf0e10cSrcweir+#endif /* __MINGW32__ */ 239*cdf0e10cSrcweir 240*cdf0e10cSrcweir #endif /* XMLSEC_NO_AES */ 241*cdf0e10cSrcweir 242*cdf0e10cSrcweir@@ -1197,6 +1199,7 @@ 243*cdf0e10cSrcweir NULL, /* void* reserved1; */ 244*cdf0e10cSrcweir }; 245*cdf0e10cSrcweir 246*cdf0e10cSrcweir+#ifndef __MINGW32__ 247*cdf0e10cSrcweir /** 248*cdf0e10cSrcweir * xmlSecNssTransformKWDes3GetKlass: 249*cdf0e10cSrcweir * 250*cdf0e10cSrcweir@@ -1208,6 +1211,7 @@ 251*cdf0e10cSrcweir xmlSecNssTransformKWDes3GetKlass(void) { 252*cdf0e10cSrcweir return(&xmlSecNssKWDes3Klass); 253*cdf0e10cSrcweir } 254*cdf0e10cSrcweir+#endif /* __MINGW32__ */ 255*cdf0e10cSrcweir 256*cdf0e10cSrcweir #endif /* XMLSEC_NO_DES */ 257*cdf0e10cSrcweir 258