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
|
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.65])
AC_INIT([libomxil-e7270], [0.1])
AM_INIT_AUTOMAKE([tar-ustar])
#AC_CONFIG_HEADERS([config.h])
# Set to 'm4' the directory where the extra autoconf macros are stored
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_FILES([
omxil-e7270-v4l2.pc
srp.pc
Makefile
exynos/Makefile
exynos/libvideocodec/Makefile
openmax/Makefile
openmax/osal/Makefile
openmax/core/Makefile
openmax/component/Makefile
openmax/component/common/Makefile
openmax/component/video/Makefile
openmax/component/video/dec/Makefile
openmax/component/video/dec/h264/Makefile
openmax/component/video/dec/hevc/Makefile
openmax/component/video/dec/mpeg4/Makefile
openmax/component/video/dec/mpeg2/Makefile
openmax/component/video/dec/vc1/Makefile
openmax/component/video/dec/vp8/Makefile
openmax/component/video/dec/vp9/Makefile
openmax/component/video/enc/Makefile
openmax/component/video/enc/h264/Makefile
openmax/component/video/enc/hevc/Makefile
openmax/component/video/enc/mpeg4/Makefile
openmax/component/video/enc/vp8/Makefile
openmax/component/video/enc/vp9/Makefile
])
# Checks for programs.
AC_PROG_CC
AC_PROG_CPP
AC_PROG_CXX
AM_PROG_CC_C_O
AC_PROG_LIBTOOL
AC_PROG_AWK
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_CXX
AM_PROG_AS
# Check for libtool
AM_PROG_LIBTOOL
# Checks for libraries.
# Check for pthread
AC_SEARCH_LIBS([pthread_create], [pthread], [], [AC_MSG_ERROR([pthread is required])])
# Check for libdl
AC_SEARCH_LIBS([dlopen], [dl], [], [AC_MSG_ERROR([libdl is required])])
# Checks for header files.
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/ioctl.h sys/time.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_INLINE
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_MMAP
AC_FUNC_REALLOC
AC_CHECK_FUNCS([gettimeofday memmove memset munmap])
AC_DEFINE([SLP_PLATFORM])
AC_DEFINE([USE_IMMEDIATE_DISPLAY])
PKG_CHECK_MODULES(EXYNOSCOMMON,exynos-common)
AC_SUBST(EXYNOSCOMMON_CFLAGS)
AC_SUBST(EXYNOSCOMMON_LIBS)
dnl use dlog ------------------------------------------------------------------
AC_ARG_ENABLE(dlog, AC_HELP_STRING([--enable-dlog], [using dlog]),
[
case "${enableval}" in
yes) USE_DLOG=yes ;;
no) USE_DLOG=no ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-dlog) ;;
esac
],[USE_DLOG=no])
if test "x$USE_DLOG" = "xyes"; then
PKG_CHECK_MODULES(DLOG, dlog)
AC_SUBST(DLOG_CFLAGS)
AC_SUBST(DLOG_LIBS)
fi
AM_CONDITIONAL(USE_DLOG, test "x$USE_DLOG" = "xyes")
dnl end -----------------------------------------------------------------------
AC_ARG_ENABLE([exynos7270], AC_HELP_STRING([--enable-exynos7270], [Enable exynos7270 specific code]),
[
case "${enableval}" in
yes) EXYNOS_7270=yes ;;
no) EXYNOS_7270=no ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-exynos7270) ;;
esac
],
[EXYNOS_7270=no])
AM_CONDITIONAL([EXYNOS_7270], [test "x$EXYNOS_7270" = "xyes"])
AC_ARG_ENABLE(s3dsupport, AC_HELP_STRING([--enable-s3dsupport], [use s3d support]),
[
case "${enableval}" in
yes) BOARD_USE_S3D_SUPPORT=yes ;;
no) BOARD_USE_S3D_SUPPORT=no ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-s3dsupport) ;;
esac
],
[BOARD_USE_S3D_SUPPORT=no])
AM_CONDITIONAL([BOARD_USE_S3D_SUPPORT], [test "x$BOARD_USE_S3D_SUPPORT" = "xyes"])
AC_OUTPUT
|