aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorNick Kurshev <nickols_k@mail.ru>2001-07-30 09:04:34 +0000
committerNick Kurshev <nickols_k@mail.ru>2001-07-30 09:04:34 +0000
commita9b3f63084e59715da3a1dd5b365a2638aa54a1e (patch)
tree8ef3b4c9b514609ef68105dfcdf0e0ad0d519791 /configure
parent3bb4e23a8aa15fc93b91b92d8c6437358fd71113 (diff)
downloadffmpeg-a9b3f63084e59715da3a1dd5b365a2638aa54a1e.tar.gz
Sync with mplayer's stuff
Originally committed as revision 14 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure b/configure
index 568e24df35..f357bec9c3 100755
--- a/configure
+++ b/configure
@@ -58,10 +58,15 @@ echo "Creating config.mak and config.h"
echo "# Automatically generated by configure - do not modify" > config.mak
echo "/* Automatically generated by configure - do not modify */" > config.h
+# Checking for CFLAGS
+if test -z "$CFLAGS"; then
+ CFLAGS="-O2"
+fi
+
echo "prefix=$prefix" >> config.mak
echo "CC=$cc" >> config.mak
echo "AR=$ar" >> config.mak
-echo "OPTFLAGS=-O2" >> config.mak
+echo "OPTFLAGS=$CFLAGS" >> config.mak
if [ "$cpu" = "x86" ] ; then
echo "TARGET_ARCH_X86=yes" >> config.mak
echo "#define ARCH_X86 1" >> config.h
@@ -74,6 +79,7 @@ if [ "$gprof" = "yes" ] ; then
echo "TARGET_GPROF=yes" >> config.mak
echo "#define HAVE_GPROF 1" >> config.h
fi
+echo "#define BIN_PORTABILITY 1 /*undefine it if you want to get maximal performance*/" >> config.h
# if you do not want to use encoders, disable that.
echo "#define CONFIG_ENCODERS 1" >> config.h