random_r: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 15:50:27 +0000 (17:50 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:39 +0000 (00:06 +0200)
* m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
gl_PREREQ_RANDOM_R invocations from here...
* modules/random_r (configure.ac): ... to here.

ChangeLog
m4/random_r.m4
modules/random_r

index fade437..e634d48 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
+       random_r: Move AC_LIBOBJ invocations to module description.
+       * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
+       gl_PREREQ_RANDOM_R invocations from here...
+       * modules/random_r (configure.ac): ... to here.
+
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
        pwrite: Move AC_LIBOBJ invocations to module description.
        * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
        * modules/pwrite (configure.ac): ... to here.
index cbe445d..f68650c 100644 (file)
@@ -1,4 +1,4 @@
-# serial 3
+# serial 4
 dnl Copyright (C) 2008-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,
@@ -24,8 +24,6 @@ AC_DEFUN([gl_FUNC_RANDOM_R],
   AC_CHECK_FUNCS([random_r])
   if test $ac_cv_func_random_r = no; then
     HAVE_RANDOM_R=0
-    AC_LIBOBJ([random_r])
-    gl_PREREQ_RANDOM_R
   fi
 ])
 
index 49a791b..41b9b8d 100644 (file)
@@ -11,6 +11,10 @@ stdint
 
 configure.ac:
 gl_FUNC_RANDOM_R
+if test $HAVE_RANDOM_R = 0; then
+  AC_LIBOBJ([random_r])
+  gl_PREREQ_RANDOM_R
+fi
 gl_STDLIB_MODULE_INDICATOR([random_r])
 
 Makefile.am: