[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
prefix:subpaths macro anyone? i.e. moveable packages
From: |
Guido Draheim |
Subject: |
prefix:subpaths macro anyone? i.e. moveable packages |
Date: |
Wed, 28 Feb 2001 00:22:15 +0100 |
Hi everyone,
has someone somewhen written some ac-macro to detect the
subpaths of a prefixed installation? The idea is to have
a moveable package where the compilation prefix path is just
the default that can be changed at runtime.
hmm, consider a package named 'foo' that has a bin/foo,
a lib/libfoo, some shared-files in share/foo/, some docs a.s.o.
The compileprefix may be /usr/local, but the user can move
the package to somewhere else, thereby setting an environment
variable (or a registry key) called FOODIR. Well, currently
I can just make an assumption about the subpaths being ./bin,
./lib, ./share/foo a.s.o, however these could have been
changed to sth. different during configuration, e.g. let
them point all into a subpath ./foo with an overall prefix
of /programs.
If I look at the current scheme of autoconf/automake, this one
is definitly nothing that is supported as a default idea,
the bindir, libdir, pkglibdir macros all use the complete path,
however, one can still invent a series of other subpath-ac_substs
that are detected (!!) from the traditional longpaths. It's just
a kind of lengthy pattern recognition, and may be someone has
already done it.
thanks in advance,
-- guido Edel sei der Mensch, hilfreich und gut
31:GCS/E/S/P C++$++++ ULHS L++w- N++@ d(+-) s+a- h.r(*@)>+++ y++ 5++X-
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- prefix:subpaths macro anyone? i.e. moveable packages,
Guido Draheim <=