Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add a stub for the java factory initier for the cases where we don't want to compile...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 16 Nov 2007 01:15:08 +0000 (01:15 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 16 Nov 2007 01:15:08 +0000 (01:15 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5053 48e7efb5-ca39-0410-a469-dd3cf9ba447f

configure
configure.ac

index 750c1cd..4733b6c 100755 (executable)
--- 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
 ##
index fad588c..c983767 100644 (file)
@@ -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
 ##