configure.in 1.43 KB
Newer Older
salaun's avatar
salaun committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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)
AM_INIT_AUTOMAKE([sympa], $VERSION, nosubst)
AC_PREREQ(2.13)

AC_PREFIX_DEFAULT(/home/sympa)

## Directories setup
## for main config files
sysconfdir=/etc

## for executable programs
20
bindir='${prefix}/bin'
salaun's avatar
salaun committed
21
22

## for executable programs run by sysadmin
23
sbindir='${prefix}/bin'
salaun's avatar
salaun committed
24
25

## for libraries
26
libdir='${prefix}/bin'
salaun's avatar
salaun committed
27
28

## for *read-only* data files
29
datadir='${prefix}/bin/etc'
salaun's avatar
salaun committed
30
31

## for modifiable data files
32
localstatedir='${prefix}/expl'
salaun's avatar
salaun committed
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

dnl Checks for programs.
AC_PROG_CC
AC_PROG_MAKE_SET
AC_AIX

AC_PATH_PROG(PERL, perl, /usr/bin/perl)
AC_SUBST(PERL)

AC_PATH_PROG(OPENSSL, openssl, /usr/local/ssl/bin)
AC_SUBST(OPENSSL)

AC_PATH_PROG(GENCAT, gencat, /usr/bin/gencat)
AC_SUBST(GENCAT)

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

AC_PATH_PROG(SH, sh, /bin/sh)

USER=sympa
AC_ARG_WITH(user, [  --with-user=LOGIN       set sympa user name (default sympa)], [SYMPA="$withval"])
AC_SUBST(USER)

GROUP=sympa
AC_ARG_WITH(group, [  --with-group=LOGIN     set sympa group name (default sympa)], [SYMPA="$withval"])
AC_SUBST(GROUP)

dnl Initialize maintainer mode
AM_MAINTAINER_MODE

AC_OUTPUT(Makefile)