alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | |
alp@webkit.org | a37ed5b | 2008-01-05 10:23:01 +0000 | [diff] [blame] | 3 | # Allow invocation from a separate build directory; in that case, we change |
| 4 | # to the source directory to run the auto*, then change back before running configure |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 5 | srcdir=`dirname $0` |
| 6 | test -z "$srcdir" && srcdir=. |
| 7 | |
alp@webkit.org | a37ed5b | 2008-01-05 10:23:01 +0000 | [diff] [blame] | 8 | ORIGDIR=`pwd` |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 9 | cd $srcdir |
| 10 | |
xan@webkit.org | 3d6bfc3 | 2011-01-03 23:43:40 +0000 | [diff] [blame] | 11 | rm -f $top_srcdir/autom4te.cache |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 12 | |
| 13 | touch README INSTALL |
| 14 | |
xan@webkit.org | 3d6bfc3 | 2011-01-03 23:43:40 +0000 | [diff] [blame] | 15 | if test -z `which autoreconf`; then |
| 16 | echo "Error: autoreconf not found, please install it." |
| 17 | exit 1 |
| 18 | fi |
xan@webkit.org | e8f4563 | 2011-01-03 23:52:04 +0000 | [diff] [blame] | 19 | autoreconf --verbose --install -I Source/autotools $ACLOCAL_FLAGS|| exit $? |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 20 | |
alp@webkit.org | a37ed5b | 2008-01-05 10:23:01 +0000 | [diff] [blame] | 21 | cd $ORIGDIR || exit 1 |
| 22 | |
xan@webkit.org | 65112d7 | 2012-03-28 14:19:14 +0000 | [diff] [blame] | 23 | if test -z "$NOCONFIGURE"; then |
| 24 | $srcdir/configure $AUTOGEN_CONFIGURE_ARGS "$@" || exit $? |
| 25 | fi |
| 26 | |