The two .h files have been in gnulib for a while. This change gives each its own module. Ralf posted a patch with part of this change a few weeks ago.
Index: ChangeLog =================================================================== RCS file: /sources/gnulib/gnulib/ChangeLog,v retrieving revision 1.600 diff -u -p -r1.600 ChangeLog --- ChangeLog 10 Aug 2006 13:30:55 -0000 1.600 +++ ChangeLog 10 Aug 2006 13:37:06 -0000 @@ -1,5 +1,15 @@ 2006-08-10 Jim Meyering <[EMAIL PROTECTED]> + * modules/same-inode: New module. + * modules/dev-ino: New module. + * modules/cycle-check: Depend on these modules, rather than simply + including their .h files. + (Makefile.am): Don't list cycle-check.[ch] here, now that they're + required via m4/cycle-check.m4. + * modules/same: Depend on new same-inode module, rather than + including same-inode.h. + * modules/chdir-safer: New file. + * modules/chown (Depends-on): Add stat-macros. 2006-08-10 Eric Blake <[EMAIL PROTECTED]> Index: m4/ChangeLog =================================================================== RCS file: /sources/gnulib/gnulib/m4/ChangeLog,v retrieving revision 1.895 diff -u -p -r1.895 ChangeLog --- m4/ChangeLog 9 Aug 2006 22:52:40 -0000 1.895 +++ m4/ChangeLog 10 Aug 2006 13:37:07 -0000 @@ -1,3 +1,7 @@ +2006-08-10 Jim Meyering <[EMAIL PROTECTED]> + + * dev-ino.m4, same-inode.m4: New files. + 2006-08-09 Paul Eggert <[EMAIL PROTECTED]> * argp.m4 (gl_ARGP): Require AC_C_RESTRICT. Index: m4/same-inode.m4 =================================================================== RCS file: m4/same-inode.m4 diff -N m4/same-inode.m4 --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ m4/same-inode.m4 10 Aug 2006 13:37:07 -0000 @@ -0,0 +1,10 @@ +#serial 1 +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_SAME_INODE], +[ + AC_LIBSOURCES([same-inode.h]) +]) Index: m4/dev-ino.m4 =================================================================== RCS file: m4/dev-ino.m4 diff -N m4/dev-ino.m4 --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ m4/dev-ino.m4 10 Aug 2006 13:37:07 -0000 @@ -0,0 +1,10 @@ +#serial 1 +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_STRUCT_DEV_INO], +[ + AC_LIBSOURCES([dev-ino.h]) +]) Index: modules/same-inode =================================================================== RCS file: modules/same-inode diff -N modules/same-inode --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ modules/same-inode 10 Aug 2006 13:37:07 -0000 @@ -0,0 +1,22 @@ +Description: +compare inodes + +Files: +lib/same-inode.h +m4/same-inode.m4 + +Depends-on: + +configure.ac: +gl_SAME_INODE + +Makefile.am: + +Include: +"same-inode.h" + +License: +LGPL + +Maintainer: +Jim Meyering Index: modules/dev-ino =================================================================== RCS file: modules/dev-ino diff -N modules/dev-ino --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ modules/dev-ino 10 Aug 2006 13:37:07 -0000 @@ -0,0 +1,22 @@ +Description: +declare a simple (device, inode) struct + +Files: +lib/dev-ino.h +m4/dev-ino.m4 + +Depends-on: + +configure.ac: +gl_STRUCT_DEV_INO + +Makefile.am: + +Include: +"dev-ino.h" + +License: +GPL + +Maintainer: +Jim Meyering Index: modules/cycle-check =================================================================== RCS file: /sources/gnulib/gnulib/modules/cycle-check,v retrieving revision 1.5 diff -u -p -r1.5 cycle-check --- modules/cycle-check 4 Jul 2006 07:43:15 -0000 1.5 +++ modules/cycle-check 10 Aug 2006 13:37:07 -0000 @@ -4,16 +4,16 @@ help detect directory cycles efficiently Files: lib/cycle-check.c lib/cycle-check.h -lib/same-inode.h -lib/dev-ino.h +m4/cycle-check.m4 Depends-on: +dev-ino +same-inode stdbool configure.ac: Makefile.am: -lib_SOURCES += cycle-check.c cycle-check.h dev-ino.h same-inode.h Include: "cycle-check.h" Index: modules/same =================================================================== RCS file: /sources/gnulib/gnulib/modules/same,v retrieving revision 1.7 diff -u -p -r1.7 same --- modules/same 3 Jul 2006 08:32:46 -0000 1.7 +++ modules/same 10 Aug 2006 13:37:07 -0000 @@ -5,13 +5,13 @@ directory. Files: lib/same.h lib/same.c -lib/same-inode.h m4/same.m4 Depends-on: xalloc error dirname +same-inode stdbool configure.ac: Index: modules/chdir-safer =================================================================== RCS file: modules/chdir-safer diff -N modules/chdir-safer --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ modules/chdir-safer 10 Aug 2006 13:37:07 -0000 @@ -0,0 +1,25 @@ +Description: +like chdir, but safer + +Files: +lib/chdir-safer.h +lib/chdir-safer.c +m4/chdir-safer.m4 + +Depends-on: +same-inode +stdbool + +configure.ac: +gl_CHDIR_SAFER + +Makefile.am: + +Include: +"chdir-safer.h" + +License: +GPL + +Maintainer: +Jim Meyering