From 5a57e201223f7265af0a56859b00a594b0d98f5b Mon Sep 17 00:00:00 2001 From: Alon Bar-Lev Date: Tue, 26 Jun 2012 17:03:26 +0300 Subject: build: plugins: set defaults based on platform MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pam cannot be compiled on OpenBSD and Windows. down-root cannot be compiled on Windows. Signed-off-by: Alon Bar-Lev Acked-by: Gert Doering Acked-by: Samuli Seppänen Message-Id: 1340719406-12157-1-git-send-email-alon.barlev@gmail.com URL: http://article.gmane.org/gmane.network.openvpn.devel/6795 Signed-off-by: David Sommerseth --- configure.ac | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index db19d4a..d3d974d 100644 --- a/configure.ac +++ b/configure.ac @@ -195,16 +195,27 @@ AC_ARG_ENABLE( AC_ARG_ENABLE( [plugin-auth-pam], - [AS_HELP_STRING([--disable-plugin-auth-pam], [disable auth-pam plugin @<:@default=yes@:>@])], + [AS_HELP_STRING([--disable-plugin-auth-pam], [disable auth-pam plugin @<:@default=platform specific@:>@])], , - [enable_plugin_auth_pam="yes"] + [ + case "$host" in + *-*-openbsd*) enable_plugin_auth_pam="no";; + *-mingw*) enable_plugin_auth_pam="no";; + *) enable_plugin_auth_pam="yes";; + esac + ] ) AC_ARG_ENABLE( [plugin-down-root], - [AS_HELP_STRING([--disable-plugin-down-root], [disable down-root plugin @<:@default=yes@:>@])], + [AS_HELP_STRING([--disable-plugin-down-root], [disable down-root plugin @<:@default=platform specific@:>@])], , - [enable_plugin_down_root="yes"] + [ + case "$host" in + *-mingw*) enable_plugin_down_root="no";; + *) enable_plugin_down_root="yes";; + esac + ] ) AC_ARG_ENABLE( -- cgit