From: Bernhard H. <ber...@be...> - 2003-04-12 15:43:11
|
Sorry Borut, my reply is pretty late, but well, here it is: > On WIN32 this is not a problem: we are not dealing with absolute paths at > all > and the package is fully relocatible. > On *nix this is a problem, because we don't have path(argv[0]) relative > rule (which I already proposed, but you didn't agree with it ;-). I'm still learning ;-) > Yes, I agree with your proposal to "use a relative path from the binary dir > to > the datadir". But we already have such sting: it is SEARCH_SUFFIX. > So the rule for include is: > path(argv[0])/../SEARCH_SUFFIX/INCLUDE_DIR_SUFFIX > and for lib: path(argv[0])/../SEARCH_SUFFIX/LIB_DIR_SUFFIX > > Am I right? The relative path has to be computed, because both DATADIR and BINDIR can be independently choosen at configure-time. Bernhard |