[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Suggestion
From: |
Jean-Marc Bourguet |
Subject: |
Suggestion |
Date: |
Thu, 16 Sep 2010 21:38:26 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.12) Gecko/20100826 Thunderbird/3.0.7 |
Hi developpers of Global,
Would it be possible to make global programs search for gtags.conf in
the configured --sysconfdir? It would ease the use in networked
environment where global is installed for all the network.
I'd suggest searching that place after the machine specific /etc/gtags.conf.
The modification to configpath in libutil/conf.c would be easy:
else if (test("r", OLD_DEBIANCONF))
strbuf_puts(sb, OLD_DEBIANCONF);
> else if (test("r", SYSCONFCONF))
> strbuf_puts(sb, SYSCONFCONF);
> else if (test("r", OLD_SYSCONFCONF))
> strbuf_puts(sb, OLD_SYSCONFCONF);
else
return NULL;
but my knowledge of autoconf is not good enough to arrange for configure
set SYSCONFCONF and OLD_SYSCONFCONF automatically.
Adding
#define SYSCONFCONF "@sysconfdir@/gtags.conf"
#define OLD_SYSCONFCONF "@sysconfgir@/global.conf"
to conf.h, renaming it conf.h.in and adding libutil/conf.h.in in
configure.ac doesn't work if one doesn't specify --sysconfdir
(sysconfdir is replaced by ${prefix}/etc instead of having ${prefix}
expanded).
Yours,
--
Jean-Marc Bourguet
- Suggestion,
Jean-Marc Bourguet <=