[ Volker, is your Mail-Followup-To:-header intended like this? ]

* Volker Stolz <[EMAIL PROTECTED]> [2001-01-26T14:57+0100]:
[ configure thinks: happy-1.10 < happy-1.9 ]

> And in a sense, it is right. I'd really like to come up with a fix, but
> I guess...

[ perl thingy ]

> > perl vers.pl "1.9" "1.10" ; echo $?
> 1
> > perl vers.pl "4.08.1" "4.08"; echo $?
> 0 

[982]% perl vers.pl 4.09 4.08.1
zsh: exit 1     perl vers.pl 4.09 4.08.1
[983]% 


BTW:
Using perl in autoconf...  What next?  Slicing bread with the
Swiss Army Chainsaw(tm)?  heart surgery?  splitting atom cores?  B)

<quote>
   The `configure' script [...] should not use any utilities directly
   except these:

     cat cmp cp diff echo egrep expr false grep install-info
     ln ls mkdir mv pwd rm rmdir sed sleep sort tar test touch true
</quote>

sequence_compare () {
        # usage:
        #   ``IFS="." sequence_compare 1.2.3 <-lt|-le|-eq|-ge|-gt> 4.5''
        # - no *sh- or system-specific features 
        # - relies on IFS as field separator
        a="$1";  op="$2";  b="$3";

        while test -n "$a$b"
        do
                set -- $a;  h1="$1";  shift 2>/dev/null;  a="$*"
                set -- $b;  h2="$1";  shift 2>/dev/null;  b="$*"
                test -n "$h1" || h1=0;  test -n "$h2" || h2=0
                test ${h1} -eq ${h2} || break
        done
        test ${h1} "$op" ${h2}
}

Of course, for autoconf functions are VERBOTEN, and therefore the
original $IFS has to be saved & later restored...


Cheers,
Michael
p.s.: http://www.focusresearch.com/gregor/psh/ (interactive perl shell)  =)
-- 
() ASCII ribbon campaign |  Chair for Computer Science  II  | GPG: F65C68CD
/\ against HTML mail     |       RWTH Aachen, Germany       | PGP: 1D0DD0B9
                   "Ada is PL/I trying to be Smalltalk."
                                 -- Codoso diBlini

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

Reply via email to