/[libtool]/libtool/doc/libtool.texi
ViewVC logotype

Diff of /libtool/doc/libtool.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.116.2.1 by gary, Mon Sep 10 22:25:55 2001 UTC revision 1.116.2.2 by gary, Sun Sep 30 10:35:39 2001 UTC
# Line 3416  Whatever macro you use, it is up to you Line 3416  Whatever macro you use, it is up to you
3416  sub-makes within libltdl's directory, using automake's @var{SUBDIRS},  sub-makes within libltdl's directory, using automake's @var{SUBDIRS},
3417  for example.  Both macros define the shell variables @var{LIBLTDL}, to  for example.  Both macros define the shell variables @var{LIBLTDL}, to
3418  the link flag that you should use to link with libltdl, and  the link flag that you should use to link with libltdl, and
3419  @var{INCLTDL}, to the preprocessor flag that you should use to compile  @var{LTDLINCL}, to the preprocessor flag that you should use to compile
3420  with programs that include @file{ltdl.h}.  It is up to you to use  with programs that include @file{ltdl.h}.  It is up to you to use
3421  @samp{AC_SUBST} to ensure that this variable will be available in  @samp{AC_SUBST} to ensure that this variable will be available in
3422  @file{Makefile}s, or add them to variables that are @samp{AC_SUBST}ed by  @file{Makefile}s, or add them to variables that are @samp{AC_SUBST}ed by
3423  default, such as @var{LIBS} and @var{CPPFLAGS}.  default, such as @var{LIBS} and @var{CPPFLAGS}.
3424    
3425  If you're using the convenience libltdl, @var{LIBLTDL} will be the  If you're using the convenience libltdl, @var{LIBLTDL} will be the
3426  pathname for the convenience version of libltdl and @var{INCLTDL} will be  pathname for the convenience version of libltdl and @var{LTDLINCL} will be
3427  @samp{-I} followed by the directory that contains libltdl, both starting  @samp{-I} followed by the directory that contains libltdl, both starting
3428  with @samp{$@{top_builddir@}/} or @samp{$@{top_srcdir@}/}, respectively.  with @samp{$@{top_builddir@}/} or @samp{$@{top_srcdir@}/}, respectively.
3429    
# Line 3432  found@footnote{Even if libltdl is instal Line 3432  found@footnote{Even if libltdl is instal
3432  @samp{AC_LIBLTDL_INSTALLABLE} may fail to detect it, if libltdl depends  @samp{AC_LIBLTDL_INSTALLABLE} may fail to detect it, if libltdl depends
3433  on symbols provided by libraries other than the C library.  In this  on symbols provided by libraries other than the C library.  In this
3434  case, it will needlessly build and install libltdl.}, @var{LIBLTDL} will  case, it will needlessly build and install libltdl.}, @var{LIBLTDL} will
3435  be set to @samp{-lltdl} and @var{INCLTDL} will be empty (which is just a  be set to @samp{-lltdl} and @var{LTDLINCL} will be empty (which is just a
3436  blind assumption that @file{ltdl.h} is somewhere in the include path if  blind assumption that @file{ltdl.h} is somewhere in the include path if
3437  libltdl is in the library path).  If an installable version of libltdl  libltdl is in the library path).  If an installable version of libltdl
3438  must be built, its pathname, starting with @samp{$@{top_builddir@}/},  must be built, its pathname, starting with @samp{$@{top_builddir@}/},
3439  will be stored in @var{LIBLTDL}, and @var{INCLTDL} will be set just like  will be stored in @var{LIBLTDL}, and @var{LTDLINCL} will be set just like
3440  in the case of convenience library.  in the case of convenience library.
3441    
3442  So, when you want to link a program with libltdl, be it a convenience,  So, when you want to link a program with libltdl, be it a convenience,
3443  installed or installable library, just compile with @samp{$(INCLTDL)}  installed or installable library, just compile with @samp{$(LTDLINCL)}
3444  and link it with @samp{$(LIBLTDL)}, using libtool.  and link it with @samp{$(LIBLTDL)}, using libtool.
3445    
3446  You should probably also add @samp{AC_LIBTOOL_DLOPEN} to your  You should probably also add @samp{AC_LIBTOOL_DLOPEN} to your
# Line 3463  configure.in: Line 3463  configure.in:
3463  dnl Enable building of the convenience library  dnl Enable building of the convenience library
3464  dnl and set LIBLTDL accordingly  dnl and set LIBLTDL accordingly
3465  AC_LIBLTDL_CONVENIENCE  AC_LIBLTDL_CONVENIENCE
3466  dnl Substitute INCLTDL and LIBLTDL in the Makefiles  dnl Substitute LTDLINCL and LIBLTDL in the Makefiles
3467  AC_SUBST(INCLTDL)  AC_SUBST(LTDLINCL)
3468  AC_SUBST(LIBLTDL)  AC_SUBST(LIBLTDL)
3469  dnl Check for dlopen support  dnl Check for dlopen support
3470  AC_LIBTOOL_DLOPEN  AC_LIBTOOL_DLOPEN
# Line 3480  Makefile.am: Line 3480  Makefile.am:
3480  ...  ...
3481  SUBDIRS = libltdl  SUBDIRS = libltdl
3482    
3483  INCLUDES = $(INCLTDL)  INCLUDES = $(LTDLINCL)
3484    
3485  myprog_LDFLAGS = -export-dynamic  myprog_LDFLAGS = -export-dynamic
3486  # The quotes around -dlopen below fool automake <= 1.4 into accepting it  # The quotes around -dlopen below fool automake <= 1.4 into accepting it

Legend:
Removed from v.1.116.2.1  
changed lines
  Added in v.1.116.2.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26