-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
71 lines (55 loc) · 1.77 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([heliostv], [0.1.0])
AM_INIT_AUTOMAKE([-Wall foreign])
GST_REQUIRED=1.0.0
AM_PROG_AR
LT_PREREQ([2.2])
LT_INIT()
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([libheliostv/ControlChannel.cpp])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AX_CXX_COMPILE_STDCXX_11()
AX_BOOST_BASE([1.48],, [AC_MSG_ERROR([HeliosTv needs Boost, but it was not found in your system])])
AX_BOOST_SYSTEM
AX_BOOST_THREAD
# Checks for header files.
#AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/param.h unistd.h stdbool.h])
# check for libraries
AC_CHECK_LIB([msgpack], [msgpack_unpack])
#PKG_CHECK_MODULES([MSGPACK], [msgpackcpputest >= 3.6],
# [have_cpputest=yes], [have_cpputest=no])
PKG_CHECK_MODULES(GST, [
gstreamer-1.0 >= $GST_REQUIRED
gstreamer-base-1.0 >= $GST_REQUIRED
gstreamer-controller-1.0 >= $GST_REQUIRED
], [
AC_SUBST(GST_CFLAGS)
AC_SUBST(GST_LIBS)
], [
AC_MSG_ERROR([
You need to install or upgrade the GStreamer development
packages on your system. On debian-based systems these are
libgstreamer1.0-dev and libgstreamer-plugins-base1.0-dev.
on RPM-based systems gstreamer1.0-devel, libgstreamer1.0-devel
or similar. The minimum version required is $GST_REQUIRED.
])
])
PKG_CHECK_MODULES([GIO], [gio-2.0 >= 2.40],
[have_gio=yes], [
AC_MSG_ERROR([
You need to install or upgrade gio.
])
])
AC_CONFIG_FILES([Makefile src/Makefile include/Makefile libheliostv/Makefile])
AC_OUTPUT
echo "
$PACKAGE_NAME version $PACKAGE_VERSION :
Prefix.........: $prefix
Debug Build....: $debug
C++ Compiler...: $CXX $CXXFLAGS $CPPFLAGS
Linker.........: $LD $LDFLAGS $LIBS"