Eric Anholt | 8c64183 | 2009-03-26 17:15:11 -0700 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | |
Gaetan Nadon | a03ef7a | 2012-01-03 21:12:24 -0500 | [diff] [blame] | 3 | srcdir=`dirname $0` |
| 4 | test -z "$srcdir" && srcdir=. |
| 5 | |
| 6 | ORIGDIR=`pwd` |
| 7 | cd $srcdir |
| 8 | |
Thomas Wood | 14ea2a0 | 2014-03-11 16:04:28 +0000 | [diff] [blame] | 9 | if ! type gtkdocize > /dev/null 2>&1; then |
| 10 | echo "EXTRA_DIST =" > gtk-doc.make |
| 11 | echo "CLEANFILES =" >> gtk-doc.make |
| 12 | else |
| 13 | gtkdocize || exit $? |
| 14 | fi |
| 15 | |
Gaetan Nadon | a03ef7a | 2012-01-03 21:12:24 -0500 | [diff] [blame] | 16 | autoreconf -v --install || exit 1 |
| 17 | cd $ORIGDIR || exit $? |
| 18 | |
Tomeu Vizoso | 12fd590 | 2016-05-19 10:49:29 +0200 | [diff] [blame] | 19 | if test -z "$NOCONFIGURE"; then |
| 20 | $srcdir/configure "$@" |
| 21 | fi |