Sun Jun 15 14:42:05 2014 UTC ()
Don't use -nostdlib for C++ with GCC on Solaris. Bump revision of
libtool-base.


(joerg)
diff -r1.93 -r1.94 pkgsrc/devel/libtool/distinfo
diff -r1.108 -r1.109 pkgsrc/devel/libtool-base/Makefile
diff -r1.40 -r1.41 pkgsrc/devel/libtool/patches/manual-libtool.m4
diff -r1.80 -r1.81 pkgsrc/devel/libtool/patches/patch-ab

cvs diff -r1.93 -r1.94 pkgsrc/devel/libtool/distinfo (switch to unified diff)

--- pkgsrc/devel/libtool/distinfo 2014/05/11 13:23:03 1.93
+++ pkgsrc/devel/libtool/distinfo 2014/06/15 14:42:05 1.94
@@ -1,9 +1,9 @@ @@ -1,9 +1,9 @@
1$NetBSD: distinfo,v 1.93 2014/05/11 13:23:03 taca Exp $ 1$NetBSD: distinfo,v 1.94 2014/06/15 14:42:05 joerg Exp $
2 2
3SHA1 (libtool-2.4.2.tar.gz) = 22b71a8b5ce3ad86e1094e7285981cae10e6ff88 3SHA1 (libtool-2.4.2.tar.gz) = 22b71a8b5ce3ad86e1094e7285981cae10e6ff88
4RMD160 (libtool-2.4.2.tar.gz) = b7153f3f1e1c50d8c04787cafccd4e19af62ec7d 4RMD160 (libtool-2.4.2.tar.gz) = b7153f3f1e1c50d8c04787cafccd4e19af62ec7d
5Size (libtool-2.4.2.tar.gz) = 2632347 bytes 5Size (libtool-2.4.2.tar.gz) = 2632347 bytes
6SHA1 (patch-aa) = 8fa167bebf27b7bc3008edd61408a0aede6bdf69 6SHA1 (patch-aa) = 8fa167bebf27b7bc3008edd61408a0aede6bdf69
7SHA1 (patch-ab) = cf6e8852b6c9eb04256904085f4ee6fefc470a02 7SHA1 (patch-ab) = ccb33a6e3075908ab7ecf56836349baec8ac85ca
8SHA1 (patch-ac) = 108989e3f1ee199fa8e8a9dc7331d360c586a800 8SHA1 (patch-ac) = 108989e3f1ee199fa8e8a9dc7331d360c586a800
9SHA1 (patch-ad) = 48c3832e9205777832ef2a6334033ff6099be8a4 9SHA1 (patch-ad) = 48c3832e9205777832ef2a6334033ff6099be8a4

cvs diff -r1.108 -r1.109 pkgsrc/devel/libtool-base/Makefile (switch to unified diff)

--- pkgsrc/devel/libtool-base/Makefile 2014/05/10 15:32:08 1.108
+++ pkgsrc/devel/libtool-base/Makefile 2014/06/15 14:42:05 1.109
@@ -1,90 +1,90 @@ @@ -1,90 +1,90 @@
1# $NetBSD: Makefile,v 1.108 2014/05/10 15:32:08 joerg Exp $ 1# $NetBSD: Makefile,v 1.109 2014/06/15 14:42:05 joerg Exp $
2 2
3########################################################################### 3###########################################################################
4########################################################################### 4###########################################################################
5# 5#
6# HEADS UP! DO NOT CHANGE THE VERSION OR PKGREVISION WITHOUT READING THIS: 6# HEADS UP! DO NOT CHANGE THE VERSION OR PKGREVISION WITHOUT READING THIS:
7# 7#
8########################################################################### 8###########################################################################
9########################################################################### 9###########################################################################
10# 10#
11# This package is maintained specially in order to preserve pkgsrc 11# This package is maintained specially in order to preserve pkgsrc
12# specific OS changes that diverge from the "out of the box" libtool. 12# specific OS changes that diverge from the "out of the box" libtool.
13# In order to keep this package in a maintainable condition, the .m4 files 13# In order to keep this package in a maintainable condition, the .m4 files
14# must be manipulated in order to generate the patch-* files. 14# must be manipulated in order to generate the patch-* files.
15# 15#
16# See devel/libtool/patches/manual.README for instructions on how to make 16# See devel/libtool/patches/manual.README for instructions on how to make
17# these patch files properly; otherwise your changes WILL be lost on the 17# these patch files properly; otherwise your changes WILL be lost on the
18# next libtool update. 18# next libtool update.
19# 19#
20# DO NOT MAKE CHANGES TO patch-ab OR patch-ad WITHOUT FOLLOWING THESE 20# DO NOT MAKE CHANGES TO patch-ab OR patch-ad WITHOUT FOLLOWING THESE
21# INSTRUCTIONS. There are no exceptions to this rule. 21# INSTRUCTIONS. There are no exceptions to this rule.
22# 22#
23########################################################################### 23###########################################################################
24########################################################################### 24###########################################################################
25 25
26.include "../../devel/libtool/Makefile.common" 26.include "../../devel/libtool/Makefile.common"
27 27
28PKGNAME= ${DISTNAME:S/-/-base-/} 28PKGNAME= ${DISTNAME:S/-/-base-/}
29PKGREVISION= 6 29PKGREVISION= 7
30SVR4_PKGNAME= ltoob 30SVR4_PKGNAME= ltoob
31 31
32COMMENT= Generic shared library support script (the script itself) 32COMMENT= Generic shared library support script (the script itself)
33 33
34CONFLICTS+= libtool<=1.3.5nb11 34CONFLICTS+= libtool<=1.3.5nb11
35 35
36TEST_TARGET= check 36TEST_TARGET= check
37 37
38OVERRIDE_DIRDEPTH.install-sh= 1 38OVERRIDE_DIRDEPTH.install-sh= 1
39 39
40.if ${OPSYS} == "AIX" 40.if ${OPSYS} == "AIX"
41 41
42# always build libraries and executables that use the runtime linker. 42# always build libraries and executables that use the runtime linker.
43# in addition, disable libtool locking, as the test is broken on AIX, 43# in addition, disable libtool locking, as the test is broken on AIX,
44# and results in files being locked indefinitely. 44# and results in files being locked indefinitely.
45LDFLAGS+= -Wl,-brtl 45LDFLAGS+= -Wl,-brtl
46CONFIGURE_ARGS+= --disable-libtool-lock 46CONFIGURE_ARGS+= --disable-libtool-lock
47 47
48.elif ${OPSYS} == "IRIX" 48.elif ${OPSYS} == "IRIX"
49 49
50# The MIPSpro compiler doesn't support -c with -o, but the locking 50# The MIPSpro compiler doesn't support -c with -o, but the locking
51# workaround is itself broken. Disable it unconditionally. 51# workaround is itself broken. Disable it unconditionally.
52CONFIGURE_ARGS+= --disable-libtool-lock 52CONFIGURE_ARGS+= --disable-libtool-lock
53 53
54.elif ${OPSYS} == "SunOS" 54.elif ${OPSYS} == "SunOS"
55CFLAGS+= ${_COMPILER_ABI_FLAG.${ABI}} 55CFLAGS+= ${_COMPILER_ABI_FLAG.${ABI}}
56.endif 56.endif
57 57
58# We are going to want libtool to find the same versions of the C, C++, 58# We are going to want libtool to find the same versions of the C, C++,
59# and Fortran compilers. 59# and Fortran compilers.
60# 60#
61USE_LANGUAGES= c c++ 61USE_LANGUAGES= c c++
62CONFIGURE_ARGS+= --disable-ltdl-install 62CONFIGURE_ARGS+= --disable-ltdl-install
63CONFIGURE_ARGS+= F77=no FC=no 63CONFIGURE_ARGS+= F77=no FC=no
64 64
65USE_TOOLS+= echo 65USE_TOOLS+= echo
66 66
67.PHONY: fix-libtool 67.PHONY: fix-libtool
68fix-libtool: 68fix-libtool:
69 cd ${WRKSRC}; for f in libtool; do \ 69 cd ${WRKSRC}; for f in libtool; do \
70 ${SED} -e "s,-L${BUILDLINK_DIR}/lib *,," \ 70 ${SED} -e "s,-L${BUILDLINK_DIR}/lib *,," \
71 -e "s,${BUILDLINK_DIR}/lib *,," \ 71 -e "s,${BUILDLINK_DIR}/lib *,," \
72 $$f > $$f.new; \ 72 $$f > $$f.new; \
73 if [ -x $$f ]; then ${CHMOD} +x $$f.new; fi; \ 73 if [ -x $$f ]; then ${CHMOD} +x $$f.new; fi; \
74 ${MV} -f $$f.new $$f; \ 74 ${MV} -f $$f.new $$f; \
75 done 75 done
76 76
77post-build: fix-libtool 77post-build: fix-libtool
78 78
79post-build: 79post-build:
80 @${SED} -e "s|@PREFIX@|"${PREFIX:Q}"|g" \ 80 @${SED} -e "s|@PREFIX@|"${PREFIX:Q}"|g" \
81 -e "s|@SH@|"${SH:Q}"|g" \ 81 -e "s|@SH@|"${SH:Q}"|g" \
82 ${FILESDIR}/shlibtool.in > ${WRKSRC}/shlibtool 82 ${FILESDIR}/shlibtool.in > ${WRKSRC}/shlibtool
83 83
84post-install: 84post-install:
85 ${INSTALL_SCRIPT} ${WRKSRC}/shlibtool ${DESTDIR}${PREFIX}/bin/shlibtool 85 ${INSTALL_SCRIPT} ${WRKSRC}/shlibtool ${DESTDIR}${PREFIX}/bin/shlibtool
86 86
87BUILDLINK_DEPMETHOD.dlcompat= build 87BUILDLINK_DEPMETHOD.dlcompat= build
88 88
89.include "../../mk/dlopen.buildlink3.mk" 89.include "../../mk/dlopen.buildlink3.mk"
90.include "../../mk/bsd.pkg.mk" 90.include "../../mk/bsd.pkg.mk"

cvs diff -r1.40 -r1.41 pkgsrc/devel/libtool/patches/manual-libtool.m4 (switch to unified diff)

--- pkgsrc/devel/libtool/patches/manual-libtool.m4 2014/05/10 15:32:08 1.40
+++ pkgsrc/devel/libtool/patches/manual-libtool.m4 2014/06/15 14:42:05 1.41
@@ -1,450 +1,460 @@ @@ -1,450 +1,460 @@
1$NetBSD: manual-libtool.m4,v 1.40 2014/05/10 15:32:08 joerg Exp $ 1$NetBSD: manual-libtool.m4,v 1.41 2014/06/15 14:42:05 joerg Exp $
2 2
3--- libltdl/m4/libtool.m4.orig 2011-10-17 10:17:05.000000000 +0000 3--- libltdl/m4/libtool.m4.orig 2011-10-17 10:17:05.000000000 +0000
4+++ libltdl/m4/libtool.m4 4+++ libltdl/m4/libtool.m4
5--- libtool.m4.orig 2011-10-17 10:17:05.000000000 +0000 
6+++ libtool.m4 
7@@ -123,7 +123,10 @@ m4_defun([_LT_CC_BASENAME], 5@@ -123,7 +123,10 @@ m4_defun([_LT_CC_BASENAME],
8 *) break;; 6 *) break;;
9 esac 7 esac
10 done 8 done
11-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12+# Return the actual command name, not our pkgsrc wrapper name because several 10+# Return the actual command name, not our pkgsrc wrapper name because several
13+# decisions are made only based on compiler names 11+# decisions are made only based on compiler names
14+if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi 12+if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi
15+cc_basename=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13+cc_basename=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16 ]) 14 ])
17  15
18  16
19@@ -1098,7 +1101,7 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES], 17@@ -1098,7 +1101,7 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES],
20 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" 18 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
21 case $cc_basename in 19 case $cc_basename in
22 ifort*) _lt_dar_can_shared=yes ;; 20 ifort*) _lt_dar_can_shared=yes ;;
23- *) _lt_dar_can_shared=$GCC ;; 21- *) _lt_dar_can_shared=$GCC ;;
24+ *) _lt_dar_can_shared=yes ;; 22+ *) _lt_dar_can_shared=yes ;;
25 esac 23 esac
26 if test "$_lt_dar_can_shared" = "yes"; then 24 if test "$_lt_dar_can_shared" = "yes"; then
27 output_verbose_link_cmd=func_echo_all 25 output_verbose_link_cmd=func_echo_all
28@@ -1482,7 +1485,7 @@ fi 26@@ -1482,7 +1485,7 @@ fi
29  27
30 case $host_os in 28 case $host_os in
31 darwin*) 29 darwin*)
32- lock_old_archive_extraction=yes ;; 30- lock_old_archive_extraction=yes ;;
33+ lock_old_archive_extraction=no ;; # work around bug #14579 31+ lock_old_archive_extraction=no ;; # work around bug #14579
34 *) 32 *)
35 lock_old_archive_extraction=no ;; 33 lock_old_archive_extraction=no ;;
36 esac 34 esac
37@@ -1638,7 +1641,7 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [d 35@@ -1638,7 +1641,7 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [d
38 lt_cv_sys_max_cmd_len=8192; 36 lt_cv_sys_max_cmd_len=8192;
39 ;; 37 ;;
40  38
41- netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 39- netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
42+ netbsd* | freebsd* | openbsd* | mirbsd* | darwin* | dragonfly*) 40+ netbsd* | freebsd* | openbsd* | mirbsd* | darwin* | dragonfly*)
43 # This has been around since 386BSD, at least. Likely further. 41 # This has been around since 386BSD, at least. Likely further.
44 if test -x /sbin/sysctl; then 42 if test -x /sbin/sysctl; then
45 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 43 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
46@@ -2468,7 +2471,7 @@ dgux*) 44@@ -2468,7 +2471,7 @@ dgux*)
47 shlibpath_var=LD_LIBRARY_PATH 45 shlibpath_var=LD_LIBRARY_PATH
48 ;; 46 ;;
49  47
50-freebsd* | dragonfly*) 48-freebsd* | dragonfly*)
51+freebsd*) 49+freebsd*)
52 # DragonFly does not have aout. When/if they implement a new 50 # DragonFly does not have aout. When/if they implement a new
53 # versioning mechanism, adjust this. 51 # versioning mechanism, adjust this.
54 if test -x /usr/bin/objformat; then 52 if test -x /usr/bin/objformat; then
55@@ -2482,7 +2485,7 @@ freebsd* | dragonfly*) 53@@ -2482,7 +2485,7 @@ freebsd* | dragonfly*)
56 version_type=freebsd-$objformat 54 version_type=freebsd-$objformat
57 case $version_type in 55 case $version_type in
58 freebsd-elf*) 56 freebsd-elf*)
59- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 57- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
60+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 58+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
61 need_version=no 59 need_version=no
62 need_lib_prefix=no 60 need_lib_prefix=no
63 ;; 61 ;;
64@@ -2505,13 +2508,24 @@ freebsd* | dragonfly*) 62@@ -2505,13 +2508,24 @@ freebsd* | dragonfly*)
65 shlibpath_overrides_runpath=no 63 shlibpath_overrides_runpath=no
66 hardcode_into_libs=yes 64 hardcode_into_libs=yes
67 ;; 65 ;;
68- *) # from 4.6 on, and DragonFly 66- *) # from 4.6 on, and DragonFly
69+ *) # from 4.6 on 67+ *) # from 4.6 on
70 shlibpath_overrides_runpath=yes 68 shlibpath_overrides_runpath=yes
71 hardcode_into_libs=yes 69 hardcode_into_libs=yes
72 ;; 70 ;;
73 esac 71 esac
74 ;; 72 ;;
75  73
76+dragonfly*) 74+dragonfly*)
77+ version_type=linux 75+ version_type=linux
78+ need_version=no 76+ need_version=no
79+ need_lib_prefix=no 77+ need_lib_prefix=no
80+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 78+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
81+ soname_spec='${libname}${release}${shared_ext}$major' 79+ soname_spec='${libname}${release}${shared_ext}$major'
82+ shlibpath_var=LD_LIBRARY_PATH 80+ shlibpath_var=LD_LIBRARY_PATH
83+ shlibpath_overrides_runpath=no 81+ shlibpath_overrides_runpath=no
84+ hardcode_into_libs=yes 82+ hardcode_into_libs=yes
85+ ;; 83+ ;;
86+ 84+
87 gnu*) 85 gnu*)
88 version_type=linux # correct to gnu/linux during the next big refactor 86 version_type=linux # correct to gnu/linux during the next big refactor
89 need_lib_prefix=no 87 need_lib_prefix=no
90@@ -2599,12 +2613,7 @@ interix[[3-9]]*) 88@@ -2599,12 +2613,7 @@ interix[[3-9]]*)
91 irix5* | irix6* | nonstopux*) 89 irix5* | irix6* | nonstopux*)
92 case $host_os in 90 case $host_os in
93 nonstopux*) version_type=nonstopux ;; 91 nonstopux*) version_type=nonstopux ;;
94- *) 92- *)
95- if test "$lt_cv_prog_gnu_ld" = yes; then 93- if test "$lt_cv_prog_gnu_ld" = yes; then
96- version_type=linux # correct to gnu/linux during the next big refactor 94- version_type=linux # correct to gnu/linux during the next big refactor
97- else 95- else
98- version_type=irix 96- version_type=irix
99- fi ;; 97- fi ;;
100+ *) version_type=irix ;; 98+ *) version_type=irix ;;
101 esac 99 esac
102 need_lib_prefix=no 100 need_lib_prefix=no
103 need_version=no 101 need_version=no
104@@ -2684,19 +2693,36 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu) 102@@ -2684,19 +2693,36 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
105 dynamic_linker='GNU/Linux ld.so' 103 dynamic_linker='GNU/Linux ld.so'
106 ;; 104 ;;
107  105
108+midnightbsd*) 106+midnightbsd*)
109+ version_type=linux 107+ version_type=linux
110+ need_lib_prefix=no 108+ need_lib_prefix=no
111+ need_version=no 109+ need_version=no
112+ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${release}${shared_ext} $libname${shared_ext}' 110+ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${release}${shared_ext} $libname${shared_ext}'
113+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 111+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
114+ shlibpath_var=LD_LIBRARY_PATH 112+ shlibpath_var=LD_LIBRARY_PATH
115+ shlibpath_overrides_runpath=yes 113+ shlibpath_overrides_runpath=yes
116+ hardcode_into_libs=yes 114+ hardcode_into_libs=yes
117+ ;; 115+ ;;
118+ 116+
119+mirbsd*) 117+mirbsd*)
120+ version_type=linux 118+ version_type=linux
121+ sys_lib_search_path_spec="/usr/lib" 119+ sys_lib_search_path_spec="/usr/lib"
122+ sys_lib_dlsearch_path_spec="/usr/lib" 120+ sys_lib_dlsearch_path_spec="/usr/lib"
123+ need_lib_prefix=no 121+ need_lib_prefix=no
124+ need_version=no 122+ need_version=no
125+ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${shared_ext}${versuffix2}' 123+ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${shared_ext}${versuffix2}'
126+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 124+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
127+ shlibpath_var=LD_LIBRARY_PATH 125+ shlibpath_var=LD_LIBRARY_PATH
128+ shlibpath_overrides_runpath=yes 126+ shlibpath_overrides_runpath=yes
129+ ;; 127+ ;;
130+ 128+
131 netbsd*) 129 netbsd*)
132- version_type=sunos 130- version_type=sunos
133+ version_type=linux 131+ version_type=linux
134 need_lib_prefix=no 132 need_lib_prefix=no
135 need_version=no 133 need_version=no
136- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 134- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
137- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 135- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
138- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 136- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
139- dynamic_linker='NetBSD (a.out) ld.so' 137- dynamic_linker='NetBSD (a.out) ld.so'
140- else 138- else
141- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 139- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
142- soname_spec='${libname}${release}${shared_ext}$major' 140- soname_spec='${libname}${release}${shared_ext}$major'
143- dynamic_linker='NetBSD ld.elf_so' 141- dynamic_linker='NetBSD ld.elf_so'
144- fi 142- fi
145+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 143+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
146+ soname_spec='${libname}${release}${shared_ext}$major' 144+ soname_spec='${libname}${release}${shared_ext}$major'
147+ dynamic_linker='NetBSD ld.elf_so' 145+ dynamic_linker='NetBSD ld.elf_so'
148 shlibpath_var=LD_LIBRARY_PATH 146 shlibpath_var=LD_LIBRARY_PATH
149 shlibpath_overrides_runpath=yes 147 shlibpath_overrides_runpath=yes
150 hardcode_into_libs=yes 148 hardcode_into_libs=yes
151@@ -2722,7 +2748,7 @@ newsos6) 149@@ -2722,7 +2748,7 @@ newsos6)
152 ;; 150 ;;
153  151
154 openbsd*) 152 openbsd*)
155- version_type=sunos 153- version_type=sunos
156+ version_type=linux 154+ version_type=linux
157 sys_lib_dlsearch_path_spec="/usr/lib" 155 sys_lib_dlsearch_path_spec="/usr/lib"
158 need_lib_prefix=no 156 need_lib_prefix=no
159 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 157 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
160@@ -2730,7 +2756,7 @@ openbsd*) 158@@ -2730,7 +2756,7 @@ openbsd*)
161 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 159 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
162 *) need_version=no ;; 160 *) need_version=no ;;
163 esac 161 esac
164- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 162- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
165+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 163+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
167 shlibpath_var=LD_LIBRARY_PATH 165 shlibpath_var=LD_LIBRARY_PATH
168 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 166 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
169@@ -3289,12 +3315,19 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu) 167@@ -3289,12 +3315,19 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
170 lt_cv_deplibs_check_method=pass_all 168 lt_cv_deplibs_check_method=pass_all
171 ;; 169 ;;
172  170
173+midnightbsd*) 171+midnightbsd*)
174+ # might to use match_pattern like MirBSD, but there is no well-defined 172+ # might to use match_pattern like MirBSD, but there is no well-defined
175+ # naming scheme for libraries yet, as the current one is deprecated, and 173+ # naming scheme for libraries yet, as the current one is deprecated, and
176+ # the new one in a state of flux especially between mports and MirPorts 174+ # the new one in a state of flux especially between mports and MirPorts
177+ lt_cv_deplibs_check_method=pass_all 175+ lt_cv_deplibs_check_method=pass_all
178+ ;; 176+ ;;
179+ 177+
180+mirbsd*) 178+mirbsd*)
181+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 179+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
182+ ;; 180+ ;;
183+ 181+
184 netbsd*) 182 netbsd*)
185- if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 183- if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
186- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 184- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
187- else 185- else
188- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 186- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
189- fi 187- fi
190+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 188+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
191 ;; 189 ;;
192  190
193 newos6*) 191 newos6*)
194@@ -3304,7 +3337,7 @@ newos6*) 192@@ -3304,7 +3337,7 @@ newos6*)
195 ;; 193 ;;
196  194
197 *nto* | *qnx*) 195 *nto* | *qnx*)
198- lt_cv_deplibs_check_method=pass_all 196- lt_cv_deplibs_check_method=pass_all
199+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|S\.a)$' 197+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|S\.a)$'
200 ;; 198 ;;
201  199
202 openbsd*) 200 openbsd*)
203@@ -3913,9 +3946,15 @@ m4_if([$1], [CXX], [ 201@@ -3913,9 +3946,15 @@ m4_if([$1], [CXX], [
204 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 202 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
205 ;; 203 ;;
206 darwin* | rhapsody*) 204 darwin* | rhapsody*)
207- # PIC is the default on this platform 205- # PIC is the default on this platform
208+ # PIC is the default on this platform, and static linking of 206+ # PIC is the default on this platform, and static linking of
209+ # binaries generally doesn't work 207+ # binaries generally doesn't work
210 # Common symbols not allowed in MH_DYLIB files 208 # Common symbols not allowed in MH_DYLIB files
211 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 209 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
212+ _LT_TAGVAR(lt_prog_compiler_static, $1)='' 210+ _LT_TAGVAR(lt_prog_compiler_static, $1)=''
213+ ;; 211+ ;;
214+ *mint*) 212+ *mint*)
215+ # FreeMiNT does not support shared libraries at all 213+ # FreeMiNT does not support shared libraries at all
216+ _LT_TAGVAR(lt_prog_compiler_pic, $1)= 214+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=
217 ;; 215 ;;
218 *djgpp*) 216 *djgpp*)
219 # DJGPP does not support shared libraries at all 217 # DJGPP does not support shared libraries at all
220@@ -3994,6 +4033,9 @@ m4_if([$1], [CXX], [ 218@@ -3994,6 +4033,9 @@ m4_if([$1], [CXX], [
221 ;; 219 ;;
222 esac 220 esac
223 ;; 221 ;;
224+ mint*) 222+ mint*)
225+ # FreeMiNT uses GNU C++ 223+ # FreeMiNT uses GNU C++
226+ ;; 224+ ;;
227 freebsd* | dragonfly*) 225 freebsd* | dragonfly*)
228 # FreeBSD uses GNU C++ 226 # FreeBSD uses GNU C++
229 ;; 227 ;;
230@@ -4232,9 +4274,16 @@ m4_if([$1], [CXX], [ 228@@ -4232,9 +4274,16 @@ m4_if([$1], [CXX], [
231 ;; 229 ;;
232  230
233 darwin* | rhapsody*) 231 darwin* | rhapsody*)
234- # PIC is the default on this platform 232- # PIC is the default on this platform
235+ # PIC is the default on this platform, and static linking of 233+ # PIC is the default on this platform, and static linking of
236+ # binaries generally doesn't work 234+ # binaries generally doesn't work
237 # Common symbols not allowed in MH_DYLIB files 235 # Common symbols not allowed in MH_DYLIB files
238 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 236 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
239+ _LT_TAGVAR(lt_prog_compiler_static, $1)='' 237+ _LT_TAGVAR(lt_prog_compiler_static, $1)=''
240+ ;; 238+ ;;
241+ 239+
242+ *mint*) 240+ *mint*)
243+ # FreeMiNT does not support shared libraries at all 241+ # FreeMiNT does not support shared libraries at all
244+ _LT_TAGVAR(lt_prog_compiler_pic, $1)= 242+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=
245 ;; 243 ;;
246  244
247 haiku*) 245 haiku*)
248@@ -4262,6 +4311,13 @@ m4_if([$1], [CXX], [ 246@@ -4262,6 +4311,13 @@ m4_if([$1], [CXX], [
249 # Instead, we relocate shared libraries at runtime. 247 # Instead, we relocate shared libraries at runtime.
250 ;; 248 ;;
251  249
252+ mint*) 250+ mint*)
253+ # Just because we use GCC doesn't mean we suddenly get shared libraries 251+ # Just because we use GCC doesn't mean we suddenly get shared libraries
254+ # on systems that don't support them. 252+ # on systems that don't support them.
255+ _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 253+ _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
256+ enable_shared=no 254+ enable_shared=no
257+ ;; 255+ ;;
258+ 256+
259 msdosdjgpp*) 257 msdosdjgpp*)
260 # Just because we use GCC doesn't mean we suddenly get shared libraries 258 # Just because we use GCC doesn't mean we suddenly get shared libraries
261 # on systems that don't support them. 259 # on systems that don't support them.
262@@ -4415,6 +4471,15 @@ m4_if([$1], [CXX], [ 260@@ -4415,6 +4471,15 @@ m4_if([$1], [CXX], [
263 esac 261 esac
264 ;; 262 ;;
265  263
266+ mirbsd*) 264+ mirbsd*)
267+ case $cc_basename in 265+ case $cc_basename in
268+ # pkgsrc f77 is f2c, which uses gcc underneath. 266+ # pkgsrc f77 is f2c, which uses gcc underneath.
269+ f77*) 267+ f77*)
270+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 268+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
271+ ;; 269+ ;;
272+ esac 270+ esac
273+ ;; 271+ ;;
274+ 272+
275 newsos6) 273 newsos6)
276 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 274 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
277 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 275 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
278@@ -4490,6 +4555,9 @@ m4_if([$1], [CXX], [ 276@@ -4490,6 +4555,9 @@ m4_if([$1], [CXX], [
279 ]) 277 ])
280 case $host_os in 278 case $host_os in
281 # For platforms which do not support PIC, -DPIC is meaningless: 279 # For platforms which do not support PIC, -DPIC is meaningless:
282+ mint*) 280+ mint*)
283+ _LT_TAGVAR(lt_prog_compiler_pic, $1)= 281+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=
284+ ;; 282+ ;;
285 *djgpp*) 283 *djgpp*)
286 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 284 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
287 ;; 285 ;;
288@@ -4861,16 +4929,29 @@ _LT_EOF 286@@ -4861,16 +4929,29 @@ _LT_EOF
289 fi 287 fi
290 ;; 288 ;;
291  289
292- netbsd*) 290- netbsd*)
293- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 291- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
294- _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 292- _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
295- wlarc= 293- wlarc=
296+ mirbsd*) 294+ mirbsd*)
297+ if test -f /usr/libexec/ld.so; then 295+ if test -f /usr/libexec/ld.so; then
298+ _LT_TAGVAR(hardcode_direct, $1)=yes 296+ _LT_TAGVAR(hardcode_direct, $1)=yes
299+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 297+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
300+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 298+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
301+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 299+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
302+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 300+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
303+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 301+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
304+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 302+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
305 else 303 else
306- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 304- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
307- _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' 305- _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'
308+ _LT_TAGVAR(ld_shlibs, $1)=no 306+ _LT_TAGVAR(ld_shlibs, $1)=no
309 fi 307 fi
310 ;; 308 ;;
311  309
312+ netbsd*) 310+ netbsd*)
313+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 311+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
314+ _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' 312+ _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'
315+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 313+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
316+ _LT_TAGVAR(hardcode_direct, $1)=yes 314+ _LT_TAGVAR(hardcode_direct, $1)=yes
317+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 315+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
318+ output_verbose_link_cmd=func_echo_all 316+ output_verbose_link_cmd=func_echo_all
319+ ;; 317+ ;;
320+ 318+
321 solaris*) 319 solaris*)
322 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 320 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
323 _LT_TAGVAR(ld_shlibs, $1)=no 321 _LT_TAGVAR(ld_shlibs, $1)=no
324@@ -5342,15 +5423,28 @@ _LT_EOF 322@@ -5342,15 +5423,28 @@ _LT_EOF
325 _LT_TAGVAR(link_all_deplibs, $1)=yes 323 _LT_TAGVAR(link_all_deplibs, $1)=yes
326 ;; 324 ;;
327  325
328- netbsd*) 326- netbsd*)
329- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 327- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
330- _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 328- _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
331+ mirbsd*) 329+ mirbsd*)
332+ if test -f /usr/libexec/ld.so; then 330+ if test -f /usr/libexec/ld.so; then
333+ _LT_TAGVAR(hardcode_direct, $1)=yes 331+ _LT_TAGVAR(hardcode_direct, $1)=yes
334+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 332+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
335+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 333+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
336+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 334+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
337+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 335+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
338+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 336+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
339+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 337+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
340+ _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 338+ _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
341 else 339 else
342- _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 340- _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
343+ _LT_TAGVAR(ld_shlibs, $1)=no 341+ _LT_TAGVAR(ld_shlibs, $1)=no
344 fi 342 fi
345- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 343- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
346+ ;; 344+ ;;
347+ 345+
348+ netbsd*) 346+ netbsd*)
349+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 347+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
350+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 348+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
351+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 349+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
352 _LT_TAGVAR(hardcode_direct, $1)=yes 350 _LT_TAGVAR(hardcode_direct, $1)=yes
353 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 351 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
354+ output_verbose_link_cmd=func_echo_all 352+ output_verbose_link_cmd=func_echo_all
355 ;; 353 ;;
356  354
357 newsos6) 355 newsos6)
358@@ -5362,6 +5456,11 @@ _LT_EOF 356@@ -5362,6 +5456,11 @@ _LT_EOF
359 ;; 357 ;;
360  358
361 *nto* | *qnx*) 359 *nto* | *qnx*)
362+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 360+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
363+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 361+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
364+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 362+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
365+ _LT_TAGVAR(hardcode_direct, $1)=yes 363+ _LT_TAGVAR(hardcode_direct, $1)=yes
366+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 364+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
367 ;; 365 ;;
368  366
369 openbsd*) 367 openbsd*)
370@@ -5819,9 +5918,7 @@ m4_defun([_LT_LANG_CXX_CONFIG], 368@@ -5819,9 +5918,7 @@ m4_defun([_LT_LANG_CXX_CONFIG],
371 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl 369 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
372 m4_require([_LT_DECL_EGREP])dnl 370 m4_require([_LT_DECL_EGREP])dnl
373 m4_require([_LT_PATH_MANIFEST_TOOL])dnl 371 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
374-if test -n "$CXX" && ( test "X$CXX" != "Xno" && 372-if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
375- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 373- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
376- (test "X$CXX" != "Xg++"))) ; then 374- (test "X$CXX" != "Xg++"))) ; then
377+if test -n "$CXX" && test "X$CXX" != "Xno" ; then 375+if test -n "$CXX" && test "X$CXX" != "Xno" ; then
378 AC_PROG_CXXCPP 376 AC_PROG_CXXCPP
379 else 377 else
380 _lt_caught_CXX_error=yes 378 _lt_caught_CXX_error=yes
381@@ -6538,6 +6635,22 @@ if test "$_lt_caught_CXX_error" != yes;  379@@ -6538,6 +6635,22 @@ if test "$_lt_caught_CXX_error" != yes;
382 _LT_TAGVAR(ld_shlibs, $1)=no 380 _LT_TAGVAR(ld_shlibs, $1)=no
383 ;; 381 ;;
384  382
385+ mirbsd*) 383+ mirbsd*)
386+ if test -f /usr/libexec/ld.so; then 384+ if test -f /usr/libexec/ld.so; then
387+ _LT_TAGVAR(hardcode_direct, $1)=yes 385+ _LT_TAGVAR(hardcode_direct, $1)=yes
388+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 386+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
389+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 387+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
390+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 388+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
391+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 389+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
392+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 390+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
393+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 391+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
394+ _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 392+ _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
395+ output_verbose_link_cmd='echo' 393+ output_verbose_link_cmd='echo'
396+ else 394+ else
397+ _LT_TAGVAR(ld_shlibs, $1)=no 395+ _LT_TAGVAR(ld_shlibs, $1)=no
398+ fi 396+ fi
399+ ;; 397+ ;;
400+ 398+
401 mvs*) 399 mvs*)
402 case $cc_basename in 400 case $cc_basename in
403 cxx*) 401 cxx*)
404@@ -6552,15 +6665,13 @@ if test "$_lt_caught_CXX_error" != yes;  402@@ -6552,15 +6665,13 @@ if test "$_lt_caught_CXX_error" != yes;
405 ;; 403 ;;
406  404
407 netbsd*) 405 netbsd*)
408- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 406- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
409- _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 407- _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
410- wlarc= 408- wlarc=
411- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 409- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
412- _LT_TAGVAR(hardcode_direct, $1)=yes 410- _LT_TAGVAR(hardcode_direct, $1)=yes
413- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 411- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
414- fi 412- fi
415- # Workaround some broken pre-1.5 toolchains 413- # Workaround some broken pre-1.5 toolchains
416- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 414- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
417+ _LT_TAGVAR(ld_shlibs, $1)=yes 415+ _LT_TAGVAR(ld_shlibs, $1)=yes
418+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 416+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
419+ _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' 417+ _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'
420+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 418+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
421+ _LT_TAGVAR(hardcode_direct, $1)=yes 419+ _LT_TAGVAR(hardcode_direct, $1)=yes
422+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 420+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
423+ output_verbose_link_cmd=func_echo_all 421+ output_verbose_link_cmd=func_echo_all
424 ;; 422 ;;
425  423
426 *nto* | *qnx*) 424 *nto* | *qnx*)
427@@ -6740,9 +6851,9 @@ if test "$_lt_caught_CXX_error" != yes;  425@@ -6739,27 +6850,14 @@ if test "$_lt_caught_CXX_error" != yes;
 426 # GNU C++ compiler with Solaris linker
428 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 427 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
429 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 428 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
430 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 429- if $CC --version | $GREP -v '^2\.7' > /dev/null; then
431- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 430- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
432+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 431- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
433 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 
434- $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 432- $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
435+ $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' 433-
436  434- # Commands to make compiler produce verbose output that lists
437 # Commands to make compiler produce verbose output that lists 435- # what "hidden" libraries, object files and flags are used when
438 # what "hidden" libraries, object files and flags are used when 436- # linking a shared library.
439@@ -6751,9 +6862,9 @@ if test "$_lt_caught_CXX_error" != yes;  437- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
440 else 438- else
441 # g++ 2.7 appears to require `-G' NOT `-shared' on this 439- # g++ 2.7 appears to require `-G' NOT `-shared' on this
442 # platform. 440- # platform.
443- _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 441- _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
444+ _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 442- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
445 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 
446- $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 443- $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
447+ $CC -G -nostdlib ${wl}-M $wl$lib.exp $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 444-
 445- # Commands to make compiler produce verbose output that lists
 446- # what "hidden" libraries, object files and flags are used when
 447- # linking a shared library.
 448- output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 449- fi
 450+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 451+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 452+ $CC -shared $pic_flag ${wl}-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 453+
 454+ # Commands to make compiler produce verbose output that lists
 455+ # what "hidden" libraries, object files and flags are used when
 456+ # linking a shared library.
 457+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
448  458
449 # Commands to make compiler produce verbose output that lists 459 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
450 # what "hidden" libraries, object files and flags are used when 460 case $host_os in

cvs diff -r1.80 -r1.81 pkgsrc/devel/libtool/patches/Attic/patch-ab (switch to unified diff)

--- pkgsrc/devel/libtool/patches/Attic/patch-ab 2014/05/10 15:32:08 1.80
+++ pkgsrc/devel/libtool/patches/Attic/patch-ab 2014/06/15 14:42:05 1.81
@@ -1,1514 +1,1526 @@ @@ -1,1514 +1,1526 @@
1$NetBSD: patch-ab,v 1.80 2014/05/10 15:32:08 joerg Exp $ 1$NetBSD: patch-ab,v 1.81 2014/06/15 14:42:05 joerg Exp $
2 2
3--- configure.orig 2014-03-06 15:38:07.000000000 +0000 3--- configure.orig 2014-06-15 14:27:26.000000000 +0000
4+++ configure 4+++ configure
5@@ -5335,7 +5335,7 @@ else 5@@ -5335,7 +5335,7 @@ else
6 lt_cv_sys_max_cmd_len=8192; 6 lt_cv_sys_max_cmd_len=8192;
7 ;; 7 ;;
8  8
9- netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 9- netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10+ netbsd* | freebsd* | openbsd* | mirbsd* | darwin* | dragonfly*) 10+ netbsd* | freebsd* | openbsd* | mirbsd* | darwin* | dragonfly*)
11 # This has been around since 386BSD, at least. Likely further. 11 # This has been around since 386BSD, at least. Likely further.
12 if test -x /sbin/sysctl; then 12 if test -x /sbin/sysctl; then
13 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 13 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14@@ -5829,12 +5829,19 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu) 14@@ -5829,12 +5829,19 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
15 lt_cv_deplibs_check_method=pass_all 15 lt_cv_deplibs_check_method=pass_all
16 ;; 16 ;;
17  17
18+midnightbsd*) 18+midnightbsd*)
19+ # might to use match_pattern like MirBSD, but there is no well-defined 19+ # might to use match_pattern like MirBSD, but there is no well-defined
20+ # naming scheme for libraries yet, as the current one is deprecated, and 20+ # naming scheme for libraries yet, as the current one is deprecated, and
21+ # the new one in a state of flux especially between mports and MirPorts 21+ # the new one in a state of flux especially between mports and MirPorts
22+ lt_cv_deplibs_check_method=pass_all 22+ lt_cv_deplibs_check_method=pass_all
23+ ;; 23+ ;;
24+ 24+
25+mirbsd*) 25+mirbsd*)
26+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 26+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
27+ ;; 27+ ;;
28+ 28+
29 netbsd*) 29 netbsd*)
30- if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 30- if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
31- lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 31- lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
32- else 32- else
33- lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 33- lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
34- fi 34- fi
35+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 35+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
36 ;; 36 ;;
37  37
38 newos6*) 38 newos6*)
39@@ -5844,7 +5851,7 @@ newos6*) 39@@ -5844,7 +5851,7 @@ newos6*)
40 ;; 40 ;;
41  41
42 *nto* | *qnx*) 42 *nto* | *qnx*)
43- lt_cv_deplibs_check_method=pass_all 43- lt_cv_deplibs_check_method=pass_all
44+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|S\.a)$' 44+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|S\.a)$'
45 ;; 45 ;;
46  46
47 openbsd*) 47 openbsd*)
48@@ -6473,7 +6480,7 @@ fi 48@@ -6473,7 +6480,7 @@ fi
49  49
50 case $host_os in 50 case $host_os in
51 darwin*) 51 darwin*)
52- lock_old_archive_extraction=yes ;; 52- lock_old_archive_extraction=yes ;;
53+ lock_old_archive_extraction=no ;; # work around bug #14579 53+ lock_old_archive_extraction=no ;; # work around bug #14579
54 *) 54 *)
55 lock_old_archive_extraction=no ;; 55 lock_old_archive_extraction=no ;;
56 esac 56 esac
57@@ -8493,7 +8500,10 @@ for cc_temp in $compiler""; do 57@@ -8493,7 +8500,10 @@ for cc_temp in $compiler""; do
58 *) break;; 58 *) break;;
59 esac 59 esac
60 done 60 done
61-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 61-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
62+# Return the actual command name, not our pkgsrc wrapper name because several 62+# Return the actual command name, not our pkgsrc wrapper name because several
63+# decisions are made only based on compiler names 63+# decisions are made only based on compiler names
64+if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi 64+if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi
65+cc_basename=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 65+cc_basename=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
66  66
67  67
68 # Only perform the check for file, if the check method requires it 68 # Only perform the check for file, if the check method requires it
69@@ -8806,9 +8816,16 @@ lt_prog_compiler_static= 69@@ -8806,9 +8816,16 @@ lt_prog_compiler_static=
70 ;; 70 ;;
71  71
72 darwin* | rhapsody*) 72 darwin* | rhapsody*)
73- # PIC is the default on this platform 73- # PIC is the default on this platform
74+ # PIC is the default on this platform, and static linking of 74+ # PIC is the default on this platform, and static linking of
75+ # binaries generally doesn't work 75+ # binaries generally doesn't work
76 # Common symbols not allowed in MH_DYLIB files 76 # Common symbols not allowed in MH_DYLIB files
77 lt_prog_compiler_pic='-fno-common' 77 lt_prog_compiler_pic='-fno-common'
78+ lt_prog_compiler_static='' 78+ lt_prog_compiler_static=''
79+ ;; 79+ ;;
80+ 80+
81+ *mint*) 81+ *mint*)
82+ # FreeMiNT does not support shared libraries at all 82+ # FreeMiNT does not support shared libraries at all
83+ lt_prog_compiler_pic= 83+ lt_prog_compiler_pic=
84 ;; 84 ;;
85  85
86 haiku*) 86 haiku*)
87@@ -8836,6 +8853,13 @@ lt_prog_compiler_static= 87@@ -8836,6 +8853,13 @@ lt_prog_compiler_static=
88 # Instead, we relocate shared libraries at runtime. 88 # Instead, we relocate shared libraries at runtime.
89 ;; 89 ;;
90  90
91+ mint*) 91+ mint*)
92+ # Just because we use GCC doesn't mean we suddenly get shared libraries 92+ # Just because we use GCC doesn't mean we suddenly get shared libraries
93+ # on systems that don't support them. 93+ # on systems that don't support them.
94+ lt_prog_compiler_can_build_shared=no 94+ lt_prog_compiler_can_build_shared=no
95+ enable_shared=no 95+ enable_shared=no
96+ ;; 96+ ;;
97+ 97+
98 msdosdjgpp*) 98 msdosdjgpp*)
99 # Just because we use GCC doesn't mean we suddenly get shared libraries 99 # Just because we use GCC doesn't mean we suddenly get shared libraries
100 # on systems that don't support them. 100 # on systems that don't support them.
101@@ -8988,6 +9012,15 @@ lt_prog_compiler_static= 101@@ -8988,6 +9012,15 @@ lt_prog_compiler_static=
102 esac 102 esac
103 ;; 103 ;;
104  104
105+ mirbsd*) 105+ mirbsd*)
106+ case $cc_basename in 106+ case $cc_basename in
107+ # pkgsrc f77 is f2c, which uses gcc underneath. 107+ # pkgsrc f77 is f2c, which uses gcc underneath.
108+ f77*) 108+ f77*)
109+ lt_prog_compiler_wl='-Wl,' 109+ lt_prog_compiler_wl='-Wl,'
110+ ;; 110+ ;;
111+ esac 111+ esac
112+ ;; 112+ ;;
113+ 113+
114 newsos6) 114 newsos6)
115 lt_prog_compiler_pic='-KPIC' 115 lt_prog_compiler_pic='-KPIC'
116 lt_prog_compiler_static='-Bstatic' 116 lt_prog_compiler_static='-Bstatic'
117@@ -9063,6 +9096,9 @@ lt_prog_compiler_static= 117@@ -9063,6 +9096,9 @@ lt_prog_compiler_static=
118  118
119 case $host_os in 119 case $host_os in
120 # For platforms which do not support PIC, -DPIC is meaningless: 120 # For platforms which do not support PIC, -DPIC is meaningless:
121+ mint*) 121+ mint*)
122+ lt_prog_compiler_pic= 122+ lt_prog_compiler_pic=
123+ ;; 123+ ;;
124 *djgpp*) 124 *djgpp*)
125 lt_prog_compiler_pic= 125 lt_prog_compiler_pic=
126 ;; 126 ;;
127@@ -9608,16 +9644,29 @@ _LT_EOF 127@@ -9608,16 +9644,29 @@ _LT_EOF
128 fi 128 fi
129 ;; 129 ;;
130  130
131- netbsd*) 131- netbsd*)
132- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 132- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
133- archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 133- archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
134- wlarc= 134- wlarc=
135+ mirbsd*) 135+ mirbsd*)
136+ if test -f /usr/libexec/ld.so; then 136+ if test -f /usr/libexec/ld.so; then
137+ hardcode_direct=yes 137+ hardcode_direct=yes
138+ hardcode_shlibpath_var=no 138+ hardcode_shlibpath_var=no
139+ hardcode_direct_absolute=yes 139+ hardcode_direct_absolute=yes
140+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 140+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
141+ archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 141+ archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
142+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 142+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
143+ export_dynamic_flag_spec='${wl}-E' 143+ export_dynamic_flag_spec='${wl}-E'
144 else 144 else
145- archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 145- archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
146- archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 146- archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
147+ ld_shlibs=no 147+ ld_shlibs=no
148 fi 148 fi
149 ;; 149 ;;
150  150
151+ netbsd*) 151+ netbsd*)
152+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 152+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
153+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 153+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
154+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 154+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
155+ hardcode_direct=yes 155+ hardcode_direct=yes
156+ hardcode_shlibpath_var=no 156+ hardcode_shlibpath_var=no
157+ output_verbose_link_cmd=func_echo_all 157+ output_verbose_link_cmd=func_echo_all
158+ ;; 158+ ;;
159+ 159+
160 solaris*) 160 solaris*)
161 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 161 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
162 ld_shlibs=no 162 ld_shlibs=no
163@@ -10026,7 +10075,7 @@ fi 163@@ -10026,7 +10075,7 @@ fi
164 allow_undefined_flag="$_lt_dar_allow_undefined" 164 allow_undefined_flag="$_lt_dar_allow_undefined"
165 case $cc_basename in 165 case $cc_basename in
166 ifort*) _lt_dar_can_shared=yes ;; 166 ifort*) _lt_dar_can_shared=yes ;;
167- *) _lt_dar_can_shared=$GCC ;; 167- *) _lt_dar_can_shared=$GCC ;;
168+ *) _lt_dar_can_shared=yes ;; 168+ *) _lt_dar_can_shared=yes ;;
169 esac 169 esac
170 if test "$_lt_dar_can_shared" = "yes"; then 170 if test "$_lt_dar_can_shared" = "yes"; then
171 output_verbose_link_cmd=func_echo_all 171 output_verbose_link_cmd=func_echo_all
172@@ -10238,15 +10287,28 @@ $as_echo "$lt_cv_irix_exported_symbol" > 172@@ -10238,15 +10287,28 @@ $as_echo "$lt_cv_irix_exported_symbol" >
173 link_all_deplibs=yes 173 link_all_deplibs=yes
174 ;; 174 ;;
175  175
176- netbsd*) 176- netbsd*)
177- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 177- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
178- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 178- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
179+ mirbsd*) 179+ mirbsd*)
180+ if test -f /usr/libexec/ld.so; then 180+ if test -f /usr/libexec/ld.so; then
181+ hardcode_direct=yes 181+ hardcode_direct=yes
182+ hardcode_shlibpath_var=no 182+ hardcode_shlibpath_var=no
183+ hardcode_direct_absolute=yes 183+ hardcode_direct_absolute=yes
184+ archive_cmds='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 184+ archive_cmds='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
185+ archive_expsym_cmds='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 185+ archive_expsym_cmds='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
186+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 186+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
187+ export_dynamic_flag_spec='${wl}-E' 187+ export_dynamic_flag_spec='${wl}-E'
188+ whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 188+ whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
189 else 189 else
190- archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 190- archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
191+ ld_shlibs=no 191+ ld_shlibs=no
192 fi 192 fi
193- hardcode_libdir_flag_spec='-R$libdir' 193- hardcode_libdir_flag_spec='-R$libdir'
194+ ;; 194+ ;;
195+ 195+
196+ netbsd*) 196+ netbsd*)
197+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 197+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
198+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 198+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
199+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 199+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
200 hardcode_direct=yes 200 hardcode_direct=yes
201 hardcode_shlibpath_var=no 201 hardcode_shlibpath_var=no
202+ output_verbose_link_cmd=func_echo_all 202+ output_verbose_link_cmd=func_echo_all
203 ;; 203 ;;
204  204
205 newsos6) 205 newsos6)
206@@ -10258,6 +10320,11 @@ $as_echo "$lt_cv_irix_exported_symbol" > 206@@ -10258,6 +10320,11 @@ $as_echo "$lt_cv_irix_exported_symbol" >
207 ;; 207 ;;
208  208
209 *nto* | *qnx*) 209 *nto* | *qnx*)
210+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 210+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
211+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 211+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
212+ hardcode_libdir_flag_spec='-R$libdir' 212+ hardcode_libdir_flag_spec='-R$libdir'
213+ hardcode_direct=yes 213+ hardcode_direct=yes
214+ hardcode_shlibpath_var=no 214+ hardcode_shlibpath_var=no
215 ;; 215 ;;
216  216
217 openbsd*) 217 openbsd*)
218@@ -11031,7 +11098,7 @@ dgux*) 218@@ -11031,7 +11098,7 @@ dgux*)
219 shlibpath_var=LD_LIBRARY_PATH 219 shlibpath_var=LD_LIBRARY_PATH
220 ;; 220 ;;
221  221
222-freebsd* | dragonfly*) 222-freebsd* | dragonfly*)
223+freebsd*) 223+freebsd*)
224 # DragonFly does not have aout. When/if they implement a new 224 # DragonFly does not have aout. When/if they implement a new
225 # versioning mechanism, adjust this. 225 # versioning mechanism, adjust this.
226 if test -x /usr/bin/objformat; then 226 if test -x /usr/bin/objformat; then
227@@ -11045,7 +11112,7 @@ freebsd* | dragonfly*) 227@@ -11045,7 +11112,7 @@ freebsd* | dragonfly*)
228 version_type=freebsd-$objformat 228 version_type=freebsd-$objformat
229 case $version_type in 229 case $version_type in
230 freebsd-elf*) 230 freebsd-elf*)
231- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 231- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
232+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 232+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
233 need_version=no 233 need_version=no
234 need_lib_prefix=no 234 need_lib_prefix=no
235 ;; 235 ;;
236@@ -11068,13 +11135,24 @@ freebsd* | dragonfly*) 236@@ -11068,13 +11135,24 @@ freebsd* | dragonfly*)
237 shlibpath_overrides_runpath=no 237 shlibpath_overrides_runpath=no
238 hardcode_into_libs=yes 238 hardcode_into_libs=yes
239 ;; 239 ;;
240- *) # from 4.6 on, and DragonFly 240- *) # from 4.6 on, and DragonFly
241+ *) # from 4.6 on 241+ *) # from 4.6 on
242 shlibpath_overrides_runpath=yes 242 shlibpath_overrides_runpath=yes
243 hardcode_into_libs=yes 243 hardcode_into_libs=yes
244 ;; 244 ;;
245 esac 245 esac
246 ;; 246 ;;
247  247
248+dragonfly*) 248+dragonfly*)
249+ version_type=linux 249+ version_type=linux
250+ need_version=no 250+ need_version=no
251+ need_lib_prefix=no 251+ need_lib_prefix=no
252+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 252+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
253+ soname_spec='${libname}${release}${shared_ext}$major' 253+ soname_spec='${libname}${release}${shared_ext}$major'
254+ shlibpath_var=LD_LIBRARY_PATH 254+ shlibpath_var=LD_LIBRARY_PATH
255+ shlibpath_overrides_runpath=no 255+ shlibpath_overrides_runpath=no
256+ hardcode_into_libs=yes 256+ hardcode_into_libs=yes
257+ ;; 257+ ;;
258+ 258+
259 gnu*) 259 gnu*)
260 version_type=linux # correct to gnu/linux during the next big refactor 260 version_type=linux # correct to gnu/linux during the next big refactor
261 need_lib_prefix=no 261 need_lib_prefix=no
262@@ -11162,12 +11240,7 @@ interix[3-9]*) 262@@ -11162,12 +11240,7 @@ interix[3-9]*)
263 irix5* | irix6* | nonstopux*) 263 irix5* | irix6* | nonstopux*)
264 case $host_os in 264 case $host_os in
265 nonstopux*) version_type=nonstopux ;; 265 nonstopux*) version_type=nonstopux ;;
266- *) 266- *)
267- if test "$lt_cv_prog_gnu_ld" = yes; then 267- if test "$lt_cv_prog_gnu_ld" = yes; then
268- version_type=linux # correct to gnu/linux during the next big refactor 268- version_type=linux # correct to gnu/linux during the next big refactor
269- else 269- else
270- version_type=irix 270- version_type=irix
271- fi ;; 271- fi ;;
272+ *) version_type=irix ;; 272+ *) version_type=irix ;;
273 esac 273 esac
274 need_lib_prefix=no 274 need_lib_prefix=no
275 need_version=no 275 need_version=no
276@@ -11266,19 +11339,36 @@ fi 276@@ -11266,19 +11339,36 @@ fi
277 dynamic_linker='GNU/Linux ld.so' 277 dynamic_linker='GNU/Linux ld.so'
278 ;; 278 ;;
279  279
280+midnightbsd*) 280+midnightbsd*)
281+ version_type=linux 281+ version_type=linux
282+ need_lib_prefix=no 282+ need_lib_prefix=no
283+ need_version=no 283+ need_version=no
284+ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${release}${shared_ext} $libname${shared_ext}' 284+ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${release}${shared_ext} $libname${shared_ext}'
285+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 285+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
286+ shlibpath_var=LD_LIBRARY_PATH 286+ shlibpath_var=LD_LIBRARY_PATH
287+ shlibpath_overrides_runpath=yes 287+ shlibpath_overrides_runpath=yes
288+ hardcode_into_libs=yes 288+ hardcode_into_libs=yes
289+ ;; 289+ ;;
290+ 290+
291+mirbsd*) 291+mirbsd*)
292+ version_type=linux 292+ version_type=linux
293+ sys_lib_search_path_spec="/usr/lib" 293+ sys_lib_search_path_spec="/usr/lib"
294+ sys_lib_dlsearch_path_spec="/usr/lib" 294+ sys_lib_dlsearch_path_spec="/usr/lib"
295+ need_lib_prefix=no 295+ need_lib_prefix=no
296+ need_version=no 296+ need_version=no
297+ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${shared_ext}${versuffix2}' 297+ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${shared_ext}${versuffix2}'
298+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 298+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
299+ shlibpath_var=LD_LIBRARY_PATH 299+ shlibpath_var=LD_LIBRARY_PATH
300+ shlibpath_overrides_runpath=yes 300+ shlibpath_overrides_runpath=yes
301+ ;; 301+ ;;
302+ 302+
303 netbsd*) 303 netbsd*)
304- version_type=sunos 304- version_type=sunos
305+ version_type=linux 305+ version_type=linux
306 need_lib_prefix=no 306 need_lib_prefix=no
307 need_version=no 307 need_version=no
308- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 308- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
309- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 309- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
310- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 310- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
311- dynamic_linker='NetBSD (a.out) ld.so' 311- dynamic_linker='NetBSD (a.out) ld.so'
312- else 312- else
313- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 313- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
314- soname_spec='${libname}${release}${shared_ext}$major' 314- soname_spec='${libname}${release}${shared_ext}$major'
315- dynamic_linker='NetBSD ld.elf_so' 315- dynamic_linker='NetBSD ld.elf_so'
316- fi 316- fi
317+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 317+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
318+ soname_spec='${libname}${release}${shared_ext}$major' 318+ soname_spec='${libname}${release}${shared_ext}$major'
319+ dynamic_linker='NetBSD ld.elf_so' 319+ dynamic_linker='NetBSD ld.elf_so'
320 shlibpath_var=LD_LIBRARY_PATH 320 shlibpath_var=LD_LIBRARY_PATH
321 shlibpath_overrides_runpath=yes 321 shlibpath_overrides_runpath=yes
322 hardcode_into_libs=yes 322 hardcode_into_libs=yes
323@@ -11304,7 +11394,7 @@ newsos6) 323@@ -11304,7 +11394,7 @@ newsos6)
324 ;; 324 ;;
325  325
326 openbsd*) 326 openbsd*)
327- version_type=sunos 327- version_type=sunos
328+ version_type=linux 328+ version_type=linux
329 sys_lib_dlsearch_path_spec="/usr/lib" 329 sys_lib_dlsearch_path_spec="/usr/lib"
330 need_lib_prefix=no 330 need_lib_prefix=no
331 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 331 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
332@@ -11312,7 +11402,7 @@ openbsd*) 332@@ -11312,7 +11402,7 @@ openbsd*)
333 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 333 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
334 *) need_version=no ;; 334 *) need_version=no ;;
335 esac 335 esac
336- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 336- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
337+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 337+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
339 shlibpath_var=LD_LIBRARY_PATH 339 shlibpath_var=LD_LIBRARY_PATH
340 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 340 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
341@@ -12847,6 +12937,9 @@ else 341@@ -12847,6 +12937,9 @@ else
342 # at 6.2 and later dlopen does load deplibs. 342 # at 6.2 and later dlopen does load deplibs.
343 lt_cv_sys_dlopen_deplibs=yes 343 lt_cv_sys_dlopen_deplibs=yes
344 ;; 344 ;;
345+ mirbsd*) 345+ mirbsd*)
346+ lt_cv_sys_dlopen_deplibs=yes 346+ lt_cv_sys_dlopen_deplibs=yes
347+ ;; 347+ ;;
348 netbsd*) 348 netbsd*)
349 lt_cv_sys_dlopen_deplibs=yes 349 lt_cv_sys_dlopen_deplibs=yes
350 ;; 350 ;;
351@@ -13536,9 +13629,7 @@ func_stripname_cnf () 351@@ -13536,9 +13629,7 @@ func_stripname_cnf ()
352 esac 352 esac
353 } # func_stripname_cnf 353 } # func_stripname_cnf
354  354
355- if test -n "$CXX" && ( test "X$CXX" != "Xno" && 355- if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
356- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 356- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
357- (test "X$CXX" != "Xg++"))) ; then 357- (test "X$CXX" != "Xg++"))) ; then
358+ if test -n "$CXX" && test "X$CXX" != "Xno" ; then 358+ if test -n "$CXX" && test "X$CXX" != "Xno" ; then
359 ac_ext=cpp 359 ac_ext=cpp
360 ac_cpp='$CXXCPP $CPPFLAGS' 360 ac_cpp='$CXXCPP $CPPFLAGS'
361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
362@@ -13786,7 +13877,10 @@ $RM -r conftest* 362@@ -13786,7 +13877,10 @@ $RM -r conftest*
363 *) break;; 363 *) break;;
364 esac 364 esac
365 done 365 done
366-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 366-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
367+# Return the actual command name, not our pkgsrc wrapper name because several 367+# Return the actual command name, not our pkgsrc wrapper name because several
368+# decisions are made only based on compiler names 368+# decisions are made only based on compiler names
369+if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi 369+if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi
370+cc_basename=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 370+cc_basename=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
371  371
372  372
373 if test -n "$compiler"; then 373 if test -n "$compiler"; then
374@@ -14282,7 +14376,7 @@ fi 374@@ -14282,7 +14376,7 @@ fi
375 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 375 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
376 case $cc_basename in 376 case $cc_basename in
377 ifort*) _lt_dar_can_shared=yes ;; 377 ifort*) _lt_dar_can_shared=yes ;;
378- *) _lt_dar_can_shared=$GCC ;; 378- *) _lt_dar_can_shared=$GCC ;;
379+ *) _lt_dar_can_shared=yes ;; 379+ *) _lt_dar_can_shared=yes ;;
380 esac 380 esac
381 if test "$_lt_dar_can_shared" = "yes"; then 381 if test "$_lt_dar_can_shared" = "yes"; then
382 output_verbose_link_cmd=func_echo_all 382 output_verbose_link_cmd=func_echo_all
383@@ -14651,6 +14745,22 @@ fi 383@@ -14651,6 +14745,22 @@ fi
384 ld_shlibs_CXX=no 384 ld_shlibs_CXX=no
385 ;; 385 ;;
386  386
387+ mirbsd*) 387+ mirbsd*)
388+ if test -f /usr/libexec/ld.so; then 388+ if test -f /usr/libexec/ld.so; then
389+ hardcode_direct_CXX=yes 389+ hardcode_direct_CXX=yes
390+ hardcode_shlibpath_var_CXX=no 390+ hardcode_shlibpath_var_CXX=no
391+ hardcode_direct_absolute_CXX=yes 391+ hardcode_direct_absolute_CXX=yes
392+ archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 392+ archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
393+ archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 393+ archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
394+ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 394+ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
395+ export_dynamic_flag_spec_CXX='${wl}-E' 395+ export_dynamic_flag_spec_CXX='${wl}-E'
396+ whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 396+ whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
397+ output_verbose_link_cmd='echo' 397+ output_verbose_link_cmd='echo'
398+ else 398+ else
399+ ld_shlibs_CXX=no 399+ ld_shlibs_CXX=no
400+ fi 400+ fi
401+ ;; 401+ ;;
402+ 402+
403 mvs*) 403 mvs*)
404 case $cc_basename in 404 case $cc_basename in
405 cxx*) 405 cxx*)
406@@ -14665,15 +14775,13 @@ fi 406@@ -14665,15 +14775,13 @@ fi
407 ;; 407 ;;
408  408
409 netbsd*) 409 netbsd*)
410- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 410- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
411- archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 411- archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
412- wlarc= 412- wlarc=
413- hardcode_libdir_flag_spec_CXX='-R$libdir' 413- hardcode_libdir_flag_spec_CXX='-R$libdir'
414- hardcode_direct_CXX=yes 414- hardcode_direct_CXX=yes
415- hardcode_shlibpath_var_CXX=no 415- hardcode_shlibpath_var_CXX=no
416- fi 416- fi
417- # Workaround some broken pre-1.5 toolchains 417- # Workaround some broken pre-1.5 toolchains
418- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 418- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
419+ ld_shlibs_CXX=yes 419+ ld_shlibs_CXX=yes
420+ archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 420+ archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
421+ 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' 421+ 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'
422+ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 422+ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
423+ hardcode_direct_CXX=yes 423+ hardcode_direct_CXX=yes
424+ hardcode_shlibpath_var_CXX=no 424+ hardcode_shlibpath_var_CXX=no
425+ output_verbose_link_cmd=func_echo_all 425+ output_verbose_link_cmd=func_echo_all
426 ;; 426 ;;
427  427
428 *nto* | *qnx*) 428 *nto* | *qnx*)
429@@ -14853,9 +14961,9 @@ fi 429@@ -14852,27 +14960,14 @@ fi
 430 # GNU C++ compiler with Solaris linker
430 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 431 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
431 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 432 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
432 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 433- if $CC --version | $GREP -v '^2\.7' > /dev/null; then
433- archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 434- archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
434+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 435- archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
435 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 
436- $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 436- $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
437+ $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' 437-
438  438- # Commands to make compiler produce verbose output that lists
439 # Commands to make compiler produce verbose output that lists 439- # what "hidden" libraries, object files and flags are used when
440 # what "hidden" libraries, object files and flags are used when 440- # linking a shared library.
441@@ -14864,9 +14972,9 @@ fi 441- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
442 else 442- else
443 # g++ 2.7 appears to require `-G' NOT `-shared' on this 443- # g++ 2.7 appears to require `-G' NOT `-shared' on this
444 # platform. 444- # platform.
445- archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 445- archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
446+ archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 446- archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
447 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 
448- $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 447- $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
449+ $CC -G -nostdlib ${wl}-M $wl$lib.exp $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 448-
450  449- # Commands to make compiler produce verbose output that lists
451 # Commands to make compiler produce verbose output that lists 450- # what "hidden" libraries, object files and flags are used when
452 # what "hidden" libraries, object files and flags are used when 451- # linking a shared library.
453@@ -15236,9 +15344,15 @@ lt_prog_compiler_static_CXX= 452- output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 453- fi
 454+ archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 455+ archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 456+ $CC -shared $pic_flag ${wl}-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 457+
 458+ # Commands to make compiler produce verbose output that lists
 459+ # what "hidden" libraries, object files and flags are used when
 460+ # linking a shared library.
 461+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 462
 463 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 464 case $host_os in
 465@@ -15236,9 +15331,15 @@ lt_prog_compiler_static_CXX=
454 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 466 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
455 ;; 467 ;;
456 darwin* | rhapsody*) 468 darwin* | rhapsody*)
457- # PIC is the default on this platform 469- # PIC is the default on this platform
458+ # PIC is the default on this platform, and static linking of 470+ # PIC is the default on this platform, and static linking of
459+ # binaries generally doesn't work 471+ # binaries generally doesn't work
460 # Common symbols not allowed in MH_DYLIB files 472 # Common symbols not allowed in MH_DYLIB files
461 lt_prog_compiler_pic_CXX='-fno-common' 473 lt_prog_compiler_pic_CXX='-fno-common'
462+ lt_prog_compiler_static_CXX='' 474+ lt_prog_compiler_static_CXX=''
463+ ;; 475+ ;;
464+ *mint*) 476+ *mint*)
465+ # FreeMiNT does not support shared libraries at all 477+ # FreeMiNT does not support shared libraries at all
466+ lt_prog_compiler_pic_CXX= 478+ lt_prog_compiler_pic_CXX=
467 ;; 479 ;;
468 *djgpp*) 480 *djgpp*)
469 # DJGPP does not support shared libraries at all 481 # DJGPP does not support shared libraries at all
470@@ -15316,6 +15430,9 @@ lt_prog_compiler_static_CXX= 482@@ -15316,6 +15417,9 @@ lt_prog_compiler_static_CXX=
471 ;; 483 ;;
472 esac 484 esac
473 ;; 485 ;;
474+ mint*) 486+ mint*)
475+ # FreeMiNT uses GNU C++ 487+ # FreeMiNT uses GNU C++
476+ ;; 488+ ;;
477 freebsd* | dragonfly*) 489 freebsd* | dragonfly*)
478 # FreeBSD uses GNU C++ 490 # FreeBSD uses GNU C++
479 ;; 491 ;;
480@@ -15513,6 +15630,9 @@ lt_prog_compiler_static_CXX= 492@@ -15513,6 +15617,9 @@ lt_prog_compiler_static_CXX=
481  493
482 case $host_os in 494 case $host_os in
483 # For platforms which do not support PIC, -DPIC is meaningless: 495 # For platforms which do not support PIC, -DPIC is meaningless:
484+ mint*) 496+ mint*)
485+ lt_prog_compiler_pic_CXX= 497+ lt_prog_compiler_pic_CXX=
486+ ;; 498+ ;;
487 *djgpp*) 499 *djgpp*)
488 lt_prog_compiler_pic_CXX= 500 lt_prog_compiler_pic_CXX=
489 ;; 501 ;;
490@@ -16184,7 +16304,7 @@ dgux*) 502@@ -16184,7 +16291,7 @@ dgux*)
491 shlibpath_var=LD_LIBRARY_PATH 503 shlibpath_var=LD_LIBRARY_PATH
492 ;; 504 ;;
493  505
494-freebsd* | dragonfly*) 506-freebsd* | dragonfly*)
495+freebsd*) 507+freebsd*)
496 # DragonFly does not have aout. When/if they implement a new 508 # DragonFly does not have aout. When/if they implement a new
497 # versioning mechanism, adjust this. 509 # versioning mechanism, adjust this.
498 if test -x /usr/bin/objformat; then 510 if test -x /usr/bin/objformat; then
499@@ -16198,7 +16318,7 @@ freebsd* | dragonfly*) 511@@ -16198,7 +16305,7 @@ freebsd* | dragonfly*)
500 version_type=freebsd-$objformat 512 version_type=freebsd-$objformat
501 case $version_type in 513 case $version_type in
502 freebsd-elf*) 514 freebsd-elf*)
503- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 515- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
504+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 516+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
505 need_version=no 517 need_version=no
506 need_lib_prefix=no 518 need_lib_prefix=no
507 ;; 519 ;;
508@@ -16221,13 +16341,24 @@ freebsd* | dragonfly*) 520@@ -16221,13 +16328,24 @@ freebsd* | dragonfly*)
509 shlibpath_overrides_runpath=no 521 shlibpath_overrides_runpath=no
510 hardcode_into_libs=yes 522 hardcode_into_libs=yes
511 ;; 523 ;;
512- *) # from 4.6 on, and DragonFly 524- *) # from 4.6 on, and DragonFly
513+ *) # from 4.6 on 525+ *) # from 4.6 on
514 shlibpath_overrides_runpath=yes 526 shlibpath_overrides_runpath=yes
515 hardcode_into_libs=yes 527 hardcode_into_libs=yes
516 ;; 528 ;;
517 esac 529 esac
518 ;; 530 ;;
519  531
520+dragonfly*) 532+dragonfly*)
521+ version_type=linux 533+ version_type=linux
522+ need_version=no 534+ need_version=no
523+ need_lib_prefix=no 535+ need_lib_prefix=no
524+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 536+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
525+ soname_spec='${libname}${release}${shared_ext}$major' 537+ soname_spec='${libname}${release}${shared_ext}$major'
526+ shlibpath_var=LD_LIBRARY_PATH 538+ shlibpath_var=LD_LIBRARY_PATH
527+ shlibpath_overrides_runpath=no 539+ shlibpath_overrides_runpath=no
528+ hardcode_into_libs=yes 540+ hardcode_into_libs=yes
529+ ;; 541+ ;;
530+ 542+
531 gnu*) 543 gnu*)
532 version_type=linux # correct to gnu/linux during the next big refactor 544 version_type=linux # correct to gnu/linux during the next big refactor
533 need_lib_prefix=no 545 need_lib_prefix=no
534@@ -16315,12 +16446,7 @@ interix[3-9]*) 546@@ -16315,12 +16433,7 @@ interix[3-9]*)
535 irix5* | irix6* | nonstopux*) 547 irix5* | irix6* | nonstopux*)
536 case $host_os in 548 case $host_os in
537 nonstopux*) version_type=nonstopux ;; 549 nonstopux*) version_type=nonstopux ;;
538- *) 550- *)
539- if test "$lt_cv_prog_gnu_ld" = yes; then 551- if test "$lt_cv_prog_gnu_ld" = yes; then
540- version_type=linux # correct to gnu/linux during the next big refactor 552- version_type=linux # correct to gnu/linux during the next big refactor
541- else 553- else
542- version_type=irix 554- version_type=irix
543- fi ;; 555- fi ;;
544+ *) version_type=irix ;; 556+ *) version_type=irix ;;
545 esac 557 esac
546 need_lib_prefix=no 558 need_lib_prefix=no
547 need_version=no 559 need_version=no
548@@ -16419,19 +16545,36 @@ fi 560@@ -16419,19 +16532,36 @@ fi
549 dynamic_linker='GNU/Linux ld.so' 561 dynamic_linker='GNU/Linux ld.so'
550 ;; 562 ;;
551  563
552+midnightbsd*) 564+midnightbsd*)
553+ version_type=linux 565+ version_type=linux
554+ need_lib_prefix=no 566+ need_lib_prefix=no
555+ need_version=no 567+ need_version=no
556+ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${release}${shared_ext} $libname${shared_ext}' 568+ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${release}${shared_ext} $libname${shared_ext}'
557+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 569+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
558+ shlibpath_var=LD_LIBRARY_PATH 570+ shlibpath_var=LD_LIBRARY_PATH
559+ shlibpath_overrides_runpath=yes 571+ shlibpath_overrides_runpath=yes
560+ hardcode_into_libs=yes 572+ hardcode_into_libs=yes
561+ ;; 573+ ;;
562+ 574+
563+mirbsd*) 575+mirbsd*)
564+ version_type=linux 576+ version_type=linux
565+ sys_lib_search_path_spec="/usr/lib" 577+ sys_lib_search_path_spec="/usr/lib"
566+ sys_lib_dlsearch_path_spec="/usr/lib" 578+ sys_lib_dlsearch_path_spec="/usr/lib"
567+ need_lib_prefix=no 579+ need_lib_prefix=no
568+ need_version=no 580+ need_version=no
569+ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${shared_ext}${versuffix2}' 581+ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${shared_ext}${versuffix2}'
570+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 582+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
571+ shlibpath_var=LD_LIBRARY_PATH 583+ shlibpath_var=LD_LIBRARY_PATH
572+ shlibpath_overrides_runpath=yes 584+ shlibpath_overrides_runpath=yes
573+ ;; 585+ ;;
574+ 586+
575 netbsd*) 587 netbsd*)
576- version_type=sunos 588- version_type=sunos
577+ version_type=linux 589+ version_type=linux
578 need_lib_prefix=no 590 need_lib_prefix=no
579 need_version=no 591 need_version=no
580- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 592- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
581- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 593- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
582- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 594- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
583- dynamic_linker='NetBSD (a.out) ld.so' 595- dynamic_linker='NetBSD (a.out) ld.so'
584- else 596- else
585- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 597- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
586- soname_spec='${libname}${release}${shared_ext}$major' 598- soname_spec='${libname}${release}${shared_ext}$major'
587- dynamic_linker='NetBSD ld.elf_so' 599- dynamic_linker='NetBSD ld.elf_so'
588- fi 600- fi
589+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 601+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
590+ soname_spec='${libname}${release}${shared_ext}$major' 602+ soname_spec='${libname}${release}${shared_ext}$major'
591+ dynamic_linker='NetBSD ld.elf_so' 603+ dynamic_linker='NetBSD ld.elf_so'
592 shlibpath_var=LD_LIBRARY_PATH 604 shlibpath_var=LD_LIBRARY_PATH
593 shlibpath_overrides_runpath=yes 605 shlibpath_overrides_runpath=yes
594 hardcode_into_libs=yes 606 hardcode_into_libs=yes
595@@ -16457,7 +16600,7 @@ newsos6) 607@@ -16457,7 +16587,7 @@ newsos6)
596 ;; 608 ;;
597  609
598 openbsd*) 610 openbsd*)
599- version_type=sunos 611- version_type=sunos
600+ version_type=linux 612+ version_type=linux
601 sys_lib_dlsearch_path_spec="/usr/lib" 613 sys_lib_dlsearch_path_spec="/usr/lib"
602 need_lib_prefix=no 614 need_lib_prefix=no
603 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 615 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
604@@ -16465,7 +16608,7 @@ openbsd*) 616@@ -16465,7 +16595,7 @@ openbsd*)
605 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 617 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
606 *) need_version=no ;; 618 *) need_version=no ;;
607 esac 619 esac
608- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 620- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
609+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 621+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
610 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 622 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
611 shlibpath_var=LD_LIBRARY_PATH 623 shlibpath_var=LD_LIBRARY_PATH
612 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 624 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
613@@ -17039,7 +17182,10 @@ $RM -r conftest* 625@@ -17039,7 +17169,10 @@ $RM -r conftest*
614 *) break;; 626 *) break;;
615 esac 627 esac
616 done 628 done
617-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 629-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
618+# Return the actual command name, not our pkgsrc wrapper name because several 630+# Return the actual command name, not our pkgsrc wrapper name because several
619+# decisions are made only based on compiler names 631+# decisions are made only based on compiler names
620+if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi 632+if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi
621+cc_basename=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 633+cc_basename=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
622  634
623 GCC=$G77 635 GCC=$G77
624 if test -n "$compiler"; then 636 if test -n "$compiler"; then
625@@ -17131,9 +17277,16 @@ lt_prog_compiler_static_F77= 637@@ -17131,9 +17264,16 @@ lt_prog_compiler_static_F77=
626 ;; 638 ;;
627  639
628 darwin* | rhapsody*) 640 darwin* | rhapsody*)
629- # PIC is the default on this platform 641- # PIC is the default on this platform
630+ # PIC is the default on this platform, and static linking of 642+ # PIC is the default on this platform, and static linking of
631+ # binaries generally doesn't work 643+ # binaries generally doesn't work
632 # Common symbols not allowed in MH_DYLIB files 644 # Common symbols not allowed in MH_DYLIB files
633 lt_prog_compiler_pic_F77='-fno-common' 645 lt_prog_compiler_pic_F77='-fno-common'
634+ lt_prog_compiler_static_F77='' 646+ lt_prog_compiler_static_F77=''
635+ ;; 647+ ;;
636+ 648+
637+ *mint*) 649+ *mint*)
638+ # FreeMiNT does not support shared libraries at all 650+ # FreeMiNT does not support shared libraries at all
639+ lt_prog_compiler_pic_F77= 651+ lt_prog_compiler_pic_F77=
640 ;; 652 ;;
641  653
642 haiku*) 654 haiku*)
643@@ -17161,6 +17314,13 @@ lt_prog_compiler_static_F77= 655@@ -17161,6 +17301,13 @@ lt_prog_compiler_static_F77=
644 # Instead, we relocate shared libraries at runtime. 656 # Instead, we relocate shared libraries at runtime.
645 ;; 657 ;;
646  658
647+ mint*) 659+ mint*)
648+ # Just because we use GCC doesn't mean we suddenly get shared libraries 660+ # Just because we use GCC doesn't mean we suddenly get shared libraries
649+ # on systems that don't support them. 661+ # on systems that don't support them.
650+ lt_prog_compiler_can_build_shared_F77=no 662+ lt_prog_compiler_can_build_shared_F77=no
651+ enable_shared=no 663+ enable_shared=no
652+ ;; 664+ ;;
653+ 665+
654 msdosdjgpp*) 666 msdosdjgpp*)
655 # Just because we use GCC doesn't mean we suddenly get shared libraries 667 # Just because we use GCC doesn't mean we suddenly get shared libraries
656 # on systems that don't support them. 668 # on systems that don't support them.
657@@ -17313,6 +17473,15 @@ lt_prog_compiler_static_F77= 669@@ -17313,6 +17460,15 @@ lt_prog_compiler_static_F77=
658 esac 670 esac
659 ;; 671 ;;
660  672
661+ mirbsd*) 673+ mirbsd*)
662+ case $cc_basename in 674+ case $cc_basename in
663+ # pkgsrc f77 is f2c, which uses gcc underneath. 675+ # pkgsrc f77 is f2c, which uses gcc underneath.
664+ f77*) 676+ f77*)
665+ lt_prog_compiler_wl_F77='-Wl,' 677+ lt_prog_compiler_wl_F77='-Wl,'
666+ ;; 678+ ;;
667+ esac 679+ esac
668+ ;; 680+ ;;
669+ 681+
670 newsos6) 682 newsos6)
671 lt_prog_compiler_pic_F77='-KPIC' 683 lt_prog_compiler_pic_F77='-KPIC'
672 lt_prog_compiler_static_F77='-Bstatic' 684 lt_prog_compiler_static_F77='-Bstatic'
673@@ -17388,6 +17557,9 @@ lt_prog_compiler_static_F77= 685@@ -17388,6 +17544,9 @@ lt_prog_compiler_static_F77=
674  686
675 case $host_os in 687 case $host_os in
676 # For platforms which do not support PIC, -DPIC is meaningless: 688 # For platforms which do not support PIC, -DPIC is meaningless:
677+ mint*) 689+ mint*)
678+ lt_prog_compiler_pic_F77= 690+ lt_prog_compiler_pic_F77=
679+ ;; 691+ ;;
680 *djgpp*) 692 *djgpp*)
681 lt_prog_compiler_pic_F77= 693 lt_prog_compiler_pic_F77=
682 ;; 694 ;;
683@@ -17918,16 +18090,29 @@ _LT_EOF 695@@ -17918,16 +18077,29 @@ _LT_EOF
684 fi 696 fi
685 ;; 697 ;;
686  698
687- netbsd*) 699- netbsd*)
688- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 700- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
689- archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 701- archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
690- wlarc= 702- wlarc=
691+ mirbsd*) 703+ mirbsd*)
692+ if test -f /usr/libexec/ld.so; then 704+ if test -f /usr/libexec/ld.so; then
693+ hardcode_direct_F77=yes 705+ hardcode_direct_F77=yes
694+ hardcode_shlibpath_var_F77=no 706+ hardcode_shlibpath_var_F77=no
695+ hardcode_direct_absolute_F77=yes 707+ hardcode_direct_absolute_F77=yes
696+ archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 708+ archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
697+ archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 709+ archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
698+ hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 710+ hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
699+ export_dynamic_flag_spec_F77='${wl}-E' 711+ export_dynamic_flag_spec_F77='${wl}-E'
700 else 712 else
701- archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 713- archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
702- 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' 714- 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'
703+ ld_shlibs_F77=no 715+ ld_shlibs_F77=no
704 fi 716 fi
705 ;; 717 ;;
706  718
707+ netbsd*) 719+ netbsd*)
708+ archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 720+ archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
709+ 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' 721+ 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'
710+ hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 722+ hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
711+ hardcode_direct_F77=yes 723+ hardcode_direct_F77=yes
712+ hardcode_shlibpath_var_F77=no 724+ hardcode_shlibpath_var_F77=no
713+ output_verbose_link_cmd=func_echo_all 725+ output_verbose_link_cmd=func_echo_all
714+ ;; 726+ ;;
715+ 727+
716 solaris*) 728 solaris*)
717 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 729 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
718 ld_shlibs_F77=no 730 ld_shlibs_F77=no
719@@ -18324,7 +18509,7 @@ fi 731@@ -18324,7 +18496,7 @@ fi
720 allow_undefined_flag_F77="$_lt_dar_allow_undefined" 732 allow_undefined_flag_F77="$_lt_dar_allow_undefined"
721 case $cc_basename in 733 case $cc_basename in
722 ifort*) _lt_dar_can_shared=yes ;; 734 ifort*) _lt_dar_can_shared=yes ;;
723- *) _lt_dar_can_shared=$GCC ;; 735- *) _lt_dar_can_shared=$GCC ;;
724+ *) _lt_dar_can_shared=yes ;; 736+ *) _lt_dar_can_shared=yes ;;
725 esac 737 esac
726 if test "$_lt_dar_can_shared" = "yes"; then 738 if test "$_lt_dar_can_shared" = "yes"; then
727 output_verbose_link_cmd=func_echo_all 739 output_verbose_link_cmd=func_echo_all
728@@ -18498,15 +18683,28 @@ $as_echo "$lt_cv_irix_exported_symbol" > 740@@ -18498,15 +18670,28 @@ $as_echo "$lt_cv_irix_exported_symbol" >
729 link_all_deplibs_F77=yes 741 link_all_deplibs_F77=yes
730 ;; 742 ;;
731  743
732- netbsd*) 744- netbsd*)
733- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 745- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
734- archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 746- archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
735+ mirbsd*) 747+ mirbsd*)
736+ if test -f /usr/libexec/ld.so; then 748+ if test -f /usr/libexec/ld.so; then
737+ hardcode_direct_F77=yes 749+ hardcode_direct_F77=yes
738+ hardcode_shlibpath_var_F77=no 750+ hardcode_shlibpath_var_F77=no
739+ hardcode_direct_absolute_F77=yes 751+ hardcode_direct_absolute_F77=yes
740+ archive_cmds_F77='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 752+ archive_cmds_F77='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
741+ archive_expsym_cmds_F77='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 753+ archive_expsym_cmds_F77='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
742+ hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 754+ hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
743+ export_dynamic_flag_spec_F77='${wl}-E' 755+ export_dynamic_flag_spec_F77='${wl}-E'
744+ whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 756+ whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
745 else 757 else
746- archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 758- archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
747+ ld_shlibs_F77=no 759+ ld_shlibs_F77=no
748 fi 760 fi
749- hardcode_libdir_flag_spec_F77='-R$libdir' 761- hardcode_libdir_flag_spec_F77='-R$libdir'
750+ ;; 762+ ;;
751+ 763+
752+ netbsd*) 764+ netbsd*)
753+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 765+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
754+ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 766+ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
755+ hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 767+ hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
756 hardcode_direct_F77=yes 768 hardcode_direct_F77=yes
757 hardcode_shlibpath_var_F77=no 769 hardcode_shlibpath_var_F77=no
758+ output_verbose_link_cmd=func_echo_all 770+ output_verbose_link_cmd=func_echo_all
759 ;; 771 ;;
760  772
761 newsos6) 773 newsos6)
762@@ -18518,6 +18716,11 @@ $as_echo "$lt_cv_irix_exported_symbol" > 774@@ -18518,6 +18703,11 @@ $as_echo "$lt_cv_irix_exported_symbol" >
763 ;; 775 ;;
764  776
765 *nto* | *qnx*) 777 *nto* | *qnx*)
766+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 778+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
767+ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 779+ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
768+ hardcode_libdir_flag_spec_F77='-R$libdir' 780+ hardcode_libdir_flag_spec_F77='-R$libdir'
769+ hardcode_direct_F77=yes 781+ hardcode_direct_F77=yes
770+ hardcode_shlibpath_var_F77=no 782+ hardcode_shlibpath_var_F77=no
771 ;; 783 ;;
772  784
773 openbsd*) 785 openbsd*)
774@@ -19126,7 +19329,7 @@ dgux*) 786@@ -19126,7 +19316,7 @@ dgux*)
775 shlibpath_var=LD_LIBRARY_PATH 787 shlibpath_var=LD_LIBRARY_PATH
776 ;; 788 ;;
777  789
778-freebsd* | dragonfly*) 790-freebsd* | dragonfly*)
779+freebsd*) 791+freebsd*)
780 # DragonFly does not have aout. When/if they implement a new 792 # DragonFly does not have aout. When/if they implement a new
781 # versioning mechanism, adjust this. 793 # versioning mechanism, adjust this.
782 if test -x /usr/bin/objformat; then 794 if test -x /usr/bin/objformat; then
783@@ -19140,7 +19343,7 @@ freebsd* | dragonfly*) 795@@ -19140,7 +19330,7 @@ freebsd* | dragonfly*)
784 version_type=freebsd-$objformat 796 version_type=freebsd-$objformat
785 case $version_type in 797 case $version_type in
786 freebsd-elf*) 798 freebsd-elf*)
787- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 799- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
788+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 800+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
789 need_version=no 801 need_version=no
790 need_lib_prefix=no 802 need_lib_prefix=no
791 ;; 803 ;;
792@@ -19163,13 +19366,24 @@ freebsd* | dragonfly*) 804@@ -19163,13 +19353,24 @@ freebsd* | dragonfly*)
793 shlibpath_overrides_runpath=no 805 shlibpath_overrides_runpath=no
794 hardcode_into_libs=yes 806 hardcode_into_libs=yes
795 ;; 807 ;;
796- *) # from 4.6 on, and DragonFly 808- *) # from 4.6 on, and DragonFly
797+ *) # from 4.6 on 809+ *) # from 4.6 on
798 shlibpath_overrides_runpath=yes 810 shlibpath_overrides_runpath=yes
799 hardcode_into_libs=yes 811 hardcode_into_libs=yes
800 ;; 812 ;;
801 esac 813 esac
802 ;; 814 ;;
803  815
804+dragonfly*) 816+dragonfly*)
805+ version_type=linux 817+ version_type=linux
806+ need_version=no 818+ need_version=no
807+ need_lib_prefix=no 819+ need_lib_prefix=no
808+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 820+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
809+ soname_spec='${libname}${release}${shared_ext}$major' 821+ soname_spec='${libname}${release}${shared_ext}$major'
810+ shlibpath_var=LD_LIBRARY_PATH 822+ shlibpath_var=LD_LIBRARY_PATH
811+ shlibpath_overrides_runpath=no 823+ shlibpath_overrides_runpath=no
812+ hardcode_into_libs=yes 824+ hardcode_into_libs=yes
813+ ;; 825+ ;;
814+ 826+
815 gnu*) 827 gnu*)
816 version_type=linux # correct to gnu/linux during the next big refactor 828 version_type=linux # correct to gnu/linux during the next big refactor
817 need_lib_prefix=no 829 need_lib_prefix=no
818@@ -19257,12 +19471,7 @@ interix[3-9]*) 830@@ -19257,12 +19458,7 @@ interix[3-9]*)
819 irix5* | irix6* | nonstopux*) 831 irix5* | irix6* | nonstopux*)
820 case $host_os in 832 case $host_os in
821 nonstopux*) version_type=nonstopux ;; 833 nonstopux*) version_type=nonstopux ;;
822- *) 834- *)
823- if test "$lt_cv_prog_gnu_ld" = yes; then 835- if test "$lt_cv_prog_gnu_ld" = yes; then
824- version_type=linux # correct to gnu/linux during the next big refactor 836- version_type=linux # correct to gnu/linux during the next big refactor
825- else 837- else
826- version_type=irix 838- version_type=irix
827- fi ;; 839- fi ;;
828+ *) version_type=irix ;; 840+ *) version_type=irix ;;
829 esac 841 esac
830 need_lib_prefix=no 842 need_lib_prefix=no
831 need_version=no 843 need_version=no
832@@ -19355,19 +19564,36 @@ fi 844@@ -19355,19 +19551,36 @@ fi
833 dynamic_linker='GNU/Linux ld.so' 845 dynamic_linker='GNU/Linux ld.so'
834 ;; 846 ;;
835  847
836+midnightbsd*) 848+midnightbsd*)
837+ version_type=linux 849+ version_type=linux
838+ need_lib_prefix=no 850+ need_lib_prefix=no
839+ need_version=no 851+ need_version=no
840+ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${release}${shared_ext} $libname${shared_ext}' 852+ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${release}${shared_ext} $libname${shared_ext}'
841+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 853+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
842+ shlibpath_var=LD_LIBRARY_PATH 854+ shlibpath_var=LD_LIBRARY_PATH
843+ shlibpath_overrides_runpath=yes 855+ shlibpath_overrides_runpath=yes
844+ hardcode_into_libs=yes 856+ hardcode_into_libs=yes
845+ ;; 857+ ;;
846+ 858+
847+mirbsd*) 859+mirbsd*)
848+ version_type=linux 860+ version_type=linux
849+ sys_lib_search_path_spec="/usr/lib" 861+ sys_lib_search_path_spec="/usr/lib"
850+ sys_lib_dlsearch_path_spec="/usr/lib" 862+ sys_lib_dlsearch_path_spec="/usr/lib"
851+ need_lib_prefix=no 863+ need_lib_prefix=no
852+ need_version=no 864+ need_version=no
853+ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${shared_ext}${versuffix2}' 865+ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${shared_ext}${versuffix2}'
854+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 866+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
855+ shlibpath_var=LD_LIBRARY_PATH 867+ shlibpath_var=LD_LIBRARY_PATH
856+ shlibpath_overrides_runpath=yes 868+ shlibpath_overrides_runpath=yes
857+ ;; 869+ ;;
858+ 870+
859 netbsd*) 871 netbsd*)
860- version_type=sunos 872- version_type=sunos
861+ version_type=linux 873+ version_type=linux
862 need_lib_prefix=no 874 need_lib_prefix=no
863 need_version=no 875 need_version=no
864- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 876- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
865- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 877- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
866- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 878- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
867- dynamic_linker='NetBSD (a.out) ld.so' 879- dynamic_linker='NetBSD (a.out) ld.so'
868- else 880- else
869- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 881- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
870- soname_spec='${libname}${release}${shared_ext}$major' 882- soname_spec='${libname}${release}${shared_ext}$major'
871- dynamic_linker='NetBSD ld.elf_so' 883- dynamic_linker='NetBSD ld.elf_so'
872- fi 884- fi
873+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 885+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
874+ soname_spec='${libname}${release}${shared_ext}$major' 886+ soname_spec='${libname}${release}${shared_ext}$major'
875+ dynamic_linker='NetBSD ld.elf_so' 887+ dynamic_linker='NetBSD ld.elf_so'
876 shlibpath_var=LD_LIBRARY_PATH 888 shlibpath_var=LD_LIBRARY_PATH
877 shlibpath_overrides_runpath=yes 889 shlibpath_overrides_runpath=yes
878 hardcode_into_libs=yes 890 hardcode_into_libs=yes
879@@ -19393,7 +19619,7 @@ newsos6) 891@@ -19393,7 +19606,7 @@ newsos6)
880 ;; 892 ;;
881  893
882 openbsd*) 894 openbsd*)
883- version_type=sunos 895- version_type=sunos
884+ version_type=linux 896+ version_type=linux
885 sys_lib_dlsearch_path_spec="/usr/lib" 897 sys_lib_dlsearch_path_spec="/usr/lib"
886 need_lib_prefix=no 898 need_lib_prefix=no
887 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 899 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
888@@ -19401,7 +19627,7 @@ openbsd*) 900@@ -19401,7 +19614,7 @@ openbsd*)
889 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 901 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
890 *) need_version=no ;; 902 *) need_version=no ;;
891 esac 903 esac
892- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 904- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
893+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 905+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 906 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
895 shlibpath_var=LD_LIBRARY_PATH 907 shlibpath_var=LD_LIBRARY_PATH
896 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 908 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
897@@ -19966,7 +20192,10 @@ $RM -r conftest* 909@@ -19966,7 +20179,10 @@ $RM -r conftest*
898 *) break;; 910 *) break;;
899 esac 911 esac
900 done 912 done
901-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 913-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
902+# Return the actual command name, not our pkgsrc wrapper name because several 914+# Return the actual command name, not our pkgsrc wrapper name because several
903+# decisions are made only based on compiler names 915+# decisions are made only based on compiler names
904+if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi 916+if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi
905+cc_basename=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 917+cc_basename=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
906  918
907  919
908 if test -n "$compiler"; then 920 if test -n "$compiler"; then
909@@ -20203,9 +20432,16 @@ lt_prog_compiler_static_FC= 921@@ -20203,9 +20419,16 @@ lt_prog_compiler_static_FC=
910 ;; 922 ;;
911  923
912 darwin* | rhapsody*) 924 darwin* | rhapsody*)
913- # PIC is the default on this platform 925- # PIC is the default on this platform
914+ # PIC is the default on this platform, and static linking of 926+ # PIC is the default on this platform, and static linking of
915+ # binaries generally doesn't work 927+ # binaries generally doesn't work
916 # Common symbols not allowed in MH_DYLIB files 928 # Common symbols not allowed in MH_DYLIB files
917 lt_prog_compiler_pic_FC='-fno-common' 929 lt_prog_compiler_pic_FC='-fno-common'
918+ lt_prog_compiler_static_FC='' 930+ lt_prog_compiler_static_FC=''
919+ ;; 931+ ;;
920+ 932+
921+ *mint*) 933+ *mint*)
922+ # FreeMiNT does not support shared libraries at all 934+ # FreeMiNT does not support shared libraries at all
923+ lt_prog_compiler_pic_FC= 935+ lt_prog_compiler_pic_FC=
924 ;; 936 ;;
925  937
926 haiku*) 938 haiku*)
927@@ -20233,6 +20469,13 @@ lt_prog_compiler_static_FC= 939@@ -20233,6 +20456,13 @@ lt_prog_compiler_static_FC=
928 # Instead, we relocate shared libraries at runtime. 940 # Instead, we relocate shared libraries at runtime.
929 ;; 941 ;;
930  942
931+ mint*) 943+ mint*)
932+ # Just because we use GCC doesn't mean we suddenly get shared libraries 944+ # Just because we use GCC doesn't mean we suddenly get shared libraries
933+ # on systems that don't support them. 945+ # on systems that don't support them.
934+ lt_prog_compiler_can_build_shared_FC=no 946+ lt_prog_compiler_can_build_shared_FC=no
935+ enable_shared=no 947+ enable_shared=no
936+ ;; 948+ ;;
937+ 949+
938 msdosdjgpp*) 950 msdosdjgpp*)
939 # Just because we use GCC doesn't mean we suddenly get shared libraries 951 # Just because we use GCC doesn't mean we suddenly get shared libraries
940 # on systems that don't support them. 952 # on systems that don't support them.
941@@ -20385,6 +20628,15 @@ lt_prog_compiler_static_FC= 953@@ -20385,6 +20615,15 @@ lt_prog_compiler_static_FC=
942 esac 954 esac
943 ;; 955 ;;
944  956
945+ mirbsd*) 957+ mirbsd*)
946+ case $cc_basename in 958+ case $cc_basename in
947+ # pkgsrc f77 is f2c, which uses gcc underneath. 959+ # pkgsrc f77 is f2c, which uses gcc underneath.
948+ f77*) 960+ f77*)
949+ lt_prog_compiler_wl_FC='-Wl,' 961+ lt_prog_compiler_wl_FC='-Wl,'
950+ ;; 962+ ;;
951+ esac 963+ esac
952+ ;; 964+ ;;
953+ 965+
954 newsos6) 966 newsos6)
955 lt_prog_compiler_pic_FC='-KPIC' 967 lt_prog_compiler_pic_FC='-KPIC'
956 lt_prog_compiler_static_FC='-Bstatic' 968 lt_prog_compiler_static_FC='-Bstatic'
957@@ -20460,6 +20712,9 @@ lt_prog_compiler_static_FC= 969@@ -20460,6 +20699,9 @@ lt_prog_compiler_static_FC=
958  970
959 case $host_os in 971 case $host_os in
960 # For platforms which do not support PIC, -DPIC is meaningless: 972 # For platforms which do not support PIC, -DPIC is meaningless:
961+ mint*) 973+ mint*)
962+ lt_prog_compiler_pic_FC= 974+ lt_prog_compiler_pic_FC=
963+ ;; 975+ ;;
964 *djgpp*) 976 *djgpp*)
965 lt_prog_compiler_pic_FC= 977 lt_prog_compiler_pic_FC=
966 ;; 978 ;;
967@@ -20990,16 +21245,29 @@ _LT_EOF 979@@ -20990,16 +21232,29 @@ _LT_EOF
968 fi 980 fi
969 ;; 981 ;;
970  982
971- netbsd*) 983- netbsd*)
972- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 984- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
973- archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 985- archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
974- wlarc= 986- wlarc=
975+ mirbsd*) 987+ mirbsd*)
976+ if test -f /usr/libexec/ld.so; then 988+ if test -f /usr/libexec/ld.so; then
977+ hardcode_direct_FC=yes 989+ hardcode_direct_FC=yes
978+ hardcode_shlibpath_var_FC=no 990+ hardcode_shlibpath_var_FC=no
979+ hardcode_direct_absolute_FC=yes 991+ hardcode_direct_absolute_FC=yes
980+ archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 992+ archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
981+ archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 993+ archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
982+ hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' 994+ hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
983+ export_dynamic_flag_spec_FC='${wl}-E' 995+ export_dynamic_flag_spec_FC='${wl}-E'
984 else 996 else
985- archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 997- archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
986- 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' 998- 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'
987+ ld_shlibs_FC=no 999+ ld_shlibs_FC=no
988 fi 1000 fi
989 ;; 1001 ;;
990  1002
991+ netbsd*) 1003+ netbsd*)
992+ archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 1004+ archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
993+ 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' 1005+ 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'
994+ hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' 1006+ hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
995+ hardcode_direct_FC=yes 1007+ hardcode_direct_FC=yes
996+ hardcode_shlibpath_var_FC=no 1008+ hardcode_shlibpath_var_FC=no
997+ output_verbose_link_cmd=func_echo_all 1009+ output_verbose_link_cmd=func_echo_all
998+ ;; 1010+ ;;
999+ 1011+
1000 solaris*) 1012 solaris*)
1001 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 1013 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
1002 ld_shlibs_FC=no 1014 ld_shlibs_FC=no
1003@@ -21396,7 +21664,7 @@ fi 1015@@ -21396,7 +21651,7 @@ fi
1004 allow_undefined_flag_FC="$_lt_dar_allow_undefined" 1016 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
1005 case $cc_basename in 1017 case $cc_basename in
1006 ifort*) _lt_dar_can_shared=yes ;; 1018 ifort*) _lt_dar_can_shared=yes ;;
1007- *) _lt_dar_can_shared=$GCC ;; 1019- *) _lt_dar_can_shared=$GCC ;;
1008+ *) _lt_dar_can_shared=yes ;; 1020+ *) _lt_dar_can_shared=yes ;;
1009 esac 1021 esac
1010 if test "$_lt_dar_can_shared" = "yes"; then 1022 if test "$_lt_dar_can_shared" = "yes"; then
1011 output_verbose_link_cmd=func_echo_all 1023 output_verbose_link_cmd=func_echo_all
1012@@ -21570,15 +21838,28 @@ $as_echo "$lt_cv_irix_exported_symbol" > 1024@@ -21570,15 +21825,28 @@ $as_echo "$lt_cv_irix_exported_symbol" >
1013 link_all_deplibs_FC=yes 1025 link_all_deplibs_FC=yes
1014 ;; 1026 ;;
1015  1027
1016- netbsd*) 1028- netbsd*)
1017- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 1029- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1018- archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 1030- archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
1019+ mirbsd*) 1031+ mirbsd*)
1020+ if test -f /usr/libexec/ld.so; then 1032+ if test -f /usr/libexec/ld.so; then
1021+ hardcode_direct_FC=yes 1033+ hardcode_direct_FC=yes
1022+ hardcode_shlibpath_var_FC=no 1034+ hardcode_shlibpath_var_FC=no
1023+ hardcode_direct_absolute_FC=yes 1035+ hardcode_direct_absolute_FC=yes
1024+ archive_cmds_FC='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 1036+ archive_cmds_FC='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
1025+ archive_expsym_cmds_FC='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 1037+ archive_expsym_cmds_FC='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
1026+ hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' 1038+ hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
1027+ export_dynamic_flag_spec_FC='${wl}-E' 1039+ export_dynamic_flag_spec_FC='${wl}-E'
1028+ whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 1040+ whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
1029 else 1041 else
1030- archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 1042- archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
1031+ ld_shlibs_FC=no 1043+ ld_shlibs_FC=no
1032 fi 1044 fi
1033- hardcode_libdir_flag_spec_FC='-R$libdir' 1045- hardcode_libdir_flag_spec_FC='-R$libdir'
1034+ ;; 1046+ ;;
1035+ 1047+
1036+ netbsd*) 1048+ netbsd*)
1037+ archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 1049+ archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1038+ archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 1050+ archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1039+ hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' 1051+ hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
1040 hardcode_direct_FC=yes 1052 hardcode_direct_FC=yes
1041 hardcode_shlibpath_var_FC=no 1053 hardcode_shlibpath_var_FC=no
1042+ output_verbose_link_cmd=func_echo_all 1054+ output_verbose_link_cmd=func_echo_all
1043 ;; 1055 ;;
1044  1056
1045 newsos6) 1057 newsos6)
1046@@ -21590,6 +21871,11 @@ $as_echo "$lt_cv_irix_exported_symbol" > 1058@@ -21590,6 +21858,11 @@ $as_echo "$lt_cv_irix_exported_symbol" >
1047 ;; 1059 ;;
1048  1060
1049 *nto* | *qnx*) 1061 *nto* | *qnx*)
1050+ archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 1062+ archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1051+ archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 1063+ archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1052+ hardcode_libdir_flag_spec_FC='-R$libdir' 1064+ hardcode_libdir_flag_spec_FC='-R$libdir'
1053+ hardcode_direct_FC=yes 1065+ hardcode_direct_FC=yes
1054+ hardcode_shlibpath_var_FC=no 1066+ hardcode_shlibpath_var_FC=no
1055 ;; 1067 ;;
1056  1068
1057 openbsd*) 1069 openbsd*)
1058@@ -22198,7 +22484,7 @@ dgux*) 1070@@ -22198,7 +22471,7 @@ dgux*)
1059 shlibpath_var=LD_LIBRARY_PATH 1071 shlibpath_var=LD_LIBRARY_PATH
1060 ;; 1072 ;;
1061  1073
1062-freebsd* | dragonfly*) 1074-freebsd* | dragonfly*)
1063+freebsd*) 1075+freebsd*)
1064 # DragonFly does not have aout. When/if they implement a new 1076 # DragonFly does not have aout. When/if they implement a new
1065 # versioning mechanism, adjust this. 1077 # versioning mechanism, adjust this.
1066 if test -x /usr/bin/objformat; then 1078 if test -x /usr/bin/objformat; then
1067@@ -22212,7 +22498,7 @@ freebsd* | dragonfly*) 1079@@ -22212,7 +22485,7 @@ freebsd* | dragonfly*)
1068 version_type=freebsd-$objformat 1080 version_type=freebsd-$objformat
1069 case $version_type in 1081 case $version_type in
1070 freebsd-elf*) 1082 freebsd-elf*)
1071- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 1083- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1072+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1084+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1073 need_version=no 1085 need_version=no
1074 need_lib_prefix=no 1086 need_lib_prefix=no
1075 ;; 1087 ;;
1076@@ -22235,13 +22521,24 @@ freebsd* | dragonfly*) 1088@@ -22235,13 +22508,24 @@ freebsd* | dragonfly*)
1077 shlibpath_overrides_runpath=no 1089 shlibpath_overrides_runpath=no
1078 hardcode_into_libs=yes 1090 hardcode_into_libs=yes
1079 ;; 1091 ;;
1080- *) # from 4.6 on, and DragonFly 1092- *) # from 4.6 on, and DragonFly
1081+ *) # from 4.6 on 1093+ *) # from 4.6 on
1082 shlibpath_overrides_runpath=yes 1094 shlibpath_overrides_runpath=yes
1083 hardcode_into_libs=yes 1095 hardcode_into_libs=yes
1084 ;; 1096 ;;
1085 esac 1097 esac
1086 ;; 1098 ;;
1087  1099
1088+dragonfly*) 1100+dragonfly*)
1089+ version_type=linux 1101+ version_type=linux
1090+ need_version=no 1102+ need_version=no
1091+ need_lib_prefix=no 1103+ need_lib_prefix=no
1092+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1104+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1093+ soname_spec='${libname}${release}${shared_ext}$major' 1105+ soname_spec='${libname}${release}${shared_ext}$major'
1094+ shlibpath_var=LD_LIBRARY_PATH 1106+ shlibpath_var=LD_LIBRARY_PATH
1095+ shlibpath_overrides_runpath=no 1107+ shlibpath_overrides_runpath=no
1096+ hardcode_into_libs=yes 1108+ hardcode_into_libs=yes
1097+ ;; 1109+ ;;
1098+ 1110+
1099 gnu*) 1111 gnu*)
1100 version_type=linux # correct to gnu/linux during the next big refactor 1112 version_type=linux # correct to gnu/linux during the next big refactor
1101 need_lib_prefix=no 1113 need_lib_prefix=no
1102@@ -22329,12 +22626,7 @@ interix[3-9]*) 1114@@ -22329,12 +22613,7 @@ interix[3-9]*)
1103 irix5* | irix6* | nonstopux*) 1115 irix5* | irix6* | nonstopux*)
1104 case $host_os in 1116 case $host_os in
1105 nonstopux*) version_type=nonstopux ;; 1117 nonstopux*) version_type=nonstopux ;;
1106- *) 1118- *)
1107- if test "$lt_cv_prog_gnu_ld" = yes; then 1119- if test "$lt_cv_prog_gnu_ld" = yes; then
1108- version_type=linux # correct to gnu/linux during the next big refactor 1120- version_type=linux # correct to gnu/linux during the next big refactor
1109- else 1121- else
1110- version_type=irix 1122- version_type=irix
1111- fi ;; 1123- fi ;;
1112+ *) version_type=irix ;; 1124+ *) version_type=irix ;;
1113 esac 1125 esac
1114 need_lib_prefix=no 1126 need_lib_prefix=no
1115 need_version=no 1127 need_version=no
1116@@ -22427,19 +22719,36 @@ fi 1128@@ -22427,19 +22706,36 @@ fi
1117 dynamic_linker='GNU/Linux ld.so' 1129 dynamic_linker='GNU/Linux ld.so'
1118 ;; 1130 ;;
1119  1131
1120+midnightbsd*) 1132+midnightbsd*)
1121+ version_type=linux 1133+ version_type=linux
1122+ need_lib_prefix=no 1134+ need_lib_prefix=no
1123+ need_version=no 1135+ need_version=no
1124+ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${release}${shared_ext} $libname${shared_ext}' 1136+ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${release}${shared_ext} $libname${shared_ext}'
1125+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 1137+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1126+ shlibpath_var=LD_LIBRARY_PATH 1138+ shlibpath_var=LD_LIBRARY_PATH
1127+ shlibpath_overrides_runpath=yes 1139+ shlibpath_overrides_runpath=yes
1128+ hardcode_into_libs=yes 1140+ hardcode_into_libs=yes
1129+ ;; 1141+ ;;
1130+ 1142+
1131+mirbsd*) 1143+mirbsd*)
1132+ version_type=linux 1144+ version_type=linux
1133+ sys_lib_search_path_spec="/usr/lib" 1145+ sys_lib_search_path_spec="/usr/lib"
1134+ sys_lib_dlsearch_path_spec="/usr/lib" 1146+ sys_lib_dlsearch_path_spec="/usr/lib"
1135+ need_lib_prefix=no 1147+ need_lib_prefix=no
1136+ need_version=no 1148+ need_version=no
1137+ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${shared_ext}${versuffix2}' 1149+ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${shared_ext}${versuffix2}'
1138+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 1150+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1139+ shlibpath_var=LD_LIBRARY_PATH 1151+ shlibpath_var=LD_LIBRARY_PATH
1140+ shlibpath_overrides_runpath=yes 1152+ shlibpath_overrides_runpath=yes
1141+ ;; 1153+ ;;
1142+ 1154+
1143 netbsd*) 1155 netbsd*)
1144- version_type=sunos 1156- version_type=sunos
1145+ version_type=linux 1157+ version_type=linux
1146 need_lib_prefix=no 1158 need_lib_prefix=no
1147 need_version=no 1159 need_version=no
1148- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 1160- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1149- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 1161- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1150- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 1162- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1151- dynamic_linker='NetBSD (a.out) ld.so' 1163- dynamic_linker='NetBSD (a.out) ld.so'
1152- else 1164- else
1153- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1165- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1154- soname_spec='${libname}${release}${shared_ext}$major' 1166- soname_spec='${libname}${release}${shared_ext}$major'
1155- dynamic_linker='NetBSD ld.elf_so' 1167- dynamic_linker='NetBSD ld.elf_so'
1156- fi 1168- fi
1157+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1169+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1158+ soname_spec='${libname}${release}${shared_ext}$major' 1170+ soname_spec='${libname}${release}${shared_ext}$major'
1159+ dynamic_linker='NetBSD ld.elf_so' 1171+ dynamic_linker='NetBSD ld.elf_so'
1160 shlibpath_var=LD_LIBRARY_PATH 1172 shlibpath_var=LD_LIBRARY_PATH
1161 shlibpath_overrides_runpath=yes 1173 shlibpath_overrides_runpath=yes
1162 hardcode_into_libs=yes 1174 hardcode_into_libs=yes
1163@@ -22465,7 +22774,7 @@ newsos6) 1175@@ -22465,7 +22761,7 @@ newsos6)
1164 ;; 1176 ;;
1165  1177
1166 openbsd*) 1178 openbsd*)
1167- version_type=sunos 1179- version_type=sunos
1168+ version_type=linux 1180+ version_type=linux
1169 sys_lib_dlsearch_path_spec="/usr/lib" 1181 sys_lib_dlsearch_path_spec="/usr/lib"
1170 need_lib_prefix=no 1182 need_lib_prefix=no
1171 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 1183 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1172@@ -22473,7 +22782,7 @@ openbsd*) 1184@@ -22473,7 +22769,7 @@ openbsd*)
1173 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 1185 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1174 *) need_version=no ;; 1186 *) need_version=no ;;
1175 esac 1187 esac
1176- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 1188- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1177+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1189+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1178 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 1190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1179 shlibpath_var=LD_LIBRARY_PATH 1191 shlibpath_var=LD_LIBRARY_PATH
1180 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 1192 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1181@@ -22883,7 +23192,10 @@ for cc_temp in $compiler""; do 1193@@ -22883,7 +23179,10 @@ for cc_temp in $compiler""; do
1182 *) break;; 1194 *) break;;
1183 esac 1195 esac
1184 done 1196 done
1185-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 1197-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1186+# Return the actual command name, not our pkgsrc wrapper name because several 1198+# Return the actual command name, not our pkgsrc wrapper name because several
1187+# decisions are made only based on compiler names 1199+# decisions are made only based on compiler names
1188+if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi 1200+if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi
1189+cc_basename=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 1201+cc_basename=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1190  1202
1191  1203
1192 # Go did not exist at the time GCC didn't implicitly link libc in. 1204 # Go did not exist at the time GCC didn't implicitly link libc in.
1193@@ -23003,9 +23315,16 @@ lt_prog_compiler_static_GO= 1205@@ -23003,9 +23302,16 @@ lt_prog_compiler_static_GO=
1194 ;; 1206 ;;
1195  1207
1196 darwin* | rhapsody*) 1208 darwin* | rhapsody*)
1197- # PIC is the default on this platform 1209- # PIC is the default on this platform
1198+ # PIC is the default on this platform, and static linking of 1210+ # PIC is the default on this platform, and static linking of
1199+ # binaries generally doesn't work 1211+ # binaries generally doesn't work
1200 # Common symbols not allowed in MH_DYLIB files 1212 # Common symbols not allowed in MH_DYLIB files
1201 lt_prog_compiler_pic_GO='-fno-common' 1213 lt_prog_compiler_pic_GO='-fno-common'
1202+ lt_prog_compiler_static_GO='' 1214+ lt_prog_compiler_static_GO=''
1203+ ;; 1215+ ;;
1204+ 1216+
1205+ *mint*) 1217+ *mint*)
1206+ # FreeMiNT does not support shared libraries at all 1218+ # FreeMiNT does not support shared libraries at all
1207+ lt_prog_compiler_pic_GO= 1219+ lt_prog_compiler_pic_GO=
1208 ;; 1220 ;;
1209  1221
1210 haiku*) 1222 haiku*)
1211@@ -23033,6 +23352,13 @@ lt_prog_compiler_static_GO= 1223@@ -23033,6 +23339,13 @@ lt_prog_compiler_static_GO=
1212 # Instead, we relocate shared libraries at runtime. 1224 # Instead, we relocate shared libraries at runtime.
1213 ;; 1225 ;;
1214  1226
1215+ mint*) 1227+ mint*)
1216+ # Just because we use GCC doesn't mean we suddenly get shared libraries 1228+ # Just because we use GCC doesn't mean we suddenly get shared libraries
1217+ # on systems that don't support them. 1229+ # on systems that don't support them.
1218+ lt_prog_compiler_can_build_shared_GO=no 1230+ lt_prog_compiler_can_build_shared_GO=no
1219+ enable_shared=no 1231+ enable_shared=no
1220+ ;; 1232+ ;;
1221+ 1233+
1222 msdosdjgpp*) 1234 msdosdjgpp*)
1223 # Just because we use GCC doesn't mean we suddenly get shared libraries 1235 # Just because we use GCC doesn't mean we suddenly get shared libraries
1224 # on systems that don't support them. 1236 # on systems that don't support them.
1225@@ -23185,6 +23511,15 @@ lt_prog_compiler_static_GO= 1237@@ -23185,6 +23498,15 @@ lt_prog_compiler_static_GO=
1226 esac 1238 esac
1227 ;; 1239 ;;
1228  1240
1229+ mirbsd*) 1241+ mirbsd*)
1230+ case $cc_basename in 1242+ case $cc_basename in
1231+ # pkgsrc f77 is f2c, which uses gcc underneath. 1243+ # pkgsrc f77 is f2c, which uses gcc underneath.
1232+ f77*) 1244+ f77*)
1233+ lt_prog_compiler_wl_GO='-Wl,' 1245+ lt_prog_compiler_wl_GO='-Wl,'
1234+ ;; 1246+ ;;
1235+ esac 1247+ esac
1236+ ;; 1248+ ;;
1237+ 1249+
1238 newsos6) 1250 newsos6)
1239 lt_prog_compiler_pic_GO='-KPIC' 1251 lt_prog_compiler_pic_GO='-KPIC'
1240 lt_prog_compiler_static_GO='-Bstatic' 1252 lt_prog_compiler_static_GO='-Bstatic'
1241@@ -23260,6 +23595,9 @@ lt_prog_compiler_static_GO= 1253@@ -23260,6 +23582,9 @@ lt_prog_compiler_static_GO=
1242  1254
1243 case $host_os in 1255 case $host_os in
1244 # For platforms which do not support PIC, -DPIC is meaningless: 1256 # For platforms which do not support PIC, -DPIC is meaningless:
1245+ mint*) 1257+ mint*)
1246+ lt_prog_compiler_pic_GO= 1258+ lt_prog_compiler_pic_GO=
1247+ ;; 1259+ ;;
1248 *djgpp*) 1260 *djgpp*)
1249 lt_prog_compiler_pic_GO= 1261 lt_prog_compiler_pic_GO=
1250 ;; 1262 ;;
1251@@ -23790,16 +24128,29 @@ _LT_EOF 1263@@ -23790,16 +24115,29 @@ _LT_EOF
1252 fi 1264 fi
1253 ;; 1265 ;;
1254  1266
1255- netbsd*) 1267- netbsd*)
1256- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 1268- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1257- archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 1269- archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
1258- wlarc= 1270- wlarc=
1259+ mirbsd*) 1271+ mirbsd*)
1260+ if test -f /usr/libexec/ld.so; then 1272+ if test -f /usr/libexec/ld.so; then
1261+ hardcode_direct_GO=yes 1273+ hardcode_direct_GO=yes
1262+ hardcode_shlibpath_var_GO=no 1274+ hardcode_shlibpath_var_GO=no
1263+ hardcode_direct_absolute_GO=yes 1275+ hardcode_direct_absolute_GO=yes
1264+ archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 1276+ archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1265+ archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 1277+ archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1266+ hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir' 1278+ hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
1267+ export_dynamic_flag_spec_GO='${wl}-E' 1279+ export_dynamic_flag_spec_GO='${wl}-E'
1268 else 1280 else
1269- archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 1281- archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1270- 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' 1282- 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'
1271+ ld_shlibs_GO=no 1283+ ld_shlibs_GO=no
1272 fi 1284 fi
1273 ;; 1285 ;;
1274  1286
1275+ netbsd*) 1287+ netbsd*)
1276+ archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 1288+ archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1277+ 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' 1289+ 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'
1278+ hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir' 1290+ hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
1279+ hardcode_direct_GO=yes 1291+ hardcode_direct_GO=yes
1280+ hardcode_shlibpath_var_GO=no 1292+ hardcode_shlibpath_var_GO=no
1281+ output_verbose_link_cmd=func_echo_all 1293+ output_verbose_link_cmd=func_echo_all
1282+ ;; 1294+ ;;
1283+ 1295+
1284 solaris*) 1296 solaris*)
1285 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 1297 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
1286 ld_shlibs_GO=no 1298 ld_shlibs_GO=no
1287@@ -24208,7 +24559,7 @@ fi 1299@@ -24208,7 +24546,7 @@ fi
1288 allow_undefined_flag_GO="$_lt_dar_allow_undefined" 1300 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
1289 case $cc_basename in 1301 case $cc_basename in
1290 ifort*) _lt_dar_can_shared=yes ;; 1302 ifort*) _lt_dar_can_shared=yes ;;
1291- *) _lt_dar_can_shared=$GCC ;; 1303- *) _lt_dar_can_shared=$GCC ;;
1292+ *) _lt_dar_can_shared=yes ;; 1304+ *) _lt_dar_can_shared=yes ;;
1293 esac 1305 esac
1294 if test "$_lt_dar_can_shared" = "yes"; then 1306 if test "$_lt_dar_can_shared" = "yes"; then
1295 output_verbose_link_cmd=func_echo_all 1307 output_verbose_link_cmd=func_echo_all
1296@@ -24381,15 +24732,28 @@ $as_echo "$lt_cv_irix_exported_symbol" > 1308@@ -24381,15 +24719,28 @@ $as_echo "$lt_cv_irix_exported_symbol" >
1297 link_all_deplibs_GO=yes 1309 link_all_deplibs_GO=yes
1298 ;; 1310 ;;
1299  1311
1300- netbsd*) 1312- netbsd*)
1301- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 1313- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1302- archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 1314- archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
1303+ mirbsd*) 1315+ mirbsd*)
1304+ if test -f /usr/libexec/ld.so; then 1316+ if test -f /usr/libexec/ld.so; then
1305+ hardcode_direct_GO=yes 1317+ hardcode_direct_GO=yes
1306+ hardcode_shlibpath_var_GO=no 1318+ hardcode_shlibpath_var_GO=no
1307+ hardcode_direct_absolute_GO=yes 1319+ hardcode_direct_absolute_GO=yes
1308+ archive_cmds_GO='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 1320+ archive_cmds_GO='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
1309+ archive_expsym_cmds_GO='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 1321+ archive_expsym_cmds_GO='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
1310+ hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir' 1322+ hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
1311+ export_dynamic_flag_spec_GO='${wl}-E' 1323+ export_dynamic_flag_spec_GO='${wl}-E'
1312+ whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 1324+ whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
1313 else 1325 else
1314- archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 1326- archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
1315+ ld_shlibs_GO=no 1327+ ld_shlibs_GO=no
1316 fi 1328 fi
1317- hardcode_libdir_flag_spec_GO='-R$libdir' 1329- hardcode_libdir_flag_spec_GO='-R$libdir'
1318+ ;; 1330+ ;;
1319+ 1331+
1320+ netbsd*) 1332+ netbsd*)
1321+ archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 1333+ archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1322+ archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 1334+ archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1323+ hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir' 1335+ hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
1324 hardcode_direct_GO=yes 1336 hardcode_direct_GO=yes
1325 hardcode_shlibpath_var_GO=no 1337 hardcode_shlibpath_var_GO=no
1326+ output_verbose_link_cmd=func_echo_all 1338+ output_verbose_link_cmd=func_echo_all
1327 ;; 1339 ;;
1328  1340
1329 newsos6) 1341 newsos6)
1330@@ -24401,6 +24765,11 @@ $as_echo "$lt_cv_irix_exported_symbol" > 1342@@ -24401,6 +24752,11 @@ $as_echo "$lt_cv_irix_exported_symbol" >
1331 ;; 1343 ;;
1332  1344
1333 *nto* | *qnx*) 1345 *nto* | *qnx*)
1334+ archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 1346+ archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1335+ archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 1347+ archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1336+ hardcode_libdir_flag_spec_GO='-R$libdir' 1348+ hardcode_libdir_flag_spec_GO='-R$libdir'
1337+ hardcode_direct_GO=yes 1349+ hardcode_direct_GO=yes
1338+ hardcode_shlibpath_var_GO=no 1350+ hardcode_shlibpath_var_GO=no
1339 ;; 1351 ;;
1340  1352
1341 openbsd*) 1353 openbsd*)
1342@@ -24980,7 +25349,10 @@ for cc_temp in $compiler""; do 1354@@ -24980,7 +25336,10 @@ for cc_temp in $compiler""; do
1343 *) break;; 1355 *) break;;
1344 esac 1356 esac
1345 done 1357 done
1346-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 1358-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1347+# Return the actual command name, not our pkgsrc wrapper name because several 1359+# Return the actual command name, not our pkgsrc wrapper name because several
1348+# decisions are made only based on compiler names 1360+# decisions are made only based on compiler names
1349+if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi 1361+if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi
1350+cc_basename=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 1362+cc_basename=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1351  1363
1352  1364
1353 # GCJ did not exist at the time GCC didn't implicitly link libc in. 1365 # GCJ did not exist at the time GCC didn't implicitly link libc in.
1354@@ -25100,9 +25472,16 @@ lt_prog_compiler_static_GCJ= 1366@@ -25100,9 +25459,16 @@ lt_prog_compiler_static_GCJ=
1355 ;; 1367 ;;
1356  1368
1357 darwin* | rhapsody*) 1369 darwin* | rhapsody*)
1358- # PIC is the default on this platform 1370- # PIC is the default on this platform
1359+ # PIC is the default on this platform, and static linking of 1371+ # PIC is the default on this platform, and static linking of
1360+ # binaries generally doesn't work 1372+ # binaries generally doesn't work
1361 # Common symbols not allowed in MH_DYLIB files 1373 # Common symbols not allowed in MH_DYLIB files
1362 lt_prog_compiler_pic_GCJ='-fno-common' 1374 lt_prog_compiler_pic_GCJ='-fno-common'
1363+ lt_prog_compiler_static_GCJ='' 1375+ lt_prog_compiler_static_GCJ=''
1364+ ;; 1376+ ;;
1365+ 1377+
1366+ *mint*) 1378+ *mint*)
1367+ # FreeMiNT does not support shared libraries at all 1379+ # FreeMiNT does not support shared libraries at all
1368+ lt_prog_compiler_pic_GCJ= 1380+ lt_prog_compiler_pic_GCJ=
1369 ;; 1381 ;;
1370  1382
1371 haiku*) 1383 haiku*)
1372@@ -25130,6 +25509,13 @@ lt_prog_compiler_static_GCJ= 1384@@ -25130,6 +25496,13 @@ lt_prog_compiler_static_GCJ=
1373 # Instead, we relocate shared libraries at runtime. 1385 # Instead, we relocate shared libraries at runtime.
1374 ;; 1386 ;;
1375  1387
1376+ mint*) 1388+ mint*)
1377+ # Just because we use GCC doesn't mean we suddenly get shared libraries 1389+ # Just because we use GCC doesn't mean we suddenly get shared libraries
1378+ # on systems that don't support them. 1390+ # on systems that don't support them.
1379+ lt_prog_compiler_can_build_shared_GCJ=no 1391+ lt_prog_compiler_can_build_shared_GCJ=no
1380+ enable_shared=no 1392+ enable_shared=no
1381+ ;; 1393+ ;;
1382+ 1394+
1383 msdosdjgpp*) 1395 msdosdjgpp*)
1384 # Just because we use GCC doesn't mean we suddenly get shared libraries 1396 # Just because we use GCC doesn't mean we suddenly get shared libraries
1385 # on systems that don't support them. 1397 # on systems that don't support them.
1386@@ -25282,6 +25668,15 @@ lt_prog_compiler_static_GCJ= 1398@@ -25282,6 +25655,15 @@ lt_prog_compiler_static_GCJ=
1387 esac 1399 esac
1388 ;; 1400 ;;
1389  1401
1390+ mirbsd*) 1402+ mirbsd*)
1391+ case $cc_basename in 1403+ case $cc_basename in
1392+ # pkgsrc f77 is f2c, which uses gcc underneath. 1404+ # pkgsrc f77 is f2c, which uses gcc underneath.
1393+ f77*) 1405+ f77*)
1394+ lt_prog_compiler_wl_GCJ='-Wl,' 1406+ lt_prog_compiler_wl_GCJ='-Wl,'
1395+ ;; 1407+ ;;
1396+ esac 1408+ esac
1397+ ;; 1409+ ;;
1398+ 1410+
1399 newsos6) 1411 newsos6)
1400 lt_prog_compiler_pic_GCJ='-KPIC' 1412 lt_prog_compiler_pic_GCJ='-KPIC'
1401 lt_prog_compiler_static_GCJ='-Bstatic' 1413 lt_prog_compiler_static_GCJ='-Bstatic'
1402@@ -25357,6 +25752,9 @@ lt_prog_compiler_static_GCJ= 1414@@ -25357,6 +25739,9 @@ lt_prog_compiler_static_GCJ=
1403  1415
1404 case $host_os in 1416 case $host_os in
1405 # For platforms which do not support PIC, -DPIC is meaningless: 1417 # For platforms which do not support PIC, -DPIC is meaningless:
1406+ mint*) 1418+ mint*)
1407+ lt_prog_compiler_pic_GCJ= 1419+ lt_prog_compiler_pic_GCJ=
1408+ ;; 1420+ ;;
1409 *djgpp*) 1421 *djgpp*)
1410 lt_prog_compiler_pic_GCJ= 1422 lt_prog_compiler_pic_GCJ=
1411 ;; 1423 ;;
1412@@ -25887,16 +26285,29 @@ _LT_EOF 1424@@ -25887,16 +26272,29 @@ _LT_EOF
1413 fi 1425 fi
1414 ;; 1426 ;;
1415  1427
1416- netbsd*) 1428- netbsd*)
1417- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 1429- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1418- archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 1430- archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
1419- wlarc= 1431- wlarc=
1420+ mirbsd*) 1432+ mirbsd*)
1421+ if test -f /usr/libexec/ld.so; then 1433+ if test -f /usr/libexec/ld.so; then
1422+ hardcode_direct_GCJ=yes 1434+ hardcode_direct_GCJ=yes
1423+ hardcode_shlibpath_var_GCJ=no 1435+ hardcode_shlibpath_var_GCJ=no
1424+ hardcode_direct_absolute_GCJ=yes 1436+ hardcode_direct_absolute_GCJ=yes
1425+ archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 1437+ archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1426+ archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 1438+ archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1427+ hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 1439+ hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
1428+ export_dynamic_flag_spec_GCJ='${wl}-E' 1440+ export_dynamic_flag_spec_GCJ='${wl}-E'
1429 else 1441 else
1430- archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 1442- archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1431- 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' 1443- 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'
1432+ ld_shlibs_GCJ=no 1444+ ld_shlibs_GCJ=no
1433 fi 1445 fi
1434 ;; 1446 ;;
1435  1447
1436+ netbsd*) 1448+ netbsd*)
1437+ archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 1449+ archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1438+ 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' 1450+ 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'
1439+ hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 1451+ hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
1440+ hardcode_direct_GCJ=yes 1452+ hardcode_direct_GCJ=yes
1441+ hardcode_shlibpath_var_GCJ=no 1453+ hardcode_shlibpath_var_GCJ=no
1442+ output_verbose_link_cmd=func_echo_all 1454+ output_verbose_link_cmd=func_echo_all
1443+ ;; 1455+ ;;
1444+ 1456+
1445 solaris*) 1457 solaris*)
1446 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 1458 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
1447 ld_shlibs_GCJ=no 1459 ld_shlibs_GCJ=no
1448@@ -26305,7 +26716,7 @@ fi 1460@@ -26305,7 +26703,7 @@ fi
1449 allow_undefined_flag_GCJ="$_lt_dar_allow_undefined" 1461 allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
1450 case $cc_basename in 1462 case $cc_basename in
1451 ifort*) _lt_dar_can_shared=yes ;; 1463 ifort*) _lt_dar_can_shared=yes ;;
1452- *) _lt_dar_can_shared=$GCC ;; 1464- *) _lt_dar_can_shared=$GCC ;;
1453+ *) _lt_dar_can_shared=yes ;; 1465+ *) _lt_dar_can_shared=yes ;;
1454 esac 1466 esac
1455 if test "$_lt_dar_can_shared" = "yes"; then 1467 if test "$_lt_dar_can_shared" = "yes"; then
1456 output_verbose_link_cmd=func_echo_all 1468 output_verbose_link_cmd=func_echo_all
1457@@ -26478,15 +26889,28 @@ $as_echo "$lt_cv_irix_exported_symbol" > 1469@@ -26478,15 +26876,28 @@ $as_echo "$lt_cv_irix_exported_symbol" >
1458 link_all_deplibs_GCJ=yes 1470 link_all_deplibs_GCJ=yes
1459 ;; 1471 ;;
1460  1472
1461- netbsd*) 1473- netbsd*)
1462- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 1474- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1463- archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 1475- archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
1464+ mirbsd*) 1476+ mirbsd*)
1465+ if test -f /usr/libexec/ld.so; then 1477+ if test -f /usr/libexec/ld.so; then
1466+ hardcode_direct_GCJ=yes 1478+ hardcode_direct_GCJ=yes
1467+ hardcode_shlibpath_var_GCJ=no 1479+ hardcode_shlibpath_var_GCJ=no
1468+ hardcode_direct_absolute_GCJ=yes 1480+ hardcode_direct_absolute_GCJ=yes
1469+ archive_cmds_GCJ='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 1481+ archive_cmds_GCJ='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
1470+ archive_expsym_cmds_GCJ='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 1482+ archive_expsym_cmds_GCJ='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
1471+ hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 1483+ hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
1472+ export_dynamic_flag_spec_GCJ='${wl}-E' 1484+ export_dynamic_flag_spec_GCJ='${wl}-E'
1473+ whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 1485+ whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
1474 else 1486 else
1475- archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 1487- archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
1476+ ld_shlibs_GCJ=no 1488+ ld_shlibs_GCJ=no
1477 fi 1489 fi
1478- hardcode_libdir_flag_spec_GCJ='-R$libdir' 1490- hardcode_libdir_flag_spec_GCJ='-R$libdir'
1479+ ;; 1491+ ;;
1480+ 1492+
1481+ netbsd*) 1493+ netbsd*)
1482+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 1494+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1483+ archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 1495+ archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1484+ hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 1496+ hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
1485 hardcode_direct_GCJ=yes 1497 hardcode_direct_GCJ=yes
1486 hardcode_shlibpath_var_GCJ=no 1498 hardcode_shlibpath_var_GCJ=no
1487+ output_verbose_link_cmd=func_echo_all 1499+ output_verbose_link_cmd=func_echo_all
1488 ;; 1500 ;;
1489  1501
1490 newsos6) 1502 newsos6)
1491@@ -26498,6 +26922,11 @@ $as_echo "$lt_cv_irix_exported_symbol" > 1503@@ -26498,6 +26909,11 @@ $as_echo "$lt_cv_irix_exported_symbol" >
1492 ;; 1504 ;;
1493  1505
1494 *nto* | *qnx*) 1506 *nto* | *qnx*)
1495+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 1507+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1496+ archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 1508+ archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1497+ hardcode_libdir_flag_spec_GCJ='-R$libdir' 1509+ hardcode_libdir_flag_spec_GCJ='-R$libdir'
1498+ hardcode_direct_GCJ=yes 1510+ hardcode_direct_GCJ=yes
1499+ hardcode_shlibpath_var_GCJ=no 1511+ hardcode_shlibpath_var_GCJ=no
1500 ;; 1512 ;;
1501  1513
1502 openbsd*) 1514 openbsd*)
1503@@ -27075,7 +27504,10 @@ for cc_temp in $compiler""; do 1515@@ -27075,7 +27491,10 @@ for cc_temp in $compiler""; do
1504 *) break;; 1516 *) break;;
1505 esac 1517 esac
1506 done 1518 done
1507-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 1519-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1508+# Return the actual command name, not our pkgsrc wrapper name because several 1520+# Return the actual command name, not our pkgsrc wrapper name because several
1509+# decisions are made only based on compiler names 1521+# decisions are made only based on compiler names
1510+if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi 1522+if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi
1511+cc_basename=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 1523+cc_basename=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1512  1524
1513 lt_cv_prog_compiler_c_o_RC=yes 1525 lt_cv_prog_compiler_c_o_RC=yes
1514  1526