[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Problems when using --prefix?
From:       Stephan Kulow <coolo () kde ! org>
Date:       2002-06-14 14:55:37
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 14 June 2002 14:11, Mantia Andras wrote:
> Hi,
>
>  As some users reported there may be problems if eg. KDE is in /opt/kde3
> and a KDE app is configured with --prefix=/usr/local. At least with Quanta
> this is the situation. The files which should go in
> /opt/kde3/share/apps/quanta will land in /usr/local/share/apps/quanta and
> if the /usr/local is not added to the $KDEDIRS the program fails to run
> (e.g. the quantaui.rc is not found). In the Makefile.am-s I have lines as:
>
> rcdir = $(kde_datadir)/quanta
> rc_DATA = quantaui.rc
>
> and
>
> datadir = ${kde_datadir}/quanta
> data_DATA = tagdata.rc syntax.xml actions.rc chars
>
> So the ${kde_datatdir} point to /usr/local/share/apps.  Is this the normal,
> desired behaviour or I should use some other variable instead of
> ${kde_datadir}?
>

kde_datadir is just convience for $(prefix)/share/apps - if the user compiled
for another prefix, then he has to set KDEDIRS - just as if would have to set
PATH or LD_LIBRARY_PATH.

If quanta wants to make this easier for the user, then you can add a call
to KGlobal::dirs()->addPrefix(PREFIX) (if you put a AC_DEFINE(PREFIX, $prefix)
in your configure.in.in)

Greetings, Stephan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9CgPqwFSBhlBjoJYRAs+wAKDTO/dyp8pR3hyNw7Q+wa5ta3EcpwCgmxfU
Depl9v6mFiaMiCGSH55WAK8=
=ewXR
-----END PGP SIGNATURE-----


>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic