summaryrefslogtreecommitdiff
path: root/configure.ac
blob: 0737399c68643af6534439b238738bc116d6c5e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
AC_PREREQ([2.64])
AC_INIT([d-feet],
	[0.3.7],
	[http://bugzilla.gnome.org/enter_bug.cgi?product=d-feet],
        [d-feet],
        [http://wiki.gnome.org/DFeet])

AM_INIT_AUTOMAKE([1.11 -Wall foreign no-define tar-ustar no-dist-gzip dist-xz])

GLIB_GSETTINGS

PKG_PROG_PKG_CONFIG

GNOME_COMPILE_WARNINGS([maximum])

YELP_HELP_INIT

AM_PATH_PYTHON([2.7])

PKG_CHECK_MODULES(DFEET, [
  gtk+-3.0 >= 3.6
])

AC_ARG_ENABLE(tests,
  AS_HELP_STRING([--disable-tests],
                 [do not run tests]),
    enable_tests=$enableval, enable_tests=yes)

if test x$enable_tests = xyes; then
  AC_CHECK_PROG([PEP8], [pep8], [yes])
  test -z "$PEP8" && AC_MSG_ERROR([pep8 binary not found but needed for testsuite. either install it or run with the argument --disable-tests to not run the testsuite.])
fi
AM_CONDITIONAL(ENABLE_TESTS, test "x$enable_tests" = "xyes")

# i18n stuff
IT_PROG_INTLTOOL([0.40.0])

AM_GNU_GETTEXT_VERSION([0.17])
AM_GNU_GETTEXT([external])

GETTEXT_PACKAGE=AC_PACKAGE_NAME
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Package name for gettext])

GOBJECT_INTROSPECTION_REQUIRE([0.9.6])

AC_CONFIG_FILES([
	Makefile
	po/Makefile.in
	src/Makefile
	src/dfeet/Makefile
	src/tests/Makefile
	data/Makefile
	data/d-feet.desktop.in
	data/icons/Makefile
	data/ui/Makefile
	help/Makefile
])

AC_OUTPUT