Cleaned up item view.
[straw.git] / autogen.sh
blob9c8f2631cb500c8797dc60fae2290223b05b9fc6
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
4 srcdir=`dirname $0`
5 test -z "$srcdir" && srcdir=.
7 PKG_NAME="straw"
8 ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I m4"
9 REQUIRED_AUTOCONF_VERSION=2.60
10 REQUIRED_AUTOMAKE_VERSION=1.9.2
11 REQUIRED_MACROS="python.m4"
13 (test -f $srcdir/configure.ac \
14 && test -f $srcdir/autogen.sh) || {
15 echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
16 echo " top-level $PKG_NAME directory"
17 exit 1
20 DIE=0
22 gnome_autogen=
23 gnome_datadir=
25 ifs_save="$IFS"; IFS=":"
26 for dir in $PATH ; do
27 test -z "$dir" && dir=.
28 if test -f $dir/gnome-autogen.sh ; then
29 gnome_autogen="$dir/gnome-autogen.sh"
30 gnome_datadir=`echo $dir | sed -e 's,/bin$,/share,'`
31 break
33 done
34 IFS="$ifs_save"
36 if test -z "$gnome_autogen" ; then
37 echo "You need to install the gnome-common module and make"
38 echo "sure the gnome-autogen.sh script is in your \$PATH."
39 exit 1
42 GNOME_DATADIR="$gnome_datadir" USE_GNOME2_MACROS=1 . $gnome_autogen