1 dnl Copyright 2008-2009 Philip Allison <sane@not.co.uk>
3 dnl This file is part of cteddy.
5 dnl cteddy is free software: you can redistribute it and/or modify
6 dnl it under the terms of the GNU General Public License as published by
7 dnl the Free Software Foundation, either version 3 of the License, or
8 dnl (at your option) any later version.
10 dnl cteddy is distributed in the hope that it will be useful,
11 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
12 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 dnl GNU General Public License for more details.
15 dnl You should have received a copy of the GNU General Public License
16 dnl along with cteddy. If not, see <http://www.gnu.org/licenses/>.
18 dnl # Specify autoconf version requirements
19 dnl # Not strictly necessary - but it's the version on my system,
20 dnl # so for now, we'll pretend it's the required version.
23 dnl # Initialise autoconf and automake
24 dnl # Also specify automake version requirements (again, the version used
25 dnl # development will suffice for now).
26 AC_INIT([cteddy], [0.3], [sane@not.co.uk])
27 AC_CONFIG_SRCDIR([src/cteddy.cxx])
28 AM_INIT_AUTOMAKE([1.8.5])
30 dnl # cteddy is written in C++, of course. :)
35 dnl # Make config.h from config.h.in. (`autoheader' generates the latter.)
36 AC_CONFIG_HEADERS([config.h])
38 dnl # Output the command-line options given to this script
39 AC_DEFINE_UNQUOTED([CONFIGURE_OPTS],["$ac_configure_args"],[Options given to ./configure])
41 dnl # cteddy uses GTK+ and Cairo
43 PKG_CHECK_MODULES([CTEDDY], [gtk+-2.0 >= 2.10 cairo])
45 dnl # Optional X11 session management support
46 AC_ARG_ENABLE(sm, AS_HELP_STRING([--disable-sm], [Disable X11 session management support]),
48 if test "x$enableval" = "xyes"; then
56 if test "x$enable_sm" = "xyes"; then
57 PKG_CHECK_MODULES([SM], [sm])
58 AC_DEFINE([__USE_SM], 1, [Define if X11 session management support is enabled])
61 dnl # All done. Spit out the result.