From 85804ec662d8eeeae29d4e3191a4e07bf9aba5c8 Mon Sep 17 00:00:00 2001 From: Geoff Keating Date: Fri, 11 Aug 2000 22:02:04 +0000 Subject: [PATCH] configure.in (CHILL_FOR_TARGET, [...]): Use slightly more portable shell script to convert blanks to commas in $LANGUAGES. * configure.in (CHILL_FOR_TARGET, CXX_FOR_TARGET): Use slightly more portable shell script to convert blanks to commas in $LANGUAGES. From-SVN: r35645 --- ChangeLog | 5 +++++ configure.in | 16 ++++++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 117bd44e65c..5ee21875049 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-08-11 Geoffrey Keating + + * configure.in (CHILL_FOR_TARGET, CXX_FOR_TARGET): Use slightly more + portable shell script to convert blanks to commas in $LANGUAGES. + 2000-08-11 Alexandre Oliva * config-ml.in (CC, CXX): Don't introduce a leading space. diff --git a/configure.in b/configure.in index 69a5f0869ac..e119076b567 100644 --- a/configure.in +++ b/configure.in @@ -1298,7 +1298,13 @@ esac if test "x${CHILL_FOR_TARGET+set}" = xset; then : elif test -d ${topsrcdir}/gcc && - echo ",${enable_languages-`echo ${LANGUAGES-CHILL} | tr ' ' ','`}," | + # This used to be + # echo ",${enable_languages-`echo ${LANGUAGES-CHILL} | tr ' ' ','`}," + # but that didn't work on the AIX 4.3.3 /bin/sh. + # echo ",${enable_languages-`echo ${LANGUAGES-CHILL} | tr " " ","`}," + # doesn't work on the Solaris 5.6 /bin/sh. + # This works on both: + echo ",${enable_languages-`echo ${LANGUAGES-CHILL} | tr \ ,`}," | grep ',CHILL,' > /dev/null ; then CHILL_FOR_TARGET='$$r/gcc/xgcc -L$$r/gcc/ch/runtime/' elif test "$host" = "$target"; then @@ -1314,7 +1320,13 @@ esac if test "x${CXX_FOR_TARGET+set}" = xset; then : elif test -d ${topsrcdir}/gcc && - echo ",${enable_languages-`echo ${LANGUAGES-c++} | tr ' ' ','`}," | + # This used to be + # echo ",${enable_languages-`echo ${LANGUAGES-c++} | tr ' ' ','`}," + # but that didn't work on the AIX 4.3.3 /bin/sh. + # echo ",${enable_languages-`echo ${LANGUAGES-c++} | tr " " ","`}," + # doesn't work on the Solaris 5.6 /bin/sh. + # This works on both: + echo ",${enable_languages-`echo ${LANGUAGES-c++} | tr \ ,`}," | grep ',c[+][+],' > /dev/null ; then CXX_FOR_TARGET='$$r/gcc/g++ -nostdinc++ '$libstdcxx_flags elif test "$host" = "$target"; then