Hi everybody,<div><br></div><div>I want to build mod_gnutls. The problem: CentOS' version of GNUTLS is too old to link against, so I compiled and installed GNUTLS from source and put it into /opt where it doesn't hurt the already installed GNUTLS. Now I have trouble linking against this version as the autoconf buildchain in mod_gnutls does not find the newer version.</div>
<div><br></div><div>I tried like this:</div><div><br></div><div>./configure -with-libgnutls=/opt/lib</div><div>./configure -with-libgnutls=/opt/bin</div><div><br></div><div>I get this from configure:</div><div><br></div><div>
<div>checking for libgnutls - version >= 2.4.0... no</div><div>*** An old version of LIBGNUTLS (1.4.1) was found.</div><div>*** You need a version of LIBGNUTLS newer than 2.4.0. The latest version of</div><div>*** LIBGNUTLS is always available from <a href="ftp://gnutls.hellug.gr/pub/gnutls">ftp://gnutls.hellug.gr/pub/gnutls</a>.</div>
<div>*** </div><div>*** If you have already installed a sufficiently new version, this error</div><div>*** probably means that the wrong copy of the pkg-config shell script is</div><div>*** being found. The easiest way to fix this is to remove the old version</div>
<div>*** of LIBGNUTLS, but you can also set the PKG_CONFIG environment to point to the</div><div>*** correct copy of pkg-config. (In this case, you will have to</div><div>*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf</div>
<div>*** so that the correct libraries are found at run-time))</div><div>configure: error:</div><div>***</div><div>*** libgnutls was not found. You may want to get it from</div><div>*** <a href="http://www.gnutls.org/">http://www.gnutls.org/</a></div>
<div>***</div><div><br></div><div>I don't understand this. I already set the PKG_CONFIG_PATH to /opt/lib/pkgconfig (according to pkg-config manpage) but that doesn't work.</div><div><br></div><div>What's the easiest way to make mod_gnutls link against GNUTLS as installed in /opt/lib?</div>
<div><br></div><div>thanks,</div><div><br></div><div>Tobias W.</div></div>