2004-06-24 14:18:37 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Run this to generate all the initial makefiles, etc.
|
|
|
|
|
2013-06-20 16:03:31 +00:00
|
|
|
set -e
|
|
|
|
|
2004-06-24 14:18:37 +00:00
|
|
|
srcdir=`dirname $0`
|
2013-06-20 16:03:31 +00:00
|
|
|
if test -z "$srcdir"; then
|
|
|
|
srcdir=.
|
|
|
|
fi
|
2013-06-14 23:01:29 +00:00
|
|
|
|
|
|
|
olddir=`pwd`
|
|
|
|
|
2008-08-18 15:29:21 +00:00
|
|
|
REQUIRED_AUTOMAKE_VERSION=1.9
|
2004-08-26 19:14:26 +00:00
|
|
|
PKG_NAME=NetworkManager
|
|
|
|
|
2009-04-20 23:17:07 +00:00
|
|
|
(test -f $srcdir/configure.ac \
|
2010-03-03 08:57:28 +00:00
|
|
|
&& test -f $srcdir/src/main.c) || {
|
2004-08-26 19:14:26 +00:00
|
|
|
echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
|
|
|
|
echo " top-level $PKG_NAME directory"
|
|
|
|
exit 1
|
2004-06-24 14:18:37 +00:00
|
|
|
}
|
|
|
|
|
2013-06-14 23:01:29 +00:00
|
|
|
cd $srcdir
|
|
|
|
|
2013-04-26 20:42:54 +00:00
|
|
|
# Fetch submodules if needed
|
2013-06-20 16:04:01 +00:00
|
|
|
if test -d $srcdir/.git; then
|
|
|
|
echo "+ Setting up submodules"
|
|
|
|
git submodule init
|
|
|
|
git submodule update
|
|
|
|
fi
|
2013-04-26 20:42:54 +00:00
|
|
|
|
2013-06-20 16:03:31 +00:00
|
|
|
gtkdocize
|
2013-06-14 23:01:29 +00:00
|
|
|
autopoint --force
|
|
|
|
AUTOPOINT='intltoolize --automake --copy' autoreconf --force --install --verbose
|
2004-06-24 14:18:37 +00:00
|
|
|
|
2013-06-14 23:01:29 +00:00
|
|
|
cd $olddir
|
2012-11-13 20:11:50 +00:00
|
|
|
if test -z "$NOCONFIGURE"; then
|
2013-07-30 17:16:16 +00:00
|
|
|
exec $srcdir/configure --enable-maintainer-mode "$@" --enable-static=libndp
|
2012-11-13 20:11:50 +00:00
|
|
|
fi
|