[PHP-DOC] php autodetect
Hi! I am not experienced with configure script coding at all, but I have tried some methods to make php autodetect work on windows, but with no success. For now, you guys who would like to make PHP work on windows, but a php.bat into the phpdoc directory, and call configure with ./configure --with-php=php.bat Quite ugly solution, but that's for now... In php.bat: C:\PHP\php.exe %1 %2 %3 %4 %5 %6 IMHO the best solution would be to put this php.bat into phpdoc-tools, and make configure to autodetect that batch file there. I was unable to patch the current configure file to do so. :((( I tried relative path values, absolute path values, I have put php.bat onto the PATH, but nothing worked... Goba
Re: [PHP-DOC] php autodetect
Hallo Gabor, Wednesday, May 01, 2002, 12:29:15 PM, you wrote: Hi! I am not experienced with configure script coding at all, but I have tried some methods to make php autodetect work on windows, but with no success. Hm, it worked for me all the time, maybe because the path where php is installed is in my path environment variable. e.g: /cygdrive/c/php: The output, using cygwin: $ ./configure file versions Makefile.in,v 1.113 configure.in,v 1.145 configure options: checking for php... /cygdrive/c/php/php checking php version... 4.1.1 ok checking for jade... ../phpdoc-tools/jade/jade.exe It also works specifying manually where the php.exe is located: e.g.: $ ./configure --with-php=/cygdrive/c/php/php.exe file versions Makefile.in,v 1.113 configure.in,v 1.145 configure options: --with-php=/cygdrive/c/php/php.exe checking for php... /cygdrive/c/php/php.exe checking php version... 4.1.1 ok Maybe you didn't try the somewhat strange cygwin path-natation? :-) Friedhelm
Re: [PHP-DOC] php autodetect
I am not experienced with configure script coding at all, but I have tried some methods to make php autodetect work on windows, but with no success. Hm, it worked for me all the time, maybe because the path where php is installed is in my path environment variable. e.g: /cygdrive/c/php: The output, using cygwin: $ ./configure file versions Makefile.in,v 1.113 configure.in,v 1.145 configure options: checking for php... /cygdrive/c/php/php checking php version... 4.1.1 ok checking for jade... ../phpdoc-tools/jade/jade.exe It also works specifying manually where the php.exe is located: e.g.: $ ./configure --with-php=/cygdrive/c/php/php.exe file versions Makefile.in,v 1.113 configure.in,v 1.145 configure options: --with-php=/cygdrive/c/php/php.exe checking for php... /cygdrive/c/php/php.exe checking php version... 4.1.1 ok Maybe you didn't try the somewhat strange cygwin path-natation? :-) Still I would like to see a check for ../phpdoc-tools/php.bat or something like this, as jade and other things does not need to be on the path, but they are still found by configure. I feel a bit much to put php to the path, but I'll do this if I feel to uncomfortable adding the --with-php=php.bat every time to configure... Thanks for the tip. Goba