blob: 02b81ef5fde92f16222c2fb42f0dcc1642d17c33 [file] [log] [blame]
Eric Anholta909eb42013-09-19 09:50:49 -07001#! /bin/sh
2
3srcdir=`dirname $0`
4test -z "$srcdir" && srcdir=.
5
6ORIGDIR=`pwd`
Emmanuele Bassi0f7f16b2016-12-07 16:13:09 +00007cd "$srcdir"
Eric Anholta909eb42013-09-19 09:50:49 -07008
Emmanuele Bassi48ee13e2017-02-09 17:10:34 +00009mkdir m4 || exit 1
10
Emmanuele Bassiaef80bc2017-01-31 12:43:58 +000011autoreconf -v --install || exit $?
Martin Castillo7e9e12f2016-02-26 18:54:23 +010012cd "$ORIGDIR" || exit $?
Eric Anholta909eb42013-09-19 09:50:49 -070013
14if test -z "$NOCONFIGURE"; then
Emmanuele Bassiaef80bc2017-01-31 12:43:58 +000015 exec "$srcdir/configure" "$@"
Eric Anholta909eb42013-09-19 09:50:49 -070016fi