|
Boost : |
From: Daniel James (daniel_james_at_[hidden])
Date: 2006-12-11 18:33:51
Hi,
When I try running the configure script on Ubuntu I get:
daniel_at_bah:~/src/boost$ ./configure --prefix=/usr/local/boost
test: 180: ==: unexpected operator
test: 193: ==: unexpected operator
test: 213: ==: unexpected operator
test: 218: ==: unexpected operator
test: 222: ==: unexpected operator
test: 226: ==: unexpected operator
test: 243: ==: unexpected operator
This is because Ubuntu now links /bin/sh to dash (the script works fine
when called with bash). The bash man page says:
string1 == string2
True if the strings are equal. = may be used
in place of == for strict POSIX compliance.
So I've attached a patch which uses '=' instead of '==' which seems to
do the trick.
Daniel
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk