Help: Use stable 'if' namespace instead of experimental
[empathy-mirror.git] / autogen.sh
blobef19a9fb16585b980980173bf92006ea358f75e0
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="Empathy"
8 REQUIRED_AUTOMAKE_VERSION=1.9
10 (test -f $srcdir/configure.ac) || {
11 echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
12 echo " top-level gnome directory"
13 exit 1
16 which gnome-autogen.sh || {
17 echo "You need to install gnome-common from the GNOME GIT"
18 exit 1
21 # Fetch submodules if needed
22 if test ! -f telepathy-account-widgets/COPYING;
23 then
24 echo "+ Setting up submodules"
25 git submodule init
27 git submodule update
29 cd telepathy-account-widgets
30 sh autogen.sh --no-configure
31 cd ..
33 USE_GNOME2_MACROS=1 USE_COMMON_DOC_BUILD=yes . gnome-autogen.sh