Niels Möller wrote...
These tricks have worked for me (on Solaris), so if it doesn't work for you I'd like to see a full bug report, including the config.log.
I wonder if maybe you install all your optional libraries and includes under the same directory - /usr/local perhaps. I install each such package under its own directory such as /opt/gmp, /opt/liboop, /opt/nettle. The runtime linker would already search the right place for liboop due to -R paths from nettle and gmp. Just a guess.
When I remove all my build-related environment variables, and run configure as follows...
./configure --prefix=/opt/lsh
--with-include-path=/opt/gmp/include:/opt/nettle/include:/opt/liboop/include --with-lib-path=/opt/gmp/lib:/opt/nettle/lib:/opt/liboop/lib
... the configure script fails here...
checking whether byte ordering is bigendian... yes checking for short... yes checking size of short... configure: error: cannot compute sizeof (short), 77
... and config.log indicates that it's because the conftest binary cannot be executed because the runtime linker cannot find liboop. I'll email my config.log to you off-list since it's rather large.
This is Solaris 2.6 with GCC 2.95.3. Thanks for your help!