Re: [PATCH 0/2] Modernize header checks

Russ Allbery <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.patches
Organization The Eyrie
Message-ID <[email protected]>
Peter Rosin <[email protected]> writes:
> On 2013-05-31 19:19, Eric Blake wrote:

>> That said, would it hurt if autoconf just unconditionally defined the
>> macros that were previously conditionally defined by a probe, so that
>> code that was relying on HAVE_STRINGS_H instead of blind inclusion will
>> still compile?

> How would one do to be portable to both "some versions of FreeBSD" and
> MSVC, then? (MSVC 10 also lacks strings.h, btw) One camp needs
> HAVE_STRINGS_H to be defined and one needs to not have it defined.
> Sounds evil to unconditionally define it under those circumstances. Or
> have I misunderstood something?

Autoconf doesn't work with MSVC directly so far as I know.  All of the
packages I have that are ported to MSVC have a separate hand-written
config.h that's used for MSVC builds, and in that file one simply doesn't
define HAVE_STRINGS_H.

-- 
Russ Allbery ([email protected])             <http://www.eyrie.org/~eagle/>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.