-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
59 lines (47 loc) · 1.24 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_INIT([galactica], [0.2.2],
[http://galactica.digitalmediaplanet.net])
AC_CONFIG_SRCDIR([Makefile.am])
AC_CONFIG_HEADERS(config.h)
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([subdir-objects])
AM_MAINTAINER_MODE
VALA_REQUIRED=0.7.5
GLIB_REQUIRED=2.16.0
GEE_REQUIRED=0.3.0
GST_REQUIRED=0.10
AC_PROG_CC
AM_PROG_CC_C_O
AC_DISABLE_STATIC
AC_PROG_LIBTOOL
AM_PROG_VALAC([$VALA_REQUIRED])
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)
PKG_CHECK_MODULES(GALACTICA, glib-2.0 >= $GLIB_REQUIRED
gobject-2.0 >= $GLIB_REQUIRED
gee-1.0 >= $GEE_REQUIRED
gstreamer-0.10 >= $GST_REQUIRED
libsoup-2.4
)
AC_SUBST(GALACTICA_CFLAGS)
AC_SUBST(GALACTICA_LIBS)
AC_CHECK_HEADERS([lua.h], HAVE_LUA_H=yes, AC_MSG_ERROR("Lua headers not found"))
if test "x$HAVE_LUA_H" = "xyes"; then
LUA_LIBS="-llua"
AC_SUBST(LUA_LIBS)
fi
AC_DEFINE_UNQUOTED(DATADIR, "${prefix}/share", install path of galactica.lua)
AC_CONFIG_FILES([
Makefile
lib/Makefile
examples/Makefile
data/Makefile
tests/Makefile
src/Makefile
scripts/Makefile
])
AC_OUTPUT
echo "
$PACKAGE_NAME $PACKAGE_VERSION
Install Prefix: ${prefix}
"