-
Notifications
You must be signed in to change notification settings - Fork 129
/
configure.ac
121 lines (96 loc) · 2.8 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
dnl Process this file with autoconf to produce a configure script.
AC_INIT([liferea],[1.15.8],[[email protected]])
AC_CANONICAL_HOST
AC_CONFIG_SRCDIR([src/feedlist.c])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([1.11 foreign std-options -Wall -Werror])
AM_SILENT_RULES([yes])
dnl Needed for automake 1.12
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
AC_PREREQ(2.59)
LT_INIT
IT_PROG_INTLTOOL([0.40.4])
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_MAKE_SET
AC_SYS_LARGEFILE
GLIB_GSETTINGS
AC_CHECK_FUNCS([strsep])
PKG_PROG_PKG_CONFIG()
################################################################################
# Mandatory library dependencies
pkg_modules=" gtk+-3.0 >= 3.24.0
glib-2.0 >= 2.68.0
gio-2.0 >= 2.50.0
pango >= 1.4.0
libxml-2.0 >= 2.6.27
libxslt >= 1.1.19
sqlite3 >= 3.7.0
gmodule-2.0 >= 2.0.0
gthread-2.0
libsoup-3.0 >= 3.0.7
webkit2gtk-4.1
json-glib-1.0
gobject-introspection-1.0
gsettings-desktop-schemas
libpeas-1.0 >= 1.0.0
libpeas-gtk-1.0 >= 1.0.0
fribidi >= 0.19.7"
################################################################################
PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
AC_CHECK_LIB(glib-2.0, g_memdup2, [PACKAGE_CFLAGS="$PACKAGE_CFLAGS -DHAVE_G_MEMDUP2"])
AC_CHECK_LIB(glib-2.0, g_time_zone_new_identifier, [PACKAGE_CFLAGS="$PACKAGE_CFLAGS -DHAVE_G_TIME_ZONE_NEW_IDENTIFIER"])
AC_SUBST(PACKAGE_CFLAGS)
AC_SUBST(PACKAGE_LIBS)
PKG_CHECK_MODULES([WEB_EXTENSION], [
webkit2gtk-web-extension-4.1
])
AC_SUBST([WEB_EXTENSION_CFLAGS])
AC_SUBST([WEB_EXTENSION_LIBS])
uname=`uname`
AC_DEFINE_UNQUOTED(OS, $uname, [defines a OS version string, used for OS specific code])
AC_DEFINE_UNQUOTED(OSNAME, "$uname", [defines a OS version string, used for the user agent string])
AC_MSG_RESULT(user agent OS = $uname)
################################################################################
# Plugins via Introspection
GOBJECT_INTROSPECTION_CHECK([0.9.3])
################################################################################
AM_GLIB_GNU_GETTEXT
GETTEXT_PACKAGE=liferea
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["${GETTEXT_PACKAGE}"], [gettext domain])
AC_CONFIG_FILES([
Makefile
net.sf.liferea.gschema.xml
src/Makefile
src/webkit/Makefile
src/webkit/web_extension/Makefile
src/parsers/Makefile
src/fl_sources/Makefile
src/ui/Makefile
src/tests/Makefile
doc/Makefile
doc/html/Makefile
xslt/Makefile
man/Makefile
man/it/Makefile
pixmaps/Makefile
pixmaps/16x16/Makefile
pixmaps/22x22/Makefile
pixmaps/24x24/Makefile
pixmaps/32x32/Makefile
pixmaps/48x48/Makefile
pixmaps/scalable/Makefile
opml/Makefile
glade/Makefile
po/Makefile.in
src/liferea-add-feed
])
AC_OUTPUT
echo
echo "$PACKAGE $VERSION"
echo
eval eval echo Liferea will be installed in $bindir.
echo
echo configure complete, now type \'make\'
echo