1#
2# Check if server has support for loading plugins
3#
4if (`SELECT @@have_dynamic_loading != 'YES'`) {
5  --skip auth_pam_compat plugin requires dynamic loading
6}
7
8#
9# Check if the variable AUTH_PAM_COMPAT is set
10#
11if (!$AUTH_PAM_COMPAT) {
12  --skip Could not find library for auth_pam_compat plugin, see the file plugin.defs
13}
14
15#
16# Check if --plugin-dir was setup for auth_pam_compat
17#
18if (`SELECT CONCAT('--plugin-dir=', REPLACE(@@plugin_dir, '\\\\', '/')) != '$AUTH_PAM_COMPAT_OPT/'`) {
19  --skip auth_pam_compat plugin requires that --plugin-dir is set to the auth_pam_compat plugin dir
20}
21enable_query_log;
22