On May 29, 2001, Tom Tromey <[EMAIL PROTECTED]> wrote:

>>>>>> "Alexandre" == Alexandre Oliva <[EMAIL PROTECTED]> writes:
>>> I've noticed that if you try to build a texi file that has an error
>>> you get a warning from the `missing' program:

Alexandre> Presumably missing should check, when the execution of a
Alexandre> program fails, whether the program can be found in the PATH
Alexandre> or not, and only report its warning if it finds the program
Alexandre> is indeed missing.

> Right now AM_MISSING_PROG looks like this:

I was not thinking of AM_MISSING_PROG, but of the missing script
itself.

Currently, we have:

case "$1" in
--run)
  # Try to run requested program, and just exit if it succeeds.
  run=
  shift
  "$@" && exit 0

My suggestion is to add a PATH search for $1 right after this command,
and just bail out if we find it, without getting a chance to print the
warning.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

Reply via email to