bug-glibc
[Top][All Lists]
Advanced

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

Re: Detect usage of GNU libc.


From: Paul Jarc
Subject: Re: Detect usage of GNU libc.
Date: Fri, 16 Jan 2004 14:33:23 -0500
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux)

Johan Rydberg <address@hidden> wrote:
> I do not need any functions, but instead defines, such as LITTLE_ENDIAN
> and BYTE_ORDER.

Regardless, building a test program is the best way to test for their
existence.

> The thing is that the header will be installed, so I can not use a
> autoconf-generated config.h file for these things.

You can manually edit foo.h.in, and let ./configure generate foo.h
from that.  So foo.h.in would look like:
#if @HAVE_BYTE_ORDER@
... use it ...
#endif

Then ./configure would substitute 0 or 1 for @HAVE_BYTE_ORDER@, and
you can install the resulting foo.h.  At least, I think something like
this is possible.  You can ask on the autoconf list for details.


paul




reply via email to

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