From 8b5e506d9d07a85d4f7f3476b693a6bcc22fd585 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 8 May 2011 13:10:22 +0200 Subject: [PATCH] getpagesize: Move AC_LIBOBJ invocations to module description. * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation from here... * modules/getpagesize (configure.ac): ... to here. --- ChangeLog | 7 +++++++ m4/getpagesize.m4 | 3 +-- modules/getpagesize | 3 +++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b1c66fd17..3291e6424 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2011-05-08 Bruno Haible + getpagesize: Move AC_LIBOBJ invocations to module description. + * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation + from here... + * modules/getpagesize (configure.ac): ... to here. + +2011-05-08 Bruno Haible + getopt: Move AC_LIBOBJ invocations to module description. * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro. (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT diff --git a/m4/getpagesize.m4 b/m4/getpagesize.m4 index 79dfbbe49..f7ac1ef69 100644 --- a/m4/getpagesize.m4 +++ b/m4/getpagesize.m4 @@ -1,4 +1,4 @@ -# getpagesize.m4 serial 8 +# getpagesize.m4 serial 9 dnl Copyright (C) 2002, 2004-2005, 2007, 2009-2011 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation @@ -24,7 +24,6 @@ AC_DEFUN([gl_FUNC_GETPAGESIZE], case "$host_os" in mingw*) REPLACE_GETPAGESIZE=1 - AC_LIBOBJ([getpagesize]) ;; esac dnl Also check whether it's declared. diff --git a/modules/getpagesize b/modules/getpagesize index 6ad162083..015fbe6bd 100644 --- a/modules/getpagesize +++ b/modules/getpagesize @@ -10,6 +10,9 @@ unistd configure.ac: gl_FUNC_GETPAGESIZE +if test $REPLACE_GETPAGESIZE = 1; then + AC_LIBOBJ([getpagesize]) +fi gl_UNISTD_MODULE_INDICATOR([getpagesize]) Makefile.am: -- 2.11.0