-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
49 lines (43 loc) · 1 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
#Prelude
AC_INIT([audio-scheduler],[0.5],[[email protected]])
AC_CONFIG_SRCDIR([main.c])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([foreign -Wall -Werror dist-bzip2])
#Configuration / define macros
AC_ARG_WITH([debug],
AS_HELP_STRING([--with-debug],
[Enable debug output]),
AC_DEFINE([DEBUG],[1],
[Define this to enable debug output]),
[])
# Check for programs
AC_PROG_CC
# Check for libraries
PKG_CHECK_MODULES(GStreamer,
[
gstreamer-1.0 >= 1.0.0
gstreamer-base-1.0 >= 1.0.0
gstreamer-controller-1.0 >= 1.0.0
],
[
AC_SUBST(GStreamer_CFLAGS)
AC_SUBST(GStreamer_LIBS)
],
[
AC_MSG_ERROR([Could not find GStreamer 1.0 libraries])
])
PKG_CHECK_MODULES(LibXML2,
[
libxml-2.0 >= 2.9.0
],
[
AC_SUBST(LibXML2_CFLAGS)
AC_SUBST(LibXML2_LIBS)
],
[
AC_MSG_ERROR([Could not find libxml2])
])
# Output files
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT