[jhbuild] autogen.sh: Add a hack to work in the gnome-ostree build system



commit ea9c867401e04f2537901e8ec09d7be26d2c6c6e
Author: Colin Walters <walters verbum org>
Date:   Fri Apr 12 09:27:18 2013 -0400

    autogen.sh: Add a hack to work in the gnome-ostree build system
    
    gnome-ostree doesn't support passing parameters to autogen.sh, but
    we can't do the full autotools thing because we don't have yelp.
    
    A simple hackaround for this is to check NOCONFIGURE; if someone's
    specifying that we just give them the autotools always.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=697875

 autogen.sh |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index e50895b..efdf68b 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -200,12 +200,21 @@ yelp_tools_available=$?
 
 parse_commandline $*
 
+have_autotools=1
 if [ $gnome_autogen_available -eq 0 -a \
      $yelp_tools_available -eq 0 -a \
      $enable_autotools -eq 1 ]; then
-  if test -z "$NOCONFIGURE"; then
-      configure_with_autotools $*
-  fi
+    have_autotools=0
+fi
+# As a hack, force use of autotools if NOCONFIGURE is specified; this
+# allows the gnome-ostree build system to work which doesn't have
+# yelp, but also can't pass options to autogen.sh
+if test -z "$NOCONFIGURE"; then
+    have_autotools=0
+fi
+
+if [ $have_autotools -eq 0 ]; then
+  configure_with_autotools $*
 else
   if [ $gnome_autogen_available -ne 0 ]; then
     gettext "gnome-autogen.sh not available"; echo


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]