[GRASS5] small configure problem on solaris 8 sparc
Glynn Clements
glynn.clements at virgin.net
Mon Feb 25 11:53:38 EST 2002
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 at virgin.net>
More information about the grass-dev
mailing list