-
Notifications
You must be signed in to change notification settings - Fork 4
/
configure.ac
executable file
·59 lines (47 loc) · 1.65 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
AC_PREREQ([2.52])
AC_INIT(osso-systemui, 0.2.0.19)
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE
AM_CONFIG_HEADER(config.h)
AC_CONFIG_FILES([
Makefile
src/Makefile
])
AC_ISC_POSIX
AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC
AC_DISABLE_STATIC
AC_PROG_LIBTOOL
PKG_CHECK_MODULES([HILDON], [hildon-1],
[AC_DEFINE(WITH_HILDON,[1],[Use Hildon])],
[PKG_CHECK_MODULES(HILDON, gtk+-3.0, [AC_DEFINE(WITH_GTK3,[1],[Use Gtk3])])])
PKG_CHECK_MODULES(OSSO, libosso)
PKG_CHECK_MODULES(GCONF, gconf-2.0)
PKG_CHECK_MODULES(DBUS, dbus-1)
PKG_CHECK_MODULES(X11, x11)
PKG_CHECK_MODULES(OSSO_SYSTEMUI_DBUS, osso-systemui-dbus)
PKG_CHECK_MODULES(DBUS_GLIB, dbus-glib-1)
PKG_CHECK_MODULES(CANBERRA, libcanberra)
AC_ARG_ENABLE(cast-checks, [ --disable-cast-checks compile with GLIB cast checks disabled],[cchecks=${enableval}],cchecks=yes)
if test "x$cchecks" = "xno"; then
CFLAGS="$CFLAGS -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
CFLAGS="$CFLAGS -DG_DISABLE_ASSERTS"
fi
AC_ARG_ENABLE(checks, [ --disable-checks compile with GLIB checks disabled],[checks=${enableval}],checks=yes)
if test "x$checks" = "xno"; then
CFLAGS="$CFLAGS -DG_DISABLE_CHECKS"
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
TEXT_DOMAIN=systemui
AC_SUBST(TEXT_DOMAIN)
AC_DEFINE_UNQUOTED(TEXT_DOMAIN, "$TEXT_DOMAIN", [Text domain])
localedir=${datadir}/locale
AC_SUBST(localedir)
AC_OUTPUT