Include dbus error name in error string
[gsmd2.git] / configure.ac
blobae3ccf05ede4476bab2c2ae7a2955a564fc1f29e
1 AC_INIT(gsmd2, 0.1, vesa.pikki@ixonos.com)
2 AM_INIT_AUTOMAKE()
3 AC_PROG_CC
4 AM_PROG_CC_C_O
5 AC_PROG_LIBTOOL
7 AC_CONFIG_HEADERS(config.h)
9 PKG_CHECK_MODULES(GLIB, [glib-2.0])
10 AC_SUBST(GLIB_CFLAGS)
11 AC_SUBST(GLIB_LIBS)
13 PKG_CHECK_MODULES(DBUS_GLIB, [dbus-1 dbus-glib-1])
14 AC_SUBST(DBUS_GLIB_CFLAGS)
15 AC_SUBST(DBUS_GLIB_LIBS)
17 AC_SUBST(SMS_CFLAGS)
18 AC_SUBST(SMS_LIBS)
20 PKG_CHECK_MODULES(SQLITE, [sqlite3])
21 AC_SUBST(SQLITE_CFLAGS)
22 AC_SUBST(SQLITE_LIBS)
24 AC_ARG_WITH([tests],
25             [AS_HELP_STRING([--enable-tests],
26                [enable tests (default is yes)])])
28 AM_CONDITIONAL([ENABLE_TESTS], [test "$enable_tests" != no])
30 AM_PATH_PYTHON([2.5],, [:])
31 AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != :])
33 py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
34 PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
35 AC_SUBST(PYTHON_INCLUDES)
37 AC_PATH_PROG([CYTHON], [cython], [no])
38 AM_CONDITIONAL([HAVE_CYTHON], [test "$CYTHON" != no])
42 AC_CONFIG_FILES(
43         Makefile
44         doxygen.cfg
45         libgsmd2.pc
46         libfreesmartphone.pc
47         gsmd2.service
48         src/Makefile
49         vendor/Makefile
50         libfreesmartphone/Makefile
51         test/Makefile
52         )
53 AC_OUTPUT