Darwin install strips all global symbols, which gives undefined symbols
[libav.git] / configure
1 #!/bin/sh
2 #
3 # ffmpeg configure script (c) 2000, 2001, 2002 Fabrice Bellard
4 #
5
6 if test x"$1" = x"-h" -o x"$1" = x"--help" ; then
7 cat << EOF
8
9 Usage: configure [options]
10 Options: [defaults in brackets after descriptions]
11
12 EOF
13 echo "Standard options:"
14 echo " --help print this message"
15 echo " --prefix=PREFIX install in PREFIX [$prefix]"
16 echo " --libdir=DIR install libs in DIR [PREFIX/lib]"
17 echo " --mandir=DIR install man page in DIR [PREFIX/man]"
18 echo " --enable-mp3lame enable MP3 encoding via libmp3lame [default=no]"
19 echo " --enable-libogg enable Ogg support via libogg [default=no]"
20 echo " --enable-vorbis enable Vorbis support via libvorbis [default=no]"
21 echo " --enable-theora enable Theora support via libtheora [default=no]"
22 echo " --enable-faad enable FAAD support via libfaad [default=no]"
23 echo " --enable-faadbin build FAAD support with runtime linking [default=no]"
24 echo " --enable-faac enable FAAC support via libfaac [default=no]"
25 echo " --enable-libgsm enable GSM support via libgsm [default=no]"
26 echo " --enable-xvid enable XviD support via xvidcore [default=no]"
27 echo " --enable-x264 enable H.264 encoding via x264 [default=no]"
28 echo " --enable-mingw32 enable MinGW native/cross Windows compile"
29 echo " --enable-a52 enable GPLed A52 support [default=no]"
30 echo " --enable-a52bin open liba52.so.0 at runtime [default=no]"
31 echo " --enable-dts enable GPLed DTS support [default=no]"
32 echo " --enable-pp enable GPLed postprocessing support [default=no]"
33 echo " --enable-shared-pp use libpostproc.so [default=no]"
34 echo " --enable-shared build shared libraries [default=no]"
35 echo " --enable-amr_nb enable amr_nb float audio codec"
36 echo " --enable-amr_nb-fixed use fixed point for amr-nb codec"
37 echo " --enable-amr_wb enable amr_wb float audio codec"
38 echo " --enable-amr_if2 enable amr_wb IF2 audio codec"
39 echo " --enable-sunmlib use Sun medialib [default=no]"
40 echo " --enable-pthreads use pthreads [default=no]"
41 echo " --enable-dc1394 enable IIDC-1394 grabbing using libdc1394"
42 echo " and libraw1394 [default=no]"
43 echo " --enable-gpl allow use of GPL code, the resulting libav*"
44 echo " and ffmpeg will be under GPL [default=no]"
45 echo ""
46 echo "Advanced options (experts only):"
47 echo " --source-path=PATH path to source code [$source_path]"
48 echo " --cross-prefix=PREFIX use PREFIX for compilation tools [$cross_prefix]"
49 echo " --cc=CC use C compiler CC [$cc]"
50 echo " --make=MAKE use specified make [$make]"
51 echo " --extra-cflags=ECFLAGS add ECFLAGS to CFLAGS [$CFLAGS]"
52 echo " --extra-ldflags=ELDFLAGS add ELDFLAGS to LDFLAGS [$LDFLAGS]"
53 echo " --extra-libs=ELIBS add ELIBS [$ELIBS]"
54 echo " --build-suffix=SUFFIX suffix for application specific build []"
55 echo " --cpu=CPU force cpu to CPU [$cpu]"
56 echo " --tune=CPU tune code for a particular CPU"
57 echo " (may fail or perform badly on other CPUs)"
58 echo " --powerpc-perf-enable enable performance report on PPC"
59 echo " (requires enabling PMC)"
60 echo " --disable-mmx disable MMX usage"
61 echo " --disable-iwmmxt disable iwmmxt usage"
62 echo " --disable-altivec disable AltiVec usage"
63 echo " --disable-audio-oss disable OSS audio support [default=no]"
64 echo " --disable-audio-beos disable BeOS audio support [default=no]"
65 echo " --disable-v4l disable video4linux grabbing [default=no]"
66 echo " --disable-bktr disable bktr video grabbing [default=no]"
67 echo " --disable-dv1394 disable DV1394 grabbing [default=no]"
68 echo " --disable-network disable network support [default=no]"
69 echo " --disable-zlib disable zlib [default=no]"
70 echo " --disable-simple_idct disable simple IDCT routines [default=no]"
71 echo " --disable-vhook disable video hooking support"
72 echo " --enable-gprof enable profiling with gprof [$gprof]"
73 echo " --disable-debug disable debugging symbols"
74 echo " --disable-opts disable compiler optimizations"
75 echo " --disable-mpegaudio-hp faster (but less accurate)"
76 echo " MPEG audio decoding [default=no]"
77 echo " --disable-ffserver disable ffserver build"
78 echo " --disable-ffplay disable ffplay build"
79 echo " --enable-small optimize for size instead of speed"
80 echo " --enable-memalign-hack emulate memalign, interferes with memory debuggers"
81 echo " --disable-strip disable stripping of executables and shared libraries"
82 echo " --enable-codec=CODEC enables CODEC"
83 echo " --disable-codec=CODEC disables CODEC"
84 echo " --disable-encoders disables all encoders"
85 echo " --disable-decoders disables all decoders"
86 echo " --disable-muxers disables all muxers"
87 echo " --disable-demuxers disables all demuxers"
88 echo ""
89 echo "NOTE: Object files are built at the place where configure is launched."
90 exit 1
91 fi
92
93 # set temporary file name
94 if test ! -z "$TMPDIR" ; then
95 TMPDIR1="${TMPDIR}"
96 elif test ! -z "$TEMPDIR" ; then
97 TMPDIR1="${TEMPDIR}"
98 else
99 TMPDIR1="/tmp"
100 fi
101
102 TMPC="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.c"
103 TMPO="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.o"
104 TMPE="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}"
105 TMPS="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.S"
106 TMPH="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.h"
107
108 # default parameters
109 prefix="/usr/local"
110 libdir=""
111 mandir=""
112 bindir=""
113 cross_prefix=""
114 cc="gcc"
115 ar="ar"
116 ranlib="ranlib"
117 make="make"
118 strip="strip"
119 cpu=`uname -m`
120 tune="generic"
121 powerpc_perf="no"
122 mmx="default"
123 iwmmxt="default"
124 altivec="default"
125 mmi="default"
126 case "$cpu" in
127 i386|i486|i586|i686|i86pc|BePC)
128 cpu="x86"
129 ;;
130 x86_64|amd64)
131 cpu="x86"
132 canon_arch="`cc -dumpmachine | sed -e 's,\([^-]*\)-.*,\1,'`"
133 if [ x"$canon_arch" = x"x86_64" -o x"$canon_arch" = x"amd64" ]; then
134 if [ -z "`echo $CFLAGS | grep -- -m32`" ]; then
135 cpu="x86_64"
136 fi
137 fi
138 ;;
139 # armv4l is a subset of armv5tel
140 armv4l|armv5tel)
141 cpu="armv4l"
142 ;;
143 alpha)
144 cpu="alpha"
145 ;;
146 "Power Macintosh"|ppc|powerpc)
147 cpu="powerpc"
148 ;;
149 mips|mipsel)
150 cpu="mips"
151 ;;
152 sun4u|sparc64)
153 cpu="sparc64"
154 ;;
155 sparc)
156 cpu="sparc"
157 ;;
158 sh4)
159 cpu="sh4"
160 ;;
161 parisc|parisc64)
162 cpu="parisc"
163 ;;
164 s390|s390x)
165 cpu="s390"
166 ;;
167 m68k)
168 cpu="m68k"
169 ;;
170 ia64)
171 cpu="ia64"
172 ;;
173 *)
174 cpu="unknown"
175 ;;
176 esac
177 gprof="no"
178 v4l="yes"
179 bktr="no"
180 audio_oss="yes"
181 audio_beos="no"
182 dv1394="yes"
183 dc1394="no"
184 network="yes"
185 zlib="yes"
186 libgsm="no"
187 mp3lame="no"
188 libogg="no"
189 vorbis="no"
190 theora="no"
191 faad="no"
192 faadbin="no"
193 faac="no"
194 xvid="no"
195 x264="no"
196 a52="no"
197 a52bin="no"
198 dts="no"
199 pp="no"
200 shared_pp="no"
201 mingw32="no"
202 cygwin="no"
203 os2="no"
204 lshared="no"
205 optimize="yes"
206 debug="yes"
207 dostrip="yes"
208 installstrip="-s"
209 extralibs="-lm"
210 simpleidct="yes"
211 bigendian="no"
212 inttypes="yes"
213 emu_fast_int="no"
214 vhook="default"
215 dlfcn="no"
216 dlopen="no"
217 mpegaudio_hp="yes"
218 SHFLAGS=-shared
219 netserver="no"
220 need_inet_aton="no"
221 ffserver="yes"
222 ffplay="yes"
223 LIBOBJFLAGS=""
224 LDFLAGS=-Wl,--warn-common
225 FFSLDFLAGS=-Wl,-E
226 LDCONFIG="ldconfig"
227 LIBPREF="lib"
228 LIBSUF=".a"
229 SLIBPREF="lib"
230 SLIBSUF=".so"
231 EXESUF=""
232 BUILDSUF=""
233 amr_nb="no"
234 amr_wb="no"
235 amr_nb_fixed="no"
236 amr_if2="no"
237 sunmlib="no"
238 pthreads="no"
239 gpl="no"
240 memalignhack="no"
241 muxers="yes"
242 demuxers="yes"
243
244 # OS specific
245 targetos=`uname -s`
246 case $targetos in
247 BeOS)
248 prefix="/boot/home/config"
249 # helps building libavcodec
250 CFLAGS="-DPIC -fomit-frame-pointer"
251 # 3 gcc releases known for BeOS, each with ugly bugs
252 gcc_version="`$cc -v 2>&1 | grep version | cut -d ' ' -f3-`"
253 case "$gcc_version" in
254 2.9-beos-991026*|2.9-beos-000224*) echo "R5/GG gcc"
255 mmx="no"
256 ;;
257 *20010315*) echo "BeBits gcc"
258 CFLAGS="$CFLAGS -fno-expensive-optimizations"
259 ;;
260 esac
261 SHFLAGS=-nostart
262 # disable Linux things
263 audio_oss="no"
264 v4l="no"
265 dv1394="no"
266 # enable BeOS things
267 audio_beos="yes"
268 # no need for libm, but the inet stuff
269 # Check for BONE
270 if (echo $BEINCLUDES|grep 'headers/be/bone' >/dev/null); then
271 extralibs="-lbind -lsocket"
272 else
273 netserver="yes"
274 need_inet_aton="yes"
275 extralibs="-lnet"
276 fi ;;
277 SunOS)
278 v4l="no"
279 audio_oss="no"
280 dv1394="no"
281 make="gmake"
282 LDFLAGS=""
283 FFSLDFLAGS=""
284 need_inet_aton="yes"
285 extralibs="$extralibs -lsocket -lnsl"
286 ;;
287 NetBSD)
288 v4l="no"
289 bktr="yes"
290 audio_oss="yes"
291 dv1394="no"
292 make="gmake"
293 LDFLAGS="$LDFLAGS -export-dynamic"
294 case `uname -r` in
295 2.*) extralibs="$extralibs -lossaudio"
296 ;;
297 esac
298 ;;
299 OpenBSD)
300 v4l="no"
301 bktr="yes"
302 audio_oss="yes"
303 dv1394="no"
304 make="gmake"
305 LIBOBJFLAGS="\$(PIC)"
306 LDFLAGS="$LDFLAGS -export-dynamic -pthread"
307 LDCONFIG="ldconfig -m \$(libdir)"
308 extralibs="$extralibs -lossaudio"
309 ;;
310 FreeBSD)
311 v4l="no"
312 bktr="yes"
313 audio_oss="yes"
314 dv1394="no"
315 make="gmake"
316 CFLAGS="-pthread"
317 LDFLAGS="$LDFLAGS -export-dynamic -pthread"
318 ;;
319 BSD/OS)
320 v4l="no"
321 bktr="yes"
322 audio_oss="yes"
323 dv1394="no"
324 extralibs="-lpoll -lgnugetopt -lm"
325 make="gmake"
326 ;;
327 Darwin)
328 cc="cc"
329 v4l="no"
330 audio_oss="no"
331 dv1394="no"
332 ffserver="no"
333 SHFLAGS="-dynamiclib -Wl,-single_module,-undefined,dynamic_lookup"
334 extralibs=""
335 darwin="yes"
336 strip="strip -x"
337 installstrip=""
338 LDFLAGS="-Wl,-dynamic,-search_paths_first"
339 SLIBSUF=".dylib"
340 FFSLDFLAGS=-Wl,-bind_at_load
341 ;;
342 MINGW32*)
343 # Note: the rest of the mingw32 config is done afterwards as mingw32
344 # can be forced on the command line for Linux cross compilation.
345 mingw32="yes"
346 ;;
347 CYGWIN*)
348 v4l="no"
349 audio_oss="yes"
350 dv1394="no"
351 ffserver="no"
352 extralibs=""
353 cygwin="yes"
354 EXESUF=".exe"
355 ;;
356 Linux)
357 LDFLAGS="$LDFLAGS -rdynamic"
358 ;;
359 IRIX*)
360 ranlib="echo ignoring ranlib"
361 v4l="no"
362 audio_oss="no"
363 make="gmake"
364 ;;
365 OS/2)
366 TMPE=$TMPE".exe"
367 ar="emxomfar -p128"
368 ranlib="echo ignoring ranlib"
369 strip="echo ignoring strip"
370 CFLAGS="-Zomf"
371 LDFLAGS="-Zomf -Zstack 16384 -s"
372 SHFLAGS="-Zdll -Zomf"
373 FFSLDFLAGS=""
374 LIBPREF=""
375 LIBSUF=".lib"
376 SLIBPREF=""
377 SLIBSUF=".dll"
378 EXESUF=".exe"
379 extralibs=""
380 pkg_requires=""
381 v4l="no"
382 audio_oss="no"
383 dv1394="no"
384 network="no"
385 ffserver="no"
386 vhook="no"
387 os2="yes"
388
389 ;;
390 *) ;;
391 esac
392
393 # From MPlayer configure. We need TARGET_OS available
394 # to the Makefile, so it can distinguish between flavors
395 # of AltiVec on PowerPC.
396 TARGET_OS=`( uname -s ) 2>&1`
397 case "$TARGET_OS" in
398 Linux|FreeBSD|NetBSD|BSD/OS|OpenBSD|SunOS|QNX|Darwin|GNU|BeOS|MorphOS)
399 ;;
400 IRIX*)
401 TARGET_OS=IRIX
402 ;;
403 HP-UX*)
404 TARGET_OS=HP-UX
405 ;;
406 [cC][yY][gG][wW][iI][nN]*)
407 TARGET_OS=CYGWIN
408 ;;
409 *)
410 TARGET_OS="$TARGET_OS-UNKNOWN"
411 ;;
412 esac
413
414 # find source path
415 source_path="`echo $0 | sed -e 's#/configure##'`"
416 source_path_used="yes"
417 if test -z "$source_path" -o "$source_path" = "." ; then
418 source_path=`pwd`
419 source_path_used="no"
420 else
421 source_path="`cd \"$source_path\"; pwd`"
422 fi
423
424 FFMPEG_CONFIGURATION=" "
425 for opt do
426 FFMPEG_CONFIGURATION="$FFMPEG_CONFIGURATION""$opt "
427 done
428
429 CODEC_LIST=`grep 'register_avcodec(&[a-z]' $source_path/libavcodec/allcodecs.c | sed 's/.*&\(.*\)).*/\1/'`
430
431 for opt do
432 case "$opt" in
433 --prefix=*) prefix=`echo $opt | cut -d '=' -f 2`; force_prefix=yes
434 ;;
435 --libdir=*) libdir=`echo $opt | cut -d '=' -f 2`; force_libdir=yes
436 ;;
437 --mandir=*) mandir=`echo $opt | cut -d '=' -f 2`
438 ;;
439 --source-path=*) source_path=`echo $opt | cut -d '=' -f 2`
440 ;;
441 --cross-prefix=*) cross_prefix=`echo $opt | cut -d '=' -f 2`
442 ;;
443 --cc=*) cc=`echo $opt | cut -d '=' -f 2-`
444 ;;
445 --make=*) make=`echo $opt | cut -d '=' -f 2`
446 ;;
447 --extra-cflags=*) CFLAGS="$CFLAGS ${opt#--extra-cflags=}"
448 ;;
449 --extra-ldflags=*) LDFLAGS="$LDFLAGS ${opt#--extra-ldflags=}"
450 ;;
451 --extra-libs=*) extralibs=${opt#--extra-libs=}
452 ;;
453 --build-suffix=*) BUILDSUF=${opt#--build-suffix=}
454 ;;
455 --cpu=*) cpu=`echo $opt | cut -d '=' -f 2`
456 ;;
457 --tune=*) tune=`echo $opt | cut -d '=' -f 2`
458 ;;
459 --powerpc-perf-enable) powerpc_perf="yes"
460 ;;
461 --disable-mmx) mmx="no"
462 ;;
463 --disable-iwmmxt) iwmmxt="no"
464 ;;
465 --disable-altivec) altivec="no"
466 ;;
467 --enable-gprof) gprof="yes"
468 ;;
469 --disable-v4l) v4l="no"
470 ;;
471 --disable-bktr) bktr="no"
472 ;;
473 --disable-audio-oss) audio_oss="no"
474 ;;
475 --disable-audio-beos) audio_beos="no"
476 extralibs="$extralibs -lbe -lmedia"
477 ;;
478 --disable-dv1394) dv1394="no"
479 ;;
480 --disable-network) network="no"; ffserver="no"
481 ;;
482 --disable-zlib) zlib="no"
483 ;;
484 --enable-a52) a52="yes"
485 ;;
486 --enable-a52bin) a52bin="yes"
487 ;;
488 --enable-dts) dts="yes"
489 extralibs="$extralibs -ldts"
490 ;;
491 --enable-pp) pp="yes"
492 ;;
493 --enable-shared-pp) shared_pp="yes"
494 ;;
495 --enable-libgsm) libgsm="yes"
496 extralibs="$extralibs -lgsm"
497 ;;
498 --enable-mp3lame) mp3lame="yes"
499 extralibs="$extralibs -lmp3lame"
500 ;;
501 --enable-libogg) libogg="yes"
502 extralibs="$extralibs -logg"
503 pkg_requires="$pkg_requires ogg >= 1.1"
504 ;;
505 --enable-vorbis) vorbis="yes"
506 extralibs="$extralibs -lvorbis -lvorbisenc"
507 pkg_requires="$pkg_requires vorbis vorbisenc"
508 ;;
509 --enable-theora) theora="yes"
510 extralibs="$extralibs -ltheora"
511 pkg_requires="$pkg_requires theora"
512 ;;
513 --enable-faad) faad="yes"
514 extralibs="$extralibs -lfaad"
515 ;;
516 --enable-faadbin) faadbin="yes"
517 ;;
518 --enable-faac) faac="yes"
519 extralibs="$extralibs -lfaac"
520 ;;
521 --enable-xvid) xvid="yes"
522 extralibs="$extralibs -lxvidcore"
523 ;;
524 --enable-x264) x264="yes"
525 extralibs="$extralibs -lx264"
526 ;;
527 --enable-dc1394) dc1394="yes"
528 extralibs="$extralibs -ldc1394_control -lraw1394"
529 pkg_requires="$pkg_requires libraw1394"
530 ;;
531 --disable-vhook) vhook="no"
532 ;;
533 --disable-simple_idct) simpleidct="no"
534 ;;
535 --enable-mingw32) mingw32="yes"
536 ;;
537 --enable-shared) lshared="yes"
538 ;;
539 --disable-debug) debug="no"
540 ;;
541 --disable-opts) optimize="no"
542 ;;
543 --disable-mpegaudio-hp) mpegaudio_hp="no"
544 ;;
545 --disable-ffserver) ffserver="no"
546 ;;
547 --disable-ffplay) ffplay="no"
548 ;;
549 --enable-small) optimize="small"
550 ;;
551 --enable-amr_nb) amr_nb="yes"
552 ;;
553 --enable-amr_nb-fixed) amr_nb_fixed="yes"
554 ;;
555 --enable-amr_wb) amr_wb="yes"
556 ;;
557 --enable-amr_if2) amr_if2="yes"
558 ;;
559 --enable-sunmlib) sunmlib="yes"
560 ;;
561 --enable-pthreads) pthreads="yes"
562 ;;
563 --enable-gpl) gpl="yes"
564 ;;
565 --enable-memalign-hack) memalignhack="yes"
566 ;;
567 --disable-strip) dostrip="no"
568 ;;
569 --enable-codec=*) CODEC_LIST="$CODEC_LIST ${opt#--enable-codec=}"
570 ;;
571 --disable-codec=*) CODEC_LIST="`echo $CODEC_LIST | sed -e \"s#${opt#--disable-codec=}##\"`"
572 ;;
573 --disable-encoders) CODEC_LIST="`echo $CODEC_LIST | sed 's/[-_a-zA-Z0-9]*encoder//g'`"
574 ;;
575 --disable-decoders) CODEC_LIST="`echo $CODEC_LIST | sed 's/[-_a-zA-Z0-9]*decoder//g'`"
576 ;;
577 --disable-muxers) muxers="no"
578 ;;
579 --disable-demuxers) demuxers="no"
580 ;;
581 *)
582 echo "Unknown option \"$opt\"."
583 echo "See $0 --help for available options."
584 exit 1
585 ;;
586 esac
587 done
588
589 if test "$theora" = "yes" ; then
590 if test "$libogg" = "no"; then
591 echo "libogg must be enabled to enable Theora."
592 fail="yes"
593 theora="no"
594 fi
595 fi
596
597 if test "$vorbis" = "yes" ; then
598 if test "$libogg" = "no"; then
599 echo "libogg must be enabled to enable Vorbis."
600 fail="yes"
601 vorbis="no"
602 fi
603 fi
604
605 if test "$gpl" != "yes"; then
606 if test "$pp" != "no" -o "$shared_pp" != "no"; then
607 echo "The Postprocessing code is under GPL and --enable-gpl is not specified."
608 fail="yes"
609 fi
610
611 if test "$a52" != "no" -o "$a52bin" != "no"; then
612 echo "liba52 is under GPL and --enable-gpl is not specified."
613 fail="yes"
614 fi
615
616 if test "$xvid" != "no"; then
617 echo "libxvidcore is under GPL and --enable-gpl is not specified."
618 fail="yes"
619 fi
620
621 if test "$x264" != "no"; then
622 echo "x264 is under GPL and --enable-gpl is not specified."
623 fail="yes"
624 fi
625
626 if test "$dts" != "no"; then
627 echo "libdts is under GPL and --enable-gpl is not specified."
628 fail="yes"
629 fi
630
631 if test "$faad" != "no" -o "$faadbin" != "no"; then
632 cat > $TMPC << EOF
633 #include <faad.h>
634 int main( void ) { return 0; }
635 EOF
636
637 if $cc $CFLAGS -o $TMPE $TMPC 2> /dev/null ; then
638 cat > $TMPC << EOF
639 #include <faad.h>
640 #ifndef FAAD2_VERSION
641 ok faad1
642 #endif
643 int main( void ) { return 0; }
644 EOF
645 if $cc $CFLAGS -o $TMPE $TMPC 2> /dev/null ; then
646 echo "FAAD2 is under GPL and --enable-gpl is not specified."
647 fail="yes"
648 fi
649 else
650 faad="no"
651 faadbin="no"
652 echo "FAAD test failed."
653 fi
654 fi
655
656
657 if test "$fail" = "yes"; then
658 exit 1
659 fi
660 fi
661
662 # compute MMX state
663 if test $mmx = "default"; then
664 if test $cpu = "x86" -o $cpu = "x86_64"; then
665 mmx="yes"
666 else
667 mmx="no"
668 fi
669 fi
670
671 # check iwmmxt support
672 if test $iwmmxt = "default" -a $cpu = "armv4l"; then
673 cat > $TMPC << EOF
674 int main(void) {
675 __asm__ __volatile__ ("wunpckelub wr6, wr4");
676 }
677 EOF
678
679 iwmmxt=no
680 if ${cross_prefix}${cc} -o $TMPO $TMPC 2> /dev/null ; then
681 iwmmxt=yes
682 fi
683 fi
684
685 #Darwin CC versions
686 needmdynamicnopic="no"
687 if test $targetos = Darwin; then
688 if test -n "`$cc -v 2>&1 | grep xlc`"; then
689 CFLAGS="$CFLAGS -qpdf2 -qlanglvl=extc99 -qmaxmem=-1 -qarch=auto -qtune=auto"
690 else
691 gcc_version="`$cc -v 2>&1 | grep version | cut -d ' ' -f3-`"
692 case "$gcc_version" in
693 *2.95*)
694 CFLAGS="$CFLAGS -no-cpp-precomp -pipe -fomit-frame-pointer"
695 ;;
696 *[34].*)
697 CFLAGS="$CFLAGS -no-cpp-precomp -pipe -fomit-frame-pointer -force_cpusubtype_ALL -Wno-sign-compare"
698 if test "$lshared" = no; then
699 needmdynamicnopic="yes"
700 fi
701 ;;
702 *)
703 CFLAGS="$CFLAGS -no-cpp-precomp -pipe -fomit-frame-pointer"
704 if test "$lshared" = no; then
705 needmdynamicnopic="yes"
706 fi
707 ;;
708 esac
709 fi
710 fi
711
712 # Can only do AltiVec on PowerPC
713 if test $altivec = "default"; then
714 if test $cpu = "powerpc"; then
715 altivec="yes"
716 else
717 altivec="no"
718 fi
719 fi
720
721 # Add processor-specific flags
722 TUNECPU="generic"
723 POWERPCMODE="32bits"
724 if test $tune != "generic"; then
725 case $tune in
726 601|ppc601|PowerPC601)
727 CFLAGS="$CFLAGS -mcpu=601"
728 if test $altivec = "yes"; then
729 echo "WARNING: Tuning for PPC601 but AltiVec enabled!";
730 fi
731 TUNECPU=ppc601
732 ;;
733 603*|ppc603*|PowerPC603*)
734 CFLAGS="$CFLAGS -mcpu=603"
735 if test $altivec = "yes"; then
736 echo "WARNING: Tuning for PPC603 but AltiVec enabled!";
737 fi
738 TUNECPU=ppc603
739 ;;
740 604*|ppc604*|PowerPC604*)
741 CFLAGS="$CFLAGS -mcpu=604"
742 if test $altivec = "yes"; then
743 echo "WARNING: Tuning for PPC604 but AltiVec enabled!";
744 fi
745 TUNECPU=ppc604
746 ;;
747 G3|g3|75*|ppc75*|PowerPC75*)
748 CFLAGS="$CFLAGS -mcpu=750 -mtune=750 -mpowerpc-gfxopt"
749 if test $altivec = "yes"; then
750 echo "WARNING: Tuning for PPC75x but AltiVec enabled!";
751 fi
752 TUNECPU=ppc750
753 ;;
754 G4|g4|745*|ppc745*|PowerPC745*)
755 CFLAGS="$CFLAGS -mcpu=7450 -mtune=7450 -mpowerpc-gfxopt"
756 if test $altivec = "no"; then
757 echo "WARNING: Tuning for PPC745x but AltiVec disabled!";
758 fi
759 TUNECPU=ppc7450
760 ;;
761 74*|ppc74*|PowerPC74*)
762 CFLAGS="$CFLAGS -mcpu=7400 -mtune=7400 -mpowerpc-gfxopt"
763 if test $altivec = "no"; then
764 echo "WARNING: Tuning for PPC74xx but AltiVec disabled!";
765 fi
766 TUNECPU=ppc7400
767 ;;
768 G5|g5|970|ppc970|PowerPC970|power4*|Power4*)
769 CFLAGS="$CFLAGS -mcpu=970 -mtune=970 -mpowerpc-gfxopt -mpowerpc64"
770 if test $altivec = "no"; then
771 echo "WARNING: Tuning for PPC970 but AltiVec disabled!";
772 fi
773 TUNECPU=ppc970
774 POWERPCMODE="64bits"
775 ;;
776 i[3456]86|pentium|pentiumpro|pentium-mmx|pentium[234]|prescott|k6|k6-[23]|athlon|athlon-tbird|athlon-4|athlon-[mx]p|winchip-c6|winchip2|c3|nocona|athlon64|k8|opteron|athlon-fx)
777 CFLAGS="$CFLAGS -march=$tune"
778 ;;
779 *)
780 echo "WARNING: Unknown CPU \"$tune\", ignored."
781 ;;
782 esac
783 fi
784
785 # AltiVec flags: The FSF version of GCC differs from the Apple version
786 if test $cpu = "powerpc"; then
787 if test $altivec = "yes"; then
788 if test -n "`$cc -v 2>&1 | grep version | grep Apple`"; then
789 CFLAGS="$CFLAGS -faltivec"
790 else
791 CFLAGS="$CFLAGS -maltivec -mabi=altivec"
792 fi
793 fi
794 fi
795
796 # check if we have <altivec.h>
797 cat > $TMPC << EOF
798 #include <altivec.h>
799 int main( void ) { return 0; }
800 EOF
801
802 _altivec_h="no"
803 if $cc $CFLAGS -o $TMPE $TMPC 2> /dev/null ; then
804 _altivec_h="yes"
805 fi
806
807 # check if our compiler supports Motorola AltiVec C API
808 if test $altivec = "yes"; then
809 if test $_altivec_h = "yes"; then
810 cat > $TMPC << EOF
811 #include <altivec.h>
812 int main(void) {
813 vector signed int v1, v2, v3;
814 v1 = vec_add(v2,v3);
815 return 0;
816 }
817 EOF
818 else
819 cat > $TMPC << EOF
820 int main(void) {
821 vector signed int v1, v2, v3;
822 v1 = vec_add(v2,v3);
823 return 0;
824 }
825 EOF
826 fi
827 $cc $CFLAGS -o $TMPE $TMPC 2> /dev/null || altivec="no"
828 fi
829
830 # mmi only available on mips
831 if test $mmi = "default"; then
832 if test $cpu = "mips"; then
833 mmi="yes"
834 else
835 mmi="no"
836 fi
837 fi
838
839 # check if our compiler supports mmi
840 if test $mmi = "yes"; then
841 cat > $TMPC << EOF
842 int main(void) {
843 __asm__ ("lq \$2, 0(\$2)");
844 return 0;
845 }
846 EOF
847 $cc -o $TMPE $TMPC 2> /dev/null || mmi="no"
848 fi
849
850 if test "$mingw32" = "yes" ; then
851 v4l="no"
852 bktr="no"
853 audio_oss="no"
854 dv1394="no"
855 dc1394="no"
856 ffserver="no"
857 network="no"
858 SLIBPREF=""
859 SLIBSUF=".dll"
860 EXESUF=".exe"
861 if test "$force_prefix" != yes; then prefix="/c/Program Files/FFmpeg"; fi
862 if test "$force_libdir" != yes; then bindir="$prefix"; fi
863 fi
864
865 cc="${cross_prefix}${cc}"
866 ar="${cross_prefix}${ar}"
867 ranlib="${cross_prefix}${ranlib}"
868 strip="${cross_prefix}${strip}"
869
870 if test -z "$cross_prefix" ; then
871
872 # ---
873 # big/little-endian test
874 cat > $TMPC << EOF
875 #include <inttypes.h>
876 int main(int argc, char ** argv){
877 volatile uint32_t i=0x01234567;
878 return (*((uint8_t*)(&i))) == 0x67;
879 }
880 EOF
881
882 if $cc -o $TMPE $TMPC 2>/dev/null ; then
883 $TMPE && bigendian="yes"
884 else
885 echo big/little test failed
886 fi
887
888 else
889
890 # programs cannot be launched if cross compiling, so make a static guess
891 if test "$cpu" = "powerpc" -o "$cpu" = "mips" ; then
892 bigendian="yes"
893 fi
894
895 fi
896
897 # ---
898 # *inttypes.h* test
899 cat > $TMPC << EOF
900 #include <inttypes.h>
901 int main(int argc, char ** argv){
902 return 0;
903 }
904 EOF
905
906 $cc -o $TMPE $TMPC 2>/dev/null || inttypes="no"
907
908 # ---
909 # *int_fast* test
910 cat > $TMPC << EOF
911 #include <inttypes.h>
912 int main(int argc, char ** argv){
913 volatile uint_fast64_t i=0x01234567;
914 return 0;
915 }
916 EOF
917
918 $cc -o $TMPE $TMPC 2>/dev/null || emu_fast_int="yes"
919
920 # ---
921 # check availability of some header files
922
923 cat > $TMPC << EOF
924 #include <malloc.h>
925 int main( void ) { return 0; }
926 EOF
927
928 _memalign=no
929 _malloc_h=no
930 if $cc -o $TMPE $TMPC 2> /dev/null ; then
931 _malloc_h=yes
932 _memalign=yes
933 # check for memalign - atmos
934 cat > $TMPC << EOF
935 #include <stdio.h>
936 #include <malloc.h>
937 int main ( void ) {
938 char *string = NULL;
939 string = memalign(64, sizeof(char));
940 return 0;
941 }
942 EOF
943 $cc -o $TMPE $TMPC 2> /dev/null || _memalign=no
944 fi
945
946 if test "$_memalign" = "no" -a "$mmx" = "yes" -a "$memalignhack" != "yes"; then
947 echo "Error, no memalign() but SSE enabled, disable it or use --enable-memalign-hack."
948 exit 1
949 fi
950
951 cat > $TMPC << EOF
952 #include <time.h>
953 int main( void ) { localtime_r(NULL, NULL); }
954 EOF
955
956 localtime_r=no
957 if $cc -o $TMPE $TMPC 2> /dev/null ; then
958 localtime_r=yes
959 fi
960
961 if test "$zlib" = "yes"; then
962 # check for zlib - mmu_man
963 cat > $TMPC << EOF
964 #include <zlib.h>
965 int main ( void ) {
966 if (zlibVersion() != ZLIB_VERSION)
967 puts("zlib version differs !!!");
968 return 1;
969 return 0;
970 }
971 EOF
972 $cc $CFLAGS $LDFLAGS -o $TMPE $TMPC -lz 2> /dev/null || zlib="no"
973 # $TMPE 2> /dev/null > /dev/null || zlib="no"
974 # XXX: more tests needed - runtime test
975 fi
976 if test "$zlib" = "yes"; then
977 extralibs="$extralibs -lz"
978 fi
979
980 # test for lrintf in math.h
981 cat > $TMPC << EOF
982 #define _ISOC9X_SOURCE 1
983 #include <math.h>
984 int main( void ) { return (lrintf(3.999f) > 0)?0:1; }
985 EOF
986
987 have_lrintf="no"
988 if $cc $extralibs -o $TMPE $TMPC 2> /dev/null ; then
989 have_lrintf="yes"
990 # allanc@chickenandporn.com: cannot execute cross-compiled
991 # code on the host. Only execute if not cross-compiling.
992 if test -z "$cross_prefix" ; then
993 $TMPE 2> /dev/null > /dev/null || have_lrintf="no"
994 fi
995 fi
996
997 _restrict=
998 for restrict_keyword in restrict __restrict__ __restrict; do
999 echo "void foo(char * $restrict_keyword p);" > $TMPC
1000 if $cc -c -o $TMPO $TMPC 2> /dev/null; then
1001 _restrict=$restrict_keyword
1002 break;
1003 fi
1004 done
1005
1006 # test gcc version to see if vector builtins can be used
1007 # currently only used on i386 for MMX builtins
1008 cat > $TMPC << EOF
1009 #include <xmmintrin.h>
1010 int main(void) {
1011 #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
1012 return 0;
1013 #else
1014 #error no vector builtins
1015 #endif
1016 }
1017 EOF
1018
1019 builtin_vector=no
1020 if $cc -msse -o $TMPO $TMPC 2> /dev/null ; then
1021 builtin_vector=yes
1022 fi
1023
1024 # dlopen/dlfcn.h probing
1025
1026 cat > $TMPC << EOF
1027 #include <dlfcn.h>
1028 int main( void ) { return (int) dlopen("foo", 0); }
1029 EOF
1030
1031 ldl=-ldl
1032
1033 if $cc -o $TMPE $TMPC -ldl > /dev/null 2>&1 ; then
1034 dlfcn=yes
1035 dlopen=yes
1036 fi
1037
1038 if $cc -o $TMPE $TMPC > /dev/null 2>&1 ; then
1039 dlfcn=yes
1040 dlopen=yes
1041 ldl=""
1042 fi
1043
1044 cat > $TMPC << EOF
1045 int main( void ) { return (int) dlopen("foo", 0); }
1046 EOF
1047
1048 if $cc -o $TMPE $TMPC -ldl > /dev/null 2>&1 ; then
1049 dlopen=yes
1050 fi
1051
1052 if $cc -o $TMPE $TMPC > /dev/null 2>&1 ; then
1053 dlopen=yes
1054 ldl=""
1055 fi
1056
1057 if test "$vhook" = "default" ; then
1058 vhook="$dlopen"
1059 fi
1060
1061 if test "$vhook" = "yes" -o "$a52bin" = "yes" -o "$faadbin" = "yes"; then
1062 extralibs="$extralibs $ldl"
1063 fi
1064
1065
1066 ##########################################
1067 # imlib check
1068
1069 cat > $TMPC << EOF
1070 #include <X11/Xlib.h>
1071 #include <Imlib2.h>
1072 int main( void ) { return (int) imlib_load_font("foo"); }
1073 EOF
1074
1075 imlib2=no
1076 if $cc $CFLAGS $LDFLAGS -o $TMPE $TMPC -lImlib2 -lm > /dev/null 2>&1 ; then
1077 imlib2=yes
1078 fi
1079
1080 ##########################################
1081 # FreeType check
1082
1083 cat > $TMPC << EOF
1084 #include <ft2build.h>
1085 int main( void ) { return (int) FT_Init_FreeType(0); }
1086 EOF
1087
1088 freetype2=no
1089 if test "x$targetos" != "xBeOS" && test "$os2" != "yes"; then
1090 if (freetype-config --version) >/dev/null 2>&1 ; then
1091 if $cc -o $TMPE $TMPC `freetype-config --cflags` `freetype-config --libs` > /dev/null 2>&1 ; then
1092 freetype2=yes
1093 fi
1094 fi
1095 fi
1096
1097 ##########################################
1098 # SDL check
1099
1100 cat > $TMPC << EOF
1101 #include <SDL.h>
1102 #undef main /* We don't want SDL to override our main() */
1103 int main( void ) { return SDL_Init (SDL_INIT_VIDEO); }
1104 EOF
1105
1106 sdl_too_old=no
1107 sdl=no
1108 if (sdl-config --version) >/dev/null 2>&1 ; then
1109 if $cc -o $TMPE `sdl-config --cflags` $TMPC `sdl-config --libs` > /dev/null 2>&1 ; then
1110 _sdlversion=`sdl-config --version | sed 's/[^0-9]//g'`
1111 if test "$_sdlversion" -lt 121 ; then
1112 sdl_too_old=yes
1113 else
1114 sdl=yes
1115 fi
1116 fi
1117 fi
1118
1119 ##########################################
1120 # texi2html check
1121
1122 texi2html=no
1123 if (texi2html -version) >/dev/null 2>&1; then
1124 texi2html=yes
1125 fi
1126
1127 if test "$network" = "yes" ; then
1128 ##########################################
1129 # IPv6 check
1130
1131 cat > $TMPC << EOF
1132 #include <sys/types.h>
1133 #include <sys/socket.h>
1134 #include <netinet/in.h>
1135 #include <netdb.h>
1136 int main( void ) {
1137 struct sockaddr_storage saddr;
1138 struct ipv6_mreq mreq6;
1139 getaddrinfo(0,0,0,0);
1140 getnameinfo(0,0,0,0,0,0,0);
1141 IN6_IS_ADDR_MULTICAST(0);
1142 }
1143 EOF
1144
1145 ipv6=no
1146 if $cc -o $TMPE $TMPC > /dev/null 2>&1 ; then
1147 ipv6=yes
1148 fi
1149 fi
1150
1151 case "`$cc -v 2>&1 | grep version`" in
1152 *gcc*)
1153 CFLAGS="-Wall -Wno-switch $CFLAGS"
1154 ;;
1155 *)
1156 ;;
1157 esac
1158
1159 if test "$sdl" = "no" ; then
1160 ffplay=no
1161 fi
1162
1163 if test "$debug" = "yes"; then
1164 CFLAGS="-g $CFLAGS"
1165 fi
1166
1167 if test "$optimize" = "small"; then
1168 # CFLAGS=${CFLAGS//-O3/-Os}
1169 CFLAGS="$CFLAGS -Os"
1170 fi
1171
1172 if test "$optimize" = "yes"; then
1173 if test -n "`$cc -v 2>&1 | grep xlc`"; then
1174 CFLAGS="$CFLAGS -O5"
1175 LDFLAGS="$LDFLAGS -O5"
1176 else
1177 CFLAGS="-O3 $CFLAGS"
1178 fi
1179 fi
1180
1181 # PIC flags for shared library objects where they are needed
1182 if test "$lshared" = "yes" ; then
1183 # LIBOBJFLAGS may have already been set in the OS configuration
1184 if test -z "$LIBOBJFLAGS" ; then
1185 if test "$cpu" = "x86_64" -o "$cpu" = "ia64" ; then
1186 LIBOBJFLAGS="\$(PIC)"
1187 fi
1188 fi
1189 fi
1190
1191 if test x"$bindir" = x""; then
1192 bindir="${prefix}/bin"
1193 fi
1194
1195 if test x"$libdir" = x""; then
1196 libdir="${prefix}/lib"
1197 fi
1198
1199 if test x"$mandir" = x""; then
1200 mandir="${prefix}/man"
1201 fi
1202
1203 echo "install prefix $prefix"
1204 echo "source path $source_path"
1205 echo "C compiler $cc"
1206 echo "make $make"
1207 echo "CPU $cpu ($tune)"
1208 if test "$BUILDSUF" != ""; then
1209 echo "build suffix $BUILDSUF"
1210 fi
1211 echo "big-endian $bigendian"
1212 echo "inttypes.h $inttypes"
1213 echo "broken inttypes.h $emu_fast_int"
1214 if test $cpu = "x86" -o $cpu = "x86_64"; then
1215 echo "MMX enabled $mmx"
1216 echo "Vector Builtins $builtin_vector"
1217 fi
1218 if test $cpu = "armv4l"; then
1219 echo "IWMMXT enabled $iwmmxt"
1220 fi
1221 if test $cpu = "mips"; then
1222 echo "MMI enabled $mmi"
1223 fi
1224 if test $cpu = "powerpc"; then
1225 echo "AltiVec enabled $altivec"
1226 fi
1227 echo "gprof enabled $gprof"
1228 echo "zlib enabled $zlib"
1229 echo "libgsm enabled $libgsm"
1230 echo "mp3lame enabled $mp3lame"
1231 echo "libogg enabled $libogg"
1232 echo "Vorbis enabled $vorbis"
1233 echo "Theora enabled $theora"
1234 echo "FAAD enabled $faad"
1235 echo "faadbin enabled $faadbin"
1236 echo "FAAC enabled $faac"
1237 echo "XviD enabled $xvid"
1238 echo "x264 enabled $x264"
1239 echo "a52 support $a52"
1240 echo "a52 dlopened $a52bin"
1241 echo "DTS support $dts"
1242 echo "pp support $pp"
1243 echo "debug symbols $debug"
1244 echo "strip symbols $dostrip"
1245 echo "optimize $optimize"
1246 echo "shared pp $shared_pp"
1247 echo "video hooking $vhook"
1248 echo "SDL support $sdl"
1249 if test $sdl_too_old = "yes"; then
1250 echo "-> Your SDL version is too old - please upgrade to have FFplay/SDL support."
1251 fi
1252
1253 if test "$vhook" = "yes" ; then
1254 echo "Imlib2 support $imlib2"
1255 echo "FreeType support $freetype2"
1256 fi
1257 echo "Sun medialib support" $sunmlib
1258 echo "pthreads support" $pthreads
1259 echo "AMR-NB float support" $amr_nb
1260 echo "AMR-NB fixed support" $amr_nb_fixed
1261 echo "AMR-WB float support" $amr_wb
1262 echo "AMR-WB IF2 support" $amr_if2
1263 echo "network support $network"
1264 if test "$network" = "yes" ; then
1265 echo "IPv6 support $ipv6"
1266 fi
1267 if test "$gpl" = "no" ; then
1268 echo "License: LGPL"
1269 else
1270 echo "License: GPL"
1271 fi
1272
1273 echo "Creating config.mak and config.h..."
1274
1275 date >> config.log
1276 echo " $0 $FFMPEG_CONFIGURATION" >> config.log
1277 echo "# Automatically generated by configure - do not modify!" > config.mak
1278 echo "/* Automatically generated by configure - do not modify! */" > $TMPH
1279 echo "#define FFMPEG_CONFIGURATION "'"'"$FFMPEG_CONFIGURATION"'"' >> $TMPH
1280
1281 echo "prefix=\$(DESTDIR)$prefix" >> config.mak
1282 echo "libdir=\$(DESTDIR)$libdir" >> config.mak
1283 echo "bindir=\$(DESTDIR)$bindir" >> config.mak
1284 echo "mandir=\$(DESTDIR)$mandir" >> config.mak
1285 echo "MAKE=$make" >> config.mak
1286 echo "CC=$cc" >> config.mak
1287 echo "AR=$ar" >> config.mak
1288 echo "RANLIB=$ranlib" >> config.mak
1289 if test "$dostrip" = "yes" ; then
1290 echo "STRIP=$strip" >> config.mak
1291 echo "INSTALLSTRIP=$installstrip" >> config.mak
1292 else
1293 echo "STRIP=echo ignoring strip" >> config.mak
1294 echo "INSTALLSTRIP=" >> config.mak
1295 fi
1296
1297 # SHCFLAGS is a copy of CFLAGS without -mdynamic-no-pic, used when building
1298 # shared modules on OS/X (vhook/Makefile).
1299 SHCFLAGS=$CFLAGS
1300 if test "$needmdynamicnopic" = yes; then
1301 CFLAGS="$CFLAGS -mdynamic-no-pic"
1302 fi
1303
1304 echo "OPTFLAGS=$CFLAGS" >> config.mak
1305 echo "SHCFLAGS=$SHCFLAGS">>config.mak
1306 echo "LDFLAGS=$LDFLAGS" >> config.mak
1307 echo "LDCONFIG=$LDCONFIG" >> config.mak
1308 echo "FFSLDFLAGS=$FFSLDFLAGS" >> config.mak
1309 echo "SHFLAGS=$SHFLAGS" >> config.mak
1310 echo "LIBOBJFLAGS=$LIBOBJFLAGS" >> config.mak
1311 echo "BUILDSUF=$BUILDSUF" >> config.mak
1312 echo "LIBPREF=$LIBPREF" >> config.mak
1313 echo "LIBSUF=\${BUILDSUF}$LIBSUF" >> config.mak
1314 echo "SLIBPREF=$SLIBPREF" >> config.mak
1315 echo "SLIBSUF=\${BUILDSUF}$SLIBSUF" >> config.mak
1316 echo "EXESUF=\${BUILDSUF}$EXESUF" >> config.mak
1317 echo "TARGET_OS=$TARGET_OS" >> config.mak
1318 if test "$cpu" = "x86" ; then
1319 echo "TARGET_ARCH_X86=yes" >> config.mak
1320 echo "#define ARCH_X86 1" >> $TMPH
1321 elif test "$cpu" = "x86_64" ; then
1322 echo "TARGET_ARCH_X86_64=yes" >> config.mak
1323 echo "#define ARCH_X86_64 1" >> $TMPH
1324 elif test "$cpu" = "armv4l" ; then
1325 echo "TARGET_ARCH_ARMV4L=yes" >> config.mak
1326 echo "#define ARCH_ARMV4L 1" >> $TMPH
1327 elif test "$cpu" = "alpha" ; then
1328 echo "TARGET_ARCH_ALPHA=yes" >> config.mak
1329 echo "#define ARCH_ALPHA 1" >> $TMPH
1330 elif test "$cpu" = "sparc64" ; then
1331 echo "TARGET_ARCH_SPARC64=yes" >> config.mak
1332 echo "#define ARCH_SPARC64 1" >> $TMPH
1333 echo "TARGET_ARCH_SPARC=yes" >> config.mak
1334 echo "#define ARCH_SPARC 1" >> $TMPH
1335 elif test "$cpu" = "sparc" ; then
1336 echo "TARGET_ARCH_SPARC=yes" >> config.mak
1337 echo "#define ARCH_SPARC 1" >> $TMPH
1338 elif test "$cpu" = "powerpc" ; then
1339 echo "TARGET_ARCH_POWERPC=yes" >> config.mak
1340 echo "#define ARCH_POWERPC 1" >> $TMPH
1341 if test $POWERPCMODE = "32bits"; then
1342 echo "#define POWERPC_MODE_32BITS 1" >> $TMPH
1343 else
1344 echo "#define POWERPC_MODE_64BITS 1" >> $TMPH
1345 fi
1346 if test "$powerpc_perf" = "yes"; then
1347 echo "#define POWERPC_PERFORMANCE_REPORT 1" >> $TMPH
1348 fi
1349 elif test "$cpu" = "mips" ; then
1350 echo "TARGET_ARCH_MIPS=yes" >> config.mak
1351 echo "#define ARCH_MIPS 1" >> $TMPH
1352 elif test "$cpu" = "sh4" ; then
1353 echo "TARGET_ARCH_SH4=yes" >> config.mak
1354 echo "#define ARCH_SH4 1" >> $TMPH
1355 elif test "$cpu" = "parisc" ; then
1356 echo "TARGET_ARCH_PARISC=yes" >> config.mak
1357 echo "#define ARCH_PARISC 1" >> $TMPH
1358 elif test "$cpu" = "s390" ; then
1359 echo "TARGET_ARCH_S390=yes" >> config.mak
1360 echo "#define ARCH_S390 1" >> $TMPH
1361 elif test "$cpu" = "m68k" ; then
1362 echo "TARGET_ARCH_M68K=yes" >> config.mak
1363 echo "#define ARCH_M68K 1" >> $TMPH
1364 elif test "$cpu" = "ia64" ; then
1365 echo "TARGET_ARCH_IA64=yes" >> config.mak
1366 echo "#define ARCH_IA64 1" >> $TMPH
1367 fi
1368 echo "#define TUNECPU $TUNECPU" >> $TMPH
1369 if test "$bigendian" = "yes" ; then
1370 echo "WORDS_BIGENDIAN=yes" >> config.mak
1371 echo "#define WORDS_BIGENDIAN 1" >> $TMPH
1372 fi
1373 if test "$inttypes" != "yes" ; then
1374 echo "#define EMULATE_INTTYPES 1" >> $TMPH
1375 fi
1376 if test "$emu_fast_int" = "yes" ; then
1377 echo "#define EMULATE_FAST_INT 1" >> $TMPH
1378 fi
1379 if test "$mmx" = "yes" ; then
1380 echo "TARGET_MMX=yes" >> config.mak
1381 echo "#define HAVE_MMX 1" >> $TMPH
1382 echo "#define __CPU__ 586" >> $TMPH
1383 fi
1384 if test "$builtin_vector" = "yes" ; then
1385 echo "TARGET_BUILTIN_VECTOR=yes" >> config.mak
1386 echo "#define HAVE_BUILTIN_VECTOR 1" >> $TMPH
1387 fi
1388 if test "$iwmmxt" = "yes" ; then
1389 echo "TARGET_IWMMXT=yes" >> config.mak
1390 echo "#define HAVE_IWMMXT 1" >> $TMPH
1391 fi
1392 if test "$mmi" = "yes" ; then
1393 echo "TARGET_MMI=yes" >> config.mak
1394 echo "#define HAVE_MMI 1" >> $TMPH
1395 fi
1396 if test "$altivec" = "yes" ; then
1397 echo "TARGET_ALTIVEC=yes" >> config.mak
1398 echo "#define HAVE_ALTIVEC 1" >> $TMPH
1399 echo "// Enable the next line to use the reference C code instead of AltiVec" >> $TMPH
1400 echo "// #define ALTIVEC_USE_REFERENCE_C_CODE 1" >> $TMPH
1401 if test "$_altivec_h" = "yes" ; then
1402 echo "#define HAVE_ALTIVEC_H 1" >> $TMPH
1403 else
1404 echo "#undef HAVE_ALTIVEC_H" >> $TMPH
1405 fi
1406 fi
1407 if test "$gprof" = "yes" ; then
1408 echo "TARGET_GPROF=yes" >> config.mak
1409 echo "#define HAVE_GPROF 1" >> $TMPH
1410 fi
1411 if test "$localtime_r" = "yes" ; then
1412 echo "#define HAVE_LOCALTIME_R 1" >> $TMPH
1413 fi
1414 if test "$imlib2" = "yes" ; then
1415 echo "HAVE_IMLIB2=yes" >> config.mak
1416 fi
1417 if test "$freetype2" = "yes" ; then
1418 echo "HAVE_FREETYPE2=yes" >> config.mak
1419 fi
1420 if test "$sunmlib" = "yes" ; then
1421 echo "HAVE_MLIB=yes" >> config.mak
1422 echo "#define HAVE_MLIB 1" >> $TMPH
1423 extralibs="$extralibs -lmlib"
1424 fi
1425 if test "$pthreads" = "yes" ; then
1426 echo "HAVE_PTHREADS=yes" >> config.mak
1427 echo "#define HAVE_PTHREADS 1" >> $TMPH
1428 echo "#define HAVE_THREADS 1" >> $TMPH
1429 if test $targetos != FreeBSD -a $targetos != OpenBSD ; then
1430 extralibs="$extralibs -lpthread"
1431 fi
1432 fi
1433 if test "$sdl" = "yes" ; then
1434 echo "CONFIG_SDL=yes" >> config.mak
1435 echo "SDL_LIBS=`sdl-config --libs`" >> config.mak
1436 echo "SDL_CFLAGS=`sdl-config --cflags`" >> config.mak
1437 fi
1438 if test "$texi2html" = "yes"; then
1439 echo "BUILD_DOC=yes" >> config.mak
1440 fi
1441 if test "$have_lrintf" = "yes" ; then
1442 echo "#define HAVE_LRINTF 1" >> $TMPH
1443 fi
1444 if test "$vhook" = "yes" ; then
1445 echo "BUILD_VHOOK=yes" >> config.mak
1446 echo "#define HAVE_VHOOK 1" >> $TMPH
1447 fi
1448 if test "$lshared" = "yes" ; then
1449 echo "BUILD_SHARED=yes" >> config.mak
1450 echo "PIC=-fPIC -DPIC" >> config.mak
1451 echo "SPPMAJOR=0" >> config.mak
1452 echo "SPPVERSION=0.0.1" >> config.mak
1453 fi
1454 echo "EXTRALIBS=$extralibs" >> config.mak
1455 version=`grep '#define FFMPEG_VERSION ' "$source_path/libavcodec/avcodec.h" |
1456 cut -d '"' -f 2`
1457 echo "VERSION=$version" >>config.mak
1458 # If you do not want to use encoders, disable them.
1459 echo "#define CONFIG_ENCODERS 1" >> $TMPH
1460 echo "CONFIG_ENCODERS=yes" >> config.mak
1461
1462 # If you do not want to use decoders, disable them.
1463 echo "#define CONFIG_DECODERS 1" >> $TMPH
1464 echo "CONFIG_DECODERS=yes" >> config.mak
1465
1466 # muxers
1467 if test "$muxers" = "yes" ; then
1468 echo "#define CONFIG_MUXERS 1" >> $TMPH
1469 echo "CONFIG_MUXERS=yes" >> config.mak
1470 fi
1471
1472 # demuxers
1473 if test "$demuxers" = "yes" ; then
1474 echo "#define CONFIG_DEMUXERS 1" >> $TMPH
1475 echo "CONFIG_DEMUXERS=yes" >> config.mak
1476 fi
1477
1478 # AC3
1479 if test "$a52" = "yes" ; then
1480 echo "#define CONFIG_AC3 1" >> $TMPH
1481 echo "CONFIG_AC3=yes" >> config.mak
1482
1483 if test "$a52bin" = "yes" ; then
1484 echo "#define CONFIG_A52BIN 1" >> $TMPH
1485 echo "CONFIG_A52BIN=yes" >> config.mak
1486 fi
1487 fi
1488
1489 # DTS
1490 if test "$dts" = "yes" ; then
1491 echo "#define CONFIG_DTS 1" >> $TMPH
1492 echo "CONFIG_DTS=yes" >> config.mak
1493 fi
1494
1495 # PP
1496 if test "$pp" = "yes" ; then
1497 echo "#define CONFIG_PP 1" >> $TMPH
1498 echo "CONFIG_PP=yes" >> config.mak
1499
1500 if test "$shared_pp" = "yes" ; then
1501 echo "#define SHARED_PP 1" >> $TMPH
1502 echo "SHARED_PP=yes" >> config.mak
1503 fi
1504 fi
1505
1506 # MPEG audio high precision mode
1507 if test "$mpegaudio_hp" = "yes" ; then
1508 echo "#define CONFIG_MPEGAUDIO_HP 1" >> $TMPH
1509 fi
1510
1511 if test "$v4l" = "yes" ; then
1512 echo "#define CONFIG_VIDEO4LINUX 1" >> $TMPH
1513 echo "CONFIG_VIDEO4LINUX=yes" >> config.mak
1514 fi
1515
1516 if test "$bktr" = "yes" ; then
1517 echo "#define CONFIG_BKTR 1" >> $TMPH
1518 echo "CONFIG_BKTR=yes" >> config.mak
1519 fi
1520
1521 if test "$dv1394" = "yes" ; then
1522 echo "#define CONFIG_DV1394 1" >> $TMPH
1523 echo "CONFIG_DV1394=yes" >> config.mak
1524 fi
1525
1526 if test "$dc1394" = "yes" ; then
1527 echo "#define CONFIG_DC1394 1" >> $TMPH
1528 echo "CONFIG_DC1394=yes" >> config.mak
1529 fi
1530
1531 if test "$dlopen" = "yes" ; then
1532 echo "#define CONFIG_HAVE_DLOPEN 1" >> $TMPH
1533 fi
1534
1535 if test "$dlfcn" = "yes" ; then
1536 echo "#define CONFIG_HAVE_DLFCN 1" >> $TMPH
1537 fi
1538
1539 if test "$audio_oss" = "yes" ; then
1540 echo "#define CONFIG_AUDIO_OSS 1" >> $TMPH
1541 echo "CONFIG_AUDIO_OSS=yes" >> config.mak
1542 fi
1543
1544 if test "$audio_beos" = "yes" ; then
1545 echo "#define CONFIG_AUDIO_BEOS 1" >> $TMPH
1546 echo "CONFIG_AUDIO_BEOS=yes" >> config.mak
1547 fi
1548
1549 if test "$network" = "yes" ; then
1550 echo "#define CONFIG_NETWORK 1" >> $TMPH
1551 echo "CONFIG_NETWORK=yes" >> config.mak
1552 fi
1553
1554 if test "$ipv6" = "yes" ; then
1555 echo "#define CONFIG_IPV6 1" >> $TMPH
1556 fi
1557
1558 if test "$zlib" = "yes" ; then
1559 echo "#define CONFIG_ZLIB 1" >> $TMPH
1560 echo "CONFIG_ZLIB=yes" >> config.mak
1561 fi
1562
1563 if test "$libgsm" = "yes" ; then
1564 echo "#define CONFIG_LIBGSM 1" >> $TMPH
1565 echo "CONFIG_LIBGSM=yes" >> config.mak
1566 fi
1567
1568 if test "$mp3lame" = "yes" ; then
1569 echo "#define CONFIG_MP3LAME 1" >> $TMPH
1570 echo "CONFIG_MP3LAME=yes" >> config.mak
1571 fi
1572
1573 if test "$libogg" = "yes" ; then
1574 echo "#define CONFIG_LIBOGG 1" >> $TMPH
1575 echo "CONFIG_LIBOGG=yes" >> config.mak
1576 fi
1577
1578 if test "$vorbis" = "yes" ; then
1579 echo "#define CONFIG_LIBVORBIS 1" >> $TMPH
1580 echo "CONFIG_LIBVORBIS=yes" >> config.mak
1581 fi
1582
1583 if test "$theora" = "yes" ; then
1584 echo "#define CONFIG_LIBTHEORA 1" >> $TMPH
1585 echo "CONFIG_LIBTHEORA=yes" >> config.mak
1586 fi
1587
1588 if test "$faad" = "yes" ; then
1589 echo "#define CONFIG_FAAD 1" >> $TMPH
1590 echo "CONFIG_FAAD=yes" >> config.mak
1591 fi
1592
1593 if test "$faadbin" = "yes" ; then
1594 echo "#define CONFIG_FAADBIN 1" >> $TMPH
1595 echo "CONFIG_FAADBIN=yes" >> config.mak
1596 fi
1597
1598 if test "$faac" = "yes" ; then
1599 echo "#define CONFIG_FAAC 1" >> $TMPH
1600 echo "CONFIG_FAAC=yes" >> config.mak
1601 fi
1602
1603 if test "$xvid" = "yes" ; then
1604 echo "#define CONFIG_XVID 1" >> $TMPH
1605 echo "CONFIG_XVID=yes" >> config.mak
1606 fi
1607
1608 if test "$x264" = "yes" ; then
1609 echo "#define CONFIG_X264 1" >> $TMPH
1610 echo "CONFIG_X264=yes" >> config.mak
1611 fi
1612
1613 if test "$mingw32" = "yes" ; then
1614 echo "#define CONFIG_WIN32 1" >> $TMPH
1615 echo "CONFIG_WIN32=yes" >> config.mak
1616 echo "HAVE_W32THREADS=yes" >> config.mak
1617 echo "#define HAVE_W32THREADS 1" >> $TMPH
1618 echo "#define HAVE_THREADS 1" >> $TMPH
1619 echo "#ifndef __MINGW32__" >> $TMPH
1620 echo "#define __MINGW32__ 1" >> $TMPH
1621 echo "#endif" >> $TMPH
1622 fi
1623
1624 if test "$os2" = "yes" ; then
1625 echo "#define CONFIG_OS2 1" >> $TMPH
1626 echo "CONFIG_OS2=yes" >> config.mak
1627 fi
1628
1629 if test "$TARGET_OS" = "SunOS" ; then
1630 echo "#define CONFIG_SUNOS 1" >> $TMPH
1631 fi
1632
1633 if test "$TARGET_OS" = "BeOS" ; then
1634 echo "HAVE_BEOSTHREADS=yes" >> config.mak
1635 echo "#define HAVE_BEOSTHREADS 1" >> $TMPH
1636 echo "#define HAVE_THREADS 1" >> $TMPH
1637 fi
1638
1639 if test "$darwin" = "yes"; then
1640 echo "#define CONFIG_DARWIN 1" >> $TMPH
1641 echo "CONFIG_DARWIN=yes" >> config.mak
1642 fi
1643
1644 if test "$_malloc_h" = "yes" ; then
1645 echo "#define HAVE_MALLOC_H 1" >> $TMPH
1646 else
1647 echo "#undef HAVE_MALLOC_H" >> $TMPH
1648 fi
1649
1650 if test "$_memalign" = "yes" ; then
1651 echo "#define HAVE_MEMALIGN 1" >> $TMPH
1652 else
1653 echo "#undef HAVE_MEMALIGN" >> $TMPH
1654 fi
1655
1656 if test "$memalignhack" = "yes" ; then
1657 echo "#define MEMALIGN_HACK 1" >> $TMPH
1658 fi
1659
1660
1661 if test "$netserver" = "yes" ; then
1662 echo "#define CONFIG_BEOS_NETSERVER 1" >> $TMPH
1663 echo "CONFIG_BEOS_NETSERVER=yes" >> config.mak
1664 fi
1665
1666 if test "$need_inet_aton" = "yes" ; then
1667 echo "NEED_INET_ATON=yes" >> config.mak
1668 fi
1669
1670 if test "$simpleidct" = "yes" ; then
1671 echo "#define SIMPLE_IDCT 1" >> $TMPH
1672 fi
1673
1674 if test "$ffserver" = "yes" ; then
1675 echo "#define CONFIG_FFSERVER 1" >> $TMPH
1676 echo "CONFIG_FFSERVER=yes" >> config.mak
1677 fi
1678
1679 if test "$ffplay" = "yes" ; then
1680 echo "CONFIG_FFPLAY=yes" >> config.mak
1681 fi
1682
1683 if test "$gpl" = "yes" ; then
1684 echo "#define CONFIG_GPL 1" >> $TMPH
1685 echo "CONFIG_GPL=yes" >> config.mak
1686 fi
1687
1688 echo "#define restrict $_restrict" >> $TMPH
1689
1690 if test "$optimize" = "small"; then
1691 echo "#define always_inline" >> $TMPH
1692 fi
1693
1694 # build tree in object directory if source path is different from current one
1695 if test "$source_path_used" = "yes" ; then
1696 DIRS="\
1697 doc \
1698 libavformat \
1699 libavcodec \
1700 libavcodec/alpha \
1701 libavcodec/armv4l \
1702 libavcodec/i386 \
1703 libavcodec/sparc \
1704 libavcodec/mlib \
1705 libavcodec/ppc \
1706 libavcodec/liba52 \
1707 libavcodec/libpostproc \
1708 libavutil \
1709 tests \
1710 vhook \
1711 "
1712 FILES="\
1713 Makefile \
1714 libavformat/Makefile \
1715 libavcodec/Makefile \
1716 libavcodec/libpostproc/Makefile \
1717 libavutil/Makefile \
1718 tests/Makefile \
1719 vhook/Makefile \
1720 doc/Makefile \
1721 doc/texi2pod.pl \
1722 "
1723 for dir in $DIRS ; do
1724 mkdir -p $dir
1725 done
1726 for f in $FILES ; do
1727 ln -sf "$source_path/$f" $f
1728 done
1729 echo "SRC_PATH=$source_path" >> config.mak
1730 else
1731 echo "SRC_PATH='$source_path'" >> config.mak
1732 fi
1733
1734 if test "$amr_wb" = "yes" ; then
1735 echo "#define AMR_WB 1" >> $TMPH
1736 echo "AMR_WB=yes" >> config.mak
1737 echo
1738 echo "AMR WB FLOAT NOTICE ! Make sure you have downloaded TS26.204"
1739 echo "V5.1.0 from "
1740 echo "http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-510.zip"
1741 echo "and extracted the source to libavcodec/amrwb_float"
1742 echo
1743 fi
1744
1745 if test "$amr_nb" = "yes" ; then
1746 echo "#define AMR_NB 1" >> $TMPH
1747 echo "AMR_NB=yes" >> config.mak
1748 echo
1749 if test "$amr_nb_fixed" = "yes" ; then
1750 echo "AMR_NB_FIXED=yes" >> config.mak
1751 echo "#define AMR_NB_FIXED 1" >> $TMPH
1752 echo "AMR NB FIXED POINT NOTICE! Make sure you have downloaded TS26.073 "
1753 echo "REL-5 version 5.1.0 from "
1754 echo "http://www.3gpp.org/ftp/Specs/latest/Rel-5/26_series/26073-5??.zip"
1755 echo "and extracted src to libavcodec/amr"
1756 echo "You must also add -DMMS_IO and remove -pedantic-errors to/from CFLAGS in libavcodec/amr/makefile."
1757 echo "i.e. CFLAGS = -Wall -I. \$(CFLAGS_\$(MODE)) -D\$(VAD) -DMMS_IO"
1758 echo
1759 else
1760 echo "AMR NB FLOAT NOTICE ! Make sure you have downloaded TS26.104"
1761 echo "REL-5 V5.1.0 from "
1762 echo "http://www.3gpp.org/ftp/Specs/latest/Rel-5/26_series/26104-5??.zip"
1763 echo "and extracted the source to libavcodec/amr_float"
1764 echo "and if u try this on an alpha, u may need to change Word32 to int in amr/typedef.h"
1765 echo
1766 fi
1767
1768 if test "$amr_if2" = "yes" ; then
1769 echo "AMR_CFLAGS=-DIF2=1" >> config.mak
1770 fi
1771
1772 fi
1773
1774 for codec in $CODEC_LIST ; do
1775 echo "#define CONFIG_`echo $codec | tr a-z A-Z` 1" >> $TMPH
1776 echo "CONFIG_`echo $codec | tr a-z A-Z`=yes" >> config.mak
1777 done
1778
1779 diff $TMPH config.h >/dev/null 2>&1
1780 if test $? -ne 0 ; then
1781 mv -f $TMPH config.h
1782 else
1783 echo "config.h is unchanged"
1784 fi
1785
1786 rm -f $TMPO $TMPC $TMPE $TMPS $TMPH
1787
1788
1789 # build pkg-config files libav*.pc and libpostproc.pc
1790 lavc_version=`grep '#define LIBAVCODEC_VERSION ' "$source_path/libavcodec/avcodec.h" | sed 's/[^0-9\.]//g'`
1791 lavf_version=`grep '#define LIBAVFORMAT_VERSION ' "$source_path/libavformat/avformat.h" | sed 's/[^0-9\.]//g'`
1792 lavu_version=`grep '#define LIBAVUTIL_VERSION ' "$source_path/libavutil/avutil.h" | sed 's/[^0-9\.]//g'`
1793
1794 # libavutil.pc
1795 cat <<EOF >libavutil.pc
1796 prefix=$prefix
1797 exec_prefix=\${prefix}
1798 libdir=\${exec_prefix}/lib
1799 includedir=\${prefix}/include
1800
1801 Name: libavutil
1802 Description: FFmpeg utility library
1803 Version: $lavu_version
1804 Requires:
1805 Conflicts:
1806 Libs: -L\${libdir} -lavutil
1807 Cflags: -I\${includedir} -I\${includedir}/ffmpeg
1808 EOF
1809
1810 cat <<EOF >libavutil-uninstalled.pc
1811 prefix=
1812 exec_prefix=
1813 libdir=\${pcfiledir}/libavutil
1814 includedir=\${pcfiledir}/libavutil
1815
1816 Name: libavutil
1817 Description: FFmpeg utility library
1818 Version: $lavu_version
1819 Requires:
1820 Conflicts:
1821 Libs: \${libdir}/${LIBPREF}avutil${LIBSUF}
1822 Cflags: -I\${includedir}
1823 EOF
1824
1825 # libavcodec.pc
1826 cat <<EOF >libavcodec.pc
1827 prefix=$prefix
1828 exec_prefix=\${prefix}
1829 libdir=\${exec_prefix}/lib
1830 includedir=\${prefix}/include
1831
1832 Name: libavcodec
1833 Description: FFmpeg codec library
1834 Version: $lavc_version
1835 Requires: $pkg_requires libavutil = $lavu_version
1836 Conflicts:
1837 Libs: -L\${libdir} -lavcodec $extralibs
1838 Cflags: -I\${includedir} -I\${includedir}/ffmpeg
1839 EOF
1840
1841 cat <<EOF >libavcodec-uninstalled.pc
1842 prefix=
1843 exec_prefix=
1844 libdir=\${pcfiledir}/libavcodec
1845 includedir=\${pcfiledir}/libavcodec
1846
1847 Name: libavcodec
1848 Description: FFmpeg codec library
1849 Version: $lavc_version
1850 Requires: $pkg_requires libavutil = $lavu_version
1851 Conflicts:
1852 Libs: \${libdir}/${LIBPREF}avcodec${LIBSUF} $extralibs
1853 Cflags: -I\${includedir}
1854 EOF
1855
1856 # libavformat.pc
1857 cat <<EOF >libavformat.pc
1858 prefix=$prefix
1859 exec_prefix=\${prefix}
1860 libdir=\${exec_prefix}/lib
1861 includedir=\${prefix}/include
1862
1863 Name: libavformat
1864 Description: FFmpeg container format library
1865 Version: $lavf_version
1866 Requires: $pkg_requires libavcodec = $lavc_version
1867 Conflicts:
1868 Libs: -L\${libdir} -lavformat $extralibs
1869 Cflags: -I\${includedir} -I\${includedir}/ffmpeg
1870 EOF
1871
1872 cat <<EOF >libavformat-uninstalled.pc
1873 prefix=
1874 exec_prefix=
1875 libdir=\${pcfiledir}/libavformat
1876 includedir=\${pcfiledir}/libavformat
1877
1878 Name: libavformat
1879 Description: FFmpeg container format library
1880 Version: $lavf_version
1881 Requires: $pkg_requires libavcodec = $lavc_version
1882 Conflicts:
1883 Libs: \${libdir}/${LIBPREF}avformat${LIBSUF} $extralibs
1884 Cflags: -I\${includedir}
1885 EOF
1886
1887
1888 # libpostproc.pc
1889 cat <<EOF >libpostproc.pc
1890 prefix=$prefix
1891 exec_prefix=\${prefix}
1892 libdir=\${exec_prefix}/lib
1893 includedir=\${prefix}/include
1894
1895 Name: libpostproc
1896 Description: FFmpeg post processing library
1897 Version: $lavc_version
1898 Requires:
1899 Conflicts:
1900 Libs: -L\${libdir} -lpostproc
1901 Cflags: -I\${includedir} -I\${includedir}/postproc
1902 EOF
1903
1904 cat <<EOF >libpostproc-uninstalled.pc
1905 prefix=
1906 exec_prefix=
1907 libdir=\${pcfiledir}/libavcodec/libpostproc
1908 includedir=\${pcfiledir}/libavcodec/libpostproc
1909
1910 Name: libpostproc
1911 Description: FFmpeg post processing library
1912 Version: $lavc_version
1913 Requires:
1914 Conflicts:
1915 Libs: \${libdir}/${LIBPREF}postproc${LIBSUF}
1916 Cflags: -I\${includedir}
1917 EOF