Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
This file was recently added and is missing from the tarballs
[simgrid.git] / configure.ac
index 261f167..0776358 100644 (file)
@@ -40,7 +40,8 @@ AC_CHECK_HEADERS([sys/socket.h \
 AC_CHECK_FUNCS([gettimeofday usleep \
                 getdtablesize \
                 sysconf\
-                readv])
+                readv\
+               popen])
                 
 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
 AC_FUNC_SNPRINTF
@@ -233,6 +234,12 @@ then
    fi
 fi
 
+# Can we extract really usable backtraces? (also need the popen function)
+AC_PATH_PROG(ADDR2LINE, addr2line)
+if test x$ADDR2LINE != x ; then
+  AC_DEFINE_UNQUOTED(ADDR2LINE,"$ADDR2LINE",[Path to the addr2line tool])
+fi
+
 ###################
 ## Makes the output
 ##
@@ -288,6 +295,7 @@ AC_CONFIG_FILES([
      examples/gras/tokenS/test_sg examples/gras/tokenS/test_rl  \
      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
+     examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
      examples/msg/run_msg_test                                  \
     ; do                                                        \
       test -e $file && chmod +x $file;                          \