diff options
author | Björn Schäpers <bjoern@hazardy.de> | 2022-12-12 18:27:49 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-01-14 20:49:45 +0000 |
commit | 523e8716a452978a7972478d8cdbbe0d1a794a74 (patch) | |
tree | ed3f57c4617096fe9f4c90fe2dcb58c0d3ad11dc /libstdc++-v3/configure | |
parent | b1c839be8353edfb1951454be3c5a8150f771385 (diff) | |
download | gcc-523e8716a452978a7972478d8cdbbe0d1a794a74.zip gcc-523e8716a452978a7972478d8cdbbe0d1a794a74.tar.gz gcc-523e8716a452978a7972478d8cdbbe0d1a794a74.tar.bz2 |
libstdc++: enable <stacktrace> on windows
libstdc++-v3/Changelog
* acinclude.m4 (GLIBCXX_ENABLE_BACKTRACE): Add check for
windows.h. Add pecoff as FORMAT_FILE.
* config.h.in: Regenerate.
* configure: Regenerate.
* src/libbacktrace/Makefile.am: Regenerate.
* src/libbacktrace/Makefile.in: Add pecoff.c as FORMAT_FILE.
Signed-off-by: Björn Schäpers <bjoern@hazardy.de>
Diffstat (limited to 'libstdc++-v3/configure')
-rwxr-xr-x | libstdc++-v3/configure | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index ab12a2d..9c0f3a3 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -71101,6 +71101,18 @@ rm -f conftest* if test "$have_dl_iterate_phdr" = "yes"; then BACKTRACE_CPPFLAGS="$BACKTRACE_CPPFLAGS -DHAVE_DL_ITERATE_PHDR=1" fi + for ac_header in windows.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" +if test "x$ac_cv_header_windows_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_WINDOWS_H 1 +_ACEOF + +fi + +done + # Check for the fcntl function. if test -n "${with_target_subdir}"; then @@ -71190,6 +71202,7 @@ $as_echo "$glibcxx_cv_sys_filetype" >&6; } FORMAT_FILE= case "$glibcxx_cv_sys_filetype" in elf*) FORMAT_FILE="elf.lo" ;; +pecoff*) FORMAT_FILE="pecoff.lo" ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5 $as_echo "$as_me: WARNING: could not determine output file type" >&2;} FORMAT_FILE="unknown.lo" |