GNOME Bugzilla – Bug 344029
Mis-handling of libexecdir
Last modified: 2006-11-16 13:16:07 UTC
autoconf provides a standard --libexecdir flag in ./configure. Why does bug-buddy then implement its own determination of GNOMELIBEXECDIR that ignores the standard one has has no override? Darwin just has lib, not libexec, so if test "x$prefix" = "xNONE"; then GNOMELIBEXECDIR=$ac_default_prefix/libexec else GNOMELIBEXECDIR=$prefix/libexec fi will never be correct.
Created attachment 66837 [details] [review] Use autoconf libexecdir handler
While we're on the subject, just what how does bug-buddy use that directory? Is if looking for component files that are part of bb itself, or files from some other package?
+AC_DEFINE_UNQUOTED(GNOMELIBEXECDIR, "$libexecdir", [Libexec directory]) This is still wrong, you shouldn't AC_DEFINE directories, but add them as -DGNOMELIBEXECDIR=\""$(libexecdir)"\" in Makefile.am to INCLUDES or _CPPFLAGS. That way expansion of ${prefix} works correctly.
Fixed it now in CVS.