Bug 31174 - Update autotools configuration
[framework/uifw/harfbuzz.git] / autogen.sh
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
3
4 test -n "$srcdir" || srcdir=`dirname "$0"`
5 test -n "$srcdir" || srcdir=.
6
7 olddir=`pwd`
8 cd $srcdir
9
10 AUTORECONF=`which autoreconf`
11 if test -z $AUTORECONF; then
12         echo "*** No autoreconf found, please install it ***"
13         exit 1
14 else
15         autoreconf --force --install || exit $?
16 fi
17
18 cd $olddir
19 test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"