coreutils' configure-time test for existence of lib/getloadavg.c
was failing because that file is now typically a symlink.
Here's how I've fixed it:
2006-10-12 Jim Meyering <[EMAIL PROTECTED]>
* m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
lib/getloadavg.c using "ls -L", not "test -f". The latter would
fail with a symlink, which is what coreutils' ./bootstrap now
creates by default.
Index: m4/getloadavg.m4
===================================================================
RCS file: /sources/gnulib/gnulib/m4/getloadavg.m4,v
retrieving revision 1.19
diff -u -r1.19 getloadavg.m4
--- m4/getloadavg.m4 25 Sep 2006 11:58:08 -0000 1.19
+++ m4/getloadavg.m4 12 Oct 2006 13:19:39 -0000
@@ -16,7 +16,7 @@
[gl_have_func=no # yes means we've found a way to get the load average.
# Make sure getloadavg.c is where it belongs, at configure-time.
-test -f "$srcdir/$1/getloadavg.c" ||
+ls -L "$srcdir/$1/getloadavg.c" >/dev/null ||
AC_MSG_ERROR([$srcdir/$1/getloadavg.c is missing])
gl_save_LIBS=$LIBS