From c19c14f5ed474f9fc6d771c0976069790b6a18a9 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 6 May 2011 01:29:37 +0200 Subject: [PATCH] canonicalize-lgpl: Move AC_LIBOBJ invocations to module description. * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation from here... * modules/canonicalize-lgpl (configure.ac): ... to here. --- ChangeLog | 7 +++++++ m4/canonicalize.m4 | 6 ++---- modules/canonicalize-lgpl | 3 +++ 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index ff755c166e..94648e1c07 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-05-05 Bruno Haible + + canonicalize-lgpl: Move AC_LIBOBJ invocations to module description. + * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation + from here... + * modules/canonicalize-lgpl (configure.ac): ... to here. + 2011-05-05 Bruno Haible calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description. diff --git a/m4/canonicalize.m4 b/m4/canonicalize.m4 index c08a786e16..ef0a8c2bc7 100644 --- a/m4/canonicalize.m4 +++ b/m4/canonicalize.m4 @@ -1,4 +1,4 @@ -# canonicalize.m4 serial 21 +# canonicalize.m4 serial 22 dnl Copyright (C) 2003-2007, 2009-2011 Free Software Foundation, Inc. @@ -30,16 +30,14 @@ AC_DEFUN([gl_CANONICALIZE_LGPL], AC_REQUIRE([gl_CANONICALIZE_LGPL_SEPARATE]) if test $ac_cv_func_canonicalize_file_name = no; then HAVE_CANONICALIZE_FILE_NAME=0 - AC_LIBOBJ([canonicalize-lgpl]) if test $ac_cv_func_realpath = no; then HAVE_REALPATH=0 elif test "$gl_cv_func_realpath_works" != yes; then REPLACE_REALPATH=1 fi elif test "$gl_cv_func_realpath_works" != yes; then - AC_LIBOBJ([canonicalize-lgpl]) - REPLACE_REALPATH=1 REPLACE_CANONICALIZE_FILE_NAME=1 + REPLACE_REALPATH=1 fi ]) diff --git a/modules/canonicalize-lgpl b/modules/canonicalize-lgpl index ab31beadb8..7b77ac42ba 100644 --- a/modules/canonicalize-lgpl +++ b/modules/canonicalize-lgpl @@ -21,6 +21,9 @@ sys_stat [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICA configure.ac: gl_CANONICALIZE_LGPL +if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then + AC_LIBOBJ([canonicalize-lgpl]) +fi gl_MODULE_INDICATOR([canonicalize-lgpl]) gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name]) gl_STDLIB_MODULE_INDICATOR([realpath]) -- 2.30.2