diff --git a/packaging/debian/rules b/packaging/debian/rules
index b5a13b3e0724ed80c3909f1ee96cfcc6b8dbb8d1..85fac1dcd8d368c506b4f92df4566dc5aa00ef66 100755
--- a/packaging/debian/rules
+++ b/packaging/debian/rules
@@ -6,7 +6,7 @@
 # architecture-dependant package, as well as an architecture-independent
 # package.
 #
-# $Id: rules,v 1.35 2002/12/06 04:21:21 grendel Exp $
+# $Id: rules,v 1.36 2002/12/21 19:42:17 grendel Exp $
 #
 
 # Uncomment this to turn on verbose mode. 
@@ -58,6 +58,7 @@ CFARGS=--without-rtldebug \
        --with-postgres \
        --with-postgres-include-dir=/usr/include/postgresql \
        --with-libpq-dir=/usr/lib \
+       --with-perl \
        --without-ffmpeg \
        --without-libpdf \
        --without-libpanda $(MACHINE_OPTS)
diff --git a/src/modules/Postgres/configure.in b/src/modules/Postgres/configure.in
index 55b18076ad2f89bd0b8eea1c08638af5e4d5826c..75b3584682cfe41fa6b7aba3fabe33c4e997d02e 100644
--- a/src/modules/Postgres/configure.in
+++ b/src/modules/Postgres/configure.in
@@ -1,4 +1,4 @@
-dnl $Id: configure.in,v 1.17 2002/08/02 21:23:38 grendel Exp $
+dnl $Id: configure.in,v 1.18 2002/12/21 19:42:17 grendel Exp $
 
 AC_INIT(postgres.c)
 AC_CONFIG_HEADER(pgres_config.h)
@@ -93,7 +93,7 @@ dnl check whether we have Postgres 7.2 or newer
   HAVE_PG72=no
   if test -f $pike_cv_pgres_include_dir/pg_config.h; then
     case `grep 'PG_VERSION \"' $pike_cv_pgres_include_dir/pg_config.h | cut -d '"' -f 2` in
-       7.2*) HAVE_PG72=yes
+       7.[[2-9]]*|8.*) HAVE_PG72=yes
              AC_DEFINE(HAVE_PG72) ;;
     esac
   fi