3 # Copyright (C) 2010 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>.
4 # Copyright (C) 2011 Jens Georg <mail@jensge.org>.
5 # Copyright (C) 2012 Openismus GmbH.
7 # Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
8 # Jens Georg <mail@jensge.org>
9 # Murray Cumming <murrayc@openismus.com>
11 # This file is part of Rygel.
13 # Rygel is free software; you can redistribute it and/or modify
14 # it under the terms of the GNU Lesser General Public License as published by
15 # the Free Software Foundation; either version 2 of the License, or
16 # (at your option) any later version.
18 # Rygel is distributed in the hope that it will be useful,
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 # GNU Lesser General Public License for more details.
23 # You should have received a copy of the GNU Lesser General Public License
24 # along with this program; if not, write to the Free Software Foundation,
25 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27 which gnome-autogen.sh || {
28 echo "You need to install gnome-common from the GNOME git"
32 DEFAULT_ARGS="--enable-vala --enable-valadoc --enable-maintainer-mode --enable-debug --enable-example-plugins --enable-mediathek-plugin --enable-gst-launch-plugin"
36 if [ "x$1" = "xdevel" ]; then
37 DEFAULT_ARGS="$DEFAULT_ARGS --enable-uninstalled --enable-debug --disable-apidocs"
39 elif [ "x$1" = "xrelease" ]; then
40 DEFAULT_ARGS="$DEFAULT_ARGS --enable-apidocs --disable-debug"
44 # require automake 1.11 for vala support
45 REQUIRED_AUTOMAKE_VERSION=1.11 \
46 REQUIRED_AUTOCONF_VERSION=2.64 \
47 REQUIRED_LIBTOOL_VERSION=2.2.6 \
48 REQUIRED_INTLTOOL_VERSION=0.40.0 \
49 bash gnome-autogen.sh $DEFAULT_ARGS "$@"