bug-autoconf
[Top][All Lists]
Advanced

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

Re: AC_SYS_LARGEFILE bug in autoconf cvs 20001215


From: Pavel Roskin
Subject: Re: AC_SYS_LARGEFILE bug in autoconf cvs 20001215
Date: Tue, 19 Dec 2000 18:27:35 -0500 (EST)

Hello, Frank!

> but generate almost the same warnings on both OS:
> line 2: warning 602: Integer constant exceeds its storage.
> line 2: warning 602: Integer constant exceeds its storage.

I know about this problem. AC_SYS_LARGEFILE should be radically reworked.

> Wouldn't it be better to use the following check:
>
> #include <sys/types.h>
> int a[sizeof(off_t) == 8 ? 1 : -1];
> int
> main ()
> {
> }

We have better means to calculate sizeof(off_t) (I mean AC_CHECK_SIZEOF),
so I'll just have to find out why it was not used here originally.

> Besides that, when the options are correctly detected they are written in
> defconfs.h, but are not appended into CFLAGS. Is it the correct
> behaviour?

It depends on whether you are using AC_CONFIG_HEADER.

Regards,
Pavel Roskin




reply via email to

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