From 1a79e20875e9898be20fab5c58179b1046c6155b Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 22 May 2011 00:27:30 +0200 Subject: [PATCH] sleep: Move AC_LIBOBJ invocations to module description. * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here... * modules/sleep (configure.ac): ... to here. --- ChangeLog | 6 ++++++ m4/sleep.m4 | 4 +--- modules/sleep | 3 +++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1b915338d..c427ab6e0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2011-05-21 Bruno Haible + sleep: Move AC_LIBOBJ invocations to module description. + * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here... + * modules/sleep (configure.ac): ... to here. + +2011-05-21 Bruno Haible + signbit: Move AC_LIBOBJ invocations to module description. * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here... * modules/signbit (configure.ac): ... to here. diff --git a/m4/sleep.m4 b/m4/sleep.m4 index 4a251dae1..37f19a9e4 100644 --- a/m4/sleep.m4 +++ b/m4/sleep.m4 @@ -1,4 +1,4 @@ -# sleep.m4 serial 4 +# sleep.m4 serial 5 dnl Copyright (C) 2007-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, @@ -16,7 +16,6 @@ AC_DEFUN([gl_FUNC_SLEEP], AC_CHECK_FUNCS_ONCE([sleep]) if test $ac_cv_have_decl_sleep != yes; then HAVE_SLEEP=0 - AC_LIBOBJ([sleep]) else dnl Cygwin 1.5.x has a bug where sleep can't exceed 49.7 days. AC_CACHE_CHECK([for working sleep], [gl_cv_func_sleep_works], @@ -48,7 +47,6 @@ handle_alarm (int sig) [gl_cv_func_sleep_works="guessing no"])]) if test "$gl_cv_func_sleep_works" != yes; then REPLACE_SLEEP=1 - AC_LIBOBJ([sleep]) fi fi ]) diff --git a/modules/sleep b/modules/sleep index c9b6c4080..f48927e57 100644 --- a/modules/sleep +++ b/modules/sleep @@ -12,6 +12,9 @@ verify [test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1] configure.ac: gl_FUNC_SLEEP +if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then + AC_LIBOBJ([sleep]) +fi gl_UNISTD_MODULE_INDICATOR([sleep]) Makefile.am: -- 2.11.0