autoconf
[Top][All Lists]
Advanced

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

Re: generating a configure script in a subdirectory?


From: Ralf Corsepius
Subject: Re: generating a configure script in a subdirectory?
Date: Wed, 17 Dec 2003 05:30:45 +0100

On Tue, 2003-12-16 at 23:30, Juan Luis Baptiste wrote:
> >You confuse me.  The purpose of AC_CONFIG_SUBDIRS is to pass the
> >configure arguments to subordinate configures (e.g. --prefix) so that
> >as long as each subproject follows the same GNU-standard rules, the
> >binaries should install into the same directory.
> >
> >  
> >
> I know, but AC_CONFIG_SUBDIRS calls an existing configure script in the 
> subproject directory
> if it exists right?,
Yes,

>  but if it doesn't it throws up an error.
Yes.

>  My 
> cuestion is, how can I generate subproject/configure
> script at the same time when I generate the main configure script, so I 
> don't have to go into the subproject
> directory and run autoconf/automake.
You are supposed to cd to the subproject and run autoconf/automake etc.
there, i.e. the steps you don't want to do are the nominal procedure.

Some projects try to automate this by using a manually written script,
in most cases called autogen.sh or bootstrap.

In case all of your configure scripts and Makefiles are compatible to
using the same versions of autoconf/automake etc. you alternatively can
try to use "autoreconf" in the toplevel directory.

But beware, autoreconf can be dangerous and doesn't always work.

Ralf








reply via email to

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