From b4c4c46639fd5008d9f0fa9632ded82ac96985d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Sat, 18 Oct 2014 13:47:41 +0200 Subject: [PATCH] Fix detection of some headers on openbsd Many headers requires additional include stdlib.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: François Andriot " --- tdeioslave/ConfigureChecks.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tdeioslave/ConfigureChecks.cmake b/tdeioslave/ConfigureChecks.cmake index 8f0783133..eed370833 100644 --- a/tdeioslave/ConfigureChecks.cmake +++ b/tdeioslave/ConfigureChecks.cmake @@ -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 )