]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtoolize: fix a scoping bug in func_aclocal_update_check.
authorGary V. Vaughan <gary@gnu.org>
Sat, 5 Nov 2011 12:40:30 +0000 (19:40 +0700)
committerGary V. Vaughan <gary@gnu.org>
Sat, 5 Nov 2011 12:45:22 +0000 (19:45 +0700)
libtoolize.m4sh (func_aclocal_update_check): This body of this
function used a global variable set by the outer loop of the
caller. Fix to Use the function argument correctly.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
libtoolize.m4sh

index e41ab3c0064dc598a0f910c631666a137d2f08f6..6bd7e4e0409bcedc2d4d04a89fb6c308eed3ab5a 100644 (file)
@@ -755,10 +755,12 @@ func_aclocal_update_check ()
 {
     $debug_cmd
 
+    my_filename=$1
+
     my_srcfile="$aclocaldir/$1"
     my_destfile="aclocal.m4"
 
-    case $need in
+    case $my_filename in
       libtool.m4)
        my_src_serial=`func_serial "$my_srcfile" LT_INIT`
        my_dest_serial=`func_serial "$my_destfile" LT_INIT`
@@ -775,8 +777,8 @@ func_aclocal_update_check ()
        my_dest_serial=`func_serial "$my_destfile" LTDL_INIT`
        ;;
       *)
-       my_src_serial=`func_serial "$my_srcfile" "$need"`
-       my_dest_serial=`func_serial "$my_destfile" "$need"`
+       my_src_serial=`func_serial "$my_srcfile" "$my_filename"`
+       my_dest_serial=`func_serial "$my_destfile" "$my_filename"`
        ;;
     esac