I agree with Andreas that all this auto-generation stuff only works if
lib3ds was a Unix-only package (then, also pkg-config scripts could be
generated which output the version number, and could be used for version
checks).

But it isn't - so I guess a simple version.h is the best :-)

> On Wednesday 17 May 2006 22:51, Reed Hedges wrote:
> > On Sun, May 14, 2006 at 09:37:09PM +0200, Andreas Beckermann wrote:
> > > On Friday 12 May 2006 14:00, Reed Hedges wrote:
> > > > Andreas Beckermann wrote:
> > > > > Why have a version header if there's no version in it?
> > > >
> > > > version.h would still have the LIB3DS_IS_VERSION macro etc.
> > >
> > > How would you keep LIB3DS_IS_VERSION if you remove LIB3DS_VERSION_* ?
> >
> > Because those symbols would be defined outside of the file, by the
> > compiler, either set manually or set by the configure script when it
> > generated the Makefiles.
>
> Exactly. So now tell me again - how is version.h in general and
> LIB3DS_IS_VERSION in particular useful to me as application developer then?
>
> If LIB3DS_VERSION_* is defined only on compile time, then LIB3DS_VERSION_* is
> useful in (lib3ds-)compile time only. And thus it is useless for application
> developers, as lib3ds is compiled and installed already.
> On the other hand it's totally useless to lib3ds, as lib3ds knows which
> version itself is at.
>
> The whole point of version.h is to give application developers a way to find
> out which lib3ds version is installed, without writing weird configure tests.
> In my particular case I currently need a way to check for "is lib3ds the most
> current released version or is it the current cvs version?" - in the former
> case I can quit with an #error, as gcc miscompiles the most recent lib3ds
> version.
> But I don't have such a way (as there is no kind of version.h in lib3ds) and
> thus I have to
> a) write a configure (i.e. cmake) test that checks whether a .3ds file can be
> loaded successfully
> b) provide a copy of lib3ds in my source tree
> and I'm pretty sure I'll go for b) :-)
>
> A version.h would make my life a lot easier - but it is useless, if I need to
> define the required versions myself, as I have no way to find out which
> version is installed on the system.
>
> CU
> Andi
>
>
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> lib3ds-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/lib3ds-devel
>

Servus,
  Gernot

-- 
T----------------------------W-E-L-C-O-M-E------------------------------T
O  The Austria <=> Sweden <=> Germany <=> Netherlands connection.....   H
|  http://www.mpi-sb.mpg.de/~gziegler | http://www.lysator.liu.se/~gz   E
\-----------------------------F-U-T-U-R-E-------------------------------/


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
lib3ds-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lib3ds-devel

Reply via email to