http://pkgs.fedoraproject.org/gitweb/?p=valgrind.git;a=summary --- valgrind/configure.in +++ valgrind/configure.in @@ -649,6 +649,16 @@ _ACEOF GLIBC_VERSION="`$CPP conftest.$ac_ext | $SED -n 's/^glibc version is: //p' | $SED 's/ /./g'`" fi +AC_EGREP_CPP([GLIBC_213], [ +#include +#ifdef __GNU_LIBRARY__ + #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 13) + GLIBC_213 + #endif +#endif +], +GLIBC_VERSION="2.13") + AC_EGREP_CPP([AIX5_LIBC], [ #include #if defined(_AIXVERSION_510) || defined(_AIXVERSION_520) || defined(_AIXVERSION_530) @@ -749,6 +759,13 @@ case "${GLIBC_VERSION}" in DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}" DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}" ;; + 2.13) + AC_MSG_RESULT(2.13 family) + AC_DEFINE([GLIBC_2_13], 1, [Define to 1 if you're using glibc 2.13.x]) + DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}" + DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}" + DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}" + ;; aix5) AC_MSG_RESULT(AIX 5.1 or 5.2 or 5.3) AC_DEFINE([AIX5_LIBC], 1, [Define to 1 if you're using AIX 5.1 or 5.2 or 5.3]) @@ -762,7 +779,7 @@ case "${GLIBC_VERSION}" in *) AC_MSG_RESULT([unsupported version ${GLIBC_VERSION}]) - AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.12]) + AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.13]) AC_MSG_ERROR([or AIX 5.1 or 5.2 or 5.3 GLIBC_VERSION]) AC_MSG_ERROR([or Darwin libc]) ;; --- valgrind/config.h.in +++ valgrind/config.h.in @@ -33,6 +33,9 @@ /* Define to 1 if you're using glibc 2.12.x */ #undef GLIBC_2_12 +/* Define to 1 if you're using glibc 2.13.x */ +#undef GLIBC_2_13 + /* Define to 1 if you're using glibc 2.2.x */ #undef GLIBC_2_2