Re: Build librep error: autoheader: warning: missing template: XXXXXXXXX



On Sun, Feb 01, 2009 at 11:49:52PM +1100, Allan Duncan wrote:
> Christopher Roy Bratusek wrote:
> >
> >No. the specfile is beeing created by configure. so running ./configure
> >--prefix=/usr (or whatever flags you set) will create librep.spec -
> >absolutely no need for the autotools.
> >
> >Chris
> 
> Yes, ./configure will create librep.spec, but configure doesn't exist
> _until_ it is created by the autotools.

That is why in your spec file you are running 'autoconf'.  If you
will pass relevant options it will even run a proper 'configure'
step for you.  'man autoconf' says:

   autoconf - Generate configuration scripts

and where possible options to libtoolize, which depend on a version,
are coming into play.  If you are getting a distribution archive,
where these scripts were "pre-generated" for you, you may go
straight to ./configure although you risk then some "version drift".

There is also something like 'man autoreconf'.

Yes, I agree that all these autoconfiguration tools are sometimes a
major PITA.

   Michal

P.S.  A spec file which I was using myself with librep for 0.17.2
starts its %build section like this:

%build
mkdir -p m4
./autogen.sh --with-readline --enable-shared --disable-rpath --libexecdir=%{_lib
dir}


where "--disable-rpath" is likely not doing anything useful nowadays but
I just did not check that really.


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