List:NDB Connectors« Previous MessageNext Message »
From:Monty Taylor Date:July 12 2007 7:57pm
Subject:Rev 140: Added failures on java requirements. in http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/ndbjmerge
View as plain text  
------------------------------------------------------------
revno: 140
revision-id: mtaylor@stripped
parent: mtaylor@stripped
committer: Monty Taylor <mtaylor@stripped>
branch nick: ndbjmerge
timestamp: Thu 2007-07-12 14:57:00 -0500
message:
  Added failures on java requirements.
modified:
  configure.in                   configure.in-20070228020914-u2pk759xg7thauwf-13
=== modified file 'configure.in'
--- a/configure.in	2007-06-28 16:13:20 +0000
+++ b/configure.in	2007-07-12 19:57:00 +0000
@@ -34,12 +34,32 @@
 
 AC_PROG_LIBTOOL()
 
-AC_PROG_JAVAC()
-AC_PROG_JAR()
-AC_PROG_JAVA()
-AC_CHECK_PROGS(ANT,ant)
-AC_CHECK_JUNIT()
-AC_JNI_INCLUDE_DIR
+
+
+if test "$with_java" = "yes" ; then
+  AC_PROG_JAVAC()
+  if test "x$JAVAC" == "x"  ; then
+    AC_MSG_ERROR([Couldn't find javac.])
+  fi
+  AC_PROG_JAR()
+  if test "x$JAR" == "x"  ; then
+    AC_MSG_ERROR([Couldn't find jar.])
+  fi
+  AC_PROG_JAVA()
+  if test "x$JAVA" == "x"  ; then
+    AC_MSG_ERROR([Couldn't find java.])
+  fi
+  AC_CHECK_PROGS(ANT,ant)
+  if test "x$ANT" == "x"  ; then
+    AC_MSG_ERROR([Couldn't find ant.])
+  fi
+  AC_CHECK_JUNIT()
+  AC_JNI_INCLUDE_DIR
+  if test "x${JNI_INCLUDE_DIRS}" == "x"  ; then
+    AC_MSG_ERROR([Couldn't find JNI includes .])
+  fi 
+fi 
+
 
 for JNI_INCLUDE_DIR in ${JNI_INCLUDE_DIRS} ; do
   JNI_INCLUDES="$JNI_INCLUDES -I$JNI_INCLUDE_DIR"

Thread
Rev 140: Added failures on java requirements. in http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/ndbjmergeMonty Taylor12 Jul