From 52108aa70c968d8a75adcbd66d8a88aaa3e1b0ad Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Thu, 23 Feb 2012 07:50:43 +0100 Subject: HAVE_STRNDUP check for pam plugin --- plugin/auth_pam/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugin') diff --git a/plugin/auth_pam/CMakeLists.txt b/plugin/auth_pam/CMakeLists.txt index 74ad76de78b..f75c2f01f06 100644 --- a/plugin/auth_pam/CMakeLists.txt +++ b/plugin/auth_pam/CMakeLists.txt @@ -1,6 +1,8 @@ INCLUDE (CheckIncludeFiles) +INCLUDE (CheckFunctionExists) CHECK_INCLUDE_FILES (security/pam_appl.h HAVE_PAM_APPL_H) +CHECK_FUNCTION_EXISTS (strndup HAVE_STRNDUP) IF(HAVE_PAM_APPL_H) MYSQL_ADD_PLUGIN(auth_pam auth_pam.c LINK_LIBRARIES pam MODULE_ONLY) -- cgit v1.2.1