Only pass --enable-maintainer-mode when AM_MAINTAINER_MODE is present
authorRodney Dawes <dobey@src.gnome.org>
Sun, 29 Mar 2009 03:11:13 +0000 (03:11 +0000)
committerRodney Dawes <dobey@src.gnome.org>
Sun, 29 Mar 2009 03:11:13 +0000 (03:11 +0000)
svn path=/trunk/; revision=3929

ChangeLog
macros2/gnome-autogen.sh

index 1392d0f..03ce5d2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-03-28  Rodney Dawes  <dobey@gnome.org>
+
+       * macros2/gnome-autogen.sh:
+       Only pass --enable-maintainer-mode when AM_MAINTAINER_MODE is present
+
+       FIxes #577037
+
 2008-11-25  Vincent Untz  <vuntz@gnome.org>
 
        * macros2/gnome-common.m4: add -DWNCK_DISABLE_DEPRECATED
index e2ce97f..ba61f82 100644 (file)
@@ -257,6 +257,7 @@ want_intltool=false
 want_pkg_config=false
 want_gtk_doc=false
 want_gnome_doc_utils=false
+want_maintainer_mode=false
 
 configure_files="`find $srcdir -name '{arch}' -prune -o -name '_darcs' -prune -o -name '.??*' -prune -o -name configure.ac -print -o -name configure.in -print`"
 for configure_ac in $configure_files; do
@@ -289,6 +290,11 @@ for configure_ac in $configure_files; do
         want_gnome_doc_utils=true
     fi
 
+    # check that AM_MAINTAINER_MODE is used
+    if grep "^AM_MAINTAINER_MODE" $configure_ac >/dev/null; then
+       want_maintainer_mode=true
+    fi
+
     # check to make sure gnome-common macros can be found ...
     if grep "^GNOME_COMMON_INIT" $configure_ac >/dev/null ||
        grep "^GNOME_DEBUG_CHECK" $configure_ac >/dev/null ||
@@ -484,7 +490,11 @@ for configure_ac in $configure_files; do
     fi
 done
 
-conf_flags="--enable-maintainer-mode"
+conf_flags=""
+
+if $want_maintainer_mode; then
+    conf_flags="--enable-maintainer-mode"
+fi
 
 if test x$NOCONFIGURE = x; then
     printbold Running $srcdir/configure $conf_flags "$@" ...