Revert "Revert "Merge remote-tracking branch 'origin/sandbox/mniesluchow/upstream_2_1...
[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 if test -z $GTKDOCIZE; then
11         echo "You don't have gtk-doc installed, and thus won't be able to generate the documentation."
12         rm -f gtk-doc.make
13         cat > gtk-doc.make <<EOF
14 EXTRA_DIST =
15 CLEANFILES =
16 EOF
17 else
18         gtkdocize || exit $?
19 fi
20
21 AUTORECONF=`which autoreconf`
22 if test -z $AUTORECONF; then
23         echo "*** No autoreconf found, please install it ***"
24         exit 1
25 fi
26
27 autoreconf --verbose --force --install -Wno-portability || exit 1
28
29 cd "$olddir"
30
31 test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"