Import current code
[cteddy.git] / configure.ac
blob5b6187d90a1e6cd7ea3e5976d541b38d1d3f5583
1 dnl Copyright 2008 Philip Allison <sane@not.co.uk>
3 dnl    This file is part of cteddy.
4 dnl
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.
9 dnl
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.
14 dnl
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.
21 AC_PREREQ([2.59])
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.1], [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.  :)
31 AC_PROG_CXX
32 AC_PROG_CXXCPP
33 AC_LANG([C++])
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
42 PKG_PROG_PKG_CONFIG
43 PKG_CHECK_MODULES([CTEDDY], [gtk+-2.0 >= 2.10 cairo])
45 dnl # All done.  Spit out the result.
46 AC_CONFIG_FILES([
47         Makefile
48         src/Makefile
49         data/Makefile
51 AC_OUTPUT