On Fri, 2009-07-10 at 11:27 -0400, M. Ranganathan wrote:
> On Fri, Jul 10, 2009 at 11:16 AM, Scott
> Lawrence<[email protected]> wrote:
> > On Wed, 2009-07-08 at 22:34 -0400, M. Ranganathan wrote:
> >> On Tue, Jun 30, 2009 at 11:30 AM, Scott
> >> Lawrence<[email protected]> wrote:
> >> > In the scrum this morning, the issue of how to automatically disable a
> >> > component build if a prerequisite for it is not available came up.
> >> >
> >> > I've added a wiki page documenting how to do this:
> >> >
> >> > http://sipx-wiki.calivia.com/index.php/Configuring_conditional_building
> >>
> >> I would like to fail configure with a note to install openfire if that
> >> RPM does not exist (i.e. OPENFIRE_HOME directory does not exist ). Is
> >> there an easy way to do that ?
> >
> > The wiki page above shows how to do that - what is your question?
> 
> I will parse more carefully.  My fault if I do not understand the obvious.
> 
> Ideally , I want
> 
> if (--enable-openfire && OPENFIRE_HOME is not a directory ) then fail
> configuration
> else if --enable-openfire && OPENFIRE_HOME does not exist ) then tell
> people where to get openfire from
> else if --enable-openfire && openfire RPM version is wrong then
> complain about the RPM version.
> else
>     disable compilation of SipXOpenfire
> 
> But maybe this is too much fine tuning. After our discussion this
> morning we will have a unambiguous copy of the exact Openfire RPM we
> want on our repository and we will not be expecting people to install
> tarballs to do compiles. So I will go with a simpler solution. i.e.
> 
> if (--enable-openifre)
>   enable the compilation of openfire
> else
>    disable the compilation of openfire
> 
> I think I have the information I need to do this.

It might be simpler to do it this way:

The configure macro should look for openfire in whatever place we
expect, or where a --with-openfire option tells it to look (to allow for
developers who need more than one on the system).  If a specific
location was given and openfire was not found, that's an error.  If no
location was specified, and no openfire is found, then a warning is
given and the openfire conditional is set to disable building of
components that need it.


_______________________________________________
sipx-dev mailing list [email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev
sipXecs IP PBX -- http://www.sipfoundry.org/

Reply via email to