r20663: Do not install smbmount man page if we didn't called configure
authorLars Müller <lmuelle@samba.org>
Wed, 10 Jan 2007 19:16:59 +0000 (19:16 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:17:01 +0000 (12:17 -0500)
--with-smbmount.
(This used to be commit ee12348cf1e93d0e75714f3883bfea6525797dc1)

source3/Makefile.in
source3/configure.in
source3/script/installman.sh

index a81d203f6cb014fcdaa95e2c32bdd75ba6ce6054..31e01b6fb6bbad4cbc1b16bed03383a1a778839c 100644 (file)
@@ -163,7 +163,7 @@ TORTURE_PROGS = bin/smbtorture@EXEEXT@ bin/msgtest@EXEEXT@ \
        bin/locktest2@EXEEXT@ bin/nsstest@EXEEXT@ bin/vfstest@EXEEXT@ \
        bin/pdbtest@EXEEXT@ bin/talloctort@EXEEXT@ bin/replacetort@EXEEXT@
 
-BIN_PROGS = $(BIN_PROGS1) $(BIN_PROGS2) $(BIN_PROGS3) $(BIN_PROGS4) @EXTRA_BIN_PROGS@
+BIN_PROGS = $(BIN_PROGS1) $(BIN_PROGS2) $(BIN_PROGS3) $(BIN_PROGS4) @EXTRA_BIN_PROGS@ @SMBMOUNT_PROGS@
 
 EVERYTHING_PROGS = bin/debug2html@EXEEXT@ bin/smbfilter@EXEEXT@ \
        bin/talloctort@EXEEXT@ bin/replacetort@EXEEXT@ \
@@ -1714,7 +1714,8 @@ revert:
        @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
 
 installman: installdirs
-       @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@"
+       @$(SHELL) SMBMOUNT_PROGS="@SMBMOUNT_PROGS@" \
+               $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@"
 
 .PHONY: showlayout
 
index b40e8aa8c04625564dcd0b8a90b2f96b833ee703..83d3c3dccc38cc50a09f328642f4f64fddabde04 100644 (file)
@@ -302,6 +302,7 @@ AC_SUBST(SMBWRAPPER)
 AC_SUBST(SMBWRAP_OBJS)
 AC_SUBST(SMBWRAP_INC)
 AC_SUBST(EXTRA_BIN_PROGS)
+AC_SUBST(SMBMOUNT_PROGS)
 AC_SUBST(CIFSMOUNT_PROGS)
 AC_SUBST(INSTALL_CIFSMOUNT)
 AC_SUBST(UNINSTALL_CIFSMOUNT)
@@ -4016,7 +4017,7 @@ AC_ARG_WITH(smbmount,
        *linux*)
                AC_MSG_RESULT(yes)
                AC_DEFINE(WITH_SMBMOUNT,1,[Whether to build smbmount])
-               EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/smbmount bin/smbmnt bin/smbumount"
+               SMBMOUNT_PROGS="bin/smbmount bin/smbmnt bin/smbumount"
                ;;
        *)
                AC_MSG_ERROR(not on a linux system!)
index 869ce6ee38edb293d55b862ad0cfae2208f9f8fc..b879c79022f9d70339fd3522bcb805e8a47e1cc8 100755 (executable)
@@ -49,6 +49,7 @@ for lang in $langs; do
            # Check if this man page if required by the configured feature set
            case "${MP_BASENAME}" in
                smbsh.1) test -z "${SMBWRAPPER}" && continue ;;
+               smbmount.8) test -z "${SMBMOUNT_PROGS}" && continue ;;
                *) ;;
            esac