-
Notifications
You must be signed in to change notification settings - Fork 87
/
configure.ac
131 lines (103 loc) · 4.19 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# Copyright (C) 2011-2020 Aratelia Limited - Juan A. Rubio and contributors
#
# This file is part of Tizonia
#
# Tizonia is free software: you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option)
# any later version.
#
# Tizonia is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
# more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Tizonia. If not, see <http://www.gnu.org/licenses/>.
AC_PREREQ([2.67])
AC_INIT([tizonia], [0.22.0], [[email protected]])
AM_INIT_AUTOMAKE([foreign color-tests silent-rules -Wall -Werror])
AC_CONFIG_SRCDIR([include/omxil-1.2/OMX_Core.h])
AC_CONFIG_HEADERS([config.h])
# 'm4' is the directory where the extra autoconf macros are stored
AC_CONFIG_MACRO_DIR([m4])
# Checks for programs.
AC_PROG_CC
PKG_PROG_PKG_CONFIG([0.25])
# Checks for libraries.
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
# Define location of plugin directory
AS_AC_EXPAND(PLUGINDIR, ${libdir}/tizonia0-plugins12)
AC_DEFINE_UNQUOTED(PLUGINDIR, "$PLUGINDIR",
[Directory where Tizonia plugins are located])
AC_MSG_NOTICE([Using $PLUGINDIR as the components install location])
# Define plugin directory configure-time variable
AC_SUBST([plugindir], ['${libdir}/tizonia0-plugins12'])
AC_ARG_ENABLE([blocking-etb-ftb],
[ --enable-blocking-etb-ftb Enable fully conformant blocking behaviour of ETB and FTB APIs],
[blocking_etb_ftb=${enableval}], [blocking_etb_ftb=no])
AC_ARG_ENABLE([blocking-sendcommand],
[ --enable-blocking-sendcommand Enable fully conformant blocking behaviour of SendCommand API],
[blocking_sendcommand=${enableval}], [blocking_sendcommand=no])
AC_ARG_ENABLE(player,
AS_HELP_STRING([--enable-player],
[build the command-line player program (default: enabled)]),,
enable_player=yes)
AM_CONDITIONAL(ENABLE_PLAYER, test "x$enable_player" = xyes)
AC_ARG_WITH(libspotify,
AS_HELP_STRING([--with-libspotify],
[build the libspotify-based OpenMAX IL plugin (default: yes)]),,
with_libspotify=yes)
AC_ARG_WITH(alsa,
AS_HELP_STRING([--with-alsa],
[build the ALSA-based OpenMAX IL plugin (default: yes)]),,
with_alsa=yes)
AC_ARG_WITH(aac,
AS_HELP_STRING([--with-aac],
[build the AAC-based OpenMAX IL plugin (default: yes)]),,
with_aac=yes)
AC_CONFIG_FILES([Makefile])
AC_CONFIG_SUBDIRS([3rdparty
include
clients
libtizplatform
cast
rm
libtizcore
libtizonia
plugins
config])
if test "$enable_player" = yes; then
if test -d "$srcdir/player"; then
AC_CONFIG_SUBDIRS([player])
fi
fi
AC_OUTPUT
AS_AC_EXPAND(LIBDIR, ${libdir})
AS_AC_EXPAND(INCLUDEDIR, ${includedir})
AS_AC_EXPAND(BINDIR, ${bindir})
AS_AC_EXPAND(DOCDIR, ${docdir})
AC_MSG_RESULT([
------------------------------------------------------------------------
$PACKAGE $VERSION: Automatic configuration OK.
General configuration:
Tizonia player: .............. ${enable_player}
libspotify plugin: ........... ${with_libspotify}
ALSA plugin: ................. ${with_alsa}
Blocking ETB/FTB: ............ ${blocking_etb_ftb}
Blocking OMX_SendCommand: .... ${blocking_sendcommand}
Installation paths:
libraries: ................... ${LIBDIR}
plugins: ..................... ${PLUGINDIR}
tizonia: ..................... ${BINDIR}
Header files: ................ ${INCLUDEDIR}/libtizonia
Documentation: ............... ${DOCDIR}
Building:
Type 'make' to compile all $PACKAGE sub-projects.
Type 'make install' to install all $PACKAGE sub-projects.
Type 'make check' to test all $PACKAGE sub-projects using the tests
contained in the various src/tests directories.
------------------------------------------------------------------------
])