source: ttyvaders/trunk/bootstrap @ 58

Last change on this file since 58 was 40, checked in by Sam Hocevar, 18 years ago
  • Moved generated autotools files to the autotools/ directory.
  • Property svn:executable set to *
File size: 1017 bytes
Line 
1#! /bin/sh
2set -x
3
4rm -f aclocal.m4 configure libtool ltconfig ltmain.sh config.log
5rm -f autotools/compile autotools/config.guess autotools/config.sub autotools/missing autotools/mkinstalldirs autotools/depcomp autotools/install-sh
6
7# Check for automake
8amvers="none"
9if automake-1.7 --version >/dev/null 2>&1
10then
11  amvers="-1.7"
12else
13  if automake-1.6 --version >/dev/null 2>&1
14  then
15    amvers="-1.6"
16  else
17    if automake-1.5 --version >/dev/null 2>&1
18    then
19      amvers="-1.5"
20    else
21      if automake --version > /dev/null 2>&1
22      then
23        amvers=`automake --version | sed -e '1s/[^0-9]*//' -e q`
24 
25        if expr "$amvers" "<" "1.5" > /dev/null 2>&1
26        then amvers="none"
27        else amvers=""
28        fi       
29      fi
30    fi
31  fi
32fi
33
34if test x$amvers = xnone
35then
36  set +x
37  echo "you need automake version 1.5 or later"
38  exit 1
39fi
40
41aclocal${amvers} -I autotools || exit 1
42autoheader || exit 1
43automake${amvers} --add-missing --copy || exit 1
44autoconf || exit 1
45rm -f config.cache
Note: See TracBrowser for help on using the repository browser.