Really fix srcdir != builddir builds.
[platform/upstream/evolution-data-server.git] / autogen.sh
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
3
4 srcdir=`dirname $0`
5 test -z "$srcdir" && srcdir=.
6
7 olddir=`pwd`
8
9 PKG_NAME="evolution-data-server"
10 REQUIRED_AUTOCONF_VERSION=2.58
11 REQUIRED_AUTOMAKE_VERSION=1.10
12 REQUIRED_LIBTOOL_VERSION=2.2
13 REQUIRED_INTLTOOL_VERSION=0.35.5
14
15 (test -f $srcdir/configure.ac \
16   && test -f $srcdir/ChangeLog \
17   && test -d $srcdir/calendar) || {
18     echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
19     echo " top-level $PKG_NAME directory"
20     exit 1
21 }
22
23 which gnome-autogen.sh || {
24     echo "You need to install gnome-common from the GNOME CVS"
25     exit 1
26 }
27
28 cd $srcdir
29 autopoint --force || exit $?
30
31 cd $olddir
32 USE_GNOME2_MACROS=1 . gnome-autogen.sh