[W32] Avoid extra console window when importing or exporting.
[gnupg.git] / autogen.sh
index c9bf2d5..5aa6b89 100755 (executable)
@@ -40,7 +40,7 @@ MSGMERGE=${GETTEXT_PREFIX}${MSGMERGE:-msgmerge}${GETTEXT_SUFFIX}
 
 DIE=no
 FORCE=
-if test "$1" == "--force"; then
+if test x"$1" = x"--force"; then
   FORCE=" --force"
   shift
 fi
@@ -91,8 +91,9 @@ if test "$1" = "--build-w32"; then
             --with-libgcrypt-prefix=${w32root} \
             --with-libassuan-prefix=${w32root} \
             --with-zlib=${w32root} \
+            --with-regex=${w32root} \
              --with-pth-prefix=${w32root} \
-             --disable-gpg
+             --without-included-gettext "$@"
     rc=$?
     exit $rc
 fi
@@ -163,7 +164,7 @@ q
 automake_vers_num=`echo "$automake_vers" | cvtver`
 
 gettext_vers=`sed -n '/^AM_GNU_GETTEXT_VERSION(/ { 
-s/^.*(\(.*\))/\1/p
+s/^.*\[\(.*\)])/\1/p
 q
 }' ${configure_ac}`
 gettext_vers_num=`echo "$gettext_vers" | cvtver`