forked from illuusio/ffmpeg-example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.ac
More file actions
39 lines (27 loc) · 1.14 KB
/
configure.ac
File metadata and controls
39 lines (27 loc) · 1.14 KB
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
AC_PREREQ([2.57])
AC_INIT([ffmpeg-example], [140427], [https://github.com/illuusio], [ffmpeg-example], [https://github.com/illuusio])
AM_INIT_AUTOMAKE([foreign dist-bzip2])
AC_CONFIG_MACRO_DIR([m4])
AC_LANG_C
AC_PROG_CC
AM_PROG_LIBTOOL
RESAMPLE=__LIBAVRESAMPLE__
RESAMPLELIB=libavresample
AC_ARG_ENABLE([avresample], [ --disable-avresample Disable use of avresample])
AC_ARG_ENABLE([swresample], [ --enable-swresample Disable use of avresample and use libswresample instead])
AS_IF([test "x$enable_avresample" == "xno"], [
dnl As we don't need education we disable this feature
echo "** We are using OLD FFMPEG resampling. Not working with FFMPEG 1.x and above (Libav 9) **"
RESAMPLE=__FFMPEGOLDAPI__
RESAMPLELIB=
])
AS_IF([test "x$enable_swresample" == "xyes"], [
dnl As we don't need education we disable this feature
echo "** We are using SWResample good luck **"
RESAMPLE=__LIBSWRESAMPLE__
RESAMPLELIB=libswresample
])
C_OPTIONS="-Wall -Werror -std=c99 -fno-strict-aliasing -g -D${RESAMPLE} -std=c99 -I."
AC_SUBST(C_OPTIONS)
PKG_CHECK_MODULES(FFMPEG, ${RESAMPLELIB} libavcodec libavformat libavutil)
AC_OUTPUT([Makefile])