forked from baedert/corebird
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
111 lines (87 loc) · 2.71 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
AC_INIT([corebird],[0.7],[[email protected]])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([foreign no-dist-gzip dist-bzip2])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
#AM_MAINTAINER_MODE
LT_INIT
AC_PROG_CC
AC_PROG_CC_STDC
AM_PROG_VALAC([0.24])
AC_PROG_INSTALL
IT_PROG_INTLTOOL([0.40])
# Vala Packages {{{
pkg_modules="gtk+-3.0 >= 3.12
glib-2.0 >= 2.40
rest-0.7
libsoup-2.4
gee-0.8
json-glib-1.0
sqlite3"
PKG_CHECK_MODULES(CB, [$pkg_modules])
CB_VALA_FLAGS=" \
--pkg gtk+-3.0 \
--pkg json-glib-1.0 \
--pkg rest-0.7 \
--pkg gee-0.8 \
--pkg sqlite3 \
--pkg libsoup-2.4 \
--pkg glib-2.0 \
--target-glib=2.38 \
--gresources=\$(top_srcdir)/resources.xml \
--vapidir=\$(top_srcdir)/vapi/ \
--thread \
--enable-checking"
# }}}
AC_SUBST(CB_CFLAGS)
AC_SUBST(CB_LIBS)
AC_SUBST(CB_VALA_FLAGS)
AC_PATH_PROG(GLIB_COMPILE_RESOURCES, glib-compile-resources)
if test "${CC}" = "clang"; then
CB_CFLAGS="$CB_CFLAGS -Wno-incompatible-pointer-types -Wno-incompatible-pointer-types-discards-qualifiers"
fi
# --enable-catalog
AC_ARG_ENABLE(catalog, AC_HELP_STRING([--enable-catalog], [Install Glade catalog]),, enable_catalog=no)
AM_CONDITIONAL([ENABLE_CATALOG], [ test "$enable_catalog" = "yes" ])
# --enable-debug
AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug], [Enable debugging]),, enable_debug=no)
AM_CONDITIONAL([ENABLE_DEBUG], [ test "$enable_debug" = "yes"])
if test "$enable_debug" = "yes"; then
CB_VALA_FLAGS="$CB_VALA_FLAGS -D DEBUG"
fi
GLIB_GSETTINGS
# Gettext stuff
GETTEXT_PACKAGE=corebird
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [Gettext Package])
AC_SUBST(GETTEXT_PACKAGE)
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.18.3])
AM_GLIB_GNU_GETTEXT
AC_CONFIG_FILES([Makefile
src/Makefile
ui/Makefile
data/Makefile
data/org.baedert.corebird.desktop.in
data/symbolics/Makefile
assets/Makefile
assets/128x128/Makefile
assets/96x96/Makefile
assets/64x64/Makefile
assets/48x48/Makefile
assets/32x32/Makefile
assets/24x24/Makefile
assets/16x16/Makefile
po/Makefile.in
sql/Makefile
sql/accounts/Makefile
sql/init/Makefile
tests/Makefile
src/util/Config.vala])
AC_OUTPUT
echo "
Corebird $VERSION
Prefix: ${prefix}
Vala Compiler: ${VALAC}
C Compiler: ${CC} ${CFLAGS}
Catalog: $enable_catalog
Debugging: $enable_debug
"