-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
95 lines (78 loc) · 2.42 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
AC_INIT([osso-addressbook], [4.3])
AC_CONFIG_MACRO_DIRS([m4])
AM_INIT_AUTOMAKE
AM_CONFIG_HEADER(config.h)
AC_SUBST(OSSO_ABOOK_CFLAGS)
AC_SUBST(OSSO_ABOOK_LIBS)
AC_PROG_CC
AM_PROG_CC_STDC
AM_PROG_CC_C_O
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AM_GCONF_SOURCE_2
AC_PATH_PROG(GCONFTOOL, gconftool-2)
PKG_PROG_PKG_CONFIG([0.28])
PKG_CHECK_MODULES(
OSSO_ABOOK,
libosso-abook-1.0
rtcom-eventlogger
rtcom-eventlogger-ui
rtcom-accounts-ui-client
glib-2.0
gobject-2.0
hildon-1
dbus-1
hildon-fm-2)
desktopentrydir=`$PKG_CONFIG osso-af-settings --variable=desktopentrydir`
serviceentrydir=`$PKG_CONFIG dbus-glib-1 --variable=prefix`/share/dbus-1/services
backupsettingsdir=/etc/osso-backup/applications
prebackupdir=/etc/osso-backup/pre-backup.d/
restoredir=/etc/osso-backup/restore.d/always/
ossocudscriptsdir=/etc/osso-cud-scripts
# Define as variables in Makefiles
AC_SUBST(desktopentrydir)
AC_SUBST(serviceentrydir)
AC_SUBST(backupsettingsdir)
AC_SUBST(prebackupdir)
AC_SUBST(restoredir)
AC_SUBST(ossocudscriptsdir)
AC_ARG_ENABLE(debug, [ --enable-debug compile with DEBUG],,enable_debug=no)
if test "x$enable_debug" = "xyes"; then
DEBUG_FLAGS="-DDEBUG"
fi
AC_ARG_ENABLE(cast-checks, [ --disable-cast-checks compile with GLIB cast checks disabled],[cchecks=${enableval}],cchecks=yes)
if test "x$cchecks" = "xno"; then
DEBUG_FLAGS="$DEBUG_FLAGS -DG_DISABLE_CAST_CHECKS"
fi
AC_ARG_ENABLE(asserts, [ --disable-asserts compile with GLIB assertions disabled],[asserts=${enableval}],asserts=yes)
if test "x$asserts" = "xno"; then
DEBUG_FLAGS="$DEBUG_FLAGS -DG_DISABLE_ASSERTS"
fi
AC_ARG_ENABLE(debug,
[ --enable-debug enable printing of debug messages],
[ddebug=${enableval}],ddebug=no)
if test "x$ddebug" != "xyes"; then
CFLAGS="$CFLAGS -DG_DEBUG_DISABLE"
fi
AC_ARG_ENABLE([maemo-launcher],
[AS_HELP_STRING([--enable-maemo-launcher],
[build with maemo-launcher support])],
[case "${enableval}" in
yes) maemo_launcher=true ;;
no) maemo_launcher=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-maemo-launcher]) ;;
esac], [maemo_launcher=false])
if test x$maemo_launcher = xtrue
then
PKG_CHECK_MODULES(MAEMO_LAUNCHER, [maemo-launcher-app])
AC_SUBST(MAEMO_LAUNCHER_CFLAGS)
MAEMO_LAUNCHER_LIBS="-Xcompiler \"$MAEMO_LAUNCHER_LIBS\""
AC_SUBST(MAEMO_LAUNCHER_LIBS)
echo "Enabling maemo launcher"
fi
AC_OUTPUT([
Makefile
src/Makefile
data/Makefile
data/com.nokia.osso_addressbook.service
])