summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-08-01 02:30:33 +0000
committerTim Potter <tpot@samba.org>2001-08-01 02:30:33 +0000
commit4b1310c307f50aa1ab7f116dfe385ab96423de65 (patch)
tree4c8863b63c2941eb3b3eac0cee8ac9168f7dc910
parenta0cd01e03ce84c2baa19c68c1ad4a68e137deaf8 (diff)
downloadsamba-4b1310c307f50aa1ab7f116dfe385ab96423de65.tar.gz
samba-4b1310c307f50aa1ab7f116dfe385ab96423de65.tar.bz2
samba-4b1310c307f50aa1ab7f116dfe385ab96423de65.zip
Rewrite of winbind autoconf fragment.
- can now use --with-winbind to force compilation on systems that are not linux or solaris (-: - don't compile winbind if the unix domain socket test fails - compile right number of bits if --with-pam used (This used to be commit d77295ee701ecad4d563efe0632bea81b69f78a0)
-rw-r--r--source3/configure.in67
1 files changed, 50 insertions, 17 deletions
diff --git a/source3/configure.in b/source3/configure.in
index 4e6c2fc28e..09fa36b57d 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -2310,47 +2310,80 @@ samba_cv_HAVE_ACL_GET_PERM_NP=yes,samba_cv_HAVE_ACL_GET_PERM_NP=no)])
)
#################################################
-# check whether winbind is supported on this platform
+# Check whether winbind is supported on this platform. If so we need to
+# build and install client programs (WINBIND_TARGETS), sbin programs
+# (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
-AC_MSG_CHECKING(whether to compile winbind)
+AC_MSG_CHECKING(whether to build winbind)
+
+# Initially, the value of $host_os decides whether winbind is supported
case "$host_os" in
*linux*|*solaris*)
- WINBIND_TARGETS="\$(WINBIND_PROGS)"
- WINBIND_STARGETS="\$(WINBIND_SPROGS)"
- case "$with_pam" in
- yes)
- WINBIND_STARGETS="$WINBIND_STARGETS \$(WINBIND_PAM_PROGS)"
- ;;
- *)
- esac
+ HAVE_WINBIND=yes
;;
*)
+ HAVE_WINBIND=no
winbind_no_reason=", unsupported on $host_os"
;;
esac
+# Check the setting of --with-winbindd
+
AC_ARG_WITH(winbind,
-[ --with-winbind Build winbind library (default, if supported by OS)
- --without-winbind Don't build winbind library],
+[ --with-winbind Build winbind (default, if supported by OS)
+ --without-winbind Don't build winbind],
[
case "$withval" in
+ yes)
+ HAVE_WINBIND=yes
+ ;;
no)
- WINBIND_TARGETS=""
- WINBIND_STARGETS=""
+ HAVE_WINBIND=no
winbind_reason=""
;;
esac ],
)
-if test x"$WINBIND_TARGETS" = x; then
- AC_MSG_RESULT(no$winbind_no_reason)
-else
+# We need unix domain sockets for winbind
+
+if test x"$HAVE_WINBIND" = x"yes"; then
+ if test x"$samba_cv_unixsocket" = x"no"; then
+ winbind_no_reason=", no unix domain socket support on $host_os"
+ HAVE_WINBIND=no
+ fi
+fi
+
+# Display test results
+
+if test x"$HAVE_WINBIND" = x"yes"; then
+
AC_MSG_RESULT(yes)
+
+ WINBIND_TARGETS="\$(WINBIND_PROGS)"
+ WINBIND_STARGETS="\$(WINBIND_SPROGS)"
+ WINBIND_LTARGETS="\$(WINBIND_LPROGS)"
+
+ case "$with_pam" in
+ yes)
+ WINBIND_PAM_PROGS="\$(WINBIND_PAM_PROGS)"
+ ;;
+ esac
+else
+ AC_MSG_RESULT(no$winbind_no_reason)
+
+ WINBIND_TARGETS=""
+ WINBIND_STARGETS=""
+ WINBIND_LTARGETS=""
+ WINBIND_PAM_PROGS=""
fi
+# Substitution time!
+
AC_SUBST(WINBIND_TARGETS)
AC_SUBST(WINBIND_STARGETS)
+AC_SUBST(WINBIND_LTARGETS)
+AC_SUBST(WINBIND_PAM_PROGS)
#################################################
# final configure stuff