LATEX = @LATEX@
DVIPS = @DVIPS@
HTMLDOC = @HTMLDOC@
+PNGTOPNM = @PNGTOPNM@
+PNMTOPS = @PNMTOPS@
+XMLTO = @XMLTO@
SRCDIR = @srcdir@
MANDIR=../manpages
HTMLDIR=../htmldocs
MANPROJDOC = manpages
PROJDOC = projdoc
+IMAGEPROJDIR = $(PROJDOC)/imagefiles
DEVDOC = devdoc
-XMLTO = @XMLTO@
SMBDOTCONFDOC = smbdotconf
PSDIR = ..
PDFDIR = ..
MANPAGES=$(patsubst %,$(MANDIR)/%,$(MANPAGES_NAMES))
MANPAGES_HTML=$(patsubst %,$(HTMLDIR)/%.html,$(MANPAGES_NAMES))
+PROJDOC_IMAGES_PNG = $(wildcard $(IMAGEPROJDIR)/*.png)
+PROJDOC_IMAGES_EPS=$(patsubst %.png,%.eps,$(wildcard $(IMAGEPROJDIR)/*.png))
PROJDOC_DEPS = $(PROJDOC)/*.xml $(PROJDOC)/attributions.xml
DEVDOC_DEPS = $(DEVDOC)/*.xml $(DEVDOC)/attributions.xml
@$(XSLTPROC) --output $@ xslt/latex.xsl $<
# Adobe PDF files
-$(PDFDIR)/Samba-HOWTO-Collection.pdf: samba-doc.tex
+$(PDFDIR)/Samba-HOWTO-Collection.pdf: samba-doc.tex $(PROJDOC_IMAGES_PNG)
@echo "Building LaTeX sources via $(PDFLATEX)..."
@$(PDFLATEX) $< | grep 'Rerun to get cross-references right' && \
$(PDFLATEX) $< | grep 'Rerun to get cross-references right' && \
@echo "done"
@mv dev-doc.pdf $@
+epsimages: $(PROJDOC_IMAGES_EPS)
+
# DVI files
-$(DVIDIR)/Samba-HOWTO-Collection.dvi: samba-doc.tex
+$(DVIDIR)/Samba-HOWTO-Collection.dvi: samba-doc.tex $(PROJDOC_IMAGES_EPS)
@echo "Building LaTeX sources via $(LATEX)..."
@$(LATEX) $< 2>&1 | grep 'Rerun to get cross-references right' && \
$(LATEX) $< 2>&1 | grep 'Rerun to get cross-references right' && \
@echo "done"
@mv dev-doc.dvi $@
+$(IMAGEPROJDIR)/%.eps: $(IMAGEPROJDIR)/%.png
+ @$(PNGTOPNM) $< | $(PNMTOPS) > $@
+
# PostScript files
$(PSDIR)/Samba-HOWTO-Collection.ps: $(DVIDIR)/Samba-HOWTO-Collection.dvi
$(DVIPS) -o $@ $<
CSS: $(HTMLDIR) xslt/html/samba.css
@cp xslt/html/samba.css $(HTMLDIR)/
-$(HTMLDIR)/Samba-HOWTO-Collection.html: $(PROJDOC)/samba-doc.xml $(PROJDOC_DEPS)
+$(HTMLDIR)/Samba-HOWTO-Collection.html: $(PROJDOC)/samba-doc.xml $(PROJDOC_DEPS) $(PROJDOC_IMAGES_PNG)
@$(XSLTPROC) --output $@ xslt/html.xsl $<
$(HTMLDIR)/Samba-Developers-Guide.html: $(DEVDOC)/dev-doc.xml $(DEVDOC_DEPS)
@rm -f $(MANPAGES) $(MANPAGES_HTML) $(HTMLDIR)/*.html $(HTMLDIR)/*.css $(TXTDIR)/*.txt $(PSDIR)/*.ps $(PDFDIR)/*.pdf
@rm -f $(MANPROJDOC)/smb.conf.5.xml $(SMBDOTCONFDOC)/parameters.*.xml
@rm -f samba-doc.* dev-doc.* $(PROJDOC)/attributions.xml
+ @rm -f $(IMAGEPROJDIR)/*.eps
echo "$ac_t""no" 1>&6
fi
+# Extract the first word of "pngtopnm", so it can be a program name with args.
+set dummy pngtopnm; ac_word=$2
+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+echo "configure:711: checking for $ac_word" >&5
+if eval "test \"`echo '$''{'ac_cv_path_PNGTOPNM'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ case "$PNGTOPNM" in
+ /*)
+ ac_cv_path_PNGTOPNM="$PNGTOPNM" # Let the user override the test with a path.
+ ;;
+ ?:/*)
+ ac_cv_path_PNGTOPNM="$PNGTOPNM" # Let the user override the test with a dos path.
+ ;;
+ *)
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ ac_dummy="$PATH"
+ for ac_dir in $ac_dummy; do
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/$ac_word; then
+ ac_cv_path_PNGTOPNM="$ac_dir/$ac_word"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+ ;;
+esac
+fi
+PNGTOPNM="$ac_cv_path_PNGTOPNM"
+if test -n "$PNGTOPNM"; then
+ echo "$ac_t""$PNGTOPNM" 1>&6
+else
+ echo "$ac_t""no" 1>&6
+fi
+
+# Extract the first word of "pnmtops", so it can be a program name with args.
+set dummy pnmtops; ac_word=$2
+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+echo "configure:746: checking for $ac_word" >&5
+if eval "test \"`echo '$''{'ac_cv_path_PNMTOPS'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ case "$PNMTOPS" in
+ /*)
+ ac_cv_path_PNMTOPS="$PNMTOPS" # Let the user override the test with a path.
+ ;;
+ ?:/*)
+ ac_cv_path_PNMTOPS="$PNMTOPS" # Let the user override the test with a dos path.
+ ;;
+ *)
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ ac_dummy="$PATH"
+ for ac_dir in $ac_dummy; do
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/$ac_word; then
+ ac_cv_path_PNMTOPS="$ac_dir/$ac_word"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+ ;;
+esac
+fi
+PNMTOPS="$ac_cv_path_PNMTOPS"
+if test -n "$PNMTOPS"; then
+ echo "$ac_t""$PNMTOPS" 1>&6
+else
+ echo "$ac_t""no" 1>&6
+fi
+
DOC_BUILD_DATE=`date '+%d-%m-%Y'`
s%@XMLTO@%$XMLTO%g
s%@LATEX@%$LATEX%g
s%@DVIPS@%$DVIPS%g
+s%@PNGTOPNM@%$PNGTOPNM%g
+s%@PNMTOPS@%$PNMTOPS%g
s%@DOC_BUILD_DATE@%$DOC_BUILD_DATE%g
CEOF
AC_PATH_PROG(XMLTO, xmlto)
AC_PATH_PROG(LATEX, latex)
AC_PATH_PROG(DVIPS, dvips)
+AC_PATH_PROG(PNGTOPNM, pngtopnm)
+AC_PATH_PROG(PNMTOPS, pnmtops)
DOC_BUILD_DATE=`date '+%d-%m-%Y'`
AC_SUBST(DOC_BUILD_DATE)
<surname>SAMBA Team</surname>
</author>
<address><email>samba@samba.org</email></address>
-</bookinfo>
-
-<dedication>
-<title>Abstract</title>
-
+<abstract>
<para>
-<emphasis>Last Update</emphasis> : Mon Sep 30 15:23:53 CDT 2002
+<emphasis>Last Update</emphasis> : Fri Jun 6 00:45:54 CEST 2003
</para>
<para>
url="http://www.fsf.org/licenses/gpl.txt">http://www.fsf.org/licenses/gpl.txt</ulink>
</para>
-</dedication>
+</abstract>
<legalnotice>
</formalpara>
</legalnotice>
+</bookinfo>
<!-- Contents -->
<toc/>
<para>
<figure><title>Windows Printing to a local Printer</title>
-<graphic fileref="projdoc/imagefiles/1small.png"/>
+<mediaobject>
+ <imageobject role="latex"><imagedata fileref="projdoc/imagefiles/1small"/></imageobject>
+ <imageobject><imagedata fileref="projdoc/imagefiles/1small.png"/></imageobject>
+</mediaobject>
</figure>
</para>
</sect2>
<para>
<figure><title>Printing to a Postscript Printer</title>
-<graphic fileref="projdoc/imagefiles/2small.png"/>
+<mediaobject>
+ <imageobject role="latex"><imagedata fileref="projdoc/imagefiles/2small"/></imageobject>
+ <imageobject><imagedata fileref="projdoc/imagefiles/2small.png"/></imageobject>
+</mediaobject>
</figure>
</para>
<para>
<figure><title>Ghostscript as a RIP for non-postscript printers</title>
-<graphic fileref="projdoc/imagefiles/3small.png"/>
+<mediaobject>
+ <imageobject role="latex"><imagedata fileref="projdoc/imagefiles/3small"/></imageobject>
+ <imageobject><imagedata fileref="projdoc/imagefiles/3small.png"/></imageobject>
+</mediaobject>
</figure>
</para>
<para>
<figure><title>Prefiltering in CUPS to form Postscript</title>
-<graphic fileref="projdoc/imagefiles/4small.png"/>
+<mediaobject>
+ <imageobject role="latex"><imagedata fileref="projdoc/imagefiles/4small"/></imageobject>
+ <imageobject><imagedata fileref="projdoc/imagefiles/4small.png"/></imageobject>
+</mediaobject>
</figure>
</para>
</sect2>
<para>
<figure><title>Adding Device-specific Print Options</title>
-<graphic fileref="projdoc/imagefiles/5small.png"/>
+<mediaobject>
+ <imageobject role="latex"><imagedata fileref="projdoc/imagefiles/5small"/></imageobject>
+ <imageobject><imagedata fileref="projdoc/imagefiles/5small.png"/></imageobject>
+</mediaobject>
</figure>
</para>
<para>
<figure><title>Postscript to intermediate Raster format</title>
-<graphic fileref="projdoc/imagefiles/6small.png"/>
+<mediaobject>
+ <imageobject role="latex"><imagedata fileref="projdoc/imagefiles/6small"/></imageobject>
+ <imageobject><imagedata fileref="projdoc/imagefiles/6small.png"/></imageobject>
+</mediaobject>
</figure>
</para>
<para>
<figure><title>CUPS-raster production using Ghostscript</title>
-<graphic fileref="projdoc/imagefiles/7small.png"/>
+<mediaobject>
+ <imageobject role="latex"><imagedata fileref="projdoc/imagefiles/7small"/></imageobject>
+ <imageobject><imagedata fileref="projdoc/imagefiles/7small.png"/></imageobject>
+</mediaobject>
</figure>
</para>
<para>
<figure><title>Image format to CUPS-raster format conversion</title>
-<graphic fileref="projdoc/imagefiles/8small.png"/>
+<mediaobject>
+ <imageobject role="latex"><imagedata fileref="projdoc/imagefiles/8small"/></imageobject>
+ <imageobject><imagedata fileref="projdoc/imagefiles/8small.png"/></imageobject>
+</mediaobject>
</figure>
</para>
<para>
<figure><title>Raster to Printer Specific formats</title>
-<graphic fileref="projdoc/imagefiles/9small.png"/>
+<mediaobject>
+ <imageobject role="latex"><imagedata fileref="projdoc/imagefiles/9small"/></imageobject>
+ <imageobject><imagedata fileref="projdoc/imagefiles/9small.png"/></imageobject>
+</mediaobject>
</figure>
</para>
</sect2>
<para>
<figure><title>cupsomatic/foomatic processing versus Native CUPS</title>
-<graphic fileref="projdoc/imagefiles/10small.png"/>
+<mediaobject>
+ <imageobject role="latex"><imagedata fileref="projdoc/imagefiles/10small"/></imageobject>
+ <imageobject><imagedata fileref="projdoc/imagefiles/10small.png"/></imageobject>
+</mediaobject>
</figure>
</para>
<para>
<figure><title>Print Driver execution on the Client</title>
-<graphic fileref="projdoc/imagefiles/11small.png"/>
+<mediaobject>
+ <imageobject role="latex"><imagedata fileref="projdoc/imagefiles/11small"/></imageobject>
+ <imageobject><imagedata fileref="projdoc/imagefiles/11small.png"/></imageobject>
+</mediaobject>
</figure>
</para>
</sect2>
<para>
<figure><title>Print Driver execution on the Server</title>
-<graphic fileref="projdoc/imagefiles/12small.png"/>
+<mediaobject>
+ <imageobject role="latex"><imagedata fileref="projdoc/imagefiles/12small"/></imageobject>
+ <imageobject><imagedata fileref="projdoc/imagefiles/12small.png"/></imageobject>
+</mediaobject>
</figure>
</para>
<para>
<figure><title>Printing via CUPS/samba server</title>
-<graphic fileref="projdoc/imagefiles/13small.png"/>
+<mediaobject>
+ <imageobject role="latex"><imagedata fileref="projdoc/imagefiles/13small"/></imageobject>
+ <imageobject><imagedata fileref="projdoc/imagefiles/13small.png"/></imageobject>
+</mediaobject>
</figure>
</para>
</sect2>
<para>
<figure><title>cupsaddsmb flowchart</title>
-<graphic fileref="projdoc/imagefiles/14small.png"/>
+<mediaobject>
+ <imageobject role="latex"><imagedata fileref="projdoc/imagefiles/1small"/></imageobject>
+ <imageobject><imagedata fileref="projdoc/imagefiles/1small.png"/></imageobject>
+</mediaobject>
</figure>
</para>
</sect2>
<sect3>
<title>Fourth Step: Put all required Driver Files into Samba's
-<parameter>[print$]</parameter></title>
+[print$]</title>
<para><screen>
<para>
<figure><title>CUPS Printing Overview</title>
-<graphic fileref="projdoc/imagefiles/a_small.png"/>
+<mediaobject>
+ <imageobject role="latex"><imagedata fileref="projdoc/imagefiles/a_small"/></imageobject>
+ <imageobject><imagedata fileref="projdoc/imagefiles/a_small.png"/></imageobject>
+</mediaobject>
</figure>
</para>
</sect2>
</sect1>
<sect1>
-<title>Samba performance problem due changing kernel (2.4.20 Linux kernel)</title>
+<title>Samba performance problem due changing kernel</title>
<para>
Hi everyone. I am running Gentoo on my server and samba 2.2.8a. Recently