changeset 15070:221318b8a54e

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.
author Bruno Haible <bruno@clisp.org>
date Sat, 21 May 2011 17:50:27 +0200
parents ce7894c75267
children 98ec1e084801
files ChangeLog m4/random_r.m4 modules/random_r
diffstat 3 files changed, 12 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/m4/random_r.m4
+++ b/m4/random_r.m4
@@ -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_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
 ])
 
--- a/modules/random_r
+++ b/modules/random_r
@@ -11,6 +11,10 @@
 
 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: