build: drop the libndp submodule
[NetworkManager.git] / autogen.sh
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
3
4 set -e
5
6 srcdir=`dirname $0`
7 if test -z "$srcdir"; then
8     srcdir=.
9 fi
10
11 olddir=`pwd`
12
13 REQUIRED_AUTOMAKE_VERSION=1.9
14 PKG_NAME=NetworkManager
15
16 (test -f $srcdir/configure.ac \
17   && test -f $srcdir/src/main.c) || {
18     echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
19     echo " top-level $PKG_NAME directory"
20     exit 1
21 }
22
23 cd $srcdir
24
25 # Fetch submodules if needed
26 if test -d $srcdir/.git; then
27     echo "+ Setting up submodules"
28     git submodule init
29     git submodule update
30 fi
31
32 gtkdocize
33 autopoint --force
34 AUTOPOINT='intltoolize --automake --copy' autoreconf --force --install --verbose
35
36 cd $olddir
37 if test -z "$NOCONFIGURE"; then
38         exec $srcdir/configure --enable-maintainer-mode "$@"
39 fi