export int64_t_C as it is needed by libavformat.h
[libav.git] / configure
CommitLineData
de6d9b64 1#!/bin/sh
0f3cb305 2#
5cbcf02c 3# ffmpeg configure script (c) 2000, 2001, 2002 Fabrice Bellard
0f3cb305
FB
4#
5# set temporary file name
57514323 6if test ! -z "$TMPDIR" ; then
0f3cb305 7 TMPDIR1="${TMPDIR}"
57514323 8elif test ! -z "$TEMPDIR" ; then
0f3cb305 9 TMPDIR1="${TEMPDIR}"
3d204385 10else
0f3cb305 11 TMPDIR1="/tmp"
3d204385
NK
12fi
13
0f3cb305
FB
14TMPC="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.c"
15TMPO="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.o"
f3ec2d46 16TMPE="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}"
0f3cb305
FB
17TMPS="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.S"
18TMPH="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.h"
19
de6d9b64
FB
20# default parameters
21prefix="/usr/local"
0f3cb305 22cross_prefix=""
de6d9b64
FB
23cc="gcc"
24ar="ar"
be7109c1 25ranlib="ranlib"
4a908fbc 26make="make"
0f3cb305 27strip="strip"
de6d9b64 28cpu=`uname -m`
a4adb608 29tune="generic"
e45a2872 30powerpc_perf="no"
0f3cb305 31mmx="default"
ab6c65f6 32altivec="default"
d46aba26 33mmi="default"
de6d9b64 34case "$cpu" in
ef0bc4c9 35 i386|i486|i586|i686|i86pc|BePC)
de6d9b64 36 cpu="x86"
de6d9b64 37 ;;
93caefc7
AB
38 # armv4l is a subset of armv5tel
39 armv4l|armv5tel)
6ed7422a 40 cpu="armv4l"
6ed7422a 41 ;;
91d1f1a4
NK
42 alpha)
43 cpu="alpha"
91d1f1a4 44 ;;
a43bd1d7 45 "Power Macintosh"|ppc)
90cee0c3
MN
46 cpu="powerpc"
47 ;;
d46aba26
LS
48 mips)
49 cpu="mips"
50 ;;
a7beab73
RS
51 sun4u)
52 cpu="sparc64"
53 ;;
bdb2e37c
AB
54 sh4)
55 cpu="sh4"
56 ;;
de6d9b64 57 *)
0f3cb305 58 cpu="unknown"
de6d9b64
FB
59 ;;
60esac
61gprof="no"
5cbcf02c
FB
62v4l="yes"
63audio_oss="yes"
dfdfa47c 64audio_beos="no"
8aa3ee32 65dv1394="yes"
5cbcf02c 66network="yes"
0147f198 67zlib="yes"
a6741398 68mp3lame="no"
81e0d0b4 69vorbis="no"
0fc50e58
ZK
70faad="no"
71faadbin="no"
5cbcf02c 72a52="yes"
57514323 73a52bin="no"
bba9b16c
MN
74pp="yes"
75shared_pp="no"
732d9245 76mingw32="no"
3f027ca7 77cygwin="no"
f3ec2d46 78os2="no"
83286d2a 79lshared="no"
ef0bc4c9 80extralibs="-lm"
c02dbee1 81simpleidct="yes"
0f3cb305 82bigendian="no"
a8721c09 83vhook="default"
adbc0510
PG
84dlfcn="no"
85dlopen="no"
1eb2212e 86mpegaudio_hp="yes"
e1707f52 87SHFLAGS=-shared
26b35efb 88netserver="no"
4baca069 89need_inet_aton="no"
8154d2e0 90ffserver="yes"
a86b921c 91ffplay="yes"
4baca069
PG
92LDFLAGS=-Wl,--warn-common
93FFSLDFLAGS=-Wl,-E
f3ec2d46
SG
94LIBPREF="lib"
95LIBSUF=".a"
96SLIBPREF="lib"
97SLIBSUF=".so"
1d0d55da 98risky="yes"
553a6284 99small="no"
891f64b3 100amr_nb="no"
bc634f6f 101amr_nb_fixed="no"
f80f7964 102sunmlib="no"
ef0bc4c9
FR
103
104# OS specific
105targetos=`uname -s`
106case $targetos in
107BeOS)
108prefix="/boot/home/config"
109# helps building libavcodec
e1707f52 110CFLAGS="-O3 -DPIC -fomit-frame-pointer"
31ba0b4d
FR
111# 3 gcc releases known for BeOS, each with ugly bugs
112gcc_version="$($cc -v 2>&1 | grep version | cut -d ' ' -f3-)"
113case "$gcc_version" in
1142.9-beos-991026*|2.9-beos-000224*) echo "R5/GG gcc"
115mmx="no"
116;;
117*20010315*) echo "BeBits gcc"
118CFLAGS="$CFLAGS -fno-expensive-optimizations"
119;;
120esac
e1707f52
MN
121SHFLAGS=-nostart
122# disable linux things
123audio_oss="no"
5cbcf02c 124v4l="no"
8aa3ee32 125dv1394="no"
dfdfa47c
FR
126# enable beos things
127audio_beos="yes"
ef0bc4c9
FR
128# no need for libm, but the inet stuff
129# Check for BONE
130if (echo $BEINCLUDES|grep 'headers/be/bone' >/dev/null); then
131extralibs="-lbind -lsocket"
132else
26b35efb 133netserver="yes"
4baca069 134need_inet_aton="yes"
26b35efb 135extralibs="-lnet"
ef0bc4c9 136fi ;;
4baca069
PG
137SunOS)
138v4l="no"
139audio_oss="no"
8aa3ee32 140dv1394="no"
4baca069
PG
141make="gmake"
142LDFLAGS=""
143FFSLDFLAGS=""
144need_inet_aton="yes"
145extralibs="$extralibs -lsocket -lnsl"
146;;
9c938e77
PG
147FreeBSD)
148v4l="no"
149audio_oss="yes"
8aa3ee32 150dv1394="no"
9c938e77 151make="gmake"
4baca069 152LDFLAGS="$LDFLAGS -export-dynamic"
9c938e77 153;;
4a908fbc 154BSD/OS)
5cbcf02c 155v4l="no"
6063bce7 156audio_oss="yes"
8aa3ee32 157dv1394="no"
4a908fbc
AB
158extralibs="-lpoll -lgnugetopt -lm"
159make="gmake"
160;;
90cee0c3 161Darwin)
a43bd1d7 162cc="cc"
90cee0c3
MN
163v4l="no"
164audio_oss="no"
8aa3ee32 165dv1394="no"
d3b15036 166ffserver="no"
a43bd1d7 167SHFLAGS="-dynamiclib"
90cee0c3 168extralibs=""
a43bd1d7 169darwin="yes"
47930f09 170strip="strip -x"
6207ba95 171LDFLAGS="-d"
4baca069 172FFSLDFLAGS=-Wl,-bind_at_load
8d6625b6 173gcc_version="$($cc -v 2>&1 | grep version | cut -d ' ' -f3-)"
4baca069
PG
174case "$gcc_version" in
175*2.95*)
176CFLAGS="-no-cpp-precomp -pipe -O3 -fomit-frame-pointer"
177;;
8d6625b6
DC
178*3.3*)
179CFLAGS="-no-cpp-precomp -pipe -O3 -fomit-frame-pointer -mdynamic-no-pic -force_cpusubtype_ALL"
180;;
4baca069
PG
181*)
182CFLAGS="-no-cpp-precomp -pipe -O3 -fomit-frame-pointer -mdynamic-no-pic"
183;;
184esac
90cee0c3 185;;
732d9245
BE
186MINGW32*)
187v4l="no"
188audio_oss="no"
8aa3ee32 189dv1394="no"
732d9245
BE
190ffserver="no"
191network="no"
192mingw32="yes"
193;;
3f027ca7
FB
194CYGWIN*)
195v4l="no"
196audio_oss="yes"
8aa3ee32 197dv1394="no"
3f027ca7
FB
198extralibs=""
199cygwin="yes"
200test -f /usr/include/inttypes.h || \
201test -f /usr/local/include/inttypes.h || \
202echo "Missing inttypes.h, please copy cygwin_inttypes.h to" \
203 "/usr/include/inttypes.h !!!"
204;;
b55e4ef4 205Linux)
4baca069 206LDFLAGS="$LDFLAGS -rdynamic"
b55e4ef4 207;;
f3ec2d46
SG
208OS/2)
209TMPE=$TMPE".exe"
69db4e10
SG
210ar="emxomfar -p64"
211ranlib="echo ignoring ranlib"
212strip="echo ignoring strip"
213CFLAGS="-Zomf -O3"
214LDFLAGS="-Zomf -Zstack 16384 -s"
f3ec2d46
SG
215SHFLAGS=""
216FFSLDFLAGS=""
217LIBPREF=""
218LIBSUF=".lib"
219SLIBPREF=""
220SLIBSUF=".dll"
221extralibs=""
222v4l="no"
223audio_oss="no"
8aa3ee32 224dv1394="no"
f3ec2d46
SG
225network="no"
226ffserver="no"
227os2="yes"
228;;
ef0bc4c9
FR
229*) ;;
230esac
de6d9b64 231
6852ac95
RD
232# From mplayer configure. We need TARGET_OS available
233# to the Makefile, so it can distinguish between flavors
234# of AltiVec on PowerPC
235TARGET_OS=`( uname -s ) 2>&1`
236 case "$TARGET_OS" in
237 Linux|FreeBSD|NetBSD|BSD/OS|OpenBSD|SunOS|QNX|Darwin|GNU)
238 ;;
239 IRIX*)
240 TARGET_OS=IRIX
241 ;;
242 HP-UX*)
243 TARGET_OS=HP-UX
244 ;;
245 [cC][yY][gG][wW][iI][nN]*)
246 TARGET_OS=CYGWIN
247 ;;
248 *)
249 TARGET_OS="$TARGET_OS-UNKNOWN"
250 ;;
251 esac
252
0f3cb305
FB
253# find source path
254# XXX: we assume an absolute path is given when launching configure,
255# except in './configure' case.
586bc755 256source_path="`echo $0 | sed -e 's#/configure##'`"
0f3cb305
FB
257source_path_used="yes"
258if test -z "$source_path" -o "$source_path" = "." ; then
259 source_path=`pwd`
260 source_path_used="no"
de6d9b64
FB
261fi
262
263for opt do
264 case "$opt" in
265 --prefix=*) prefix=`echo $opt | cut -d '=' -f 2`
266 ;;
0f3cb305
FB
267 --source-path=*) source_path=`echo $opt | cut -d '=' -f 2`
268 ;;
269 --cross-prefix=*) cross_prefix=`echo $opt | cut -d '=' -f 2`
270 ;;
de6d9b64
FB
271 --cc=*) cc=`echo $opt | cut -d '=' -f 2`
272 ;;
4a908fbc
AB
273 --make=*) make=`echo $opt | cut -d '=' -f 2`
274 ;;
0f3cb305
FB
275 --extra-cflags=*) CFLAGS="${opt#--extra-cflags=}"
276 ;;
277 --extra-ldflags=*) LDFLAGS=${opt#--extra-ldflags=}
278 ;;
279 --extra-libs=*) extralibs=${opt#--extra-libs=}
280 ;;
de6d9b64
FB
281 --cpu=*) cpu=`echo $opt | cut -d '=' -f 2`
282 ;;
a4adb608
MN
283 --tune=*) tune=`echo $opt | cut -d '=' -f 2`
284 ;;
e45a2872
RD
285 --powerpc-perf-enable) powerpc_perf="yes"
286 ;;
de6d9b64
FB
287 --disable-mmx) mmx="no"
288 ;;
ab6c65f6
BF
289 --disable-altivec) altivec="no"
290 ;;
de6d9b64
FB
291 --enable-gprof) gprof="yes"
292 ;;
5cbcf02c
FB
293 --disable-v4l) v4l="no"
294 ;;
295 --disable-audio-oss) audio_oss="no"
296 ;;
dfdfa47c
FR
297 --disable-audio-beos) audio_beos="no"
298 ;;
8aa3ee32
MK
299 --disable-dv1394) dv1394="no"
300 ;;
5cbcf02c
FB
301 --disable-network) network="no"
302 ;;
0147f198
FR
303 --disable-zlib) zlib="no"
304 ;;
5cbcf02c 305 --disable-a52) a52="no"
6ed7422a 306 ;;
9c938e77 307 --enable-a52bin) a52bin="yes" ; extralibs="$ldl $extralibs"
57514323 308 ;;
bba9b16c
MN
309 --disable-pp) pp="no"
310 ;;
311 --enable-shared-pp) shared_pp="yes"
312 ;;
a6741398
J
313 --enable-mp3lame) mp3lame="yes"
314 ;;
81e0d0b4
MH
315 --enable-vorbis) vorbis="yes"
316 ;;
445ad18d
ZK
317 --enable-faad) faad="yes"
318 ;;
319 --enable-faadbin) faadbin="yes"
320 ;;
68892110
PG
321 --disable-vhook) vhook="no"
322 ;;
c02dbee1 323 --disable-simple_idct) simpleidct="no"
045ed63f 324 ;;
732d9245
BE
325 --enable-mingw32) mingw32="yes"
326 ;;
83286d2a 327 --enable-shared) lshared="yes"
0319c531 328 ;;
1eb2212e
FB
329 --disable-mpegaudio-hp) mpegaudio_hp="no"
330 ;;
8154d2e0
FB
331 --disable-ffserver) ffserver="no"
332 ;;
a86b921c
FB
333 --disable-ffplay) ffplay="no"
334 ;;
1d0d55da
MN
335 --disable-risky) risky="no"
336 ;;
553a6284
MN
337 --enable-small) small="yes"
338 ;;
891f64b3 339 --enable-amr_nb) amr_nb="yes"
340 ;;
bc634f6f
ZK
341 --enable-amr_nb-fixed) amr_nb_fixed="yes"
342 ;;
f80f7964
RS
343 --enable-sunmlib) sunmlib="yes"
344 ;;
de6d9b64
FB
345 esac
346done
347
0f3cb305
FB
348# compute mmx state
349if test $mmx = "default"; then
350 if test $cpu = "x86"; then
351 mmx="yes"
352 else
353 mmx="no"
354 fi
355fi
356
ab6c65f6
BF
357# Can only do AltiVec on PowerPC
358if test $altivec = "default"; then
359 if test $cpu = "powerpc"; then
360 altivec="yes"
361 else
362 altivec="no"
363 fi
364fi
365
a4adb608
MN
366# Add processor-specific flags
367TUNECPU="generic"
368if test $tune != "generic"; then
369 case $tune in
370 601|ppc601|PowerPC601)
371 CFLAGS="$CFLAGS -mcpu=601"
372 if test $altivec = "yes"; then
373 echo "WARNING: tuning for PPC601 but altivec enabled !";
374 fi
375 TUNECPU=ppc601
376 ;;
377 603*|ppc603*|PowerPC603*)
378 CFLAGS="$CFLAGS -mcpu=603"
379 if test $altivec = "yes"; then
380 echo "WARNING: tuning for PPC603 but altivec enabled !";
381 fi
382 TUNECPU=ppc603
383 ;;
384 604*|ppc604*|PowerPC604*)
385 CFLAGS="$CFLAGS -mcpu=604"
386 if test $altivec = "yes"; then
387 echo "WARNING: tuning for PPC604 but altivec enabled !";
388 fi
389 TUNECPU=ppc604
390 ;;
8d6625b6 391 G3|g3|75*|ppc75*|PowerPC75*)
3efd4952 392 CFLAGS="$CFLAGS -mcpu=750 -mtune=750"
a4adb608
MN
393 if test $altivec = "yes"; then
394 echo "WARNING: tuning for PPC75x but altivec enabled !";
395 fi
396 TUNECPU=ppc750
397 ;;
8d6625b6 398 G4|g4|745*|ppc745*|PowerPC745*)
3efd4952
RD
399 CFLAGS="$CFLAGS -mcpu=7450 -mtune=7450"
400 if test $altivec = "no"; then
401 echo "WARNING: tuning for PPC745x but altivec disabled !";
402 fi
403 TUNECPU=ppc7450
404 ;;
405 74*|ppc74*|PowerPC74*)
406 CFLAGS="$CFLAGS -mcpu=7400 -mtune=7400"
a4adb608
MN
407 if test $altivec = "no"; then
408 echo "WARNING: tuning for PPC74xx but altivec disabled !";
409 fi
e45a2872 410 TUNECPU=ppc7400
a4adb608 411 ;;
8d6625b6 412 G5|g5|970|ppc970|PowerPC970|power4*|Power4*)
a4adb608
MN
413 CFLAGS="$CFLAGS -mcpu=970 -mtune=970 -mpowerpc64 -force_cpusubtype_ALL "
414 if test $altivec = "no"; then
415 echo "WARNING: tuning for PPC970 but altivec disabled !";
416 fi
417 TUNECPU=ppc970
418 ;;
419 *)
420 echo "WARNING: unknown CPU "$tune", ignored"
421 ;;
422 esac
423fi
424
b6e52719
MD
425# AltiVec flags: The FSF version of GCC differs from the Darwin version
426if test $cpu = "powerpc"; then
427 if test $altivec = "yes"; then
428 if test "$darwin" = "yes"; then
429 CFLAGS="$CFLAGS -faltivec"
430 else
431 CFLAGS="$CFLAGS -maltivec -mabi=altivec"
432 fi
433 fi
434fi
435
a9a07762
MN
436# See if we have <altivec.h>
437cat > $TMPC << EOF
438#include <altivec.h>
439int main( void ) { return 0; }
440EOF
441
442_altivec_h="no"
b6e52719 443if $cc $CFLAGS -o $TMPE $TMPC 2> /dev/null ; then
a9a07762
MN
444_altivec_h="yes"
445fi
446
ab6c65f6
BF
447# See does our compiler support Motorola AltiVec C API
448if test $altivec = "yes"; then
a9a07762 449if test $_altivec_h = "yes"; then
ab6c65f6 450cat > $TMPC << EOF
a9a07762 451#include <altivec.h>
ab6c65f6
BF
452int main(void) {
453 vector signed int v1, v2, v3;
454 v1 = vec_add(v2,v3);
455 return 0;
456}
457EOF
a9a07762
MN
458else
459cat > $TMPC << EOF
460int main(void) {
461 vector signed int v1, v2, v3;
462 v1 = vec_add(v2,v3);
463 return 0;
464}
465EOF
466fi
b6e52719 467$cc $CFLAGS -o $TMPE $TMPC 2> /dev/null || altivec="no"
ab6c65f6
BF
468fi
469
d46aba26
LS
470# Can only do mmi on mips
471if test $mmi = "default"; then
472 if test $cpu = "mips"; then
473 mmi="yes"
474 else
475 mmi="no"
476 fi
477fi
478
479# See does our compiler support mmi
480if test $mmi = "yes"; then
481cat > $TMPC << EOF
482int main(void) {
483 __asm__ ("lq \$2, 0(\$2)");
484 return 0;
485}
486EOF
f3ec2d46 487$cc -o $TMPE $TMPC 2> /dev/null || mmi="no"
d46aba26
LS
488fi
489
daf8e955
FB
490# Checking for CFLAGS
491if test -z "$CFLAGS"; then
29482cb4 492 CFLAGS="-O3"
daf8e955
FB
493fi
494
732d9245 495if test "$mingw32" = "yes" ; then
732d9245
BE
496 v4l="no"
497 audio_oss="no"
8aa3ee32 498 dv1394="no"
732d9245
BE
499 network="no"
500fi
501
0f3cb305
FB
502cc="${cross_prefix}${cc}"
503ar="${cross_prefix}${ar}"
be7109c1 504ranlib="${cross_prefix}${ranlib}"
0f3cb305
FB
505strip="${cross_prefix}${strip}"
506
487a54d7
FB
507if test -z "$cross_prefix" ; then
508
3d204385 509# ---
a3999908
MN
510# big/little endian test
511cat > $TMPC << EOF
512#include <inttypes.h>
513int main(int argc, char ** argv){
514 volatile uint32_t i=0x01234567;
515 return (*((uint8_t*)(&i))) == 0x67;
516}
517EOF
518
f3ec2d46
SG
519if $cc -o $TMPE $TMPC 2>/dev/null ; then
520$TMPE && bigendian="yes"
a3999908
MN
521else
522echo big/little test failed
523fi
524
487a54d7
FB
525else
526
527# if cross compiling, cannot launch a program, so make a static guess
528if test "$cpu" = "powerpc" -o "$cpu" = "mips" ; then
529 bigendian="yes"
530fi
531
532fi
533
a3999908 534# ---
3d204385
NK
535# check availability of some header files
536
537cat > $TMPC << EOF
538#include <malloc.h>
539int main( void ) { return 0; }
540EOF
541
542_memalign=no
543_malloc_h=no
f3ec2d46 544if $cc -o $TMPE $TMPC 2> /dev/null ; then
3d204385
NK
545_malloc_h=yes
546_memalign=yes
547# check for memalign - atmos
548cat > $TMPC << EOF
549#include <malloc.h>
550int main ( void ) {
551char *string = NULL;
552string = memalign(64, sizeof(char));
553return 0;
554}
555EOF
f3ec2d46 556$cc -o $TMPE $TMPC 2> /dev/null || _memalign=no
3d204385
NK
557fi
558
68892110
PG
559cat > $TMPC << EOF
560#define _GNU_SOURCE
561#include <time.h>
562int main( void ) { return *strptime("", "", 0); }
563EOF
564
565strptime=no
f3ec2d46 566if $cc -o $TMPE $TMPC 2> /dev/null ; then
68892110
PG
567 strptime=yes
568fi
569
0147f198
FR
570if test "$zlib" = "yes"; then
571# check for zlib - mmu_man
572cat > $TMPC << EOF
573#include <zlib.h>
574int main ( void ) {
575if (zlibVersion() != ZLIB_VERSION)
576 puts("zlib version differs !!!");
577 return 1;
578return 0;
579}
580EOF
f3ec2d46
SG
581$cc -o $TMPE $TMPC -lz 2> /dev/null || zlib="no"
582# $TMPE 2> /dev/null > /dev/null || zlib="no"
0147f198
FR
583# XXX: more tests needed - runtime test
584fi
585if test "$zlib" = "yes"; then
586extralibs="$extralibs -lz"
587fi
588
95e2ce4a
MN
589# test for lrintf in math.h
590cat > $TMPC << EOF
591#define _ISOC9X_SOURCE 1
592#include <math.h>
593int main( void ) { return (lrintf(3.999f) > 0)?0:1; }
594EOF
595
596have_lrintf="no"
f3ec2d46 597if $cc $extralibs -o $TMPE $TMPC 2> /dev/null ; then
95e2ce4a 598 have_lrintf="yes"
f3ec2d46 599 $TMPE 2> /dev/null > /dev/null || have_lrintf="no"
95e2ce4a
MN
600fi
601
c13e1abd
FH
602_restrict=
603for restrict_keyword in restrict __restrict__ __restrict; do
604 echo "void foo(char * $restrict_keyword p);" > $TMPC
605 if $cc -c -o $TMPO $TMPC 2> /dev/null; then
606 _restrict=$restrict_keyword
607 break;
608 fi
609done
610
52b41d7f
FB
611# test gcc version to see if vector builtins can be used
612# currently only used on i386 for MMX builtins
613cat > $TMPC << EOF
614int main(void) {
615#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
616return 0;
617#else
618#error no vector builtins
619#endif
620}
621EOF
622
623builtin_vector=no
624if $cc -o $TMPO $TMPC 2> /dev/null ; then
625 builtin_vector=yes
a8721c09
FB
626fi
627
628# dlopen/dlfcn.h probing
629
630cat > $TMPC << EOF
631#include <dlfcn.h>
632int main( void ) { return (int) dlopen("foo", 0); }
633EOF
634
635ldl=-ldl
636
637if $cc -o $TMPE $TMPC -ldl 2> /dev/null ; then
638dlfcn=yes
639dlopen=yes
640fi
641
642if $cc -o $TMPE $TMPC 2> /dev/null ; then
643dlfcn=yes
644dlopen=yes
645ldl=""
646fi
647
648cat > $TMPC << EOF
649int main( void ) { return (int) dlopen("foo", 0); }
650EOF
651
652if $cc -o $TMPE $TMPC -ldl 2> /dev/null ; then
653dlopen=yes
654fi
655
656if $cc -o $TMPE $TMPC 2> /dev/null ; then
657dlopen=yes
658ldl=""
659fi
660
661if test "$vhook" = "default" ; then
662 vhook="$dlopen"
663fi
664
a86b921c
FB
665##########################################
666# imlib probe
667
a8721c09
FB
668cat > $TMPC << EOF
669#include <X11/Xlib.h>
670#include <Imlib2.h>
671int main( void ) { return (int) imlib_load_font("foo"); }
672EOF
673
674imlib2=no
675if $cc -o $TMPE $TMPC -lImlib2 2> /dev/null ; then
676imlib2=yes
52b41d7f
FB
677fi
678
a86b921c
FB
679##########################################
680# freetype probe
681
04511d53
PG
682cat > $TMPC << EOF
683#include <ft2build.h>
684int main( void ) { return (int) FT_Init_FreeType(0); }
685EOF
686
687freetype2=no
69db4e10 688if test "x$targetos" != "xBeOS" && test "$os2" != "yes"; then
6e023978 689 if test "`which freetype-config`" != ""; then
04511d53 690 if $cc -o $TMPE $TMPC `freetype-config --cflags` `freetype-config --libs` 2> /dev/null ; then
dee076fc 691 freetype2=yes
04511d53 692 fi
dee076fc 693 fi
04511d53
PG
694fi
695
a86b921c
FB
696##########################################
697# SDL probe
698
699cat > $TMPC << EOF
700#include <SDL.h>
31319a8c 701#undef main /* We don't want SDL to override our main() */
a86b921c
FB
702int main( void ) { return SDL_Init (SDL_INIT_VIDEO); }
703EOF
704
705sdl_too_old=no
706sdl=no
707if $cc -o $TMPE `sdl-config --cflags` $TMPC `sdl-config --libs` 2> /dev/null ; then
708_sdlversion=`sdl-config --version | sed 's/[^0-9]//g'`
709if test "$_sdlversion" -lt 121 ; then
710sdl_too_old=yes
711else
712sdl=yes
713fi
714fi
715
94a3401e
FB
716if test "$sdl" = "no" ; then
717 ffplay=no
718fi
719
c9f97d82 720if test "$small" = "yes"; then
98ca7790 721# CFLAGS=${CFLAGS//-O3/-Os}
553a6284
MN
722 CFLAGS="$CFLAGS -Os"
723fi
724
6063bce7 725if test x"$1" = x"-h" -o x"$1" = x"--help" ; then
0f3cb305
FB
726cat << EOF
727
728Usage: configure [options]
729Options: [defaults in brackets after descriptions]
730
731EOF
732echo "Standard options:"
733echo " --help print this message"
734echo " --prefix=PREFIX install in PREFIX [$prefix]"
0f3cb305 735echo " --enable-mp3lame enable mp3 encoding via libmp3lame [default=no]"
81e0d0b4 736echo " --enable-vorbis enable vorbis support via libvorbisenc [default=no]"
0fc50e58
ZK
737echo " --enable-faad enable faad support via libfaad [default=no]"
738echo " --enable-faadbin build faad support with runtime linking [default=no]"
7eea5766 739echo " --enable-mingw32 enable mingw32 native/cross windows compile"
5cbcf02c 740echo " --disable-a52 disable GPL'ed A52 support [default=no]"
0f3cb305 741echo " --enable-a52bin open liba52.so.0 at runtime [default=no]"
bba9b16c
MN
742echo " --disable-pp disable GPL'ed post processing support [default=no]"
743echo " --enable-shared-pp use libpostproc.so [default=no]"
0f3cb305 744echo " --enable-shared build shared libraries [default=no]"
bc634f6f
ZK
745echo " --enable-amr_nb enable amr_nb float audio codec"
746echo " --enable-amr_nb-fixed use fixed point for amr-nb codec"
f80f7964 747echo " --enable-sunmlib use Sun medialib [default=no]"
0f3cb305
FB
748echo ""
749echo "Advanced options (experts only):"
750echo " --source-path=PATH path of source code [$source_path]"
751echo " --cross-prefix=PREFIX use PREFIX for compile tools [$cross_prefix]"
752echo " --cc=CC use C compiler CC [$cc]"
4a908fbc 753echo " --make=MAKE use specified make [$make]"
0f3cb305
FB
754echo " --extra-cflags=ECFLAGS add ECFLAGS to CFLAGS [$CFLAGS]"
755echo " --extra-ldflags=ELDFLAGS add ELDFLAGS to LDFLAGS [$LDFLAGS]"
756echo " --extra-libs=ELIBS add ELIBS [$ELIBS]"
757echo " --cpu=CPU force cpu to CPU [$cpu]"
a4adb608 758echo " --tune=PROCESSOR tune code for a particular CPU (may fails or misperforms on other CPUs)"
e45a2872 759echo " --powerpc-perf-enable enable performance report on PPC (requires enabling PMC)"
0f3cb305 760echo " --disable-mmx disable mmx usage"
ab6c65f6 761echo " --disable-altivec disable AltiVec usage"
5cbcf02c 762echo " --disable-audio-oss disable OSS audio support [default=no]"
dfdfa47c 763echo " --disable-audio-beos disable BeOS audio support [default=no]"
6063bce7 764echo " --disable-v4l disable video4linux grabbing [default=no]"
8aa3ee32 765echo " --disable-dv1394 disable DV1394 grabbing [default=no]"
5cbcf02c 766echo " --disable-network disable network support [default=no]"
0147f198 767echo " --disable-zlib disable zlib [default=no]"
5cbcf02c 768echo " --disable-simple_idct disable simple IDCT routines [default=no]"
47930f09 769echo " --disable-vhook disable video hooking support"
0f3cb305 770echo " --enable-gprof enable profiling with gprof [$gprof]"
1eb2212e
FB
771echo " --disable-mpegaudio-hp faster (but less accurate)"
772echo " mpegaudio decoding [default=no]"
8154d2e0 773echo " --disable-ffserver disable ffserver build"
a86b921c 774echo " --disable-ffplay disable ffplay build"
1d0d55da 775echo " --disable-risky disables patent encumbered codecs"
553a6284 776echo " --enable-small optimize for size instead of speed"
0f3cb305
FB
777echo ""
778echo "NOTE: The object files are build at the place where configure is launched"
779exit 1
780fi
781
de6d9b64 782echo "Install prefix $prefix"
0f3cb305 783echo "Source path $source_path"
de6d9b64 784echo "C compiler $cc"
4a908fbc 785echo "make $make"
a4adb608 786echo "CPU $cpu ($tune)"
0f3cb305 787echo "Big Endian $bigendian"
e41e8342 788if test $cpu = "x86"; then
de6d9b64 789echo "MMX enabled $mmx"
52b41d7f 790echo "Vector Builtins $builtin_vector"
e41e8342
FB
791fi
792if test $cpu = "mips"; then
d46aba26 793echo "MMI enabled $mmi"
e41e8342
FB
794fi
795if test $cpu = "powerpc"; then
ab6c65f6 796echo "AltiVec enabled $altivec"
e41e8342 797fi
de6d9b64 798echo "gprof enabled $gprof"
0147f198 799echo "zlib enabled $zlib"
a6741398 800echo "mp3lame enabled $mp3lame"
81e0d0b4 801echo "vorbis enabled $vorbis"
445ad18d
ZK
802echo "faad enabled $faad"
803echo "faadbin enabled $faadbin"
5cbcf02c 804echo "a52 support $a52"
57514323 805echo "a52 dlopened $a52bin"
bba9b16c
MN
806echo "pp support $pp"
807echo "shared pp $shared_pp"
47930f09 808echo "Video hooking $vhook"
a86b921c
FB
809echo "SDL support $sdl"
810if test $sdl_too_old = "yes"; then
811echo "-> Your SDL version is too old - please upgrade to have FFplay/SDL support"
812fi
1d0d55da 813echo "risky / patent encumbered codecs $risky"
553a6284 814echo "optimize for size $small"
68892110
PG
815
816if test "$vhook" = "yes" ; then
47930f09 817echo "Imlib2 support $imlib2"
04511d53 818echo "freetype support $freetype2"
68892110 819fi
f80f7964 820echo "Sun medialib support" $sunmlib
bc634f6f
ZK
821echo "AMR-NB float support" $amr_nb
822echo "AMR-NB fixed support" $amr_nb_fixed
de6d9b64 823
980fc7b8 824echo "Creating config.mak and config.h"
de6d9b64 825
980fc7b8 826echo "# Automatically generated by configure - do not modify" > config.mak
045ed63f 827echo "/* Automatically generated by configure - do not modify */" > $TMPH
de6d9b64 828
980fc7b8 829echo "prefix=$prefix" >> config.mak
4a908fbc 830echo "MAKE=$make" >> config.mak
980fc7b8
FB
831echo "CC=$cc" >> config.mak
832echo "AR=$ar" >> config.mak
be7109c1 833echo "RANLIB=$ranlib" >> config.mak
0f3cb305 834echo "STRIP=$strip" >> config.mak
a9b3f630 835echo "OPTFLAGS=$CFLAGS" >> config.mak
0f3cb305 836echo "LDFLAGS=$LDFLAGS" >> config.mak
4baca069 837echo "FFSLDFLAGS=$FFSLDFLAGS" >> config.mak
e1707f52 838echo "SHFLAGS=$SHFLAGS" >> config.mak
f3ec2d46
SG
839echo "LIBPREF=$LIBPREF" >> config.mak
840echo "LIBSUF=$LIBSUF" >> config.mak
841echo "SLIBPREF=$SLIBPREF" >> config.mak
842echo "SLIBSUF=$SLIBSUF" >> config.mak
6852ac95 843echo "TARGET_OS=$TARGET_OS" >> config.mak
57514323 844if test "$cpu" = "x86" ; then
980fc7b8 845 echo "TARGET_ARCH_X86=yes" >> config.mak
045ed63f 846 echo "#define ARCH_X86 1" >> $TMPH
0f3cb305 847elif test "$cpu" = "armv4l" ; then
6ed7422a 848 echo "TARGET_ARCH_ARMV4L=yes" >> config.mak
045ed63f 849 echo "#define ARCH_ARMV4L 1" >> $TMPH
0f3cb305 850elif test "$cpu" = "alpha" ; then
91d1f1a4 851 echo "TARGET_ARCH_ALPHA=yes" >> config.mak
045ed63f 852 echo "#define ARCH_ALPHA 1" >> $TMPH
35fedfc3
PG
853elif test "$cpu" = "sparc64" ; then
854 echo "TARGET_ARCH_SPARC64=yes" >> config.mak
855 echo "#define ARCH_SPARC64 1" >> $TMPH
0f3cb305
FB
856elif test "$cpu" = "powerpc" ; then
857 echo "TARGET_ARCH_POWERPC=yes" >> config.mak
858 echo "#define ARCH_POWERPC 1" >> $TMPH
e45a2872
RD
859 if test "$powerpc_perf" = "yes"; then
860 echo "#define POWERPC_PERFORMANCE_REPORT 1" >> $TMPH
861 fi
d46aba26
LS
862elif test "$cpu" = "mips" ; then
863 echo "TARGET_ARCH_MIPS=yes" >> config.mak
864 echo "#define ARCH_MIPS 1" >> $TMPH
bdb2e37c
AB
865elif test "$cpu" = "sh4" ; then
866 echo "TARGET_ARCH_SH4=yes" >> config.mak
867 echo "#define ARCH_SH4 1" >> $TMPH
868fi
a4adb608 869echo "#define TUNECPU $TUNECPU" >> $TMPH
0f3cb305
FB
870if test "$bigendian" = "yes" ; then
871 echo "WORDS_BIGENDIAN=yes" >> config.mak
872 echo "#define WORDS_BIGENDIAN 1" >> $TMPH
91d1f1a4 873fi
57514323 874if test "$mmx" = "yes" ; then
980fc7b8 875 echo "TARGET_MMX=yes" >> config.mak
045ed63f 876 echo "#define HAVE_MMX 1" >> $TMPH
e82c5a8c 877 echo "#define __CPU__ 586" >> $TMPH
de6d9b64 878fi
52b41d7f
FB
879if test "$builtin_vector" = "yes" ; then
880 echo "TARGET_BUILTIN_VECTOR=yes" >> config.mak
881 echo "#define HAVE_BUILTIN_VECTOR 1" >> $TMPH
882fi
d46aba26
LS
883if test "$mmi" = "yes" ; then
884 echo "TARGET_MMI=yes" >> config.mak
885 echo "#define HAVE_MMI 1" >> $TMPH
886fi
ab6c65f6
BF
887if test "$altivec" = "yes" ; then
888 echo "TARGET_ALTIVEC=yes" >> config.mak
889 echo "#define HAVE_ALTIVEC 1" >> $TMPH
db40a39a
MN
890 echo "// Enable the next line to use the reference C code instead of AltiVec" >> $TMPH
891 echo "// #define ALTIVEC_USE_REFERENCE_C_CODE 1" >> $TMPH
a9a07762
MN
892 if test "$_altivec_h" = "yes" ; then
893 echo "#define HAVE_ALTIVEC_H 1" >> $TMPH
894 else
e67e14d5 895 echo "#undef HAVE_ALTIVEC_H" >> $TMPH
a9a07762 896 fi
ab6c65f6 897fi
57514323 898if test "$gprof" = "yes" ; then
980fc7b8 899 echo "TARGET_GPROF=yes" >> config.mak
045ed63f 900 echo "#define HAVE_GPROF 1" >> $TMPH
de6d9b64 901fi
68892110
PG
902if test "$strptime" = "yes" ; then
903 echo "#define HAVE_STRPTIME 1" >> $TMPH
904else
905 echo "BUILD_STRPTIME=yes" >> config.mak
906fi
907if test "$imlib2" = "yes" ; then
908 echo "HAVE_IMLIB2=yes" >> config.mak
909fi
04511d53
PG
910if test "$freetype2" = "yes" ; then
911 echo "HAVE_FREETYPE2=yes" >> config.mak
912fi
f80f7964
RS
913if test "$sunmlib" = "yes" ; then
914 echo "HAVE_MLIB=yes" >> config.mak
915 echo "#define HAVE_MLIB 1" >> $TMPH
916 extralibs="$extralibs -lmlib"
917fi
a86b921c
FB
918if test "$sdl" = "yes" ; then
919 echo "CONFIG_SDL=yes" >> config.mak
920 echo "SDL_LIBS=`sdl-config --libs`" >> config.mak
921 echo "SDL_CFLAGS=`sdl-config --cflags`" >> config.mak
922fi
95e2ce4a
MN
923if test "$have_lrintf" = "yes" ; then
924 echo "#define HAVE_LRINTF 1" >> $TMPH
925fi
68892110
PG
926if test "$vhook" = "yes" ; then
927 echo "BUILD_VHOOK=yes" >> config.mak
928 echo "#define HAVE_VHOOK 1" >> $TMPH
9c938e77 929 extralibs="$extralibs $ldl"
68892110 930fi
57514323 931if test "$lshared" = "yes" ; then
0319c531 932 echo "BUILD_SHARED=yes" >> config.mak
5cbcf02c 933 echo "PIC=-fPIC" >> config.mak
0319c531 934fi
ef0bc4c9 935echo "EXTRALIBS=$extralibs" >> config.mak
586bc755 936echo "VERSION=`head $source_path/VERSION`" >>config.mak
0319c531 937echo "" >>config.mak
d771bcae 938# if you do not want to use encoders, disable that.
045ed63f 939echo "#define CONFIG_ENCODERS 1" >> $TMPH
d771bcae
FB
940echo "CONFIG_ENCODERS=yes" >> config.mak
941
942# if you do not want to use decoders, disable that.
045ed63f 943echo "#define CONFIG_DECODERS 1" >> $TMPH
d771bcae
FB
944echo "CONFIG_DECODERS=yes" >> config.mak
945
5cbcf02c
FB
946# AC3
947if test "$a52" = "yes" ; then
948 echo "#define CONFIG_AC3 1" >> $TMPH
949 echo "CONFIG_AC3=yes" >> config.mak
d771bcae 950
5cbcf02c
FB
951 if test "$a52bin" = "yes" ; then
952 echo "#define CONFIG_A52BIN 1" >> $TMPH
953 echo "CONFIG_A52BIN=yes" >> config.mak
954 fi
955fi
956
bba9b16c
MN
957# PP
958if test "$pp" = "yes" ; then
959 echo "#define CONFIG_PP 1" >> $TMPH
960 echo "CONFIG_PP=yes" >> config.mak
961
962 if test "$shared_pp" = "yes" ; then
963 echo "#define SHARED_PP 1" >> $TMPH
964 echo "SHARED_PP=yes" >> config.mak
965 fi
966fi
967
1eb2212e
FB
968# mpeg audio high precision mode
969if test "$mpegaudio_hp" = "yes" ; then
970 echo "#define CONFIG_MPEGAUDIO_HP 1" >> $TMPH
971fi
972
5cbcf02c
FB
973if test "$v4l" = "yes" ; then
974 echo "#define CONFIG_VIDEO4LINUX 1" >> $TMPH
975 echo "CONFIG_VIDEO4LINUX=yes" >> config.mak
976fi
977
8aa3ee32
MK
978if test "$dv1394" = "yes" ; then
979 echo "#define CONFIG_DV1394 1" >> $TMPH
980 echo "CONFIG_DV1394=yes" >> config.mak
981fi
982
adbc0510
PG
983if test "$dlopen" = "yes" ; then
984 echo "#define CONFIG_HAVE_DLOPEN 1" >> $TMPH
985fi
986
987if test "$dlfcn" = "yes" ; then
988 echo "#define CONFIG_HAVE_DLFCN 1" >> $TMPH
989fi
990
5cbcf02c
FB
991if test "$audio_oss" = "yes" ; then
992 echo "#define CONFIG_AUDIO_OSS 1" >> $TMPH
993 echo "CONFIG_AUDIO_OSS=yes" >> config.mak
57514323
ZK
994fi
995
dfdfa47c
FR
996if test "$audio_beos" = "yes" ; then
997 echo "#define CONFIG_AUDIO_BEOS 1" >> $TMPH
998 echo "CONFIG_AUDIO_BEOS=yes" >> config.mak
999fi
1000
5cbcf02c
FB
1001if test "$network" = "yes" ; then
1002 echo "#define CONFIG_NETWORK 1" >> $TMPH
1003 echo "CONFIG_NETWORK=yes" >> config.mak
6ed7422a 1004fi
daf8e955 1005
0147f198
FR
1006if test "$zlib" = "yes" ; then
1007 echo "#define CONFIG_ZLIB 1" >> $TMPH
1008 echo "CONFIG_ZLIB=yes" >> config.mak
1009fi
1010
57514323 1011if test "$mp3lame" = "yes" ; then
045ed63f 1012 echo "#define CONFIG_MP3LAME 1" >> $TMPH
a6741398
J
1013 echo "CONFIG_MP3LAME=yes" >> config.mak
1014fi
1015
81e0d0b4
MH
1016if test "$vorbis" = "yes" ; then
1017 echo "#define CONFIG_VORBIS 1" >> $TMPH
1018 echo "CONFIG_VORBIS=yes" >> config.mak
1019fi
1020
0fc50e58
ZK
1021if test "$faad" = "yes" ; then
1022 echo "#define CONFIG_FAAD 1" >> $TMPH
1023 echo "CONFIG_FAAD=yes" >> config.mak
1024fi
1025
1026if test "$faadbin" = "yes" ; then
1027 echo "#define CONFIG_FAADBIN 1" >> $TMPH
445ad18d 1028 echo "CONFIG_FAADBIN=yes" >> config.mak
0fc50e58
ZK
1029fi
1030
732d9245
BE
1031if test "$mingw32" = "yes" ; then
1032 echo "#define CONFIG_WIN32 1" >> $TMPH
1033 echo "CONFIG_WIN32=yes" >> config.mak
7eea5766 1034 echo "#ifndef __MINGW32__" >> $TMPH
732d9245 1035 echo "#define __MINGW32__ 1" >> $TMPH
7eea5766 1036 echo "#endif" >> $TMPH
732d9245
BE
1037 echo "__MINGW32__=1" >> config.mak
1038fi
1039
3f027ca7
FB
1040if test "$cygwin" = "yes" ; then
1041 # setup correct exesuffix
1042 echo "CONFIG_WIN32=yes" >> config.mak
1043fi
1044
f3ec2d46
SG
1045if test "$os2" = "yes" ; then
1046 echo "#define CONFIG_OS2 1" >> $TMPH
1047 echo "CONFIG_OS2=yes" >> config.mak
1048fi
1049
6e023978
RS
1050if test "$TARGET_OS" = "SunOS" ; then
1051 echo "#define CONFIG_SUNOS 1" >> $TMPH
1052fi
1053
90cee0c3
MN
1054if test "$darwin" = "yes"; then
1055 echo "#define CONFIG_DARWIN 1" >> $TMPH
1056 echo "CONFIG_DARWIN=yes" >> config.mak
1057fi
1058
57514323 1059if test "$_malloc_h" = "yes" ; then
045ed63f 1060 echo "#define HAVE_MALLOC_H 1" >> $TMPH
3d204385 1061else
045ed63f 1062 echo "#undef HAVE_MALLOC_H" >> $TMPH
3d204385
NK
1063fi
1064
57514323 1065if test "$_memalign" = "yes" ; then
045ed63f
ZK
1066 echo "#define HAVE_MEMALIGN 1" >> $TMPH
1067else
1068 echo "#undef HAVE_MEMALIGN" >> $TMPH
1069fi
1070
26b35efb
FR
1071if test "$netserver" = "yes" ; then
1072 echo "#define CONFIG_BEOS_NETSERVER 1" >> $TMPH
1073 echo "CONFIG_BEOS_NETSERVER=yes" >> config.mak
1074fi
1075
4baca069
PG
1076if test "$need_inet_aton" = "yes" ; then
1077 echo "NEED_INET_ATON=yes" >> config.mak
1078fi
1079
57514323 1080if test "$simpleidct" = "yes" ; then
045ed63f
ZK
1081 echo "#define SIMPLE_IDCT 1" >> $TMPH
1082fi
1083
8154d2e0
FB
1084if test "$ffserver" = "yes" ; then
1085 echo "#define CONFIG_FFSERVER 1" >> $TMPH
1086 echo "CONFIG_FFSERVER=yes" >> config.mak
1087fi
1088
a86b921c
FB
1089if test "$ffplay" = "yes" ; then
1090 echo "CONFIG_FFPLAY=yes" >> config.mak
1091fi
1092
1d0d55da
MN
1093if test "$risky" = "yes" ; then
1094 echo "#define CONFIG_RISKY 1" >> $TMPH
1095 echo "CONFIG_RISKY=yes" >> config.mak
1096fi
1097
c13e1abd
FH
1098echo "#define restrict $_restrict" >> $TMPH
1099
0f3cb305
FB
1100# build tree in object directory if source path is different from current one
1101if test "$source_path_used" = "yes" ; then
a382b927 1102 DIRS="libavformat libavcodec libavcodec/alpha libavcodec/armv4l libavcodec/i386 \
5f6b58de
MR
1103 libavcodec/ppc libavcodec/liba52 libavcodec/mlib libavcodec/libpostproc tests vhook"
1104 FILES="Makefile libavformat/Makefile libavcodec/Makefile libavcodec/libpostproc/Makefile tests/Makefile vhook/Makefile"
0f3cb305
FB
1105 for dir in $DIRS ; do
1106 mkdir -p $dir
1107 done
1108 for f in $FILES ; do
1109 ln -sf $source_path/$f $f
1110 done
1111fi
1112echo "SRC_PATH=$source_path" >> config.mak
1113
891f64b3 1114if test "$amr_nb" = "yes" ; then
1115 echo "#define AMR_NB 1" >> $TMPH
1116 echo "AMR_NB=yes" >> config.mak
1117 echo
bc634f6f
ZK
1118if test "$amr_nb_fixed" = "yes" ; then
1119 echo "AMR_NB_FIXED=yes" >> config.mak
1120 echo "#define AMR_NB_FIXED 1" >> $TMPH
1121 echo "AMR NB FIXED POINT NOTICE! Make sure you have downloaded TS26.073 "
1122 echo "REL-5 version 5.1.0 from "
891f64b3 1123 echo "http://www.3gpp.org/ftp/Specs/latest/Rel-5/26_series/26073-510.zip"
1124 echo "and extracted src to libavcodec/amr"
bc634f6f
ZK
1125 echo "You must also add -DMMS_IO and remove -pedantic-errors to/from CFLAGS in libavcodec/amr/makefile."
1126 echo "i.e. CFLAGS = -Wall -I. \$(CFLAGS_\$(MODE)) -D\$(VAD) -DMMS_IO"
1127 echo
1128else
1129 echo "AMR NB FLOAT NOTICE ! Make sure you have downloaded TS26.104"
1130 echo "REL-5 V5.1.0 from "
1131 echo "http://www.3gpp.org/ftp/Specs/latest/Rel-5/26_series/26104-510.zip"
1132 echo "and extracted the source to libavcodec/amr_float"
891f64b3 1133 echo
1134fi
1135
bc634f6f
ZK
1136fi
1137
a7c02e25 1138diff $TMPH config.h >/dev/null 2>&1
045ed63f
ZK
1139if test $? -ne 0 ; then
1140 mv -f $TMPH config.h
3d204385 1141else
045ed63f 1142 echo "config.h is unchanged"
3d204385
NK
1143fi
1144
f3ec2d46 1145rm -f $TMPO $TMPC $TMPE $TMPS $TMPH