diff mbox

configure.ac: enable the GSSAPI by default

Message ID 1386613948-28789-1-git-send-email-steved@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Steve Dickson Dec. 9, 2013, 6:32 p.m. UTC
This changes GSSAPI support to be enabled by default.
To disable the support use --disable-gssapi

Signed-off-by: Steve Dickson <steved@redhat.com>
---
 configure.ac | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

Comments

Steve Dickson Dec. 9, 2013, 9 p.m. UTC | #1
On 09/12/13 13:32, Steve Dickson wrote:
> This changes GSSAPI support to be enabled by default.
> To disable the support use --disable-gssapi
> 
> Signed-off-by: Steve Dickson <steved@redhat.com>
Committed...

steved.

> ---
>  configure.ac | 14 +++++++-------
>  1 file changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index c95df38..b9906dc 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -5,12 +5,11 @@ AM_MAINTAINER_MODE
>  AC_CONFIG_SRCDIR([src/auth_des.c])
>  AC_CONFIG_MACRO_DIR([m4])
>  
> -AC_ARG_ENABLE(gss,[  --enable-gss            Turn on gss api], [case "${enableval}" in
> -        yes) gss=true ;;
> -        no)  gss=false ;;
> -        *) AC_MSG_ERROR(bad value ${enableval} for --enable-gss) ;;
> -      esac],[gss=false])
> -AM_CONDITIONAL(GSS, test x$gss = xtrue)
> +AC_ARG_ENABLE(gssapi,
> +	[AC_HELP_STRING([--disable-gssapi], [Disable GSSAPI support @<:@default=no@:>@])],
> +      [],[enable_gssapi=yes])
> +AM_CONDITIONAL(GSS, test x$enable_gssapi = xyes)
> +
>  AC_ARG_WITH(gssglue,
>  		[  --with-gssglue        Use libgssglue],
>  		 [case "${enableval}" in
> @@ -20,7 +19,8 @@ AC_ARG_WITH(gssglue,
>  		  esac],
>  		[gssglue=false])
>  AM_CONDITIONAL(USEGSSGLUE, test x$gssglue = xtrue)
> -if test x$gss = xtrue; then
> +
> +if test x$enable_gssapi = xyes; then
>  	if test x$gssglue = xtrue; then
>  		PKG_CHECK_MODULES(GSSAPI, libgssglue, [],
>  		AC_MSG_ERROR([Unable to locate information required to use libgssglue.]))
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/configure.ac b/configure.ac
index c95df38..b9906dc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5,12 +5,11 @@  AM_MAINTAINER_MODE
 AC_CONFIG_SRCDIR([src/auth_des.c])
 AC_CONFIG_MACRO_DIR([m4])
 
-AC_ARG_ENABLE(gss,[  --enable-gss            Turn on gss api], [case "${enableval}" in
-        yes) gss=true ;;
-        no)  gss=false ;;
-        *) AC_MSG_ERROR(bad value ${enableval} for --enable-gss) ;;
-      esac],[gss=false])
-AM_CONDITIONAL(GSS, test x$gss = xtrue)
+AC_ARG_ENABLE(gssapi,
+	[AC_HELP_STRING([--disable-gssapi], [Disable GSSAPI support @<:@default=no@:>@])],
+      [],[enable_gssapi=yes])
+AM_CONDITIONAL(GSS, test x$enable_gssapi = xyes)
+
 AC_ARG_WITH(gssglue,
 		[  --with-gssglue        Use libgssglue],
 		 [case "${enableval}" in
@@ -20,7 +19,8 @@  AC_ARG_WITH(gssglue,
 		  esac],
 		[gssglue=false])
 AM_CONDITIONAL(USEGSSGLUE, test x$gssglue = xtrue)
-if test x$gss = xtrue; then
+
+if test x$enable_gssapi = xyes; then
 	if test x$gssglue = xtrue; then
 		PKG_CHECK_MODULES(GSSAPI, libgssglue, [],
 		AC_MSG_ERROR([Unable to locate information required to use libgssglue.]))