2009-02-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ install mode: do not pass `-m $install_override_mode' to cp.
+ * libltdl/config/ltmain.m4sh (func_mode_install): New variable
+ $install_cp, factor test when `cp' is used for installation.
+ Do not pass mode override to cp. Fixes `libtool --mode=install
+ cp ...' on HP-UX; cp should not be used for libraries that might
+ be needed by programs invoked during the installation process.
+
Fix sed script portability issue in func_version.
* libltdl/config/getopt.m4sh (func_version): Remove space in
`/\./! {' sed command, to please HP-UX sed.
func_quote_for_eval "$arg"
install_prog="$install_prog$func_quote_for_eval_result"
install_shared_prog=$install_prog
+ case " $install_prog " in
+ *[\\\ /]cp\ *) install_cp=: ;;
+ *) install_cp=false ;;
+ esac
# We need to accept at least all the BSD install flags.
dest=
case $arg in
-d) isdir=yes ;;
-f)
- case " $install_prog " in
- *[\\\ /]cp\ *) ;;
- *) prev=$arg ;;
- esac
+ if $install_cp; then :; else
+ prev=$arg
+ fi
;;
-g | -m | -o)
prev=$arg
func_fatal_help "the \`$prev' option requires an argument"
if test -n "$install_override_mode" && $no_mode; then
- func_quote_for_eval "$install_override_mode"
- install_shared_prog="$install_shared_prog -m $func_quote_for_eval_result"
+ if $install_cp; then :; else
+ func_quote_for_eval "$install_override_mode"
+ install_shared_prog="$install_shared_prog -m $func_quote_for_eval_result"
+ fi
fi
if test -z "$files"; then