mirror of
https://github.com/php/pecl-php-memtrack.git
synced 2026-03-24 01:02:14 +01:00
19 lines
484 B
Plaintext
19 lines
484 B
Plaintext
dnl $Id$
|
|
|
|
PHP_ARG_ENABLE(memtrack, whether to enable memtrack support,
|
|
[ --enable-memtrack Enable memtrack support])
|
|
|
|
|
|
AC_MSG_CHECKING([whether struct mallinfo is present])
|
|
AC_TRY_COMPILE([#include <malloc.h>], [struct mallinfo info;],
|
|
[
|
|
AC_MSG_RESULT([yes])
|
|
AC_DEFINE(PHP_MEMTRACK_HAVE_MALLINFO, 1, [Whether struct mallinfo is present])
|
|
], [
|
|
AC_MSG_RESULT([no])
|
|
])
|
|
|
|
if test "$PHP_MEMTRACK" != "no"; then
|
|
PHP_NEW_EXTENSION(memtrack, memtrack.c, $ext_shared)
|
|
fi
|