aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2007-02-11 11:22:17 +0000
committerMåns Rullgård <mans@mansr.com>2007-02-11 11:22:17 +0000
commit703afd0780e211dd880a93aca33df08dd1c124d0 (patch)
tree00cbe1b8408432fe7971c561b669efa42d65ef50 /configure
parentbc8ec47bbeebf6e7b6c604407626956bd5745ee7 (diff)
downloadffmpeg-703afd0780e211dd880a93aca33df08dd1c124d0.tar.gz
rewrite some one-line if/then/fi using && and ||
Originally committed as revision 7917 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 4 insertions, 12 deletions
diff --git a/configure b/configure
index b710128178..102ba6c40b 100755
--- a/configure
+++ b/configure
@@ -1273,9 +1273,7 @@ if test $targetos = Darwin; then
fi
fi
-if ! disabled optimize ; then
- add_cflags "-fomit-frame-pointer"
-fi
+disabled optimize || add_cflags -fomit-frame-pointer
# Can only do AltiVec on PowerPC
if test $altivec = "default"; then
@@ -1620,13 +1618,9 @@ elif check_func dlopen -ldl; then
ldl=-ldl
fi
-if test "$vhook" = "default"; then
- vhook="$dlopen"
-fi
+test "$vhook" = "default" && vhook="$dlopen"
-if enabled_any vhook liba52bin libfaadbin; then
- add_extralibs $ldl
-fi
+enabled_any vhook liba52bin libfaadbin && add_extralibs $ldl
if test "$targetos" = "CYGWIN" && enabled lstatic ; then
vhook="no"
@@ -1641,9 +1635,7 @@ if enabled vhook; then
check_ldflags -export-dynamic
fi
-if enabled audio_beos; then
- add_extralibs "-lmedia -lbe"
-fi
+enabled audio_beos && add_extralibs "-lmedia -lbe"
##########################################
# imlib check