bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getloadavg module broken


From: Paul Eggert
Subject: Re: getloadavg module broken
Date: Fri, 26 May 2006 20:29:48 -0700
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Bruno Haible <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]