1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Make unknown-option-warning code more portable. echo -n is not portable,

and neither is "|" or "\|" in basic regular expressions.
This commit is contained in:
Peter Eisentraut
2006-10-13 20:23:07 +00:00
parent d63ddfb872
commit e1fdd2263f
2 changed files with 21 additions and 20 deletions

19
configure vendored
View File

@ -22980,9 +22980,9 @@ fi
#
for var in `set |sed -ne '/^\(with_\|enable\_\)/ s/=.*//p'` ; do
case $var in
with_template) ;;
for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
case $pgac_var in
with_template) ;;
with_docdir) ;;
with_includes) ;;
with_libraries) ;;
@ -23014,12 +23014,13 @@ with_readline) ;;
with_libedit_preferred) ;;
with_zlib) ;;
with_gnu_ld) ;;
*)
echo -n "*** Option ignored: "
echo $var | sed -e 's/\(^=*\)/--\1/;s/_/-/g'
;;
esac
with_gnu_ld) ;;
*)
pgac_txt=`echo $pgac_var | tr '_' '-'`
{ echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}
;;
esac
done