From ef76a2349741c5793da74e7cd7aba4216af01dbc Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Sat, 19 Jun 2010 23:59:45 +0200 Subject: [PATCH] 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 --- ChangeLog | 5 +++++ libltdl/config/ltmain.m4sh | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) 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" ;; -- 2.47.3