forked from halleyzhao/omx_comp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
72 lines (58 loc) · 2.15 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.60])
AC_INIT([omx-components], [0.6.0], [daniel.charles at intel.com])
AC_CONFIG_SRCDIR([videocodec/OMXVideoEncoderH263.cpp])
AM_INIT_AUTOMAKE([foreign])
AM_CONFIG_HEADER([config.h])
AC_ARG_ENABLE(omx_debug,
[AC_HELP_STRING([--enable-omx-debug],
[build with extra debug symbols @<:@default=no@:>@])],
[], [enable_omx_debug="no"])
if test "$enable_omx_debug" = "yes"; then
AC_DEFINE([__ENABLE_DEBUG__], [1], [Defined to 1 if extra debug symbols are compiled])
fi
AC_ARG_ENABLE(libyami,
AC_HELP_STRING([--enable-libyami],
[use libyami @<:@default=no@:>@]),
[], [enable_libyami="no"])
AC_ARG_ENABLE(vp8_role_name,
[AC_HELP_STRING([--enable-vp8-role-name],
[use "video_decoder.vp8" as role name for vp8 decoder, otherwise "video_decoder.vpx" is used instead @<:@default=no@:>@])],
[], [enable_vp8_role_name="no"])
if test "$enable_vp8_role_name" = "yes"; then
AC_DEFINE([__ENABLE_VP8_ROLE_NAME__], [1], [Defined to 1 if use "video_decoder.vp8" as role name for vp8 decoder])
fi
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_LIBTOOL
# Checks for libraries.
# Checks for header files.
AC_CHECK_HEADERS([unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_INT32_T
AC_TYPE_UINT32_T
AC_TYPE_UINT8_T
pkgconfigdir=${libdir}/pkgconfig
AC_SUBST(pkgconfigdir)
PKG_CHECK_MODULES(OMXIL_UTILS, libomxil_utils)
PKG_CHECK_MODULES(OMXIL_BASE, libomxil_base)
PKG_CHECK_MODULES(LIBVA_DEPS, libva)
if test "$enable_libyami" = "no"; then
PKG_CHECK_MODULES(MIXVBP, libmixvbp)
PKG_CHECK_MODULES(MIXVBP_H264, libmixvbp-h264)
PKG_CHECK_MODULES(MIXVBP_VP8, libmixvbp-vp8)
PKG_CHECK_MODULES(VAVIDDEC_DEPS, libva_videodecoder)
else
PKG_CHECK_MODULES(VAVIDDEC_DEPS, libyami_decoder)
PKG_CHECK_MODULES(VAVIDENC_DEPS, libyami_encoder)
fi
# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([gettimeofday memset])
AC_CONFIG_FILES([Makefile
videocodec/Makefile])
AC_OUTPUT