From: Volker Lendecke Date: Mon, 1 May 2017 15:56:50 +0000 (+0200) Subject: pam_wrapper: Add PAM_STRERROR_CONST configure check X-Git-Tag: ldb-1.1.30~346 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dd0d2ee1dd210784420d79fcc5063eb81465d5de;p=thirdparty%2Fsamba.git pam_wrapper: Add PAM_STRERROR_CONST configure check Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/lib/pam_wrapper/wscript b/lib/pam_wrapper/wscript index 87181c3cbea..aacd1d76149 100644 --- a/lib/pam_wrapper/wscript +++ b/lib/pam_wrapper/wscript @@ -80,6 +80,13 @@ def configure(conf): 'int pam_prompt(const pam_handle_t *_pamh, int _style, char **_resp, const char *_fmt, ...)', define='HAVE_PAM_PROMPT_CONST', headers='stdio.h sys/types.h security/pam_appl.h security/pam_modules.h') + conf.CHECK_C_PROTOTYPE( + 'pam_strerror', + 'const char *pam_strerror(const pam_handle_t *pamh, int errnum)', + define='HAVE_PAM_STRERROR_CONST', + headers='''stdio.h sys/types.h security/pam_appl.h + security/pam_modules.h''') + # Find the absolute path to libpam.so.0 libpam_path = find_library(['libpam.so.0', 'libpam.so'], conf.env.STANDARD_LIBPATH) conf.DEFINE('PAM_LIBRARY', ('"%s"' % libpam_path ))