mirror of
https://github.com/gperftools/gperftools
synced 2025-01-18 21:01:08 +00:00
c437e1fcdd
* google-perftools: version 0.92 release * PERFORMANCE: use a packed cache to speed up tcmalloc * PORTING: preliminary windows support! (see README.windows) * PORTING: better support for solaris, OS X, FreeBSD (see INSTALL) * Envvar support for running the heap-checker under gdb * Add weak declarations to maybe_threads to fix no-pthreads compile bugs * Some 64bit fixes, especially with pprof * Better heap-checker support for some low-level allocations * Fix bug where heap-profiles would sometimes get truncated * New documentation about how to handle common heap leak situations * Use computed includes for hash_map/set: easier config * Added all used .m4 templates to the distribution git-svn-id: http://gperftools.googlecode.com/svn/trunk@36 6b5cf1ce-ec42-a296-1ba9-69fdba395a50
25 lines
1.2 KiB
Plaintext
25 lines
1.2 KiB
Plaintext
# Check compiler characteristics (e.g. type sizes, PRIxx macros, ...)
|
|
|
|
# If types $1 and $2 are compatible, perform action $3
|
|
AC_DEFUN([AC_TYPES_COMPATIBLE],
|
|
[AC_TRY_COMPILE([#include <stddef.h>], [$1 v1 = 0; $2 v2 = 0; return (&v1 - &v2)], $3)])
|
|
|
|
define(AC_PRIUS_COMMENT, [printf format code for printing a size_t and ssize_t])
|
|
|
|
AC_DEFUN([AC_COMPILER_CHARACTERISTICS],
|
|
[AC_CACHE_CHECK(AC_PRIUS_COMMENT, ac_cv_formatting_prius_prefix,
|
|
[AC_TYPES_COMPATIBLE(unsigned int, size_t,
|
|
ac_cv_formatting_prius_prefix=; ac_cv_prius_defined=1)
|
|
AC_TYPES_COMPATIBLE(unsigned long, size_t,
|
|
ac_cv_formatting_prius_prefix=l; ac_cv_prius_defined=1)
|
|
AC_TYPES_COMPATIBLE(unsigned long long, size_t,
|
|
ac_cv_formatting_prius_prefix=ll; ac_cv_prius_defined=1
|
|
)])
|
|
if test -z "$ac_cv_formatting_prius_defined"; then
|
|
ac_cv_formatting_prius_prefix=z;
|
|
fi
|
|
AC_DEFINE_UNQUOTED(PRIuS, "${ac_cv_formatting_prius_prefix}u", AC_PRIUS_COMMENT)
|
|
AC_DEFINE_UNQUOTED(PRIxS, "${ac_cv_formatting_prius_prefix}x", AC_PRIUS_COMMENT)
|
|
AC_DEFINE_UNQUOTED(PRIdS, "${ac_cv_formatting_prius_prefix}d", AC_PRIUS_COMMENT)
|
|
])
|