From f4efd3273275a1bd319556d12edc01958ecf3e5d Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 12 Oct 2006 13:23:10 +0000 Subject: [PATCH] * 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. --- ChangeLog | 7 +++++++ m4/getloadavg.m4 | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7aaec0d7c8..a0ef726482 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-10-12 Jim Meyering + + * 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. + 2006-10-12 Bruno Haible * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or diff --git a/m4/getloadavg.m4 b/m4/getloadavg.m4 index 8243729197..a32d5c8edc 100644 --- a/m4/getloadavg.m4 +++ b/m4/getloadavg.m4 @@ -16,7 +16,7 @@ AC_DEFUN([gl_GETLOADAVG], [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 -- 2.30.2