Albert Chin <[EMAIL PROTECTED]> writes: > +AC_CHECK_FUNCS(strtoll, , [ > + dnl The following taken from gnulib: > + dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. > + AC_MSG_CHECKING([whether <inttypes.h> defines strtoimax as a macro]) > + AC_EGREP_CPP([inttypes_h_defines_strtoimax], [#include <inttypes.h> > +#ifdef strtoimax > + inttypes_h_defines_strtoimax > +#endif], [ > + AC_MSG_RESULT(yes) > + AC_DEFINE(HAVE_STRTOIMAX, 1, > + [Define to 1 if you have the `strtoimax'.])], [ > + AC_MSG_RESULT(no)])])
Doesn't this unconditionally assume that strtoimax is macro? We don't know that all systems will define it so... It seems better to check for both strtoll and strtoimax using AC_CHECK_FUNCS and additionally define HAVE_STRTOIMAX if it's defined as a macro? In Wget's case, isn't it enough to change #elif defined HAVE_STRTOIMAX to #elif defined strtoimax || defined HAVE_STRTOIMAX
