mirror of
https://github.com/gperftools/gperftools
synced 2024-12-22 15:22:07 +00:00
c37f6c4c7c
As part of that we also upgrade required autoconf version to 2.69 which is what I see in rhel/centos 7 and ubuntu 14.04. Both are old enough. And, of course, .tar.gz releases still ship "packaged" configure, so will work on older distros. This fixes issue #1335.
17 lines
661 B
Plaintext
17 lines
661 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_LINK_IFELSE([AC_LANG_PROGRAM([[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
|
|
])
|
|
|