Re: [Sablevm-developer] building out-of-the-box on non-Linux platform
Brought to you by:
egagnon
From: Grzegorz B. P. <ga...@de...> - 2004-01-22 20:15:20
|
On Thu, 2004-01-22 at 11:15, David Bélanger wrote: > So if I understand well, we will use the AC_CHECK_LIB in two ways: > > 1) For system libraries such as: m, pthread, rt, ... > To check their if we need to link them explicitly. > 2) For non-system lib such as: ltdl, popt, ffi > To check if the user have installed them like we are currently > doing. Just beware of one thing. The fact that for ex. librt exists and we can technically link to it - doesn't mean we actually need! For ex. on Linux we can just simply omit the -lrt - it'll work with or without it as well. But on Solaris we have to add -lrt, while on cygwin we must not. I don't know exactly how you want to use AC_CHECK_LIB but it's just not great idea to do "oh, you do have this lib? let's link to it!" I belive auto* tools can actually check whether a lib has certain symbols to which you can link, or not. So if we want it to be actually automated, maybe for the symbol that is available in librt, we should first look into the regular, other lib, whether it is available there, and if not - try to find it in librt. Makes sense? ;-) Grzegorz B. Prokopski |