Merge branch 'ct' of git.pipapo.org:cinelerra-ct into ct
[cinelerra_cv/ct.git] / quicktime / configure
bloba2cb253b5e2df4d8bb6841dfd5ce65d54ae3b999
1 #!/bin/sh
3 # configuration is being done in a script because starting with GCC-3.2
4 # the compiler flags are changing too much between minor releases to detect
5 # with Makefile scripts alone. For now it just tells you if you have the
6 # prerequisite compilers.
8 ERROR=0
10 # test for nasm
11 if [ -x /usr/bin/nasm -o -x /usr/local/bin/nasm ]; then HAVE_NASM=y; else HAVE_NASM=n; fi
13 # test for yasm
14 if [ -x /usr/bin/yasm -o -x /usr/local/bin/yasm ]; then HAVE_YASM=y; else HAVE_YASM=n; fi
16 if [ `arch` == i686 ];
17 then
18 if [ $HAVE_NASM == n ];
19 then echo " *** Nasm is required. Download it from nasm.sourceforge.net";
20 ERROR=1
24 if [ $HAVE_YASM == n ];
25 then echo " *** Yasm is required. Download it from www.tortall.net/projects/yasm/";
26 ERROR=1
29 # test for -msse support
31 rm -f a.out
32 cat > conftest.c << EOF
33 int main()
35 return 0;
37 EOF
39 gcc -msse conftest.c >& /dev/null
41 if [ -x a.out ]; then HAVE_GCC=y; else HAVE_GCC=n; fi
43 rm -f a.out conftest.c
45 if [ $HAVE_GCC == n ];
46 then echo " *** GCC 3.2.2 or greater is required. Download it from gcc.gnu.org";
47 ERROR=1
50 if [ $ERROR == 1 ];
51 then exit;
54 # configure them all
56 # version 2.0 of faad2 produced defective Makefile
57 cd faad2* && ./configure && sed 's/ /\t/' Makefile > Makefile2 && mv -f Makefile2 Makefile && cd ..
59 cd faac* && ./configure && cd ..
61 cd ffmpeg* && ./configure && cd ..
63 cd x264* && ./configure --enable-pthread && cd ..
65 cd libdv* && ./configure --disable-gtk --enable-shared=no && cd ..
67 cd libogg* && ./configure && cd ..
69 LIBOGG_PATH=`expr libogg*` && \
70 cd libvorbis* && \
71 CFLAGS="-I../../$LIBOGG_PATH/include -L../../$LIBOGG_PATH/src/" ./configure --enable-shared=no&& \
72 cd ..
76 if [ `arch` == i686 ];
77 then
79 cd jpeg-mmx* && ./configure && cd ..
84 # success
85 if [ $ERROR == 0 ];
86 then echo "Configured successfully. Type 'make' to build it.";