summaryrefslogtreecommitdiff
path: root/configure.in
blob: 0d063e2f3765bd0589ac0c7d2931020b2994f83e (plain)
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
dnl
dnl $FML: configure.in,v 1.10 2001/12/11 13:40:02 fukachan Exp $
dnl
AC_REVISION($Revision$)

dnl Process this file with autoconf to produce a configure script.
AC_INIT(fml/libexec/loader.in)

# compile with optimisation and without debugging by default
CFLAGS=${CFLAGS-"-O"}
LDFLAGS=${LDFLAGS-""}

dnl path_check
dnl Checks for programs.

dnl perl is mandatory
AC_CHECK_PROGS(have_perl, perl)
if test ! -n "$have_perl" ; then
   AC_MSG_ERROR("Perl needs to be installed to use fml")
fi
AC_PATH_PROG(PERL,   perl)

AC_MSG_RESULT("checking whether optional useful commands are available or not")

AC_PATH_PROG(CKSUM,    cksum)
AC_PATH_PROG(MD5,      md5)

AC_PATH_PROG(TAR,      tar)
AC_PATH_PROG(GZIP,     gzip)
AC_PATH_PROG(ZCAT,     zcat)
AC_PATH_PROG(GUNZIP,   gunzip)
AC_PATH_PROG(LHA,      lha)
AC_PATH_PROG(ISH,      ish)
AC_PATH_PROG(BZIP2,    bzip2)
AC_PATH_PROG(BUNZIP2,  bunzip2)
AC_PATH_PROG(UUENCODE, uuencode)
AC_PATH_PROG(COMPRESS, compress)

AC_PATH_PROG(SENDMAIL, sendmail)

AC_PATH_PROG(NKF,      nkf)
AC_PATH_PROG(KAKASI,   kakasi)
AC_PATH_PROG(NAMAZU,   namazu)

AC_PATH_PROG(PGP,      pgp)
AC_PATH_PROG(PGP5,     pgp5)
AC_PATH_PROG(PGPe,     pgpe)
AC_PATH_PROG(PGPK,     pgpk)
AC_PATH_PROG(PGPS,     pgps)
AC_PATH_PROG(PGPV,     pgpv)
AC_PATH_PROG(GPG,      gpg)
dnl path_check_end


fmlconfdir=${sysconfdir}/fml
AC_ARG_WITH(fmlconfdir, 
[  --with-fmlconfdir=DIR   use DIR instead of SYSCONFDIR/fml], 
    fmlconfdir=$withval)
AC_SUBST(fmlconfdir)


mlspooldir=/var/spool/ml
AC_ARG_WITH(mlspooldir, 
[  --with-mlspooldir=DIR   use DIR instead of /var/spool/ml], 
    mlspooldir=$withval)
AC_SUBST(mlspooldir)


fml_owner=fml
AC_ARG_WITH(fml_owner, 
[  --with-fml-owner=USER   use USER instead of fml], 
    fml_owner=$withval)
AC_SUBST(fml_owner)


fml_group=fml
AC_ARG_WITH(fml_group, 
[  --with-fml-group=GROUP  use GROUP instead of fml], 
    fml_group=$withval)
AC_SUBST(fml_group)


AC_SUBST(SHELL)

AC_OUTPUT(\
	config.sh \
	fml/etc/main.cf \
	fml/etc/default_config.cf.ja \
	fml/libexec/loader \
	fml/bin/fmlconf \
	fml/bin/fmldoc \
	fml/bin/fmlhtmlify \
	fml/bin/fmlsch \
	fml/bin/fmlthread \
	fml/bin/makefml \
	)

if test -f fml/libexec/loader ; then
   chmod 755 fml/libexec/loader
fi


echo ""
echo "fml has been configure with the following options:"
echo ""
echo "                 prefix: $prefix"
echo "            exec_prefix: $exec_prefix"
echo "                 bindir: $bindir"
echo "                sbindir: $sbindir"
echo "                lib_dir: $libdir"
echo "            libexec_dir: $libexecdir"
echo "                 mandir: $mandir"
echo ""
echo "      fml process owner: $fml_owner"
echo "      fml process group: $fml_group"
echo "             fmlconfdir: $fmlconfdir"
echo "             mlspooldir: $mlspooldir"
echo ""
echo "Now you must run \"make install\"."
echo ""