Re: Testing for int64 (was Re: [COMMITTERS] pgsql-server/ /configure - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Testing for int64 (was Re: [COMMITTERS] pgsql-server/ /configure
Date
Msg-id Pine.LNX.4.44.0301291857050.789-100000@localhost.localdomain
Whole thread Raw
In response to Testing for int64 (was Re: [COMMITTERS] pgsql-server/ /configure /configure.in...)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane writes:

> I think a reasonable choice in cross-compiling situations would be to
> assume int64 works if we have a long long int datatype, but to force use
> of our own snprintf rather than trusting to luck with the platform's.

That's approximately what's happening.  Formerly it insisted on doing a
run check to detect the int64 type.  Now it does a compile check when
cross-compiling.

For the snprintf format detection we obviously don't have that chance.  I
just refactored the code a little and added a cache variable so the
advanced cross-compiling user can override the check with known values.

--
Peter Eisentraut   peter_e@gmx.net


pgsql-hackers by date:

Previous
From: Justin Clift
Date:
Subject: Re: [mail] Re: Windows Build System
Next
From: Peter Eisentraut
Date:
Subject: Re: Request for qualified column names