Volker Stolz [EMAIL PROTECTED] writes:
> My happy is 1.10, everything fresh from cvs:
> --->
> checking for happy... /home/stolz/Linux/haskell/ghc-4.08.1/bin/happy
> checking for version of happy...
> Happy version 1.9 or later is required to compile GHC.
> <---
>
> And in a sense, it is right. I'd really like to come up with a fix, but
> I guess...
>
> [...perl silliness deleted..]

If you assume that the version string is of the form X.Y, the following test
should do the trick:

if ( test `echo "$fptools_cv_happy_version" | sed -e "s/\(.*\)\..*/\1/g"`
"-eq" "1" &&
     test `echo "$fptools_cv_happy_version" | sed -e "s/.*\.\(.*\)/\1/g"`
"-lt" "9" ); then

substitute it for the usage of 'expr' in the FPTOOLS_HAPPY macro in
aclocal.m4 &
rebuild the configure script, i.e., I haven't committed this tweak.

--sigbjorn



_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to