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 1b915338d6a421c2ead60b7596acb423e7fd84e8..c427ab6e049402c06cb3cb83d0f7f3f4789ea57e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
index 4a251dae12262aa790f619618379a32720e66e16..37f19a9e4f26718b1dee56448dd234429dbfd6e3 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 c9b6c40809ec7cdfc6ddc8aeb06ed2670bd305df..f48927e577d7b107d20bc3c60c19f7b06c134300 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: