source: rtems/doc/configure.in @ 2ba8875

4.104.114.84.95
Last change on this file since 2ba8875 was 2ba8875, checked in by Joel Sherrill <joel.sherrill@…>, on 04/26/00 at 18:02:26

Patch rtemsdoc-4.5.0-rc-0.diff from Ralf Corsepius <corsepiu@…>
which contains the bulk of converting the documentation tree to automake
and GNU conventions. Comments follow:

This is the automake port of rtemsdoc.

To apply:

cvs co rtemsdoc
cd rtemsdoc
sh cvs-rm.sh
patch -p0 < rtemsdoc-4.5.0-rc-0.diff
sh cvs-add.sh

[Attention: cvs-rm.sh and cvs-add.sh directly modify cvs]

Known bugs:
1) src2html is not supported (yet? - Is this supposed to work?)
2) all *.pdf images now are generated on-the-fly, but not yet deleted
during "make distclean"
3) All supplements, including the templated ones, get build and
installed.
4) Building outside of the source tree is completely untested and very
likely does not work.
5) Make [ps|pdf] are not (yet) supported, make [dvi|info] are supported
by automake's default texinfo rules.

Fixing 2, 3 and 5 is almost trivial and needs to be done.
4) is a matter of testing and tool-properties, for now it is simply
untested.

General issues:

  • gif vs jpg vs png. I would recommend to replace all images with pngs to avoid potential copyright issues (gif) or lack in quality (jpg, jpg is good for real world photographs, but extremely poor on artificial images, graphs).
  • pdf images do net get placed correctly in pdf-documents.
  • texinfo: We now use a local copy of texinfo-4.0's texinfo.tex in texinfo/texinfo.tex for generating infos. However pdftex's system-wide texinfo.tex and pdftexinfo.tex are used for generating *.dvi, *.ps, *.pdf.
  • .cvsignore files still missing.
  • I have renamed the supplements filename not to use c_<supplement>, because automake seems to have problems with it.

Notes:

  • Again, I recommend not to put any generated files into CVS. Here, this comprises some *texi, all *.pdf and many *.html pages. Ie. I recommend to run make maintainer-clean before checking in any files.
  • To get building started, this should be sufficient: ./bootstrap ./configure cd tools; make; cd .. make info
  • To make a public tarball: [cvs co ; ./bootstrap] ./configure cd tools; make; cd .. make info [make clean] make dist

=> This generates a rtems-<version>.tar.gz in the toplevel directory.
=> Building the tools only is required after a "cvs co", but not in a

distribution tarball.

  • Property mode set to 100644
File size: 2.9 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2
3AC_PREREQ(2.13)
4
5AC_INIT(project.am)
6
7AM_INIT_AUTOMAKE(rtemsdoc,4.5.0-beta2,no)
8
9RTEMS_VERSION="$VERSION"
10AC_SUBST(RTEMS_VERSION)
11
12RTEMS_RELEASE="4.5.0"
13AC_SUBST(RTEMS_RELEASE)
14
15AC_ARG_ENABLE(html,
16[  --disable-html           disable html support ],
17[case $enableval in
18yes) ;;
19no) ;;
20*) AC_MSG_ERROR("invalid value");;
21esac],
22[enable_html="yes"]
23)
24
25AC_ARG_ENABLE(dvi,
26[  --disable-dvi           disable dvi support ],
27[case $enableval in
28yes) ;;
29no) ;;
30*) AC_MSG_ERROR("invalid value");;
31esac],
32[enable_dvi="yes"]
33)
34
35AC_ARG_ENABLE(pdf,
36[  --disable-pdf           disable pdf support ],
37[case $enableval in
38yes) ;;
39no) ;;
40*) AC_MSG_ERROR("invalid value");;
41esac],
42[enable_pdf="yes"]
43)
44
45AC_ARG_ENABLE(ps,
46[  --disable-ps            disable ps support ],
47[case $enableval in
48yes) ;;
49no) ;;
50*) AC_MSG_ERROR("invalid value");;
51esac],
52[enable_ps="yes"]
53)
54
55htmldir='$(pkgdatadir)/html'
56AC_SUBST(htmldir)
57
58dnl Checks for programs.
59AC_PROG_LN_S
60
61AC_CHECK_PROGS(PERL,perl)
62
63TEXI2WWW='$(PERL) $(top_srcdir)/tools/texi2www/texi2www'
64AC_SUBST(TEXI2WWW)
65
66AC_CHECK_PROGS(GS,gs)
67AM_CONDITIONAL(GS,test x"$GS" != x"")
68
69# TEXI2DVI='$(PERL) $(top_srcdir)/tools/texi2www/texi2dvi'
70AC_CHECK_PROGS(TEXI2DVI,texi2dvi)
71AM_CONDITIONAL(TEXI2DVI,test x"$TEXI2DVI" != x"")
72
73if test "$enable_pdf" = "yes"; then
74  AC_CHECK_PROGS(EPSTOPDF,epstopdf)
75  AM_CONDITIONAL(EPSTOPDF,test x"$EPSTOPDF" != x"")
76
77  AC_CHECK_PROGS(TEXI2PDF,texi2pdf)
78  AM_CONDITIONAL(TEXI2PDF,test x"$TEXI2PDF" != x"")
79fi
80
81AM_CONDITIONAL(USE_HTML,
82  test "$enable_html" = "yes"  \
83     && test x"PERL" != x"" )
84
85AM_CONDITIONAL(USE_DVI,
86  test "$enable_dvi" = "yes" \
87    && test x"$TEXI2DVI" != x"" )
88
89AM_CONDITIONAL(USE_PS,
90  test "$enable_ps" = "yes" \
91    && test x"$TEXI2DVI" != x"" )
92
93AM_CONDITIONAL(USE_PDF,
94  test "$enable_pdf" = "yes" \
95    && test x"$TEXI2DVI" != x"" \
96    && test x"$TEXI2PDF" != x"" )
97
98AM_CONDITIONAL(USE_EXP, test x=y )
99
100BMENU='$(top_builddir)/tools/bmenu/bmenu'
101AC_SUBST(BMENU)
102
103dnl Checks for libraries.
104
105dnl Checks for header files.
106
107dnl Checks for typedefs, structures, and compiler characteristics.
108
109dnl Checks for library functions.
110
111AC_CONFIG_SUBDIRS(tools)
112
113AC_OUTPUT(
114Makefile
115rtems_header.html
116rtems_footer.html
117rtems_support.html
118index.html
119images/Makefile
120common/Makefile
121common/setup.texi
122FAQ/Makefile
123develenv/Makefile
124user/Makefile
125bsp_howto/Makefile
126started/Makefile
127started/pictures/Makefile
128porting/Makefile
129networking/Makefile
130posix_users/Makefile
131posix1003.1/Makefile
132filesystem/Makefile
133itron3.0/Makefile
134ada_user/Makefile
135started_ada/Makefile
136rtems_gdb/Makefile
137rgdb_specs/Makefile
138relnotes/Makefile
139new_chapters/Makefile
140supplements/Makefile
141supplements/hppa1_1/Makefile
142supplements/i386/Makefile
143supplements/i960/Makefile
144supplements/m68k/Makefile
145supplements/mips64orion/Makefile
146supplements/powerpc/Makefile
147supplements/sh/Makefile
148supplements/sparc/Makefile
149supplements/template/Makefile
150gnu_docs/Makefile
151src2html/Makefile
152)
Note: See TracBrowser for help on using the repository browser.