| 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: | 24366.969893749@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| 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 configure.in's line
AC_CHECK_LIB(dl, main)
you could add something like
AC_CHECK_LIB(dl, dlopen, [AC_DEFINE(HAVE_DLOPEN_IN_LIBDL)])
and make the corresponding addition to config.h.in and/or
Makefile.global.in, depending on whether you need access to this symbol
from C code, Makefiles, or both.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2000-09-25 15:00:08 | Re: byacc problem with FreeBSD ... |
| Previous Message | Bruce Momjian | 2000-09-25 14:40:23 | Re: Please no // comments in C source (ecpg) |