"Maciej W. Rozycki" <[EMAIL PROTECTED]> writes:
>> I wonder what is the difference between AC_FUNC_FSEEKO and
>> AC_CHECK_FUNCS(seeko). The manual doesn't seem to explain.
>
> Well, that's what I have on my local system:
>
> - Macro: AC_FUNC_FSEEKO
> If the `fseeko' function is available, define `HAVE_FSEEKO'.
> Define `_LARGEFILE_SOURCE' if necessary to make the prototype
> visible on some systems (e.g. glibc 2.2). Otherwise linkage
> problems may occur when compiling with `AC_SYS_LARGEFILE' on
> largefile-sensitive systems where `off_t' does not default to a
> 64bit entity.
>
> The "_LARGEFILE_SOURCE" bit is the important one -- I have a vague
> memory of some program having a problem once in this area.
I see. Now I know why I didn't use AC_FUNC_FSEEKO -- Wget doesn't use
fseeko anywhere. The only usage we have is:
fseek (fp, 0, SEEK_END);
size = ftell (fp); /* replaced with ftello where available */
Is there need to use fseeko here?