source: trunk/configure.in

Last change on this file was 628, checked in by bas, 8 years ago

renamed SARA to SURFsara

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