device: renew dhcp leases on awake for software devices
[NetworkManager.git] / autogen.sh
index a277576..7f97668 100755 (executable)
@@ -1,23 +1,32 @@
 #!/bin/sh
 # Run this to generate all the initial makefiles, etc.
 
+set -e
+
 srcdir=`dirname $0`
-test -z "$srcdir" && srcdir=.
-REQUIRED_AUTOMAKE_VERSION=1.7
-PKG_NAME=NetworkManager
+if test -z "$srcdir"; then
+    srcdir=.
+fi
 
-(test -f $srcdir/configure.in \
-  && test -f $srcdir/src/NetworkManager.h) || {
-    echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
-    echo " top-level $PKG_NAME directory"
-    exit 1
-}
+olddir=`pwd`
 
+REQUIRED_AUTOMAKE_VERSION=1.9
+PKG_NAME=NetworkManager
 
-which gnome-autogen.sh || {
-    echo "You need to install gnome-common from the GNOME CVS"
+(test -f $srcdir/configure.ac \
+  && test -f $srcdir/src/main.c) || {
+    printf "**Error**: Directory "\`$srcdir\'" does not look like the" >&2
+    echo " top-level $PKG_NAME directory" >&2
     exit 1
 }
-USE_GNOME2_MACROS=1 . gnome-autogen.sh
 
+cd $srcdir
+
+gtkdocize
+autopoint --force
+AUTOPOINT='intltoolize --automake --copy' autoreconf --force --install --verbose
 
+cd $olddir
+if test -z "$NOCONFIGURE"; then
+       exec $srcdir/configure --enable-maintainer-mode --enable-more-warnings=error "$@"
+fi