filename | missing |
changeset | 179:18dacd91aa73 |
author | nkeynes |
date | Tue Jan 23 11:19:32 2007 +0000 (16 years ago) |
permissions | -rw-r--r-- |
last change | Refactor render buffer read/write to pvr2mem.c Implement 4-bit indexed textures (tentatively) Fix RGB24 support |
file | annotate | diff | log | raw |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +00001.2 +++ b/missing Tue Jan 23 11:19:32 2007 +00001.3 @@ -0,0 +1,336 @@1.4 +#! /bin/sh1.5 +# Common stub for a few missing GNU programs while installing.1.6 +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003 Free Software Foundation, Inc.1.7 +# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.1.8 +1.9 +# This program is free software; you can redistribute it and/or modify1.10 +# it under the terms of the GNU General Public License as published by1.11 +# the Free Software Foundation; either version 2, or (at your option)1.12 +# any later version.1.13 +1.14 +# This program is distributed in the hope that it will be useful,1.15 +# but WITHOUT ANY WARRANTY; without even the implied warranty of1.16 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the1.17 +# GNU General Public License for more details.1.18 +1.19 +# You should have received a copy of the GNU General Public License1.20 +# along with this program; if not, write to the Free Software1.21 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA1.22 +# 02111-1307, USA.1.23 +1.24 +# As a special exception to the GNU General Public License, if you1.25 +# distribute this file as part of a program that contains a1.26 +# configuration script generated by Autoconf, you may include it under1.27 +# the same distribution terms that you use for the rest of that program.1.28 +1.29 +if test $# -eq 0; then1.30 + echo 1>&2 "Try \`$0 --help' for more information"1.31 + exit 11.32 +fi1.33 +1.34 +run=:1.35 +1.36 +# In the cases where this matters, `missing' is being run in the1.37 +# srcdir already.1.38 +if test -f configure.ac; then1.39 + configure_ac=configure.ac1.40 +else1.41 + configure_ac=configure.in1.42 +fi1.43 +1.44 +case "$1" in1.45 +--run)1.46 + # Try to run requested program, and just exit if it succeeds.1.47 + run=1.48 + shift1.49 + "$@" && exit 01.50 + ;;1.51 +esac1.52 +1.53 +# If it does not exist, or fails to run (possibly an outdated version),1.54 +# try to emulate it.1.55 +case "$1" in1.56 +1.57 + -h|--h|--he|--hel|--help)1.58 + echo "\1.59 +$0 [OPTION]... PROGRAM [ARGUMENT]...1.60 +1.61 +Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an1.62 +error status if there is no known handling for PROGRAM.1.63 +1.64 +Options:1.65 + -h, --help display this help and exit1.66 + -v, --version output version information and exit1.67 + --run try to run the given command, and emulate it if it fails1.68 +1.69 +Supported PROGRAM values:1.70 + aclocal touch file \`aclocal.m4'1.71 + autoconf touch file \`configure'1.72 + autoheader touch file \`config.h.in'1.73 + automake touch all \`Makefile.in' files1.74 + bison create \`y.tab.[ch]', if possible, from existing .[ch]1.75 + flex create \`lex.yy.c', if possible, from existing .c1.76 + help2man touch the output file1.77 + lex create \`lex.yy.c', if possible, from existing .c1.78 + makeinfo touch the output file1.79 + tar try tar, gnutar, gtar, then tar without non-portable flags1.80 + yacc create \`y.tab.[ch]', if possible, from existing .[ch]"1.81 + ;;1.82 +1.83 + -v|--v|--ve|--ver|--vers|--versi|--versio|--version)1.84 + echo "missing 0.4 - GNU automake"1.85 + ;;1.86 +1.87 + -*)1.88 + echo 1>&2 "$0: Unknown \`$1' option"1.89 + echo 1>&2 "Try \`$0 --help' for more information"1.90 + exit 11.91 + ;;1.92 +1.93 + aclocal*)1.94 + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then1.95 + # We have it, but it failed.1.96 + exit 11.97 + fi1.98 +1.99 + echo 1>&2 "\1.100 +WARNING: \`$1' is missing on your system. You should only need it if1.101 + you modified \`acinclude.m4' or \`${configure_ac}'. You might want1.102 + to install the \`Automake' and \`Perl' packages. Grab them from1.103 + any GNU archive site."1.104 + touch aclocal.m41.105 + ;;1.106 +1.107 + autoconf)1.108 + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then1.109 + # We have it, but it failed.1.110 + exit 11.111 + fi1.112 +1.113 + echo 1>&2 "\1.114 +WARNING: \`$1' is missing on your system. You should only need it if1.115 + you modified \`${configure_ac}'. You might want to install the1.116 + \`Autoconf' and \`GNU m4' packages. Grab them from any GNU1.117 + archive site."1.118 + touch configure1.119 + ;;1.120 +1.121 + autoheader)1.122 + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then1.123 + # We have it, but it failed.1.124 + exit 11.125 + fi1.126 +1.127 + echo 1>&2 "\1.128 +WARNING: \`$1' is missing on your system. You should only need it if1.129 + you modified \`acconfig.h' or \`${configure_ac}'. You might want1.130 + to install the \`Autoconf' and \`GNU m4' packages. Grab them1.131 + from any GNU archive site."1.132 + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`1.133 + test -z "$files" && files="config.h"1.134 + touch_files=1.135 + for f in $files; do1.136 + case "$f" in1.137 + *:*) touch_files="$touch_files "`echo "$f" |1.138 + sed -e 's/^[^:]*://' -e 's/:.*//'`;;1.139 + *) touch_files="$touch_files $f.in";;1.140 + esac1.141 + done1.142 + touch $touch_files1.143 + ;;1.144 +1.145 + automake*)1.146 + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then1.147 + # We have it, but it failed.1.148 + exit 11.149 + fi1.150 +1.151 + echo 1>&2 "\1.152 +WARNING: \`$1' is missing on your system. You should only need it if1.153 + you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.1.154 + You might want to install the \`Automake' and \`Perl' packages.1.155 + Grab them from any GNU archive site."1.156 + find . -type f -name Makefile.am -print |1.157 + sed 's/\.am$/.in/' |1.158 + while read f; do touch "$f"; done1.159 + ;;1.160 +1.161 + autom4te)1.162 + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then1.163 + # We have it, but it failed.1.164 + exit 11.165 + fi1.166 +1.167 + echo 1>&2 "\1.168 +WARNING: \`$1' is needed, and you do not seem to have it handy on your1.169 + system. You might have modified some files without having the1.170 + proper tools for further handling them.1.171 + You can get \`$1' as part of \`Autoconf' from any GNU1.172 + archive site."1.173 +1.174 + file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`1.175 + test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`1.176 + if test -f "$file"; then1.177 + touch $file1.178 + else1.179 + test -z "$file" || exec >$file1.180 + echo "#! /bin/sh"1.181 + echo "# Created by GNU Automake missing as a replacement of"1.182 + echo "# $ $@"1.183 + echo "exit 0"1.184 + chmod +x $file1.185 + exit 11.186 + fi1.187 + ;;1.188 +1.189 + bison|yacc)1.190 + echo 1>&2 "\1.191 +WARNING: \`$1' is missing on your system. You should only need it if1.192 + you modified a \`.y' file. You may need the \`Bison' package1.193 + in order for those modifications to take effect. You can get1.194 + \`Bison' from any GNU archive site."1.195 + rm -f y.tab.c y.tab.h1.196 + if [ $# -ne 1 ]; then1.197 + eval LASTARG="\${$#}"1.198 + case "$LASTARG" in1.199 + *.y)1.200 + SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`1.201 + if [ -f "$SRCFILE" ]; then1.202 + cp "$SRCFILE" y.tab.c1.203 + fi1.204 + SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`1.205 + if [ -f "$SRCFILE" ]; then1.206 + cp "$SRCFILE" y.tab.h1.207 + fi1.208 + ;;1.209 + esac1.210 + fi1.211 + if [ ! -f y.tab.h ]; then1.212 + echo >y.tab.h1.213 + fi1.214 + if [ ! -f y.tab.c ]; then1.215 + echo 'main() { return 0; }' >y.tab.c1.216 + fi1.217 + ;;1.218 +1.219 + lex|flex)1.220 + echo 1>&2 "\1.221 +WARNING: \`$1' is missing on your system. You should only need it if1.222 + you modified a \`.l' file. You may need the \`Flex' package1.223 + in order for those modifications to take effect. You can get1.224 + \`Flex' from any GNU archive site."1.225 + rm -f lex.yy.c1.226 + if [ $# -ne 1 ]; then1.227 + eval LASTARG="\${$#}"1.228 + case "$LASTARG" in1.229 + *.l)1.230 + SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`1.231 + if [ -f "$SRCFILE" ]; then1.232 + cp "$SRCFILE" lex.yy.c1.233 + fi1.234 + ;;1.235 + esac1.236 + fi1.237 + if [ ! -f lex.yy.c ]; then1.238 + echo 'main() { return 0; }' >lex.yy.c1.239 + fi1.240 + ;;1.241 +1.242 + help2man)1.243 + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then1.244 + # We have it, but it failed.1.245 + exit 11.246 + fi1.247 +1.248 + echo 1>&2 "\1.249 +WARNING: \`$1' is missing on your system. You should only need it if1.250 + you modified a dependency of a manual page. You may need the1.251 + \`Help2man' package in order for those modifications to take1.252 + effect. You can get \`Help2man' from any GNU archive site."1.253 +1.254 + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`1.255 + if test -z "$file"; then1.256 + file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`1.257 + fi1.258 + if [ -f "$file" ]; then1.259 + touch $file1.260 + else1.261 + test -z "$file" || exec >$file1.262 + echo ".ab help2man is required to generate this page"1.263 + exit 11.264 + fi1.265 + ;;1.266 +1.267 + makeinfo)1.268 + if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then1.269 + # We have makeinfo, but it failed.1.270 + exit 11.271 + fi1.272 +1.273 + echo 1>&2 "\1.274 +WARNING: \`$1' is missing on your system. You should only need it if1.275 + you modified a \`.texi' or \`.texinfo' file, or any other file1.276 + indirectly affecting the aspect of the manual. The spurious1.277 + call might also be the consequence of using a buggy \`make' (AIX,1.278 + DU, IRIX). You might want to install the \`Texinfo' package or1.279 + the \`GNU make' package. Grab either from any GNU archive site."1.280 + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`1.281 + if test -z "$file"; then1.282 + file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`1.283 + file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`1.284 + fi1.285 + touch $file1.286 + ;;1.287 +1.288 + tar)1.289 + shift1.290 + if test -n "$run"; then1.291 + echo 1>&2 "ERROR: \`tar' requires --run"1.292 + exit 11.293 + fi1.294 +1.295 + # We have already tried tar in the generic part.1.296 + # Look for gnutar/gtar before invocation to avoid ugly error1.297 + # messages.1.298 + if (gnutar --version > /dev/null 2>&1); then1.299 + gnutar "$@" && exit 01.300 + fi1.301 + if (gtar --version > /dev/null 2>&1); then1.302 + gtar "$@" && exit 01.303 + fi1.304 + firstarg="$1"1.305 + if shift; then1.306 + case "$firstarg" in1.307 + *o*)1.308 + firstarg=`echo "$firstarg" | sed s/o//`1.309 + tar "$firstarg" "$@" && exit 01.310 + ;;1.311 + esac1.312 + case "$firstarg" in1.313 + *h*)1.314 + firstarg=`echo "$firstarg" | sed s/h//`1.315 + tar "$firstarg" "$@" && exit 01.316 + ;;1.317 + esac1.318 + fi1.319 +1.320 + echo 1>&2 "\1.321 +WARNING: I can't seem to be able to run \`tar' with the given arguments.1.322 + You may want to install GNU tar or Free paxutils, or check the1.323 + command line arguments."1.324 + exit 11.325 + ;;1.326 +1.327 + *)1.328 + echo 1>&2 "\1.329 +WARNING: \`$1' is needed, and you do not seem to have it handy on your1.330 + system. You might have modified some files without having the1.331 + proper tools for further handling them. Check the \`README' file,1.332 + it often tells you about the needed prerequisites for installing1.333 + this package. You may also peek at any GNU archive site, in case1.334 + some other package would contain this missing \`$1' program."1.335 + exit 11.336 + ;;1.337 +esac1.338 +1.339 +exit 0
.