source: rtems/doc/configure.ac @ f8e57718

4.115
Last change on this file since f8e57718 was abdeac2a, checked in by Joel Sherrill <joel.sherrill@…>, on 12/06/11 at 15:12:48

2011-12-06 Joel Sherrill <joel.sherrill@…>

PR 1793/doc

  • .cvsignore, Makefile.am, README, configure.ac, index.html.in, main.am, project.am, ada_user/.cvsignore, ada_user/ada_user.texi, ada_user/example.texi, bsp_howto/.cvsignore, bsp_howto/bsp_howto.texi, cpu_supplement/.cvsignore, cpu_supplement/cpu_supplement.texi, cpu_supplement/preface.texi, develenv/.cvsignore, develenv/develenv.texi, develenv/intro.texi, filesystem/.cvsignore, filesystem/filesystem.texi, filesystem/preface.texi, networking/.cvsignore, networking/networking.texi, networking/preface.texi, porting/.cvsignore, porting/porting.texi, porting/preface.texi, posix1003.1/.cvsignore, posix1003.1/posix1003_1.texi, posix_users/.cvsignore, posix_users/posix_users.texi, posix_users/preface.texi, shell/.cvsignore, shell/preface.texi, shell/shell.texi, started/.cvsignore, started/started.texi, user/.cvsignore, user/c_user.texi, user/dirstat.texi, user/example.texi, user/glossary.texi, user/preface.texi: Convert from texi2www to texi2html.
  • texi2html_init.in: New file.
  • rtems_footer.html.in, rtems_header.html.in: Removed.
  • Property mode set to 100644
File size: 3.2 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2
3AC_PREREQ([2.68])
4
5AC_INIT([rtems-doc],[_RTEMS_VERSION],[http://www.rtems.org/bugzilla])
6AC_CONFIG_SRCDIR([project.am])
7RTEMS_TOP([..])
8
9AM_INIT_AUTOMAKE([no-define foreign 1.11.1])
10AM_MAINTAINER_MODE
11
12RTEMS_ENABLE_RPMPREFIX
13
14AC_ARG_ENABLE(html,
15[  --disable-html          disable html support ],
16[case $enableval in
17yes) ;;
18no) ;;
19*) AC_MSG_ERROR("invalid value");;
20esac],
21[enable_html="yes"]
22)
23
24AC_ARG_ENABLE(dvi,
25[  --disable-dvi           disable dvi support ],
26[case $enableval in
27yes) ;;
28no) ;;
29*) AC_MSG_ERROR("invalid value");;
30esac],
31[enable_dvi="yes"]
32)
33
34AC_ARG_ENABLE(pdf,
35[  --disable-pdf           disable pdf support ],
36[case $enableval in
37yes) ;;
38no) ;;
39*) AC_MSG_ERROR("invalid value");;
40esac],
41[enable_pdf="yes"]
42)
43
44AC_ARG_ENABLE(ps,
45[  --disable-ps            disable ps support ],
46[case $enableval in
47yes) ;;
48no) ;;
49*) AC_MSG_ERROR("invalid value");;
50esac],
51[enable_ps="yes"]
52)
53
54AC_ARG_ENABLE(papersize,
55[  --enable-papersize=[letter|a4|]    set papersize [default:system defaults]],
56[case $enableval in
57a4) papersize=a4 ;;
58letter) papersize=letter ;;
59yes) papersize= ;;
60no) papersize= ;;
61*) AC_MSG_ERROR([Invalid papersize])
62;;
63esac],
64[papersize=]
65)
66
67pkgdocdir="\$(datadir)/rtems"
68AC_SUBST(pkgdocdir)
69
70htmldir="\$(pkgdocdir)/html"
71AC_SUBST(htmldir)
72
73dnl Checks for programs.
74AC_PROG_LN_S
75
76AC_CHECK_PROGS(PERL,perl)
77
78AC_CHECK_PROGS(TEXI2HTML,texi2html)
79AC_SUBST(TEXI2HTML)
80
81AC_CHECK_PROGS(GS,gs)
82AM_CONDITIONAL(GS,test x"$GS" != x"")
83
84AC_CHECK_PROGS(TEXI2DVI,texi2dvi)
85AM_CONDITIONAL(TEXI2DVI,test x"$TEXI2DVI" != x"")
86
87AC_CHECK_PROGS(EPSTOPDF,epstopdf)
88AM_CONDITIONAL(EPSTOPDF,
89  test "$enable_pdf" = "yes" \
90    && test x"$EPSTOPDF" != x"" )
91
92AC_CHECK_PROGS(TEXI2PDF,texi2pdf)
93AM_CONDITIONAL(TEXI2PDF,
94  test "$enable_pdf" = "yes" \
95    && test x"$TEXI2PDF" != x"")
96
97AM_CONDITIONAL(USE_HTML,
98  test "$enable_html" = "yes" \
99     && test x"PERL" != x"" )
100
101AM_CONDITIONAL(USE_DVI,
102  test "$enable_dvi" = "yes" \
103    && test x"$TEXI2DVI" != x"" )
104
105AM_CONDITIONAL(USE_PS,
106  test "$enable_ps" = "yes" \
107    && test x"$TEXI2DVI" != x"" )
108
109AM_CONDITIONAL(USE_PDF,
110  test "$enable_pdf" = "yes" \
111    && test x"$TEXI2DVI" != x"" \
112    && test x"$TEXI2PDF" != x"" )
113
114case $papersize in
115a4)
116  TEXI2DVI="${TEXI2DVI} --texinfo=@afourpaper"
117  TEXI2PDF="${TEXI2PDF} --texinfo=@afourpaper"
118  DVIPS="dvips -t a4"
119;;
120letter)
121  DVIPS="dvips -t letter"
122  ;;
123*)
124  DVIPS="dvips"
125;;
126esac
127AC_SUBST(DVIPS)
128
129BMENU2='$(top_builddir)/tools/bmenu/bmenu2'
130AC_SUBST(BMENU2)
131
132dnl Checks for libraries.
133
134dnl Checks for header files.
135
136dnl Checks for typedefs, structures, and compiler characteristics.
137
138dnl Checks for library functions.
139
140AC_CONFIG_SUBDIRS(tools)
141
142AC_CONFIG_FILES([Makefile],[],[
143test -d common || mkdir common
144cat << EOF > common/rtems.sed~
145:t
146s/@RTEMSAPI@/_RTEMS_API/;t t
147s,@RTEMSPREFIX@,$prefix,;t t
148s,@RTEMSRPMPREFIX@,$rpmprefix,;t t
149EOF
150_RTEMS_UPDATE_CONDITIONAL([common/rtems.sed],[common/rtems.sed~])
151])
152
153AC_CONFIG_FILES([
154index.html
155develenv/Makefile
156user/Makefile
157bsp_howto/Makefile])
158
159AC_CONFIG_FILES([
160porting/Makefile
161networking/Makefile
162posix_users/Makefile
163posix1003.1/Makefile
164filesystem/Makefile
165ada_user/Makefile
166started/Makefile
167relnotes/Makefile
168new_chapters/Makefile
169cpu_supplement/Makefile
170shell/Makefile
171texi2html_init
172])
173AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.