Yep that&#39;ll have the same effect as what I was trying.<div><br></div><div>Ordinarily in a nonstandard directory that might be the preferred way to set it, but in this case where pg_config is found and being <span></span>used it should really be using the output of that within the configure script itself IMHO.</div>
<div><br></div><div>-Steve</div><div><br></div><div><br><br>On Saturday, June 15, 2013,   wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi Claus / Steven<br>
<br>
I have also bee having problems with freeswitch find libpq. I have tried with version 1.2.10 down to 1.2.7. what i&#39;ve found on my system<br>
<br>
Platform CentOS 6.4<br>
Postgresql 9.2<br>
<br>
using the following configure options<br>
./configure --enable-core-pgsql-support LDFLAGS=&quot;-L/usr/pgsql-9.2/lib&quot; CPPFLAGS=&quot;-I/usr/pgsql-9.2/include&quot;<br>
<br>
freeswitch no longer complains about not finding lpg. Another error is thrown out. This new problem is to do with mod_xml_scgi which seems to be an old bug and the problem I&#39;m having currently.<br>
<br>
Try the options given above and see. I suspect you only need the --enable-core-pgsql-support.<br>
<br>
Kellon<br>
<br>
<br>
<br>
From:     Claus Andersen &lt;<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;clan@wheel.dk&#39;)">clan@wheel.dk</a>&gt;<br>
Date:     06/14/13 12:07Subject:  Re: [Freeswitch-users] configure fails to find libpq<br>
<br>
On Fri, 14 Jun 2013, Steven Ayre wrote:<br>
<br>
&gt; Adding this line immediately before AC_CHECK_LIB, bootstrap.sh again, and then try configure.<br>
&gt; LDFLAGS=&quot;$LDFLAGS `$PG_CONFIG --libdir`&quot;<br>
&gt;<br>
&gt; It&#39;s a possible workaround rather than an actual fix (and an ugly one at that since it then keeps that lib<br>
&gt; directory for the rest of the script). One I haven&#39;t actually tested since libpq-dev on my system (Debian)<br>
&gt; installs to /usr/lib so doesn&#39;t have your issue. So let us know how you get on with it.<br>
&gt;<br>
&gt; If detected POSTGRESQL_LDFLAGS is already set containing the correct path so if that&#39;s what gets used by the<br>
&gt; build it might not be a problem past the configure stage.<br>
<br>
I assume that the following has the same effect:<br>
<br>
$ LDFLAGS=&quot;${LDFLAGS} -L/usr/pgsql-9.2/lib&quot;<br>
$ export LDFLAGS<br>
$./configure --enable-core-pgsql-support<br>
<br>
This fails during make and I have written a sperate mail to that effect. I<br>
will try your suggestion as well.<br>
<br>
Would the proper procedure be to file a new bug or should the make error<br>
be filed as a seperate (but related) bug?<br>
<br>
Kind Regards,<br>
Claus Andersen </blockquote></div>