freebsd2*)
shlibpath_overrides_runpath=yes
;;
- freebsd3.[01]* | freebsdelf3.[01]*)
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- ;;
- *) # from 3.2 on
+ *)
shlibpath_overrides_runpath=no
hardcode_into_libs=yes
;;
echo "checking whether to build static libraries... $enable_static" 1>&6
-if test "$hardcode_action" = relink || test "$hardcode_into_libs" = all; then
+if test "$hardcode_action" = relink ||
+ { test "$hardcode_into_libs" = yes &&
+ test "$shlibpath_overrides_runpath" != yes; }; then
# Fast installation is not supported
enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
if test "$linkmode,$pass" = "prog,link"; then
if test -n "$library_names" &&
- { test "$hardcode_into_libs" != all || test "$alldeplibs" != yes; } &&
+ { test "$hardcode_into_libs" != yes ||
+ test "$shlibpath_overrides_runpath" = yes ||
+ test "$alldeplibs" != yes; } &&
{ test "$prefer_static_libs" = no || test -z "$old_library"; }; then
# We need to hardcode the library path
if test -n "$shlibpath_var"; then
need_relink=yes
fi
# This is a shared library
- if test $linkmode = lib && test "$hardcode_into_libs" = all; then
+ if test $linkmode = lib &&
+ test "$hardcode_into_libs" = yes &&
+ test "$shlibpath_overrides_runpath" != yes; then
# Hardcode the library path.
# Skip directories that are in the system default run-time
# search path.
fi
# Make a backup of the uninstalled library when relinking
- if test "$mode" = relink && test "$hardcode_into_libs" = all; then
+ if test "$mode" = relink &&
+ test "$hardcode_into_libs" = yes &&
+ test "$shlibpath_overrides_runpath" != yes; then
$run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
fi
IFS="$save_ifs"
# Restore the uninstalled library and exit
- if test "$mode" = relink && test "$hardcode_into_libs" = all; then
+ if test "$mode" = relink &&
+ test "$hardcode_into_libs" = yes &&
+ test "$shlibpath_overrides_runpath" != yes; then
$run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
exit 0
fi
exit 0
fi
- if test "$hardcode_action" = relink || test "$hardcode_into_libs" = all; then
+ if test "$hardcode_action" = relink ||
+ { test "$hardcode_into_libs" = yes &&
+ test "$shlibpath_overrides_runpath" != yes; }; then
# Fast installation is not supported
link_command="$compile_var$compile_command$compile_rpath"
relink_command="$finalize_var$finalize_command$finalize_rpath"
# Directory that this library needs to be installed in:
libdir='$install_libdir'"
- if test $hardcode_into_libs = all &&
+ if test "$hardcode_into_libs" = yes &&
+ test "$shlibpath_overrides_runpath" != yes &&
test "$installed" = no && test $need_relink = yes; then
$echo >> $output "\
relink_command=\"$relink_command\""
test "X$dir" = "X$file/" && dir=
dir="$dir$objdir"
- if test "$hardcode_into_libs" = all && test -n "$relink_command"; then
+ if test "$hardcode_into_libs" = yes &&
+ test "$shlibpath_overrides_runpath" != yes &&
+ test -n "$relink_command"; then
$echo "$modename: warning: relinking \`$file'" 1>&2
$show "$relink_command"
if $run eval "$relink_command"; then :
shift
srcname="$realname"
- test "$hardcode_into_libs" = all && test -n "$relink_command" && srcname="$realname"T
+ test "$hardcode_into_libs" = yes &&
+ test "$shlibpath_overrides_runpath" != yes &&
+ test -n "$relink_command" && srcname="$realname"T
# Install the shared library and build the symlinks.
$show "$install_prog $dir/$srcname $destdir/$realname"