]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
bootstrap: show output from 'make bootstrap-deps'.
authorGary V. Vaughan <gary@gnu.org>
Wed, 24 Oct 2012 02:58:11 +0000 (21:58 -0500)
committerGary V. Vaughan <gary@gnu.org>
Wed, 24 Oct 2012 03:02:57 +0000 (22:02 -0500)
* bootstrap.conf (libtool_build_prerequisites): Add support for
AM_V_GEN and AM_V_at to the temporary pre-configure Makefile.
Instead of eliding non-error output from bootstrap-deps, show
the results, with verbosity set according to $opt_verbose.
* Makefile.am (m4/ltversion.m4, build-aux/ltmain.sh, libtool)
(README): Fix the display rules to correctly fall-back to
AM_DEFAULT_VERBOSITY when V=1 is not passed to make invocation.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
Makefile.am
bootstrap.conf

index 6421755bd8b6b85ccfb1ce4b613429d7ae37ad67..d7baa93e99a46f4477796c66aa79256d71335b94 100644 (file)
@@ -131,7 +131,8 @@ $(ltversion_m4): $(ltversion_in) $(dotversion)
          else \
            serial=`$(git_commit_count)`; \
          fi; \
-         if test 0 = '$(V)'; then echo "  GEN   " $@; \
+         if test 0 = '$(AM_DEFAULT_VERBOSITY)' && test 1 != '$(V)'; \
+           then echo "  GEN     " $@; \
          else echo $(bootstrap_edit) "'$(ltversion_in)' > '$@'"; fi; \
          $(bootstrap_edit) '$(ltversion_in)' > '$@'; \
          chmod a-w '$@'; \
@@ -158,7 +159,8 @@ $(ltmain_sh): $(ltmain_in) $(dotversion)
        done; \
        if $$rebuild; then \
          rm -f '$@'; \
-         if test 0 = '$(V)'; then echo "  GEN   " $@; \
+         if test 0 = '$(AM_DEFAULT_VERBOSITY)' && test 1 != '$(V)'; \
+           then echo "  GEN     " $@; \
          else echo "$(inline_source) '$(ltmain_in)' |" $(bootstrap_edit) "> '$@'"; fi; \
          $(inline_source) '$(ltmain_in)' | $(bootstrap_edit) > '$@'; \
          chmod a-w '$@'; \
@@ -294,7 +296,8 @@ libtool: $(ltmain_sh) $(config_status) $(dotversion)
          case $$prereq in *.version);; *) rebuild=:;; esac; \
        done; \
        if $$rebuild; then \
-         if test 0 = '$(V)'; then echo "  GEN   " $@; \
+         if test 0 = '$(AM_DEFAULT_VERBOSITY)' && test 1 != '$(V)'; \
+           then echo "  GEN     " $@; \
          else echo '$(SHELL) $(top_builddir)/config.status "$@"'; fi; \
          cd '$(top_builddir)' && '$(SHELL)' ./config.status '$@'; \
        fi
@@ -547,7 +550,8 @@ EXTRA_DIST += $(edit_readme_alpha)
 re_odd_version = '\([0-9][0-9]*.[0-9][0-9]*.[0-9]*[13579]\)'
 $(readme): FORCE
        @if test -n `expr $(VERSION) : $(re_odd_version)`; then \
-         if test 0 = '$(V)'; then echo "  GEN   " $@; \
+         if test 0 = '$(AM_DEFAULT_VERBOSITY)' && 1 != '$(V)'; \
+           then echo "  GEN     " $@; \
          else echo "$(SHELL) $(edit_readme_alpha) $@"; fi; \
          $(SHELL) $(edit_readme_alpha) '$@'; \
        fi
index 085f79e62b73f8d270242c669ddfbd6df2afbf5f..a4af1e6c63e2730e4fd6fa1d73359d76145fc195 100644 (file)
@@ -203,6 +203,16 @@ libtool_build_prerequisites ()
       echo "aux_dir = $build_aux"
       echo "ltdl_dir = $ltdl_dir"
       echo "macro_dir = $macro_dir"
+
+      # The following allow us to tie bootstrap-deps output verbosity
+      # into the bootstrap --verbose option:
+      echo 'AM_V_GEN = $(am__v_GEN_$(V))'
+      echo 'am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))'
+      echo 'am__v_GEN_0 = @echo "  GEN     " $@;'
+      echo 'AM_V_at = $(am__v_at_$(V))'
+      echo 'am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))'
+      echo 'am__v_at_0 = @'
+
       $SED '/^if /,/^endif$/d;/^else$/,/^endif$/d;/^include /d' $makes
     } > Makefile
 
@@ -210,14 +220,14 @@ libtool_build_prerequisites ()
     # generate them here, and have Makefile rules to keep them up to date.
     func_echo "running: $MAKE bootstrap-deps ..."
     $opt_dry_run || {
-    output=`$MAKE bootstrap-deps  \
+      $MAKE bootstrap-deps \
+        AM_DEFAULT_VERBOSITY=0 `$opt_verbose && echo V=1` \
         PACKAGE="$package" PACKAGE_BUGREPORT="$package_bugreport" \
         PACKAGE_NAME="$package_name" PACKAGE_URL="$package_url" \
-        SED="$SED" srcdir=. VERSION="$package_version" 2>&1`
+        SED="$SED" srcdir=. VERSION="$package_version"
     }
     status=$?
 
-    test 0 -eq "$status" || echo "$output"
     rm -f Makefile
     test 0 -eq "$status" ||exit $EXIT_FAILURE
 }