Mercurial > mplayer.hg
comparison TOOLS/binary_codecs.sh @ 29186:11ffcebc19cf
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.
| author | siretart |
|---|---|
| date | Thu, 23 Apr 2009 20:59:46 +0000 |
| parents | a99dc500088f |
| children | e227d7137dc0 |
comparison
equal
deleted
inserted
replaced
| 29185:a99dc500088f | 29186:11ffcebc19cf |
|---|---|
| 157 echo Downloading and installing $file $info... | 157 echo Downloading and installing $file $info... |
| 158 INSTALL "$url" "$dir" "$file" | 158 INSTALL "$url" "$dir" "$file" |
| 159 n=1 | 159 n=1 |
| 160 fi | 160 fi |
| 161 done | 161 done |
| 162 needlibstd=no | |
| 163 test "$dpkgarch" = "powerpc" && needlibstd=yes | |
| 164 test "$dpkgarch" = "i386" && needlibstd=yes | |
| 165 if test "$needlibstd" = "yes" && ! test -r /usr/lib/libstdc++.so.5 ; then | |
| 166 echo "Warning: you need to install libstdc++ 5 libraries" | |
| 167 echo -n "Do it now? " | |
| 168 read R | |
| 169 case $R in | |
| 170 y*) apt-get install libstdc++5 ;; | |
| 171 *) echo "If you change your mind, use the command" | |
| 172 echo " apt-get install libstdc++5" ;; | |
| 173 esac | |
| 174 fi | |
| 162 else | 175 else |
| 163 echo "Sorry, no codecs for your arch '$dpkgarch'. Sorry dude :(" | 176 echo "Sorry, no codecs for your arch '$dpkgarch'. Sorry dude :(" |
| 164 exit 1 | 177 exit 1 |
| 165 fi | 178 fi |
| 166 ;; | 179 ;; |
