autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libtool --ltdl vs. autoreconf


From: Ralf Wildenhues
Subject: Re: libtool --ltdl vs. autoreconf
Date: Mon, 5 Jun 2006 14:16:22 +0200
User-agent: Mutt/1.5.11+cvs20060403

[ moving from autoconf to -patches ]

* Ralf Wildenhues wrote on Thu, May 25, 2006 at 06:39:38PM CEST:
> > * Eric Blake wrote on Tue, May 09, 2006 at 02:04:23PM CEST:
> > > 
> > > http://lists.gnu.org/archive/html/m4-patches/2006-05/msg00005.html,
> > > I noticed that m4 bootstrap invokes libtoolize --ltdl prior to
> > > autoreconf, which reinvokes libtoolize without --ltdl.  This seems
> > > like a bit of a waste of time, but when I tried removing the
> > > explicit libtoolize line, I got a bootstrap failure that a
> > > required file, ltmain.sh, was not found.  I thought that using
> > > LT_CONFIG_LTDL_DIR in configure.ac would take care of everything
> > > that --ltdl used to do on the command line, but I was obviously
> > > mistaken.

I've applied this.  Let's hope this works out right.

Cheers,
Ralf

        * bin/autoreconf.in: Trace `LT_CONFIG_LTDL_DIR'; if it has been
        seen, invoke libtoolize with `--ltdl' argument.
        * lib/autom4te.in (Autoreconf-preselections): Adjust.
        * NEWS: Update.
        Suggested by Eric Blake.

Index: NEWS
===================================================================
RCS file: /cvsroot/autoconf/autoconf/NEWS,v
retrieving revision 1.377
diff -u -r1.377 NEWS
--- NEWS        5 Jun 2006 08:39:57 -0000       1.377
+++ NEWS        5 Jun 2006 12:07:52 -0000
@@ -53,6 +53,11 @@
   New programs need not use these macros.  We have no current plans to
   remove them.
 
+** autoreconf
+  For compatibility with future Libtool 2.0, autoreconf will invoke
+  libtoolize with the option `--ltdl' now, if LT_CONFIG_LTDL_DIR is
+  used.
+
 * Major changes in Autoconf 2.59c
 
   Released 2006-04-12, by Ralf Wildenhues.
Index: lib/autom4te.in
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autom4te.in,v
retrieving revision 1.29
diff -u -r1.29 autom4te.in
--- lib/autom4te.in     9 Apr 2006 07:54:28 -0000       1.29
+++ lib/autom4te.in     5 Jun 2006 12:14:07 -0000
@@ -78,6 +78,7 @@
 args: --preselect AC_INIT
 args: --preselect AC_PROG_LIBTOOL
 args: --preselect LT_INIT
+args: --preselect LT_CONFIG_LTDL_DIR
 args: --preselect AM_GNU_GETTEXT
 end-language: "Autoreconf-preselections"
 
Index: bin/autoreconf.in
===================================================================
RCS file: /cvsroot/autoconf/autoconf/bin/autoreconf.in,v
retrieving revision 1.134
diff -u -r1.134 autoreconf.in
--- bin/autoreconf.in   4 Jun 2006 19:56:27 -0000       1.134
+++ bin/autoreconf.in   5 Jun 2006 12:07:53 -0000
@@ -442,6 +442,7 @@
   my $aux_dir;
   my $uses_gettext_via_traces;
   my $uses_libtool;
+  my $uses_libltdl;
   my $uses_autoheader;
   my $uses_automake;
   my @subdir;
@@ -457,6 +458,7 @@
             'AC_INIT',
             'AC_PROG_LIBTOOL',
             'LT_INIT',
+            'LT_CONFIG_LTDL_DIR',
             'AM_GNU_GETTEXT',
             'AM_INIT_AUTOMAKE',
            )
@@ -467,6 +469,7 @@
       $uses_autoconf = 1            if /AC_INIT/;
       $uses_gettext_via_traces = 1  if /AM_GNU_GETTEXT/;
       $uses_libtool = 1             if /(AC_PROG_LIBTOOL|LT_INIT)/;
+      $uses_libltdl = 1             if /LT_CONFIG_LTDL_DIR/;
       $uses_autoheader = 1          if /AC_CONFIG_HEADERS/;
       $uses_automake = 1            if /AM_INIT_AUTOMAKE/;
       push @subdir, split (' ', $1) if /AC_CONFIG_SUBDIRS:(.*)/ && $recursive;
@@ -521,6 +524,10 @@
     }
   elsif ($install)
     {
+      if ($uses_libltdl)
+        {
+         $libtoolize .= " --ltdl";
+       }
       xsystem ($libtoolize);
       $rerun_aclocal = 1;
     }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]