URL:
<http://gna.org/bugs/?16696>
Summary: configure: expr: syntax error; test: =: unary
operator expected
Project: Battle for Wesnoth
Submitted by: ryandesign
Submitted on: Tuesday 09/14/2010 at 20:16
Category: Bug
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None of the others
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.8.4
Operating System: Mac OS X 10.6.4
_______________________________________________________
Details:
wesnoth's configure.ac includes these lines:
# Make tests default in svn version
svn_in_version=`expr match "$WESNOTH_VERSION" '.*svn'`
test_build=yes
if test $svn_in_version = 0
then
#disabling building tests for release version
test_build=no
fi
This usage of the "expr" command is valid for GNU expr, but not BSD expr;
therefore on Mac OS X, which has BSD expr, we see this output from
configure:
checking for ranlib... ranlib
expr: syntax error
./configure: line 6260: test: =: unary operator expected
checking whether we are using the GNU C++ compiler... yes
The configure script should be written in a more portable way such that it
does not assume GNU expr is available.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?16696>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs