2005-03-24 Gary V. Vaughan <gary@gnu.org>
+ * libtoolize.m4sh: Fix a typo, s/pkgvltdldirs/pkgvdatadirs/.
+ When using -I to test an uninstalled libtoolize, we need to add
+ the config subdirectory to the search path so that ltmain.sh can
+ be found in the source tree.
+
* 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
# Locations for important files:
prefix=@prefix@
datadir=@datadir@
-pkgvdatadirs=@pkgvdatadir@
-pkgvltdldirs=@pkgvdatadir@/libltdl
-pkgvmacrodirs=@pkgvmacrodir@
+pkgvdatadirs=@pkgvdatadir@ # ltmain.sh et. al.
+pkgvltdldirs=@pkgvdatadir@/libltdl # libltdl source tree
+pkgvmacrodirs=@pkgvmacrodir@ # libtool.m4 et. al.
auxdir=
m4dir=
ltdldir=
libtoolize_flags="${libtoolize_flags} --install"
;;
- --ltdl) ltdldir=libltdl
- if test "$#" -gt 0; then
- case $1 in
- -*) ;;
- *) ltdldir="$1"; shift ;;
- esac
- fi
- ;;
-
-I) test "$#" = 0 && func_missing_arg $opt && break
+ # for installed share/libtool trees:
test -d "$1" \
- && pkgvdatadirs="`cd $1 && pwd`:$pkgvltdldirs"
+ && pkgvdatadirs="`cd $1 && pwd`:$pkgvdatadirs"
+ # for uninstalled ltmain.sh location:
+ test -d "$1/config" \
+ && pkgvdatadirs="`cd $1/config && pwd`:$pkgvdatadirs"
+ # for libltdl source files:
test -d "$1" \
&& pkgvltdldirs="`cd $1/libltdl \
&& pwd`:$pkgvltdldirs"
+ # for libtool.m4 and other macro files:
test -d "$1/m4" \
&& pkgvmacrodirs="`cd $1/m4 && pwd`:$pkgvmacrodirs"
func_quote_for_eval "$1"
shift
;;
+ --ltdl) ltdldir=libltdl
+ if test "$#" -gt 0; then
+ case $1 in
+ -*) ;;
+ *) ltdldir="$1"; shift ;;
+ esac
+ fi
+ ;;
+
--quiet|--automake|-q) # --automake is for 1.5 compatibility
opt_quiet=:
libtoolize_flags="${libtoolize_flags} --quiet"