Make the warnings a little more relevant in other contexts

in which they may be seen.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29483 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ron Lee
2004-09-28 04:30:39 +00:00
parent 28e0c28ee3
commit 3950ea80e8

View File

@@ -154,11 +154,15 @@ remove_field()
_remf_value="$1"
_remf_list=''
shift
for _remf_item; do
[ "x$_remf_item" = "x$_remf_value" ] || \
_remf_list="${_remf_list:+$_remf_list }$_remf_item"
done
echo "$_remf_list"
if [ -n "$_remf_value" ]; then
for _remf_item; do
[ "x$_remf_item" = "x$_remf_value" ] || \
_remf_list="${_remf_list:+$_remf_list }$_remf_item"
done
echo "$_remf_list"
else
echo $*
fi
}
# validate_arg _domain _set _name _value
@@ -599,7 +603,7 @@ if [ -n "$output_option_list" ]; then
echo " to choose between alternate matches."
fi
[ -z "$_best_delegate" ] || _delegates=$(remove_field $_best_delegate $_delegates)
_delegates=$(remove_field "$_best_delegate" $_delegates)
if [ -n "$_delegates" ]; then
echo
@@ -659,10 +663,13 @@ if ! user_mask_fits "$this_config" ; then
if [ $_numdelegates -eq 0 ]; then
cat 1>&2 <<-EOF
No config found to match: $config_spec
in $wxconfdir
Please install the desired library build, or use --list
without any feature specifiers to see all available configs.
Warning: No config found to match: $config_spec
in $wxconfdir
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default prefix.
EOF
@@ -693,7 +700,8 @@ if ! user_mask_fits "$this_config" ; then
fi
decho
decho " Specification was ambiguous."
decho " *** Error: Specification is ambiguous"
decho " as $config_spec"
decho " Use additional feature options to choose between:"
for i in $(find_eligible_delegates "$configmask"); do
decho " $i"
@@ -715,8 +723,6 @@ fi
# If we are still here, then from now on we are responsible for
# all the user's needs. Time to rustle up some output for them.
# --------------------------------------------------------------