Re: Libtool -release and static libraries.

2006-02-16 Thread Alexandre Duret-Lutz
On Thu, Feb 16, 2006 at 04:22:24PM +1100, Brendon Costa wrote:
>
> The configure script exports the following two variables for use in
> automake that help with versioning:
>
>   PACKAGE_VERSION  1.0.6
>   PACKAGE_VERSION_UNDERSCORE  1_0_6
>

Sorry, that makes no sense : the substitutions are done at configure time,
Automake is run earlier and will never know their values.

> However in the automake files I am unable to use these variables for
> substitution on the left side of the = sign. I.e:
>
> [EMAIL PROTECTED]@.la
>
> [EMAIL PROTECTED]@_la_CPPFLAGS=-I$(top_builddir)/src
> ...
>
>
> Fails to work.

Take the string "[EMAIL PROTECTED]@.la" (that's what
Automake reads).  To canonize it, replace characters that are neither
alphanumeric nor strudels by underscores.  That gives
"[EMAIL PROTECTED]@_la".  So your second variable should
be "[EMAIL PROTECTED]@_la_CPPFLAGS".


___
http://lists.gnu.org/mailman/listinfo/libtool


Re: Libtool -release and static libraries.

2006-02-16 Thread Alexandre Duret-Lutz
On Thu, Feb 16, 2006 at 03:55:44PM +0100, Alexandre Duret-Lutz wrote:
> Take the string "[EMAIL PROTECTED]@.la" (that's what
> Automake reads).  To canonize it, replace characters that are neither

I meant to write "canonicalize".  The above mistake should not be
regarded as a caricature of any religon whatsoever :)


___
http://lists.gnu.org/mailman/listinfo/libtool


Re: Libtool -release and static libraries.

2006-02-16 Thread Brendon Costa
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


> > Sorry, that makes no sense : the substitutions are done at
configure time,
> > Automake is run earlier and will never know their values.
> >
>> >> However in the automake files I am unable to use these variables for
>> >> substitution on the left side of the = sign. I.e:
>> >>
>> >> [EMAIL PROTECTED]@.la
>> >>
>> >>
[EMAIL PROTECTED]@_la_CPPFLAGS=-I$(top_builddir)/src
>> >> ...
>> >>
>> >>
>> >> Fails to work.
> >
> > Take the string "[EMAIL PROTECTED]@.la" (that's what
> > Automake reads).  To canonize it, replace characters that are neither
> > alphanumeric nor strudels by underscores.  That gives
> > "[EMAIL PROTECTED]@_la".  So your second variable should
> > be "[EMAIL PROTECTED]@_la_CPPFLAGS".
> >

I am still very new to using automake. I can see where I went wrong
with the automake "code" above now, thanks for the pointer. I have
been using a jam and autoconf build system based on the build
environment used for the open source 3D engine Crystal Space, but now
I have decided to try using automake so forgive my mistakes in the
usage of automake.


Anyhow, regardless of whether or not how I was attempting to achieve
library renaming is valid or not, I still have the same problem in
that I wish to have the library re-named from:

libatcppunit.la

to

libatcppunit-1.0.6.la

without having to edit all the Makefile.am files every time I change
the package version. If libtool -release flag also renamed static
libraries as well as dynamic ones, then I could do this simply using:

lib_LTLIBRARIES=libatcppunit.la

[EMAIL PROTECTED]@ -I$(top_builddir)/src
[EMAIL PROTECTED]@ -release $(PACKAGE_VERSION)
[EMAIL PROTECTED]@


which is what I thought the purpose of the -release flag was for. I
would also like to have it install atcppunit.la as a symlink to
atcppunit-1.0.6.la upon installation (Which I don't know how I would
achieve by just changing the name of the library to a versioned name
in the automake file). Using this libtool -release method I would not
have to edit the Makefile.am each time I change the library version
and I assume the the symlink would be generated as well.


Are there any comments on the rest of my last email ignoring my
erroneous usage of automake?


Thanks again,
Brendon.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFD9SEcPfREiUgoLqwRAskyAKCVnj7kqx91JbwnkpLOW3VHoXn6UwCgs3mm
DwEmLkgZp+5WvhbExxkdYQo=
=p7kv
-END PGP SIGNATURE-


___
http://lists.gnu.org/mailman/listinfo/libtool