summaryrefslogtreecommitdiffstats
path: root/autogen.rc
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2014-01-09 19:14:09 +0100
committerWerner Koch <wk@gnupg.org>2014-01-10 12:53:40 +0100
commite7973d36d88178b4b0a977e3fcc0d62600777618 (patch)
tree1f8447fe0f9611efa17d73d5e67f33cfcf62ea27 /autogen.rc
parentRename scripts/ to build-aux/ (diff)
downloadgnupg2-e7973d36d88178b4b0a977e3fcc0d62600777618.tar.xz
gnupg2-e7973d36d88178b4b0a977e3fcc0d62600777618.zip
Turn autogen.sh into a generic script.
* autogen.sh: Revamp. * autogen.rc: New. * Makefile.am (EXTRA_DIST): Add autogen.rc. -- Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'autogen.rc')
-rw-r--r--autogen.rc43
1 files changed, 43 insertions, 0 deletions
diff --git a/autogen.rc b/autogen.rc
new file mode 100644
index 000000000..0f3d9d879
--- /dev/null
+++ b/autogen.rc
@@ -0,0 +1,43 @@
+# autogen.sh configuration for GnuPG -*- sh -*-
+
+case "$myhost:$myhostsub" in
+ w32:ce)
+ extraoptions="--enable-dirmngr-auto-start --disable-scdaemon "
+ extraoptions="$extraoptions --disable-zip --enable-gpg2-is-gpg"
+ ;;
+ w32:)
+ extraoptions="--enable-gpgtar"
+ ;;
+esac
+
+case "$myhost" in
+ w32)
+ configure_opts="
+ --with-gpg-error-prefix=@SYSROOT@
+ --with-ksba-prefix=@SYSROOT@
+ --with-libgcrypt-prefix=@SYSROOT@
+ --with-libassuan-prefix=@SYSROOT@
+ --with-zlib=@SYSROOT@
+ --with-regex=@SYSROOT@
+ --with-npth-prefix=@SYSROOT@
+ --with-adns=@SYSROOT@
+ --disable-g13
+ "
+ ;;
+
+ amd64)
+ configure_opts="
+ --with-gpg-error-prefix=@SYSROOT@
+ --with-ksba-prefix=@SYSROOT@
+ --with-libgcrypt-prefix=@SYSROOT@
+ --with-libassuan-prefix=@SYSROOT@
+ --with-zlib=/usr/x86_64-linux-gnu/usr
+ --with-pth-prefix=/usr/x86_64-linux-gnu/usr
+ "
+ ;;
+esac
+
+
+extra_aclocal_flags="-I gl/m4"
+
+final_info="./configure --sysconfdir=/etc --enable-maintainer-mode --enable-symcryptrun --enable-mailto --enable-gpgtar && make"