X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/326904d37b52f089be0403e9549fddf3212c966c..4b84ada612ce0dc8021e10783001b5af386bf43f:/configure.ac diff --git a/configure.ac b/configure.ac index c64d987861..9dd4533c1f 100644 --- a/configure.ac +++ b/configure.ac @@ -36,12 +36,14 @@ AC_CHECK_HEADERS([sys/socket.h \ windows.h winsock.h winsock2.h \ sys/time.h \ errno.h unistd.h \ - execinfo.h]) + execinfo.h\ + signal.h ]) AC_CHECK_FUNCS([gettimeofday usleep \ getdtablesize \ sysconf\ readv\ - popen]) + popen\ + signal]) # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/) AC_FUNC_SNPRINTF @@ -112,6 +114,9 @@ dnl # 3. allow decision to be overridden by user dnl # AC_MSG_CHECKING(what kind of backend should we use) + +AC_ARG_WITH(pthread, [ --with-pthread Use pthread instead of ucontext.],with_context=pthread) + AC_ARG_WITH(context, [ --with-context=[ucontext/pthread] Use either (System V) swapcontext or pthread [[default=auto]].],, with_context=auto) @@ -261,6 +266,7 @@ AC_CONFIG_FILES([ src/ucontext_stack.h examples/Makefile examples/msg/Makefile examples/msg/run_msg_test + examples/simdag/Makefile examples/gras/Makefile examples/gras/ping/Makefile examples/gras/ping/test_sg examples/gras/ping/test_rl examples/gras/rpc/Makefile examples/gras/rpc/test_sg examples/gras/rpc/test_rl @@ -330,6 +336,7 @@ Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name ( Compiler: ${CC} (version: ${GCC_VERSION}) CFlags: ${CFLAGS} + CPPFlags: ${CPPFLAGS} LDFlags: ${LDFLAGS} Context backend: ${with_context}