Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
check whether what we need to display neat backtraces is here or not
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 7 Apr 2006 13:36:50 +0000 (13:36 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 7 Apr 2006 13:36:50 +0000 (13:36 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2102 48e7efb5-ca39-0410-a469-dd3cf9ba447f

configure.ac

index 6659638..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
 ##