[Spice-devel] [spice-gtk] autogen.sh: default to --enable-vala when building from git
Marc-André Lureau
marcandre.lureau at gmail.com
Wed Apr 4 04:21:32 PDT 2012
ack
On Wed, Apr 4, 2012 at 10:31 AM, Christophe Fergeau <cfergeau at redhat.com> wrote:
> People using autogen.sh are likely to be building from git, so may
> get updates to vala files at any time. Checking for the presence of
> controller.vala.stamp to decide whether vala should be enabled or not
> is not very accurate since it doesn't reflect if a .vala file needs
> to be regenerated or not.
> It's better to always pass --enable-vala to configure, it's always
> possible to disable it by using --disable-vala as an autogen.sh argument.
> ---
> autogen.sh | 7 ++-----
> 1 file changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/autogen.sh b/autogen.sh
> index aefd2fd..0c18272 100755
> --- a/autogen.sh
> +++ b/autogen.sh
> @@ -10,12 +10,9 @@ git submodule update --init --recursive
> gtkdocize
> autoreconf -v --force --install
> intltoolize -f
> -if test ! -e gtk/controller/controller.vala.stamp; then
> - enable_vala="--enable-vala"
> -fi
>
> if [ -z "$NOCONFIGURE" ]; then
> - echo "Running configure with --enable-maintainer-mode --enable-gtk-doc --with-gtk=3.0 $enable_vala ${1+"$@"}"
> - "$srcdir"/configure --enable-maintainer-mode --enable-gtk-doc --with-gtk=3.0 $enable_vala ${1+"$@"}
> + echo "Running configure with --enable-maintainer-mode --enable-gtk-doc --with-gtk=3.0 --enable-vala ${1+"$@"}"
> + "$srcdir"/configure --enable-maintainer-mode --enable-gtk-doc --with-gtk=3.0 --enable-vala ${1+"$@"}
> fi
>
> --
> 1.7.9.3
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
--
Marc-André Lureau
More information about the Spice-devel
mailing list