From: Bruno Haible Date: Sat, 7 May 2011 11:45:40 +0000 (+0200) Subject: futimens: Move AC_LIBOBJ invocations to module description. X-Git-Tag: v0.1~2575 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=459837323403b5bb13cbb9aa19959896bc6471fe;p=gnulib.git futimens: Move AC_LIBOBJ invocations to module description. * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from here... * modules/futimens (configure.ac): ... to here. --- diff --git a/ChangeLog b/ChangeLog index 9513a99d1..515c76a87 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2011-05-07 Bruno Haible + futimens: Move AC_LIBOBJ invocations to module description. + * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from + here... + * modules/futimens (configure.ac): ... to here. + +2011-05-07 Bruno Haible + ftruncate: Move AC_LIBOBJ invocations to module description. * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and gl_PREREQ_FTRUNCATE invocations from here... diff --git a/m4/futimens.m4 b/m4/futimens.m4 index 72c6f25cb..063db0539 100644 --- a/m4/futimens.m4 +++ b/m4/futimens.m4 @@ -1,4 +1,4 @@ -# serial 5 +# serial 6 # See if we need to provide futimens replacement. dnl Copyright (C) 2009-2011 Free Software Foundation, Inc. @@ -15,7 +15,6 @@ AC_DEFUN([gl_FUNC_FUTIMENS], AC_CHECK_FUNCS_ONCE([futimens]) if test $ac_cv_func_futimens = no; then HAVE_FUTIMENS=0 - AC_LIBOBJ([futimens]) else AC_CACHE_CHECK([whether futimens works], [gl_cv_func_futimens_works], @@ -55,7 +54,6 @@ choke me rm -f conftest.file]) if test "$gl_cv_func_futimens_works" != yes; then REPLACE_FUTIMENS=1 - AC_LIBOBJ([futimens]) fi fi ]) diff --git a/modules/futimens b/modules/futimens index 4ed403e94..ab1c62d2b 100644 --- a/modules/futimens +++ b/modules/futimens @@ -12,6 +12,9 @@ utimens [test $HAVE_FUTIMENS = 0 || test $REPLACE_FUTIMENS = 1] configure.ac: gl_FUNC_FUTIMENS +if test $HAVE_FUTIMENS = 0 || test $REPLACE_FUTIMENS = 1; then + AC_LIBOBJ([futimens]) +fi gl_SYS_STAT_MODULE_INDICATOR([futimens]) Makefile.am: