X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/06a67e0e83a46b4d0946aecc025aa69377bb9610..8caf511fa693be7104bc3ecfa8be1e47bfefa1df:/src/simix/smx_context.c diff --git a/src/simix/smx_context.c b/src/simix/smx_context.c index 0c1387418b..be29ac5144 100644 --- a/src/simix/smx_context.c +++ b/src/simix/smx_context.c @@ -116,7 +116,11 @@ void SIMIX_context_init_factory_by_name(smx_context_factory_t * factory, THROW0(not_found_error, 0, "Factory 'sysv' does not exist: no System V thread support under Windows"); #endif else if (!strcmp(name, "lua")) +#ifdef HAVE_LUA SIMIX_ctx_lua_factory_init(factory); +#else + THROW0(not_found_error, 0, "Factory 'lua' does not exist: Lua support was not compiled in the SimGrid library"); +#endif /* HAVE_LUA */ else THROW1(not_found_error, 0, "Factory '%s' does not exist", name); }