mirror of https://github.com/gcc-mirror/gcc.git
libstdc++: detect DLLs on windows with <stacktrace>
libstdc++-v3/ChangeLog: * acinclude.m4 (GLIBCXX_ENABLE_BACKTACE): Add check for tlhelp32.h, matching libbacktrace. * config.h.in: Regenerate. * configure: Regenerate. Signed-off-by: Björn Schäpers <bjoern@hazardy.de>pull/91/merge
parent
5aaf47cb19
commit
d4635b504c
|
@ -5481,6 +5481,11 @@ AC_DEFUN([GLIBCXX_ENABLE_BACKTRACE], [
|
|||
BACKTRACE_CPPFLAGS="$BACKTRACE_CPPFLAGS -DHAVE_DL_ITERATE_PHDR=1"
|
||||
fi
|
||||
AC_CHECK_HEADERS(windows.h)
|
||||
AC_CHECK_HEADERS(tlhelp32.h, [], [],
|
||||
[#ifdef HAVE_WINDOWS_H
|
||||
# include <windows.h>
|
||||
#endif
|
||||
])
|
||||
|
||||
# Check for the fcntl function.
|
||||
if test -n "${with_target_subdir}"; then
|
||||
|
|
|
@ -490,6 +490,9 @@
|
|||
/* Define to 1 if you have the `timespec_get' function. */
|
||||
#undef HAVE_TIMESPEC_GET
|
||||
|
||||
/* Define to 1 if you have the <tlhelp32.h> header file. */
|
||||
#undef HAVE_TLHELP32_H
|
||||
|
||||
/* Define to 1 if the target supports thread-local storage. */
|
||||
#undef HAVE_TLS
|
||||
|
||||
|
|
|
@ -53865,6 +53865,22 @@ _ACEOF
|
|||
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
for ac_header in tlhelp32.h
|
||||
do :
|
||||
ac_fn_c_check_header_compile "$LINENO" "tlhelp32.h" "ac_cv_header_tlhelp32_h" "#ifdef HAVE_WINDOWS_H
|
||||
# include <windows.h>
|
||||
#endif
|
||||
|
||||
"
|
||||
if test "x$ac_cv_header_tlhelp32_h" = xyes; then :
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_TLHELP32_H 1
|
||||
_ACEOF
|
||||
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue