autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: finding datadir from executable


From: Bruce Korb
Subject: Re: finding datadir from executable
Date: Mon, 06 Sep 2004 13:42:21 -0700

Akim Demaille wrote:
> 
> >>> "Nicholas" == Nicholas R Markham <address@hidden> writes:
> 
>  > I recently decided to try to apply the suggestion mentioned in section 
> 17.5 of
>  > the autoconf manual - namely, to hardcode only the relative path from 
> prefix to
>  > datadir (or maybe from bindir to datadir) and try to determine prefix at
>  > runtime.  However, I'm not sure how to determine prefix at runtime.  Can 
> anyone
>  > give me an example of how they did it?  Thanks.
> 
> Bruno Haible has a complete solution IIRC.  See GNU Gettext.

Hi Akim!

That, unfortunately, is too convoluted to figure out without real study.
Without a clear example, I simply find the full, real path of the executable
and presume that the standard ../share/${program}/ is correct.  Probably
an illuminating example would make life easier.....  :-)

Cheers - Bruce




reply via email to

[Prev in Thread] Current Thread [Next in Thread]