From 3982be852e95013a519ddb41aeb95e8812f85cec Mon Sep 17 00:00:00 2001 From: Brian Barrett Date: Fri, 16 Mar 2007 21:24:12 +0000 Subject: [PATCH] Fixed issue with multi-word C compiler variable, where there was more than one space between tokens. Thanks to Bert Wesarg for reporting the issue. This commit was SVN r14044. --- NEWS | 4 ++++ config/ompi_get_libtool_linker_flags.m4 | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 536d235ed5..ef8a82b479 100644 --- a/NEWS +++ b/NEWS @@ -49,6 +49,10 @@ Trunk (not on release branches yet) --> Expected 1.2.x - Implement MPI_TYPE_CREATE_DARRAY function --> Expected 1.2.x +- Fixed issue with multi-word C compiler variable, where there + was more than one space between tokens. Thanks to Bert + Wesarg for reporting the issue. + --> Expected 1.2.x 1.2.1 ----- diff --git a/config/ompi_get_libtool_linker_flags.m4 b/config/ompi_get_libtool_linker_flags.m4 index f63d002acc..b66cf89ea9 100644 --- a/config/ompi_get_libtool_linker_flags.m4 +++ b/config/ompi_get_libtool_linker_flags.m4 @@ -76,7 +76,9 @@ ompi_check_linker_flags_work cmd="$libtool --dry-run --mode=link --tag=CC $CC bar.lo libfoo.la -o bar $extra_flags" ompi_check_linker_flags_work yes -output=`echo $output | sed -e "s/^$CC//"` +# eat any extra whitespace in CC, as libtool will do the same +tmpCC=`echo $CC` +output=`echo $output | sed -e "s/^$tmpCC//"` eval "set $output" extra_ldflags= while test -n "[$]1"; do