forked from GNOME/gnome-flashback
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
152 lines (116 loc) · 4.85 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
dnl **************************************************************************
dnl Define version info
dnl **************************************************************************
m4_define([gf_major_version], [3])
m4_define([gf_minor_version], [18])
m4_define([gf_micro_version], [1])
m4_define([gf_version], [gf_major_version.gf_minor_version.gf_micro_version])
dnl **************************************************************************
dnl Define bugzilla address
dnl **************************************************************************
m4_define([gf_bugzilla_url],
[https://bugzilla.gnome.org/enter_bug.cgi?product=budgie-helper])
dnl **************************************************************************
dnl Initialize autoconf
dnl **************************************************************************
AC_INIT([budgie-helper], [gf_version], [gf_bugzilla_url])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([build-aux])
dnl **************************************************************************
dnl Set release policy
dnl **************************************************************************
AX_IS_RELEASE([git-directory])
dnl **************************************************************************
dnl Enable debug
dnl **************************************************************************
AX_CHECK_ENABLE_DEBUG([yes])
dnl **************************************************************************
dnl Add warning flags
dnl **************************************************************************
AX_COMPILER_FLAGS([WARN_CFLAGS], [WARN_LDFLAGS])
dnl **************************************************************************
dnl Initialize automake
dnl **************************************************************************
AM_INIT_AUTOMAKE([1.13 no-dist-gzip dist-xz tar-ustar -Wno-portability])
AM_MAINTAINER_MODE([enable])
AM_SILENT_RULES([yes])
dnl **************************************************************************
dnl Initialize libtool
dnl **************************************************************************
LT_INIT
LT_LIB_M
dnl **************************************************************************
dnl Check for required programs
dnl **************************************************************************
AC_PROG_CC
AC_PATH_PROG([GLIB_COMPILE_RESOURCES], [glib-compile-resources])
dnl **************************************************************************
dnl Internationalization
dnl **************************************************************************
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.19.4])
GETTEXT_PACKAGE=budgie-helper
AC_SUBST([GETTEXT_PACKAGE])
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"],
[Define the gettext package to be used])
dnl **************************************************************************
dnl Desktop settings support
dnl **************************************************************************
GLIB_GSETTINGS
dnl **************************************************************************
dnl Check forrequired packages
dnl **************************************************************************
GTK_REQUIRED=3.15.2
LIBGNOME_DESKTOP_REQUIRED=3.12.0
GLIB_REQUIRED=2.44.0
GSETTINGS_DESKTOP_SCHEMAS_REQUIRED=3.12.0
PKG_CHECK_MODULES([BUDGIE_HELPER], [
gtk+-3.0 >= $GTK_REQUIRED
])
PKG_CHECK_MODULES([AUTOMOUNT_MANAGER], [
gtk+-3.0 >= $GTK_REQUIRED
gsettings-desktop-schemas >= $GSETTINGS_DESKTOP_SCHEMAS_REQUIRED
])
PKG_CHECK_MODULES([DESKTOP_BACKGROUND], [
gtk+-3.0 >= $GTK_REQUIRED
gnome-desktop-3.0 >= $LIBGNOME_DESKTOP_REQUIRED
])
PKG_CHECK_MODULES([WORKAROUNDS], [
glib-2.0 >= $GLIB_REQUIRED
gtk+-3.0 >= $GTK_REQUIRED
x11
])
dnl **************************************************************************
dnl Process .in files
dnl **************************************************************************
AC_CONFIG_FILES([
Makefile
data/Makefile
data/autostart/Makefile
data/schemas/Makefile
budgie-helper/Makefile
budgie-helper/libautomount-manager/Makefile
budgie-helper/libdesktop-background/Makefile
budgie-helper/libworkarounds/Makefile
po/Makefile.in
])
AC_OUTPUT
dnl **************************************************************************
dnl Show summary
dnl **************************************************************************
echo ""
echo " Budgie Helper $VERSION"
echo " `echo Budgie Helper $VERSION | sed "s/./=/g"`"
echo ""
echo " srcdir ......................: ${srcdir}"
echo ""
echo " compiler ....................: ${CC}"
echo " cflags ......................: ${CFLAGS}"
echo ""
echo " prefix ......................: ${prefix}"
echo " exec_prefix .................: ${exec_prefix}"
echo " libdir ......................: ${libdir}"
echo " sysconfdir ..................: ${sysconfdir}"
echo " libexecdir ..................: ${libexecdir}"
echo ""