--- /dev/null
+diff --git a/autogen.sh b/autogen.sh
+index 8256fd2..7cd9383 100755
+--- a/autogen.sh
++++ b/autogen.sh
+@@ -276,7 +276,7 @@ $ACLOCAL -I m4 $ACLOCAL_FLAGS
+ echo "Running autoheader..."
+ $AUTOHEADER
+ echo "Running automake --gnu ..."
+-$AUTOMAKE --gnu;
++$AUTOMAKE --add-missing --gnu;
+ echo "Running autoconf${FORCE} ..."
+ $AUTOCONF${FORCE}
+
echo -e 'all:\n\techo ok\n\n%:\n\techo ok $@\n\n' >./$1/Makefile
}
+Autocorrect(){
+ echo Patching autogen.sh ...
+ patch -N -f -p1 <../autogen.diff || true
+}
+
+test -f /proc/cpuinfo__ && {
+ CPUS=$(expr $(grep ^processor </proc/cpuinfo |tail -1 |cut -d : -f 2) + 2)
+ export MAKEFLAGS="-j $CPUS"
+ echo Using $CPUS CPUs for Make.
+}
+
echo Cleaning up old binaries
rm -rf gpg
echo Building libgpg-error
git clean -dfx
git reset --hard
+Autocorrect
./autogen.sh
./configure --disable-static --enable-shared --disable-nls --disable-rpath --disable-languages --without-libiconv-prefix --without-libintl-prefix --prefix=`pwd`/../gpg
fmake doc
echo Building libassuan
git clean -dfx
git reset --hard
+Autocorrect
./autogen.sh
./configure --disable-static --enable-shared --with-libgpg-error-prefix=`pwd`/../gpg --prefix=`pwd`/../gpg
fmake doc
echo Building GPGME
git clean -dfx
git reset --hard
+Autocorrect
./autogen.sh
./configure --disable-static --enable-shared --disable-glibtest --disable-gpgsm-test --disable-gpgconf-test --disable-g13-test --with-gpg=`pwd`/../gpg/bin/gpg --prefix=`pwd`/../gpg --with-libassuan-prefix=`pwd`/../gpg --with-libgpg-error-prefix=`pwd`/../gpg
fmake doc