#39591 [Opn->Fbk]: ./configure flag failure
| From: | tony2001@php.net | Date: | Mon, 27 Nov 2006 15:01:20 +0000 |
| Subject: | #39591 [Opn->Fbk]: ./configure flag failure | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-105480@lists.php.net to get a copy of this message | ||
ID: 39591
Updated by: tony2001@php.net
Reported By: nick dot ferszt at ga dot com
-Status: Open
+Status: Feedback
Bug Type: *Compile Issues
Operating System: OS X 10.3.9
PHP Version: 5.2.0
New Comment:
No, I mean the configure script itself.
Previous Comments:
------------------------------------------------------------------------
[2006-11-27 14:30:11] nick dot ferszt at ga dot com
Configure can be found at:
http://home.san.rr.com/factorysix/configure.txt
These configure flages are from the orginal default install of
4.2.x with a few additions. It is quite possible that since
5.2.0 some options have been moved or changed making some
configuration options unnessary.
------------------------------------------------------------------------
[2006-11-22 21:38:29] tony2001@php.net
Please put your configure somewhere and post the URL here.
------------------------------------------------------------------------
[2006-11-22 17:31:56] nick dot ferszt at ga dot com
Description:
------------
When trying to configure 5.2.0 on OS X 10.3.9 I get the
error message(s):
./configure: line 2333: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
etc...
To fix this in configure:
Replace lines 2325-2354 with
for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS CC CXX; do
eval val=\$$var
if test -n "$val"; then
echo "$var='$val' \\" >> config.nice
fi
done
for arg in $0 "$@"; do
echo "'$arg' \\" >> config.nice
CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$arg'"
done
echo '"$@"' >> config.nice
chmod +x config.nice
This solves the problem.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39591&edit=1