added missing dependencies to fix failing unistr/ tests
[gnulib.git] / m4 / pagealign_alloc.m4
1 #serial 5
2 dnl Copyright (C) 2005, 2006, 2007, 2009, 2010 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
6
7 AC_DEFUN([gl_PAGEALIGN_ALLOC],
8 [
9   dnl Persuade glibc <sys/mman.h> to define MAP_ANONYMOUS.
10   AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
11
12   AC_LIBOBJ([pagealign_alloc])
13   gl_PREREQ_PAGEALIGN_ALLOC
14 ])
15
16 # Prerequisites of lib/pagealign_alloc.c.
17 AC_DEFUN([gl_PREREQ_PAGEALIGN_ALLOC],
18 [
19   AC_REQUIRE([gl_FUNC_MMAP_ANON])
20   AC_CHECK_FUNCS_ONCE([posix_memalign])
21   AC_CHECK_HEADERS_ONCE([unistd.h])
22 ])