annotate src/libvorbis-1.3.3/missing @ 169:223a55898ab9 tip default

Add null config files
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 02 Mar 2020 14:03:47 +0000
parents 98c1576536ae
children
rev   line source
cannam@86 1 #! /bin/sh
cannam@86 2 # Common stub for a few missing GNU programs while installing.
cannam@86 3
cannam@86 4 scriptversion=2005-06-08.21
cannam@86 5
cannam@86 6 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
cannam@86 7 # Free Software Foundation, Inc.
cannam@86 8 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
cannam@86 9
cannam@86 10 # This program is free software; you can redistribute it and/or modify
cannam@86 11 # it under the terms of the GNU General Public License as published by
cannam@86 12 # the Free Software Foundation; either version 2, or (at your option)
cannam@86 13 # any later version.
cannam@86 14
cannam@86 15 # This program is distributed in the hope that it will be useful,
cannam@86 16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
cannam@86 17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cannam@86 18 # GNU General Public License for more details.
cannam@86 19
cannam@86 20 # You should have received a copy of the GNU General Public License
cannam@86 21 # along with this program; if not, write to the Free Software
cannam@86 22 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
cannam@86 23 # 02110-1301, USA.
cannam@86 24
cannam@86 25 # As a special exception to the GNU General Public License, if you
cannam@86 26 # distribute this file as part of a program that contains a
cannam@86 27 # configuration script generated by Autoconf, you may include it under
cannam@86 28 # the same distribution terms that you use for the rest of that program.
cannam@86 29
cannam@86 30 if test $# -eq 0; then
cannam@86 31 echo 1>&2 "Try \`$0 --help' for more information"
cannam@86 32 exit 1
cannam@86 33 fi
cannam@86 34
cannam@86 35 run=:
cannam@86 36
cannam@86 37 # In the cases where this matters, `missing' is being run in the
cannam@86 38 # srcdir already.
cannam@86 39 if test -f configure.ac; then
cannam@86 40 configure_ac=configure.ac
cannam@86 41 else
cannam@86 42 configure_ac=configure.in
cannam@86 43 fi
cannam@86 44
cannam@86 45 msg="missing on your system"
cannam@86 46
cannam@86 47 case "$1" in
cannam@86 48 --run)
cannam@86 49 # Try to run requested program, and just exit if it succeeds.
cannam@86 50 run=
cannam@86 51 shift
cannam@86 52 "$@" && exit 0
cannam@86 53 # Exit code 63 means version mismatch. This often happens
cannam@86 54 # when the user try to use an ancient version of a tool on
cannam@86 55 # a file that requires a minimum version. In this case we
cannam@86 56 # we should proceed has if the program had been absent, or
cannam@86 57 # if --run hadn't been passed.
cannam@86 58 if test $? = 63; then
cannam@86 59 run=:
cannam@86 60 msg="probably too old"
cannam@86 61 fi
cannam@86 62 ;;
cannam@86 63
cannam@86 64 -h|--h|--he|--hel|--help)
cannam@86 65 echo "\
cannam@86 66 $0 [OPTION]... PROGRAM [ARGUMENT]...
cannam@86 67
cannam@86 68 Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
cannam@86 69 error status if there is no known handling for PROGRAM.
cannam@86 70
cannam@86 71 Options:
cannam@86 72 -h, --help display this help and exit
cannam@86 73 -v, --version output version information and exit
cannam@86 74 --run try to run the given command, and emulate it if it fails
cannam@86 75
cannam@86 76 Supported PROGRAM values:
cannam@86 77 aclocal touch file \`aclocal.m4'
cannam@86 78 autoconf touch file \`configure'
cannam@86 79 autoheader touch file \`config.h.in'
cannam@86 80 automake touch all \`Makefile.in' files
cannam@86 81 bison create \`y.tab.[ch]', if possible, from existing .[ch]
cannam@86 82 flex create \`lex.yy.c', if possible, from existing .c
cannam@86 83 help2man touch the output file
cannam@86 84 lex create \`lex.yy.c', if possible, from existing .c
cannam@86 85 makeinfo touch the output file
cannam@86 86 tar try tar, gnutar, gtar, then tar without non-portable flags
cannam@86 87 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
cannam@86 88
cannam@86 89 Send bug reports to <bug-automake@gnu.org>."
cannam@86 90 exit $?
cannam@86 91 ;;
cannam@86 92
cannam@86 93 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
cannam@86 94 echo "missing $scriptversion (GNU Automake)"
cannam@86 95 exit $?
cannam@86 96 ;;
cannam@86 97
cannam@86 98 -*)
cannam@86 99 echo 1>&2 "$0: Unknown \`$1' option"
cannam@86 100 echo 1>&2 "Try \`$0 --help' for more information"
cannam@86 101 exit 1
cannam@86 102 ;;
cannam@86 103
cannam@86 104 esac
cannam@86 105
cannam@86 106 # Now exit if we have it, but it failed. Also exit now if we
cannam@86 107 # don't have it and --version was passed (most likely to detect
cannam@86 108 # the program).
cannam@86 109 case "$1" in
cannam@86 110 lex|yacc)
cannam@86 111 # Not GNU programs, they don't have --version.
cannam@86 112 ;;
cannam@86 113
cannam@86 114 tar)
cannam@86 115 if test -n "$run"; then
cannam@86 116 echo 1>&2 "ERROR: \`tar' requires --run"
cannam@86 117 exit 1
cannam@86 118 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
cannam@86 119 exit 1
cannam@86 120 fi
cannam@86 121 ;;
cannam@86 122
cannam@86 123 *)
cannam@86 124 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
cannam@86 125 # We have it, but it failed.
cannam@86 126 exit 1
cannam@86 127 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
cannam@86 128 # Could not run --version or --help. This is probably someone
cannam@86 129 # running `$TOOL --version' or `$TOOL --help' to check whether
cannam@86 130 # $TOOL exists and not knowing $TOOL uses missing.
cannam@86 131 exit 1
cannam@86 132 fi
cannam@86 133 ;;
cannam@86 134 esac
cannam@86 135
cannam@86 136 # If it does not exist, or fails to run (possibly an outdated version),
cannam@86 137 # try to emulate it.
cannam@86 138 case "$1" in
cannam@86 139 aclocal*)
cannam@86 140 echo 1>&2 "\
cannam@86 141 WARNING: \`$1' is $msg. You should only need it if
cannam@86 142 you modified \`acinclude.m4' or \`${configure_ac}'. You might want
cannam@86 143 to install the \`Automake' and \`Perl' packages. Grab them from
cannam@86 144 any GNU archive site."
cannam@86 145 touch aclocal.m4
cannam@86 146 ;;
cannam@86 147
cannam@86 148 autoconf)
cannam@86 149 echo 1>&2 "\
cannam@86 150 WARNING: \`$1' is $msg. You should only need it if
cannam@86 151 you modified \`${configure_ac}'. You might want to install the
cannam@86 152 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
cannam@86 153 archive site."
cannam@86 154 touch configure
cannam@86 155 ;;
cannam@86 156
cannam@86 157 autoheader)
cannam@86 158 echo 1>&2 "\
cannam@86 159 WARNING: \`$1' is $msg. You should only need it if
cannam@86 160 you modified \`acconfig.h' or \`${configure_ac}'. You might want
cannam@86 161 to install the \`Autoconf' and \`GNU m4' packages. Grab them
cannam@86 162 from any GNU archive site."
cannam@86 163 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
cannam@86 164 test -z "$files" && files="config.h"
cannam@86 165 touch_files=
cannam@86 166 for f in $files; do
cannam@86 167 case "$f" in
cannam@86 168 *:*) touch_files="$touch_files "`echo "$f" |
cannam@86 169 sed -e 's/^[^:]*://' -e 's/:.*//'`;;
cannam@86 170 *) touch_files="$touch_files $f.in";;
cannam@86 171 esac
cannam@86 172 done
cannam@86 173 touch $touch_files
cannam@86 174 ;;
cannam@86 175
cannam@86 176 automake*)
cannam@86 177 echo 1>&2 "\
cannam@86 178 WARNING: \`$1' is $msg. You should only need it if
cannam@86 179 you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
cannam@86 180 You might want to install the \`Automake' and \`Perl' packages.
cannam@86 181 Grab them from any GNU archive site."
cannam@86 182 find . -type f -name Makefile.am -print |
cannam@86 183 sed 's/\.am$/.in/' |
cannam@86 184 while read f; do touch "$f"; done
cannam@86 185 ;;
cannam@86 186
cannam@86 187 autom4te)
cannam@86 188 echo 1>&2 "\
cannam@86 189 WARNING: \`$1' is needed, but is $msg.
cannam@86 190 You might have modified some files without having the
cannam@86 191 proper tools for further handling them.
cannam@86 192 You can get \`$1' as part of \`Autoconf' from any GNU
cannam@86 193 archive site."
cannam@86 194
cannam@86 195 file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
cannam@86 196 test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
cannam@86 197 if test -f "$file"; then
cannam@86 198 touch $file
cannam@86 199 else
cannam@86 200 test -z "$file" || exec >$file
cannam@86 201 echo "#! /bin/sh"
cannam@86 202 echo "# Created by GNU Automake missing as a replacement of"
cannam@86 203 echo "# $ $@"
cannam@86 204 echo "exit 0"
cannam@86 205 chmod +x $file
cannam@86 206 exit 1
cannam@86 207 fi
cannam@86 208 ;;
cannam@86 209
cannam@86 210 bison|yacc)
cannam@86 211 echo 1>&2 "\
cannam@86 212 WARNING: \`$1' $msg. You should only need it if
cannam@86 213 you modified a \`.y' file. You may need the \`Bison' package
cannam@86 214 in order for those modifications to take effect. You can get
cannam@86 215 \`Bison' from any GNU archive site."
cannam@86 216 rm -f y.tab.c y.tab.h
cannam@86 217 if [ $# -ne 1 ]; then
cannam@86 218 eval LASTARG="\${$#}"
cannam@86 219 case "$LASTARG" in
cannam@86 220 *.y)
cannam@86 221 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
cannam@86 222 if [ -f "$SRCFILE" ]; then
cannam@86 223 cp "$SRCFILE" y.tab.c
cannam@86 224 fi
cannam@86 225 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
cannam@86 226 if [ -f "$SRCFILE" ]; then
cannam@86 227 cp "$SRCFILE" y.tab.h
cannam@86 228 fi
cannam@86 229 ;;
cannam@86 230 esac
cannam@86 231 fi
cannam@86 232 if [ ! -f y.tab.h ]; then
cannam@86 233 echo >y.tab.h
cannam@86 234 fi
cannam@86 235 if [ ! -f y.tab.c ]; then
cannam@86 236 echo 'main() { return 0; }' >y.tab.c
cannam@86 237 fi
cannam@86 238 ;;
cannam@86 239
cannam@86 240 lex|flex)
cannam@86 241 echo 1>&2 "\
cannam@86 242 WARNING: \`$1' is $msg. You should only need it if
cannam@86 243 you modified a \`.l' file. You may need the \`Flex' package
cannam@86 244 in order for those modifications to take effect. You can get
cannam@86 245 \`Flex' from any GNU archive site."
cannam@86 246 rm -f lex.yy.c
cannam@86 247 if [ $# -ne 1 ]; then
cannam@86 248 eval LASTARG="\${$#}"
cannam@86 249 case "$LASTARG" in
cannam@86 250 *.l)
cannam@86 251 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
cannam@86 252 if [ -f "$SRCFILE" ]; then
cannam@86 253 cp "$SRCFILE" lex.yy.c
cannam@86 254 fi
cannam@86 255 ;;
cannam@86 256 esac
cannam@86 257 fi
cannam@86 258 if [ ! -f lex.yy.c ]; then
cannam@86 259 echo 'main() { return 0; }' >lex.yy.c
cannam@86 260 fi
cannam@86 261 ;;
cannam@86 262
cannam@86 263 help2man)
cannam@86 264 echo 1>&2 "\
cannam@86 265 WARNING: \`$1' is $msg. You should only need it if
cannam@86 266 you modified a dependency of a manual page. You may need the
cannam@86 267 \`Help2man' package in order for those modifications to take
cannam@86 268 effect. You can get \`Help2man' from any GNU archive site."
cannam@86 269
cannam@86 270 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
cannam@86 271 if test -z "$file"; then
cannam@86 272 file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
cannam@86 273 fi
cannam@86 274 if [ -f "$file" ]; then
cannam@86 275 touch $file
cannam@86 276 else
cannam@86 277 test -z "$file" || exec >$file
cannam@86 278 echo ".ab help2man is required to generate this page"
cannam@86 279 exit 1
cannam@86 280 fi
cannam@86 281 ;;
cannam@86 282
cannam@86 283 makeinfo)
cannam@86 284 echo 1>&2 "\
cannam@86 285 WARNING: \`$1' is $msg. You should only need it if
cannam@86 286 you modified a \`.texi' or \`.texinfo' file, or any other file
cannam@86 287 indirectly affecting the aspect of the manual. The spurious
cannam@86 288 call might also be the consequence of using a buggy \`make' (AIX,
cannam@86 289 DU, IRIX). You might want to install the \`Texinfo' package or
cannam@86 290 the \`GNU make' package. Grab either from any GNU archive site."
cannam@86 291 # The file to touch is that specified with -o ...
cannam@86 292 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
cannam@86 293 if test -z "$file"; then
cannam@86 294 # ... or it is the one specified with @setfilename ...
cannam@86 295 infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
cannam@86 296 file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
cannam@86 297 # ... or it is derived from the source name (dir/f.texi becomes f.info)
cannam@86 298 test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
cannam@86 299 fi
cannam@86 300 # If the file does not exist, the user really needs makeinfo;
cannam@86 301 # let's fail without touching anything.
cannam@86 302 test -f $file || exit 1
cannam@86 303 touch $file
cannam@86 304 ;;
cannam@86 305
cannam@86 306 tar)
cannam@86 307 shift
cannam@86 308
cannam@86 309 # We have already tried tar in the generic part.
cannam@86 310 # Look for gnutar/gtar before invocation to avoid ugly error
cannam@86 311 # messages.
cannam@86 312 if (gnutar --version > /dev/null 2>&1); then
cannam@86 313 gnutar "$@" && exit 0
cannam@86 314 fi
cannam@86 315 if (gtar --version > /dev/null 2>&1); then
cannam@86 316 gtar "$@" && exit 0
cannam@86 317 fi
cannam@86 318 firstarg="$1"
cannam@86 319 if shift; then
cannam@86 320 case "$firstarg" in
cannam@86 321 *o*)
cannam@86 322 firstarg=`echo "$firstarg" | sed s/o//`
cannam@86 323 tar "$firstarg" "$@" && exit 0
cannam@86 324 ;;
cannam@86 325 esac
cannam@86 326 case "$firstarg" in
cannam@86 327 *h*)
cannam@86 328 firstarg=`echo "$firstarg" | sed s/h//`
cannam@86 329 tar "$firstarg" "$@" && exit 0
cannam@86 330 ;;
cannam@86 331 esac
cannam@86 332 fi
cannam@86 333
cannam@86 334 echo 1>&2 "\
cannam@86 335 WARNING: I can't seem to be able to run \`tar' with the given arguments.
cannam@86 336 You may want to install GNU tar or Free paxutils, or check the
cannam@86 337 command line arguments."
cannam@86 338 exit 1
cannam@86 339 ;;
cannam@86 340
cannam@86 341 *)
cannam@86 342 echo 1>&2 "\
cannam@86 343 WARNING: \`$1' is needed, and is $msg.
cannam@86 344 You might have modified some files without having the
cannam@86 345 proper tools for further handling them. Check the \`README' file,
cannam@86 346 it often tells you about the needed prerequisites for installing
cannam@86 347 this package. You may also peek at any GNU archive site, in case
cannam@86 348 some other package would contain this missing \`$1' program."
cannam@86 349 exit 1
cannam@86 350 ;;
cannam@86 351 esac
cannam@86 352
cannam@86 353 exit 0
cannam@86 354
cannam@86 355 # Local variables:
cannam@86 356 # eval: (add-hook 'write-file-hooks 'time-stamp)
cannam@86 357 # time-stamp-start: "scriptversion="
cannam@86 358 # time-stamp-format: "%:y-%02m-%02d.%02H"
cannam@86 359 # time-stamp-end: "$"
cannam@86 360 # End: