configure.in 6.35 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# configure.in - Top-level configure.in for Sympa
# RCS Identication ; $Revision$ ; $Date$ 
#
# Sympa - SYsteme de Multi-Postage Automatique
# Copyright (c) 1997, 1998, 1999, 2000, 2001 Comite Reseau des Universites
# Copyright (c) 1997,1998, 1999 Institut Pasteur & Christophe Wolfhugel
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

salaun's avatar
salaun committed
22
23
24
25
26
27
28
29
30
AC_INIT(check_perl_modules.pl)
PACKAGE=sympa
VERSION=`cat ${srcdir}/.version`
MAJOR_VERSION=[`expr $VERSION : '\([0-9][0-9]*\)'`]
AC_SUBST(MAJOR_VERSION)
MINOR_VERSION=[`expr $VERSION : '[0-9][0-9]*\.\([0-9][0-9]*\)'`]
AC_SUBST(MINOR_VERSION)
MICRO_VERSION=[`expr $VERSION : '[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)'`]
AC_SUBST(MICRO_VERSION)
31
32
AC_CANONICAL_SYSTEM
AC_CANONICAL_HOST
salaun's avatar
salaun committed
33
34
35
36
37
38
39
40
AM_INIT_AUTOMAKE([sympa], $VERSION, nosubst)
AC_PREREQ(2.13)

AC_PREFIX_DEFAULT(/home/sympa)

## Directories setup
## for main config files

41
42
43
44
## location of main config files
CONFDIR='/etc'
AC_ARG_WITH(confdir, [  --with-confdir=DIR     Sympa main configuration files in DIR  (default /etc)], [CONFDIR="$withval"])
AC_SUBST(CONFDIR)
salaun's avatar
salaun committed
45

46
47
48
49
## location of CGIs
CGIDIR='${prefix}/bin'
AC_ARG_WITH(cgidir, [  --with-cgidir=DIR     CGIs in DIR  (default ${prefix}/bin)], [CGIDIR="$withval"])
AC_SUBST(CGIDIR)
salaun's avatar
salaun committed
50

51
52
53
54
55
## location of icons
ICONSDIR='/home/httpd/icons'
AC_ARG_WITH(iconsdir, [  --with-iconsdir=DIR     web interface icons in DIR  (default /home/httpd/icons)], [ICONSDIR="$withval"])
AC_SUBST(ICONSDIR)

56
57
58
59
## location of user executables
BINDIR='${prefix}/bin'
AC_ARG_WITH(bindir, [  --with-bindir=DIR     user executables in DIR (default ${prefix}/bin). queue and bouncequeue programs will be installed in this directory. If sendmail is configured to use smrsh (check the mailer prog definition in your sendmail.cf), this should point to /etc/smrsh. This is probably the case if you are using Linux], [BINDIR="$withval"])
AC_SUBST(BINDIR)
salaun's avatar
salaun committed
60

61
62
63
64
## location of system admin executables
SBINDIR='${prefix}/bin'
AC_ARG_WITH(sbindir, [  --with-sbindir=DIR     system admin executables in DIR (default ${prefix}/bin)], [SBINDIR="$withval"])
AC_SUBST(SBINDIR)
salaun's avatar
salaun committed
65

66
67
68
69
## location of program executables
LIBEXECDIR='${prefix}/bin'
AC_ARG_WITH(libexecdir, [  --with-libexecdir=DIR     program executables in DIR (default ${prefix}/bin)], [LIBEXECDIR="$withval"])
AC_SUBST(LIBEXECDIR)
salaun's avatar
salaun committed
70

71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
## location of Perl modules
LIBDIR='${prefix}/bin'
AC_ARG_WITH(libdir, [  --with-libdir=DIR     Perl modules in DIR (default ${prefix}/bin)], [LIBDIR="$withval"])
AC_SUBST(LIBDIR)

## location of default *read-only* data files
DATADIR='${prefix}/bin/etc'
AC_ARG_WITH(datadir, [  --with-datadir=DIR     default *read-only* data files in DIR (default ${prefix}/bin/etc)], [DATADIR="$withval"])
AC_SUBST(DATADIR)

## location of modifiable data files
EXPLDIR='${prefix}/expl'
AC_ARG_WITH(expldir, [  --with-expldir=DIR     modifiable data files in DIR (default ${prefix}/expl)], [EXPLDIR="$withval"])
AC_SUBST(EXPLDIR)

## location of documentation
MANDIR='/usr/local/man'
AC_ARG_WITH(mandir, [  --with-mandir=DIR     documentation in DIR (default /usr/local/man)], [MANDIR="$withval"])
AC_SUBST(MANDIR)
salaun's avatar
salaun committed
90

salaun's avatar
salaun committed
91
92
## SYS V init scripts directory
INITDIR=/etc/rc.d/init.d
salaun's avatar
salaun committed
93
AC_ARG_WITH(initdir, [  --with-initdir=DIR     install System V init script in DIR  (default /etc/rc.d/init.d)], [INITDIR="$withval"])
salaun's avatar
salaun committed
94
95
AC_SUBST(INITDIR)

salaun's avatar
salaun committed
96
97
98
99
100
## directory for storing .pid files
PIDDIR='${prefix}'
AC_ARG_WITH(piddir, [  --with-piddir=DIR     create .pid files in DIR  (default ${prefix})], [PIDDIR="$withval"])
AC_SUBST(PIDDIR)

salaun's avatar
salaun committed
101
102
103
104
105
106
dnl Checks for programs.
AC_PROG_CC
AC_PROG_MAKE_SET
AC_AIX

AC_PATH_PROG(PERL, perl, /usr/bin/perl)
107
AC_ARG_WITH(perl, [  --with-perl=FULLPATH       set full path to Perl interpreter (default /usr/bin/perl)], [PERL="$withval"])
salaun's avatar
salaun committed
108
109
110
AC_SUBST(PERL)

AC_PATH_PROG(OPENSSL, openssl, /usr/local/ssl/bin)
111
AC_ARG_WITH(openssl, [  --with-openssl=FULLPATH       set path to OpenSSL (default /usr/local/ssl/bin/openssl)], [OPENSSL="$withval"])
salaun's avatar
salaun committed
112
113
AC_SUBST(OPENSSL)

114
115
116
117
118
119
AC_PATH_PROG(GENCAT, gencat, "/usr/bin/gencat -m")
case "$build_os" in
irix*) 
	GENCAT="$GENCAT -m"
	;;
esac
120
AC_ARG_WITH(gencat, [  --with-gencat=FULLPATH       set path to gencat (default /usr/bin/gencat)], [GENCAT="$withval"])
salaun's avatar
salaun committed
121
122
123
124
125
126
127
128
AC_SUBST(GENCAT)

AC_PATH_PROG(CVS2CL, cvs2cl.pl, /usr/local/bin)
AC_SUBST(CVS2CL)

AC_PATH_PROG(SH, sh, /bin/sh)

USER=sympa
129
AC_ARG_WITH(user, [  --with-user=LOGIN       set sympa user name (default sympa)], [USER="$withval"])
salaun's avatar
salaun committed
130
131
132
AC_SUBST(USER)

GROUP=sympa
133
AC_ARG_WITH(group, [  --with-group=LOGIN     set sympa group name (default sympa)], [GROUP="$withval"])
salaun's avatar
salaun committed
134
135
AC_SUBST(GROUP)

136
SENDMAIL_ALIASES=/etc/mail/sympa_aliases
137
AC_ARG_WITH(sendmail_aliases, [  --with-sendmail_aliases=ALIASFILE     set aliases file to be used by Sympa (default /etc/mail/sympa_aliases)], [SENDMAIL_ALIASES="$withval"])
138
139
AC_SUBST(SENDMAIL_ALIASES)

140
141
142
143
VIRTUAL_ALIASES=/etc/mail/sympa_virtual
AC_ARG_WITH(virtual_aliases, [  --with-virtual_aliases=ALIASFILE     set postfix virtual file to be used by Sympa (default /etc/mail/sympa_virtual)], [VIRTUAL_ALIASES="$withval"])
AC_SUBST(VIRTUAL_ALIASES)

144
NEWALIASES=/usr/bin/newaliases
145
AC_ARG_WITH(newaliases, [  --with-newaliases=FULLPATH     set path to newaliases command (default /usr/bin/newaliases)], [NEWALIASES="$withval"])
146
147
148
149
150
151
AC_SUBST(NEWALIASES)

NEWALIASES_ARG=
AC_ARG_WITH(newaliases_arg, [  --with-newaliases_arg=ARGS     set arguments to newaliases command (default NONE)], [NEWALIASES_ARG="$withval"])
AC_SUBST(NEWALIASES_ARG)

152
153
154
155
156
157
158
159
POSTMAP=/usr/sbin/postmap
AC_ARG_WITH(postmap, [  --with-postmap=FULLPATH     set path to postfix postmap command (default /usr/sbin/postmap)], [POSTMAP="$withval"])
AC_SUBST(POSTMAP)

POSTMAP_ARG=
AC_ARG_WITH(postmap_arg, [  --with-postmap_arg=ARGS     set arguments to postfix postmap command (default NONE)], [POSTMAP_ARG="$withval"])
AC_SUBST(POSTMAP_ARG)

salaun's avatar
salaun committed
160
161
162
163
164
165
166
dnl Initialize maintainer mode
AM_MAINTAINER_MODE

AC_OUTPUT(Makefile)