macros/defines questions - am attempting to create parallel versions install

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Greetings,
 I've been looking at the source of php-5.2.6 with the goal of creating a port for the FreeBSD ports
system that will enable the user/sysadmin to install php5 along side an already installed php 4
version. My intended course is to install the php5 cgi sapi and use a php5 directory in place of the
default php directory eg;

$PREFIX == /usr/local
$PREFIX/bin
$PREFIX/etc/php
$PREFIX/include/php
$PREFIX/lib/php

becomes:
$PREFIX == /usr/local
$PREFIX/bin
$PREFIX/etc/php5
$PREFIX/include/php5
$PREFIX/lib/php5

My main points of interest is if/where there are any already pre-defined macros that will assist
me in changing the already defined php directory with a directory named php5

$PREFIX/etc/php && $PREFIX/include/php && $PREFIX/lib/php
to
$PREFIX/etc/php5 && $PREFIX/include/php5 && $PREFIX/lib/php5

I also hope to be able to re-name the following:
$PREFIX/bin/php-cgi --> $PREFIX/bin/php5-cgi
$PREFIX/bin/php-config --> $PREFIX/bin/php5-config
$PREFIX/bin/phpize --> $PREFIX/bin/php5ize
and
$PREFIX/bin/etc/php.conf --> $PREFIX/bin/php5.conf

In the last case I understand that the switch --with-config-file-scan-dir=${PREFIX}/etc/php exists
that permits the definition of a directory to source for module/extension options. But is the macro
$PHP_CONFIG_FILE_SCAN_DIR usable for this task? Can I use/define $PHP_SYSCONFDIR, or
$PHP_CONFIG_FILE_SCAN_DIR to define the default name and location of the php.ini file?

Any and all help /greatly/ appreciated, and thank you for all your time and consideration.

--Chris

/////////////////////////////////////////////////////
Service provided by hitOmeter.NET internet messaging!
.



[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux