protux-devel
[Top][All Lists]
Advanced

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

Re: [Protux-devel] getting installation dir from autostuff


From: Luciano Giordana
Subject: Re: [Protux-devel] getting installation dir from autostuff
Date: Mon, 9 Dec 2002 09:12:20 +0000
User-agent: KMail/1.4.3

> Allright, I found the solution (and make changes to protux/libmustux):
> 1) we need to create acconfig.h file on main level with following:

Do you mean "acconfig.h" or "a config.h" file ? 



>
> ---clip---
> /*Define protux prefix*/
> #undef PROTUX_PREFIX
> ---clip---
>
> 2) then we have to add to configure.in (after the default prefix
> defination, so that there will allways be something)
>
> ---clip---
> AC_DEFINE_UNQUOTED(PROTUX_PREFIX,${prefix})
> ---clip---
>
> Now when 'make -f admin/Makefile.common' is executed it automaticly
> reruns autoheader, which recreates config.h.in-file with PROTUX_PREFIX
> defination, which is filled up in config.h when ./configure is executed.
>
> simple ;)
>
> Now when PROTUX_PREFIX is needed (and MUSTUX_PREFIX in libmustux),
> simply add '#include <config.h>' to your source file and there will be
> define clause with right path.

Seems good, I will try that too

Regards





reply via email to

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