Relase 0.6.0
[gupnp:gupnp-dlna.git] / configure.ac
1 AC_PREREQ(2.53)
2 AC_INIT(gupnp-dlna, 0.6.0, http://www.gupnp.org/)
3 AM_INIT_AUTOMAKE()
4 AC_CONFIG_SRCDIR(libgupnp-dlna/gupnp-dlna-profile.h)
5 AM_CONFIG_HEADER(config.h)
6
7 dnl library versioning
8 dnl Increase when changing the API
9 GUPNP_DLNA_CURRENT=2
10
11 dnl Update when changing implementation of current API,
12 dnl reset to 0 when changing CURRENT.  This is the revision of
13 dnl current API version
14 GUPNP_DLNA_REVISION=0
15
16 dnl Increase if API change is ABI compatible, otherwise reset to 0
17 GUPNP_DLNA_AGE=0
18
19 GUPNP_DLNA_VERSION_INFO="$GUPNP_DLNA_CURRENT:$GUPNP_DLNA_REVISION:$GUPNP_DLNA_AGE"
20 AC_SUBST(GUPNP_DLNA_VERSION_INFO)
21
22 m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])],)
23
24 AC_ISC_POSIX
25 AC_PROG_CC
26 AC_STDC_HEADERS
27 AC_LIBTOOL_WIN32_DLL
28 AC_PROG_LIBTOOL
29
30 PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= 2.5.0)
31
32 GST_MAJORMINOR=0.10
33 GST_REQ=0.10.29.2
34 GSTPBU_REQ=0.10.32
35
36 PKG_CHECK_MODULES(GST, gstreamer-$GST_MAJORMINOR >= $GST_REQ)
37 PKG_CHECK_MODULES(GST_PBU, gstreamer-pbutils-$GST_MAJORMINOR >= $GSTPBU_REQ)
38 AC_SUBST(GST_MAJORMINOR)
39
40 GST_CFLAGS="$GST_CFLAGS -DGST_USE_UNSTABLE_API"
41 AC_SUBST(GST_CFLAGS)
42
43 # glib-genmarshal
44 GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
45 AC_SUBST(GLIB_GENMARSHAL)
46
47 # Debugging
48 AC_ARG_ENABLE(debug,
49         [  --enable-debug          enable debugging],,
50         enable_debug=no)
51 if test "x$enable_debug" = "xyes"; then
52         CFLAGS="$CFLAGS -g -Wall"
53 fi
54
55 GTK_DOC_CHECK([1.0])
56
57 AC_OUTPUT([
58 Makefile
59 libgupnp-dlna/Makefile
60 tools/Makefile
61 tests/Makefile
62 tests/test-discoverer.sh
63 doc/Makefile
64 doc/version.xml
65 data/Makefile
66 gupnp-dlna-1.0.pc
67 gupnp-dlna-1.0-uninstalled.pc
68 ])