On Thu, 8 Nov 2012, Allin Cottrell wrote:
 One possibility would be an "enable" switch:
 --enable-xdg-utils  Use xdg-utils for installing XDG files
 which could either default to "no" or perhaps to "auto", 
 based on whether or not xdg-desktop-menu is found. In the 
 latter case a packager whose machine has xdg-utils installed 
 would have to do --disable-xdg-utils. 
I'm willing to entertain other ideas, but for the moment I've 
put the above into CVS, with a default of auto. So:
* If you're happy to have the xdg-utils install the gretl 
desktop files, you don't have to do anything.
* If you don't have the xdg-utils, gretl will default to 
straight installation via the shell, based on the chosen 
installation prefix; this will respect DESTDIR.
* If you have xdg-utils but you don't want them used, e.g. 
because you're packaging into a DESTDIR, use the flag 
--disable-xdg-utils with configure; then a standard shell-type 
install will be used.
* Finally, if you don't want the XDG files installed at all,
you can use the flag --disable-xdg.
Allin Cottrell