libtool-patches
[Top][All Lists]
Advanced

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

Re: [patch 02/19] 284-gary-report-macro-files-for-aclocal.diff Queue


From: Gary V. Vaughan
Subject: Re: [patch 02/19] 284-gary-report-macro-files-for-aclocal.diff Queue
Date: Wed, 12 Oct 2005 16:28:20 +0100
User-agent: Mozilla Thunderbird 1.0 (X11/20050305)

Ralf Wildenhues wrote:
Hi Gary,

Hallo Ralf,

Thanks for the review.

I'm also afraid we may have to undo part of this when we're through with
the `make dist' problem.  But that will be dealt with in due course then.
Let's get the stack worked through first.

ACK.

+       if $seen_ltdl || $opt_ltdl; then
+         for need in argz.m4 ltdl.m4; do
+           func_echo "\`$aclocaldir/$need'"
+         done

What I meant in the other thread we were discussing this: add right here
something like this:
        func_echo "or instead follow the advice about \`AC_CONFIG_MACRO_DIR' 
below."

since the macros exist below $ltdldir/m4 anyway..

Clear now?

Oh, okay. Not quite that simple as the 'following advice' may not be
printed, depending on the state of various flags set by scanning and
command line options.  Here is a replacement patch that tries to
address your concerns, but being mindful of not reading badly regardless
of the flag values:

 libtoolize.m4sh |   64 
+++++++++++++++++++++++++++++++++++++------------------- 1 files changed, 43 
insertions(+), 21 deletions(-)

Index: libtool--devo--1.0/ChangeLog
from  Gary V. Vaughan  <address@hidden>
        * libtoolize.m4sh: Copying just libtool.m4 for hand maintained
        aclocal.m4 doesn't work.  List all required files in that case,
        using the files from installed libltdl if available.  Also, list
        the additional files required when using libltdl.
        Reported by Patrick Welche <address@hidden>.

Index: libtool--devo--1.0/libtoolize.m4sh
===================================================================
--- libtool--devo--1.0.orig/libtoolize.m4sh
+++ libtool--devo--1.0/libtoolize.m4sh
@@ -995,33 +995,55 @@ func_nonemptydir_p ()

     func_copy_some_files "$pkgmacro_files" "$aclocaldir" \
       "$m4dir" func_serial_update
-  else
-      $opt_quiet || func_echo "You should add the contents of 
\`$aclocaldir/libtool.m4' to \`aclocal.m4'."
   fi

   # Suggest modern idioms for storing autoconf macros:
   $opt_quiet || \
-    if test -z "$macrodir$ltdldir" && $seen_autoconf; then
-      if test x"$m4dir" = x.; then
-        func_echo "add \`AC_CONFIG_MACRO_DIR([m4])' to $configure_ac to store 
autoconf macros"
-      else
-        func_echo "consider adding \`AC_CONFIG_MACRO_DIR([$m4dir])'to 
$configure.ac"
-      fi
-    fi
+    if $seen_autoconf; then
+      ac_config_macro_dir_advised=false

-  $opt_quiet || \
-    if $opt_ltdl && $seen_autoconf; then
+      if test -z "$macrodir$ltdldir"; then
+       if test x"$m4dir" = x.; then
+         func_echo "Consider adding \`AC_CONFIG_MACRO_DIR([m4])' to $configure_ac 
and rerunning"
+         func_echo " libtoolize, to keep the correct libtool macros in-tree."
+       else
+         func_echo "Consider adding \`AC_CONFIG_MACRO_DIR([$m4dir])'to 
$configure.ac,"
+         func_echo "and rerunning libtoolize."
+       fi
+      elif test -z "$m4dir"; then
+        if test "$ltdldir/m4" != "$m4dir"; then
+         acmacrodir="$ltdldir/m4"
+       else
+         acmacrodir="$aclocaldir"
+       fi
+
+        func_echo "You should add the contents of the following files to 
\`aclocal.m4':"
+       for need in libtool.m4 ltoptions.m4 ltversion.m4 ltsugar.m4; do
+         func_echo "\`$acmacrodir/$need'"
+       done
+       if $seen_ltdl || $opt_ltdl; then
+         for need in argz.m4 ltdl.m4; do
+           func_echo "\`$acmacrodir/$need'"
+         done
+       fi
+        if test "$acmacrodir" != "$aclocaldir"; then
+          func_echo "or else add \`AC_CONFIG_MACRO_DIR([[$acmacrodir]])' to 
$configure_ac."
+         ac_config_macro_dir_advised=:
+       fi
+      fi

-      # Remind the user to call LT_CONFIG_LTDL_DIR:
-      test -n "$ac_ltdldir" || \
-        func_echo "Remember to add \`LT_CONFIG_LTDL_DIR([[$ltdldir]])' to 
\`$configure_ac'"
-
-      # Offer some suggestions for avoiding duplicate files in a project
-      # that uses libltdl:
-      test "$ltdldir/config" = "$auxdir" || \
-        func_echo "consider using \`AC_CONFIG_AUX_DIR([[$ltdldir/config]])' in 
$configure_ac"
-      test "$ltdldir/m4" = "$m4dir" || \
-        func_echo "consider using \`AC_CONFIG_MACRO_DIR([[$ltdldir/m4]])' in 
$configure_ac"
+      if $opt_ltdl; then
+        # Remind the user to call LT_CONFIG_LTDL_DIR:
+        test -n "$ac_ltdldir" ||
+          func_echo "Remember to add \`LT_CONFIG_LTDL_DIR([[$ltdldir]])' to 
\`$configure_ac'."
+
+        # Offer some suggestions for avoiding duplicate files in a project
+        # that uses libltdl:
+        test "$ltdldir/config" = "$auxdir" ||
+          func_echo "Consider using \`AC_CONFIG_AUX_DIR([[$ltdldir/config]])' in 
$configure_ac."
+        $ac_config_macro_dir_advised || test "$ltdldir/m4" = "$m4dir" ||
+          func_echo "Consider using \`AC_CONFIG_MACRO_DIR([[$ltdldir/m4]])' in 
$configure_ac."
+      fi
     fi
 }


Cheers,
        Gary.
--
Gary V. Vaughan      ())_.  address@hidden,gnu.org}
Research Scientist   ( '/   http://tkd.kicks-ass.net
GNU Hacker           / )=   http://www.gnu.org/software/libtool
Technical Author   `(_~)_   http://sources.redhat.com/autobook

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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