Commit b2924696 authored by Roman Shaposhnik's avatar Roman Shaposhnik

* sh doesn't understand $(command) type of Command substitution.

      It's a ksh'ism.

Originally committed as revision 2429 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 99200bae
...@@ -177,7 +177,7 @@ prefix="/boot/home/config" ...@@ -177,7 +177,7 @@ prefix="/boot/home/config"
# helps building libavcodec # helps building libavcodec
CFLAGS="-DPIC -fomit-frame-pointer" CFLAGS="-DPIC -fomit-frame-pointer"
# 3 gcc releases known for BeOS, each with ugly bugs # 3 gcc releases known for BeOS, each with ugly bugs
gcc_version="$($cc -v 2>&1 | grep version | cut -d ' ' -f3-)" gcc_version="`$cc -v 2>&1 | grep version | cut -d ' ' -f3-`"
case "$gcc_version" in case "$gcc_version" in
2.9-beos-991026*|2.9-beos-000224*) echo "R5/GG gcc" 2.9-beos-991026*|2.9-beos-000224*) echo "R5/GG gcc"
mmx="no" mmx="no"
...@@ -418,10 +418,10 @@ fi ...@@ -418,10 +418,10 @@ fi
#Darwin CC versions #Darwin CC versions
if test $targetos = Darwin; then if test $targetos = Darwin; then
if test -n "$($cc -v 2>&1 | grep xlc)"; then if test -n "`$cc -v 2>&1 | grep xlc`"; then
CFLAGS="-qpdf2 -qlanglvl=extc99 -qmaxmem=-1 -qarch=auto -qtune=auto" CFLAGS="-qpdf2 -qlanglvl=extc99 -qmaxmem=-1 -qarch=auto -qtune=auto"
else else
gcc_version="$($cc -v 2>&1 | grep version | cut -d ' ' -f3-)" gcc_version="`$cc -v 2>&1 | grep version | cut -d ' ' -f3-`"
case "$gcc_version" in case "$gcc_version" in
*2.95*) *2.95*)
CFLAGS="-no-cpp-precomp -pipe -fomit-frame-pointer" CFLAGS="-no-cpp-precomp -pipe -fomit-frame-pointer"
...@@ -510,7 +510,7 @@ fi ...@@ -510,7 +510,7 @@ fi
# AltiVec flags: The FSF version of GCC differs from the Apple version # AltiVec flags: The FSF version of GCC differs from the Apple version
if test $cpu = "powerpc"; then if test $cpu = "powerpc"; then
if test $altivec = "yes"; then if test $altivec = "yes"; then
if test -n "$($cc -v 2>&1 | grep version | grep Apple)"; then if test -n "`$cc -v 2>&1 | grep version | grep Apple`"; then
CFLAGS="$CFLAGS -faltivec" CFLAGS="$CFLAGS -faltivec"
else else
CFLAGS="$CFLAGS -maltivec -mabi=altivec" CFLAGS="$CFLAGS -maltivec -mabi=altivec"
...@@ -800,7 +800,7 @@ sdl=yes ...@@ -800,7 +800,7 @@ sdl=yes
fi fi
fi fi
case "$($cc -v 2>&1 | grep version)" in case "`$cc -v 2>&1 | grep version`" in
*gcc*) *gcc*)
CFLAGS="-Wall $CFLAGS" CFLAGS="-Wall $CFLAGS"
;; ;;
...@@ -822,7 +822,7 @@ if test "$optimize" = "small"; then ...@@ -822,7 +822,7 @@ if test "$optimize" = "small"; then
fi fi
if test "$optimize" = "yes"; then if test "$optimize" = "yes"; then
if test -n "$($cc -v 2>&1 | grep xlc)"; then if test -n "`$cc -v 2>&1 | grep xlc`"; then
CFLAGS="$CFLAGS -O5" CFLAGS="$CFLAGS -O5"
LDFLAGS="$LDFLAGS -O5" LDFLAGS="$LDFLAGS -O5"
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment