On Apr 7, 2011, at 7:42 AM, [email protected] wrote:

> libpci doesn't always need zlib, split the configure stuff in 3 parts:
> 
> * pkg-config case (recent libpci) was already ok
> * non-pkg-config case now does
>  + check without -lz first (ok for RHEL5 and Etch)
>  + if failed, try again with -lz (needed for FC7)
>    - this second check looks for a different symbol to ignore
>      the cached results of the first check
> 
> I am not sure if this double-check is the right way to handle
> libraries with variable dependencies.

I think it's fine, but you should probably check for libz (if/when needed) 
before adding -lz.

-- 
Jeff Squyres
[email protected]
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/


Reply via email to