-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.in
63 lines (56 loc) · 1.36 KB
/
configure.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
AC_INIT(codoc.c)
CODOC_VERSION=0.3
AC_CANONICAL_HOST
case "$host_cpu" in
i486 | i586 | i686)
ARCH=i386
;;
*)
ARCH="$host_cpu"
;;
esac
AC_SUBST(ARCH)
AM_INIT_AUTOMAKE(codoc, ${CODOC_VERSION})
PKG_CHECK_MODULES(GLIB, glib-2.0)
PKG_CHECK_MODULES(XML, libxml-2.0)
AC_PROG_CC
dnl BEGIN: Check for stuff required to do XML processing.
AC_PATH_PROG(XSLTPROC, xsltproc, no)
docbook_xml_prefix=no
for test_prefix in $DOCBOOK_XML_PREFIX /usr/local /usr / ; do
got=0
for t in "$test_prefix/etc/xml/catalog" "$test_prefix/share/xml/catalog" \
"$test_prefix/share/xml/docbook/stylesheet/docbook-xsl/catalog.xml"
do
if test -r "$t" ; then
XML_CATALOG_FILES="$t"
got=1
fi
done
if test $got = 1 ; then
got=0
for t in "$test_prefix/share/xml/docbook/xsl/html/docbook.xsl" \
"$test_prefix/share/xml/docbook/xsl/modular/html/docbook.xsl" ; do
if test -r "$t" ; then
XSL_HTML_DOCBOOK_XSL="$t"
got=1
fi
done
fi
if test $got = 1 ; then
docbook_xml_prefix=$test_prefix
break
fi
done
if test "x$docbook_xml_prefix" = xno ; then
XSLTPROC=no
fi
XSLTPROC_ARGS=""
AC_SUBST(XSLTPROC_ARGS)
AC_SUBST(XML_CATALOG_FILES)
AC_SUBST(XSL_HTML_DOCBOOK_XSL)
dnl END: Check for stuff required to do XML processing.
AC_HEADER_STDC
AC_C_CONST
AC_TYPE_SIZE_T
AC_OUTPUT([Makefile doc/Makefile pkgwriteinfo])