/usr/share/dune/aclocal/mprotect.m4 is in libdune-common-dev 2.3.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | dnl searches for the sys/mman.h header
dnl and checks the mprotect is available
AC_DEFUN([DUNE_SYS_MPROTECT],[
AC_REQUIRE([AC_PROG_CC])
AC_LANG_PUSH([C])
AC_CHECK_HEADER(sys/mman.h,
AC_DEFINE(HAVE_SYS_MMAN_H, 1,
[Define to 1 if you have <sys/mman.h>.])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <sys/mman.h>],[mprotect(0,0,PROT_NONE);])],
[AC_DEFINE(HAVE_MPROTECT, 1,
[Define to 1 if you have the symbol mprotect.])]))
AC_LANG_POP()
])
|