From:             nick dot ferszt at ga dot com
Operating system: OS X 10.3.9
PHP version:      5.2.0
PHP Bug Type:     *Compile Issues
Bug description:  ./configure flag failure

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 bug report at http://bugs.php.net/?id=39591&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39591&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39591&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39591&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39591&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39591&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39591&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39591&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39591&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39591&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39591&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39591&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39591&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39591&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39591&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39591&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39591&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39591&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39591&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39591&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39591&r=mysqlcfg

Reply via email to