On 6 February 2015 at 10:03, Richard W.M. Jones <rjones(a)redhat.com> wrote:
[...]
Linux doesn't have getprogname. One way around this is to add
getprogname to the list of functions in configure.ac AC_CHECK_FUNCS.
That will cause a macro to be defined which you can use like this:
#if HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME == 1
# define program_name program_invocation_short_name
#elif HAVE_GETPROGNAME
# define program_name getprogname()
#else
# define program_name "libguestfs"
#endif
Unfortunately that still doesn't help the issue with gnulib, since it
expects char *program_name to be set on non-Linux platforms.
--
M.