Wireshark-dev: Re: [Wireshark-dev] RPM build - configure parameters
From: "Sébastien Tandel" <sebastien@xxxxxxxxx>
Date: Sat, 20 Sep 2008 09:49:44 -0300
Hi Tomas,


On Fri, Sep 12, 2008 at 4:11 AM, Kukosa, Tomas <tomas.kukosa@xxxxxxxxxxx> wrote:
Hi,
 
when I build RPM with following sequence
./autogen.sh
./configure <parameters>
make rpm-package 
 
it allways calls ./configure script inside rpm packaging with fiexed parameters "--with-ssl=/usr --with-krb5" (see packaging/rpm/SPECS/wireshark.spec.in)
 

Yeah, with rpm packaging and autotools, we're loosing a little bit of our time as the rpm package build has to do the configure - since it is compiling the sources from scratch - but before being able to do so, we - as developers - have to create the specfile which is done by the configure process as well. ;) The egg and the chicken ... you know :)
  
would it be somehow possible to pass parameters from "./configure <parameters>" called before "make rpm-package" to ./configure called inside rpm packaging?

Yes, of course! As ./configure <parameters> is building the specfile, you can modify in such a way, it includes your options. It works the same way as for Makefile.in.

 Therefore you would have to modify the configure script in order to use AC_SUBST(CONFIG_PARAM) which will be used to substitute @CONFIG_PARAM@ you would put in the wireshark.spec.in.

If my exaplanation hasn't been so clear, I guess it will become obvious when taking a look at for example CC_FOR_BUILD in configure.in, Makefile.in and Makefile. 


Regards,
Sebastien Tandel

 
Regards,
   Tomas

_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@xxxxxxxxxxxxx
https://wireshark.org/mailman/listinfo/wireshark-dev