source: libcaca/trunk/bootstrap @ 71

Last change on this file since 71 was 71, checked in by Sam Hocevar, 20 years ago
  • Fixed keywords, ignore, and lots of tiny SVN things.
  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.1 KB
RevLine 
[17]1#! /bin/sh
[71]2
3##  bootstrap file for ttyvaders -- Sam Hocevar <sam@zoy.org>
4##  $Id: bootstrap 71 2003-10-02 01:08:13Z sam $
5
[17]6set -x
[71]7set -e
[17]8
[71]9# Get a sane environment, just in case
10LANG=C
11export LANG
12CYGWIN=binmode
13export CYGWIN
[17]14
15# Check for automake
[71]16amvers="no"
17if automake-1.7 --version >/dev/null 2>&1; then
[17]18  amvers="-1.7"
[71]19elif automake-1.6 --version >/dev/null 2>&1; then
20  amvers="-1.6"
21elif automake-1.5 --version >/dev/null 2>&1; then
22  amvers="-1.5"
23elif automake --version > /dev/null 2>&1; then
24  amvers="`automake --version | sed -e '1s/[^0-9]*//' -e q`"
25  if expr "$amvers" "<" "1.5" > /dev/null 2>&1; then
26    amvers="no"
[17]27  else
[71]28    amvers=""
[17]29  fi
30fi
31
[71]32if test "$amvers" = "no"; then
[17]33  set +x
[71]34  echo "$0: you need automake version 1.5 or later"
[17]35  exit 1
36fi
37
[71]38# Remove old cruft
39rm -f aclocal.m4 configure config.guess config.log config.sub config.cache config.h.in config.h compile ltmain.sh libtool ltconfig missing mkinstalldirs depcomp install-sh INSTALL
40(cd autotools && rm -f config.guess config.sub missing mkinstalldirs compile ltmain.sh depcomp install-sh)
41
42aclocal${amvers}
43autoconf
44autoheader
45automake${amvers} --add-missing --copy
46
Note: See TracBrowser for help on using the repository browser.