summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2011-04-06 16:13:02 +0200
committerWerner Koch <wk@gnupg.org>2011-04-06 16:13:02 +0200
commitb128b8b1d60a615a41d2a4d717358f2bcce26c67 (patch)
tree3c2acd8da26c208dd848bf8aa80fa18d7eae0a8b /autogen.sh
parent2a9687fced289571f19c95e0c759ac9eac41940c (diff)
downloadlibgpg-error-b128b8b1d60a615a41d2a4d717358f2bcce26c67.tar.gz
Prepare for a W64 target.
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 dbc5080..596565b 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -64,6 +64,10 @@ case "$1" in
myhost="w32"
myhostsub="ce"
;;
+ --build-w64)
+ myhost="w32"
+ myhostsub="64"
+ ;;
--build*)
echo "**Error**: invalid build option $1" >&2
exit 1
@@ -92,6 +96,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"
@@ -110,7 +119,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