Commit 59d2b00d authored by Diego Biurrun's avatar Diego Biurrun

configure: Add --quiet command line parameter to suppress informative output

parent 4537647c
...@@ -63,6 +63,7 @@ Options: [defaults in brackets after descriptions] ...@@ -63,6 +63,7 @@ Options: [defaults in brackets after descriptions]
Help options: Help options:
--help print this message --help print this message
--quiet Suppress showing informative output
--list-decoders show all available decoders --list-decoders show all available decoders
--list-encoders show all available encoders --list-encoders show all available encoders
--list-hwaccels show all available hardware accelerators --list-hwaccels show all available hardware accelerators
...@@ -1167,7 +1168,7 @@ apply(){ ...@@ -1167,7 +1168,7 @@ apply(){
} }
cp_if_changed(){ cp_if_changed(){
cmp -s "$1" "$2" && echo "$2 is unchanged" && return cmp -s "$1" "$2" && { test "$quiet" != "yes" && echo "$2 is unchanged"; } && return
mkdir -p "$(dirname $2)" mkdir -p "$(dirname $2)"
$cp_f "$1" "$2" $cp_f "$1" "$2"
} }
...@@ -2740,6 +2741,8 @@ for opt do ...@@ -2740,6 +2741,8 @@ for opt do
;; ;;
--help|-h) show_help --help|-h) show_help
;; ;;
--quiet|-q) quiet=yes
;;
*) *)
optname="${opt%%=*}" optname="${opt%%=*}"
optname="${optname#--}" optname="${optname#--}"
...@@ -5112,6 +5115,8 @@ expand_deps(){ ...@@ -5112,6 +5115,8 @@ expand_deps(){
map 'expand_deps $v' $LIBRARY_LIST map 'expand_deps $v' $LIBRARY_LIST
if test "$quiet" != "yes"; then
echo "install prefix $prefix" echo "install prefix $prefix"
echo "source path $source_path" echo "source path $source_path"
echo "C compiler $cc" echo "C compiler $cc"
...@@ -5211,6 +5216,8 @@ echo "License: $license" ...@@ -5211,6 +5216,8 @@ echo "License: $license"
echo "Creating config.mak and config.h..." echo "Creating config.mak and config.h..."
fi # test "$quiet" != "yes"
test -e Makefile || echo "include $source_path/Makefile" > Makefile test -e Makefile || echo "include $source_path/Makefile" > Makefile
config_files="$TMPH config.mak" config_files="$TMPH config.mak"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment