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