summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2012-02-03 22:18:42 +0100
committerJakub Hrozek <jhrozek@redhat.com>2012-02-07 00:26:57 +0100
commit34c78b745eb349eef2b0f13ef2b722632aebe619 (patch)
treef3fa92e04f3616ae1c7f4f4381a83a6b3e6de23b /src
parentc7919a4fe41133cc466aa3d9431bfceee5784e7b (diff)
downloadsssd-34c78b745eb349eef2b0f13ef2b722632aebe619.tar.gz
sssd-34c78b745eb349eef2b0f13ef2b722632aebe619.tar.bz2
sssd-34c78b745eb349eef2b0f13ef2b722632aebe619.zip
BUILD: Introduce a --with-ssh config option
Diffstat (limited to 'src')
-rw-r--r--src/conf_macros.m422
1 files changed, 22 insertions, 0 deletions
diff --git a/src/conf_macros.m4 b/src/conf_macros.m4
index 05500b27..c79692ef 100644
--- a/src/conf_macros.m4
+++ b/src/conf_macros.m4
@@ -445,3 +445,25 @@ AC_DEFUN([WITH_AUTOFS],
fi
AM_CONDITIONAL([BUILD_AUTOFS], [test x"$with_autofs" = xyes])
])
+
+AC_DEFUN([WITH_SSH],
+ [ AC_ARG_WITH([ssh],
+ [AC_HELP_STRING([--with-ssh],
+ [Whether to build with SSH support [no]]
+ )
+ ],
+ [with_ssh=$withval],
+ )
+
+ dnl Remove when SSH goes out of experimental
+ if test x"$enable_all_experimental_features" = xyes; then
+ if test x"$with_ssh" != xno; then
+ with_ssh=yes
+ fi
+ fi
+
+ if test x"$with_ssh" = xyes; then
+ AC_DEFINE(BUILD_SSH, 1, [whether to build with SSH support])
+ fi
+ AM_CONDITIONAL([BUILD_SSH], [test x"$with_ssh" = xyes])
+ ])