From: Gary V. Vaughan Date: Thu, 24 Mar 2005 13:05:03 +0000 (+0000) Subject: * libtoolize.m4sh (func_copy_some_files): IFS needs to be set to X-Git-Tag: release-2-1b~702 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d7dd1b66f91a9cf8fba6618ad92a4f854d6cdc0;p=thirdparty%2Flibtool.git * libtoolize.m4sh (func_copy_some_files): IFS needs to be set to path delimiter for all inner loop iterations. Once a matching file has been copied, no need to keep searching the path for another -- move on to the next file! --- diff --git a/ChangeLog b/ChangeLog index a2df16fd4..d6a7f94c7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2005-03-24 Gary V. Vaughan + * libtoolize.m4sh (func_copy_some_files): IFS needs to be set to + path delimiter for all inner loop iterations. + Once a matching file has been copied, no need to keep searching + the path for another -- move on to the next file! + * libtoolize.m4sh: For verbose mode, explain why macro files are not installed without an AC_CONFIG_MACRO_DIR declaration. diff --git a/libtoolize.m4sh b/libtoolize.m4sh index cd82df404..86d81f3a7 100644 --- a/libtoolize.m4sh +++ b/libtoolize.m4sh @@ -363,6 +363,7 @@ func_copy_some_files () my_save_IFS="$IFS" IFS=: for my_filename in $my_srcfile_spec; do + IFS=: for my_srcdir in $my_srcdirs; do IFS="$my_save_IFS" if test -f "$my_srcdir/$my_filename"; then @@ -379,6 +380,7 @@ func_copy_some_files () fi $my_copy_cb "$my_filename" "$my_srcdir" "$my_destdir" + break done IFS="$my_save_IFS" done