~dobey/changeup/trunk

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Rodney Dawes
  • Date: 2010-02-08 22:37:29 UTC
  • Revision ID: rodney.dawes@canonical.com-20100208223729-r4bqi0x4j8yxb77q
Move client.py code into changeup/__init__.py
Add a .bzrignore
Add the COPYING
Add a build system
Update the dispatcher and test code to not use changeup.client

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl Process this file with autoconf to produce a configure script.
 
2
AC_PREREQ(2.53)
 
3
 
 
4
AC_INIT([changeup], [0.0.1])
 
5
AC_CONFIG_SRCDIR([changeup.service.in])
 
6
 
 
7
AM_INIT_AUTOMAKE([1.10 foreign])
 
8
 
 
9
# Check for python 2.5
 
10
AM_PATH_PYTHON([2.5])
 
11
 
 
12
# Pyflakes and trial paths
 
13
AC_PATH_PROG([PYFLAKES], [pyflakes], [true])
 
14
AC_PATH_PROG([TRIAL], [trial], [true])
 
15
 
 
16
# We need to do some magic for the Python path handling
 
17
AC_MSG_CHECKING([for pycentral])
 
18
AC_ARG_ENABLE([pycentral],
 
19
        AC_HELP_STRING([--enable-pycentral],
 
20
                        [Enable usage of pycentral [default=disabled]]),
 
21
        [enable_pycentral=$enableval],
 
22
        [enable_pycentral=no])
 
23
if test "x$enable_pycentral" = "xyes"; then
 
24
   pythondir="\${datadir}/pyshared"
 
25
   AC_SUBST(pythondir)
 
26
   AC_MSG_RESULT([yes])
 
27
else
 
28
   AC_MSG_RESULT([no])
 
29
fi
 
30
 
 
31
dnl ---------------------------------------------------------------------------
 
32
dnl - Are we specifying a different dbus root ?
 
33
dnl ---------------------------------------------------------------------------
 
34
AC_ARG_WITH(dbus-services,
 
35
              [AC_HELP_STRING([--with-dbus-services=<dir>],
 
36
              [where D-BUS services directory is])])
 
37
if ! test -z "$with_dbus_services" ; then
 
38
        DBUS_SERVICES_DIR="$with_dbus_services"
 
39
else
 
40
        # D-BUS 0.23 and higher use $prefix/share/dbus-1/services
 
41
        DBUS_SERVICES_DIR="\${datadir}/dbus-1/services"
 
42
fi
 
43
AC_SUBST(DBUS_SERVICES_DIR)
 
44
 
 
45
AC_CONFIG_FILES([
 
46
Makefile
 
47
changeup/Makefile
 
48
])
 
49
 
 
50
AC_OUTPUT