source: trunk/configure.in @ 325

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

configure, Makefile.in, configure.in:

  • added environment variable INSTALL_USER. if set use this user to chown:
    • email2trac.conf
    • run_email2trac ( is not needed when we it is not equal 'root' see #182
  • Property svn:keywords set to Id
File size: 1.7 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 325 2010-03-01 11:31:55Z bas $
6#
7#
8AC_INIT(email2trac.py.in)
9AC_SUBST(prefix)
10AC_SUBST(exec_prefix)
11AC_SUBST(pyexecdir)
12AC_SUBST(trac_user)
13AC_SUBST(mta_user)
14AC_SUBST(sysconfdir)
15
16#DEBUG=0
17
18#AM_PATH_PYTHON
19AM_PATH_PYTHON(2.4)
20AC_PROG_GCC_TRADITIONAL
21
22if test "x$DEBUG" = "x";then
23  DEBUG=0
24fi
25AC_SUBST(DEBUG)
26
27if test "x$INSTALL_USER" = "x";then
28  INSTALL_USER="root"
29fi
30AC_SUBST(INSTALL_USER)
31
32# Now a user can specify the TRAC user
33#
34AC_ARG_WITH(trac_user,
35[
36  --with-trac_user=USER    Specify the name of the user that trac use,
37                          default=www-data],
38
39  [case "${withval}" in
40        *) trac_user="${withval}" ;;
41  esac],
42
43  [trac_user="www-data"]
44)dnl           
45
46# Now a user can specify MTA TRAC user
47#
48AC_ARG_WITH(mta_user,
49[
50  --with-mta_user=USER    Specify the name of the user that your MTA use,
51                          default=nobody],
52
53  [case "${withval}" in
54        *) mta_user="${withval}" ;;
55  esac],
56
57  [mta_user="nobody"]
58)dnl           
59
60dnl ##### Path to email2trac.conf
61dnl This ugly kludge to get the sysconfdir path is needed because
62dnl autoconf doesn't actually set the prefix variable until later.
63if test "$sysconfdir" = '${prefix}/etc'; then
64  if test "x$prefix" = xNONE; then
65    email2trac_conf="$ac_default_prefix/etc/email2trac.conf"
66  else
67    email2trac_conf="$prefix/etc/email2trac.conf"
68  fi
69else
70  email2trac_conf="$sysconfdir/email2trac.conf"
71fi
72AC_DEFINE_UNQUOTED(SYSTEM_EMAIL2TRAC_CONF, "$email2trac_conf",
73                   [Full path for the system-wide email2trac.conf file.])
74
75AC_SUBST(email2trac_conf)
76AC_SUBST(SYSTEM_EMAIL2TRAC_CONF)
77
78
79AC_OUTPUT(
80        Makefile
81        email2trac.py
82        delete_spam.py
83        )
Note: See TracBrowser for help on using the repository browser.