aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-05-18 18:21:50 +0100
committerJonathan Wakely <jwakely@redhat.com>2023-05-31 13:17:45 +0100
commit0ed5259ccbd66d190365ab33b05ad5879263a623 (patch)
tree95af32a5808a461453ccb1ee669cd58e5a0170ab
parentb960c253e988c68ed3f3829125bc267bdf169356 (diff)
downloadgcc-0ed5259ccbd66d190365ab33b05ad5879263a623.zip
gcc-0ed5259ccbd66d190365ab33b05ad5879263a623.tar.gz
gcc-0ed5259ccbd66d190365ab33b05ad5879263a623.tar.bz2
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.
-rwxr-xr-xlibstdc++-v3/configure2
-rw-r--r--libstdc++-v3/configure.ac2
2 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
index 167aabd..4db8a28 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 df01f58..0abe54e 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
;;