php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57126 configure script with windows line feed
Submitted: 2006-07-04 15:50 UTC Modified: 2007-10-17 16:19 UTC
From: sfilteau at kronostechnologies dot com Assigned:
Status: Closed Package: memcache (PECL)
PHP Version: Irrelevant OS: Linux Gentoo
Private report: No CVE-ID: None
 [2006-07-04 15:50 UTC] sfilteau at kronostechnologies dot com
Description:
------------
sylvain memcache # ./configure
loading cache ./config.cache
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking how to run the C preprocessor... (cached) cc -E
checking for egrep... (cached) grep -E
checking for a sed that does not truncate output... (cached) /bin/sed
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking whether gcc and cc understand -c and -o together... (cached) yes
checking if compiler supports -R... (cached) no
checking if compiler supports -Wl,-rpath,... (cached) yes
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20050922
checking for PHP installed headers prefix... /usr/local/include/php
checking for re2c... (cached) re2c
checking for re2c version... (cached) invalid
configure: warning: You will need re2c 0.9.11 or later if you want to regenerate PHP parsers.
checking for gawk... (cached) gawk
: command not foundine 2528:
checking whether to enable memcache support... yes, shared
: command not foundine 2577:
: command not foundine 2578:
./configure: line 2612: syntax error near unexpected token `elif'
'/configure: line 2612: `    elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then

Expected result:
----------------
to configure

Actual result:
--------------
doesn't configure

I've checked the configure script at line 2612 and vi showed me some "^M" at the end of some lines. I tried a dos2unix on this file and it configured. Don't know how to fix this permanently in the cvs.

All of this is with memcache-2.0.4 downloaded from pecl website and php-5.1.4.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-07-05 04:25 UTC] tony2001 at phpclub dot net
Please try memcache from CVS.
 [2007-10-17 16:19 UTC] mikael at synd dot info
This was a problem with ^M chars in config.m4, closing bug
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 14:01:30 2024 UTC