summaryrefslogtreecommitdiff
path: root/lib/libXfont/ltmain.sh
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2007-04-14 20:44:18 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2007-04-14 20:44:18 +0000
commit6849c585d3d81769ce2150adce825d37f4406a09 (patch)
treec0fda023306d2bbf1d4d88ef99c7d81a4a689db1 /lib/libXfont/ltmain.sh
parentac08253eebfcc51b66f1a8d1b051b94d1507a7b5 (diff)
regen with libtool 1.5.22p10 and metaauto 0.7
Diffstat (limited to 'lib/libXfont/ltmain.sh')
-rw-r--r--lib/libXfont/ltmain.sh20
1 files changed, 12 insertions, 8 deletions
diff --git a/lib/libXfont/ltmain.sh b/lib/libXfont/ltmain.sh
index 579bad78b..25f21fea7 100644
--- a/lib/libXfont/ltmain.sh
+++ b/lib/libXfont/ltmain.sh
@@ -5822,6 +5822,10 @@ relink_command=\"$relink_command\""
esac
install_prog="$install_prog $arg"
done
+ case " $install_prog " in
+ *[\\\ /]cp\ *) extra_mode=;;
+ *) extra_mode='-m 644';;
+ esac
if test -z "$install_prog"; then
$echo "$modename: you must specify an install program" 1>&2
@@ -5976,8 +5980,8 @@ relink_command=\"$relink_command\""
test -n "$relink_command" && srcname="$realname"T
# Install the shared library and build the symlinks.
- $show "$install_prog -m 644 $dir/$srcname $destdir/$realname"
- $run eval "$install_prog -m 644 $dir/$srcname $destdir/$realname" || exit $?
+ $show "$install_prog $extra_mode $dir/$srcname $destdir/$realname"
+ $run eval "$install_prog $extra_mode $dir/$srcname $destdir/$realname" || exit $?
if test -n "$stripme" && test -n "$striplib"; then
$show "$striplib $destdir/$realname"
$run eval "$striplib $destdir/$realname" || exit $?
@@ -6022,8 +6026,8 @@ relink_command=\"$relink_command\""
# Install the pseudo-library for information purposes.
name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
instname="$dir/$name"i
- $show "$install_prog -m 644 $instname $destdir/$name"
- $run eval "$install_prog -m 644 $instname $destdir/$name" || exit $?
+ $show "$install_prog $extra_mode $instname $destdir/$name"
+ $run eval "$install_prog $extra_mode $instname $destdir/$name" || exit $?
# Maybe install the static library, too.
test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
@@ -6058,8 +6062,8 @@ relink_command=\"$relink_command\""
# Install the libtool object if requested.
if test -n "$destfile"; then
- $show "$install_prog -m 644 $file $destfile"
- $run eval "$install_prog -m 644 $file $destfile" || exit $?
+ $show "$install_prog $extra_mode $file $destfile"
+ $run eval "$install_prog $extra_mode $file $destfile" || exit $?
fi
# Install the old object if enabled.
@@ -6067,8 +6071,8 @@ relink_command=\"$relink_command\""
# Deduce the name of the old-style object file.
staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
- $show "$install_prog -m 644 $staticobj $staticdest"
- $run eval "$install_prog -m 644 \$staticobj \$staticdest" || exit $?
+ $show "$install_prog $extra_mode $staticobj $staticdest"
+ $run eval "$install_prog $extra_mode \$staticobj \$staticdest" || exit $?
fi
exit $EXIT_SUCCESS
;;