From e90e428e145251b72b6e0ea85444815f4ed80add Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 14 Jun 2000 14:25:49 +0000 Subject: Patch rtemsdoc-4.5.0-rc-13-cvs.diff.gz from Ralf Corsepius which: * should fix the building rtemsdoc outside of the sourcetree with relative srcdir issue * adds --enable-papersize=[letter|a4|] --- doc/configure.in | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) (limited to 'doc/configure.in') diff --git a/doc/configure.in b/doc/configure.in index 6426b1880c..7087ec0873 100644 --- a/doc/configure.in +++ b/doc/configure.in @@ -49,6 +49,19 @@ esac], [enable_ps="yes"] ) +AC_ARG_ENABLE(papersize, +[ --enable-papersize=[letter|a4|] set papersize [default:system defaults]], +[case $enableval in +a4) papersize=a4 ;; +letter) papersize=letter ;; +yes) papersize= ;; +no) papersize= ;; +*) AC_MSG_ERROR([Invalid papersize]) +;; +esac], +[papersize=] +) + htmldir='$(pkgdatadir)/html' AC_SUBST(htmldir) @@ -63,10 +76,8 @@ AC_SUBST(TEXI2WWW) AC_CHECK_PROGS(GS,gs) AM_CONDITIONAL(GS,test x"$GS" != x"") -# TEXI2DVI='$(PERL) $(top_srcdir)/tools/texi2www/texi2dvi' AC_CHECK_PROGS(TEXI2DVI,texi2dvi) AM_CONDITIONAL(TEXI2DVI,test x"$TEXI2DVI" != x"") - if test "$enable_pdf" = "yes"; then AC_CHECK_PROGS(EPSTOPDF,epstopdf) AM_CONDITIONAL(EPSTOPDF,test x"$EPSTOPDF" != x"") @@ -92,6 +103,21 @@ AM_CONDITIONAL(USE_PDF, && test x"$TEXI2DVI" != x"" \ && test x"$TEXI2PDF" != x"" ) +case $papersize in +a4) + TEXI2DVI="${TEXI2DVI} --texinfo=@afourpaper" + TEXI2PDF="${TEXI2PDF} --texinfo=@afourpaper" + DVIPS="dvips -t a4" +;; +letter) + DVIPS="dvips -t letter" + ;; +*) + DVIPS="dvips" +;; +esac +AC_SUBST(DVIPS) + BMENU2='$(top_builddir)/tools/bmenu/bmenu2' AC_SUBST(BMENU2) -- cgit v1.2.3