From b0129b466434115f93d3e17b3954bcc82ccaec09 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 21 May 2011 17:56:39 +0200 Subject: [PATCH] readline: Move AC_LIBOBJ invocations to module description. * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and gl_PREREQ_READLINE invocations from here... * modules/readline (configure.ac): ... to here. --- ChangeLog | 7 +++++++ m4/readline.m4 | 7 +------ modules/readline | 4 ++++ 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 02c6a7c4d..b2537dd6e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2011-05-21 Bruno Haible + readline: Move AC_LIBOBJ invocations to module description. + * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and + gl_PREREQ_READLINE invocations from here... + * modules/readline (configure.ac): ... to here. + +2011-05-21 Bruno Haible + read: Move AC_LIBOBJ invocations to module description. * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here... * modules/read (configure.ac): ... to here. diff --git a/m4/readline.m4 b/m4/readline.m4 index 90ce35747..a5ab06783 100644 --- a/m4/readline.m4 +++ b/m4/readline.m4 @@ -1,4 +1,4 @@ -# readline.m4 serial 8 +# readline.m4 serial 9 dnl Copyright (C) 2005-2006, 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, @@ -73,11 +73,6 @@ AC_DEFUN([gl_FUNC_READLINE], AC_SUBST([LTLIBREADLINE]) AC_CHECK_HEADERS([readline/readline.h]) - - if test "$gl_cv_lib_readline" = no; then - AC_LIBOBJ([readline]) - gl_PREREQ_READLINE - fi ]) # Prerequisites of lib/readline.c. diff --git a/modules/readline b/modules/readline index 7f2af8f06..9cee3bb27 100644 --- a/modules/readline +++ b/modules/readline @@ -12,6 +12,10 @@ getline [test "$gl_cv_lib_readline" = no] configure.ac: gl_FUNC_READLINE +if test "$gl_cv_lib_readline" = no; then + AC_LIBOBJ([readline]) + gl_PREREQ_READLINE +fi Makefile.am: -- 2.11.0