Joao Miguel Ferreira wrote: >> Same as with Linux: >> >> -I/usr/local/include >> >> > > >> -L path-to-library-at-link-time -R path-to-library-at-runtime >> >> > > Hi Bart, > > thank you... but... > > my test applications are also instaled with the GNU Autotools. My > problem is that, during the ./configure phase, configure can't find the > header files in /usr/local/include. If, I install the header files > in /usr/include configure will find them and things work just fine. > > The same goes for the lib. If I install the lib in /usr/lib the Solaris > loader is able to find the lib and run the program. But if I put it in > the default Autotools dir /usr/local/lib the Solaris "ld" will not find > it... :( >
If you are looking to enable configure to go to the correct search paths, this should do the trick: CFLAGS="-I/usr/local/include" LDFLAGS="-L /usr/local/lib -R /usr/local/lib" ./configure It'd also enable your apps to be built with the correct embedded search paths. Regards, Moinak.
