aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
blob: 15f09ef32c1582f6eecaab9f22fd684bcfd2748d (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
61
62
AC_INIT(indicator-bluetooth, 0.0.6)
AM_INIT_AUTOMAKE([1.11 no-dist-gzip dist-xz foreign])
AC_CONFIG_HEADERS([config.h])
AM_SILENT_RULES([yes])
AM_MAINTAINER_MODE

AM_PROG_VALAC([0.16.0])
AM_PROG_CC_C_O
LT_INIT

GLIB_GSETTINGS

dnl ###########################################################################
dnl Dependencies
dnl ###########################################################################

PKG_CHECK_MODULES(INDICATOR_BLUETOOTH_SERVICE, [
  glib-2.0
  gnome-bluetooth-1.0
  indicator3-0.4
  dbusmenu-gtk3-0.4
])

dnl ##############################
dnl # Custom Junk
dnl ##############################

AC_DEFUN([AC_DEFINE_PATH], [
        test "x$prefix" = xNONE && prefix="$ac_default_prefix"
        test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
        ac_define_path=`eval echo [$]$2`
        ac_define_path=`eval echo [$]ac_define_path`
        $1="$ac_define_path"
        AC_SUBST($1)
        ifelse($3, ,
                AC_DEFINE_UNQUOTED($1, "$ac_define_path"),
                AC_DEFINE_UNQUOTED($1, "$ac_define_path", $3))
])

dnl ###########################
dnl # Internationalization
dnl ###########################

IT_PROG_INTLTOOL([0.41.0])

GETTEXT_PACKAGE=indicator-bluetooth
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Name of the default get text domain])
AC_DEFINE_PATH(GNOMELOCALEDIR, "${datadir}/locale", [locale directory])

AM_GLIB_GNU_GETTEXT

dnl ###########################################################################
dnl Files to generate
dnl ###########################################################################

AC_OUTPUT([
Makefile
data/Makefile
po/Makefile.in
src/Makefile
])