forked from FontManager/font-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
207 lines (189 loc) · 5.9 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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
dnl
dnl Font Manager
dnl
dnl Simple font management for Gtk+ desktops
dnl
dnl Copyright (C) 2009 - 2016 Jerry Casiano
dnl
dnl
dnl Initialize autoconf
dnl
AC_PREREQ([2.69])
AC_INIT(
[font-manager],
[0.7.3],
[https://github.com/FontManager/master/issues],
[font-manager],
[http://fontmanager.github.io/],
)
AC_CONFIG_MACRO_DIR([m4])
AC_SUBST([ACLOCAL_AMFLAGS], ["-I $ac_macro_dir \${ACLOCAL_FLAGS}"])
dnl
dnl Initialize automake
dnl
AM_INIT_AUTOMAKE([1.11 foreign subdir-objects dist-bzip2])
AM_SILENT_RULES([yes])
dnl
dnl Check for basics
dnl
AC_PROG_CC()
AM_PROG_LIBTOOL
dnl Gtk.TextBuffer API break
AM_PROG_VALAC([0.28])
C_PROG_INSTALL()
AC_PROG_MKDIR_P()
AC_PROG_SED()
dnl
dnl i18n
dnl
AM_GLIB_GNU_GETTEXT()
GETTEXT_PACKAGE=AC_PACKAGE_NAME
AC_SUBST([GETTEXT_PACKAGE])
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[The name of the gettext domain])
dnl
dnl Call to intltoolize chokes on indentation
dnl
IT_PROG_INTLTOOL()
dnl
dnl Initialize libtool
dnl
LT_INIT()
dnl
dnl Check for libraries.
dnl
PKG_PROG_PKG_CONFIG()
PKG_CHECK_MODULES(XML, libxml-2.0 >= 2.9)
PKG_CHECK_MODULES(FREETYPE, freetype2 >= 2.5)
PKG_CHECK_MODULES(FONTCONFIG, fontconfig >= 2.1)
PKG_CHECK_MODULES(GOBJECT, gobject-2.0 >= 2.4)
PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.4)
PKG_CHECK_MODULES(JSONGLIB, json-glib-1.0 >= 0.15)
PKG_CHECK_MODULES(GMODULE, gmodule-2.0 >= 2.4)
PKG_CHECK_MODULES(GIO, gio-2.0 >= 2.4)
PKG_CHECK_MODULES(CAIRO, cairo >= 1.1)
PKG_CHECK_MODULES(GTK_316, gtk+-3.0 >= 3.16)
PKG_CHECK_MODULES(PANGO, pango >= 1.3)
PKG_CHECK_MODULES(PANGOCAIRO, pangocairo >= 1.3)
PKG_CHECK_MODULES(PANGOFT2, pangoft2 >= 1.3)
PKG_CHECK_MODULES(GEE, gee-0.8 >= 0.14)
PKG_CHECK_MODULES(GUCHARMAP, gucharmap-2.90 >= 3.12)
PKG_CHECK_MODULES(SQLITE3, sqlite3 >= 3.8)
dnl
dnl GSettings support
dnl
GLIB_GSETTINGS()
dnl
dnl Check for yelp-tools
dnl
AC_CHECK_PROG(YELP_TOOLS, "yelp-build", yes)
if test "x$YELP_TOOLS" != "xyes";
then
AC_MSG_ERROR([
Application requirements (yelp-tools) were not met:
Please install yelp-tools and try again.
https://wiki.gnome.org/Apps/Yelp/Tools
])
fi
dnl
dnl Initialize yelp support
dnl
YELP_HELP_INIT()
dnl
dnl Check for supporting applications
dnl
AC_CHECK_PROG(FILE_ROLLER, file-roller, yes)
AS_IF([test "x$FILE_ROLLER" = "xyes"], [
AC_SUBST(HAVE_FILE_ROLLER, [" -D HAVE_FILE_ROLLER"])
])
dnl
dnl Optional Extensions
dnl
# Don't check for extension requirements to avoid build deps.
AC_ARG_WITH([nautilus], AS_HELP_STRING([--with-nautilus], [Install Nautilus extension]))
AC_ARG_WITH([nemo], AS_HELP_STRING([--with-nemo], [Install Nemo extension]))
AC_ARG_WITH([thunarx], AS_HELP_STRING([--with-thunarx], [Install Thunar extension]))
AM_CONDITIONAL(COMPILE_PYTHON_EXTENSIONS, [test ''])
AM_CONDITIONAL(INSTALL_NAUTILUS_EXTENSION, [test ''])
AM_CONDITIONAL(INSTALL_NEMO_EXTENSION, [test ''])
AM_CONDITIONAL(INSTALL_THUNAR_EXTENSION, [test ''])
file_browser_support="no"
AS_IF(
[test "x$with_nautilus" = "xyes" -o "x$with_nemo" = "xyes" -o "x$with_thunarx" = "xyes"],
[file_browser_support="yes"]
)
dnl
dnl Debian policy discourages shipping compiled python files.
dnl Red Hat policy encourages shipping compiled python files.
dnl Others, who knows?
dnl
AC_ARG_ENABLE([pycompile], AS_HELP_STRING([--disable-pycompile], [Disable compilation of Python extensions]))
AS_IF([test "x$file_browser_support" != "xno" -a "x$enable_pycompile" != "xno"], [
AM_PATH_PYTHON
AM_CONDITIONAL([COMPILE_PYTHON_EXTENSIONS], [test "x$enable_pycompile" != "xno"])
])
AM_CONDITIONAL([INSTALL_NAUTILUS_EXTENSION],[test "x$with_nautilus" = "xyes"])
AM_CONDITIONAL([INSTALL_NEMO_EXTENSION],[test "x$with_nemo" = "xyes"])
AM_CONDITIONAL([INSTALL_THUNAR_EXTENSION], [test "x$with_thunarx" = "xyes"])
dnl
dnl Output files
dnl
AC_CONFIG_FILES([
Makefile
extensions/Makefile
help/Makefile
lib/Makefile
lib/Common/About.vala
lib/Common/Collections.vala
lib/Common/Constants.vala
lib/Common/Database.vala
lib/Common/Settings.vala
lib/FontConfig/Sources.vala
lib/Glue/Makefile
lib/UX/Utils/Utils.vala
po/Makefile.in
data/Makefile
data/org.gnome.FontManager.appdata.xml
data/org.gnome.FontManager.desktop
data/org.gnome.FontViewer.desktop
help/font-manager.1
src/Makefile
src/font-manager/Makefile
src/font-manager/Application.vala
src/font-manager/Main.vala
src/font-manager/Migration.vala
src/font-viewer/Makefile
src/font-viewer/Application.vala
tests/Makefile
])
AC_OUTPUT
dnl
dnl Useful? information
dnl
echo "
Font Manager $PACKAGE_VERSION
C compiler: ${CC}
Vala compiler: ${VALAC}
Installation prefix: ${prefix}
Archive Support: ${FILE_ROLLER}
File Browser Support: $file_browser_support
"
AS_IF([test "x$with_nautilus" = "xyes"], [
echo "
The Nautilus file manager extension requires nautilus-python
Nautilus python bindings are available on most distributions.
https://wiki.gnome.org/Projects/NautilusPython
"
])
AS_IF([test "x$with_nemo" = "xyes"], [
echo "
The Nemo file manager extension requires nemo-python
https://github.com/linuxmint/nemo-extensions/tree/master/nemo-python
"
])
AS_IF([test "x$with_thunarx" = "xyes"], [
echo "
The Thunar file manager extension requires nemo-python
http://goodies.xfce.org/projects/bindings/thunarx-python
Ubuntu/Debian users should see README file in extensions/
"
])