[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Checking for global variables
From: |
Thomas E. Dickey |
Subject: |
Re: Checking for global variables |
Date: |
Thu, 5 Oct 2000 13:45:26 -0400 (EDT) |
On 5 Oct 2000, Alexandre Oliva wrote:
> On Oct 5, 2000, Peter Eisentraut <address@hidden> wrote:
>
> > Is it portable to do that?
>
> I don't think so. IIRC, HP-UX's linker distinguishes data symbols
> from code symbols.
>
> > Does someone have a better idea (short of writing AC_TRY_LINK,
> > etc. for each)?
>
> There might be a macro able to do what you want. The problem is that
> you'd have to supply the right type for the variable, and any headers
> required to declare the types (and maybe the variable itself), so it's
> not too much different from using AC_TRY_LINK directly.
I've found that AC_TRY_LINK doesn't do enough (if I really want to know,
I'll use a test that tries to modify the data -- AC_TRY_RUN).
--
T.E.Dickey <address@hidden>
http://dickey.his.com
ftp://dickey.his.com