3 # $Id: autogen.sh,v 1.1 2006/07/13 11:06:16 sortiz Exp $
5 # Copyright (c) 2002 Daniel Elstner <daniel.elstner@gmx.net>
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License VERSION 2 as
9 # published by the Free Software Foundation. You are not allowed to
10 # use any other version of the license; unless you got the explicit
11 # permission from the author to do so.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 dir
=`echo "$0" | sed 's,[^/]*$,,'`
24 test "x${dir}" = "x" && dir
='.'
26 if test "x`cd "${dir}" 2>/dev/null && pwd`" != "x`pwd`"
28 echo "This script must be executed directly from the source directory."
32 rm -f config.cache acconfig.h
34 echo "- aclocal." && \
36 echo "- autoconf." && \
38 echo "- autoheader." && \
40 echo "- automake." && \
41 automake
--add-missing --gnu && \
43 .
/configure
"$@" && exit 0