Index: configure.in
===================================================================
RCS file: /cvsroot/pgsql-server/configure.in,v
retrieving revision 1.206
diff -c -c -r1.206 configure.in
*** configure.in	5 Sep 2002 18:28:45 -0000	1.206
--- configure.in	6 Sep 2002 14:28:58 -0000
***************
*** 371,376 ****
--- 371,379 ----
  AC_MSG_CHECKING([whether to build Java/JDBC tools])
  PGAC_ARG_BOOL(with, java, no, [  --with-java             build JDBC interface and Java tools],
  [AC_MSG_RESULT(yes)
+ if test ! "$JAVA_HOME" -o ! -d "$JAVA_HOME" ; then
+   AC_MSG_ERROR([Set the JAVA_HOME environment variable to build Java components])
+ fi
  PGAC_PATH_ANT
  if test -z "$ANT"; then
    AC_MSG_ERROR([Ant is required to build Java components])
