This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Anyone installing Perl modules?


On Thu, May 08, 2003 at 11:48:20AM -0700, Bill Moseley wrote:
> But, is there a better or more common way to install my Perl modules into the system @INC 
> using Automake/autoconf?  There still should be a way to override where they are installed 
> with a configure switch.

I tend to use Stow for that.  Note that this is a choice I make
as the installer of a given package; the package's maintainer
doesn't need to have done anything beyond implementing --prefix
or the equivalent, which of course you get for free with
autoconf.

> If I install a helper program in libexecdir (which is not in the $PATH), what is the best 
> way to portably add that path in my C program (for either a popen() or fork/exec to run the 
> program)?

The safest way is not to depend on the path at all.  Instead,
hard-code the path in the caller.  Of course, that should only
happen at configure time :-)  That is, have the caller do the
equivalent of:
	execv("${libexecdir}/helper", args);

--

|  | /\
|-_|/  >   Eric Siegerman, Toronto, Ont.        erics@telepres.com
|  |  /
My Wine works.  However it crashes about half the time on startup.
Apparently their simulation of windoze API is getting too accurate.  :)
	- Kyle Sallee




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]