You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by "D.J. Heap" <dj...@gmail.com> on 2006/06/11 01:13:34 UTC

How to tell it's Apache 2.2 source on Win32

I'm wondering if anyone knows a good way to tell an Apache 2.0 source
directory from an Apache 2.2 one.  I don't see anything that is
obviously a version indicator and we need to be able to tell the
difference for the Win32 build/test system (for dll names in the tests
and to skip including the gen_uri_delims project which was folded into
apr-util (I think) in 2.2).

The LAYOUT file may be a possibility, but does anyone know of
something more definitive?

Or does anyone have an idea on how to not need that information?  For
the dll's which the tests copy around we could probably just try for
2.2 dlls and fall back to 2.0 if they are not found or something...but
I'm not sure how to deal with the gen_uri_delims project being gone.

DJ

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: How to tell it's Apache 2.2 source on Win32

Posted by "D.J. Heap" <dj...@gmail.com>.
On 6/12/06, Garrett Rooney <ro...@electricjellyfish.net> wrote:
[snip]
> > > How about looking inside of include/ap_mmn.h?  That's how apache
> > > modules figure out what version of httpd they're running in...
> > >
> > > -garrett
> > >
> >
> >
> > That sounds promising -- MODULE_MAGIC_NUMBER_MAJOR?
>
> If you care about binary compat that's what you use, but if you just
> want to tell the difference between 2.0 and 2.2 you can look at
> MODULE_MAGIC_COOKIE.
>
> -garrett

That is what I'm looking for, thanks!

DJ

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: How to tell it's Apache 2.2 source on Win32

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 6/12/06, D.J. Heap <dj...@gmail.com> wrote:
> On 6/12/06, Garrett Rooney <ro...@electricjellyfish.net> wrote:
> > On 6/10/06, D.J. Heap <dj...@gmail.com> wrote:
> > > I'm wondering if anyone knows a good way to tell an Apache 2.0 source
> > > directory from an Apache 2.2 one.  I don't see anything that is
> > > obviously a version indicator and we need to be able to tell the
> > > difference for the Win32 build/test system (for dll names in the tests
> > > and to skip including the gen_uri_delims project which was folded into
> > > apr-util (I think) in 2.2).
> > >
> > > The LAYOUT file may be a possibility, but does anyone know of
> > > something more definitive?
> >
> > How about looking inside of include/ap_mmn.h?  That's how apache
> > modules figure out what version of httpd they're running in...
> >
> > -garrett
> >
>
>
> That sounds promising -- MODULE_MAGIC_NUMBER_MAJOR?

If you care about binary compat that's what you use, but if you just
want to tell the difference between 2.0 and 2.2 you can look at
MODULE_MAGIC_COOKIE.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: How to tell it's Apache 2.2 source on Win32

Posted by "D.J. Heap" <dj...@gmail.com>.
On 6/12/06, Garrett Rooney <ro...@electricjellyfish.net> wrote:
> On 6/10/06, D.J. Heap <dj...@gmail.com> wrote:
> > I'm wondering if anyone knows a good way to tell an Apache 2.0 source
> > directory from an Apache 2.2 one.  I don't see anything that is
> > obviously a version indicator and we need to be able to tell the
> > difference for the Win32 build/test system (for dll names in the tests
> > and to skip including the gen_uri_delims project which was folded into
> > apr-util (I think) in 2.2).
> >
> > The LAYOUT file may be a possibility, but does anyone know of
> > something more definitive?
>
> How about looking inside of include/ap_mmn.h?  That's how apache
> modules figure out what version of httpd they're running in...
>
> -garrett
>


That sounds promising -- MODULE_MAGIC_NUMBER_MAJOR?

Thanks!

DJ

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: How to tell it's Apache 2.2 source on Win32

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 6/10/06, D.J. Heap <dj...@gmail.com> wrote:
> I'm wondering if anyone knows a good way to tell an Apache 2.0 source
> directory from an Apache 2.2 one.  I don't see anything that is
> obviously a version indicator and we need to be able to tell the
> difference for the Win32 build/test system (for dll names in the tests
> and to skip including the gen_uri_delims project which was folded into
> apr-util (I think) in 2.2).
>
> The LAYOUT file may be a possibility, but does anyone know of
> something more definitive?

How about looking inside of include/ap_mmn.h?  That's how apache
modules figure out what version of httpd they're running in...

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org