summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authorsiretart <siretart@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-04-23 20:59:46 +0000
committersiretart <siretart@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-04-23 20:59:46 +0000
commit0688204a7d8a2c58e6f56f3ad388ef75b6e934d8 (patch)
tree07654dd2ad7cda9d3a7308789bdea53dbea2789b /TOOLS
parentfc7d8af3b45c636d175cddd2858a85b394ea8578 (diff)
downloadmpv-0688204a7d8a2c58e6f56f3ad388ef75b6e934d8.tar.bz2
mpv-0688204a7d8a2c58e6f56f3ad388ef75b6e934d8.tar.xz
check for missing libstdc++
this version of the check assumes that we run on a system with apt-get installed and configured. We should probably check that this is actually true. Or more ideally add support for yum for fedora systems. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29227 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'TOOLS')
-rwxr-xr-xTOOLS/binary_codecs.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/TOOLS/binary_codecs.sh b/TOOLS/binary_codecs.sh
index 516f5a38c9..67e20b1f54 100755
--- a/TOOLS/binary_codecs.sh
+++ b/TOOLS/binary_codecs.sh
@@ -159,6 +159,19 @@ case "$1" in
n=1
fi
done
+ needlibstd=no
+ test "$dpkgarch" = "powerpc" && needlibstd=yes
+ test "$dpkgarch" = "i386" && needlibstd=yes
+ if test "$needlibstd" = "yes" && ! test -r /usr/lib/libstdc++.so.5 ; then
+ echo "Warning: you need to install libstdc++ 5 libraries"
+ echo -n "Do it now? "
+ read R
+ case $R in
+ y*) apt-get install libstdc++5 ;;
+ *) echo "If you change your mind, use the command"
+ echo " apt-get install libstdc++5" ;;
+ esac
+ fi
else
echo "Sorry, no codecs for your arch '$dpkgarch'. Sorry dude :("
exit 1