2 # Process this file with autoconf to produce a configure script.
4 # This is part of LFSbookja package.
6 # This is a CTIE change file for the original XML source of the LFSbook.
9 m4_include([version.ac])[] dnl define lfs_version
12 AC_INIT([LFSbookja], [git], [matsuand AT users DOT osdn DOT me])
13 AM_INIT_AUTOMAKE([-Wno-portability])
16 m4_include([m4/progs.m4])
17 m4_include([m4/ax_compare_version.m4])
18 m4_include([m4/ac_check_docbook_xslt.m4])
19 m4_include([m4/ac_check_docbook_dtd.m4])
20 #m4_include([m4/ac_check_ipafontdir.m4])
21 m4_include([m4/ac_check_takaofontdir.m4])
23 # Checks for programs.
26 XSLTPROC_FLAGS='--nonet '
28 if test "x$HAVE_DOCBOOK_XSLT" = "xno"; then
29 AC_MSG_ERROR([Docbook XSLT not found])
32 XSLTPROC_FLAGS='--nonet '
33 AC_CHECK_DOCBOOK_DTD([4.5])
34 if test "x$HAVE_DOCBOOK_DTD_VERS" = "xno"; then
35 AC_MSG_ERROR([Docbook DTD 4.5 not found])
41 m4_include([m4/ac_check_rev.m4])
43 TARGETVER=lfs_version()
45 (cd ${bookdir} && sh git-version.sh)
46 if test -f ${bookdir}/version.ent; then
47 SVNVER=`grep 'ENTITY version ' ${bookdir}/version.ent | sed -e 's/^<!ENTITY version \"//' -e 's/\">$//' | tr 'A-Z' 'a-z'`
51 AC_MSG_CHECKING([for the original XML version])
52 if test ! "$SVNVER" = "$TARGETVER"; then
53 AC_MSG_RESULT([$SVNVER])
54 AC_MSG_WARN([Version of the original XML not $TARGETVER])
56 AC_MSG_RESULT([$SVNVER])
62 AC_CHECK_TAKAOGFONTDIR
64 AC_CONFIG_FILES([Makefile
68 src/appendices/Makefile
69 src/chapter01/Makefile
70 src/chapter02/Makefile
71 src/chapter03/Makefile
72 src/chapter04/Makefile
73 src/chapter05/Makefile
74 src/chapter06/Makefile
75 src/chapter07/Makefile
76 src/chapter08/Makefile
77 src/chapter09/Makefile
78 src/chapter10/Makefile
79 src/chapter11/Makefile
80 src/part3intro/Makefile
82 src/stylesheets/Makefile
83 src/stylesheets/lfs-xsl/Makefile
84 src/stylesheets/lfs-xsl/pdf/Makefile
85 src/stylesheets/lfs-xsl/xhtml/Makefile
87 src/udev-lfs/contrib/Makefile
88 src/udev-lfs/contrib/debian/Makefile])