| 2 | | |
| 3 | | # $Id: autogen.sh,v 1.4 2002/12/02 01:39:49 murrayc Exp $ |
| 4 | | # |
| 5 | | # Copyright (c) 2002 Daniel Elstner <daniel.elstner@gmx.net> |
| 6 | | # |
| 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. |
| 12 | | # |
| 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. |
| 17 | | # |
| 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 |
| 21 | | |
| 22 | | |
| 23 | | dir=`echo "$0" | sed 's,[^/]*$,,'` |
| 24 | | test "x${dir}" = "x" && dir='.' |
| 25 | | |
| 26 | | if test "x`cd "${dir}" 2>/dev/null && pwd`" != "x`pwd`" |
| 27 | | then |
| 28 | | echo "This script must be executed directly from the source directory." |
| 29 | | exit 1 |
| 30 | | fi |
| 31 | | |
| 32 | | rm -f config.cache acconfig.h |
| 33 | | |
| 34 | | #echo "- libtoolize." && \ |
| 35 | | #libtoolize --force && \ |
| 36 | | echo "- aclocal." && \ |
| 37 | | aclocal && \ |
| 38 | | echo "- autoconf." && \ |
| 39 | | autoconf && \ |
| 40 | | #echo "- autoheader." && \ |
| 41 | | #autoheader && \ |
| 42 | | echo "- automake." && \ |
| 43 | | automake --add-missing --gnu && \ |
| 44 | | echo && \ |
| 45 | | ./configure "$@" && exit 0 |
| 46 | | |
| | 2 | autoreconf --install && ./configure "$@" && exit 0 |