Hi Ian,
no, this does not work. Anyway, the problem is caused or looks like to
be caused by using double test. This:
elif test "$XCodeVersion1" -eq 3 -a "$XCodeVersion2" -lt 2
for example works, but I'm not sure at all the semantic of the test is
not changed. Does this do the job for you?
Thanks,
Karel
On 03/11/11 02:42 PM, Ian Lynagh wrote:
Hi Karel,
On Thu, Mar 10, 2011 at 07:51:45PM +0100, Karel Gardas wrote:
this patch attempts to fix configure breakage on Solaris. I hope the
code still runs well on apple/xcode.
] hunk ./configure.ac 443
if test "$XCodeVersion1" -lt 3
then
SplitObjsBroken=YES
- elif test "$XCodeVersion1" -eq 3&& test "$XCodeVersion2" -lt 2
+ elif [ "$XCodeVersion1" -eq 3 ]&& [ "$XCodeVersion2" -lt 2 ]
then
SplitObjsBroken=YES
fi
Hmm, why doesn't the current code work?
Does this variant work?:
if test "$XCodeVersion1" -lt 3
then
SplitObjsBroken=YES
else
if test "$XCodeVersion1" -eq 3&& test "$XCodeVersion2" -lt
then
SplitObjsBroken=YES
fi
fi
Generally, test is used in configure scripts rather than [ ] as [ ] have
a special meaning in m4.
Thanks
Ian
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc