-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
120 lines (96 loc) · 3.01 KB
/
configure.ac
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
AC_PREREQ(2.61)
# package version number (not shared library version)
# odd micro numbers indicate in-progress development
# even micro numbers indicate released versions
m4_define(meego_panel_date_time_version_major, 0)
m4_define(meego_panel_date_time_version_minor, 3)
m4_define(meego_panel_date_time_version_micro, 5)
m4_define([meego_panel_date_time_version],
[meego_panel_date_time_version_major.meego_panel_date_time_version_minor.meego_panel_date_time_version_micro])
m4_define([meego_panel_date_time_api_version],
[meego_panel_date_time_version_major.meego_panel_date_time_version_minor])
AC_INIT(meego-panel-datetime, meego_panel_date_time_version)
AM_INIT_AUTOMAKE(meego-panel-datetime, meego_panel_date_time_version)
AC_CONFIG_HEADERS(config.h)
AC_CONFIG_MACRO_DIR([m4])
AC_CANONICAL_HOST
AS_ALL_LINGUAS
IT_PROG_INTLTOOL([0.35.0])
# Check for programs
AC_PROG_CC_STDC
AC_PROG_LIBTOOL
AC_PROG_CC
AC_PROG_INSTALL
AC_ISC_POSIX
AC_HEADER_STDC
AM_PROG_CC_C_O
CFLAGS="$CFLAGS -Wall"
PKG_CHECK_MODULES(MPL, meego-panel >= 0.50.0)
MEEGO_PANELS_DIR=`$PKG_CONFIG --variable=meego_panel_panels_dir meego-panel`
AC_SUBST(MEEGO_PANELS_DIR)
# enable pkg-config
PKG_PROG_PKG_CONFIG
PKG_CHECK_MODULES(DATETIME, glib-2.0
clutter-1.0
mx-1.0
gweather
gconf-2.0
libnotify
libcanberra
libjana-ecal
penge
geoclue
libxml-2.0)
AC_SUBST(DATETIME_CFLAGS)
AC_SUBST(DATETIME_LIBS)
AC_ARG_ENABLE([meego-desktop-file],
[AC_HELP_STRING([--disable-meego-desktop-file],
[Disable installation of meego desktop file])],
[enable_mdesktop=$enableval],
[enable_mdesktop=yes])
AM_CONDITIONAL([ENABLE_MEEGO_DESKTOP_FILE], [test "x$enable_mdesktop" = "xyes"])
AC_ARG_ENABLE([cache],
[AC_HELP_STRING([--enable-cache],
[Enable Nbtk image cache generation])],
[],
[enable_cache=no])
AS_IF([test "x$enable_cache" = "xyes"],
[
AC_CHECK_PROG([NBTK_CREATE_IMAGE_CACHE],
[nbtk-create-image-cache],
[$(which nbtk-create-image-cache)])
])
AM_CONDITIONAL([ENABLE_CACHE], [test "x$enable_cache" = "xyes"])
# i18n
AC_SUBST(ALL_LINGUAS)
AM_GLIB_GNU_GETTEXT
AC_DEFINE(GETTEXT_PACKAGE, ["meego-panel-datetime"], [Package name for gettext])
GETTEXT_PACKAGE=meego-panel-datetime
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],
["$GETTEXT_PACKAGE"],
[Gettext domain name])
AM_GLIB_GNU_GETTEXT
desktopentrydir=${datadir}/applications
AC_SUBST(desktopentrydir)
icondir=${datadir}/icons/hicolor/32x32/apps
AC_SUBST(icondir)
dnl ***********
dnl GConf stuff
dnl ***********
AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
AM_GCONF_SOURCE_2
# Output files
AC_OUTPUT([Makefile
src/Makefile
data/Makefile
data/theme/Makefile
po/Makefile.in
])
echo ""
echo " meego-panel-datetime $VERSION"
echo " ====================="
echo " Documentation: ${enable_gtk_doc}"
echo ""
echo " To build the project, run \"make\""
echo ""