Merge branch 'tizen' into tizen_7.0
[platform/upstream/gst-plugins-tizen.git] / configure.ac
1
2 AC_INIT(gst-plugins-tizen, 1.16.2)
3
4 dnl versions of gstreamer and plugins-base
5 GST_API_VERSION=1.0
6 GST_REQUIRED=1.16.2
7 GSTPB_REQUIRED=1.16.2
8
9 dnl fill in your package name and version here
10 dnl the fourth (nano) number should be 0 for a release, 1 for CVS,
11 dnl and 2... for a prerelease
12
13 dnl when going to/from release please set the nano correctly !
14 dnl releases only do Wall, cvs and prerelease does Werror too
15 AS_VERSION(gst-plugin, GST_PLUGIN_VERSION, 0, 10, 0, 1,
16     GST_PLUGIN_CVS="no", GST_PLUGIN_CVS="yes")
17
18 dnl AM_MAINTAINER_MODE provides the option to enable maintainer mode
19 AM_MAINTAINER_MODE
20
21 #AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
22 AM_INIT_AUTOMAKE
23
24 #AC_CONFIG_MACRO_DIR([m4])
25
26 dnl make aclocal work in maintainer mode
27 dnl AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
28
29 dnl Add parameters for aclocal
30 AC_SUBST(ACLOCAL_AMFLAGS, "-I m4 -I common/m4")
31
32 AM_CONFIG_HEADER(config.h)
33
34 dnl check for tools
35 AC_PROG_CC
36 AC_PROG_CXX
37 AC_PROG_LIBTOOL
38
39 AC_SUBST(GCC_CXXFLAGS)
40
41 dnl decide on error flags
42 AS_COMPILER_FLAG(-Wall, GST_WALL="yes", GST_WALL="no")
43
44 if test "x$GST_WALL" = "xyes"; then
45    GST_ERROR="$GST_ERROR -Wall"
46
47 #   if test "x$GST_PLUGIN_CVS" = "xyes"; then
48 #     AS_COMPILER_FLAG(-Werror,GST_ERROR="$GST_ERROR -Werror",GST_ERROR="$GST_ERROR")
49 #   fi
50 fi
51
52 dnl Check for pkgconfig first
53 AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no)
54
55 dnl Give error and exit if we don't have pkgconfig
56 if test "x$HAVE_PKGCONFIG" = "xno"; then
57   AC_MSG_ERROR(you need to have pkgconfig installed !)
58 fi
59
60 dnl Now we're ready to ask for gstreamer libs and cflags
61 dnl And we can also ask for the right version of gstreamer
62 AM_CONDITIONAL([IS_VODA_SDK], [test "x$DISTRO" = "xvodafone-sdk"])
63 AM_CONDITIONAL([ISPROTECTOR_VODA_SDK], [test "x$DISTRO" = "xvodafone-sdk" && test "x$MACHINE" = "xprotector"])
64 AM_CONDITIONAL([ISVOLANS_VODA_SDK], [test "x$DISTRO" = "xvodafone-sdk" && test "x$MACHINE" = "xvolans"])
65 AM_CONDITIONAL([ISPROTECTOR_TARGET], [test "x$ARCH" = "xarm" && test "x$MACHINE" = "xprotector"])
66 AM_CONDITIONAL([ISVOLANS_TARGET], [test "x$ARCH" = "xarm" && test "x$MACHINE" = "xvolans"])
67
68 PKG_CHECK_MODULES(GST, \
69   gstreamer-$GST_API_VERSION >= $GST_REQUIRED,
70   HAVE_GST=yes,HAVE_GST=no)
71
72 dnl Give error and exit if we don't have gstreamer
73 if test "x$HAVE_GST" = "xno"; then
74   AC_MSG_ERROR(you need gstreamer development packages installed !)
75 fi
76
77 dnl make GST_CFLAGS and GST_LIBS available
78 AC_SUBST(GST_CFLAGS)
79 AC_SUBST(GST_LIBS)
80
81 dnl append GST_ERROR cflags to GST_CFLAGS
82 GST_CFLAGS="$GST_CFLAGS $GST_ERROR"
83
84 dnl make GST_API_VERSION available in Makefile.am
85 AC_SUBST(GST_API_VERSION)
86
87 dnl If we need them, we can also use the base class libraries
88 PKG_CHECK_MODULES(GST_BASE, gstreamer-base-$GST_API_VERSION >= $GST_REQUIRED,
89                   HAVE_GST_BASE=yes, HAVE_GST_BASE=no)
90
91 dnl Give a warning if we don't have gstreamer libs
92 dnl you can turn this into an error if you need them
93 if test "x$HAVE_GST_BASE" = "xno"; then
94   AC_MSG_NOTICE(no GStreamer base class libraries found (gstreamer-base-$GST_API_VERSION))
95 fi
96
97 dnl make _CFLAGS and _LIBS available
98 AC_SUBST(GST_BASE_CFLAGS)
99 AC_SUBST(GST_BASE_LIBS)
100
101 dnl If we need them, we can also use the gstreamer-plugins-base libraries
102 PKG_CHECK_MODULES(GSTPB_BASE,
103                   gstreamer-plugins-base-$GST_API_VERSION >= $GSTPB_REQUIRED,
104                   HAVE_GSTPB_BASE=yes, HAVE_GSTPB_BASE=no)
105
106 dnl Give a warning if we don't have gstreamer libs
107 dnl you can turn this into an error if you need them
108 if test "x$HAVE_GSTPB_BASE" = "xno"; then
109   AC_MSG_NOTICE(no GStreamer Plugins Base libraries found (gstreamer-plugins-base-$GST_API_VERSION))
110 fi
111
112 dnl make _CFLAGS and _LIBS available
113 AC_SUBST(GSTPB_BASE_CFLAGS)
114 AC_SUBST(GSTPB_BASE_LIBS)
115
116 dnl If we need them, we can also use the gstreamer-controller libraries
117 PKG_CHECK_MODULES(GST_CONTROLLER,
118                   gstreamer-controller-$GST_API_VERSION >= $GSTPB_REQUIRED,
119                   HAVE_GST_CONTROLLER=yes, HAVE_GST_CONTROLLER=no)
120
121 dnl Give a warning if we don't have gstreamer-controller
122 dnl you can turn this into an error if you need them
123 if test "x$HAVE_GST_CONTROLLER" = "xno"; then
124   AC_MSG_NOTICE(no GStreamer Controller libraries found (gstreamer-controller-$GST_API_VERSION))
125 fi
126
127 dnl make _CFLAGS and _LIBS available
128 AC_SUBST(GST_CONTROLLER_CFLAGS)
129 AC_SUBST(GST_CONTROLLER_LIBS)
130
131 dnl set the plugindir where plugins should be installed
132 if test "x${prefix}" = "x$HOME"; then
133   plugindir="$HOME/.gstreamer-$GST_API_VERSION/plugins"
134 else
135   plugindir="\$(libdir)/gstreamer-$GST_API_VERSION"
136 fi
137 AC_SUBST(plugindir)
138
139 dnl set proper LDFLAGS for plugins
140 #GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex [_]*\(gst_\|Gst\|GST_\).*'
141 GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex [_]*\(gst_\|Gst\|GST_\|FIR_\|arkamys_malloc\|arkamys_free\).*'
142 #GST_PLUGIN_LDFLAGS='-module -avoid-version'
143 AC_SUBST(GST_PLUGIN_LDFLAGS)
144
145
146 PKG_CHECK_MODULES(GST_AUDIO, gstreamer-audio-$GST_API_VERSION >= $GST_REQUIRED )
147
148
149 dnl make _CFLAGS and _LIBS available
150 AC_SUBST(GST_AUDIO_CFLAGS)
151 AC_SUBST(GST_AUDIO_LIBS)
152
153 PKG_CHECK_MODULES(GST_VIDEO, gstreamer-video-$GST_API_VERSION >= $GST_REQUIRED)
154
155 dnl make _CFLAGS and _LIBS available
156 AC_SUBST(GST_VIDEO_CFLAGS)
157 AC_SUBST(GST_VIDEO_LIBS)
158
159 PKG_CHECK_MODULES(GST_ALLOCATORS, gstreamer-allocators-$GST_API_VERSION >= $GST_REQUIRED)
160 AC_SUBST(GST_ALLOCATORS_CFLAGS)
161 AC_SUBST(GST_ALLOCATORS_LIBS)
162
163 PKG_CHECK_MODULES(DRM, libdrm)
164 AC_SUBST(DRM_CFLAGS)
165 AC_SUBST(DRM_LIBS)
166
167 PKG_CHECK_MODULES(DRM_EXYNOS, libdrm_exynos)
168 AC_SUBST(DRM_EXYNOS_CFLAGS)
169 AC_SUBST(DRM_EXYNOS_LIBS)
170
171 PKG_CHECK_MODULES(TBM, libtbm)
172 AC_SUBST(TBM_CFLAGS)
173 AC_SUBST(TBM_LIBS)
174
175 dnl belows are related to wfdtsdemux
176 AG_GST_ARG_WITH_PACKAGE_NAME
177 AG_GST_ARG_WITH_PACKAGE_ORIGIN
178
179 dnl set license and copyright notice
180 GST_LICENSE="LGPL"
181 AC_DEFINE_UNQUOTED(GST_LICENSE, "$GST_LICENSE", [GStreamer license])
182 AC_SUBST(GST_LICENSE)
183
184 dnl PKG_CHECK_MODULES(UDEVMGR, unified-dev-mgr)
185 dnl AC_SUBST(UDEVMGR_CFLAGS)
186 dnl AC_SUBST(UDEVMGR_LIBS)
187
188 dnl use tizenencodebin --------------------------------------------------------------------------
189 AC_ARG_ENABLE(tizenencodebin, AC_HELP_STRING([--enable-tizenencodebin], [using tizenencodebin]),
190   [
191     case "${enableval}" in
192       yes) GST_TIZEN_USE_TIZENENCODEBIN=yes ;;
193       no)  GST_TIZEN_USE_TIZENENCODEBIN=no ;;
194       *)   AC_MSG_ERROR(bad value ${enableval} for --enable-tizenencodebin) ;;
195     esac
196   ],
197   [GST_TIZEN_USE_TIZENENCODEBIN=yes])
198 AM_CONDITIONAL(GST_TIZEN_USE_TIZENENCODEBIN, test "x$GST_TIZEN_USE_TIZENENCODEBIN" = "xyes")
199
200 dnl use toggle --------------------------------------------------------------------------
201 AC_ARG_ENABLE(toggle, AC_HELP_STRING([--enable-toggle], [using toggle]),
202   [
203     case "${enableval}" in
204       yes) GST_TIZEN_USE_TOGGLE=yes ;;
205       no)  GST_TIZEN_USE_TOGGLE=no ;;
206       *)   AC_MSG_ERROR(bad value ${enableval} for --enable-toggle) ;;
207     esac
208   ],
209   [GST_TIZEN_USE_TOGGLE=yes])
210 AM_CONDITIONAL(GST_TIZEN_USE_TOGGLE, test "x$GST_TIZEN_USE_TOGGLE" = "xyes")
211
212 dnl for i386 --------------------------------------------------------------------------
213 AC_ARG_ENABLE(i386, AC_HELP_STRING([--enable-i386], [i386 build]),
214         [
215          case "${enableval}" in
216           yes) IS_I386=yes ;;
217           no)  IS_I386=no ;;
218           *)   AC_MSG_ERROR(bad value ${enableval} for --enable-i386) ;;
219          esac
220         ],
221         [IS_I386=no])
222 AM_CONDITIONAL([IS_I386], [test "x$IS_I386" = "xyes"])
223
224 dnl use audiotp --------------------------------------------------------------------------
225 AC_ARG_ENABLE(audiotp, AC_HELP_STRING([--enable-audiotp], [using audiotp]),
226 [
227  case "${enableval}" in
228          yes) GST_TIZEN_USE_AUDIOTP=yes ;;
229          no)  GST_TIZEN_USE_AUDIOTP=no ;;
230          *)   AC_MSG_ERROR(bad value ${enableval} for --enable-audiotp) ;;
231  esac
232  ],
233  [GST_TIZEN_USE_AUDIOTP=yes])
234 AM_CONDITIONAL(GST_TIZEN_USE_AUDIOTP, test "x$GST_TIZEN_USE_AUDIOTP" = "xyes")
235
236 dnl use audioeq --------------------------------------------------------------------------
237 AC_ARG_ENABLE(audioeq, AC_HELP_STRING([--enable-audioeq], [using audioeq]),
238 [
239  case "${enableval}" in
240          yes) GST_TIZEN_USE_AUDIOEQ=yes ;;
241          no)  GST_TIZEN_USE_AUDIOEQ=no ;;
242          *)   AC_MSG_ERROR(bad value ${enableval} for --enable-audioeq) ;;
243  esac
244  ],
245  [GST_TIZEN_USE_AUDIOEQ=yes])
246 AM_CONDITIONAL(GST_TIZEN_USE_AUDIOEQ, test "x$GST_TIZEN_USE_AUDIOEQ" = "xyes")
247
248 dnl use fimcconvert ----------------------------------------------------------------------
249 AC_ARG_ENABLE(fimcconvert, AC_HELP_STRING([--enable-fimcconvert], [using fimcconvert]),
250 [
251  case "${enableval}" in
252          yes) GST_TIZEN_USE_FIMCCONVERT=yes ;;
253          no)  GST_TIZEN_USE_FIMCCONVERT=no ;;
254          *)   AC_MSG_ERROR(bad value ${enableval} for --enable-fimcconvert) ;;
255  esac
256  ],
257  [GST_TIZEN_USE_FIMCCONVERT=yes])
258 AM_CONDITIONAL(GST_TIZEN_USE_FIMCCONVERT, test "x$GST_TIZEN_USE_FIMCCONVERT" = "xyes")
259
260 dnl use wfdmanager --------------------------------------------------------------------------
261 AC_ARG_ENABLE(wfdmanager, AC_HELP_STRING([--enable-wfdmanager], [using wfdmanager]),
262 [
263  case "${enableval}" in
264   yes) GST_TIZEN_USE_WFDMANAGER=yes ;;
265   no)  GST_TIZEN_USE_WFDMANAGER=no ;;
266   *)   AC_MSG_ERROR(bad value ${enableval} for --enable-wfdmanager) ;;
267  esac
268  ],
269  [GST_TIZEN_USE_WFDMANAGER=yes])
270 AM_CONDITIONAL(GST_TIZEN_USE_WFDMANAGER, test "x$GST_TIZEN_USE_WFDMANAGER" = "xyes")
271
272 if [test "x$GST_TIZEN_USE_WFDMANAGER" = "xyes"];
273 then
274 PKG_CHECK_MODULES(GST_RTP, gstreamer-rtp-$GST_API_VERSION)
275 AC_SUBST(GST_RTP_CFLAGS)
276 AC_SUBST(GST_RTP_LIBS)
277
278 PKG_CHECK_MODULES(GST_RTSP, gstreamer-rtsp-$GST_API_VERSION)
279 AC_SUBST(GST_RTSP_CFLAGS)
280 AC_SUBST(GST_RTSP_LIBS)
281 fi
282
283 dnl use wfdtsdemux --------------------------------------------------------------------------
284 AC_ARG_ENABLE(wfdtsdemux, AC_HELP_STRING([--enable-wfdtsdemux], [using wfdtsdemux]),
285 [
286  case "${enableval}" in
287   yes) GST_TIZEN_USE_WFDTSDEMUX=yes ;;
288   no)  GST_TIZEN_USE_WFDTSDEMUX=no ;;
289   *)   AC_MSG_ERROR(bad value ${enableval} for --enable-wfdtsdemux) ;;
290  esac
291  ],
292  [GST_TIZEN_USE_WFDTSDEMUX=yes])
293 AM_CONDITIONAL(GST_TIZEN_USE_WFDTSDEMUX, test "x$GST_TIZEN_USE_WFDTSDEMUX" = "xyes")
294
295 if [test "x$GST_TIZEN_USE_WFDTSDEMUX" = "xyes"];
296 then
297 PKG_CHECK_MODULES(GST_TAG, gstreamer-tag-$GST_API_VERSION)
298 AC_SUBST(GST_TAG_CFLAGS)
299 AC_SUBST(GST_TAG_LIBS)
300
301 PKG_CHECK_MODULES(GSTPB_UTILS, gstreamer-pbutils-$GST_API_VERSION)
302 AC_SUBST(GSTPB_UTILS_CFLAGS)
303 AC_SUBST(GSTPB_UTILS_LIBS)
304 fi
305
306 dnl use waylandsrc --------------------------------------------------------------------------
307 AC_ARG_ENABLE(waylandsrc, AC_HELP_STRING([--enable-waylandsrc], [using waylandsrc]),
308 [
309  case "${enableval}" in
310   yes) GST_TIZEN_USE_WAYLANDSRC=yes ;;
311   no)  GST_TIZEN_USE_WAYLANDSRC=no ;;
312   *)   AC_MSG_ERROR(bad value ${enableval} for --enable-waylandsrc) ;;
313  esac
314  ],
315  [GST_TIZEN_USE_WAYLANDSRC=yes])
316 AM_CONDITIONAL(GST_TIZEN_USE_WAYLANDSRC, test "x$GST_TIZEN_USE_WAYLANDSRC" = "xyes")
317
318 if [test "x$GST_TIZEN_USE_WAYLANDSRC" = "xyes"];
319 then
320 PKG_CHECK_MODULES(WAYLAND_CLIENT, wayland-client wayland-tbm-client tizen-extension-client)
321 AC_SUBST(WAYLAND_CLIENT_CFLAGS)
322 AC_SUBST(WAYLAND_CLIENT_LIBS)
323 fi
324
325 dnl use drmdecryptor --------------------------------------------------------------------------
326 AC_ARG_ENABLE(drmdecryptor, AC_HELP_STRING([--enable-drmdecryptor], [using drmdecryptor]),
327 [
328  case "${enableval}" in
329   yes) GST_TIZEN_USE_DRMDECRYPTOR=yes ;;
330   no)  GST_TIZEN_USE_DRMDECRYPTOR=no ;;
331   *)   AC_MSG_ERROR(bad value ${enableval} for --enable-drmdecryptor) ;;
332  esac
333  ],
334  [GST_TIZEN_USE_DRMDECRYPTOR=yes])
335 AM_CONDITIONAL(GST_TIZEN_USE_DRMDECRYPTOR, test "x$GST_TIZEN_USE_DRMDECRYPTOR" = "xyes")
336
337 dnl use tizenipc--------------------------------------------------------------------------
338 AC_ARG_ENABLE(tizenipc, AC_HELP_STRING([--enable-tizenipc], [using tizenipc]),
339   [
340     case "${enableval}" in
341       yes) GST_TIZEN_USE_TIZENIPC=yes ;;
342       no)  GST_TIZEN_USE_TIZENIPC=no ;;
343       *)   AC_MSG_ERROR(bad value ${enableval} for --enable-tizenipc) ;;
344     esac
345   ],
346   [GST_TIZEN_USE_TIZENIPC=yes])
347 AM_CONDITIONAL(GST_TIZEN_USE_TIZENIPC, test "x$GST_TIZEN_USE_TIZENIPC" = "xyes")
348
349 dnl use ext-wfdtizenmanager --------------------------------------------------------------------------
350 AC_ARG_ENABLE(ext-wfdtizenmanager, AC_HELP_STRING([--enable-ext-wfdtizenmanager], [using wfdtizenmanager]),
351 [
352  case "${enableval}" in
353   yes) GST_TIZEN_USE_WFDTIZENMANAGER=yes ;;
354   no)  GST_TIZEN_USE_WFDTIZENMANAGER=no ;;
355   *)   AC_MSG_ERROR(bad value ${enableval} for --enable-ext-wfdtizenmanager) ;;
356  esac
357  ],
358  [GST_TIZEN_USE_WFDTIZENMANAGER=yes])
359 AM_CONDITIONAL(GST_TIZEN_USE_WFDTIZENMANAGER, test "x$GST_TIZEN_USE_WFDTIZENMANAGER" = "xyes")
360
361 dnl use ext-alfec --------------------------------------------------------------------------
362 AC_ARG_ENABLE(ext-alfec, AC_HELP_STRING([--enable-ext-alfec], [using alfec]),
363 [
364  case "${enableval}" in
365   yes) GST_TIZEN_USE_ALFEC=yes ;;
366   no)  GST_TIZEN_USE_ALFEC=no ;;
367   *)   AC_MSG_ERROR(bad value ${enableval} for --enable-ext-alfec) ;;
368  esac
369  ],
370  [GST_TIZEN_USE_ALFEC=yes])
371 AM_CONDITIONAL(GST_TIZEN_USE_ALFEC, test "x$GST_TIZEN_USE_ALFEC" = "xyes")
372
373 dnl use video360 --------------------------------------------------------------------------
374 AC_ARG_ENABLE(video360, AC_HELP_STRING([--enable-video360], [using video360]),
375 [
376  case "${enableval}" in
377   yes) GST_TIZEN_USE_VIDEO360=yes ;;
378   no)  GST_TIZEN_USE_VIDEO360=no ;;
379   *)   AC_MSG_ERROR(bad value ${enableval} for --enable-video360) ;;
380  esac
381  ],
382  [GST_TIZEN_USE_VIDEO360=yes])
383 AM_CONDITIONAL(GST_TIZEN_USE_VIDEO360, test "x$GST_TIZEN_USE_VIDEO360" = "xyes")
384
385 dnl video360 related options START --------------------------------------------------------
386 AC_ARG_WITH([tizen-platform], AS_HELP_STRING([--with-tizen-platform],
387   [Build with Tizen Porting Layer(TPL)]))
388
389 AC_ARG_WITH([native-formats], AS_HELP_STRING([--with-native-formats],
390   [Build with support for Tizen native video formats]))
391
392 AC_ARG_WITH([gles2], AS_HELP_STRING([--with-gles2], [Build with OpenGL ES 2.0]))
393
394 AS_IF([test "x$with_tizen_platform" = "xyes"], [
395     PKG_CHECK_MODULES(TPL, [
396       tpl-egl
397     ], [
398       AC_SUBST(TPL_CFLAGS)
399       AC_SUBST(TPL_LIBS)
400     ])
401     CFLAGS="$CFLAGS -DGST_TIZEN_PLATFORM"
402 ])
403
404 AS_IF([test "x$with_native_formats" = "xyes"], [
405     CFLAGS="$CFLAGS -DGST_TIZEN_USE_NATIVE_FORMATS"
406 ])
407
408 AS_IF([test "x$with_gles2" = "xyes"], [
409     PKG_CHECK_MODULES(GLES, [
410       gles20
411     ], [
412       AC_SUBST(GLES_CFLAGS)
413       AC_SUBST(GLES_LIBS)
414     ])
415     CFLAGS="$CFLAGS -DGST_TIZEN_GL_API_GLES2"
416 ])
417 dnl video360 related options END --------------------------------------------------------
418
419
420
421 dnl use waylandsink --------------------------------------------------------------------------
422 AC_ARG_ENABLE(waylandsink, AC_HELP_STRING([--enable-waylandsink], [using waylandsink]),
423 [
424  case "${enableval}" in
425          yes) GST_TIZEN_USE_WAYLANDSINK=yes ;;
426          no)  GST_TIZEN_USE_WAYLANDSINK=no ;;
427          *)   AC_MSG_ERROR(bad value ${enableval} for --enable-waylandsink) ;;
428  esac
429  ],
430  [GST_TIZEN_USE_WAYLANDSINK=yes])
431 AM_CONDITIONAL([GST_TIZEN_USE_WAYLANDSINK], [test "x$GST_TIZEN_USE_WAYLANDSINK" = "xyes"])
432 if test "x$GST_TIZEN_USE_WAYLANDSINK" = "xyes"; then
433 PKG_CHECK_MODULES(WAYLAND, wayland-client >= 1.4.0 wayland-tbm-client tizen-extension-client wayland-scanner wtz-foreign-client)
434 AC_PATH_PROG([wayland_scanner], [wayland-scanner])
435 AC_SUBST(WAYLAND_CFLAGS)
436 AC_SUBST(WAYLAND_LIBS)
437 fi
438
439 dnl use tizencamerasrc --------------------------------------------------------------------------
440 AC_ARG_ENABLE(tizencamerasrc, AC_HELP_STRING([--enable-tizencamerasrc], [using tizencamerasrc]),
441 [
442  case "${enableval}" in
443          yes) GST_TIZEN_USE_TIZENCAMERASRC=yes ;;
444          no)  GST_TIZEN_USE_TIZENCAMERASRC=no ;;
445          *)   AC_MSG_ERROR(bad value ${enableval} for --enable-tizencamerasrc) ;;
446  esac
447  ],
448  [GST_TIZEN_USE_TIZENCAMERASRC=yes])
449 AM_CONDITIONAL([GST_TIZEN_USE_TIZENCAMERASRC], [test "x$GST_TIZEN_USE_TIZENCAMERASRC" = "xyes"])
450 if test "x$GST_TIZEN_USE_TIZENCAMERASRC" = "xyes"; then
451 PKG_CHECK_MODULES(HAL_API_CAMERA, hal-api-camera)
452 AC_SUBST(HAL_API_CAMERA_CFLAGS)
453 AC_SUBST(HAL_API_CAMERA_LIBS)
454 fi
455
456 dnl use tinycompress --------------------------------------------------------------------------
457 AC_ARG_ENABLE(tinycompress, AC_HELP_STRING([--enable-tinycompress], [using tinycompress]),
458 [
459  case "${enableval}" in
460          yes) GST_TIZEN_USE_TINYCOMPRESS=yes ;;
461          no)  GST_TIZEN_USE_TINYCOMPRESS=no ;;
462          *)   AC_MSG_ERROR(bad value ${enableval} for --enable-tinycompress) ;;
463  esac
464  ],
465  [GST_TIZEN_USE_TINYCOMPRESS=no])
466 AM_CONDITIONAL(GST_TIZEN_USE_TINYCOMPRESS, test "x$GST_TIZEN_USE_TINYCOMPRESS" = "xyes")
467 if test "x$GST_TIZEN_USE_TINYCOMPRESS" = "xyes"; then
468 PKG_CHECK_MODULES(TINYCOMPRESS, tinycompress)
469 AC_SUBST(TINYCOMPRESS_CFLAGS)
470 AC_SUBST(TINYCOMPRESS_LIBS)
471 PKG_CHECK_MODULES(SOUND_MANAGER, capi-media-sound-manager)
472 AC_SUBST(SOUND_MANAGER_CFLAGS)
473 AC_SUBST(SOUND_MANAGER_LIBS)
474 PKG_CHECK_MODULES(ASOUNDLIB, alsa)
475 AC_SUBST(ASOUNDLIB_CFLAGS)
476 AC_SUBST(ASOUNDLIB_LIBS)
477 fi
478
479 dnl use tinycompress test--------------------------------------------------------------------------
480 AC_ARG_ENABLE(tinycompress_test, AC_HELP_STRING([--enable-tinycompress_test], [using tinycompress_test]),
481 [
482  case "${enableval}" in
483          yes) USE_TINYCOMPRESS_TEST=yes ;;
484          no)  USE_TINYCOMPRESS_TEST=no ;;
485          *)   AC_MSG_ERROR(bad value ${enableval} for --enable-tinycompress_test) ;;
486  esac
487  ],
488  [USE_TINYCOMPRESS_TEST=no])
489 AM_CONDITIONAL(USE_TINYCOMPRESS_TEST, test "x$USE_TINYCOMPRESS_TEST" = "xyes")
490
491 AC_ARG_ENABLE(tests, AC_HELP_STRING([--enable-tests], [unittest build]),
492      [
493         case "${enableval}" in
494         yes) IS_TESTS=yes ;;
495         no)  IS_TESTS=no ;;
496           *)   AC_MSG_ERROR(bad value ${enableval} for --enable-tests) ;;
497         esac
498     ],
499 [IS_TESTS=no])
500 AM_CONDITIONAL([IS_TESTS], [test "x$IS_TESTS" = "xyes"])
501
502 AS_IF([test "x$enable_tests" = "xyes"], [
503     PKG_CHECK_MODULES(GTESTS, gmock)
504     AC_SUBST(GTESTS_CFLAGS)
505     AC_SUBST(GTESTS_LIBS)
506 ])
507
508 AC_OUTPUT(
509 Makefile
510 common/Makefile
511 common/m4/Makefile
512 toggle/Makefile
513 toggle/src/Makefile
514 audiotp/Makefile
515 audiotp/src/Makefile
516 audioeq/Makefile
517 audioeq/src/Makefile
518 audioeq/unittest/Makefile
519 fimcconvert/Makefile
520 fimcconvert/src/Makefile
521 wfdmanager/Makefile
522 wfdmanager/unittest/Makefile
523 wfdmanager/wfdbase/Makefile
524 wfdtsdemux/Makefile
525 waylandsrc/Makefile
526 waylandsrc/src/Makefile
527 drmdecryptor/Makefile
528 drmdecryptor/src/Makefile
529 tizenipc/Makefile
530 tizenipc/src/Makefile
531 wfdtizenmanager/Makefile
532 alfec/Makefile
533 video360/Makefile
534 video360/src/Makefile
535 video360/unittest/Makefile
536 tizenencodebin/Makefile
537 tizenencodebin/src/Makefile
538 tizenwlsink/Makefile
539 tizenwlsink/src/Makefile
540 tizenwlsink/unittest/Makefile
541 tizencamerasrc/Makefile
542 tizencamerasrc/src/Makefile
543 tinycompresssink/Makefile
544 tinycompresssink/src/Makefile
545 tinycompresssink/test/Makefile
546 )