sleep: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 22:27:30 +0000 (00:27 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:47 +0000 (00:06 +0200)
* m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
* modules/sleep (configure.ac): ... to here.

ChangeLog
m4/sleep.m4
modules/sleep

index 1b91533..c427ab6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
+       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  <bruno@clisp.org>
+
        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.
index 4a251da..37f19a9 100644 (file)
@@ -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
 ])
index c9b6c40..f48927e 100644 (file)
@@ -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: