AC_CHECK_LIB(pthread,pthread_create,,
[AC_MSG_ERROR([[Cannot find pthreads (try --with-context=ucontext if you haven't already tried).]])])
AC_DEFINE([CONTEXT_THREADS],1,[Define if xbt contexts are based on our threads implementation or not])
- AC_MSG_RESULT(You have pthreads. Let's use them.)
+ AC_MSG_RESULT(You have pthreads and requested for them. Fine.)
fi
+AM_CONDITIONAL(CONTEXT_THREADS,test "x$with_context" != xucontext)
dnl #
dnl # 4. determine a few additional details
SG_CONFIGURE_PART(Checking extra libraries dependencies...)
SIMGRID_DEP=""
+SMPI_DEP=""
GRAS_DEP=""
if test xpthread=xyes ; then
fi
fi
-
#########################################
## Build optional modules (gtnets)
##
AM_CONDITIONAL(HAVE_SDP,test x$csdp != xno)
AC_SUBST([SIMGRID_DEP])
+AC_SUBST([SMPI_DEP])
AC_CHECK_LIB(nsl, gethostbyname, [GRAS_DEP="$GRAS_DEP -lnsl"])
AC_CHECK_LIB(socket, connect, [GRAS_DEP="$GRAS_DEP -lsocket"])
AC_MSG_CHECKING(for extra dependencies of libgras)
case $host_os in
*mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32";
- AC_SUBST(AM_CFLAGS,-DDLL_EXPORT)
+ AM_CPPFLAGS="$AM_CPPFLAGS -DDLL_EXPORT"
AC_DEFINE(CONTEXT_THREADS,1);;
esac
done
])
+AC_CONFIG_FILES([
+ src/smpi/smpicc
+ src/smpi/smpirun
+])
# GRAMINE_CUT_END