bootstrap
changeset 1304 c9c2e90b2342
parent 542 69bde1d90c04
child 1348 115e42a5b0f7
     1.1 --- a/bootstrap	Tue Apr 05 06:41:21 2005 +0000
     1.2 +++ b/bootstrap	Tue Apr 05 08:43:51 2005 +0000
     1.3 @@ -1,4 +1,71 @@
     1.4 -#! /bin/sh
     1.5 -aclocal-1.7 \
     1.6 -&& automake-1.7 --gnu --add-missing \
     1.7 -&& autoconf
     1.8 +#!/bin/bash
     1.9 +
    1.10 +prev=
    1.11 +for option
    1.12 +do
    1.13 +  if test -n "$prev"
    1.14 +  then
    1.15 +    eval "$prev=\$option"
    1.16 +    prev=
    1.17 +    continue
    1.18 +  fi
    1.19 +
    1.20 +  optarg=`expr "x$option" : 'x[^=]*=\(.*\)'`
    1.21 +
    1.22 +  case $option in
    1.23 +
    1.24 +  -amver | --amver)
    1.25 +    prev=amver ;;
    1.26 +  -amver=* | --amver=*)
    1.27 +    amver=$optarg ;;
    1.28 +
    1.29 +  -acver | --acver)
    1.30 +    prev=acver ;;
    1.31 +  -acver=* | --acver=*)
    1.32 +    acver=$optarg ;;
    1.33 +
    1.34 +  --help | -h)
    1.35 +    cat << EOF
    1.36 +Usage: $0 [OPTION]
    1.37 +
    1.38 +Options:
    1.39 +  -h, --help            display this help and exit
    1.40 +      --amver=VERSION   use VERSION version of automake
    1.41 +      --acver=VERSION   use VERSION version of autoconf
    1.42 +
    1.43 +Expamle:
    1.44 +  $0 --amver=1.8 --acver=2.59
    1.45 +EOF
    1.46 +    exit 0
    1.47 +    ;;
    1.48 +
    1.49 +  *)
    1.50 +    cat << EOF >&2
    1.51 +$0: unrecognized option: $option
    1.52 +Try \`$0 --help' for more information.
    1.53 +EOF
    1.54 +    exit 1
    1.55 +    ;;
    1.56 +
    1.57 +  esac
    1.58 +done
    1.59 +
    1.60 +automake=automake
    1.61 +aclocal=aclocal
    1.62 +autoconf=autoconf
    1.63 +
    1.64 +if test -n "$amver"
    1.65 +then
    1.66 +  automake=automake-$amver
    1.67 +  aclocal=aclocal-$amver
    1.68 +fi
    1.69 +
    1.70 +if test -n "$acver"
    1.71 +then
    1.72 +  autoconf=autoconf-$acver
    1.73 +fi
    1.74 +
    1.75 +$aclocal \
    1.76 +&& libtoolize --force --copy \
    1.77 +&& $automake --add-missing --copy --gnu \
    1.78 +&& $autoconf