Hi Peter, * Peter Ekberg wrote on Sat, May 28, 2005 at 08:47:10PM CEST: > > this snippet in ltmain.m4sh, for file_magic*), line approx 4750, > > if test -n "$a_deplib" ; then > libname=`eval "\\$ECHO \"$libname_spec\""` > for i in $lib_search_path $sys_lib_search_path $shlib_search_path; > do > potential_libs=`ls $i/$libname[[.-]]* 2>/dev/null` > for potent_lib in $potential_libs; do > # Follow soft links. > if ls -lLd "$potent_lib" 2>/dev/null | > > has problems because shell expansion (?) of $i/$libname[.-]* > is not case insensitive.
Yep. > If I e.g. supply -L/msvc/lib -lwsock32 and there's a file > WSOCK32.LIB in that dir, the ls command will not find it. > > Using -lWSOCK32 works, but that does not work for MinGW > and Cygwin, since they provide libwsock32.a with the > same functionality as WSOCK32.LIB in MSVC. So, to not > make makefiles a mess, I'd really like the above to include > /msvc/lib/WSOCK32.LIB in potential_libs. > > Any suggestions on how to make that happen? Write a shell function to encapsulate the globbing, then do it the easiest way that is available (bash has nocaseglob, else there is `tr', or even a compiled program to evaluate). :-/ This part also sucks for white space in paths, but I think that could be fixed as well.. Regards, Ralf