forked from community-ssu/maemo-security-certman-applet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
142 lines (108 loc) · 4.17 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
AC_INIT([maemo-security-certman-applet], [0.2.0])
# Tests that source dir exists
AC_CONFIG_SRCDIR([src/applet_main.c])
# Initialize automake
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
AC_CONFIG_HEADERS([config.h])
LIBRARY_VERSION=0
AC_SUBST(LIBRARY_VERSION)
# For automake: generate rules to reproduce config.h, if needed
AC_CANONICAL_HOST
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_SUBST(LIBTOOL_DEPS)
AC_C_CONST
AC_HEADER_STDC
AC_CHECK_HEADERS([libintl.h])
AC_HEADER_STDBOOL
# Check module dependencies, will automatically include all needed
# compiler options to DEPS-variables, see src/Makefile.am for details
# certificate manager engine doesn't compile with stricter options, loose
# them
#CFLAGS="$CFLAGS -Wall -Wno-format-y2k -ansi -Wmissing-prototypes -Wmissing-declarations -Werror -std=c99 -DDEBUG"
CFLAGS="$CFLAGS -Wall -Wno-format-y2k -ansi -Wmissing-prototypes \
-Wmissing-declarations -std=c99 -DDEBUG -D_REENTRANT"
AC_SUBST(CFLAGS)
PKG_CHECK_MODULES(X11, x11)
AC_SUBST(X11_LIBS)
AC_SUBST(X11_CFLAGS)
PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.4.0)
AC_SUBST(GTK_LIBS)
AC_SUBST(GTK_CFLAGS)
GTK_PREFIX=`pkg-config gtk+-2.0 --variable=prefix`
AC_SUBST(GTK_PREFIX)
PKG_CHECK_MODULES(DBUS, dbus-glib-1 >= 0.60)
AC_SUBST(DBUS_LIBS)
AC_SUBST(DBUS_CFLAGS)
PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.6.0)
AC_SUBST(GLIB_LIBS)
AC_SUBST(GLIB_CFLAGS)
PKG_CHECK_MODULES(OSSO, libosso >= 1.0.0)
AC_SUBST(OSSO_LIBS)
AC_SUBST(OSSO_CFLAGS)
PKG_CHECK_MODULES(HILDON,
hildon-1 >= 1.0.0
hildon-control-panel >= 0.10.0
hildon-fm-2 >= 0.8.2
)
AC_SUBST(HILDON_LIBS)
AC_SUBST(HILDON_CFLAGS)
dnl PKG_CHECK_MODULES(GCONF, gconf-2.0 >= 2.6)
dnl AC_SUBST(GCONF_CFLAGS)
dnl AC_SUBST(GCONF_LIBS)
PKG_CHECK_MODULES(GIO, gio-2.0, gio-unix-2.0)
AC_SUBST(GIO_CFLAGS)
AC_SUBST(GIO_LIBS)
PKG_CHECK_MODULES(OPENSSL, [ openssl >= 0.9.8 ])
AC_SUBST(OPENSSL_CFLAGS)
AC_SUBST(OPENSSL_LIBS)
PKG_CHECK_MODULES(MAEMOSEC, maemosec >= 0.0.3 maemosec-certman >= 0.0.3 )
AC_SUBST(MAEMOSEC_CFLAGS)
AC_SUBST(MAEMOSEC_LIBS)
PKG_CHECK_MODULES(COMAPP, comapp >= 1.8.04 )
AC_SUBST(COMAPP_CFLAGS)
AC_SUBST(COMAPP_LIBS)
PKG_CHECK_MODULES(OSSOSETTINGS, osso-af-settings >= 0.8.1)
localedir=`pkg-config osso-af-settings --variable=localedir`
# Localisation-related
GETTEXT_PACKAGE=$PACKAGE
AC_SUBST(GETTEXT_PACKAGE)
# AM_GLIB_GNU_GETTEXT
AC_PATH_XTRA
AC_SUBST(X_LIBS)
AC_SUBST(X_CFLAGS)
hildoncpdesktopentrydir=`$PKG_CONFIG --variable=plugindesktopentrydir hildon-control-panel`
hildondesktopentrydir=${datadir}/applications/hildon
hildonpluginlibdir=`$PKG_CONFIG --variable=pluginlibdir hildon-control-panel`
hildonpixmapdir=${datadir}/icons/hicolor
AC_SUBST(localedir)
AC_SUBST(hildondesktopentrydir)
AC_SUBST(hildoncpdesktopentrydir)
AC_SUBST(hildonpluginlibdir)
AC_SUBST(appleticonsdir)
AC_SUBST(hildonpixmapdir)
# Mime stuff
dnl MIME-type registration check (2.6 / 2.8 version)
AC_PATH_PROG(UPDATE_MIME_DATABASE, update-mime-database, no)
AM_CONDITIONAL(HAVE_26_MIME, test x$UPDATE_MIME_DATABASE != xno)
AC_PATH_PROG(UPDATE_DESKTOP_DATABASE, update-desktop-database, no)
AM_CONDITIONAL(HAVE_28_MIME, test x$UPDATE_DESKTOP_DATABASE != xno)
dbuslibpathdir=`$PKG_CONFIG --variable=libdir dbus-1`
dbusconfdir=/etc/dbus-1/system.d
dbusservdir=${dbuslibpathdir}/dbus-1.0/services
AC_SUBST(dbuslibpathdir)
AC_SUBST(dbusconfdir)
AC_SUBST(dbusservdir)
AC_CONFIG_FILES(pkgconfig/maemosec-certman-applet.pc:pkgconfig/maemosec-certman-applet.pc.in)
AC_CONFIG_FILES(cfg/maemosec_certman_applet.desktop:cfg/maemosec_certman_applet.desktop.in)
AC_CONFIG_FILES(cfg/maemosec_certman_mimehandler.desktop:cfg/maemosec_certman_mimehandler.desktop.in)
AC_CONFIG_FILES(cfg/maemosec_certman.service:cfg/maemosec_certman.service.in)
AC_CONFIG_FILES(etc/maemosec_certman.schemas:etc/maemosec_certman.schemas.in)
AC_PROG_MAKE_SET
AC_OUTPUT([
Makefile
etc/Makefile
mime/Makefile
src/Makefile
])