-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.in
59 lines (49 loc) · 1.29 KB
/
configure.in
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
dnl This file is used by autoconf to produce ./configure
AC_PREREQ(2.61)
AC_INIT([settings], [0.0.1], [[email protected]])
AC_CONFIG_SRCDIR([Makefile.am])
#AC_CONFIG_HEADERS(config.h)
AM_INIT_AUTOMAKE([foreign dist-bzip2])
AC_PROG_CC
AM_PROG_CC_C_O
AC_PATH_PROG(VALAC, valac, valac)
AC_SUBST(VALAC)
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)
ELM_REQUIRED=0.0.0
DBUS_REQUIRED=1.2
DBUSGLIB_REQUIRED=0.7
GLIB_REQUIRED=2.18.0
EVAS_REQUIRED=0.0.0
EINA_REQUIRED=0.0.0
EFLVALA_REQUIRED=0.0.0.0
CAIRO_REQUIRED=0.0.0.0
PKG_CHECK_MODULES(DEPS,
elementary >= $ELM_REQUIRED
dbus-1 >= $DBUS_REQUIRED
dbus-glib-1 >= $DBUSGLIB_REQUIRED
glib-2.0 >= $GLIB_REQUIRED
gobject-2.0 >= $GLIB_REQUIRED
evas >= $EVAS_REQUIRED
eina-0 >= $EINA_REQUIRED
cairo >= $CAIRO_REQUIRED)
AC_SUBST(DEPS_CFLAGS)
AC_SUBST(DEPS_LIBS)
#set an explicit vapidir on compilation
AC_ARG_ENABLE([vapidir],
[AS_HELP_STRING([--enable-vapidir=<dir>],[add custom <dir> as --vapidir] to valac)],
[VAPI_DIR="--vapidir $enableval"],
[VAPI_DIR=])
AC_SUBST([VAPI_DIR])
#DEPS2 are not needed for linking with the binary
PKG_CHECK_MODULES(DEPS2,
eflvala-1.0 >= $EFLVALA_REQUIRED)
AC_SUBST(DEPS2_CFLAGS)
AC_SUBST(DEPS2_LIBS)
AC_CONFIG_FILES([ \
Makefile \
src/Makefile \
data/Makefile \
])
AC_OUTPUT