]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Fix clean mode for HP-UX 11.31 sh.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 19 Jun 2010 21:59:45 +0000 (23:59 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 20 Jun 2010 17:12:20 +0000 (19:12 +0200)
* 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 <Ralf.Wildenhues@gmx.de>
ChangeLog
libltdl/config/ltmain.m4sh

index 77403283b65b225783f4bc3b5d02ec65346153c2..9bc84c8a28864fb3ed448c306432cfef955d0a7f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2010-06-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       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.
index acb6e25ebc2f494666970d77c9d9bda19b3ac44c..a325e278a4225279d399f3c0e6af637e6cfae242 100644 (file)
@@ -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"
            ;;