summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-06-29 16:18:43 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-06-29 16:18:43 +0000
commitc786796d0a7931d67a38840d899c4e45ef4c7bf6 (patch)
tree4bf9f3071cfedb9c685f7b2a35080fe63d6cdcee /configure
parent4303c0fdbf219028d66e1610aaa1a8e228255356 (diff)
downloadpostgresql-c786796d0a7931d67a38840d899c4e45ef4c7bf6.tar.gz
Fix computation of PG_VERSION_NUM by configure: remove unnecessary and
unportable backslashes in awk script (per Patrick Welche), and add brackets to prevent autoconf from mangling sed's regexp (the sed call here never did what was expected).
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 60410b3920..4bfae7d163 100755
--- a/configure
+++ b/configure
@@ -5271,9 +5271,9 @@ fi
# Supply a numeric version string for use by 3rd party add-ons
# awk -F is a regex on some platforms, and not on others, so make "." a tab
-PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/A-Za-z.*$//' |
+PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
tr '.' ' ' |
-$AWK '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
+$AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
cat >>confdefs.h <<_ACEOF
#define PG_VERSION_NUM $PG_VERSION_NUM