From e4aa7fe91e3fa0e763e05ca9038c28d970928e4f Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 7 May 2011 12:15:25 +0200 Subject: [PATCH] fopen: Move AC_LIBOBJ invocations to module description. * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN invocations from here... * modules/fopen (configure.ac): ... to here. --- ChangeLog | 7 +++++++ m4/fopen.m4 | 6 +----- modules/fopen | 4 ++++ 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 16aed5e27..e59b0047a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2011-05-07 Bruno Haible + fopen: Move AC_LIBOBJ invocations to module description. + * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN + invocations from here... + * modules/fopen (configure.ac): ... to here. + +2011-05-07 Bruno Haible + fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description. * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from gl_FUNC_FNMATCH_POSIX. diff --git a/m4/fopen.m4 b/m4/fopen.m4 index 8407ed486..4e19b291e 100644 --- a/m4/fopen.m4 +++ b/m4/fopen.m4 @@ -1,4 +1,4 @@ -# fopen.m4 serial 7 +# fopen.m4 serial 8 dnl Copyright (C) 2007-2011 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -52,10 +52,6 @@ changequote([,])dnl REPLACE_FOPEN=1 ;; esac - if test $REPLACE_FOPEN = 1; then - AC_LIBOBJ([fopen]) - gl_PREREQ_FOPEN - fi ]) # Prerequisites of lib/fopen.c. diff --git a/modules/fopen b/modules/fopen index 2177a3bf9..13799e987 100644 --- a/modules/fopen +++ b/modules/fopen @@ -11,6 +11,10 @@ unistd [test $REPLACE_FOPEN = 1] configure.ac: gl_FUNC_FOPEN +if test $REPLACE_FOPEN = 1; then + AC_LIBOBJ([fopen]) + gl_PREREQ_FOPEN +fi gl_STDIO_MODULE_INDICATOR([fopen]) Makefile.am: -- 2.11.0