2 # Process this file with autoconf to produce a configure script.
4 m4_include([version.ac])[] dnl define clfs_version
7 AC_INIT([cross-lfs-ja], [3.0.0], [matsuand AT users DOT osdn DOT me])
9 AC_CONFIG_SRCDIR([ctie/ctie.c])
10 AC_CONFIG_HEADERS([config.h])
12 m4_include([m4/progs.m4])
13 m4_include([m4/ax_compare_version.m4])
14 m4_include([m4/ac_check_docbook_xslt.m4])
15 m4_include([m4/ac_check_docbook_dtd.m4])
16 m4_include([m4/ac_check_takaofontdir.m4])
18 # Checks for programs.
21 XSLTPROC_FLAGS='--nonet '
23 if test "x$HAVE_DOCBOOK_XSLT" = "xno"; then
24 AC_MSG_ERROR([Docbook XSLT not found])
27 XSLTPROC_FLAGS='--nonet '
28 AC_CHECK_DOCBOOK_DTD([4.5])
29 if test "x$HAVE_DOCBOOK_DTD_VERS" = "xno"; then
30 AC_MSG_ERROR([Docbook DTD 4.5 not found])
38 AC_CHECK_TAKAOGFONTDIR
40 TARGETVER=clfs_version()
42 ORGDAY=`grep 'ENTITY day ' ${bookdir}/general.ent | gawk '{print $3;}' | sed 's/^[[^\"]]*\"\([[0-9]]*\)\".*$/\1/'`
43 ORGMONTH=`grep 'ENTITY month ' ${bookdir}/general.ent | gawk '{print $3;}' | sed 's/^[[^\"]]*\"\([[0-9]]*\)\".*$/\1/'`
44 ORGYEAR=`grep 'ENTITY year' ${bookdir}/general.ent | gawk '{print $3;}' | sed 's/^[[^\"]]*\"\([[0-9]]*\)\".*$/\1/'`
46 SVNVER=$ORGYEAR$ORGMONTH$ORGDAY
47 AC_MSG_CHECKING([for the original XML version])
48 if test ! "GIT-$SVNVER" = "$TARGETVER"; then
49 AC_MSG_RESULT([$TARGETVER])
50 AC_MSG_ERROR([Version of the original XML not $TARGETVER])
52 AC_MSG_RESULT([$TARGETVER])
57 # Checks for libraries.
59 # Checks for header files.
60 AC_CHECK_HEADERS([malloc.h stdlib.h])
62 # Checks for typedefs, structures, and compiler characteristics.
63 AC_CHECK_HEADER_STDBOOL
65 # Checks for library functions.
67 AC_CHECK_FUNCS([strerror])
69 AC_CONFIG_FILES([Makefile
73 src/appendices/Makefile
74 src/appendices/dependencies/Makefile
75 src/appendices/ppc/Makefile
76 src/appendices/rationale/Makefile
79 src/boot/common/Makefile
80 src/boot/mips/Makefile
81 src/boot/mips64/Makefile
82 src/boot/multilib/Makefile
84 src/boot/ppc64/Makefile
85 src/boot/ppc64-64/Makefile
86 src/boot/sparc/Makefile
87 src/boot/sparc64/Makefile
88 src/boot/sparc64-64/Makefile
90 src/boot/x86_64/Makefile
92 src/bootable/common/Makefile
93 src/bootable/mips/Makefile
94 src/bootable/mips64/Makefile
95 src/bootable/ppc/Makefile
96 src/bootable/ppc64/Makefile
97 src/bootable/sparc/Makefile
98 src/bootable/x86/Makefile
99 src/bootable/x86_64/Makefile
101 src/chroot/common/Makefile
102 src/chroot/mips/Makefile
103 src/chroot/mips64/Makefile
104 src/chroot/mips64-64/Makefile
105 src/chroot/multilib/Makefile
106 src/chroot/ppc/Makefile
107 src/chroot/ppc64/Makefile
108 src/chroot/sparc/Makefile
109 src/chroot/sparc64/Makefile
110 src/chroot/sparc64-64/Makefile
111 src/chroot/x86/Makefile
112 src/chroot/x86_64/Makefile
113 src/chroot/x86_64-64/Makefile
114 src/cross-tools/Makefile
115 src/cross-tools/64/Makefile
116 src/cross-tools/common/Makefile
117 src/cross-tools/mips/Makefile
118 src/cross-tools/mips64/Makefile
119 src/cross-tools/mips64-64/Makefile
120 src/cross-tools/multilib/Makefile
121 src/cross-tools/ppc/Makefile
122 src/cross-tools/ppc64-64/Makefile
123 src/cross-tools/sparc/Makefile
124 src/cross-tools/sparc64/Makefile
125 src/cross-tools/sparc64-64/Makefile
126 src/cross-tools/x86/Makefile
127 src/cross-tools/x86_64/Makefile
128 src/final-preps/Makefile
129 src/final-preps/common/Makefile
130 src/final-preps/mips/Makefile
131 src/final-preps/mips64/Makefile
132 src/final-preps/mips64-64/Makefile
133 src/final-preps/ppc/Makefile
134 src/final-preps/ppc64/Makefile
135 src/final-preps/ppc64-64/Makefile
136 src/final-preps/sparc/Makefile
137 src/final-preps/sparc64/Makefile
138 src/final-preps/sparc64-64/Makefile
139 src/final-preps/x86/Makefile
140 src/final-preps/x86_64/Makefile
141 src/final-preps/x86_64-64/Makefile
142 src/final-system/Makefile
143 src/final-system/64/Makefile
144 src/final-system/common/Makefile
145 src/final-system/mips/Makefile
146 src/final-system/mips64/Makefile
147 src/final-system/mips64-64/Makefile
148 src/final-system/multilib/Makefile
149 src/final-system/ppc/Makefile
150 src/final-system/ppc64/Makefile
151 src/final-system/ppc64-64/Makefile
152 src/final-system/sparc/Makefile
153 src/final-system/sparc64/Makefile
154 src/final-system/sparc64-64/Makefile
155 src/final-system/x86/Makefile
156 src/final-system/x86_64/Makefile
157 src/final-system/x86_64-64/Makefile
158 src/introduction/Makefile
159 src/introduction/common/Makefile
160 src/introduction/mips/Makefile
161 src/introduction/mips64/Makefile
162 src/introduction/mips64-64/Makefile
163 src/introduction/ppc/Makefile
164 src/introduction/ppc64/Makefile
165 src/introduction/ppc64-64/Makefile
166 src/introduction/sparc/Makefile
167 src/introduction/sparc64/Makefile
168 src/introduction/sparc64-64/Makefile
169 src/introduction/x86/Makefile
170 src/introduction/x86_64/Makefile
171 src/introduction/x86_64-64/Makefile
172 src/materials/Makefile
173 src/materials/common/Makefile
174 src/materials/mips/Makefile
175 src/materials/mips64/Makefile
176 src/materials/mips64-64/Makefile
177 src/materials/ppc/Makefile
178 src/materials/ppc64/Makefile
179 src/materials/ppc64-64/Makefile
180 src/materials/sparc/Makefile
181 src/materials/sparc64/Makefile
182 src/materials/sparc64-64/Makefile
183 src/materials/x86/Makefile
184 src/materials/x86_64/Makefile
185 src/materials/x86_64-64/Makefile
187 src/network/common/Makefile
188 src/network/multilib/Makefile
189 src/partitioning/Makefile
190 src/partitioning/common/Makefile
191 src/partitioning/mips/Makefile
192 src/partitioning/ppc/Makefile
193 src/partitioning/sparc/Makefile
194 src/prologue/Makefile
195 src/prologue/common/Makefile
196 src/prologue/mips/Makefile
197 src/prologue/mips64/Makefile
198 src/prologue/mips64-64/Makefile
199 src/prologue/ppc/Makefile
200 src/prologue/ppc64/Makefile
201 src/prologue/ppc64-64/Makefile
202 src/prologue/sparc/Makefile
203 src/prologue/sparc64/Makefile
204 src/prologue/sparc64-64/Makefile
205 src/prologue/x86/Makefile
206 src/prologue/x86_64/Makefile
207 src/prologue/x86_64-64/Makefile
209 src/schema/docbook/Makefile
210 src/schema/docbook/4.5/Makefile
211 src/schema/docbook/4.5/rng/Makefile
212 src/stylesheets/Makefile
213 src/stylesheets/lfs-xsl/Makefile
214 src/stylesheets/lfs-xsl/docbook-xsl-snapshot/Makefile
215 src/stylesheets/lfs-xsl/docbook-xsl-snapshot/common/Makefile
216 src/stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/Makefile
217 src/stylesheets/lfs-xsl/docbook-xsl-snapshot/highlighting/Makefile
218 src/stylesheets/lfs-xsl/docbook-xsl-snapshot/html/Makefile
219 src/stylesheets/lfs-xsl/docbook-xsl-snapshot/lib/Makefile
220 src/stylesheets/lfs-xsl/docbook-xsl-snapshot/profiling/Makefile
221 src/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/Makefile
222 src/stylesheets/lfs-xsl/pdf/Makefile
223 src/stylesheets/lfs-xsl/xhtml/Makefile
224 src/system-config/Makefile
225 src/system-config/common/Makefile
226 src/system-config/sparc/Makefile
227 src/temp-system/Makefile
228 src/temp-system/64/Makefile
229 src/temp-system/common/Makefile
230 src/temp-system/mips64/Makefile
231 src/temp-system/mips64-64/Makefile
232 src/temp-system/multilib/Makefile
233 src/temp-system/ppc/Makefile
234 src/temp-system/ppc64/Makefile
235 src/temp-system/ppc64-64/Makefile
236 src/testsuite-tools/Makefile
237 src/testsuite-tools/common/Makefile
238 src/testsuite-tools/multilib/Makefile
239 src/the-end/Makefile])