diff options
author | Igor Mammedov <niallain@gmail.com> | 2007-12-05 18:21:29 +0300 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2007-12-05 14:33:21 -0500 |
commit | f802db70b8675df43fba892986203bbeac2d02f8 (patch) | |
tree | 4c767003fbfecc5aee6ba2ca3b46c9084aa33c1d /source/configure.in | |
parent | 487ab6e75e8b8d15f2a37e4ba4129eb2475d4c86 (diff) | |
download | samba-f802db70b8675df43fba892986203bbeac2d02f8.tar.gz samba-f802db70b8675df43fba892986203bbeac2d02f8.tar.xz samba-f802db70b8675df43fba892986203bbeac2d02f8.zip |
* Adds support for cifs.spnego helper into configure and Makefile.in
* Added checks for spnego prereq keyutils.h and kerberos in configure.in
Signed-off-by: Igor Mammedov <niallain@gmail.com>
Diffstat (limited to 'source/configure.in')
-rw-r--r-- | source/configure.in | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/source/configure.in b/source/configure.in index 8a945a295d3..4eea3313f9a 100644 --- a/source/configure.in +++ b/source/configure.in @@ -343,6 +343,9 @@ AC_SUBST(SMBMOUNT_PROGS) AC_SUBST(CIFSMOUNT_PROGS) AC_SUBST(INSTALL_CIFSMOUNT) AC_SUBST(UNINSTALL_CIFSMOUNT) +AC_SUBST(CIFSSPNEGO_PROGS) +AC_SUBST(INSTALL_CIFSSPNEGO) +AC_SUBST(UNINSTALL_CIFSSPNEGO) AC_SUBST(EXTRA_SBIN_PROGS) AC_SUBST(EXTRA_ALL_TARGETS) AC_SUBST(CONFIG_LIBS) @@ -4457,6 +4460,45 @@ AC_ARG_WITH(cifsmount, esac ] ) +################################################# +# check for cifs.spnego support +AC_CHECK_HEADERS([keyutils.h], [HAVE_KEYUTILS_H=1], [HAVE_KEYUTILS_H=0]) +CIFSSPNEGO_PROGS="" +INSTALL_CIFSSPNEGO="" +UNINSTALL_CIFSSPNEGO="" +AC_MSG_CHECKING(whether to build cifs.spnego) +AC_ARG_WITH(cifsspnego, +[ --with-cifsspnego Include cifs.spnego (Linux only) support (default=no)], +[ case "$withval" in + no) + AC_MSG_RESULT(no) + ;; + *) + case "$host_os" in + *linux*) + if test x"$use_ads" != x"yes"; then + AC_MSG_ERROR(ADS support should be enabled for building cifs.spnego) + elif test x"$HAVE_KEYUTILS_H" != "x1"; then + AC_MSG_ERROR(keyutils package is required for cifs.spnego) + else + AC_MSG_RESULT(yes) + AC_DEFINE(WITH_CIFSSPNEGO,1,[whether to build cifs.spnego]) + CIFSSPNEGO_PROGS="bin/cifs.spnego" + INSTALL_CIFSSPNEGO="installcifsspnego" + UNINSTALL_CIFSSPNEGO="uninstallcifsspnego" + fi + ;; + *) + AC_MSG_ERROR(not on a linux system!) + ;; + esac + ;; + esac ], +[ + AC_MSG_RESULT(no) + ] +) + ################################################# # Check for a PAM clear-text auth, accounts, password |