This patch series is what I've just pushed as a new topic branch to the savannah repo.
Distcheck results by architecture and compiler: dec Tru64 5.1 Compaq C 6.5 (mbrlen.c compile failed: rpl_mbstate_t has no linkage and a prior declaration in scope at 415:./wchar.h) gcc 4.2.4 (areadlink.c compile failed: conflicting types for rpl_mbstate_t conflicting types for rpl_mbsinit ..etc) hppa HPUX 10.20 hpcc 10.32 (fdopendir.c compile failed: 153: unexpected symbol struct 153: saved_cwd undefined 154: argument #1 incorrect type) gcc 4.2.4 (pt_chown link failed: can't open pt_chown.o) hppa HPUX 11.00 hpcc B.11.11 (test-getlogin_r.c compile failed: 24: identifier getlogin_r undefined) gcc 4.2.4 (pt_chown link failed: can't open pt_chown.o) hppa HPUX 11.11 hpcc B.11.11 (test-getlogin_r.c compile failed: 24: identifier getlogin_r undefined) gcc 4.2.4 (pt_chown link failed: can't open pt_chown.o) hppa HPUX 11.23 hpcc B.11.11 (test-getlogin_r.c compile failed: 24: identifier getlogin_r undefined) gcc 4.2.4 (pt_chown link failed: can't open pt_chown.o) hppa HPUX 11.31 hpcc B.11.11 (test-stdbool.c compile failed: 65: object size too small for an address) gcc 4.2.4 (pt_chown link failed: can't open pt_chown.o) ia64 HPUX 11.23 hp acc A.06.25 (test-getlogin_r.c compile failed: 24: identifier getlogin_r undefined) gcc 4.2.4 (test-fcntl-h-c++ link failed: ./unistd.h:1011 ::getlogin_r undeclared ./unistd.h:1528 ::tyname_r undeclared) ia64 HPUX 11.31 hp acc A.06.25 (dprintf-posix2.sh, fprintf-posix2.sh, fprintf-posix3.sh, getlogin_r, iconv, mkdir, mkdirat, poll, pread.sh, printf-posix2.sh, ptsname, remove, strtod) gcc 4.2.4 (pt_chown link failed: can't open pt_chown.o) ix86 MacOS 10.6.4 gcc 4.2.1 (317 tests passed) ix86 RHEL 3 gcc 3.2.3 (317 tests passed) ix86 RHEL 4 gcc 3.4.6 (test-fcntl-h-c++.cc compile failed: 133: symbol `mknod' already defined) ix86 RHEL 5 gcc 4.1.2 (rename, renameat) ix86 Solaris 10 Sun Studio 12 (poll, ptsname) gcc 4.2.4 (getlogin, getlogin_r, poll, ptsname) ix86 SLED 10 gcc 4.1.2 (fchownat, rename, renameat) mips IRIX 6.5 MIPSpro 7.4.4 (mbsnrtowcs.c compile failed: wchar.h:601: mbstate_t undefined /usr/include/internal/wchar_core.h: pragma usage incorrect #pragma optional wcrtomb /usr/include/stdint.h: incompatible SIZE_MAX redefinition (declared at 2885:../config.h) /usr/include/stdint.h: incompatible WCHAR_MIN redefinition (declared at /usr/include/internal/wchar_core.h) /usr/include/stdint.h: incompatible WCHAR_MAX redefinition (declared at /usr/include/internal/wchar_core.h) ) gcc 4.2.4 (mbsnrtowcs.c compile failed: ./wchar.h:601 expected declaration before mbstate_t ./wchar.h:627 expected declaration before mbstate_t ./wchar.h:694 expected declaration before mbstate_t /usr/include/internal/wchar_core.h: conflicting types for rpl_wcrtomb) ppc AIX 5.1 xlc 8.0/rtl (test-isinf.c compile failed: 26: $error missing declaration 56: divisor cannot be zero 57: divisor cannot be zero 102: divisor cannot be zero 103: divisor cannot be zero 151: divisor cannot be zero 152: divisor cannot be zero) gcc 4.2.4 (fcntl.c compile failed: 170: implicit declaration of va_start 202: implicit declaration of va_arg 292: implicit declaration of va_end) ppc AIX 5.2 xlc 8.0/rtl (test-sys_socket.c compile failed: 52: ss_family is not a member of struct sockaddr_storage) gcc 4.2.4 (test-sys_socket.c compile failed: 52: struct sockadr_storage has no member 'ss_family') ppc AIX 5.3 xlc 8.0/rtl (270 failures all similar to this: rtld: iconv was referenced, but a runtime definition was not found rtld: iconv_close was referenced, but a runtime definition was not found rtld: iconv_open was referenced, but a runtime definition was not found) gcc 4.2.4 (test-fcntl-h-c++ compile faild: ./unistd.h:887 invalid conversion from 'int (*)(...)' to 'int (*)()') ppc AIX 6.1 xlc 10.1/rtl (270 failures all similar to this: rtld: iconv was referenced, but a runtime definition was not found rtld: iconv_close was referenced, but a runtime definition was not found rtld: iconv_open was referenced, but a runtime definition was not found) gcc 4.2.4 (test-fcntl-h-c++ compile faild: ./unistd.h:887 invalid conversion from 'int (*)(...)' to 'int (*)()') sparc Solaris 2.6 Sun Workshop 6 (fdopendir.c compile failed: 153: syntax error before struct 154: undefined symbol: saved_cwd 154: argument #1 incompatible with prototype) gcc 4.2.4 (pt_chown link failed: can't open pt_chown.o) sparc Solaris 7 Sun Studio 8 (mbsnrtowcs2.sh, mbsrtowcs2.sh, poll, ptsname) gcc 4.2.4 (pt_chown link failed: can't open pt_chown.o) sparc Solaris 8 gcc 4.2.4 (test-isnan.c compile failed: 26: #error missing declaration) sparc Solaris 9 Sun Studio 12 (poll, ptsname) gcc 4.2.4 (test-isnan.c compile failed: 26: #error missing declaration) sparc Solaris 10 Sun Studio 12 (poll, ptsname) gcc 4.2.4 (test-isnan.c compile failed: 26: #error missing declaration) x86_64 RHEL 3 gcc 3.2.3 (fprintf-posix2.sh) x86_64 RHEL 4i gcc 3.4.6 (test-fcntl-h-c++.cc compile failed: 124: symbol `mknod' already defined 149: symbol `lstat' already defined 172: symbol `fstat' already defined) x86_64 RHEL 5 gcc 4.1.2 (dprintf-posix2.sh, fprintf-posix3.sh rename, renameat) x86_64 SLED 10 gcc 4.1.2 (rename, renameat) Gary V. Vaughan (6): gnulib-tool: transform hard-coded libgnu.a to $libname.l?a iconv_open: reduce not-trivial repetition of file-list New module `libposix'. add _HEADERS primaries to Makefile.am snippets for installable headers libposix: raw files to import an installable libposix project libposix: use git-version-gen for version numbering Sam Steingold (1): gnulib-tool: transform include guards with `--macro-prefix' ChangeLog | 81 ++++++++++++ build-aux/git-version-gen | 2 +- gnulib-tool | 29 ++++- libposix/.gitignore | 48 +++++++ libposix/Makefile.am | 4 + libposix/bootstrap | 55 ++++++++ libposix/configure.ac | 35 +++++ libposix/lib/Makefile.am | 16 +++ modules/alloca-opt | 3 + modules/arg-nonnull | 2 + modules/argz | 3 + modules/arpa_inet | 2 + modules/byteswap | 3 + modules/c++defs | 2 + modules/ctype | 2 + modules/dirent | 2 + modules/errno | 3 + modules/fcntl-h | 2 + modules/float | 3 + modules/fnmatch | 3 + modules/getopt-posix | 3 + modules/glob | 3 + modules/iconv-h | 3 + modules/iconv_open | 9 +- modules/inttypes | 2 + modules/langinfo | 2 + modules/libposix | 318 +++++++++++++++++++++++++++++++++++++++++++++ modules/link-warning | 2 + modules/locale | 2 + modules/math | 2 + modules/netdb | 2 + modules/netinet_in | 3 + modules/poll-h | 2 + modules/pthread | 3 + modules/pty | 2 + modules/sched | 3 + modules/search | 2 + modules/selinux-h | 2 + modules/signal | 2 + modules/spawn | 2 + modules/stdarg | 3 + modules/stdbool | 3 + modules/stddef | 3 + modules/stdint | 3 + modules/stdio | 2 + modules/stdlib | 2 + modules/string | 2 + modules/strings | 2 + modules/sys_file | 2 + modules/sys_ioctl | 2 + modules/sys_select | 2 + modules/sys_socket | 2 + modules/sys_stat | 2 + modules/sys_time | 2 + modules/sys_times | 2 + modules/sys_utsname | 2 + modules/sys_wait | 2 + modules/sysexits | 3 + modules/termios | 2 + modules/time | 2 + modules/unistd | 2 + modules/unitypes | 3 + modules/unused-parameter | 2 + modules/warn-on-use | 2 + modules/wchar | 2 + modules/wctype | 2 + 66 files changed, 722 insertions(+), 5 deletions(-) create mode 100644 libposix/.gitignore create mode 100644 libposix/Makefile.am create mode 100755 libposix/bootstrap create mode 100644 libposix/configure.ac create mode 100644 libposix/lib/Makefile.am create mode 100644 modules/libposix -- 1.7.3