]> Pileus Git - ~andy/gtk/blob - autogen.sh
stylecontext: Do invalidation on first resize container
[~andy/gtk] / 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 mkdir -p m4
11
12 GTKDOCIZE=`which gtkdocize`
13 if test -z $GTKDOCIZE; then
14         echo "*** No GTK-Doc found, please install it ***"
15         exit 1
16 else
17         gtkdocize || exit $?
18 fi
19
20 # README and INSTALL are required by automake, but may be deleted by clean
21 # up rules. to get automake to work, simply touch these here, they will be
22 # regenerated from their corresponding *.in files by ./configure anyway.
23 touch README INSTALL
24
25 AUTORECONF=`which autoreconf`
26 if test -z $AUTORECONF; then
27         echo "*** No autoreconf found, please install it ***"
28         exit 1
29 else
30         autoreconf --force --install --verbose || exit $?
31 fi
32
33 cd "$olddir"
34 test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"