summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2006-10-13 20:23:07 +0000
committerPeter Eisentraut <peter_e@gmx.net>2006-10-13 20:23:07 +0000
commite1fdd2263f8dadd9dad1c2462c3b8c7972b3ff56 (patch)
tree6c70ad42bfd47ce79e1fb78b5967fe91e5f4e3ff /configure
parentd63ddfb872300c1830315eaea2fbbc8e5d4dadae (diff)
downloadpostgresql-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-xconfigure19
1 files changed, 10 insertions, 9 deletions
diff --git a/configure b/configure
index f01b03b15c..3a826db364 100755
--- a/configure
+++ b/configure
@@ -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