diff options
author | Eric Blake <ebb9@byu.net> | 2009-09-07 11:27:05 -0600 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2009-09-07 11:27:05 -0600 |
commit | c5c46dcc8e875485a2c5d27cce106491fb41400e (patch) | |
tree | 40b1937f77d493ed1dc8553351c3e789b7cb88cd /modules | |
parent | 1132a93bd6177115d1047846c62dc96fb7facb56 (diff) | |
download | gnulib-c5c46dcc8e875485a2c5d27cce106491fb41400e.tar.gz |
rename: modernize replacement
* modules/rename (Depends-on): Add stdio.
(configure.ac): Declare witness.
* m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
stdio take care of replacement.
* m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
* modules/stdio (Makefile.am): Substitute them.
* lib/stdio.in.h (rename): Declare replacement.
* lib/rename.c (includes): Allow cross-compilation to non-windows
machines.
* doc/posix-functions/rename.texi (rename): Improve
documentation.
Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/rename | 2 | ||||
-rw-r--r-- | modules/stdio | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/modules/rename b/modules/rename index 9eaea933ab..8d2a968616 100644 --- a/modules/rename +++ b/modules/rename @@ -8,9 +8,11 @@ m4/rename.m4 Depends-on: xalloc dirname +stdio configure.ac: gl_FUNC_RENAME +gl_STDIO_MODULE_INDICATOR([rename]) Makefile.am: diff --git a/modules/stdio b/modules/stdio index 9f95fd3374..eb58269352 100644 --- a/modules/stdio +++ b/modules/stdio @@ -52,6 +52,7 @@ stdio.h: stdio.in.h -e 's|@''GNULIB_PUTC''@|$(GNULIB_PUTC)|g' \ -e 's|@''GNULIB_PUTCHAR''@|$(GNULIB_PUTCHAR)|g' \ -e 's|@''GNULIB_PUTS''@|$(GNULIB_PUTS)|g' \ + -e 's|@''GNULIB_RENAME''@|$(GNULIB_RENAME)|g' \ -e 's|@''GNULIB_SNPRINTF''@|$(GNULIB_SNPRINTF)|g' \ -e 's|@''GNULIB_SPRINTF_POSIX''@|$(GNULIB_SPRINTF_POSIX)|g' \ -e 's|@''GNULIB_STDIO_H_SIGPIPE''@|$(GNULIB_STDIO_H_SIGPIPE)|g' \ @@ -88,6 +89,7 @@ stdio.h: stdio.in.h -e 's|@''REPLACE_PERROR''@|$(REPLACE_PERROR)|g' \ -e 's|@''REPLACE_POPEN''@|$(REPLACE_POPEN)|g' \ -e 's|@''REPLACE_PRINTF''@|$(REPLACE_PRINTF)|g' \ + -e 's|@''REPLACE_RENAME''@|$(REPLACE_RENAME)|g' \ -e 's|@''REPLACE_SNPRINTF''@|$(REPLACE_SNPRINTF)|g' \ -e 's|@''REPLACE_SPRINTF''@|$(REPLACE_SPRINTF)|g' \ -e 's|@''REPLACE_STDIO_WRITE_FUNCS''@|$(REPLACE_STDIO_WRITE_FUNCS)|g' \ |