[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Install paths in config.h?
From: |
Daniel Pekelharing |
Subject: |
Re: Install paths in config.h? |
Date: |
Sat, 17 Dec 2005 11:39:00 +0200 |
On Fri, 2005-12-16 at 14:01 -0600, Bob Friesenhahn wrote:
> On Fri, 16 Dec 2005, Daniel Pekelharing wrote:
>
> > Hi all,
> >
> > How would I get autoconf to #define the install paths in my config.h ?
> > My app needs a shared data directory like: /usr/share/myapp,
> > how would I get that path?
>
> This is a way to do it for package "MyApp":
>
> eval "eval DATA_DIR=$datadir"
> AC_SUBST(DATA_DIR)
> MyAppSharePath="${DATA_DIR}/MyApp"
> MyAppSharePathDefine="${MyAppSharePath}/"
> AC_DEFINE_UNQUOTED(MyAppSharePath,"$MyAppSharePathDefine",Directory where
> architecture-independent files live.)
> AC_SUBST(MyAppSharePath)
>
> The AC_SUBST(DATA_DIR) defines DATA_DIR, and the
> AC_SUBST(MyAppSharePath) defines MyAppSharePath, in case you also want
> to use it in your Makefiles (e.g. to support install).
>
> Bob
Thanks! I'll check that out..
--
Daniel Pekelharing
<address@hidden>