Ilja schrieb:

> Hi,

> On Thursday, Oct 23, 2003, at 13:33 Europe/Amsterdam, Gerrit P. Haase 
> wrote:

>> Hallo,
>>
>> I'm having problems with the configure script:
>>
>> $ ./configure \
>>     --prefix=/usr \
>>     --with-pgsql
> [snip configure run]
>>
>> $ ./configure \
>>     --prefix=/usr \
>>     --with-pgsql=/usr/include/postgresql
> so here you say libpq-fe.h is in /usr/include/postgresql/ (cont'd below)

Yes of course, I thought it must be there if it is not found
automatically like in the first run, actually it is in /usr/include and
I'd expect that the script find it there automatically.



>>   Unable to find libpq-fe.h where you specified, try just --with-pgsql
>> to
>>   have configure guess

>> $ ls /usr/include/libpq-fe.h
>> /usr/include/libpq-fe.h
> and here it's in /usr/include/ !

Yes, I know it, but why does the script looks for it and don't see it?
---> The configure guess is broken.

> That should answer your question I guess.

No, my question is, why do I need to specify --with-pqsql=/usr/include
for the script to find the header?  Why doesn't configure tries e.g. to
link it in and see if the linker finds it or why doesn't the script take
a look in /usr/include automnatically?  I recently built the whole GNOME
desktop and never saw these problems like a stupid header isn't found?
The script should only ask if you want to use pgsql or mysql, thats it,
on the other hand, if it tries to find the actual header file, then do
it in the right way!


Gerrit
-- 
=^..^=

Reply via email to