fixed symbol lookup error when building in unified profile
[platform/adaptation/ap_samsung/libomxil-e3250-v4l2.git] / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ([2.65])
5 AC_INIT([libomxil-e3250], [0.1])
6 AM_INIT_AUTOMAKE([tar-ustar])
7 #AC_CONFIG_HEADERS([config.h])
8
9 # Set to 'm4' the directory where the extra autoconf macros are stored
10 AC_CONFIG_MACRO_DIR([m4])
11
12 PKG_CHECK_MODULES(MM_COMMON, mm-common)
13 AC_SUBST(MM_COMMON_CFLAGS)
14 AC_SUBST(MM_COMMON_LIBS)
15
16 AC_CONFIG_FILES([
17     omxil-e3250-v4l2.pc
18     srp.pc
19     Makefile
20     exynos4/Makefile
21     exynos4/libcodec/Makefile
22     exynos4/libcodec/audio/Makefile
23     exynos4/libcodec/audio/alp/Makefile
24     exynos4/libcodec/video/Makefile
25     exynos4/libcodec/video/v4l2/Makefile
26     exynos4/libion_exynos/Makefile
27     exynos4/libswconverter/Makefile
28     exynos/Makefile
29     exynos/libv4l2/Makefile
30     exynos/libcsc/Makefile
31     openmax/Makefile
32     openmax/osal/Makefile
33     openmax/core/Makefile
34     openmax/component/Makefile
35     openmax/component/common/Makefile
36     openmax/component/audio/Makefile
37     openmax/component/audio/dec/Makefile
38     openmax/component/audio/dec/mp3/Makefile
39     openmax/component/video/Makefile
40     openmax/component/video/dec/Makefile
41     openmax/component/video/dec/h264/Makefile
42     openmax/component/video/dec/mpeg2/Makefile
43     openmax/component/video/dec/mpeg4/Makefile
44     openmax/component/video/dec/vc1/Makefile
45     openmax/component/video/enc/Makefile
46     openmax/component/video/enc/h264/Makefile
47     openmax/component/video/enc/mpeg4/Makefile
48 ])
49
50 # Checks for programs.
51 AC_PROG_CC
52 AM_PROG_AS
53
54 # Check for libtool
55 AM_PROG_LIBTOOL
56
57 # Checks for libraries.
58
59 # Check for pthread
60 AC_SEARCH_LIBS([pthread_create], [pthread], [], [AC_MSG_ERROR([pthread is required])])
61
62 # Check for libdl
63 AC_SEARCH_LIBS([dlopen], [dl], [], [AC_MSG_ERROR([libdl is required])])
64
65 # Checks for header files.
66 AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/ioctl.h sys/time.h unistd.h])
67
68 # Checks for typedefs, structures, and compiler characteristics.
69 AC_C_INLINE
70 AC_TYPE_SIZE_T
71 AC_TYPE_SSIZE_T
72
73 # Checks for library functions.
74 AC_FUNC_MALLOC
75 AC_FUNC_MMAP
76 AC_FUNC_REALLOC
77 AC_CHECK_FUNCS([gettimeofday memmove memset munmap])
78
79 AC_DEFINE([TIZEN_FEATURE_E3250])
80 AC_DEFINE([USE_IMMEDIATE_DISPLAY])
81
82 dnl use dlog ------------------------------------------------------------------
83 AC_ARG_ENABLE(dlog, AC_HELP_STRING([--enable-dlog], [using dlog]),
84         [
85           case "${enableval}" in
86            yes) USE_DLOG=yes ;;
87            no)  USE_DLOG=no ;;
88            *)   AC_MSG_ERROR(bad value ${enableval} for --enable-dlog) ;;
89           esac
90         ],[USE_DLOG=no])
91
92 if test "x$USE_DLOG" = "xyes"; then
93         PKG_CHECK_MODULES(DLOG, dlog)
94         AC_SUBST(DLOG_CFLAGS)
95         AC_SUBST(DLOG_LIBS)
96 fi
97 AM_CONDITIONAL(USE_DLOG, test "x$USE_DLOG" = "xyes")
98 dnl end -----------------------------------------------------------------------
99
100 AC_ARG_ENABLE([exynos3250], AC_HELP_STRING([--enable-exynos3250], [Enable exynos3250 specific code]),
101         [
102          case "${enableval}" in
103           yes) EXYNOS_3250=yes ;;
104           no)  EXYNOS_3250=no ;;
105           *)   AC_MSG_ERROR(bad value ${enableval} for --enable-exynos3250) ;;
106          esac
107         ],
108         [EXYNOS_3250=no])
109 AM_CONDITIONAL([EXYNOS_3250], [test "x$EXYNOS_3250" = "xyes"])
110
111 AC_ARG_ENABLE(s3dsupport, AC_HELP_STRING([--enable-s3dsupport], [use s3d support]),
112         [
113           case "${enableval}" in
114            yes) BOARD_USE_S3D_SUPPORT=yes ;;
115            no)  BOARD_USE_S3D_SUPPORT=no ;;
116            *)   AC_MSG_ERROR(bad value ${enableval} for --enable-s3dsupport) ;;
117           esac
118         ],
119         [BOARD_USE_S3D_SUPPORT=no])
120 AM_CONDITIONAL([BOARD_USE_S3D_SUPPORT], [test "x$BOARD_USE_S3D_SUPPORT" = "xyes"])
121
122 AC_ARG_ENABLE(mfcfps, AC_HELP_STRING([--enable-mfc-fps], [use mfc fps]),
123         [
124           case "${enableval}" in
125            yes) BOARD_USE_MFC_FPS=yes ;;
126            no)  BOARD_USE_MFC_FPS=no ;;
127            *)   AC_MSG_ERROR(bad value ${enableval} for --enable-mfc-fps) ;;
128           esac
129         ],
130         [BOARD_USE_MFC_FPS=no])
131 AM_CONDITIONAL([BOARD_USE_MFC_FPS], [test "x$BOARD_USE_MFC_FPS" = "xyes"])
132
133 AC_ARG_ENABLE(blockmodeprocess, AC_HELP_STRING([--enable-nonblock-mode-process], [non-block mode process]),
134         [
135           case "${enableval}" in
136            yes) BOARD_NONBLOCK_MODE_PROCESS=yes ;;
137            no)  BOARD_NONBLOCK_MODE_PROCESS=no ;;
138            *)   AC_MSG_ERROR(bad value ${enableval} for --enable-nonblock-mode-process) ;;
139           esac
140         ],
141         [BOARD_NONBLOCK_MODE_PROCESS=yes])
142 AM_CONDITIONAL([BOARD_NONBLOCK_MODE_PROCESS], [test "x$BOARD_NONBLOCK_MODE_PROCESS" = "xyes"])
143
144 AC_ARG_ENABLE(anb, AC_HELP_STRING([--enable-anb], [use anb]),
145         [
146           case "${enableval}" in
147            yes) BOARD_USE_ANB=yes ;;
148            no)  BOARD_USE_ANB=no ;;
149            *)   AC_MSG_ERROR(bad value ${enableval} for --enable-anb) ;;
150           esac
151         ],
152         [BOARD_USE_ANB=no])
153 AM_CONDITIONAL([BOARD_USE_ANB], [test "x$BOARD_USE_ANB" = "xyes"])
154
155 AC_ARG_ENABLE(metadatabuffertype, AC_HELP_STRING([--enable-metadata-buffertype], [use metadata buffertype]),
156         [
157           case "${enableval}" in
158            yes) BOARD_USE_METADATABUFFERTYPE=yes ;;
159            no)  BOARD_USE_METADATABUFFERTYPE=no ;;
160            *)   AC_MSG_ERROR(bad value ${enableval} for --enable-metadata-buffertype) ;;
161           esac
162         ],
163         [BOARD_USE_METADATABUFFERTYPE=no])
164 AM_CONDITIONAL([BOARD_USE_METADATABUFFERTYPE], [test "x$BOARD_USE_METADATABUFFERTYPE" = "xyes"])
165
166 AC_ARG_ENABLE(storemetadata, AC_HELP_STRING([--enable-store-metadata], [use store metadata]),
167         [
168           case "${enableval}" in
169            yes) BOARD_USE_STOREMETADATA=yes ;;
170            no)  BOARD_USE_STOREMETADATA=no ;;
171            *)   AC_MSG_ERROR(bad value ${enableval} for --enable-store-metadata) ;;
172           esac
173         ],
174         [BOARD_USE_STOREMETADATA=no])
175 AM_CONDITIONAL([BOARD_USE_STOREMETADATA], [test "x$BOARD_USE_STOREMETADATA" = "xyes"])
176
177 AC_ARG_ENABLE(dmabuf, AC_HELP_STRING([--enable-use-dmabuf], [use dma buf]),
178         [
179           case "${enableval}" in
180            yes) BOARD_USE_DMA_BUF=yes ;;
181            no)  BOARD_USE_DMA_BUF=no ;;
182            *)   AC_MSG_ERROR(bad value ${enableval} for --enable-use-dambuf) ;;
183           esac
184         ],
185         [BOARD_USE_DMA_BUF=no])
186 AM_CONDITIONAL([BOARD_USE_DMA_BUF], [test "x$BOARD_USE_DMA_BUF" = "xyes"])
187
188 AC_ARG_ENABLE(drm, AC_HELP_STRING([--enable-use-drm], [use drm]),
189         [
190           case "${enableval}" in
191            yes) BOARD_USE_DRM=yes ;;
192            no)  BOARD_USE_DRM=no ;;
193            *)   AC_MSG_ERROR(bad value ${enableval} for --enable-use-drm) ;;
194           esac
195         ],
196         [BOARD_USE_DRM=no])
197 AM_CONDITIONAL([BOARD_USE_DRM], [test "x$BOARD_USE_DRM" = "xyes"])
198
199 AC_ARG_ENABLE(neon, AC_HELP_STRING([--enable-neon], [neon]),
200         [
201           case "${enableval}" in
202            yes) BOARD_USE_NEON=yes ;;
203            no)  BOARD_USE_NEON=no ;;
204            *)   AC_MSG_ERROR(bad value ${enableval} for --enable-neon) ;;
205           esac
206         ],
207         [BOARD_USE_NEON=no])
208 AM_CONDITIONAL([BOARD_USE_NEON], [test "x$BOARD_USE_NEON" = "xyes"])
209
210 AC_OUTPUT