-2006-05-26 Bruno Haible <bruno@clisp.org>
-
- * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG):
- Don't test whether getloadavg.c is where it belongs. See:
- http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00045.html
-
2006-05-26 Paul Eggert <eggert@cs.ucla.edu>
* doc/autoconf.texi (Particular Programs, Limitations of Usual Tools):
AC_DEFUN([AC_FUNC_GETLOADAVG],
[ac_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/$ac_config_libobj_dir/getloadavg.c" ||
+ AC_MSG_ERROR([$srcdir/$ac_config_libobj_dir/getloadavg.c is missing])
+
ac_save_LIBS=$LIBS
# Check for getloadavg, but be sure not to touch the cache variable.