source: trunk/configure.in @ 586

Last change on this file since 586 was 574, checked in by bas, 13 years ago

added support for initgroup, thanks to Dennis McRitchie?,
closes #274

  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1#
2# Author: Bas van der Vlies <basv@sara.nl>
3# Desc. : Simple configure script for email2trac package
4# SVN INFO:
5#       $Id: configure.in 574 2011-10-20 07:20:17Z bas $
6#
7#
8AC_INIT(email2trac.py.in)
9AC_CONFIG_HEADER(config.h)
10AC_SUBST(prefix)
11AC_SUBST(exec_prefix)
12AC_SUBST(pyexecdir)
13AC_SUBST(trac_user)
14AC_SUBST(mta_user)
15AC_SUBST(install_user)
16AC_SUBST(sysconfdir)
17
18#DEBUG=0
19
20#AM_PATH_PYTHON
21AM_PATH_PYTHON(2.4)
22AC_PROG_GCC_TRADITIONAL
23
24if test "x$DEBUG" = "x";then
25  DEBUG=0
26fi
27AC_SUBST(DEBUG)
28
29# What user must be used for installation (default: root)
30#
31AC_ARG_WITH(install_user,
32[
33  --with-install_user=USER    Specify the name of the user that we must use for installation,
34                          default=root],
35
36  [case "${withval}" in
37        *) install_user="${withval}" ;;
38  esac],
39
40  [install_user="root"]
41)dnl           
42
43# Now a user can specify the TRAC user
44#
45AC_ARG_WITH(trac_user,
46[
47  --with-trac_user=USER    Specify the name of the user that trac use,
48                          default=www-data],
49
50  [case "${withval}" in
51        *) trac_user="${withval}" ;;
52  esac],
53
54  [trac_user="www-data"]
55)dnl           
56
57# Now a user can specify MTA TRAC user
58#
59AC_ARG_WITH(mta_user,
60[
61  --with-mta_user=USER    Specify the name of the user that your MTA use,
62                          default=nobody],
63
64  [case "${withval}" in
65        *) mta_user="${withval}" ;;
66  esac],
67
68  [mta_user="nobody"]
69)dnl           
70
71dnl ##### Path to email2trac.conf
72dnl This ugly kludge to get the sysconfdir path is needed because
73dnl autoconf doesn't actually set the prefix variable until later.
74if test "$sysconfdir" = '${prefix}/etc'; then
75  if test "x$prefix" = xNONE; then
76    email2trac_conf="$ac_default_prefix/etc/email2trac.conf"
77  else
78    email2trac_conf="$prefix/etc/email2trac.conf"
79  fi
80else
81  email2trac_conf="$sysconfdir/email2trac.conf"
82fi
83AC_DEFINE_UNQUOTED(SYSTEM_EMAIL2TRAC_CONF, "$email2trac_conf",
84                   [Full path for the system-wide email2trac.conf file.])
85
86AC_SUBST(email2trac_conf)
87AC_SUBST(SYSTEM_EMAIL2TRAC_CONF)
88
89dnl ##### Check for presence of initgroups() function
90AC_CHECK_FUNCS([initgroups])
91
92
93AC_OUTPUT(
94        Makefile
95        email2trac.py
96        delete_spam.py
97)
Note: See TracBrowser for help on using the repository browser.