source: trunk/configure.in @ 261

Last change on this file since 261 was 261, checked in by bas, 12 years ago

configure.in:

  • specify that we need at least python 2.4
  • Property svn:keywords set to Id
File size: 1.6 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 261 2009-04-07 12:32:25Z 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
27# Now a user can specify the TRAC user
28#
29AC_ARG_WITH(trac_user,
30[
31  --with-trac_user=USER    Specify the name of the user that trac use,
32                          default=www-data],
33
34  [case "${withval}" in
35        *) trac_user="${withval}" ;;
36  esac],
37
38  [trac_user="www-data"]
39)dnl           
40
41# Now a user can specify MTA TRAC user
42#
43AC_ARG_WITH(mta_user,
44[
45  --with-mta_user=USER    Specify the name of the user that your MTA use,
46                          default=nobody],
47
48  [case "${withval}" in
49        *) mta_user="${withval}" ;;
50  esac],
51
52  [mta_user="nobody"]
53)dnl           
54
55dnl ##### Path to email2trac.conf
56dnl This ugly kludge to get the sysconfdir path is needed because
57dnl autoconf doesn't actually set the prefix variable until later.
58if test "$sysconfdir" = '${prefix}/etc'; then
59  if test "x$prefix" = xNONE; then
60    email2trac_conf="$ac_default_prefix/etc/email2trac.conf"
61  else
62    email2trac_conf="$prefix/etc/email2trac.conf"
63  fi
64else
65  email2trac_conf="$sysconfdir/email2trac.conf"
66fi
67AC_DEFINE_UNQUOTED(SYSTEM_EMAIL2TRAC_CONF, "$email2trac_conf",
68                   [Full path for the system-wide email2trac.conf file.])
69
70AC_SUBST(email2trac_conf)
71AC_SUBST(SYSTEM_EMAIL2TRAC_CONF)
72
73
74AC_OUTPUT(
75        Makefile
76        email2trac.py
77        delete_spam.py
78        )
Note: See TracBrowser for help on using the repository browser.