summaryrefslogtreecommitdiffstats
path: root/doc/configure.in
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-06-14 14:25:49 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-06-14 14:25:49 +0000
commite90e428e145251b72b6e0ea85444815f4ed80add (patch)
treeb68634dd137f8bb9fc6707bb5fafa00f316c4889 /doc/configure.in
parentThread iterator and libgjc support submitted too early. (diff)
downloadrtems-e90e428e145251b72b6e0ea85444815f4ed80add.tar.bz2
Patch rtemsdoc-4.5.0-rc-13-cvs.diff.gz from Ralf Corsepius
<corsepiu@faw.uni-ulm.de> which: * should fix the building rtemsdoc outside of the sourcetree with relative srcdir issue * adds --enable-papersize=[letter|a4|]
Diffstat (limited to '')
-rw-r--r--doc/configure.in30
1 files changed, 28 insertions, 2 deletions
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)