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

Revision 4069, 1.8 KB checked in by yasumichi, 13 years ago (diff)

公式サイトへのインストール用に configure オプション --enable-web を追加した。

RevLine 
[2695]1#                                               -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ([2.65])
[4069]5AC_INIT([vine-manual-base], [0.2.0], [http://vinelinux.org/bts.html])
[2703]6AM_INIT_AUTOMAKE([no-dist-gzip dist-bzip2 tar-ustar])
[2695]7
8# Checks for programs.
[2703]9AC_PATH_PROG(MKTEMP, mktemp)
10AS_IF(test -z $MKTEMP, AC_MSG_ERROR([Cannot find mktemp.]))
[2695]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
[4069]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
[2695]29if test "x${prefix}" = "xNONE"; then
30        prefix=${ac_default_prefix}
31fi
32DATADIR=`eval echo ${datadir}`
[2703]33
[2695]34CVSDATA=`eval echo ${DATADIR}/vine-manual-base`/doc-list.csv
35AC_SUBST(CVSDATA)
36
[2703]37TEMPLATE=`eval echo ${DATADIR}/vine-manual-base`/index.html
38AC_SUBST(TEMPLATE)
[2695]39
[4069]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
[2733]47AC_SUBST(VMDIR)
[4069]48AC_SUBST(MODE)
[2733]49
50INDEX=`eval echo ${VMDIR}/index.html`
[2703]51AC_SUBST(INDEX)
52
[2733]53CSSDIR=`eval echo ${VMDIR}/css`
54AC_SUBST(CSSDIR)
55
56CSS=`eval echo ${CSSDIR}/vine.css`
57AC_SUBST(CSS)
58
[4069]59IMAGEDIR=`eval echo ${VMDIR}/images`
[2799]60AC_SUBST(IMAGEDIR)
61
[2695]62AC_CONFIG_FILES([Makefile
[2703]63                 vine-manual-base.spec
[2695]64                 bin/Makefile
65                 bin/vine-manual-index-update
66                 bin/vine-manual-regist
67                 css/Makefile
[2820]68                 css/gnome.css
[2833]69                 css/vine.css
[2695]70                 data/Makefile
[2703]71                 data/index.html
[2733]72                 data/vine-manual-base.pc
[2695]73                 doc/Makefile
74                 doc/index.html
75                 images/Makefile])
76
77AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.