GNU Info

Info Node: (libtool.info)Autoconf .o macros

(libtool.info)Autoconf .o macros


Prev: Invoking libtoolize Up: Distributing
Enter node , (file) or (file)node

Autoconf `.o' macros
--------------------

   The Autoconf package comes with a few macros that run tests, then
set a variable corresponding to the name of an object file.  Sometimes
it is necessary to use corresponding names for libtool objects.

   Here are the names of variables that list libtool objects:

 - Variable: LTALLOCA
     Substituted by `AC_FUNC_ALLOCA' (*note Particular Function Checks:
     (autoconf)Particular Functions.).  Is either empty, or contains
     `alloca.lo'.

 - Variable: LTLIBOBJS
     Substituted by `AC_REPLACE_FUNCS' (*note Generic Function Checks:
     (autoconf)Generic Functions.), and a few other functions.

   Unfortunately, the stable release of Autoconf (2.13, at the time of
this writing) does not have any way for libtool to provide support for
these variables.  So, if you depend on them, use the following code
immediately before the call to `AC_OUTPUT' in your `configure.in':

     LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
     AC_SUBST(LTLIBOBJS)
     LTALLOCA=`echo "$ALLOCA" | sed 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
     AC_SUBST(LTALLOCA)
     AC_OUTPUT(...)


automatically generated by info2www version 1.2.2.9