[GRASS5] small configure problem on solaris 8 sparc

Hi,

there is a minor problem with the new configure on solaris 8:
Solaris echo does not recognize the -n option. So the output of
configure (listing of libraries) is garbled.
This is a problem with LOC_MSG from configure.in resp. aclocal.m4. I
know a fix, but don't know how to implement this with aclocal.m4:
if test `echo "one \c" | wc -w` eq 2 ; then
  ECHO="echo -n"
  EL=""
else
  ECHO="echo"
  EL="\c"
fi

echo has to be replaced with:
$ECHO "this is a message $EL"

Thanks,

Andreas

--
Andreas Lange, 65187 Wiesbaden, Germany, Tel. +49 611 807850
url: http://mitglied.lycos.de/AndreasLange
mail: Andreas.Lange_at_Rhein-Main.de - A.C.Lange_at_GMX.net

Andreas Lange wrote:

there is a minor problem with the new configure on solaris 8:
Solaris echo does not recognize the -n option. So the output of
configure (listing of libraries) is garbled.
This is a problem with LOC_MSG from configure.in resp. aclocal.m4. I
know a fix, but don't know how to implement this with aclocal.m4:
if test `echo "one \c" | wc -w` eq 2 ; then
  ECHO="echo -n"
  EL=""
else
  ECHO="echo"
  EL="\c"
fi

echo has to be replaced with:
$ECHO "this is a message $EL"

I took the easier route of changing LOC_MSG_USE to use command
substitution (backticks), i.e.:

  AC_DEFUN(LOC_MSG_USE,[
  [echo " $1:]LOC_PAD_26($1)`LOC_YES_NO($2)`"])

BTW, the Solaris 8 behaviour is mandated by the Single Unix
Specification (IEEE Std 1003.1-2001). Unfortunately, neither the
"echo" program from GNU sh-utils nor bash's built-in "echo" command
support "\c"

--
Glynn Clements <glynn.clements@virgin.net>