source: trunk/configure.in @ 417

Last change on this file since 417 was 332, checked in by bas, 14 years ago

Added a new configure option --with-install_user

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