99c398e908429db4713f6c018e83e814cd460003
[platform/upstream/atk.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 GTKDOCIZE=`which gtkdocize`
11 if test -z $GTKDOCIZE; then
12         echo "*** No GTK-Doc found, please install it ***"
13         exit 1
14 fi
15
16 AUTORECONF=`which autoreconf`
17 if test -z $AUTORECONF; then
18         echo "*** No autoreconf found, please install it ***"
19         exit 1
20 fi
21
22 mkdir -p m4
23
24 gtkdocize || exit $?
25 autoreconf --force --install --verbose || exit $?
26
27 cd "$olddir"
28 test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"