Provide win32-based dlapi replacements on windows platforms without dlfcn.h.
authorDave Korn <dave.korn@artimi.com>
Fri, 15 Oct 2010 16:21:41 +0000 (16:21 +0000)
committerDave Korn <dave.korn@artimi.com>
Fri, 15 Oct 2010 16:21:41 +0000 (16:21 +0000)
commit3917d5d5ca1bed255ee9bd0a0b38360505ce5b4c
tree2cd98ae08c668c0f8121c6421d40f1e68f3a6697
parentd4cb7acdd8134607c321fc33c91696d672f49b1d
Provide win32-based dlapi replacements on windows platforms without dlfcn.h.

ld/ChangeLog:

* configure.in: If <dlfcn.h> can't be found, try for <Windows.h>
* configure: Regenerate.
* config.in: Likewise.
* plugin.c [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlopen): Provide
trival LoadLibrary-based replacement for Windows systems.
[!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise trivial
replacement based on GetProcAddress.
[!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise FreeLibrary.
* sysdep.h: Don't infer presence of <dlfcn.h> from ENABLE_PLUGINS
anymore, use its own guard.
ld/ChangeLog
ld/config.in
ld/configure
ld/configure.in
ld/plugin.c
ld/sysdep.h