Check for dladdr(), rather than assuming we have it if we have RTLD_DEFAULT
authorJon TURNEY <jon.turney@dronecode.org.uk>
Sat, 5 Apr 2014 16:11:45 +0000 (17:11 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 28 Apr 2014 18:11:02 +0000 (19:11 +0100)
commitec8ebff342839138bc8141b8a739d9bce6d7ac39
tree179a17327a35e3cc5737c7164ffade0e6bbcd5bd
parent6c8f547f66e68b495c708f8ffcb67370caa5ffe8
Check for dladdr(), rather than assuming we have it if we have RTLD_DEFAULT

Unfortunately, Cygwin defines RTLD_DEFAULT (for glibc compatibility), but can't
provide dladdr(), so add a check for dladdr()

Since I don't think scons is ever used to build for Cygwin, just set HAVE_DLADDR
in SConscript, assuming that if we have RTLD_DEFAULT, we have dladdr().

Cc: Jonathan Gray <jsg@jsg.id.au>
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Eric Anholt <eric@anholt.net>
configure.ac
src/mesa/drivers/dri/common/SConscript
src/mesa/drivers/dri/common/megadriver_stub.c