[EMAIL PROTECTED] writes:

> So the current plan is to read $PATH, prepend (or append) our 
> $libexecdir to the path, and then walk the path looking for the program.  
> 
> The problem is how to do it in a portable way.

Yes, it's a bit tricky, but gnulib's findprog module does that.

See <http://savannah.gnu.org/projects/gnulib>, and grab the following files:

modules/findprog
lib/findprog.h
lib/findprog.c
m4/findprog.m4
m4/eaccess.m4


Reply via email to