Ver código fonte

configure.ac: check the version of simgrid is recent enough, it needs
to define the type msg_host_t

Nathalie Furmento 12 anos atrás
pai
commit
498c47a0dd
1 arquivos alterados com 8 adições e 0 exclusões
  1. 8 0
      configure.ac

+ 8 - 0
configure.ac

@@ -794,6 +794,14 @@ if test x$enable_simgrid = xyes ; then
 			AC_MSG_ERROR(Simgrid support needs simgrid installed)
 		]
 	)
+	AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
+		    		[[#include <msg/msg.h>]],
+				[[msg_host_t foo; ]]
+			    )],
+	                 [],
+	                 [
+			   AC_MSG_ERROR(StarPU needs a version of Simgrid which defines the type msg_host_t (should be any version >= 3.8.1))
+		         ])
 	SIMGRID_LIBS=-lsimgrid
 	AC_DEFINE(STARPU_SIMGRID, 1, [Define this to enable simgrid execution])
 	# Avoid the starpu top thread compilation