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 fade437d83012bc732cd007d9a54b1ba1c7a9b9d..e634d4854eaca6fad250c68cdc75e5f2ab347d9c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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.
index cbe445d8017702104dca4860d78333ca2112f22b..f68650ca4ff2e30aacd2e730cab157da2db8f60f 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 49a791bb1ec82a7fbd2d1440de7342f22067bd46..41b9b8d4ec6e0c61ccb43eaf7f93c886dfe92383 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: