Fix detection of some headers on openbsd

Many headers requires additional include stdlib.h

Signed-off-by: François Andriot <francois.andriot@free.fr>"
pull/2/head
François Andriot 10 years ago committed by Slávek Banko
parent cad7d53f65
commit b4c4c46639

@ -11,6 +11,12 @@
if( WITH_SASL )
check_include_file( "sasl/sasl.h" HAVE_SASL_SASL_H )
if( NOT HAVE_SASL_SASL_H )
find_path( SASL_H_PATH "sasl/sasl.h" )
if( SASL_H_PATH )
set( HAVE_SASL_SASL_H "1" )
endif( )
endif( )
check_library_exists( sasl2 sasl_client_init "" HAVE_LIBSASL2 )
if( HAVE_SASL_SASL_H AND HAVE_LIBSASL2 )
set( SASL_LIBRARIES sasl2 )

Loading…
Cancel
Save