annotate m4/getpagesize.m4 @ 17363:5a51fb7777a9

sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin Problem reported by Marco Atzeri in <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>. * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]: Simply delegate to the system <sys/select.h> in this case too. Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to be needed on Solaris either. * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]: Simply delgate to the system <sys/time.h> in this case.
author Paul Eggert <eggert@cs.ucla.edu>
date Tue, 19 Mar 2013 09:08:47 -0700
parents e542fd46ad6f
children 344018b6e5d7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14970
3c854f4a4670 getpagesize: Move AC_LIBOBJ invocations to module description.
Bruno Haible <bruno@clisp.org>
parents: 14079
diff changeset
1 # getpagesize.m4 serial 9
17249
e542fd46ad6f maint: update all copyright year number ranges
Eric Blake <eblake@redhat.com>
parents: 16201
diff changeset
2 dnl Copyright (C) 2002, 2004-2005, 2007, 2009-2013 Free Software Foundation,
12559
c2cbabec01dd update nearly all FSF copyright year lists to include 2010
Jim Meyering <meyering@redhat.com>
parents: 12518
diff changeset
3 dnl Inc.
5611
87c42e194f4a Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents: 5365
diff changeset
4 dnl This file is free software; the Free Software Foundation
87c42e194f4a Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents: 5365
diff changeset
5 dnl gives unlimited permission to copy and/or distribute it,
87c42e194f4a Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents: 5365
diff changeset
6 dnl with or without modifications, as long as this notice is preserved.
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7
9498
a2c450a3023c Move declaration of getpagesize() from getpagesize.h to unistd.h.
Bruno Haible <bruno@clisp.org>
parents: 7172
diff changeset
8 AC_DEFUN([gl_FUNC_GETPAGESIZE],
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 [
9498
a2c450a3023c Move declaration of getpagesize() from getpagesize.h to unistd.h.
Bruno Haible <bruno@clisp.org>
parents: 7172
diff changeset
10 AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
9552
6632990b0812 Override getpagesize on mingw.
Martin Lambers <marlam@marlam.de>
parents: 9498
diff changeset
11 AC_REQUIRE([AC_CANONICAL_HOST])
9498
a2c450a3023c Move declaration of getpagesize() from getpagesize.h to unistd.h.
Bruno Haible <bruno@clisp.org>
parents: 7172
diff changeset
12 AC_CHECK_FUNCS([getpagesize])
a2c450a3023c Move declaration of getpagesize() from getpagesize.h to unistd.h.
Bruno Haible <bruno@clisp.org>
parents: 7172
diff changeset
13 if test $ac_cv_func_getpagesize = no; then
a2c450a3023c Move declaration of getpagesize() from getpagesize.h to unistd.h.
Bruno Haible <bruno@clisp.org>
parents: 7172
diff changeset
14 HAVE_GETPAGESIZE=0
a2c450a3023c Move declaration of getpagesize() from getpagesize.h to unistd.h.
Bruno Haible <bruno@clisp.org>
parents: 7172
diff changeset
15 AC_CHECK_HEADERS([OS.h])
a2c450a3023c Move declaration of getpagesize() from getpagesize.h to unistd.h.
Bruno Haible <bruno@clisp.org>
parents: 7172
diff changeset
16 if test $ac_cv_header_OS_h = yes; then
a2c450a3023c Move declaration of getpagesize() from getpagesize.h to unistd.h.
Bruno Haible <bruno@clisp.org>
parents: 7172
diff changeset
17 HAVE_OS_H=1
a2c450a3023c Move declaration of getpagesize() from getpagesize.h to unistd.h.
Bruno Haible <bruno@clisp.org>
parents: 7172
diff changeset
18 fi
a2c450a3023c Move declaration of getpagesize() from getpagesize.h to unistd.h.
Bruno Haible <bruno@clisp.org>
parents: 7172
diff changeset
19 AC_CHECK_HEADERS([sys/param.h])
a2c450a3023c Move declaration of getpagesize() from getpagesize.h to unistd.h.
Bruno Haible <bruno@clisp.org>
parents: 7172
diff changeset
20 if test $ac_cv_header_sys_param_h = yes; then
a2c450a3023c Move declaration of getpagesize() from getpagesize.h to unistd.h.
Bruno Haible <bruno@clisp.org>
parents: 7172
diff changeset
21 HAVE_SYS_PARAM_H=1
a2c450a3023c Move declaration of getpagesize() from getpagesize.h to unistd.h.
Bruno Haible <bruno@clisp.org>
parents: 7172
diff changeset
22 fi
a2c450a3023c Move declaration of getpagesize() from getpagesize.h to unistd.h.
Bruno Haible <bruno@clisp.org>
parents: 7172
diff changeset
23 fi
9552
6632990b0812 Override getpagesize on mingw.
Martin Lambers <marlam@marlam.de>
parents: 9498
diff changeset
24 case "$host_os" in
6632990b0812 Override getpagesize on mingw.
Martin Lambers <marlam@marlam.de>
parents: 9498
diff changeset
25 mingw*)
6632990b0812 Override getpagesize on mingw.
Martin Lambers <marlam@marlam.de>
parents: 9498
diff changeset
26 REPLACE_GETPAGESIZE=1
6632990b0812 Override getpagesize on mingw.
Martin Lambers <marlam@marlam.de>
parents: 9498
diff changeset
27 ;;
6632990b0812 Override getpagesize on mingw.
Martin Lambers <marlam@marlam.de>
parents: 9498
diff changeset
28 esac
13124
69f0d92b5794 getpagesize: Fix C++ test error on mingw.
Bruno Haible <bruno@clisp.org>
parents: 12559
diff changeset
29 dnl Also check whether it's declared.
69f0d92b5794 getpagesize: Fix C++ test error on mingw.
Bruno Haible <bruno@clisp.org>
parents: 12559
diff changeset
30 dnl mingw has getpagesize() in libgcc.a but doesn't declare it.
69f0d92b5794 getpagesize: Fix C++ test error on mingw.
Bruno Haible <bruno@clisp.org>
parents: 12559
diff changeset
31 AC_CHECK_DECL([getpagesize], , [HAVE_DECL_GETPAGESIZE=0])
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32 ])