[Top][All Lists]

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

Re: [newbie] How to check for an "install" program

From: Stefano Sabatini
Subject: Re: [newbie] How to check for an "install" program
Date: Tue, 13 Feb 2007 23:40:23 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

On date Tuesday 2007-02-13 21:02:57 +0100, Ralf Wildenhues configured this 
> Hello Stefano,
> * Stefano Sabatini wrote on Tue, Feb 13, 2007 at 10:56:06AM CET:
> > 
> > I'm trying to use autoconf for a project of mine. I would like to
> > insert a check in the configure file for some install program.
> > 
> > The right command to use seems to be:
> Yes.
> > but I get all the times this error trying to run the autogenerated 
> > configure:
> > 
> > configure: error: cannot find install-sh or in "." "./.." 
> > "./../.."
> If you also happen to use Automake, then
>   automake --add-missing
> will install the file 'install-sh' into your package.  Otherwise I'm
> afraid you have to do it manually once.  You can just copy the one
> that comes with the Autoconf package into the toplevel directory of
> your source tree, next to  (If you eventually use
> AC_CONFIG_AUX_DIR, then the file belongs in that directory.)

Thanks so much.
I overlooked the manual that indeed says:

     Autoconf comes with a copy of `install-sh' that you can use.  If
     you use `AC_PROG_INSTALL', you must include either `install-sh' or
     `' in your distribution, or `configure' will produce an
     error message saying it can't find them--even if the system you're
     on has a good `install' program.  This check is a safety measure
Adding the script in the source tree fixed the problem, and now
configure correctly detect /usr/bin/install.

Strange enough the install-sh is not included in the autoconf package
(Debian Etch), but in the automake package.

Kind regards
Stefano Sabatini
Linux user number 337176 (see

reply via email to

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