Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
SimGrid now works perfectly on gcc 4.x
[simgrid.git] / configure.ac
index c64d987..f6a2023 100644 (file)
@@ -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