~bzr-explorers/gnuhello/test

« back to all changes in this revision

Viewing changes to build-aux/missing

  • Committer: karl
  • Date: 2008-11-27 19:55:01 UTC
  • Revision ID: vcs-imports@canonical.com-20081127195501-fmvbwg996p87jxg8
url instead of physical FSF address

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Common stub for a few missing GNU programs while installing.
3
3
 
4
 
scriptversion=2006-05-10.23
 
4
scriptversion=2008-11-24.07
5
5
 
6
 
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
7
 
#   Free Software Foundation, Inc.
 
6
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
 
7
# 2008  Free Software Foundation, Inc.
8
8
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
9
9
 
10
10
# This program is free software; you can redistribute it and/or modify
87
87
  tar          try tar, gnutar, gtar, then tar without non-portable flags
88
88
  yacc         create \`y.tab.[ch]', if possible, from existing .[ch]
89
89
 
 
90
Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
 
91
\`g' are ignored when checking the name.
 
92
 
90
93
Send bug reports to <bug-automake@gnu.org>."
91
94
    exit $?
92
95
    ;;
104
107
 
105
108
esac
106
109
 
 
110
# normalize program name to check for.
 
111
program=`echo "$1" | sed 's/^gnu-//; t; s/^gnu//; t; s/^g//; t'`
 
112
 
107
113
# Now exit if we have it, but it failed.  Also exit now if we
108
114
# don't have it and --version was passed (most likely to detect
109
 
# the program).
 
115
# the program).  This is about non-GNU programs, so use $1 not
 
116
# $program.
110
117
case $1 in
111
 
  lex|yacc)
 
118
  lex*|yacc*)
112
119
    # Not GNU programs, they don't have --version.
113
120
    ;;
114
121
 
115
 
  tar)
 
122
  tar*)
116
123
    if test -n "$run"; then
117
124
       echo 1>&2 "ERROR: \`tar' requires --run"
118
125
       exit 1
136
143
 
137
144
# If it does not exist, or fails to run (possibly an outdated version),
138
145
# try to emulate it.
139
 
case $1 in
 
146
case $program in
140
147
  aclocal*)
141
148
    echo 1>&2 "\
142
149
WARNING: \`$1' is $msg.  You should only need it if
146
153
    touch aclocal.m4
147
154
    ;;
148
155
 
149
 
  autoconf)
 
156
  autoconf*)
150
157
    echo 1>&2 "\
151
158
WARNING: \`$1' is $msg.  You should only need it if
152
159
         you modified \`${configure_ac}'.  You might want to install the
155
162
    touch configure
156
163
    ;;
157
164
 
158
 
  autoheader)
 
165
  autoheader*)
159
166
    echo 1>&2 "\
160
167
WARNING: \`$1' is $msg.  You should only need it if
161
168
         you modified \`acconfig.h' or \`${configure_ac}'.  You might want
185
192
           while read f; do touch "$f"; done
186
193
    ;;
187
194
 
188
 
  autom4te)
 
195
  autom4te*)
189
196
    echo 1>&2 "\
190
197
WARNING: \`$1' is needed, but is $msg.
191
198
         You might have modified some files without having the
208
215
    fi
209
216
    ;;
210
217
 
211
 
  bison|yacc)
 
218
  bison*|yacc*)
212
219
    echo 1>&2 "\
213
220
WARNING: \`$1' $msg.  You should only need it if
214
221
         you modified a \`.y' file.  You may need the \`Bison' package
238
245
    fi
239
246
    ;;
240
247
 
241
 
  lex|flex)
 
248
  lex*|flex*)
242
249
    echo 1>&2 "\
243
250
WARNING: \`$1' is $msg.  You should only need it if
244
251
         you modified a \`.l' file.  You may need the \`Flex' package
261
268
    fi
262
269
    ;;
263
270
 
264
 
  help2man)
 
271
  help2man*)
265
272
    echo 1>&2 "\
266
273
WARNING: \`$1' is $msg.  You should only need it if
267
274
         you modified a dependency of a manual page.  You may need the
279
286
    fi
280
287
    ;;
281
288
 
282
 
  makeinfo)
 
289
  makeinfo*)
283
290
    echo 1>&2 "\
284
291
WARNING: \`$1' is $msg.  You should only need it if
285
292
         you modified a \`.texi' or \`.texinfo' file, or any other file
308
315
    touch $file
309
316
    ;;
310
317
 
311
 
  tar)
 
318
  tar*)
312
319
    shift
313
320
 
314
321
    # We have already tried tar in the generic part.