diff --git a/configure b/configure
index 558f780cf11edf18ad7a37fcead9361c9457be0a..17e1db1e3e897acb91e6c074b9eb7c958c3d9f56 100755
--- a/configure
+++ b/configure
@@ -2784,7 +2784,7 @@ else
 fi
 
 cat >>confdefs.h <<_ACEOF
-#define PG_VERSION_STR "PostgreSQL $VERSION on $host, compiled by $cc_string"
+#define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
 _ACEOF
 
 
diff --git a/configure.in b/configure.in
index ebc4b87b7276478719f373ee0af3980aed27b342..1d5a3703f9c3e1774d4f1c07e3d3eb98e4188bb6 100644
--- a/configure.in
+++ b/configure.in
@@ -1,5 +1,5 @@
 dnl Process this file with autoconf to produce a configure script.
-dnl $Header: /cvsroot/pgsql/configure.in,v 1.173 2002/03/30 00:59:52 petere Exp $
+dnl $Header: /cvsroot/pgsql/configure.in,v 1.174 2002/04/01 01:11:00 tgl Exp $
 
 dnl Developers, please strive to achieve this order:
 dnl
@@ -299,7 +299,7 @@ if test x"$GCC" = x"yes" ; then
 else
   cc_string=$CC
 fi
-AC_DEFINE_UNQUOTED(PG_VERSION_STR, ["PostgreSQL $VERSION on $host, compiled by $cc_string"], [A canonical string containing the version number, platform, and C compiler])
+AC_DEFINE_UNQUOTED(PG_VERSION_STR, ["PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"], [A canonical string containing the version number, platform, and C compiler])
 
 
 #