Thu Aug 4 12:23:21 2022 UTC ()
libtool: Remove hardcoded compiler objects on SunOS.

I've been running with this patch for many years, and it's required to ensure
correct operation of USE_PKGSRC_GCC_RUNTIME, as well as allowing libtool to be
compiler-agnostic, at least within the same compiler family.  Bad things happen
otherwise, such as multiple libstdc++.so's being pulled in, and it matches the
behaviour of NetBSD and others.

While here simplify some of the logic, removing support for GCC 2.7(!) and
Solaris 2.5 and earlier(!!), making this section of code easier to read.

Ride previous PKGREVISION bump.


(jperkin)
diff -r1.109 -r1.110 pkgsrc/devel/libtool/distinfo
diff -r1.50 -r1.51 pkgsrc/devel/libtool/patches/manual-libtool.m4
diff -r1.4 -r1.5 pkgsrc/devel/libtool/patches/patch-build-aux_ltmain.sh
diff -r1.4 -r1.5 pkgsrc/devel/libtool/patches/patch-libltdl_configure
diff -r1.5 -r1.6 pkgsrc/devel/libtool/patches/patch-configure

cvs diff -r1.109 -r1.110 pkgsrc/devel/libtool/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/libtool/distinfo 2022/08/03 13:06:31 1.109
+++ pkgsrc/devel/libtool/distinfo 2022/08/04 12:23:21 1.110
@@ -1,10 +1,10 @@ @@ -1,10 +1,10 @@
1$NetBSD: distinfo,v 1.109 2022/08/03 13:06:31 jperkin Exp $ 1$NetBSD: distinfo,v 1.110 2022/08/04 12:23:21 jperkin Exp $
2 2
3BLAKE2s (libtool-2.4.7.tar.gz) = ae08c74a0da41b3ae252b207ff642d594648edc9c1af41b0191b899d844fecf7 3BLAKE2s (libtool-2.4.7.tar.gz) = ae08c74a0da41b3ae252b207ff642d594648edc9c1af41b0191b899d844fecf7
4SHA512 (libtool-2.4.7.tar.gz) = 27acef46d9eb67203d708b57d80b853f76fa4b9c2720ff36ec161e6cdf702249e7982214ddf60bae75511aa79bc7d92aa27e3eab7ef9c0f5c040e8e42e76a385 4SHA512 (libtool-2.4.7.tar.gz) = 27acef46d9eb67203d708b57d80b853f76fa4b9c2720ff36ec161e6cdf702249e7982214ddf60bae75511aa79bc7d92aa27e3eab7ef9c0f5c040e8e42e76a385
5Size (libtool-2.4.7.tar.gz) = 1938886 bytes 5Size (libtool-2.4.7.tar.gz) = 1938886 bytes
6SHA1 (patch-Makefile.in) = 0adb634335acd5fb280c99b5d43ae568018ca0af 6SHA1 (patch-Makefile.in) = 0adb634335acd5fb280c99b5d43ae568018ca0af
7SHA1 (patch-build-aux_depcomp) = ae6f93ad4fac1df648cfcb62601c72f9ebb30233 7SHA1 (patch-build-aux_depcomp) = ae6f93ad4fac1df648cfcb62601c72f9ebb30233
8SHA1 (patch-build-aux_ltmain.sh) = 455f1ea72a60e76295d62adb2b2a307df54d9095 8SHA1 (patch-build-aux_ltmain.sh) = ecb677b383caaaf8efb75a01cc17d49e5599c53c
9SHA1 (patch-configure) = 22adf967ecbd2e77294d34f5a5f662526a0d3509 9SHA1 (patch-configure) = 5c2718a6ca14a1f99e1f965d0636d86eb74ec017
10SHA1 (patch-libltdl_configure) = a4ec3706e249e2f0c014513a7be70f0619b0562a 10SHA1 (patch-libltdl_configure) = 58211bf63b3f3ed5ebac583c179af7f69d955fba

cvs diff -r1.50 -r1.51 pkgsrc/devel/libtool/patches/manual-libtool.m4 (expand / switch to unified diff)

--- pkgsrc/devel/libtool/patches/manual-libtool.m4 2022/08/03 13:06:32 1.50
+++ pkgsrc/devel/libtool/patches/manual-libtool.m4 2022/08/04 12:23:21 1.51
@@ -1,18 +1,19 @@ @@ -1,18 +1,19 @@
1$NetBSD: manual-libtool.m4,v 1.50 2022/08/03 13:06:32 jperkin Exp $ 1$NetBSD: manual-libtool.m4,v 1.51 2022/08/04 12:23:21 jperkin Exp $
2 2
3Support Minix. 3Support Minix.
4Handle pkgsrc wrappers. 4Handle pkgsrc wrappers.
5Fixup output on various OS. 5Fixup output on various OS.
 6Remove hardcoding of build-time compiler objects on SunOS.
6 7
7--- m4/libtool.m4.orig 2022-03-17 02:43:39.000000000 +0000 8--- m4/libtool.m4.orig 2022-03-17 02:43:39.000000000 +0000
8+++ m4/libtool.m4 9+++ m4/libtool.m4
9@@ -118,7 +118,10 @@ func_cc_basename () 10@@ -118,7 +118,10 @@ func_cc_basename ()
10 *) break;; 11 *) break;;
11 esac 12 esac
12 done 13 done
13- func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14- func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14+ # Return the actual command name, not our pkgsrc wrapper name because several 15+ # Return the actual command name, not our pkgsrc wrapper name because several
15+ # decisions are made only based on compiler names 16+ # decisions are made only based on compiler names
16+ if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi 17+ if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi
17+ func_cc_basename_result=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18+ func_cc_basename_result=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18 } 19 }
@@ -95,27 +96,27 @@ Fixup output on various OS. @@ -95,27 +96,27 @@ Fixup output on various OS.
95 irix5* | irix6* | nonstopux*) 96 irix5* | irix6* | nonstopux*)
96 case $host_os in 97 case $host_os in
97 nonstopux*) version_type=nonstopux ;; 98 nonstopux*) version_type=nonstopux ;;
98- *) 99- *)
99- if test yes = "$lt_cv_prog_gnu_ld"; then 100- if test yes = "$lt_cv_prog_gnu_ld"; then
100- version_type=linux # correct to gnu/linux during the next big refactor 101- version_type=linux # correct to gnu/linux during the next big refactor
101- else 102- else
102- version_type=irix 103- version_type=irix
103- fi ;; 104- fi ;;
104+ *) version_type=irix ;; 105+ *) version_type=irix ;;
105 esac 106 esac
106 need_lib_prefix=no 107 need_lib_prefix=no
107 need_version=no 108 need_version=no
108@@ -2907,19 +2916,25 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu 109@@ -2907,19 +2916,25 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu
109 dynamic_linker='GNU/Linux ld.so' 110 dynamic_linker='GNU/Linux ld.so'
110 ;; 111 ;;
111  112
112+minix*) 113+minix*)
113+ version_type=linux 114+ version_type=linux
114+ need_lib_prefix=no 115+ need_lib_prefix=no
115+ need_version=no 116+ need_version=no
116+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 117+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
117+ soname_spec='${libname}${release}${shared_ext}$major' 118+ soname_spec='${libname}${release}${shared_ext}$major'
118+ dynamic_linker='Minix ld.elf_so' 119+ dynamic_linker='Minix ld.elf_so'
119+ shlibpath_var=LD_LIBRARY_PATH 120+ shlibpath_var=LD_LIBRARY_PATH
120+ shlibpath_overrides_runpath=yes 121+ shlibpath_overrides_runpath=yes
121+ hardcode_into_libs=yes 122+ hardcode_into_libs=yes
@@ -149,27 +150,27 @@ Fixup output on various OS. @@ -149,27 +150,27 @@ Fixup output on various OS.
149+ version_type=linux 150+ version_type=linux
150 sys_lib_dlsearch_path_spec=/usr/lib 151 sys_lib_dlsearch_path_spec=/usr/lib
151 need_lib_prefix=no 152 need_lib_prefix=no
152 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 153 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
153@@ -2953,7 +2968,7 @@ openbsd* | bitrig*) 154@@ -2953,7 +2968,7 @@ openbsd* | bitrig*)
154 else 155 else
155 need_version=yes 156 need_version=yes
156 fi 157 fi
157- library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 158- library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
158+ library_names_spec='$libname$release$shared_ext$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 159+ library_names_spec='$libname$release$shared_ext$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
159 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 160 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
160 shlibpath_var=LD_LIBRARY_PATH 161 shlibpath_var=LD_LIBRARY_PATH
161 shlibpath_overrides_runpath=yes 162 shlibpath_overrides_runpath=yes
162@@ -3566,12 +3581,8 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu 163@@ -3566,12 +3581,8 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu
163 lt_cv_deplibs_check_method=pass_all 164 lt_cv_deplibs_check_method=pass_all
164 ;; 165 ;;
165  166
166-netbsd*) 167-netbsd*)
167- if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 168- if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
168- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 169- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
169- else 170- else
170- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 171- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
171- fi 172- fi
172+netbsd* | minix*) 173+netbsd* | minix*)
173+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 174+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
174 ;; 175 ;;
175  176
@@ -326,59 +327,91 @@ Fixup output on various OS. @@ -326,59 +327,91 @@ Fixup output on various OS.
326  327
327 openbsd* | bitrig*) 328 openbsd* | bitrig*)
328@@ -6309,9 +6348,7 @@ m4_defun([_LT_LANG_CXX_CONFIG], 329@@ -6309,9 +6348,7 @@ m4_defun([_LT_LANG_CXX_CONFIG],
329 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl 330 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
330 m4_require([_LT_DECL_EGREP])dnl 331 m4_require([_LT_DECL_EGREP])dnl
331 m4_require([_LT_PATH_MANIFEST_TOOL])dnl 332 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
332-if test -n "$CXX" && ( test no != "$CXX" && 333-if test -n "$CXX" && ( test no != "$CXX" &&
333- ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 334- ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
334- (test g++ != "$CXX"))); then 335- (test g++ != "$CXX"))); then
335+if test -n "$CXX" && test "X$CXX" != "Xno" ; then 336+if test -n "$CXX" && test "X$CXX" != "Xno" ; then
336 AC_PROG_CXXCPP 337 AC_PROG_CXXCPP
337 else 338 else
338 _lt_caught_CXX_error=yes 339 _lt_caught_CXX_error=yes
339@@ -7115,16 +7152,14 @@ if test yes != "$_lt_caught_CXX_error"; 340@@ -7115,16 +7152,14 @@ if test yes != "$_lt_caught_CXX_error";
340 esac 341 esac
341 ;; 342 ;;
342  343
343- netbsd*) 344- netbsd*)
344- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 345- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
345- _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 346- _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
346- wlarc= 347- wlarc=
347- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 348- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
348- _LT_TAGVAR(hardcode_direct, $1)=yes 349- _LT_TAGVAR(hardcode_direct, $1)=yes
349- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 350- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
350- fi 351- fi
351- # Workaround some broken pre-1.5 toolchains 352- # Workaround some broken pre-1.5 toolchains
352- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 353- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
353+ netbsd* | minix*) 354+ netbsd* | minix*)
354+ _LT_TAGVAR(ld_shlibs, $1)=yes 355+ _LT_TAGVAR(ld_shlibs, $1)=yes
355+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 356+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
356+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 357+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
357+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 358+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
358+ _LT_TAGVAR(hardcode_direct, $1)=yes 359+ _LT_TAGVAR(hardcode_direct, $1)=yes
359+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 360+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
360+ output_verbose_link_cmd=func_echo_all 361+ output_verbose_link_cmd=func_echo_all
361 ;; 362 ;;
362  363
363 *nto* | *qnx*) 364 *nto* | *qnx*)
364@@ -7298,7 +7333,7 @@ if test yes != "$_lt_caught_CXX_error"; 365@@ -7298,35 +7333,12 @@ if test yes != "$_lt_caught_CXX_error";
365 # GNU C++ compiler with Solaris linker 366 # GNU C++ compiler with Solaris linker
366 if test yes,no = "$GXX,$with_gnu_ld"; then 367 if test yes,no = "$GXX,$with_gnu_ld"; then
367 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs' 368 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
368- if $CC --version | $GREP -v '^2\.7' > /dev/null; then 369- if $CC --version | $GREP -v '^2\.7' > /dev/null; then
369+ if true; then 370- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
370 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 371- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
371 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 372- $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
372 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 373-
373@@ -7557,8 +7592,9 @@ if AC_TRY_EVAL(ac_compile); then 374- # Commands to make compiler produce verbose output that lists
 375- # what "hidden" libraries, object files and flags are used when
 376- # linking a shared library.
 377- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 378- else
 379- # g++ 2.7 appears to require '-G' NOT '-shared' on this
 380- # platform.
 381- _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
 382- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 383- $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 384-
 385- # Commands to make compiler produce verbose output that lists
 386- # what "hidden" libraries, object files and flags are used when
 387- # linking a shared library.
 388- output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 389- fi
 390-
 391+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h $wl$soname -o $lib'
 392+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 393+ $CC -shared $pic_flag $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 394+ output_verbose_link_cmd=func_echo_all
 395 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
 396- case $host_os in
 397- solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 398- *)
 399- _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
 400- ;;
 401- esac
 402+ _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
 403 fi
 404 ;;
 405 esac
 406@@ -7557,8 +7569,9 @@ if AC_TRY_EVAL(ac_compile); then
374 -L* | -R* | -l*) 407 -L* | -R* | -l*)
375 # Some compilers place space between "-{L,R}" and the path. 408 # Some compilers place space between "-{L,R}" and the path.
376 # Remove the space. 409 # Remove the space.
377- if test x-L = "$p" || 410- if test x-L = "$p" ||
378- test x-R = "$p"; then 411- test x-R = "$p"; then
379+ if test x-L = x"$p" || 412+ if test x-L = x"$p" ||
380+ test x-l = x"$p" || 413+ test x-l = x"$p" ||
381+ test x-R = x"$p"; then 414+ test x-R = x"$p"; then
382 prev=$p 415 prev=$p
383 continue 416 continue
384 fi 417 fi

cvs diff -r1.4 -r1.5 pkgsrc/devel/libtool/patches/patch-build-aux_ltmain.sh (expand / switch to unified diff)

--- pkgsrc/devel/libtool/patches/patch-build-aux_ltmain.sh 2022/08/03 13:06:32 1.4
+++ pkgsrc/devel/libtool/patches/patch-build-aux_ltmain.sh 2022/08/04 12:23:21 1.5
@@ -1,19 +1,19 @@ @@ -1,19 +1,19 @@
1$NetBSD: patch-build-aux_ltmain.sh,v 1.4 2022/08/03 13:06:32 jperkin Exp $ 1$NetBSD: patch-build-aux_ltmain.sh,v 1.5 2022/08/04 12:23:21 jperkin Exp $
2 2
3Automatically generated using manual-* patches and bootstrap. 3Automatically generated using manual-* patches and bootstrap.
4DO NOT MODIFY THIS PATCH MANUALLY! YOUR CHANGES WILL BE LOST! 4DO NOT MODIFY THIS PATCH MANUALLY! YOUR CHANGES WILL BE LOST!
5 5
6--- build-aux/ltmain.sh.orig 2022-08-03 12:14:26.878811652 +0000 6--- build-aux/ltmain.sh.orig 2022-08-04 11:35:59.000000000 +0000
7+++ build-aux/ltmain.sh 7+++ build-aux/ltmain.sh
8@@ -323,6 +323,9 @@ test -z "$GREP" && { 8@@ -323,6 +323,9 @@ test -z "$GREP" && {
9 # uses them if a suitable command of that name is not already available 9 # uses them if a suitable command of that name is not already available
10 # in the command search PATH. 10 # in the command search PATH.
11  11
12+unset CP 12+unset CP
13+unset MV 13+unset MV
14+unset RM 14+unset RM
15 : ${CP="cp -f"} 15 : ${CP="cp -f"}
16 : ${ECHO="printf %s\n"} 16 : ${ECHO="printf %s\n"}
17 : ${EGREP="$GREP -E"} 17 : ${EGREP="$GREP -E"}
18@@ -2311,7 +2314,7 @@ include the following information: 18@@ -2311,7 +2314,7 @@ include the following information:
19 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q` 19 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`

cvs diff -r1.4 -r1.5 pkgsrc/devel/libtool/patches/patch-libltdl_configure (expand / switch to unified diff)

--- pkgsrc/devel/libtool/patches/patch-libltdl_configure 2022/08/03 13:06:32 1.4
+++ pkgsrc/devel/libtool/patches/patch-libltdl_configure 2022/08/04 12:23:21 1.5
@@ -1,19 +1,19 @@ @@ -1,19 +1,19 @@
1$NetBSD: patch-libltdl_configure,v 1.4 2022/08/03 13:06:32 jperkin Exp $ 1$NetBSD: patch-libltdl_configure,v 1.5 2022/08/04 12:23:21 jperkin Exp $
2 2
3Automatically generated using manual-* patches and bootstrap. 3Automatically generated using manual-* patches and bootstrap.
4DO NOT MODIFY THIS PATCH MANUALLY! YOUR CHANGES WILL BE LOST! 4DO NOT MODIFY THIS PATCH MANUALLY! YOUR CHANGES WILL BE LOST!
5 5
6--- libltdl/configure.orig 2022-08-03 12:14:26.903793644 +0000 6--- libltdl/configure.orig 2022-08-04 11:35:59.000000000 +0000
7+++ libltdl/configure 7+++ libltdl/configure
8@@ -703,6 +703,9 @@ AM_BACKSLASH 8@@ -703,6 +703,9 @@ AM_BACKSLASH
9 AM_DEFAULT_VERBOSITY 9 AM_DEFAULT_VERBOSITY
10 AM_DEFAULT_V 10 AM_DEFAULT_V
11 AM_V 11 AM_V
12+CSCOPE 12+CSCOPE
13+ETAGS 13+ETAGS
14+CTAGS 14+CTAGS
15 am__untar 15 am__untar
16 am__tar 16 am__tar
17 AMTAR 17 AMTAR
18@@ -745,7 +748,6 @@ infodir 18@@ -745,7 +748,6 @@ infodir
19 docdir 19 docdir
@@ -54,27 +54,27 @@ DO NOT MODIFY THIS PATCH MANUALLY! YOUR @@ -54,27 +54,27 @@ DO NOT MODIFY THIS PATCH MANUALLY! YOUR
54- libdir localedir mandir runstatedir 54- libdir localedir mandir runstatedir
55+ libdir localedir mandir 55+ libdir localedir mandir
56 do 56 do
57 eval ac_val=\$$ac_var 57 eval ac_val=\$$ac_var
58 # Remove trailing slashes. 58 # Remove trailing slashes.
59@@ -1381,7 +1373,6 @@ Fine tuning of the installation director 59@@ -1381,7 +1373,6 @@ Fine tuning of the installation director
60 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 60 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
61 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 61 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
62 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 62 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
63- --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 63- --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
64 --libdir=DIR object code libraries [EPREFIX/lib] 64 --libdir=DIR object code libraries [EPREFIX/lib]
65 --includedir=DIR C header files [PREFIX/include] 65 --includedir=DIR C header files [PREFIX/include]
66 --oldincludedir=DIR C header files for non-gcc [/usr/include] 66 --oldincludedir=DIR C header files for non-gcc [/usr/include]
67@@ -2824,6 +2815,20 @@ am__tar='$${TAR-tar} chof - "$$tardir"' 67@@ -2824,6 +2815,20 @@ am__tar='$${TAR-tar} chof - "$$tardir"'
68  68
69  69
70  70
71+# Variables for tags utilities; see am/tags.am 71+# Variables for tags utilities; see am/tags.am
72+if test -z "$CTAGS"; then 72+if test -z "$CTAGS"; then
73+ CTAGS=ctags 73+ CTAGS=ctags
74+fi 74+fi
75+ 75+
76+if test -z "$ETAGS"; then 76+if test -z "$ETAGS"; then
77+ ETAGS=etags 77+ ETAGS=etags
78+fi 78+fi
79+ 79+
80+if test -z "$CSCOPE"; then 80+if test -z "$CSCOPE"; then
@@ -94,27 +94,27 @@ DO NOT MODIFY THIS PATCH MANUALLY! YOUR @@ -94,27 +94,27 @@ DO NOT MODIFY THIS PATCH MANUALLY! YOUR
94 # This has been around since 386BSD, at least. Likely further. 94 # This has been around since 386BSD, at least. Likely further.
95 if test -x /sbin/sysctl; then 95 if test -x /sbin/sysctl; then
96 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 96 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
97@@ -4894,6 +4899,9 @@ max_cmd_len=$lt_cv_sys_max_cmd_len 97@@ -4894,6 +4899,9 @@ max_cmd_len=$lt_cv_sys_max_cmd_len
98  98
99  99
100  100
101+unset CP 101+unset CP
102+unset MV 102+unset MV
103+unset RM 103+unset RM
104 : ${CP="cp -f"} 104 : ${CP="cp -f"}
105 : ${MV="mv -f"} 105 : ${MV="mv -f"}
106 : ${RM="rm -f"} 106 : ${RM="rm -f"}
107@@ -5360,12 +5368,8 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu 107@@ -5360,12 +5368,8 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu
108 lt_cv_deplibs_check_method=pass_all 108 lt_cv_deplibs_check_method=pass_all
109 ;; 109 ;;
110  110
111-netbsd*) 111-netbsd*)
112- if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 112- if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
113- lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 113- lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
114- else 114- else
115- lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 115- lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
116- fi 116- fi
117+netbsd* | minix*) 117+netbsd* | minix*)
118+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 118+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
119 ;; 119 ;;
120  120

cvs diff -r1.5 -r1.6 pkgsrc/devel/libtool/patches/patch-configure (expand / switch to unified diff)

--- pkgsrc/devel/libtool/patches/patch-configure 2022/08/03 13:06:32 1.5
+++ pkgsrc/devel/libtool/patches/patch-configure 2022/08/04 12:23:21 1.6
@@ -1,19 +1,19 @@ @@ -1,19 +1,19 @@
1$NetBSD: patch-configure,v 1.5 2022/08/03 13:06:32 jperkin Exp $ 1$NetBSD: patch-configure,v 1.6 2022/08/04 12:23:21 jperkin Exp $
2 2
3Automatically generated using manual-* patches and bootstrap. 3Automatically generated using manual-* patches and bootstrap.
4DO NOT MODIFY THIS PATCH MANUALLY! YOUR CHANGES WILL BE LOST! 4DO NOT MODIFY THIS PATCH MANUALLY! YOUR CHANGES WILL BE LOST!
5 5
6--- configure.orig 2022-08-03 12:14:26.894800127 +0000 6--- configure.orig 2022-08-04 11:35:59.000000000 +0000
7+++ configure 7+++ configure
8@@ -748,6 +748,9 @@ AM_BACKSLASH 8@@ -748,6 +748,9 @@ AM_BACKSLASH
9 AM_DEFAULT_VERBOSITY 9 AM_DEFAULT_VERBOSITY
10 AM_DEFAULT_V 10 AM_DEFAULT_V
11 AM_V 11 AM_V
12+CSCOPE 12+CSCOPE
13+ETAGS 13+ETAGS
14+CTAGS 14+CTAGS
15 am__untar 15 am__untar
16 am__tar 16 am__tar
17 AMTAR 17 AMTAR
18@@ -799,7 +802,6 @@ infodir 18@@ -799,7 +802,6 @@ infodir
19 docdir 19 docdir
@@ -54,27 +54,27 @@ DO NOT MODIFY THIS PATCH MANUALLY! YOUR @@ -54,27 +54,27 @@ DO NOT MODIFY THIS PATCH MANUALLY! YOUR
54- libdir localedir mandir runstatedir 54- libdir localedir mandir runstatedir
55+ libdir localedir mandir 55+ libdir localedir mandir
56 do 56 do
57 eval ac_val=\$$ac_var 57 eval ac_val=\$$ac_var
58 # Remove trailing slashes. 58 # Remove trailing slashes.
59@@ -1445,7 +1437,6 @@ Fine tuning of the installation director 59@@ -1445,7 +1437,6 @@ Fine tuning of the installation director
60 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 60 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
61 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 61 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
62 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 62 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
63- --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 63- --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
64 --libdir=DIR object code libraries [EPREFIX/lib] 64 --libdir=DIR object code libraries [EPREFIX/lib]
65 --includedir=DIR C header files [PREFIX/include] 65 --includedir=DIR C header files [PREFIX/include]
66 --oldincludedir=DIR C header files for non-gcc [/usr/include] 66 --oldincludedir=DIR C header files for non-gcc [/usr/include]
67@@ -3342,6 +3333,20 @@ am__tar='$${TAR-tar} chof - "$$tardir"' 67@@ -3342,6 +3333,20 @@ am__tar='$${TAR-tar} chof - "$$tardir"'
68  68
69  69
70  70
71+# Variables for tags utilities; see am/tags.am 71+# Variables for tags utilities; see am/tags.am
72+if test -z "$CTAGS"; then 72+if test -z "$CTAGS"; then
73+ CTAGS=ctags 73+ CTAGS=ctags
74+fi 74+fi
75+ 75+
76+if test -z "$ETAGS"; then 76+if test -z "$ETAGS"; then
77+ ETAGS=etags 77+ ETAGS=etags
78+fi 78+fi
79+ 79+
80+if test -z "$CSCOPE"; then 80+if test -z "$CSCOPE"; then
@@ -94,27 +94,27 @@ DO NOT MODIFY THIS PATCH MANUALLY! YOUR @@ -94,27 +94,27 @@ DO NOT MODIFY THIS PATCH MANUALLY! YOUR
94 # This has been around since 386BSD, at least. Likely further. 94 # This has been around since 386BSD, at least. Likely further.
95 if test -x /sbin/sysctl; then 95 if test -x /sbin/sysctl; then
96 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 96 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
97@@ -6108,6 +6113,9 @@ max_cmd_len=$lt_cv_sys_max_cmd_len 97@@ -6108,6 +6113,9 @@ max_cmd_len=$lt_cv_sys_max_cmd_len
98  98
99  99
100  100
101+unset CP 101+unset CP
102+unset MV 102+unset MV
103+unset RM 103+unset RM
104 : ${CP="cp -f"} 104 : ${CP="cp -f"}
105 : ${MV="mv -f"} 105 : ${MV="mv -f"}
106 : ${RM="rm -f"} 106 : ${RM="rm -f"}
107@@ -6574,12 +6582,8 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu 107@@ -6574,12 +6582,8 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu
108 lt_cv_deplibs_check_method=pass_all 108 lt_cv_deplibs_check_method=pass_all
109 ;; 109 ;;
110  110
111-netbsd*) 111-netbsd*)
112- if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 112- if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
113- lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 113- lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
114- else 114- else
115- lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 115- lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
116- fi 116- fi
117+netbsd* | minix*) 117+netbsd* | minix*)
118+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 118+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
119 ;; 119 ;;
120  120
@@ -410,135 +410,167 @@ DO NOT MODIFY THIS PATCH MANUALLY! YOUR @@ -410,135 +410,167 @@ DO NOT MODIFY THIS PATCH MANUALLY! YOUR
410- # Workaround some broken pre-1.5 toolchains 410- # Workaround some broken pre-1.5 toolchains
411- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 411- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
412+ netbsd* | minix*) 412+ netbsd* | minix*)
413+ ld_shlibs_CXX=yes 413+ ld_shlibs_CXX=yes
414+ archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 414+ archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
415+ archive_expsym_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 415+ archive_expsym_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
416+ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 416+ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
417+ hardcode_direct_CXX=yes 417+ hardcode_direct_CXX=yes
418+ hardcode_shlibpath_var_CXX=no 418+ hardcode_shlibpath_var_CXX=no
419+ output_verbose_link_cmd=func_echo_all 419+ output_verbose_link_cmd=func_echo_all
420 ;; 420 ;;
421  421
422 *nto* | *qnx*) 422 *nto* | *qnx*)
423@@ -16196,7 +16227,7 @@ fi 423@@ -16196,35 +16227,12 @@ fi
424 # GNU C++ compiler with Solaris linker 424 # GNU C++ compiler with Solaris linker
425 if test yes,no = "$GXX,$with_gnu_ld"; then 425 if test yes,no = "$GXX,$with_gnu_ld"; then
426 no_undefined_flag_CXX=' $wl-z ${wl}defs' 426 no_undefined_flag_CXX=' $wl-z ${wl}defs'
427- if $CC --version | $GREP -v '^2\.7' > /dev/null; then 427- if $CC --version | $GREP -v '^2\.7' > /dev/null; then
428+ if true; then 428- archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
429 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 429- archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
430 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 430- $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
431 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 431-
432@@ -16360,8 +16391,9 @@ if { { eval echo "\"\$as_me\":${as_linen 432- # Commands to make compiler produce verbose output that lists
 433- # what "hidden" libraries, object files and flags are used when
 434- # linking a shared library.
 435- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 436- else
 437- # g++ 2.7 appears to require '-G' NOT '-shared' on this
 438- # platform.
 439- archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
 440- archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 441- $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 442-
 443- # Commands to make compiler produce verbose output that lists
 444- # what "hidden" libraries, object files and flags are used when
 445- # linking a shared library.
 446- output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 447- fi
 448-
 449+ archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h $wl$soname -o $lib'
 450+ archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 451+ $CC -shared $pic_flag $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 452+ output_verbose_link_cmd=func_echo_all
 453 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
 454- case $host_os in
 455- solaris2.[0-5] | solaris2.[0-5].*) ;;
 456- *)
 457- whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
 458- ;;
 459- esac
 460+ whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
 461 fi
 462 ;;
 463 esac
 464@@ -16360,8 +16368,9 @@ if { { eval echo "\"\$as_me\":${as_linen
433 -L* | -R* | -l*) 465 -L* | -R* | -l*)
434 # Some compilers place space between "-{L,R}" and the path. 466 # Some compilers place space between "-{L,R}" and the path.
435 # Remove the space. 467 # Remove the space.
436- if test x-L = "$p" || 468- if test x-L = "$p" ||
437- test x-R = "$p"; then 469- test x-R = "$p"; then
438+ if test x-L = x"$p" || 470+ if test x-L = x"$p" ||
439+ test x-l = x"$p" || 471+ test x-l = x"$p" ||
440+ test x-R = x"$p"; then 472+ test x-R = x"$p"; then
441 prev=$p 473 prev=$p
442 continue 474 continue
443 fi 475 fi
444@@ -16541,9 +16573,15 @@ lt_prog_compiler_static_CXX= 476@@ -16541,9 +16550,15 @@ lt_prog_compiler_static_CXX=
445 esac 477 esac
446 ;; 478 ;;
447 darwin* | rhapsody*) 479 darwin* | rhapsody*)
448- # PIC is the default on this platform 480- # PIC is the default on this platform
449+ # PIC is the default on this platform, and static linking of 481+ # PIC is the default on this platform, and static linking of
450+ # binaries generally doesn't work 482+ # binaries generally doesn't work
451 # Common symbols not allowed in MH_DYLIB files 483 # Common symbols not allowed in MH_DYLIB files
452 lt_prog_compiler_pic_CXX='-fno-common' 484 lt_prog_compiler_pic_CXX='-fno-common'
453+ lt_prog_compiler_static_CXX='' 485+ lt_prog_compiler_static_CXX=''
454+ ;; 486+ ;;
455+ *mint*) 487+ *mint*)
456+ # FreeMiNT does not support shared libraries at all 488+ # FreeMiNT does not support shared libraries at all
457+ lt_prog_compiler_pic_CXX= 489+ lt_prog_compiler_pic_CXX=
458 ;; 490 ;;
459 *djgpp*) 491 *djgpp*)
460 # DJGPP does not support shared libraries at all 492 # DJGPP does not support shared libraries at all
461@@ -16621,6 +16659,9 @@ lt_prog_compiler_static_CXX= 493@@ -16621,6 +16636,9 @@ lt_prog_compiler_static_CXX=
462 ;; 494 ;;
463 esac 495 esac
464 ;; 496 ;;
465+ mint*) 497+ mint*)
466+ # FreeMiNT uses GNU C++ 498+ # FreeMiNT uses GNU C++
467+ ;; 499+ ;;
468 freebsd* | dragonfly* | midnightbsd*) 500 freebsd* | dragonfly* | midnightbsd*)
469 # FreeBSD uses GNU C++ 501 # FreeBSD uses GNU C++
470 ;; 502 ;;
471@@ -16728,7 +16769,7 @@ lt_prog_compiler_static_CXX= 503@@ -16728,7 +16746,7 @@ lt_prog_compiler_static_CXX=
472 ;; 504 ;;
473 esac 505 esac
474 ;; 506 ;;
475- netbsd*) 507- netbsd*)
476+ netbsd* | minix*) 508+ netbsd* | minix*)
477 ;; 509 ;;
478 *qnx* | *nto*) 510 *qnx* | *nto*)
479 # QNX uses GNU C++, but need to define -shared option too, otherwise 511 # QNX uses GNU C++, but need to define -shared option too, otherwise
480@@ -16818,6 +16859,9 @@ lt_prog_compiler_static_CXX= 512@@ -16818,6 +16836,9 @@ lt_prog_compiler_static_CXX=
481  513
482 case $host_os in 514 case $host_os in
483 # For platforms that do not support PIC, -DPIC is meaningless: 515 # For platforms that do not support PIC, -DPIC is meaningless:
484+ mint*) 516+ mint*)
485+ lt_prog_compiler_pic_CXX= 517+ lt_prog_compiler_pic_CXX=
486+ ;; 518+ ;;
487 *djgpp*) 519 *djgpp*)
488 lt_prog_compiler_pic_CXX= 520 lt_prog_compiler_pic_CXX=
489 ;; 521 ;;
490@@ -17545,7 +17589,7 @@ dgux*) 522@@ -17545,7 +17566,7 @@ dgux*)
491 shlibpath_var=LD_LIBRARY_PATH 523 shlibpath_var=LD_LIBRARY_PATH
492 ;; 524 ;;
493  525
494-freebsd* | dragonfly* | midnightbsd*) 526-freebsd* | dragonfly* | midnightbsd*)
495+freebsd* | midnightbsd*) 527+freebsd* | midnightbsd*)
496 # DragonFly does not have aout. When/if they implement a new 528 # DragonFly does not have aout. When/if they implement a new
497 # versioning mechanism, adjust this. 529 # versioning mechanism, adjust this.
498 if test -x /usr/bin/objformat; then 530 if test -x /usr/bin/objformat; then
499@@ -17590,6 +17634,17 @@ freebsd* | dragonfly* | midnightbsd*) 531@@ -17590,6 +17611,17 @@ freebsd* | dragonfly* | midnightbsd*)
500 esac 532 esac
501 ;; 533 ;;
502  534
503+dragonfly*) 535+dragonfly*)
504+ version_type=linux 536+ version_type=linux
505+ need_version=no 537+ need_version=no
506+ need_lib_prefix=no 538+ need_lib_prefix=no
507+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 539+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
508+ soname_spec='${libname}${release}${shared_ext}$major' 540+ soname_spec='${libname}${release}${shared_ext}$major'
509+ shlibpath_var=LD_LIBRARY_PATH 541+ shlibpath_var=LD_LIBRARY_PATH
510+ shlibpath_overrides_runpath=no 542+ shlibpath_overrides_runpath=no
511+ hardcode_into_libs=yes 543+ hardcode_into_libs=yes
512+ ;; 544+ ;;
513+ 545+
514 haiku*) 546 haiku*)
515 version_type=linux # correct to gnu/linux during the next big refactor 547 version_type=linux # correct to gnu/linux during the next big refactor
516 need_lib_prefix=no 548 need_lib_prefix=no
517@@ -17667,12 +17722,7 @@ interix[3-9]*) 549@@ -17667,12 +17699,7 @@ interix[3-9]*)
518 irix5* | irix6* | nonstopux*) 550 irix5* | irix6* | nonstopux*)
519 case $host_os in 551 case $host_os in
520 nonstopux*) version_type=nonstopux ;; 552 nonstopux*) version_type=nonstopux ;;
521- *) 553- *)
522- if test yes = "$lt_cv_prog_gnu_ld"; then 554- if test yes = "$lt_cv_prog_gnu_ld"; then
523- version_type=linux # correct to gnu/linux during the next big refactor 555- version_type=linux # correct to gnu/linux during the next big refactor
524- else 556- else
525- version_type=irix 557- version_type=irix
526- fi ;; 558- fi ;;
527+ *) version_type=irix ;; 559+ *) version_type=irix ;;
528 esac 560 esac
529 need_lib_prefix=no 561 need_lib_prefix=no
530 need_version=no 562 need_version=no
531@@ -17796,19 +17846,25 @@ fi 563@@ -17796,19 +17823,25 @@ fi
532 dynamic_linker='GNU/Linux ld.so' 564 dynamic_linker='GNU/Linux ld.so'
533 ;; 565 ;;
534  566
535+minix*) 567+minix*)
536+ version_type=linux 568+ version_type=linux
537+ need_lib_prefix=no 569+ need_lib_prefix=no
538+ need_version=no 570+ need_version=no
539+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 571+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
540+ soname_spec='${libname}${release}${shared_ext}$major' 572+ soname_spec='${libname}${release}${shared_ext}$major'
541+ dynamic_linker='Minix ld.elf_so' 573+ dynamic_linker='Minix ld.elf_so'
542+ shlibpath_var=LD_LIBRARY_PATH 574+ shlibpath_var=LD_LIBRARY_PATH
543+ shlibpath_overrides_runpath=yes 575+ shlibpath_overrides_runpath=yes
544+ hardcode_into_libs=yes 576+ hardcode_into_libs=yes
@@ -554,192 +586,192 @@ DO NOT MODIFY THIS PATCH MANUALLY! YOUR @@ -554,192 +586,192 @@ DO NOT MODIFY THIS PATCH MANUALLY! YOUR
554- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 586- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
555- dynamic_linker='NetBSD (a.out) ld.so' 587- dynamic_linker='NetBSD (a.out) ld.so'
556- else 588- else
557- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 589- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
558- soname_spec='$libname$release$shared_ext$major' 590- soname_spec='$libname$release$shared_ext$major'
559- dynamic_linker='NetBSD ld.elf_so' 591- dynamic_linker='NetBSD ld.elf_so'
560- fi 592- fi
561+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 593+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
562+ soname_spec='${libname}${release}${shared_ext}$major' 594+ soname_spec='${libname}${release}${shared_ext}$major'
563+ dynamic_linker='NetBSD ld.elf_so' 595+ dynamic_linker='NetBSD ld.elf_so'
564 shlibpath_var=LD_LIBRARY_PATH 596 shlibpath_var=LD_LIBRARY_PATH
565 shlibpath_overrides_runpath=yes 597 shlibpath_overrides_runpath=yes
566 hardcode_into_libs=yes 598 hardcode_into_libs=yes
567@@ -17834,7 +17890,7 @@ newsos6) 599@@ -17834,7 +17867,7 @@ newsos6)
568 ;; 600 ;;
569  601
570 openbsd* | bitrig*) 602 openbsd* | bitrig*)
571- version_type=sunos 603- version_type=sunos
572+ version_type=linux 604+ version_type=linux
573 sys_lib_dlsearch_path_spec=/usr/lib 605 sys_lib_dlsearch_path_spec=/usr/lib
574 need_lib_prefix=no 606 need_lib_prefix=no
575 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 607 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
576@@ -17842,7 +17898,7 @@ openbsd* | bitrig*) 608@@ -17842,7 +17875,7 @@ openbsd* | bitrig*)
577 else 609 else
578 need_version=yes 610 need_version=yes
579 fi 611 fi
580- library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 612- library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
581+ library_names_spec='$libname$release$shared_ext$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 613+ library_names_spec='$libname$release$shared_ext$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
582 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
583 shlibpath_var=LD_LIBRARY_PATH 615 shlibpath_var=LD_LIBRARY_PATH
584 shlibpath_overrides_runpath=yes 616 shlibpath_overrides_runpath=yes
585@@ -18533,9 +18589,16 @@ lt_prog_compiler_static_F77= 617@@ -18533,9 +18566,16 @@ lt_prog_compiler_static_F77=
586 ;; 618 ;;
587  619
588 darwin* | rhapsody*) 620 darwin* | rhapsody*)
589- # PIC is the default on this platform 621- # PIC is the default on this platform
590+ # PIC is the default on this platform, and static linking of 622+ # PIC is the default on this platform, and static linking of
591+ # binaries generally doesn't work 623+ # binaries generally doesn't work
592 # Common symbols not allowed in MH_DYLIB files 624 # Common symbols not allowed in MH_DYLIB files
593 lt_prog_compiler_pic_F77='-fno-common' 625 lt_prog_compiler_pic_F77='-fno-common'
594+ lt_prog_compiler_static_F77='' 626+ lt_prog_compiler_static_F77=''
595+ ;; 627+ ;;
596+ 628+
597+ *mint*) 629+ *mint*)
598+ # FreeMiNT does not support shared libraries at all 630+ # FreeMiNT does not support shared libraries at all
599+ lt_prog_compiler_pic_F77= 631+ lt_prog_compiler_pic_F77=
600 ;; 632 ;;
601  633
602 haiku*) 634 haiku*)
603@@ -18563,6 +18626,13 @@ lt_prog_compiler_static_F77= 635@@ -18563,6 +18603,13 @@ lt_prog_compiler_static_F77=
604 # Instead, we relocate shared libraries at runtime. 636 # Instead, we relocate shared libraries at runtime.
605 ;; 637 ;;
606  638
607+ mint*) 639+ mint*)
608+ # Just because we use GCC doesn't mean we suddenly get shared libraries 640+ # Just because we use GCC doesn't mean we suddenly get shared libraries
609+ # on systems that don't support them. 641+ # on systems that don't support them.
610+ lt_prog_compiler_can_build_shared_F77=no 642+ lt_prog_compiler_can_build_shared_F77=no
611+ enable_shared=no 643+ enable_shared=no
612+ ;; 644+ ;;
613+ 645+
614 msdosdjgpp*) 646 msdosdjgpp*)
615 # Just because we use GCC doesn't mean we suddenly get shared libraries 647 # Just because we use GCC doesn't mean we suddenly get shared libraries
616 # on systems that don't support them. 648 # on systems that don't support them.
617@@ -18815,6 +18885,9 @@ lt_prog_compiler_static_F77= 649@@ -18815,6 +18862,9 @@ lt_prog_compiler_static_F77=
618  650
619 case $host_os in 651 case $host_os in
620 # For platforms that do not support PIC, -DPIC is meaningless: 652 # For platforms that do not support PIC, -DPIC is meaningless:
621+ mint*) 653+ mint*)
622+ lt_prog_compiler_pic_F77= 654+ lt_prog_compiler_pic_F77=
623+ ;; 655+ ;;
624 *djgpp*) 656 *djgpp*)
625 lt_prog_compiler_pic_F77= 657 lt_prog_compiler_pic_F77=
626 ;; 658 ;;
627@@ -19379,14 +19452,13 @@ _LT_EOF 659@@ -19379,14 +19429,13 @@ _LT_EOF
628 fi 660 fi
629 ;; 661 ;;
630  662
631- netbsd*) 663- netbsd*)
632- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 664- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
633- archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 665- archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
634- wlarc= 666- wlarc=
635- else 667- else
636- archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 668- archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
637- archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 669- archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
638- fi 670- fi
639+ netbsd* | minix*) 671+ netbsd* | minix*)
640+ archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 672+ archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
641+ archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 673+ archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
642+ hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 674+ hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
643+ hardcode_direct_F77=yes 675+ hardcode_direct_F77=yes
644+ hardcode_shlibpath_var_F77=no 676+ hardcode_shlibpath_var_F77=no
645+ output_verbose_link_cmd=func_echo_all 677+ output_verbose_link_cmd=func_echo_all
646 ;; 678 ;;
647  679
648 solaris*) 680 solaris*)
649@@ -19836,7 +19908,7 @@ fi 681@@ -19836,7 +19885,7 @@ fi
650 allow_undefined_flag_F77=$_lt_dar_allow_undefined 682 allow_undefined_flag_F77=$_lt_dar_allow_undefined
651 case $cc_basename in 683 case $cc_basename in
652 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 684 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
653- *) _lt_dar_can_shared=$GCC ;; 685- *) _lt_dar_can_shared=$GCC ;;
654+ *) _lt_dar_can_shared=yes ;; 686+ *) _lt_dar_can_shared=yes ;;
655 esac 687 esac
656 if test yes = "$_lt_dar_can_shared"; then 688 if test yes = "$_lt_dar_can_shared"; then
657 output_verbose_link_cmd=func_echo_all 689 output_verbose_link_cmd=func_echo_all
658@@ -20020,15 +20092,13 @@ $as_echo "$lt_cv_irix_exported_symbol" > 690@@ -20020,15 +20069,13 @@ $as_echo "$lt_cv_irix_exported_symbol" >
659 esac 691 esac
660 ;; 692 ;;
661  693
662- netbsd*) 694- netbsd*)
663- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 695- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
664- archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 696- archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
665- else 697- else
666- archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 698- archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
667- fi 699- fi
668- hardcode_libdir_flag_spec_F77='-R$libdir' 700- hardcode_libdir_flag_spec_F77='-R$libdir'
669+ netbsd* | minix*) 701+ netbsd* | minix*)
670+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 702+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
671+ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 703+ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
672+ hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 704+ hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
673 hardcode_direct_F77=yes 705 hardcode_direct_F77=yes
674 hardcode_shlibpath_var_F77=no 706 hardcode_shlibpath_var_F77=no
675+ output_verbose_link_cmd=func_echo_all 707+ output_verbose_link_cmd=func_echo_all
676 ;; 708 ;;
677  709
678 newsos6) 710 newsos6)
679@@ -20040,6 +20110,11 @@ $as_echo "$lt_cv_irix_exported_symbol" > 711@@ -20040,6 +20087,11 @@ $as_echo "$lt_cv_irix_exported_symbol" >
680 ;; 712 ;;
681  713
682 *nto* | *qnx*) 714 *nto* | *qnx*)
683+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 715+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
684+ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 716+ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
685+ hardcode_libdir_flag_spec_F77='-R$libdir' 717+ hardcode_libdir_flag_spec_F77='-R$libdir'
686+ hardcode_direct_F77=yes 718+ hardcode_direct_F77=yes
687+ hardcode_shlibpath_var_F77=no 719+ hardcode_shlibpath_var_F77=no
688 ;; 720 ;;
689  721
690 openbsd* | bitrig*) 722 openbsd* | bitrig*)
691@@ -20713,7 +20788,7 @@ dgux*) 723@@ -20713,7 +20765,7 @@ dgux*)
692 shlibpath_var=LD_LIBRARY_PATH 724 shlibpath_var=LD_LIBRARY_PATH
693 ;; 725 ;;
694  726
695-freebsd* | dragonfly* | midnightbsd*) 727-freebsd* | dragonfly* | midnightbsd*)
696+freebsd* | midnightbsd*) 728+freebsd* | midnightbsd*)
697 # DragonFly does not have aout. When/if they implement a new 729 # DragonFly does not have aout. When/if they implement a new
698 # versioning mechanism, adjust this. 730 # versioning mechanism, adjust this.
699 if test -x /usr/bin/objformat; then 731 if test -x /usr/bin/objformat; then
700@@ -20758,6 +20833,17 @@ freebsd* | dragonfly* | midnightbsd*) 732@@ -20758,6 +20810,17 @@ freebsd* | dragonfly* | midnightbsd*)
701 esac 733 esac
702 ;; 734 ;;
703  735
704+dragonfly*) 736+dragonfly*)
705+ version_type=linux 737+ version_type=linux
706+ need_version=no 738+ need_version=no
707+ need_lib_prefix=no 739+ need_lib_prefix=no
708+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 740+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
709+ soname_spec='${libname}${release}${shared_ext}$major' 741+ soname_spec='${libname}${release}${shared_ext}$major'
710+ shlibpath_var=LD_LIBRARY_PATH 742+ shlibpath_var=LD_LIBRARY_PATH
711+ shlibpath_overrides_runpath=no 743+ shlibpath_overrides_runpath=no
712+ hardcode_into_libs=yes 744+ hardcode_into_libs=yes
713+ ;; 745+ ;;
714+ 746+
715 haiku*) 747 haiku*)
716 version_type=linux # correct to gnu/linux during the next big refactor 748 version_type=linux # correct to gnu/linux during the next big refactor
717 need_lib_prefix=no 749 need_lib_prefix=no
718@@ -20835,12 +20921,7 @@ interix[3-9]*) 750@@ -20835,12 +20898,7 @@ interix[3-9]*)
719 irix5* | irix6* | nonstopux*) 751 irix5* | irix6* | nonstopux*)
720 case $host_os in 752 case $host_os in
721 nonstopux*) version_type=nonstopux ;; 753 nonstopux*) version_type=nonstopux ;;
722- *) 754- *)
723- if test yes = "$lt_cv_prog_gnu_ld"; then 755- if test yes = "$lt_cv_prog_gnu_ld"; then
724- version_type=linux # correct to gnu/linux during the next big refactor 756- version_type=linux # correct to gnu/linux during the next big refactor
725- else 757- else
726- version_type=irix 758- version_type=irix
727- fi ;; 759- fi ;;
728+ *) version_type=irix ;; 760+ *) version_type=irix ;;
729 esac 761 esac
730 need_lib_prefix=no 762 need_lib_prefix=no
731 need_version=no 763 need_version=no
732@@ -20958,19 +21039,25 @@ fi 764@@ -20958,19 +21016,25 @@ fi
733 dynamic_linker='GNU/Linux ld.so' 765 dynamic_linker='GNU/Linux ld.so'
734 ;; 766 ;;
735  767
736+minix*) 768+minix*)
737+ version_type=linux 769+ version_type=linux
738+ need_lib_prefix=no 770+ need_lib_prefix=no
739+ need_version=no 771+ need_version=no
740+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 772+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
741+ soname_spec='${libname}${release}${shared_ext}$major' 773+ soname_spec='${libname}${release}${shared_ext}$major'
742+ dynamic_linker='Minix ld.elf_so' 774+ dynamic_linker='Minix ld.elf_so'
743+ shlibpath_var=LD_LIBRARY_PATH 775+ shlibpath_var=LD_LIBRARY_PATH
744+ shlibpath_overrides_runpath=yes 776+ shlibpath_overrides_runpath=yes
745+ hardcode_into_libs=yes 777+ hardcode_into_libs=yes
@@ -755,204 +787,204 @@ DO NOT MODIFY THIS PATCH MANUALLY! YOUR @@ -755,204 +787,204 @@ DO NOT MODIFY THIS PATCH MANUALLY! YOUR
755- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 787- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
756- dynamic_linker='NetBSD (a.out) ld.so' 788- dynamic_linker='NetBSD (a.out) ld.so'
757- else 789- else
758- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 790- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
759- soname_spec='$libname$release$shared_ext$major' 791- soname_spec='$libname$release$shared_ext$major'
760- dynamic_linker='NetBSD ld.elf_so' 792- dynamic_linker='NetBSD ld.elf_so'
761- fi 793- fi
762+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 794+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
763+ soname_spec='${libname}${release}${shared_ext}$major' 795+ soname_spec='${libname}${release}${shared_ext}$major'
764+ dynamic_linker='NetBSD ld.elf_so' 796+ dynamic_linker='NetBSD ld.elf_so'
765 shlibpath_var=LD_LIBRARY_PATH 797 shlibpath_var=LD_LIBRARY_PATH
766 shlibpath_overrides_runpath=yes 798 shlibpath_overrides_runpath=yes
767 hardcode_into_libs=yes 799 hardcode_into_libs=yes
768@@ -20996,7 +21083,7 @@ newsos6) 800@@ -20996,7 +21060,7 @@ newsos6)
769 ;; 801 ;;
770  802
771 openbsd* | bitrig*) 803 openbsd* | bitrig*)
772- version_type=sunos 804- version_type=sunos
773+ version_type=linux 805+ version_type=linux
774 sys_lib_dlsearch_path_spec=/usr/lib 806 sys_lib_dlsearch_path_spec=/usr/lib
775 need_lib_prefix=no 807 need_lib_prefix=no
776 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 808 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
777@@ -21004,7 +21091,7 @@ openbsd* | bitrig*) 809@@ -21004,7 +21068,7 @@ openbsd* | bitrig*)
778 else 810 else
779 need_version=yes 811 need_version=yes
780 fi 812 fi
781- library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 813- library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
782+ library_names_spec='$libname$release$shared_ext$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 814+ library_names_spec='$libname$release$shared_ext$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
783 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
784 shlibpath_var=LD_LIBRARY_PATH 816 shlibpath_var=LD_LIBRARY_PATH
785 shlibpath_overrides_runpath=yes 817 shlibpath_overrides_runpath=yes
786@@ -21681,8 +21768,9 @@ if { { eval echo "\"\$as_me\":${as_linen 818@@ -21681,8 +21745,9 @@ if { { eval echo "\"\$as_me\":${as_linen
787 -L* | -R* | -l*) 819 -L* | -R* | -l*)
788 # Some compilers place space between "-{L,R}" and the path. 820 # Some compilers place space between "-{L,R}" and the path.
789 # Remove the space. 821 # Remove the space.
790- if test x-L = "$p" || 822- if test x-L = "$p" ||
791- test x-R = "$p"; then 823- test x-R = "$p"; then
792+ if test x-L = x"$p" || 824+ if test x-L = x"$p" ||
793+ test x-l = x"$p" || 825+ test x-l = x"$p" ||
794+ test x-R = x"$p"; then 826+ test x-R = x"$p"; then
795 prev=$p 827 prev=$p
796 continue 828 continue
797 fi 829 fi
798@@ -21836,9 +21924,16 @@ lt_prog_compiler_static_FC= 830@@ -21836,9 +21901,16 @@ lt_prog_compiler_static_FC=
799 ;; 831 ;;
800  832
801 darwin* | rhapsody*) 833 darwin* | rhapsody*)
802- # PIC is the default on this platform 834- # PIC is the default on this platform
803+ # PIC is the default on this platform, and static linking of 835+ # PIC is the default on this platform, and static linking of
804+ # binaries generally doesn't work 836+ # binaries generally doesn't work
805 # Common symbols not allowed in MH_DYLIB files 837 # Common symbols not allowed in MH_DYLIB files
806 lt_prog_compiler_pic_FC='-fno-common' 838 lt_prog_compiler_pic_FC='-fno-common'
807+ lt_prog_compiler_static_FC='' 839+ lt_prog_compiler_static_FC=''
808+ ;; 840+ ;;
809+ 841+
810+ *mint*) 842+ *mint*)
811+ # FreeMiNT does not support shared libraries at all 843+ # FreeMiNT does not support shared libraries at all
812+ lt_prog_compiler_pic_FC= 844+ lt_prog_compiler_pic_FC=
813 ;; 845 ;;
814  846
815 haiku*) 847 haiku*)
816@@ -21866,6 +21961,13 @@ lt_prog_compiler_static_FC= 848@@ -21866,6 +21938,13 @@ lt_prog_compiler_static_FC=
817 # Instead, we relocate shared libraries at runtime. 849 # Instead, we relocate shared libraries at runtime.
818 ;; 850 ;;
819  851
820+ mint*) 852+ mint*)
821+ # Just because we use GCC doesn't mean we suddenly get shared libraries 853+ # Just because we use GCC doesn't mean we suddenly get shared libraries
822+ # on systems that don't support them. 854+ # on systems that don't support them.
823+ lt_prog_compiler_can_build_shared_FC=no 855+ lt_prog_compiler_can_build_shared_FC=no
824+ enable_shared=no 856+ enable_shared=no
825+ ;; 857+ ;;
826+ 858+
827 msdosdjgpp*) 859 msdosdjgpp*)
828 # Just because we use GCC doesn't mean we suddenly get shared libraries 860 # Just because we use GCC doesn't mean we suddenly get shared libraries
829 # on systems that don't support them. 861 # on systems that don't support them.
830@@ -22118,6 +22220,9 @@ lt_prog_compiler_static_FC= 862@@ -22118,6 +22197,9 @@ lt_prog_compiler_static_FC=
831  863
832 case $host_os in 864 case $host_os in
833 # For platforms that do not support PIC, -DPIC is meaningless: 865 # For platforms that do not support PIC, -DPIC is meaningless:
834+ mint*) 866+ mint*)
835+ lt_prog_compiler_pic_FC= 867+ lt_prog_compiler_pic_FC=
836+ ;; 868+ ;;
837 *djgpp*) 869 *djgpp*)
838 lt_prog_compiler_pic_FC= 870 lt_prog_compiler_pic_FC=
839 ;; 871 ;;
840@@ -22682,14 +22787,13 @@ _LT_EOF 872@@ -22682,14 +22764,13 @@ _LT_EOF
841 fi 873 fi
842 ;; 874 ;;
843  875
844- netbsd*) 876- netbsd*)
845- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 877- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
846- archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 878- archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
847- wlarc= 879- wlarc=
848- else 880- else
849- archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 881- archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
850- archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 882- archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
851- fi 883- fi
852+ netbsd* | minix*) 884+ netbsd* | minix*)
853+ archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 885+ archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
854+ archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 886+ archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
855+ hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' 887+ hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
856+ hardcode_direct_FC=yes 888+ hardcode_direct_FC=yes
857+ hardcode_shlibpath_var_FC=no 889+ hardcode_shlibpath_var_FC=no
858+ output_verbose_link_cmd=func_echo_all 890+ output_verbose_link_cmd=func_echo_all
859 ;; 891 ;;
860  892
861 solaris*) 893 solaris*)
862@@ -23139,7 +23243,7 @@ fi 894@@ -23139,7 +23220,7 @@ fi
863 allow_undefined_flag_FC=$_lt_dar_allow_undefined 895 allow_undefined_flag_FC=$_lt_dar_allow_undefined
864 case $cc_basename in 896 case $cc_basename in
865 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 897 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
866- *) _lt_dar_can_shared=$GCC ;; 898- *) _lt_dar_can_shared=$GCC ;;
867+ *) _lt_dar_can_shared=yes ;; 899+ *) _lt_dar_can_shared=yes ;;
868 esac 900 esac
869 if test yes = "$_lt_dar_can_shared"; then 901 if test yes = "$_lt_dar_can_shared"; then
870 output_verbose_link_cmd=func_echo_all 902 output_verbose_link_cmd=func_echo_all
871@@ -23323,15 +23427,13 @@ $as_echo "$lt_cv_irix_exported_symbol" > 903@@ -23323,15 +23404,13 @@ $as_echo "$lt_cv_irix_exported_symbol" >
872 esac 904 esac
873 ;; 905 ;;
874  906
875- netbsd*) 907- netbsd*)
876- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 908- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
877- archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 909- archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
878- else 910- else
879- archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 911- archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
880- fi 912- fi
881- hardcode_libdir_flag_spec_FC='-R$libdir' 913- hardcode_libdir_flag_spec_FC='-R$libdir'
882+ netbsd* | minix*) 914+ netbsd* | minix*)
883+ archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 915+ archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
884+ archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 916+ archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
885+ hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' 917+ hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
886 hardcode_direct_FC=yes 918 hardcode_direct_FC=yes
887 hardcode_shlibpath_var_FC=no 919 hardcode_shlibpath_var_FC=no
888+ output_verbose_link_cmd=func_echo_all 920+ output_verbose_link_cmd=func_echo_all
889 ;; 921 ;;
890  922
891 newsos6) 923 newsos6)
892@@ -23343,6 +23445,11 @@ $as_echo "$lt_cv_irix_exported_symbol" > 924@@ -23343,6 +23422,11 @@ $as_echo "$lt_cv_irix_exported_symbol" >
893 ;; 925 ;;
894  926
895 *nto* | *qnx*) 927 *nto* | *qnx*)
896+ archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 928+ archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
897+ archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 929+ archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
898+ hardcode_libdir_flag_spec_FC='-R$libdir' 930+ hardcode_libdir_flag_spec_FC='-R$libdir'
899+ hardcode_direct_FC=yes 931+ hardcode_direct_FC=yes
900+ hardcode_shlibpath_var_FC=no 932+ hardcode_shlibpath_var_FC=no
901 ;; 933 ;;
902  934
903 openbsd* | bitrig*) 935 openbsd* | bitrig*)
904@@ -24016,7 +24123,7 @@ dgux*) 936@@ -24016,7 +24100,7 @@ dgux*)
905 shlibpath_var=LD_LIBRARY_PATH 937 shlibpath_var=LD_LIBRARY_PATH
906 ;; 938 ;;
907  939
908-freebsd* | dragonfly* | midnightbsd*) 940-freebsd* | dragonfly* | midnightbsd*)
909+freebsd* | midnightbsd*) 941+freebsd* | midnightbsd*)
910 # DragonFly does not have aout. When/if they implement a new 942 # DragonFly does not have aout. When/if they implement a new
911 # versioning mechanism, adjust this. 943 # versioning mechanism, adjust this.
912 if test -x /usr/bin/objformat; then 944 if test -x /usr/bin/objformat; then
913@@ -24061,6 +24168,17 @@ freebsd* | dragonfly* | midnightbsd*) 945@@ -24061,6 +24145,17 @@ freebsd* | dragonfly* | midnightbsd*)
914 esac 946 esac
915 ;; 947 ;;
916  948
917+dragonfly*) 949+dragonfly*)
918+ version_type=linux 950+ version_type=linux
919+ need_version=no 951+ need_version=no
920+ need_lib_prefix=no 952+ need_lib_prefix=no
921+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 953+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
922+ soname_spec='${libname}${release}${shared_ext}$major' 954+ soname_spec='${libname}${release}${shared_ext}$major'
923+ shlibpath_var=LD_LIBRARY_PATH 955+ shlibpath_var=LD_LIBRARY_PATH
924+ shlibpath_overrides_runpath=no 956+ shlibpath_overrides_runpath=no
925+ hardcode_into_libs=yes 957+ hardcode_into_libs=yes
926+ ;; 958+ ;;
927+ 959+
928 haiku*) 960 haiku*)
929 version_type=linux # correct to gnu/linux during the next big refactor 961 version_type=linux # correct to gnu/linux during the next big refactor
930 need_lib_prefix=no 962 need_lib_prefix=no
931@@ -24138,12 +24256,7 @@ interix[3-9]*) 963@@ -24138,12 +24233,7 @@ interix[3-9]*)
932 irix5* | irix6* | nonstopux*) 964 irix5* | irix6* | nonstopux*)
933 case $host_os in 965 case $host_os in
934 nonstopux*) version_type=nonstopux ;; 966 nonstopux*) version_type=nonstopux ;;
935- *) 967- *)
936- if test yes = "$lt_cv_prog_gnu_ld"; then 968- if test yes = "$lt_cv_prog_gnu_ld"; then
937- version_type=linux # correct to gnu/linux during the next big refactor 969- version_type=linux # correct to gnu/linux during the next big refactor
938- else 970- else
939- version_type=irix 971- version_type=irix
940- fi ;; 972- fi ;;
941+ *) version_type=irix ;; 973+ *) version_type=irix ;;
942 esac 974 esac
943 need_lib_prefix=no 975 need_lib_prefix=no
944 need_version=no 976 need_version=no
945@@ -24261,19 +24374,25 @@ fi 977@@ -24261,19 +24351,25 @@ fi
946 dynamic_linker='GNU/Linux ld.so' 978 dynamic_linker='GNU/Linux ld.so'
947 ;; 979 ;;
948  980
949+minix*) 981+minix*)
950+ version_type=linux 982+ version_type=linux
951+ need_lib_prefix=no 983+ need_lib_prefix=no
952+ need_version=no 984+ need_version=no
953+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 985+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
954+ soname_spec='${libname}${release}${shared_ext}$major' 986+ soname_spec='${libname}${release}${shared_ext}$major'
955+ dynamic_linker='Minix ld.elf_so' 987+ dynamic_linker='Minix ld.elf_so'
956+ shlibpath_var=LD_LIBRARY_PATH 988+ shlibpath_var=LD_LIBRARY_PATH
957+ shlibpath_overrides_runpath=yes 989+ shlibpath_overrides_runpath=yes
958+ hardcode_into_libs=yes 990+ hardcode_into_libs=yes
@@ -968,255 +1000,255 @@ DO NOT MODIFY THIS PATCH MANUALLY! YOUR @@ -968,255 +1000,255 @@ DO NOT MODIFY THIS PATCH MANUALLY! YOUR
968- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 1000- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
969- dynamic_linker='NetBSD (a.out) ld.so' 1001- dynamic_linker='NetBSD (a.out) ld.so'
970- else 1002- else
971- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 1003- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
972- soname_spec='$libname$release$shared_ext$major' 1004- soname_spec='$libname$release$shared_ext$major'
973- dynamic_linker='NetBSD ld.elf_so' 1005- dynamic_linker='NetBSD ld.elf_so'
974- fi 1006- fi
975+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1007+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
976+ soname_spec='${libname}${release}${shared_ext}$major' 1008+ soname_spec='${libname}${release}${shared_ext}$major'
977+ dynamic_linker='NetBSD ld.elf_so' 1009+ dynamic_linker='NetBSD ld.elf_so'
978 shlibpath_var=LD_LIBRARY_PATH 1010 shlibpath_var=LD_LIBRARY_PATH
979 shlibpath_overrides_runpath=yes 1011 shlibpath_overrides_runpath=yes
980 hardcode_into_libs=yes 1012 hardcode_into_libs=yes
981@@ -24299,7 +24418,7 @@ newsos6) 1013@@ -24299,7 +24395,7 @@ newsos6)
982 ;; 1014 ;;
983  1015
984 openbsd* | bitrig*) 1016 openbsd* | bitrig*)
985- version_type=sunos 1017- version_type=sunos
986+ version_type=linux 1018+ version_type=linux
987 sys_lib_dlsearch_path_spec=/usr/lib 1019 sys_lib_dlsearch_path_spec=/usr/lib
988 need_lib_prefix=no 1020 need_lib_prefix=no
989 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 1021 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
990@@ -24307,7 +24426,7 @@ openbsd* | bitrig*) 1022@@ -24307,7 +24403,7 @@ openbsd* | bitrig*)
991 else 1023 else
992 need_version=yes 1024 need_version=yes
993 fi 1025 fi
994- library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 1026- library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
995+ library_names_spec='$libname$release$shared_ext$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1027+ library_names_spec='$libname$release$shared_ext$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
996 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 1028 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
997 shlibpath_var=LD_LIBRARY_PATH 1029 shlibpath_var=LD_LIBRARY_PATH
998 shlibpath_overrides_runpath=yes 1030 shlibpath_overrides_runpath=yes
999@@ -24858,9 +24977,16 @@ lt_prog_compiler_static_GO= 1031@@ -24858,9 +24954,16 @@ lt_prog_compiler_static_GO=
1000 ;; 1032 ;;
1001  1033
1002 darwin* | rhapsody*) 1034 darwin* | rhapsody*)
1003- # PIC is the default on this platform 1035- # PIC is the default on this platform
1004+ # PIC is the default on this platform, and static linking of 1036+ # PIC is the default on this platform, and static linking of
1005+ # binaries generally doesn't work 1037+ # binaries generally doesn't work
1006 # Common symbols not allowed in MH_DYLIB files 1038 # Common symbols not allowed in MH_DYLIB files
1007 lt_prog_compiler_pic_GO='-fno-common' 1039 lt_prog_compiler_pic_GO='-fno-common'
1008+ lt_prog_compiler_static_GO='' 1040+ lt_prog_compiler_static_GO=''
1009+ ;; 1041+ ;;
1010+ 1042+
1011+ *mint*) 1043+ *mint*)
1012+ # FreeMiNT does not support shared libraries at all 1044+ # FreeMiNT does not support shared libraries at all
1013+ lt_prog_compiler_pic_GO= 1045+ lt_prog_compiler_pic_GO=
1014 ;; 1046 ;;
1015  1047
1016 haiku*) 1048 haiku*)
1017@@ -24888,6 +25014,13 @@ lt_prog_compiler_static_GO= 1049@@ -24888,6 +24991,13 @@ lt_prog_compiler_static_GO=
1018 # Instead, we relocate shared libraries at runtime. 1050 # Instead, we relocate shared libraries at runtime.
1019 ;; 1051 ;;
1020  1052
1021+ mint*) 1053+ mint*)
1022+ # Just because we use GCC doesn't mean we suddenly get shared libraries 1054+ # Just because we use GCC doesn't mean we suddenly get shared libraries
1023+ # on systems that don't support them. 1055+ # on systems that don't support them.
1024+ lt_prog_compiler_can_build_shared_GO=no 1056+ lt_prog_compiler_can_build_shared_GO=no
1025+ enable_shared=no 1057+ enable_shared=no
1026+ ;; 1058+ ;;
1027+ 1059+
1028 msdosdjgpp*) 1060 msdosdjgpp*)
1029 # Just because we use GCC doesn't mean we suddenly get shared libraries 1061 # Just because we use GCC doesn't mean we suddenly get shared libraries
1030 # on systems that don't support them. 1062 # on systems that don't support them.
1031@@ -25140,6 +25273,9 @@ lt_prog_compiler_static_GO= 1063@@ -25140,6 +25250,9 @@ lt_prog_compiler_static_GO=
1032  1064
1033 case $host_os in 1065 case $host_os in
1034 # For platforms that do not support PIC, -DPIC is meaningless: 1066 # For platforms that do not support PIC, -DPIC is meaningless:
1035+ mint*) 1067+ mint*)
1036+ lt_prog_compiler_pic_GO= 1068+ lt_prog_compiler_pic_GO=
1037+ ;; 1069+ ;;
1038 *djgpp*) 1070 *djgpp*)
1039 lt_prog_compiler_pic_GO= 1071 lt_prog_compiler_pic_GO=
1040 ;; 1072 ;;
1041@@ -25704,14 +25840,13 @@ _LT_EOF 1073@@ -25704,14 +25817,13 @@ _LT_EOF
1042 fi 1074 fi
1043 ;; 1075 ;;
1044  1076
1045- netbsd*) 1077- netbsd*)
1046- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 1078- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1047- archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 1079- archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
1048- wlarc= 1080- wlarc=
1049- else 1081- else
1050- archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 1082- archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1051- archive_expsym_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 1083- archive_expsym_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1052- fi 1084- fi
1053+ netbsd* | minix*) 1085+ netbsd* | minix*)
1054+ archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 1086+ archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1055+ archive_expsym_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 1087+ archive_expsym_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1056+ hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir' 1088+ hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
1057+ hardcode_direct_GO=yes 1089+ hardcode_direct_GO=yes
1058+ hardcode_shlibpath_var_GO=no 1090+ hardcode_shlibpath_var_GO=no
1059+ output_verbose_link_cmd=func_echo_all 1091+ output_verbose_link_cmd=func_echo_all
1060 ;; 1092 ;;
1061  1093
1062 solaris*) 1094 solaris*)
1063@@ -26173,7 +26308,7 @@ fi 1095@@ -26173,7 +26285,7 @@ fi
1064 allow_undefined_flag_GO=$_lt_dar_allow_undefined 1096 allow_undefined_flag_GO=$_lt_dar_allow_undefined
1065 case $cc_basename in 1097 case $cc_basename in
1066 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 1098 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
1067- *) _lt_dar_can_shared=$GCC ;; 1099- *) _lt_dar_can_shared=$GCC ;;
1068+ *) _lt_dar_can_shared=yes ;; 1100+ *) _lt_dar_can_shared=yes ;;
1069 esac 1101 esac
1070 if test yes = "$_lt_dar_can_shared"; then 1102 if test yes = "$_lt_dar_can_shared"; then
1071 output_verbose_link_cmd=func_echo_all 1103 output_verbose_link_cmd=func_echo_all
1072@@ -26356,15 +26491,13 @@ $as_echo "$lt_cv_irix_exported_symbol" > 1104@@ -26356,15 +26468,13 @@ $as_echo "$lt_cv_irix_exported_symbol" >
1073 esac 1105 esac
1074 ;; 1106 ;;
1075  1107
1076- netbsd*) 1108- netbsd*)
1077- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 1109- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1078- archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 1110- archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
1079- else 1111- else
1080- archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 1112- archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
1081- fi 1113- fi
1082- hardcode_libdir_flag_spec_GO='-R$libdir' 1114- hardcode_libdir_flag_spec_GO='-R$libdir'
1083+ netbsd* | minix*) 1115+ netbsd* | minix*)
1084+ archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 1116+ archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1085+ archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 1117+ archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1086+ hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir' 1118+ hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
1087 hardcode_direct_GO=yes 1119 hardcode_direct_GO=yes
1088 hardcode_shlibpath_var_GO=no 1120 hardcode_shlibpath_var_GO=no
1089+ output_verbose_link_cmd=func_echo_all 1121+ output_verbose_link_cmd=func_echo_all
1090 ;; 1122 ;;
1091  1123
1092 newsos6) 1124 newsos6)
1093@@ -26376,6 +26509,11 @@ $as_echo "$lt_cv_irix_exported_symbol" > 1125@@ -26376,6 +26486,11 @@ $as_echo "$lt_cv_irix_exported_symbol" >
1094 ;; 1126 ;;
1095  1127
1096 *nto* | *qnx*) 1128 *nto* | *qnx*)
1097+ archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 1129+ archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1098+ archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 1130+ archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1099+ hardcode_libdir_flag_spec_GO='-R$libdir' 1131+ hardcode_libdir_flag_spec_GO='-R$libdir'
1100+ hardcode_direct_GO=yes 1132+ hardcode_direct_GO=yes
1101+ hardcode_shlibpath_var_GO=no 1133+ hardcode_shlibpath_var_GO=no
1102 ;; 1134 ;;
1103  1135
1104 openbsd* | bitrig*) 1136 openbsd* | bitrig*)
1105@@ -27087,9 +27225,16 @@ lt_prog_compiler_static_GCJ= 1137@@ -27087,9 +27202,16 @@ lt_prog_compiler_static_GCJ=
1106 ;; 1138 ;;
1107  1139
1108 darwin* | rhapsody*) 1140 darwin* | rhapsody*)
1109- # PIC is the default on this platform 1141- # PIC is the default on this platform
1110+ # PIC is the default on this platform, and static linking of 1142+ # PIC is the default on this platform, and static linking of
1111+ # binaries generally doesn't work 1143+ # binaries generally doesn't work
1112 # Common symbols not allowed in MH_DYLIB files 1144 # Common symbols not allowed in MH_DYLIB files
1113 lt_prog_compiler_pic_GCJ='-fno-common' 1145 lt_prog_compiler_pic_GCJ='-fno-common'
1114+ lt_prog_compiler_static_GCJ='' 1146+ lt_prog_compiler_static_GCJ=''
1115+ ;; 1147+ ;;
1116+ 1148+
1117+ *mint*) 1149+ *mint*)
1118+ # FreeMiNT does not support shared libraries at all 1150+ # FreeMiNT does not support shared libraries at all
1119+ lt_prog_compiler_pic_GCJ= 1151+ lt_prog_compiler_pic_GCJ=
1120 ;; 1152 ;;
1121  1153
1122 haiku*) 1154 haiku*)
1123@@ -27117,6 +27262,13 @@ lt_prog_compiler_static_GCJ= 1155@@ -27117,6 +27239,13 @@ lt_prog_compiler_static_GCJ=
1124 # Instead, we relocate shared libraries at runtime. 1156 # Instead, we relocate shared libraries at runtime.
1125 ;; 1157 ;;
1126  1158
1127+ mint*) 1159+ mint*)
1128+ # Just because we use GCC doesn't mean we suddenly get shared libraries 1160+ # Just because we use GCC doesn't mean we suddenly get shared libraries
1129+ # on systems that don't support them. 1161+ # on systems that don't support them.
1130+ lt_prog_compiler_can_build_shared_GCJ=no 1162+ lt_prog_compiler_can_build_shared_GCJ=no
1131+ enable_shared=no 1163+ enable_shared=no
1132+ ;; 1164+ ;;
1133+ 1165+
1134 msdosdjgpp*) 1166 msdosdjgpp*)
1135 # Just because we use GCC doesn't mean we suddenly get shared libraries 1167 # Just because we use GCC doesn't mean we suddenly get shared libraries
1136 # on systems that don't support them. 1168 # on systems that don't support them.
1137@@ -27369,6 +27521,9 @@ lt_prog_compiler_static_GCJ= 1169@@ -27369,6 +27498,9 @@ lt_prog_compiler_static_GCJ=
1138  1170
1139 case $host_os in 1171 case $host_os in
1140 # For platforms that do not support PIC, -DPIC is meaningless: 1172 # For platforms that do not support PIC, -DPIC is meaningless:
1141+ mint*) 1173+ mint*)
1142+ lt_prog_compiler_pic_GCJ= 1174+ lt_prog_compiler_pic_GCJ=
1143+ ;; 1175+ ;;
1144 *djgpp*) 1176 *djgpp*)
1145 lt_prog_compiler_pic_GCJ= 1177 lt_prog_compiler_pic_GCJ=
1146 ;; 1178 ;;
1147@@ -27933,14 +28088,13 @@ _LT_EOF 1179@@ -27933,14 +28065,13 @@ _LT_EOF
1148 fi 1180 fi
1149 ;; 1181 ;;
1150  1182
1151- netbsd*) 1183- netbsd*)
1152- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 1184- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1153- archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 1185- archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
1154- wlarc= 1186- wlarc=
1155- else 1187- else
1156- archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 1188- archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1157- archive_expsym_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 1189- archive_expsym_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1158- fi 1190- fi
1159+ netbsd* | minix*) 1191+ netbsd* | minix*)
1160+ archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 1192+ archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1161+ archive_expsym_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 1193+ archive_expsym_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1162+ hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 1194+ hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
1163+ hardcode_direct_GCJ=yes 1195+ hardcode_direct_GCJ=yes
1164+ hardcode_shlibpath_var_GCJ=no 1196+ hardcode_shlibpath_var_GCJ=no
1165+ output_verbose_link_cmd=func_echo_all 1197+ output_verbose_link_cmd=func_echo_all
1166 ;; 1198 ;;
1167  1199
1168 solaris*) 1200 solaris*)
1169@@ -28402,7 +28556,7 @@ fi 1201@@ -28402,7 +28533,7 @@ fi
1170 allow_undefined_flag_GCJ=$_lt_dar_allow_undefined 1202 allow_undefined_flag_GCJ=$_lt_dar_allow_undefined
1171 case $cc_basename in 1203 case $cc_basename in
1172 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 1204 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
1173- *) _lt_dar_can_shared=$GCC ;; 1205- *) _lt_dar_can_shared=$GCC ;;
1174+ *) _lt_dar_can_shared=yes ;; 1206+ *) _lt_dar_can_shared=yes ;;
1175 esac 1207 esac
1176 if test yes = "$_lt_dar_can_shared"; then 1208 if test yes = "$_lt_dar_can_shared"; then
1177 output_verbose_link_cmd=func_echo_all 1209 output_verbose_link_cmd=func_echo_all
1178@@ -28585,15 +28739,13 @@ $as_echo "$lt_cv_irix_exported_symbol" > 1210@@ -28585,15 +28716,13 @@ $as_echo "$lt_cv_irix_exported_symbol" >
1179 esac 1211 esac
1180 ;; 1212 ;;
1181  1213
1182- netbsd*) 1214- netbsd*)
1183- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 1215- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1184- archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 1216- archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
1185- else 1217- else
1186- archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 1218- archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
1187- fi 1219- fi
1188- hardcode_libdir_flag_spec_GCJ='-R$libdir' 1220- hardcode_libdir_flag_spec_GCJ='-R$libdir'
1189+ netbsd* | minix*) 1221+ netbsd* | minix*)
1190+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 1222+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1191+ archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 1223+ archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1192+ hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 1224+ hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
1193 hardcode_direct_GCJ=yes 1225 hardcode_direct_GCJ=yes
1194 hardcode_shlibpath_var_GCJ=no 1226 hardcode_shlibpath_var_GCJ=no
1195+ output_verbose_link_cmd=func_echo_all 1227+ output_verbose_link_cmd=func_echo_all
1196 ;; 1228 ;;
1197  1229
1198 newsos6) 1230 newsos6)
1199@@ -28605,6 +28757,11 @@ $as_echo "$lt_cv_irix_exported_symbol" > 1231@@ -28605,6 +28734,11 @@ $as_echo "$lt_cv_irix_exported_symbol" >
1200 ;; 1232 ;;
1201  1233
1202 *nto* | *qnx*) 1234 *nto* | *qnx*)
1203+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 1235+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1204+ archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 1236+ archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1205+ hardcode_libdir_flag_spec_GCJ='-R$libdir' 1237+ hardcode_libdir_flag_spec_GCJ='-R$libdir'
1206+ hardcode_direct_GCJ=yes 1238+ hardcode_direct_GCJ=yes
1207+ hardcode_shlibpath_var_GCJ=no 1239+ hardcode_shlibpath_var_GCJ=no
1208 ;; 1240 ;;
1209  1241
1210 openbsd* | bitrig*) 1242 openbsd* | bitrig*)
1211@@ -32371,7 +32528,10 @@ func_cc_basename () 1243@@ -32371,7 +32505,10 @@ func_cc_basename ()
1212 *) break;; 1244 *) break;;
1213 esac 1245 esac
1214 done 1246 done
1215- func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 1247- func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1216+ # Return the actual command name, not our pkgsrc wrapper name because several 1248+ # Return the actual command name, not our pkgsrc wrapper name because several
1217+ # decisions are made only based on compiler names 1249+ # decisions are made only based on compiler names
1218+ if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi 1250+ if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi
1219+ func_cc_basename_result=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 1251+ func_cc_basename_result=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1220 } 1252 }
1221  1253
1222  1254