1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-08 06:02:22 +03:00

Add JAVA_HOME test for Ant.

This commit is contained in:
Bruce Momjian
2002-09-06 14:31:16 +00:00
parent 847f8b39d7
commit f3b211841e
2 changed files with 9 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
dnl Process this file with autoconf to produce a configure script.
dnl $Header: /cvsroot/pgsql/configure.in,v 1.206 2002/09/05 18:28:45 petere Exp $
dnl $Header: /cvsroot/pgsql/configure.in,v 1.207 2002/09/06 14:31:16 momjian Exp $
dnl
dnl Developers, please strive to achieve this order:
dnl
@@ -371,6 +371,9 @@ AC_SUBST(with_python)
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])