diff -r 73b26ab97690 -r aa4a3a04fb4c bootstrap --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bootstrap Tue Jul 04 10:06:24 2006 +0000 @@ -0,0 +1,85 @@ +#!/bin/bash + +quiet=0 +function quiet { [[ $quiet == 1 ]]; } + +if [[ "$1" == "-q" ]]; then + quiet=1 + shift +fi + +prev= +for option +do + if test -n "$prev" + then + eval "$prev=\$option" + prev= + continue + fi + + optarg=`expr "x$option" : 'x[^=]*=\(.*\)'` + + case $option in + + -amver | --amver) + prev=amver ;; + -amver=* | --amver=*) + amver=$optarg ;; + + -acver | --acver) + prev=acver ;; + -acver=* | --acver=*) + acver=$optarg ;; + + --help | -h) + cat << EOF +Usage: $0 [OPTION] + +Options: + -h, --help display this help and exit + --amver=VERSION use VERSION version of automake + --acver=VERSION use VERSION version of autoconf + +Expamle: + $0 --amver=1.8 --acver=2.59 +EOF + exit 0 + ;; + + *) + cat << EOF >&2 +$0: unrecognized option: $option +Try \`$0 --help' for more information. +EOF + exit 1 + ;; + + esac +done + +automake=automake +aclocal=aclocal +autoconf=autoconf +autoheader=autoheader + +if test -n "$amver" +then + automake=automake-$amver + aclocal=aclocal-$amver +fi + +if test -n "$acver" +then + autoconf=autoconf-$acver + autoheader=autoheader-$acver +fi + +set -e +quiet || set -x + +$aclocal -I m4 +(quiet && exec > /dev/null; libtoolize --force --copy) +$autoconf +$autoheader +$automake --add-missing --copy --gnu