Skip site navigation (1) Skip section navigation (2)

Re: Q: How to #ifdef for dlopen() or a specific OS Version

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Zeugswetter Andreas SB <ZeugswetterA(at)wien(dot)spardat(dot)at>
Cc: "'pgsql-hackers(at)postgresql(dot)org'" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Q: How to #ifdef for dlopen() or a specific OS Version
Date: 2000-09-25 14:55:49
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Zeugswetter Andreas SB <ZeugswetterA(at)wien(dot)spardat(dot)at> writes:
> For a patch to fix the AIX port I would like to differentiate
> Versions below 4.3 and above, or rather I would like to 
> differentiate whether -ldl has dlopen().

Checking the latter condition seems more robust.

It's not hard.  After's line

AC_CHECK_LIB(dl,       main)

you could add something like


and make the corresponding addition to and/or, depending on whether you need access to this symbol
from C code, Makefiles, or both.

			regards, tom lane

In response to

pgsql-hackers by date

Next:From: Tom LaneDate: 2000-09-25 15:00:08
Subject: Re: byacc problem with FreeBSD ...
Previous:From: Bruce MomjianDate: 2000-09-25 14:40:23
Subject: Re: Please no // comments in C source (ecpg)

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group