mirror of
https://github.com/gperftools/gperftools
synced 2024-12-22 15:22:07 +00:00
49b74b9508
* PORTING: everything compiles on Solaris, OS X, FreeBSD (see INSTALL) * PORTING: cpu-profiler works on most platforms (much better GetPC()) * PORTING: heap-profiler works on most platforms * PORTING: improved windows support, including release builds * No longer build or run ptmalloc tests by default * Add support for using memfs filesystem to allocate memory in linux * WINDOWS: give debug library and release library different names Tue Jul 17 22:26:27 2007 Google Inc. <opensource@google.com> git-svn-id: http://gperftools.googlecode.com/svn/trunk@38 6b5cf1ce-ec42-a296-1ba9-69fdba395a50
20 lines
657 B
Plaintext
20 lines
657 B
Plaintext
# We need to be careful to avoid having the reference to
|
|
# program_invocation_name optimized out. We do that by
|
|
# returning the value.
|
|
|
|
AC_DEFUN([AC_PROGRAM_INVOCATION_NAME],
|
|
[AC_CACHE_CHECK(
|
|
for program_invocation_name,
|
|
ac_cv_have_program_invocation_name,
|
|
AC_TRY_LINK([extern char* program_invocation_name;],
|
|
[return *program_invocation_name;],
|
|
[ac_cv_have_program_invocation_name=yes],
|
|
[ac_cv_have_program_invocation_name=no])
|
|
)
|
|
if test "$ac_cv_have_program_invocation_name" = "yes"; then
|
|
AC_DEFINE(HAVE_PROGRAM_INVOCATION_NAME, 1,
|
|
[define if libc has program_invocation_name])
|
|
fi
|
|
])
|
|
|