From: mquinson Date: Fri, 16 Nov 2007 01:15:08 +0000 (+0000) Subject: add a stub for the java factory initier for the cases where we don't want to compile... X-Git-Tag: v3.3~788 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/011ed3b00de61aa6e8f865bde2b7f62033fa58eb?hp=f281a248565b50fe8c8fd760e70e3f50d4740a3f add a stub for the java factory initier for the cases where we don't want to compile the jbindings (and also, rework the threads stubs so that both kind of stubs fit together) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5053 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/configure b/configure index 750c1cd8e2..4733b6c43c 100755 --- a/configure +++ b/configure @@ -26471,6 +26471,11 @@ done && test "x$ac_cv_header_jni_h" = "xyes" ; then use_java="yes" + +cat >>confdefs.h <<\_ACEOF +#define HAVE_JAVA 1 +_ACEOF + else use_java="no" fi @@ -26486,6 +26491,7 @@ else fi + ##################### ## Check for programs ## diff --git a/configure.ac b/configure.ac index fad588c6bf..c983767fa5 100644 --- a/configure.ac +++ b/configure.ac @@ -425,6 +425,7 @@ else && test "x$ac_cv_header_jni_h" = "xyes" ; then use_java="yes" + AC_DEFINE(HAVE_JAVA,1, [defines whether Java bindings must be compiled or not]) else use_java="no" fi @@ -432,6 +433,7 @@ fi AC_MSG_RESULT(decide whether to compile java bindings... $use_java) AM_CONDITIONAL(HAVE_JAVA,test "x$use_java" = "xyes") + ##################### ## Check for programs ##