summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2011-04-06 17:09:13 +0200
committerWerner Koch <wk@gnupg.org>2011-04-06 17:09:13 +0200
commita0e05baf1b11fa30e1dd949350b2066a902deab8 (patch)
tree233fb5a1f34919c076f39e5ef17426c2cde0c54b /autogen.sh
parent2b00b4753c05922eea07a89aee42da1be0ef3ee2 (diff)
downloadlibassuan-a0e05baf1b11fa30e1dd949350b2066a902deab8.tar.gz
Prepare for building for a W64 host.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index fa8005c..30a247a 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -65,6 +65,10 @@ case "$1" in
myhost="w32"
myhostsub="ce"
;;
+ --build-w64)
+ myhost="w32"
+ myhostsub="64"
+ ;;
--build-amd64)
myhost="amd64"
;;
@@ -95,6 +99,11 @@ if [ "$myhost" = "w32" ]; then
[ -z "$w32root" ] && w32root="$HOME/w32ce_root"
toolprefixes="arm-mingw32ce"
;;
+ 64)
+ w32root="$w64root"
+ [ -z "$w32root" ] && w32root="$HOME/w64root"
+ toolprefixes="amd64-mingw32msvc"
+ ;;
*)
[ -z "$w32root" ] && w32root="$HOME/w32root"
toolprefixes="i586-mingw32msvc i386-mingw32msvc"
@@ -112,7 +121,7 @@ if [ "$myhost" = "w32" ]; then
done
if [ -z "$crossbindir" ]; then
echo "Cross compiler kit not installed" >&2
- if [ -z "$sub" ]; then
+ if [ -z "$myhostsub" ]; then
echo "Under Debian GNU/Linux, you may install it using" >&2
echo " apt-get install mingw32 mingw32-runtime mingw32-binutils" >&2
fi