trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: November 2011

Re: [trinity-devel] Can't login with KDM

From: Serghei Amelian <serghei@...>
Date: Sat, 19 Nov 2011 01:47:41 +0200
On Saturday 19 November 2011 01:44:06 Laurent Dard wrote:
[...]

> I doubt the first test is useful.

On our modern Linux systems, probably is useless. But we don't know if other 
unix like systems do not incorporate it in libc.

> I believe check_function_exists always fails here.
>
> $ man 3 crypt
> --> "Link with -lcrypt."
>
> This would be better, no?:
>
> check_library_exists( crypt crypt "" HAVE_CRYPT )
> if( HAVE_CRYPT )
>   set( CRYPT_LIBRARY crypt )
> endif( )



-- 
Serghei