From: Alon Bar-Lev Date: Tue, 26 Jun 2012 14:03:26 +0000 (+0300) Subject: build: plugins: set defaults based on platform X-Git-Tag: v2.3_alpha2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a57e201223f7265af0a56859b00a594b0d98f5b;p=thirdparty%2Fopenvpn.git build: plugins: set defaults based on platform 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 --- diff --git a/configure.ac b/configure.ac index db19d4ad9..d3d974dcc 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(