From 784daa979bf0410d5a0face24a29753129d54600 Mon Sep 17 00:00:00 2001 From: Corentin Gay Date: Mon, 30 Dec 2019 22:36:14 +0000 Subject: [PATCH] VxWorks has_nanosleep for libstdc++ enable-libstdcxx-time auto 2019-12-30 Corentin Gay * acinclude.m4 (vxworks*): New entry. Set ac_has_nanosleep=yes. * configure: Regenerate. From-SVN: r279796 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/acinclude.m4 | 5 +++++ libstdc++-v3/configure | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index c9b4922dc96..564015d0899 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2019-12-30 Corentin Gay + + * acinclude.m4 (vxworks*): New entry. Set ac_has_nanosleep=yes. + * configure: Regenerate. + 2019-12-30 Jerome Lambourg Olivier Hainque diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 index c0d1059c6ed..c537a2688dd 100644 --- a/libstdc++-v3/acinclude.m4 +++ b/libstdc++-v3/acinclude.m4 @@ -1407,6 +1407,11 @@ AC_DEFUN([GLIBCXX_ENABLE_LIBSTDCXX_TIME], [ ac_has_nanosleep=yes ac_has_sched_yield=yes ;; + # VxWorks has nanosleep as soon as the kernel is configured with + # INCLUDE_POSIX_TIMERS, which is normally/most-often the case. + vxworks*) + ac_has_nanosleep=yes + ;; gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) AC_MSG_CHECKING([for at least GNU libc 2.17]) AC_TRY_COMPILE( diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index d96bd1457ec..d2e516df6d0 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -21060,6 +21060,11 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_has_nanosleep=yes ac_has_sched_yield=yes ;; + # VxWorks has nanosleep as soon as the kernel is configured with + # INCLUDE_POSIX_TIMERS, which is normally/most-often the case. + vxworks*) + ac_has_nanosleep=yes + ;; gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at least GNU libc 2.17" >&5 $as_echo_n "checking for at least GNU libc 2.17... " >&6; } -- 2.30.2