diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2012-03-20 19:24:32 +0000 |
---|---|---|
committer | Kai Tietz <kai.tietz@onevision.com> | 2012-03-20 19:24:32 +0000 |
commit | 17d5dae239c8e8cca84afffd3672981379536491 (patch) | |
tree | 85066d21a90e83a70d4903caa8424f01984001f9 /bfd/configure | |
parent | bdb892b99584bfd481ed23c90ad7ceafb31ca791 (diff) | |
download | gdb-17d5dae239c8e8cca84afffd3672981379536491.zip gdb-17d5dae239c8e8cca84afffd3672981379536491.tar.gz gdb-17d5dae239c8e8cca84afffd3672981379536491.tar.bz2 |
PR ld/12742
* configure.in (AC_CHECK_HEADERS): Test for windows.h and dlfcn.h.
* plugin.c: Guard include of dlfcn.h if HAVE_DLFCN_H is defined.
Add windows.h header include if HAVE_WINDOWS_H is defined.
(dlerror): New static function if windows variant is used instead
of dlfcn.h.
(dlclose): Likewise.
(dlopen): Likewise.
(dlsym): Likewise.
* configure: Regenerated.
* config.in: Regenerated.
Diffstat (limited to 'bfd/configure')
-rwxr-xr-x | bfd/configure | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bfd/configure b/bfd/configure index cff9b26..58a57ba 100755 --- a/bfd/configure +++ b/bfd/configure @@ -13508,6 +13508,22 @@ fi fi + +for ac_header in windows.h dlfcn.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +eval as_val=\$$as_ac_Header + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } if test "${gcc_cv_header_string+set}" = set; then : |