Newsgroups: php.install,php.internals Path: news.php.net Xref: news.php.net php.install:19425 php.internals:40526 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92785 invoked from network); 16 Sep 2008 05:35:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Sep 2008 05:35:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=chris#@codewarehouse.NET; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=chris#@codewarehouse.NET; sender-id=unknown Received-SPF: error (pb1.pair.com: domain codewarehouse.NET from 75.160.109.235 cause and error) X-PHP-List-Original-Sender: chris#@codewarehouse.NET X-Host-Fingerprint: 75.160.109.235 hitme.hitometer.net Received: from [75.160.109.235] ([75.160.109.235:55426] helo=hitme.hitOmeter.NET) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 93/06-00923-CB54FC84 for ; Tue, 16 Sep 2008 01:35:59 -0400 Received: from hitme.hitOmeter.NET (localhost.hitOmeter.NET [127.0.0.1]) by hitme.hitOmeter.NET (8.13.8/8.13.8/HitOmeter Messaging Service!) with ESMTP id m8G5Zltf038465; Mon, 15 Sep 2008 22:35:53 -0700 (PDT) (envelope-from chris#@codewarehouse.NET) Received: (from www@localhost) by hitme.hitOmeter.NET (8.13.8/8.13.8/HitOmeter Messaging Service!) id m8G5Zgp7038464; Mon, 15 Sep 2008 22:35:42 -0700 (PDT) (envelope-from chris#@codewarehouse.NET) To: "[php-install]" MIME-Version: 1.0 Date: Mon, 15 Sep 2008 22:35:42 -0700 Cc: "[php-internals]" Message-ID: X-Sender: chris#@codewarehouse.NET User-Agent: hitOmeter-mail/0.01 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Subject: Re:macros/defines questions - am attempting to create (install) parallel versions From: chris#@codewarehouse.NET (chris#) > 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 OK. I just discovered a pleasant surprise - in all the times I've typed ./configure --help, I was always given the generic GNU configure dialog about how the application may have different options, yadda, yadda. What a pleasant surprise, the PHP version provides some real relevant help! :) But inspite of it, I'm still left with a few questions. I'm afraid I'm still unclear what the option/switch: --program-prefix=PREFIX (prepend PREFIX to installed program names) means. Will/can it help me with the above? Or will it allow me to install $PREFIX/bin/php-cgi,php-config,and phpize as $PREFIX/bin/php5-cgi,php5-config, and php5ize? > > 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 see there is --includedir=, which will allow me to define $PREFIX/include/php as $PREFIX/include/php5. Yes? Is there an equivalent macro for this? If so, what is it's name? I see there is --libdir=, which will allow me to define $PREFIX/lib/php as $PREFIX/lib/php5 (if I understand it correctly). But is there a macro I can use in place of it? If so, what is it's name? > > 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 OK. Looks like --sysconfdir= will provide the define I need to choose the $PREFIX/etc/php5 directory for the module/extension config related stuff. But is there already a macro I can use for this? If so, what is it's name? Anyway, I /think/ I'm getting closer. But could /greatly/ use some help. :) Thank you for all your time and consideration. Best wishes. --Chris > > 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! .