From 30537cab78969a27a9f045a812e712cd0ebd9c24 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 17 Feb 2002 07:30:04 +0000 Subject: * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE. * sysdeps/mach/configure.in: Check for host_page_size RPC to define it. * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use host_page_size instead of vm_statistics. --- sysdeps/mach/configure.in | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sysdeps') diff --git a/sysdeps/mach/configure.in b/sysdeps/mach/configure.in index 058a2a05c8..05dc45b61d 100644 --- a/sysdeps/mach/configure.in +++ b/sysdeps/mach/configure.in @@ -59,3 +59,12 @@ done if test "x$mach_interface_list" = x; then AC_MSG_ERROR([what manner of Mach is this?]) fi + +AC_CACHE_CHECK(for host_page_size in mach_host.defs, + libc_cv_mach_host_page_size, [dnl +AC_EGREP_HEADER(host_page_size, mach/mach_host.defs, + libc_cv_mach_host_page_size=yes, + libc_cv_mach_host_page_size=no)]) +if test $libc_cv_mach_host_page_size = yes; then + AC_DEFINE([HAVE_HOST_PAGE_SIZE]) +fi -- cgit v1.2.3