From: Bruno Haible Date: Sat, 21 May 2011 15:50:27 +0000 (+0200) Subject: random_r: Move AC_LIBOBJ invocations to module description. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=641ca05f5986c53e36c9ff370812dd9a539796ed;p=pspp 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. --- diff --git a/ChangeLog b/ChangeLog index fade437d83..e634d4854e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-05-21 Bruno Haible + + 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 pwrite: Move AC_LIBOBJ invocations to module description. diff --git a/m4/random_r.m4 b/m4/random_r.m4 index cbe445d801..f68650ca4f 100644 --- 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_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 ]) diff --git a/modules/random_r b/modules/random_r index 49a791bb1e..41b9b8d4ec 100644 --- a/modules/random_r +++ b/modules/random_r @@ -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: