From: Ralf Wildenhues Date: Sat, 19 Jun 2010 21:59:45 +0000 (+0200) Subject: Fix clean mode for HP-UX 11.31 sh. X-Git-Tag: v2.4~138 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef76a2349741c5793da74e7cd7aba4216af01dbc;p=thirdparty%2Flibtool.git Fix clean mode for HP-UX 11.31 sh. * libltdl/config/ltmain.m4sh (func_mode_uninstall): Do not try to match a null string in a case pattern, even with surrounding spaces. Fixes `lt_dlopenadvise library loading' test. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index 77403283b..9bc84c8a2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2010-06-20 Ralf Wildenhues + Fix clean mode for HP-UX 11.31 sh. + * libltdl/config/ltmain.m4sh (func_mode_uninstall): Do not try + to match a null string in a case pattern, even with surrounding + spaces. Fixes `lt_dlopenadvise library loading' test. + Add comment for exception handling module unloading issue. * tests/exceptions.at (C++ exception handling): Add comment for last patch. diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh index acb6e25eb..a325e278a 100644 --- a/libltdl/config/ltmain.m4sh +++ b/libltdl/config/ltmain.m4sh @@ -8018,10 +8018,9 @@ func_mode_uninstall () case "$mode" in clean) - case " $library_names " in - # " " in the beginning catches empty $dlname + case " $library_names " in *" $dlname "*) ;; - *) rmfiles="$rmfiles $odir/$dlname" ;; + *) test -n "$dlname" && rmfiles="$rmfiles $odir/$dlname" ;; esac test -n "$libdir" && rmfiles="$rmfiles $odir/$name $odir/${name}i" ;;