]> sourceware.org Git - lvm2.git/commitdiff
build: support --disable-silent-rules
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 22 Jun 2018 21:30:42 +0000 (23:30 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 22 Jun 2018 21:36:19 +0000 (23:36 +0200)
Add support for standardized option for have verbose builds.
Useful for distro builds where more details can be useful.

WHATS_NEW
configure
configure.ac
make.tmpl.in

index a875553b9a4cdd87c6f1af2e89273c46a02cf011..70fb76ac733b4b68145b3a0c3a8a88e7b3845736 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 3.0.0
 =============
+  Configure supports --disable-silent-rules for verbose builds.
   Fix unmonitoring of merging snapshots.
   Cache can uses metadata format 2 with cleaner policy.
   Fix check if resized PV can also fit metadata area.
index 4536b030215b36efd04b39606ccf2b43fa5cbaae..7dee1101cb2ff7f3f58c4811a93f092c372493bc 100755 (executable)
--- a/configure
+++ b/configure
@@ -643,6 +643,7 @@ DMEVENTD_PIDFILE
 WRITE_INSTALL
 VALGRIND_POOL
 USRSBINDIR
+SILENT_RULES
 USE_TRACKING
 UDEV_HAS_BUILTIN_BLKID
 UDEV_RULE_EXEC_DETECTION
@@ -885,6 +886,7 @@ ac_subst_files=''
 ac_user_opts='
 enable_option_checking
 enable_dependency_tracking
+enable_silent_rules
 enable_static_link
 with_user
 with_group
@@ -1622,6 +1624,7 @@ Optional Features:
   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   --disable-dependency-tracking
                           speeds up one-time build.
+  --disable-silent-rules  disable silent building
   --enable-static_link    use this to link the tools to their libraries
                           statically (default is dynamic linking
   --disable-thin_check_needs_check
@@ -8043,6 +8046,20 @@ fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_TRACKING" >&5
 $as_echo "$USE_TRACKING" >&6; }
 
+################################################################################
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build silently" >&5
+$as_echo_n "checking whether to build silently... " >&6; }
+# Check whether --enable-silent-rules was given.
+if test "${enable_silent_rules+set}" = set; then :
+  enableval=$enable_silent_rules; SILENT_RULES=$enableval
+else
+  SILENT_RULES=yes
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SILENT_RULES" >&5
+$as_echo "$SILENT_RULES" >&6; }
+
+
 ################################################################################
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
 $as_echo_n "checking whether to use static linking... " >&6; }
index 05b13e0c061f1d6e4c65b98a0c24a6b81f65056a..c3197b7e027b3a924a3a713563e5f18209e3d3a0 100644 (file)
@@ -170,6 +170,15 @@ AC_ARG_ENABLE(dependency-tracking,
              USE_TRACKING=$enableval, USE_TRACKING=yes)
 AC_MSG_RESULT($USE_TRACKING)
 
+################################################################################
+dnl -- Disable silence rules
+AC_MSG_CHECKING(whether to build silently)
+AC_ARG_ENABLE(silent-rules,
+             AC_HELP_STRING([--disable-silent-rules], [disable silent building]),
+             SILENT_RULES=$enableval, SILENT_RULES=yes)
+AC_MSG_RESULT($SILENT_RULES)
+
+
 ################################################################################
 dnl -- Enables statically-linked tools
 AC_MSG_CHECKING(whether to use static linking)
@@ -1726,6 +1735,7 @@ AC_SUBST(UDEV_SYSTEMD_BACKGROUND_JOBS)
 AC_SUBST(UDEV_RULE_EXEC_DETECTION)
 AC_SUBST(UDEV_HAS_BUILTIN_BLKID)
 AC_SUBST(USE_TRACKING)
+AC_SUBST(SILENT_RULES)
 AC_SUBST(USRSBINDIR)
 AC_SUBST(VALGRIND_POOL)
 AC_SUBST(WRITE_INSTALL)
index 07cb18a6771e1c18c5822321573ec7f166157dcf..38fdc73e2946dae055421b220a00ddae1691c729 100644 (file)
 # along with this program; if not, write to the Free Software Foundation,
 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
+ifneq ("@SILENT_RULES@","yes")
+       V ?= 1
+endif
+
 ifeq ($(V),1)
        Q=
 else
This page took 0.062556 seconds and 5 git commands to generate.