public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-1435] libstdc++: Replace obsolete shell syntax in configure.ac
@ 2023-05-31 12:21 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2023-05-31 12:21 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:0ed5259ccbd66d190365ab33b05ad5879263a623

commit r14-1435-g0ed5259ccbd66d190365ab33b05ad5879263a623
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Thu May 18 18:21:50 2023 +0100

    libstdc++: Replace obsolete shell syntax in configure.ac
    
    The current POSIX standard says that the -a and -o operators to the
    'test' utility are obsolete, and the shell operators && and || should be
    used instead.
    
    libstdc++-v3/ChangeLog:
    
            * configure.ac: Replace use of -o operator for test.
            * configure: Regenerate.

Diff:
---
 libstdc++-v3/configure    | 2 +-
 libstdc++-v3/configure.ac | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
index 167aabd8fc5..4db8a284083 100755
--- a/libstdc++-v3/configure
+++ b/libstdc++-v3/configure
@@ -3298,7 +3298,7 @@ if test "$build" != "$host"; then
       *-*-darwin*,*-*-darwin*)
 	hostos=`echo $host | sed 's/.*-darwin/darwin/'`
 	targetos=`echo $target | sed 's/.*-darwin/darwin/'`
-	if test $hostos = $targetos -o $targetos = darwin ; then
+	if test $hostos = $targetos || test $targetos = darwin ; then
 	  GLIBCXX_IS_NATIVE=true
 	fi
 	;;
diff --git a/libstdc++-v3/configure.ac b/libstdc++-v3/configure.ac
index df01f58bd83..0abe54e7b9a 100644
--- a/libstdc++-v3/configure.ac
+++ b/libstdc++-v3/configure.ac
@@ -45,7 +45,7 @@ if test "$build" != "$host"; then
       *-*-darwin*,*-*-darwin*)
 	hostos=`echo $host | sed 's/.*-darwin/darwin/'`
 	targetos=`echo $target | sed 's/.*-darwin/darwin/'`
-	if test $hostos = $targetos -o $targetos = darwin ; then
+	if test $hostos = $targetos || test $targetos = darwin ; then
 	  GLIBCXX_IS_NATIVE=true
 	fi
 	;;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-05-31 12:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-31 12:21 [gcc r14-1435] libstdc++: Replace obsolete shell syntax in configure.ac Jonathan Wakely

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).