This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Remove bashism from libstdc++-v3/tests_flags.in
- To: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Subject: Remove bashism from libstdc++-v3/tests_flags.in
- From: "Zack Weinberg" <zackw at stanford dot edu>
- Date: Sun, 1 Apr 2001 12:19:22 -0700
test a == b works only with bash.
Patch applied as obvious bugfix. I have not personally tested it, but
Brad Lucier has.
zw
* tests_flags.in: Use test a = b, not test a == b which is not
portable.
===================================================================
Index: libstdc++-v3/tests_flags.in
--- libstdc++-v3/tests_flags.in 2001/03/30 21:59:12 1.16
+++ libstdc++-v3/tests_flags.in 2001/04/01 19:18:22
@@ -108,7 +108,7 @@ case ${query} in
-I${SRC_DIR}/include/std -I${SRC_DIR}/include/$C_DIR
-I${SRC_DIR}/libsupc++ -I${SRC_DIR}/libio
-I${SRC_DIR}/testsuite"
- if test x@xcompiling@ == x1; then
+ if test x@xcompiling@ = x1; then
INCLUDES="${INCLUDES} -I${SRC_DIR}/../newlib/libc/include"
fi
;;