diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2006-10-13 20:23:07 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2006-10-13 20:23:07 +0000 |
commit | e1fdd2263f8dadd9dad1c2462c3b8c7972b3ff56 (patch) | |
tree | 6c70ad42bfd47ce79e1fb78b5967fe91e5f4e3ff /configure | |
parent | d63ddfb872300c1830315eaea2fbbc8e5d4dadae (diff) | |
download | postgresql-e1fdd2263f8dadd9dad1c2462c3b8c7972b3ff56.tar.gz |
Make unknown-option-warning code more portable. echo -n is not portable,
and neither is "|" or "\|" in basic regular expressions.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 19 |
1 files changed, 10 insertions, 9 deletions
@@ -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 |