From 77e6870d7fc85a4139f7f27ee3287b103d374ab2 Mon Sep 17 00:00:00 2001 From: Bernd Edlinger Date: Thu, 1 Dec 2016 06:06:04 +0000 Subject: [PATCH] crossconfig.m4 (*-linux*): Add link-check for memalign. 2016-12-01 Bernd Edlinger * crossconfig.m4 (*-linux*): Add link-check for memalign. * configure: Regenerated. From-SVN: r243095 --- libstdc++-v3/ChangeLog | 7 ++++++- libstdc++-v3/configure | 13 +++++++++++++ libstdc++-v3/crossconfig.m4 | 1 + 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index cd4f5aeecdb..b5f94c09c63 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,4 +1,9 @@ -2016-11-31 Tim Shen +2016-12-01 Bernd Edlinger + + * crossconfig.m4 (*-linux*): Add link-check for memalign. + * configure: Regenerated. + +2016-12-01 Tim Shen PR libstdc++/71500 * include/bits/regex.h (basic_regex::basic_regex): Use ECMAScript diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index f32197e0fab..1f72e3ff9bb 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -59826,6 +59826,19 @@ _ACEOF fi done + for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + diff --git a/libstdc++-v3/crossconfig.m4 b/libstdc++-v3/crossconfig.m4 index 6abc84f8c43..4eaf20855f3 100644 --- a/libstdc++-v3/crossconfig.m4 +++ b/libstdc++-v3/crossconfig.m4 @@ -157,6 +157,7 @@ case "${host}" in AC_DEFINE(_GLIBCXX_USE_RANDOM_TR1) GCC_CHECK_TLS AC_CHECK_FUNCS(__cxa_thread_atexit_impl) + AC_CHECK_FUNCS(aligned_alloc posix_memalign memalign _aligned_malloc) AM_ICONV ;; *-mingw32*) -- 2.30.2