[Top][All Lists]

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

Re: How to force using a module in Gnulib? (expl() on OpenBSD)

From: Assaf Gordon
Subject: Re: How to force using a module in Gnulib? (expl() on OpenBSD)
Date: Tue, 15 Apr 2014 12:18:10 -0400
User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0


On 04/15/2014 05:20 AM, Pádraig Brady wrote:
On 04/15/2014 12:54 AM, Assaf Gordon wrote:
It seems "expl()" is broken on OpenBSD5.4.

You can set an override var for the configure run,
However, since you have a simple enough test
it seems it would be better to incorporate that to
the gnulib check, so that all can benefit.

Attached is my attempt at detecting buggy expl() in the "expl.m4" file.

The test runs correctly in multiple environments, and sets a variable (gl_cv_func_expl_buggy) to 
"yes" or "no" .

However, I do not know how to overturn the gnulib detection of the native expl (see the 
"TODO" comment in the patch) - so it's a no-op at the moment.

While this test works in its current form, there might be some portability 
issues (since it uses 'fabs', 'exp' and 'expl') and those might require 
additional headers or libraries or special declarations.

The tests runs correctly on:
  Debian 7, x86_64, gcc 4.7.2
  CentOS, x84_64, gcc 4.4.7
  FreeBSD 10, x86_64, clang 3.3
  OpenBSD 5.4, X84_64, gcc 4.2.1
  Hurd, i386, gcc 4.8.2
  DilOS 1.3.5 (akin to SunOS 5.11), gcc 4.7.3

In OpenBSD it is set to "yes" (indicating buggy expl). In all others - "no".

Attachment: buggy_expl_m4_2014_04_15.patch
Description: Text Data

reply via email to

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