Mercurial > hg > octave-nkf > gnulib-hg
changeset 14934:26590ccc3b4c
error: Move AC_LIBOBJ invocations to module description.
* m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
invocations from here...
* modules/error (configure.ac): ... to here.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Fri, 06 May 2011 12:55:33 +0200 |
parents | 45dddbc362fb |
children | f852b19fc41a |
files | ChangeLog m4/error.m4 modules/error |
diffstat | 3 files changed, 15 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2011-05-06 Bruno Haible <bruno@clisp.org> + + error: Move AC_LIBOBJ invocations to module description. + * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove + AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR + invocations from here... + * modules/error (configure.ac): ... to here. + 2011-05-06 Bruno Haible <bruno@clisp.org> duplocale: Move AC_LIBOBJ invocations to module description.
--- a/m4/error.m4 +++ b/m4/error.m4 @@ -1,4 +1,4 @@ -#serial 13 +#serial 14 # Copyright (C) 1996-1998, 2001-2004, 2009-2011 Free Software Foundation, Inc. # @@ -8,16 +8,8 @@ AC_DEFUN([gl_ERROR], [ - AC_FUNC_ERROR_AT_LINE - dnl Note: AC_FUNC_ERROR_AT_LINE does AC_LIBSOURCES([error.h, error.c]). - gl_PREREQ_ERROR -]) - -# Redefine AC_FUNC_ERROR_AT_LINE, because it is no longer maintained in -# Autoconf. -AC_DEFUN([AC_FUNC_ERROR_AT_LINE], -[ - AC_LIBSOURCES([error.h, error.c])dnl + dnl We don't use AC_FUNC_ERROR_AT_LINE any more, because it is no longer + dnl maintained in Autoconf and because it invokes AC_LIBOBJ. AC_CACHE_CHECK([for error_at_line], [ac_cv_lib_error_at_line], [AC_LINK_IFELSE( [AC_LANG_PROGRAM( @@ -25,9 +17,6 @@ [[error_at_line (0, 0, "", 0, "an error occurred");]])], [ac_cv_lib_error_at_line=yes], [ac_cv_lib_error_at_line=no])]) - if test $ac_cv_lib_error_at_line = no; then - AC_LIBOBJ([error]) - fi ]) # Prerequisites of lib/error.c.
--- a/modules/error +++ b/modules/error @@ -17,6 +17,10 @@ configure.ac: gl_ERROR +if test $ac_cv_lib_error_at_line = no; then + AC_LIBOBJ([error]) + gl_PREREQ_ERROR +fi m4_ifdef([AM_XGETTEXT_OPTION], [AM_][XGETTEXT_OPTION([--flag=error:3:c-format]) AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])