From e550c49d4d8fc3ce6bc3508df14ad72836225402 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 8 May 2011 13:24:43 +0200 Subject: [PATCH] getsubopt: Move AC_LIBOBJ invocations to module description. * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and gl_PREREQ_GETSUBOPT invocations from here... * modules/getsubopt (configure.ac): ... to here. --- ChangeLog | 7 +++++++ m4/getsubopt.m4 | 4 +--- modules/getsubopt | 4 ++++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index da75d62fb..a82380a74 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2011-05-08 Bruno Haible + getsubopt: Move AC_LIBOBJ invocations to module description. + * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and + gl_PREREQ_GETSUBOPT invocations from here... + * modules/getsubopt (configure.ac): ... to here. + +2011-05-08 Bruno Haible + getpass-gnu: Move AC_LIBOBJ invocations to module description. * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here... diff --git a/m4/getsubopt.m4 b/m4/getsubopt.m4 index 11dc5d81d..827d8c562 100644 --- a/m4/getsubopt.m4 +++ b/m4/getsubopt.m4 @@ -1,4 +1,4 @@ -# getsubopt.m4 serial 4 +# getsubopt.m4 serial 5 dnl Copyright (C) 2004, 2007, 2009-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, @@ -13,8 +13,6 @@ AC_DEFUN([gl_FUNC_GETSUBOPT], AC_CHECK_FUNCS_ONCE([getsubopt]) if test $ac_cv_func_getsubopt = no; then HAVE_GETSUBOPT=0 - AC_LIBOBJ([getsubopt]) - gl_PREREQ_GETSUBOPT fi ]) diff --git a/modules/getsubopt b/modules/getsubopt index eaf8e87b3..a544ca3cc 100644 --- a/modules/getsubopt +++ b/modules/getsubopt @@ -13,6 +13,10 @@ memchr [test $HAVE_GETSUBOPT = 0] configure.ac: gl_FUNC_GETSUBOPT +if test $HAVE_GETSUBOPT = 0; then + AC_LIBOBJ([getsubopt]) + gl_PREREQ_GETSUBOPT +fi gl_STDLIB_MODULE_INDICATOR([getsubopt]) Makefile.am: -- 2.11.0