1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
|
#! /bin/sh
# bootstrap, Copyright (c) 2004 Lance Arsenault
#
# This program is free software; you can redistribute it
# and/or modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING. If not, see it in
# the web at http://www.gnu.org/copyleft/gpl.html or write to the Free
# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
# 02111-1307, USA.
#---------------------------------------------------------------------
# WHAT'S THIS FOR
# Run this if you just got this package from CVS.
# This is run to generate files (./configure and Makefile.in)
# needed to make the files in this directory into something closer to
# a package for source distribution (packages source tar-ball files).
# The files that this starts with commonly come from a CVS or other
# file repository. This uses the GNU Autotools.
#---------------------------------------------------------------------
########################################################################
# This block was taken from Daniel Elstner's autogen.sh.
########################################################################
dir=`echo "$0" | sed 's,[^/]*$,,'`
test "x${dir}" = "x" && dir='.'
if test "x`cd "${dir}" 2>/dev/null && pwd`" != "x`pwd`"
then
echo "This script ($0) must be executed directly\
from the top $0 source directory."
exit 1
fi
# end taken from Daniel Elstner
########################################################################
touch stamp-h
script="$0"
error=0
# This function, run(), just helps by adding more spew for debugging
# when running programs. If any thing fails to run it stops running
# programs and spews what it would like to run.
run()
{
if [ $error = 0 ]
then
echo "$script RUNNING: $@"
if ! $@
then
echo
echo "-------------------------- ERROR ---------------------------"
echo "$script had an error while running: $@"
echo "------------------------------------------------------------"
error=1
fi
else
echo "+++++ $script DID NOT RUN: $@"
fi
}
# WANT_AUTOCONF, WANT_AUTOMAKE and WANT_LIBTOOL will help find usable
# versions of autoconf, automake and libtoolize on Gentoo GNU/Linux
# systems when there are multiple versions installed. On Gentoo
# GNU/Linux when there are multiple versions of a package installed
# the executables are installed as wrappers that parse the
# WANT_"PACKAGE_NAME" environment variable.
export WANT_AUTOCONF=2.58
export WANT_AUTOMAKE=1.7
export WANT_LIBTOOL=1.4.3
run aclocal
run libtoolize --force --automake
run autoheader
run automake --add-missing
run autoconf
# final spew
if [ $error = 0 ]
then
echo "$script ran successfully"
else
echo "$script did not run successfully"
fi
exit $error
|