From 5d71d6f24fee0385acfec934d4337061eb863c0f Mon Sep 17 00:00:00 2001 From: Iain Buclaw Date: Tue, 16 Apr 2019 05:58:25 +0000 Subject: [PATCH] libphobos: Fix configure test for backtrace-supported.h libphobos/ChangeLog: 2019-04-16 Iain Buclaw * config.h.in: Regenerate. * configure: Regenerate. * m4/druntime/libraries.m4 (DRUNTIME_LIBRARIES_BACKTRACE): Set CPPFLAGS correctly for backtrace support test. From-SVN: r270377 --- libphobos/ChangeLog | 7 +++++++ libphobos/config.h.in | 32 ++++++++++++++++++++++++++++++ libphobos/configure | 2 +- libphobos/m4/druntime/libraries.m4 | 2 +- 4 files changed, 41 insertions(+), 2 deletions(-) diff --git a/libphobos/ChangeLog b/libphobos/ChangeLog index 869d96ea77d..60d39c9bb77 100644 --- a/libphobos/ChangeLog +++ b/libphobos/ChangeLog @@ -1,3 +1,10 @@ +2019-04-16 Iain Buclaw + + * config.h.in: Regenerate. + * configure: Regenerate. + * m4/druntime/libraries.m4 (DRUNTIME_LIBRARIES_BACKTRACE): Set + CPPFLAGS correctly for backtrace support test. + 2019-04-14 Rainer Orth * configure.tgt (LIBPHOBOS_SUPPORTED): Default to no. diff --git a/libphobos/config.h.in b/libphobos/config.h.in index 19266b3b5e4..0249849c890 100644 --- a/libphobos/config.h.in +++ b/libphobos/config.h.in @@ -54,3 +54,35 @@ /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS + +/* Enable extensions on AIX 3, Interix. */ +#ifndef _ALL_SOURCE +# undef _ALL_SOURCE +#endif +/* Enable GNU extensions on systems that have them. */ +#ifndef _GNU_SOURCE +# undef _GNU_SOURCE +#endif +/* Enable threading extensions on Solaris. */ +#ifndef _POSIX_PTHREAD_SEMANTICS +# undef _POSIX_PTHREAD_SEMANTICS +#endif +/* Enable extensions on HP NonStop. */ +#ifndef _TANDEM_SOURCE +# undef _TANDEM_SOURCE +#endif +/* Enable general extensions on Solaris. */ +#ifndef __EXTENSIONS__ +# undef __EXTENSIONS__ +#endif + + +/* Define to 1 if on MINIX. */ +#undef _MINIX + +/* Define to 2 if the system does not provide POSIX.1 features except with + this defined. */ +#undef _POSIX_1_SOURCE + +/* Define to 1 if you need to in order for `stat' and other things to work. */ +#undef _POSIX_SOURCE diff --git a/libphobos/configure b/libphobos/configure index 87e4e4a7c9b..8079a73527d 100755 --- a/libphobos/configure +++ b/libphobos/configure @@ -14838,7 +14838,7 @@ fi LIBBACKTRACE=../../libbacktrace/libbacktrace.la gdc_save_CPPFLAGS=$CPPFLAGS - CPPFLAGS+=" -I../libbacktrace " + CPPFLAGS="$CPPFLAGS -I../libbacktrace " ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default" if test "x$ac_cv_header_backtrace_supported_h" = xyes; then : diff --git a/libphobos/m4/druntime/libraries.m4 b/libphobos/m4/druntime/libraries.m4 index 6e81fd99e4b..a7aab4dd88b 100644 --- a/libphobos/m4/druntime/libraries.m4 +++ b/libphobos/m4/druntime/libraries.m4 @@ -178,7 +178,7 @@ AC_DEFUN([DRUNTIME_LIBRARIES_BACKTRACE], LIBBACKTRACE=../../libbacktrace/libbacktrace.la gdc_save_CPPFLAGS=$CPPFLAGS - CPPFLAGS+=" -I../libbacktrace " + CPPFLAGS="$CPPFLAGS -I../libbacktrace " AC_CHECK_HEADER(backtrace-supported.h, have_libbacktrace_h=true, have_libbacktrace_h=false) -- 2.30.2