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.
11 if [ -x /usr
/bin
/nasm
-o -x /usr
/local
/bin
/nasm
]; then HAVE_NASM
=y
; else HAVE_NASM
=n
; fi
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
];
18 if [ $HAVE_NASM == n
];
19 then echo " *** Nasm is required. Download it from nasm.sourceforge.net";
24 if [ $HAVE_YASM == n
];
25 then echo " *** Yasm is required. Download it from www.tortall.net/projects/yasm/";
29 # test for -msse support
32 cat > conftest.c
<< 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";
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*` && \
71 CFLAGS
="-I../../$LIBOGG_PATH/include -L../../$LIBOGG_PATH/src/" .
/configure
--enable-shared=no
&& \
76 if [ `arch` == i686
];
79 cd jpeg-mmx
* && .
/configure
&& cd ..
86 then echo "Configured successfully. Type 'make' to build it.";