2
dnl Copyright (C) 1993-2003 Free Software Foundation, Inc.
3
dnl This file is free software, distributed under the terms of the GNU
4
dnl General Public License. As a special exception to the GNU General
5
dnl Public License, this file may be distributed as part of a program
6
dnl that contains a configuration script generated by Autoconf, under
7
dnl the same distribution terms as the rest of that program.
9
dnl From Bruno Haible, Marcus Daniels, Sam Steingold.
13
AC_DEFUN([CL_GETPAGESIZE],
14
[AC_BEFORE([$0], [CL_MPROTECT])
15
CL_LINK_CHECK([getpagesize], cl_cv_func_getpagesize, [
17
#include <sys/types.h>
21
AC_DEFINE(HAVE_GETPAGESIZE,,[have getpagesize()])
22
have_getpagesize=1)dnl
23
if test -n "$have_getpagesize"; then
24
CL_PROTO([getpagesize], [
30
], [int getpagesize();], [int getpagesize();],
31
cl_cv_proto_getpagesize_ret, int, size_t)
32
], [extern $cl_cv_proto_getpagesize_ret getpagesize (void);])
33
AC_DEFINE_UNQUOTED(RETGETPAGESIZETYPE,$cl_cv_proto_getpagesize_ret,[return type of getpagesize()])
35
dnl Otherwise we use PAGESIZE defined in <sys/param.h>.
36
dnl But mingw32 doesn't have <sys/param.h>.
37
AC_CHECK_HEADERS(sys/param.h)