diff options
author | Bernd Edlinger <edlinger@gcc.gnu.org> | 2016-12-01 06:06:04 +0000 |
---|---|---|
committer | Bernd Edlinger <edlinger@gcc.gnu.org> | 2016-12-01 06:06:04 +0000 |
commit | 77e6870d7fc85a4139f7f27ee3287b103d374ab2 (patch) | |
tree | 6baa09c0844ed0304ea8551624fe22b4f5a75176 /libstdc++-v3 | |
parent | 6e7f1be7aeabdb64c863f90e317ec1c80920adfa (diff) | |
download | gcc-77e6870d7fc85a4139f7f27ee3287b103d374ab2.zip gcc-77e6870d7fc85a4139f7f27ee3287b103d374ab2.tar.gz gcc-77e6870d7fc85a4139f7f27ee3287b103d374ab2.tar.bz2 |
crossconfig.m4 (*-linux*): Add link-check for memalign.
2016-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
* crossconfig.m4 (*-linux*): Add link-check for memalign.
* configure: Regenerated.
From-SVN: r243095
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 7 | ||||
-rwxr-xr-x | libstdc++-v3/configure | 13 | ||||
-rw-r--r-- | libstdc++-v3/crossconfig.m4 | 1 |
3 files changed, 20 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index cd4f5ae..b5f94c0 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,4 +1,9 @@ -2016-11-31 Tim Shen <timshen@google.com> +2016-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de> + + * crossconfig.m4 (*-linux*): Add link-check for memalign. + * configure: Regenerated. + +2016-12-01 Tim Shen <timshen@google.com> PR libstdc++/71500 * include/bits/regex.h (basic_regex::basic_regex): Use ECMAScript diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index f32197e..1f72e3f 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 6abc84f..4eaf208 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*) |