diff options
author | Werner Koch <wk@gnupg.org> | 2010-02-26 11:52:05 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2010-02-26 11:52:05 +0100 |
commit | 0e018d7144a1b18d750ce655e2ab0cb495808fca (patch) | |
tree | 8c940c4753f3ca765d92d2b1a127a6a8ab343abc /autogen.sh | |
parent | Provide default strings for the pinentry. (diff) | |
download | gnupg2-0e018d7144a1b18d750ce655e2ab0cb495808fca.tar.xz gnupg2-0e018d7144a1b18d750ce655e2ab0cb495808fca.zip |
Some minor changes and typo fixes.
Started to implement a TCP option in gpg-connect-agent.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 42 |
1 files changed, 36 insertions, 6 deletions
diff --git a/autogen.sh b/autogen.sh index a7e701550..86552ee0d 100755 --- a/autogen.sh +++ b/autogen.sh @@ -45,9 +45,28 @@ if test x"$1" = x"--force"; then shift fi +# Convenience option to use certain configure options for some hosts. +myhost="" +myhostsub="" +case "$1" in + --build-w32) + myhost="w32" + ;; + --build-w32ce) + myhost="w32" + myhostsub="ce" + ;; + --build-amd64) + myhost="amd64" + ;; + *) + ;; +esac + + # ***** W32 build script ******* # Used to cross-compile for Windows. -if test "$1" = "--build-w32"; then +if [ "$myhost" = "w32" ]; then tmp=`dirname $0` tsdir=`cd "$tmp"; pwd` shift @@ -57,12 +76,21 @@ if test "$1" = "--build-w32"; then fi build=`$tsdir/scripts/config.guess` - [ -z "$w32root" ] && w32root="$HOME/w32root" + case $myhostsub in + ce) + [ -z "$w32root" ] && w32root="$HOME/w32ce_root" + toolprefixes="arm-mingw32ce" + ;; + *) + [ -z "$w32root" ] && w32root="$HOME/w32root" + toolprefixes="i586-mingw32msvc i386-mingw32msvc mingw32" + ;; + esac echo "Using $w32root as standard install directory" >&2 # Locate the cross compiler crossbindir= - for host in i586-mingw32msvc i386-mingw32msvc mingw32; do + for host in $toolprefixes; do if ${host}-gcc --version >/dev/null 2>&1 ; then crossbindir=/usr/${host}/bin conf_CC="CC=${host}-gcc" @@ -71,8 +99,10 @@ if test "$1" = "--build-w32"; then done if [ -z "$crossbindir" ]; then echo "Cross compiler kit not installed" >&2 - echo "Under Debian GNU/Linux, you may install it using" >&2 - echo " apt-get install mingw32 mingw32-runtime mingw32-binutils" >&2 + if [ -z "$sub" ]; then + echo "Under Debian GNU/Linux, you may install it using" >&2 + echo " apt-get install mingw32 mingw32-runtime mingw32-binutils" >&2 + fi echo "Stop." >&2 exit 1 fi @@ -102,7 +132,7 @@ fi # ***** AMD64 cross build script ******* # Used to cross-compile for AMD64 (for testing) -if test "$1" = "--build-amd64"; then +if [ "$myhost" = "amd64" ]; then tmp=`dirname $0` tsdir=`cd "$tmp"; pwd` shift |