diff options
author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-11 22:02:04 +0000 |
---|---|---|
committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-11 22:02:04 +0000 |
commit | d793b7edcb0a800eabb4aa4e50c665286a2eac9f (patch) | |
tree | b949d7d0a4c4886a418dd0c64888e16e89c0db5c /configure.in | |
parent | 4177eed1152ce56d43e4453e4573d31b6402f29b (diff) | |
download | gcc-d793b7edcb0a800eabb4aa4e50c665286a2eac9f.tar.gz |
* configure.in (CHILL_FOR_TARGET, CXX_FOR_TARGET): Use slightly more
portable shell script to convert blanks to commas in $LANGUAGES.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35645 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 16 |
1 files changed, 14 insertions, 2 deletions
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 |