summaryrefslogtreecommitdiff
path: root/devel/libtool/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'devel/libtool/patches/patch-ab')
-rw-r--r--devel/libtool/patches/patch-ab451
1 files changed, 363 insertions, 88 deletions
diff --git a/devel/libtool/patches/patch-ab b/devel/libtool/patches/patch-ab
index e0465386ca8..78a39f7c373 100644
--- a/devel/libtool/patches/patch-ab
+++ b/devel/libtool/patches/patch-ab
@@ -1,11 +1,11 @@
-$NetBSD: patch-ab,v 1.69 2011/03/23 15:46:36 obache Exp $
+$NetBSD: patch-ab,v 1.70 2011/05/14 16:49:45 bsiegert Exp $
The last two chunks work around bugs in ksh on NetBSD.
The problem manifests with wl and no_builtin_flag containing newlines.
---- configure.orig 2010-06-19 07:24:20.000000000 +0000
+--- configure.orig 2011-04-14 15:39:05.000000000 +0000
+++ configure
-@@ -5293,6 +5293,13 @@ else
+@@ -5293,13 +5293,20 @@ else
lt_cv_sys_max_cmd_len=8192;
;;
@@ -19,6 +19,14 @@ The problem manifests with wl and no_builtin_flag containing newlines.
amigaos*)
# On AmigaOS with pdksh, this test takes hours, literally.
# So we just punt and use a minimum line length of 8192.
+ lt_cv_sys_max_cmd_len=8192;
+ ;;
+
+- netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
++ netbsd* | freebsd* | openbsd* | mirbsd* | darwin* | dragonfly*)
+ # This has been around since 386BSD, at least. Likely further.
+ if test -x /sbin/sysctl; then
+ lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
@@ -5665,6 +5672,10 @@ gnu*)
lt_cv_deplibs_check_method=pass_all
;;
@@ -30,7 +38,25 @@ The problem manifests with wl and no_builtin_flag containing newlines.
hpux10.20* | hpux11*)
lt_cv_file_magic_cmd=/usr/bin/file
case $host_cpu in
-@@ -5718,7 +5729,7 @@ newos6*)
+@@ -5703,6 +5714,17 @@ linux* | k*bsd*-gnu)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
++midnightbsd*)
++ # might to use match_pattern like MirBSD, but there is no well-defined
++ # naming scheme for libraries yet, as the current one is deprecated, and
++ # the new one in a state of flux especially between mports and MirPorts
++ lt_cv_deplibs_check_method=pass_all
++ ;;
++
++mirbsd*)
++ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
++ ;;
++
+ netbsd*)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
+@@ -5718,7 +5740,7 @@ newos6*)
;;
*nto* | *qnx*)
@@ -39,7 +65,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
;;
openbsd*)
-@@ -7900,7 +7911,10 @@ for cc_temp in $compiler""; do
+@@ -7900,7 +7922,10 @@ for cc_temp in $compiler""; do
*) break;;
esac
done
@@ -51,7 +77,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
# Only perform the check for file, if the check method requires it
-@@ -8210,9 +8224,17 @@ $as_echo_n "checking for $compiler optio
+@@ -8210,9 +8235,17 @@ $as_echo_n "checking for $compiler optio
;;
darwin* | rhapsody*)
@@ -70,7 +96,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
;;
hpux*)
-@@ -8234,6 +8256,13 @@ $as_echo_n "checking for $compiler optio
+@@ -8234,6 +8267,13 @@ $as_echo_n "checking for $compiler optio
# Instead, we relocate shared libraries at runtime.
;;
@@ -84,7 +110,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
msdosdjgpp*)
# Just because we use GCC doesn't mean we suddenly get shared libraries
# on systems that don't support them.
-@@ -8431,6 +8460,9 @@ $as_echo_n "checking for $compiler optio
+@@ -8431,6 +8471,9 @@ $as_echo_n "checking for $compiler optio
case $host_os in
# For platforms which do not support PIC, -DPIC is meaningless:
@@ -94,7 +120,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
*djgpp*)
lt_prog_compiler_pic=
;;
-@@ -8844,6 +8876,11 @@ _LT_EOF
+@@ -8844,6 +8887,11 @@ _LT_EOF
fi
;;
@@ -106,7 +132,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
interix[3-9]*)
hardcode_direct=no
hardcode_shlibpath_var=no
-@@ -8930,7 +8967,7 @@ _LT_EOF
+@@ -8930,7 +8978,7 @@ _LT_EOF
;;
netbsd*)
@@ -115,7 +141,40 @@ The problem manifests with wl and no_builtin_flag containing newlines.
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
wlarc=
else
-@@ -9450,6 +9487,8 @@ rm -f core conftest.err conftest.$ac_obj
+@@ -9317,6 +9365,11 @@ if test -z "$aix_libpath"; then aix_libp
+ hardcode_shlibpath_var=no
+ ;;
+
++ haiku*)
++ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
++ link_all_deplibs=yes
++ ;;
++
+ hpux9*)
+ if test "$GCC" = yes; then
+ archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+@@ -9430,6 +9483,20 @@ rm -f core conftest.err conftest.$ac_obj
+ link_all_deplibs=yes
+ ;;
+
++ mirbsd*)
++ if test -f /usr/libexec/ld.so; then
++ hardcode_direct=yes
++ hardcode_shlibpath_var=no
++ hardcode_direct_absolute=yes
++ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
++ archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
++ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
++ export_dynamic_flag_spec='${wl}-E'
++ else
++ ld_shlibs=no
++ fi
++ ;;
++
+ netbsd*)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
+@@ -9450,6 +9517,8 @@ rm -f core conftest.err conftest.$ac_obj
;;
*nto* | *qnx*)
@@ -124,7 +183,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
;;
openbsd*)
-@@ -10064,6 +10103,7 @@ beos*)
+@@ -10064,6 +10133,7 @@ beos*)
bsdi[45]*)
version_type=linux
need_version=no
@@ -132,7 +191,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
soname_spec='${libname}${release}${shared_ext}$major'
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
-@@ -10165,9 +10205,7 @@ freebsd1*)
+@@ -10165,9 +10235,7 @@ freebsd1*)
dynamic_linker=no
;;
@@ -143,7 +202,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
if test -x /usr/bin/objformat; then
objformat=`/usr/bin/objformat`
else
-@@ -10179,7 +10217,7 @@ freebsd* | dragonfly*)
+@@ -10179,7 +10247,7 @@ freebsd* | dragonfly*)
version_type=freebsd-$objformat
case $version_type in
freebsd-elf*)
@@ -152,7 +211,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
need_version=no
need_lib_prefix=no
;;
-@@ -10202,13 +10240,24 @@ freebsd* | dragonfly*)
+@@ -10202,13 +10270,24 @@ freebsd* | dragonfly*)
shlibpath_overrides_runpath=no
hardcode_into_libs=yes
;;
@@ -178,7 +237,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
gnu*)
version_type=linux
need_lib_prefix=no
-@@ -10219,6 +10268,19 @@ gnu*)
+@@ -10219,6 +10298,19 @@ gnu*)
hardcode_into_libs=yes
;;
@@ -198,7 +257,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
hpux9* | hpux10* | hpux11*)
# Give a soname corresponding to the major version so that dld.sl refuses to
# link against other versions.
-@@ -10280,12 +10342,7 @@ interix[3-9]*)
+@@ -10280,12 +10372,7 @@ interix[3-9]*)
irix5* | irix6* | nonstopux*)
case $host_os in
nonstopux*) version_type=nonstopux ;;
@@ -212,9 +271,33 @@ The problem manifests with wl and no_builtin_flag containing newlines.
esac
need_lib_prefix=no
need_version=no
-@@ -10376,15 +10433,14 @@ rm -f core conftest.err conftest.$ac_obj
+@@ -10375,16 +10462,38 @@ rm -f core conftest.err conftest.$ac_obj
+ dynamic_linker='GNU/Linux ld.so'
;;
++midnightbsd*)
++ version_type=linux
++ need_lib_prefix=no
++ need_version=no
++ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${release}${shared_ext} $libname${shared_ext}'
++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
++ shlibpath_var=LD_LIBRARY_PATH
++ shlibpath_overrides_runpath=yes
++ hardcode_into_libs=yes
++ ;;
++
++mirbsd*)
++ version_type=linux
++ sys_lib_search_path_spec="/usr/lib"
++ sys_lib_dlsearch_path_spec="/usr/lib"
++ need_lib_prefix=no
++ need_version=no
++ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${shared_ext}${versuffix2}'
++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
++ shlibpath_var=LD_LIBRARY_PATH
++ shlibpath_overrides_runpath=yes
++ ;;
++
netbsd*)
- version_type=sunos
+ version_type=linux
@@ -231,7 +314,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
soname_spec='${libname}${release}${shared_ext}$major'
dynamic_linker='NetBSD ld.elf_so'
fi
-@@ -10413,7 +10469,7 @@ newsos6)
+@@ -10413,7 +10522,7 @@ newsos6)
;;
openbsd*)
@@ -240,7 +323,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
sys_lib_dlsearch_path_spec="/usr/lib"
need_lib_prefix=no
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
-@@ -10421,7 +10477,7 @@ openbsd*)
+@@ -10421,7 +10530,7 @@ openbsd*)
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
*) need_version=no ;;
esac
@@ -249,7 +332,17 @@ The problem manifests with wl and no_builtin_flag containing newlines.
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
shlibpath_var=LD_LIBRARY_PATH
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
-@@ -12587,9 +12643,7 @@ else
+@@ -11910,6 +12019,9 @@ else
+ # at 6.2 and later dlopen does load deplibs.
+ lt_cv_sys_dlopen_deplibs=yes
+ ;;
++ mirbsd*)
++ lt_cv_sys_dlopen_deplibs=yes
++ ;;
+ netbsd*)
+ lt_cv_sys_dlopen_deplibs=yes
+ ;;
+@@ -12587,9 +12699,7 @@ else
fi
@@ -260,7 +353,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-@@ -12836,7 +12890,10 @@ $RM -r conftest*
+@@ -12836,7 +12946,10 @@ $RM -r conftest*
*) break;;
esac
done
@@ -272,19 +365,30 @@ The problem manifests with wl and no_builtin_flag containing newlines.
if test -n "$compiler"; then
-@@ -13305,6 +13362,11 @@ if test -z "$aix_libpath"; then aix_libp
- gnu*)
- ;;
+@@ -13613,6 +13726,22 @@ if test -z "$aix_libpath"; then aix_libp
+ ld_shlibs_CXX=no
+ ;;
-+ haiku*)
-+ archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
-+ link_all_deplibs_CXX=yes
-+ ;;
++ mirbsd*)
++ if test -f /usr/libexec/ld.so; then
++ hardcode_direct_CXX=yes
++ hardcode_shlibpath_var_CXX=no
++ hardcode_direct_absolute_CXX=yes
++ archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
++ archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
++ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
++ export_dynamic_flag_spec_CXX='${wl}-E'
++ whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
++ output_verbose_link_cmd='echo'
++ else
++ ld_shlibs_CXX=no
++ fi
++ ;;
+
- hpux9*)
- hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
- hardcode_libdir_separator_CXX=:
-@@ -13628,18 +13690,37 @@ if test -z "$aix_libpath"; then aix_libp
+ mvs*)
+ case $cc_basename in
+ cxx*)
+@@ -13628,18 +13757,37 @@ if test -z "$aix_libpath"; then aix_libp
netbsd*)
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
@@ -326,7 +430,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
;;
openbsd2*)
-@@ -14036,6 +14117,11 @@ $RM -f confest.$objext
+@@ -14036,6 +14184,11 @@ $RM -f confest.$objext
# PORTME: override above test on systems where it is broken
case $host_os in
@@ -338,7 +442,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
interix[3-9]*)
# Interix 3.5 installs completely hosed .la files for C++, so rather than
# hack all around it, let's just trust "g++" to DTRT.
-@@ -14176,14 +14262,25 @@ $as_echo_n "checking for $compiler optio
+@@ -14176,14 +14329,25 @@ $as_echo_n "checking for $compiler optio
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
;;
darwin* | rhapsody*)
@@ -365,7 +469,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
interix[3-9]*)
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
# Instead, we relocate shared libraries at runtime.
-@@ -14246,6 +14343,9 @@ $as_echo_n "checking for $compiler optio
+@@ -14246,6 +14410,9 @@ $as_echo_n "checking for $compiler optio
;;
esac
;;
@@ -375,7 +479,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
freebsd* | dragonfly*)
# FreeBSD uses GNU C++
;;
-@@ -14443,6 +14543,9 @@ $as_echo_n "checking for $compiler optio
+@@ -14443,6 +14610,9 @@ $as_echo_n "checking for $compiler optio
case $host_os in
# For platforms which do not support PIC, -DPIC is meaningless:
@@ -385,7 +489,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
*djgpp*)
lt_prog_compiler_pic_CXX=
;;
-@@ -14948,6 +15051,7 @@ beos*)
+@@ -14948,6 +15118,7 @@ beos*)
bsdi[45]*)
version_type=linux
need_version=no
@@ -393,7 +497,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
soname_spec='${libname}${release}${shared_ext}$major'
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
-@@ -15048,9 +15152,7 @@ freebsd1*)
+@@ -15048,9 +15219,7 @@ freebsd1*)
dynamic_linker=no
;;
@@ -404,7 +508,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
if test -x /usr/bin/objformat; then
objformat=`/usr/bin/objformat`
else
-@@ -15062,7 +15164,7 @@ freebsd* | dragonfly*)
+@@ -15062,7 +15231,7 @@ freebsd* | dragonfly*)
version_type=freebsd-$objformat
case $version_type in
freebsd-elf*)
@@ -413,7 +517,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
need_version=no
need_lib_prefix=no
;;
-@@ -15085,13 +15187,24 @@ freebsd* | dragonfly*)
+@@ -15085,13 +15254,24 @@ freebsd* | dragonfly*)
shlibpath_overrides_runpath=no
hardcode_into_libs=yes
;;
@@ -439,7 +543,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
gnu*)
version_type=linux
need_lib_prefix=no
-@@ -15102,6 +15215,19 @@ gnu*)
+@@ -15102,6 +15282,19 @@ gnu*)
hardcode_into_libs=yes
;;
@@ -459,7 +563,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
hpux9* | hpux10* | hpux11*)
# Give a soname corresponding to the major version so that dld.sl refuses to
# link against other versions.
-@@ -15163,12 +15289,7 @@ interix[3-9]*)
+@@ -15163,12 +15356,7 @@ interix[3-9]*)
irix5* | irix6* | nonstopux*)
case $host_os in
nonstopux*) version_type=nonstopux ;;
@@ -473,9 +577,33 @@ The problem manifests with wl and no_builtin_flag containing newlines.
esac
need_lib_prefix=no
need_version=no
-@@ -15259,15 +15380,14 @@ rm -f core conftest.err conftest.$ac_obj
+@@ -15258,16 +15446,38 @@ rm -f core conftest.err conftest.$ac_obj
+ dynamic_linker='GNU/Linux ld.so'
;;
++midnightbsd*)
++ version_type=linux
++ need_lib_prefix=no
++ need_version=no
++ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${release}${shared_ext} $libname${shared_ext}'
++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
++ shlibpath_var=LD_LIBRARY_PATH
++ shlibpath_overrides_runpath=yes
++ hardcode_into_libs=yes
++ ;;
++
++mirbsd*)
++ version_type=linux
++ sys_lib_search_path_spec="/usr/lib"
++ sys_lib_dlsearch_path_spec="/usr/lib"
++ need_lib_prefix=no
++ need_version=no
++ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${shared_ext}${versuffix2}'
++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
++ shlibpath_var=LD_LIBRARY_PATH
++ shlibpath_overrides_runpath=yes
++ ;;
++
netbsd*)
- version_type=sunos
+ version_type=linux
@@ -492,7 +620,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
soname_spec='${libname}${release}${shared_ext}$major'
dynamic_linker='NetBSD ld.elf_so'
fi
-@@ -15296,7 +15416,7 @@ newsos6)
+@@ -15296,7 +15506,7 @@ newsos6)
;;
openbsd*)
@@ -501,7 +629,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
sys_lib_dlsearch_path_spec="/usr/lib"
need_lib_prefix=no
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
-@@ -15304,7 +15424,7 @@ openbsd*)
+@@ -15304,7 +15514,7 @@ openbsd*)
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
*) need_version=no ;;
esac
@@ -510,7 +638,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
shlibpath_var=LD_LIBRARY_PATH
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
-@@ -15877,7 +15997,10 @@ $RM -r conftest*
+@@ -15877,7 +16087,10 @@ $RM -r conftest*
*) break;;
esac
done
@@ -522,7 +650,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
GCC=$G77
if test -n "$compiler"; then
-@@ -15971,9 +16094,17 @@ $as_echo_n "checking for $compiler optio
+@@ -15971,9 +16184,17 @@ $as_echo_n "checking for $compiler optio
;;
darwin* | rhapsody*)
@@ -541,7 +669,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
;;
hpux*)
-@@ -15995,6 +16126,13 @@ $as_echo_n "checking for $compiler optio
+@@ -15995,6 +16216,13 @@ $as_echo_n "checking for $compiler optio
# Instead, we relocate shared libraries at runtime.
;;
@@ -555,7 +683,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
msdosdjgpp*)
# Just because we use GCC doesn't mean we suddenly get shared libraries
# on systems that don't support them.
-@@ -16192,6 +16330,9 @@ $as_echo_n "checking for $compiler optio
+@@ -16192,6 +16420,9 @@ $as_echo_n "checking for $compiler optio
case $host_os in
# For platforms which do not support PIC, -DPIC is meaningless:
@@ -565,7 +693,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
*djgpp*)
lt_prog_compiler_pic_F77=
;;
-@@ -16590,6 +16731,11 @@ _LT_EOF
+@@ -16590,6 +16821,11 @@ _LT_EOF
fi
;;
@@ -577,7 +705,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
interix[3-9]*)
hardcode_direct_F77=no
hardcode_shlibpath_var_F77=no
-@@ -16676,7 +16822,7 @@ _LT_EOF
+@@ -16676,7 +16912,7 @@ _LT_EOF
;;
netbsd*)
@@ -586,7 +714,40 @@ The problem manifests with wl and no_builtin_flag containing newlines.
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
wlarc=
else
-@@ -17183,6 +17329,8 @@ rm -f core conftest.err conftest.$ac_obj
+@@ -17051,6 +17287,11 @@ if test -z "$aix_libpath"; then aix_libp
+ hardcode_shlibpath_var_F77=no
+ ;;
+
++ haiku*)
++ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
++ link_all_deplibs_F77=yes
++ ;;
++
+ hpux9*)
+ if test "$GCC" = yes; then
+ archive_cmds_F77='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+@@ -17163,6 +17404,20 @@ rm -f core conftest.err conftest.$ac_obj
+ link_all_deplibs_F77=yes
+ ;;
+
++ mirbsd*)
++ if test -f /usr/libexec/ld.so; then
++ hardcode_direct_F77=yes
++ hardcode_shlibpath_var_F77=no
++ hardcode_direct_absolute_F77=yes
++ archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
++ archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
++ hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
++ export_dynamic_flag_spec_F77='${wl}-E'
++ else
++ ld_shlibs_F77=no
++ fi
++ ;;
++
+ netbsd*)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+ archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
+@@ -17183,6 +17438,8 @@ rm -f core conftest.err conftest.$ac_obj
;;
*nto* | *qnx*)
@@ -595,7 +756,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
;;
openbsd*)
-@@ -17644,6 +17792,7 @@ beos*)
+@@ -17644,6 +17901,7 @@ beos*)
bsdi[45]*)
version_type=linux
need_version=no
@@ -603,7 +764,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
soname_spec='${libname}${release}${shared_ext}$major'
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
-@@ -17744,9 +17893,7 @@ freebsd1*)
+@@ -17744,9 +18002,7 @@ freebsd1*)
dynamic_linker=no
;;
@@ -614,7 +775,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
if test -x /usr/bin/objformat; then
objformat=`/usr/bin/objformat`
else
-@@ -17758,7 +17905,7 @@ freebsd* | dragonfly*)
+@@ -17758,7 +18014,7 @@ freebsd* | dragonfly*)
version_type=freebsd-$objformat
case $version_type in
freebsd-elf*)
@@ -623,7 +784,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
need_version=no
need_lib_prefix=no
;;
-@@ -17781,13 +17928,24 @@ freebsd* | dragonfly*)
+@@ -17781,13 +18037,24 @@ freebsd* | dragonfly*)
shlibpath_overrides_runpath=no
hardcode_into_libs=yes
;;
@@ -649,7 +810,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
gnu*)
version_type=linux
need_lib_prefix=no
-@@ -17798,6 +17956,19 @@ gnu*)
+@@ -17798,6 +18065,19 @@ gnu*)
hardcode_into_libs=yes
;;
@@ -669,7 +830,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
hpux9* | hpux10* | hpux11*)
# Give a soname corresponding to the major version so that dld.sl refuses to
# link against other versions.
-@@ -17859,12 +18030,7 @@ interix[3-9]*)
+@@ -17859,12 +18139,7 @@ interix[3-9]*)
irix5* | irix6* | nonstopux*)
case $host_os in
nonstopux*) version_type=nonstopux ;;
@@ -683,9 +844,33 @@ The problem manifests with wl and no_builtin_flag containing newlines.
esac
need_lib_prefix=no
need_version=no
-@@ -17949,15 +18115,14 @@ rm -f core conftest.err conftest.$ac_obj
+@@ -17948,16 +18223,38 @@ rm -f core conftest.err conftest.$ac_obj
+ dynamic_linker='GNU/Linux ld.so'
;;
++midnightbsd*)
++ version_type=linux
++ need_lib_prefix=no
++ need_version=no
++ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${release}${shared_ext} $libname${shared_ext}'
++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
++ shlibpath_var=LD_LIBRARY_PATH
++ shlibpath_overrides_runpath=yes
++ hardcode_into_libs=yes
++ ;;
++
++mirbsd*)
++ version_type=linux
++ sys_lib_search_path_spec="/usr/lib"
++ sys_lib_dlsearch_path_spec="/usr/lib"
++ need_lib_prefix=no
++ need_version=no
++ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${shared_ext}${versuffix2}'
++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
++ shlibpath_var=LD_LIBRARY_PATH
++ shlibpath_overrides_runpath=yes
++ ;;
++
netbsd*)
- version_type=sunos
+ version_type=linux
@@ -702,7 +887,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
soname_spec='${libname}${release}${shared_ext}$major'
dynamic_linker='NetBSD ld.elf_so'
fi
-@@ -17986,7 +18151,7 @@ newsos6)
+@@ -17986,7 +18283,7 @@ newsos6)
;;
openbsd*)
@@ -711,7 +896,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
sys_lib_dlsearch_path_spec="/usr/lib"
need_lib_prefix=no
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
-@@ -17994,7 +18159,7 @@ openbsd*)
+@@ -17994,7 +18291,7 @@ openbsd*)
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
*) need_version=no ;;
esac
@@ -720,7 +905,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
shlibpath_var=LD_LIBRARY_PATH
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
-@@ -18557,7 +18722,10 @@ $RM -r conftest*
+@@ -18557,7 +18854,10 @@ $RM -r conftest*
*) break;;
esac
done
@@ -732,7 +917,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
if test -n "$compiler"; then
-@@ -18776,9 +18944,17 @@ $as_echo_n "checking for $compiler optio
+@@ -18776,9 +19076,17 @@ $as_echo_n "checking for $compiler optio
;;
darwin* | rhapsody*)
@@ -751,7 +936,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
;;
hpux*)
-@@ -18800,6 +18976,13 @@ $as_echo_n "checking for $compiler optio
+@@ -18800,6 +19108,13 @@ $as_echo_n "checking for $compiler optio
# Instead, we relocate shared libraries at runtime.
;;
@@ -765,7 +950,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
msdosdjgpp*)
# Just because we use GCC doesn't mean we suddenly get shared libraries
# on systems that don't support them.
-@@ -18997,6 +19180,9 @@ $as_echo_n "checking for $compiler optio
+@@ -18997,6 +19312,9 @@ $as_echo_n "checking for $compiler optio
case $host_os in
# For platforms which do not support PIC, -DPIC is meaningless:
@@ -775,7 +960,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
*djgpp*)
lt_prog_compiler_pic_FC=
;;
-@@ -19395,6 +19581,11 @@ _LT_EOF
+@@ -19395,6 +19713,11 @@ _LT_EOF
fi
;;
@@ -787,7 +972,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
interix[3-9]*)
hardcode_direct_FC=no
hardcode_shlibpath_var_FC=no
-@@ -19481,7 +19672,7 @@ _LT_EOF
+@@ -19481,7 +19804,7 @@ _LT_EOF
;;
netbsd*)
@@ -796,7 +981,40 @@ The problem manifests with wl and no_builtin_flag containing newlines.
archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
wlarc=
else
-@@ -19988,6 +20179,8 @@ rm -f core conftest.err conftest.$ac_obj
+@@ -19856,6 +20179,11 @@ if test -z "$aix_libpath"; then aix_libp
+ hardcode_shlibpath_var_FC=no
+ ;;
+
++ haiku*)
++ archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
++ link_all_deplibs_FC=yes
++ ;;
++
+ hpux9*)
+ if test "$GCC" = yes; then
+ archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+@@ -19968,6 +20296,20 @@ rm -f core conftest.err conftest.$ac_obj
+ link_all_deplibs_FC=yes
+ ;;
+
++ mirbsd*)
++ if test -f /usr/libexec/ld.so; then
++ hardcode_direct_FC=yes
++ hardcode_shlibpath_var_FC=no
++ hardcode_direct_absolute_FC=yes
++ archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
++ archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
++ hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
++ export_dynamic_flag_spec_FC='${wl}-E'
++ else
++ ld_shlibs_FC=no
++ fi
++ ;;
++
+ netbsd*)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+ archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
+@@ -19988,6 +20330,8 @@ rm -f core conftest.err conftest.$ac_obj
;;
*nto* | *qnx*)
@@ -805,7 +1023,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
;;
openbsd*)
-@@ -20449,6 +20642,7 @@ beos*)
+@@ -20449,6 +20793,7 @@ beos*)
bsdi[45]*)
version_type=linux
need_version=no
@@ -813,7 +1031,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
soname_spec='${libname}${release}${shared_ext}$major'
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
-@@ -20549,9 +20743,7 @@ freebsd1*)
+@@ -20549,9 +20894,7 @@ freebsd1*)
dynamic_linker=no
;;
@@ -824,7 +1042,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
if test -x /usr/bin/objformat; then
objformat=`/usr/bin/objformat`
else
-@@ -20563,7 +20755,7 @@ freebsd* | dragonfly*)
+@@ -20563,7 +20906,7 @@ freebsd* | dragonfly*)
version_type=freebsd-$objformat
case $version_type in
freebsd-elf*)
@@ -833,7 +1051,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
need_version=no
need_lib_prefix=no
;;
-@@ -20586,13 +20778,24 @@ freebsd* | dragonfly*)
+@@ -20586,13 +20929,24 @@ freebsd* | dragonfly*)
shlibpath_overrides_runpath=no
hardcode_into_libs=yes
;;
@@ -859,7 +1077,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
gnu*)
version_type=linux
need_lib_prefix=no
-@@ -20603,6 +20806,19 @@ gnu*)
+@@ -20603,6 +20957,19 @@ gnu*)
hardcode_into_libs=yes
;;
@@ -879,7 +1097,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
hpux9* | hpux10* | hpux11*)
# Give a soname corresponding to the major version so that dld.sl refuses to
# link against other versions.
-@@ -20664,12 +20880,7 @@ interix[3-9]*)
+@@ -20664,12 +21031,7 @@ interix[3-9]*)
irix5* | irix6* | nonstopux*)
case $host_os in
nonstopux*) version_type=nonstopux ;;
@@ -893,9 +1111,33 @@ The problem manifests with wl and no_builtin_flag containing newlines.
esac
need_lib_prefix=no
need_version=no
-@@ -20754,15 +20965,14 @@ rm -f core conftest.err conftest.$ac_obj
+@@ -20753,16 +21115,38 @@ rm -f core conftest.err conftest.$ac_obj
+ dynamic_linker='GNU/Linux ld.so'
;;
++midnightbsd*)
++ version_type=linux
++ need_lib_prefix=no
++ need_version=no
++ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${release}${shared_ext} $libname${shared_ext}'
++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
++ shlibpath_var=LD_LIBRARY_PATH
++ shlibpath_overrides_runpath=yes
++ hardcode_into_libs=yes
++ ;;
++
++mirbsd*)
++ version_type=linux
++ sys_lib_search_path_spec="/usr/lib"
++ sys_lib_dlsearch_path_spec="/usr/lib"
++ need_lib_prefix=no
++ need_version=no
++ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${shared_ext}${versuffix2}'
++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
++ shlibpath_var=LD_LIBRARY_PATH
++ shlibpath_overrides_runpath=yes
++ ;;
++
netbsd*)
- version_type=sunos
+ version_type=linux
@@ -912,7 +1154,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
soname_spec='${libname}${release}${shared_ext}$major'
dynamic_linker='NetBSD ld.elf_so'
fi
-@@ -20791,7 +21001,7 @@ newsos6)
+@@ -20791,7 +21175,7 @@ newsos6)
;;
openbsd*)
@@ -921,7 +1163,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
sys_lib_dlsearch_path_spec="/usr/lib"
need_lib_prefix=no
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
-@@ -20799,7 +21009,7 @@ openbsd*)
+@@ -20799,7 +21183,7 @@ openbsd*)
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
*) need_version=no ;;
esac
@@ -930,7 +1172,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
shlibpath_var=LD_LIBRARY_PATH
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
-@@ -21205,7 +21415,10 @@ for cc_temp in $compiler""; do
+@@ -21205,7 +21589,10 @@ for cc_temp in $compiler""; do
*) break;;
esac
done
@@ -942,7 +1184,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
# GCJ did not exist at the time GCC didn't implicitly link libc in.
-@@ -21320,9 +21533,17 @@ $as_echo_n "checking for $compiler optio
+@@ -21320,9 +21707,17 @@ $as_echo_n "checking for $compiler optio
;;
darwin* | rhapsody*)
@@ -961,7 +1203,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
;;
hpux*)
-@@ -21344,6 +21565,13 @@ $as_echo_n "checking for $compiler optio
+@@ -21344,6 +21739,13 @@ $as_echo_n "checking for $compiler optio
# Instead, we relocate shared libraries at runtime.
;;
@@ -975,7 +1217,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
msdosdjgpp*)
# Just because we use GCC doesn't mean we suddenly get shared libraries
# on systems that don't support them.
-@@ -21541,6 +21769,9 @@ $as_echo_n "checking for $compiler optio
+@@ -21541,6 +21943,9 @@ $as_echo_n "checking for $compiler optio
case $host_os in
# For platforms which do not support PIC, -DPIC is meaningless:
@@ -985,7 +1227,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
*djgpp*)
lt_prog_compiler_pic_GCJ=
;;
-@@ -21939,6 +22170,11 @@ _LT_EOF
+@@ -21939,6 +22344,11 @@ _LT_EOF
fi
;;
@@ -997,7 +1239,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
interix[3-9]*)
hardcode_direct_GCJ=no
hardcode_shlibpath_var_GCJ=no
-@@ -22025,7 +22261,7 @@ _LT_EOF
+@@ -22025,7 +22435,7 @@ _LT_EOF
;;
netbsd*)
@@ -1006,7 +1248,40 @@ The problem manifests with wl and no_builtin_flag containing newlines.
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
wlarc=
else
-@@ -22545,6 +22781,8 @@ rm -f core conftest.err conftest.$ac_obj
+@@ -22412,6 +22822,11 @@ if test -z "$aix_libpath"; then aix_libp
+ hardcode_shlibpath_var_GCJ=no
+ ;;
+
++ haiku*)
++ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
++ link_all_deplibs_GCJ=yes
++ ;;
++
+ hpux9*)
+ if test "$GCC" = yes; then
+ archive_cmds_GCJ='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+@@ -22525,6 +22940,20 @@ rm -f core conftest.err conftest.$ac_obj
+ link_all_deplibs_GCJ=yes
+ ;;
+
++ mirbsd*)
++ if test -f /usr/libexec/ld.so; then
++ hardcode_direct_GCJ=yes
++ hardcode_shlibpath_var_GCJ=no
++ hardcode_direct_absolute_GCJ=yes
++ archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
++ archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
++ hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
++ export_dynamic_flag_spec_GCJ='${wl}-E'
++ else
++ ld_shlibs_GCJ=no
++ fi
++ ;;
++
+ netbsd*)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+ archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
+@@ -22545,6 +22974,8 @@ rm -f core conftest.err conftest.$ac_obj
;;
*nto* | *qnx*)
@@ -1015,7 +1290,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
;;
openbsd*)
-@@ -23115,7 +23353,10 @@ for cc_temp in $compiler""; do
+@@ -23115,7 +23546,10 @@ for cc_temp in $compiler""; do
*) break;;
esac
done
@@ -1027,7 +1302,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
lt_cv_prog_compiler_c_o_RC=yes
-@@ -24296,6 +24537,9 @@ LTCC='$LTCC'
+@@ -24296,6 +24730,9 @@ LTCC='$LTCC'
LTCFLAGS='$LTCFLAGS'
compiler='$compiler_DEFAULT'
@@ -1037,7 +1312,7 @@ The problem manifests with wl and no_builtin_flag containing newlines.
# Quote evaled strings.
for var in SED \
GREP \
-@@ -24580,6 +24824,9 @@ case \$lt_ECHO in
+@@ -24580,6 +25017,9 @@ case \$lt_ECHO in
;;
esac