[2695] | 1 | # -*- Autoconf -*- |
---|
| 2 | # Process this file with autoconf to produce a configure script. |
---|
| 3 | |
---|
| 4 | AC_PREREQ([2.65]) |
---|
[4069] | 5 | AC_INIT([vine-manual-base], [0.2.0], [http://vinelinux.org/bts.html]) |
---|
[2703] | 6 | AM_INIT_AUTOMAKE([no-dist-gzip dist-bzip2 tar-ustar]) |
---|
[2695] | 7 | |
---|
| 8 | # Checks for programs. |
---|
[2703] | 9 | AC_PATH_PROG(MKTEMP, mktemp) |
---|
| 10 | AS_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] | 21 | AC_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) ;; |
---|
| 27 | esac],[web=false]) |
---|
| 28 | |
---|
[2695] | 29 | if test "x${prefix}" = "xNONE"; then |
---|
| 30 | prefix=${ac_default_prefix} |
---|
| 31 | fi |
---|
| 32 | DATADIR=`eval echo ${datadir}` |
---|
[2703] | 33 | |
---|
[2695] | 34 | CVSDATA=`eval echo ${DATADIR}/vine-manual-base`/doc-list.csv |
---|
| 35 | AC_SUBST(CVSDATA) |
---|
| 36 | |
---|
[2703] | 37 | TEMPLATE=`eval echo ${DATADIR}/vine-manual-base`/index.html |
---|
| 38 | AC_SUBST(TEMPLATE) |
---|
[2695] | 39 | |
---|
[4069] | 40 | if test ${web} = true; then |
---|
[4191] | 41 | VMDIR=/var/www/vinelinux.org/docs/vine6 |
---|
[4189] | 42 | MENUWIDTH=950px |
---|
[4069] | 43 | MODE=web |
---|
| 44 | else |
---|
| 45 | VMDIR=`eval echo ${DATADIR}/doc/Vine` |
---|
[4189] | 46 | MENUWIDTH=600px |
---|
[4069] | 47 | MODE=local |
---|
| 48 | fi |
---|
[2733] | 49 | AC_SUBST(VMDIR) |
---|
[4069] | 50 | AC_SUBST(MODE) |
---|
[4189] | 51 | AC_SUBST(MENUWIDTH) |
---|
[2733] | 52 | |
---|
| 53 | INDEX=`eval echo ${VMDIR}/index.html` |
---|
[2703] | 54 | AC_SUBST(INDEX) |
---|
| 55 | |
---|
[2733] | 56 | CSSDIR=`eval echo ${VMDIR}/css` |
---|
| 57 | AC_SUBST(CSSDIR) |
---|
| 58 | |
---|
| 59 | CSS=`eval echo ${CSSDIR}/vine.css` |
---|
| 60 | AC_SUBST(CSS) |
---|
| 61 | |
---|
[4069] | 62 | IMAGEDIR=`eval echo ${VMDIR}/images` |
---|
[2799] | 63 | AC_SUBST(IMAGEDIR) |
---|
| 64 | |
---|
[4183] | 65 | if test ${web} = true; then |
---|
[4191] | 66 | CSSURI=/docs/vine6/css/vine.css |
---|
| 67 | IMAGEURI=/docs/vine6/images |
---|
| 68 | VMURI=/docs/vine6 |
---|
[4183] | 69 | else |
---|
| 70 | CSSURI=`eval echo ${CSS}` |
---|
| 71 | IMAGEURI=`eval echo ${IMAGEDIR}` |
---|
| 72 | VMURI=`eval echo ${VMDIR}` |
---|
| 73 | fi |
---|
| 74 | AC_SUBST(CSSURI) |
---|
| 75 | AC_SUBST(IMAGEURI) |
---|
| 76 | AC_SUBST(VMURI) |
---|
| 77 | |
---|
[2695] | 78 | AC_CONFIG_FILES([Makefile |
---|
[2703] | 79 | vine-manual-base.spec |
---|
[2695] | 80 | bin/Makefile |
---|
| 81 | bin/vine-manual-index-update |
---|
| 82 | bin/vine-manual-regist |
---|
| 83 | css/Makefile |
---|
[2820] | 84 | css/gnome.css |
---|
[2833] | 85 | css/vine.css |
---|
[2695] | 86 | data/Makefile |
---|
[2703] | 87 | data/index.html |
---|
[2733] | 88 | data/vine-manual-base.pc |
---|
[2695] | 89 | doc/Makefile |
---|
| 90 | doc/index.html |
---|
| 91 | images/Makefile]) |
---|
| 92 | |
---|
| 93 | AC_OUTPUT |
---|