2007-07-04 Marcus Brinkmann <marcus@g10code.de>
[gpgme.git] / autogen.sh
index 1d69d84..5650a69 100755 (executable)
@@ -30,6 +30,11 @@ check_version () {
 
 
 DIE=no
+FORCE=
+if test "$1" == "--force"; then
+  FORCE=" --force"
+  shift
+fi
 
 # Used to cross-compile for Windows.
 if test "$1" = "--build-w32"; then
@@ -75,8 +80,9 @@ if test "$1" = "--build-w32"; then
 
     ./configure --enable-maintainer-mode  --prefix=${w32root}  \
             --host=i586-mingw32msvc --build=${build} \
-            --with-gpg-error-prefix=${w32root}  \
-            --disable-shared --with-gpgsm=c:/gnupg/gpgsm.exe
+            --with-gpg-error-prefix=${w32root} --without-gpgsm \
+            --enable-shared --enable-static --enable-w32-glib \
+            PKG_CONFIG_LIBDIR="$w32root/lib/pkgconfig"
 
     exit $?
 fi
@@ -150,7 +156,7 @@ echo "Running autoheader..."
 $AUTOHEADER
 echo "Running automake --gnu ..."
 $AUTOMAKE --gnu;
-echo "Running autoconf..."
-$AUTOCONF
+echo "Running autoconf${FORCE} ..."
+$AUTOCONF${FORCE}
 
 echo "You may now run \"./configure --enable-maintainer-mode && make\"."