Revision 4210, 1.3 KB checked in by yasumichi, 13 years ago (diff) |
---|
Line | |
---|---|
1 | # -*- Autoconf -*- |
2 | # Process this file with autoconf to produce a configure script. |
3 | |
4 | AC_PREREQ([2.65]) |
5 | AC_INIT(vine-manual-build, 0.9.2, http://bts.vinelinux.org/) |
6 | AM_INIT_AUTOMAKE([1.9 no-dist-gzip dist-bzip2 tar-ustar]) |
7 | AM_MAINTAINER_MODE |
8 | |
9 | # Checks for programs. |
10 | AC_PATH_PROG(XSLTPROC,xsltproc) |
11 | AS_IF(test -z $XSLTPROC, AC_MSG_ERROR([xsltproc was not found.])) |
12 | PKG_CHECK_EXISTS([vine-manual-base], , AC_MSG_ERROR([Cannot find vine-manual-base.])) |
13 | PKG_CHECK_EXISTS([gnome-doc-utils], , AC_MSG_ERROR([Cannot find gnome-doc-utils.])) |
14 | |
15 | # Checks for libraries. |
16 | |
17 | # Checks for header files. |
18 | |
19 | # Checks for typedefs, structures, and compiler characteristics. |
20 | |
21 | # Checks for library functions. |
22 | |
23 | if test "x${prefix}" = "xNONE"; then |
24 | prefix=${ac_default_prefix} |
25 | fi |
26 | DATADIR=`eval echo ${datadir}` |
27 | XSLDIR=`eval echo ${DATADIR}`/sgml/docbook/vine-style-xsl |
28 | AC_SUBST(XSLDIR) |
29 | |
30 | STYLE=`eval echo ${XSLDIR}`/local.xsl |
31 | AC_SUBST(STYLE) |
32 | |
33 | CSSFILE=`pkg-config --variable=cssfile vine-manual-base` |
34 | AC_SUBST(CSSFILE) |
35 | |
36 | IMAGEDIR=`pkg-config --variable=imagedir vine-manual-base` |
37 | AC_SUBST(IMAGEDIR) |
38 | |
39 | VMDIR=`pkg-config --variable=manualdir vine-manual-base` |
40 | AC_SUBST(VMDIR) |
41 | |
42 | AC_CONFIG_FILES([ |
43 | Makefile |
44 | local.xsl |
45 | vine-manual-build |
46 | vine-manual-build.pc |
47 | vine-manual-build-vl.spec |
48 | web.xsl |
49 | ]) |
50 | |
51 | AC_OUTPUT |