47640c3e4904c3865bd95e5be9dc798f49c19759
[platform/upstream/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 echo -n "checking for pkg-config... "
11 which pkg-config || {
12         echo "*** No pkg-config found, please install it ***"
13         exit 1
14 }
15
16 echo -n "checking for autoreconf... "
17 which autoreconf || {
18         echo "*** No autoreconf found, please install it ***"
19         exit 1
20 }
21
22 echo "running autoreconf --force --install --verbose"
23 autoreconf --force --install --verbose || exit $?
24
25 cd $olddir
26 echo "running configure $@"
27 test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"