1dnl SPDX-License-Identifier: GPL-2.0-or-later 2dnl Copyright (c) Linux Test Project, 2011 3dnl Author: Cyril Hrubis <chrubis@suse.cz> 4 5AC_DEFUN([LTP_CHECK_MADVISE], 6[ 7AC_CHECK_DECLS([MADV_MERGEABLE],[have_madv_mergeable="yes"],,[#include <sys/mman.h>]) 8if test "x$have_madv_mergeable" = "xyes"; then 9 AC_DEFINE(HAVE_MADV_MERGEABLE,1,[Define to 1 if you have MADV_MERGEABLE]) 10fi 11]) 12