Bruno,As mentioned in <http://article.gmane.org/gmane.comp.lib.gnulib.bugs/15446>, I would like to request a new module execname which would export 2 functions:
char *get_executable_name (void); int find_executable (const char * program_name);you already have all the necessary code in gnulib/lib/progreloc.c (apparently lifted with changes from clisp/src/execname.c), so all you need to do is extract the module and avoid the dependency creep.
Thanks. Sam.