5
+ ��膩��� 1 #! /bin/sh
+ ��膩��� 2 # Common stub for a few missing GNU programs while installing.
+ ��膩��� 3 # Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+ ��膩��� 4 # Franc,ois Pinard <pinard@iro.umontreal.ca>, 1996.
+ ��膩��� 5
+ ��膩��� 6 # This program is free software; you can redistribute it and/or modify
+ ��膩��� 7 # it under the terms of the GNU General Public License as published by
+ ��膩��� 8 # the Free Software Foundation; either version 2, or (at your option)
+ ��膩��� 9 # any later version.
+ ��膩��� 10
+ ��膩��� 11 # This program is distributed in the hope that it will be useful,
+ ��膩��� 12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ��膩��� 13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ ��膩��� 14 # GNU General Public License for more details.
+ ��膩��� 15
+ ��膩��� 16 # You should have received a copy of the GNU General Public License
+ ��膩��� 17 # along with this program; if not, write to the Free Software
+ ��膩��� 18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ ��膩��� 19 # 02111-1307, USA.
+ ��膩��� 20
+ ��膩��� 21 if test $# -eq 0; then
+ ��膩��� 22 echo 1>&2 "Try \`$0 --help' for more information"
+ ��膩��� 23 exit 1
+ ��膩��� 24 fi
+ ��膩��� 25
+ ��膩��� 26 case "$1" in
+ ��膩��� 27
+ ��膩��� 28 -h|--h|--he|--hel|--help)
+ ��膩��� 29 echo "\
+ ��膩��� 30 $0 [OPTION]... PROGRAM [ARGUMENT]...
+ ��膩��� 31
+ ��膩��� 32 Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
+ ��膩��� 33 error status if there is no known handling for PROGRAM.
+ ��膩��� 34
+ ��膩��� 35 Options:
+ ��膩��� 36 -h, --help display this help and exit
+ ��膩��� 37 -v, --version output version information and exit
+ ��膩��� 38
+ ��膩��� 39 Supported PROGRAM values:
+ ��膩��� 40 aclocal touch file \`aclocal.m4'
+ ��膩��� 41 autoconf touch file \`configure'
+ ��膩��� 42 autoheader touch file \`config.h.in'
+ ��膩��� 43 automake touch all \`Makefile.in' files
+ ��膩��� 44 bison create \`y.tab.[ch]', if possible, from existing .[ch]
+ ��膩��� 45 flex create \`lex.yy.c', if possible, from existing .c
+ ��膩��� 46 lex create \`lex.yy.c', if possible, from existing .c
+ ��膩��� 47 makeinfo touch the output file
+ ��膩��� 48 yacc create \`y.tab.[ch]', if possible, from existing .[ch]"
+ ��膩��� 49 ;;
+ ��膩��� 50
+ ��膩��� 51 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
+ ��膩��� 52 echo "missing - GNU libit 0.0"
+ ��膩��� 53 ;;
+ ��膩��� 54
+ ��膩��� 55 -*)
+ ��膩��� 56 echo 1>&2 "$0: Unknown \`$1' option"
+ ��膩��� 57 echo 1>&2 "Try \`$0 --help' for more information"
+ ��膩��� 58 exit 1
+ ��膩��� 59 ;;
+ ��膩��� 60
+ ��膩��� 61 aclocal)
+ ��膩��� 62 echo 1>&2 "\
+ ��膩��� 63 WARNING: \`$1' is missing on your system. You should only need it if
+ ��膩��� 64 you modified \`acinclude.m4' or \`configure.in'. You might want
+ ��膩��� 65 to install the \`Automake' and \`Perl' packages. Grab them from
+ ��膩��� 66 any GNU archive site."
+ ��膩��� 67 touch aclocal.m4
+ ��膩��� 68 ;;
+ ��膩��� 69
+ ��膩��� 70 autoconf)
+ ��膩��� 71 echo 1>&2 "\
+ ��膩��� 72 WARNING: \`$1' is missing on your system. You should only need it if
+ ��膩��� 73 you modified \`configure.in'. You might want to install the
+ ��膩��� 74 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
+ ��膩��� 75 archive site."
+ ��膩��� 76 touch configure
+ ��膩��� 77 ;;
+ ��膩��� 78
+ ��膩��� 79 autoheader)
+ ��膩��� 80 echo 1>&2 "\
+ ��膩��� 81 WARNING: \`$1' is missing on your system. You should only need it if
+ ��膩��� 82 you modified \`acconfig.h' or \`configure.in'. You might want
+ ��膩��� 83 to install the \`Autoconf' and \`GNU m4' packages. Grab them
+ ��膩��� 84 from any GNU archive site."
+ ��膩��� 85 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER([^):]*:\([^)]*\)).*/\1/p' configure.in`
+ ��膩��� 86 if test -z "$files"; then
+ ��膩��� 87 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^):]*\)).*/\1/p' configure.in`
+ ��膩��� 88 test -z "$files" || files="$files.in"
+ ��膩��� 89 else
+ ��膩��� 90 files=`echo "$files" | sed -e 's/:/ /g'`
+ ��膩��� 91 fi
+ ��膩��� 92 test -z "$files" && files="config.h.in"
+ ��膩��� 93 touch $files
+ ��膩��� 94 ;;
+ ��膩��� 95
+ ��膩��� 96 automake)
+ ��膩��� 97 echo 1>&2 "\
+ ��膩��� 98 WARNING: \`$1' is missing on your system. You should only need it if
+ ��膩��� 99 you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'.
+ ��膩��� 100 You might want to install the \`Automake' and \`Perl' packages.
+ ��膩��� 101 Grab them from any GNU archive site."
+ ��膩��� 102 find . -type f -name Makefile.am -print \
+ ��膩��� 103 | sed 's/^\(.*\).am$/touch \1.in/' \
+ ��膩��� 104 | sh
+ ��膩��� 105 ;;
+ ��膩��� 106
+ ��膩��� 107 bison|yacc)
+ ��膩��� 108 echo 1>&2 "\
+ ��膩��� 109 WARNING: \`$1' is missing on your system. You should only need it if
+ ��膩��� 110 you modified a \`.y' file. You may need the \`Bison' package
+ ��膩��� 111 in order for those modifications to take effect. You can get
+ ��膩��� 112 \`Bison' from any GNU archive site."
+ ��膩��� 113 rm -f y.tab.c y.tab.h
+ ��膩��� 114 if [ $# -ne 1 ]; then
+ ��膩��� 115 eval LASTARG="\${$#}"
+ ��膩��� 116 case "$LASTARG" in
+ ��膩��� 117 *.y)
+ ��膩��� 118 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
+ ��膩��� 119 if [ -f "$SRCFILE" ]; then
+ ��膩��� 120 cp "$SRCFILE" y.tab.c
+ ��膩��� 121 fi
+ ��膩��� 122 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
+ ��膩��� 123 if [ -f "$SRCFILE" ]; then
+ ��膩��� 124 cp "$SRCFILE" y.tab.h
+ ��膩��� 125 fi
+ ��膩��� 126 ;;
+ ��膩��� 127 esac
+ ��膩��� 128 fi
+ ��膩��� 129 if [ ! -f y.tab.h ]; then
+ ��膩��� 130 echo >y.tab.h
+ ��膩��� 131 fi
+ ��膩��� 132 if [ ! -f y.tab.c ]; then
+ ��膩��� 133 echo 'main() { return 0; }' >y.tab.c
+ ��膩��� 134 fi
+ ��膩��� 135 ;;
+ ��膩��� 136
+ ��膩��� 137 lex|flex)
+ ��膩��� 138 echo 1>&2 "\
+ ��膩��� 139 WARNING: \`$1' is missing on your system. You should only need it if
+ ��膩��� 140 you modified a \`.l' file. You may need the \`Flex' package
+ ��膩��� 141 in order for those modifications to take effect. You can get
+ ��膩��� 142 \`Flex' from any GNU archive site."
+ ��膩��� 143 rm -f lex.yy.c
+ ��膩��� 144 if [ $# -ne 1 ]; then
+ ��膩��� 145 eval LASTARG="\${$#}"
+ ��膩��� 146 case "$LASTARG" in
+ ��膩��� 147 *.l)
+ ��膩��� 148 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
+ ��膩��� 149 if [ -f "$SRCFILE" ]; then
+ ��膩��� 150 cp "$SRCFILE" lex.yy.c
+ ��膩��� 151 fi
+ ��膩��� 152 ;;
+ ��膩��� 153 esac
+ ��膩��� 154 fi
+ ��膩��� 155 if [ ! -f lex.yy.c ]; then
+ ��膩��� 156 echo 'main() { return 0; }' >lex.yy.c
+ ��膩��� 157 fi
+ ��膩��� 158 ;;
+ ��膩��� 159
+ ��膩��� 160 makeinfo)
+ ��膩��� 161 echo 1>&2 "\
+ ��膩��� 162 WARNING: \`$1' is missing on your system. You should only need it if
+ ��膩��� 163 you modified a \`.texi' or \`.texinfo' file, or any other file
+ ��膩��� 164 indirectly affecting the aspect of the manual. The spurious
+ ��膩��� 165 call might also be the consequence of using a buggy \`make' (AIX,
+ ��膩��� 166 DU, IRIX). You might want to install the \`Texinfo' package or
+ ��膩��� 167 the \`GNU make' package. Grab either from any GNU archive site."
+ ��膩��� 168 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
+ ��膩��� 169 if test -z "$file"; then
+ ��膩��� 170 file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
+ ��膩��� 171 file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
+ ��膩��� 172 fi
+ ��膩��� 173 touch $file
+ ��膩��� 174 ;;
+ ��膩��� 175
+ ��膩��� 176 *)
+ ��膩��� 177 echo 1>&2 "\
+ ��膩��� 178 WARNING: \`$1' is needed, and you do not seem to have it handy on your
+ ��膩��� 179 system. You might have modified some files without having the
+ ��膩��� 180 proper tools for further handling them. Check the \`README' file,
+ ��膩��� 181 it often tells you about the needed prerequirements for installing
+ ��膩��� 182 this package. You may also peek at any GNU archive site, in case
+ ��膩��� 183 some other package would contain this missing \`$1' program."
+ ��膩��� 184 exit 1
+ ��膩��� 185 ;;
+ ��膩��� 186 esac
+ ��膩��� 187
+ ��膩��� 188 exit 0