-
Notifications
You must be signed in to change notification settings - Fork 2
/
configure.ac
128 lines (102 loc) · 3.19 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
AC_INIT([gnome-app-store], 0.1)
dnl AC_CONFIG_SRCDIR([src])
AM_INIT_AUTOMAKE([1.9 foreign no-dist-gzip dist-bzip2 tar-ustar])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_PREFIX_DEFAULT(/usr)
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
#
# Enable Debug
#
AC_ARG_ENABLE(debug,
AS_HELP_STRING([--enable-debug],
[turn on debugging]),,
enable_debug=yes)
if test "$enable_debug" = "yes"; then
DEBUG_CFLAGS="-DG_ENABLE_DEBUG"
else
if test "x$enable_debug" = "xno"; then
DEBUG_CFLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS"
else
DEBUG_CFLAGS=""
fi
fi
AC_SUBST(DEBUG_CFLAGS)
#
# Enable Devel Mode
#
AC_ARG_ENABLE(devel_mode,
AS_HELP_STRING([--enable-devel-mode],
[turn on devel mode]),,
enable_devel_mode=yes)
if test "$enable_devel_mode" = "yes"; then
AC_DEFINE(DEVEL_MODE,1,[enable devel mode])
fi
#
# Enable Profiling
#
AC_ARG_ENABLE(profiling,
AS_HELP_STRING([--enable-profiling],
[turn on profiling]),,
enable_profiling=yes)
if test "$enable_profiling" = "yes"; then
AC_DEFINE(ENABLE_PROFILING,1,[enable profiling])
fi
# Sets GLIB_GENMARSHAL and GLIB_MKENUMS
AM_PATH_GLIB_2_0()
G_IR_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
AC_SUBST(G_IR_SCANNER)
G_IR_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
AC_SUBST(G_IR_COMPILER)
G_IR_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
AC_SUBST(G_IR_GENERATE)
GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
AC_SUBST(GIRDIR)
TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
AC_SUBST(TYPELIBDIR)
LT_VERSION=2:0:0
AC_SUBST(LT_VERSION)
LT_PREREQ([2.2.6])
LT_INIT([dlopen win32-dll disable-static])
AC_PROG_CC
PKG_PROG_PKG_CONFIG
dnl If you add a version number here, you *must* add an AC_SUBST line for
dnl it too, or it will never make it into the spec file!
LIBXML_REQUIRED=2.0
GLIB_REQUIRED=2.19.1
CLUTTER_REQUIRED=1.7.4
AC_SUBST(LIBXML_REQUIRED)
AC_SUBST(GLIB_REQUIRED)
AC_SUBST(CLUTTER_REQUIRED)
dnl pkg-config dependency checks
PKG_CHECK_MODULES(COMMON, dbus-glib-1 gobject-2.0 gio-2.0)
PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_REQUIRED)
PKG_CHECK_MODULES(LIBSOUP, libsoup-2.4)
PKG_CHECK_MODULES(LIBREST, rest-0.7)
PKG_CHECK_MODULES(LIBOASYNCWORKER, glib-2.0 gobject-2.0 gthread-2.0)
PKG_CHECK_MODULES(GNOME_APP_STORE, libxml-2.0 >= $LIBXML_REQUIRED glib-2.0 >= $GLIB_REQUIRED gio-2.0 >= $GLIB_REQUIRED clutter-1.0 >= $CLUTTER_REQUIRED gmodule-export-2.0 gmodule-2.0)
dnl gnome-doc-utils stuff
GNOME_DOC_INIT
# i18n stuff
IT_PROG_INTLTOOL([0.41.0])
dnl Language Support
GETTEXT_PACKAGE=gnome-app-store
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
[The gettext translation domain])
AM_GLIB_GNU_GETTEXT
GOBJECT_INTROSPECTION_CHECK([0.9.7])
AC_CONFIG_FILES([
Makefile
pixmaps/Makefile
pixmaps/spin/Makefile
ui/Makefile
common/Makefile
liboasyncworker/Makefile
lib/Makefile
widgets/Makefile
src/Makefile
lib/gnome-app-store-0.1.pc
po/Makefile.in
])
AC_OUTPUT