On Tue, Nov 13, 2001 at 11:40:25PM +0100, Marco Kaiser wrote : 
> today i got some weird problems with ./configure ... --with-gd=<path to sec
> version>.
> I have a version installed on the system and its works nice with --with-gd
> but if i want to link to a new patched version so its tricky. The .configure
> scripts ignore me
> and links to the old version under /usr/local ...
> 
> Its that ok or not?

    No (at least not for me ;)

To everyone messing with config.m4 scripts:

I think it doesn't make sense to detect
libraries in the following way:


    for i in /usr /usr/local/ $PHP_PNG_DIR; do ....

*IF* there are libraries already installed in /usr/ or /usr/local
and the use provides a $PHP_PNG_DIR , the custom directory will
not be detected.

This is a great mistake. Same with the order in general. It
really should be:

    for i in $PHP_PNG_DIR /usr/local /usr; do ...

First, what the user specified, than for additional installed
libraries (/usr/local/) and then the system defaults.


On the other hand, I may be completely wrong and there is a valid
reason (would make sense because most m4 scripts I quickly looked
at have the ordering of the directories like the first example I
gave) but then I just don't see it.

- Markus

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to