Derek Price <[EMAIL PROTECTED]> writes:

> +#ifdef LIMITS_H_HAS_MINMAX
> +# include <limits.h>
> +#elif SYS_PARAM_H_HAS_MINMAX
> +# include <sys/param.h>
> +#endif

This doesn't work if <limits.h> and <sys/param.h> both define MIN.

> +  AC_CHECK_HEADERS_ONCE([sys/param.h],
> +    [gl_have_sys_param_h=:], [gl_have_sys_param_h=false])dnl

You don't need to check whether sys/param.h exists.  All you
need to do is to see whether the following program compiles:

#include <sys/param.h>
int x = MIN (1, 2);

Similarly for <limits.h>.  You shouldn't need to use EGREP_CPP.


_______________________________________________
bug-gnulib mailing list
bug-gnulib@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnulib

Reply via email to