Dan Nicholson | 460d25d | 2008-03-07 12:04:17 -0800 | [diff] [blame] | 1 | #! /bin/sh |
2 | |||||
3 | srcdir=`dirname "$0"` | ||||
4 | test -z "$srcdir" && srcdir=. | ||||
5 | |||||
Dan Nicholson | 460d25d | 2008-03-07 12:04:17 -0800 | [diff] [blame] | 6 | ORIGDIR=`pwd` |
Matt Turner | 1b200d9 | 2012-08-01 14:11:31 -0700 | [diff] [blame] | 7 | cd "$srcdir" |
Benjamin Close | 17fe478 | 2009-02-10 11:54:27 +1030 | [diff] [blame] | 8 | |
Dan Nicholson | 460d25d | 2008-03-07 12:04:17 -0800 | [diff] [blame] | 9 | autoreconf -v --install || exit 1 |
Matt Turner | 1b200d9 | 2012-08-01 14:11:31 -0700 | [diff] [blame] | 10 | cd $ORIGDIR || exit $? |
Dan Nicholson | 460d25d | 2008-03-07 12:04:17 -0800 | [diff] [blame] | 11 | |
Colin Walters | 4d515c2 | 2011-09-17 11:21:30 -0400 | [diff] [blame] | 12 | if test -z "$NOCONFIGURE"; then |
13 | "$srcdir"/configure "$@" | ||||
14 | fi |