source: emailtotracscript/trunk/configure.in @ 71

Last change on this file since 71 was 24, checked in by bas, 18 years ago

EmailtoTracScript?:

email2trac:

  • we can now set the default poth for the config file with configure for email2trac.py
  • Added svn keywords for all the files
  • Updated the install doc
  • Property svn:keywords set to Id
File size: 1.6 KB
RevLine 
[24]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 24 2006-01-15 12:46:09Z bas $
6#
7#
[23]8AC_INIT(email2trac.py.in)
[21]9AC_SUBST(prefix)
10AC_SUBST(exec_prefix)
11AC_SUBST(pyexecdir)
[22]12AC_SUBST(trac_user)
13AC_SUBST(mta_user)
[24]14AC_SUBST(sysconfdir)
[21]15
16AM_PATH_PYTHON
[22]17AC_PROG_GCC_TRADITIONAL
[21]18
[24]19# Now a user can specify the TRAC user
20#
[22]21AC_ARG_WITH(trac_user,
22[
23  --with-trac_user=USER    Specify the name of the user that trac use,
24                          default=www-data],
25
26  [case "${withval}" in
27        *) trac_user="${withval}" ;;
28  esac],
29
30  [trac_user="www-data"]
31)dnl           
32
[24]33# Now a user can specify MTA TRAC user
34#
[22]35AC_ARG_WITH(mta_user,
36[
37  --with-mta_user=USER    Specify the name of the user that your MTA use,
38                          default=nobody],
39
40  [case "${withval}" in
41        *) mta_user="${withval}" ;;
42  esac],
43
44  [mta_user="nobody"]
45)dnl           
[24]46
47dnl ##### Path to email2trac.conf
48dnl This ugly kludge to get the sysconfdir path is needed because
49dnl autoconf doesn't actually set the prefix variable until later.
50if test "$sysconfdir" = '${prefix}/etc'; then
51  if test "x$prefix" = xNONE; then
52    email2trac_conf="$ac_default_prefix/etc/email2trac.conf"
53  else
54    email2trac_conf="$prefix/etc/email2trac.conf"
55  fi
56else
57  email2trac_conf="$sysconfdir/email2trac.conf"
58fi
59AC_DEFINE_UNQUOTED(SYSTEM_EMAIL2TRAC_CONF, "$email2trac_conf",
60                   [Full path for the system-wide email2trac.conf file.])
61
62AC_SUBST(email2trac_conf)
63AC_SUBST(SYSTEM_EMAIL2TRAC_CONF)
64
65
[21]66AC_OUTPUT(
67        Makefile
[22]68        email2trac.py
69        delete_spam.py
[21]70        )
Note: See TracBrowser for help on using the repository browser.