From: Keith Packard <keithp@keithp.com>
To: libstdc++@gcc.gnu.org
Cc: gcc@gcc.gnu.org, Keith Packard <keithp@keithp.com>
Subject: [PATCH 2/2] Regenerate libstdc++-v3 autoconf files
Date: Mon, 7 Dec 2020 10:39:27 -0800 [thread overview]
Message-ID: <20201207183927.3275768-3-keithp@keithp.com> (raw)
In-Reply-To: <20201207183927.3275768-1-keithp@keithp.com>
These are the changes to autoconf files for the pure-stdio patch
Signed-off-by: Keith Packard <keithp@keithp.com>
---
libstdc++-v3/config.h.in | 3 +++
libstdc++-v3/configure | 23 +++++++++++++++++++++++
2 files changed, 26 insertions(+)
diff --git a/libstdc++-v3/config.h.in b/libstdc++-v3/config.h.in
index 72faabfb2c1..76b1c97d2b5 100644
--- a/libstdc++-v3/config.h.in
+++ b/libstdc++-v3/config.h.in
@@ -1022,6 +1022,9 @@
/* Define if POSIX read/write locks are available in <gthr.h>. */
#undef _GLIBCXX_USE_PTHREAD_RWLOCK_T
+/* Define to restrict code to stdio APIs. */
+#undef _GLIBCXX_USE_PURE_STDIO
+
/* Define if /dev/random and /dev/urandom are available for the random_device
of TR1 (Chapter 5.1). */
#undef _GLIBCXX_USE_RANDOM_TR1
diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
index d128de2f186..5647c986831 100755
--- a/libstdc++-v3/configure
+++ b/libstdc++-v3/configure
@@ -929,6 +929,7 @@ enable_extern_template
with_python_dir
enable_werror
enable_vtable_verify
+enable_libstdcxx_pure_stdio
enable_libstdcxx_time
enable_tls
enable_rpath
@@ -1632,6 +1633,8 @@ Optional Features:
enable extern template [default=yes]
--enable-werror turns on -Werror [default=no]
--enable-vtable-verify enable vtable verify [default=no]
+ --enable-libstdcxx-pure-stdio
+ use only stdio APIs [default=]
--enable-libstdcxx-time[=KIND]
use KIND for check type [default=auto]
--enable-tls Use thread-local storage [default=yes]
@@ -18807,6 +18810,26 @@ fi
+ # Check whether --enable-libstdcxx-pure-stdio was given.
+if test "${enable_libstdcxx_pure_stdio+set}" = set; then :
+ enableval=$enable_libstdcxx_pure_stdio;
+ case "$enableval" in
+ yes|no) ;;
+ *) as_fn_error $? "Argument to enable/disable libstdcxx-pure-stdio must be yes or no" "$LINENO" 5 ;;
+ esac
+
+else
+ enable_libstdcxx_pure_stdio=
+fi
+
+
+ if test $enable_libstdcxx_pure_stdio = yes; then
+
+$as_echo "#define _GLIBCXX_USE_PURE_STDIO 1" >>confdefs.h
+
+ fi
+
+
# Checks for operating systems support that doesn't require linking.
--
2.29.2
prev parent reply other threads:[~2020-12-07 18:39 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-07 18:39 [PATCH 0/2] Support libc with stdio-only I/O in libstdc++ Keith Packard
2020-12-07 18:39 ` [PATCH 1/2] libstdc++: Add --enable-pure-stdio-libstdcxx option Keith Packard
2020-12-07 18:55 ` Jonathan Wakely
2020-12-07 20:36 ` Keith Packard
2020-12-09 10:17 ` Jonathan Wakely
2020-12-09 16:32 ` Keith Packard
2020-12-09 16:52 ` Jonathan Wakely
2020-12-10 2:46 ` [PATCH 0/2] Support libc with stdio-only I/O in libstdc++ Keith Packard
2020-12-10 2:46 ` [PATCH 1/2] libstdc++: Add --enable-stdio=stdio_pure option [v2] Keith Packard
2020-12-10 20:23 ` Jonathan Wakely
2020-12-10 20:56 ` Keith Packard
2020-12-15 18:43 ` Jonathan Wakely
2020-12-10 2:46 ` [PATCH 2/2] Regenerate libstdc++-v3 autoconf files Keith Packard
2020-12-07 18:39 ` Keith Packard [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201207183927.3275768-3-keithp@keithp.com \
--to=keithp@keithp.com \
--cc=gcc@gcc.gnu.org \
--cc=libstdc++@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).