[Ecls-list] ecl 9.4.1 build trouble on Solaris 10/x86
Gabriel Dos Reis
gdr at integrable-solutions.net
Sat May 16 21:23:52 UTC 2009
On Sat, May 16, 2009 at 4:16 PM, Gabriel Dos Reis
<gdr at integrable-solutions.net> wrote:
> On Sat, May 16, 2009 at 2:58 PM, Juan Jose Garcia-Ripoll
> <juanjose.garciaripoll at googlemail.com> wrote:
>> On Sat, May 16, 2009 at 3:31 AM, Gabriel Dos Reis
>> <gdr at integrable-solutions.net> wrote:
>>> This is a functionality, so instead of testing for a specific platform, ECL
>>> should be testing for that functionality. For example, the following
>>> Autoconf macro does the work
>>>
>>> AC_CHECK_HEADERS([stdint.h inttypes.h])
>>
>> Autoconf is nice, but it is not the panacea. The reason why we have a
>> specific check for sun is that this platform had stdint.h but did not
>> provide all integer types
>
> That is why I also tested for inttypes.h.
I forgot to mention that, once you tested for the above two headers,
you test for the specific integer types with the two headers included
AC_TYPE_UINT8
etc.
While Autoconf may not be a panacea (I don't claim it ever is),
it does solve 99% of the problem.
Testing for the platform has the feature of not distinguishing which
version or instantiation of the platform works. That is no good when
all that is needed is a functionality.
For example, if you test the above on solaris 8 but running GCC-4.5 (upcoming)
you are likely to get the headers and everything works perfectly.
-- Gaby
More information about the ecl-devel
mailing list