You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by David James <ja...@gmail.com> on 2004/11/25 05:44:11 UTC

Best way to get "objdir" variable from libtool?

According to the LIBTOOL documentation, objdir is "The name of the
directory that contains temporary libtool files". What do you think is
the best way to get the value of the "objdir" configuration variable
from libtool inside configure.in?

Currently, Subversion includes the libtool macros directly inside
configure.in using sinclude(ac-helpers/libtool.m4)

The libtool.m4 script sets the $objdir variable. It appears from my
reading of the LIBTOOL documentation that "objdir" is a documented
output of this libtool.m4 script and it is therefore safe for us to
directly use the $objdir variable that is set by libtool.m4. Am I
correct?

See the relevant section of the LIBTOOL documentation at:
  http://www.delorie.com/gnu/docs/libtool/libtool_71.html

Here's an example snippet of code using this variable:
FIX_JAVAHL_LIB="ln -sf libsvnjavahl-1.dylib \`dirname
\$(libsvnjavahl_FILENAME)\`/$objdir/libsvnjavahl-1.jnilib"

Cheers,

David


-- 
http://www.cs.toronto.edu/~james

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