summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2007-07-06 18:41:59 +0000
committerMåns Rullgård <mans@mansr.com>2007-07-06 18:41:59 +0000
commitbd2216e48759801c5eeef9c46c5d913fa4326066 (patch)
tree6aa29ff7f0378dc173e5e67433a63f2175e9cc47 /configure
parentab2cfc59a6756782e01fe96399e73a33d6d6cc52 (diff)
handle --enable-small same way as other CONFIG_* options (almost)
Originally committed as revision 9509 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 6 insertions, 8 deletions
diff --git a/configure b/configure
index 1d5f66ef66..427476de40 100755
--- a/configure
+++ b/configure
@@ -602,6 +602,7 @@ CONFIG_LIST='
powerpc_perf
pp
protocols
+ small
swscaler
vhook
v4l
@@ -947,8 +948,6 @@ for opt do
;;
--disable-opts) optimize="no"
;;
- --enable-small) optimize="small"
- ;;
--enable-sunmlib) mlib="yes"
;;
--disable-strip) dostrip="no"
@@ -1731,10 +1730,10 @@ enabled extra_warnings && check_cflags -Winline
check_ldflags -Wl,--warn-common
check_ldflags $LDLATEFLAGS
-# not all compilers support -Os
-test "$optimize" = "small" && check_cflags -Os
-
-if enabled optimize; then
+if enabled small; then
+ check_cflags -Os # not all compilers support -Os
+ optimize="small"
+elif enabled optimize; then
if test -n "`$cc -v 2>&1 | grep xlc`"; then
add_cflags "-O5"
add_ldflags "-O5"
@@ -1964,9 +1963,8 @@ fi
echo "#define restrict $_restrict" >> $TMPH
-if test "$optimize" = "small"; then
+if enabled small; then
echo "#define always_inline" >> $TMPH
- echo "#define CONFIG_SMALL 1" >> $TMPH
fi
echo "SRC_PATH=\"$source_path\"" >> config.mak