1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

configure: check for mallinfo2

This commit is contained in:
Zdenek Kabelac 2022-08-30 13:28:24 +02:00
parent 60ca2ce20f
commit bda93ed4bc
3 changed files with 10 additions and 1 deletions

6
configure vendored
View File

@ -7696,6 +7696,12 @@ if test "x$ac_cv_func_ffs" = xyes
then : then :
printf "%s\n" "#define HAVE_FFS 1" >>confdefs.h printf "%s\n" "#define HAVE_FFS 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "mallinfo2" "ac_cv_func_mallinfo2"
if test "x$ac_cv_func_mallinfo2" = xyes
then :
printf "%s\n" "#define HAVE_MALLINFO2 1" >>confdefs.h
fi fi
ac_fn_c_check_func "$LINENO" "prlimit" "ac_cv_func_prlimit" ac_fn_c_check_func "$LINENO" "prlimit" "ac_cv_func_prlimit"
if test "x$ac_cv_func_prlimit" = xyes if test "x$ac_cv_func_prlimit" = xyes

View File

@ -153,7 +153,7 @@ AC_CHECK_FUNCS([ftruncate gethostname getpagesize gettimeofday localtime_r \
memchr memset mkdir mkfifo munmap nl_langinfo pselect realpath rmdir setenv \ memchr memset mkdir mkfifo munmap nl_langinfo pselect realpath rmdir setenv \
setlocale strcasecmp strchr strcspn strdup strerror strncasecmp strndup \ setlocale strcasecmp strchr strcspn strdup strerror strncasecmp strndup \
strrchr strspn strstr strtol strtoul uname], , [AC_MSG_ERROR(bailing out)]) strrchr strspn strstr strtol strtoul uname], , [AC_MSG_ERROR(bailing out)])
AC_CHECK_FUNCS([ffs prlimit versionsort]) AC_CHECK_FUNCS([ffs mallinfo2 prlimit versionsort])
AC_FUNC_ALLOCA AC_FUNC_ALLOCA
AC_FUNC_CLOSEDIR_VOID AC_FUNC_CLOSEDIR_VOID
AC_FUNC_CHOWN AC_FUNC_CHOWN

View File

@ -267,6 +267,9 @@
/* Define to 1 if you have the <machine/endian.h> header file. */ /* Define to 1 if you have the <machine/endian.h> header file. */
#undef HAVE_MACHINE_ENDIAN_H #undef HAVE_MACHINE_ENDIAN_H
/* Define to 1 if you have the `mallinfo2' function. */
#undef HAVE_MALLINFO2
/* Define to 1 if your system has a GNU libc compatible `malloc' function, and /* Define to 1 if your system has a GNU libc compatible `malloc' function, and
to 0 otherwise. */ to 0 otherwise. */
#undef HAVE_MALLOC #undef HAVE_MALLOC