Bruno Haible <[EMAIL PROTECTED]> writes:

> I'd ask to remove these lines from the AC_FUNC_GETLOADAVG macro:
> -------------------------------------------------------------------------
> # 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])
> -------------------------------------------------------------------------
> and to change AC_FUNC_GETLOADAVG so that it doesn't need to #include this
> file at configure time.

The first part is easy, the second is not.  There's a ton of code in
getloadavg.c and it's not easy to tease out just the stuff that is
needed.  (A lot of that cruft could get removed, I know....)

I think we ought to bite the bullet and move AC_FUNC_GETLOADAVG from
Autoconf to gnulib, where it belongs.  Similarly for
AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE, AC_REPLACE_FNMATCH,
AC_FUNC_FNMATCH_GNU, AC_FUNC_MALLOC, AC_FUNC_MEMCMP, etc.

This would be a major change, though, and has to wait until after 2.60
comes out.

In the meantime I guess we can limp along with Jim's solution.


Reply via email to