Changeset 70c2d86 in mod_gnutls
- Timestamp:
- Jan 11, 2013, 12:55:20 AM (10 years ago)
- Branches:
- debian/master, debian/stretch-backports, jessie-backports, upstream
- Children:
- 3f5c713, ec06980
- Parents:
- 3e94bd3
- Files:
-
- 2 added
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile.am
r3e94bd3 r70c2d86 3 3 EXTRA_DIST = m4/outoforder.m4 m4/apache.m4 \ 4 4 m4/libgnutls.m4 m4/apr_memcache.m4 \ 5 m4/apache_test.m4 \5 m4/apache_test.m4 m4/lua.m4 \ 6 6 include/mod_gnutls.h.in \ 7 README \7 README README.ENV \ 8 8 NOTICE LICENSE autogen.sh 9 9 10 10 SUBDIRS = src data 11 ACLOCAL_AMFLAGS = -I m4 -
Makefile.in
r3e94bd3 r70c2d86 1 # Makefile.in generated by automake 1. 9.5from Makefile.am.1 # Makefile.in generated by automake 1.10 from Makefile.am. 2 2 # @configure_input@ 3 3 4 4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 5 # 2003, 2004, 2005 Free Software Foundation, Inc.5 # 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 6 6 # This Makefile.in is free software; the Free Software Foundation 7 7 # gives unlimited permission to copy and/or distribute it, … … 14 14 15 15 @SET_MAKE@ 16 srcdir = @srcdir@17 top_srcdir = @top_srcdir@18 16 VPATH = @srcdir@ 19 17 pkgdatadir = $(datadir)/@PACKAGE@ 20 18 pkglibdir = $(libdir)/@PACKAGE@ 21 19 pkgincludedir = $(includedir)/@PACKAGE@ 22 top_builddir = .23 20 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 24 INSTALL = @INSTALL@25 21 install_sh_DATA = $(install_sh) -c -m 644 26 22 install_sh_PROGRAM = $(install_sh) -c … … 37 33 host_triplet = @host@ 38 34 target_triplet = @target@ 35 subdir = . 39 36 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ 40 37 $(srcdir)/Makefile.in $(srcdir)/config.in \ … … 43 40 config/depcomp config/install-sh config/ltmain.sh \ 44 41 config/missing 45 subdir = .46 42 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 47 43 am__aclocal_m4_deps = $(top_srcdir)/m4/apache.m4 \ … … 52 48 $(ACLOCAL_M4) 53 49 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ 54 configure.lineno config ure.status.lineno50 configure.lineno config.status.lineno 55 51 mkinstalldirs = $(install_sh) -d 56 52 CONFIG_HEADER = $(top_builddir)/include/mod_gnutls_config.h … … 60 56 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ 61 57 html-recursive info-recursive install-data-recursive \ 62 install-exec-recursive install-info-recursive \ 63 install-recursive installcheck-recursive installdirs-recursive \ 64 pdf-recursive ps-recursive uninstall-info-recursive \ 65 uninstall-recursive 58 install-dvi-recursive install-exec-recursive \ 59 install-html-recursive install-info-recursive \ 60 install-pdf-recursive install-ps-recursive install-recursive \ 61 installcheck-recursive installdirs-recursive pdf-recursive \ 62 ps-recursive uninstall-recursive 63 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ 64 distclean-recursive maintainer-clean-recursive 66 65 ETAGS = etags 67 66 CTAGS = ctags … … 79 78 distcleancheck_listfiles = find . -type f -print 80 79 ACLOCAL = @ACLOCAL@ 81 AMDEP_FALSE = @AMDEP_FALSE@82 AMDEP_TRUE = @AMDEP_TRUE@83 80 AMTAR = @AMTAR@ 84 81 APR_INCLUDES = @APR_INCLUDES@ … … 100 97 AP_SYSCONFDIR = @AP_SYSCONFDIR@ 101 98 AP_VERSION = @AP_VERSION@ 99 AR = @AR@ 102 100 AUTOCONF = @AUTOCONF@ 103 101 AUTOHEADER = @AUTOHEADER@ … … 107 105 CCDEPMODE = @CCDEPMODE@ 108 106 CFLAGS = @CFLAGS@ 107 CPP = @CPP@ 109 108 CPPFLAGS = @CPPFLAGS@ 109 CXX = @CXX@ 110 CXXCPP = @CXXCPP@ 111 CXXDEPMODE = @CXXDEPMODE@ 112 CXXFLAGS = @CXXFLAGS@ 110 113 CYGPATH_W = @CYGPATH_W@ 111 114 DEFS = @DEFS@ 112 115 DEPDIR = @DEPDIR@ 116 ECHO = @ECHO@ 113 117 ECHO_C = @ECHO_C@ 114 118 ECHO_N = @ECHO_N@ … … 116 120 EGREP = @EGREP@ 117 121 EXEEXT = @EXEEXT@ 122 F77 = @F77@ 123 FFLAGS = @FFLAGS@ 118 124 GNUTLS_CERTTOOL = @GNUTLS_CERTTOOL@ 125 GREP = @GREP@ 119 126 GTLS_BIN = @GTLS_BIN@ 127 INSTALL = @INSTALL@ 120 128 INSTALL_DATA = @INSTALL_DATA@ 121 129 INSTALL_PROGRAM = @INSTALL_PROGRAM@ … … 130 138 LIBS = @LIBS@ 131 139 LIBTOOL = @LIBTOOL@ 140 LN_S = @LN_S@ 132 141 LTLIBOBJS = @LTLIBOBJS@ 133 142 MAINT = @MAINT@ 134 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@135 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@136 143 MAKEINFO = @MAKEINFO@ 144 MKDIR_P = @MKDIR_P@ 137 145 MODULE_CFLAGS = @MODULE_CFLAGS@ 138 146 MODULE_LIBS = @MODULE_LIBS@ … … 147 155 PACKAGE_VERSION = @PACKAGE_VERSION@ 148 156 PATH_SEPARATOR = @PATH_SEPARATOR@ 157 RANLIB = @RANLIB@ 158 SED = @SED@ 149 159 SET_MAKE = @SET_MAKE@ 150 160 SHELL = @SHELL@ 151 161 STRIP = @STRIP@ 152 162 VERSION = @VERSION@ 163 abs_builddir = @abs_builddir@ 164 abs_srcdir = @abs_srcdir@ 165 abs_top_builddir = @abs_top_builddir@ 166 abs_top_srcdir = @abs_top_srcdir@ 153 167 ac_ct_CC = @ac_ct_CC@ 154 ac_ct_STRIP = @ac_ct_STRIP@ 155 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ 156 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ 168 ac_ct_CXX = @ac_ct_CXX@ 169 ac_ct_F77 = @ac_ct_F77@ 157 170 am__include = @am__include@ 158 171 am__leading_dot = @am__leading_dot@ … … 166 179 build_os = @build_os@ 167 180 build_vendor = @build_vendor@ 181 builddir = @builddir@ 168 182 datadir = @datadir@ 183 datarootdir = @datarootdir@ 184 docdir = @docdir@ 185 dvidir = @dvidir@ 169 186 exec_prefix = @exec_prefix@ 170 187 have_apr_memcache = @have_apr_memcache@ … … 174 191 host_os = @host_os@ 175 192 host_vendor = @host_vendor@ 193 htmldir = @htmldir@ 176 194 includedir = @includedir@ 177 195 infodir = @infodir@ … … 179 197 libdir = @libdir@ 180 198 libexecdir = @libexecdir@ 199 localedir = @localedir@ 181 200 localstatedir = @localstatedir@ 182 201 mandir = @mandir@ 183 202 mkdir_p = @mkdir_p@ 184 203 oldincludedir = @oldincludedir@ 204 pdfdir = @pdfdir@ 185 205 prefix = @prefix@ 186 206 program_transform_name = @program_transform_name@ 207 psdir = @psdir@ 187 208 sbindir = @sbindir@ 188 209 sharedstatedir = @sharedstatedir@ 210 srcdir = @srcdir@ 189 211 sysconfdir = @sysconfdir@ 190 212 target = @target@ … … 193 215 target_os = @target_os@ 194 216 target_vendor = @target_vendor@ 217 top_builddir = @top_builddir@ 218 top_srcdir = @top_srcdir@ 195 219 AUTOMAKE_OPTIONS = foreign dist-bzip2 196 220 EXTRA_DIST = m4/outoforder.m4 m4/apache.m4 \ 197 221 m4/libgnutls.m4 m4/apr_memcache.m4 \ 198 m4/apache_test.m4 \222 m4/apache_test.m4 m4/lua.m4 \ 199 223 include/mod_gnutls.h.in \ 200 README \224 README README.ENV \ 201 225 NOTICE LICENSE autogen.sh 202 226 203 227 SUBDIRS = src data 228 ACLOCAL_AMFLAGS = -I m4 204 229 all: all-recursive 205 230 … … 242 267 @if test ! -f $@; then \ 243 268 rm -f include/stamp-h1; \ 244 $(MAKE) include/stamp-h1; \269 $(MAKE) $(AM_MAKEFLAGS) include/stamp-h1; \ 245 270 else :; fi 246 271 … … 266 291 distclean-libtool: 267 292 -rm -f libtool 268 uninstall-info-am:269 293 270 294 # This directory's subdirectories are mostly independent; you can cd … … 299 323 fi; test -z "$$fail" 300 324 301 mostlyclean-recursive clean-recursive distclean-recursive \ 302 maintainer-clean-recursive: 325 $(RECURSIVE_CLEAN_TARGETS): 303 326 @failcom='exit 1'; \ 304 327 for f in x $$MAKEFLAGS; do \ … … 402 425 distdir: $(DISTFILES) 403 426 $(am__remove_distdir) 404 mkdir $(distdir) 405 $(mkdir_p) $(distdir)/config $(distdir)/include $(distdir)/m4 406 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ 407 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ 408 list='$(DISTFILES)'; for file in $$list; do \ 409 case $$file in \ 410 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ 411 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ 412 esac; \ 427 test -d $(distdir) || mkdir $(distdir) 428 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ 429 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ 430 list='$(DISTFILES)'; \ 431 dist_files=`for file in $$list; do echo $$file; done | \ 432 sed -e "s|^$$srcdirstrip/||;t" \ 433 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ 434 case $$dist_files in \ 435 */*) $(MKDIR_P) `echo "$$dist_files" | \ 436 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ 437 sort -u` ;; \ 438 esac; \ 439 for file in $$dist_files; do \ 413 440 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ 414 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \415 if test "$$dir" != "$$file" && test "$$dir" != "."; then \416 dir="/$$dir"; \417 $(mkdir_p) "$(distdir)$$dir"; \418 else \419 dir=''; \420 fi; \421 441 if test -d $$d/$$file; then \ 442 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ 422 443 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ 423 444 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ … … 433 454 if test "$$subdir" = .; then :; else \ 434 455 test -d "$(distdir)/$$subdir" \ 435 || $( mkdir_p) "$(distdir)/$$subdir" \456 || $(MKDIR_P) "$(distdir)/$$subdir" \ 436 457 || exit 1; \ 437 458 distdir=`$(am__cd) $(distdir) && pwd`; \ … … 441 462 top_distdir="$$top_distdir" \ 442 463 distdir="$$distdir/$$subdir" \ 464 am__remove_distdir=: \ 465 am__skip_length_check=: \ 443 466 distdir) \ 444 467 || exit 1; \ … … 448 471 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ 449 472 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ 450 ! -type d ! -perm -444 -exec $( SHELL) $(install_sh) -c -m a+r {} {} \; \473 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ 451 474 || chmod -R a+r $(distdir) 452 475 dist-gzip: distdir … … 523 546 @(echo "$(distdir) archives ready for distribution: "; \ 524 547 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ 525 sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'548 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' 526 549 distuninstallcheck: 527 550 @cd $(distuninstallcheck_dir) \ … … 593 616 install-data-am: 594 617 618 install-dvi: install-dvi-recursive 619 595 620 install-exec-am: 596 621 622 install-html: install-html-recursive 623 597 624 install-info: install-info-recursive 598 625 599 626 install-man: 627 628 install-pdf: install-pdf-recursive 629 630 install-ps: install-ps-recursive 600 631 601 632 installcheck-am: … … 619 650 ps-am: 620 651 621 uninstall-am: uninstall-info-am 622 623 uninstall-info: uninstall-info-recursive 624 625 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \ 626 check-am clean clean-generic clean-libtool clean-recursive \ 627 ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ 628 dist-shar dist-tarZ dist-zip distcheck distclean \ 652 uninstall-am: 653 654 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ 655 install-strip 656 657 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ 658 all all-am am--refresh check check-am clean clean-generic \ 659 clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \ 660 dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \ 629 661 distclean-generic distclean-hdr distclean-libtool \ 630 distclean-recursive distclean-tags distcleancheck distdir \ 631 distuninstallcheck dvi dvi-am html html-am info info-am \ 632 install install-am install-data install-data-am install-exec \ 633 install-exec-am install-info install-info-am install-man \ 634 install-strip installcheck installcheck-am installdirs \ 635 installdirs-am maintainer-clean maintainer-clean-generic \ 636 maintainer-clean-recursive mostlyclean mostlyclean-generic \ 637 mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \ 638 tags tags-recursive uninstall uninstall-am uninstall-info-am 662 distclean-tags distcleancheck distdir distuninstallcheck dvi \ 663 dvi-am html html-am info info-am install install-am \ 664 install-data install-data-am install-dvi install-dvi-am \ 665 install-exec install-exec-am install-html install-html-am \ 666 install-info install-info-am install-man install-pdf \ 667 install-pdf-am install-ps install-ps-am install-strip \ 668 installcheck installcheck-am installdirs installdirs-am \ 669 maintainer-clean maintainer-clean-generic mostlyclean \ 670 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ 671 tags tags-recursive uninstall uninstall-am 639 672 640 673 # Tell versions [3.59,3.63) of GNU make to not export all variables. -
README
r3e94bd3 r70c2d86 20 20 ---------------------------- 21 21 22 Author: Paul Querna <chip force-elite.com 22 Author: Paul Querna <chip force-elite.com> 23 24 Heavily modified by Nikos Mavrogiannopoulos <nmav gnutls.org> 23 25 24 26 License: Apache Software License v2.0. (see the LICENSE file for details) … … 26 28 Current Status: 27 29 - SSL and TLS connections with all popular browsers work! 28 - Sets some enviromental vars for scripts30 - Sets enviromental vars for scripts (compatible with mod_ssl vars) 29 31 - Supports Memcached as a distributed SSL Session Cache 30 32 - Supports DBM as a local SSL Session Cache 31 32 Future Development: 33 - Support for Server Name Indication (partial support is in, but disabled) 33 - Support for Server Name Indication 34 34 - Support for Client Certificates 35 - Support for TLS-SRP 35 36 36 37 Basic Configuration: … … 59 60 GnuTLSCertificateFile conf/server.cert 60 61 </VirtualHost> 62 63 64 # a more advance configuration 65 GnuTLSCache dbm "/var/cache/www-tls-cache/cache" 66 GnuTLSCacheTimeout 500 67 GnuTLSProtocols TLS1.1 TLS1.0 SSL3.0 68 NameVirtualHost 1.2.3.4:443 69 70 <VirtualHost 1.2.3.4:443> 71 Servername server.com:443 72 GnuTLSEnable on 73 GnuTLSCiphers AES-128-CBC 3DES-CBC ARCFOUR-128 74 GnuTLSKeyExchangeAlgorithms RSA DHE-RSA DHE-DSS SRP SRP-RSA SRP-DSS 75 GnuTLSMACAlgorithms SHA1 MD5 76 GnuTLSCompressionMethods NULL 77 # To export exactly the same environment variables as mod_ssl to CGI scripts. 78 GNUTLSExportCertificates on 79 80 GnuTLSCertificateFile /etc/apache2/server-cert.pem 81 GnuTLSKeyFile /etc/apache2/server-key.pem 82 83 # To enable SRP you must have these files installed. Check the gnutls srptool. 84 GnuTLSSRPPasswdFile /etc/apache2/tpasswd 85 GnuTLSSRPPasswdConfFile /etc/apache2/tpasswd.conf 86 87 # In order to verify client certificates. Other options to 88 # GnuTLSClientVerify could be ignore or require. The GnuTLSClientCAFile 89 # contains the CAs to verify client certificates. 90 GnuTLSClientVerify request 91 GnuTLSClientCAFile ca.pem 92 ... 93 </VirtualHost> -
aclocal.m4
r3e94bd3 r70c2d86 1 # generated automatically by aclocal 1. 9.5-*- Autoconf -*-1 # generated automatically by aclocal 1.10 -*- Autoconf -*- 2 2 3 3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4 # 2005 Free Software Foundation, Inc.4 # 2005, 2006 Free Software Foundation, Inc. 5 5 # This file is free software; the Free Software Foundation 6 6 # gives unlimited permission to copy and/or distribute it, … … 12 12 # PARTICULAR PURPOSE. 13 13 14 m4_if(m4_PACKAGE_VERSION, [2.61],, 15 [m4_fatal([this file was generated for autoconf 2.61. 16 You have another version of autoconf. If you want to use that, 17 you should regenerate the build system entirely.], [63])]) 18 14 19 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 15 20 16 # serial 47 AC_PROG_LIBTOOL 17 # Debian $Rev: 214 $ 21 # serial 51 Debian 1.5.24-1ubuntu1 AC_PROG_LIBTOOL 18 22 19 23 … … 125 129 # Sed substitution that helps us do robust quoting. It backslashifies 126 130 # metacharacters that are still active within double-quoted strings. 127 Xsed='sed -e s/^X//'131 Xsed='sed -e 1s/^X//' 128 132 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] 129 133 … … 145 149 can_build_shared=yes 146 150 147 # All known linkers require a `.a' archive for static linking (except M $VC,151 # All known linkers require a `.a' archive for static linking (except MSVC, 148 152 # which needs '.lib'). 149 153 libext=a … … 165 169 test -z "$CC" && CC=cc 166 170 test -z "$LTCC" && LTCC=$CC 171 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 167 172 test -z "$DLLTOOL" && DLLTOOL=dlltool 168 173 test -z "$LD" && LD=ld … … 177 182 178 183 # Determine commands to create old-style static archives. 179 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs $old_deplibs'184 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 180 185 old_postinstall_cmds='chmod 644 $oldlib' 181 186 old_postuninstall_cmds= … … 184 189 case $host_os in 185 190 openbsd*) 186 old_postinstall_cmds=" \$RANLIB -t \$oldlib~$old_postinstall_cmds"191 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 187 192 ;; 188 193 *) 189 old_postinstall_cmds=" \$RANLIB \$oldlib~$old_postinstall_cmds"194 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 190 195 ;; 191 196 esac 192 197 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 193 198 fi 199 200 _LT_CC_BASENAME([$compiler]) 194 201 195 202 # Only perform the check for file, if the check method requires it … … 233 240 LTCC=${LTCC-"$CC"} 234 241 242 # If no C compiler flags were specified, use CFLAGS. 243 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 244 235 245 # Allow CC to be a program name with arguments. 236 246 compiler=$CC 237 247 ])# _LT_AC_SYS_COMPILER 248 249 250 # _LT_CC_BASENAME(CC) 251 # ------------------- 252 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 253 AC_DEFUN([_LT_CC_BASENAME], 254 [for cc_temp in $1""; do 255 case $cc_temp in 256 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 257 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 258 \-*) ;; 259 *) break;; 260 esac 261 done 262 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 263 ]) 264 265 266 # _LT_COMPILER_BOILERPLATE 267 # ------------------------ 268 # Check for compiler boilerplate output or warnings with 269 # the simple compiler test code. 270 AC_DEFUN([_LT_COMPILER_BOILERPLATE], 271 [AC_REQUIRE([LT_AC_PROG_SED])dnl 272 ac_outfile=conftest.$ac_objext 273 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 274 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 275 _lt_compiler_boilerplate=`cat conftest.err` 276 $rm conftest* 277 ])# _LT_COMPILER_BOILERPLATE 278 279 280 # _LT_LINKER_BOILERPLATE 281 # ---------------------- 282 # Check for linker boilerplate output or warnings with 283 # the simple link test code. 284 AC_DEFUN([_LT_LINKER_BOILERPLATE], 285 [AC_REQUIRE([LT_AC_PROG_SED])dnl 286 ac_outfile=conftest.$ac_objext 287 echo "$lt_simple_link_test_code" >conftest.$ac_ext 288 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 289 _lt_linker_boilerplate=`cat conftest.err` 290 $rm conftest* 291 ])# _LT_LINKER_BOILERPLATE 238 292 239 293 … … 247 301 # to the aix ld manual. 248 302 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], 249 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 250 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 251 }'` 303 [AC_REQUIRE([LT_AC_PROG_SED])dnl 304 AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 305 lt_aix_libpath_sed=' 306 /Import File Strings/,/^$/ { 307 /^0/ { 308 s/^0 *\(.*\)$/\1/ 309 p 310 } 311 }' 312 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 252 313 # Check for a 64-bit object if we didn't find anything. 253 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 254 }'`; fi],[]) 314 if test -z "$aix_libpath"; then 315 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 316 fi],[]) 255 317 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 256 318 ])# _LT_AC_SYS_LIBPATH_AIX … … 310 372 # The HP-UX ksh and POSIX shell print the target directory to stdout 311 373 # if CDPATH is set. 312 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 374 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 313 375 314 376 if test -z "$ECHO"; then … … 317 379 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 318 380 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 319 if (echo_test_string= "`eval $cmd`") 2>/dev/null &&320 echo_test_string= "`eval $cmd`"&&381 if (echo_test_string=`eval $cmd`) 2>/dev/null && 382 echo_test_string=`eval $cmd` && 321 383 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 322 384 then … … 483 545 ;; 484 546 485 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 547 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 548 s390*-*linux*|sparc*-*linux*) 486 549 # Find out which ABI we are using. 487 550 echo 'int i;' > conftest.$ac_ext 488 551 if AC_TRY_EVAL(ac_compile); then 489 case "`/usr/bin/file conftest.o`"in552 case `/usr/bin/file conftest.o` in 490 553 *32-bit*) 491 554 case $host in 555 x86_64-*kfreebsd*-gnu) 556 LD="${LD-ld} -m elf_i386_fbsd" 557 ;; 492 558 x86_64-*linux*) 493 559 LD="${LD-ld} -m elf_i386" … … 506 572 *64-bit*) 507 573 case $host in 574 x86_64-*kfreebsd*-gnu) 575 LD="${LD-ld} -m elf_x86_64_fbsd" 576 ;; 508 577 x86_64-*linux*) 509 578 LD="${LD-ld} -m elf_x86_64" … … 538 607 fi 539 608 ;; 609 sparc*-*solaris*) 610 # Find out which ABI we are using. 611 echo 'int i;' > conftest.$ac_ext 612 if AC_TRY_EVAL(ac_compile); then 613 case `/usr/bin/file conftest.o` in 614 *64-bit*) 615 case $lt_cv_prog_gnu_ld in 616 yes*) LD="${LD-ld} -m elf64_sparc" ;; 617 *) LD="${LD-ld} -64" ;; 618 esac 619 ;; 620 esac 621 fi 622 rm -rf conftest* 623 ;; 624 540 625 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 541 626 [*-*-cygwin* | *-*-mingw* | *-*-pw32*) … … 561 646 [$2=no 562 647 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 563 printf"$lt_simple_compile_test_code" > conftest.$ac_ext648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 564 649 lt_compiler_flag="$3" 565 650 # Insert the option either (1) after the last *FLAGS variable, or … … 569 654 # The option is referenced via a variable to avoid confusing sed. 570 655 lt_compile=`echo "$ac_compile" | $SED \ 571 -e 's:.*FLAGS} ?:&$lt_compiler_flag :; t' \656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 572 657 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 573 658 -e 's:$: $lt_compiler_flag:'` … … 579 664 if (exit $ac_status) && test -s "$ac_outfile"; then 580 665 # The compiler can only warn and ignore the option if not recognized 581 # So say no if there are warnings 582 if test ! -s conftest.err; then 666 # So say no if there are warnings other than the usual output. 667 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 669 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 583 670 $2=yes 584 671 fi … … 600 687 # Check whether the given compiler option works 601 688 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], 602 [AC_CACHE_CHECK([$1], [$2], 689 [AC_REQUIRE([LT_AC_PROG_SED])dnl 690 AC_CACHE_CHECK([$1], [$2], 603 691 [$2=no 604 692 save_LDFLAGS="$LDFLAGS" 605 693 LDFLAGS="$LDFLAGS $3" 606 printf"$lt_simple_link_test_code" > conftest.$ac_ext694 echo "$lt_simple_link_test_code" > conftest.$ac_ext 607 695 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 608 # The compiler can only warn and ignore the option if not recognized696 # The linker can only warn and ignore the option if not recognized 609 697 # So say no if there are warnings 610 698 if test -s conftest.err; then 611 699 # Append any errors to the config.log. 612 700 cat conftest.err 1>&AS_MESSAGE_LOG_FD 701 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 702 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 703 if diff conftest.exp conftest.er2 >/dev/null; then 704 $2=yes 705 fi 613 706 else 614 707 $2=yes … … 669 762 ;; 670 763 671 *) 672 # If test is not a shell built-in, we'll probably end up computing a 673 # maximum length that is only half of the actual maximum length, but 674 # we can't tell. 675 while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 764 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 765 # This has been around since 386BSD, at least. Likely further. 766 if test -x /sbin/sysctl; then 767 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 768 elif test -x /usr/sbin/sysctl; then 769 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 770 else 771 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 772 fi 773 # And add a safety zone 774 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 775 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 776 ;; 777 778 interix*) 779 # We know the value 262144 and hardcode it with a safety zone (like BSD) 780 lt_cv_sys_max_cmd_len=196608 781 ;; 782 783 osf*) 784 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 785 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 786 # nice to cause kernel panics so lets avoid the loop below. 787 # First set a reasonable default. 788 lt_cv_sys_max_cmd_len=16384 789 # 790 if test -x /sbin/sysconfig; then 791 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 792 *1*) lt_cv_sys_max_cmd_len=-1 ;; 793 esac 794 fi 795 ;; 796 sco3.2v5*) 797 lt_cv_sys_max_cmd_len=102400 798 ;; 799 sysv5* | sco5v6* | sysv4.2uw2*) 800 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 801 if test -n "$kargmax"; then 802 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 803 else 804 lt_cv_sys_max_cmd_len=32768 805 fi 806 ;; 807 *) 808 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 809 if test -n "$lt_cv_sys_max_cmd_len"; then 810 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 811 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 812 else 813 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 814 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 676 815 = "XX$teststring") >/dev/null 2>&1 && 677 new_result=`expr "X$teststring" : ".*" 2>&1` && 678 lt_cv_sys_max_cmd_len=$new_result && 679 test $i != 17 # 1/2 MB should be enough 680 do 681 i=`expr $i + 1` 682 teststring=$teststring$teststring 683 done 684 teststring= 685 # Add a significant safety factor because C++ compilers can tack on massive 686 # amounts of additional arguments before passing them to the linker. 687 # It appears as though 1/2 is a usable value. 688 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 816 new_result=`expr "X$teststring" : ".*" 2>&1` && 817 lt_cv_sys_max_cmd_len=$new_result && 818 test $i != 17 # 1/2 MB should be enough 819 do 820 i=`expr $i + 1` 821 teststring=$teststring$teststring 822 done 823 teststring= 824 # Add a significant safety factor because C++ compilers can tack on massive 825 # amounts of additional arguments before passing them to the linker. 826 # It appears as though 1/2 is a usable value. 827 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 828 fi 689 829 ;; 690 830 esac … … 699 839 700 840 # _LT_AC_CHECK_DLFCN 701 # ------------------ --841 # ------------------ 702 842 AC_DEFUN([_LT_AC_CHECK_DLFCN], 703 843 [AC_CHECK_HEADERS(dlfcn.h)dnl … … 707 847 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 708 848 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 709 # ------------------------------------------------------------------ 849 # --------------------------------------------------------------------- 710 850 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], 711 851 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl … … 773 913 /* dlclose (self); */ 774 914 } 915 else 916 puts (dlerror ()); 775 917 776 918 exit (status); … … 778 920 EOF 779 921 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 780 (./conftest; exit; ) 2>/dev/null922 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 781 923 lt_status=$? 782 924 case x$lt_status in 783 925 x$lt_dlno_uscore) $1 ;; 784 926 x$lt_dlneed_uscore) $2 ;; 785 x$lt_ unknown|x*) $3 ;;927 x$lt_dlunknown|x*) $3 ;; 786 928 esac 787 929 else : … … 795 937 796 938 # AC_LIBTOOL_DLOPEN_SELF 797 # ------------------- 939 # ---------------------- 798 940 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], 799 941 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl … … 866 1008 867 1009 save_LDFLAGS="$LDFLAGS" 868 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"1010 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 869 1011 870 1012 save_LIBS="$LIBS" … … 879 1021 880 1022 if test "x$lt_cv_dlopen_self" = xyes; then 881 LDFLAGS="$LDFLAGS $link_static_flag"1023 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 882 1024 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 883 1025 lt_cv_dlopen_self_static, [dnl … … 911 1053 # Check to see if options -c and -o are simultaneously supported by compiler 912 1054 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], 913 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 1055 [AC_REQUIRE([LT_AC_PROG_SED])dnl 1056 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 914 1057 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 915 1058 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], … … 919 1062 cd conftest 920 1063 mkdir out 921 printf"$lt_simple_compile_test_code" > conftest.$ac_ext1064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 922 1065 923 1066 lt_compiler_flag="-o out/conftest2.$ac_objext" … … 927 1070 # with a dollar sign (not a hyphen), so the echo should work correctly. 928 1071 lt_compile=`echo "$ac_compile" | $SED \ 929 -e 's:.*FLAGS} ?:&$lt_compiler_flag :; t' \1072 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 930 1073 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 931 1074 -e 's:$: $lt_compiler_flag:'` … … 939 1082 # The compiler can only warn and ignore the option if not recognized 940 1083 # So say no if there are warnings 941 if test ! -s out/conftest.err; then 1084 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 1085 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 1086 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 942 1087 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 943 1088 fi 944 1089 fi 945 chmod u+w . 1090 chmod u+w . 2>&AS_MESSAGE_LOG_FD 946 1091 $rm conftest* 947 1092 # SGI C++ compiler will create directory out/ii_files/ for … … 1007 1152 _LT_AC_TAGVAR(hardcode_action, $1)= 1008 1153 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ 1009 test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \1010 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" ="Xyes" ; then1154 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ 1155 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 1011 1156 1012 1157 # We can hardcode non-existant directories. … … 1057 1202 if test -n "$STRIP" ; then 1058 1203 striplib="$STRIP -x" 1204 old_striplib="$STRIP -S" 1059 1205 AC_MSG_RESULT([yes]) 1060 1206 else … … 1074 1220 # PORTME Fill in your ld.so characteristics 1075 1221 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], 1076 [AC_MSG_CHECKING([dynamic linker characteristics]) 1222 [AC_REQUIRE([LT_AC_PROG_SED])dnl 1223 AC_MSG_CHECKING([dynamic linker characteristics]) 1077 1224 library_names_spec= 1078 1225 libname_spec='lib$name' … … 1088 1235 dynamic_linker="$host_os ld.so" 1089 1236 sys_lib_dlsearch_path_spec="/lib /usr/lib" 1237 m4_if($1,[],[ 1090 1238 if test "$GCC" = yes; then 1091 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 1092 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 1239 case $host_os in 1240 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 1241 *) lt_awk_arg="/^libraries:/" ;; 1242 esac 1243 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 1244 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 1093 1245 # if the path contains ";" then we assume it to be the separator 1094 1246 # otherwise default to the standard path separator (i.e. ":") - it is 1095 1247 # assumed that no part of a normal pathname contains ";" but that should 1096 1248 # okay in the real world where ";" in dirpaths is itself problematic. 1097 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`1249 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 1098 1250 else 1099 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`1251 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 1100 1252 fi 1253 # Ok, now we have the path, separated by spaces, we can step through it 1254 # and add multilib dir if necessary. 1255 lt_tmp_lt_search_path_spec= 1256 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 1257 for lt_sys_path in $lt_search_path_spec; do 1258 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 1259 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 1260 else 1261 test -d "$lt_sys_path" && \ 1262 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 1263 fi 1264 done 1265 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 1266 BEGIN {RS=" "; FS="/|\n";} { 1267 lt_foo=""; 1268 lt_count=0; 1269 for (lt_i = NF; lt_i > 0; lt_i--) { 1270 if ($lt_i != "" && $lt_i != ".") { 1271 if ($lt_i == "..") { 1272 lt_count++; 1273 } else { 1274 if (lt_count == 0) { 1275 lt_foo="/" $lt_i lt_foo; 1276 } else { 1277 lt_count--; 1278 } 1279 } 1280 } 1281 } 1282 if (lt_foo != "") { lt_freq[[lt_foo]]++; } 1283 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 1284 }'` 1285 sys_lib_search_path_spec=`echo $lt_search_path_spec` 1101 1286 else 1102 1287 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 1103 fi 1288 fi]) 1104 1289 need_lib_prefix=unknown 1105 1290 hardcode_into_libs=no … … 1175 1360 ;; 1176 1361 1177 bsdi 4*)1362 bsdi[[45]]*) 1178 1363 version_type=linux 1179 1364 need_version=no … … 1203 1388 dldir=$destdir/`dirname \$dlpath`~ 1204 1389 test -d \$dldir || mkdir -p \$dldir~ 1205 $install_prog $dir/$dlname \$dldir/$dlname' 1390 $install_prog $dir/$dlname \$dldir/$dlname~ 1391 chmod a+x \$dldir/$dlname' 1206 1392 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 1207 1393 dlpath=$dir/\$dldll~ … … 1233 1419 pw32*) 1234 1420 # pw32 DLLs use 'pw' prefix rather than 'lib' 1235 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[ .]/-/g'`${versuffix}${shared_ext}'1421 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 1236 1422 ;; 1237 1423 esac … … 1256 1442 shlibpath_overrides_runpath=yes 1257 1443 shlibpath_var=DYLD_LIBRARY_PATH 1258 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 1259 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 1260 if test "$GCC" = yes; then 1261 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 1262 else 1263 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 1264 fi 1444 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 1445 m4_if([$1], [],[ 1446 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 1265 1447 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 1266 1448 ;; … … 1279 1461 ;; 1280 1462 1281 kfreebsd*-gnu) 1282 version_type=linux 1283 need_lib_prefix=no 1284 need_version=no 1285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1286 soname_spec='${libname}${release}${shared_ext}$major' 1287 shlibpath_var=LD_LIBRARY_PATH 1288 shlibpath_overrides_runpath=no 1289 hardcode_into_libs=yes 1290 dynamic_linker='GNU ld.so' 1291 ;; 1292 1293 freebsd*) 1294 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 1463 freebsd* | dragonfly*) 1464 # DragonFly does not have aout. When/if they implement a new 1465 # versioning mechanism, adjust this. 1466 if test -x /usr/bin/objformat; then 1467 objformat=`/usr/bin/objformat` 1468 else 1469 case $host_os in 1470 freebsd[[123]]*) objformat=aout ;; 1471 *) objformat=elf ;; 1472 esac 1473 fi 1295 1474 version_type=freebsd-$objformat 1296 1475 case $version_type in … … 1310 1489 shlibpath_overrides_runpath=yes 1311 1490 ;; 1312 freebsd3.[ 01]* | freebsdelf3.[01]*)1491 freebsd3.[[01]]* | freebsdelf3.[[01]]*) 1313 1492 shlibpath_overrides_runpath=yes 1314 1493 hardcode_into_libs=yes 1315 1494 ;; 1316 *) # from 3.2 on 1495 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 1496 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 1317 1497 shlibpath_overrides_runpath=no 1498 hardcode_into_libs=yes 1499 ;; 1500 *) # from 4.6 on, and DragonFly 1501 shlibpath_overrides_runpath=yes 1318 1502 hardcode_into_libs=yes 1319 1503 ;; … … 1337 1521 need_lib_prefix=no 1338 1522 need_version=no 1339 case "$host_cpu"in1523 case $host_cpu in 1340 1524 ia64*) 1341 1525 shrext_cmds='.so' … … 1377 1561 ;; 1378 1562 1563 interix[[3-9]]*) 1564 version_type=linux 1565 need_lib_prefix=no 1566 need_version=no 1567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1568 soname_spec='${libname}${release}${shared_ext}$major' 1569 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 1570 shlibpath_var=LD_LIBRARY_PATH 1571 shlibpath_overrides_runpath=no 1572 hardcode_into_libs=yes 1573 ;; 1574 1379 1575 irix5* | irix6* | nonstopux*) 1380 1576 case $host_os in … … 1420 1616 1421 1617 # This must be Linux ELF. 1422 linux* )1618 linux* | k*bsd*-gnu) 1423 1619 version_type=linux 1424 1620 need_lib_prefix=no … … 1436 1632 # Append ld.so.conf contents to the search path 1437 1633 if test -f /etc/ld.so.conf; then 1438 lt_ld_extra=` $SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf| tr '\n' ' '`1634 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 1439 1635 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 1440 1636 fi … … 1459 1655 hardcode_into_libs=yes 1460 1656 dynamic_linker='NetBSD ld.elf_so' 1461 ;;1462 1463 knetbsd*-gnu)1464 version_type=linux1465 need_lib_prefix=no1466 need_version=no1467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'1468 soname_spec='${libname}${release}${shared_ext}$major'1469 shlibpath_var=LD_LIBRARY_PATH1470 shlibpath_overrides_runpath=no1471 hardcode_into_libs=yes1472 dynamic_linker='GNU ld.so'1473 1657 ;; 1474 1658 … … 1510 1694 openbsd*) 1511 1695 version_type=sunos 1696 sys_lib_dlsearch_path_spec="/usr/lib" 1512 1697 need_lib_prefix=no 1513 need_version=yes 1698 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 1699 case $host_os in 1700 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 1701 *) need_version=no ;; 1702 esac 1514 1703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 1515 1704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' … … 1549 1738 ;; 1550 1739 1551 sco3.2v5*) 1552 version_type=osf 1553 soname_spec='${libname}${release}${shared_ext}$major' 1554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1555 shlibpath_var=LD_LIBRARY_PATH 1740 rdos*) 1741 dynamic_linker=no 1556 1742 ;; 1557 1743 … … 1581 1767 ;; 1582 1768 1583 sysv4 | sysv4. 2uw2* | sysv4.3* | sysv5*)1769 sysv4 | sysv4.3*) 1584 1770 version_type=linux 1585 1771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' … … 1614 1800 ;; 1615 1801 1802 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 1803 version_type=freebsd-elf 1804 need_lib_prefix=no 1805 need_version=no 1806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 1807 soname_spec='${libname}${release}${shared_ext}$major' 1808 shlibpath_var=LD_LIBRARY_PATH 1809 hardcode_into_libs=yes 1810 if test "$with_gnu_ld" = yes; then 1811 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 1812 shlibpath_overrides_runpath=no 1813 else 1814 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 1815 shlibpath_overrides_runpath=yes 1816 case $host_os in 1817 sco3.2v5*) 1818 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 1819 ;; 1820 esac 1821 fi 1822 sys_lib_dlsearch_path_spec='/usr/lib' 1823 ;; 1824 1616 1825 uts4*) 1617 1826 version_type=linux … … 1627 1836 AC_MSG_RESULT([$dynamic_linker]) 1628 1837 test "$dynamic_linker" = no && can_build_shared=no 1838 1839 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 1840 if test "$GCC" = yes; then 1841 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 1842 fi 1629 1843 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER 1630 1844 … … 1633 1847 # ---------------- 1634 1848 AC_DEFUN([_LT_AC_TAGCONFIG], 1635 [AC_ARG_WITH([tags], 1849 [AC_REQUIRE([LT_AC_PROG_SED])dnl 1850 AC_ARG_WITH([tags], 1636 1851 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], 1637 1852 [include additional configurations @<:@automatic@:>@])], … … 1651 1866 fi 1652 1867 fi 1868 if test -z "$LTCFLAGS"; then 1869 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 1870 fi 1653 1871 1654 1872 # Extract list of available tagged configurations in $ofile. … … 1677 1895 case $tagname in 1678 1896 CXX) 1679 if test -n "$CXX" && test "X$CXX" != "Xno"; then 1897 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 1898 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 1899 (test "X$CXX" != "Xg++"))) ; then 1680 1900 AC_LIBTOOL_LANG_CXX_CONFIG 1681 1901 else … … 1739 1959 # AC_LIBTOOL_WIN32_DLL 1740 1960 # -------------------- 1741 # declare package support for building win32 dll's1961 # declare package support for building win32 DLLs 1742 1962 AC_DEFUN([AC_LIBTOOL_WIN32_DLL], 1743 1963 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) … … 1777 1997 # AC_DISABLE_SHARED 1778 1998 # ----------------- 1779 # -set the default shared flag to --disable-shared1999 # set the default shared flag to --disable-shared 1780 2000 AC_DEFUN([AC_DISABLE_SHARED], 1781 2001 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl … … 1889 2109 # AC_PATH_TOOL_PREFIX 1890 2110 # ------------------- 1891 # find a file program which can recogni se shared library2111 # find a file program which can recognize shared library 1892 2112 AC_DEFUN([AC_PATH_TOOL_PREFIX], 1893 2113 [AC_REQUIRE([AC_PROG_EGREP])dnl … … 1913 2133 case $deplibs_check_method in 1914 2134 "file_magic "*) 1915 file_magic_regex= "`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"2135 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 1916 2136 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 1917 2137 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | … … 1952 2172 # AC_PATH_MAGIC 1953 2173 # ------------- 1954 # find a file program which can recogni se a shared library2174 # find a file program which can recognize a shared library 1955 2175 AC_DEFUN([AC_PATH_MAGIC], 1956 2176 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) … … 2023 2243 lt_cv_path_LD="$ac_dir/$ac_prog" 2024 2244 # Check to see if the program is GNU ld. I'd rather use --version, 2025 # but apparently some GNU ld'sonly accept -v.2245 # but apparently some variants of GNU ld only accept -v. 2026 2246 # Break only if it was the GNU/non-GNU ld that we prefer. 2027 2247 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in … … 2055 2275 [AC_REQUIRE([AC_PROG_EGREP])dnl 2056 2276 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 2057 [# I'd rather use --version here, but apparently some GNU ld 's only accept -v.2277 [# I'd rather use --version here, but apparently some GNU lds only accept -v. 2058 2278 case `$LD -v 2>&1 </dev/null` in 2059 2279 *GNU* | *'with BFD'*) … … 2082 2302 esac 2083 2303 reload_cmds='$LD$reload_flag -o $output$reload_objs' 2304 case $host_os in 2305 darwin*) 2306 if test "$GCC" = yes; then 2307 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 2308 else 2309 reload_cmds='$LD$reload_flag -o $output$reload_objs' 2310 fi 2311 ;; 2312 esac 2084 2313 ])# AC_PROG_LD_RELOAD_FLAG 2085 2314 … … 2090 2319 # -- PORTME fill in with the dynamic library characteristics 2091 2320 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], 2092 [AC_CACHE_CHECK([how to recogni se dependent libraries],2321 [AC_CACHE_CHECK([how to recognize dependent libraries], 2093 2322 lt_cv_deplibs_check_method, 2094 2323 [lt_cv_file_magic_cmd='$MAGIC_CMD' … … 2115 2344 ;; 2116 2345 2117 bsdi 4*)2346 bsdi[[45]]*) 2118 2347 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 2119 2348 lt_cv_file_magic_cmd='/usr/bin/file -L' … … 2129 2358 mingw* | pw32*) 2130 2359 # Base MSYS/MinGW do not provide the 'file' command needed by 2131 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 2132 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 2133 lt_cv_file_magic_cmd='$OBJDUMP -f' 2360 # func_win32_libid shell function, so use a weaker test based on 'objdump', 2361 # unless we find 'file', for example because we are cross-compiling. 2362 if ( file / ) >/dev/null 2>&1; then 2363 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 2364 lt_cv_file_magic_cmd='func_win32_libid' 2365 else 2366 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 2367 lt_cv_file_magic_cmd='$OBJDUMP -f' 2368 fi 2134 2369 ;; 2135 2370 … … 2138 2373 ;; 2139 2374 2140 freebsd* | kfreebsd*-gnu)2375 freebsd* | dragonfly*) 2141 2376 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2142 2377 case $host_cpu in … … 2144 2379 # Not sure whether the presence of OpenBSD here was a mistake. 2145 2380 # Let's accept both of them until this is cleared up. 2146 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD )/i[[3-9]]86 (compact )?demand paged shared library'2381 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 2147 2382 lt_cv_file_magic_cmd=/usr/bin/file 2148 2383 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` … … 2160 2395 hpux10.20* | hpux11*) 2161 2396 lt_cv_file_magic_cmd=/usr/bin/file 2162 case "$host_cpu"in2397 case $host_cpu in 2163 2398 ia64*) 2164 2399 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' … … 2174 2409 ;; 2175 2410 esac 2411 ;; 2412 2413 interix[[3-9]]*) 2414 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 2415 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 2176 2416 ;; 2177 2417 … … 2187 2427 2188 2428 # This must be Linux ELF. 2189 linux* )2429 linux* | k*bsd*-gnu) 2190 2430 lt_cv_deplibs_check_method=pass_all 2191 2431 ;; 2192 2432 2193 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)2433 netbsd* | netbsdelf*-gnu) 2194 2434 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2195 2435 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' … … 2210 2450 2211 2451 openbsd*) 2212 lt_cv_file_magic_cmd=/usr/bin/file2213 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`2214 2452 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 2215 lt_cv_deplibs_check_method=' file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'2453 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 2216 2454 else 2217 lt_cv_deplibs_check_method=' file_magic OpenBSD.* shared library'2455 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 2218 2456 fi 2219 2457 ;; … … 2223 2461 ;; 2224 2462 2225 sco3.2v5*)2463 rdos*) 2226 2464 lt_cv_deplibs_check_method=pass_all 2227 2465 ;; … … 2231 2469 ;; 2232 2470 2233 sysv4 | sysv4. 2uw2* | sysv4.3* | sysv5*)2471 sysv4 | sysv4.3*) 2234 2472 case $host_vendor in 2235 2473 motorola) … … 2252 2490 lt_cv_deplibs_check_method=pass_all 2253 2491 ;; 2492 pc) 2493 lt_cv_deplibs_check_method=pass_all 2494 ;; 2254 2495 esac 2255 2496 ;; 2256 2497 2257 sysv5 OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)2498 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 2258 2499 lt_cv_deplibs_check_method=pass_all 2259 2500 ;; … … 2275 2516 lt_cv_path_NM="$NM" 2276 2517 else 2277 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2278 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 2279 IFS="$lt_save_ifs" 2280 test -z "$ac_dir" && ac_dir=. 2281 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 2282 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 2283 # Check to see if the nm accepts a BSD-compat flag. 2284 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 2285 # nm: unknown option "B" ignored 2286 # Tru64's nm complains that /dev/null is an invalid object file 2287 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 2288 */dev/null* | *'Invalid file or object type'*) 2289 lt_cv_path_NM="$tmp_nm -B" 2290 break 2291 ;; 2292 *) 2293 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 2294 */dev/null*) 2295 lt_cv_path_NM="$tmp_nm -p" 2518 lt_nm_to_check="${ac_tool_prefix}nm" 2519 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 2520 lt_nm_to_check="$lt_nm_to_check nm" 2521 fi 2522 for lt_tmp_nm in $lt_nm_to_check; do 2523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2524 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 2525 IFS="$lt_save_ifs" 2526 test -z "$ac_dir" && ac_dir=. 2527 tmp_nm="$ac_dir/$lt_tmp_nm" 2528 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 2529 # Check to see if the nm accepts a BSD-compat flag. 2530 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 2531 # nm: unknown option "B" ignored 2532 # Tru64's nm complains that /dev/null is an invalid object file 2533 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 2534 */dev/null* | *'Invalid file or object type'*) 2535 lt_cv_path_NM="$tmp_nm -B" 2296 2536 break 2297 2537 ;; 2298 2538 *) 2299 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 2300 continue # so that we can try to find one that supports BSD flags 2539 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 2540 */dev/null*) 2541 lt_cv_path_NM="$tmp_nm -p" 2542 break 2543 ;; 2544 *) 2545 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 2546 continue # so that we can try to find one that supports BSD flags 2547 ;; 2548 esac 2301 2549 ;; 2302 2550 esac 2303 esac 2304 fi 2551 fi 2552 done 2553 IFS="$lt_save_ifs" 2305 2554 done 2306 IFS="$lt_save_ifs"2307 2555 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 2308 2556 fi]) … … 2336 2584 # sets LIBLTDL to the link flags for the libltdl convenience library and 2337 2585 # LTDLINCL to the include flags for the libltdl header and adds 2338 # --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL2339 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If2340 # DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will2341 # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with2342 # '${top_srcdir}/' (note the single quotes!). If your package isnot2343 # flat and you're not using automake, define top_builddir and2344 # t op_srcdir appropriately in the Makefiles.2586 # --enable-ltdl-convenience to the configure arguments. Note that 2587 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 2588 # it is assumed to be `libltdl'. LIBLTDL will be prefixed with 2589 # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' 2590 # (note the single quotes!). If your package is not flat and you're not 2591 # using automake, define top_builddir and top_srcdir appropriately in 2592 # the Makefiles. 2345 2593 AC_DEFUN([AC_LIBLTDL_CONVENIENCE], 2346 2594 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl … … 2361 2609 # sets LIBLTDL to the link flags for the libltdl installable library and 2362 2610 # LTDLINCL to the include flags for the libltdl header and adds 2363 # --enable-ltdl-install to the configure arguments. Note that LIBLTDL2364 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If2365 # DIRECTORY is not provided and an installed libltdl is not found, it is2366 # assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'2367 # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single2368 # quotes!). If your package is not flat and you're not using automake,2369 # define top_builddir and top_srcdirappropriately in the Makefiles.2611 # --enable-ltdl-install to the configure arguments. Note that 2612 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 2613 # and an installed libltdl is not found, it is assumed to be `libltdl'. 2614 # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with 2615 # '${top_srcdir}/' (note the single quotes!). If your package is not 2616 # flat and you're not using automake, define top_builddir and top_srcdir 2617 # appropriately in the Makefiles. 2370 2618 # In the future, this macro may have to be called after AC_PROG_LIBTOOL. 2371 2619 AC_DEFUN([AC_LIBLTDL_INSTALLABLE], … … 2405 2653 AC_DEFUN([_LT_AC_LANG_CXX], 2406 2654 [AC_REQUIRE([AC_PROG_CXX]) 2407 AC_REQUIRE([ AC_PROG_CXXCPP])2655 AC_REQUIRE([_LT_AC_PROG_CXXCPP]) 2408 2656 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) 2409 2657 ])# _LT_AC_LANG_CXX 2410 2658 2659 # _LT_AC_PROG_CXXCPP 2660 # ------------------ 2661 AC_DEFUN([_LT_AC_PROG_CXXCPP], 2662 [ 2663 AC_REQUIRE([AC_PROG_CXX]) 2664 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 2665 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 2666 (test "X$CXX" != "Xg++"))) ; then 2667 AC_PROG_CXXCPP 2668 fi 2669 ])# _LT_AC_PROG_CXXCPP 2411 2670 2412 2671 # AC_LIBTOOL_F77 … … 2448 2707 2449 2708 # AC_LIBTOOL_RC 2450 # ------------- -2709 # ------------- 2451 2710 # enable support for Windows resource files 2452 2711 AC_DEFUN([AC_LIBTOOL_RC], … … 2474 2733 2475 2734 # Code to be used in simple compile tests 2476 lt_simple_compile_test_code="int some_variable = 0; \n"2735 lt_simple_compile_test_code="int some_variable = 0;" 2477 2736 2478 2737 # Code to be used in simple link tests 2479 lt_simple_link_test_code='int main(){return(0);} \n'2738 lt_simple_link_test_code='int main(){return(0);}' 2480 2739 2481 2740 _LT_AC_SYS_COMPILER 2482 2741 2483 # 2484 # Check for any special shared library compilation flags. 2485 # 2486 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)= 2487 if test "$GCC" = no; then 2488 case $host_os in 2489 sco3.2v5*) 2490 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf' 2491 ;; 2492 esac 2493 fi 2494 if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then 2495 AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) 2496 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then : 2497 else 2498 AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) 2499 _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no 2500 fi 2501 fi 2502 2503 2504 # 2505 # Check to make sure the static flag actually works. 2506 # 2507 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works], 2508 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), 2509 $_LT_AC_TAGVAR(lt_prog_compiler_static, $1), 2510 [], 2511 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) 2512 2742 # save warnings/boilerplate of simple test code 2743 _LT_COMPILER_BOILERPLATE 2744 _LT_LINKER_BOILERPLATE 2513 2745 2514 2746 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) … … 2520 2752 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 2521 2753 AC_LIBTOOL_SYS_LIB_STRIP 2522 AC_LIBTOOL_DLOPEN_SELF ($1)2523 2524 # Report which librar ie types wil actually be built2754 AC_LIBTOOL_DLOPEN_SELF 2755 2756 # Report which library types will actually be built 2525 2757 AC_MSG_CHECKING([if libtool supports shared libraries]) 2526 2758 AC_MSG_RESULT([$can_build_shared]) … … 2531 2763 # On AIX, shared libraries and static libraries use the same namespace, and 2532 2764 # are all built from PIC. 2533 case "$host_os"in2765 case $host_os in 2534 2766 aix3*) 2535 2767 test "$enable_shared" = yes && enable_static=no … … 2543 2775 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 2544 2776 test "$enable_shared" = yes && enable_static=no 2545 fi2546 ;;2547 darwin* | rhapsody*)2548 if test "$GCC" = yes; then2549 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no2550 case "$host_os" in2551 rhapsody* | darwin1.[[012]])2552 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'2553 ;;2554 *) # Darwin 1.3 on2555 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then2556 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'2557 else2558 case ${MACOSX_DEPLOYMENT_TARGET} in2559 10.[[012]])2560 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'2561 ;;2562 10.*)2563 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'2564 ;;2565 esac2566 fi2567 ;;2568 esac2569 output_verbose_link_cmd='echo'2570 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'2571 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'2572 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's2573 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'2574 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'2575 _LT_AC_TAGVAR(hardcode_direct, $1)=no2576 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes2577 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported2578 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'2579 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes2580 else2581 _LT_AC_TAGVAR(ld_shlibs, $1)=no2582 2777 fi 2583 2778 ;; … … 2606 2801 [AC_LANG_PUSH(C++) 2607 2802 AC_REQUIRE([AC_PROG_CXX]) 2608 AC_REQUIRE([ AC_PROG_CXXCPP])2803 AC_REQUIRE([_LT_AC_PROG_CXXCPP]) 2609 2804 2610 2805 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no … … 2618 2813 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 2619 2814 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no 2815 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 2620 2816 _LT_AC_TAGVAR(hardcode_automatic, $1)=no 2621 2817 _LT_AC_TAGVAR(module_cmds, $1)= … … 2635 2831 2636 2832 # Source file extension for C++ test sources. 2637 ac_ext=c c2833 ac_ext=cpp 2638 2834 2639 2835 # Object file extension for compiled C++ test sources. … … 2642 2838 2643 2839 # Code to be used in simple compile tests 2644 lt_simple_compile_test_code="int some_variable = 0; \n"2840 lt_simple_compile_test_code="int some_variable = 0;" 2645 2841 2646 2842 # Code to be used in simple link tests 2647 lt_simple_link_test_code='int main(int, char *[ ]) { return(0); }\n'2843 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 2648 2844 2649 2845 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 2650 2846 _LT_AC_SYS_COMPILER 2847 2848 # save warnings/boilerplate of simple test code 2849 _LT_COMPILER_BOILERPLATE 2850 _LT_LINKER_BOILERPLATE 2651 2851 2652 2852 # Allow CC to be a program name with arguments. … … 2660 2860 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 2661 2861 else 2662 unset lt_cv_prog_gnu_ld2862 $as_unset lt_cv_prog_gnu_ld 2663 2863 fi 2664 2864 if test -n "${lt_cv_path_LDCXX+set}"; then 2665 2865 lt_cv_path_LD=$lt_cv_path_LDCXX 2666 2866 else 2667 unset lt_cv_path_LD2867 $as_unset lt_cv_path_LD 2668 2868 fi 2669 2869 test -z "${LDCXX+set}" || LD=$LDCXX … … 2671 2871 compiler=$CC 2672 2872 _LT_AC_TAGVAR(compiler, $1)=$CC 2673 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 2873 _LT_CC_BASENAME([$compiler]) 2674 2874 2675 2875 # We don't want -fno-exception wen compiling C++ code, so set the … … 2760 2960 esac 2761 2961 done 2962 ;; 2762 2963 esac 2763 2964 … … 2778 2979 2779 2980 if test "$GXX" = yes; then 2780 case $host_os in aix4.[ 012]|aix4.[012].*)2981 case $host_os in aix4.[[012]]|aix4.[[012]].*) 2781 2982 # We only want to do this on AIX 4.2 and lower, the check 2782 2983 # below for broken collect2 doesn't work under 4.3+ … … 2786 2987 then 2787 2988 # We have reworked collect2 2788 _LT_AC_TAGVAR(hardcode_direct, $1)=yes2989 : 2789 2990 else 2790 2991 # We have old collect2 … … 2797 2998 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 2798 2999 fi 3000 ;; 2799 3001 esac 2800 3002 shared_flag='-shared' 3003 if test "$aix_use_runtimelinking" = yes; then 3004 shared_flag="$shared_flag "'${wl}-G' 3005 fi 2801 3006 else 2802 3007 # not using gcc … … 2825 3030 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 2826 3031 2827 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag\${wl}$exp_sym_flag:\$export_symbols $shared_flag"3032 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 2828 3033 else 2829 3034 if test "$host_cpu" = ia64; then 2830 3035 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 2831 3036 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 2832 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag\${wl}$exp_sym_flag:\$export_symbols"3037 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 2833 3038 else 2834 3039 # Determine the default libpath from the value encoded in an empty executable. … … 2839 3044 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 2840 3045 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 2841 # -bexpall does not export symbols beginning with underscore (_)2842 _LT_AC_TAGVAR(always_export_symbols, $1)=yes2843 3046 # Exported symbols can be pulled into shared objects from archives 2844 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' 3047 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 2845 3048 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 2846 # This is similar to how AIX traditionally builds it 's shared libraries.2847 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $ compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'3049 # This is similar to how AIX traditionally builds its shared libraries. 3050 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 2848 3051 fi 2849 3052 fi 2850 3053 ;; 3054 3055 beos*) 3056 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 3057 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 3058 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 3059 # support --undefined. This deserves some investigation. FIXME 3060 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 3061 else 3062 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3063 fi 3064 ;; 3065 2851 3066 chorus*) 2852 3067 case $cc_basename in … … 2867 3082 2868 3083 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 2869 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}-- image-base=0x10000000 ${wl}--out-implib,$lib'3084 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 2870 3085 # If the export-symbols file already is a .def file (1st line 2871 3086 # is EXPORTS), use it as is; otherwise, prepend... … … 2876 3091 cat $export_symbols >> $output_objdir/$soname.def; 2877 3092 fi~ 2878 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}-- image-base=0x10000000 ${wl}--out-implib,$lib'3093 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 2879 3094 else 2880 3095 _LT_AC_TAGVAR(ld_shlibs, $1)=no 2881 3096 fi 2882 3097 ;; 2883 2884 darwin* | rhapsody*) 2885 if test "$GXX" = yes; then 2886 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 2887 case "$host_os" in 2888 rhapsody* | darwin1.[[012]]) 2889 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' 2890 ;; 2891 *) # Darwin 1.3 on 2892 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 2893 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 3098 darwin* | rhapsody*) 3099 case $host_os in 3100 rhapsody* | darwin1.[[012]]) 3101 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' 3102 ;; 3103 *) # Darwin 1.3 on 3104 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 3105 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 3106 else 3107 case ${MACOSX_DEPLOYMENT_TARGET} in 3108 10.[[012]]) 3109 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 3110 ;; 3111 10.*) 3112 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' 3113 ;; 3114 esac 3115 fi 3116 ;; 3117 esac 3118 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3119 _LT_AC_TAGVAR(hardcode_direct, $1)=no 3120 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 3121 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 3122 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' 3123 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3124 3125 if test "$GXX" = yes ; then 3126 lt_int_apple_cc_single_mod=no 3127 output_verbose_link_cmd='echo' 3128 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 3129 lt_int_apple_cc_single_mod=yes 3130 fi 3131 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 3132 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 2894 3133 else 2895 case ${MACOSX_DEPLOYMENT_TARGET} in 2896 10.[[012]]) 2897 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 2898 ;; 2899 10.*) 2900 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' 2901 ;; 2902 esac 3134 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 3135 fi 3136 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 3137 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 3138 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 3139 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 3140 else 3141 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 3142 fi 3143 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 3144 else 3145 case $cc_basename in 3146 xlc*) 3147 output_verbose_link_cmd='echo' 3148 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 3149 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 3150 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 3151 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 3152 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 3153 ;; 3154 *) 3155 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3156 ;; 3157 esac 2903 3158 fi 2904 ;; 2905 esac 2906 lt_int_apple_cc_single_mod=no 2907 output_verbose_link_cmd='echo' 2908 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 2909 lt_int_apple_cc_single_mod=yes 2910 fi 2911 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 2912 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 2913 else 2914 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 2915 fi 2916 _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 2917 2918 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 2919 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 2920 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 2921 else 2922 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 2923 fi 2924 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 2925 _LT_AC_TAGVAR(hardcode_direct, $1)=no 2926 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 2927 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 2928 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' 2929 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 2930 else 2931 _LT_AC_TAGVAR(ld_shlibs, $1)=no 2932 fi 2933 ;; 3159 ;; 2934 3160 2935 3161 dgux*) 2936 3162 case $cc_basename in 2937 ec++ )3163 ec++*) 2938 3164 # FIXME: insert proper C++ library support 2939 3165 _LT_AC_TAGVAR(ld_shlibs, $1)=no 2940 3166 ;; 2941 ghcx )3167 ghcx*) 2942 3168 # Green Hills C++ Compiler 2943 3169 # FIXME: insert proper C++ library support … … 2950 3176 esac 2951 3177 ;; 2952 freebsd[ 12]*)3178 freebsd[[12]]*) 2953 3179 # C++ shared libraries reported to be fairly broken before switch to ELF 2954 3180 _LT_AC_TAGVAR(ld_shlibs, $1)=no … … 2957 3183 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 2958 3184 ;; 2959 freebsd* | kfreebsd*-gnu)3185 freebsd* | dragonfly*) 2960 3186 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 2961 3187 # conventions … … 2974 3200 2975 3201 case $cc_basename in 2976 CC )3202 CC*) 2977 3203 # FIXME: insert proper C++ library support 2978 3204 _LT_AC_TAGVAR(ld_shlibs, $1)=no 2979 3205 ;; 2980 aCC )3206 aCC*) 2981 3207 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 2982 3208 # Commands to make compiler produce verbose output that lists … … 2988 3214 # from the output so that they don't get included in the library 2989 3215 # dependencies. 2990 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[ -]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'3216 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 2991 3217 ;; 2992 3218 *) … … 3002 3228 hpux10*|hpux11*) 3003 3229 if test $with_gnu_ld = no; then 3004 case "$host_cpu" in 3005 hppa*64*) 3006 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 3007 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 3008 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3009 ;; 3010 ia64*) 3011 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 3012 ;; 3230 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 3231 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3232 3233 case $host_cpu in 3234 hppa*64*|ia64*) ;; 3013 3235 *) 3014 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'3015 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:3016 3236 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 3017 3237 ;; 3018 3238 esac 3019 3239 fi 3020 case "$host_cpu"in3021 hppa*64* )3240 case $host_cpu in 3241 hppa*64*|ia64*) 3022 3242 _LT_AC_TAGVAR(hardcode_direct, $1)=no 3023 3243 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3024 ;;3025 ia64*)3026 _LT_AC_TAGVAR(hardcode_direct, $1)=no3027 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no3028 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,3029 # but as the default3030 # location of the library.3031 3244 ;; 3032 3245 *) … … 3039 3252 3040 3253 case $cc_basename in 3041 CC )3254 CC*) 3042 3255 # FIXME: insert proper C++ library support 3043 3256 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3044 3257 ;; 3045 aCC) 3046 case "$host_cpu" in 3047 hppa*64*|ia64*) 3048 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 3258 aCC*) 3259 case $host_cpu in 3260 hppa*64*) 3261 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3262 ;; 3263 ia64*) 3264 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3049 3265 ;; 3050 3266 *) … … 3065 3281 if test "$GXX" = yes; then 3066 3282 if test $with_gnu_ld = no; then 3067 case "$host_cpu" in 3068 ia64*|hppa*64*) 3069 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 3283 case $host_cpu in 3284 hppa*64*) 3285 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3286 ;; 3287 ia64*) 3288 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3070 3289 ;; 3071 3290 *) … … 3081 3300 esac 3082 3301 ;; 3302 interix[[3-9]]*) 3303 _LT_AC_TAGVAR(hardcode_direct, $1)=no 3304 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3305 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3306 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 3307 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 3308 # Instead, shared libraries are loaded at an image base (0x10000000 by 3309 # default) and relocated if they conflict, which is a slow very memory 3310 # consuming and fragmenting process. To avoid this, we pick a random, 3311 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 3312 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 3313 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 3314 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 3315 ;; 3083 3316 irix5* | irix6*) 3084 3317 case $cc_basename in 3085 CC )3318 CC*) 3086 3319 # SGI C++ 3087 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${o bjdir}/so_locations -o $lib'3320 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 3088 3321 3089 3322 # Archives containing C++ object files must be created using … … 3096 3329 if test "$GXX" = yes; then 3097 3330 if test "$with_gnu_ld" = no; then 3098 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${o bjdir}/so_locations -o $lib'3331 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 3099 3332 else 3100 3333 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' … … 3107 3340 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3108 3341 ;; 3109 linux* )3342 linux* | k*bsd*-gnu) 3110 3343 case $cc_basename in 3111 KCC )3344 KCC*) 3112 3345 # Kuck and Associates, Inc. (KAI) C++ Compiler 3113 3346 … … 3134 3367 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 3135 3368 ;; 3136 icpc )3369 icpc*) 3137 3370 # Intel C++ 3138 3371 with_gnu_ld=yes 3372 # version 8.0 and above of icpc choke on multiply defined symbols 3373 # if we add $predep_objects and $postdep_objects, however 7.1 and 3374 # earlier do not add the objects themselves. 3375 case `$CC -V 2>&1` in 3376 *"Version 7."*) 3377 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 3378 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 3379 ;; 3380 *) # Version 8.0 or newer 3381 tmp_idyn= 3382 case $host_cpu in 3383 ia64*) tmp_idyn=' -i_dynamic';; 3384 esac 3385 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 3386 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 3387 ;; 3388 esac 3139 3389 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3140 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'3141 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'3142 3390 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3143 3391 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 3144 3392 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 3145 3393 ;; 3146 cxx) 3394 pgCC*) 3395 # Portland Group C++ compiler 3396 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 3397 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 3398 3399 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 3400 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 3401 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 3402 ;; 3403 cxx*) 3147 3404 # Compaq C++ 3148 3405 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' … … 3163 3420 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 3164 3421 ;; 3422 *) 3423 case `$CC -V 2>&1 | sed 5q` in 3424 *Sun\ C*) 3425 # Sun C++ 5.9 3426 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 3427 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3428 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 3429 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 3430 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 3431 3432 # Not sure whether something based on 3433 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 3434 # would be better. 3435 output_verbose_link_cmd='echo' 3436 3437 # Archives containing C++ object files must be created using 3438 # "CC -xar", where "CC" is the Sun C++ compiler. This is 3439 # necessary to make sure instantiated templates are included 3440 # in the archive. 3441 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 3442 ;; 3443 esac 3444 ;; 3165 3445 esac 3166 3446 ;; … … 3175 3455 mvs*) 3176 3456 case $cc_basename in 3177 cxx )3457 cxx*) 3178 3458 # FIXME: insert proper C++ library support 3179 3459 _LT_AC_TAGVAR(ld_shlibs, $1)=no … … 3185 3465 esac 3186 3466 ;; 3187 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)3467 netbsd* | netbsdelf*-gnu) 3188 3468 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 3189 3469 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' … … 3196 3476 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 3197 3477 ;; 3478 openbsd2*) 3479 # C++ shared libraries are fairly broken 3480 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3481 ;; 3482 openbsd*) 3483 if test -f /usr/libexec/ld.so; then 3484 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3485 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3486 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 3487 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3488 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3489 _LT_AC_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' 3490 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 3491 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 3492 fi 3493 output_verbose_link_cmd='echo' 3494 else 3495 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3496 fi 3497 ;; 3198 3498 osf3*) 3199 3499 case $cc_basename in 3200 KCC )3500 KCC*) 3201 3501 # Kuck and Associates, Inc. (KAI) C++ Compiler 3202 3502 … … 3214 3514 3215 3515 ;; 3216 RCC )3516 RCC*) 3217 3517 # Rational C++ 2.4.1 3218 3518 # FIXME: insert proper C++ library support 3219 3519 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3220 3520 ;; 3221 cxx )3521 cxx*) 3222 3522 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 3223 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${o bjdir}/so_locations -o $lib'3523 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 3224 3524 3225 3525 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' … … 3239 3539 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 3240 3540 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 3241 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${o bjdir}/so_locations -o $lib'3541 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 3242 3542 3243 3543 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' … … 3258 3558 osf4* | osf5*) 3259 3559 case $cc_basename in 3260 KCC )3560 KCC*) 3261 3561 # Kuck and Associates, Inc. (KAI) C++ Compiler 3262 3562 … … 3273 3573 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' 3274 3574 ;; 3275 RCC )3575 RCC*) 3276 3576 # Rational C++ 2.4.1 3277 3577 # FIXME: insert proper C++ library support 3278 3578 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3279 3579 ;; 3280 cxx )3580 cxx*) 3281 3581 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 3282 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${o bjdir}/so_locations -o $lib'3582 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 3283 3583 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 3284 3584 echo "-hidden">> $lib.exp~ 3285 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $ objdir/so_locations -o $lib~3585 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ 3286 3586 $rm $lib.exp' 3287 3587 … … 3302 3602 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 3303 3603 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 3304 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${o bjdir}/so_locations -o $lib'3604 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 3305 3605 3306 3606 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' … … 3323 3623 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3324 3624 ;; 3325 sco*) 3326 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3625 sunos4*) 3327 3626 case $cc_basename in 3328 CC) 3627 CC*) 3628 # Sun C++ 4.x 3629 # FIXME: insert proper C++ library support 3630 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3631 ;; 3632 lcc*) 3633 # Lucid 3329 3634 # FIXME: insert proper C++ library support 3330 3635 _LT_AC_TAGVAR(ld_shlibs, $1)=no … … 3336 3641 esac 3337 3642 ;; 3338 sunos4*)3339 case $cc_basename in3340 CC)3341 # Sun C++ 4.x3342 # FIXME: insert proper C++ library support3343 _LT_AC_TAGVAR(ld_shlibs, $1)=no3344 ;;3345 lcc)3346 # Lucid3347 # FIXME: insert proper C++ library support3348 _LT_AC_TAGVAR(ld_shlibs, $1)=no3349 ;;3350 *)3351 # FIXME: insert proper C++ library support3352 _LT_AC_TAGVAR(ld_shlibs, $1)=no3353 ;;3354 esac3355 ;;3356 3643 solaris*) 3357 3644 case $cc_basename in 3358 CC )3645 CC*) 3359 3646 # Sun C++ 4.2, 5.x and Centerline C++ 3647 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes 3360 3648 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 3361 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib-h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'3649 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3362 3650 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 3363 $CC -G${allow_undefined_flag} -nolib${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'3651 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 3364 3652 3365 3653 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 3366 3654 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3367 3655 case $host_os in 3368 solaris2.[ 0-5] | solaris2.[0-5].*) ;;3656 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 3369 3657 *) 3370 # The C++ compiler is used as linker so we must use $wl 3371 # flag to pass the commands to the underlying system 3372 # linker. 3658 # The compiler driver will combine and reorder linker options, 3659 # but understands `-z linker_flag'. 3373 3660 # Supported since Solaris 2.6 (maybe 2.5.1?) 3374 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'3661 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 3375 3662 ;; 3376 3663 esac 3377 3664 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3378 3665 3379 # Commands to make compiler produce verbose output that lists 3380 # what "hidden" libraries, object files and flags are used when 3381 # linking a shared library. 3382 # 3383 # There doesn't appear to be a way to prevent this compiler from 3384 # explicitly linking system object files so we need to strip them 3385 # from the output so that they don't get included in the library 3386 # dependencies. 3387 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 3666 output_verbose_link_cmd='echo' 3388 3667 3389 3668 # Archives containing C++ object files must be created using … … 3393 3672 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 3394 3673 ;; 3395 gcx )3674 gcx*) 3396 3675 # Green Hills C++ Compiler 3397 3676 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' … … 3427 3706 3428 3707 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 3708 case $host_os in 3709 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 3710 *) 3711 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 3712 ;; 3713 esac 3429 3714 fi 3430 3715 ;; 3431 3716 esac 3432 3717 ;; 3433 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) 3718 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 3719 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 3434 3720 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3721 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3722 runpath_var='LD_RUN_PATH' 3723 3724 case $cc_basename in 3725 CC*) 3726 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 3727 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 3728 ;; 3729 *) 3730 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 3731 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 3732 ;; 3733 esac 3734 ;; 3735 sysv5* | sco3.2v5* | sco5v6*) 3736 # Note: We can NOT use -z defs as we might desire, because we do not 3737 # link with -lc, and that would cause any symbols used from libc to 3738 # always be unresolved, which means just about no library would 3739 # ever link correctly. If we're not using GNU ld we use -z text 3740 # though, which does catch some bad symbols but isn't as heavy-handed 3741 # as -z defs. 3742 # For security reasons, it is highly recommended that you always 3743 # use absolute paths for naming shared libraries, and exclude the 3744 # DT_RUNPATH tag from executables and libraries. But doing so 3745 # requires that you compile everything twice, which is a pain. 3746 # So that behaviour is only enabled if SCOABSPATH is set to a 3747 # non-empty value in the environment. Most likely only useful for 3748 # creating official distributions of packages. 3749 # This is a hack until libtool officially supports absolute path 3750 # names for shared libraries. 3751 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 3752 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 3753 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3754 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3755 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 3756 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 3757 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3758 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 3759 runpath_var='LD_RUN_PATH' 3760 3761 case $cc_basename in 3762 CC*) 3763 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 3764 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 3765 ;; 3766 *) 3767 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 3768 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 3769 ;; 3770 esac 3435 3771 ;; 3436 3772 tandem*) 3437 3773 case $cc_basename in 3438 NCC )3774 NCC*) 3439 3775 # NonStop-UX NCC 3.20 3440 3776 # FIXME: insert proper C++ library support … … 3469 3805 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 3470 3806 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 3471 AC_LIBTOOL_SYS_LIB_STRIP3472 AC_LIBTOOL_DLOPEN_SELF($1)3473 3807 3474 3808 AC_LIBTOOL_CONFIG($1) … … 3488 3822 3489 3823 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) 3490 # ------------------------ 3824 # ------------------------------------ 3491 3825 # Figure out "hidden" library dependencies from verbose 3492 3826 # compiler output when linking a shared library. … … 3542 3876 # $output_verbose_cmd can trigger glob expansion during the loop 3543 3877 # eval without this substitution. 3544 output_verbose_link_cmd= "`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"3878 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 3545 3879 3546 3880 for p in `eval $output_verbose_link_cmd`; do … … 3618 3952 $rm -f confest.$objext 3619 3953 3954 # PORTME: override above test on systems where it is broken 3955 ifelse([$1],[CXX], 3956 [case $host_os in 3957 interix[[3-9]]*) 3958 # Interix 3.5 installs completely hosed .la files for C++, so rather than 3959 # hack all around it, let's just trust "g++" to DTRT. 3960 _LT_AC_TAGVAR(predep_objects,$1)= 3961 _LT_AC_TAGVAR(postdep_objects,$1)= 3962 _LT_AC_TAGVAR(postdeps,$1)= 3963 ;; 3964 3965 linux*) 3966 case `$CC -V 2>&1 | sed 5q` in 3967 *Sun\ C*) 3968 # Sun C++ 5.9 3969 # 3970 # The more standards-conforming stlport4 library is 3971 # incompatible with the Cstd library. Avoid specifying 3972 # it if it's in CXXFLAGS. Ignore libCrun as 3973 # -library=stlport4 depends on it. 3974 case " $CXX $CXXFLAGS " in 3975 *" -library=stlport4 "*) 3976 solaris_use_stlport4=yes 3977 ;; 3978 esac 3979 if test "$solaris_use_stlport4" != yes; then 3980 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 3981 fi 3982 ;; 3983 esac 3984 ;; 3985 3986 solaris*) 3987 case $cc_basename in 3988 CC*) 3989 # The more standards-conforming stlport4 library is 3990 # incompatible with the Cstd library. Avoid specifying 3991 # it if it's in CXXFLAGS. Ignore libCrun as 3992 # -library=stlport4 depends on it. 3993 case " $CXX $CXXFLAGS " in 3994 *" -library=stlport4 "*) 3995 solaris_use_stlport4=yes 3996 ;; 3997 esac 3998 3999 # Adding this requires a known-good setup of shared libraries for 4000 # Sun compiler versions before 5.6, else PIC objects from an old 4001 # archive will be linked into the output, leading to subtle bugs. 4002 if test "$solaris_use_stlport4" != yes; then 4003 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 4004 fi 4005 ;; 4006 esac 4007 ;; 4008 esac 4009 ]) 4010 3620 4011 case " $_LT_AC_TAGVAR(postdeps, $1) " in 3621 4012 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; … … 3624 4015 3625 4016 # AC_LIBTOOL_LANG_F77_CONFIG 3626 # ------------------------ 4017 # -------------------------- 3627 4018 # Ensure that the configuration vars for the C compiler are 3628 4019 # suitably defined. Those variables are subsequently used by … … 3660 4051 3661 4052 # Code to be used in simple compile tests 3662 lt_simple_compile_test_code=" subroutine t\n return\n end\n" 4053 lt_simple_compile_test_code="\ 4054 subroutine t 4055 return 4056 end 4057 " 3663 4058 3664 4059 # Code to be used in simple link tests 3665 lt_simple_link_test_code=" program t\n end\n" 4060 lt_simple_link_test_code="\ 4061 program t 4062 end 4063 " 3666 4064 3667 4065 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 3668 4066 _LT_AC_SYS_COMPILER 4067 4068 # save warnings/boilerplate of simple test code 4069 _LT_COMPILER_BOILERPLATE 4070 _LT_LINKER_BOILERPLATE 3669 4071 3670 4072 # Allow CC to be a program name with arguments. … … 3673 4075 compiler=$CC 3674 4076 _LT_AC_TAGVAR(compiler, $1)=$CC 3675 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 4077 _LT_CC_BASENAME([$compiler]) 3676 4078 3677 4079 AC_MSG_CHECKING([if libtool supports shared libraries]) … … 3683 4085 # On AIX, shared libraries and static libraries use the same namespace, and 3684 4086 # are all built from PIC. 3685 case "$host_os"in4087 case $host_os in 3686 4088 aix3*) 3687 4089 test "$enable_shared" = yes && enable_static=no … … 3692 4094 ;; 3693 4095 aix4* | aix5*) 3694 test "$enable_shared" = yes && enable_static=no 4096 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 4097 test "$enable_shared" = yes && enable_static=no 4098 fi 3695 4099 ;; 3696 4100 esac … … 3701 4105 test "$enable_shared" = yes || enable_static=yes 3702 4106 AC_MSG_RESULT([$enable_static]) 3703 3704 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no3705 4107 3706 4108 _LT_AC_TAGVAR(GCC, $1)="$G77" … … 3713 4115 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 3714 4116 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 3715 AC_LIBTOOL_SYS_LIB_STRIP3716 3717 4117 3718 4118 AC_LIBTOOL_CONFIG($1) … … 3740 4140 3741 4141 # Code to be used in simple compile tests 3742 lt_simple_compile_test_code="class foo {} \n"4142 lt_simple_compile_test_code="class foo {}" 3743 4143 3744 4144 # Code to be used in simple link tests 3745 lt_simple_link_test_code='public class conftest { public static void main(String[ ] argv) {}; }\n'4145 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 3746 4146 3747 4147 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 3748 4148 _LT_AC_SYS_COMPILER 4149 4150 # save warnings/boilerplate of simple test code 4151 _LT_COMPILER_BOILERPLATE 4152 _LT_LINKER_BOILERPLATE 3749 4153 3750 4154 # Allow CC to be a program name with arguments. … … 3753 4157 compiler=$CC 3754 4158 _LT_AC_TAGVAR(compiler, $1)=$CC 4159 _LT_CC_BASENAME([$compiler]) 3755 4160 3756 4161 # GCJ did not exist at the time GCC didn't implicitly link libc in. 3757 4162 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 4163 4164 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 3758 4165 3759 4166 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) … … 3764 4171 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 3765 4172 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 3766 AC_LIBTOOL_SYS_LIB_STRIP3767 AC_LIBTOOL_DLOPEN_SELF($1)3768 4173 3769 4174 AC_LIBTOOL_CONFIG($1) … … 3775 4180 3776 4181 # AC_LIBTOOL_LANG_RC_CONFIG 3777 # ------------------------- -4182 # ------------------------- 3778 4183 # Ensure that the configuration vars for the Windows resource compiler are 3779 4184 # suitably defined. Those variables are subsequently used by … … 3791 4196 3792 4197 # Code to be used in simple compile tests 3793 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED } \n'4198 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 3794 4199 3795 4200 # Code to be used in simple link tests … … 3798 4203 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 3799 4204 _LT_AC_SYS_COMPILER 4205 4206 # save warnings/boilerplate of simple test code 4207 _LT_COMPILER_BOILERPLATE 4208 _LT_LINKER_BOILERPLATE 3800 4209 3801 4210 # Allow CC to be a program name with arguments. … … 3804 4213 compiler=$CC 3805 4214 _LT_AC_TAGVAR(compiler, $1)=$CC 4215 _LT_CC_BASENAME([$compiler]) 3806 4216 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 3807 4217 … … 3833 4243 # careful not to overquote the AC_SUBSTed values. We take copies of the 3834 4244 # variables and quote the copies for generation of the libtool script. 3835 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \4245 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 3836 4246 SED SHELL STRIP \ 3837 4247 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ … … 3875 4285 _LT_AC_TAGVAR(module_expsym_cmds, $1) \ 3876 4286 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ 4287 _LT_AC_TAGVAR(fix_srcfile_path, $1) \ 3877 4288 _LT_AC_TAGVAR(exclude_expsyms, $1) \ 3878 4289 _LT_AC_TAGVAR(include_expsyms, $1); do … … 3921 4332 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 3922 4333 # 3923 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 4334 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 3924 4335 # Free Software Foundation, Inc. 3925 4336 # … … 3939 4350 # You should have received a copy of the GNU General Public License 3940 4351 # along with this program; if not, write to the Free Software 3941 # Foundation, Inc., 5 9 Temple Place - Suite 330, Boston, MA 02111-1307, USA.4352 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 3942 4353 # 3943 4354 # As a special exception to the GNU General Public License, if you … … 3950 4361 3951 4362 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 3952 Xsed="$SED -e s/^X//"4363 Xsed="$SED -e 1s/^X//" 3953 4364 3954 4365 # The HP-UX ksh and POSIX shell print the target directory to stdout 3955 4366 # if CDPATH is set. 3956 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 4367 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 3957 4368 3958 4369 # The names of the tagged configurations supported by this script. … … 3985 4396 host_alias=$host_alias 3986 4397 host=$host 4398 host_os=$host_os 4399 4400 # The build system. 4401 build_alias=$build_alias 4402 build=$build 4403 build_os=$build_os 3987 4404 3988 4405 # An echo program that does not interpret backslashes. … … 3996 4413 LTCC=$lt_LTCC 3997 4414 4415 # LTCC compiler flags. 4416 LTCFLAGS=$lt_LTCFLAGS 4417 3998 4418 # A language-specific compiler. 3999 4419 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) … … 4061 4481 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) 4062 4482 4063 # Must we lock files when doing compilation 4483 # Must we lock files when doing compilation? 4064 4484 need_locks=$lt_need_locks 4065 4485 … … 4237 4657 4238 4658 # Fix the shell variable \$srcfile for the compiler. 4239 fix_srcfile_path= "$_LT_AC_TAGVAR(fix_srcfile_path, $1)"4659 fix_srcfile_path=$lt_fix_srcfile_path 4240 4660 4241 4661 # Set to yes if exported symbols are required. … … 4320 4740 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], 4321 4741 [AC_REQUIRE([AC_CANONICAL_HOST]) 4742 AC_REQUIRE([LT_AC_PROG_SED]) 4322 4743 AC_REQUIRE([AC_PROG_NM]) 4323 4744 AC_REQUIRE([AC_OBJEXT]) … … 4335 4756 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 4336 4757 4337 # Transform the above into a raw symbol and a C symbol.4338 symxfrm='\1 \2\3 \3'4339 4340 4758 # Transform an extracted symbol line into a proper C declaration 4341 4759 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" … … 4359 4777 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 4360 4778 ;; 4779 linux* | k*bsd*-gnu) 4780 if test "$host_cpu" = ia64; then 4781 symcode='[[ABCDGIRSTW]]' 4782 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4783 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 4784 fi 4785 ;; 4361 4786 irix* | nonstopux*) 4362 4787 symcode='[[BCDEGRST]]' … … 4365 4790 symcode='[[BCDEGQRST]]' 4366 4791 ;; 4367 solaris* | sysv5*)4792 solaris*) 4368 4793 symcode='[[BDRT]]' 4794 ;; 4795 sco3.2v5*) 4796 symcode='[[DT]]' 4797 ;; 4798 sysv4.2uw2*) 4799 symcode='[[DT]]' 4800 ;; 4801 sysv5* | sco5v6* | unixware* | OpenUNIX*) 4802 symcode='[[ABDT]]' 4369 4803 ;; 4370 4804 sysv4) … … 4390 4824 for ac_symprfx in "" "_"; do 4391 4825 4826 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 4827 symxfrm="\\1 $ac_symprfx\\2 \\2" 4828 4392 4829 # Write the raw and C identifiers. 4393 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]* \($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"4830 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 4394 4831 4395 4832 # Check to see that the pipe works correctly. … … 4530 4967 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 4531 4968 ;; 4532 beos* | cygwin* |irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)4969 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 4533 4970 # PIC is the default for these OSes. 4534 4971 ;; 4535 mingw* | os2* | pw32*)4972 mingw* | cygwin* | os2* | pw32*) 4536 4973 # This hack is so that the source file can tell whether it is being 4537 4974 # built for inclusion in a dll (and should export symbols for example). 4975 # Although the cygwin gcc ignores -fPIC, still need this for old-style 4976 # (--disable-auto-import) libraries 4538 4977 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 4539 4978 ;; … … 4547 4986 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 4548 4987 ;; 4988 interix[[3-9]]*) 4989 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 4990 # Instead, we relocate shared libraries at runtime. 4991 ;; 4549 4992 sysv4*MP*) 4550 4993 if test -d /usr/nec; then … … 4555 4998 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 4556 4999 # not for PA HP-UX. 4557 case "$host_cpu"in5000 case $host_cpu in 4558 5001 hppa*64*|ia64*) 4559 5002 ;; … … 4580 5023 chorus*) 4581 5024 case $cc_basename in 4582 cxch68 )5025 cxch68*) 4583 5026 # Green Hills C++ Compiler 4584 5027 # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" … … 4586 5029 esac 4587 5030 ;; 5031 darwin*) 5032 # PIC is the default on this platform 5033 # Common symbols not allowed in MH_DYLIB files 5034 case $cc_basename in 5035 xlc*) 5036 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' 5037 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5038 ;; 5039 esac 5040 ;; 4588 5041 dgux*) 4589 5042 case $cc_basename in 4590 ec++ )5043 ec++*) 4591 5044 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4592 5045 ;; 4593 ghcx )5046 ghcx*) 4594 5047 # Green Hills C++ Compiler 4595 5048 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' … … 4599 5052 esac 4600 5053 ;; 4601 freebsd* | kfreebsd*-gnu)5054 freebsd* | dragonfly*) 4602 5055 # FreeBSD uses GNU C++ 4603 5056 ;; 4604 5057 hpux9* | hpux10* | hpux11*) 4605 5058 case $cc_basename in 4606 CC )5059 CC*) 4607 5060 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4608 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)= "${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"5061 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 4609 5062 if test "$host_cpu" != ia64; then 4610 5063 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4611 5064 fi 4612 5065 ;; 4613 aCC )5066 aCC*) 4614 5067 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4615 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)= "${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"4616 case "$host_cpu"in5068 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 5069 case $host_cpu in 4617 5070 hppa*64*|ia64*) 4618 5071 # +Z the default … … 4627 5080 esac 4628 5081 ;; 5082 interix*) 5083 # This is c89, which is MS Visual C++ (no shared libs) 5084 # Anyone wants to do a port? 5085 ;; 4629 5086 irix5* | irix6* | nonstopux*) 4630 5087 case $cc_basename in 4631 CC )5088 CC*) 4632 5089 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4633 5090 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' … … 4638 5095 esac 4639 5096 ;; 4640 linux* )5097 linux* | k*bsd*-gnu) 4641 5098 case $cc_basename in 4642 KCC )5099 KCC*) 4643 5100 # KAI C++ Compiler 4644 5101 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 4645 5102 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4646 5103 ;; 4647 icpc )5104 icpc* | ecpc*) 4648 5105 # Intel C++ 4649 5106 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' … … 4651 5108 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 4652 5109 ;; 4653 cxx) 5110 pgCC*) 5111 # Portland Group C++ compiler. 5112 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5113 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 5114 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5115 ;; 5116 cxx*) 4654 5117 # Compaq C++ 4655 5118 # Make sure the PIC flag is empty. It appears that all Alpha … … 4659 5122 ;; 4660 5123 *) 5124 case `$CC -V 2>&1 | sed 5q` in 5125 *Sun\ C*) 5126 # Sun C++ 5.9 5127 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5128 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5129 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5130 ;; 5131 esac 4661 5132 ;; 4662 5133 esac … … 4668 5139 mvs*) 4669 5140 case $cc_basename in 4670 cxx )5141 cxx*) 4671 5142 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 4672 5143 ;; … … 4675 5146 esac 4676 5147 ;; 4677 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)5148 netbsd* | netbsdelf*-gnu) 4678 5149 ;; 4679 5150 osf3* | osf4* | osf5*) 4680 5151 case $cc_basename in 4681 KCC )5152 KCC*) 4682 5153 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 4683 5154 ;; 4684 RCC )5155 RCC*) 4685 5156 # Rational C++ 2.4.1 4686 5157 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4687 5158 ;; 4688 cxx )5159 cxx*) 4689 5160 # Digital/Compaq C++ 4690 5161 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' … … 4700 5171 psos*) 4701 5172 ;; 4702 sco*)4703 case $cc_basename in4704 CC)4705 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'4706 ;;4707 *)4708 ;;4709 esac4710 ;;4711 5173 solaris*) 4712 5174 case $cc_basename in 4713 CC )5175 CC*) 4714 5176 # Sun C++ 4.2, 5.x and Centerline C++ 4715 5177 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' … … 4717 5179 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4718 5180 ;; 4719 gcx )5181 gcx*) 4720 5182 # Green Hills C++ Compiler 4721 5183 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' … … 4727 5189 sunos4*) 4728 5190 case $cc_basename in 4729 CC )5191 CC*) 4730 5192 # Sun C++ 4.x 4731 5193 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4732 5194 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4733 5195 ;; 4734 lcc )5196 lcc*) 4735 5197 # Lucid 4736 5198 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' … … 4742 5204 tandem*) 4743 5205 case $cc_basename in 4744 NCC )5206 NCC*) 4745 5207 # NonStop-UX NCC 3.20 4746 5208 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' … … 4750 5212 esac 4751 5213 ;; 4752 unixware*) 5214 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 5215 case $cc_basename in 5216 CC*) 5217 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5218 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5219 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5220 ;; 5221 esac 4753 5222 ;; 4754 5223 vxworks*) … … 4781 5250 ;; 4782 5251 4783 beos* | cygwin* |irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)5252 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 4784 5253 # PIC is the default for these OSes. 4785 5254 ;; 4786 5255 4787 mingw* | pw32* | os2*)5256 mingw* | cygwin* | pw32* | os2*) 4788 5257 # This hack is so that the source file can tell whether it is being 4789 5258 # built for inclusion in a dll (and should export symbols for example). 5259 # Although the cygwin gcc ignores -fPIC, still need this for old-style 5260 # (--disable-auto-import) libraries 4790 5261 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 4791 5262 ;; … … 4795 5266 # Common symbols not allowed in MH_DYLIB files 4796 5267 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 5268 ;; 5269 5270 interix[[3-9]]*) 5271 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 5272 # Instead, we relocate shared libraries at runtime. 4797 5273 ;; 4798 5274 … … 4813 5289 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 4814 5290 # not for PA HP-UX. 4815 case "$host_cpu"in5291 case $host_cpu in 4816 5292 hppa*64*|ia64*) 4817 5293 # +Z the default … … 4839 5315 fi 4840 5316 ;; 4841 4842 mingw* | pw32* | os2*) 5317 darwin*) 5318 # PIC is the default on this platform 5319 # Common symbols not allowed in MH_DYLIB files 5320 case $cc_basename in 5321 xlc*) 5322 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' 5323 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5324 ;; 5325 esac 5326 ;; 5327 5328 mingw* | cygwin* | pw32* | os2*) 4843 5329 # This hack is so that the source file can tell whether it is being 4844 5330 # built for inclusion in a dll (and should export symbols for example). … … 4850 5336 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 4851 5337 # not for PA HP-UX. 4852 case "$host_cpu"in5338 case $host_cpu in 4853 5339 hppa*64*|ia64*) 4854 5340 # +Z the default … … 4873 5359 ;; 4874 5360 4875 linux* )4876 case $ CCin5361 linux* | k*bsd*-gnu) 5362 case $cc_basename in 4877 5363 icc* | ecc*) 4878 5364 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4879 5365 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4880 5366 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 5367 ;; 5368 pgcc* | pgf77* | pgf90* | pgf95*) 5369 # Portland Group compilers (*not* the Pentium gcc compiler, 5370 # which looks to be a dead project) 5371 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5372 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 5373 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4881 5374 ;; 4882 5375 ccc*) … … 4885 5378 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4886 5379 ;; 5380 *) 5381 case `$CC -V 2>&1 | sed 5q` in 5382 *Sun\ C*) 5383 # Sun C 5.9 5384 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5385 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5386 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5387 ;; 5388 *Sun\ F*) 5389 # Sun Fortran 8.3 passes all unrecognized flags to the linker 5390 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5391 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5392 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='' 5393 ;; 5394 esac 5395 ;; 4887 5396 esac 4888 5397 ;; … … 4894 5403 ;; 4895 5404 4896 sco3.2v5*) 4897 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic' 4898 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn' 5405 rdos*) 5406 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4899 5407 ;; 4900 5408 4901 5409 solaris*) 4902 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'4903 5410 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4904 5411 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5412 case $cc_basename in 5413 f77* | f90* | f95*) 5414 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 5415 *) 5416 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 5417 esac 4905 5418 ;; 4906 5419 … … 4911 5424 ;; 4912 5425 4913 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)5426 sysv4 | sysv4.2uw2* | sysv4.3*) 4914 5427 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4915 5428 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' … … 4922 5435 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4923 5436 fi 5437 ;; 5438 5439 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 5440 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5441 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5442 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5443 ;; 5444 5445 unicos*) 5446 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5447 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4924 5448 ;; 4925 5449 … … 4951 5475 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 4952 5476 fi 4953 case "$host_os"in5477 case $host_os in 4954 5478 # For platforms which do not support PIC, -DPIC is meaningless: 4955 5479 *djgpp*) … … 4960 5484 ;; 4961 5485 esac 5486 5487 # 5488 # Check to make sure the static flag actually works. 5489 # 5490 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" 5491 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 5492 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), 5493 $lt_tmp_static_flag, 5494 [], 5495 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) 4962 5496 ]) 4963 5497 … … 4967 5501 # See if the linker supports building shared libraries. 4968 5502 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], 4969 [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 5503 [AC_REQUIRE([LT_AC_PROG_SED])dnl 5504 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 4970 5505 ifelse([$1],[CXX],[ 4971 5506 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' … … 4984 5519 ;; 4985 5520 cygwin* | mingw*) 4986 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDG S]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.*//'\'' | sort | uniq > $export_symbols'4987 ;; 4988 linux* )5521 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' 5522 ;; 5523 linux* | k*bsd*-gnu) 4989 5524 _LT_AC_TAGVAR(link_all_deplibs, $1)=no 4990 5525 ;; … … 5030 5565 # preloaded symbol tables. 5031 5566 extract_expsyms_cmds= 5032 5567 # Just being paranoid about ensuring that cc_basename is set. 5568 _LT_CC_BASENAME([$compiler]) 5033 5569 case $host_os in 5034 5570 cygwin* | mingw* | pw32*) … … 5040 5576 fi 5041 5577 ;; 5578 interix*) 5579 # we just hope/assume this is gcc and not c89 (= MSVC++) 5580 with_gnu_ld=yes 5581 ;; 5042 5582 openbsd*) 5043 5583 with_gnu_ld=no … … 5049 5589 # If archive_cmds runs LD, not CC, wlarc should be empty 5050 5590 wlarc='${wl}' 5591 5592 # Set some defaults for GNU ld with shared library support. These 5593 # are reset later if shared libraries are not supported. Putting them 5594 # here allows them to be overridden if necessary. 5595 runpath_var=LD_RUN_PATH 5596 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 5597 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 5598 # ancient GNU ld didn't support --whole-archive et. al. 5599 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 5600 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 5601 else 5602 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 5603 fi 5604 supports_anon_versioning=no 5605 case `$LD -v 2>/dev/null` in 5606 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 5607 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 5608 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 5609 *\ 2.11.*) ;; # other 2.11 versions 5610 *) supports_anon_versioning=yes ;; 5611 esac 5051 5612 5052 5613 # See if GNU ld supports shared libraries. … … 5100 5661 _LT_AC_TAGVAR(always_export_symbols, $1)=no 5101 5662 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5102 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDG S]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.*//'\'' | sort | uniq > $export_symbols'5663 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' 5103 5664 5104 5665 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 5105 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}-- image-base=0x10000000 ${wl}--out-implib,$lib'5666 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 5106 5667 # If the export-symbols file already is a .def file (1st line 5107 5668 # is EXPORTS), use it as is; otherwise, prepend... … … 5112 5673 cat $export_symbols >> $output_objdir/$soname.def; 5113 5674 fi~ 5114 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}-- image-base=0x10000000 ${wl}--out-implib,$lib'5675 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 5115 5676 else 5116 ld_shlibs=no5677 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5117 5678 fi 5118 5679 ;; 5119 5680 5120 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 5681 interix[[3-9]]*) 5682 _LT_AC_TAGVAR(hardcode_direct, $1)=no 5683 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5684 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5685 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5686 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 5687 # Instead, shared libraries are loaded at an image base (0x10000000 by 5688 # default) and relocated if they conflict, which is a slow very memory 5689 # consuming and fragmenting process. To avoid this, we pick a random, 5690 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 5691 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 5692 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 5693 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 5694 ;; 5695 5696 gnu* | linux* | k*bsd*-gnu) 5697 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5698 tmp_addflag= 5699 case $cc_basename,$host_cpu in 5700 pgcc*) # Portland Group C compiler 5701 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 5702 tmp_addflag=' $pic_flag' 5703 ;; 5704 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 5705 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 5706 tmp_addflag=' $pic_flag -Mnomain' ;; 5707 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 5708 tmp_addflag=' -i_dynamic' ;; 5709 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 5710 tmp_addflag=' -i_dynamic -nofor_main' ;; 5711 ifc* | ifort*) # Intel Fortran compiler 5712 tmp_addflag=' -nofor_main' ;; 5713 esac 5714 case `$CC -V 2>&1 | sed 5q` in 5715 *Sun\ C*) # Sun C 5.9 5716 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 5717 tmp_sharedflag='-G' ;; 5718 *Sun\ F*) # Sun Fortran 8.3 5719 tmp_sharedflag='-G' ;; 5720 *) 5721 tmp_sharedflag='-shared' ;; 5722 esac 5723 _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5724 5725 if test $supports_anon_versioning = yes; then 5726 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ 5727 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 5728 $echo "local: *; };" >> $output_objdir/$libname.ver~ 5729 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 5730 fi 5731 _LT_AC_TAGVAR(link_all_deplibs, $1)=no 5732 else 5733 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5734 fi 5735 ;; 5736 5737 netbsd* | netbsdelf*-gnu) 5121 5738 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 5122 5739 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' … … 5128 5745 ;; 5129 5746 5130 solaris* | sysv5*)5747 solaris*) 5131 5748 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 5132 5749 _LT_AC_TAGVAR(ld_shlibs, $1)=no … … 5149 5766 ;; 5150 5767 5768 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 5769 case `$LD -v 2>&1` in 5770 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 5771 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5772 cat <<_LT_EOF 1>&2 5773 5774 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 5775 *** reliably create shared libraries on SCO systems. Therefore, libtool 5776 *** is disabling shared libraries support. We urge you to upgrade GNU 5777 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 5778 *** your PATH or compiler configuration so that the native linker is 5779 *** used, and then restart. 5780 5781 _LT_EOF 5782 ;; 5783 *) 5784 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5785 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 5786 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 5787 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 5788 else 5789 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5790 fi 5791 ;; 5792 esac 5793 ;; 5794 5151 5795 sunos4*) 5152 5796 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' … … 5155 5799 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5156 5800 ;; 5157 5158 linux*)5159 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then5160 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'5161 _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"5162 supports_anon_versioning=no5163 case `$LD -v 2>/dev/null` in5164 *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.115165 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...5166 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...5167 *\ 2.11.*) ;; # other 2.11 versions5168 *) supports_anon_versioning=yes ;;5169 esac5170 if test $supports_anon_versioning = yes; then5171 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~5172 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~5173 $echo "local: *; };" >> $output_objdir/$libname.ver~5174 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'5175 else5176 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"5177 fi5178 _LT_AC_TAGVAR(link_all_deplibs, $1)=no5179 else5180 _LT_AC_TAGVAR(ld_shlibs, $1)=no5181 fi5182 ;;5183 5801 5184 5802 *) … … 5192 5810 esac 5193 5811 5194 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then 5195 runpath_var=LD_RUN_PATH 5196 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 5197 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 5198 # ancient GNU ld didn't support --whole-archive et. al. 5199 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 5200 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 5201 else 5202 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 5203 fi 5812 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then 5813 runpath_var= 5814 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 5815 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 5816 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 5204 5817 fi 5205 5818 else … … 5213 5826 # are no directories specified by -L. 5214 5827 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5215 if test "$GCC" = yes && test -z "$l ink_static_flag"; then5828 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 5216 5829 # Neither direct hardcoding nor static linking is supported with a 5217 5830 # broken collect2. … … 5247 5860 fi 5248 5861 done 5862 ;; 5249 5863 esac 5250 5864 … … 5265 5879 5266 5880 if test "$GCC" = yes; then 5267 case $host_os in aix4.[ 012]|aix4.[012].*)5881 case $host_os in aix4.[[012]]|aix4.[[012]].*) 5268 5882 # We only want to do this on AIX 4.2 and lower, the check 5269 5883 # below for broken collect2 doesn't work under 4.3+ … … 5273 5887 then 5274 5888 # We have reworked collect2 5275 _LT_AC_TAGVAR(hardcode_direct, $1)=yes5889 : 5276 5890 else 5277 5891 # We have old collect2 … … 5284 5898 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 5285 5899 fi 5900 ;; 5286 5901 esac 5287 5902 shared_flag='-shared' 5903 if test "$aix_use_runtimelinking" = yes; then 5904 shared_flag="$shared_flag "'${wl}-G' 5905 fi 5288 5906 else 5289 5907 # not using gcc … … 5293 5911 shared_flag='-G' 5294 5912 else 5295 5913 if test "$aix_use_runtimelinking" = yes; then 5296 5914 shared_flag='${wl}-G' 5297 5915 else 5298 5916 shared_flag='${wl}-bM:SRE' 5299 5917 fi 5300 5918 fi 5301 5919 fi … … 5311 5929 _LT_AC_SYS_LIBPATH_AIX 5312 5930 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 5313 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag\${wl}$exp_sym_flag:\$export_symbols $shared_flag"5931 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 5314 5932 else 5315 5933 if test "$host_cpu" = ia64; then 5316 5934 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 5317 5935 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 5318 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag\${wl}$exp_sym_flag:\$export_symbols"5936 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 5319 5937 else 5320 5938 # Determine the default libpath from the value encoded in an empty executable. … … 5325 5943 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 5326 5944 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 5327 # -bexpall does not export symbols beginning with underscore (_)5328 _LT_AC_TAGVAR(always_export_symbols, $1)=yes5329 5945 # Exported symbols can be pulled into shared objects from archives 5330 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' 5946 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 5331 5947 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 5332 # This is similar to how AIX traditionally builds it 's shared libraries.5333 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $ compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'5948 # This is similar to how AIX traditionally builds its shared libraries. 5949 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 5334 5950 fi 5335 5951 fi … … 5344 5960 ;; 5345 5961 5346 bsdi 4*)5962 bsdi[[45]]*) 5347 5963 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 5348 5964 ;; … … 5364 5980 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' 5365 5981 # FIXME: Should let the user specify the lib program. 5366 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'5367 fix_srcfile_path='`cygpath -w "$srcfile"`'5982 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 5983 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' 5368 5984 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5369 5985 ;; 5370 5986 5371 5987 darwin* | rhapsody*) 5372 if test "$GXX" = yes ; then 5988 case $host_os in 5989 rhapsody* | darwin1.[[012]]) 5990 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' 5991 ;; 5992 *) # Darwin 1.3 on 5993 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 5994 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 5995 else 5996 case ${MACOSX_DEPLOYMENT_TARGET} in 5997 10.[[012]]) 5998 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 5999 ;; 6000 10.*) 6001 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' 6002 ;; 6003 esac 6004 fi 6005 ;; 6006 esac 5373 6007 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 5374 case "$host_os" in5375 rhapsody* | darwin1.[[012]])5376 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'5377 ;;5378 *) # Darwin 1.3 on5379 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then5380 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'5381 else5382 case ${MACOSX_DEPLOYMENT_TARGET} in5383 10.[[012]])5384 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'5385 ;;5386 10.*)5387 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'5388 ;;5389 esac5390 fi5391 ;;5392 esac5393 lt_int_apple_cc_single_mod=no5394 output_verbose_link_cmd='echo'5395 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then5396 lt_int_apple_cc_single_mod=yes5397 fi5398 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then5399 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'5400 else5401 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'5402 fi5403 _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'5404 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's5405 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then5406 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'5407 else5408 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'5409 fi5410 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'5411 6008 _LT_AC_TAGVAR(hardcode_direct, $1)=no 5412 6009 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 5413 6010 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 5414 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' -all_load $convenience'6011 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' 5415 6012 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 6013 if test "$GCC" = yes ; then 6014 output_verbose_link_cmd='echo' 6015 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 6016 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 6017 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 6018 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 6019 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 5416 6020 else 5417 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6021 case $cc_basename in 6022 xlc*) 6023 output_verbose_link_cmd='echo' 6024 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 6025 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 6026 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 6027 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 6028 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 6029 ;; 6030 *) 6031 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6032 ;; 6033 esac 5418 6034 fi 5419 6035 ;; … … 5449 6065 5450 6066 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 5451 freebsd* | kfreebsd*-gnu)6067 freebsd* | dragonfly*) 5452 6068 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 5453 6069 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' … … 5472 6088 ;; 5473 6089 5474 hpux10* | hpux11*)6090 hpux10*) 5475 6091 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 5476 case "$host_cpu" in 5477 hppa*64*|ia64*) 6092 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6093 else 6094 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 6095 fi 6096 if test "$with_gnu_ld" = no; then 6097 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6098 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6099 6100 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6101 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6102 6103 # hardcode_minus_L: Not really in the search PATH, 6104 # but as the default location of the library. 6105 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6106 fi 6107 ;; 6108 6109 hpux11*) 6110 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 6111 case $host_cpu in 6112 hppa*64*) 5478 6113 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6114 ;; 6115 ia64*) 6116 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 5479 6117 ;; 5480 6118 *) … … 5483 6121 esac 5484 6122 else 5485 case "$host_cpu" in 5486 hppa*64*|ia64*) 5487 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 6123 case $host_cpu in 6124 hppa*64*) 6125 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6126 ;; 6127 ia64*) 6128 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 5488 6129 ;; 5489 6130 *) 5490 _LT_AC_TAGVAR(archive_cmds, $1)='$ LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'6131 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 5491 6132 ;; 5492 6133 esac 5493 6134 fi 5494 6135 if test "$with_gnu_ld" = no; then 5495 case "$host_cpu" in 5496 hppa*64*) 5497 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6136 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6137 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6138 6139 case $host_cpu in 6140 hppa*64*|ia64*) 5498 6141 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 5499 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:5500 6142 _LT_AC_TAGVAR(hardcode_direct, $1)=no 5501 6143 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5502 6144 ;; 5503 ia64*)5504 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'5505 _LT_AC_TAGVAR(hardcode_direct, $1)=no5506 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no5507 5508 # hardcode_minus_L: Not really in the search PATH,5509 # but as the default location of the library.5510 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes5511 ;;5512 6145 *) 5513 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'5514 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:5515 6146 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5516 6147 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' … … 5536 6167 ;; 5537 6168 5538 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)6169 netbsd* | netbsdelf*-gnu) 5539 6170 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 5540 6171 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out … … 5556 6187 5557 6188 openbsd*) 5558 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5559 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5560 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5561 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5562 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5563 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6189 if test -f /usr/libexec/ld.so; then 6190 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6191 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6192 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6193 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6194 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 6195 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6196 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6197 else 6198 case $host_os in 6199 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 6200 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6201 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6202 ;; 6203 *) 6204 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6205 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6206 ;; 6207 esac 6208 fi 5564 6209 else 5565 case $host_os in 5566 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 5567 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5568 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5569 ;; 5570 *) 5571 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5572 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5573 ;; 5574 esac 6210 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5575 6211 fi 5576 6212 ;; … … 5605 6241 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 5606 6242 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 5607 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${o bjdir}/so_locations -o $lib~$rm $lib.exp'6243 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 5608 6244 5609 6245 # Both c and cxx compiler support -rpath directly … … 5613 6249 ;; 5614 6250 5615 sco3.2v5*)5616 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'5617 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no5618 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'5619 runpath_var=LD_RUN_PATH5620 hardcode_runpath_var=yes5621 ;;5622 5623 6251 solaris*) 5624 6252 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' 5625 6253 if test "$GCC" = yes; then 6254 wlarc='${wl}' 5626 6255 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5627 6256 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 5628 6257 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 5629 6258 else 6259 wlarc='' 5630 6260 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 5631 6261 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ … … 5636 6266 case $host_os in 5637 6267 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 5638 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 5639 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; 6268 *) 6269 # The compiler driver will combine and reorder linker options, 6270 # but understands `-z linker_flag'. GCC discards it without `$wl', 6271 # but is careful enough not to reorder. 6272 # Supported since Solaris 2.6 (maybe 2.5.1?) 6273 if test "$GCC" = yes; then 6274 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 6275 else 6276 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 6277 fi 6278 ;; 5640 6279 esac 5641 6280 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes … … 5694 6333 ;; 5695 6334 5696 sysv4.2uw2*) 5697 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 5698 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5699 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no 5700 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5701 hardcode_runpath_var=yes 5702 runpath_var=LD_RUN_PATH 5703 ;; 5704 5705 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) 5706 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text' 5707 if test "$GCC" = yes; then 5708 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5709 else 5710 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5711 fi 5712 runpath_var='LD_RUN_PATH' 5713 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5714 ;; 5715 5716 sysv5*) 5717 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' 5718 # $CC -shared without GNU ld will not create a library from C++ 5719 # object files and a static libstdc++, better avoid it by now 5720 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 5721 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 5722 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 5723 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 6335 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 6336 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 6337 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 5724 6338 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5725 6339 runpath_var='LD_RUN_PATH' 6340 6341 if test "$GCC" = yes; then 6342 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6343 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6344 else 6345 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6346 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6347 fi 6348 ;; 6349 6350 sysv5* | sco3.2v5* | sco5v6*) 6351 # Note: We can NOT use -z defs as we might desire, because we do not 6352 # link with -lc, and that would cause any symbols used from libc to 6353 # always be unresolved, which means just about no library would 6354 # ever link correctly. If we're not using GNU ld we use -z text 6355 # though, which does catch some bad symbols but isn't as heavy-handed 6356 # as -z defs. 6357 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 6358 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 6359 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 6360 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6361 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 6362 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 6363 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 6364 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 6365 runpath_var='LD_RUN_PATH' 6366 6367 if test "$GCC" = yes; then 6368 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 6369 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 6370 else 6371 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 6372 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 6373 fi 5726 6374 ;; 5727 6375 … … 5740 6388 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 5741 6389 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 5742 5743 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"5744 if test "$GCC" = yes; then5745 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"5746 fi5747 6390 5748 6391 # … … 5765 6408 AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 5766 6409 $rm conftest* 5767 printf"$lt_simple_compile_test_code" > conftest.$ac_ext6410 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 5768 6411 5769 6412 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then … … 5773 6416 deplibs= 5774 6417 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) 6418 pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) 5775 6419 compiler_flags=-v 5776 6420 linker_flags=-v … … 5867 6511 ]) 5868 6512 6513 6514 # Cheap backport of AS_EXECUTABLE_P and required macros 6515 # from Autoconf 2.59; we should not use $as_executable_p directly. 6516 6517 # _AS_TEST_PREPARE 6518 # ---------------- 6519 m4_ifndef([_AS_TEST_PREPARE], 6520 [m4_defun([_AS_TEST_PREPARE], 6521 [if test -x / >/dev/null 2>&1; then 6522 as_executable_p='test -x' 6523 else 6524 as_executable_p='test -f' 6525 fi 6526 ])])# _AS_TEST_PREPARE 6527 6528 # AS_EXECUTABLE_P 6529 # --------------- 6530 # Check whether a file is executable. 6531 m4_ifndef([AS_EXECUTABLE_P], 6532 [m4_defun([AS_EXECUTABLE_P], 6533 [AS_REQUIRE([_AS_TEST_PREPARE])dnl 6534 $as_executable_p $1[]dnl 6535 ])])# AS_EXECUTABLE_P 6536 5869 6537 # NOTE: This macro has been submitted for inclusion into # 5870 6538 # GNU Autoconf as AC_PROG_SED. When it is available in # … … 5887 6555 for lt_ac_prog in sed gsed; do 5888 6556 for ac_exec_ext in '' $ac_executable_extensions; do 5889 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then6557 if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then 5890 6558 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 5891 6559 fi … … 5893 6561 done 5894 6562 done 6563 IFS=$as_save_IFS 5895 6564 lt_ac_max=0 5896 6565 lt_ac_count=0 … … 5898 6567 # along with /bin/sed that truncates output. 5899 6568 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 5900 test ! -f $lt_ac_sed && break6569 test ! -f $lt_ac_sed && continue 5901 6570 cat /dev/null > conftest.in 5902 6571 lt_ac_count=0 … … 5923 6592 done 5924 6593 done 6594 ]) 5925 6595 SED=$lt_cv_path_SED 5926 ])6596 AC_SUBST([SED]) 5927 6597 AC_MSG_RESULT([$SED]) 5928 6598 ]) 5929 6599 5930 # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.6600 # Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. 5931 6601 # 5932 6602 # This file is free software; the Free Software Foundation … … 5938 6608 # Automake X.Y traces this macro to ensure aclocal.m4 has been 5939 6609 # generated from the m4 files accompanying Automake X.Y. 5940 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) 6610 # (This private macro should not be called outside this file.) 6611 AC_DEFUN([AM_AUTOMAKE_VERSION], 6612 [am__api_version='1.10' 6613 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 6614 dnl require some minimum version. Point them to the right macro. 6615 m4_if([$1], [1.10], [], 6616 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 6617 ]) 6618 6619 # _AM_AUTOCONF_VERSION(VERSION) 6620 # ----------------------------- 6621 # aclocal traces this macro to find the Autoconf version. 6622 # This is a private macro too. Using m4_define simplifies 6623 # the logic in aclocal, which can simply ignore this definition. 6624 m4_define([_AM_AUTOCONF_VERSION], []) 5941 6625 5942 6626 # AM_SET_CURRENT_AUTOMAKE_VERSION 5943 6627 # ------------------------------- 5944 # Call AM_AUTOMAKE_VERSION so itcan be traced.6628 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 5945 6629 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. 5946 6630 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 5947 [AM_AUTOMAKE_VERSION([1.9.5])]) 6631 [AM_AUTOMAKE_VERSION([1.10])dnl 6632 _AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)]) 5948 6633 5949 6634 # AM_AUX_DIR_EXPAND -*- Autoconf -*- … … 6002 6687 # AM_CONDITIONAL -*- Autoconf -*- 6003 6688 6004 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 6689 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 6005 6690 # Free Software Foundation, Inc. 6006 6691 # … … 6009 6694 # with or without modifications, as long as this notice is preserved. 6010 6695 6011 # serial 76696 # serial 8 6012 6697 6013 6698 # AM_CONDITIONAL(NAME, SHELL-CONDITION) … … 6018 6703 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 6019 6704 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 6020 AC_SUBST([$1_TRUE]) 6021 AC_SUBST([$1_FALSE]) 6705 AC_SUBST([$1_TRUE])dnl 6706 AC_SUBST([$1_FALSE])dnl 6707 _AM_SUBST_NOTMAKE([$1_TRUE])dnl 6708 _AM_SUBST_NOTMAKE([$1_FALSE])dnl 6022 6709 if $2; then 6023 6710 $1_TRUE= … … 6033 6720 fi])]) 6034 6721 6035 6036 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 6722 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 6037 6723 # Free Software Foundation, Inc. 6038 6724 # … … 6041 6727 # with or without modifications, as long as this notice is preserved. 6042 6728 6043 # serial 86729 # serial 9 6044 6730 6045 6731 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be … … 6069 6755 [$1], CXX, [depcc="$CXX" am_compiler_list=], 6070 6756 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 6757 [$1], UPC, [depcc="$UPC" am_compiler_list=], 6071 6758 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 6072 6759 [depcc="$$1" am_compiler_list=]) … … 6134 6821 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 6135 6822 >/dev/null 2>conftest.err && 6823 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6136 6824 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6137 6825 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && … … 6186 6874 fi 6187 6875 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 6188 AC_SUBST([AMDEPBACKSLASH]) 6876 AC_SUBST([AMDEPBACKSLASH])dnl 6877 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 6189 6878 ]) 6190 6879 … … 6211 6900 # Grep'ing the first line is not enough: some people post-process 6212 6901 # each Makefile.in and add a new line on top of each file to say so. 6213 # So let's grep whole file. 6214 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 6902 # Grep'ing the whole file is not good either: AIX grep has a line 6903 # limit of 2048, but all sed's we know have understand at least 4000. 6904 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 6215 6905 dirpart=`AS_DIRNAME("$mf")` 6216 6906 else … … 6271 6961 # Do all the work for Automake. -*- Autoconf -*- 6272 6962 6273 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 20056274 # Free Software Foundation, Inc.6963 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 6964 # 2005, 2006 Free Software Foundation, Inc. 6275 6965 # 6276 6966 # This file is free software; the Free Software Foundation … … 6295 6985 # release and drop the old call support. 6296 6986 AC_DEFUN([AM_INIT_AUTOMAKE], 6297 [AC_PREREQ([2. 58])dnl6987 [AC_PREREQ([2.60])dnl 6298 6988 dnl Autoconf wants to disallow AM_ names. We explicitly allow 6299 6989 dnl the ones we care about. … … 6301 6991 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 6302 6992 AC_REQUIRE([AC_PROG_INSTALL])dnl 6303 # test to see if srcdir already configured 6304 if test "`cd $srcdir && pwd`" != "`pwd`" && 6305 test -f $srcdir/config.status; then 6306 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 6993 if test "`cd $srcdir && pwd`" != "`pwd`"; then 6994 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 6995 # is not polluted with repeated "-I." 6996 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 6997 # test to see if srcdir already configured 6998 if test -f $srcdir/config.status; then 6999 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 7000 fi 6307 7001 fi 6308 7002 … … 6324 7018 AC_SUBST([VERSION], [$2])], 6325 7019 [_AM_SET_OPTIONS([$1])dnl 7020 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 7021 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 7022 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 6326 7023 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 6327 7024 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl … … 6359 7056 [define([AC_PROG_CXX], 6360 7057 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 7058 AC_PROVIDE_IFELSE([AC_PROG_OBJC], 7059 [_AM_DEPENDENCIES(OBJC)], 7060 [define([AC_PROG_OBJC], 7061 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 6361 7062 ]) 6362 7063 ]) … … 6394 7095 AC_DEFUN([AM_PROG_INSTALL_SH], 6395 7096 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 6396 install_sh=${install_sh-" $am_aux_dir/install-sh"}7097 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 6397 7098 AC_SUBST(install_sh)]) 6398 7099 … … 6501 7202 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 6502 7203 6503 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 200 57204 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 6504 7205 # Free Software Foundation, Inc. 6505 7206 # … … 6508 7209 # with or without modifications, as long as this notice is preserved. 6509 7210 6510 # serial 47211 # serial 5 6511 7212 6512 7213 # AM_MISSING_PROG(NAME, PROGRAM) … … 6524 7225 AC_DEFUN([AM_MISSING_HAS_RUN], 6525 7226 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 7227 AC_REQUIRE_AUX_FILE([missing])dnl 6526 7228 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 6527 7229 # Use eval to expand $SHELL … … 6534 7236 ]) 6535 7237 6536 # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.7238 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 6537 7239 # 6538 7240 # This file is free software; the Free Software Foundation … … 6542 7244 # AM_PROG_MKDIR_P 6543 7245 # --------------- 6544 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. 6545 # 6546 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories 6547 # created by `make install' are always world readable, even if the 6548 # installer happens to have an overly restrictive umask (e.g. 077). 6549 # This was a mistake. There are at least two reasons why we must not 6550 # use `-m 0755': 6551 # - it causes special bits like SGID to be ignored, 6552 # - it may be too restrictive (some setups expect 775 directories). 6553 # 6554 # Do not use -m 0755 and let people choose whatever they expect by 6555 # setting umask. 6556 # 6557 # We cannot accept any implementation of `mkdir' that recognizes `-p'. 6558 # Some implementations (such as Solaris 8's) are not thread-safe: if a 6559 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' 6560 # concurrently, both version can detect that a/ is missing, but only 6561 # one can create it and the other will error out. Consequently we 6562 # restrict ourselves to GNU make (using the --version option ensures 6563 # this.) 7246 # Check for `mkdir -p'. 6564 7247 AC_DEFUN([AM_PROG_MKDIR_P], 6565 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 6566 # We used to keeping the `.' as first argument, in order to 6567 # allow $(mkdir_p) to be used without argument. As in 6568 # $(mkdir_p) $(somedir) 6569 # where $(somedir) is conditionally defined. However this is wrong 6570 # for two reasons: 6571 # 1. if the package is installed by a user who cannot write `.' 6572 # make install will fail, 6573 # 2. the above comment should most certainly read 6574 # $(mkdir_p) $(DESTDIR)$(somedir) 6575 # so it does not work when $(somedir) is undefined and 6576 # $(DESTDIR) is not. 6577 # To support the latter case, we have to write 6578 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 6579 # so the `.' trick is pointless. 6580 mkdir_p='mkdir -p --' 6581 else 6582 # On NextStep and OpenStep, the `mkdir' command does not 6583 # recognize any option. It will interpret all options as 6584 # directories to create, and then abort because `.' already 6585 # exists. 6586 for d in ./-p ./--version; 6587 do 6588 test -d $d && rmdir $d 6589 done 6590 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 6591 if test -f "$ac_aux_dir/mkinstalldirs"; then 6592 mkdir_p='$(mkinstalldirs)' 6593 else 6594 mkdir_p='$(install_sh) -d' 6595 fi 6596 fi 6597 AC_SUBST([mkdir_p])]) 7248 [AC_PREREQ([2.60])dnl 7249 AC_REQUIRE([AC_PROG_MKDIR_P])dnl 7250 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, 7251 dnl while keeping a definition of mkdir_p for backward compatibility. 7252 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. 7253 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of 7254 dnl Makefile.ins that do not define MKDIR_P, so we do our own 7255 dnl adjustment using top_builddir (which is defined more often than 7256 dnl MKDIR_P). 7257 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl 7258 case $mkdir_p in 7259 [[\\/$]]* | ?:[[\\/]]*) ;; 7260 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 7261 esac 7262 ]) 6598 7263 6599 7264 # Helper functions for option handling. -*- Autoconf -*- … … 6707 7372 AC_CHECK_TOOL([STRIP], [strip], :) 6708 7373 fi 6709 INSTALL_STRIP_PROGRAM="\$ {SHELL} \$(install_sh) -c -s"7374 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 6710 7375 AC_SUBST([INSTALL_STRIP_PROGRAM])]) 7376 7377 # Copyright (C) 2006 Free Software Foundation, Inc. 7378 # 7379 # This file is free software; the Free Software Foundation 7380 # gives unlimited permission to copy and/or distribute it, 7381 # with or without modifications, as long as this notice is preserved. 7382 7383 # _AM_SUBST_NOTMAKE(VARIABLE) 7384 # --------------------------- 7385 # Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in. 7386 # This macro is traced by Automake. 7387 AC_DEFUN([_AM_SUBST_NOTMAKE]) 6711 7388 6712 7389 # Check how to create a tarball. -*- Autoconf -*- -
autogen.sh
-
Property
mode
changed from
100755
to100644
r3e94bd3 r70c2d86 1 1 #!/bin/sh 2 # autogen.sh - generates configure using the autotools 3 # $Id: autogen.sh,v 1.1 2004/03/04 08:12:13 firechipmunk Exp $ 4 libtoolize --force --copy 5 #libtoolize14 --force --copy 6 aclocal-1.9 -I m4 7 autoheader 8 automake-1.9 --add-missing --copy --foreign 9 autoconf 10 rm -rf autom4te.cache 2 3 if [ -z $ACLOCAL ]; then 4 ACLOCAL=aclocal 5 fi 6 if [ -z $AUTOCONF ]; then 7 AUTOCONF=autoconf 8 fi 9 if [ -z $AUTOHEADER ]; then 10 AUTOHEADER=autoheader 11 fi 12 if [ -z $AUTORECONF ]; then 13 AUTORECONF=autoreconf 14 fi 15 16 #rm -rf autom4te.cache 17 $AUTORECONF -f -i 18 #touch stamp-h.in 19 20 for x in providers/*; do 21 if [ -e $x/autogen.sh ]; then 22 echo Generating Config files in $x 23 (cd $x; ./autogen.sh $*) 24 fi 25 done -
Property
mode
changed from
-
config.in
r3e94bd3 r70c2d86 1 1 /* config.in. Generated from configure.ac by autoheader. */ 2 3 /* Define to 1 if you have the <dlfcn.h> header file. */ 4 #undef HAVE_DLFCN_H 5 6 /* Define to 1 if you have the <inttypes.h> header file. */ 7 #undef HAVE_INTTYPES_H 8 9 /* Define to 1 if you have the <memory.h> header file. */ 10 #undef HAVE_MEMORY_H 2 11 3 12 /* Define to 1 if mod_status.h and the mod_Status hook are available */ 4 13 #undef HAVE_MOD_STATUS_H 14 15 /* Define to 1 if you have the <stdint.h> header file. */ 16 #undef HAVE_STDINT_H 17 18 /* Define to 1 if you have the <stdlib.h> header file. */ 19 #undef HAVE_STDLIB_H 20 21 /* Define to 1 if you have the <strings.h> header file. */ 22 #undef HAVE_STRINGS_H 23 24 /* Define to 1 if you have the <string.h> header file. */ 25 #undef HAVE_STRING_H 26 27 /* Define to 1 if you have the <sys/stat.h> header file. */ 28 #undef HAVE_SYS_STAT_H 29 30 /* Define to 1 if you have the <sys/types.h> header file. */ 31 #undef HAVE_SYS_TYPES_H 32 33 /* Define to 1 if you have the <unistd.h> header file. */ 34 #undef HAVE_UNISTD_H 5 35 6 36 /* Name of package */ … … 22 52 #undef PACKAGE_VERSION 23 53 54 /* Define to 1 if you have the ANSI C header files. */ 55 #undef STDC_HEADERS 56 24 57 /* Version number of package */ 25 58 #undef VERSION -
config/compile
r3e94bd3 r70c2d86 2 2 # Wrapper for compilers which do not understand `-c -o'. 3 3 4 scriptversion=2005-0 2-03.084 scriptversion=2005-05-14.22 5 5 6 6 # Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. … … 19 19 # You should have received a copy of the GNU General Public License 20 20 # along with this program; if not, write to the Free Software 21 # Foundation, Inc., 5 9 Temple Place - Suite 330, Boston, MA 02111-1307, USA.21 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 22 23 23 # As a special exception to the GNU General Public License, if you -
config/config.guess
r3e94bd3 r70c2d86 2 2 # Attempt to guess a canonical system name. 3 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4 # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 5 6 timestamp='2005-03-24' 4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, 5 # Inc. 6 7 timestamp='2007-03-06' 7 8 8 9 # This file is free software; you can redistribute it and/or modify it … … 18 19 # You should have received a copy of the GNU General Public License 19 20 # along with this program; if not, write to the Free Software 20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 21 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 22 # 02110-1301, USA. 21 23 # 22 24 # As a special exception to the GNU General Public License, if you … … 24 26 # configuration script generated by Autoconf, you may include it under 25 27 # the same distribution terms that you use for the rest of that program. 28 26 29 27 30 # Originally written by Per Bothner <per@bothner.com>. … … 67 70 case $1 in 68 71 --time-stamp | --time* | -t ) 69 echo "$timestamp" ; exit 0;;72 echo "$timestamp" ; exit ;; 70 73 --version | -v ) 71 echo "$version" ; exit 0;;74 echo "$version" ; exit ;; 72 75 --help | --h* | -h ) 73 echo "$usage"; exit 0;;76 echo "$usage"; exit ;; 74 77 -- ) # Stop option processing 75 78 shift; break ;; … … 105 108 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 106 109 : ${TMPDIR=/tmp} ; 107 { tmp=`(umask 077 && mktemp -d -q"$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||110 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 108 111 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 109 112 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || … … 124 127 ,,*) CC_FOR_BUILD=$CC ;; 125 128 ,*,*) CC_FOR_BUILD=$HOST_CC ;; 126 esac ; '129 esac ; set_cc_for_build= ;' 127 130 128 131 # This is needed to find uname on a Pyramid OSx when run in the BSD universe. … … 159 162 sh3el) machine=shl-unknown ;; 160 163 sh3eb) machine=sh-unknown ;; 164 sh5el) machine=sh5le-unknown ;; 161 165 *) machine=${UNAME_MACHINE_ARCH}-unknown ;; 162 166 esac … … 197 201 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 198 202 echo "${machine}-${os}${release}" 199 exit 0 ;; 200 amd64:OpenBSD:*:*) 201 echo x86_64-unknown-openbsd${UNAME_RELEASE} 202 exit 0 ;; 203 amiga:OpenBSD:*:*) 204 echo m68k-unknown-openbsd${UNAME_RELEASE} 205 exit 0 ;; 206 cats:OpenBSD:*:*) 207 echo arm-unknown-openbsd${UNAME_RELEASE} 208 exit 0 ;; 209 hp300:OpenBSD:*:*) 210 echo m68k-unknown-openbsd${UNAME_RELEASE} 211 exit 0 ;; 212 luna88k:OpenBSD:*:*) 213 echo m88k-unknown-openbsd${UNAME_RELEASE} 214 exit 0 ;; 215 mac68k:OpenBSD:*:*) 216 echo m68k-unknown-openbsd${UNAME_RELEASE} 217 exit 0 ;; 218 macppc:OpenBSD:*:*) 219 echo powerpc-unknown-openbsd${UNAME_RELEASE} 220 exit 0 ;; 221 mvme68k:OpenBSD:*:*) 222 echo m68k-unknown-openbsd${UNAME_RELEASE} 223 exit 0 ;; 224 mvme88k:OpenBSD:*:*) 225 echo m88k-unknown-openbsd${UNAME_RELEASE} 226 exit 0 ;; 227 mvmeppc:OpenBSD:*:*) 228 echo powerpc-unknown-openbsd${UNAME_RELEASE} 229 exit 0 ;; 230 sgi:OpenBSD:*:*) 231 echo mips64-unknown-openbsd${UNAME_RELEASE} 232 exit 0 ;; 233 sun3:OpenBSD:*:*) 234 echo m68k-unknown-openbsd${UNAME_RELEASE} 235 exit 0 ;; 203 exit ;; 236 204 *:OpenBSD:*:*) 237 echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} 238 exit 0 ;; 205 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` 206 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} 207 exit ;; 239 208 *:ekkoBSD:*:*) 240 209 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 241 exit 0 ;; 210 exit ;; 211 *:SolidBSD:*:*) 212 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} 213 exit ;; 242 214 macppc:MirBSD:*:*) 243 echo powerp pc-unknown-mirbsd${UNAME_RELEASE}244 exit 0;;215 echo powerpc-unknown-mirbsd${UNAME_RELEASE} 216 exit ;; 245 217 *:MirBSD:*:*) 246 218 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 247 exit 0;;219 exit ;; 248 220 alpha:OSF1:*:*) 249 221 case $UNAME_RELEASE in … … 298 270 # 1.2 uses "1.2" for uname -r. 299 271 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 300 exit 0;;272 exit ;; 301 273 Alpha\ *:Windows_NT*:*) 302 274 # How do we know it's Interix rather than the generic POSIX subsystem? … … 304 276 # of the specific Alpha model? 305 277 echo alpha-pc-interix 306 exit 0;;278 exit ;; 307 279 21064:Windows_NT:50:3) 308 280 echo alpha-dec-winnt3.5 309 exit 0;;281 exit ;; 310 282 Amiga*:UNIX_System_V:4.0:*) 311 283 echo m68k-unknown-sysv4 312 exit 0;;284 exit ;; 313 285 *:[Aa]miga[Oo][Ss]:*:*) 314 286 echo ${UNAME_MACHINE}-unknown-amigaos 315 exit 0;;287 exit ;; 316 288 *:[Mm]orph[Oo][Ss]:*:*) 317 289 echo ${UNAME_MACHINE}-unknown-morphos 318 exit 0;;290 exit ;; 319 291 *:OS/390:*:*) 320 292 echo i370-ibm-openedition 321 exit 0;;293 exit ;; 322 294 *:z/VM:*:*) 323 295 echo s390-ibm-zvmoe 324 exit 0;;296 exit ;; 325 297 *:OS400:*:*) 326 298 echo powerpc-ibm-os400 327 exit 0;;299 exit ;; 328 300 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 329 301 echo arm-acorn-riscix${UNAME_RELEASE} 330 exit 0;; 302 exit ;; 303 arm:riscos:*:*|arm:RISCOS:*:*) 304 echo arm-unknown-riscos 305 exit ;; 331 306 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 332 307 echo hppa1.1-hitachi-hiuxmpp 333 exit 0;;308 exit ;; 334 309 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 335 310 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. … … 339 314 echo pyramid-pyramid-bsd 340 315 fi 341 exit 0;;316 exit ;; 342 317 NILE*:*:*:dcosx) 343 318 echo pyramid-pyramid-svr4 344 exit 0;;319 exit ;; 345 320 DRS?6000:unix:4.0:6*) 346 321 echo sparc-icl-nx6 347 exit 0;;322 exit ;; 348 323 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 349 324 case `/usr/bin/uname -p` in 350 sparc) echo sparc-icl-nx7 && exit 0;;325 sparc) echo sparc-icl-nx7; exit ;; 351 326 esac ;; 352 327 sun4H:SunOS:5.*:*) 353 328 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 354 exit 0;;329 exit ;; 355 330 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 356 331 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 357 exit 0;;332 exit ;; 358 333 i86pc:SunOS:5.*:*) 359 334 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 360 exit 0;;335 exit ;; 361 336 sun4*:SunOS:6*:*) 362 337 # According to config.sub, this is the proper way to canonicalize … … 364 339 # it's likely to be more like Solaris than SunOS4. 365 340 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 366 exit 0;;341 exit ;; 367 342 sun4*:SunOS:*:*) 368 343 case "`/usr/bin/arch -k`" in … … 373 348 # Japanese Language versions have a version number like `4.1.3-JL'. 374 349 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 375 exit 0;;350 exit ;; 376 351 sun3*:SunOS:*:*) 377 352 echo m68k-sun-sunos${UNAME_RELEASE} 378 exit 0;;353 exit ;; 379 354 sun*:*:4.2BSD:*) 380 355 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` … … 388 363 ;; 389 364 esac 390 exit 0;;365 exit ;; 391 366 aushp:SunOS:*:*) 392 367 echo sparc-auspex-sunos${UNAME_RELEASE} 393 exit 0;;368 exit ;; 394 369 # The situation for MiNT is a little confusing. The machine name 395 370 # can be virtually everything (everything which is not … … 402 377 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 403 378 echo m68k-atari-mint${UNAME_RELEASE} 404 exit 0;;379 exit ;; 405 380 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 406 381 echo m68k-atari-mint${UNAME_RELEASE} 407 exit 0;;382 exit ;; 408 383 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 409 384 echo m68k-atari-mint${UNAME_RELEASE} 410 exit 0;;385 exit ;; 411 386 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 412 387 echo m68k-milan-mint${UNAME_RELEASE} 413 exit 0;;388 exit ;; 414 389 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 415 390 echo m68k-hades-mint${UNAME_RELEASE} 416 exit 0;;391 exit ;; 417 392 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 418 393 echo m68k-unknown-mint${UNAME_RELEASE} 419 exit 0;;394 exit ;; 420 395 m68k:machten:*:*) 421 396 echo m68k-apple-machten${UNAME_RELEASE} 422 exit 0;;397 exit ;; 423 398 powerpc:machten:*:*) 424 399 echo powerpc-apple-machten${UNAME_RELEASE} 425 exit 0;;400 exit ;; 426 401 RISC*:Mach:*:*) 427 402 echo mips-dec-mach_bsd4.3 428 exit 0;;403 exit ;; 429 404 RISC*:ULTRIX:*:*) 430 405 echo mips-dec-ultrix${UNAME_RELEASE} 431 exit 0;;406 exit ;; 432 407 VAX*:ULTRIX*:*:*) 433 408 echo vax-dec-ultrix${UNAME_RELEASE} 434 exit 0;;409 exit ;; 435 410 2020:CLIX:*:* | 2430:CLIX:*:*) 436 411 echo clipper-intergraph-clix${UNAME_RELEASE} 437 exit 0;;412 exit ;; 438 413 mips:*:*:UMIPS | mips:*:*:RISCos) 439 414 eval $set_cc_for_build … … 459 434 } 460 435 EOF 461 $CC_FOR_BUILD -o $dummy $dummy.c \ 462 && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 463 && exit 0 436 $CC_FOR_BUILD -o $dummy $dummy.c && 437 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && 438 SYSTEM_NAME=`$dummy $dummyarg` && 439 { echo "$SYSTEM_NAME"; exit; } 464 440 echo mips-mips-riscos${UNAME_RELEASE} 465 exit 0;;441 exit ;; 466 442 Motorola:PowerMAX_OS:*:*) 467 443 echo powerpc-motorola-powermax 468 exit 0;;444 exit ;; 469 445 Motorola:*:4.3:PL8-*) 470 446 echo powerpc-harris-powermax 471 exit 0;;447 exit ;; 472 448 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 473 449 echo powerpc-harris-powermax 474 exit 0;;450 exit ;; 475 451 Night_Hawk:Power_UNIX:*:*) 476 452 echo powerpc-harris-powerunix 477 exit 0;;453 exit ;; 478 454 m88k:CX/UX:7*:*) 479 455 echo m88k-harris-cxux7 480 exit 0;;456 exit ;; 481 457 m88k:*:4*:R4*) 482 458 echo m88k-motorola-sysv4 483 exit 0;;459 exit ;; 484 460 m88k:*:3*:R3*) 485 461 echo m88k-motorola-sysv3 486 exit 0;;462 exit ;; 487 463 AViiON:dgux:*:*) 488 464 # DG/UX returns AViiON for all architectures … … 500 476 echo i586-dg-dgux${UNAME_RELEASE} 501 477 fi 502 exit 0;;478 exit ;; 503 479 M88*:DolphinOS:*:*) # DolphinOS (SVR3) 504 480 echo m88k-dolphin-sysv3 505 exit 0;;481 exit ;; 506 482 M88*:*:R3*:*) 507 483 # Delta 88k system running SVR3 508 484 echo m88k-motorola-sysv3 509 exit 0;;485 exit ;; 510 486 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 511 487 echo m88k-tektronix-sysv3 512 exit 0;;488 exit ;; 513 489 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 514 490 echo m68k-tektronix-bsd 515 exit 0;;491 exit ;; 516 492 *:IRIX*:*:*) 517 493 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` 518 exit 0;;494 exit ;; 519 495 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. 520 echo romp-ibm-aix 521 exit 0 ;;# Note that: echo "'`uname -s`'" gives 'AIX '496 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id 497 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' 522 498 i*86:AIX:*:*) 523 499 echo i386-ibm-aix 524 exit 0;;500 exit ;; 525 501 ia64:AIX:*:*) 526 502 if [ -x /usr/bin/oslevel ] ; then … … 530 506 fi 531 507 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} 532 exit 0;;508 exit ;; 533 509 *:AIX:2:3) 534 510 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then … … 545 521 } 546 522 EOF 547 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 548 echo rs6000-ibm-aix3.2.5 523 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` 524 then 525 echo "$SYSTEM_NAME" 526 else 527 echo rs6000-ibm-aix3.2.5 528 fi 549 529 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 550 530 echo rs6000-ibm-aix3.2.4 … … 552 532 echo rs6000-ibm-aix3.2 553 533 fi 554 exit 0;;534 exit ;; 555 535 *:AIX:*:[45]) 556 536 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` … … 566 546 fi 567 547 echo ${IBM_ARCH}-ibm-aix${IBM_REV} 568 exit 0;;548 exit ;; 569 549 *:AIX:*:*) 570 550 echo rs6000-ibm-aix 571 exit 0;;551 exit ;; 572 552 ibmrt:4.4BSD:*|romp-ibm:BSD:*) 573 553 echo romp-ibm-bsd4.4 574 exit 0;;554 exit ;; 575 555 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 576 556 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to 577 exit 0 ;;# report: romp-ibm BSD 4.3557 exit ;; # report: romp-ibm BSD 4.3 578 558 *:BOSX:*:*) 579 559 echo rs6000-bull-bosx 580 exit 0;;560 exit ;; 581 561 DPX/2?00:B.O.S.:*:*) 582 562 echo m68k-bull-sysv3 583 exit 0;;563 exit ;; 584 564 9000/[34]??:4.3bsd:1.*:*) 585 565 echo m68k-hp-bsd 586 exit 0;;566 exit ;; 587 567 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 588 568 echo m68k-hp-bsd4.4 589 exit 0;;569 exit ;; 590 570 9000/[34678]??:HP-UX:*:*) 591 571 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` … … 649 629 if [ ${HP_ARCH} = "hppa2.0w" ] 650 630 then 651 # avoid double evaluation of $set_cc_for_build 652 test -n "$CC_FOR_BUILD" || eval $set_cc_for_build 653 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null 631 eval $set_cc_for_build 632 633 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating 634 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler 635 # generating 64-bit code. GNU and HP use different nomenclature: 636 # 637 # $ CC_FOR_BUILD=cc ./config.guess 638 # => hppa2.0w-hp-hpux11.23 639 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess 640 # => hppa64-hp-hpux11.23 641 642 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | 643 grep __LP64__ >/dev/null 654 644 then 655 645 HP_ARCH="hppa2.0w" … … 659 649 fi 660 650 echo ${HP_ARCH}-hp-hpux${HPUX_REV} 661 exit 0;;651 exit ;; 662 652 ia64:HP-UX:*:*) 663 653 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 664 654 echo ia64-hp-hpux${HPUX_REV} 665 exit 0;;655 exit ;; 666 656 3050*:HI-UX:*:*) 667 657 eval $set_cc_for_build … … 691 681 } 692 682 EOF 693 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 683 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && 684 { echo "$SYSTEM_NAME"; exit; } 694 685 echo unknown-hitachi-hiuxwe2 695 exit 0;;686 exit ;; 696 687 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 697 688 echo hppa1.1-hp-bsd 698 exit 0;;689 exit ;; 699 690 9000/8??:4.3bsd:*:*) 700 691 echo hppa1.0-hp-bsd 701 exit 0;;692 exit ;; 702 693 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 703 694 echo hppa1.0-hp-mpeix 704 exit 0;;695 exit ;; 705 696 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 706 697 echo hppa1.1-hp-osf 707 exit 0;;698 exit ;; 708 699 hp8??:OSF1:*:*) 709 700 echo hppa1.0-hp-osf 710 exit 0;;701 exit ;; 711 702 i*86:OSF1:*:*) 712 703 if [ -x /usr/sbin/sysversion ] ; then … … 715 706 echo ${UNAME_MACHINE}-unknown-osf1 716 707 fi 717 exit 0;;708 exit ;; 718 709 parisc*:Lites*:*:*) 719 710 echo hppa1.1-hp-lites 720 exit 0;;711 exit ;; 721 712 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 722 713 echo c1-convex-bsd 723 exit 0;;714 exit ;; 724 715 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 725 716 if getsysinfo -f scalar_acc … … 727 718 else echo c2-convex-bsd 728 719 fi 729 exit 0;;720 exit ;; 730 721 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 731 722 echo c34-convex-bsd 732 exit 0;;723 exit ;; 733 724 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 734 725 echo c38-convex-bsd 735 exit 0;;726 exit ;; 736 727 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 737 728 echo c4-convex-bsd 738 exit 0;;729 exit ;; 739 730 CRAY*Y-MP:*:*:*) 740 731 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 741 exit 0;;732 exit ;; 742 733 CRAY*[A-Z]90:*:*:*) 743 734 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ … … 745 736 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 746 737 -e 's/\.[^.]*$/.X/' 747 exit 0;;738 exit ;; 748 739 CRAY*TS:*:*:*) 749 740 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 750 exit 0;;741 exit ;; 751 742 CRAY*T3E:*:*:*) 752 743 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 753 exit 0;;744 exit ;; 754 745 CRAY*SV1:*:*:*) 755 746 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 756 exit 0;;747 exit ;; 757 748 *:UNICOS/mp:*:*) 758 749 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 759 exit 0;;750 exit ;; 760 751 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 761 752 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` … … 763 754 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 764 755 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 765 exit 0;;756 exit ;; 766 757 5000:UNIX_System_V:4.*:*) 767 758 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 768 759 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 769 760 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 770 exit 0;;761 exit ;; 771 762 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 772 763 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 773 exit 0;;764 exit ;; 774 765 sparc*:BSD/OS:*:*) 775 766 echo sparc-unknown-bsdi${UNAME_RELEASE} 776 exit 0;;767 exit ;; 777 768 *:BSD/OS:*:*) 778 769 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 779 exit 0;;770 exit ;; 780 771 *:FreeBSD:*:*) 781 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 782 exit 0 ;; 772 case ${UNAME_MACHINE} in 773 pc98) 774 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 775 amd64) 776 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 777 *) 778 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 779 esac 780 exit ;; 783 781 i*:CYGWIN*:*) 784 782 echo ${UNAME_MACHINE}-pc-cygwin 785 exit 0;;786 i*:MINGW*:*)783 exit ;; 784 *:MINGW*:*) 787 785 echo ${UNAME_MACHINE}-pc-mingw32 788 exit 0 ;; 786 exit ;; 787 i*:windows32*:*) 788 # uname -m includes "-pc" on this system. 789 echo ${UNAME_MACHINE}-mingw32 790 exit ;; 789 791 i*:PW*:*) 790 792 echo ${UNAME_MACHINE}-pc-pw32 791 exit 0 ;; 792 x86:Interix*:[34]*) 793 echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' 794 exit 0 ;; 793 exit ;; 794 *:Interix*:[3456]*) 795 case ${UNAME_MACHINE} in 796 x86) 797 echo i586-pc-interix${UNAME_RELEASE} 798 exit ;; 799 EM64T | authenticamd) 800 echo x86_64-unknown-interix${UNAME_RELEASE} 801 exit ;; 802 esac ;; 795 803 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 796 804 echo i${UNAME_MACHINE}-pc-mks 797 exit 0;;805 exit ;; 798 806 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 799 807 # How do we know it's Interix rather than the generic POSIX subsystem? … … 801 809 # UNAME_MACHINE based on the output of uname instead of i386? 802 810 echo i586-pc-interix 803 exit 0;;811 exit ;; 804 812 i*:UWIN*:*) 805 813 echo ${UNAME_MACHINE}-pc-uwin 806 exit 0;;807 amd64:CYGWIN*:*:* )814 exit ;; 815 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 808 816 echo x86_64-unknown-cygwin 809 exit 0;;817 exit ;; 810 818 p*:CYGWIN*:*) 811 819 echo powerpcle-unknown-cygwin 812 exit 0;;820 exit ;; 813 821 prep*:SunOS:5.*:*) 814 822 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 815 exit 0;;823 exit ;; 816 824 *:GNU:*:*) 817 825 # the GNU system 818 826 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 819 exit 0;;827 exit ;; 820 828 *:GNU/*:*:*) 821 829 # other systems with GNU libc and userland 822 830 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu 823 exit 0;;831 exit ;; 824 832 i*86:Minix:*:*) 825 833 echo ${UNAME_MACHINE}-pc-minix 826 exit 0;;834 exit ;; 827 835 arm*:Linux:*:*) 828 836 echo ${UNAME_MACHINE}-unknown-linux-gnu 829 exit 0 ;; 837 exit ;; 838 avr32*:Linux:*:*) 839 echo ${UNAME_MACHINE}-unknown-linux-gnu 840 exit ;; 830 841 cris:Linux:*:*) 831 842 echo cris-axis-linux-gnu 832 exit 0;;843 exit ;; 833 844 crisv32:Linux:*:*) 834 845 echo crisv32-axis-linux-gnu 835 exit 0;;846 exit ;; 836 847 frv:Linux:*:*) 837 848 echo frv-unknown-linux-gnu 838 exit 0;;849 exit ;; 839 850 ia64:Linux:*:*) 840 851 echo ${UNAME_MACHINE}-unknown-linux-gnu 841 exit 0;;852 exit ;; 842 853 m32r*:Linux:*:*) 843 854 echo ${UNAME_MACHINE}-unknown-linux-gnu 844 exit 0;;855 exit ;; 845 856 m68*:Linux:*:*) 846 857 echo ${UNAME_MACHINE}-unknown-linux-gnu 847 exit 0;;858 exit ;; 848 859 mips:Linux:*:*) 849 860 eval $set_cc_for_build … … 862 873 #endif 863 874 EOF 864 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 865 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 875 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 876 /^CPU/{ 877 s: ::g 878 p 879 }'`" 880 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 866 881 ;; 867 882 mips64:Linux:*:*) … … 881 896 #endif 882 897 EOF 883 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 884 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 898 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 899 /^CPU/{ 900 s: ::g 901 p 902 }'`" 903 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 885 904 ;; 905 or32:Linux:*:*) 906 echo or32-unknown-linux-gnu 907 exit ;; 886 908 ppc:Linux:*:*) 887 909 echo powerpc-unknown-linux-gnu 888 exit 0;;910 exit ;; 889 911 ppc64:Linux:*:*) 890 912 echo powerpc64-unknown-linux-gnu 891 exit 0;;913 exit ;; 892 914 alpha:Linux:*:*) 893 915 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in … … 903 925 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 904 926 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 905 exit 0;;927 exit ;; 906 928 parisc:Linux:*:* | hppa:Linux:*:*) 907 929 # Look for CPU level … … 911 933 *) echo hppa-unknown-linux-gnu ;; 912 934 esac 913 exit 0;;935 exit ;; 914 936 parisc64:Linux:*:* | hppa64:Linux:*:*) 915 937 echo hppa64-unknown-linux-gnu 916 exit 0;;938 exit ;; 917 939 s390:Linux:*:* | s390x:Linux:*:*) 918 940 echo ${UNAME_MACHINE}-ibm-linux 919 exit 0;;941 exit ;; 920 942 sh64*:Linux:*:*) 921 943 echo ${UNAME_MACHINE}-unknown-linux-gnu 922 exit 0;;944 exit ;; 923 945 sh*:Linux:*:*) 924 946 echo ${UNAME_MACHINE}-unknown-linux-gnu 925 exit 0;;947 exit ;; 926 948 sparc:Linux:*:* | sparc64:Linux:*:*) 927 949 echo ${UNAME_MACHINE}-unknown-linux-gnu 928 exit 0 ;; 950 exit ;; 951 vax:Linux:*:*) 952 echo ${UNAME_MACHINE}-dec-linux-gnu 953 exit ;; 929 954 x86_64:Linux:*:*) 930 955 echo x86_64-unknown-linux-gnu 931 exit 0 ;; 956 exit ;; 957 xtensa:Linux:*:*) 958 echo xtensa-unknown-linux-gnu 959 exit ;; 932 960 i*86:Linux:*:*) 933 961 # The BFD linker knows what the default object file format is, so … … 947 975 a.out-i386-linux) 948 976 echo "${UNAME_MACHINE}-pc-linux-gnuaout" 949 exit 0;;977 exit ;; 950 978 coff-i386) 951 979 echo "${UNAME_MACHINE}-pc-linux-gnucoff" 952 exit 0;;980 exit ;; 953 981 "") 954 982 # Either a pre-BFD a.out linker (linux-gnuoldld) or 955 983 # one that does not give us useful --help. 956 984 echo "${UNAME_MACHINE}-pc-linux-gnuoldld" 957 exit 0;;985 exit ;; 958 986 esac 959 987 # Determine whether the default compiler is a.out or elf … … 972 1000 # endif 973 1001 #else 974 #if def __INTEL_COMPILER1002 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) 975 1003 LIBC=gnu 976 1004 #else … … 982 1010 #endif 983 1011 EOF 984 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 985 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 986 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 1012 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 1013 /^LIBC/{ 1014 s: ::g 1015 p 1016 }'`" 1017 test x"${LIBC}" != x && { 1018 echo "${UNAME_MACHINE}-pc-linux-${LIBC}" 1019 exit 1020 }