-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
62 lines (47 loc) · 1.35 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
AC_INIT([cue-munger], [0.8])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([foreign subdir-objects])
AM_SILENT_RULES([yes])
AM_PROG_VALAC([0.28])
AM_PROG_CC_C_O
SHORT_VERSION=$(echo $VERSION | cut -d. -f-2)
AC_SUBST([SHORT_VERSION])
LT_INIT([disable-static])
CFLAGS="$CFLAGS -w"
dnl ###########################################################################
dnl Dependencies
dnl ###########################################################################
GLIB_REQUIRED=2.40.0
PKG_CHECK_MODULES(cue_U, [
glib-2.0 >= $GLIB_REQUIRED
gobject-2.0 >= $GLIB_REQUIRED
gio-2.0 >= $GLIB_REQUIRED
gee-0.8
uchardet
])
AC_SUBST([cue_U_VALAFLAGS], ["--pkg gio-2.0 \
--pkg gee-0.8 \
--target-glib=$GLIB_REQUIRED \
--fatal-warnings \
--enable-checking \
--enable-experimental \
--enable-experimental-non-null"])
AC_CHECK_PROG(RAGEL_CHECK,ragel,yes)
if test x"$RAGEL_CHECK" != x"yes"; then
AC_MSG_ERROR([Cannot find ragel])
fi
GOBJECT_INTROSPECTION_CHECK([1.40.0])
GLIB_TESTS
dnl ###########################################################################
dnl Files to generate
dnl ###########################################################################
AC_CONFIG_FILES([
Makefile
libgue/Makefile
libgue/libgue.pc
libgue/tests/Makefile
src/Makefile
cue-munger.spec
])
AC_OUTPUT