2007-10-07 Jim Meyering <meyering@redhat.com>
+ Convert coreutils' rand*.{c,h,m4} into modules.
+ First step: move these files to gl/lib:
+ * lib/rand-isaac.c, lib/rand-isaac.h
+ * lib/randint.c, lib/randint.h
+ * lib/randperm.c, lib/randperm.h
+ * lib/randread.c, lib/randread.h
+ Step 2: add modules/rand* and remove now-unneeded .m4 files.
+ * gl/modules/randint: New file.
+ * gl/modules/randperm: New file.
+ * gl/modules/randread: New file.
+ * m4/randint.m4: Remove file.
+ * m4/randperm.m4: Remove file.
+ * m4/randread.m4: Remove file.
+ Step 3: use the new modules
+ * bootstrap.conf (gnulib_modules): Add randint and randperm.
+ * m4/prereq.m4 (gl_RANDINT, gl_RANDREAD, gl_RANDPERM): Don't require;
+ These have been removed.
+ (gl_ROOT_DEV_INO): Don't require; already handled via bootstrap.conf.
+
Copy from gnulib the parts of tempname that we'll modify.
* gl/lib/tempname.c: Copy from gnulib.
* gl/lib/tempname.h: Likewise.
memrchr mgetgroups
mkancesdirs mkdir mkdir-p mkstemp mktime modechange
mountlist mpsort obstack pathmax perl physmem posixtm posixver putenv
- quote quotearg raise readlink areadlink-with-size readtokens
+ quote quotearg raise readlink areadlink-with-size
+ randint
+ randperm
+ readtokens
readtokens0 readutmp
realloc regex rename-dest-slash rmdir rmdir-errno
root-dev-ino
--- /dev/null
+Description:
+Generate random integers.
+
+Files:
+lib/randint.c
+lib/randint.h
+
+Depends-on:
+inline
+randread
+
+configure.ac:
+
+Makefile.am:
+lib_SOURCES += randint.c randint.h
+
+Include:
+"randint.h"
+
+License
+GPL
+
+Maintainer:
+Paul Eggert
--- /dev/null
+Description:
+Generate random permutations.
+
+Files:
+lib/randperm.c
+lib/randperm.h
+
+Depends-on:
+randint
+xalloc
+
+configure.ac:
+
+Makefile.am:
+lib_SOURCES += randperm.c randperm.h
+
+Include:
+"randperm.h"
+
+License
+GPL
+
+Maintainer:
+Paul Eggert
--- /dev/null
+Description:
+Generate buffers of random data.
+
+Files:
+lib/rand-isaac.c
+lib/rand-isaac.h
+lib/randread.c
+lib/randread.h
+
+Depends-on:
+error
+exitfail
+fopen-safer
+gethrxtime
+quotearg
+rand-isaac
+stdbool
+stdint
+unlocked-io
+xalloc
+
+configure.ac:
+
+Makefile.am:
+lib_SOURCES += randread.c randread.h rand-isaac.c rand-isaac.h
+
+Include:
+"randread.h"
+
+License
+GPL
+
+Maintainer:
+Paul Eggert
-#serial 73
+#serial 74
dnl We use gl_ for non Autoconf macros.
m4_pattern_forbid([^gl_[ABCDEFGHIJKLMNOPQRSTUVXYZ]])dnl
# directory of the coreutils package.
-# Copyright (C) 1998, 2000, 2001, 2003, 2004, 2005, 2006 Free Software
-# Foundation, Inc.
+# Copyright (C) 1998, 2000, 2001, 2003-2007 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
AC_REQUIRE([gl_FD_REOPEN])
AC_REQUIRE([gl_FUNC_XFTS])
AC_REQUIRE([gl_MEMXFRM])
- AC_REQUIRE([gl_RANDINT])
- AC_REQUIRE([gl_RANDPERM])
- AC_REQUIRE([gl_RANDREAD])
- AC_REQUIRE([gl_ROOT_DEV_INO])
AC_REQUIRE([gl_SHA256])
AC_REQUIRE([gl_SHA512])
AC_REQUIRE([gl_STRINTCMP])
+++ /dev/null
-dnl Copyright (C) 2006 Free Software Foundation, Inc.
-dnl This file is free software; the Free Software Foundation
-dnl gives unlimited permission to copy and/or distribute it,
-dnl with or without modifications, as long as this notice is preserved.
-
-AC_DEFUN([gl_RANDINT],
-[
- AC_LIBSOURCES([randint.c, randint.h])
- AC_LIBOBJ([randint])
-
- AC_REQUIRE([AC_C_INLINE])
-])
+++ /dev/null
-dnl Copyright (C) 2006 Free Software Foundation, Inc.
-dnl This file is free software; the Free Software Foundation
-dnl gives unlimited permission to copy and/or distribute it,
-dnl with or without modifications, as long as this notice is preserved.
-
-AC_DEFUN([gl_RANDPERM],
-[
- AC_LIBSOURCES([randperm.c, randperm.h])
- AC_LIBOBJ([randperm])
-])
+++ /dev/null
-dnl Copyright (C) 2006 Free Software Foundation, Inc.
-dnl This file is free software; the Free Software Foundation
-dnl gives unlimited permission to copy and/or distribute it,
-dnl with or without modifications, as long as this notice is preserved.
-
-AC_DEFUN([gl_RANDREAD],
-[
- AC_LIBSOURCES([randread.c, randread.h, rand-isaac.c, rand-isaac.h])
- AC_LIBOBJ([randread])
- AC_LIBOBJ([rand-isaac])
-])