source: projects/vine-manual-base/trunk/configure.ac @ 4183

Revision 4183, 2.0 KB checked in by yasumichi, 13 years ago (diff)

web 用に リンク文字列を修正

Line 
1#                                               -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ([2.65])
5AC_INIT([vine-manual-base], [0.2.0], [http://vinelinux.org/bts.html])
6AM_INIT_AUTOMAKE([no-dist-gzip dist-bzip2 tar-ustar])
7
8# Checks for programs.
9AC_PATH_PROG(MKTEMP, mktemp)
10AS_IF(test -z $MKTEMP, AC_MSG_ERROR([Cannot find mktemp.]))
11
12# Checks for libraries.
13
14# Checks for header files.
15
16# Checks for typedefs, structures, and compiler characteristics.
17
18# Checks for library functions.
19
20# Define variables
21AC_ARG_ENABLE(web,
22[  --enable-web            Install for web site],
23[case "${enableval}" in
24  yes)  web=true ;;
25  no)   web=false ;;
26  *) AC_MSG_ERROR(bad value ${enableval} for --enable-web) ;;
27esac],[web=false])
28
29if test "x${prefix}" = "xNONE"; then
30        prefix=${ac_default_prefix}
31fi
32DATADIR=`eval echo ${datadir}`
33
34CVSDATA=`eval echo ${DATADIR}/vine-manual-base`/doc-list.csv
35AC_SUBST(CVSDATA)
36
37TEMPLATE=`eval echo ${DATADIR}/vine-manual-base`/index.html
38AC_SUBST(TEMPLATE)
39
40if test ${web} = true; then
41        VMDIR=/var/www/vinelinux.org/doc/vine6
42        MODE=web
43else
44        VMDIR=`eval echo ${DATADIR}/doc/Vine`
45        MODE=local
46fi
47AC_SUBST(VMDIR)
48AC_SUBST(MODE)
49
50INDEX=`eval echo ${VMDIR}/index.html`
51AC_SUBST(INDEX)
52
53CSSDIR=`eval echo ${VMDIR}/css`
54AC_SUBST(CSSDIR)
55
56CSS=`eval echo ${CSSDIR}/vine.css`
57AC_SUBST(CSS)
58
59IMAGEDIR=`eval echo ${VMDIR}/images`
60AC_SUBST(IMAGEDIR)
61
62if test ${web} = true; then
63        CSSURI=/doc/vine6/css/vine.css
64        IMAGEURI=/doc/vine6/images
65        VMURI=/doc/vine6
66else
67        CSSURI=`eval echo ${CSS}`
68        IMAGEURI=`eval echo ${IMAGEDIR}`
69        VMURI=`eval echo ${VMDIR}`
70fi
71AC_SUBST(CSSURI)
72AC_SUBST(IMAGEURI)
73AC_SUBST(VMURI)
74
75AC_CONFIG_FILES([Makefile
76                 vine-manual-base.spec
77                 bin/Makefile
78                 bin/vine-manual-index-update
79                 bin/vine-manual-regist
80                 css/Makefile
81                 css/gnome.css
82                 css/vine.css
83                 data/Makefile
84                 data/index.html
85                 data/vine-manual-base.pc
86                 doc/Makefile
87                 doc/index.html
88                 images/Makefile])
89
90AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.