Changeset 2138
- Timestamp:
- Oct 14, 2004, 1:52:09 PM (22 years ago)
- Location:
- trunk/psModules
- Files:
-
- 10 edited
-
Makefile.in (modified) (19 diffs)
-
aclocal.m4 (modified) (46 diffs)
-
configure (modified) (216 diffs)
-
src/Makefile.in (modified) (22 diffs)
-
src/pmFlatField.c (modified) (2 diffs)
-
src/pmMaskBadPixels.c (modified) (2 diffs)
-
test/Makefile.in (modified) (19 diffs)
-
test/tst_pmMaskBadPixels.c (modified) (12 diffs)
-
test/tst_pmNonLinear.c (modified) (5 diffs)
-
test/tst_pmSubtractBias.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/Makefile.in
r2132 r2138 1 # Makefile.in generated by automake 1. 6.3 from Makefile.am.1 # Makefile.in generated by automake 1.8.3 from Makefile.am. 2 2 # @configure_input@ 3 3 4 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 20025 # Free Software Foundation, Inc.4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 5 # 2003, 2004 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 SHELL = @SHELL@17 18 16 srcdir = @srcdir@ 19 17 top_srcdir = @top_srcdir@ 20 18 VPATH = @srcdir@ 21 prefix = @prefix@22 exec_prefix = @exec_prefix@23 24 bindir = @bindir@25 sbindir = @sbindir@26 libexecdir = @libexecdir@27 datadir = @datadir@28 sysconfdir = @sysconfdir@29 sharedstatedir = @sharedstatedir@30 localstatedir = @localstatedir@31 libdir = @libdir@32 infodir = @infodir@33 mandir = @mandir@34 includedir = @includedir@35 oldincludedir = /usr/include36 19 pkgdatadir = $(datadir)/@PACKAGE@ 37 20 pkglibdir = $(libdir)/@PACKAGE@ 38 21 pkgincludedir = $(includedir)/@PACKAGE@ 39 22 top_builddir = . 40 41 ACLOCAL = @ACLOCAL@42 AUTOCONF = @AUTOCONF@43 AUTOMAKE = @AUTOMAKE@44 AUTOHEADER = @AUTOHEADER@45 46 23 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 47 24 INSTALL = @INSTALL@ 48 INSTALL_PROGRAM = @INSTALL_PROGRAM@49 INSTALL_DATA = @INSTALL_DATA@50 25 install_sh_DATA = $(install_sh) -c -m 644 51 26 install_sh_PROGRAM = $(install_sh) -c 52 27 install_sh_SCRIPT = $(install_sh) -c 53 INSTALL_SCRIPT = @INSTALL_SCRIPT@54 28 INSTALL_HEADER = $(INSTALL_DATA) 55 transform = @program_transform_name@29 transform = $(program_transform_name) 56 30 NORMAL_INSTALL = : 57 31 PRE_INSTALL = : … … 60 34 PRE_UNINSTALL = : 61 35 POST_UNINSTALL = : 62 host_alias = @host_alias@63 36 host_triplet = @host@ 64 65 EXEEXT = @EXEEXT@ 66 OBJEXT = @OBJEXT@ 67 PATH_SEPARATOR = @PATH_SEPARATOR@ 68 AMTAR = @AMTAR@ 69 AS = @AS@ 70 AWK = @AWK@ 71 CC = @CC@ 72 CFLAGS = @CFLAGS@ 73 DEPDIR = @DEPDIR@ 74 DLLTOOL = @DLLTOOL@ 75 ECHO = @ECHO@ 76 GSL_CONFIG = @GSL_CONFIG@ 77 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 78 LIBTOOL = @LIBTOOL@ 79 LN_S = @LN_S@ 80 OBJDUMP = @OBJDUMP@ 81 PACKAGE = @PACKAGE@ 82 RANLIB = @RANLIB@ 83 STRIP = @STRIP@ 84 VERSION = @VERSION@ 85 am__include = @am__include@ 86 am__quote = @am__quote@ 87 install_sh = @install_sh@ 88 AUTOMAKE_OPTIONS = foreign 1.4 89 90 SUBDIRS = src test 37 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ 38 $(srcdir)/Makefile.in $(top_srcdir)/configure AUTHORS COPYING \ 39 ChangeLog INSTALL NEWS TODO config.guess config.sub depcomp \ 40 install-sh ltmain.sh missing mkinstalldirs 91 41 subdir = . 92 42 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 43 am__aclocal_m4_deps = $(top_srcdir)/configure.in 44 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 45 $(ACLOCAL_M4) 46 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ 47 configure.lineno configure.status.lineno 93 48 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 94 49 CONFIG_HEADER = $(top_builddir)/src/config.h 95 50 CONFIG_CLEAN_FILES = 51 SOURCES = 96 52 DIST_SOURCES = 97 98 RECURSIVE_TARGETS = info-recursive dvi-recursive install-info-recursive \ 99 uninstall-info-recursive all-recursive install-data-recursive \ 100 install-exec-recursive installdirs-recursive install-recursive \ 101 uninstall-recursive check-recursive installcheck-recursive 102 DIST_COMMON = README AUTHORS COPYING ChangeLog INSTALL Makefile.am \ 103 Makefile.in NEWS TODO aclocal.m4 config.guess config.sub \ 104 configure configure.in depcomp install-sh ltmain.sh missing \ 105 mkinstalldirs 53 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ 54 html-recursive info-recursive install-data-recursive \ 55 install-exec-recursive install-info-recursive \ 56 install-recursive installcheck-recursive installdirs-recursive \ 57 pdf-recursive ps-recursive uninstall-info-recursive \ 58 uninstall-recursive 59 ETAGS = etags 60 CTAGS = ctags 106 61 DIST_SUBDIRS = $(SUBDIRS) 62 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 63 distdir = $(PACKAGE)-$(VERSION) 64 top_distdir = $(distdir) 65 am__remove_distdir = \ 66 { test ! -d $(distdir) \ 67 || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ 68 && rm -fr $(distdir); }; } 69 DIST_ARCHIVES = $(distdir).tar.gz 70 GZIP_ENV = --best 71 distuninstallcheck_listfiles = find . -type f -print 72 distcleancheck_listfiles = find . -type f -print 73 ACLOCAL = @ACLOCAL@ 74 AMDEP_FALSE = @AMDEP_FALSE@ 75 AMDEP_TRUE = @AMDEP_TRUE@ 76 AMTAR = @AMTAR@ 77 AR = @AR@ 78 AUTOCONF = @AUTOCONF@ 79 AUTOHEADER = @AUTOHEADER@ 80 AUTOMAKE = @AUTOMAKE@ 81 AWK = @AWK@ 82 CC = @CC@ 83 CCDEPMODE = @CCDEPMODE@ 84 CFLAGS = @CFLAGS@ 85 CPP = @CPP@ 86 CPPFLAGS = @CPPFLAGS@ 87 CXX = @CXX@ 88 CXXCPP = @CXXCPP@ 89 CXXDEPMODE = @CXXDEPMODE@ 90 CXXFLAGS = @CXXFLAGS@ 91 CYGPATH_W = @CYGPATH_W@ 92 DEFS = @DEFS@ 93 DEPDIR = @DEPDIR@ 94 ECHO = @ECHO@ 95 ECHO_C = @ECHO_C@ 96 ECHO_N = @ECHO_N@ 97 ECHO_T = @ECHO_T@ 98 EGREP = @EGREP@ 99 EXEEXT = @EXEEXT@ 100 F77 = @F77@ 101 FFLAGS = @FFLAGS@ 102 GSL_CONFIG = @GSL_CONFIG@ 103 INSTALL_DATA = @INSTALL_DATA@ 104 INSTALL_PROGRAM = @INSTALL_PROGRAM@ 105 INSTALL_SCRIPT = @INSTALL_SCRIPT@ 106 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 107 LDFLAGS = @LDFLAGS@ 108 LIBOBJS = @LIBOBJS@ 109 LIBS = @LIBS@ 110 LIBTOOL = @LIBTOOL@ 111 LN_S = @LN_S@ 112 LTLIBOBJS = @LTLIBOBJS@ 113 MAKEINFO = @MAKEINFO@ 114 OBJEXT = @OBJEXT@ 115 PACKAGE = @PACKAGE@ 116 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ 117 PACKAGE_NAME = @PACKAGE_NAME@ 118 PACKAGE_STRING = @PACKAGE_STRING@ 119 PACKAGE_TARNAME = @PACKAGE_TARNAME@ 120 PACKAGE_VERSION = @PACKAGE_VERSION@ 121 PATH_SEPARATOR = @PATH_SEPARATOR@ 122 RANLIB = @RANLIB@ 123 SET_MAKE = @SET_MAKE@ 124 SHELL = @SHELL@ 125 STRIP = @STRIP@ 126 VERSION = @VERSION@ 127 ac_ct_AR = @ac_ct_AR@ 128 ac_ct_CC = @ac_ct_CC@ 129 ac_ct_CXX = @ac_ct_CXX@ 130 ac_ct_F77 = @ac_ct_F77@ 131 ac_ct_RANLIB = @ac_ct_RANLIB@ 132 ac_ct_STRIP = @ac_ct_STRIP@ 133 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ 134 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ 135 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ 136 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ 137 am__include = @am__include@ 138 am__leading_dot = @am__leading_dot@ 139 am__quote = @am__quote@ 140 bindir = @bindir@ 141 build = @build@ 142 build_alias = @build_alias@ 143 build_cpu = @build_cpu@ 144 build_os = @build_os@ 145 build_vendor = @build_vendor@ 146 datadir = @datadir@ 147 exec_prefix = @exec_prefix@ 148 host = @host@ 149 host_alias = @host_alias@ 150 host_cpu = @host_cpu@ 151 host_os = @host_os@ 152 host_vendor = @host_vendor@ 153 includedir = @includedir@ 154 infodir = @infodir@ 155 install_sh = @install_sh@ 156 libdir = @libdir@ 157 libexecdir = @libexecdir@ 158 localstatedir = @localstatedir@ 159 mandir = @mandir@ 160 mkdir_p = @mkdir_p@ 161 oldincludedir = @oldincludedir@ 162 prefix = @prefix@ 163 program_transform_name = @program_transform_name@ 164 sbindir = @sbindir@ 165 sharedstatedir = @sharedstatedir@ 166 sysconfdir = @sysconfdir@ 167 target_alias = @target_alias@ 168 AUTOMAKE_OPTIONS = foreign 1.4 169 SUBDIRS = src test 107 170 all: all-recursive 108 171 109 172 .SUFFIXES: 110 111 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ 112 configure.lineno 113 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 173 am--refresh: 174 @: 175 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) 176 @for dep in $?; do \ 177 case '$(am__configure_deps)' in \ 178 *$$dep*) \ 179 echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \ 180 cd $(srcdir) && $(AUTOMAKE) --foreign \ 181 && exit 0; \ 182 exit 1;; \ 183 esac; \ 184 done; \ 185 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ 114 186 cd $(top_srcdir) && \ 115 187 $(AUTOMAKE) --foreign Makefile 116 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 117 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe) 118 119 $(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) 188 .PRECIOUS: Makefile 189 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 190 @case '$?' in \ 191 *config.status*) \ 192 echo ' $(SHELL) ./config.status'; \ 193 $(SHELL) ./config.status;; \ 194 *) \ 195 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ 196 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ 197 esac; 198 199 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) 120 200 $(SHELL) ./config.status --recheck 121 $(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) 201 202 $(top_srcdir)/configure: $(am__configure_deps) 122 203 cd $(srcdir) && $(AUTOCONF) 123 124 $(ACLOCAL_M4): configure.in 204 $(ACLOCAL_M4): $(am__aclocal_m4_deps) 125 205 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) 126 206 … … 189 269 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ 190 270 done 191 192 ETAGS = etags 193 ETAGSFLAGS = 194 195 tags: TAGS 271 ctags-recursive: 272 list='$(SUBDIRS)'; for subdir in $$list; do \ 273 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ 274 done 196 275 197 276 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) … … 203 282 END { for (i in files) print i; }'`; \ 204 283 mkid -fID $$unique 284 tags: TAGS 205 285 206 286 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ … … 208 288 tags=; \ 209 289 here=`pwd`; \ 290 if (etags --etags-include --version) >/dev/null 2>&1; then \ 291 include_option=--etags-include; \ 292 else \ 293 include_option=--include; \ 294 fi; \ 210 295 list='$(SUBDIRS)'; for subdir in $$list; do \ 211 296 if test "$$subdir" = .; then :; else \ 212 test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \ 297 test -f $$subdir/TAGS && \ 298 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ 213 299 fi; \ 214 300 done; \ … … 222 308 || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 223 309 $$tags $$unique 310 ctags: CTAGS 311 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 312 $(TAGS_FILES) $(LISP) 313 tags=; \ 314 here=`pwd`; \ 315 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 316 unique=`for i in $$list; do \ 317 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 318 done | \ 319 $(AWK) ' { files[$$0] = 1; } \ 320 END { for (i in files) print i; }'`; \ 321 test -z "$(CTAGS_ARGS)$$tags$$unique" \ 322 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ 323 $$tags $$unique 224 324 225 325 GTAGS: … … 229 329 230 330 distclean-tags: 231 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH 232 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 233 234 top_distdir = . 235 distdir = $(PACKAGE)-$(VERSION) 236 237 am__remove_distdir = \ 238 { test ! -d $(distdir) \ 239 || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ 240 && rm -fr $(distdir); }; } 241 242 GZIP_ENV = --best 243 distcleancheck_listfiles = find . -type f -print 331 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags 244 332 245 333 distdir: $(DISTFILES) 246 334 $(am__remove_distdir) 247 335 mkdir $(distdir) 248 @list='$(DISTFILES)'; for file in $$list; do \ 336 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ 337 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ 338 list='$(DISTFILES)'; for file in $$list; do \ 339 case $$file in \ 340 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ 341 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ 342 esac; \ 249 343 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ 250 344 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ 251 345 if test "$$dir" != "$$file" && test "$$dir" != "."; then \ 252 346 dir="/$$dir"; \ 253 $(mk installdirs) "$(distdir)$$dir"; \347 $(mkdir_p) "$(distdir)$$dir"; \ 254 348 else \ 255 349 dir=''; \ … … 268 362 list='$(SUBDIRS)'; for subdir in $$list; do \ 269 363 if test "$$subdir" = .; then :; else \ 270 test -d $(distdir)/$$subdir\271 || mkdir $(distdir)/$$subdir\364 test -d "$(distdir)/$$subdir" \ 365 || mkdir "$(distdir)/$$subdir" \ 272 366 || exit 1; \ 273 367 (cd $$subdir && \ 274 368 $(MAKE) $(AM_MAKEFLAGS) \ 275 top_distdir=" $(top_distdir)" \276 distdir= ../$(distdir)/$$subdir\369 top_distdir="../$(top_distdir)" \ 370 distdir="../$(distdir)/$$subdir" \ 277 371 distdir) \ 278 372 || exit 1; \ … … 288 382 $(am__remove_distdir) 289 383 384 dist-bzip2: distdir 385 $(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2 386 $(am__remove_distdir) 387 388 dist-tarZ: distdir 389 $(AMTAR) chof - $(distdir) | compress -c >$(distdir).tar.Z 390 $(am__remove_distdir) 391 392 dist-shar: distdir 393 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz 394 $(am__remove_distdir) 395 396 dist-zip: distdir 397 -rm -f $(distdir).zip 398 zip -rq $(distdir).zip $(distdir) 399 $(am__remove_distdir) 400 290 401 dist dist-all: distdir 291 402 $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz … … 296 407 # tarfile. 297 408 distcheck: dist 298 $(am__remove_distdir) 299 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf - 409 case '$(DIST_ARCHIVES)' in \ 410 *.tar.gz*) \ 411 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf - ;;\ 412 *.tar.bz2*) \ 413 bunzip2 -c $(distdir).tar.bz2 | $(AMTAR) xf - ;;\ 414 *.tar.Z*) \ 415 uncompress -c $(distdir).tar.Z | $(AMTAR) xf - ;;\ 416 *.shar.gz*) \ 417 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | unshar ;;\ 418 *.zip*) \ 419 unzip $(distdir).zip ;;\ 420 esac 300 421 chmod -R a-w $(distdir); chmod a+w $(distdir) 301 mkdir $(distdir)/ =build302 mkdir $(distdir)/ =inst422 mkdir $(distdir)/_build 423 mkdir $(distdir)/_inst 303 424 chmod a-w $(distdir) 304 dc_install_base=`$(am__cd) $(distdir)/=inst && pwd` \ 305 && cd $(distdir)/=build \ 306 && ../configure --srcdir=.. --prefix=$$dc_install_base \ 425 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ 426 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ 427 && cd $(distdir)/_build \ 428 && ../configure --srcdir=.. --prefix="$$dc_install_base" \ 307 429 $(DISTCHECK_CONFIGURE_FLAGS) \ 308 430 && $(MAKE) $(AM_MAKEFLAGS) \ … … 312 434 && $(MAKE) $(AM_MAKEFLAGS) installcheck \ 313 435 && $(MAKE) $(AM_MAKEFLAGS) uninstall \ 314 && (test `find $$dc_install_base -type f -print | wc -l` -le 1 \ 315 || { echo "ERROR: files left after uninstall:" ; \ 316 find $$dc_install_base -type f -print ; \ 317 exit 1; } >&2 ) \ 318 && $(MAKE) $(AM_MAKEFLAGS) dist-gzip \ 319 && rm -f $(distdir).tar.gz \ 436 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ 437 distuninstallcheck \ 438 && chmod -R a-w "$$dc_install_base" \ 439 && ({ \ 440 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ 441 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ 442 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ 443 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ 444 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ 445 } || { rm -rf "$$dc_destdir"; exit 1; }) \ 446 && rm -rf "$$dc_destdir" \ 447 && $(MAKE) $(AM_MAKEFLAGS) dist \ 448 && rm -rf $(DIST_ARCHIVES) \ 320 449 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck 321 450 $(am__remove_distdir) 322 @echo "$(distdir).tar.gz is ready for distribution" | \ 323 sed 'h;s/./=/g;p;x;p;x' 451 @(echo "$(distdir) archives ready for distribution: "; \ 452 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ 453 sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}' 454 distuninstallcheck: 455 @cd $(distuninstallcheck_dir) \ 456 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ 457 || { echo "ERROR: files left after uninstall:" ; \ 458 if test -n "$(DESTDIR)"; then \ 459 echo " (check DESTDIR support)"; \ 460 fi ; \ 461 $(distuninstallcheck_listfiles) ; \ 462 exit 1; } >&2 324 463 distcleancheck: distclean 325 if test '$(srcdir)' = . ; then \464 @if test '$(srcdir)' = . ; then \ 326 465 echo "ERROR: distcleancheck can only run from a VPATH build" ; \ 327 466 exit 1 ; \ 328 467 fi 329 test `$(distcleancheck_listfiles) | wc -l` -eq 0 \330 || { echo "ERROR: files left after distclean:" ; \468 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ 469 || { echo "ERROR: files left in build directory after distclean:" ; \ 331 470 $(distcleancheck_listfiles) ; \ 332 471 exit 1; } >&2 … … 336 475 installdirs: installdirs-recursive 337 476 installdirs-am: 338 339 477 install: install-recursive 340 478 install-exec: install-exec-recursive … … 348 486 install-strip: 349 487 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ 350 INSTALL_STRIP_FLAG=-s \488 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ 351 489 `test -z '$(STRIP)' || \ 352 490 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install … … 356 494 357 495 distclean-generic: 358 -rm -f Makefile$(CONFIG_CLEAN_FILES)496 -rm -f $(CONFIG_CLEAN_FILES) 359 497 360 498 maintainer-clean-generic: … … 367 505 distclean: distclean-recursive 368 506 -rm -f $(am__CONFIG_DISTCLEAN_FILES) 507 -rm -f Makefile 369 508 distclean-am: clean-am distclean-generic distclean-libtool \ 370 509 distclean-tags … … 374 513 dvi-am: 375 514 515 html: html-recursive 516 376 517 info: info-recursive 377 518 … … 390 531 maintainer-clean: maintainer-clean-recursive 391 532 -rm -f $(am__CONFIG_DISTCLEAN_FILES) 392 -rm -rf autom4te.cache 533 -rm -rf $(top_srcdir)/autom4te.cache 534 -rm -f Makefile 393 535 maintainer-clean-am: distclean-am maintainer-clean-generic 394 536 … … 397 539 mostlyclean-am: mostlyclean-generic mostlyclean-libtool 398 540 541 pdf: pdf-recursive 542 543 pdf-am: 544 545 ps: ps-recursive 546 547 ps-am: 548 399 549 uninstall-am: uninstall-info-am 400 550 401 551 uninstall-info: uninstall-info-recursive 402 552 403 .PHONY: $(RECURSIVE_TARGETS) GTAGS all all-am check check-am clean \ 404 clean-generic clean-libtool clean-recursive dist dist-all \ 405 dist-gzip distcheck distclean distclean-generic \ 406 distclean-libtool distclean-recursive distclean-tags \ 407 distcleancheck distdir dvi dvi-am dvi-recursive info info-am \ 408 info-recursive install install-am install-data install-data-am \ 409 install-data-recursive install-exec install-exec-am \ 410 install-exec-recursive install-info install-info-am \ 411 install-info-recursive install-man install-recursive \ 412 install-strip installcheck installcheck-am installdirs \ 413 installdirs-am installdirs-recursive maintainer-clean \ 414 maintainer-clean-generic maintainer-clean-recursive mostlyclean \ 415 mostlyclean-generic mostlyclean-libtool mostlyclean-recursive \ 416 tags tags-recursive uninstall uninstall-am uninstall-info-am \ 417 uninstall-info-recursive uninstall-recursive 553 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \ 554 check-am clean clean-generic clean-libtool clean-recursive \ 555 ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ 556 dist-shar dist-tarZ dist-zip distcheck distclean \ 557 distclean-generic distclean-libtool distclean-recursive \ 558 distclean-tags distcleancheck distdir distuninstallcheck dvi \ 559 dvi-am html html-am info info-am install install-am \ 560 install-data install-data-am install-exec install-exec-am \ 561 install-info install-info-am install-man install-strip \ 562 installcheck installcheck-am installdirs installdirs-am \ 563 maintainer-clean maintainer-clean-generic \ 564 maintainer-clean-recursive mostlyclean mostlyclean-generic \ 565 mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \ 566 tags tags-recursive uninstall uninstall-am uninstall-info-am 418 567 419 568 # Tell versions [3.59,3.63) of GNU make to not export all variables. -
trunk/psModules/aclocal.m4
r2132 r2138 1 # aclocal.m4 generated automatically by aclocal 1.6.3 -*- Autoconf -*-2 3 # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 20021 # generated automatically by aclocal 1.8.3 -*- Autoconf -*- 2 3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 4 4 # Free Software Foundation, Inc. 5 5 # This file is free software; the Free Software Foundation … … 12 12 # PARTICULAR PURPOSE. 13 13 14 # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*- 15 16 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc. 17 18 # This program is free software; you can redistribute it and/or modify 19 # it under the terms of the GNU General Public License as published by 20 # the Free Software Foundation; either version 2, or (at your option) 21 # any later version. 22 23 # This program is distributed in the hope that it will be useful, 24 # but WITHOUT ANY WARRANTY; without even the implied warranty of 25 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 26 # GNU General Public License for more details. 27 28 # You should have received a copy of the GNU General Public License 29 # along with this program; if not, write to the Free Software 30 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 31 # 02111-1307, USA. 32 33 AC_PREREQ([2.52]) 34 35 # serial 6 36 37 # When config.status generates a header, we must update the stamp-h file. 38 # This file resides in the same directory as the config header 39 # that is generated. We must strip everything past the first ":", 40 # and everything past the last "/". 41 42 # _AM_DIRNAME(PATH) 43 # ----------------- 44 # Like AS_DIRNAME, only do it during macro expansion 45 AC_DEFUN([_AM_DIRNAME], 46 [m4_if(regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1, 47 m4_if(regexp([$1], [^//\([^/]\|$\)]), -1, 48 m4_if(regexp([$1], [^/.*]), -1, 49 [.], 50 patsubst([$1], [^\(/\).*], [\1])), 51 patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])), 52 patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl 53 ])# _AM_DIRNAME 54 55 56 # The stamp files are numbered to have different names. 57 # We could number them on a directory basis, but that's additional 58 # complications, let's have a unique counter. 59 m4_define([_AM_STAMP_Count], [0]) 60 61 62 # _AM_STAMP(HEADER) 63 # ----------------- 64 # The name of the stamp file for HEADER. 65 AC_DEFUN([_AM_STAMP], 66 [m4_define([_AM_STAMP_Count], m4_incr(_AM_STAMP_Count))dnl 67 AS_ESCAPE(_AM_DIRNAME(patsubst([$1], 68 [:.*])))/stamp-h[]_AM_STAMP_Count]) 69 70 71 # _AM_CONFIG_HEADER(HEADER[:SOURCES], COMMANDS, INIT-COMMANDS) 72 # ------------------------------------------------------------ 73 # We used to try to get a real timestamp in stamp-h. But the fear is that 74 # that will cause unnecessary cvs conflicts. 75 AC_DEFUN([_AM_CONFIG_HEADER], 76 [# Add the stamp file to the list of files AC keeps track of, 77 # along with our hook. 78 AC_CONFIG_HEADERS([$1], 79 [# update the timestamp 80 echo 'timestamp for $1' >"_AM_STAMP([$1])" 81 $2], 82 [$3]) 83 ])# _AM_CONFIG_HEADER 84 85 86 # AM_CONFIG_HEADER(HEADER[:SOURCES]..., COMMANDS, INIT-COMMANDS) 87 # -------------------------------------------------------------- 88 AC_DEFUN([AM_CONFIG_HEADER], 89 [AC_FOREACH([_AM_File], [$1], [_AM_CONFIG_HEADER(_AM_File, [$2], [$3])]) 90 ])# AM_CONFIG_HEADER 91 92 # Do all the work for Automake. -*- Autoconf -*- 93 94 # This macro actually does too much some checks are only needed if 95 # your package does certain things. But this isn't really a big deal. 96 97 # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 98 # Free Software Foundation, Inc. 99 100 # This program is free software; you can redistribute it and/or modify 101 # it under the terms of the GNU General Public License as published by 102 # the Free Software Foundation; either version 2, or (at your option) 103 # any later version. 104 105 # This program is distributed in the hope that it will be useful, 106 # but WITHOUT ANY WARRANTY; without even the implied warranty of 107 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 108 # GNU General Public License for more details. 109 110 # You should have received a copy of the GNU General Public License 111 # along with this program; if not, write to the Free Software 112 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 113 # 02111-1307, USA. 114 115 # serial 8 116 117 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 118 # written in clear, in which case automake, when reading aclocal.m4, 119 # will think it sees a *use*, and therefore will trigger all it's 120 # C support machinery. Also note that it means that autoscan, seeing 121 # CC etc. in the Makefile, will ask for an AC_PROG_CC use... 122 123 124 AC_PREREQ([2.52]) 125 126 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow 127 # the ones we care about. 128 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 129 130 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 131 # AM_INIT_AUTOMAKE([OPTIONS]) 132 # ----------------------------------------------- 133 # The call with PACKAGE and VERSION arguments is the old style 134 # call (pre autoconf-2.50), which is being phased out. PACKAGE 135 # and VERSION should now be passed to AC_INIT and removed from 136 # the call to AM_INIT_AUTOMAKE. 137 # We support both call styles for the transition. After 138 # the next Automake release, Autoconf can make the AC_INIT 139 # arguments mandatory, and then we can depend on a new Autoconf 140 # release and drop the old call support. 141 AC_DEFUN([AM_INIT_AUTOMAKE], 142 [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 143 AC_REQUIRE([AC_PROG_INSTALL])dnl 144 # test to see if srcdir already configured 145 if test "`cd $srcdir && pwd`" != "`pwd`" && 146 test -f $srcdir/config.status; then 147 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 148 fi 149 150 # Define the identity of the package. 151 dnl Distinguish between old-style and new-style calls. 152 m4_ifval([$2], 153 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 154 AC_SUBST([PACKAGE], [$1])dnl 155 AC_SUBST([VERSION], [$2])], 156 [_AM_SET_OPTIONS([$1])dnl 157 AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl 158 AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl 159 160 _AM_IF_OPTION([no-define],, 161 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 162 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 163 164 # Some tools Automake needs. 165 AC_REQUIRE([AM_SANITY_CHECK])dnl 166 AC_REQUIRE([AC_ARG_PROGRAM])dnl 167 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 168 AM_MISSING_PROG(AUTOCONF, autoconf) 169 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 170 AM_MISSING_PROG(AUTOHEADER, autoheader) 171 AM_MISSING_PROG(MAKEINFO, makeinfo) 172 AM_MISSING_PROG(AMTAR, tar) 173 AM_PROG_INSTALL_SH 174 AM_PROG_INSTALL_STRIP 175 # We need awk for the "check" target. The system "awk" is bad on 176 # some platforms. 177 AC_REQUIRE([AC_PROG_AWK])dnl 178 AC_REQUIRE([AC_PROG_MAKE_SET])dnl 179 180 _AM_IF_OPTION([no-dependencies],, 181 [AC_PROVIDE_IFELSE([AC_PROG_][CC], 182 [_AM_DEPENDENCIES(CC)], 183 [define([AC_PROG_][CC], 184 defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl 185 AC_PROVIDE_IFELSE([AC_PROG_][CXX], 186 [_AM_DEPENDENCIES(CXX)], 187 [define([AC_PROG_][CXX], 188 defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl 189 ]) 190 ]) 191 192 # Copyright 2002 Free Software Foundation, Inc. 193 194 # This program is free software; you can redistribute it and/or modify 195 # it under the terms of the GNU General Public License as published by 196 # the Free Software Foundation; either version 2, or (at your option) 197 # any later version. 198 199 # This program is distributed in the hope that it will be useful, 200 # but WITHOUT ANY WARRANTY; without even the implied warranty of 201 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 202 # GNU General Public License for more details. 203 204 # You should have received a copy of the GNU General Public License 205 # along with this program; if not, write to the Free Software 206 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 207 208 # AM_AUTOMAKE_VERSION(VERSION) 209 # ---------------------------- 210 # Automake X.Y traces this macro to ensure aclocal.m4 has been 211 # generated from the m4 files accompanying Automake X.Y. 212 AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.6"]) 213 214 # AM_SET_CURRENT_AUTOMAKE_VERSION 215 # ------------------------------- 216 # Call AM_AUTOMAKE_VERSION so it can be traced. 217 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. 218 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 219 [AM_AUTOMAKE_VERSION([1.6.3])]) 220 221 # Helper functions for option handling. -*- Autoconf -*- 222 223 # Copyright 2001, 2002 Free Software Foundation, Inc. 224 225 # This program is free software; you can redistribute it and/or modify 226 # it under the terms of the GNU General Public License as published by 227 # the Free Software Foundation; either version 2, or (at your option) 228 # any later version. 229 230 # This program is distributed in the hope that it will be useful, 231 # but WITHOUT ANY WARRANTY; without even the implied warranty of 232 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 233 # GNU General Public License for more details. 234 235 # You should have received a copy of the GNU General Public License 236 # along with this program; if not, write to the Free Software 237 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 238 # 02111-1307, USA. 239 240 # serial 2 241 242 # _AM_MANGLE_OPTION(NAME) 243 # ----------------------- 244 AC_DEFUN([_AM_MANGLE_OPTION], 245 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 246 247 # _AM_SET_OPTION(NAME) 248 # ------------------------------ 249 # Set option NAME. Presently that only means defining a flag for this option. 250 AC_DEFUN([_AM_SET_OPTION], 251 [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 252 253 # _AM_SET_OPTIONS(OPTIONS) 254 # ---------------------------------- 255 # OPTIONS is a space-separated list of Automake options. 256 AC_DEFUN([_AM_SET_OPTIONS], 257 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 258 259 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 260 # ------------------------------------------- 261 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 262 AC_DEFUN([_AM_IF_OPTION], 263 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 264 265 # 266 # Check to make sure that the build environment is sane. 267 # 268 269 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc. 270 271 # This program is free software; you can redistribute it and/or modify 272 # it under the terms of the GNU General Public License as published by 273 # the Free Software Foundation; either version 2, or (at your option) 274 # any later version. 275 276 # This program is distributed in the hope that it will be useful, 277 # but WITHOUT ANY WARRANTY; without even the implied warranty of 278 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 279 # GNU General Public License for more details. 280 281 # You should have received a copy of the GNU General Public License 282 # along with this program; if not, write to the Free Software 283 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 284 # 02111-1307, USA. 285 286 # serial 3 287 288 # AM_SANITY_CHECK 14 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 15 16 # serial 47 AC_PROG_LIBTOOL 17 18 19 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) 20 # ----------------------------------------------------------- 21 # If this macro is not defined by Autoconf, define it here. 22 m4_ifdef([AC_PROVIDE_IFELSE], 23 [], 24 [m4_define([AC_PROVIDE_IFELSE], 25 [m4_ifdef([AC_PROVIDE_$1], 26 [$2], [$3])])]) 27 28 29 # AC_PROG_LIBTOOL 289 30 # --------------- 290 AC_DEFUN([AM_SANITY_CHECK],291 [AC_MSG_CHECKING([whether build environment is sane])292 # Just in case293 sleep 1294 echo timestamp > conftest.file295 # Do `set' in a subshell so we don't clobber the current shell's296 # arguments. Must try -L first in case configure is actually a297 # symlink; some systems play weird games with the mod time of symlinks298 # (eg FreeBSD returns the mod time of the symlink's containing299 # directory).300 if (301 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`302 if test "$[*]" = "X"; then303 # -L didn't work.304 set X `ls -t $srcdir/configure conftest.file`305 fi306 rm -f conftest.file307 if test "$[*]" != "X $srcdir/configure conftest.file" \308 && test "$[*]" != "X conftest.file $srcdir/configure"; then309 310 # If neither matched, then we have a broken ls. This can happen311 # if, for instance, CONFIG_SHELL is bash and it inherits a312 # broken ls alias from the environment. This has actually313 # happened. Such a system could not be considered "sane".314 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken315 alias in your environment])316 fi317 318 test "$[2]" = conftest.file319 )320 then321 # Ok.322 :323 else324 AC_MSG_ERROR([newly created file is older than distributed files!325 Check your system clock])326 fi327 AC_MSG_RESULT(yes)])328 329 # -*- Autoconf -*-330 331 332 # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.333 334 # This program is free software; you can redistribute it and/or modify335 # it under the terms of the GNU General Public License as published by336 # the Free Software Foundation; either version 2, or (at your option)337 # any later version.338 339 # This program is distributed in the hope that it will be useful,340 # but WITHOUT ANY WARRANTY; without even the implied warranty of341 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the342 # GNU General Public License for more details.343 344 # You should have received a copy of the GNU General Public License345 # along with this program; if not, write to the Free Software346 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA347 # 02111-1307, USA.348 349 # serial 3350 351 # AM_MISSING_PROG(NAME, PROGRAM)352 # ------------------------------353 AC_DEFUN([AM_MISSING_PROG],354 [AC_REQUIRE([AM_MISSING_HAS_RUN])355 $1=${$1-"${am_missing_run}$2"}356 AC_SUBST($1)])357 358 359 # AM_MISSING_HAS_RUN360 # ------------------361 # Define MISSING if not defined so far and test if it supports --run.362 # If it does, set am_missing_run to use it, otherwise, to nothing.363 AC_DEFUN([AM_MISSING_HAS_RUN],364 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl365 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"366 # Use eval to expand $SHELL367 if eval "$MISSING --run true"; then368 am_missing_run="$MISSING --run "369 else370 am_missing_run=371 AC_MSG_WARN([`missing' script is too old or missing])372 fi373 ])374 375 # AM_AUX_DIR_EXPAND376 377 # Copyright 2001 Free Software Foundation, Inc.378 379 # This program is free software; you can redistribute it and/or modify380 # it under the terms of the GNU General Public License as published by381 # the Free Software Foundation; either version 2, or (at your option)382 # any later version.383 384 # This program is distributed in the hope that it will be useful,385 # but WITHOUT ANY WARRANTY; without even the implied warranty of386 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the387 # GNU General Public License for more details.388 389 # You should have received a copy of the GNU General Public License390 # along with this program; if not, write to the Free Software391 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA392 # 02111-1307, USA.393 394 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets395 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to396 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.397 #398 # Of course, Automake must honor this variable whenever it calls a399 # tool from the auxiliary directory. The problem is that $srcdir (and400 # therefore $ac_aux_dir as well) can be either absolute or relative,401 # depending on how configure is run. This is pretty annoying, since402 # it makes $ac_aux_dir quite unusable in subdirectories: in the top403 # source directory, any form will work fine, but in subdirectories a404 # relative path needs to be adjusted first.405 #406 # $ac_aux_dir/missing407 # fails when called from a subdirectory if $ac_aux_dir is relative408 # $top_srcdir/$ac_aux_dir/missing409 # fails if $ac_aux_dir is absolute,410 # fails when called from a subdirectory in a VPATH build with411 # a relative $ac_aux_dir412 #413 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir414 # are both prefixed by $srcdir. In an in-source build this is usually415 # harmless because $srcdir is `.', but things will broke when you416 # start a VPATH build or use an absolute $srcdir.417 #418 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,419 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:420 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`421 # and then we would define $MISSING as422 # MISSING="\${SHELL} $am_aux_dir/missing"423 # This will work as long as MISSING is not called from configure, because424 # unfortunately $(top_srcdir) has no meaning in configure.425 # However there are other variables, like CC, which are often used in426 # configure, and could therefore not use this "fixed" $ac_aux_dir.427 #428 # Another solution, used here, is to always expand $ac_aux_dir to an429 # absolute PATH. The drawback is that using absolute paths prevent a430 # configured tree to be moved without reconfiguration.431 432 # Rely on autoconf to set up CDPATH properly.433 AC_PREREQ([2.50])434 435 AC_DEFUN([AM_AUX_DIR_EXPAND], [436 # expand $ac_aux_dir to an absolute path437 am_aux_dir=`cd $ac_aux_dir && pwd`438 ])439 440 # AM_PROG_INSTALL_SH441 # ------------------442 # Define $install_sh.443 444 # Copyright 2001 Free Software Foundation, Inc.445 446 # This program is free software; you can redistribute it and/or modify447 # it under the terms of the GNU General Public License as published by448 # the Free Software Foundation; either version 2, or (at your option)449 # any later version.450 451 # This program is distributed in the hope that it will be useful,452 # but WITHOUT ANY WARRANTY; without even the implied warranty of453 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the454 # GNU General Public License for more details.455 456 # You should have received a copy of the GNU General Public License457 # along with this program; if not, write to the Free Software458 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA459 # 02111-1307, USA.460 461 AC_DEFUN([AM_PROG_INSTALL_SH],462 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl463 install_sh=${install_sh-"$am_aux_dir/install-sh"}464 AC_SUBST(install_sh)])465 466 # AM_PROG_INSTALL_STRIP467 468 # Copyright 2001 Free Software Foundation, Inc.469 470 # This program is free software; you can redistribute it and/or modify471 # it under the terms of the GNU General Public License as published by472 # the Free Software Foundation; either version 2, or (at your option)473 # any later version.474 475 # This program is distributed in the hope that it will be useful,476 # but WITHOUT ANY WARRANTY; without even the implied warranty of477 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the478 # GNU General Public License for more details.479 480 # You should have received a copy of the GNU General Public License481 # along with this program; if not, write to the Free Software482 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA483 # 02111-1307, USA.484 485 # One issue with vendor `install' (even GNU) is that you can't486 # specify the program used to strip binaries. This is especially487 # annoying in cross-compiling environments, where the build's strip488 # is unlikely to handle the host's binaries.489 # Fortunately install-sh will honor a STRIPPROG variable, so we490 # always use install-sh in `make install-strip', and initialize491 # STRIPPROG with the value of the STRIP variable (set by the user).492 AC_DEFUN([AM_PROG_INSTALL_STRIP],493 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl494 # Installed binaries are usually stripped using `strip' when the user495 # run `make install-strip'. However `strip' might not be the right496 # tool to use in cross-compilation environments, therefore Automake497 # will honor the `STRIP' environment variable to overrule this program.498 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.499 if test "$cross_compiling" != no; then500 AC_CHECK_TOOL([STRIP], [strip], :)501 fi502 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"503 AC_SUBST([INSTALL_STRIP_PROGRAM])])504 505 # serial 4 -*- Autoconf -*-506 507 # Copyright 1999, 2000, 2001 Free Software Foundation, Inc.508 509 # This program is free software; you can redistribute it and/or modify510 # it under the terms of the GNU General Public License as published by511 # the Free Software Foundation; either version 2, or (at your option)512 # any later version.513 514 # This program is distributed in the hope that it will be useful,515 # but WITHOUT ANY WARRANTY; without even the implied warranty of516 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the517 # GNU General Public License for more details.518 519 # You should have received a copy of the GNU General Public License520 # along with this program; if not, write to the Free Software521 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA522 # 02111-1307, USA.523 524 525 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be526 # written in clear, in which case automake, when reading aclocal.m4,527 # will think it sees a *use*, and therefore will trigger all it's528 # C support machinery. Also note that it means that autoscan, seeing529 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...530 531 532 533 # _AM_DEPENDENCIES(NAME)534 # ----------------------535 # See how the compiler implements dependency checking.536 # NAME is "CC", "CXX", "GCJ", or "OBJC".537 # We try a few techniques and use that to set a single cache variable.538 #539 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was540 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular541 # dependency, and given that the user is not expected to run this macro,542 # just rely on AC_PROG_CC.543 AC_DEFUN([_AM_DEPENDENCIES],544 [AC_REQUIRE([AM_SET_DEPDIR])dnl545 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl546 AC_REQUIRE([AM_MAKE_INCLUDE])dnl547 AC_REQUIRE([AM_DEP_TRACK])dnl548 549 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],550 [$1], CXX, [depcc="$CXX" am_compiler_list=],551 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],552 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],553 [depcc="$$1" am_compiler_list=])554 555 AC_CACHE_CHECK([dependency style of $depcc],556 [am_cv_$1_dependencies_compiler_type],557 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then558 # We make a subdir and do the tests there. Otherwise we can end up559 # making bogus files that we don't know about and never remove. For560 # instance it was reported that on HP-UX the gcc test will end up561 # making a dummy file named `D' -- because `-MD' means `put the output562 # in D'.563 mkdir conftest.dir564 # Copy depcomp to subdir because otherwise we won't find it if we're565 # using a relative directory.566 cp "$am_depcomp" conftest.dir567 cd conftest.dir568 569 am_cv_$1_dependencies_compiler_type=none570 if test "$am_compiler_list" = ""; then571 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`572 fi573 for depmode in $am_compiler_list; do574 # We need to recreate these files for each test, as the compiler may575 # overwrite some of them when testing with obscure command lines.576 # This happens at least with the AIX C compiler.577 echo '#include "conftest.h"' > conftest.c578 echo 'int i;' > conftest.h579 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf580 581 case $depmode in582 nosideeffect)583 # after this tag, mechanisms are not by side-effect, so they'll584 # only be used when explicitly requested585 if test "x$enable_dependency_tracking" = xyes; then586 continue587 else588 break589 fi590 ;;591 none) break ;;592 esac593 # We check with `-c' and `-o' for the sake of the "dashmstdout"594 # mode. It turns out that the SunPro C++ compiler does not properly595 # handle `-M -o', and we need to detect this.596 if depmode=$depmode \597 source=conftest.c object=conftest.o \598 depfile=conftest.Po tmpdepfile=conftest.TPo \599 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&600 grep conftest.h conftest.Po > /dev/null 2>&1 &&601 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then602 am_cv_$1_dependencies_compiler_type=$depmode603 break604 fi605 done606 607 cd ..608 rm -rf conftest.dir609 else610 am_cv_$1_dependencies_compiler_type=none611 fi612 ])613 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])614 ])615 616 617 # AM_SET_DEPDIR618 # -------------619 # Choose a directory name for dependency files.620 # This macro is AC_REQUIREd in _AM_DEPENDENCIES621 AC_DEFUN([AM_SET_DEPDIR],622 [rm -f .deps 2>/dev/null623 mkdir .deps 2>/dev/null624 if test -d .deps; then625 DEPDIR=.deps626 else627 # MS-DOS does not allow filenames that begin with a dot.628 DEPDIR=_deps629 fi630 rmdir .deps 2>/dev/null631 AC_SUBST([DEPDIR])632 ])633 634 635 # AM_DEP_TRACK636 # ------------637 AC_DEFUN([AM_DEP_TRACK],638 [AC_ARG_ENABLE(dependency-tracking,639 [ --disable-dependency-tracking Speeds up one-time builds640 --enable-dependency-tracking Do not reject slow dependency extractors])641 if test "x$enable_dependency_tracking" != xno; then642 am_depcomp="$ac_aux_dir/depcomp"643 AMDEPBACKSLASH='\'644 fi645 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])646 AC_SUBST([AMDEPBACKSLASH])647 ])648 649 # Generate code to set up dependency tracking. -*- Autoconf -*-650 651 # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.652 653 # This program is free software; you can redistribute it and/or modify654 # it under the terms of the GNU General Public License as published by655 # the Free Software Foundation; either version 2, or (at your option)656 # any later version.657 658 # This program is distributed in the hope that it will be useful,659 # but WITHOUT ANY WARRANTY; without even the implied warranty of660 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the661 # GNU General Public License for more details.662 663 # You should have received a copy of the GNU General Public License664 # along with this program; if not, write to the Free Software665 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA666 # 02111-1307, USA.667 668 #serial 2669 670 # _AM_OUTPUT_DEPENDENCY_COMMANDS671 # ------------------------------672 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],673 [for mf in $CONFIG_FILES; do674 # Strip MF so we end up with the name of the file.675 mf=`echo "$mf" | sed -e 's/:.*$//'`676 # Check whether this is an Automake generated Makefile or not.677 # We used to match only the files named `Makefile.in', but678 # some people rename them; so instead we look at the file content.679 # Grep'ing the first line is not enough: some people post-process680 # each Makefile.in and add a new line on top of each file to say so.681 # So let's grep whole file.682 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then683 dirpart=`AS_DIRNAME("$mf")`684 else685 continue686 fi687 grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue688 # Extract the definition of DEP_FILES from the Makefile without689 # running `make'.690 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`691 test -z "$DEPDIR" && continue692 # When using ansi2knr, U may be empty or an underscore; expand it693 U=`sed -n -e '/^U = / s///p' < "$mf"`694 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"695 # We invoke sed twice because it is the simplest approach to696 # changing $(DEPDIR) to its actual value in the expansion.697 for file in `sed -n -e '698 /^DEP_FILES = .*\\\\$/ {699 s/^DEP_FILES = //700 :loop701 s/\\\\$//702 p703 n704 /\\\\$/ b loop705 p706 }707 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \708 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do709 # Make sure the directory exists.710 test -f "$dirpart/$file" && continue711 fdir=`AS_DIRNAME(["$file"])`712 AS_MKDIR_P([$dirpart/$fdir])713 # echo "creating $dirpart/$file"714 echo '# dummy' > "$dirpart/$file"715 done716 done717 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS718 719 720 # AM_OUTPUT_DEPENDENCY_COMMANDS721 # -----------------------------722 # This macro should only be invoked once -- use via AC_REQUIRE.723 #724 # This code is only required when automatic dependency tracking725 # is enabled. FIXME. This creates each `.P' file that we will726 # need in order to bootstrap the dependency handling code.727 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],728 [AC_CONFIG_COMMANDS([depfiles],729 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],730 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])731 ])732 733 # Copyright 2001 Free Software Foundation, Inc. -*- Autoconf -*-734 735 # This program is free software; you can redistribute it and/or modify736 # it under the terms of the GNU General Public License as published by737 # the Free Software Foundation; either version 2, or (at your option)738 # any later version.739 740 # This program is distributed in the hope that it will be useful,741 # but WITHOUT ANY WARRANTY; without even the implied warranty of742 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the743 # GNU General Public License for more details.744 745 # You should have received a copy of the GNU General Public License746 # along with this program; if not, write to the Free Software747 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA748 # 02111-1307, USA.749 750 # serial 2751 752 # AM_MAKE_INCLUDE()753 # -----------------754 # Check to see how make treats includes.755 AC_DEFUN([AM_MAKE_INCLUDE],756 [am_make=${MAKE-make}757 cat > confinc << 'END'758 doit:759 @echo done760 END761 # If we don't find an include directive, just comment out the code.762 AC_MSG_CHECKING([for style of include used by $am_make])763 am__include="#"764 am__quote=765 _am_result=none766 # First try GNU make style include.767 echo "include confinc" > confmf768 # We grep out `Entering directory' and `Leaving directory'769 # messages which can occur if `w' ends up in MAKEFLAGS.770 # In particular we don't look at `^make:' because GNU make might771 # be invoked under some other name (usually "gmake"), in which772 # case it prints its new name instead of `make'.773 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then774 am__include=include775 am__quote=776 _am_result=GNU777 fi778 # Now try BSD make style include.779 if test "$am__include" = "#"; then780 echo '.include "confinc"' > confmf781 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then782 am__include=.include783 am__quote="\""784 _am_result=BSD785 fi786 fi787 AC_SUBST(am__include)788 AC_SUBST(am__quote)789 AC_MSG_RESULT($_am_result)790 rm -f confinc confmf791 ])792 793 # AM_CONDITIONAL -*- Autoconf -*-794 795 # Copyright 1997, 2000, 2001 Free Software Foundation, Inc.796 797 # This program is free software; you can redistribute it and/or modify798 # it under the terms of the GNU General Public License as published by799 # the Free Software Foundation; either version 2, or (at your option)800 # any later version.801 802 # This program is distributed in the hope that it will be useful,803 # but WITHOUT ANY WARRANTY; without even the implied warranty of804 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the805 # GNU General Public License for more details.806 807 # You should have received a copy of the GNU General Public License808 # along with this program; if not, write to the Free Software809 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA810 # 02111-1307, USA.811 812 # serial 5813 814 AC_PREREQ(2.52)815 816 # AM_CONDITIONAL(NAME, SHELL-CONDITION)817 # -------------------------------------818 # Define a conditional.819 AC_DEFUN([AM_CONDITIONAL],820 [ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],821 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl822 AC_SUBST([$1_TRUE])823 AC_SUBST([$1_FALSE])824 if $2; then825 $1_TRUE=826 $1_FALSE='#'827 else828 $1_TRUE='#'829 $1_FALSE=830 fi831 AC_CONFIG_COMMANDS_PRE(832 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then833 AC_MSG_ERROR([conditional \"$1\" was never defined.834 Usually this means the macro was only invoked conditionally.])835 fi])])836 837 # libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-838 839 # serial 46 AC_PROG_LIBTOOL840 841 31 AC_DEFUN([AC_PROG_LIBTOOL], 32 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl 33 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX 34 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. 35 AC_PROVIDE_IFELSE([AC_PROG_CXX], 36 [AC_LIBTOOL_CXX], 37 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX 38 ])]) 39 dnl And a similar setup for Fortran 77 support 40 AC_PROVIDE_IFELSE([AC_PROG_F77], 41 [AC_LIBTOOL_F77], 42 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 43 ])]) 44 45 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. 46 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run 47 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. 48 AC_PROVIDE_IFELSE([AC_PROG_GCJ], 49 [AC_LIBTOOL_GCJ], 50 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 51 [AC_LIBTOOL_GCJ], 52 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], 53 [AC_LIBTOOL_GCJ], 54 [ifdef([AC_PROG_GCJ], 55 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) 56 ifdef([A][M_PROG_GCJ], 57 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) 58 ifdef([LT_AC_PROG_GCJ], 59 [define([LT_AC_PROG_GCJ], 60 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) 61 ])])# AC_PROG_LIBTOOL 62 63 64 # _AC_PROG_LIBTOOL 65 # ---------------- 66 AC_DEFUN([_AC_PROG_LIBTOOL], 842 67 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl 68 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl 69 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl 70 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl 843 71 844 72 # This can be used to rebuild libtool when needed … … 851 79 # Prevent multiple expansion 852 80 define([AC_PROG_LIBTOOL], []) 853 ]) 854 81 ])# _AC_PROG_LIBTOOL 82 83 84 # AC_LIBTOOL_SETUP 85 # ---------------- 855 86 AC_DEFUN([AC_LIBTOOL_SETUP], 856 [AC_PREREQ(2. 13)dnl87 [AC_PREREQ(2.50)dnl 857 88 AC_REQUIRE([AC_ENABLE_SHARED])dnl 858 89 AC_REQUIRE([AC_ENABLE_STATIC])dnl … … 864 95 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl 865 96 AC_REQUIRE([AC_PROG_NM])dnl 866 AC_REQUIRE([LT_AC_PROG_SED])dnl867 97 868 98 AC_REQUIRE([AC_PROG_LN_S])dnl 869 99 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl 100 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 870 101 AC_REQUIRE([AC_OBJEXT])dnl 871 102 AC_REQUIRE([AC_EXEEXT])dnl 872 103 dnl 873 104 105 AC_LIBTOOL_SYS_MAX_CMD_LEN 106 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 107 AC_LIBTOOL_OBJDIR 108 109 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 874 110 _LT_AC_PROG_ECHO_BACKSLASH 111 112 case $host_os in 113 aix3*) 114 # AIX sometimes has problems with the GCC collect2 program. For some 115 # reason, if we set the COLLECT_NAMES environment variable, the problems 116 # vanish in a puff of smoke. 117 if test "X${COLLECT_NAMES+set}" != Xset; then 118 COLLECT_NAMES= 119 export COLLECT_NAMES 120 fi 121 ;; 122 esac 123 124 # Sed substitution that helps us do robust quoting. It backslashifies 125 # metacharacters that are still active within double-quoted strings. 126 Xsed='sed -e s/^X//' 127 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] 128 129 # Same as above, but do not quote variable references. 130 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] 131 132 # Sed substitution to delay expansion of an escaped shell variable in a 133 # double_quote_subst'ed string. 134 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 135 136 # Sed substitution to avoid accidental globbing in evaled expressions 137 no_glob_subst='s/\*/\\\*/g' 138 139 # Constants: 140 rm="rm -f" 141 142 # Global variables: 143 default_ofile=libtool 144 can_build_shared=yes 145 146 # All known linkers require a `.a' archive for static linking (except M$VC, 147 # which needs '.lib'). 148 libext=a 149 ltmain="$ac_aux_dir/ltmain.sh" 150 ofile="$default_ofile" 151 with_gnu_ld="$lt_cv_prog_gnu_ld" 152 153 AC_CHECK_TOOL(AR, ar, false) 154 AC_CHECK_TOOL(RANLIB, ranlib, :) 155 AC_CHECK_TOOL(STRIP, strip, :) 156 157 old_CC="$CC" 158 old_CFLAGS="$CFLAGS" 159 160 # Set sane defaults for various variables 161 test -z "$AR" && AR=ar 162 test -z "$AR_FLAGS" && AR_FLAGS=cru 163 test -z "$AS" && AS=as 164 test -z "$CC" && CC=cc 165 test -z "$LTCC" && LTCC=$CC 166 test -z "$DLLTOOL" && DLLTOOL=dlltool 167 test -z "$LD" && LD=ld 168 test -z "$LN_S" && LN_S="ln -s" 169 test -z "$MAGIC_CMD" && MAGIC_CMD=file 170 test -z "$NM" && NM=nm 171 test -z "$SED" && SED=sed 172 test -z "$OBJDUMP" && OBJDUMP=objdump 173 test -z "$RANLIB" && RANLIB=: 174 test -z "$STRIP" && STRIP=: 175 test -z "$ac_objext" && ac_objext=o 176 177 # Determine commands to create old-style static archives. 178 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 179 old_postinstall_cmds='chmod 644 $oldlib' 180 old_postuninstall_cmds= 181 182 if test -n "$RANLIB"; then 183 case $host_os in 184 openbsd*) 185 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 186 ;; 187 *) 188 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 189 ;; 190 esac 191 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 192 fi 193 875 194 # Only perform the check for file, if the check method requires it 876 195 case $deplibs_check_method in … … 882 201 esac 883 202 884 AC_CHECK_TOOL(RANLIB, ranlib, :) 885 AC_CHECK_TOOL(STRIP, strip, :) 886 887 ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) 888 ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], 203 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) 204 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 889 205 enable_win32_dll=yes, enable_win32_dll=no) 890 206 891 AC_ARG_ENABLE(libtool-lock, 892 [ --disable-libtool-lock avoid locking (might break parallel builds)]) 207 AC_ARG_ENABLE([libtool-lock], 208 [AC_HELP_STRING([--disable-libtool-lock], 209 [avoid locking (might break parallel builds)])]) 893 210 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 894 211 895 # Some flags need to be propagated to the compiler or linker for good 896 # libtool support. 897 case $host in 898 *-*-irix6*) 899 # Find out which ABI we are using. 900 echo '[#]line __oline__ "configure"' > conftest.$ac_ext 901 if AC_TRY_EVAL(ac_compile); then 902 case `/usr/bin/file conftest.$ac_objext` in 903 *32-bit*) 904 LD="${LD-ld} -32" 905 ;; 906 *N32*) 907 LD="${LD-ld} -n32" 908 ;; 909 *64-bit*) 910 LD="${LD-ld} -64" 911 ;; 912 esac 913 fi 914 rm -rf conftest* 915 ;; 916 917 *-*-sco3.2v5*) 918 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 919 SAVE_CFLAGS="$CFLAGS" 920 CFLAGS="$CFLAGS -belf" 921 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 922 [AC_LANG_SAVE 923 AC_LANG_C 924 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 925 AC_LANG_RESTORE]) 926 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 927 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 928 CFLAGS="$SAVE_CFLAGS" 929 fi 930 ;; 931 932 ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], 933 [*-*-cygwin* | *-*-mingw* | *-*-pw32*) 934 AC_CHECK_TOOL(DLLTOOL, dlltool, false) 935 AC_CHECK_TOOL(AS, as, false) 936 AC_CHECK_TOOL(OBJDUMP, objdump, false) 937 938 # recent cygwin and mingw systems supply a stub DllMain which the user 939 # can override, but on older systems we have to supply one 940 AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain, 941 [AC_TRY_LINK([], 942 [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*); 943 DllMain (0, 0, 0);], 944 [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])]) 945 946 case $host/$CC in 947 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*) 948 # old mingw systems require "-dll" to link a DLL, while more recent ones 949 # require "-mdll" 950 SAVE_CFLAGS="$CFLAGS" 951 CFLAGS="$CFLAGS -mdll" 952 AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch, 953 [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])]) 954 CFLAGS="$SAVE_CFLAGS" ;; 955 *-*-cygwin* | *-*-pw32*) 956 # cygwin systems need to pass --dll to the linker, and not link 957 # crt.o which will require a WinMain@16 definition. 958 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;; 959 esac 960 ;; 961 ]) 962 esac 963 964 _LT_AC_LTCONFIG_HACK 965 966 ]) 967 968 # AC_LIBTOOL_HEADER_ASSERT 969 # ------------------------ 970 AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT], 971 [AC_CACHE_CHECK([whether $CC supports assert without backlinking], 972 [lt_cv_func_assert_works], 973 [case $host in 974 *-*-solaris*) 975 if test "$GCC" = yes && test "$with_gnu_ld" != yes; then 976 case `$CC --version 2>/dev/null` in 977 [[12]].*) lt_cv_func_assert_works=no ;; 978 *) lt_cv_func_assert_works=yes ;; 979 esac 980 fi 981 ;; 982 esac]) 983 984 if test "x$lt_cv_func_assert_works" = xyes; then 985 AC_CHECK_HEADERS(assert.h) 986 fi 987 ])# AC_LIBTOOL_HEADER_ASSERT 988 989 # _LT_AC_CHECK_DLFCN 990 # -------------------- 991 AC_DEFUN([_LT_AC_CHECK_DLFCN], 992 [AC_CHECK_HEADERS(dlfcn.h) 993 ])# _LT_AC_CHECK_DLFCN 994 995 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 996 # --------------------------------- 997 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], 998 [AC_REQUIRE([AC_CANONICAL_HOST]) 999 AC_REQUIRE([AC_PROG_NM]) 1000 AC_REQUIRE([AC_OBJEXT]) 1001 # Check for command to grab the raw symbol name followed by C symbol from nm. 1002 AC_MSG_CHECKING([command to parse $NM output]) 1003 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl 1004 1005 # These are sane defaults that work on at least a few old systems. 1006 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 1007 1008 # Character class describing NM global symbol codes. 1009 symcode='[[BCDEGRST]]' 1010 1011 # Regexp to match symbols that can be accessed directly from C. 1012 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 1013 1014 # Transform the above into a raw symbol and a C symbol. 1015 symxfrm='\1 \2\3 \3' 1016 1017 # Transform an extracted symbol line into a proper C declaration 1018 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" 1019 1020 # Transform an extracted symbol line into symbol name and symbol address 1021 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 1022 1023 # Define system-specific variables. 1024 case $host_os in 1025 aix*) 1026 symcode='[[BCDT]]' 1027 ;; 1028 cygwin* | mingw* | pw32*) 1029 symcode='[[ABCDGISTW]]' 1030 ;; 1031 hpux*) # Its linker distinguishes data from code symbols 1032 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 1033 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 1034 ;; 1035 irix* | nonstopux*) 1036 symcode='[[BCDEGRST]]' 1037 ;; 1038 osf*) 1039 symcode='[[BCDEGQRST]]' 1040 ;; 1041 solaris* | sysv5*) 1042 symcode='[[BDT]]' 1043 ;; 1044 sysv4) 1045 symcode='[[DFNSTU]]' 1046 ;; 1047 esac 1048 1049 # Handle CRLF in mingw tool chain 1050 opt_cr= 1051 case $host_os in 1052 mingw*) 1053 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 1054 ;; 1055 esac 1056 1057 # If we're using GNU nm, then use its standard symbol codes. 1058 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then 1059 symcode='[[ABCDGISTW]]' 1060 fi 1061 1062 # Try without a prefix undercore, then with it. 1063 for ac_symprfx in "" "_"; do 1064 1065 # Write the raw and C identifiers. 1066 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 1067 1068 # Check to see that the pipe works correctly. 1069 pipe_works=no 1070 rm -f conftest* 1071 cat > conftest.$ac_ext <<EOF 1072 #ifdef __cplusplus 1073 extern "C" { 1074 #endif 1075 char nm_test_var; 1076 void nm_test_func(){} 1077 #ifdef __cplusplus 1078 } 1079 #endif 1080 int main(){nm_test_var='a';nm_test_func();return(0);} 1081 EOF 1082 1083 if AC_TRY_EVAL(ac_compile); then 1084 # Now try to grab the symbols. 1085 nlist=conftest.nm 1086 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then 1087 # Try sorting and uniquifying the output. 1088 if sort "$nlist" | uniq > "$nlist"T; then 1089 mv -f "$nlist"T "$nlist" 1090 else 1091 rm -f "$nlist"T 1092 fi 1093 1094 # Make sure that we snagged all the symbols we need. 1095 if egrep ' nm_test_var$' "$nlist" >/dev/null; then 1096 if egrep ' nm_test_func$' "$nlist" >/dev/null; then 1097 cat <<EOF > conftest.$ac_ext 1098 #ifdef __cplusplus 1099 extern "C" { 1100 #endif 1101 1102 EOF 1103 # Now generate the symbol file. 1104 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' 1105 1106 cat <<EOF >> conftest.$ac_ext 1107 #if defined (__STDC__) && __STDC__ 1108 # define lt_ptr void * 1109 #else 1110 # define lt_ptr char * 1111 # define const 1112 #endif 1113 1114 /* The mapping between symbol names and symbols. */ 1115 const struct { 1116 const char *name; 1117 lt_ptr address; 1118 } 1119 lt_preloaded_symbols[[]] = 1120 { 1121 EOF 1122 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext 1123 cat <<\EOF >> conftest.$ac_ext 1124 {0, (lt_ptr) 0} 1125 }; 1126 1127 #ifdef __cplusplus 1128 } 1129 #endif 1130 EOF 1131 # Now try linking the two files. 1132 mv conftest.$ac_objext conftstm.$ac_objext 1133 save_LIBS="$LIBS" 1134 save_CFLAGS="$CFLAGS" 1135 LIBS="conftstm.$ac_objext" 1136 CFLAGS="$CFLAGS$no_builtin_flag" 1137 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then 1138 pipe_works=yes 1139 fi 1140 LIBS="$save_LIBS" 1141 CFLAGS="$save_CFLAGS" 1142 else 1143 echo "cannot find nm_test_func in $nlist" >&AC_FD_CC 1144 fi 1145 else 1146 echo "cannot find nm_test_var in $nlist" >&AC_FD_CC 1147 fi 1148 else 1149 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC 1150 fi 1151 else 1152 echo "$progname: failed program was:" >&AC_FD_CC 1153 cat conftest.$ac_ext >&5 1154 fi 1155 rm -f conftest* conftst* 1156 1157 # Do not use the global_symbol_pipe unless it works. 1158 if test "$pipe_works" = yes; then 1159 break 1160 else 1161 lt_cv_sys_global_symbol_pipe= 1162 fi 1163 done 1164 ]) 1165 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" 1166 if test -z "$lt_cv_sys_global_symbol_pipe"; then 1167 global_symbol_to_cdecl= 1168 global_symbol_to_c_name_address= 1169 else 1170 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" 1171 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" 1172 fi 1173 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; 1174 then 1175 AC_MSG_RESULT(failed) 1176 else 1177 AC_MSG_RESULT(ok) 1178 fi 1179 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 1180 1181 # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR 1182 # --------------------------------- 1183 AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR], 1184 [# Find the correct PATH separator. Usually this is `:', but 1185 # DJGPP uses `;' like DOS. 1186 if test "X${PATH_SEPARATOR+set}" != Xset; then 1187 UNAME=${UNAME-`uname 2>/dev/null`} 1188 case X$UNAME in 1189 *-DOS) lt_cv_sys_path_separator=';' ;; 1190 *) lt_cv_sys_path_separator=':' ;; 1191 esac 1192 PATH_SEPARATOR=$lt_cv_sys_path_separator 1193 fi 1194 ])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR 212 AC_ARG_WITH([pic], 213 [AC_HELP_STRING([--with-pic], 214 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 215 [pic_mode="$withval"], 216 [pic_mode=default]) 217 test -z "$pic_mode" && pic_mode=default 218 219 # Use C for the default configuration in the libtool script 220 tagname= 221 AC_LIBTOOL_LANG_C_CONFIG 222 _LT_AC_TAGCONFIG 223 ])# AC_LIBTOOL_SETUP 224 225 226 # _LT_AC_SYS_COMPILER 227 # ------------------- 228 AC_DEFUN([_LT_AC_SYS_COMPILER], 229 [AC_REQUIRE([AC_PROG_CC])dnl 230 231 # If no C compiler was specified, use CC. 232 LTCC=${LTCC-"$CC"} 233 234 # Allow CC to be a program name with arguments. 235 compiler=$CC 236 ])# _LT_AC_SYS_COMPILER 237 238 239 # _LT_AC_SYS_LIBPATH_AIX 240 # ---------------------- 241 # Links a minimal program and checks the executable 242 # for the system default hardcoded library path. In most cases, 243 # this is /usr/lib:/lib, but when the MPI compilers are used 244 # the location of the communication and MPI libs are included too. 245 # If we don't find anything, use the default library path according 246 # to the aix ld manual. 247 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], 248 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 249 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 250 }'` 251 # Check for a 64-bit object if we didn't find anything. 252 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; } 253 }'`; fi],[]) 254 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 255 ])# _LT_AC_SYS_LIBPATH_AIX 256 257 258 # _LT_AC_SHELL_INIT(ARG) 259 # ---------------------- 260 AC_DEFUN([_LT_AC_SHELL_INIT], 261 [ifdef([AC_DIVERSION_NOTICE], 262 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 263 [AC_DIVERT_PUSH(NOTICE)]) 264 $1 265 AC_DIVERT_POP 266 ])# _LT_AC_SHELL_INIT 267 1195 268 1196 269 # _LT_AC_PROG_ECHO_BACKSLASH … … 1199 272 # will find an echo command which doesn't interpret backslashes. 1200 273 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], 1201 [ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 1202 [AC_DIVERT_PUSH(NOTICE)]) 1203 _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR 1204 274 [_LT_AC_SHELL_INIT([ 1205 275 # Check that we are running under the correct shell. 1206 276 SHELL=${CONFIG_SHELL-/bin/sh} … … 1220 290 # Avoid inline document here, it may be left over 1221 291 : 1222 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then292 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 1223 293 # Yippee, $echo works! 1224 294 : … … 1232 302 shift 1233 303 cat <<EOF 1234 $*304 [$]* 1235 305 EOF 1236 306 exit 0 … … 1266 336 # So, first we look for a working echo in the user's PATH. 1267 337 1268 IFS="${IFS= }";save_ifs="$IFS"; IFS=$PATH_SEPARATOR338 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 1269 339 for dir in $PATH /usr/ucb; do 340 IFS="$lt_save_ifs" 1270 341 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 1271 342 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && … … 1276 347 fi 1277 348 done 1278 IFS="$ save_ifs"349 IFS="$lt_save_ifs" 1279 350 1280 351 if test "X$echo" = Xecho; then … … 1349 420 1350 421 AC_SUBST(ECHO) 1351 AC_DIVERT_POP 1352 ])# _LT_AC_PROG_ECHO_BACKSLASH 422 ])])# _LT_AC_PROG_ECHO_BACKSLASH 423 424 425 # _LT_AC_LOCK 426 # ----------- 427 AC_DEFUN([_LT_AC_LOCK], 428 [AC_ARG_ENABLE([libtool-lock], 429 [AC_HELP_STRING([--disable-libtool-lock], 430 [avoid locking (might break parallel builds)])]) 431 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 432 433 # Some flags need to be propagated to the compiler or linker for good 434 # libtool support. 435 case $host in 436 ia64-*-hpux*) 437 # Find out which ABI we are using. 438 echo 'int i;' > conftest.$ac_ext 439 if AC_TRY_EVAL(ac_compile); then 440 case `/usr/bin/file conftest.$ac_objext` in 441 *ELF-32*) 442 HPUX_IA64_MODE="32" 443 ;; 444 *ELF-64*) 445 HPUX_IA64_MODE="64" 446 ;; 447 esac 448 fi 449 rm -rf conftest* 450 ;; 451 *-*-irix6*) 452 # Find out which ABI we are using. 453 echo '[#]line __oline__ "configure"' > conftest.$ac_ext 454 if AC_TRY_EVAL(ac_compile); then 455 if test "$lt_cv_prog_gnu_ld" = yes; then 456 case `/usr/bin/file conftest.$ac_objext` in 457 *32-bit*) 458 LD="${LD-ld} -melf32bsmip" 459 ;; 460 *N32*) 461 LD="${LD-ld} -melf32bmipn32" 462 ;; 463 *64-bit*) 464 LD="${LD-ld} -melf64bmip" 465 ;; 466 esac 467 else 468 case `/usr/bin/file conftest.$ac_objext` in 469 *32-bit*) 470 LD="${LD-ld} -32" 471 ;; 472 *N32*) 473 LD="${LD-ld} -n32" 474 ;; 475 *64-bit*) 476 LD="${LD-ld} -64" 477 ;; 478 esac 479 fi 480 fi 481 rm -rf conftest* 482 ;; 483 484 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 485 # Find out which ABI we are using. 486 echo 'int i;' > conftest.$ac_ext 487 if AC_TRY_EVAL(ac_compile); then 488 case "`/usr/bin/file conftest.o`" in 489 *32-bit*) 490 case $host in 491 x86_64-*linux*) 492 LD="${LD-ld} -m elf_i386" 493 ;; 494 ppc64-*linux*|powerpc64-*linux*) 495 LD="${LD-ld} -m elf32ppclinux" 496 ;; 497 s390x-*linux*) 498 LD="${LD-ld} -m elf_s390" 499 ;; 500 sparc64-*linux*) 501 LD="${LD-ld} -m elf32_sparc" 502 ;; 503 esac 504 ;; 505 *64-bit*) 506 case $host in 507 x86_64-*linux*) 508 LD="${LD-ld} -m elf_x86_64" 509 ;; 510 ppc*-*linux*|powerpc*-*linux*) 511 LD="${LD-ld} -m elf64ppc" 512 ;; 513 s390*-*linux*) 514 LD="${LD-ld} -m elf64_s390" 515 ;; 516 sparc*-*linux*) 517 LD="${LD-ld} -m elf64_sparc" 518 ;; 519 esac 520 ;; 521 esac 522 fi 523 rm -rf conftest* 524 ;; 525 526 *-*-sco3.2v5*) 527 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 528 SAVE_CFLAGS="$CFLAGS" 529 CFLAGS="$CFLAGS -belf" 530 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 531 [AC_LANG_PUSH(C) 532 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 533 AC_LANG_POP]) 534 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 535 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 536 CFLAGS="$SAVE_CFLAGS" 537 fi 538 ;; 539 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 540 [*-*-cygwin* | *-*-mingw* | *-*-pw32*) 541 AC_CHECK_TOOL(DLLTOOL, dlltool, false) 542 AC_CHECK_TOOL(AS, as, false) 543 AC_CHECK_TOOL(OBJDUMP, objdump, false) 544 ;; 545 ]) 546 esac 547 548 need_locks="$enable_libtool_lock" 549 550 ])# _LT_AC_LOCK 551 552 553 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 554 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 555 # ---------------------------------------------------------------- 556 # Check whether the given compiler option works 557 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], 558 [AC_REQUIRE([LT_AC_PROG_SED]) 559 AC_CACHE_CHECK([$1], [$2], 560 [$2=no 561 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 562 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 563 lt_compiler_flag="$3" 564 # Insert the option either (1) after the last *FLAGS variable, or 565 # (2) before a word containing "conftest.", or (3) at the end. 566 # Note that $ac_compile itself does not contain backslashes and begins 567 # with a dollar sign (not a hyphen), so the echo should work correctly. 568 # The option is referenced via a variable to avoid confusing sed. 569 lt_compile=`echo "$ac_compile" | $SED \ 570 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 571 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 572 -e 's:$: $lt_compiler_flag:'` 573 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 574 (eval "$lt_compile" 2>conftest.err) 575 ac_status=$? 576 cat conftest.err >&AS_MESSAGE_LOG_FD 577 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 578 if (exit $ac_status) && test -s "$ac_outfile"; then 579 # The compiler can only warn and ignore the option if not recognized 580 # So say no if there are warnings 581 if test ! -s conftest.err; then 582 $2=yes 583 fi 584 fi 585 $rm conftest* 586 ]) 587 588 if test x"[$]$2" = xyes; then 589 ifelse([$5], , :, [$5]) 590 else 591 ifelse([$6], , :, [$6]) 592 fi 593 ])# AC_LIBTOOL_COMPILER_OPTION 594 595 596 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 597 # [ACTION-SUCCESS], [ACTION-FAILURE]) 598 # ------------------------------------------------------------ 599 # Check whether the given compiler option works 600 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], 601 [AC_CACHE_CHECK([$1], [$2], 602 [$2=no 603 save_LDFLAGS="$LDFLAGS" 604 LDFLAGS="$LDFLAGS $3" 605 printf "$lt_simple_link_test_code" > conftest.$ac_ext 606 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 607 # The compiler can only warn and ignore the option if not recognized 608 # So say no if there are warnings 609 if test -s conftest.err; then 610 # Append any errors to the config.log. 611 cat conftest.err 1>&AS_MESSAGE_LOG_FD 612 else 613 $2=yes 614 fi 615 fi 616 $rm conftest* 617 LDFLAGS="$save_LDFLAGS" 618 ]) 619 620 if test x"[$]$2" = xyes; then 621 ifelse([$4], , :, [$4]) 622 else 623 ifelse([$5], , :, [$5]) 624 fi 625 ])# AC_LIBTOOL_LINKER_OPTION 626 627 628 # AC_LIBTOOL_SYS_MAX_CMD_LEN 629 # -------------------------- 630 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], 631 [# find the maximum length of command line arguments 632 AC_MSG_CHECKING([the maximum length of command line arguments]) 633 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 634 i=0 635 teststring="ABCD" 636 637 case $build_os in 638 msdosdjgpp*) 639 # On DJGPP, this test can blow up pretty badly due to problems in libc 640 # (any single argument exceeding 2000 bytes causes a buffer overrun 641 # during glob expansion). Even if it were fixed, the result of this 642 # check would be larger than it should be. 643 lt_cv_sys_max_cmd_len=12288; # 12K is about right 644 ;; 645 646 gnu*) 647 # Under GNU Hurd, this test is not required because there is 648 # no limit to the length of command line arguments. 649 # Libtool will interpret -1 as no limit whatsoever 650 lt_cv_sys_max_cmd_len=-1; 651 ;; 652 653 cygwin* | mingw*) 654 # On Win9x/ME, this test blows up -- it succeeds, but takes 655 # about 5 minutes as the teststring grows exponentially. 656 # Worse, since 9x/ME are not pre-emptively multitasking, 657 # you end up with a "frozen" computer, even though with patience 658 # the test eventually succeeds (with a max line length of 256k). 659 # Instead, let's just punt: use the minimum linelength reported by 660 # all of the supported platforms: 8192 (on NT/2K/XP). 661 lt_cv_sys_max_cmd_len=8192; 662 ;; 663 664 amigaos*) 665 # On AmigaOS with pdksh, this test takes hours, literally. 666 # So we just punt and use a minimum line length of 8192. 667 lt_cv_sys_max_cmd_len=8192; 668 ;; 669 670 *) 671 # If test is not a shell built-in, we'll probably end up computing a 672 # maximum length that is only half of the actual maximum length, but 673 # we can't tell. 674 while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 675 = "XX$teststring") >/dev/null 2>&1 && 676 new_result=`expr "X$teststring" : ".*" 2>&1` && 677 lt_cv_sys_max_cmd_len=$new_result && 678 test $i != 17 # 1/2 MB should be enough 679 do 680 i=`expr $i + 1` 681 teststring=$teststring$teststring 682 done 683 teststring= 684 # Add a significant safety factor because C++ compilers can tack on massive 685 # amounts of additional arguments before passing them to the linker. 686 # It appears as though 1/2 is a usable value. 687 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 688 ;; 689 esac 690 ]) 691 if test -n $lt_cv_sys_max_cmd_len ; then 692 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 693 else 694 AC_MSG_RESULT(none) 695 fi 696 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN 697 698 699 # _LT_AC_CHECK_DLFCN 700 # -------------------- 701 AC_DEFUN([_LT_AC_CHECK_DLFCN], 702 [AC_CHECK_HEADERS(dlfcn.h)dnl 703 ])# _LT_AC_CHECK_DLFCN 704 1353 705 1354 706 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, … … 1356 708 # ------------------------------------------------------------------ 1357 709 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], 1358 [if test "$cross_compiling" = yes; then : 710 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 711 if test "$cross_compiling" = yes; then : 1359 712 [$4] 1360 713 else 1361 AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl1362 714 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 1363 715 lt_status=$lt_dlunknown … … 1440 792 ])# _LT_AC_TRY_DLOPEN_SELF 1441 793 794 1442 795 # AC_LIBTOOL_DLOPEN_SELF 1443 796 # ------------------- 1444 797 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], 1445 [if test "x$enable_dlopen" != xyes; then 798 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 799 if test "x$enable_dlopen" != xyes; then 1446 800 enable_dlopen=unknown 1447 801 enable_dlopen_self=unknown … … 1458 812 ;; 1459 813 1460 cygwin* |mingw* | pw32*)814 mingw* | pw32*) 1461 815 lt_cv_dlopen="LoadLibrary" 1462 816 lt_cv_dlopen_libs= 1463 817 ;; 1464 818 819 cygwin*) 820 lt_cv_dlopen="dlopen" 821 lt_cv_dlopen_libs= 822 ;; 823 824 darwin*) 825 # if libdl is installed we need to link against it 826 AC_CHECK_LIB([dl], [dlopen], 827 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 828 lt_cv_dlopen="dyld" 829 lt_cv_dlopen_libs= 830 lt_cv_dlopen_self=yes 831 ]) 832 ;; 833 1465 834 *) 1466 835 AC_CHECK_FUNC([shl_load], 1467 [lt_cv_dlopen="shl_load"],836 [lt_cv_dlopen="shl_load"], 1468 837 [AC_CHECK_LIB([dld], [shl_load], 1469 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],838 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], 1470 839 [AC_CHECK_FUNC([dlopen], 1471 840 [lt_cv_dlopen="dlopen"], 1472 841 [AC_CHECK_LIB([dl], [dlopen], 1473 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],842 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 1474 843 [AC_CHECK_LIB([svld], [dlopen], 1475 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],844 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 1476 845 [AC_CHECK_LIB([dld], [dld_link], 1477 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])846 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) 1478 847 ]) 1479 848 ]) … … 1493 862 dlopen) 1494 863 save_CPPFLAGS="$CPPFLAGS" 1495 AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl1496 864 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 1497 865 … … 1537 905 ])# AC_LIBTOOL_DLOPEN_SELF 1538 906 1539 AC_DEFUN([_LT_AC_LTCONFIG_HACK], 1540 [AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl 1541 # Sed substitution that helps us do robust quoting. It backslashifies 1542 # metacharacters that are still active within double-quoted strings. 1543 Xsed='sed -e s/^X//' 1544 sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g' 1545 1546 # Same as above, but do not quote variable references. 1547 double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g' 1548 1549 # Sed substitution to delay expansion of an escaped shell variable in a 1550 # double_quote_subst'ed string. 1551 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 1552 1553 # Constants: 1554 rm="rm -f" 1555 1556 # Global variables: 1557 default_ofile=libtool 1558 can_build_shared=yes 1559 1560 # All known linkers require a `.a' archive for static linking (except M$VC, 1561 # which needs '.lib'). 1562 libext=a 1563 ltmain="$ac_aux_dir/ltmain.sh" 1564 ofile="$default_ofile" 1565 with_gnu_ld="$lt_cv_prog_gnu_ld" 1566 need_locks="$enable_libtool_lock" 1567 1568 old_CC="$CC" 1569 old_CFLAGS="$CFLAGS" 1570 1571 # Set sane defaults for various variables 1572 test -z "$AR" && AR=ar 1573 test -z "$AR_FLAGS" && AR_FLAGS=cru 1574 test -z "$AS" && AS=as 1575 test -z "$CC" && CC=cc 1576 test -z "$DLLTOOL" && DLLTOOL=dlltool 1577 test -z "$LD" && LD=ld 1578 test -z "$LN_S" && LN_S="ln -s" 1579 test -z "$MAGIC_CMD" && MAGIC_CMD=file 1580 test -z "$NM" && NM=nm 1581 test -z "$OBJDUMP" && OBJDUMP=objdump 1582 test -z "$RANLIB" && RANLIB=: 1583 test -z "$STRIP" && STRIP=: 1584 test -z "$ac_objext" && ac_objext=o 1585 1586 if test x"$host" != x"$build"; then 1587 ac_tool_prefix=${host_alias}- 1588 else 1589 ac_tool_prefix= 1590 fi 1591 1592 # Transform linux* to *-*-linux-gnu*, to support old configure scripts. 1593 case $host_os in 1594 linux-gnu*) ;; 1595 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 1596 esac 1597 1598 case $host_os in 1599 aix3*) 1600 # AIX sometimes has problems with the GCC collect2 program. For some 1601 # reason, if we set the COLLECT_NAMES environment variable, the problems 1602 # vanish in a puff of smoke. 1603 if test "X${COLLECT_NAMES+set}" != Xset; then 1604 COLLECT_NAMES= 1605 export COLLECT_NAMES 1606 fi 1607 ;; 1608 esac 1609 1610 # Determine commands to create old-style static archives. 1611 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 1612 old_postinstall_cmds='chmod 644 $oldlib' 1613 old_postuninstall_cmds= 1614 1615 if test -n "$RANLIB"; then 1616 case $host_os in 1617 openbsd*) 1618 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 1619 ;; 1620 *) 1621 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 1622 ;; 1623 esac 1624 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 1625 fi 1626 1627 # Allow CC to be a program name with arguments. 1628 set dummy $CC 1629 compiler="[$]2" 1630 1631 AC_MSG_CHECKING([for objdir]) 1632 rm -f .libs 2>/dev/null 1633 mkdir .libs 2>/dev/null 1634 if test -d .libs; then 1635 objdir=.libs 1636 else 1637 # MS-DOS does not allow filenames that begin with a dot. 1638 objdir=_libs 1639 fi 1640 rmdir .libs 2>/dev/null 1641 AC_MSG_RESULT($objdir) 1642 1643 1644 AC_ARG_WITH(pic, 1645 [ --with-pic try to use only PIC/non-PIC objects [default=use both]], 1646 pic_mode="$withval", pic_mode=default) 1647 test -z "$pic_mode" && pic_mode=default 1648 1649 # We assume here that the value for lt_cv_prog_cc_pic will not be cached 1650 # in isolation, and that seeing it set (from the cache) indicates that 1651 # the associated values are set (in the cache) correctly too. 1652 AC_MSG_CHECKING([for $compiler option to produce PIC]) 1653 AC_CACHE_VAL(lt_cv_prog_cc_pic, 1654 [ lt_cv_prog_cc_pic= 1655 lt_cv_prog_cc_shlib= 1656 lt_cv_prog_cc_wl= 1657 lt_cv_prog_cc_static= 1658 lt_cv_prog_cc_no_builtin= 1659 lt_cv_prog_cc_can_build_shared=$can_build_shared 1660 1661 if test "$GCC" = yes; then 1662 lt_cv_prog_cc_wl='-Wl,' 1663 lt_cv_prog_cc_static='-static' 1664 1665 case $host_os in 1666 aix*) 1667 # Below there is a dirty hack to force normal static linking with -ldl 1668 # The problem is because libdl dynamically linked with both libc and 1669 # libC (AIX C++ library), which obviously doesn't included in libraries 1670 # list by gcc. This cause undefined symbols with -static flags. 1671 # This hack allows C programs to be linked with "-static -ldl", but 1672 # not sure about C++ programs. 1673 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" 1674 ;; 1675 amigaos*) 1676 # FIXME: we need at least 68020 code to build shared libraries, but 1677 # adding the `-m68020' flag to GCC prevents building anything better, 1678 # like `-m68040'. 1679 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' 1680 ;; 1681 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 1682 # PIC is the default for these OSes. 1683 ;; 1684 darwin* | rhapsody*) 1685 # PIC is the default on this platform 1686 # Common symbols not allowed in MH_DYLIB files 1687 lt_cv_prog_cc_pic='-fno-common' 1688 ;; 1689 cygwin* | mingw* | pw32* | os2*) 1690 # This hack is so that the source file can tell whether it is being 1691 # built for inclusion in a dll (and should export symbols for example). 1692 lt_cv_prog_cc_pic='-DDLL_EXPORT' 1693 ;; 1694 sysv4*MP*) 1695 if test -d /usr/nec; then 1696 lt_cv_prog_cc_pic=-Kconform_pic 1697 fi 1698 ;; 1699 *) 1700 lt_cv_prog_cc_pic='-fPIC' 1701 ;; 1702 esac 1703 else 1704 # PORTME Check for PIC flags for the system compiler. 1705 case $host_os in 1706 aix3* | aix4* | aix5*) 1707 lt_cv_prog_cc_wl='-Wl,' 1708 # All AIX code is PIC. 1709 if test "$host_cpu" = ia64; then 1710 # AIX 5 now supports IA64 processor 1711 lt_cv_prog_cc_static='-Bstatic' 1712 else 1713 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' 1714 fi 1715 ;; 1716 1717 hpux9* | hpux10* | hpux11*) 1718 # Is there a better lt_cv_prog_cc_static that works with the bundled CC? 1719 lt_cv_prog_cc_wl='-Wl,' 1720 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" 1721 lt_cv_prog_cc_pic='+Z' 1722 ;; 1723 1724 irix5* | irix6* | nonstopux*) 1725 lt_cv_prog_cc_wl='-Wl,' 1726 lt_cv_prog_cc_static='-non_shared' 1727 # PIC (with -KPIC) is the default. 1728 ;; 1729 1730 cygwin* | mingw* | pw32* | os2*) 1731 # This hack is so that the source file can tell whether it is being 1732 # built for inclusion in a dll (and should export symbols for example). 1733 lt_cv_prog_cc_pic='-DDLL_EXPORT' 1734 ;; 1735 1736 newsos6) 1737 lt_cv_prog_cc_pic='-KPIC' 1738 lt_cv_prog_cc_static='-Bstatic' 1739 ;; 1740 1741 osf3* | osf4* | osf5*) 1742 # All OSF/1 code is PIC. 1743 lt_cv_prog_cc_wl='-Wl,' 1744 lt_cv_prog_cc_static='-non_shared' 1745 ;; 1746 1747 sco3.2v5*) 1748 lt_cv_prog_cc_pic='-Kpic' 1749 lt_cv_prog_cc_static='-dn' 1750 lt_cv_prog_cc_shlib='-belf' 1751 ;; 1752 1753 solaris*) 1754 lt_cv_prog_cc_pic='-KPIC' 1755 lt_cv_prog_cc_static='-Bstatic' 1756 lt_cv_prog_cc_wl='-Wl,' 1757 ;; 1758 1759 sunos4*) 1760 lt_cv_prog_cc_pic='-PIC' 1761 lt_cv_prog_cc_static='-Bstatic' 1762 lt_cv_prog_cc_wl='-Qoption ld ' 1763 ;; 1764 1765 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 1766 lt_cv_prog_cc_pic='-KPIC' 1767 lt_cv_prog_cc_static='-Bstatic' 1768 lt_cv_prog_cc_wl='-Wl,' 1769 ;; 1770 1771 uts4*) 1772 lt_cv_prog_cc_pic='-pic' 1773 lt_cv_prog_cc_static='-Bstatic' 1774 ;; 1775 1776 sysv4*MP*) 1777 if test -d /usr/nec ;then 1778 lt_cv_prog_cc_pic='-Kconform_pic' 1779 lt_cv_prog_cc_static='-Bstatic' 1780 fi 1781 ;; 1782 1783 *) 1784 lt_cv_prog_cc_can_build_shared=no 1785 ;; 1786 esac 1787 fi 907 908 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) 909 # --------------------------------- 910 # Check to see if options -c and -o are simultaneously supported by compiler 911 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], 912 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 913 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 914 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 915 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 916 $rm -r conftest 2>/dev/null 917 mkdir conftest 918 cd conftest 919 mkdir out 920 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 921 922 lt_compiler_flag="-o out/conftest2.$ac_objext" 923 # Insert the option either (1) after the last *FLAGS variable, or 924 # (2) before a word containing "conftest.", or (3) at the end. 925 # Note that $ac_compile itself does not contain backslashes and begins 926 # with a dollar sign (not a hyphen), so the echo should work correctly. 927 lt_compile=`echo "$ac_compile" | $SED \ 928 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 929 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 930 -e 's:$: $lt_compiler_flag:'` 931 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 932 (eval "$lt_compile" 2>out/conftest.err) 933 ac_status=$? 934 cat out/conftest.err >&AS_MESSAGE_LOG_FD 935 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 936 if (exit $ac_status) && test -s out/conftest2.$ac_objext 937 then 938 # The compiler can only warn and ignore the option if not recognized 939 # So say no if there are warnings 940 if test ! -s out/conftest.err; then 941 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 942 fi 943 fi 944 chmod u+w . 945 $rm conftest* 946 # SGI C++ compiler will create directory out/ii_files/ for 947 # template instantiation 948 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 949 $rm out/* && rmdir out 950 cd .. 951 rmdir conftest 952 $rm conftest* 1788 953 ]) 1789 if test -z "$lt_cv_prog_cc_pic"; then 1790 AC_MSG_RESULT([none]) 1791 else 1792 AC_MSG_RESULT([$lt_cv_prog_cc_pic]) 1793 1794 # Check to make sure the pic_flag actually works. 1795 AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works]) 1796 AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl 1797 save_CFLAGS="$CFLAGS" 1798 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" 1799 AC_TRY_COMPILE([], [], [dnl 1800 case $host_os in 1801 hpux9* | hpux10* | hpux11*) 1802 # On HP-UX, both CC and GCC only warn that PIC is supported... then 1803 # they create non-PIC objects. So, if there were any warnings, we 1804 # assume that PIC is not supported. 1805 if test -s conftest.err; then 1806 lt_cv_prog_cc_pic_works=no 1807 else 1808 lt_cv_prog_cc_pic_works=yes 1809 fi 1810 ;; 1811 *) 1812 lt_cv_prog_cc_pic_works=yes 1813 ;; 1814 esac 1815 ], [dnl 1816 lt_cv_prog_cc_pic_works=no 1817 ]) 1818 CFLAGS="$save_CFLAGS" 1819 ]) 1820 1821 if test "X$lt_cv_prog_cc_pic_works" = Xno; then 1822 lt_cv_prog_cc_pic= 1823 lt_cv_prog_cc_can_build_shared=no 1824 else 1825 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" 1826 fi 1827 1828 AC_MSG_RESULT([$lt_cv_prog_cc_pic_works]) 1829 fi 1830 1831 # Check for any special shared library compilation flags. 1832 if test -n "$lt_cv_prog_cc_shlib"; then 1833 AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries]) 1834 if echo "$old_CC $old_CFLAGS " | egrep -e "[[ ]]$lt_cv_prog_cc_shlib[[ ]]" >/dev/null; then : 1835 else 1836 AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure]) 1837 lt_cv_prog_cc_can_build_shared=no 1838 fi 1839 fi 1840 1841 AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works]) 1842 AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl 1843 lt_cv_prog_cc_static_works=no 1844 save_LDFLAGS="$LDFLAGS" 1845 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" 1846 AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes]) 1847 LDFLAGS="$save_LDFLAGS" 1848 ]) 1849 1850 # Belt *and* braces to stop my trousers falling down: 1851 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= 1852 AC_MSG_RESULT([$lt_cv_prog_cc_static_works]) 1853 1854 pic_flag="$lt_cv_prog_cc_pic" 1855 special_shlib_compile_flags="$lt_cv_prog_cc_shlib" 1856 wl="$lt_cv_prog_cc_wl" 1857 link_static_flag="$lt_cv_prog_cc_static" 1858 no_builtin_flag="$lt_cv_prog_cc_no_builtin" 1859 can_build_shared="$lt_cv_prog_cc_can_build_shared" 1860 1861 1862 # Check to see if options -o and -c are simultaneously supported by compiler 1863 AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext]) 1864 AC_CACHE_VAL([lt_cv_compiler_c_o], [ 1865 $rm -r conftest 2>/dev/null 1866 mkdir conftest 1867 cd conftest 1868 echo "int some_variable = 0;" > conftest.$ac_ext 1869 mkdir out 1870 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 1871 # that will create temporary files in the current directory regardless of 1872 # the output directory. Thus, making CWD read-only will cause this test 1873 # to fail, enabling locking or at least warning the user not to do parallel 1874 # builds. 1875 chmod -w . 1876 save_CFLAGS="$CFLAGS" 1877 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" 1878 compiler_c_o=no 1879 if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then 1880 # The compiler can only warn and ignore the option if not recognized 1881 # So say no if there are warnings 1882 if test -s out/conftest.err; then 1883 lt_cv_compiler_c_o=no 1884 else 1885 lt_cv_compiler_c_o=yes 1886 fi 1887 else 1888 # Append any errors to the config.log. 1889 cat out/conftest.err 1>&AC_FD_CC 1890 lt_cv_compiler_c_o=no 1891 fi 1892 CFLAGS="$save_CFLAGS" 1893 chmod u+w . 1894 $rm conftest* out/* 1895 rmdir out 1896 cd .. 1897 rmdir conftest 1898 $rm -r conftest 2>/dev/null 1899 ]) 1900 compiler_c_o=$lt_cv_compiler_c_o 1901 AC_MSG_RESULT([$compiler_c_o]) 1902 1903 if test x"$compiler_c_o" = x"yes"; then 1904 # Check to see if we can write to a .lo 1905 AC_MSG_CHECKING([if $compiler supports -c -o file.lo]) 1906 AC_CACHE_VAL([lt_cv_compiler_o_lo], [ 1907 lt_cv_compiler_o_lo=no 1908 save_CFLAGS="$CFLAGS" 1909 CFLAGS="$CFLAGS -c -o conftest.lo" 1910 save_objext="$ac_objext" 1911 ac_objext=lo 1912 AC_TRY_COMPILE([], [int some_variable = 0;], [dnl 1913 # The compiler can only warn and ignore the option if not recognized 1914 # So say no if there are warnings 1915 if test -s conftest.err; then 1916 lt_cv_compiler_o_lo=no 1917 else 1918 lt_cv_compiler_o_lo=yes 1919 fi 1920 ]) 1921 ac_objext="$save_objext" 1922 CFLAGS="$save_CFLAGS" 1923 ]) 1924 compiler_o_lo=$lt_cv_compiler_o_lo 1925 AC_MSG_RESULT([$compiler_o_lo]) 1926 else 1927 compiler_o_lo=no 1928 fi 1929 954 ])# AC_LIBTOOL_PROG_CC_C_O 955 956 957 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) 958 # ----------------------------------------- 1930 959 # Check to see if we can do hard links to lock some files if needed 960 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], 961 [AC_REQUIRE([_LT_AC_LOCK])dnl 962 1931 963 hard_links="nottested" 1932 if test "$ compiler_c_o" = no && test "$need_locks" != no; then964 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 1933 965 # do not overwrite the value of need_locks provided by the user 1934 966 AC_MSG_CHECKING([if we can lock with hard links]) … … 1941 973 AC_MSG_RESULT([$hard_links]) 1942 974 if test "$hard_links" = no; then 1943 AC_MSG_WARN([ \`$CC' does not support \`-c -o', so \`make -j' may be unsafe])975 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) 1944 976 need_locks=warn 1945 977 fi … … 1947 979 need_locks=no 1948 980 fi 1949 981 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS 982 983 984 # AC_LIBTOOL_OBJDIR 985 # ----------------- 986 AC_DEFUN([AC_LIBTOOL_OBJDIR], 987 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 988 [rm -f .libs 2>/dev/null 989 mkdir .libs 2>/dev/null 990 if test -d .libs; then 991 lt_cv_objdir=.libs 992 else 993 # MS-DOS does not allow filenames that begin with a dot. 994 lt_cv_objdir=_libs 995 fi 996 rmdir .libs 2>/dev/null]) 997 objdir=$lt_cv_objdir 998 ])# AC_LIBTOOL_OBJDIR 999 1000 1001 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) 1002 # ---------------------------------------------- 1003 # Check hardcoding attributes. 1004 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], 1005 [AC_MSG_CHECKING([how to hardcode library paths into programs]) 1006 _LT_AC_TAGVAR(hardcode_action, $1)= 1007 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ 1008 test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \ 1009 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then 1010 1011 # We can hardcode non-existant directories. 1012 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && 1013 # If the only mechanism to avoid hardcoding is shlibpath_var, we 1014 # have to relink, otherwise we might link with an installed library 1015 # when we should be linking with a yet-to-be-installed one 1016 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && 1017 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then 1018 # Linking always hardcodes the temporary library directory. 1019 _LT_AC_TAGVAR(hardcode_action, $1)=relink 1020 else 1021 # We can link without hardcoding, and we can hardcode nonexisting dirs. 1022 _LT_AC_TAGVAR(hardcode_action, $1)=immediate 1023 fi 1024 else 1025 # We cannot hardcode anything, or else we can only hardcode existing 1026 # directories. 1027 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported 1028 fi 1029 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) 1030 1031 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then 1032 # Fast installation is not supported 1033 enable_fast_install=no 1034 elif test "$shlibpath_overrides_runpath" = yes || 1035 test "$enable_shared" = no; then 1036 # Fast installation is not necessary 1037 enable_fast_install=needless 1038 fi 1039 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH 1040 1041 1042 # AC_LIBTOOL_SYS_LIB_STRIP 1043 # ------------------------ 1044 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], 1045 [striplib= 1046 old_striplib= 1047 AC_MSG_CHECKING([whether stripping libraries is possible]) 1048 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 1049 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 1050 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 1051 AC_MSG_RESULT([yes]) 1052 else 1053 # FIXME - insert some real tests, host_os isn't really good enough 1054 case $host_os in 1055 darwin*) 1056 if test -n "$STRIP" ; then 1057 striplib="$STRIP -x" 1058 AC_MSG_RESULT([yes]) 1059 else 1060 AC_MSG_RESULT([no]) 1061 fi 1062 ;; 1063 *) 1064 AC_MSG_RESULT([no]) 1065 ;; 1066 esac 1067 fi 1068 ])# AC_LIBTOOL_SYS_LIB_STRIP 1069 1070 1071 # AC_LIBTOOL_SYS_DYNAMIC_LINKER 1072 # ----------------------------- 1073 # PORTME Fill in your ld.so characteristics 1074 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], 1075 [AC_MSG_CHECKING([dynamic linker characteristics]) 1076 library_names_spec= 1077 libname_spec='lib$name' 1078 soname_spec= 1079 shrext_cmds=".so" 1080 postinstall_cmds= 1081 postuninstall_cmds= 1082 finish_cmds= 1083 finish_eval= 1084 shlibpath_var= 1085 shlibpath_overrides_runpath=unknown 1086 version_type=none 1087 dynamic_linker="$host_os ld.so" 1088 sys_lib_dlsearch_path_spec="/lib /usr/lib" 1950 1089 if test "$GCC" = yes; then 1951 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler 1952 AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions]) 1953 echo "int some_variable = 0;" > conftest.$ac_ext 1954 save_CFLAGS="$CFLAGS" 1955 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" 1956 compiler_rtti_exceptions=no 1957 AC_TRY_COMPILE([], [int some_variable = 0;], [dnl 1958 # The compiler can only warn and ignore the option if not recognized 1959 # So say no if there are warnings 1960 if test -s conftest.err; then 1961 compiler_rtti_exceptions=no 1090 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 1091 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 1092 # if the path contains ";" then we assume it to be the separator 1093 # otherwise default to the standard path separator (i.e. ":") - it is 1094 # assumed that no part of a normal pathname contains ";" but that should 1095 # okay in the real world where ";" in dirpaths is itself problematic. 1096 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 1097 else 1098 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 1099 fi 1100 else 1101 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 1102 fi 1103 need_lib_prefix=unknown 1104 hardcode_into_libs=no 1105 1106 # when you set need_version to no, make sure it does not cause -set_version 1107 # flags to be left without arguments 1108 need_version=unknown 1109 1110 case $host_os in 1111 aix3*) 1112 version_type=linux 1113 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 1114 shlibpath_var=LIBPATH 1115 1116 # AIX 3 has no versioning support, so we append a major version to the name. 1117 soname_spec='${libname}${release}${shared_ext}$major' 1118 ;; 1119 1120 aix4* | aix5*) 1121 version_type=linux 1122 need_lib_prefix=no 1123 need_version=no 1124 hardcode_into_libs=yes 1125 if test "$host_cpu" = ia64; then 1126 # AIX 5 supports IA64 1127 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 1128 shlibpath_var=LD_LIBRARY_PATH 1129 else 1130 # With GCC up to 2.95.x, collect2 would create an import file 1131 # for dependence libraries. The import file would start with 1132 # the line `#! .'. This would cause the generated library to 1133 # depend on `.', always an invalid library. This was fixed in 1134 # development snapshots of GCC prior to 3.0. 1135 case $host_os in 1136 aix4 | aix4.[[01]] | aix4.[[01]].*) 1137 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 1138 echo ' yes ' 1139 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 1140 : 1141 else 1142 can_build_shared=no 1143 fi 1144 ;; 1145 esac 1146 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 1147 # soname into executable. Probably we can add versioning support to 1148 # collect2, so additional links can be useful in future. 1149 if test "$aix_use_runtimelinking" = yes; then 1150 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 1151 # instead of lib<name>.a to let people know that these are not 1152 # typical AIX shared libraries. 1153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1962 1154 else 1963 compiler_rtti_exceptions=yes 1155 # We preserve .a as extension for shared libraries through AIX4.2 1156 # and later when we are not doing run time linking. 1157 library_names_spec='${libname}${release}.a $libname.a' 1158 soname_spec='${libname}${release}${shared_ext}$major' 1964 1159 fi 1965 ]) 1966 CFLAGS="$save_CFLAGS" 1967 AC_MSG_RESULT([$compiler_rtti_exceptions]) 1968 1969 if test "$compiler_rtti_exceptions" = "yes"; then 1970 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' 1160 shlibpath_var=LIBPATH 1161 fi 1162 ;; 1163 1164 amigaos*) 1165 library_names_spec='$libname.ixlibrary $libname.a' 1166 # Create ${libname}_ixlibrary.a entries in /sys/libs. 1167 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 1168 ;; 1169 1170 beos*) 1171 library_names_spec='${libname}${shared_ext}' 1172 dynamic_linker="$host_os ld.so" 1173 shlibpath_var=LIBRARY_PATH 1174 ;; 1175 1176 bsdi4*) 1177 version_type=linux 1178 need_version=no 1179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1180 soname_spec='${libname}${release}${shared_ext}$major' 1181 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 1182 shlibpath_var=LD_LIBRARY_PATH 1183 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 1184 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 1185 # the default ld.so.conf also contains /usr/contrib/lib and 1186 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 1187 # libtool to hard-code these into programs 1188 ;; 1189 1190 cygwin* | mingw* | pw32*) 1191 version_type=windows 1192 shrext_cmds=".dll" 1193 need_version=no 1194 need_lib_prefix=no 1195 1196 case $GCC,$host_os in 1197 yes,cygwin* | yes,mingw* | yes,pw32*) 1198 library_names_spec='$libname.dll.a' 1199 # DLL is installed to $(libdir)/../bin by postinstall_cmds 1200 postinstall_cmds='base_file=`basename \${file}`~ 1201 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 1202 dldir=$destdir/`dirname \$dlpath`~ 1203 test -d \$dldir || mkdir -p \$dldir~ 1204 $install_prog $dir/$dlname \$dldir/$dlname' 1205 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 1206 dlpath=$dir/\$dldll~ 1207 $rm \$dlpath' 1208 shlibpath_overrides_runpath=yes 1209 1210 case $host_os in 1211 cygwin*) 1212 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 1213 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 1214 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 1215 ;; 1216 mingw*) 1217 # MinGW DLLs use traditional 'lib' prefix 1218 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 1219 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 1220 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then 1221 # It is most probably a Windows format PATH printed by 1222 # mingw gcc, but we are running on Cygwin. Gcc prints its search 1223 # path with ; separators, and with drive letters. We can handle the 1224 # drive letters (cygwin fileutils understands them), so leave them, 1225 # especially as we might pass files found there to a mingw objdump, 1226 # which wouldn't understand a cygwinified path. Ahh. 1227 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 1228 else 1229 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 1230 fi 1231 ;; 1232 pw32*) 1233 # pw32 DLLs use 'pw' prefix rather than 'lib' 1234 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 1235 ;; 1236 esac 1237 ;; 1238 1239 *) 1240 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 1241 ;; 1242 esac 1243 dynamic_linker='Win32 ld.exe' 1244 # FIXME: first we should search . and the directory the executable is in 1245 shlibpath_var=PATH 1246 ;; 1247 1248 darwin* | rhapsody*) 1249 dynamic_linker="$host_os dyld" 1250 version_type=darwin 1251 need_lib_prefix=no 1252 need_version=no 1253 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 1254 soname_spec='${libname}${release}${major}$shared_ext' 1255 shlibpath_overrides_runpath=yes 1256 shlibpath_var=DYLD_LIBRARY_PATH 1257 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 1258 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 1259 if test "$GCC" = yes; then 1260 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"` 1971 1261 else 1972 no_builtin_flag=' -fno-builtin' 1262 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 1263 fi 1264 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 1265 ;; 1266 1267 dgux*) 1268 version_type=linux 1269 need_lib_prefix=no 1270 need_version=no 1271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 1272 soname_spec='${libname}${release}${shared_ext}$major' 1273 shlibpath_var=LD_LIBRARY_PATH 1274 ;; 1275 1276 freebsd1*) 1277 dynamic_linker=no 1278 ;; 1279 1280 kfreebsd*-gnu) 1281 version_type=linux 1282 need_lib_prefix=no 1283 need_version=no 1284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1285 soname_spec='${libname}${release}${shared_ext}$major' 1286 shlibpath_var=LD_LIBRARY_PATH 1287 shlibpath_overrides_runpath=no 1288 hardcode_into_libs=yes 1289 dynamic_linker='GNU ld.so' 1290 ;; 1291 1292 freebsd*) 1293 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 1294 version_type=freebsd-$objformat 1295 case $version_type in 1296 freebsd-elf*) 1297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 1298 need_version=no 1299 need_lib_prefix=no 1300 ;; 1301 freebsd-*) 1302 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 1303 need_version=yes 1304 ;; 1305 esac 1306 shlibpath_var=LD_LIBRARY_PATH 1307 case $host_os in 1308 freebsd2*) 1309 shlibpath_overrides_runpath=yes 1310 ;; 1311 freebsd3.[01]* | freebsdelf3.[01]*) 1312 shlibpath_overrides_runpath=yes 1313 hardcode_into_libs=yes 1314 ;; 1315 *) # from 3.2 on 1316 shlibpath_overrides_runpath=no 1317 hardcode_into_libs=yes 1318 ;; 1319 esac 1320 ;; 1321 1322 gnu*) 1323 version_type=linux 1324 need_lib_prefix=no 1325 need_version=no 1326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 1327 soname_spec='${libname}${release}${shared_ext}$major' 1328 shlibpath_var=LD_LIBRARY_PATH 1329 hardcode_into_libs=yes 1330 ;; 1331 1332 hpux9* | hpux10* | hpux11*) 1333 # Give a soname corresponding to the major version so that dld.sl refuses to 1334 # link against other versions. 1335 version_type=sunos 1336 need_lib_prefix=no 1337 need_version=no 1338 case "$host_cpu" in 1339 ia64*) 1340 shrext_cmds='.so' 1341 hardcode_into_libs=yes 1342 dynamic_linker="$host_os dld.so" 1343 shlibpath_var=LD_LIBRARY_PATH 1344 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 1345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1346 soname_spec='${libname}${release}${shared_ext}$major' 1347 if test "X$HPUX_IA64_MODE" = X32; then 1348 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 1349 else 1350 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 1351 fi 1352 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 1353 ;; 1354 hppa*64*) 1355 shrext_cmds='.sl' 1356 hardcode_into_libs=yes 1357 dynamic_linker="$host_os dld.sl" 1358 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 1359 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 1360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1361 soname_spec='${libname}${release}${shared_ext}$major' 1362 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 1363 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 1364 ;; 1365 *) 1366 shrext_cmds='.sl' 1367 dynamic_linker="$host_os dld.sl" 1368 shlibpath_var=SHLIB_PATH 1369 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 1370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1371 soname_spec='${libname}${release}${shared_ext}$major' 1372 ;; 1373 esac 1374 # HP-UX runs *really* slowly unless shared libraries are mode 555. 1375 postinstall_cmds='chmod 555 $lib' 1376 ;; 1377 1378 irix5* | irix6* | nonstopux*) 1379 case $host_os in 1380 nonstopux*) version_type=nonstopux ;; 1381 *) 1382 if test "$lt_cv_prog_gnu_ld" = yes; then 1383 version_type=linux 1384 else 1385 version_type=irix 1386 fi ;; 1387 esac 1388 need_lib_prefix=no 1389 need_version=no 1390 soname_spec='${libname}${release}${shared_ext}$major' 1391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 1392 case $host_os in 1393 irix5* | nonstopux*) 1394 libsuff= shlibsuff= 1395 ;; 1396 *) 1397 case $LD in # libtool.m4 will add one of these switches to LD 1398 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 1399 libsuff= shlibsuff= libmagic=32-bit;; 1400 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 1401 libsuff=32 shlibsuff=N32 libmagic=N32;; 1402 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 1403 libsuff=64 shlibsuff=64 libmagic=64-bit;; 1404 *) libsuff= shlibsuff= libmagic=never-match;; 1405 esac 1406 ;; 1407 esac 1408 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 1409 shlibpath_overrides_runpath=no 1410 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 1411 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 1412 hardcode_into_libs=yes 1413 ;; 1414 1415 # No shared lib support for Linux oldld, aout, or coff. 1416 linux*oldld* | linux*aout* | linux*coff*) 1417 dynamic_linker=no 1418 ;; 1419 1420 # This must be Linux ELF. 1421 linux*) 1422 version_type=linux 1423 need_lib_prefix=no 1424 need_version=no 1425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1426 soname_spec='${libname}${release}${shared_ext}$major' 1427 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 1428 shlibpath_var=LD_LIBRARY_PATH 1429 shlibpath_overrides_runpath=no 1430 # This implies no fast_install, which is unacceptable. 1431 # Some rework will be needed to allow for fast_install 1432 # before this can be enabled. 1433 hardcode_into_libs=yes 1434 1435 # find out which ABI we are using 1436 libsuff= 1437 case "$host_cpu" in 1438 x86_64*|s390x*|powerpc64*) 1439 echo '[#]line __oline__ "configure"' > conftest.$ac_ext 1440 if AC_TRY_EVAL(ac_compile); then 1441 case `/usr/bin/file conftest.$ac_objext` in 1442 *64-bit*) 1443 libsuff=64 1444 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 1445 ;; 1446 esac 1447 fi 1448 rm -rf conftest* 1449 ;; 1450 esac 1451 1452 # Append ld.so.conf contents to the search path 1453 if test -f /etc/ld.so.conf; then 1454 lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '` 1455 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 1456 fi 1457 1458 # We used to test for /lib/ld.so.1 and disable shared libraries on 1459 # powerpc, because MkLinux only supported shared libraries with the 1460 # GNU dynamic linker. Since this was broken with cross compilers, 1461 # most powerpc-linux boxes support dynamic linking these days and 1462 # people can always --disable-shared, the test was removed, and we 1463 # assume the GNU/Linux dynamic linker is in use. 1464 dynamic_linker='GNU/Linux ld.so' 1465 ;; 1466 1467 knetbsd*-gnu) 1468 version_type=linux 1469 need_lib_prefix=no 1470 need_version=no 1471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1472 soname_spec='${libname}${release}${shared_ext}$major' 1473 shlibpath_var=LD_LIBRARY_PATH 1474 shlibpath_overrides_runpath=no 1475 hardcode_into_libs=yes 1476 dynamic_linker='GNU ld.so' 1477 ;; 1478 1479 netbsd*) 1480 version_type=sunos 1481 need_lib_prefix=no 1482 need_version=no 1483 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 1484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 1485 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 1486 dynamic_linker='NetBSD (a.out) ld.so' 1487 else 1488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1489 soname_spec='${libname}${release}${shared_ext}$major' 1490 dynamic_linker='NetBSD ld.elf_so' 1491 fi 1492 shlibpath_var=LD_LIBRARY_PATH 1493 shlibpath_overrides_runpath=yes 1494 hardcode_into_libs=yes 1495 ;; 1496 1497 newsos6) 1498 version_type=linux 1499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1500 shlibpath_var=LD_LIBRARY_PATH 1501 shlibpath_overrides_runpath=yes 1502 ;; 1503 1504 nto-qnx*) 1505 version_type=linux 1506 need_lib_prefix=no 1507 need_version=no 1508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1509 soname_spec='${libname}${release}${shared_ext}$major' 1510 shlibpath_var=LD_LIBRARY_PATH 1511 shlibpath_overrides_runpath=yes 1512 ;; 1513 1514 openbsd*) 1515 version_type=sunos 1516 need_lib_prefix=no 1517 need_version=yes 1518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 1519 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 1520 shlibpath_var=LD_LIBRARY_PATH 1521 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 1522 case $host_os in 1523 openbsd2.[[89]] | openbsd2.[[89]].*) 1524 shlibpath_overrides_runpath=no 1525 ;; 1526 *) 1527 shlibpath_overrides_runpath=yes 1528 ;; 1529 esac 1530 else 1531 shlibpath_overrides_runpath=yes 1532 fi 1533 ;; 1534 1535 os2*) 1536 libname_spec='$name' 1537 shrext_cmds=".dll" 1538 need_lib_prefix=no 1539 library_names_spec='$libname${shared_ext} $libname.a' 1540 dynamic_linker='OS/2 ld.exe' 1541 shlibpath_var=LIBPATH 1542 ;; 1543 1544 osf3* | osf4* | osf5*) 1545 version_type=osf 1546 need_lib_prefix=no 1547 need_version=no 1548 soname_spec='${libname}${release}${shared_ext}$major' 1549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1550 shlibpath_var=LD_LIBRARY_PATH 1551 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 1552 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 1553 ;; 1554 1555 sco3.2v5*) 1556 version_type=osf 1557 soname_spec='${libname}${release}${shared_ext}$major' 1558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1559 shlibpath_var=LD_LIBRARY_PATH 1560 ;; 1561 1562 solaris*) 1563 version_type=linux 1564 need_lib_prefix=no 1565 need_version=no 1566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1567 soname_spec='${libname}${release}${shared_ext}$major' 1568 shlibpath_var=LD_LIBRARY_PATH 1569 shlibpath_overrides_runpath=yes 1570 hardcode_into_libs=yes 1571 # ldd complains unless libraries are executable 1572 postinstall_cmds='chmod +x $lib' 1573 ;; 1574 1575 sunos4*) 1576 version_type=sunos 1577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 1578 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 1579 shlibpath_var=LD_LIBRARY_PATH 1580 shlibpath_overrides_runpath=yes 1581 if test "$with_gnu_ld" = yes; then 1582 need_lib_prefix=no 1583 fi 1584 need_version=yes 1585 ;; 1586 1587 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 1588 version_type=linux 1589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1590 soname_spec='${libname}${release}${shared_ext}$major' 1591 shlibpath_var=LD_LIBRARY_PATH 1592 case $host_vendor in 1593 sni) 1594 shlibpath_overrides_runpath=no 1595 need_lib_prefix=no 1596 export_dynamic_flag_spec='${wl}-Blargedynsym' 1597 runpath_var=LD_RUN_PATH 1598 ;; 1599 siemens) 1600 need_lib_prefix=no 1601 ;; 1602 motorola) 1603 need_lib_prefix=no 1604 need_version=no 1605 shlibpath_overrides_runpath=no 1606 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 1607 ;; 1608 esac 1609 ;; 1610 1611 sysv4*MP*) 1612 if test -d /usr/nec ;then 1613 version_type=linux 1614 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 1615 soname_spec='$libname${shared_ext}.$major' 1616 shlibpath_var=LD_LIBRARY_PATH 1617 fi 1618 ;; 1619 1620 uts4*) 1621 version_type=linux 1622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1623 soname_spec='${libname}${release}${shared_ext}$major' 1624 shlibpath_var=LD_LIBRARY_PATH 1625 ;; 1626 1627 *) 1628 dynamic_linker=no 1629 ;; 1630 esac 1631 AC_MSG_RESULT([$dynamic_linker]) 1632 test "$dynamic_linker" = no && can_build_shared=no 1633 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER 1634 1635 1636 # _LT_AC_TAGCONFIG 1637 # ---------------- 1638 AC_DEFUN([_LT_AC_TAGCONFIG], 1639 [AC_ARG_WITH([tags], 1640 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], 1641 [include additional configurations @<:@automatic@:>@])], 1642 [tagnames="$withval"]) 1643 1644 if test -f "$ltmain" && test -n "$tagnames"; then 1645 if test ! -f "${ofile}"; then 1646 AC_MSG_WARN([output file `$ofile' does not exist]) 1647 fi 1648 1649 if test -z "$LTCC"; then 1650 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 1651 if test -z "$LTCC"; then 1652 AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) 1653 else 1654 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) 1655 fi 1656 fi 1657 1658 # Extract list of available tagged configurations in $ofile. 1659 # Note that this assumes the entire list is on one line. 1660 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 1661 1662 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 1663 for tagname in $tagnames; do 1664 IFS="$lt_save_ifs" 1665 # Check whether tagname contains only valid characters 1666 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in 1667 "") ;; 1668 *) AC_MSG_ERROR([invalid tag name: $tagname]) 1669 ;; 1670 esac 1671 1672 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 1673 then 1674 AC_MSG_ERROR([tag name \"$tagname\" already exists]) 1675 fi 1676 1677 # Update the list of available tags. 1678 if test -n "$tagname"; then 1679 echo appending configuration tag \"$tagname\" to $ofile 1680 1681 case $tagname in 1682 CXX) 1683 if test -n "$CXX" && test "X$CXX" != "Xno"; then 1684 AC_LIBTOOL_LANG_CXX_CONFIG 1685 else 1686 tagname="" 1687 fi 1688 ;; 1689 1690 F77) 1691 if test -n "$F77" && test "X$F77" != "Xno"; then 1692 AC_LIBTOOL_LANG_F77_CONFIG 1693 else 1694 tagname="" 1695 fi 1696 ;; 1697 1698 GCJ) 1699 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 1700 AC_LIBTOOL_LANG_GCJ_CONFIG 1701 else 1702 tagname="" 1703 fi 1704 ;; 1705 1706 RC) 1707 AC_LIBTOOL_LANG_RC_CONFIG 1708 ;; 1709 1710 *) 1711 AC_MSG_ERROR([Unsupported tag name: $tagname]) 1712 ;; 1713 esac 1714 1715 # Append the new tag name to the list of available tags. 1716 if test -n "$tagname" ; then 1717 available_tags="$available_tags $tagname" 1718 fi 1719 fi 1720 done 1721 IFS="$lt_save_ifs" 1722 1723 # Now substitute the updated list of available tags. 1724 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 1725 mv "${ofile}T" "$ofile" 1726 chmod +x "$ofile" 1727 else 1728 rm -f "${ofile}T" 1729 AC_MSG_ERROR([unable to update list of available tagged configurations.]) 1973 1730 fi 1974 1731 fi 1975 1976 # See if the linker supports building shared libraries. 1977 AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries]) 1978 1979 allow_undefined_flag= 1980 no_undefined_flag= 1981 need_lib_prefix=unknown 1982 need_version=unknown 1983 # when you set need_version to no, make sure it does not cause -set_version 1984 # flags to be left without arguments 1985 archive_cmds= 1986 archive_expsym_cmds= 1987 old_archive_from_new_cmds= 1988 old_archive_from_expsyms_cmds= 1989 export_dynamic_flag_spec= 1990 whole_archive_flag_spec= 1991 thread_safe_flag_spec= 1992 hardcode_into_libs=no 1993 hardcode_libdir_flag_spec= 1994 hardcode_libdir_separator= 1995 hardcode_direct=no 1996 hardcode_minus_L=no 1997 hardcode_shlibpath_var=unsupported 1998 runpath_var= 1999 link_all_deplibs=unknown 2000 always_export_symbols=no 2001 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' 2002 # include_expsyms should be a list of space-separated symbols to be *always* 2003 # included in the symbol list 2004 include_expsyms= 2005 # exclude_expsyms can be an egrep regular expression of symbols to exclude 2006 # it will be wrapped by ` (' and `)$', so one must not match beginning or 2007 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 2008 # as well as any symbol that contains `d'. 2009 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 2010 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 2011 # platforms (ab)use it in PIC code, but their linkers get confused if 2012 # the symbol is explicitly referenced. Since portable code cannot 2013 # rely on this symbol name, it's probably fine to never include it in 2014 # preloaded symbol tables. 2015 extract_expsyms_cmds= 2016 2017 case $host_os in 2018 cygwin* | mingw* | pw32*) 2019 # FIXME: the MSVC++ port hasn't been tested in a loooong time 2020 # When not using gcc, we currently assume that we are using 2021 # Microsoft Visual C++. 2022 if test "$GCC" != yes; then 2023 with_gnu_ld=no 1732 ])# _LT_AC_TAGCONFIG 1733 1734 1735 # AC_LIBTOOL_DLOPEN 1736 # ----------------- 1737 # enable checks for dlopen support 1738 AC_DEFUN([AC_LIBTOOL_DLOPEN], 1739 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) 1740 ])# AC_LIBTOOL_DLOPEN 1741 1742 1743 # AC_LIBTOOL_WIN32_DLL 1744 # -------------------- 1745 # declare package support for building win32 dll's 1746 AC_DEFUN([AC_LIBTOOL_WIN32_DLL], 1747 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) 1748 ])# AC_LIBTOOL_WIN32_DLL 1749 1750 1751 # AC_ENABLE_SHARED([DEFAULT]) 1752 # --------------------------- 1753 # implement the --enable-shared flag 1754 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 1755 AC_DEFUN([AC_ENABLE_SHARED], 1756 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl 1757 AC_ARG_ENABLE([shared], 1758 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 1759 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], 1760 [p=${PACKAGE-default} 1761 case $enableval in 1762 yes) enable_shared=yes ;; 1763 no) enable_shared=no ;; 1764 *) 1765 enable_shared=no 1766 # Look at the argument we got. We use all the common list separators. 1767 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 1768 for pkg in $enableval; do 1769 IFS="$lt_save_ifs" 1770 if test "X$pkg" = "X$p"; then 1771 enable_shared=yes 1772 fi 1773 done 1774 IFS="$lt_save_ifs" 1775 ;; 1776 esac], 1777 [enable_shared=]AC_ENABLE_SHARED_DEFAULT) 1778 ])# AC_ENABLE_SHARED 1779 1780 1781 # AC_DISABLE_SHARED 1782 # ----------------- 1783 #- set the default shared flag to --disable-shared 1784 AC_DEFUN([AC_DISABLE_SHARED], 1785 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 1786 AC_ENABLE_SHARED(no) 1787 ])# AC_DISABLE_SHARED 1788 1789 1790 # AC_ENABLE_STATIC([DEFAULT]) 1791 # --------------------------- 1792 # implement the --enable-static flag 1793 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 1794 AC_DEFUN([AC_ENABLE_STATIC], 1795 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl 1796 AC_ARG_ENABLE([static], 1797 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], 1798 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], 1799 [p=${PACKAGE-default} 1800 case $enableval in 1801 yes) enable_static=yes ;; 1802 no) enable_static=no ;; 1803 *) 1804 enable_static=no 1805 # Look at the argument we got. We use all the common list separators. 1806 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 1807 for pkg in $enableval; do 1808 IFS="$lt_save_ifs" 1809 if test "X$pkg" = "X$p"; then 1810 enable_static=yes 1811 fi 1812 done 1813 IFS="$lt_save_ifs" 1814 ;; 1815 esac], 1816 [enable_static=]AC_ENABLE_STATIC_DEFAULT) 1817 ])# AC_ENABLE_STATIC 1818 1819 1820 # AC_DISABLE_STATIC 1821 # ----------------- 1822 # set the default static flag to --disable-static 1823 AC_DEFUN([AC_DISABLE_STATIC], 1824 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 1825 AC_ENABLE_STATIC(no) 1826 ])# AC_DISABLE_STATIC 1827 1828 1829 # AC_ENABLE_FAST_INSTALL([DEFAULT]) 1830 # --------------------------------- 1831 # implement the --enable-fast-install flag 1832 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 1833 AC_DEFUN([AC_ENABLE_FAST_INSTALL], 1834 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl 1835 AC_ARG_ENABLE([fast-install], 1836 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 1837 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 1838 [p=${PACKAGE-default} 1839 case $enableval in 1840 yes) enable_fast_install=yes ;; 1841 no) enable_fast_install=no ;; 1842 *) 1843 enable_fast_install=no 1844 # Look at the argument we got. We use all the common list separators. 1845 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 1846 for pkg in $enableval; do 1847 IFS="$lt_save_ifs" 1848 if test "X$pkg" = "X$p"; then 1849 enable_fast_install=yes 1850 fi 1851 done 1852 IFS="$lt_save_ifs" 1853 ;; 1854 esac], 1855 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) 1856 ])# AC_ENABLE_FAST_INSTALL 1857 1858 1859 # AC_DISABLE_FAST_INSTALL 1860 # ----------------------- 1861 # set the default to --disable-fast-install 1862 AC_DEFUN([AC_DISABLE_FAST_INSTALL], 1863 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 1864 AC_ENABLE_FAST_INSTALL(no) 1865 ])# AC_DISABLE_FAST_INSTALL 1866 1867 1868 # AC_LIBTOOL_PICMODE([MODE]) 1869 # -------------------------- 1870 # implement the --with-pic flag 1871 # MODE is either `yes' or `no'. If omitted, it defaults to `both'. 1872 AC_DEFUN([AC_LIBTOOL_PICMODE], 1873 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 1874 pic_mode=ifelse($#,1,$1,default) 1875 ])# AC_LIBTOOL_PICMODE 1876 1877 1878 # AC_PROG_EGREP 1879 # ------------- 1880 # This is predefined starting with Autoconf 2.54, so this conditional 1881 # definition can be removed once we require Autoconf 2.54 or later. 1882 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], 1883 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], 1884 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 1885 then ac_cv_prog_egrep='grep -E' 1886 else ac_cv_prog_egrep='egrep' 1887 fi]) 1888 EGREP=$ac_cv_prog_egrep 1889 AC_SUBST([EGREP]) 1890 ])]) 1891 1892 1893 # AC_PATH_TOOL_PREFIX 1894 # ------------------- 1895 # find a file program which can recognise shared library 1896 AC_DEFUN([AC_PATH_TOOL_PREFIX], 1897 [AC_REQUIRE([AC_PROG_EGREP])dnl 1898 AC_MSG_CHECKING([for $1]) 1899 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 1900 [case $MAGIC_CMD in 1901 [[\\/*] | ?:[\\/]*]) 1902 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 1903 ;; 1904 *) 1905 lt_save_MAGIC_CMD="$MAGIC_CMD" 1906 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 1907 dnl $ac_dummy forces splitting on constant user-supplied paths. 1908 dnl POSIX.2 word splitting is done only on the output of word expansions, 1909 dnl not every word. This closes a longstanding sh security hole. 1910 ac_dummy="ifelse([$2], , $PATH, [$2])" 1911 for ac_dir in $ac_dummy; do 1912 IFS="$lt_save_ifs" 1913 test -z "$ac_dir" && ac_dir=. 1914 if test -f $ac_dir/$1; then 1915 lt_cv_path_MAGIC_CMD="$ac_dir/$1" 1916 if test -n "$file_magic_test_file"; then 1917 case $deplibs_check_method in 1918 "file_magic "*) 1919 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 1920 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 1921 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 1922 $EGREP "$file_magic_regex" > /dev/null; then 1923 : 1924 else 1925 cat <<EOF 1>&2 1926 1927 *** Warning: the command libtool uses to detect shared libraries, 1928 *** $file_magic_cmd, produces output that libtool cannot recognize. 1929 *** The result is that libtool may fail to recognize shared libraries 1930 *** as such. This will affect the creation of libtool libraries that 1931 *** depend on shared libraries, but programs linked with such libtool 1932 *** libraries will work regardless of this problem. Nevertheless, you 1933 *** may want to report the problem to your system manager and/or to 1934 *** bug-libtool@gnu.org 1935 1936 EOF 1937 fi ;; 1938 esac 1939 fi 1940 break 1941 fi 1942 done 1943 IFS="$lt_save_ifs" 1944 MAGIC_CMD="$lt_save_MAGIC_CMD" 1945 ;; 1946 esac]) 1947 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 1948 if test -n "$MAGIC_CMD"; then 1949 AC_MSG_RESULT($MAGIC_CMD) 1950 else 1951 AC_MSG_RESULT(no) 1952 fi 1953 ])# AC_PATH_TOOL_PREFIX 1954 1955 1956 # AC_PATH_MAGIC 1957 # ------------- 1958 # find a file program which can recognise a shared library 1959 AC_DEFUN([AC_PATH_MAGIC], 1960 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 1961 if test -z "$lt_cv_path_MAGIC_CMD"; then 1962 if test -n "$ac_tool_prefix"; then 1963 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 1964 else 1965 MAGIC_CMD=: 2024 1966 fi 2025 ;; 2026 openbsd*) 2027 with_gnu_ld=no 2028 ;; 2029 esac 2030 2031 ld_shlibs=yes 2032 if test "$with_gnu_ld" = yes; then 2033 # If archive_cmds runs LD, not CC, wlarc should be empty 2034 wlarc='${wl}' 2035 2036 # See if GNU ld supports shared libraries. 2037 case $host_os in 2038 aix3* | aix4* | aix5*) 2039 # On AIX, the GNU linker is very broken 2040 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. 2041 ld_shlibs=no 2042 cat <<EOF 1>&2 2043 2044 *** Warning: the GNU linker, at least up to release 2.9.1, is reported 2045 *** to be unable to reliably create shared libraries on AIX. 2046 *** Therefore, libtool is disabling shared libraries support. If you 2047 *** really care for shared libraries, you may want to modify your PATH 2048 *** so that a non-GNU linker is found, and then restart. 2049 2050 EOF 1967 fi 1968 ])# AC_PATH_MAGIC 1969 1970 1971 # AC_PROG_LD 1972 # ---------- 1973 # find the pathname to the GNU or non-GNU linker 1974 AC_DEFUN([AC_PROG_LD], 1975 [AC_ARG_WITH([gnu-ld], 1976 [AC_HELP_STRING([--with-gnu-ld], 1977 [assume the C compiler uses GNU ld @<:@default=no@:>@])], 1978 [test "$withval" = no || with_gnu_ld=yes], 1979 [with_gnu_ld=no]) 1980 AC_REQUIRE([LT_AC_PROG_SED])dnl 1981 AC_REQUIRE([AC_PROG_CC])dnl 1982 AC_REQUIRE([AC_CANONICAL_HOST])dnl 1983 AC_REQUIRE([AC_CANONICAL_BUILD])dnl 1984 ac_prog=ld 1985 if test "$GCC" = yes; then 1986 # Check if gcc -print-prog-name=ld gives a path. 1987 AC_MSG_CHECKING([for ld used by $CC]) 1988 case $host in 1989 *-*-mingw*) 1990 # gcc leaves a trailing carriage return which upsets mingw 1991 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 1992 *) 1993 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 1994 esac 1995 case $ac_prog in 1996 # Accept absolute paths. 1997 [[\\/]]* | ?:[[\\/]]*) 1998 re_direlt='/[[^/]][[^/]]*/\.\./' 1999 # Canonicalize the pathname of ld 2000 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 2001 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 2002 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 2003 done 2004 test -z "$LD" && LD="$ac_prog" 2005 ;; 2006 "") 2007 # If it fails, then pretend we aren't using GCC. 2008 ac_prog=ld 2051 2009 ;; 2052 2053 amigaos*)2054 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'2055 hardcode_libdir_flag_spec='-L$libdir'2056 hardcode_minus_L=yes2057 2058 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports2059 # that the semantics of dynamic libraries on AmigaOS, at least up2060 # to version 4, is to share data among multiple programs linked2061 # with the same dynamic library. Since this doesn't match the2062 # behavior of shared libraries on other platforms, we can use2063 # them.2064 ld_shlibs=no2065 ;;2066 2067 beos*)2068 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then2069 allow_undefined_flag=unsupported2070 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc2071 # support --undefined. This deserves some investigation. FIXME2072 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'2073 else2074 ld_shlibs=no2075 fi2076 ;;2077 2078 cygwin* | mingw* | pw32*)2079 # hardcode_libdir_flag_spec is actually meaningless, as there is2080 # no search path for DLLs.2081 hardcode_libdir_flag_spec='-L$libdir'2082 allow_undefined_flag=unsupported2083 always_export_symbols=yes2084 2085 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \2086 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~2087 test -f $output_objdir/impgen.exe || (cd $output_objdir && \2088 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \2089 else $CC -o impgen impgen.c ; fi)~2090 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'2091 2092 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'2093 2094 # cygwin and mingw dlls have different entry points and sets of symbols2095 # to exclude.2096 # FIXME: what about values for MSVC?2097 dll_entry=__cygwin_dll_entry@122098 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~2099 case $host_os in2100 mingw*)2101 # mingw values2102 dll_entry=_DllMainCRTStartup@122103 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~2104 ;;2105 esac2106 2107 # mingw and cygwin differ, and it's simplest to just exclude the union2108 # of the two symbol sets.2109 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@122110 2111 # recent cygwin and mingw systems supply a stub DllMain which the user2112 # can override, but on older systems we have to supply one (in ltdll.c)2113 if test "x$lt_cv_need_dllmain" = "xyes"; then2114 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "2115 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~2116 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'2117 else2118 ltdll_obj=2119 ltdll_cmds=2120 fi2121 2122 # Extract the symbol export list from an `--export-all' def file,2123 # then regenerate the def file from the symbol export list, so that2124 # the compiled dll only exports the symbol export list.2125 # Be careful not to strip the DATA tag left be newer dlltools.2126 export_symbols_cmds="$ltdll_cmds"'2127 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~2128 sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'2129 2130 # If the export-symbols file already is a .def file (1st line2131 # is EXPORTS), use it as is.2132 # If DATA tags from a recent dlltool are present, honour them!2133 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then2134 cp $export_symbols $output_objdir/$soname-def;2135 else2136 echo EXPORTS > $output_objdir/$soname-def;2137 _lt_hint=1;2138 cat $export_symbols | while read symbol; do2139 set dummy \$symbol;2140 case \[$]# in2141 2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;2142 4) echo " \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;2143 *) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;2144 esac;2145 _lt_hint=`expr 1 + \$_lt_hint`;2146 done;2147 fi~2148 '"$ltdll_cmds"'2149 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~2150 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~2151 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~2152 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~2153 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'2154 ;;2155 2156 netbsd*)2157 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then2158 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'2159 wlarc=2160 else2161 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'2162 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'2163 fi2164 ;;2165 2166 solaris* | sysv5*)2167 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then2168 ld_shlibs=no2169 cat <<EOF 1>&22170 2171 *** Warning: The releases 2.8.* of the GNU linker cannot reliably2172 *** create shared libraries on Solaris systems. Therefore, libtool2173 *** is disabling shared libraries support. We urge you to upgrade GNU2174 *** binutils to release 2.9.1 or newer. Another option is to modify2175 *** your PATH or compiler configuration so that the native linker is2176 *** used, and then restart.2177 2178 EOF2179 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then2180 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'2181 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'2182 else2183 ld_shlibs=no2184 fi2185 ;;2186 2187 sunos4*)2188 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'2189 wlarc=2190 hardcode_direct=yes2191 hardcode_shlibpath_var=no2192 ;;2193 2194 2010 *) 2195 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 2196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 2197 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 2198 else 2199 ld_shlibs=no 2200 fi 2011 # If it is relative, then search for the first ld in PATH. 2012 with_gnu_ld=unknown 2201 2013 ;; 2202 2014 esac 2203 2204 if test "$ld_shlibs" = yes; then 2205 runpath_var=LD_RUN_PATH 2206 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 2207 export_dynamic_flag_spec='${wl}--export-dynamic' 2208 case $host_os in 2209 cygwin* | mingw* | pw32*) 2210 # dlltool doesn't understand --whole-archive et. al. 2211 whole_archive_flag_spec= 2212 ;; 2213 *) 2214 # ancient GNU ld didn't support --whole-archive et. al. 2215 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then 2216 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 2015 elif test "$with_gnu_ld" = yes; then 2016 AC_MSG_CHECKING([for GNU ld]) 2017 else 2018 AC_MSG_CHECKING([for non-GNU ld]) 2019 fi 2020 AC_CACHE_VAL(lt_cv_path_LD, 2021 [if test -z "$LD"; then 2022 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2023 for ac_dir in $PATH; do 2024 IFS="$lt_save_ifs" 2025 test -z "$ac_dir" && ac_dir=. 2026 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 2027 lt_cv_path_LD="$ac_dir/$ac_prog" 2028 # Check to see if the program is GNU ld. I'd rather use --version, 2029 # but apparently some GNU ld's only accept -v. 2030 # Break only if it was the GNU/non-GNU ld that we prefer. 2031 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 2032 *GNU* | *'with BFD'*) 2033 test "$with_gnu_ld" != no && break 2034 ;; 2035 *) 2036 test "$with_gnu_ld" != yes && break 2037 ;; 2038 esac 2039 fi 2040 done 2041 IFS="$lt_save_ifs" 2042 else 2043 lt_cv_path_LD="$LD" # Let the user override the test with a path. 2044 fi]) 2045 LD="$lt_cv_path_LD" 2046 if test -n "$LD"; then 2047 AC_MSG_RESULT($LD) 2048 else 2049 AC_MSG_RESULT(no) 2050 fi 2051 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 2052 AC_PROG_LD_GNU 2053 ])# AC_PROG_LD 2054 2055 2056 # AC_PROG_LD_GNU 2057 # -------------- 2058 AC_DEFUN([AC_PROG_LD_GNU], 2059 [AC_REQUIRE([AC_PROG_EGREP])dnl 2060 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 2061 [# I'd rather use --version here, but apparently some GNU ld's only accept -v. 2062 case `$LD -v 2>&1 </dev/null` in 2063 *GNU* | *'with BFD'*) 2064 lt_cv_prog_gnu_ld=yes 2065 ;; 2066 *) 2067 lt_cv_prog_gnu_ld=no 2068 ;; 2069 esac]) 2070 with_gnu_ld=$lt_cv_prog_gnu_ld 2071 ])# AC_PROG_LD_GNU 2072 2073 2074 # AC_PROG_LD_RELOAD_FLAG 2075 # ---------------------- 2076 # find reload flag for linker 2077 # -- PORTME Some linkers may need a different reload flag. 2078 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], 2079 [AC_CACHE_CHECK([for $LD option to reload object files], 2080 lt_cv_ld_reload_flag, 2081 [lt_cv_ld_reload_flag='-r']) 2082 reload_flag=$lt_cv_ld_reload_flag 2083 case $reload_flag in 2084 "" | " "*) ;; 2085 *) reload_flag=" $reload_flag" ;; 2086 esac 2087 reload_cmds='$LD$reload_flag -o $output$reload_objs' 2088 ])# AC_PROG_LD_RELOAD_FLAG 2089 2090 2091 # AC_DEPLIBS_CHECK_METHOD 2092 # ----------------------- 2093 # how to check for library dependencies 2094 # -- PORTME fill in with the dynamic library characteristics 2095 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], 2096 [AC_CACHE_CHECK([how to recognise dependent libraries], 2097 lt_cv_deplibs_check_method, 2098 [lt_cv_file_magic_cmd='$MAGIC_CMD' 2099 lt_cv_file_magic_test_file= 2100 lt_cv_deplibs_check_method='unknown' 2101 # Need to set the preceding variable on all platforms that support 2102 # interlibrary dependencies. 2103 # 'none' -- dependencies not supported. 2104 # `unknown' -- same as none, but documents that we really don't know. 2105 # 'pass_all' -- all dependencies passed with no checks. 2106 # 'test_compile' -- check by making test program. 2107 # 'file_magic [[regex]]' -- check by looking for files in library path 2108 # which responds to the $file_magic_cmd with a given extended regex. 2109 # If you have `file' or equivalent on your system and you're not sure 2110 # whether `pass_all' will *always* work, you probably want this one. 2111 2112 case $host_os in 2113 aix4* | aix5*) 2114 lt_cv_deplibs_check_method=pass_all 2115 ;; 2116 2117 beos*) 2118 lt_cv_deplibs_check_method=pass_all 2119 ;; 2120 2121 bsdi4*) 2122 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 2123 lt_cv_file_magic_cmd='/usr/bin/file -L' 2124 lt_cv_file_magic_test_file=/shlib/libc.so 2125 ;; 2126 2127 cygwin*) 2128 # func_win32_libid is a shell function defined in ltmain.sh 2129 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 2130 lt_cv_file_magic_cmd='func_win32_libid' 2131 ;; 2132 2133 mingw* | pw32*) 2134 # Base MSYS/MinGW do not provide the 'file' command needed by 2135 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 2136 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 2137 lt_cv_file_magic_cmd='$OBJDUMP -f' 2138 ;; 2139 2140 darwin* | rhapsody*) 2141 lt_cv_deplibs_check_method=pass_all 2142 ;; 2143 2144 freebsd* | kfreebsd*-gnu) 2145 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2146 case $host_cpu in 2147 i*86 ) 2148 # Not sure whether the presence of OpenBSD here was a mistake. 2149 # Let's accept both of them until this is cleared up. 2150 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' 2151 lt_cv_file_magic_cmd=/usr/bin/file 2152 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 2153 ;; 2154 esac 2155 else 2156 lt_cv_deplibs_check_method=pass_all 2157 fi 2158 ;; 2159 2160 gnu*) 2161 lt_cv_deplibs_check_method=pass_all 2162 ;; 2163 2164 hpux10.20* | hpux11*) 2165 lt_cv_file_magic_cmd=/usr/bin/file 2166 case "$host_cpu" in 2167 ia64*) 2168 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 2169 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 2170 ;; 2171 hppa*64*) 2172 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] 2173 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 2174 ;; 2175 *) 2176 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' 2177 lt_cv_file_magic_test_file=/usr/lib/libc.sl 2178 ;; 2179 esac 2180 ;; 2181 2182 irix5* | irix6* | nonstopux*) 2183 case $LD in 2184 *-32|*"-32 ") libmagic=32-bit;; 2185 *-n32|*"-n32 ") libmagic=N32;; 2186 *-64|*"-64 ") libmagic=64-bit;; 2187 *) libmagic=never-match;; 2188 esac 2189 lt_cv_deplibs_check_method=pass_all 2190 ;; 2191 2192 # This must be Linux ELF. 2193 linux*) 2194 case $host_cpu in 2195 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*) 2196 lt_cv_deplibs_check_method=pass_all ;; 2197 *) 2198 # glibc up to 2.1.1 does not perform some relocations on ARM 2199 # this will be overridden with pass_all, but let us keep it just in case 2200 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; 2201 esac 2202 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 2203 lt_cv_deplibs_check_method=pass_all 2204 ;; 2205 2206 netbsd*) 2207 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2208 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 2209 else 2210 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 2211 fi 2212 ;; 2213 2214 newos6*) 2215 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 2216 lt_cv_file_magic_cmd=/usr/bin/file 2217 lt_cv_file_magic_test_file=/usr/lib/libnls.so 2218 ;; 2219 2220 nto-qnx*) 2221 lt_cv_deplibs_check_method=unknown 2222 ;; 2223 2224 openbsd*) 2225 lt_cv_file_magic_cmd=/usr/bin/file 2226 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 2227 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 2228 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' 2229 else 2230 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 2231 fi 2232 ;; 2233 2234 osf3* | osf4* | osf5*) 2235 lt_cv_deplibs_check_method=pass_all 2236 ;; 2237 2238 sco3.2v5*) 2239 lt_cv_deplibs_check_method=pass_all 2240 ;; 2241 2242 solaris*) 2243 lt_cv_deplibs_check_method=pass_all 2244 ;; 2245 2246 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 2247 case $host_vendor in 2248 motorola) 2249 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' 2250 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 2251 ;; 2252 ncr) 2253 lt_cv_deplibs_check_method=pass_all 2254 ;; 2255 sequent) 2256 lt_cv_file_magic_cmd='/bin/file' 2257 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 2258 ;; 2259 sni) 2260 lt_cv_file_magic_cmd='/bin/file' 2261 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 2262 lt_cv_file_magic_test_file=/lib/libc.so 2263 ;; 2264 siemens) 2265 lt_cv_deplibs_check_method=pass_all 2266 ;; 2267 esac 2268 ;; 2269 2270 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*) 2271 lt_cv_deplibs_check_method=pass_all 2272 ;; 2273 esac 2274 ]) 2275 file_magic_cmd=$lt_cv_file_magic_cmd 2276 deplibs_check_method=$lt_cv_deplibs_check_method 2277 test -z "$deplibs_check_method" && deplibs_check_method=unknown 2278 ])# AC_DEPLIBS_CHECK_METHOD 2279 2280 2281 # AC_PROG_NM 2282 # ---------- 2283 # find the pathname to a BSD-compatible name lister 2284 AC_DEFUN([AC_PROG_NM], 2285 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, 2286 [if test -n "$NM"; then 2287 # Let the user override the test. 2288 lt_cv_path_NM="$NM" 2289 else 2290 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2291 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 2292 IFS="$lt_save_ifs" 2293 test -z "$ac_dir" && ac_dir=. 2294 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 2295 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 2296 # Check to see if the nm accepts a BSD-compat flag. 2297 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 2298 # nm: unknown option "B" ignored 2299 # Tru64's nm complains that /dev/null is an invalid object file 2300 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 2301 */dev/null* | *'Invalid file or object type'*) 2302 lt_cv_path_NM="$tmp_nm -B" 2303 break 2304 ;; 2305 *) 2306 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 2307 */dev/null*) 2308 lt_cv_path_NM="$tmp_nm -p" 2309 break 2310 ;; 2311 *) 2312 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 2313 continue # so that we can try to find one that supports BSD flags 2314 ;; 2315 esac 2316 esac 2317 fi 2318 done 2319 IFS="$lt_save_ifs" 2320 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 2321 fi]) 2322 NM="$lt_cv_path_NM" 2323 ])# AC_PROG_NM 2324 2325 2326 # AC_CHECK_LIBM 2327 # ------------- 2328 # check for math library 2329 AC_DEFUN([AC_CHECK_LIBM], 2330 [AC_REQUIRE([AC_CANONICAL_HOST])dnl 2331 LIBM= 2332 case $host in 2333 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) 2334 # These system don't have libm, or don't need it 2335 ;; 2336 *-ncr-sysv4.3*) 2337 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") 2338 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 2339 ;; 2340 *) 2341 AC_CHECK_LIB(m, cos, LIBM="-lm") 2342 ;; 2343 esac 2344 ])# AC_CHECK_LIBM 2345 2346 2347 # AC_LIBLTDL_CONVENIENCE([DIRECTORY]) 2348 # ----------------------------------- 2349 # sets LIBLTDL to the link flags for the libltdl convenience library and 2350 # LTDLINCL to the include flags for the libltdl header and adds 2351 # --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL 2352 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If 2353 # DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will 2354 # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with 2355 # '${top_srcdir}/' (note the single quotes!). If your package is not 2356 # flat and you're not using automake, define top_builddir and 2357 # top_srcdir appropriately in the Makefiles. 2358 AC_DEFUN([AC_LIBLTDL_CONVENIENCE], 2359 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2360 case $enable_ltdl_convenience in 2361 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; 2362 "") enable_ltdl_convenience=yes 2363 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; 2364 esac 2365 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la 2366 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) 2367 # For backwards non-gettext consistent compatibility... 2368 INCLTDL="$LTDLINCL" 2369 ])# AC_LIBLTDL_CONVENIENCE 2370 2371 2372 # AC_LIBLTDL_INSTALLABLE([DIRECTORY]) 2373 # ----------------------------------- 2374 # sets LIBLTDL to the link flags for the libltdl installable library and 2375 # LTDLINCL to the include flags for the libltdl header and adds 2376 # --enable-ltdl-install to the configure arguments. Note that LIBLTDL 2377 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If 2378 # DIRECTORY is not provided and an installed libltdl is not found, it is 2379 # assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/' 2380 # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single 2381 # quotes!). If your package is not flat and you're not using automake, 2382 # define top_builddir and top_srcdir appropriately in the Makefiles. 2383 # In the future, this macro may have to be called after AC_PROG_LIBTOOL. 2384 AC_DEFUN([AC_LIBLTDL_INSTALLABLE], 2385 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2386 AC_CHECK_LIB(ltdl, lt_dlinit, 2387 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], 2388 [if test x"$enable_ltdl_install" = xno; then 2389 AC_MSG_WARN([libltdl not installed, but installation disabled]) 2390 else 2391 enable_ltdl_install=yes 2392 fi 2393 ]) 2394 if test x"$enable_ltdl_install" = x"yes"; then 2395 ac_configure_args="$ac_configure_args --enable-ltdl-install" 2396 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la 2397 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) 2398 else 2399 ac_configure_args="$ac_configure_args --enable-ltdl-install=no" 2400 LIBLTDL="-lltdl" 2401 LTDLINCL= 2402 fi 2403 # For backwards non-gettext consistent compatibility... 2404 INCLTDL="$LTDLINCL" 2405 ])# AC_LIBLTDL_INSTALLABLE 2406 2407 2408 # AC_LIBTOOL_CXX 2409 # -------------- 2410 # enable support for C++ libraries 2411 AC_DEFUN([AC_LIBTOOL_CXX], 2412 [AC_REQUIRE([_LT_AC_LANG_CXX]) 2413 ])# AC_LIBTOOL_CXX 2414 2415 2416 # _LT_AC_LANG_CXX 2417 # --------------- 2418 AC_DEFUN([_LT_AC_LANG_CXX], 2419 [AC_REQUIRE([AC_PROG_CXX]) 2420 AC_REQUIRE([AC_PROG_CXXCPP]) 2421 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) 2422 ])# _LT_AC_LANG_CXX 2423 2424 2425 # AC_LIBTOOL_F77 2426 # -------------- 2427 # enable support for Fortran 77 libraries 2428 AC_DEFUN([AC_LIBTOOL_F77], 2429 [AC_REQUIRE([_LT_AC_LANG_F77]) 2430 ])# AC_LIBTOOL_F77 2431 2432 2433 # _LT_AC_LANG_F77 2434 # --------------- 2435 AC_DEFUN([_LT_AC_LANG_F77], 2436 [AC_REQUIRE([AC_PROG_F77]) 2437 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) 2438 ])# _LT_AC_LANG_F77 2439 2440 2441 # AC_LIBTOOL_GCJ 2442 # -------------- 2443 # enable support for GCJ libraries 2444 AC_DEFUN([AC_LIBTOOL_GCJ], 2445 [AC_REQUIRE([_LT_AC_LANG_GCJ]) 2446 ])# AC_LIBTOOL_GCJ 2447 2448 2449 # _LT_AC_LANG_GCJ 2450 # --------------- 2451 AC_DEFUN([_LT_AC_LANG_GCJ], 2452 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], 2453 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], 2454 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], 2455 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], 2456 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], 2457 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) 2458 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) 2459 ])# _LT_AC_LANG_GCJ 2460 2461 2462 # AC_LIBTOOL_RC 2463 # -------------- 2464 # enable support for Windows resource files 2465 AC_DEFUN([AC_LIBTOOL_RC], 2466 [AC_REQUIRE([LT_AC_PROG_RC]) 2467 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) 2468 ])# AC_LIBTOOL_RC 2469 2470 2471 # AC_LIBTOOL_LANG_C_CONFIG 2472 # ------------------------ 2473 # Ensure that the configuration vars for the C compiler are 2474 # suitably defined. Those variables are subsequently used by 2475 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 2476 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) 2477 AC_DEFUN([_LT_AC_LANG_C_CONFIG], 2478 [lt_save_CC="$CC" 2479 AC_LANG_PUSH(C) 2480 2481 # Source file extension for C test sources. 2482 ac_ext=c 2483 2484 # Object file extension for compiled C test sources. 2485 objext=o 2486 _LT_AC_TAGVAR(objext, $1)=$objext 2487 2488 # Code to be used in simple compile tests 2489 lt_simple_compile_test_code="int some_variable = 0;\n" 2490 2491 # Code to be used in simple link tests 2492 lt_simple_link_test_code='int main(){return(0);}\n' 2493 2494 _LT_AC_SYS_COMPILER 2495 2496 # 2497 # Check for any special shared library compilation flags. 2498 # 2499 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)= 2500 if test "$GCC" = no; then 2501 case $host_os in 2502 sco3.2v5*) 2503 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf' 2504 ;; 2505 esac 2506 fi 2507 if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then 2508 AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) 2509 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then : 2510 else 2511 AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) 2512 _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no 2513 fi 2514 fi 2515 2516 2517 # 2518 # Check to make sure the static flag actually works. 2519 # 2520 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works], 2521 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), 2522 $_LT_AC_TAGVAR(lt_prog_compiler_static, $1), 2523 [], 2524 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) 2525 2526 2527 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) 2528 AC_LIBTOOL_PROG_COMPILER_PIC($1) 2529 AC_LIBTOOL_PROG_CC_C_O($1) 2530 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 2531 AC_LIBTOOL_PROG_LD_SHLIBS($1) 2532 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 2533 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 2534 AC_LIBTOOL_SYS_LIB_STRIP 2535 AC_LIBTOOL_DLOPEN_SELF($1) 2536 2537 # Report which librarie types wil actually be built 2538 AC_MSG_CHECKING([if libtool supports shared libraries]) 2539 AC_MSG_RESULT([$can_build_shared]) 2540 2541 AC_MSG_CHECKING([whether to build shared libraries]) 2542 test "$can_build_shared" = "no" && enable_shared=no 2543 2544 # On AIX, shared libraries and static libraries use the same namespace, and 2545 # are all built from PIC. 2546 case "$host_os" in 2547 aix3*) 2548 test "$enable_shared" = yes && enable_static=no 2549 if test -n "$RANLIB"; then 2550 archive_cmds="$archive_cmds~\$RANLIB \$lib" 2551 postinstall_cmds='$RANLIB $lib' 2552 fi 2553 ;; 2554 2555 aix4* | aix5*) 2556 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 2557 test "$enable_shared" = yes && enable_static=no 2558 fi 2559 ;; 2560 darwin* | rhapsody*) 2561 if test "$GCC" = yes; then 2562 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 2563 case "$host_os" in 2564 rhapsody* | darwin1.[[012]]) 2565 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' 2566 ;; 2567 *) # Darwin 1.3 on 2568 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 2569 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 2217 2570 else 2218 whole_archive_flag_spec= 2571 case ${MACOSX_DEPLOYMENT_TARGET} in 2572 10.[[012]]) 2573 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 2574 ;; 2575 10.*) 2576 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' 2577 ;; 2578 esac 2219 2579 fi 2220 2580 ;; 2221 2581 esac 2582 output_verbose_link_cmd='echo' 2583 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' 2584 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 2585 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 2586 _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}' 2587 _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}' 2588 _LT_AC_TAGVAR(hardcode_direct, $1)=no 2589 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 2590 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 2591 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' 2592 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 2593 else 2594 _LT_AC_TAGVAR(ld_shlibs, $1)=no 2222 2595 fi 2596 ;; 2597 esac 2598 AC_MSG_RESULT([$enable_shared]) 2599 2600 AC_MSG_CHECKING([whether to build static libraries]) 2601 # Make sure either enable_shared or enable_static is yes. 2602 test "$enable_shared" = yes || enable_static=yes 2603 AC_MSG_RESULT([$enable_static]) 2604 2605 AC_LIBTOOL_CONFIG($1) 2606 2607 AC_LANG_POP 2608 CC="$lt_save_CC" 2609 ])# AC_LIBTOOL_LANG_C_CONFIG 2610 2611 2612 # AC_LIBTOOL_LANG_CXX_CONFIG 2613 # -------------------------- 2614 # Ensure that the configuration vars for the C compiler are 2615 # suitably defined. Those variables are subsequently used by 2616 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 2617 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) 2618 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], 2619 [AC_LANG_PUSH(C++) 2620 AC_REQUIRE([AC_PROG_CXX]) 2621 AC_REQUIRE([AC_PROG_CXXCPP]) 2622 2623 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 2624 _LT_AC_TAGVAR(allow_undefined_flag, $1)= 2625 _LT_AC_TAGVAR(always_export_symbols, $1)=no 2626 _LT_AC_TAGVAR(archive_expsym_cmds, $1)= 2627 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 2628 _LT_AC_TAGVAR(hardcode_direct, $1)=no 2629 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 2630 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 2631 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 2632 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no 2633 _LT_AC_TAGVAR(hardcode_automatic, $1)=no 2634 _LT_AC_TAGVAR(module_cmds, $1)= 2635 _LT_AC_TAGVAR(module_expsym_cmds, $1)= 2636 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 2637 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 2638 _LT_AC_TAGVAR(no_undefined_flag, $1)= 2639 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 2640 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 2641 2642 # Dependencies to place before and after the object being linked: 2643 _LT_AC_TAGVAR(predep_objects, $1)= 2644 _LT_AC_TAGVAR(postdep_objects, $1)= 2645 _LT_AC_TAGVAR(predeps, $1)= 2646 _LT_AC_TAGVAR(postdeps, $1)= 2647 _LT_AC_TAGVAR(compiler_lib_search_path, $1)= 2648 2649 # Source file extension for C++ test sources. 2650 ac_ext=cc 2651 2652 # Object file extension for compiled C++ test sources. 2653 objext=o 2654 _LT_AC_TAGVAR(objext, $1)=$objext 2655 2656 # Code to be used in simple compile tests 2657 lt_simple_compile_test_code="int some_variable = 0;\n" 2658 2659 # Code to be used in simple link tests 2660 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 2661 2662 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 2663 _LT_AC_SYS_COMPILER 2664 2665 # Allow CC to be a program name with arguments. 2666 lt_save_CC=$CC 2667 lt_save_LD=$LD 2668 lt_save_GCC=$GCC 2669 GCC=$GXX 2670 lt_save_with_gnu_ld=$with_gnu_ld 2671 lt_save_path_LD=$lt_cv_path_LD 2672 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 2673 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 2223 2674 else 2224 # PORTME fill in a description of your system's linker (not GNU ld) 2225 case $host_os in 2675 unset lt_cv_prog_gnu_ld 2676 fi 2677 if test -n "${lt_cv_path_LDCXX+set}"; then 2678 lt_cv_path_LD=$lt_cv_path_LDCXX 2679 else 2680 unset lt_cv_path_LD 2681 fi 2682 test -z "${LDCXX+set}" || LD=$LDCXX 2683 CC=${CXX-"c++"} 2684 compiler=$CC 2685 _LT_AC_TAGVAR(compiler, $1)=$CC 2686 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 2687 2688 # We don't want -fno-exception wen compiling C++ code, so set the 2689 # no_builtin_flag separately 2690 if test "$GXX" = yes; then 2691 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 2692 else 2693 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 2694 fi 2695 2696 if test "$GXX" = yes; then 2697 # Set up default GNU C++ configuration 2698 2699 AC_PROG_LD 2700 2701 # Check if GNU C++ uses GNU ld as the underlying linker, since the 2702 # archiving commands below assume that GNU ld is being used. 2703 if test "$with_gnu_ld" = yes; then 2704 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 2705 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 2706 2707 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 2708 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 2709 2710 # If archive_cmds runs LD, not CC, wlarc should be empty 2711 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 2712 # investigate it a little bit more. (MM) 2713 wlarc='${wl}' 2714 2715 # ancient GNU ld didn't support --whole-archive et. al. 2716 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 2717 grep 'no-whole-archive' > /dev/null; then 2718 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 2719 else 2720 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 2721 fi 2722 else 2723 with_gnu_ld=no 2724 wlarc= 2725 2726 # A generic and very simple default shared library creation 2727 # command for GNU C++ for the case where it uses the native 2728 # linker, instead of GNU ld. If possible, this setting should 2729 # overridden to take advantage of the native linker features on 2730 # the platform it is being used on. 2731 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 2732 fi 2733 2734 # Commands to make compiler produce verbose output that lists 2735 # what "hidden" libraries, object files and flags are used when 2736 # linking a shared library. 2737 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 2738 2739 else 2740 GXX=no 2741 with_gnu_ld=no 2742 wlarc= 2743 fi 2744 2745 # PORTME: fill in a description of your system's C++ link characteristics 2746 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 2747 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 2748 case $host_os in 2226 2749 aix3*) 2227 allow_undefined_flag=unsupported 2228 always_export_symbols=yes 2229 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 2230 # Note: this linker hardcodes the directories in LIBPATH if there 2231 # are no directories specified by -L. 2232 hardcode_minus_L=yes 2233 if test "$GCC" = yes && test -z "$link_static_flag"; then 2234 # Neither direct hardcoding nor static linking is supported with a 2235 # broken collect2. 2236 hardcode_direct=unsupported 2237 fi 2750 # FIXME: insert proper C++ library support 2751 _LT_AC_TAGVAR(ld_shlibs, $1)=no 2238 2752 ;; 2239 2240 2753 aix4* | aix5*) 2241 2754 if test "$host_cpu" = ia64; then … … 2257 2770 aix_use_runtimelinking=yes 2258 2771 break 2259 ;;2772 ;; 2260 2773 esac 2261 2774 done … … 2272 2785 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 2273 2786 2274 hardcode_direct=yes 2275 archive_cmds='' 2276 hardcode_libdir_separator=':' 2277 if test "$GCC" = yes; then 2278 case $host_os in aix4.[[012]]|aix4.[[012]].*) 2787 _LT_AC_TAGVAR(archive_cmds, $1)='' 2788 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 2789 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 2790 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 2791 2792 if test "$GXX" = yes; then 2793 case $host_os in aix4.[012]|aix4.[012].*) 2794 # We only want to do this on AIX 4.2 and lower, the check 2795 # below for broken collect2 doesn't work under 4.3+ 2279 2796 collect2name=`${CC} -print-prog-name=collect2` 2280 2797 if test -f "$collect2name" && \ 2281 strings "$collect2name" | grep resolve_lib_name >/dev/null2798 strings "$collect2name" | grep resolve_lib_name >/dev/null 2282 2799 then 2283 2800 # We have reworked collect2 2284 hardcode_direct=yes2801 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 2285 2802 else 2286 2803 # We have old collect2 2287 hardcode_direct=unsupported2804 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 2288 2805 # It fails to find uninstalled libraries when the uninstalled 2289 2806 # path is not listed in the libpath. Setting hardcode_minus_L 2290 2807 # to unsupported forces relinking 2291 hardcode_minus_L=yes2292 hardcode_libdir_flag_spec='-L$libdir'2293 hardcode_libdir_separator=2808 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 2809 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 2810 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 2294 2811 fi 2295 2812 esac 2296 2297 2813 shared_flag='-shared' 2298 2814 else 2299 2815 # not using gcc 2300 2816 if test "$host_cpu" = ia64; then 2301 shared_flag='${wl}-G' 2817 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 2818 # chokes on -Wl,-G. The following line is correct: 2819 shared_flag='-G' 2302 2820 else 2303 2821 if test "$aix_use_runtimelinking" = yes; then … … 2309 2827 fi 2310 2828 2311 # It seems that -bexpall can do strange things, so it is better to2312 # generate a list of symbols to export.2313 always_export_symbols=yes2829 # It seems that -bexpall does not export symbols beginning with 2830 # underscore (_), so it is better to generate a list of symbols to export. 2831 _LT_AC_TAGVAR(always_export_symbols, $1)=yes 2314 2832 if test "$aix_use_runtimelinking" = yes; then 2315 2833 # Warning - without using the other runtime loading flags (-brtl), 2316 2834 # -berok will link without error, but may produce a broken library. 2317 allow_undefined_flag='-berok' 2318 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' 2319 archive_expsym_cmds="\$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" 2320 else 2835 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' 2836 # Determine the default libpath from the value encoded in an empty executable. 2837 _LT_AC_SYS_LIBPATH_AIX 2838 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 2839 2840 _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" 2841 else 2321 2842 if test "$host_cpu" = ia64; then 2322 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'2323 allow_undefined_flag="-z nodefs"2324 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"2843 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 2844 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 2845 _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" 2325 2846 else 2326 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' 2847 # Determine the default libpath from the value encoded in an empty executable. 2848 _LT_AC_SYS_LIBPATH_AIX 2849 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 2327 2850 # Warning - without using the other run time loading flags, 2328 2851 # -berok will link without error, but may produce a broken library. 2329 allow_undefined_flag='${wl}-berok' 2330 # This is a bit strange, but is similar to how AIX traditionally builds 2331 # it's shared libraries. 2332 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname' 2852 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 2853 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 2854 # -bexpall does not export symbols beginning with underscore (_) 2855 _LT_AC_TAGVAR(always_export_symbols, $1)=yes 2856 # Exported symbols can be pulled into shared objects from archives 2857 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' 2858 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 2859 # This is similar to how AIX traditionally builds it's shared libraries. 2860 _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' 2333 2861 fi 2334 2862 fi 2335 2863 ;; 2336 2337 amigaos*)2338 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'2339 hardcode_libdir_flag_spec='-L$libdir' 2340 hardcode_minus_L=yes 2341 # see comment about different semantics on the GNU ld section 2342 ld_shlibs=no2864 chorus*) 2865 case $cc_basename in 2866 *) 2867 # FIXME: insert proper C++ library support 2868 _LT_AC_TAGVAR(ld_shlibs, $1)=no 2869 ;; 2870 esac 2343 2871 ;; 2344 2872 2345 2873 cygwin* | mingw* | pw32*) 2346 # When not using gcc, we currently assume that we are using 2347 # Microsoft Visual C++. 2348 # hardcode_libdir_flag_spec is actually meaningless, as there is 2349 # no search path for DLLs. 2350 hardcode_libdir_flag_spec=' ' 2351 allow_undefined_flag=unsupported 2352 # Tell ltmain to make .lib files, not .a files. 2353 libext=lib 2354 # FIXME: Setting linknames here is a bad hack. 2355 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 2356 # The linker will automatically build a .lib file if we build a DLL. 2357 old_archive_from_new_cmds='true' 2358 # FIXME: Should let the user specify the lib program. 2359 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 2360 fix_srcfile_path='`cygpath -w "$srcfile"`' 2361 ;; 2874 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 2875 # as there is no search path for DLLs. 2876 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 2877 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 2878 _LT_AC_TAGVAR(always_export_symbols, $1)=no 2879 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 2880 2881 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 2882 _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' 2883 # If the export-symbols file already is a .def file (1st line 2884 # is EXPORTS), use it as is; otherwise, prepend... 2885 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 2886 cp $export_symbols $output_objdir/$soname.def; 2887 else 2888 echo EXPORTS > $output_objdir/$soname.def; 2889 cat $export_symbols >> $output_objdir/$soname.def; 2890 fi~ 2891 $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' 2892 else 2893 _LT_AC_TAGVAR(ld_shlibs, $1)=no 2894 fi 2895 ;; 2362 2896 2363 2897 darwin* | rhapsody*) 2898 if test "$GXX" = yes; then 2899 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 2364 2900 case "$host_os" in 2365 2901 rhapsody* | darwin1.[[012]]) 2366 allow_undefined_flag='-undefined suppress'2902 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' 2367 2903 ;; 2368 2904 *) # Darwin 1.3 on 2369 allow_undefined_flag='-flat_namespace -undefined suppress' 2905 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 2906 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 2907 else 2908 case ${MACOSX_DEPLOYMENT_TARGET} in 2909 10.[[012]]) 2910 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 2911 ;; 2912 10.*) 2913 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' 2914 ;; 2915 esac 2916 fi 2370 2917 ;; 2371 2918 esac 2372 # FIXME: Relying on posixy $() will cause problems for 2373 # cross-compilation, but unfortunately the echo tests do not 2374 # yet detect zsh echo's removal of \ escapes. Also zsh mangles 2375 # `"' quotes if we put them in here... so don't! 2376 archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)' 2377 # We need to add '_' to the symbols in $export_symbols first 2378 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' 2379 hardcode_direct=yes 2380 hardcode_shlibpath_var=no 2381 whole_archive_flag_spec='-all_load $convenience' 2919 lt_int_apple_cc_single_mod=no 2920 output_verbose_link_cmd='echo' 2921 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 2922 lt_int_apple_cc_single_mod=yes 2923 fi 2924 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 2925 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 2926 else 2927 _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' 2928 fi 2929 _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 2930 2931 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 2932 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 2933 _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}' 2934 else 2935 _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}' 2936 fi 2937 _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}' 2938 _LT_AC_TAGVAR(hardcode_direct, $1)=no 2939 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 2940 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 2941 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' 2942 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 2943 else 2944 _LT_AC_TAGVAR(ld_shlibs, $1)=no 2945 fi 2382 2946 ;; 2383 2947 2384 freebsd1*) 2385 ld_shlibs=no 2948 dgux*) 2949 case $cc_basename in 2950 ec++) 2951 # FIXME: insert proper C++ library support 2952 _LT_AC_TAGVAR(ld_shlibs, $1)=no 2953 ;; 2954 ghcx) 2955 # Green Hills C++ Compiler 2956 # FIXME: insert proper C++ library support 2957 _LT_AC_TAGVAR(ld_shlibs, $1)=no 2958 ;; 2959 *) 2960 # FIXME: insert proper C++ library support 2961 _LT_AC_TAGVAR(ld_shlibs, $1)=no 2962 ;; 2963 esac 2386 2964 ;; 2387 2388 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 2389 # support. Future versions do this automatically, but an explicit c++rt0.o 2390 # does not break anything, and helps significantly (at the cost of a little 2391 # extra space). 2392 freebsd2.2*) 2393 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 2394 hardcode_libdir_flag_spec='-R$libdir' 2395 hardcode_direct=yes 2396 hardcode_shlibpath_var=no 2965 freebsd[12]*) 2966 # C++ shared libraries reported to be fairly broken before switch to ELF 2967 _LT_AC_TAGVAR(ld_shlibs, $1)=no 2397 2968 ;; 2398 2399 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 2400 freebsd2*) 2401 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 2402 hardcode_direct=yes 2403 hardcode_minus_L=yes 2404 hardcode_shlibpath_var=no 2969 freebsd-elf*) 2970 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 2405 2971 ;; 2406 2407 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 2408 freebsd*) 2409 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 2410 hardcode_libdir_flag_spec='-R$libdir' 2411 hardcode_direct=yes 2412 hardcode_shlibpath_var=no 2972 freebsd* | kfreebsd*-gnu) 2973 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 2974 # conventions 2975 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 2413 2976 ;; 2414 2415 hpux9* | hpux10* | hpux11*) 2416 case $host_os in 2417 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; 2418 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; 2977 gnu*) 2978 ;; 2979 hpux9*) 2980 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 2981 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 2982 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 2983 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 2984 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 2985 # but as the default 2986 # location of the library. 2987 2988 case $cc_basename in 2989 CC) 2990 # FIXME: insert proper C++ library support 2991 _LT_AC_TAGVAR(ld_shlibs, $1)=no 2992 ;; 2993 aCC) 2994 _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' 2995 # Commands to make compiler produce verbose output that lists 2996 # what "hidden" libraries, object files and flags are used when 2997 # linking a shared library. 2998 # 2999 # There doesn't appear to be a way to prevent this compiler from 3000 # explicitly linking system object files so we need to strip them 3001 # from the output so that they don't get included in the library 3002 # dependencies. 3003 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' 3004 ;; 3005 *) 3006 if test "$GXX" = yes; then 3007 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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' 3008 else 3009 # FIXME: insert proper C++ library support 3010 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3011 fi 3012 ;; 2419 3013 esac 2420 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'2421 hardcode_libdir_separator=:2422 hardcode_direct=yes2423 hardcode_minus_L=yes # Not in the search PATH, but as the default2424 # location of the library.2425 export_dynamic_flag_spec='${wl}-E'2426 3014 ;; 2427 2428 irix5* | irix6* | nonstopux*) 2429 if test "$GCC" = yes; then 2430 archive_cmds='$CC -shared $libobjs $deplibs $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' 2431 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 2432 else 2433 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 2434 hardcode_libdir_flag_spec='-rpath $libdir' 2435 fi 2436 hardcode_libdir_separator=: 2437 link_all_deplibs=yes 2438 ;; 2439 2440 netbsd*) 2441 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 2442 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 2443 else 2444 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 2445 fi 2446 hardcode_libdir_flag_spec='-R$libdir' 2447 hardcode_direct=yes 2448 hardcode_shlibpath_var=no 2449 ;; 2450 2451 newsos6) 2452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 2453 hardcode_direct=yes 2454 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 2455 hardcode_libdir_separator=: 2456 hardcode_shlibpath_var=no 2457 ;; 2458 2459 openbsd*) 2460 hardcode_direct=yes 2461 hardcode_shlibpath_var=no 2462 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 2463 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 2464 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 2465 export_dynamic_flag_spec='${wl}-E' 2466 else 2467 case "$host_os" in 2468 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 2469 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 2470 hardcode_libdir_flag_spec='-R$libdir' 3015 hpux10*|hpux11*) 3016 if test $with_gnu_ld = no; then 3017 case "$host_cpu" in 3018 hppa*64*) 3019 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 3020 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 3021 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3022 ;; 3023 ia64*) 3024 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 2471 3025 ;; 2472 3026 *) 2473 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 2474 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 3027 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 3028 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3029 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 2475 3030 ;; 2476 3031 esac 2477 3032 fi 3033 case "$host_cpu" in 3034 hppa*64*) 3035 _LT_AC_TAGVAR(hardcode_direct, $1)=no 3036 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3037 ;; 3038 ia64*) 3039 _LT_AC_TAGVAR(hardcode_direct, $1)=no 3040 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3041 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 3042 # but as the default 3043 # location of the library. 3044 ;; 3045 *) 3046 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3047 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 3048 # but as the default 3049 # location of the library. 3050 ;; 3051 esac 3052 3053 case $cc_basename in 3054 CC) 3055 # FIXME: insert proper C++ library support 3056 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3057 ;; 3058 aCC) 3059 case "$host_cpu" in 3060 hppa*64*|ia64*) 3061 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 3062 ;; 3063 *) 3064 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3065 ;; 3066 esac 3067 # Commands to make compiler produce verbose output that lists 3068 # what "hidden" libraries, object files and flags are used when 3069 # linking a shared library. 3070 # 3071 # There doesn't appear to be a way to prevent this compiler from 3072 # explicitly linking system object files so we need to strip them 3073 # from the output so that they don't get included in the library 3074 # dependencies. 3075 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' 3076 ;; 3077 *) 3078 if test "$GXX" = yes; then 3079 if test $with_gnu_ld = no; then 3080 case "$host_cpu" in 3081 ia64*|hppa*64*) 3082 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 3083 ;; 3084 *) 3085 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3086 ;; 3087 esac 3088 fi 3089 else 3090 # FIXME: insert proper C++ library support 3091 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3092 fi 3093 ;; 3094 esac 2478 3095 ;; 2479 2480 os2*) 2481 hardcode_libdir_flag_spec='-L$libdir' 2482 hardcode_minus_L=yes 2483 allow_undefined_flag=unsupported 2484 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 2485 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 3096 irix5* | irix6*) 3097 case $cc_basename in 3098 CC) 3099 # SGI C++ 3100 _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 ${objdir}/so_locations -o $lib' 3101 3102 # Archives containing C++ object files must be created using 3103 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 3104 # necessary to make sure instantiated templates are included 3105 # in the archive. 3106 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 3107 ;; 3108 *) 3109 if test "$GXX" = yes; then 3110 if test "$with_gnu_ld" = no; then 3111 _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}${objdir}/so_locations -o $lib' 3112 else 3113 _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' 3114 fi 3115 fi 3116 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3117 ;; 3118 esac 3119 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 3120 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 2486 3121 ;; 2487 3122 linux*) 3123 case $cc_basename in 3124 KCC) 3125 # Kuck and Associates, Inc. (KAI) C++ Compiler 3126 3127 # KCC will only create a shared library if the output file 3128 # ends with ".so" (or ".sl" for HP-UX), so rename the library 3129 # to its proper name (with version) after linking. 3130 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 3131 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 3132 # Commands to make compiler produce verbose output that lists 3133 # what "hidden" libraries, object files and flags are used when 3134 # linking a shared library. 3135 # 3136 # There doesn't appear to be a way to prevent this compiler from 3137 # explicitly linking system object files so we need to strip them 3138 # from the output so that they don't get included in the library 3139 # dependencies. 3140 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 3141 3142 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' 3143 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 3144 3145 # Archives containing C++ object files must be created using 3146 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 3147 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 3148 ;; 3149 icpc) 3150 # Intel C++ 3151 with_gnu_ld=yes 3152 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3153 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 3154 _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' 3155 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3156 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 3157 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 3158 ;; 3159 cxx) 3160 # Compaq C++ 3161 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 3162 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 3163 3164 runpath_var=LD_RUN_PATH 3165 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 3166 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3167 3168 # Commands to make compiler produce verbose output that lists 3169 # what "hidden" libraries, object files and flags are used when 3170 # linking a shared library. 3171 # 3172 # There doesn't appear to be a way to prevent this compiler from 3173 # explicitly linking system object files so we need to strip them 3174 # from the output so that they don't get included in the library 3175 # dependencies. 3176 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' 3177 ;; 3178 esac 3179 ;; 3180 lynxos*) 3181 # FIXME: insert proper C++ library support 3182 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3183 ;; 3184 m88k*) 3185 # FIXME: insert proper C++ library support 3186 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3187 ;; 3188 mvs*) 3189 case $cc_basename in 3190 cxx) 3191 # FIXME: insert proper C++ library support 3192 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3193 ;; 3194 *) 3195 # FIXME: insert proper C++ library support 3196 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3197 ;; 3198 esac 3199 ;; 3200 netbsd*) 3201 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 3202 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 3203 wlarc= 3204 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 3205 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3206 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3207 fi 3208 # Workaround some broken pre-1.5 toolchains 3209 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 3210 ;; 2488 3211 osf3*) 2489 if test "$GCC" = yes; then 2490 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 2491 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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' 2492 else 2493 allow_undefined_flag=' -expect_unresolved \*' 2494 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 2495 fi 2496 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 2497 hardcode_libdir_separator=: 3212 case $cc_basename in 3213 KCC) 3214 # Kuck and Associates, Inc. (KAI) C++ Compiler 3215 3216 # KCC will only create a shared library if the output file 3217 # ends with ".so" (or ".sl" for HP-UX), so rename the library 3218 # to its proper name (with version) after linking. 3219 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 3220 3221 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3222 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3223 3224 # Archives containing C++ object files must be created using 3225 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 3226 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 3227 3228 ;; 3229 RCC) 3230 # Rational C++ 2.4.1 3231 # FIXME: insert proper C++ library support 3232 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3233 ;; 3234 cxx) 3235 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 3236 _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 ${objdir}/so_locations -o $lib' 3237 3238 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 3239 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3240 3241 # Commands to make compiler produce verbose output that lists 3242 # what "hidden" libraries, object files and flags are used when 3243 # linking a shared library. 3244 # 3245 # There doesn't appear to be a way to prevent this compiler from 3246 # explicitly linking system object files so we need to strip them 3247 # from the output so that they don't get included in the library 3248 # dependencies. 3249 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "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' 3250 ;; 3251 *) 3252 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 3253 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 3254 _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}${objdir}/so_locations -o $lib' 3255 3256 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 3257 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3258 3259 # Commands to make compiler produce verbose output that lists 3260 # what "hidden" libraries, object files and flags are used when 3261 # linking a shared library. 3262 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 3263 3264 else 3265 # FIXME: insert proper C++ library support 3266 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3267 fi 3268 ;; 3269 esac 2498 3270 ;; 2499 2500 osf4* | osf5*) # as osf3* with the addition of -msym flag 2501 if test "$GCC" = yes; then 2502 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 2503 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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' 2504 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 2505 else 2506 allow_undefined_flag=' -expect_unresolved \*' 2507 archive_cmds='$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' 2508 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 2509 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 2510 2511 #Both c and cxx compiler support -rpath directly 2512 hardcode_libdir_flag_spec='-rpath $libdir' 2513 fi 2514 hardcode_libdir_separator=: 3271 osf4* | osf5*) 3272 case $cc_basename in 3273 KCC) 3274 # Kuck and Associates, Inc. (KAI) C++ Compiler 3275 3276 # KCC will only create a shared library if the output file 3277 # ends with ".so" (or ".sl" for HP-UX), so rename the library 3278 # to its proper name (with version) after linking. 3279 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 3280 3281 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3282 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3283 3284 # Archives containing C++ object files must be created using 3285 # the KAI C++ compiler. 3286 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' 3287 ;; 3288 RCC) 3289 # Rational C++ 2.4.1 3290 # FIXME: insert proper C++ library support 3291 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3292 ;; 3293 cxx) 3294 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 3295 _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 ${objdir}/so_locations -o $lib' 3296 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 3297 echo "-hidden">> $lib.exp~ 3298 $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~ 3299 $rm $lib.exp' 3300 3301 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 3302 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3303 3304 # Commands to make compiler produce verbose output that lists 3305 # what "hidden" libraries, object files and flags are used when 3306 # linking a shared library. 3307 # 3308 # There doesn't appear to be a way to prevent this compiler from 3309 # explicitly linking system object files so we need to strip them 3310 # from the output so that they don't get included in the library 3311 # dependencies. 3312 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "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' 3313 ;; 3314 *) 3315 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 3316 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 3317 _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}${objdir}/so_locations -o $lib' 3318 3319 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 3320 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3321 3322 # Commands to make compiler produce verbose output that lists 3323 # what "hidden" libraries, object files and flags are used when 3324 # linking a shared library. 3325 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 3326 3327 else 3328 # FIXME: insert proper C++ library support 3329 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3330 fi 3331 ;; 3332 esac 2515 3333 ;; 2516 2517 sco3.2v5*) 2518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 2519 hardcode_shlibpath_var=no 2520 runpath_var=LD_RUN_PATH 2521 hardcode_runpath_var=yes 2522 export_dynamic_flag_spec='${wl}-Bexport' 3334 psos*) 3335 # FIXME: insert proper C++ library support 3336 _LT_AC_TAGVAR(ld_shlibs, $1)=no 2523 3337 ;; 2524 3338 sco*) 3339 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3340 case $cc_basename in 3341 CC) 3342 # FIXME: insert proper C++ library support 3343 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3344 ;; 3345 *) 3346 # FIXME: insert proper C++ library support 3347 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3348 ;; 3349 esac 3350 ;; 3351 sunos4*) 3352 case $cc_basename in 3353 CC) 3354 # Sun C++ 4.x 3355 # FIXME: insert proper C++ library support 3356 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3357 ;; 3358 lcc) 3359 # Lucid 3360 # FIXME: insert proper C++ library support 3361 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3362 ;; 3363 *) 3364 # FIXME: insert proper C++ library support 3365 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3366 ;; 3367 esac 3368 ;; 2525 3369 solaris*) 2526 # gcc --version < 3.0 without binutils cannot create self contained 2527 # shared libraries reliably, requiring libgcc.a to resolve some of 2528 # the object symbols generated in some cases. Libraries that use 2529 # assert need libgcc.a to resolve __eprintf, for example. Linking 2530 # a copy of libgcc.a into every shared library to guarantee resolving 2531 # such symbols causes other problems: According to Tim Van Holder 2532 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate 2533 # (to the application) exception stack for one thing. 2534 no_undefined_flag=' -z defs' 2535 if test "$GCC" = yes; then 2536 case `$CC --version 2>/dev/null` in 2537 [[12]].*) 2538 cat <<EOF 1>&2 2539 2540 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably 2541 *** create self contained shared libraries on Solaris systems, without 2542 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling 2543 *** -no-undefined support, which will at least allow you to build shared 2544 *** libraries. However, you may find that when you link such libraries 2545 *** into an application without using GCC, you have to manually add 2546 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to 2547 *** upgrade to a newer version of GCC. Another option is to rebuild your 2548 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. 2549 2550 EOF 2551 no_undefined_flag= 2552 ;; 2553 esac 2554 fi 2555 # $CC -shared without GNU ld will not create a library from C++ 2556 # object files and a static libstdc++, better avoid it by now 2557 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 2558 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 2559 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 2560 hardcode_libdir_flag_spec='-R$libdir' 2561 hardcode_shlibpath_var=no 2562 case $host_os in 2563 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 2564 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 2565 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 3370 case $cc_basename in 3371 CC) 3372 # Sun C++ 4.2, 5.x and Centerline C++ 3373 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 3374 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3375 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 3376 $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' 3377 3378 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 3379 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3380 case $host_os in 3381 solaris2.[0-5] | solaris2.[0-5].*) ;; 3382 *) 3383 # The C++ compiler is used as linker so we must use $wl 3384 # flag to pass the commands to the underlying system 3385 # linker. 3386 # Supported since Solaris 2.6 (maybe 2.5.1?) 3387 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 3388 ;; 3389 esac 3390 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3391 3392 # Commands to make compiler produce verbose output that lists 3393 # what "hidden" libraries, object files and flags are used when 3394 # linking a shared library. 3395 # 3396 # There doesn't appear to be a way to prevent this compiler from 3397 # explicitly linking system object files so we need to strip them 3398 # from the output so that they don't get included in the library 3399 # dependencies. 3400 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' 3401 3402 # Archives containing C++ object files must be created using 3403 # "CC -xar", where "CC" is the Sun C++ compiler. This is 3404 # necessary to make sure instantiated templates are included 3405 # in the archive. 3406 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 3407 ;; 3408 gcx) 3409 # Green Hills C++ Compiler 3410 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 3411 3412 # The C++ compiler must be used to create the archive. 3413 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 3414 ;; 3415 *) 3416 # GNU C++ compiler with Solaris linker 3417 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 3418 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 3419 if $CC --version | grep -v '^2\.7' > /dev/null; then 3420 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 3421 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 3422 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 3423 3424 # Commands to make compiler produce verbose output that lists 3425 # what "hidden" libraries, object files and flags are used when 3426 # linking a shared library. 3427 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 3428 else 3429 # g++ 2.7 appears to require `-G' NOT `-shared' on this 3430 # platform. 3431 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 3432 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 3433 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 3434 3435 # Commands to make compiler produce verbose output that lists 3436 # what "hidden" libraries, object files and flags are used when 3437 # linking a shared library. 3438 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 3439 fi 3440 3441 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 3442 fi 3443 ;; 2566 3444 esac 2567 link_all_deplibs=yes2568 3445 ;; 2569 2570 sunos4*) 2571 if test "x$host_vendor" = xsequent; then 2572 # Use $CC to link under sequent, because it throws in some extra .o 2573 # files that make .init and .fini sections work. 2574 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 2575 else 2576 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 2577 fi 2578 hardcode_libdir_flag_spec='-L$libdir' 2579 hardcode_direct=yes 2580 hardcode_minus_L=yes 2581 hardcode_shlibpath_var=no 3446 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) 3447 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 2582 3448 ;; 2583 2584 sysv4) 2585 case $host_vendor in 2586 sni) 2587 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 2588 hardcode_direct=yes # is this really true??? 2589 ;; 2590 siemens) 2591 ## LD is ld it makes a PLAMLIB 2592 ## CC just makes a GrossModule. 2593 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 2594 reload_cmds='$CC -r -o $output$reload_objs' 2595 hardcode_direct=no 2596 ;; 2597 motorola) 2598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 2599 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 2600 ;; 3449 tandem*) 3450 case $cc_basename in 3451 NCC) 3452 # NonStop-UX NCC 3.20 3453 # FIXME: insert proper C++ library support 3454 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3455 ;; 3456 *) 3457 # FIXME: insert proper C++ library support 3458 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3459 ;; 2601 3460 esac 2602 runpath_var='LD_RUN_PATH'2603 hardcode_shlibpath_var=no2604 3461 ;; 2605 2606 sysv4.3*) 2607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 2608 hardcode_shlibpath_var=no 2609 export_dynamic_flag_spec='-Bexport' 2610 ;; 2611 2612 sysv5*) 2613 no_undefined_flag=' -z text' 2614 # $CC -shared without GNU ld will not create a library from C++ 2615 # object files and a static libstdc++, better avoid it by now 2616 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 2617 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 2618 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 2619 hardcode_libdir_flag_spec= 2620 hardcode_shlibpath_var=no 2621 runpath_var='LD_RUN_PATH' 2622 ;; 2623 2624 uts4*) 2625 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 2626 hardcode_libdir_flag_spec='-L$libdir' 2627 hardcode_shlibpath_var=no 2628 ;; 2629 2630 dgux*) 2631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 2632 hardcode_libdir_flag_spec='-L$libdir' 2633 hardcode_shlibpath_var=no 2634 ;; 2635 2636 sysv4*MP*) 2637 if test -d /usr/nec; then 2638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 2639 hardcode_shlibpath_var=no 2640 runpath_var=LD_RUN_PATH 2641 hardcode_runpath_var=yes 2642 ld_shlibs=yes 2643 fi 2644 ;; 2645 2646 sysv4.2uw2*) 2647 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 2648 hardcode_direct=yes 2649 hardcode_minus_L=no 2650 hardcode_shlibpath_var=no 2651 hardcode_runpath_var=yes 2652 runpath_var=LD_RUN_PATH 2653 ;; 2654 2655 sysv5uw7* | unixware7*) 2656 no_undefined_flag='${wl}-z ${wl}text' 2657 if test "$GCC" = yes; then 2658 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 2659 else 2660 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 2661 fi 2662 runpath_var='LD_RUN_PATH' 2663 hardcode_shlibpath_var=no 2664 ;; 2665 2666 *) 2667 ld_shlibs=no 2668 ;; 2669 esac 2670 fi 2671 AC_MSG_RESULT([$ld_shlibs]) 2672 test "$ld_shlibs" = no && can_build_shared=no 2673 2674 # Check hardcoding attributes. 2675 AC_MSG_CHECKING([how to hardcode library paths into programs]) 2676 hardcode_action= 2677 if test -n "$hardcode_libdir_flag_spec" || \ 2678 test -n "$runpath_var"; then 2679 2680 # We can hardcode non-existant directories. 2681 if test "$hardcode_direct" != no && 2682 # If the only mechanism to avoid hardcoding is shlibpath_var, we 2683 # have to relink, otherwise we might link with an installed library 2684 # when we should be linking with a yet-to-be-installed one 2685 ## test "$hardcode_shlibpath_var" != no && 2686 test "$hardcode_minus_L" != no; then 2687 # Linking always hardcodes the temporary library directory. 2688 hardcode_action=relink 2689 else 2690 # We can link without hardcoding, and we can hardcode nonexisting dirs. 2691 hardcode_action=immediate 2692 fi 2693 else 2694 # We cannot hardcode anything, or else we can only hardcode existing 2695 # directories. 2696 hardcode_action=unsupported 2697 fi 2698 AC_MSG_RESULT([$hardcode_action]) 2699 2700 striplib= 2701 old_striplib= 2702 AC_MSG_CHECKING([whether stripping libraries is possible]) 2703 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 2704 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 2705 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 2706 AC_MSG_RESULT([yes]) 2707 else 2708 AC_MSG_RESULT([no]) 2709 fi 2710 2711 reload_cmds='$LD$reload_flag -o $output$reload_objs' 2712 test -z "$deplibs_check_method" && deplibs_check_method=unknown 2713 2714 # PORTME Fill in your ld.so characteristics 2715 AC_MSG_CHECKING([dynamic linker characteristics]) 2716 library_names_spec= 2717 libname_spec='lib$name' 2718 soname_spec= 2719 postinstall_cmds= 2720 postuninstall_cmds= 2721 finish_cmds= 2722 finish_eval= 2723 shlibpath_var= 2724 shlibpath_overrides_runpath=unknown 2725 version_type=none 2726 dynamic_linker="$host_os ld.so" 2727 sys_lib_dlsearch_path_spec="/lib /usr/lib" 2728 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 2729 2730 case $host_os in 2731 aix3*) 2732 version_type=linux 2733 library_names_spec='${libname}${release}.so$versuffix $libname.a' 2734 shlibpath_var=LIBPATH 2735 2736 # AIX has no versioning support, so we append a major version to the name. 2737 soname_spec='${libname}${release}.so$major' 2738 ;; 2739 2740 aix4* | aix5*) 2741 version_type=linux 2742 need_lib_prefix=no 2743 need_version=no 2744 hardcode_into_libs=yes 2745 if test "$host_cpu" = ia64; then 2746 # AIX 5 supports IA64 2747 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' 2748 shlibpath_var=LD_LIBRARY_PATH 2749 else 2750 # With GCC up to 2.95.x, collect2 would create an import file 2751 # for dependence libraries. The import file would start with 2752 # the line `#! .'. This would cause the generated library to 2753 # depend on `.', always an invalid library. This was fixed in 2754 # development snapshots of GCC prior to 3.0. 2755 case $host_os in 2756 aix4 | aix4.[[01]] | aix4.[[01]].*) 2757 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 2758 echo ' yes ' 2759 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 2760 : 2761 else 2762 can_build_shared=no 2763 fi 2764 ;; 2765 esac 2766 # AIX (on Power*) has no versioning support, so currently we can 2767 # not hardcode correct soname into executable. Probably we can 2768 # add versioning support to collect2, so additional links can 2769 # be useful in future. 2770 if test "$aix_use_runtimelinking" = yes; then 2771 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 2772 # instead of lib<name>.a to let people know that these are not 2773 # typical AIX shared libraries. 2774 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 2775 else 2776 # We preserve .a as extension for shared libraries through AIX4.2 2777 # and later when we are not doing run time linking. 2778 library_names_spec='${libname}${release}.a $libname.a' 2779 soname_spec='${libname}${release}.so$major' 2780 fi 2781 shlibpath_var=LIBPATH 2782 fi 2783 hardcode_into_libs=yes 2784 ;; 2785 2786 amigaos*) 2787 library_names_spec='$libname.ixlibrary $libname.a' 2788 # Create ${libname}_ixlibrary.a entries in /sys/libs. 2789 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' 2790 ;; 2791 2792 beos*) 2793 library_names_spec='${libname}.so' 2794 dynamic_linker="$host_os ld.so" 2795 shlibpath_var=LIBRARY_PATH 2796 ;; 2797 2798 bsdi4*) 2799 version_type=linux 2800 need_version=no 2801 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 2802 soname_spec='${libname}${release}.so$major' 2803 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 2804 shlibpath_var=LD_LIBRARY_PATH 2805 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 2806 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 2807 export_dynamic_flag_spec=-rdynamic 2808 # the default ld.so.conf also contains /usr/contrib/lib and 2809 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 2810 # libtool to hard-code these into programs 2811 ;; 2812 2813 cygwin* | mingw* | pw32*) 2814 version_type=windows 2815 need_version=no 2816 need_lib_prefix=no 2817 case $GCC,$host_os in 2818 yes,cygwin*) 2819 library_names_spec='$libname.dll.a' 2820 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll' 2821 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ 2822 dldir=$destdir/`dirname \$dlpath`~ 2823 test -d \$dldir || mkdir -p \$dldir~ 2824 $install_prog .libs/$dlname \$dldir/$dlname' 2825 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ 2826 dlpath=$dir/\$dldll~ 2827 $rm \$dlpath' 2828 ;; 2829 yes,mingw*) 2830 library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll' 2831 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"` 2832 ;; 2833 yes,pw32*) 2834 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 3462 vxworks*) 3463 # FIXME: insert proper C++ library support 3464 _LT_AC_TAGVAR(ld_shlibs, $1)=no 2835 3465 ;; 2836 3466 *) 2837 library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib' 3467 # FIXME: insert proper C++ library support 3468 _LT_AC_TAGVAR(ld_shlibs, $1)=no 2838 3469 ;; 2839 esac 2840 dynamic_linker='Win32 ld.exe' 2841 # FIXME: first we should search . and the directory the executable is in 2842 shlibpath_var=PATH 2843 ;; 2844 2845 darwin* | rhapsody*) 2846 dynamic_linker="$host_os dyld" 2847 version_type=darwin 2848 need_lib_prefix=no 2849 need_version=no 2850 # FIXME: Relying on posixy $() will cause problems for 2851 # cross-compilation, but unfortunately the echo tests do not 2852 # yet detect zsh echo's removal of \ escapes. 2853 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' 2854 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' 2855 shlibpath_overrides_runpath=yes 2856 shlibpath_var=DYLD_LIBRARY_PATH 2857 ;; 2858 2859 freebsd1*) 2860 dynamic_linker=no 2861 ;; 2862 2863 freebsd*) 2864 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 2865 version_type=freebsd-$objformat 2866 case $version_type in 2867 freebsd-elf*) 2868 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' 2869 need_version=no 2870 need_lib_prefix=no 2871 ;; 2872 freebsd-*) 2873 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' 2874 need_version=yes 2875 ;; 2876 esac 2877 shlibpath_var=LD_LIBRARY_PATH 2878 case $host_os in 2879 freebsd2*) 2880 shlibpath_overrides_runpath=yes 2881 ;; 2882 *) 2883 shlibpath_overrides_runpath=no 2884 hardcode_into_libs=yes 2885 ;; 2886 esac 2887 ;; 2888 2889 gnu*) 2890 version_type=linux 2891 need_lib_prefix=no 2892 need_version=no 2893 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' 2894 soname_spec='${libname}${release}.so$major' 2895 shlibpath_var=LD_LIBRARY_PATH 2896 hardcode_into_libs=yes 2897 ;; 2898 2899 hpux9* | hpux10* | hpux11*) 2900 # Give a soname corresponding to the major version so that dld.sl refuses to 2901 # link against other versions. 2902 dynamic_linker="$host_os dld.sl" 2903 version_type=sunos 2904 need_lib_prefix=no 2905 need_version=no 2906 shlibpath_var=SHLIB_PATH 2907 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 2908 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' 2909 soname_spec='${libname}${release}.sl$major' 2910 # HP-UX runs *really* slowly unless shared libraries are mode 555. 2911 postinstall_cmds='chmod 555 $lib' 2912 ;; 2913 2914 irix5* | irix6* | nonstopux*) 2915 case $host_os in 2916 nonstopux*) version_type=nonstopux ;; 2917 *) version_type=irix ;; 2918 esac 2919 need_lib_prefix=no 2920 need_version=no 2921 soname_spec='${libname}${release}.so$major' 2922 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' 2923 case $host_os in 2924 irix5* | nonstopux*) 2925 libsuff= shlibsuff= 2926 ;; 2927 *) 2928 case $LD in # libtool.m4 will add one of these switches to LD 2929 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; 2930 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; 2931 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; 2932 *) libsuff= shlibsuff= libmagic=never-match;; 3470 esac 3471 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 3472 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 3473 3474 _LT_AC_TAGVAR(GCC, $1)="$GXX" 3475 _LT_AC_TAGVAR(LD, $1)="$LD" 3476 3477 AC_LIBTOOL_POSTDEP_PREDEP($1) 3478 AC_LIBTOOL_PROG_COMPILER_PIC($1) 3479 AC_LIBTOOL_PROG_CC_C_O($1) 3480 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 3481 AC_LIBTOOL_PROG_LD_SHLIBS($1) 3482 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 3483 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 3484 AC_LIBTOOL_SYS_LIB_STRIP 3485 AC_LIBTOOL_DLOPEN_SELF($1) 3486 3487 AC_LIBTOOL_CONFIG($1) 3488 3489 AC_LANG_POP 3490 CC=$lt_save_CC 3491 LDCXX=$LD 3492 LD=$lt_save_LD 3493 GCC=$lt_save_GCC 3494 with_gnu_ldcxx=$with_gnu_ld 3495 with_gnu_ld=$lt_save_with_gnu_ld 3496 lt_cv_path_LDCXX=$lt_cv_path_LD 3497 lt_cv_path_LD=$lt_save_path_LD 3498 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 3499 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 3500 ])# AC_LIBTOOL_LANG_CXX_CONFIG 3501 3502 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) 3503 # ------------------------ 3504 # Figure out "hidden" library dependencies from verbose 3505 # compiler output when linking a shared library. 3506 # Parse the compiler output and extract the necessary 3507 # objects, libraries and library flags. 3508 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ 3509 dnl we can't use the lt_simple_compile_test_code here, 3510 dnl because it contains code intended for an executable, 3511 dnl not a library. It's possible we should let each 3512 dnl tag define a new lt_????_link_test_code variable, 3513 dnl but it's only used here... 3514 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF 3515 int a; 3516 void foo (void) { a = 0; } 3517 EOF 3518 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF 3519 class Foo 3520 { 3521 public: 3522 Foo (void) { a = 0; } 3523 private: 3524 int a; 3525 }; 3526 EOF 3527 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF 3528 subroutine foo 3529 implicit none 3530 integer*4 a 3531 a=0 3532 return 3533 end 3534 EOF 3535 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF 3536 public class foo { 3537 private int a; 3538 public void bar (void) { 3539 a = 0; 3540 } 3541 }; 3542 EOF 3543 ]) 3544 dnl Parse the compiler output and extract the necessary 3545 dnl objects, libraries and library flags. 3546 if AC_TRY_EVAL(ac_compile); then 3547 # Parse the compiler output and extract the necessary 3548 # objects, libraries and library flags. 3549 3550 # Sentinel used to keep track of whether or not we are before 3551 # the conftest object file. 3552 pre_test_object_deps_done=no 3553 3554 # The `*' in the case matches for architectures that use `case' in 3555 # $output_verbose_cmd can trigger glob expansion during the loop 3556 # eval without this substitution. 3557 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" 3558 3559 for p in `eval $output_verbose_link_cmd`; do 3560 case $p in 3561 3562 -L* | -R* | -l*) 3563 # Some compilers place space between "-{L,R}" and the path. 3564 # Remove the space. 3565 if test $p = "-L" \ 3566 || test $p = "-R"; then 3567 prev=$p 3568 continue 3569 else 3570 prev= 3571 fi 3572 3573 if test "$pre_test_object_deps_done" = no; then 3574 case $p in 3575 -L* | -R*) 3576 # Internal compiler library paths should come after those 3577 # provided the user. The postdeps already come after the 3578 # user supplied libs so there is no need to process them. 3579 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then 3580 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" 3581 else 3582 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" 3583 fi 3584 ;; 3585 # The "-l" case would never come before the object being 3586 # linked, so don't bother handling this case. 3587 esac 3588 else 3589 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then 3590 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}" 3591 else 3592 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}" 3593 fi 3594 fi 3595 ;; 3596 3597 *.$objext) 3598 # This assumes that the test object file only shows up 3599 # once in the compiler output. 3600 if test "$p" = "conftest.$objext"; then 3601 pre_test_object_deps_done=yes 3602 continue 3603 fi 3604 3605 if test "$pre_test_object_deps_done" = no; then 3606 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then 3607 _LT_AC_TAGVAR(predep_objects, $1)="$p" 3608 else 3609 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p" 3610 fi 3611 else 3612 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then 3613 _LT_AC_TAGVAR(postdep_objects, $1)="$p" 3614 else 3615 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p" 3616 fi 3617 fi 3618 ;; 3619 3620 *) ;; # Ignore the rest. 3621 2933 3622 esac 2934 ;; 2935 esac 2936 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 2937 shlibpath_overrides_runpath=no 2938 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 2939 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 2940 ;; 2941 2942 # No shared lib support for Linux oldld, aout, or coff. 2943 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) 2944 dynamic_linker=no 2945 ;; 2946 2947 # This must be Linux ELF. 2948 linux-gnu*) 2949 version_type=linux 2950 need_lib_prefix=no 2951 need_version=no 2952 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 2953 soname_spec='${libname}${release}.so$major' 2954 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 2955 shlibpath_var=LD_LIBRARY_PATH 2956 shlibpath_overrides_runpath=no 2957 # This implies no fast_install, which is unacceptable. 2958 # Some rework will be needed to allow for fast_install 2959 # before this can be enabled. 2960 hardcode_into_libs=yes 2961 2962 # We used to test for /lib/ld.so.1 and disable shared libraries on 2963 # powerpc, because MkLinux only supported shared libraries with the 2964 # GNU dynamic linker. Since this was broken with cross compilers, 2965 # most powerpc-linux boxes support dynamic linking these days and 2966 # people can always --disable-shared, the test was removed, and we 2967 # assume the GNU/Linux dynamic linker is in use. 2968 dynamic_linker='GNU/Linux ld.so' 2969 2970 # Find out which ABI we are using (multilib Linux x86_64 hack). 2971 libsuff= 2972 case "$host_cpu" in 2973 x86_64*|s390x*) 2974 echo '[#]line __oline__ "configure"' > conftest.$ac_ext 2975 if AC_TRY_EVAL(ac_compile); then 2976 case `/usr/bin/file conftest.$ac_objext` in 2977 *64-bit*) 2978 libsuff=64 2979 ;; 2980 esac 2981 fi 2982 rm -rf conftest* 2983 ;; 2984 *) 2985 ;; 2986 esac 2987 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" 2988 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 2989 ;; 2990 2991 netbsd*) 2992 version_type=sunos 2993 need_lib_prefix=no 2994 need_version=no 2995 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 2996 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 2997 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 2998 dynamic_linker='NetBSD (a.out) ld.so' 2999 else 3000 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' 3001 soname_spec='${libname}${release}.so$major' 3002 dynamic_linker='NetBSD ld.elf_so' 3003 fi 3004 shlibpath_var=LD_LIBRARY_PATH 3005 shlibpath_overrides_runpath=yes 3006 hardcode_into_libs=yes 3007 ;; 3008 3009 newsos6) 3010 version_type=linux 3011 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 3012 shlibpath_var=LD_LIBRARY_PATH 3013 shlibpath_overrides_runpath=yes 3014 ;; 3015 3016 openbsd*) 3017 version_type=sunos 3018 need_lib_prefix=no 3019 need_version=no 3020 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3021 case "$host_os" in 3022 openbsd2.[[89]] | openbsd2.[[89]].*) 3023 shlibpath_overrides_runpath=no 3024 ;; 3025 *) 3026 shlibpath_overrides_runpath=yes 3027 ;; 3028 esac 3029 else 3030 shlibpath_overrides_runpath=yes 3031 fi 3032 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 3033 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 3034 shlibpath_var=LD_LIBRARY_PATH 3035 ;; 3036 3037 os2*) 3038 libname_spec='$name' 3039 need_lib_prefix=no 3040 library_names_spec='$libname.dll $libname.a' 3041 dynamic_linker='OS/2 ld.exe' 3042 shlibpath_var=LIBPATH 3043 ;; 3044 3045 osf3* | osf4* | osf5*) 3046 version_type=osf 3047 need_version=no 3048 soname_spec='${libname}${release}.so$major' 3049 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 3050 shlibpath_var=LD_LIBRARY_PATH 3051 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 3052 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 3053 hardcode_into_libs=yes 3054 ;; 3055 3056 sco3.2v5*) 3057 version_type=osf 3058 soname_spec='${libname}${release}.so$major' 3059 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 3060 shlibpath_var=LD_LIBRARY_PATH 3061 ;; 3062 3063 solaris*) 3064 version_type=linux 3065 need_lib_prefix=no 3066 need_version=no 3067 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 3068 soname_spec='${libname}${release}.so$major' 3069 shlibpath_var=LD_LIBRARY_PATH 3070 shlibpath_overrides_runpath=yes 3071 hardcode_into_libs=yes 3072 # ldd complains unless libraries are executable 3073 postinstall_cmds='chmod +x $lib' 3074 ;; 3075 3076 sunos4*) 3077 version_type=sunos 3078 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 3079 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 3080 shlibpath_var=LD_LIBRARY_PATH 3081 shlibpath_overrides_runpath=yes 3082 if test "$with_gnu_ld" = yes; then 3083 need_lib_prefix=no 3084 fi 3085 need_version=yes 3086 ;; 3087 3088 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3089 version_type=linux 3090 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 3091 soname_spec='${libname}${release}.so$major' 3092 shlibpath_var=LD_LIBRARY_PATH 3093 case $host_vendor in 3094 sni) 3095 shlibpath_overrides_runpath=no 3096 need_lib_prefix=no 3097 export_dynamic_flag_spec='${wl}-Blargedynsym' 3098 runpath_var=LD_RUN_PATH 3099 ;; 3100 siemens) 3101 need_lib_prefix=no 3102 ;; 3103 motorola) 3104 need_lib_prefix=no 3105 need_version=no 3106 shlibpath_overrides_runpath=no 3107 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 3108 ;; 3109 esac 3110 ;; 3111 3112 uts4*) 3113 version_type=linux 3114 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 3115 soname_spec='${libname}${release}.so$major' 3116 shlibpath_var=LD_LIBRARY_PATH 3117 ;; 3118 3119 dgux*) 3120 version_type=linux 3121 need_lib_prefix=no 3122 need_version=no 3123 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 3124 soname_spec='${libname}${release}.so$major' 3125 shlibpath_var=LD_LIBRARY_PATH 3126 ;; 3127 3128 sysv4*MP*) 3129 if test -d /usr/nec ;then 3130 version_type=linux 3131 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' 3132 soname_spec='$libname.so.$major' 3133 shlibpath_var=LD_LIBRARY_PATH 3134 fi 3135 ;; 3136 3137 *) 3138 dynamic_linker=no 3139 ;; 3623 done 3624 3625 # Clean up. 3626 rm -f a.out a.exe 3627 else 3628 echo "libtool.m4: error: problem compiling $1 test program" 3629 fi 3630 3631 $rm -f confest.$objext 3632 3633 case " $_LT_AC_TAGVAR(postdeps, $1) " in 3634 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; 3140 3635 esac 3141 AC_MSG_RESULT([$dynamic_linker]) 3142 test "$dynamic_linker" = no && can_build_shared=no 3143 3144 # Report the final consequences. 3636 ])# AC_LIBTOOL_POSTDEP_PREDEP 3637 3638 # AC_LIBTOOL_LANG_F77_CONFIG 3639 # ------------------------ 3640 # Ensure that the configuration vars for the C compiler are 3641 # suitably defined. Those variables are subsequently used by 3642 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 3643 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) 3644 AC_DEFUN([_LT_AC_LANG_F77_CONFIG], 3645 [AC_REQUIRE([AC_PROG_F77]) 3646 AC_LANG_PUSH(Fortran 77) 3647 3648 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3649 _LT_AC_TAGVAR(allow_undefined_flag, $1)= 3650 _LT_AC_TAGVAR(always_export_symbols, $1)=no 3651 _LT_AC_TAGVAR(archive_expsym_cmds, $1)= 3652 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 3653 _LT_AC_TAGVAR(hardcode_direct, $1)=no 3654 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 3655 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 3656 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 3657 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no 3658 _LT_AC_TAGVAR(hardcode_automatic, $1)=no 3659 _LT_AC_TAGVAR(module_cmds, $1)= 3660 _LT_AC_TAGVAR(module_expsym_cmds, $1)= 3661 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 3662 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 3663 _LT_AC_TAGVAR(no_undefined_flag, $1)= 3664 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 3665 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 3666 3667 # Source file extension for f77 test sources. 3668 ac_ext=f 3669 3670 # Object file extension for compiled f77 test sources. 3671 objext=o 3672 _LT_AC_TAGVAR(objext, $1)=$objext 3673 3674 # Code to be used in simple compile tests 3675 lt_simple_compile_test_code=" subroutine t\n return\n end\n" 3676 3677 # Code to be used in simple link tests 3678 lt_simple_link_test_code=" program t\n end\n" 3679 3680 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 3681 _LT_AC_SYS_COMPILER 3682 3683 # Allow CC to be a program name with arguments. 3684 lt_save_CC="$CC" 3685 CC=${F77-"f77"} 3686 compiler=$CC 3687 _LT_AC_TAGVAR(compiler, $1)=$CC 3688 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 3689 3145 3690 AC_MSG_CHECKING([if libtool supports shared libraries]) 3146 3691 AC_MSG_RESULT([$can_build_shared]) … … 3159 3704 fi 3160 3705 ;; 3161 3162 aix4*) 3163 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 3164 test "$enable_shared" = yes && enable_static=no 3165 fi 3706 aix4* | aix5*) 3707 test "$enable_shared" = yes && enable_static=no 3166 3708 ;; 3167 3709 esac … … 3173 3715 AC_MSG_RESULT([$enable_static]) 3174 3716 3175 if test "$hardcode_action" = relink; then 3176 # Fast installation is not supported 3177 enable_fast_install=no 3178 elif test "$shlibpath_overrides_runpath" = yes || 3179 test "$enable_shared" = no; then 3180 # Fast installation is not necessary 3181 enable_fast_install=needless 3182 fi 3183 3184 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 3185 if test "$GCC" = yes; then 3186 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 3187 fi 3188 3189 AC_LIBTOOL_DLOPEN_SELF 3190 3191 if test "$enable_shared" = yes && test "$GCC" = yes; then 3192 case $archive_cmds in 3193 *'~'*) 3194 # FIXME: we may have to deal with multi-command sequences. 3195 ;; 3196 '$CC '*) 3197 # Test whether the compiler implicitly links with -lc since on some 3198 # systems, -lgcc has to come before -lc. If gcc already passes -lc 3199 # to ld, don't add -lc before -lgcc. 3200 AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 3201 AC_CACHE_VAL([lt_cv_archive_cmds_need_lc], 3202 [$rm conftest* 3203 echo 'static int dummy;' > conftest.$ac_ext 3204 3205 if AC_TRY_EVAL(ac_compile); then 3206 soname=conftest 3207 lib=conftest 3208 libobjs=conftest.$ac_objext 3209 deplibs= 3210 wl=$lt_cv_prog_cc_wl 3211 compiler_flags=-v 3212 linker_flags=-v 3213 verstring= 3214 output_objdir=. 3215 libname=conftest 3216 save_allow_undefined_flag=$allow_undefined_flag 3217 allow_undefined_flag= 3218 if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 3219 then 3220 lt_cv_archive_cmds_need_lc=no 3221 else 3222 lt_cv_archive_cmds_need_lc=yes 3223 fi 3224 allow_undefined_flag=$save_allow_undefined_flag 3225 else 3226 cat conftest.err 1>&5 3227 fi]) 3228 AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc]) 3229 ;; 3230 esac 3231 fi 3232 need_lc=${lt_cv_archive_cmds_need_lc-yes} 3233 3234 # The second clause should only fire when bootstrapping the 3717 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 3718 3719 _LT_AC_TAGVAR(GCC, $1)="$G77" 3720 _LT_AC_TAGVAR(LD, $1)="$LD" 3721 3722 AC_LIBTOOL_PROG_COMPILER_PIC($1) 3723 AC_LIBTOOL_PROG_CC_C_O($1) 3724 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 3725 AC_LIBTOOL_PROG_LD_SHLIBS($1) 3726 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 3727 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 3728 AC_LIBTOOL_SYS_LIB_STRIP 3729 3730 3731 AC_LIBTOOL_CONFIG($1) 3732 3733 AC_LANG_POP 3734 CC="$lt_save_CC" 3735 ])# AC_LIBTOOL_LANG_F77_CONFIG 3736 3737 3738 # AC_LIBTOOL_LANG_GCJ_CONFIG 3739 # -------------------------- 3740 # Ensure that the configuration vars for the C compiler are 3741 # suitably defined. Those variables are subsequently used by 3742 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 3743 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) 3744 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], 3745 [AC_LANG_SAVE 3746 3747 # Source file extension for Java test sources. 3748 ac_ext=java 3749 3750 # Object file extension for compiled Java test sources. 3751 objext=o 3752 _LT_AC_TAGVAR(objext, $1)=$objext 3753 3754 # Code to be used in simple compile tests 3755 lt_simple_compile_test_code="class foo {}\n" 3756 3757 # Code to be used in simple link tests 3758 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 3759 3760 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 3761 _LT_AC_SYS_COMPILER 3762 3763 # Allow CC to be a program name with arguments. 3764 lt_save_CC="$CC" 3765 CC=${GCJ-"gcj"} 3766 compiler=$CC 3767 _LT_AC_TAGVAR(compiler, $1)=$CC 3768 3769 # GCJ did not exist at the time GCC didn't implicitly link libc in. 3770 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3771 3772 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) 3773 AC_LIBTOOL_PROG_COMPILER_PIC($1) 3774 AC_LIBTOOL_PROG_CC_C_O($1) 3775 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 3776 AC_LIBTOOL_PROG_LD_SHLIBS($1) 3777 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 3778 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 3779 AC_LIBTOOL_SYS_LIB_STRIP 3780 AC_LIBTOOL_DLOPEN_SELF($1) 3781 3782 AC_LIBTOOL_CONFIG($1) 3783 3784 AC_LANG_RESTORE 3785 CC="$lt_save_CC" 3786 ])# AC_LIBTOOL_LANG_GCJ_CONFIG 3787 3788 3789 # AC_LIBTOOL_LANG_RC_CONFIG 3790 # -------------------------- 3791 # Ensure that the configuration vars for the Windows resource compiler are 3792 # suitably defined. Those variables are subsequently used by 3793 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 3794 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) 3795 AC_DEFUN([_LT_AC_LANG_RC_CONFIG], 3796 [AC_LANG_SAVE 3797 3798 # Source file extension for RC test sources. 3799 ac_ext=rc 3800 3801 # Object file extension for compiled RC test sources. 3802 objext=o 3803 _LT_AC_TAGVAR(objext, $1)=$objext 3804 3805 # Code to be used in simple compile tests 3806 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 3807 3808 # Code to be used in simple link tests 3809 lt_simple_link_test_code="$lt_simple_compile_test_code" 3810 3811 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 3812 _LT_AC_SYS_COMPILER 3813 3814 # Allow CC to be a program name with arguments. 3815 lt_save_CC="$CC" 3816 CC=${RC-"windres"} 3817 compiler=$CC 3818 _LT_AC_TAGVAR(compiler, $1)=$CC 3819 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 3820 3821 AC_LIBTOOL_CONFIG($1) 3822 3823 AC_LANG_RESTORE 3824 CC="$lt_save_CC" 3825 ])# AC_LIBTOOL_LANG_RC_CONFIG 3826 3827 3828 # AC_LIBTOOL_CONFIG([TAGNAME]) 3829 # ---------------------------- 3830 # If TAGNAME is not passed, then create an initial libtool script 3831 # with a default configuration from the untagged config vars. Otherwise 3832 # add code to config.status for appending the configuration named by 3833 # TAGNAME from the matching tagged config vars. 3834 AC_DEFUN([AC_LIBTOOL_CONFIG], 3835 [# The else clause should only fire when bootstrapping the 3235 3836 # libtool distribution, otherwise you forgot to ship ltmain.sh 3236 3837 # with your package, and you will get complaints that there are 3237 3838 # no rules to generate ltmain.sh. 3238 3839 if test -f "$ltmain"; then 3239 : 3240 else 3241 # If there is no Makefile yet, we rely on a make rule to execute 3242 # `config.status --recheck' to rerun these tests and create the 3243 # libtool script then. 3244 test -f Makefile && make "$ltmain" 3245 fi 3246 3247 if test -f "$ltmain"; then 3248 trap "$rm \"${ofile}T\"; exit 1" 1 2 15 3249 $rm -f "${ofile}T" 3250 3251 echo creating $ofile 3252 3840 # See if we are running on zsh, and set the options which allow our commands through 3841 # without removal of \ escapes. 3842 if test -n "${ZSH_VERSION+set}" ; then 3843 setopt NO_GLOB_SUBST 3844 fi 3253 3845 # Now quote all the things that may contain metacharacters while being 3254 3846 # careful not to overquote the AC_SUBSTed values. We take copies of the 3255 3847 # variables and quote the copies for generation of the libtool script. 3256 for var in echo old_CC old_CFLAGS SED \ 3257 AR AR_FLAGS CC LD LN_S NM SHELL \ 3258 reload_flag reload_cmds wl \ 3259 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ 3260 thread_safe_flag_spec whole_archive_flag_spec libname_spec \ 3261 library_names_spec soname_spec \ 3262 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ 3263 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ 3264 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ 3265 old_striplib striplib file_magic_cmd export_symbols_cmds \ 3266 deplibs_check_method allow_undefined_flag no_undefined_flag \ 3267 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ 3268 global_symbol_to_c_name_address \ 3269 hardcode_libdir_flag_spec hardcode_libdir_separator \ 3848 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 3849 SED SHELL STRIP \ 3850 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 3851 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 3852 deplibs_check_method reload_flag reload_cmds need_locks \ 3853 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 3854 lt_cv_sys_global_symbol_to_c_name_address \ 3270 3855 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 3271 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do 3856 old_postinstall_cmds old_postuninstall_cmds \ 3857 _LT_AC_TAGVAR(compiler, $1) \ 3858 _LT_AC_TAGVAR(CC, $1) \ 3859 _LT_AC_TAGVAR(LD, $1) \ 3860 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ 3861 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ 3862 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ 3863 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ 3864 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ 3865 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ 3866 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ 3867 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ 3868 _LT_AC_TAGVAR(old_archive_cmds, $1) \ 3869 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ 3870 _LT_AC_TAGVAR(predep_objects, $1) \ 3871 _LT_AC_TAGVAR(postdep_objects, $1) \ 3872 _LT_AC_TAGVAR(predeps, $1) \ 3873 _LT_AC_TAGVAR(postdeps, $1) \ 3874 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ 3875 _LT_AC_TAGVAR(archive_cmds, $1) \ 3876 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ 3877 _LT_AC_TAGVAR(postinstall_cmds, $1) \ 3878 _LT_AC_TAGVAR(postuninstall_cmds, $1) \ 3879 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ 3880 _LT_AC_TAGVAR(allow_undefined_flag, $1) \ 3881 _LT_AC_TAGVAR(no_undefined_flag, $1) \ 3882 _LT_AC_TAGVAR(export_symbols_cmds, $1) \ 3883 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ 3884 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ 3885 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ 3886 _LT_AC_TAGVAR(hardcode_automatic, $1) \ 3887 _LT_AC_TAGVAR(module_cmds, $1) \ 3888 _LT_AC_TAGVAR(module_expsym_cmds, $1) \ 3889 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ 3890 _LT_AC_TAGVAR(exclude_expsyms, $1) \ 3891 _LT_AC_TAGVAR(include_expsyms, $1); do 3272 3892 3273 3893 case $var in 3274 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ 3894 _LT_AC_TAGVAR(old_archive_cmds, $1) | \ 3895 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ 3896 _LT_AC_TAGVAR(archive_cmds, $1) | \ 3897 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ 3898 _LT_AC_TAGVAR(module_cmds, $1) | \ 3899 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ 3900 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ 3901 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ 3902 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 3903 postinstall_cmds | postuninstall_cmds | \ 3275 3904 old_postinstall_cmds | old_postuninstall_cmds | \ 3276 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ 3277 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ 3278 postinstall_cmds | postuninstall_cmds | \ 3279 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 3905 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 3280 3906 # Double-quote double-evaled strings. 3281 3907 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" … … 3287 3913 done 3288 3914 3289 cat <<__EOF__ > "${ofile}T" 3290 #! $SHELL 3291 3292 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 3915 case $lt_echo in 3916 *'\[$]0 --fallback-echo"') 3917 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` 3918 ;; 3919 esac 3920 3921 ifelse([$1], [], 3922 [cfgfile="${ofile}T" 3923 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 3924 $rm -f "$cfgfile" 3925 AC_MSG_NOTICE([creating $ofile])], 3926 [cfgfile="$ofile"]) 3927 3928 cat <<__EOF__ >> "$cfgfile" 3929 ifelse([$1], [], 3930 [#! $SHELL 3931 3932 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 3293 3933 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 3294 3934 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 3295 3935 # 3296 # Copyright (C) 1996-2000 Free Software Foundation, Inc. 3936 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 3937 # Free Software Foundation, Inc. 3938 # 3939 # This file is part of GNU Libtool: 3297 3940 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 3298 3941 # … … 3316 3959 # the same distribution terms that you use for the rest of that program. 3317 3960 3318 # A sed that does not truncate output.3961 # A sed program that does not truncate output. 3319 3962 SED=$lt_SED 3320 3963 3321 3964 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 3322 Xsed="$ {SED}-e s/^X//"3965 Xsed="$SED -e s/^X//" 3323 3966 3324 3967 # The HP-UX ksh and POSIX shell print the target directory to stdout … … 3326 3969 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 3327 3970 3328 # ### BEGIN LIBTOOL CONFIG 3971 # The names of the tagged configurations supported by this script. 3972 available_tags= 3973 3974 # ### BEGIN LIBTOOL CONFIG], 3975 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) 3329 3976 3330 3977 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: … … 3340 3987 3341 3988 # Whether or not to add -lc for building shared libraries. 3342 build_libtool_need_lc=$need_lc 3989 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) 3990 3991 # Whether or not to disallow shared libs when runtime libs are static 3992 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) 3343 3993 3344 3994 # Whether or not to optimize for fast installation. … … 3356 4006 AR_FLAGS=$lt_AR_FLAGS 3357 4007 3358 # The default C compiler. 3359 CC=$lt_CC 4008 # A C compiler. 4009 LTCC=$lt_LTCC 4010 4011 # A language-specific compiler. 4012 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) 3360 4013 3361 4014 # Is the compiler the GNU C compiler? 3362 with_gcc=$GCC 4015 with_gcc=$_LT_AC_TAGVAR(GCC, $1) 4016 4017 # An ERE matcher. 4018 EGREP=$lt_EGREP 3363 4019 3364 4020 # The linker used to build libraries. 3365 LD=$lt_ LD4021 LD=$lt_[]_LT_AC_TAGVAR(LD, $1) 3366 4022 3367 4023 # Whether we need hard or soft links. … … 3372 4028 3373 4029 # A symbol stripping program 3374 STRIP=$ STRIP4030 STRIP=$lt_STRIP 3375 4031 3376 4032 # Used to examine libraries when file_magic_cmd begins "file" … … 3394 4050 3395 4051 # How to pass a linker flag through the compiler. 3396 wl=$lt_ wl4052 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) 3397 4053 3398 4054 # Object file suffix (normally "o"). … … 3402 4058 libext="$libext" 3403 4059 4060 # Shared library suffix (normally ".so"). 4061 shrext_cmds='$shrext_cmds' 4062 3404 4063 # Executable file suffix (normally ""). 3405 4064 exeext="$exeext" 3406 4065 3407 4066 # Additional compiler flags for building library objects. 3408 pic_flag=$lt_ pic_flag4067 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) 3409 4068 pic_mode=$pic_mode 3410 4069 4070 # What is the maximum length of a command? 4071 max_cmd_len=$lt_cv_sys_max_cmd_len 4072 3411 4073 # Does compiler simultaneously support -c and -o options? 3412 compiler_c_o=$lt_compiler_c_o 3413 3414 # Can we write directly to a .lo ? 3415 compiler_o_lo=$lt_compiler_o_lo 4074 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) 3416 4075 3417 4076 # Must we lock files when doing compilation ? … … 3434 4093 3435 4094 # Compiler flag to prevent dynamic linking. 3436 link_static_flag=$lt_ link_static_flag4095 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) 3437 4096 3438 4097 # Compiler flag to turn off builtin functions. 3439 no_builtin_flag=$lt_ no_builtin_flag4098 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) 3440 4099 3441 4100 # Compiler flag to allow reflexive dlopens. 3442 export_dynamic_flag_spec=$lt_ export_dynamic_flag_spec4101 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) 3443 4102 3444 4103 # Compiler flag to generate shared objects directly from archives. 3445 whole_archive_flag_spec=$lt_ whole_archive_flag_spec4104 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) 3446 4105 3447 4106 # Compiler flag to generate thread-safe objects. 3448 thread_safe_flag_spec=$lt_ thread_safe_flag_spec4107 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) 3449 4108 3450 4109 # Library versioning type. … … 3463 4122 # Commands used to build and install an old-style archive. 3464 4123 RANLIB=$lt_RANLIB 3465 old_archive_cmds=$lt_ old_archive_cmds4124 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) 3466 4125 old_postinstall_cmds=$lt_old_postinstall_cmds 3467 4126 old_postuninstall_cmds=$lt_old_postuninstall_cmds 3468 4127 3469 4128 # Create an old-style archive from a shared archive. 3470 old_archive_from_new_cmds=$lt_ old_archive_from_new_cmds4129 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) 3471 4130 3472 4131 # Create a temporary old-style archive to link instead of a shared archive. 3473 old_archive_from_expsyms_cmds=$lt_ old_archive_from_expsyms_cmds4132 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) 3474 4133 3475 4134 # Commands used to build and install a shared archive. 3476 archive_cmds=$lt_ archive_cmds3477 archive_expsym_cmds=$lt_ archive_expsym_cmds4135 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) 4136 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) 3478 4137 postinstall_cmds=$lt_postinstall_cmds 3479 4138 postuninstall_cmds=$lt_postuninstall_cmds 4139 4140 # Commands used to build a loadable module (assumed same as above if empty) 4141 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) 4142 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) 3480 4143 3481 4144 # Commands to strip libraries. … … 3483 4146 striplib=$lt_striplib 3484 4147 4148 # Dependencies to place before the objects being linked to create a 4149 # shared library. 4150 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) 4151 4152 # Dependencies to place after the objects being linked to create a 4153 # shared library. 4154 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) 4155 4156 # Dependencies to place before the objects being linked to create a 4157 # shared library. 4158 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) 4159 4160 # Dependencies to place after the objects being linked to create a 4161 # shared library. 4162 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) 4163 4164 # The library search path used internally by the compiler when linking 4165 # a shared library. 4166 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) 4167 3485 4168 # Method to check whether dependent libraries are shared objects. 3486 4169 deplibs_check_method=$lt_deplibs_check_method … … 3490 4173 3491 4174 # Flag that allows shared libraries with undefined symbols to be built. 3492 allow_undefined_flag=$lt_ allow_undefined_flag4175 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) 3493 4176 3494 4177 # Flag that forces no undefined symbols. 3495 no_undefined_flag=$lt_ no_undefined_flag4178 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) 3496 4179 3497 4180 # Commands used to finish a libtool library installation in a directory. … … 3502 4185 3503 4186 # Take the output of nm and produce a listing of raw symbols and C names. 3504 global_symbol_pipe=$lt_ global_symbol_pipe4187 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 3505 4188 3506 4189 # Transform the output of nm in a proper C declaration 3507 global_symbol_to_cdecl=$lt_ global_symbol_to_cdecl4190 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 3508 4191 3509 4192 # Transform the output of nm in a C name address pair 3510 global_symbol_to_c_name_address=$lt_ global_symbol_to_c_name_address4193 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 3511 4194 3512 4195 # This is the shared library runtime path variable. … … 3520 4203 3521 4204 # How to hardcode a shared library path into an executable. 3522 hardcode_action=$ hardcode_action4205 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) 3523 4206 3524 4207 # Whether we should hardcode library paths into libraries. … … 3527 4210 # Flag to hardcode \$libdir into a binary during linking. 3528 4211 # This must work even if \$libdir does not exist. 3529 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 4212 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) 4213 4214 # If ld is used when linking, flag to hardcode \$libdir into 4215 # a binary during linking. This must work even if \$libdir does 4216 # not exist. 4217 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) 3530 4218 3531 4219 # Whether we need a single -rpath flag with a separated argument. 3532 hardcode_libdir_separator=$lt_ hardcode_libdir_separator3533 3534 # Set to yes if using DIR/libNAME .soduring linking hardcodes DIR into the4220 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) 4221 4222 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 3535 4223 # resulting binary. 3536 hardcode_direct=$ hardcode_direct4224 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) 3537 4225 3538 4226 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 3539 4227 # resulting binary. 3540 hardcode_minus_L=$ hardcode_minus_L4228 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) 3541 4229 3542 4230 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 3543 4231 # the resulting binary. 3544 hardcode_shlibpath_var=$hardcode_shlibpath_var 4232 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) 4233 4234 # Set to yes if building a shared library automatically hardcodes DIR into the library 4235 # and all subsequent libraries and executables linked against it. 4236 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) 3545 4237 3546 4238 # Variables whose values should be saved in libtool wrapper scripts and … … 3549 4241 3550 4242 # Whether libtool must link a program against all its dependency libraries. 3551 link_all_deplibs=$ link_all_deplibs4243 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) 3552 4244 3553 4245 # Compile-time system search path for libraries … … 3558 4250 3559 4251 # Fix the shell variable \$srcfile for the compiler. 3560 fix_srcfile_path="$ fix_srcfile_path"4252 fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)" 3561 4253 3562 4254 # Set to yes if exported symbols are required. 3563 always_export_symbols=$ always_export_symbols4255 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) 3564 4256 3565 4257 # The commands to list exported symbols. 3566 export_symbols_cmds=$lt_ export_symbols_cmds4258 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) 3567 4259 3568 4260 # The commands to extract the exported symbol list from a shared archive. … … 3570 4262 3571 4263 # Symbols that should not be listed in the preloaded symbols. 3572 exclude_expsyms=$lt_ exclude_expsyms4264 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) 3573 4265 3574 4266 # Symbols that must always be exported. 3575 include_expsyms=$lt_include_expsyms 3576 3577 # ### END LIBTOOL CONFIG 4267 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) 4268 4269 ifelse([$1],[], 4270 [# ### END LIBTOOL CONFIG], 4271 [# ### END LIBTOOL TAG CONFIG: $tagname]) 3578 4272 3579 4273 __EOF__ 3580 4274 4275 ifelse([$1],[], [ 3581 4276 case $host_os in 3582 4277 aix3*) 3583 cat <<\EOF >> "$ {ofile}T"4278 cat <<\EOF >> "$cfgfile" 3584 4279 3585 4280 # AIX sometimes has problems with the GCC collect2 program. For some … … 3594 4289 esac 3595 4290 4291 # We use sed instead of cat because bash on DJGPP gets confused if 4292 # if finds mixed CR/LF and LF-only lines. Since sed operates in 4293 # text mode, it properly converts lines to CR/LF. This bash problem 4294 # is reportedly fixed, but why not run on old versions too? 4295 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 4296 4297 mv -f "$cfgfile" "$ofile" || \ 4298 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 4299 chmod +x "$ofile" 4300 ]) 4301 else 4302 # If there is no Makefile yet, we rely on a make rule to execute 4303 # `config.status --recheck' to rerun these tests and create the 4304 # libtool script then. 4305 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 4306 if test -f "$ltmain_in"; then 4307 test -f Makefile && make "$ltmain" 4308 fi 4309 fi 4310 ])# AC_LIBTOOL_CONFIG 4311 4312 4313 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) 4314 # ------------------------------------------- 4315 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], 4316 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 4317 4318 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 4319 4320 if test "$GCC" = yes; then 4321 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 4322 4323 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 4324 lt_cv_prog_compiler_rtti_exceptions, 4325 [-fno-rtti -fno-exceptions], [], 4326 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 4327 fi 4328 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI 4329 4330 4331 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 4332 # --------------------------------- 4333 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], 4334 [AC_REQUIRE([AC_CANONICAL_HOST]) 4335 AC_REQUIRE([AC_PROG_NM]) 4336 AC_REQUIRE([AC_OBJEXT]) 4337 # Check for command to grab the raw symbol name followed by C symbol from nm. 4338 AC_MSG_CHECKING([command to parse $NM output from $compiler object]) 4339 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 4340 [ 4341 # These are sane defaults that work on at least a few old systems. 4342 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 4343 4344 # Character class describing NM global symbol codes. 4345 symcode='[[BCDEGRST]]' 4346 4347 # Regexp to match symbols that can be accessed directly from C. 4348 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 4349 4350 # Transform the above into a raw symbol and a C symbol. 4351 symxfrm='\1 \2\3 \3' 4352 4353 # Transform an extracted symbol line into a proper C declaration 4354 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 4355 4356 # Transform an extracted symbol line into symbol name and symbol address 4357 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'" 4358 4359 # Define system-specific variables. 4360 case $host_os in 4361 aix*) 4362 symcode='[[BCDT]]' 4363 ;; 4364 cygwin* | mingw* | pw32*) 4365 symcode='[[ABCDGISTW]]' 4366 ;; 4367 hpux*) # Its linker distinguishes data from code symbols 4368 if test "$host_cpu" = ia64; then 4369 symcode='[[ABCDEGRST]]' 4370 fi 4371 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4372 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'" 4373 ;; 4374 irix* | nonstopux*) 4375 symcode='[[BCDEGRST]]' 4376 ;; 4377 osf*) 4378 symcode='[[BCDEGQRST]]' 4379 ;; 4380 solaris* | sysv5*) 4381 symcode='[[BDRT]]' 4382 ;; 4383 sysv4) 4384 symcode='[[DFNSTU]]' 4385 ;; 4386 esac 4387 4388 # Handle CRLF in mingw tool chain 4389 opt_cr= 4390 case $build_os in 4391 mingw*) 4392 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 4393 ;; 4394 esac 4395 4396 # If we're using GNU nm, then use its standard symbol codes. 4397 case `$NM -V 2>&1` in 4398 *GNU* | *'with BFD'*) 4399 symcode='[[ABCDGIRSTW]]' ;; 4400 esac 4401 4402 # Try without a prefix undercore, then with it. 4403 for ac_symprfx in "" "_"; do 4404 4405 # Write the raw and C identifiers. 4406 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 4407 4408 # Check to see that the pipe works correctly. 4409 pipe_works=no 4410 4411 rm -f conftest* 4412 cat > conftest.$ac_ext <<EOF 4413 #ifdef __cplusplus 4414 extern "C" { 4415 #endif 4416 char nm_test_var; 4417 void nm_test_func(){} 4418 #ifdef __cplusplus 4419 } 4420 #endif 4421 int main(){nm_test_var='a';nm_test_func();return(0);} 4422 EOF 4423 4424 if AC_TRY_EVAL(ac_compile); then 4425 # Now try to grab the symbols. 4426 nlist=conftest.nm 4427 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then 4428 # Try sorting and uniquifying the output. 4429 if sort "$nlist" | uniq > "$nlist"T; then 4430 mv -f "$nlist"T "$nlist" 4431 else 4432 rm -f "$nlist"T 4433 fi 4434 4435 # Make sure that we snagged all the symbols we need. 4436 if grep ' nm_test_var$' "$nlist" >/dev/null; then 4437 if grep ' nm_test_func$' "$nlist" >/dev/null; then 4438 cat <<EOF > conftest.$ac_ext 4439 #ifdef __cplusplus 4440 extern "C" { 4441 #endif 4442 4443 EOF 4444 # Now generate the symbol file. 4445 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 4446 4447 cat <<EOF >> conftest.$ac_ext 4448 #if defined (__STDC__) && __STDC__ 4449 # define lt_ptr_t void * 4450 #else 4451 # define lt_ptr_t char * 4452 # define const 4453 #endif 4454 4455 /* The mapping between symbol names and symbols. */ 4456 const struct { 4457 const char *name; 4458 lt_ptr_t address; 4459 } 4460 lt_preloaded_symbols[[]] = 4461 { 4462 EOF 4463 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 4464 cat <<\EOF >> conftest.$ac_ext 4465 {0, (lt_ptr_t) 0} 4466 }; 4467 4468 #ifdef __cplusplus 4469 } 4470 #endif 4471 EOF 4472 # Now try linking the two files. 4473 mv conftest.$ac_objext conftstm.$ac_objext 4474 lt_save_LIBS="$LIBS" 4475 lt_save_CFLAGS="$CFLAGS" 4476 LIBS="conftstm.$ac_objext" 4477 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 4478 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then 4479 pipe_works=yes 4480 fi 4481 LIBS="$lt_save_LIBS" 4482 CFLAGS="$lt_save_CFLAGS" 4483 else 4484 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 4485 fi 4486 else 4487 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 4488 fi 4489 else 4490 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 4491 fi 4492 else 4493 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 4494 cat conftest.$ac_ext >&5 4495 fi 4496 rm -f conftest* conftst* 4497 4498 # Do not use the global_symbol_pipe unless it works. 4499 if test "$pipe_works" = yes; then 4500 break 4501 else 4502 lt_cv_sys_global_symbol_pipe= 4503 fi 4504 done 4505 ]) 4506 if test -z "$lt_cv_sys_global_symbol_pipe"; then 4507 lt_cv_sys_global_symbol_to_cdecl= 4508 fi 4509 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 4510 AC_MSG_RESULT(failed) 4511 else 4512 AC_MSG_RESULT(ok) 4513 fi 4514 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 4515 4516 4517 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) 4518 # --------------------------------------- 4519 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], 4520 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= 4521 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 4522 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)= 4523 4524 AC_MSG_CHECKING([for $compiler option to produce PIC]) 4525 ifelse([$1],[CXX],[ 4526 # C++ specific cases for pic, static, wl, etc. 4527 if test "$GXX" = yes; then 4528 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4529 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 4530 4531 case $host_os in 4532 aix*) 4533 # All AIX code is PIC. 4534 if test "$host_cpu" = ia64; then 4535 # AIX 5 now supports IA64 processor 4536 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4537 fi 4538 ;; 4539 amigaos*) 4540 # FIXME: we need at least 68020 code to build shared libraries, but 4541 # adding the `-m68020' flag to GCC prevents building anything better, 4542 # like `-m68040'. 4543 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 4544 ;; 4545 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 4546 # PIC is the default for these OSes. 4547 ;; 4548 mingw* | os2* | pw32*) 4549 # This hack is so that the source file can tell whether it is being 4550 # built for inclusion in a dll (and should export symbols for example). 4551 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 4552 ;; 4553 darwin* | rhapsody*) 4554 # PIC is the default on this platform 4555 # Common symbols not allowed in MH_DYLIB files 4556 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 4557 ;; 4558 *djgpp*) 4559 # DJGPP does not support shared libraries at all 4560 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 4561 ;; 4562 sysv4*MP*) 4563 if test -d /usr/nec; then 4564 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 4565 fi 4566 ;; 4567 hpux*) 4568 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 4569 # not for PA HP-UX. 4570 case "$host_cpu" in 4571 hppa*64*|ia64*) 4572 ;; 4573 *) 4574 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4575 ;; 4576 esac 4577 ;; 4578 *) 4579 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4580 ;; 4581 esac 4582 else 4583 case $host_os in 4584 aix4* | aix5*) 4585 # All AIX code is PIC. 4586 if test "$host_cpu" = ia64; then 4587 # AIX 5 now supports IA64 processor 4588 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4589 else 4590 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 4591 fi 4592 ;; 4593 chorus*) 4594 case $cc_basename in 4595 cxch68) 4596 # Green Hills C++ Compiler 4597 # _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" 4598 ;; 4599 esac 4600 ;; 4601 dgux*) 4602 case $cc_basename in 4603 ec++) 4604 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4605 ;; 4606 ghcx) 4607 # Green Hills C++ Compiler 4608 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4609 ;; 4610 *) 4611 ;; 4612 esac 4613 ;; 4614 freebsd* | kfreebsd*-gnu) 4615 # FreeBSD uses GNU C++ 4616 ;; 4617 hpux9* | hpux10* | hpux11*) 4618 case $cc_basename in 4619 CC) 4620 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4621 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 4622 if test "$host_cpu" != ia64; then 4623 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4624 fi 4625 ;; 4626 aCC) 4627 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4628 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 4629 case "$host_cpu" in 4630 hppa*64*|ia64*) 4631 # +Z the default 4632 ;; 4633 *) 4634 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4635 ;; 4636 esac 4637 ;; 4638 *) 4639 ;; 4640 esac 4641 ;; 4642 irix5* | irix6* | nonstopux*) 4643 case $cc_basename in 4644 CC) 4645 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4646 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4647 # CC pic flag -KPIC is the default. 4648 ;; 4649 *) 4650 ;; 4651 esac 4652 ;; 4653 linux*) 4654 case $cc_basename in 4655 KCC) 4656 # KAI C++ Compiler 4657 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 4658 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4659 ;; 4660 icpc) 4661 # Intel C++ 4662 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4663 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4664 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 4665 ;; 4666 cxx) 4667 # Compaq C++ 4668 # Make sure the PIC flag is empty. It appears that all Alpha 4669 # Linux and Compaq Tru64 Unix objects are PIC. 4670 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 4671 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4672 ;; 4673 *) 4674 ;; 4675 esac 4676 ;; 4677 lynxos*) 4678 ;; 4679 m88k*) 4680 ;; 4681 mvs*) 4682 case $cc_basename in 4683 cxx) 4684 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 4685 ;; 4686 *) 4687 ;; 4688 esac 4689 ;; 4690 netbsd*) 4691 ;; 4692 osf3* | osf4* | osf5*) 4693 case $cc_basename in 4694 KCC) 4695 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 4696 ;; 4697 RCC) 4698 # Rational C++ 2.4.1 4699 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4700 ;; 4701 cxx) 4702 # Digital/Compaq C++ 4703 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4704 # Make sure the PIC flag is empty. It appears that all Alpha 4705 # Linux and Compaq Tru64 Unix objects are PIC. 4706 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 4707 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4708 ;; 4709 *) 4710 ;; 4711 esac 4712 ;; 4713 psos*) 4714 ;; 4715 sco*) 4716 case $cc_basename in 4717 CC) 4718 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4719 ;; 4720 *) 4721 ;; 4722 esac 4723 ;; 4724 solaris*) 4725 case $cc_basename in 4726 CC) 4727 # Sun C++ 4.2, 5.x and Centerline C++ 4728 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4729 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4730 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4731 ;; 4732 gcx) 4733 # Green Hills C++ Compiler 4734 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 4735 ;; 4736 *) 4737 ;; 4738 esac 4739 ;; 4740 sunos4*) 4741 case $cc_basename in 4742 CC) 4743 # Sun C++ 4.x 4744 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4745 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4746 ;; 4747 lcc) 4748 # Lucid 4749 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4750 ;; 4751 *) 4752 ;; 4753 esac 4754 ;; 4755 tandem*) 4756 case $cc_basename in 4757 NCC) 4758 # NonStop-UX NCC 3.20 4759 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4760 ;; 4761 *) 4762 ;; 4763 esac 4764 ;; 4765 unixware*) 4766 ;; 4767 vxworks*) 4768 ;; 4769 *) 4770 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4771 ;; 4772 esac 4773 fi 4774 ], 4775 [ 4776 if test "$GCC" = yes; then 4777 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4778 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 4779 4780 case $host_os in 4781 aix*) 4782 # All AIX code is PIC. 4783 if test "$host_cpu" = ia64; then 4784 # AIX 5 now supports IA64 processor 4785 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4786 fi 4787 ;; 4788 4789 amigaos*) 4790 # FIXME: we need at least 68020 code to build shared libraries, but 4791 # adding the `-m68020' flag to GCC prevents building anything better, 4792 # like `-m68040'. 4793 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 4794 ;; 4795 4796 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 4797 # PIC is the default for these OSes. 4798 ;; 4799 4800 mingw* | pw32* | os2*) 4801 # This hack is so that the source file can tell whether it is being 4802 # built for inclusion in a dll (and should export symbols for example). 4803 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 4804 ;; 4805 4806 darwin* | rhapsody*) 4807 # PIC is the default on this platform 4808 # Common symbols not allowed in MH_DYLIB files 4809 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 4810 ;; 4811 4812 msdosdjgpp*) 4813 # Just because we use GCC doesn't mean we suddenly get shared libraries 4814 # on systems that don't support them. 4815 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4816 enable_shared=no 4817 ;; 4818 4819 sysv4*MP*) 4820 if test -d /usr/nec; then 4821 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 4822 fi 4823 ;; 4824 4825 hpux*) 4826 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 4827 # not for PA HP-UX. 4828 case "$host_cpu" in 4829 hppa*64*|ia64*) 4830 # +Z the default 4831 ;; 4832 *) 4833 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4834 ;; 4835 esac 4836 ;; 4837 4838 *) 4839 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4840 ;; 4841 esac 4842 else 4843 # PORTME Check for flag to pass linker flags through the system compiler. 4844 case $host_os in 4845 aix*) 4846 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4847 if test "$host_cpu" = ia64; then 4848 # AIX 5 now supports IA64 processor 4849 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4850 else 4851 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 4852 fi 4853 ;; 4854 4855 mingw* | pw32* | os2*) 4856 # This hack is so that the source file can tell whether it is being 4857 # built for inclusion in a dll (and should export symbols for example). 4858 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 4859 ;; 4860 4861 hpux9* | hpux10* | hpux11*) 4862 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4863 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 4864 # not for PA HP-UX. 4865 case "$host_cpu" in 4866 hppa*64*|ia64*) 4867 # +Z the default 4868 ;; 4869 *) 4870 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4871 ;; 4872 esac 4873 # Is there a better lt_prog_compiler_static that works with the bundled CC? 4874 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 4875 ;; 4876 4877 irix5* | irix6* | nonstopux*) 4878 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4879 # PIC (with -KPIC) is the default. 4880 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4881 ;; 4882 4883 newsos6) 4884 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4885 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4886 ;; 4887 4888 linux*) 4889 case $CC in 4890 icc* | ecc*) 4891 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4892 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4893 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 4894 ;; 4895 ccc*) 4896 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4897 # All Alpha code is PIC. 4898 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4899 ;; 4900 esac 4901 ;; 4902 4903 osf3* | osf4* | osf5*) 4904 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4905 # All OSF/1 code is PIC. 4906 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4907 ;; 4908 4909 sco3.2v5*) 4910 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic' 4911 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn' 4912 ;; 4913 4914 solaris*) 4915 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4916 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4917 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4918 ;; 4919 4920 sunos4*) 4921 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4922 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 4923 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4924 ;; 4925 4926 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 4927 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4928 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4929 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4930 ;; 4931 4932 sysv4*MP*) 4933 if test -d /usr/nec ;then 4934 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 4935 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4936 fi 4937 ;; 4938 4939 uts4*) 4940 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4941 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4942 ;; 4943 4944 *) 4945 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4946 ;; 4947 esac 4948 fi 4949 ]) 4950 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) 4951 4952 # 4953 # Check to make sure the PIC flag actually works. 4954 # 4955 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then 4956 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], 4957 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), 4958 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], 4959 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in 4960 "" | " "*) ;; 4961 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; 4962 esac], 4963 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 4964 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 4965 fi 4966 case "$host_os" in 4967 # For platforms which do not support PIC, -DPIC is meaningless: 4968 *djgpp*) 4969 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 4970 ;; 4971 *) 4972 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" 4973 ;; 4974 esac 4975 ]) 4976 4977 4978 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) 4979 # ------------------------------------ 4980 # See if the linker supports building shared libraries. 4981 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], 4982 [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 4983 ifelse([$1],[CXX],[ 4984 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 3596 4985 case $host_os in 3597 cygwin* | mingw* | pw32* | os2*) 3598 cat <<'EOF' >> "${ofile}T" 3599 # This is a source program that is used to create dlls on Windows 3600 # Don't remove nor modify the starting and closing comments 4986 aix4* | aix5*) 4987 # If we're using GNU nm, then we don't want the "-C" option. 4988 # -C means demangle to AIX nm, but means don't demangle with GNU nm 4989 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 4990 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' 4991 else 4992 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' 4993 fi 4994 ;; 4995 pw32*) 4996 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 4997 ;; 4998 cygwin* | mingw*) 4999 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' 5000 ;; 5001 *) 5002 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5003 ;; 5004 esac 5005 ],[ 5006 runpath_var= 5007 _LT_AC_TAGVAR(allow_undefined_flag, $1)= 5008 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 5009 _LT_AC_TAGVAR(archive_cmds, $1)= 5010 _LT_AC_TAGVAR(archive_expsym_cmds, $1)= 5011 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= 5012 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= 5013 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 5014 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 5015 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= 5016 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 5017 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 5018 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 5019 _LT_AC_TAGVAR(hardcode_direct, $1)=no 5020 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no 5021 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 5022 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 5023 _LT_AC_TAGVAR(hardcode_automatic, $1)=no 5024 _LT_AC_TAGVAR(module_cmds, $1)= 5025 _LT_AC_TAGVAR(module_expsym_cmds, $1)= 5026 _LT_AC_TAGVAR(always_export_symbols, $1)=no 5027 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5028 # include_expsyms should be a list of space-separated symbols to be *always* 5029 # included in the symbol list 5030 _LT_AC_TAGVAR(include_expsyms, $1)= 5031 # exclude_expsyms can be an extended regexp of symbols to exclude 5032 # it will be wrapped by ` (' and `)$', so one must not match beginning or 5033 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 5034 # as well as any symbol that contains `d'. 5035 _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" 5036 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 5037 # platforms (ab)use it in PIC code, but their linkers get confused if 5038 # the symbol is explicitly referenced. Since portable code cannot 5039 # rely on this symbol name, it's probably fine to never include it in 5040 # preloaded symbol tables. 5041 extract_expsyms_cmds= 5042 5043 case $host_os in 5044 cygwin* | mingw* | pw32*) 5045 # FIXME: the MSVC++ port hasn't been tested in a loooong time 5046 # When not using gcc, we currently assume that we are using 5047 # Microsoft Visual C++. 5048 if test "$GCC" != yes; then 5049 with_gnu_ld=no 5050 fi 5051 ;; 5052 openbsd*) 5053 with_gnu_ld=no 5054 ;; 5055 esac 5056 5057 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 5058 if test "$with_gnu_ld" = yes; then 5059 # If archive_cmds runs LD, not CC, wlarc should be empty 5060 wlarc='${wl}' 5061 5062 # See if GNU ld supports shared libraries. 5063 case $host_os in 5064 aix3* | aix4* | aix5*) 5065 # On AIX/PPC, the GNU linker is very broken 5066 if test "$host_cpu" != ia64; then 5067 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5068 cat <<EOF 1>&2 5069 5070 *** Warning: the GNU linker, at least up to release 2.9.1, is reported 5071 *** to be unable to reliably create shared libraries on AIX. 5072 *** Therefore, libtool is disabling shared libraries support. If you 5073 *** really care for shared libraries, you may want to modify your PATH 5074 *** so that a non-GNU linker is found, and then restart. 5075 5076 EOF 5077 fi 5078 ;; 5079 5080 amigaos*) 5081 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 5082 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5083 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5084 5085 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 5086 # that the semantics of dynamic libraries on AmigaOS, at least up 5087 # to version 4, is to share data among multiple programs linked 5088 # with the same dynamic library. Since this doesn't match the 5089 # behavior of shared libraries on other platforms, we can't use 5090 # them. 5091 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5092 ;; 5093 5094 beos*) 5095 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5096 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 5097 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 5098 # support --undefined. This deserves some investigation. FIXME 5099 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5100 else 5101 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5102 fi 5103 ;; 5104 5105 cygwin* | mingw* | pw32*) 5106 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 5107 # as there is no search path for DLLs. 5108 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5109 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 5110 _LT_AC_TAGVAR(always_export_symbols, $1)=no 5111 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5112 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' 5113 5114 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 5115 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 5116 # If the export-symbols file already is a .def file (1st line 5117 # is EXPORTS), use it as is; otherwise, prepend... 5118 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 5119 cp $export_symbols $output_objdir/$soname.def; 5120 else 5121 echo EXPORTS > $output_objdir/$soname.def; 5122 cat $export_symbols >> $output_objdir/$soname.def; 5123 fi~ 5124 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 5125 else 5126 ld_shlibs=no 5127 fi 5128 ;; 5129 5130 netbsd*) 5131 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 5132 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 5133 wlarc= 5134 else 5135 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5136 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5137 fi 5138 ;; 5139 5140 solaris* | sysv5*) 5141 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 5142 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5143 cat <<EOF 1>&2 5144 5145 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 5146 *** create shared libraries on Solaris systems. Therefore, libtool 5147 *** is disabling shared libraries support. We urge you to upgrade GNU 5148 *** binutils to release 2.9.1 or newer. Another option is to modify 5149 *** your PATH or compiler configuration so that the native linker is 5150 *** used, and then restart. 5151 5152 EOF 5153 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5154 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5155 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5156 else 5157 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5158 fi 5159 ;; 5160 5161 sunos4*) 5162 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5163 wlarc= 5164 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5165 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5166 ;; 5167 5168 linux*) 5169 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5170 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5171 _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds" 5172 supports_anon_versioning=no 5173 case `$LD -v 2>/dev/null` in 5174 *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 5175 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 5176 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 5177 *\ 2.11.*) ;; # other 2.11 versions 5178 *) supports_anon_versioning=yes ;; 5179 esac 5180 if test $supports_anon_versioning = yes; then 5181 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ 5182 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 5183 $echo "local: *; };" >> $output_objdir/$libname.ver~ 5184 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 5185 else 5186 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds" 5187 fi 5188 else 5189 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5190 fi 5191 ;; 5192 5193 *) 5194 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5195 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5196 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5197 else 5198 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5199 fi 5200 ;; 5201 esac 5202 5203 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then 5204 runpath_var=LD_RUN_PATH 5205 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 5206 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 5207 # ancient GNU ld didn't support --whole-archive et. al. 5208 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 5209 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 5210 else 5211 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 5212 fi 5213 fi 5214 else 5215 # PORTME fill in a description of your system's linker (not GNU ld) 5216 case $host_os in 5217 aix3*) 5218 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 5219 _LT_AC_TAGVAR(always_export_symbols, $1)=yes 5220 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 5221 # Note: this linker hardcodes the directories in LIBPATH if there 5222 # are no directories specified by -L. 5223 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5224 if test "$GCC" = yes && test -z "$link_static_flag"; then 5225 # Neither direct hardcoding nor static linking is supported with a 5226 # broken collect2. 5227 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 5228 fi 5229 ;; 5230 5231 aix4* | aix5*) 5232 if test "$host_cpu" = ia64; then 5233 # On IA64, the linker does run time linking by default, so we don't 5234 # have to do anything special. 5235 aix_use_runtimelinking=no 5236 exp_sym_flag='-Bexport' 5237 no_entry_flag="" 5238 else 5239 # If we're using GNU nm, then we don't want the "-C" option. 5240 # -C means demangle to AIX nm, but means don't demangle with GNU nm 5241 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 5242 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' 5243 else 5244 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' 5245 fi 5246 aix_use_runtimelinking=no 5247 5248 # Test if we are trying to use run time linking or normal 5249 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 5250 # need to do runtime linking. 5251 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) 5252 for ld_flag in $LDFLAGS; do 5253 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 5254 aix_use_runtimelinking=yes 5255 break 5256 fi 5257 done 5258 esac 5259 5260 exp_sym_flag='-bexport' 5261 no_entry_flag='-bnoentry' 5262 fi 5263 5264 # When large executables or shared objects are built, AIX ld can 5265 # have problems creating the table of contents. If linking a library 5266 # or program results in "error TOC overflow" add -mminimal-toc to 5267 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 5268 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 5269 5270 _LT_AC_TAGVAR(archive_cmds, $1)='' 5271 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5272 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 5273 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 5274 5275 if test "$GCC" = yes; then 5276 case $host_os in aix4.[012]|aix4.[012].*) 5277 # We only want to do this on AIX 4.2 and lower, the check 5278 # below for broken collect2 doesn't work under 4.3+ 5279 collect2name=`${CC} -print-prog-name=collect2` 5280 if test -f "$collect2name" && \ 5281 strings "$collect2name" | grep resolve_lib_name >/dev/null 5282 then 5283 # We have reworked collect2 5284 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5285 else 5286 # We have old collect2 5287 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 5288 # It fails to find uninstalled libraries when the uninstalled 5289 # path is not listed in the libpath. Setting hardcode_minus_L 5290 # to unsupported forces relinking 5291 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5292 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5293 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 5294 fi 5295 esac 5296 shared_flag='-shared' 5297 else 5298 # not using gcc 5299 if test "$host_cpu" = ia64; then 5300 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 5301 # chokes on -Wl,-G. The following line is correct: 5302 shared_flag='-G' 5303 else 5304 if test "$aix_use_runtimelinking" = yes; then 5305 shared_flag='${wl}-G' 5306 else 5307 shared_flag='${wl}-bM:SRE' 5308 fi 5309 fi 5310 fi 5311 5312 # It seems that -bexpall does not export symbols beginning with 5313 # underscore (_), so it is better to generate a list of symbols to export. 5314 _LT_AC_TAGVAR(always_export_symbols, $1)=yes 5315 if test "$aix_use_runtimelinking" = yes; then 5316 # Warning - without using the other runtime loading flags (-brtl), 5317 # -berok will link without error, but may produce a broken library. 5318 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' 5319 # Determine the default libpath from the value encoded in an empty executable. 5320 _LT_AC_SYS_LIBPATH_AIX 5321 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 5322 _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" 5323 else 5324 if test "$host_cpu" = ia64; then 5325 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 5326 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 5327 _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" 5328 else 5329 # Determine the default libpath from the value encoded in an empty executable. 5330 _LT_AC_SYS_LIBPATH_AIX 5331 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 5332 # Warning - without using the other run time loading flags, 5333 # -berok will link without error, but may produce a broken library. 5334 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 5335 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 5336 # -bexpall does not export symbols beginning with underscore (_) 5337 _LT_AC_TAGVAR(always_export_symbols, $1)=yes 5338 # Exported symbols can be pulled into shared objects from archives 5339 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' 5340 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 5341 # This is similar to how AIX traditionally builds it's shared libraries. 5342 _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' 5343 fi 5344 fi 5345 ;; 5346 5347 amigaos*) 5348 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 5349 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5350 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5351 # see comment about different semantics on the GNU ld section 5352 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5353 ;; 5354 5355 bsdi4*) 5356 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 5357 ;; 5358 5359 cygwin* | mingw* | pw32*) 5360 # When not using gcc, we currently assume that we are using 5361 # Microsoft Visual C++. 5362 # hardcode_libdir_flag_spec is actually meaningless, as there is 5363 # no search path for DLLs. 5364 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 5365 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 5366 # Tell ltmain to make .lib files, not .a files. 5367 libext=lib 5368 # Tell ltmain to make .dll files, not .so files. 5369 shrext_cmds=".dll" 5370 # FIXME: Setting linknames here is a bad hack. 5371 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 5372 # The linker will automatically build a .lib file if we build a DLL. 5373 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' 5374 # FIXME: Should let the user specify the lib program. 5375 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' 5376 fix_srcfile_path='`cygpath -w "$srcfile"`' 5377 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5378 ;; 5379 5380 darwin* | rhapsody*) 5381 if test "$GXX" = yes ; then 5382 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 5383 case "$host_os" in 5384 rhapsody* | darwin1.[[012]]) 5385 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' 5386 ;; 5387 *) # Darwin 1.3 on 5388 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 5389 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 5390 else 5391 case ${MACOSX_DEPLOYMENT_TARGET} in 5392 10.[[012]]) 5393 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 5394 ;; 5395 10.*) 5396 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' 5397 ;; 5398 esac 5399 fi 5400 ;; 5401 esac 5402 lt_int_apple_cc_single_mod=no 5403 output_verbose_link_cmd='echo' 5404 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 5405 lt_int_apple_cc_single_mod=yes 5406 fi 5407 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 5408 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 5409 else 5410 _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' 5411 fi 5412 _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 5413 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 5414 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 5415 _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}' 5416 else 5417 _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}' 5418 fi 5419 _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}' 5420 _LT_AC_TAGVAR(hardcode_direct, $1)=no 5421 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 5422 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 5423 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' 5424 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 5425 else 5426 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5427 fi 5428 ;; 5429 5430 dgux*) 5431 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5432 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5433 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5434 ;; 5435 5436 freebsd1*) 5437 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5438 ;; 5439 5440 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 5441 # support. Future versions do this automatically, but an explicit c++rt0.o 5442 # does not break anything, and helps significantly (at the cost of a little 5443 # extra space). 5444 freebsd2.2*) 5445 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 5446 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5447 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5448 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5449 ;; 5450 5451 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 5452 freebsd2*) 5453 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5454 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5455 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5456 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5457 ;; 5458 5459 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 5460 freebsd* | kfreebsd*-gnu) 5461 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 5462 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5463 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5464 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5465 ;; 5466 5467 hpux9*) 5468 if test "$GCC" = yes; then 5469 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 5470 else 5471 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 5472 fi 5473 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 5474 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 5475 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5476 5477 # hardcode_minus_L: Not really in the search PATH, 5478 # but as the default location of the library. 5479 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5480 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5481 ;; 5482 5483 hpux10* | hpux11*) 5484 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 5485 case "$host_cpu" in 5486 hppa*64*|ia64*) 5487 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5488 ;; 5489 *) 5490 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 5491 ;; 5492 esac 5493 else 5494 case "$host_cpu" in 5495 hppa*64*|ia64*) 5496 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 5497 ;; 5498 *) 5499 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 5500 ;; 5501 esac 5502 fi 5503 if test "$with_gnu_ld" = no; then 5504 case "$host_cpu" in 5505 hppa*64*) 5506 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 5507 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 5508 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 5509 _LT_AC_TAGVAR(hardcode_direct, $1)=no 5510 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5511 ;; 5512 ia64*) 5513 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5514 _LT_AC_TAGVAR(hardcode_direct, $1)=no 5515 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5516 5517 # hardcode_minus_L: Not really in the search PATH, 5518 # but as the default location of the library. 5519 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5520 ;; 5521 *) 5522 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 5523 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 5524 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5525 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5526 5527 # hardcode_minus_L: Not really in the search PATH, 5528 # but as the default location of the library. 5529 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5530 ;; 5531 esac 5532 fi 5533 ;; 5534 5535 irix5* | irix6* | nonstopux*) 5536 if test "$GCC" = yes; then 5537 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $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' 5538 else 5539 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 5540 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' 5541 fi 5542 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5543 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 5544 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 5545 ;; 5546 5547 netbsd*) 5548 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 5549 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 5550 else 5551 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 5552 fi 5553 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5554 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5555 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5556 ;; 5557 5558 newsos6) 5559 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5560 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5561 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5562 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 5563 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5564 ;; 5565 5566 openbsd*) 5567 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5568 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5569 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5570 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5571 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5572 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5573 else 5574 case $host_os in 5575 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 5576 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5577 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5578 ;; 5579 *) 5580 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5581 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5582 ;; 5583 esac 5584 fi 5585 ;; 5586 5587 os2*) 5588 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5589 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5590 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 5591 _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 5592 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 5593 ;; 5594 5595 osf3*) 5596 if test "$GCC" = yes; then 5597 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 5598 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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' 5599 else 5600 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 5601 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 5602 fi 5603 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5604 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 5605 ;; 5606 5607 osf4* | osf5*) # as osf3* with the addition of -msym flag 5608 if test "$GCC" = yes; then 5609 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 5610 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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' 5611 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5612 else 5613 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 5614 _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' 5615 _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~ 5616 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 5617 5618 # Both c and cxx compiler support -rpath directly 5619 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 5620 fi 5621 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 5622 ;; 5623 5624 sco3.2v5*) 5625 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5626 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5627 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 5628 runpath_var=LD_RUN_PATH 5629 hardcode_runpath_var=yes 5630 ;; 5631 5632 solaris*) 5633 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' 5634 if test "$GCC" = yes; then 5635 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5636 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 5637 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 5638 else 5639 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 5640 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 5641 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 5642 fi 5643 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5644 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5645 case $host_os in 5646 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 5647 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 5648 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; 5649 esac 5650 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 5651 ;; 5652 5653 sunos4*) 5654 if test "x$host_vendor" = xsequent; then 5655 # Use $CC to link under sequent, because it throws in some extra .o 5656 # files that make .init and .fini sections work. 5657 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 5658 else 5659 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 5660 fi 5661 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5662 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5663 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5664 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5665 ;; 5666 5667 sysv4) 5668 case $host_vendor in 5669 sni) 5670 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5671 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 5672 ;; 5673 siemens) 5674 ## LD is ld it makes a PLAMLIB 5675 ## CC just makes a GrossModule. 5676 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 5677 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 5678 _LT_AC_TAGVAR(hardcode_direct, $1)=no 5679 ;; 5680 motorola) 5681 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5682 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 5683 ;; 5684 esac 5685 runpath_var='LD_RUN_PATH' 5686 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5687 ;; 5688 5689 sysv4.3*) 5690 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5691 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5692 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 5693 ;; 5694 5695 sysv4*MP*) 5696 if test -d /usr/nec; then 5697 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5698 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5699 runpath_var=LD_RUN_PATH 5700 hardcode_runpath_var=yes 5701 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 5702 fi 5703 ;; 5704 5705 sysv4.2uw2*) 5706 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 5707 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5708 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no 5709 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5710 hardcode_runpath_var=yes 5711 runpath_var=LD_RUN_PATH 5712 ;; 5713 5714 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) 5715 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text' 5716 if test "$GCC" = yes; then 5717 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5718 else 5719 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5720 fi 5721 runpath_var='LD_RUN_PATH' 5722 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5723 ;; 5724 5725 sysv5*) 5726 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' 5727 # $CC -shared without GNU ld will not create a library from C++ 5728 # object files and a static libstdc++, better avoid it by now 5729 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 5730 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 5731 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 5732 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 5733 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5734 runpath_var='LD_RUN_PATH' 5735 ;; 5736 5737 uts4*) 5738 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5739 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5740 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5741 ;; 5742 5743 *) 5744 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5745 ;; 5746 esac 5747 fi 5748 ]) 5749 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 5750 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 5751 5752 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 5753 if test "$GCC" = yes; then 5754 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 5755 fi 5756 5757 # 5758 # Do we need to explicitly link libc? 5759 # 5760 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in 5761 x|xyes) 5762 # Assume -lc should be added 5763 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 5764 5765 if test "$enable_shared" = yes && test "$GCC" = yes; then 5766 case $_LT_AC_TAGVAR(archive_cmds, $1) in 5767 *'~'*) 5768 # FIXME: we may have to deal with multi-command sequences. 5769 ;; 5770 '$CC '*) 5771 # Test whether the compiler implicitly links with -lc since on some 5772 # systems, -lgcc has to come before -lc. If gcc already passes -lc 5773 # to ld, don't add -lc before -lgcc. 5774 AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 5775 $rm conftest* 5776 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 5777 5778 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 5779 soname=conftest 5780 lib=conftest 5781 libobjs=conftest.$ac_objext 5782 deplibs= 5783 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) 5784 compiler_flags=-v 5785 linker_flags=-v 5786 verstring= 5787 output_objdir=. 5788 libname=conftest 5789 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) 5790 _LT_AC_TAGVAR(allow_undefined_flag, $1)= 5791 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 5792 then 5793 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 5794 else 5795 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 5796 fi 5797 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 5798 else 5799 cat conftest.err 1>&5 5800 fi 5801 $rm conftest* 5802 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) 5803 ;; 5804 esac 5805 fi 5806 ;; 5807 esac 5808 ])# AC_LIBTOOL_PROG_LD_SHLIBS 5809 5810 5811 # _LT_AC_FILE_LTDLL_C 5812 # ------------------- 5813 # Be careful that the start marker always follows a newline. 5814 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ 3601 5815 # /* ltdll.c starts here */ 3602 5816 # #define WIN32_LEAN_AND_MEAN … … 3632 5846 # } 3633 5847 # /* ltdll.c ends here */ 3634 # This is a source program that is used to create import libraries 3635 # on Windows for dlls which lack them. Don't remove nor modify the 3636 # starting and closing comments 3637 # /* impgen.c starts here */ 3638 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc. 3639 # 3640 # This file is part of GNU libtool. 3641 # 3642 # This program is free software; you can redistribute it and/or modify 3643 # it under the terms of the GNU General Public License as published by 3644 # the Free Software Foundation; either version 2 of the License, or 3645 # (at your option) any later version. 3646 # 3647 # This program is distributed in the hope that it will be useful, 3648 # but WITHOUT ANY WARRANTY; without even the implied warranty of 3649 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 3650 # GNU General Public License for more details. 3651 # 3652 # You should have received a copy of the GNU General Public License 3653 # along with this program; if not, write to the Free Software 3654 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3655 # */ 3656 # 3657 # #include <stdio.h> /* for printf() */ 3658 # #include <unistd.h> /* for open(), lseek(), read() */ 3659 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */ 3660 # #include <string.h> /* for strdup() */ 3661 # 3662 # /* O_BINARY isn't required (or even defined sometimes) under Unix */ 3663 # #ifndef O_BINARY 3664 # #define O_BINARY 0 3665 # #endif 3666 # 3667 # static unsigned int 3668 # pe_get16 (fd, offset) 3669 # int fd; 3670 # int offset; 3671 # { 3672 # unsigned char b[2]; 3673 # lseek (fd, offset, SEEK_SET); 3674 # read (fd, b, 2); 3675 # return b[0] + (b[1]<<8); 3676 # } 3677 # 3678 # static unsigned int 3679 # pe_get32 (fd, offset) 3680 # int fd; 3681 # int offset; 3682 # { 3683 # unsigned char b[4]; 3684 # lseek (fd, offset, SEEK_SET); 3685 # read (fd, b, 4); 3686 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); 3687 # } 3688 # 3689 # static unsigned int 3690 # pe_as32 (ptr) 3691 # void *ptr; 3692 # { 3693 # unsigned char *b = ptr; 3694 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); 3695 # } 3696 # 3697 # int 3698 # main (argc, argv) 3699 # int argc; 3700 # char *argv[]; 3701 # { 3702 # int dll; 3703 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i; 3704 # unsigned long export_rva, export_size, nsections, secptr, expptr; 3705 # unsigned long name_rvas, nexp; 3706 # unsigned char *expdata, *erva; 3707 # char *filename, *dll_name; 3708 # 3709 # filename = argv[1]; 3710 # 3711 # dll = open(filename, O_RDONLY|O_BINARY); 3712 # if (dll < 1) 3713 # return 1; 3714 # 3715 # dll_name = filename; 3716 # 3717 # for (i=0; filename[i]; i++) 3718 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') 3719 # dll_name = filename + i +1; 3720 # 3721 # pe_header_offset = pe_get32 (dll, 0x3c); 3722 # opthdr_ofs = pe_header_offset + 4 + 20; 3723 # num_entries = pe_get32 (dll, opthdr_ofs + 92); 3724 # 3725 # if (num_entries < 1) /* no exports */ 3726 # return 1; 3727 # 3728 # export_rva = pe_get32 (dll, opthdr_ofs + 96); 3729 # export_size = pe_get32 (dll, opthdr_ofs + 100); 3730 # nsections = pe_get16 (dll, pe_header_offset + 4 +2); 3731 # secptr = (pe_header_offset + 4 + 20 + 3732 # pe_get16 (dll, pe_header_offset + 4 + 16)); 3733 # 3734 # expptr = 0; 3735 # for (i = 0; i < nsections; i++) 3736 # { 3737 # char sname[8]; 3738 # unsigned long secptr1 = secptr + 40 * i; 3739 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12); 3740 # unsigned long vsize = pe_get32 (dll, secptr1 + 16); 3741 # unsigned long fptr = pe_get32 (dll, secptr1 + 20); 3742 # lseek(dll, secptr1, SEEK_SET); 3743 # read(dll, sname, 8); 3744 # if (vaddr <= export_rva && vaddr+vsize > export_rva) 3745 # { 3746 # expptr = fptr + (export_rva - vaddr); 3747 # if (export_rva + export_size > vaddr + vsize) 3748 # export_size = vsize - (export_rva - vaddr); 3749 # break; 3750 # } 3751 # } 3752 # 3753 # expdata = (unsigned char*)malloc(export_size); 3754 # lseek (dll, expptr, SEEK_SET); 3755 # read (dll, expdata, export_size); 3756 # erva = expdata - export_rva; 3757 # 3758 # nexp = pe_as32 (expdata+24); 3759 # name_rvas = pe_as32 (expdata+32); 3760 # 3761 # printf ("EXPORTS\n"); 3762 # for (i = 0; i<nexp; i++) 3763 # { 3764 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); 3765 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); 3766 # } 3767 # 3768 # return 0; 3769 # } 3770 # /* impgen.c ends here */ 3771 3772 EOF 3773 ;; 3774 esac 3775 3776 # We use sed instead of cat because bash on DJGPP gets confused if 3777 # if finds mixed CR/LF and LF-only lines. Since sed operates in 3778 # text mode, it properly converts lines to CR/LF. This bash problem 3779 # is reportedly fixed, but why not run on old versions too? 3780 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) 3781 3782 mv -f "${ofile}T" "$ofile" || \ 3783 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") 3784 chmod +x "$ofile" 3785 fi 3786 3787 ])# _LT_AC_LTCONFIG_HACK 3788 3789 # AC_LIBTOOL_DLOPEN - enable checks for dlopen support 3790 AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])]) 3791 3792 # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's 3793 AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])]) 3794 3795 # AC_ENABLE_SHARED - implement the --enable-shared flag 3796 # Usage: AC_ENABLE_SHARED[(DEFAULT)] 3797 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to 3798 # `yes'. 3799 AC_DEFUN([AC_ENABLE_SHARED], 3800 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl 3801 AC_ARG_ENABLE(shared, 3802 changequote(<<, >>)dnl 3803 << --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT], 3804 changequote([, ])dnl 3805 [p=${PACKAGE-default} 3806 case $enableval in 3807 yes) enable_shared=yes ;; 3808 no) enable_shared=no ;; 3809 *) 3810 enable_shared=no 3811 # Look at the argument we got. We use all the common list separators. 3812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3813 for pkg in $enableval; do 3814 if test "X$pkg" = "X$p"; then 3815 enable_shared=yes 3816 fi 3817 done 3818 IFS="$ac_save_ifs" 3819 ;; 3820 esac], 3821 enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl 3822 ]) 3823 3824 # AC_DISABLE_SHARED - set the default shared flag to --disable-shared 3825 AC_DEFUN([AC_DISABLE_SHARED], 3826 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 3827 AC_ENABLE_SHARED(no)]) 3828 3829 # AC_ENABLE_STATIC - implement the --enable-static flag 3830 # Usage: AC_ENABLE_STATIC[(DEFAULT)] 3831 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to 3832 # `yes'. 3833 AC_DEFUN([AC_ENABLE_STATIC], 3834 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl 3835 AC_ARG_ENABLE(static, 3836 changequote(<<, >>)dnl 3837 << --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT], 3838 changequote([, ])dnl 3839 [p=${PACKAGE-default} 3840 case $enableval in 3841 yes) enable_static=yes ;; 3842 no) enable_static=no ;; 3843 *) 3844 enable_static=no 3845 # Look at the argument we got. We use all the common list separators. 3846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3847 for pkg in $enableval; do 3848 if test "X$pkg" = "X$p"; then 3849 enable_static=yes 3850 fi 3851 done 3852 IFS="$ac_save_ifs" 3853 ;; 3854 esac], 3855 enable_static=AC_ENABLE_STATIC_DEFAULT)dnl 3856 ]) 3857 3858 # AC_DISABLE_STATIC - set the default static flag to --disable-static 3859 AC_DEFUN([AC_DISABLE_STATIC], 3860 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 3861 AC_ENABLE_STATIC(no)]) 3862 3863 3864 # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag 3865 # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)] 3866 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to 3867 # `yes'. 3868 AC_DEFUN([AC_ENABLE_FAST_INSTALL], 3869 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl 3870 AC_ARG_ENABLE(fast-install, 3871 changequote(<<, >>)dnl 3872 << --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT], 3873 changequote([, ])dnl 3874 [p=${PACKAGE-default} 3875 case $enableval in 3876 yes) enable_fast_install=yes ;; 3877 no) enable_fast_install=no ;; 3878 *) 3879 enable_fast_install=no 3880 # Look at the argument we got. We use all the common list separators. 3881 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3882 for pkg in $enableval; do 3883 if test "X$pkg" = "X$p"; then 3884 enable_fast_install=yes 3885 fi 3886 done 3887 IFS="$ac_save_ifs" 3888 ;; 3889 esac], 3890 enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl 3891 ]) 3892 3893 # AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install 3894 AC_DEFUN([AC_DISABLE_FAST_INSTALL], 3895 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 3896 AC_ENABLE_FAST_INSTALL(no)]) 3897 3898 # AC_LIBTOOL_PICMODE - implement the --with-pic flag 3899 # Usage: AC_LIBTOOL_PICMODE[(MODE)] 3900 # Where MODE is either `yes' or `no'. If omitted, it defaults to 3901 # `both'. 3902 AC_DEFUN([AC_LIBTOOL_PICMODE], 3903 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 3904 pic_mode=ifelse($#,1,$1,default)]) 3905 3906 3907 # AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library 3908 AC_DEFUN([AC_PATH_TOOL_PREFIX], 3909 [AC_MSG_CHECKING([for $1]) 3910 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 3911 [case $MAGIC_CMD in 3912 /*) 3913 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 3914 ;; 3915 ?:/*) 3916 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 3917 ;; 3918 *) 3919 ac_save_MAGIC_CMD="$MAGIC_CMD" 3920 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3921 dnl $ac_dummy forces splitting on constant user-supplied paths. 3922 dnl POSIX.2 word splitting is done only on the output of word expansions, 3923 dnl not every word. This closes a longstanding sh security hole. 3924 ac_dummy="ifelse([$2], , $PATH, [$2])" 3925 for ac_dir in $ac_dummy; do 3926 test -z "$ac_dir" && ac_dir=. 3927 if test -f $ac_dir/$1; then 3928 lt_cv_path_MAGIC_CMD="$ac_dir/$1" 3929 if test -n "$file_magic_test_file"; then 3930 case $deplibs_check_method in 3931 "file_magic "*) 3932 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 3933 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3934 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 3935 egrep "$file_magic_regex" > /dev/null; then 3936 : 3937 else 3938 cat <<EOF 1>&2 3939 3940 *** Warning: the command libtool uses to detect shared libraries, 3941 *** $file_magic_cmd, produces output that libtool cannot recognize. 3942 *** The result is that libtool may fail to recognize shared libraries 3943 *** as such. This will affect the creation of libtool libraries that 3944 *** depend on shared libraries, but programs linked with such libtool 3945 *** libraries will work regardless of this problem. Nevertheless, you 3946 *** may want to report the problem to your system manager and/or to 3947 *** bug-libtool@gnu.org 3948 3949 EOF 3950 fi ;; 3951 esac 3952 fi 3953 break 3954 fi 3955 done 3956 IFS="$ac_save_ifs" 3957 MAGIC_CMD="$ac_save_MAGIC_CMD" 3958 ;; 3959 esac]) 3960 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3961 if test -n "$MAGIC_CMD"; then 3962 AC_MSG_RESULT($MAGIC_CMD) 3963 else 3964 AC_MSG_RESULT(no) 3965 fi 3966 ]) 3967 3968 3969 # AC_PATH_MAGIC - find a file program which can recognise a shared library 3970 AC_DEFUN([AC_PATH_MAGIC], 3971 [AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl 3972 AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH) 3973 if test -z "$lt_cv_path_MAGIC_CMD"; then 3974 if test -n "$ac_tool_prefix"; then 3975 AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH) 3976 else 3977 MAGIC_CMD=: 3978 fi 3979 fi 3980 ]) 3981 3982 3983 # AC_PROG_LD - find the path to the GNU or non-GNU linker 3984 AC_DEFUN([AC_PROG_LD], 3985 [AC_ARG_WITH(gnu-ld, 3986 [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], 3987 test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) 3988 AC_REQUIRE([AC_PROG_CC])dnl 3989 AC_REQUIRE([AC_CANONICAL_HOST])dnl 3990 AC_REQUIRE([AC_CANONICAL_BUILD])dnl 3991 AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl 3992 ac_prog=ld 3993 if test "$GCC" = yes; then 3994 # Check if gcc -print-prog-name=ld gives a path. 3995 AC_MSG_CHECKING([for ld used by GCC]) 3996 case $host in 3997 *-*-mingw*) 3998 # gcc leaves a trailing carriage return which upsets mingw 3999 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4000 *) 4001 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4002 esac 4003 case $ac_prog in 4004 # Accept absolute paths. 4005 [[\\/]]* | [[A-Za-z]]:[[\\/]]*) 4006 re_direlt='/[[^/]][[^/]]*/\.\./' 4007 # Canonicalize the path of ld 4008 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 4009 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4010 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 4011 done 4012 test -z "$LD" && LD="$ac_prog" 4013 ;; 4014 "") 4015 # If it fails, then pretend we aren't using GCC. 4016 ac_prog=ld 4017 ;; 4018 *) 4019 # If it is relative, then search for the first ld in PATH. 4020 with_gnu_ld=unknown 4021 ;; 4022 esac 4023 elif test "$with_gnu_ld" = yes; then 4024 AC_MSG_CHECKING([for GNU ld]) 4025 else 4026 AC_MSG_CHECKING([for non-GNU ld]) 4027 fi 4028 AC_CACHE_VAL(lt_cv_path_LD, 4029 [if test -z "$LD"; then 4030 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4031 for ac_dir in $PATH; do 4032 test -z "$ac_dir" && ac_dir=. 4033 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4034 lt_cv_path_LD="$ac_dir/$ac_prog" 4035 # Check to see if the program is GNU ld. I'd rather use --version, 4036 # but apparently some GNU ld's only accept -v. 4037 # Break only if it was the GNU/non-GNU ld that we prefer. 4038 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 4039 test "$with_gnu_ld" != no && break 4040 else 4041 test "$with_gnu_ld" != yes && break 4042 fi 4043 fi 4044 done 4045 IFS="$ac_save_ifs" 4046 else 4047 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4048 fi]) 4049 LD="$lt_cv_path_LD" 4050 if test -n "$LD"; then 4051 AC_MSG_RESULT($LD) 4052 else 4053 AC_MSG_RESULT(no) 4054 fi 4055 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 4056 AC_PROG_LD_GNU 4057 ]) 4058 4059 # AC_PROG_LD_GNU - 4060 AC_DEFUN([AC_PROG_LD_GNU], 4061 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 4062 [# I'd rather use --version here, but apparently some GNU ld's only accept -v. 4063 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 4064 lt_cv_prog_gnu_ld=yes 4065 else 4066 lt_cv_prog_gnu_ld=no 4067 fi]) 4068 with_gnu_ld=$lt_cv_prog_gnu_ld 4069 ]) 4070 4071 # AC_PROG_LD_RELOAD_FLAG - find reload flag for linker 4072 # -- PORTME Some linkers may need a different reload flag. 4073 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], 4074 [AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag, 4075 [lt_cv_ld_reload_flag='-r']) 4076 reload_flag=$lt_cv_ld_reload_flag 4077 test -n "$reload_flag" && reload_flag=" $reload_flag" 4078 ]) 4079 4080 # AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies 4081 # -- PORTME fill in with the dynamic library characteristics 4082 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], 4083 [AC_CACHE_CHECK([how to recognise dependent libraries], 4084 lt_cv_deplibs_check_method, 4085 [lt_cv_file_magic_cmd='$MAGIC_CMD' 4086 lt_cv_file_magic_test_file= 4087 lt_cv_deplibs_check_method='unknown' 4088 # Need to set the preceding variable on all platforms that support 4089 # interlibrary dependencies. 4090 # 'none' -- dependencies not supported. 4091 # `unknown' -- same as none, but documents that we really don't know. 4092 # 'pass_all' -- all dependencies passed with no checks. 4093 # 'test_compile' -- check by making test program. 4094 # 'file_magic [[regex]]' -- check by looking for files in library path 4095 # which responds to the $file_magic_cmd with a given egrep regex. 4096 # If you have `file' or equivalent on your system and you're not sure 4097 # whether `pass_all' will *always* work, you probably want this one. 4098 4099 case $host_os in 4100 aix4* | aix5*) 4101 lt_cv_deplibs_check_method=pass_all 4102 ;; 4103 4104 beos*) 4105 lt_cv_deplibs_check_method=pass_all 4106 ;; 4107 4108 bsdi4*) 4109 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 4110 lt_cv_file_magic_cmd='/usr/bin/file -L' 4111 lt_cv_file_magic_test_file=/shlib/libc.so 4112 ;; 4113 4114 cygwin* | mingw* | pw32*) 4115 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4116 lt_cv_file_magic_cmd='$OBJDUMP -f' 4117 ;; 4118 4119 darwin* | rhapsody*) 4120 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 4121 lt_cv_file_magic_cmd='/usr/bin/file -L' 4122 case "$host_os" in 4123 rhapsody* | darwin1.[[012]]) 4124 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` 4125 ;; 4126 *) # Darwin 1.3 on 4127 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 4128 ;; 4129 esac 4130 ;; 4131 4132 freebsd*) 4133 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4134 case $host_cpu in 4135 i*86 ) 4136 # Not sure whether the presence of OpenBSD here was a mistake. 4137 # Let's accept both of them until this is cleared up. 4138 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' 4139 lt_cv_file_magic_cmd=/usr/bin/file 4140 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4141 ;; 4142 esac 4143 else 4144 lt_cv_deplibs_check_method=pass_all 4145 fi 4146 ;; 4147 4148 gnu*) 4149 lt_cv_deplibs_check_method=pass_all 4150 ;; 4151 4152 hpux10.20*|hpux11*) 4153 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' 4154 lt_cv_file_magic_cmd=/usr/bin/file 4155 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4156 ;; 4157 4158 irix5* | irix6* | nonstopux*) 4159 case $host_os in 4160 irix5* | nonstopux*) 4161 # this will be overridden with pass_all, but let us keep it just in case 4162 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 4163 ;; 4164 *) 4165 case $LD in 4166 *-32|*"-32 ") libmagic=32-bit;; 4167 *-n32|*"-n32 ") libmagic=N32;; 4168 *-64|*"-64 ") libmagic=64-bit;; 4169 *) libmagic=never-match;; 4170 esac 4171 # this will be overridden with pass_all, but let us keep it just in case 4172 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1" 4173 ;; 4174 esac 4175 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 4176 lt_cv_deplibs_check_method=pass_all 4177 ;; 4178 4179 # This must be Linux ELF. 4180 linux-gnu*) 4181 case $host_cpu in 4182 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*) 4183 lt_cv_deplibs_check_method=pass_all ;; 4184 *) 4185 # glibc up to 2.1.1 does not perform some relocations on ARM 4186 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; 4187 esac 4188 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 4189 ;; 4190 4191 netbsd*) 4192 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4193 lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$' 4194 else 4195 lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$' 4196 fi 4197 ;; 4198 4199 newos6*) 4200 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 4201 lt_cv_file_magic_cmd=/usr/bin/file 4202 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4203 ;; 4204 4205 openbsd*) 4206 lt_cv_file_magic_cmd=/usr/bin/file 4207 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4208 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4209 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' 4210 else 4211 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 4212 fi 4213 ;; 4214 4215 osf3* | osf4* | osf5*) 4216 # this will be overridden with pass_all, but let us keep it just in case 4217 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 4218 lt_cv_file_magic_test_file=/shlib/libc.so 4219 lt_cv_deplibs_check_method=pass_all 4220 ;; 4221 4222 sco3.2v5*) 4223 lt_cv_deplibs_check_method=pass_all 4224 ;; 4225 4226 solaris*) 4227 lt_cv_deplibs_check_method=pass_all 4228 lt_cv_file_magic_test_file=/lib/libc.so 4229 ;; 4230 4231 sysv5uw[[78]]* | sysv4*uw2*) 4232 lt_cv_deplibs_check_method=pass_all 4233 ;; 4234 4235 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 4236 case $host_vendor in 4237 motorola) 4238 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' 4239 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4240 ;; 4241 ncr) 4242 lt_cv_deplibs_check_method=pass_all 4243 ;; 4244 sequent) 4245 lt_cv_file_magic_cmd='/bin/file' 4246 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 4247 ;; 4248 sni) 4249 lt_cv_file_magic_cmd='/bin/file' 4250 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 4251 lt_cv_file_magic_test_file=/lib/libc.so 4252 ;; 4253 siemens) 4254 lt_cv_deplibs_check_method=pass_all 4255 ;; 4256 esac 4257 ;; 4258 esac 4259 ]) 4260 file_magic_cmd=$lt_cv_file_magic_cmd 4261 deplibs_check_method=$lt_cv_deplibs_check_method 4262 ]) 4263 4264 4265 # AC_PROG_NM - find the path to a BSD-compatible name lister 4266 AC_DEFUN([AC_PROG_NM], 4267 [AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl 4268 AC_MSG_CHECKING([for BSD-compatible nm]) 4269 AC_CACHE_VAL(lt_cv_path_NM, 4270 [if test -n "$NM"; then 4271 # Let the user override the test. 4272 lt_cv_path_NM="$NM" 4273 else 4274 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4275 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 4276 test -z "$ac_dir" && ac_dir=. 4277 tmp_nm=$ac_dir/${ac_tool_prefix}nm 4278 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then 4279 # Check to see if the nm accepts a BSD-compat flag. 4280 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4281 # nm: unknown option "B" ignored 4282 # Tru64's nm complains that /dev/null is an invalid object file 4283 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then 4284 lt_cv_path_NM="$tmp_nm -B" 4285 break 4286 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 4287 lt_cv_path_NM="$tmp_nm -p" 4288 break 4289 else 4290 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4291 continue # so that we can try to find one that supports BSD flags 4292 fi 4293 fi 4294 done 4295 IFS="$ac_save_ifs" 4296 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4297 fi]) 4298 NM="$lt_cv_path_NM" 4299 AC_MSG_RESULT([$NM]) 4300 ]) 4301 4302 # AC_CHECK_LIBM - check for math library 4303 AC_DEFUN([AC_CHECK_LIBM], 4304 [AC_REQUIRE([AC_CANONICAL_HOST])dnl 4305 LIBM= 4306 case $host in 4307 *-*-beos* | *-*-cygwin* | *-*-pw32*) 4308 # These system don't have libm 4309 ;; 4310 *-ncr-sysv4.3*) 4311 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") 4312 AC_CHECK_LIB(m, main, LIBM="$LIBM -lm") 4313 ;; 4314 *) 4315 AC_CHECK_LIB(m, main, LIBM="-lm") 4316 ;; 4317 esac 4318 ]) 4319 4320 # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for 4321 # the libltdl convenience library and LTDLINCL to the include flags for 4322 # the libltdl header and adds --enable-ltdl-convenience to the 4323 # configure arguments. Note that LIBLTDL and LTDLINCL are not 4324 # AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not 4325 # provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed 4326 # with '${top_builddir}/' and LTDLINCL will be prefixed with 4327 # '${top_srcdir}/' (note the single quotes!). If your package is not 4328 # flat and you're not using automake, define top_builddir and 4329 # top_srcdir appropriately in the Makefiles. 4330 AC_DEFUN([AC_LIBLTDL_CONVENIENCE], 4331 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 4332 case $enable_ltdl_convenience in 4333 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; 4334 "") enable_ltdl_convenience=yes 4335 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; 4336 esac 4337 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la 4338 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) 4339 # For backwards non-gettext consistent compatibility... 4340 INCLTDL="$LTDLINCL" 4341 ]) 4342 4343 # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for 4344 # the libltdl installable library and LTDLINCL to the include flags for 4345 # the libltdl header and adds --enable-ltdl-install to the configure 4346 # arguments. Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is 4347 # AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed 4348 # libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will 4349 # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed 4350 # with '${top_srcdir}/' (note the single quotes!). If your package is 4351 # not flat and you're not using automake, define top_builddir and 4352 # top_srcdir appropriately in the Makefiles. 4353 # In the future, this macro may have to be called after AC_PROG_LIBTOOL. 4354 AC_DEFUN([AC_LIBLTDL_INSTALLABLE], 4355 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 4356 AC_CHECK_LIB(ltdl, main, 4357 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], 4358 [if test x"$enable_ltdl_install" = xno; then 4359 AC_MSG_WARN([libltdl not installed, but installation disabled]) 4360 else 4361 enable_ltdl_install=yes 4362 fi 4363 ]) 4364 if test x"$enable_ltdl_install" = x"yes"; then 4365 ac_configure_args="$ac_configure_args --enable-ltdl-install" 4366 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la 4367 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) 4368 else 4369 ac_configure_args="$ac_configure_args --enable-ltdl-install=no" 4370 LIBLTDL="-lltdl" 4371 LTDLINCL= 4372 fi 4373 # For backwards non-gettext consistent compatibility... 4374 INCLTDL="$LTDLINCL" 4375 ]) 5848 ])# _LT_AC_FILE_LTDLL_C 5849 5850 5851 # _LT_AC_TAGVAR(VARNAME, [TAGNAME]) 5852 # --------------------------------- 5853 AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) 5854 4376 5855 4377 5856 # old names … … 4386 5865 # This is just to silence aclocal about the macro not being used 4387 5866 ifelse([AC_DISABLE_FAST_INSTALL]) 5867 5868 AC_DEFUN([LT_AC_PROG_GCJ], 5869 [AC_CHECK_TOOL(GCJ, gcj, no) 5870 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 5871 AC_SUBST(GCJFLAGS) 5872 ]) 5873 5874 AC_DEFUN([LT_AC_PROG_RC], 5875 [AC_CHECK_TOOL(RC, windres, no) 5876 ]) 4388 5877 4389 5878 # NOTE: This macro has been submitted for inclusion into # … … 4400 5889 [# Loop through the user's path and test for sed and gsed. 4401 5890 # Then use that list of sed's as ones to test for truncation. 4402 as_executable_p="test -f"4403 5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4404 5892 for as_dir in $PATH … … 4406 5894 IFS=$as_save_IFS 4407 5895 test -z "$as_dir" && as_dir=. 4408 for ac_prog in sed gsed; do5896 for lt_ac_prog in sed gsed; do 4409 5897 for ac_exec_ext in '' $ac_executable_extensions; do 4410 if $as_executable_p "$as_dir/$ ac_prog$ac_exec_ext"; then4411 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"5898 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 5899 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 4412 5900 fi 4413 5901 done 4414 5902 done 4415 5903 done 4416 4417 # Create a temporary directory, and hook for its removal unless debugging. 4418 $debug || 4419 { 4420 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 4421 trap '{ (exit 1); exit 1; }' 1 2 13 15 4422 } 4423 4424 # Create a (secure) tmp directory for tmp files. 4425 : ${TMPDIR=/tmp} 4426 { 4427 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` && 4428 test -n "$tmp" && test -d "$tmp" 4429 } || 4430 { 4431 tmp=$TMPDIR/sed$$-$RANDOM 4432 (umask 077 && mkdir $tmp) 4433 } || 4434 { 4435 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 4436 { (exit 1); exit 1; } 4437 } 4438 _max=0 4439 _count=0 4440 # Add /usr/xpg4/bin/sed as it is typically found on Solaris 4441 # along with /bin/sed that truncates output. 4442 for _sed in $_sed_list /usr/xpg4/bin/sed; do 4443 test ! -f ${_sed} && break 4444 cat /dev/null > "$tmp/sed.in" 4445 _count=0 4446 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in" 4447 # Check for GNU sed and select it if it is found. 4448 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then 4449 lt_cv_path_SED=${_sed} 4450 break 5904 lt_ac_max=0 5905 lt_ac_count=0 5906 # Add /usr/xpg4/bin/sed as it is typically found on Solaris 5907 # along with /bin/sed that truncates output. 5908 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 5909 test ! -f $lt_ac_sed && break 5910 cat /dev/null > conftest.in 5911 lt_ac_count=0 5912 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 5913 # Check for GNU sed and select it if it is found. 5914 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 5915 lt_cv_path_SED=$lt_ac_sed 5916 break 5917 fi 5918 while true; do 5919 cat conftest.in conftest.in >conftest.tmp 5920 mv conftest.tmp conftest.in 5921 cp conftest.in conftest.nl 5922 echo >>conftest.nl 5923 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 5924 cmp -s conftest.out conftest.nl || break 5925 # 10000 chars as input seems more than enough 5926 test $lt_ac_count -gt 10 && break 5927 lt_ac_count=`expr $lt_ac_count + 1` 5928 if test $lt_ac_count -gt $lt_ac_max; then 5929 lt_ac_max=$lt_ac_count 5930 lt_cv_path_SED=$lt_ac_sed 4451 5931 fi 4452 while true; do4453 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"4454 mv "$tmp/sed.tmp" "$tmp/sed.in"4455 cp "$tmp/sed.in" "$tmp/sed.nl"4456 echo >>"$tmp/sed.nl"4457 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break4458 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break4459 # 40000 chars as input seems more than enough4460 test $_count -gt 10 && break4461 _count=`expr $_count + 1`4462 if test $_count -gt $_max; then4463 _max=$_count4464 lt_cv_path_SED=$_sed4465 fi4466 done4467 5932 done 4468 rm -rf "$tmp" 5933 done 5934 SED=$lt_cv_path_SED 4469 5935 ]) 4470 if test "X$SED" != "X"; then4471 lt_cv_path_SED=$SED4472 else4473 SED=$lt_cv_path_SED4474 fi4475 5936 AC_MSG_RESULT([$SED]) 4476 5937 ]) 4477 5938 5939 # -*- Autoconf -*- 5940 # Copyright (C) 2002, 2003 Free Software Foundation, Inc. 5941 # Generated from amversion.in; do not edit by hand. 5942 5943 # This program is free software; you can redistribute it and/or modify 5944 # it under the terms of the GNU General Public License as published by 5945 # the Free Software Foundation; either version 2, or (at your option) 5946 # any later version. 5947 5948 # This program is distributed in the hope that it will be useful, 5949 # but WITHOUT ANY WARRANTY; without even the implied warranty of 5950 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 5951 # GNU General Public License for more details. 5952 5953 # You should have received a copy of the GNU General Public License 5954 # along with this program; if not, write to the Free Software 5955 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 5956 5957 # AM_AUTOMAKE_VERSION(VERSION) 5958 # ---------------------------- 5959 # Automake X.Y traces this macro to ensure aclocal.m4 has been 5960 # generated from the m4 files accompanying Automake X.Y. 5961 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"]) 5962 5963 # AM_SET_CURRENT_AUTOMAKE_VERSION 5964 # ------------------------------- 5965 # Call AM_AUTOMAKE_VERSION so it can be traced. 5966 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. 5967 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 5968 [AM_AUTOMAKE_VERSION([1.8.3])]) 5969 5970 # AM_AUX_DIR_EXPAND 5971 5972 # Copyright (C) 2001, 2003 Free Software Foundation, Inc. 5973 5974 # This program is free software; you can redistribute it and/or modify 5975 # it under the terms of the GNU General Public License as published by 5976 # the Free Software Foundation; either version 2, or (at your option) 5977 # any later version. 5978 5979 # This program is distributed in the hope that it will be useful, 5980 # but WITHOUT ANY WARRANTY; without even the implied warranty of 5981 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 5982 # GNU General Public License for more details. 5983 5984 # You should have received a copy of the GNU General Public License 5985 # along with this program; if not, write to the Free Software 5986 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 5987 # 02111-1307, USA. 5988 5989 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 5990 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 5991 # `$srcdir', `$srcdir/..', or `$srcdir/../..'. 5992 # 5993 # Of course, Automake must honor this variable whenever it calls a 5994 # tool from the auxiliary directory. The problem is that $srcdir (and 5995 # therefore $ac_aux_dir as well) can be either absolute or relative, 5996 # depending on how configure is run. This is pretty annoying, since 5997 # it makes $ac_aux_dir quite unusable in subdirectories: in the top 5998 # source directory, any form will work fine, but in subdirectories a 5999 # relative path needs to be adjusted first. 6000 # 6001 # $ac_aux_dir/missing 6002 # fails when called from a subdirectory if $ac_aux_dir is relative 6003 # $top_srcdir/$ac_aux_dir/missing 6004 # fails if $ac_aux_dir is absolute, 6005 # fails when called from a subdirectory in a VPATH build with 6006 # a relative $ac_aux_dir 6007 # 6008 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir 6009 # are both prefixed by $srcdir. In an in-source build this is usually 6010 # harmless because $srcdir is `.', but things will broke when you 6011 # start a VPATH build or use an absolute $srcdir. 6012 # 6013 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 6014 # iff we strip the leading $srcdir from $ac_aux_dir. That would be: 6015 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 6016 # and then we would define $MISSING as 6017 # MISSING="\${SHELL} $am_aux_dir/missing" 6018 # This will work as long as MISSING is not called from configure, because 6019 # unfortunately $(top_srcdir) has no meaning in configure. 6020 # However there are other variables, like CC, which are often used in 6021 # configure, and could therefore not use this "fixed" $ac_aux_dir. 6022 # 6023 # Another solution, used here, is to always expand $ac_aux_dir to an 6024 # absolute PATH. The drawback is that using absolute paths prevent a 6025 # configured tree to be moved without reconfiguration. 6026 6027 AC_DEFUN([AM_AUX_DIR_EXPAND], 6028 [dnl Rely on autoconf to set up CDPATH properly. 6029 AC_PREREQ([2.50])dnl 6030 # expand $ac_aux_dir to an absolute path 6031 am_aux_dir=`cd $ac_aux_dir && pwd` 6032 ]) 6033 6034 # AM_CONDITIONAL -*- Autoconf -*- 6035 6036 # Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc. 6037 6038 # This program is free software; you can redistribute it and/or modify 6039 # it under the terms of the GNU General Public License as published by 6040 # the Free Software Foundation; either version 2, or (at your option) 6041 # any later version. 6042 6043 # This program is distributed in the hope that it will be useful, 6044 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6045 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6046 # GNU General Public License for more details. 6047 6048 # You should have received a copy of the GNU General Public License 6049 # along with this program; if not, write to the Free Software 6050 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6051 # 02111-1307, USA. 6052 6053 # serial 6 6054 6055 # AM_CONDITIONAL(NAME, SHELL-CONDITION) 6056 # ------------------------------------- 6057 # Define a conditional. 6058 AC_DEFUN([AM_CONDITIONAL], 6059 [AC_PREREQ(2.52)dnl 6060 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 6061 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 6062 AC_SUBST([$1_TRUE]) 6063 AC_SUBST([$1_FALSE]) 6064 if $2; then 6065 $1_TRUE= 6066 $1_FALSE='#' 6067 else 6068 $1_TRUE='#' 6069 $1_FALSE= 6070 fi 6071 AC_CONFIG_COMMANDS_PRE( 6072 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 6073 AC_MSG_ERROR([conditional "$1" was never defined. 6074 Usually this means the macro was only invoked conditionally.]) 6075 fi])]) 6076 6077 # serial 7 -*- Autoconf -*- 6078 6079 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 6080 # Free Software Foundation, Inc. 6081 6082 # This program is free software; you can redistribute it and/or modify 6083 # it under the terms of the GNU General Public License as published by 6084 # the Free Software Foundation; either version 2, or (at your option) 6085 # any later version. 6086 6087 # This program is distributed in the hope that it will be useful, 6088 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6089 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6090 # GNU General Public License for more details. 6091 6092 # You should have received a copy of the GNU General Public License 6093 # along with this program; if not, write to the Free Software 6094 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6095 # 02111-1307, USA. 6096 6097 6098 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 6099 # written in clear, in which case automake, when reading aclocal.m4, 6100 # will think it sees a *use*, and therefore will trigger all it's 6101 # C support machinery. Also note that it means that autoscan, seeing 6102 # CC etc. in the Makefile, will ask for an AC_PROG_CC use... 6103 6104 6105 6106 # _AM_DEPENDENCIES(NAME) 6107 # ---------------------- 6108 # See how the compiler implements dependency checking. 6109 # NAME is "CC", "CXX", "GCJ", or "OBJC". 6110 # We try a few techniques and use that to set a single cache variable. 6111 # 6112 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 6113 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 6114 # dependency, and given that the user is not expected to run this macro, 6115 # just rely on AC_PROG_CC. 6116 AC_DEFUN([_AM_DEPENDENCIES], 6117 [AC_REQUIRE([AM_SET_DEPDIR])dnl 6118 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 6119 AC_REQUIRE([AM_MAKE_INCLUDE])dnl 6120 AC_REQUIRE([AM_DEP_TRACK])dnl 6121 6122 ifelse([$1], CC, [depcc="$CC" am_compiler_list=], 6123 [$1], CXX, [depcc="$CXX" am_compiler_list=], 6124 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 6125 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 6126 [depcc="$$1" am_compiler_list=]) 6127 6128 AC_CACHE_CHECK([dependency style of $depcc], 6129 [am_cv_$1_dependencies_compiler_type], 6130 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6131 # We make a subdir and do the tests there. Otherwise we can end up 6132 # making bogus files that we don't know about and never remove. For 6133 # instance it was reported that on HP-UX the gcc test will end up 6134 # making a dummy file named `D' -- because `-MD' means `put the output 6135 # in D'. 6136 mkdir conftest.dir 6137 # Copy depcomp to subdir because otherwise we won't find it if we're 6138 # using a relative directory. 6139 cp "$am_depcomp" conftest.dir 6140 cd conftest.dir 6141 # We will build objects and dependencies in a subdirectory because 6142 # it helps to detect inapplicable dependency modes. For instance 6143 # both Tru64's cc and ICC support -MD to output dependencies as a 6144 # side effect of compilation, but ICC will put the dependencies in 6145 # the current directory while Tru64 will put them in the object 6146 # directory. 6147 mkdir sub 6148 6149 am_cv_$1_dependencies_compiler_type=none 6150 if test "$am_compiler_list" = ""; then 6151 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 6152 fi 6153 for depmode in $am_compiler_list; do 6154 # Setup a source with many dependencies, because some compilers 6155 # like to wrap large dependency lists on column 80 (with \), and 6156 # we should not choose a depcomp mode which is confused by this. 6157 # 6158 # We need to recreate these files for each test, as the compiler may 6159 # overwrite some of them when testing with obscure command lines. 6160 # This happens at least with the AIX C compiler. 6161 : > sub/conftest.c 6162 for i in 1 2 3 4 5 6; do 6163 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6164 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 6165 # Solaris 8's {/usr,}/bin/sh. 6166 touch sub/conftst$i.h 6167 done 6168 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6169 6170 case $depmode in 6171 nosideeffect) 6172 # after this tag, mechanisms are not by side-effect, so they'll 6173 # only be used when explicitly requested 6174 if test "x$enable_dependency_tracking" = xyes; then 6175 continue 6176 else 6177 break 6178 fi 6179 ;; 6180 none) break ;; 6181 esac 6182 # We check with `-c' and `-o' for the sake of the "dashmstdout" 6183 # mode. It turns out that the SunPro C++ compiler does not properly 6184 # handle `-M -o', and we need to detect this. 6185 if depmode=$depmode \ 6186 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 6187 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6188 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 6189 >/dev/null 2>conftest.err && 6190 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6191 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 6192 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6193 # icc doesn't choke on unknown options, it will just issue warnings 6194 # (even with -Werror). So we grep stderr for any message 6195 # that says an option was ignored. 6196 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 6197 am_cv_$1_dependencies_compiler_type=$depmode 6198 break 6199 fi 6200 fi 6201 done 6202 6203 cd .. 6204 rm -rf conftest.dir 6205 else 6206 am_cv_$1_dependencies_compiler_type=none 6207 fi 6208 ]) 6209 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 6210 AM_CONDITIONAL([am__fastdep$1], [ 6211 test "x$enable_dependency_tracking" != xno \ 6212 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 6213 ]) 6214 6215 6216 # AM_SET_DEPDIR 6217 # ------------- 6218 # Choose a directory name for dependency files. 6219 # This macro is AC_REQUIREd in _AM_DEPENDENCIES 6220 AC_DEFUN([AM_SET_DEPDIR], 6221 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl 6222 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 6223 ]) 6224 6225 6226 # AM_DEP_TRACK 6227 # ------------ 6228 AC_DEFUN([AM_DEP_TRACK], 6229 [AC_ARG_ENABLE(dependency-tracking, 6230 [ --disable-dependency-tracking speeds up one-time build 6231 --enable-dependency-tracking do not reject slow dependency extractors]) 6232 if test "x$enable_dependency_tracking" != xno; then 6233 am_depcomp="$ac_aux_dir/depcomp" 6234 AMDEPBACKSLASH='\' 6235 fi 6236 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 6237 AC_SUBST([AMDEPBACKSLASH]) 6238 ]) 6239 6240 # Generate code to set up dependency tracking. -*- Autoconf -*- 6241 6242 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. 6243 6244 # This program is free software; you can redistribute it and/or modify 6245 # it under the terms of the GNU General Public License as published by 6246 # the Free Software Foundation; either version 2, or (at your option) 6247 # any later version. 6248 6249 # This program is distributed in the hope that it will be useful, 6250 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6251 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6252 # GNU General Public License for more details. 6253 6254 # You should have received a copy of the GNU General Public License 6255 # along with this program; if not, write to the Free Software 6256 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6257 # 02111-1307, USA. 6258 6259 #serial 2 6260 6261 # _AM_OUTPUT_DEPENDENCY_COMMANDS 6262 # ------------------------------ 6263 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 6264 [for mf in $CONFIG_FILES; do 6265 # Strip MF so we end up with the name of the file. 6266 mf=`echo "$mf" | sed -e 's/:.*$//'` 6267 # Check whether this is an Automake generated Makefile or not. 6268 # We used to match only the files named `Makefile.in', but 6269 # some people rename them; so instead we look at the file content. 6270 # Grep'ing the first line is not enough: some people post-process 6271 # each Makefile.in and add a new line on top of each file to say so. 6272 # So let's grep whole file. 6273 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 6274 dirpart=`AS_DIRNAME("$mf")` 6275 else 6276 continue 6277 fi 6278 grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue 6279 # Extract the definition of DEP_FILES from the Makefile without 6280 # running `make'. 6281 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 6282 test -z "$DEPDIR" && continue 6283 # When using ansi2knr, U may be empty or an underscore; expand it 6284 U=`sed -n 's/^U = //p' < "$mf"` 6285 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 6286 # We invoke sed twice because it is the simplest approach to 6287 # changing $(DEPDIR) to its actual value in the expansion. 6288 for file in `sed -n ' 6289 /^DEP_FILES = .*\\\\$/ { 6290 s/^DEP_FILES = // 6291 :loop 6292 s/\\\\$// 6293 p 6294 n 6295 /\\\\$/ b loop 6296 p 6297 } 6298 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 6299 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 6300 # Make sure the directory exists. 6301 test -f "$dirpart/$file" && continue 6302 fdir=`AS_DIRNAME(["$file"])` 6303 AS_MKDIR_P([$dirpart/$fdir]) 6304 # echo "creating $dirpart/$file" 6305 echo '# dummy' > "$dirpart/$file" 6306 done 6307 done 6308 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS 6309 6310 6311 # AM_OUTPUT_DEPENDENCY_COMMANDS 6312 # ----------------------------- 6313 # This macro should only be invoked once -- use via AC_REQUIRE. 6314 # 6315 # This code is only required when automatic dependency tracking 6316 # is enabled. FIXME. This creates each `.P' file that we will 6317 # need in order to bootstrap the dependency handling code. 6318 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 6319 [AC_CONFIG_COMMANDS([depfiles], 6320 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 6321 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 6322 ]) 6323 6324 # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*- 6325 6326 # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc. 6327 6328 # This program is free software; you can redistribute it and/or modify 6329 # it under the terms of the GNU General Public License as published by 6330 # the Free Software Foundation; either version 2, or (at your option) 6331 # any later version. 6332 6333 # This program is distributed in the hope that it will be useful, 6334 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6335 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6336 # GNU General Public License for more details. 6337 6338 # You should have received a copy of the GNU General Public License 6339 # along with this program; if not, write to the Free Software 6340 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6341 # 02111-1307, USA. 6342 6343 # serial 7 6344 6345 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. 6346 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) 6347 6348 # Do all the work for Automake. -*- Autoconf -*- 6349 6350 # This macro actually does too much some checks are only needed if 6351 # your package does certain things. But this isn't really a big deal. 6352 6353 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 6354 # Free Software Foundation, Inc. 6355 6356 # This program is free software; you can redistribute it and/or modify 6357 # it under the terms of the GNU General Public License as published by 6358 # the Free Software Foundation; either version 2, or (at your option) 6359 # any later version. 6360 6361 # This program is distributed in the hope that it will be useful, 6362 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6363 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6364 # GNU General Public License for more details. 6365 6366 # You should have received a copy of the GNU General Public License 6367 # along with this program; if not, write to the Free Software 6368 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6369 # 02111-1307, USA. 6370 6371 # serial 11 6372 6373 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 6374 # AM_INIT_AUTOMAKE([OPTIONS]) 6375 # ----------------------------------------------- 6376 # The call with PACKAGE and VERSION arguments is the old style 6377 # call (pre autoconf-2.50), which is being phased out. PACKAGE 6378 # and VERSION should now be passed to AC_INIT and removed from 6379 # the call to AM_INIT_AUTOMAKE. 6380 # We support both call styles for the transition. After 6381 # the next Automake release, Autoconf can make the AC_INIT 6382 # arguments mandatory, and then we can depend on a new Autoconf 6383 # release and drop the old call support. 6384 AC_DEFUN([AM_INIT_AUTOMAKE], 6385 [AC_PREREQ([2.58])dnl 6386 dnl Autoconf wants to disallow AM_ names. We explicitly allow 6387 dnl the ones we care about. 6388 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 6389 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 6390 AC_REQUIRE([AC_PROG_INSTALL])dnl 6391 # test to see if srcdir already configured 6392 if test "`cd $srcdir && pwd`" != "`pwd`" && 6393 test -f $srcdir/config.status; then 6394 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 6395 fi 6396 6397 # test whether we have cygpath 6398 if test -z "$CYGPATH_W"; then 6399 if (cygpath --version) >/dev/null 2>/dev/null; then 6400 CYGPATH_W='cygpath -w' 6401 else 6402 CYGPATH_W=echo 6403 fi 6404 fi 6405 AC_SUBST([CYGPATH_W]) 6406 6407 # Define the identity of the package. 6408 dnl Distinguish between old-style and new-style calls. 6409 m4_ifval([$2], 6410 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 6411 AC_SUBST([PACKAGE], [$1])dnl 6412 AC_SUBST([VERSION], [$2])], 6413 [_AM_SET_OPTIONS([$1])dnl 6414 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 6415 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 6416 6417 _AM_IF_OPTION([no-define],, 6418 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 6419 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 6420 6421 # Some tools Automake needs. 6422 AC_REQUIRE([AM_SANITY_CHECK])dnl 6423 AC_REQUIRE([AC_ARG_PROGRAM])dnl 6424 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 6425 AM_MISSING_PROG(AUTOCONF, autoconf) 6426 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 6427 AM_MISSING_PROG(AUTOHEADER, autoheader) 6428 AM_MISSING_PROG(MAKEINFO, makeinfo) 6429 AM_MISSING_PROG(AMTAR, tar) 6430 AM_PROG_INSTALL_SH 6431 AM_PROG_INSTALL_STRIP 6432 AC_REQUIRE([AM_PROG_MKDIR_P])dnl 6433 # We need awk for the "check" target. The system "awk" is bad on 6434 # some platforms. 6435 AC_REQUIRE([AC_PROG_AWK])dnl 6436 AC_REQUIRE([AC_PROG_MAKE_SET])dnl 6437 AC_REQUIRE([AM_SET_LEADING_DOT])dnl 6438 6439 _AM_IF_OPTION([no-dependencies],, 6440 [AC_PROVIDE_IFELSE([AC_PROG_CC], 6441 [_AM_DEPENDENCIES(CC)], 6442 [define([AC_PROG_CC], 6443 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 6444 AC_PROVIDE_IFELSE([AC_PROG_CXX], 6445 [_AM_DEPENDENCIES(CXX)], 6446 [define([AC_PROG_CXX], 6447 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 6448 ]) 6449 ]) 6450 6451 6452 # When config.status generates a header, we must update the stamp-h file. 6453 # This file resides in the same directory as the config header 6454 # that is generated. The stamp files are numbered to have different names. 6455 6456 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 6457 # loop where config.status creates the headers, so we can generate 6458 # our stamp files there. 6459 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 6460 [# Compute $1's index in $config_headers. 6461 _am_stamp_count=1 6462 for _am_header in $config_headers :; do 6463 case $_am_header in 6464 $1 | $1:* ) 6465 break ;; 6466 * ) 6467 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 6468 esac 6469 done 6470 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) 6471 6472 # AM_PROG_INSTALL_SH 6473 # ------------------ 6474 # Define $install_sh. 6475 6476 # Copyright (C) 2001, 2003 Free Software Foundation, Inc. 6477 6478 # This program is free software; you can redistribute it and/or modify 6479 # it under the terms of the GNU General Public License as published by 6480 # the Free Software Foundation; either version 2, or (at your option) 6481 # any later version. 6482 6483 # This program is distributed in the hope that it will be useful, 6484 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6485 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6486 # GNU General Public License for more details. 6487 6488 # You should have received a copy of the GNU General Public License 6489 # along with this program; if not, write to the Free Software 6490 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6491 # 02111-1307, USA. 6492 6493 AC_DEFUN([AM_PROG_INSTALL_SH], 6494 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 6495 install_sh=${install_sh-"$am_aux_dir/install-sh"} 6496 AC_SUBST(install_sh)]) 6497 6498 # -*- Autoconf -*- 6499 # Copyright (C) 2003 Free Software Foundation, Inc. 6500 6501 # This program is free software; you can redistribute it and/or modify 6502 # it under the terms of the GNU General Public License as published by 6503 # the Free Software Foundation; either version 2, or (at your option) 6504 # any later version. 6505 6506 # This program is distributed in the hope that it will be useful, 6507 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6508 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6509 # GNU General Public License for more details. 6510 6511 # You should have received a copy of the GNU General Public License 6512 # along with this program; if not, write to the Free Software 6513 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6514 # 02111-1307, USA. 6515 6516 # serial 1 6517 6518 # Check whether the underlying file-system supports filenames 6519 # with a leading dot. For instance MS-DOS doesn't. 6520 AC_DEFUN([AM_SET_LEADING_DOT], 6521 [rm -rf .tst 2>/dev/null 6522 mkdir .tst 2>/dev/null 6523 if test -d .tst; then 6524 am__leading_dot=. 6525 else 6526 am__leading_dot=_ 6527 fi 6528 rmdir .tst 2>/dev/null 6529 AC_SUBST([am__leading_dot])]) 6530 6531 # Check to see how 'make' treats includes. -*- Autoconf -*- 6532 6533 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. 6534 6535 # This program is free software; you can redistribute it and/or modify 6536 # it under the terms of the GNU General Public License as published by 6537 # the Free Software Foundation; either version 2, or (at your option) 6538 # any later version. 6539 6540 # This program is distributed in the hope that it will be useful, 6541 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6542 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6543 # GNU General Public License for more details. 6544 6545 # You should have received a copy of the GNU General Public License 6546 # along with this program; if not, write to the Free Software 6547 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6548 # 02111-1307, USA. 6549 6550 # serial 2 6551 6552 # AM_MAKE_INCLUDE() 6553 # ----------------- 6554 # Check to see how make treats includes. 6555 AC_DEFUN([AM_MAKE_INCLUDE], 6556 [am_make=${MAKE-make} 6557 cat > confinc << 'END' 6558 am__doit: 6559 @echo done 6560 .PHONY: am__doit 6561 END 6562 # If we don't find an include directive, just comment out the code. 6563 AC_MSG_CHECKING([for style of include used by $am_make]) 6564 am__include="#" 6565 am__quote= 6566 _am_result=none 6567 # First try GNU make style include. 6568 echo "include confinc" > confmf 6569 # We grep out `Entering directory' and `Leaving directory' 6570 # messages which can occur if `w' ends up in MAKEFLAGS. 6571 # In particular we don't look at `^make:' because GNU make might 6572 # be invoked under some other name (usually "gmake"), in which 6573 # case it prints its new name instead of `make'. 6574 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 6575 am__include=include 6576 am__quote= 6577 _am_result=GNU 6578 fi 6579 # Now try BSD make style include. 6580 if test "$am__include" = "#"; then 6581 echo '.include "confinc"' > confmf 6582 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 6583 am__include=.include 6584 am__quote="\"" 6585 _am_result=BSD 6586 fi 6587 fi 6588 AC_SUBST([am__include]) 6589 AC_SUBST([am__quote]) 6590 AC_MSG_RESULT([$_am_result]) 6591 rm -f confinc confmf 6592 ]) 6593 6594 # -*- Autoconf -*- 6595 6596 6597 # Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc. 6598 6599 # This program is free software; you can redistribute it and/or modify 6600 # it under the terms of the GNU General Public License as published by 6601 # the Free Software Foundation; either version 2, or (at your option) 6602 # any later version. 6603 6604 # This program is distributed in the hope that it will be useful, 6605 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6606 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6607 # GNU General Public License for more details. 6608 6609 # You should have received a copy of the GNU General Public License 6610 # along with this program; if not, write to the Free Software 6611 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6612 # 02111-1307, USA. 6613 6614 # serial 3 6615 6616 # AM_MISSING_PROG(NAME, PROGRAM) 6617 # ------------------------------ 6618 AC_DEFUN([AM_MISSING_PROG], 6619 [AC_REQUIRE([AM_MISSING_HAS_RUN]) 6620 $1=${$1-"${am_missing_run}$2"} 6621 AC_SUBST($1)]) 6622 6623 6624 # AM_MISSING_HAS_RUN 6625 # ------------------ 6626 # Define MISSING if not defined so far and test if it supports --run. 6627 # If it does, set am_missing_run to use it, otherwise, to nothing. 6628 AC_DEFUN([AM_MISSING_HAS_RUN], 6629 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 6630 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 6631 # Use eval to expand $SHELL 6632 if eval "$MISSING --run true"; then 6633 am_missing_run="$MISSING --run " 6634 else 6635 am_missing_run= 6636 AC_MSG_WARN([`missing' script is too old or missing]) 6637 fi 6638 ]) 6639 6640 # AM_PROG_MKDIR_P 6641 # --------------- 6642 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. 6643 6644 # Copyright (C) 2003, 2004 Free Software Foundation, Inc. 6645 6646 # This program is free software; you can redistribute it and/or modify 6647 # it under the terms of the GNU General Public License as published by 6648 # the Free Software Foundation; either version 2, or (at your option) 6649 # any later version. 6650 6651 # This program is distributed in the hope that it will be useful, 6652 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6653 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6654 # GNU General Public License for more details. 6655 6656 # You should have received a copy of the GNU General Public License 6657 # along with this program; if not, write to the Free Software 6658 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6659 # 02111-1307, USA. 6660 6661 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories 6662 # created by `make install' are always world readable, even if the 6663 # installer happens to have an overly restrictive umask (e.g. 077). 6664 # This was a mistake. There are at least two reasons why we must not 6665 # use `-m 0755': 6666 # - it causes special bits like SGID to be ignored, 6667 # - it may be too restrictive (some setups expect 775 directories). 6668 # 6669 # Do not use -m 0755 and let people choose whatever they expect by 6670 # setting umask. 6671 # 6672 # We cannot accept any implementation of `mkdir' that recognizes `-p'. 6673 # Some implementations (such as Solaris 8's) are not thread-safe: if a 6674 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' 6675 # concurrently, both version can detect that a/ is missing, but only 6676 # one can create it and the other will error out. Consequently we 6677 # restrict ourselves to GNU make (using the --version option ensures 6678 # this.) 6679 AC_DEFUN([AM_PROG_MKDIR_P], 6680 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 6681 # Keeping the `.' argument allows $(mkdir_p) to be used without 6682 # argument. Indeed, we sometimes output rules like 6683 # $(mkdir_p) $(somedir) 6684 # where $(somedir) is conditionally defined. 6685 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more 6686 # expensive solution, as it forces Make to start a sub-shell.) 6687 mkdir_p='mkdir -p -- .' 6688 else 6689 # On NextStep and OpenStep, the `mkdir' command does not 6690 # recognize any option. It will interpret all options as 6691 # directories to create, and then abort because `.' already 6692 # exists. 6693 for d in ./-p ./--version; 6694 do 6695 test -d $d && rmdir $d 6696 done 6697 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 6698 if test -f "$ac_aux_dir/mkinstalldirs"; then 6699 mkdir_p='$(mkinstalldirs)' 6700 else 6701 mkdir_p='$(install_sh) -d' 6702 fi 6703 fi 6704 AC_SUBST([mkdir_p])]) 6705 6706 # Helper functions for option handling. -*- Autoconf -*- 6707 6708 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. 6709 6710 # This program is free software; you can redistribute it and/or modify 6711 # it under the terms of the GNU General Public License as published by 6712 # the Free Software Foundation; either version 2, or (at your option) 6713 # any later version. 6714 6715 # This program is distributed in the hope that it will be useful, 6716 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6717 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6718 # GNU General Public License for more details. 6719 6720 # You should have received a copy of the GNU General Public License 6721 # along with this program; if not, write to the Free Software 6722 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6723 # 02111-1307, USA. 6724 6725 # serial 2 6726 6727 # _AM_MANGLE_OPTION(NAME) 6728 # ----------------------- 6729 AC_DEFUN([_AM_MANGLE_OPTION], 6730 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 6731 6732 # _AM_SET_OPTION(NAME) 6733 # ------------------------------ 6734 # Set option NAME. Presently that only means defining a flag for this option. 6735 AC_DEFUN([_AM_SET_OPTION], 6736 [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 6737 6738 # _AM_SET_OPTIONS(OPTIONS) 6739 # ---------------------------------- 6740 # OPTIONS is a space-separated list of Automake options. 6741 AC_DEFUN([_AM_SET_OPTIONS], 6742 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 6743 6744 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 6745 # ------------------------------------------- 6746 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 6747 AC_DEFUN([_AM_IF_OPTION], 6748 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 6749 6750 # 6751 # Check to make sure that the build environment is sane. 6752 # 6753 6754 # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc. 6755 6756 # This program is free software; you can redistribute it and/or modify 6757 # it under the terms of the GNU General Public License as published by 6758 # the Free Software Foundation; either version 2, or (at your option) 6759 # any later version. 6760 6761 # This program is distributed in the hope that it will be useful, 6762 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6763 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6764 # GNU General Public License for more details. 6765 6766 # You should have received a copy of the GNU General Public License 6767 # along with this program; if not, write to the Free Software 6768 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6769 # 02111-1307, USA. 6770 6771 # serial 3 6772 6773 # AM_SANITY_CHECK 6774 # --------------- 6775 AC_DEFUN([AM_SANITY_CHECK], 6776 [AC_MSG_CHECKING([whether build environment is sane]) 6777 # Just in case 6778 sleep 1 6779 echo timestamp > conftest.file 6780 # Do `set' in a subshell so we don't clobber the current shell's 6781 # arguments. Must try -L first in case configure is actually a 6782 # symlink; some systems play weird games with the mod time of symlinks 6783 # (eg FreeBSD returns the mod time of the symlink's containing 6784 # directory). 6785 if ( 6786 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 6787 if test "$[*]" = "X"; then 6788 # -L didn't work. 6789 set X `ls -t $srcdir/configure conftest.file` 6790 fi 6791 rm -f conftest.file 6792 if test "$[*]" != "X $srcdir/configure conftest.file" \ 6793 && test "$[*]" != "X conftest.file $srcdir/configure"; then 6794 6795 # If neither matched, then we have a broken ls. This can happen 6796 # if, for instance, CONFIG_SHELL is bash and it inherits a 6797 # broken ls alias from the environment. This has actually 6798 # happened. Such a system could not be considered "sane". 6799 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 6800 alias in your environment]) 6801 fi 6802 6803 test "$[2]" = conftest.file 6804 ) 6805 then 6806 # Ok. 6807 : 6808 else 6809 AC_MSG_ERROR([newly created file is older than distributed files! 6810 Check your system clock]) 6811 fi 6812 AC_MSG_RESULT(yes)]) 6813 6814 # AM_PROG_INSTALL_STRIP 6815 6816 # Copyright (C) 2001, 2003 Free Software Foundation, Inc. 6817 6818 # This program is free software; you can redistribute it and/or modify 6819 # it under the terms of the GNU General Public License as published by 6820 # the Free Software Foundation; either version 2, or (at your option) 6821 # any later version. 6822 6823 # This program is distributed in the hope that it will be useful, 6824 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6825 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6826 # GNU General Public License for more details. 6827 6828 # You should have received a copy of the GNU General Public License 6829 # along with this program; if not, write to the Free Software 6830 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6831 # 02111-1307, USA. 6832 6833 # One issue with vendor `install' (even GNU) is that you can't 6834 # specify the program used to strip binaries. This is especially 6835 # annoying in cross-compiling environments, where the build's strip 6836 # is unlikely to handle the host's binaries. 6837 # Fortunately install-sh will honor a STRIPPROG variable, so we 6838 # always use install-sh in `make install-strip', and initialize 6839 # STRIPPROG with the value of the STRIP variable (set by the user). 6840 AC_DEFUN([AM_PROG_INSTALL_STRIP], 6841 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 6842 # Installed binaries are usually stripped using `strip' when the user 6843 # run `make install-strip'. However `strip' might not be the right 6844 # tool to use in cross-compilation environments, therefore Automake 6845 # will honor the `STRIP' environment variable to overrule this program. 6846 dnl Don't test for $cross_compiling = yes, because it might be `maybe'. 6847 if test "$cross_compiling" != no; then 6848 AC_CHECK_TOOL([STRIP], [strip], :) 6849 fi 6850 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 6851 AC_SUBST([INSTALL_STRIP_PROGRAM])]) 6852 -
trunk/psModules/configure
r2132 r2138 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.5 7.3 # Generated by GNU Autoconf 2.59. 4 4 # 5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 6 # Free Software Foundation, Inc. 5 # Copyright (C) 2003 Free Software Foundation, Inc. 7 6 # This configure script is free software; the Free Software Foundation 8 7 # gives unlimited permission to copy, distribute and modify it. … … 21 20 set -o posix 22 21 fi 22 DUALCASE=1; export DUALCASE # for MKS sh 23 23 24 24 # Support unset when possible. 25 if ( FOO=FOO; unset FOO) >/dev/null 2>&1; then25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 26 as_unset=unset 27 27 else … … 42 42 LC_TELEPHONE LC_TIME 43 43 do 44 if (set +x; test - n"`(eval $as_var=C; export $as_var) 2>&1`"); then44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 45 eval $as_var=C; export $as_var 46 46 else … … 219 219 as_mkdir_p=: 220 220 else 221 test -d ./-p && rmdir ./-p 221 222 as_mkdir_p=false 222 223 fi … … 225 226 226 227 # Sed expression to map a string onto a valid CPP name. 227 as_tr_cpp=" sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 228 229 229 230 # Sed expression to map a string onto a valid variable name. 230 as_tr_sh=" sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 231 232 232 233 … … 240 241 $as_unset CDPATH 241 242 242 243 # Find the correct PATH separator. Usually this is `:', but244 # DJGPP uses `;' like DOS.245 if test "X${PATH_SEPARATOR+set}" != Xset; then246 UNAME=${UNAME-`uname 2>/dev/null`}247 case X$UNAME in248 *-DOS) lt_cv_sys_path_separator=';' ;;249 *) lt_cv_sys_path_separator=':' ;;250 esac251 PATH_SEPARATOR=$lt_cv_sys_path_separator252 fi253 243 254 244 … … 270 260 # Avoid inline document here, it may be left over 271 261 : 272 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 273 263 # Yippee, $echo works! 274 264 : … … 282 272 shift 283 273 cat <<EOF 284 274 $* 285 275 EOF 286 276 exit 0 … … 316 306 # So, first we look for a working echo in the user's PATH. 317 307 318 IFS="${IFS= }";save_ifs="$IFS"; IFS=$PATH_SEPARATOR308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 319 309 for dir in $PATH /usr/ucb; do 310 IFS="$lt_save_ifs" 320 311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 321 312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && … … 326 317 fi 327 318 done 328 IFS="$ save_ifs"319 IFS="$lt_save_ifs" 329 320 330 321 if test "X$echo" = Xecho; then … … 400 391 401 392 393 394 tagnames=${tagnames+${tagnames},}CXX 395 396 tagnames=${tagnames+${tagnames},}F77 397 402 398 # Name of the host. 403 399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, … … 468 464 #endif" 469 465 470 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREPLIBTOOL GSL_CONFIG LIBOBJS LTLIBOBJS'466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL GSL_CONFIG LIBOBJS LTLIBOBJS' 471 467 ac_subst_files='' 472 468 … … 827 823 # Be sure to have absolute paths. 828 824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 829 localstatedir libdir includedir oldincludedir infodir mandir825 localstatedir libdir includedir oldincludedir infodir mandir 830 826 do 831 827 eval ac_val=$`echo $ac_var` … … 867 863 ac_confdir=`(dirname "$0") 2>/dev/null || 868 864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 869 X"$0" : 'X\(//\)[^/]' \| \870 X"$0" : 'X\(//\)$' \| \871 X"$0" : 'X\(/\)' \| \872 . : '\(.\)' 2>/dev/null ||865 X"$0" : 'X\(//\)[^/]' \| \ 866 X"$0" : 'X\(//\)$' \| \ 867 X"$0" : 'X\(/\)' \| \ 868 . : '\(.\)' 2>/dev/null || 873 869 echo X"$0" | 874 870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } … … 929 925 ac_cv_env_CPP_set=${CPP+set} 930 926 ac_cv_env_CPP_value=$CPP 927 ac_env_CXX_set=${CXX+set} 928 ac_env_CXX_value=$CXX 929 ac_cv_env_CXX_set=${CXX+set} 930 ac_cv_env_CXX_value=$CXX 931 ac_env_CXXFLAGS_set=${CXXFLAGS+set} 932 ac_env_CXXFLAGS_value=$CXXFLAGS 933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS 935 ac_env_CXXCPP_set=${CXXCPP+set} 936 ac_env_CXXCPP_value=$CXXCPP 937 ac_cv_env_CXXCPP_set=${CXXCPP+set} 938 ac_cv_env_CXXCPP_value=$CXXCPP 939 ac_env_F77_set=${F77+set} 940 ac_env_F77_value=$F77 941 ac_cv_env_F77_set=${F77+set} 942 ac_cv_env_F77_value=$F77 943 ac_env_FFLAGS_set=${FFLAGS+set} 944 ac_env_FFLAGS_value=$FFLAGS 945 ac_cv_env_FFLAGS_set=${FFLAGS+set} 946 ac_cv_env_FFLAGS_value=$FFLAGS 931 947 932 948 # … … 962 978 Installation directories: 963 979 --prefix=PREFIX install architecture-independent files in PREFIX 964 [$ac_default_prefix]980 [$ac_default_prefix] 965 981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 966 [PREFIX]982 [PREFIX] 967 983 968 984 By default, \`make install' will install all the files in … … 1008 1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1009 1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1010 --disable-dependency-tracking Speeds up one-time builds 1011 --enable-dependency-tracking Do not reject slow dependency extractors 1012 --enable-shared=PKGS build shared libraries default=yes 1013 --enable-static=PKGS build static libraries default=yes 1014 --enable-fast-install=PKGS optimize for fast installation default=yes 1026 --disable-dependency-tracking speeds up one-time build 1027 --enable-dependency-tracking do not reject slow dependency extractors 1028 --enable-shared[=PKGS] 1029 build shared libraries [default=yes] 1030 --enable-static[=PKGS] 1031 build static libraries [default=yes] 1032 --enable-fast-install[=PKGS] 1033 optimize for fast installation [default=yes] 1015 1034 --disable-libtool-lock avoid locking (might break parallel builds) 1016 1035 … … 1018 1037 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1019 1038 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1020 --with-gnu-ld assume the C compiler uses GNU ld default=no 1021 --with-pic try to use only PIC/non-PIC objects default=use both 1039 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1040 --with-pic try to use only PIC/non-PIC objects [default=use 1041 both] 1042 --with-tags[=TAGS] 1043 include additional configurations [automatic] 1022 1044 --with-psLib=DIR Specify location of psLib files 1023 1045 --with-sla=DIR Specify location of SLA. … … 1034 1056 headers in a nonstandard directory <include dir> 1035 1057 CPP C preprocessor 1058 CXX C++ compiler command 1059 CXXFLAGS C++ compiler flags 1060 CXXCPP C++ preprocessor 1061 F77 Fortran 77 compiler command 1062 FFLAGS Fortran 77 compiler flags 1036 1063 1037 1064 Use these variables to override the choices made by `configure' or to help … … 1071 1098 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1072 1099 esac 1073 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 1074 # absolute. 1075 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 1076 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 1077 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 1078 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 1100 1101 # Do not use `cd foo && pwd` to compute absolute paths, because 1102 # the directories may not exist. 1103 case `pwd` in 1104 .) ac_abs_builddir="$ac_dir";; 1105 *) 1106 case "$ac_dir" in 1107 .) ac_abs_builddir=`pwd`;; 1108 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1109 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1110 esac;; 1111 esac 1112 case $ac_abs_builddir in 1113 .) ac_abs_top_builddir=${ac_top_builddir}.;; 1114 *) 1115 case ${ac_top_builddir}. in 1116 .) ac_abs_top_builddir=$ac_abs_builddir;; 1117 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1118 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1119 esac;; 1120 esac 1121 case $ac_abs_builddir in 1122 .) ac_abs_srcdir=$ac_srcdir;; 1123 *) 1124 case $ac_srcdir in 1125 .) ac_abs_srcdir=$ac_abs_builddir;; 1126 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1127 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1128 esac;; 1129 esac 1130 case $ac_abs_builddir in 1131 .) ac_abs_top_srcdir=$ac_top_srcdir;; 1132 *) 1133 case $ac_top_srcdir in 1134 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1135 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1136 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1137 esac;; 1138 esac 1079 1139 1080 1140 cd $ac_dir … … 1087 1147 $SHELL $ac_srcdir/configure --help=recursive 1088 1148 elif test -f $ac_srcdir/configure.ac || 1089 test -f $ac_srcdir/configure.in; then1149 test -f $ac_srcdir/configure.in; then 1090 1150 echo 1091 1151 $ac_configure --help … … 1101 1161 cat <<\_ACEOF 1102 1162 1103 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 1104 Free Software Foundation, Inc. 1163 Copyright (C) 2003 Free Software Foundation, Inc. 1105 1164 This configure script is free software; the Free Software Foundation 1106 1165 gives unlimited permission to copy, distribute and modify it. … … 1114 1173 1115 1174 It was created by $as_me, which was 1116 generated by GNU Autoconf 2.5 7. Invocation command line was1175 generated by GNU Autoconf 2.59. Invocation command line was 1117 1176 1118 1177 $ $0 $@ … … 1191 1250 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1192 1251 if test $ac_must_keep_next = true; then 1193 ac_must_keep_next=false # Got value, back to normal.1252 ac_must_keep_next=false # Got value, back to normal. 1194 1253 else 1195 case $ac_arg in1196 *=* | --config-cache | -C | -disable-* | --disable-* \1197 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \1198 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \1199 | -with-* | --with-* | -without-* | --without-* | --x)1200 case "$ac_configure_args0 " in1201 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;1202 esac1203 ;;1204 -* ) ac_must_keep_next=true ;;1205 esac1254 case $ac_arg in 1255 *=* | --config-cache | -C | -disable-* | --disable-* \ 1256 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1257 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1258 | -with-* | --with-* | -without-* | --without-* | --x) 1259 case "$ac_configure_args0 " in 1260 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1261 esac 1262 ;; 1263 -* ) ac_must_keep_next=true ;; 1264 esac 1206 1265 fi 1207 1266 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" … … 1237 1296 *ac_space=\ *) 1238 1297 sed -n \ 1239 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;1240 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"1298 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1299 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1241 1300 ;; 1242 1301 *) 1243 1302 sed -n \ 1244 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"1303 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1245 1304 ;; 1246 1305 esac; … … 1271 1330 do 1272 1331 eval ac_val=$`echo $ac_var` 1273 echo "$ac_var='"'"'$ac_val'"'"'"1332 echo "$ac_var='"'"'$ac_val'"'"'" 1274 1333 done | sort 1275 1334 echo … … 1290 1349 echo "$as_me: exit $exit_status" 1291 1350 } >&5 1292 rm -f core core.**.core &&1351 rm -f core *.core && 1293 1352 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1294 1353 exit $exit_status … … 1370 1429 ac_cache_corrupted=false 1371 1430 for ac_var in `(set) 2>&1 | 1372 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do1431 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1373 1432 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1374 1433 eval ac_new_set=\$ac_env_${ac_var}_set … … 1387 1446 *) 1388 1447 if test "x$ac_old_val" != "x$ac_new_val"; then 1389 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&51448 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1390 1449 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1391 { echo "$as_me:$LINENO: former value: $ac_old_val" >&51450 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1392 1451 echo "$as_me: former value: $ac_old_val" >&2;} 1393 { echo "$as_me:$LINENO: current value: $ac_new_val" >&51452 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1394 1453 echo "$as_me: current value: $ac_new_val" >&2;} 1395 ac_cache_corrupted=:1454 ac_cache_corrupted=: 1396 1455 fi;; 1397 1456 esac … … 1442 1501 1443 1502 1444 # Add the stamp file to the list of files AC keeps track of,1445 # along with our hook.1446 1503 ac_config_headers="$ac_config_headers src/config.h" 1447 1504 1448 1449 1450 am__api_version="1.6" 1505 am__api_version="1.8" 1451 1506 ac_aux_dir= 1452 1507 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do … … 1485 1540 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 1486 1541 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1542 # OS/2's system install, which has a completely different semantic 1487 1543 # ./install, which can be erroneously created by make from ./install.sh. 1488 1544 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 … … 1501 1557 ./ | .// | /cC/* | \ 1502 1558 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1559 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1503 1560 /usr/ucb/* ) ;; 1504 1561 *) … … 1508 1565 for ac_prog in ginstall scoinst install; do 1509 1566 for ac_exec_ext in '' $ac_executable_extensions; do 1510 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then1511 if test $ac_prog = install &&1512 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then1513 # AIX install. It has an incompatible calling convention.1514 :1515 elif test $ac_prog = install &&1516 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then1517 # program-specific install script used by HP pwplus--don't use.1518 :1519 else1520 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"1521 break 31522 fi1523 fi1567 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1568 if test $ac_prog = install && 1569 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1570 # AIX install. It has an incompatible calling convention. 1571 : 1572 elif test $ac_prog = install && 1573 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1574 # program-specific install script used by HP pwplus--don't use. 1575 : 1576 else 1577 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1578 break 3 1579 fi 1580 fi 1524 1581 done 1525 1582 done … … 1609 1666 rm conftest.sed 1610 1667 1611 1612 1668 # expand $ac_aux_dir to an absolute path 1613 1669 am_aux_dir=`cd $ac_aux_dir && pwd` … … 1621 1677 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1622 1678 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1679 fi 1680 1681 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1682 # Keeping the `.' argument allows $(mkdir_p) to be used without 1683 # argument. Indeed, we sometimes output rules like 1684 # $(mkdir_p) $(somedir) 1685 # where $(somedir) is conditionally defined. 1686 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more 1687 # expensive solution, as it forces Make to start a sub-shell.) 1688 mkdir_p='mkdir -p -- .' 1689 else 1690 # On NextStep and OpenStep, the `mkdir' command does not 1691 # recognize any option. It will interpret all options as 1692 # directories to create, and then abort because `.' already 1693 # exists. 1694 for d in ./-p ./--version; 1695 do 1696 test -d $d && rmdir $d 1697 done 1698 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1699 if test -f "$ac_aux_dir/mkinstalldirs"; then 1700 mkdir_p='$(mkinstalldirs)' 1701 else 1702 mkdir_p='$(install_sh) -d' 1703 fi 1623 1704 fi 1624 1705 … … 1665 1746 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1666 1747 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1667 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y, ./+-,__p_,'`1748 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1668 1749 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1669 1750 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 1692 1773 fi 1693 1774 1694 # test to see if srcdir already configured 1775 rm -rf .tst 2>/dev/null 1776 mkdir .tst 2>/dev/null 1777 if test -d .tst; then 1778 am__leading_dot=. 1779 else 1780 am__leading_dot=_ 1781 fi 1782 rmdir .tst 2>/dev/null 1783 1784 # test to see if srcdir already configured 1695 1785 if test "`cd $srcdir && pwd`" != "`pwd`" && 1696 1786 test -f $srcdir/config.status; then … … 1699 1789 { (exit 1); exit 1; }; } 1700 1790 fi 1791 1792 # test whether we have cygpath 1793 if test -z "$CYGPATH_W"; then 1794 if (cygpath --version) >/dev/null 2>/dev/null; then 1795 CYGPATH_W='cygpath -w' 1796 else 1797 CYGPATH_W=echo 1798 fi 1799 fi 1800 1701 1801 1702 1802 # Define the identity of the package. … … 2171 2271 2172 2272 cat >conftest.$ac_ext <<_ACEOF 2173 #line $LINENO "configure"2174 2273 /* confdefs.h. */ 2175 2274 _ACEOF … … 2191 2290 # It will help us diagnose broken compilers, and finding out an intuition 2192 2291 # of exeext. 2193 echo "$as_me:$LINENO: checking for C compiler default output " >&52194 echo $ECHO_N "checking for C compiler default output ... $ECHO_C" >&62292 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2293 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2195 2294 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2196 2295 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 … … 2212 2311 case $ac_file in 2213 2312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2214 ;;2313 ;; 2215 2314 conftest.$ac_ext ) 2216 # This is the source file.2217 ;;2315 # This is the source file. 2316 ;; 2218 2317 [ab].out ) 2219 # We found the default executable, but exeext='' is most2220 # certainly right.2221 break;;2318 # We found the default executable, but exeext='' is most 2319 # certainly right. 2320 break;; 2222 2321 *.* ) 2223 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`2224 # FIXME: I believe we export ac_cv_exeext for Libtool,2225 # but it would be cool to find out if it's true. Does anybody2226 # maintain Libtool? --akim.2227 export ac_cv_exeext2228 break;;2322 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2323 # FIXME: I believe we export ac_cv_exeext for Libtool, 2324 # but it would be cool to find out if it's true. Does anybody 2325 # maintain Libtool? --akim. 2326 export ac_cv_exeext 2327 break;; 2229 2328 * ) 2230 break;;2329 break;; 2231 2330 esac 2232 2331 done … … 2302 2401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2303 2402 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2304 export ac_cv_exeext2305 break;;2403 export ac_cv_exeext 2404 break;; 2306 2405 * ) break;; 2307 2406 esac … … 2328 2427 else 2329 2428 cat >conftest.$ac_ext <<_ACEOF 2330 #line $LINENO "configure"2331 2429 /* confdefs.h. */ 2332 2430 _ACEOF … … 2379 2477 else 2380 2478 cat >conftest.$ac_ext <<_ACEOF 2381 #line $LINENO "configure"2382 2479 /* confdefs.h. */ 2383 2480 _ACEOF … … 2399 2496 rm -f conftest.$ac_objext 2400 2497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2401 (eval $ac_compile) 2>&5 2498 (eval $ac_compile) 2>conftest.er1 2499 ac_status=$? 2500 grep -v '^ *+' conftest.er1 >conftest.err 2501 rm -f conftest.er1 2502 cat conftest.err >&5 2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2504 (exit $ac_status); } && 2505 { ac_try='test -z "$ac_c_werror_flag" 2506 || test ! -s conftest.err' 2507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2508 (eval $ac_try) 2>&5 2402 2509 ac_status=$? 2403 2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2404 (exit $ac_status); } &&2405 { ac_try='test -s conftest.$ac_objext'2511 (exit $ac_status); }; } && 2512 { ac_try='test -s conftest.$ac_objext' 2406 2513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2407 2514 (eval $ac_try) 2>&5 … … 2416 2523 ac_compiler_gnu=no 2417 2524 fi 2418 rm -f conftest. $ac_objext conftest.$ac_ext2525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2419 2526 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2420 2527 … … 2432 2539 else 2433 2540 cat >conftest.$ac_ext <<_ACEOF 2434 #line $LINENO "configure"2435 2541 /* confdefs.h. */ 2436 2542 _ACEOF … … 2449 2555 rm -f conftest.$ac_objext 2450 2556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2451 (eval $ac_compile) 2>&5 2557 (eval $ac_compile) 2>conftest.er1 2558 ac_status=$? 2559 grep -v '^ *+' conftest.er1 >conftest.err 2560 rm -f conftest.er1 2561 cat conftest.err >&5 2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2563 (exit $ac_status); } && 2564 { ac_try='test -z "$ac_c_werror_flag" 2565 || test ! -s conftest.err' 2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2567 (eval $ac_try) 2>&5 2452 2568 ac_status=$? 2453 2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2454 (exit $ac_status); } &&2455 { ac_try='test -s conftest.$ac_objext'2570 (exit $ac_status); }; } && 2571 { ac_try='test -s conftest.$ac_objext' 2456 2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2457 2573 (eval $ac_try) 2>&5 … … 2466 2582 ac_cv_prog_cc_g=no 2467 2583 fi 2468 rm -f conftest. $ac_objext conftest.$ac_ext2584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2469 2585 fi 2470 2586 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 … … 2493 2609 ac_save_CC=$CC 2494 2610 cat >conftest.$ac_ext <<_ACEOF 2495 #line $LINENO "configure"2496 2611 /* confdefs.h. */ 2497 2612 _ACEOF … … 2521 2636 return s; 2522 2637 } 2638 2639 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2640 function prototypes and stuff, but not '\xHH' hex character constants. 2641 These don't provoke an error unfortunately, instead are silently treated 2642 as 'x'. The following induces an error, until -std1 is added to get 2643 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2644 array size at least. It's necessary to write '\x00'==0 to get something 2645 that's true only with -std1. */ 2646 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2647 2523 2648 int test (int i, double x); 2524 2649 struct s1 {int (*f) (int a);}; … … 2547 2672 rm -f conftest.$ac_objext 2548 2673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2549 (eval $ac_compile) 2>&5 2674 (eval $ac_compile) 2>conftest.er1 2675 ac_status=$? 2676 grep -v '^ *+' conftest.er1 >conftest.err 2677 rm -f conftest.er1 2678 cat conftest.err >&5 2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2680 (exit $ac_status); } && 2681 { ac_try='test -z "$ac_c_werror_flag" 2682 || test ! -s conftest.err' 2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2684 (eval $ac_try) 2>&5 2550 2685 ac_status=$? 2551 2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2552 (exit $ac_status); } &&2553 { ac_try='test -s conftest.$ac_objext'2687 (exit $ac_status); }; } && 2688 { ac_try='test -s conftest.$ac_objext' 2554 2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2555 2690 (eval $ac_try) 2>&5 … … 2564 2699 2565 2700 fi 2566 rm -f conftest. $ac_objext2701 rm -f conftest.err conftest.$ac_objext 2567 2702 done 2568 2703 rm -f conftest.$ac_ext conftest.$ac_objext … … 2592 2727 rm -f conftest.$ac_objext 2593 2728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2594 (eval $ac_compile) 2>&5 2729 (eval $ac_compile) 2>conftest.er1 2730 ac_status=$? 2731 grep -v '^ *+' conftest.er1 >conftest.err 2732 rm -f conftest.er1 2733 cat conftest.err >&5 2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2735 (exit $ac_status); } && 2736 { ac_try='test -z "$ac_c_werror_flag" 2737 || test ! -s conftest.err' 2738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2739 (eval $ac_try) 2>&5 2595 2740 ac_status=$? 2596 2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2597 (exit $ac_status); } &&2598 { ac_try='test -s conftest.$ac_objext'2742 (exit $ac_status); }; } && 2743 { ac_try='test -s conftest.$ac_objext' 2599 2744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2600 2745 (eval $ac_try) 2>&5 … … 2603 2748 (exit $ac_status); }; }; then 2604 2749 for ac_declaration in \ 2605 ''\ 2606 '#include <stdlib.h>' \ 2750 '' \ 2607 2751 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2608 2752 'extern "C" void std::exit (int); using std::exit;' \ … … 2612 2756 do 2613 2757 cat >conftest.$ac_ext <<_ACEOF 2614 #line $LINENO "configure"2615 2758 /* confdefs.h. */ 2616 2759 _ACEOF … … 2618 2761 cat >>conftest.$ac_ext <<_ACEOF 2619 2762 /* end confdefs.h. */ 2763 $ac_declaration 2620 2764 #include <stdlib.h> 2621 $ac_declaration2622 2765 int 2623 2766 main () … … 2630 2773 rm -f conftest.$ac_objext 2631 2774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2632 (eval $ac_compile) 2>&5 2775 (eval $ac_compile) 2>conftest.er1 2776 ac_status=$? 2777 grep -v '^ *+' conftest.er1 >conftest.err 2778 rm -f conftest.er1 2779 cat conftest.err >&5 2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2781 (exit $ac_status); } && 2782 { ac_try='test -z "$ac_c_werror_flag" 2783 || test ! -s conftest.err' 2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2785 (eval $ac_try) 2>&5 2633 2786 ac_status=$? 2634 2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2635 (exit $ac_status); } &&2636 { ac_try='test -s conftest.$ac_objext'2788 (exit $ac_status); }; } && 2789 { ac_try='test -s conftest.$ac_objext' 2637 2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2638 2791 (eval $ac_try) 2>&5 … … 2647 2800 continue 2648 2801 fi 2649 rm -f conftest. $ac_objext conftest.$ac_ext2802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2650 2803 cat >conftest.$ac_ext <<_ACEOF 2651 #line $LINENO "configure"2652 2804 /* confdefs.h. */ 2653 2805 _ACEOF … … 2666 2818 rm -f conftest.$ac_objext 2667 2819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2668 (eval $ac_compile) 2>&5 2820 (eval $ac_compile) 2>conftest.er1 2821 ac_status=$? 2822 grep -v '^ *+' conftest.er1 >conftest.err 2823 rm -f conftest.er1 2824 cat conftest.err >&5 2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2826 (exit $ac_status); } && 2827 { ac_try='test -z "$ac_c_werror_flag" 2828 || test ! -s conftest.err' 2829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2830 (eval $ac_try) 2>&5 2669 2831 ac_status=$? 2670 2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2671 (exit $ac_status); } &&2672 { ac_try='test -s conftest.$ac_objext'2833 (exit $ac_status); }; } && 2834 { ac_try='test -s conftest.$ac_objext' 2673 2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2674 2836 (eval $ac_try) 2>&5 … … 2682 2844 2683 2845 fi 2684 rm -f conftest. $ac_objext conftest.$ac_ext2846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2685 2847 done 2686 2848 rm -f conftest* … … 2696 2858 2697 2859 fi 2698 rm -f conftest. $ac_objext conftest.$ac_ext2860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2699 2861 ac_ext=c 2700 2862 ac_cpp='$CPP $CPPFLAGS' … … 2702 2864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2703 2865 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2704 rm -f .deps 2>/dev/null 2705 mkdir .deps 2>/dev/null 2706 if test -d .deps; then 2707 DEPDIR=.deps 2708 else 2709 # MS-DOS does not allow filenames that begin with a dot. 2710 DEPDIR=_deps 2711 fi 2712 rmdir .deps 2>/dev/null 2713 2866 DEPDIR="${am__leading_dot}deps" 2714 2867 2715 2868 ac_config_commands="$ac_config_commands depfiles" … … 2718 2871 am_make=${MAKE-make} 2719 2872 cat > confinc << 'END' 2720 doit:2873 am__doit: 2721 2874 @echo done 2875 .PHONY: am__doit 2722 2876 END 2723 2877 # If we don't find an include directive, just comment out the code. … … 2734 2888 # be invoked under some other name (usually "gmake"), in which 2735 2889 # case it prints its new name instead of `make'. 2736 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then2890 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2737 2891 am__include=include 2738 2892 am__quote= … … 2794 2948 cp "$am_depcomp" conftest.dir 2795 2949 cd conftest.dir 2950 # We will build objects and dependencies in a subdirectory because 2951 # it helps to detect inapplicable dependency modes. For instance 2952 # both Tru64's cc and ICC support -MD to output dependencies as a 2953 # side effect of compilation, but ICC will put the dependencies in 2954 # the current directory while Tru64 will put them in the object 2955 # directory. 2956 mkdir sub 2796 2957 2797 2958 am_cv_CC_dependencies_compiler_type=none … … 2800 2961 fi 2801 2962 for depmode in $am_compiler_list; do 2963 # Setup a source with many dependencies, because some compilers 2964 # like to wrap large dependency lists on column 80 (with \), and 2965 # we should not choose a depcomp mode which is confused by this. 2966 # 2802 2967 # We need to recreate these files for each test, as the compiler may 2803 2968 # overwrite some of them when testing with obscure command lines. 2804 2969 # This happens at least with the AIX C compiler. 2805 echo '#include "conftest.h"' > conftest.c 2806 echo 'int i;' > conftest.h 2807 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 2970 : > sub/conftest.c 2971 for i in 1 2 3 4 5 6; do 2972 echo '#include "conftst'$i'.h"' >> sub/conftest.c 2973 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 2974 # Solaris 8's {/usr,}/bin/sh. 2975 touch sub/conftst$i.h 2976 done 2977 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 2808 2978 2809 2979 case $depmode in … … 2823 2993 # handle `-M -o', and we need to detect this. 2824 2994 if depmode=$depmode \ 2825 source=conftest.c object=conftest.o \ 2826 depfile=conftest.Po tmpdepfile=conftest.TPo \ 2827 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 2828 grep conftest.h conftest.Po > /dev/null 2>&1 && 2995 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 2996 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 2997 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 2998 >/dev/null 2>conftest.err && 2999 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3000 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 2829 3001 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 2830 am_cv_CC_dependencies_compiler_type=$depmode 2831 break 3002 # icc doesn't choke on unknown options, it will just issue warnings 3003 # (even with -Werror). So we grep stderr for any message 3004 # that says an option was ignored. 3005 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 3006 am_cv_CC_dependencies_compiler_type=$depmode 3007 break 3008 fi 2832 3009 fi 2833 3010 done … … 2843 3020 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 2844 3021 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3022 3023 3024 3025 if 3026 test "x$enable_dependency_tracking" != xno \ 3027 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3028 am__fastdepCC_TRUE= 3029 am__fastdepCC_FALSE='#' 3030 else 3031 am__fastdepCC_TRUE='#' 3032 am__fastdepCC_FALSE= 3033 fi 2845 3034 2846 3035 … … 2861 3050 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2862 3051 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3052 # OS/2's system install, which has a completely different semantic 2863 3053 # ./install, which can be erroneously created by make from ./install.sh. 2864 3054 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 … … 2877 3067 ./ | .// | /cC/* | \ 2878 3068 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3069 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2879 3070 /usr/ucb/* ) ;; 2880 3071 *) … … 2884 3075 for ac_prog in ginstall scoinst install; do 2885 3076 for ac_exec_ext in '' $ac_executable_extensions; do 2886 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then2887 if test $ac_prog = install &&2888 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then2889 # AIX install. It has an incompatible calling convention.2890 :2891 elif test $ac_prog = install &&2892 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then2893 # program-specific install script used by HP pwplus--don't use.2894 :2895 else2896 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"2897 break 32898 fi2899 fi3077 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3078 if test $ac_prog = install && 3079 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3080 # AIX install. It has an incompatible calling convention. 3081 : 3082 elif test $ac_prog = install && 3083 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3084 # program-specific install script used by HP pwplus--don't use. 3085 : 3086 else 3087 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3088 break 3 3089 fi 3090 fi 2900 3091 done 2901 3092 done … … 2931 3122 enableval="$enable_shared" 2932 3123 p=${PACKAGE-default} 2933 case $enableval in 2934 yes) enable_shared=yes ;; 2935 no) enable_shared=no ;; 2936 *) 2937 enable_shared=no 2938 # Look at the argument we got. We use all the common list separators. 2939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 2940 for pkg in $enableval; do 2941 if test "X$pkg" = "X$p"; then 2942 enable_shared=yes 2943 fi 2944 done 2945 IFS="$ac_save_ifs" 2946 ;; 2947 esac 3124 case $enableval in 3125 yes) enable_shared=yes ;; 3126 no) enable_shared=no ;; 3127 *) 3128 enable_shared=no 3129 # Look at the argument we got. We use all the common list separators. 3130 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3131 for pkg in $enableval; do 3132 IFS="$lt_save_ifs" 3133 if test "X$pkg" = "X$p"; then 3134 enable_shared=yes 3135 fi 3136 done 3137 IFS="$lt_save_ifs" 3138 ;; 3139 esac 2948 3140 else 2949 3141 enable_shared=yes 2950 3142 fi; 3143 2951 3144 # Check whether --enable-static or --disable-static was given. 2952 3145 if test "${enable_static+set}" = set; then 2953 3146 enableval="$enable_static" 2954 3147 p=${PACKAGE-default} 2955 case $enableval in 2956 yes) enable_static=yes ;; 2957 no) enable_static=no ;; 2958 *) 2959 enable_static=no 2960 # Look at the argument we got. We use all the common list separators. 2961 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 2962 for pkg in $enableval; do 2963 if test "X$pkg" = "X$p"; then 2964 enable_static=yes 2965 fi 2966 done 2967 IFS="$ac_save_ifs" 2968 ;; 2969 esac 3148 case $enableval in 3149 yes) enable_static=yes ;; 3150 no) enable_static=no ;; 3151 *) 3152 enable_static=no 3153 # Look at the argument we got. We use all the common list separators. 3154 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3155 for pkg in $enableval; do 3156 IFS="$lt_save_ifs" 3157 if test "X$pkg" = "X$p"; then 3158 enable_static=yes 3159 fi 3160 done 3161 IFS="$lt_save_ifs" 3162 ;; 3163 esac 2970 3164 else 2971 3165 enable_static=yes 2972 3166 fi; 3167 2973 3168 # Check whether --enable-fast-install or --disable-fast-install was given. 2974 3169 if test "${enable_fast_install+set}" = set; then 2975 3170 enableval="$enable_fast_install" 2976 3171 p=${PACKAGE-default} 2977 case $enableval in 2978 yes) enable_fast_install=yes ;; 2979 no) enable_fast_install=no ;; 2980 *) 2981 enable_fast_install=no 2982 # Look at the argument we got. We use all the common list separators. 2983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 2984 for pkg in $enableval; do 2985 if test "X$pkg" = "X$p"; then 2986 enable_fast_install=yes 2987 fi 2988 done 2989 IFS="$ac_save_ifs" 2990 ;; 2991 esac 3172 case $enableval in 3173 yes) enable_fast_install=yes ;; 3174 no) enable_fast_install=no ;; 3175 *) 3176 enable_fast_install=no 3177 # Look at the argument we got. We use all the common list separators. 3178 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3179 for pkg in $enableval; do 3180 IFS="$lt_save_ifs" 3181 if test "X$pkg" = "X$p"; then 3182 enable_fast_install=yes 3183 fi 3184 done 3185 IFS="$lt_save_ifs" 3186 ;; 3187 esac 2992 3188 else 2993 3189 enable_fast_install=yes 2994 3190 fi; 3191 2995 3192 # Make sure we can run config.sub. 2996 3193 $ac_config_sub sun4 >/dev/null 2>&1 || … … 3047 3244 3048 3245 3049 # Find the correct PATH separator. Usually this is `:', but 3050 # DJGPP uses `;' like DOS. 3051 if test "X${PATH_SEPARATOR+set}" != Xset; then 3052 UNAME=${UNAME-`uname 2>/dev/null`} 3053 case X$UNAME in 3054 *-DOS) lt_cv_sys_path_separator=';' ;; 3055 *) lt_cv_sys_path_separator=':' ;; 3056 esac 3057 PATH_SEPARATOR=$lt_cv_sys_path_separator 3058 fi 3246 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3247 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3248 if test "${lt_cv_path_SED+set}" = set; then 3249 echo $ECHO_N "(cached) $ECHO_C" >&6 3250 else 3251 # Loop through the user's path and test for sed and gsed. 3252 # Then use that list of sed's as ones to test for truncation. 3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3254 for as_dir in $PATH 3255 do 3256 IFS=$as_save_IFS 3257 test -z "$as_dir" && as_dir=. 3258 for lt_ac_prog in sed gsed; do 3259 for ac_exec_ext in '' $ac_executable_extensions; do 3260 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3261 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3262 fi 3263 done 3264 done 3265 done 3266 lt_ac_max=0 3267 lt_ac_count=0 3268 # Add /usr/xpg4/bin/sed as it is typically found on Solaris 3269 # along with /bin/sed that truncates output. 3270 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3271 test ! -f $lt_ac_sed && break 3272 cat /dev/null > conftest.in 3273 lt_ac_count=0 3274 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3275 # Check for GNU sed and select it if it is found. 3276 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3277 lt_cv_path_SED=$lt_ac_sed 3278 break 3279 fi 3280 while true; do 3281 cat conftest.in conftest.in >conftest.tmp 3282 mv conftest.tmp conftest.in 3283 cp conftest.in conftest.nl 3284 echo >>conftest.nl 3285 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3286 cmp -s conftest.out conftest.nl || break 3287 # 10000 chars as input seems more than enough 3288 test $lt_ac_count -gt 10 && break 3289 lt_ac_count=`expr $lt_ac_count + 1` 3290 if test $lt_ac_count -gt $lt_ac_max; then 3291 lt_ac_max=$lt_ac_count 3292 lt_cv_path_SED=$lt_ac_sed 3293 fi 3294 done 3295 done 3296 SED=$lt_cv_path_SED 3297 3298 fi 3299 3300 echo "$as_me:$LINENO: result: $SED" >&5 3301 echo "${ECHO_T}$SED" >&6 3302 3303 echo "$as_me:$LINENO: checking for egrep" >&5 3304 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3305 if test "${ac_cv_prog_egrep+set}" = set; then 3306 echo $ECHO_N "(cached) $ECHO_C" >&6 3307 else 3308 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3309 then ac_cv_prog_egrep='grep -E' 3310 else ac_cv_prog_egrep='egrep' 3311 fi 3312 fi 3313 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3314 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3315 EGREP=$ac_cv_prog_egrep 3316 3059 3317 3060 3318 … … 3069 3327 if test "$GCC" = yes; then 3070 3328 # Check if gcc -print-prog-name=ld gives a path. 3071 echo "$as_me:$LINENO: checking for ld used by GCC" >&53072 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&63329 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3330 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3073 3331 case $host in 3074 3332 *-*-mingw*) … … 3080 3338 case $ac_prog in 3081 3339 # Accept absolute paths. 3082 [\\/]* | [A-Za-z]:[\\/]*)3340 [\\/]* | ?:[\\/]*) 3083 3341 re_direlt='/[^/][^/]*/\.\./' 3084 # Canonicalize the path of ld3085 ac_prog=`echo $ac_prog| sed's%\\\\%/%g'`3342 # Canonicalize the pathname of ld 3343 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3086 3344 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3087 ac_prog=`echo $ac_prog| sed"s%$re_direlt%/%"`3345 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3088 3346 done 3089 3347 test -z "$LD" && LD="$ac_prog" … … 3109 3367 else 3110 3368 if test -z "$LD"; then 3111 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR3369 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3112 3370 for ac_dir in $PATH; do 3371 IFS="$lt_save_ifs" 3113 3372 test -z "$ac_dir" && ac_dir=. 3114 3373 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then … … 3117 3376 # but apparently some GNU ld's only accept -v. 3118 3377 # Break only if it was the GNU/non-GNU ld that we prefer. 3119 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 3378 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3379 *GNU* | *'with BFD'*) 3120 3380 test "$with_gnu_ld" != no && break 3121 else 3381 ;; 3382 *) 3122 3383 test "$with_gnu_ld" != yes && break 3123 fi 3384 ;; 3385 esac 3124 3386 fi 3125 3387 done 3126 IFS="$ ac_save_ifs"3388 IFS="$lt_save_ifs" 3127 3389 else 3128 3390 lt_cv_path_LD="$LD" # Let the user override the test with a path. … … 3147 3409 else 3148 3410 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3149 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 3411 case `$LD -v 2>&1 </dev/null` in 3412 *GNU* | *'with BFD'*) 3150 3413 lt_cv_prog_gnu_ld=yes 3151 else 3414 ;; 3415 *) 3152 3416 lt_cv_prog_gnu_ld=no 3153 fi 3417 ;; 3418 esac 3154 3419 fi 3155 3420 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 … … 3168 3433 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3169 3434 reload_flag=$lt_cv_ld_reload_flag 3170 test -n "$reload_flag" && reload_flag=" $reload_flag" 3435 case $reload_flag in 3436 "" | " "*) ;; 3437 *) reload_flag=" $reload_flag" ;; 3438 esac 3439 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3171 3440 3172 3441 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 … … 3179 3448 lt_cv_path_NM="$NM" 3180 3449 else 3181 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR3450 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3182 3451 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3452 IFS="$lt_save_ifs" 3183 3453 test -z "$ac_dir" && ac_dir=. 3184 tmp_nm= $ac_dir/${ac_tool_prefix}nm3185 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext; then3454 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 3455 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3186 3456 # Check to see if the nm accepts a BSD-compat flag. 3187 3457 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3188 3458 # nm: unknown option "B" ignored 3189 3459 # Tru64's nm complains that /dev/null is an invalid object file 3190 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then 3460 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3461 */dev/null* | *'Invalid file or object type'*) 3191 3462 lt_cv_path_NM="$tmp_nm -B" 3192 3463 break 3193 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 3194 lt_cv_path_NM="$tmp_nm -p" 3195 break 3196 else 3197 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3198 continue # so that we can try to find one that supports BSD flags 3199 fi 3464 ;; 3465 *) 3466 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3467 */dev/null*) 3468 lt_cv_path_NM="$tmp_nm -p" 3469 break 3470 ;; 3471 *) 3472 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3473 continue # so that we can try to find one that supports BSD flags 3474 ;; 3475 esac 3476 esac 3200 3477 fi 3201 3478 done 3202 IFS="$ ac_save_ifs"3479 IFS="$lt_save_ifs" 3203 3480 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3204 3481 fi 3205 3482 fi 3206 3483 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3484 echo "${ECHO_T}$lt_cv_path_NM" >&6 3207 3485 NM="$lt_cv_path_NM" 3208 echo "$as_me:$LINENO: result: $NM" >&53209 echo "${ECHO_T}$NM" >&63210 3211 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&53212 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&63213 if test "${lt_cv_path_SED+set}" = set; then3214 echo $ECHO_N "(cached) $ECHO_C" >&63215 else3216 # Loop through the user's path and test for sed and gsed.3217 # Then use that list of sed's as ones to test for truncation.3218 as_executable_p="test -f"3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR3220 for as_dir in $PATH3221 do3222 IFS=$as_save_IFS3223 test -z "$as_dir" && as_dir=.3224 for ac_prog in sed gsed; do3225 for ac_exec_ext in '' $ac_executable_extensions; do3226 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then3227 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"3228 fi3229 done3230 done3231 done3232 3233 # Create a temporary directory, and hook for its removal unless debugging.3234 $debug ||3235 {3236 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 03237 trap '{ (exit 1); exit 1; }' 1 2 13 153238 }3239 3240 # Create a (secure) tmp directory for tmp files.3241 : ${TMPDIR=/tmp}3242 {3243 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&3244 test -n "$tmp" && test -d "$tmp"3245 } ||3246 {3247 tmp=$TMPDIR/sed$$-$RANDOM3248 (umask 077 && mkdir $tmp)3249 } ||3250 {3251 echo "$me: cannot create a temporary directory in $TMPDIR" >&23252 { (exit 1); exit 1; }3253 }3254 _max=03255 _count=03256 # Add /usr/xpg4/bin/sed as it is typically found on Solaris3257 # along with /bin/sed that truncates output.3258 for _sed in $_sed_list /usr/xpg4/bin/sed; do3259 test ! -f ${_sed} && break3260 cat /dev/null > "$tmp/sed.in"3261 _count=03262 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"3263 # Check for GNU sed and select it if it is found.3264 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then3265 lt_cv_path_SED=${_sed}3266 break3267 fi3268 while true; do3269 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"3270 mv "$tmp/sed.tmp" "$tmp/sed.in"3271 cp "$tmp/sed.in" "$tmp/sed.nl"3272 echo >>"$tmp/sed.nl"3273 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break3274 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break3275 # 40000 chars as input seems more than enough3276 test $_count -gt 10 && break3277 _count=`expr $_count + 1`3278 if test $_count -gt $_max; then3279 _max=$_count3280 lt_cv_path_SED=$_sed3281 fi3282 done3283 done3284 rm -rf "$tmp"3285 3286 fi3287 3288 if test "X$SED" != "X"; then3289 lt_cv_path_SED=$SED3290 else3291 SED=$lt_cv_path_SED3292 fi3293 echo "$as_me:$LINENO: result: $SED" >&53294 echo "${ECHO_T}$SED" >&63295 3486 3296 3487 echo "$as_me:$LINENO: checking whether ln -s works" >&5 … … 3320 3511 # 'test_compile' -- check by making test program. 3321 3512 # 'file_magic [[regex]]' -- check by looking for files in library path 3322 # which responds to the $file_magic_cmd with a given e grepregex.3513 # which responds to the $file_magic_cmd with a given extended regex. 3323 3514 # If you have `file' or equivalent on your system and you're not sure 3324 3515 # whether `pass_all' will *always* work, you probably want this one. … … 3339 3530 ;; 3340 3531 3341 cygwin* | mingw* | pw32*) 3532 cygwin*) 3533 # func_win32_libid is a shell function defined in ltmain.sh 3534 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3535 lt_cv_file_magic_cmd='func_win32_libid' 3536 ;; 3537 3538 mingw* | pw32*) 3539 # Base MSYS/MinGW do not provide the 'file' command needed by 3540 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3342 3541 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3343 3542 lt_cv_file_magic_cmd='$OBJDUMP -f' … … 3345 3544 3346 3545 darwin* | rhapsody*) 3347 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 3348 lt_cv_file_magic_cmd='/usr/bin/file -L' 3349 case "$host_os" in 3350 rhapsody* | darwin1.[012]) 3351 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` 3352 ;; 3353 *) # Darwin 1.3 on 3354 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 3355 ;; 3356 esac 3546 lt_cv_deplibs_check_method=pass_all 3357 3547 ;; 3358 3548 3359 freebsd* )3549 freebsd* | kfreebsd*-gnu) 3360 3550 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3361 3551 case $host_cpu in … … 3377 3567 ;; 3378 3568 3379 hpux10.20*|hpux11*) 3380 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3569 hpux10.20* | hpux11*) 3381 3570 lt_cv_file_magic_cmd=/usr/bin/file 3382 lt_cv_file_magic_test_file=/usr/lib/libc.sl3383 ;;3384 3385 irix5* | irix6* | nonstopux*) 3386 case $host_os in3387 irix5* | nonstopux*)3388 # this will be overridden with pass_all, but let us keep it just in case3389 lt_cv_ deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"3571 case "$host_cpu" in 3572 ia64*) 3573 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3574 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3575 ;; 3576 hppa*64*) 3577 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' 3578 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3390 3579 ;; 3391 3580 *) 3392 case $LD in 3393 *-32|*"-32 ") libmagic=32-bit;; 3394 *-n32|*"-n32 ") libmagic=N32;; 3395 *-64|*"-64 ") libmagic=64-bit;; 3396 *) libmagic=never-match;; 3397 esac 3398 # this will be overridden with pass_all, but let us keep it just in case 3399 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 3581 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3582 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3400 3583 ;; 3401 3584 esac 3402 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 3585 ;; 3586 3587 irix5* | irix6* | nonstopux*) 3588 case $LD in 3589 *-32|*"-32 ") libmagic=32-bit;; 3590 *-n32|*"-n32 ") libmagic=N32;; 3591 *-64|*"-64 ") libmagic=64-bit;; 3592 *) libmagic=never-match;; 3593 esac 3403 3594 lt_cv_deplibs_check_method=pass_all 3404 3595 ;; 3405 3596 3406 3597 # This must be Linux ELF. 3407 linux -gnu*)3598 linux*) 3408 3599 case $host_cpu in 3409 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* |x86_64*)3600 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*) 3410 3601 lt_cv_deplibs_check_method=pass_all ;; 3411 3602 *) 3412 3603 # glibc up to 2.1.1 does not perform some relocations on ARM 3604 # this will be overridden with pass_all, but let us keep it just in case 3413 3605 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 3414 3606 esac 3415 3607 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 3608 lt_cv_deplibs_check_method=pass_all 3416 3609 ;; 3417 3610 3418 3611 netbsd*) 3419 3612 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3420 lt_cv_deplibs_check_method='match_pattern /lib[^/ \.]+\.so\.[0-9]+\.[0-9]+$'3613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3421 3614 else 3422 lt_cv_deplibs_check_method='match_pattern /lib[^/ \.]+\.so$'3615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3423 3616 fi 3424 3617 ;; … … 3428 3621 lt_cv_file_magic_cmd=/usr/bin/file 3429 3622 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3623 ;; 3624 3625 nto-qnx*) 3626 lt_cv_deplibs_check_method=unknown 3430 3627 ;; 3431 3628 … … 3441 3638 3442 3639 osf3* | osf4* | osf5*) 3443 # this will be overridden with pass_all, but let us keep it just in case3444 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'3445 lt_cv_file_magic_test_file=/shlib/libc.so3446 3640 lt_cv_deplibs_check_method=pass_all 3447 3641 ;; … … 3452 3646 3453 3647 solaris*) 3454 lt_cv_deplibs_check_method=pass_all3455 lt_cv_file_magic_test_file=/lib/libc.so3456 ;;3457 3458 sysv5uw[78]* | sysv4*uw2*)3459 3648 lt_cv_deplibs_check_method=pass_all 3460 3649 ;; … … 3483 3672 esac 3484 3673 ;; 3674 3675 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 3676 lt_cv_deplibs_check_method=pass_all 3677 ;; 3485 3678 esac 3486 3679 … … 3490 3683 file_magic_cmd=$lt_cv_file_magic_cmd 3491 3684 deplibs_check_method=$lt_cv_deplibs_check_method 3492 3493 3494 3495 3685 test -z "$deplibs_check_method" && deplibs_check_method=unknown 3686 3687 3688 3689 3690 # If no C compiler was specified, use CC. 3691 LTCC=${LTCC-"$CC"} 3692 3693 # Allow CC to be a program name with arguments. 3694 compiler=$CC 3695 3696 3697 # Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3698 if test "${enable_libtool_lock+set}" = set; then 3699 enableval="$enable_libtool_lock" 3700 3701 fi; 3702 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3703 3704 # Some flags need to be propagated to the compiler or linker for good 3705 # libtool support. 3706 case $host in 3707 ia64-*-hpux*) 3708 # Find out which ABI we are using. 3709 echo 'int i;' > conftest.$ac_ext 3710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3711 (eval $ac_compile) 2>&5 3712 ac_status=$? 3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3714 (exit $ac_status); }; then 3715 case `/usr/bin/file conftest.$ac_objext` in 3716 *ELF-32*) 3717 HPUX_IA64_MODE="32" 3718 ;; 3719 *ELF-64*) 3720 HPUX_IA64_MODE="64" 3721 ;; 3722 esac 3723 fi 3724 rm -rf conftest* 3725 ;; 3726 *-*-irix6*) 3727 # Find out which ABI we are using. 3728 echo '#line 3728 "configure"' > conftest.$ac_ext 3729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3730 (eval $ac_compile) 2>&5 3731 ac_status=$? 3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3733 (exit $ac_status); }; then 3734 if test "$lt_cv_prog_gnu_ld" = yes; then 3735 case `/usr/bin/file conftest.$ac_objext` in 3736 *32-bit*) 3737 LD="${LD-ld} -melf32bsmip" 3738 ;; 3739 *N32*) 3740 LD="${LD-ld} -melf32bmipn32" 3741 ;; 3742 *64-bit*) 3743 LD="${LD-ld} -melf64bmip" 3744 ;; 3745 esac 3746 else 3747 case `/usr/bin/file conftest.$ac_objext` in 3748 *32-bit*) 3749 LD="${LD-ld} -32" 3750 ;; 3751 *N32*) 3752 LD="${LD-ld} -n32" 3753 ;; 3754 *64-bit*) 3755 LD="${LD-ld} -64" 3756 ;; 3757 esac 3758 fi 3759 fi 3760 rm -rf conftest* 3761 ;; 3762 3763 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 3764 # Find out which ABI we are using. 3765 echo 'int i;' > conftest.$ac_ext 3766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3767 (eval $ac_compile) 2>&5 3768 ac_status=$? 3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3770 (exit $ac_status); }; then 3771 case "`/usr/bin/file conftest.o`" in 3772 *32-bit*) 3773 case $host in 3774 x86_64-*linux*) 3775 LD="${LD-ld} -m elf_i386" 3776 ;; 3777 ppc64-*linux*|powerpc64-*linux*) 3778 LD="${LD-ld} -m elf32ppclinux" 3779 ;; 3780 s390x-*linux*) 3781 LD="${LD-ld} -m elf_s390" 3782 ;; 3783 sparc64-*linux*) 3784 LD="${LD-ld} -m elf32_sparc" 3785 ;; 3786 esac 3787 ;; 3788 *64-bit*) 3789 case $host in 3790 x86_64-*linux*) 3791 LD="${LD-ld} -m elf_x86_64" 3792 ;; 3793 ppc*-*linux*|powerpc*-*linux*) 3794 LD="${LD-ld} -m elf64ppc" 3795 ;; 3796 s390*-*linux*) 3797 LD="${LD-ld} -m elf64_s390" 3798 ;; 3799 sparc*-*linux*) 3800 LD="${LD-ld} -m elf64_sparc" 3801 ;; 3802 esac 3803 ;; 3804 esac 3805 fi 3806 rm -rf conftest* 3807 ;; 3808 3809 *-*-sco3.2v5*) 3810 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3811 SAVE_CFLAGS="$CFLAGS" 3812 CFLAGS="$CFLAGS -belf" 3813 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 3814 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3815 if test "${lt_cv_cc_needs_belf+set}" = set; then 3816 echo $ECHO_N "(cached) $ECHO_C" >&6 3817 else 3818 ac_ext=c 3819 ac_cpp='$CPP $CPPFLAGS' 3820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3822 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3823 3824 cat >conftest.$ac_ext <<_ACEOF 3825 /* confdefs.h. */ 3826 _ACEOF 3827 cat confdefs.h >>conftest.$ac_ext 3828 cat >>conftest.$ac_ext <<_ACEOF 3829 /* end confdefs.h. */ 3830 3831 int 3832 main () 3833 { 3834 3835 ; 3836 return 0; 3837 } 3838 _ACEOF 3839 rm -f conftest.$ac_objext conftest$ac_exeext 3840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3841 (eval $ac_link) 2>conftest.er1 3842 ac_status=$? 3843 grep -v '^ *+' conftest.er1 >conftest.err 3844 rm -f conftest.er1 3845 cat conftest.err >&5 3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3847 (exit $ac_status); } && 3848 { ac_try='test -z "$ac_c_werror_flag" 3849 || test ! -s conftest.err' 3850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3851 (eval $ac_try) 2>&5 3852 ac_status=$? 3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3854 (exit $ac_status); }; } && 3855 { ac_try='test -s conftest$ac_exeext' 3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3857 (eval $ac_try) 2>&5 3858 ac_status=$? 3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3860 (exit $ac_status); }; }; then 3861 lt_cv_cc_needs_belf=yes 3862 else 3863 echo "$as_me: failed program was:" >&5 3864 sed 's/^/| /' conftest.$ac_ext >&5 3865 3866 lt_cv_cc_needs_belf=no 3867 fi 3868 rm -f conftest.err conftest.$ac_objext \ 3869 conftest$ac_exeext conftest.$ac_ext 3870 ac_ext=c 3871 ac_cpp='$CPP $CPPFLAGS' 3872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3874 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3875 3876 fi 3877 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 3878 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3879 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3880 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3881 CFLAGS="$SAVE_CFLAGS" 3882 fi 3883 ;; 3884 3885 esac 3886 3887 need_locks="$enable_libtool_lock" 3888 3889 3890 ac_ext=c 3891 ac_cpp='$CPP $CPPFLAGS' 3892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3894 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3895 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3896 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3897 # On Suns, sometimes $CPP names a directory. 3898 if test -n "$CPP" && test -d "$CPP"; then 3899 CPP= 3900 fi 3901 if test -z "$CPP"; then 3902 if test "${ac_cv_prog_CPP+set}" = set; then 3903 echo $ECHO_N "(cached) $ECHO_C" >&6 3904 else 3905 # Double quotes because CPP needs to be expanded 3906 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3907 do 3908 ac_preproc_ok=false 3909 for ac_c_preproc_warn_flag in '' yes 3910 do 3911 # Use a header file that comes with gcc, so configuring glibc 3912 # with a fresh cross-compiler works. 3913 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3914 # <limits.h> exists even on freestanding compilers. 3915 # On the NeXT, cc -E runs the code through the compiler's parser, 3916 # not just through cpp. "Syntax error" is here to catch this case. 3917 cat >conftest.$ac_ext <<_ACEOF 3918 /* confdefs.h. */ 3919 _ACEOF 3920 cat confdefs.h >>conftest.$ac_ext 3921 cat >>conftest.$ac_ext <<_ACEOF 3922 /* end confdefs.h. */ 3923 #ifdef __STDC__ 3924 # include <limits.h> 3925 #else 3926 # include <assert.h> 3927 #endif 3928 Syntax error 3929 _ACEOF 3930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3932 ac_status=$? 3933 grep -v '^ *+' conftest.er1 >conftest.err 3934 rm -f conftest.er1 3935 cat conftest.err >&5 3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3937 (exit $ac_status); } >/dev/null; then 3938 if test -s conftest.err; then 3939 ac_cpp_err=$ac_c_preproc_warn_flag 3940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3941 else 3942 ac_cpp_err= 3943 fi 3944 else 3945 ac_cpp_err=yes 3946 fi 3947 if test -z "$ac_cpp_err"; then 3948 : 3949 else 3950 echo "$as_me: failed program was:" >&5 3951 sed 's/^/| /' conftest.$ac_ext >&5 3952 3953 # Broken: fails on valid input. 3954 continue 3955 fi 3956 rm -f conftest.err conftest.$ac_ext 3957 3958 # OK, works on sane cases. Now check whether non-existent headers 3959 # can be detected and how. 3960 cat >conftest.$ac_ext <<_ACEOF 3961 /* confdefs.h. */ 3962 _ACEOF 3963 cat confdefs.h >>conftest.$ac_ext 3964 cat >>conftest.$ac_ext <<_ACEOF 3965 /* end confdefs.h. */ 3966 #include <ac_nonexistent.h> 3967 _ACEOF 3968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3970 ac_status=$? 3971 grep -v '^ *+' conftest.er1 >conftest.err 3972 rm -f conftest.er1 3973 cat conftest.err >&5 3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3975 (exit $ac_status); } >/dev/null; then 3976 if test -s conftest.err; then 3977 ac_cpp_err=$ac_c_preproc_warn_flag 3978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3979 else 3980 ac_cpp_err= 3981 fi 3982 else 3983 ac_cpp_err=yes 3984 fi 3985 if test -z "$ac_cpp_err"; then 3986 # Broken: success on invalid input. 3987 continue 3988 else 3989 echo "$as_me: failed program was:" >&5 3990 sed 's/^/| /' conftest.$ac_ext >&5 3991 3992 # Passes both tests. 3993 ac_preproc_ok=: 3994 break 3995 fi 3996 rm -f conftest.err conftest.$ac_ext 3997 3998 done 3999 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4000 rm -f conftest.err conftest.$ac_ext 4001 if $ac_preproc_ok; then 4002 break 4003 fi 4004 4005 done 4006 ac_cv_prog_CPP=$CPP 4007 4008 fi 4009 CPP=$ac_cv_prog_CPP 4010 else 4011 ac_cv_prog_CPP=$CPP 4012 fi 4013 echo "$as_me:$LINENO: result: $CPP" >&5 4014 echo "${ECHO_T}$CPP" >&6 4015 ac_preproc_ok=false 4016 for ac_c_preproc_warn_flag in '' yes 4017 do 4018 # Use a header file that comes with gcc, so configuring glibc 4019 # with a fresh cross-compiler works. 4020 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4021 # <limits.h> exists even on freestanding compilers. 4022 # On the NeXT, cc -E runs the code through the compiler's parser, 4023 # not just through cpp. "Syntax error" is here to catch this case. 4024 cat >conftest.$ac_ext <<_ACEOF 4025 /* confdefs.h. */ 4026 _ACEOF 4027 cat confdefs.h >>conftest.$ac_ext 4028 cat >>conftest.$ac_ext <<_ACEOF 4029 /* end confdefs.h. */ 4030 #ifdef __STDC__ 4031 # include <limits.h> 4032 #else 4033 # include <assert.h> 4034 #endif 4035 Syntax error 4036 _ACEOF 4037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4039 ac_status=$? 4040 grep -v '^ *+' conftest.er1 >conftest.err 4041 rm -f conftest.er1 4042 cat conftest.err >&5 4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4044 (exit $ac_status); } >/dev/null; then 4045 if test -s conftest.err; then 4046 ac_cpp_err=$ac_c_preproc_warn_flag 4047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4048 else 4049 ac_cpp_err= 4050 fi 4051 else 4052 ac_cpp_err=yes 4053 fi 4054 if test -z "$ac_cpp_err"; then 4055 : 4056 else 4057 echo "$as_me: failed program was:" >&5 4058 sed 's/^/| /' conftest.$ac_ext >&5 4059 4060 # Broken: fails on valid input. 4061 continue 4062 fi 4063 rm -f conftest.err conftest.$ac_ext 4064 4065 # OK, works on sane cases. Now check whether non-existent headers 4066 # can be detected and how. 4067 cat >conftest.$ac_ext <<_ACEOF 4068 /* confdefs.h. */ 4069 _ACEOF 4070 cat confdefs.h >>conftest.$ac_ext 4071 cat >>conftest.$ac_ext <<_ACEOF 4072 /* end confdefs.h. */ 4073 #include <ac_nonexistent.h> 4074 _ACEOF 4075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4077 ac_status=$? 4078 grep -v '^ *+' conftest.er1 >conftest.err 4079 rm -f conftest.er1 4080 cat conftest.err >&5 4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4082 (exit $ac_status); } >/dev/null; then 4083 if test -s conftest.err; then 4084 ac_cpp_err=$ac_c_preproc_warn_flag 4085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4086 else 4087 ac_cpp_err= 4088 fi 4089 else 4090 ac_cpp_err=yes 4091 fi 4092 if test -z "$ac_cpp_err"; then 4093 # Broken: success on invalid input. 4094 continue 4095 else 4096 echo "$as_me: failed program was:" >&5 4097 sed 's/^/| /' conftest.$ac_ext >&5 4098 4099 # Passes both tests. 4100 ac_preproc_ok=: 4101 break 4102 fi 4103 rm -f conftest.err conftest.$ac_ext 4104 4105 done 4106 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4107 rm -f conftest.err conftest.$ac_ext 4108 if $ac_preproc_ok; then 4109 : 4110 else 4111 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4112 See \`config.log' for more details." >&5 4113 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4114 See \`config.log' for more details." >&2;} 4115 { (exit 1); exit 1; }; } 4116 fi 4117 4118 ac_ext=c 4119 ac_cpp='$CPP $CPPFLAGS' 4120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4122 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4123 4124 4125 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4126 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4127 if test "${ac_cv_header_stdc+set}" = set; then 4128 echo $ECHO_N "(cached) $ECHO_C" >&6 4129 else 4130 cat >conftest.$ac_ext <<_ACEOF 4131 /* confdefs.h. */ 4132 _ACEOF 4133 cat confdefs.h >>conftest.$ac_ext 4134 cat >>conftest.$ac_ext <<_ACEOF 4135 /* end confdefs.h. */ 4136 #include <stdlib.h> 4137 #include <stdarg.h> 4138 #include <string.h> 4139 #include <float.h> 4140 4141 int 4142 main () 4143 { 4144 4145 ; 4146 return 0; 4147 } 4148 _ACEOF 4149 rm -f conftest.$ac_objext 4150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4151 (eval $ac_compile) 2>conftest.er1 4152 ac_status=$? 4153 grep -v '^ *+' conftest.er1 >conftest.err 4154 rm -f conftest.er1 4155 cat conftest.err >&5 4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4157 (exit $ac_status); } && 4158 { ac_try='test -z "$ac_c_werror_flag" 4159 || test ! -s conftest.err' 4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4161 (eval $ac_try) 2>&5 4162 ac_status=$? 4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4164 (exit $ac_status); }; } && 4165 { ac_try='test -s conftest.$ac_objext' 4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4167 (eval $ac_try) 2>&5 4168 ac_status=$? 4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4170 (exit $ac_status); }; }; then 4171 ac_cv_header_stdc=yes 4172 else 4173 echo "$as_me: failed program was:" >&5 4174 sed 's/^/| /' conftest.$ac_ext >&5 4175 4176 ac_cv_header_stdc=no 4177 fi 4178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4179 4180 if test $ac_cv_header_stdc = yes; then 4181 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4182 cat >conftest.$ac_ext <<_ACEOF 4183 /* confdefs.h. */ 4184 _ACEOF 4185 cat confdefs.h >>conftest.$ac_ext 4186 cat >>conftest.$ac_ext <<_ACEOF 4187 /* end confdefs.h. */ 4188 #include <string.h> 4189 4190 _ACEOF 4191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4192 $EGREP "memchr" >/dev/null 2>&1; then 4193 : 4194 else 4195 ac_cv_header_stdc=no 4196 fi 4197 rm -f conftest* 4198 4199 fi 4200 4201 if test $ac_cv_header_stdc = yes; then 4202 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4203 cat >conftest.$ac_ext <<_ACEOF 4204 /* confdefs.h. */ 4205 _ACEOF 4206 cat confdefs.h >>conftest.$ac_ext 4207 cat >>conftest.$ac_ext <<_ACEOF 4208 /* end confdefs.h. */ 4209 #include <stdlib.h> 4210 4211 _ACEOF 4212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4213 $EGREP "free" >/dev/null 2>&1; then 4214 : 4215 else 4216 ac_cv_header_stdc=no 4217 fi 4218 rm -f conftest* 4219 4220 fi 4221 4222 if test $ac_cv_header_stdc = yes; then 4223 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4224 if test "$cross_compiling" = yes; then 4225 : 4226 else 4227 cat >conftest.$ac_ext <<_ACEOF 4228 /* confdefs.h. */ 4229 _ACEOF 4230 cat confdefs.h >>conftest.$ac_ext 4231 cat >>conftest.$ac_ext <<_ACEOF 4232 /* end confdefs.h. */ 4233 #include <ctype.h> 4234 #if ((' ' & 0x0FF) == 0x020) 4235 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4236 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4237 #else 4238 # define ISLOWER(c) \ 4239 (('a' <= (c) && (c) <= 'i') \ 4240 || ('j' <= (c) && (c) <= 'r') \ 4241 || ('s' <= (c) && (c) <= 'z')) 4242 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4243 #endif 4244 4245 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4246 int 4247 main () 4248 { 4249 int i; 4250 for (i = 0; i < 256; i++) 4251 if (XOR (islower (i), ISLOWER (i)) 4252 || toupper (i) != TOUPPER (i)) 4253 exit(2); 4254 exit (0); 4255 } 4256 _ACEOF 4257 rm -f conftest$ac_exeext 4258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4259 (eval $ac_link) 2>&5 4260 ac_status=$? 4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4264 (eval $ac_try) 2>&5 4265 ac_status=$? 4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4267 (exit $ac_status); }; }; then 4268 : 4269 else 4270 echo "$as_me: program exited with status $ac_status" >&5 4271 echo "$as_me: failed program was:" >&5 4272 sed 's/^/| /' conftest.$ac_ext >&5 4273 4274 ( exit $ac_status ) 4275 ac_cv_header_stdc=no 4276 fi 4277 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4278 fi 4279 fi 4280 fi 4281 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4282 echo "${ECHO_T}$ac_cv_header_stdc" >&6 4283 if test $ac_cv_header_stdc = yes; then 4284 4285 cat >>confdefs.h <<\_ACEOF 4286 #define STDC_HEADERS 1 4287 _ACEOF 4288 4289 fi 4290 4291 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4302 inttypes.h stdint.h unistd.h 4303 do 4304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4305 echo "$as_me:$LINENO: checking for $ac_header" >&5 4306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4307 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4308 echo $ECHO_N "(cached) $ECHO_C" >&6 4309 else 4310 cat >conftest.$ac_ext <<_ACEOF 4311 /* confdefs.h. */ 4312 _ACEOF 4313 cat confdefs.h >>conftest.$ac_ext 4314 cat >>conftest.$ac_ext <<_ACEOF 4315 /* end confdefs.h. */ 4316 $ac_includes_default 4317 4318 #include <$ac_header> 4319 _ACEOF 4320 rm -f conftest.$ac_objext 4321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4322 (eval $ac_compile) 2>conftest.er1 4323 ac_status=$? 4324 grep -v '^ *+' conftest.er1 >conftest.err 4325 rm -f conftest.er1 4326 cat conftest.err >&5 4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4328 (exit $ac_status); } && 4329 { ac_try='test -z "$ac_c_werror_flag" 4330 || test ! -s conftest.err' 4331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4332 (eval $ac_try) 2>&5 4333 ac_status=$? 4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4335 (exit $ac_status); }; } && 4336 { ac_try='test -s conftest.$ac_objext' 4337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4338 (eval $ac_try) 2>&5 4339 ac_status=$? 4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4341 (exit $ac_status); }; }; then 4342 eval "$as_ac_Header=yes" 4343 else 4344 echo "$as_me: failed program was:" >&5 4345 sed 's/^/| /' conftest.$ac_ext >&5 4346 4347 eval "$as_ac_Header=no" 4348 fi 4349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4350 fi 4351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4353 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4354 cat >>confdefs.h <<_ACEOF 4355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4356 _ACEOF 4357 4358 fi 4359 4360 done 4361 4362 4363 4364 for ac_header in dlfcn.h 4365 do 4366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4367 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4368 echo "$as_me:$LINENO: checking for $ac_header" >&5 4369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4370 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4371 echo $ECHO_N "(cached) $ECHO_C" >&6 4372 fi 4373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4375 else 4376 # Is the header compilable? 4377 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4379 cat >conftest.$ac_ext <<_ACEOF 4380 /* confdefs.h. */ 4381 _ACEOF 4382 cat confdefs.h >>conftest.$ac_ext 4383 cat >>conftest.$ac_ext <<_ACEOF 4384 /* end confdefs.h. */ 4385 $ac_includes_default 4386 #include <$ac_header> 4387 _ACEOF 4388 rm -f conftest.$ac_objext 4389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4390 (eval $ac_compile) 2>conftest.er1 4391 ac_status=$? 4392 grep -v '^ *+' conftest.er1 >conftest.err 4393 rm -f conftest.er1 4394 cat conftest.err >&5 4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4396 (exit $ac_status); } && 4397 { ac_try='test -z "$ac_c_werror_flag" 4398 || test ! -s conftest.err' 4399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4400 (eval $ac_try) 2>&5 4401 ac_status=$? 4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4403 (exit $ac_status); }; } && 4404 { ac_try='test -s conftest.$ac_objext' 4405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4406 (eval $ac_try) 2>&5 4407 ac_status=$? 4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4409 (exit $ac_status); }; }; then 4410 ac_header_compiler=yes 4411 else 4412 echo "$as_me: failed program was:" >&5 4413 sed 's/^/| /' conftest.$ac_ext >&5 4414 4415 ac_header_compiler=no 4416 fi 4417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4418 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4419 echo "${ECHO_T}$ac_header_compiler" >&6 4420 4421 # Is the header present? 4422 echo "$as_me:$LINENO: checking $ac_header presence" >&5 4423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4424 cat >conftest.$ac_ext <<_ACEOF 4425 /* confdefs.h. */ 4426 _ACEOF 4427 cat confdefs.h >>conftest.$ac_ext 4428 cat >>conftest.$ac_ext <<_ACEOF 4429 /* end confdefs.h. */ 4430 #include <$ac_header> 4431 _ACEOF 4432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4434 ac_status=$? 4435 grep -v '^ *+' conftest.er1 >conftest.err 4436 rm -f conftest.er1 4437 cat conftest.err >&5 4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4439 (exit $ac_status); } >/dev/null; then 4440 if test -s conftest.err; then 4441 ac_cpp_err=$ac_c_preproc_warn_flag 4442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4443 else 4444 ac_cpp_err= 4445 fi 4446 else 4447 ac_cpp_err=yes 4448 fi 4449 if test -z "$ac_cpp_err"; then 4450 ac_header_preproc=yes 4451 else 4452 echo "$as_me: failed program was:" >&5 4453 sed 's/^/| /' conftest.$ac_ext >&5 4454 4455 ac_header_preproc=no 4456 fi 4457 rm -f conftest.err conftest.$ac_ext 4458 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4459 echo "${ECHO_T}$ac_header_preproc" >&6 4460 4461 # So? What about this header? 4462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4463 yes:no: ) 4464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4468 ac_header_preproc=yes 4469 ;; 4470 no:yes:* ) 4471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4478 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4483 ( 4484 cat <<\_ASBOX 4485 ## ------------------------------------------ ## 4486 ## Report this to the AC_PACKAGE_NAME lists. ## 4487 ## ------------------------------------------ ## 4488 _ASBOX 4489 ) | 4490 sed "s/^/$as_me: WARNING: /" >&2 4491 ;; 4492 esac 4493 echo "$as_me:$LINENO: checking for $ac_header" >&5 4494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4495 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4496 echo $ECHO_N "(cached) $ECHO_C" >&6 4497 else 4498 eval "$as_ac_Header=\$ac_header_preproc" 4499 fi 4500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4502 4503 fi 4504 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4505 cat >>confdefs.h <<_ACEOF 4506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4507 _ACEOF 4508 4509 fi 4510 4511 done 4512 4513 ac_ext=cc 4514 ac_cpp='$CXXCPP $CPPFLAGS' 4515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4518 if test -n "$ac_tool_prefix"; then 4519 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4520 do 4521 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4522 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4523 echo "$as_me:$LINENO: checking for $ac_word" >&5 4524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4525 if test "${ac_cv_prog_CXX+set}" = set; then 4526 echo $ECHO_N "(cached) $ECHO_C" >&6 4527 else 4528 if test -n "$CXX"; then 4529 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4530 else 4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4532 for as_dir in $PATH 4533 do 4534 IFS=$as_save_IFS 4535 test -z "$as_dir" && as_dir=. 4536 for ac_exec_ext in '' $ac_executable_extensions; do 4537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4538 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4540 break 2 4541 fi 4542 done 4543 done 4544 4545 fi 4546 fi 4547 CXX=$ac_cv_prog_CXX 4548 if test -n "$CXX"; then 4549 echo "$as_me:$LINENO: result: $CXX" >&5 4550 echo "${ECHO_T}$CXX" >&6 4551 else 4552 echo "$as_me:$LINENO: result: no" >&5 4553 echo "${ECHO_T}no" >&6 4554 fi 4555 4556 test -n "$CXX" && break 4557 done 4558 fi 4559 if test -z "$CXX"; then 4560 ac_ct_CXX=$CXX 4561 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4562 do 4563 # Extract the first word of "$ac_prog", so it can be a program name with args. 4564 set dummy $ac_prog; ac_word=$2 4565 echo "$as_me:$LINENO: checking for $ac_word" >&5 4566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4567 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 4568 echo $ECHO_N "(cached) $ECHO_C" >&6 4569 else 4570 if test -n "$ac_ct_CXX"; then 4571 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4572 else 4573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4574 for as_dir in $PATH 4575 do 4576 IFS=$as_save_IFS 4577 test -z "$as_dir" && as_dir=. 4578 for ac_exec_ext in '' $ac_executable_extensions; do 4579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4580 ac_cv_prog_ac_ct_CXX="$ac_prog" 4581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4582 break 2 4583 fi 4584 done 4585 done 4586 4587 fi 4588 fi 4589 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4590 if test -n "$ac_ct_CXX"; then 4591 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 4592 echo "${ECHO_T}$ac_ct_CXX" >&6 4593 else 4594 echo "$as_me:$LINENO: result: no" >&5 4595 echo "${ECHO_T}no" >&6 4596 fi 4597 4598 test -n "$ac_ct_CXX" && break 4599 done 4600 test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 4601 4602 CXX=$ac_ct_CXX 4603 fi 4604 4605 4606 # Provide some information about the compiler. 4607 echo "$as_me:$LINENO:" \ 4608 "checking for C++ compiler version" >&5 4609 ac_compiler=`set X $ac_compile; echo $2` 4610 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4611 (eval $ac_compiler --version </dev/null >&5) 2>&5 4612 ac_status=$? 4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4614 (exit $ac_status); } 4615 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4616 (eval $ac_compiler -v </dev/null >&5) 2>&5 4617 ac_status=$? 4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4619 (exit $ac_status); } 4620 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4621 (eval $ac_compiler -V </dev/null >&5) 2>&5 4622 ac_status=$? 4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4624 (exit $ac_status); } 4625 4626 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 4627 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 4628 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 4629 echo $ECHO_N "(cached) $ECHO_C" >&6 4630 else 4631 cat >conftest.$ac_ext <<_ACEOF 4632 /* confdefs.h. */ 4633 _ACEOF 4634 cat confdefs.h >>conftest.$ac_ext 4635 cat >>conftest.$ac_ext <<_ACEOF 4636 /* end confdefs.h. */ 4637 4638 int 4639 main () 4640 { 4641 #ifndef __GNUC__ 4642 choke me 4643 #endif 4644 4645 ; 4646 return 0; 4647 } 4648 _ACEOF 4649 rm -f conftest.$ac_objext 4650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4651 (eval $ac_compile) 2>conftest.er1 4652 ac_status=$? 4653 grep -v '^ *+' conftest.er1 >conftest.err 4654 rm -f conftest.er1 4655 cat conftest.err >&5 4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4657 (exit $ac_status); } && 4658 { ac_try='test -z "$ac_cxx_werror_flag" 4659 || test ! -s conftest.err' 4660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4661 (eval $ac_try) 2>&5 4662 ac_status=$? 4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4664 (exit $ac_status); }; } && 4665 { ac_try='test -s conftest.$ac_objext' 4666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4667 (eval $ac_try) 2>&5 4668 ac_status=$? 4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4670 (exit $ac_status); }; }; then 4671 ac_compiler_gnu=yes 4672 else 4673 echo "$as_me: failed program was:" >&5 4674 sed 's/^/| /' conftest.$ac_ext >&5 4675 4676 ac_compiler_gnu=no 4677 fi 4678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4679 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4680 4681 fi 4682 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 4683 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 4684 GXX=`test $ac_compiler_gnu = yes && echo yes` 4685 ac_test_CXXFLAGS=${CXXFLAGS+set} 4686 ac_save_CXXFLAGS=$CXXFLAGS 4687 CXXFLAGS="-g" 4688 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 4689 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 4690 if test "${ac_cv_prog_cxx_g+set}" = set; then 4691 echo $ECHO_N "(cached) $ECHO_C" >&6 4692 else 4693 cat >conftest.$ac_ext <<_ACEOF 4694 /* confdefs.h. */ 4695 _ACEOF 4696 cat confdefs.h >>conftest.$ac_ext 4697 cat >>conftest.$ac_ext <<_ACEOF 4698 /* end confdefs.h. */ 4699 4700 int 4701 main () 4702 { 4703 4704 ; 4705 return 0; 4706 } 4707 _ACEOF 4708 rm -f conftest.$ac_objext 4709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4710 (eval $ac_compile) 2>conftest.er1 4711 ac_status=$? 4712 grep -v '^ *+' conftest.er1 >conftest.err 4713 rm -f conftest.er1 4714 cat conftest.err >&5 4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4716 (exit $ac_status); } && 4717 { ac_try='test -z "$ac_cxx_werror_flag" 4718 || test ! -s conftest.err' 4719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4720 (eval $ac_try) 2>&5 4721 ac_status=$? 4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4723 (exit $ac_status); }; } && 4724 { ac_try='test -s conftest.$ac_objext' 4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4726 (eval $ac_try) 2>&5 4727 ac_status=$? 4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4729 (exit $ac_status); }; }; then 4730 ac_cv_prog_cxx_g=yes 4731 else 4732 echo "$as_me: failed program was:" >&5 4733 sed 's/^/| /' conftest.$ac_ext >&5 4734 4735 ac_cv_prog_cxx_g=no 4736 fi 4737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4738 fi 4739 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 4740 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 4741 if test "$ac_test_CXXFLAGS" = set; then 4742 CXXFLAGS=$ac_save_CXXFLAGS 4743 elif test $ac_cv_prog_cxx_g = yes; then 4744 if test "$GXX" = yes; then 4745 CXXFLAGS="-g -O2" 4746 else 4747 CXXFLAGS="-g" 4748 fi 4749 else 4750 if test "$GXX" = yes; then 4751 CXXFLAGS="-O2" 4752 else 4753 CXXFLAGS= 4754 fi 4755 fi 4756 for ac_declaration in \ 4757 '' \ 4758 'extern "C" void std::exit (int) throw (); using std::exit;' \ 4759 'extern "C" void std::exit (int); using std::exit;' \ 4760 'extern "C" void exit (int) throw ();' \ 4761 'extern "C" void exit (int);' \ 4762 'void exit (int);' 4763 do 4764 cat >conftest.$ac_ext <<_ACEOF 4765 /* confdefs.h. */ 4766 _ACEOF 4767 cat confdefs.h >>conftest.$ac_ext 4768 cat >>conftest.$ac_ext <<_ACEOF 4769 /* end confdefs.h. */ 4770 $ac_declaration 4771 #include <stdlib.h> 4772 int 4773 main () 4774 { 4775 exit (42); 4776 ; 4777 return 0; 4778 } 4779 _ACEOF 4780 rm -f conftest.$ac_objext 4781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4782 (eval $ac_compile) 2>conftest.er1 4783 ac_status=$? 4784 grep -v '^ *+' conftest.er1 >conftest.err 4785 rm -f conftest.er1 4786 cat conftest.err >&5 4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4788 (exit $ac_status); } && 4789 { ac_try='test -z "$ac_cxx_werror_flag" 4790 || test ! -s conftest.err' 4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4792 (eval $ac_try) 2>&5 4793 ac_status=$? 4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4795 (exit $ac_status); }; } && 4796 { ac_try='test -s conftest.$ac_objext' 4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4798 (eval $ac_try) 2>&5 4799 ac_status=$? 4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4801 (exit $ac_status); }; }; then 4802 : 4803 else 4804 echo "$as_me: failed program was:" >&5 4805 sed 's/^/| /' conftest.$ac_ext >&5 4806 4807 continue 4808 fi 4809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4810 cat >conftest.$ac_ext <<_ACEOF 4811 /* confdefs.h. */ 4812 _ACEOF 4813 cat confdefs.h >>conftest.$ac_ext 4814 cat >>conftest.$ac_ext <<_ACEOF 4815 /* end confdefs.h. */ 4816 $ac_declaration 4817 int 4818 main () 4819 { 4820 exit (42); 4821 ; 4822 return 0; 4823 } 4824 _ACEOF 4825 rm -f conftest.$ac_objext 4826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4827 (eval $ac_compile) 2>conftest.er1 4828 ac_status=$? 4829 grep -v '^ *+' conftest.er1 >conftest.err 4830 rm -f conftest.er1 4831 cat conftest.err >&5 4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4833 (exit $ac_status); } && 4834 { ac_try='test -z "$ac_cxx_werror_flag" 4835 || test ! -s conftest.err' 4836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4837 (eval $ac_try) 2>&5 4838 ac_status=$? 4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4840 (exit $ac_status); }; } && 4841 { ac_try='test -s conftest.$ac_objext' 4842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4843 (eval $ac_try) 2>&5 4844 ac_status=$? 4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4846 (exit $ac_status); }; }; then 4847 break 4848 else 4849 echo "$as_me: failed program was:" >&5 4850 sed 's/^/| /' conftest.$ac_ext >&5 4851 4852 fi 4853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4854 done 4855 rm -f conftest* 4856 if test -n "$ac_declaration"; then 4857 echo '#ifdef __cplusplus' >>confdefs.h 4858 echo $ac_declaration >>confdefs.h 4859 echo '#endif' >>confdefs.h 4860 fi 4861 4862 ac_ext=cc 4863 ac_cpp='$CXXCPP $CPPFLAGS' 4864 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4865 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4866 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4867 4868 depcc="$CXX" am_compiler_list= 4869 4870 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4871 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 4872 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 4873 echo $ECHO_N "(cached) $ECHO_C" >&6 4874 else 4875 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4876 # We make a subdir and do the tests there. Otherwise we can end up 4877 # making bogus files that we don't know about and never remove. For 4878 # instance it was reported that on HP-UX the gcc test will end up 4879 # making a dummy file named `D' -- because `-MD' means `put the output 4880 # in D'. 4881 mkdir conftest.dir 4882 # Copy depcomp to subdir because otherwise we won't find it if we're 4883 # using a relative directory. 4884 cp "$am_depcomp" conftest.dir 4885 cd conftest.dir 4886 # We will build objects and dependencies in a subdirectory because 4887 # it helps to detect inapplicable dependency modes. For instance 4888 # both Tru64's cc and ICC support -MD to output dependencies as a 4889 # side effect of compilation, but ICC will put the dependencies in 4890 # the current directory while Tru64 will put them in the object 4891 # directory. 4892 mkdir sub 4893 4894 am_cv_CXX_dependencies_compiler_type=none 4895 if test "$am_compiler_list" = ""; then 4896 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4897 fi 4898 for depmode in $am_compiler_list; do 4899 # Setup a source with many dependencies, because some compilers 4900 # like to wrap large dependency lists on column 80 (with \), and 4901 # we should not choose a depcomp mode which is confused by this. 4902 # 4903 # We need to recreate these files for each test, as the compiler may 4904 # overwrite some of them when testing with obscure command lines. 4905 # This happens at least with the AIX C compiler. 4906 : > sub/conftest.c 4907 for i in 1 2 3 4 5 6; do 4908 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4909 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4910 # Solaris 8's {/usr,}/bin/sh. 4911 touch sub/conftst$i.h 4912 done 4913 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4914 4915 case $depmode in 4916 nosideeffect) 4917 # after this tag, mechanisms are not by side-effect, so they'll 4918 # only be used when explicitly requested 4919 if test "x$enable_dependency_tracking" = xyes; then 4920 continue 4921 else 4922 break 4923 fi 4924 ;; 4925 none) break ;; 4926 esac 4927 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4928 # mode. It turns out that the SunPro C++ compiler does not properly 4929 # handle `-M -o', and we need to detect this. 4930 if depmode=$depmode \ 4931 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4932 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4933 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4934 >/dev/null 2>conftest.err && 4935 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4936 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4937 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4938 # icc doesn't choke on unknown options, it will just issue warnings 4939 # (even with -Werror). So we grep stderr for any message 4940 # that says an option was ignored. 4941 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 4942 am_cv_CXX_dependencies_compiler_type=$depmode 4943 break 4944 fi 4945 fi 4946 done 4947 4948 cd .. 4949 rm -rf conftest.dir 4950 else 4951 am_cv_CXX_dependencies_compiler_type=none 4952 fi 4953 4954 fi 4955 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 4956 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 4957 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4958 4959 4960 4961 if 4962 test "x$enable_dependency_tracking" != xno \ 4963 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4964 am__fastdepCXX_TRUE= 4965 am__fastdepCXX_FALSE='#' 4966 else 4967 am__fastdepCXX_TRUE='#' 4968 am__fastdepCXX_FALSE= 4969 fi 4970 4971 4972 ac_ext=cc 4973 ac_cpp='$CXXCPP $CPPFLAGS' 4974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4977 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 4978 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 4979 if test -z "$CXXCPP"; then 4980 if test "${ac_cv_prog_CXXCPP+set}" = set; then 4981 echo $ECHO_N "(cached) $ECHO_C" >&6 4982 else 4983 # Double quotes because CXXCPP needs to be expanded 4984 for CXXCPP in "$CXX -E" "/lib/cpp" 4985 do 4986 ac_preproc_ok=false 4987 for ac_cxx_preproc_warn_flag in '' yes 4988 do 4989 # Use a header file that comes with gcc, so configuring glibc 4990 # with a fresh cross-compiler works. 4991 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4992 # <limits.h> exists even on freestanding compilers. 4993 # On the NeXT, cc -E runs the code through the compiler's parser, 4994 # not just through cpp. "Syntax error" is here to catch this case. 4995 cat >conftest.$ac_ext <<_ACEOF 4996 /* confdefs.h. */ 4997 _ACEOF 4998 cat confdefs.h >>conftest.$ac_ext 4999 cat >>conftest.$ac_ext <<_ACEOF 5000 /* end confdefs.h. */ 5001 #ifdef __STDC__ 5002 # include <limits.h> 5003 #else 5004 # include <assert.h> 5005 #endif 5006 Syntax error 5007 _ACEOF 5008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5010 ac_status=$? 5011 grep -v '^ *+' conftest.er1 >conftest.err 5012 rm -f conftest.er1 5013 cat conftest.err >&5 5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5015 (exit $ac_status); } >/dev/null; then 5016 if test -s conftest.err; then 5017 ac_cpp_err=$ac_cxx_preproc_warn_flag 5018 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5019 else 5020 ac_cpp_err= 5021 fi 5022 else 5023 ac_cpp_err=yes 5024 fi 5025 if test -z "$ac_cpp_err"; then 5026 : 5027 else 5028 echo "$as_me: failed program was:" >&5 5029 sed 's/^/| /' conftest.$ac_ext >&5 5030 5031 # Broken: fails on valid input. 5032 continue 5033 fi 5034 rm -f conftest.err conftest.$ac_ext 5035 5036 # OK, works on sane cases. Now check whether non-existent headers 5037 # can be detected and how. 5038 cat >conftest.$ac_ext <<_ACEOF 5039 /* confdefs.h. */ 5040 _ACEOF 5041 cat confdefs.h >>conftest.$ac_ext 5042 cat >>conftest.$ac_ext <<_ACEOF 5043 /* end confdefs.h. */ 5044 #include <ac_nonexistent.h> 5045 _ACEOF 5046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5048 ac_status=$? 5049 grep -v '^ *+' conftest.er1 >conftest.err 5050 rm -f conftest.er1 5051 cat conftest.err >&5 5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5053 (exit $ac_status); } >/dev/null; then 5054 if test -s conftest.err; then 5055 ac_cpp_err=$ac_cxx_preproc_warn_flag 5056 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5057 else 5058 ac_cpp_err= 5059 fi 5060 else 5061 ac_cpp_err=yes 5062 fi 5063 if test -z "$ac_cpp_err"; then 5064 # Broken: success on invalid input. 5065 continue 5066 else 5067 echo "$as_me: failed program was:" >&5 5068 sed 's/^/| /' conftest.$ac_ext >&5 5069 5070 # Passes both tests. 5071 ac_preproc_ok=: 5072 break 5073 fi 5074 rm -f conftest.err conftest.$ac_ext 5075 5076 done 5077 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5078 rm -f conftest.err conftest.$ac_ext 5079 if $ac_preproc_ok; then 5080 break 5081 fi 5082 5083 done 5084 ac_cv_prog_CXXCPP=$CXXCPP 5085 5086 fi 5087 CXXCPP=$ac_cv_prog_CXXCPP 5088 else 5089 ac_cv_prog_CXXCPP=$CXXCPP 5090 fi 5091 echo "$as_me:$LINENO: result: $CXXCPP" >&5 5092 echo "${ECHO_T}$CXXCPP" >&6 5093 ac_preproc_ok=false 5094 for ac_cxx_preproc_warn_flag in '' yes 5095 do 5096 # Use a header file that comes with gcc, so configuring glibc 5097 # with a fresh cross-compiler works. 5098 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5099 # <limits.h> exists even on freestanding compilers. 5100 # On the NeXT, cc -E runs the code through the compiler's parser, 5101 # not just through cpp. "Syntax error" is here to catch this case. 5102 cat >conftest.$ac_ext <<_ACEOF 5103 /* confdefs.h. */ 5104 _ACEOF 5105 cat confdefs.h >>conftest.$ac_ext 5106 cat >>conftest.$ac_ext <<_ACEOF 5107 /* end confdefs.h. */ 5108 #ifdef __STDC__ 5109 # include <limits.h> 5110 #else 5111 # include <assert.h> 5112 #endif 5113 Syntax error 5114 _ACEOF 5115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5117 ac_status=$? 5118 grep -v '^ *+' conftest.er1 >conftest.err 5119 rm -f conftest.er1 5120 cat conftest.err >&5 5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5122 (exit $ac_status); } >/dev/null; then 5123 if test -s conftest.err; then 5124 ac_cpp_err=$ac_cxx_preproc_warn_flag 5125 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5126 else 5127 ac_cpp_err= 5128 fi 5129 else 5130 ac_cpp_err=yes 5131 fi 5132 if test -z "$ac_cpp_err"; then 5133 : 5134 else 5135 echo "$as_me: failed program was:" >&5 5136 sed 's/^/| /' conftest.$ac_ext >&5 5137 5138 # Broken: fails on valid input. 5139 continue 5140 fi 5141 rm -f conftest.err conftest.$ac_ext 5142 5143 # OK, works on sane cases. Now check whether non-existent headers 5144 # can be detected and how. 5145 cat >conftest.$ac_ext <<_ACEOF 5146 /* confdefs.h. */ 5147 _ACEOF 5148 cat confdefs.h >>conftest.$ac_ext 5149 cat >>conftest.$ac_ext <<_ACEOF 5150 /* end confdefs.h. */ 5151 #include <ac_nonexistent.h> 5152 _ACEOF 5153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5155 ac_status=$? 5156 grep -v '^ *+' conftest.er1 >conftest.err 5157 rm -f conftest.er1 5158 cat conftest.err >&5 5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5160 (exit $ac_status); } >/dev/null; then 5161 if test -s conftest.err; then 5162 ac_cpp_err=$ac_cxx_preproc_warn_flag 5163 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5164 else 5165 ac_cpp_err= 5166 fi 5167 else 5168 ac_cpp_err=yes 5169 fi 5170 if test -z "$ac_cpp_err"; then 5171 # Broken: success on invalid input. 5172 continue 5173 else 5174 echo "$as_me: failed program was:" >&5 5175 sed 's/^/| /' conftest.$ac_ext >&5 5176 5177 # Passes both tests. 5178 ac_preproc_ok=: 5179 break 5180 fi 5181 rm -f conftest.err conftest.$ac_ext 5182 5183 done 5184 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5185 rm -f conftest.err conftest.$ac_ext 5186 if $ac_preproc_ok; then 5187 : 5188 else 5189 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5190 See \`config.log' for more details." >&5 5191 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5192 See \`config.log' for more details." >&2;} 5193 { (exit 1); exit 1; }; } 5194 fi 5195 5196 ac_ext=cc 5197 ac_cpp='$CXXCPP $CPPFLAGS' 5198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5201 5202 5203 ac_ext=f 5204 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5205 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5206 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5207 if test -n "$ac_tool_prefix"; then 5208 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5209 do 5210 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5211 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5212 echo "$as_me:$LINENO: checking for $ac_word" >&5 5213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5214 if test "${ac_cv_prog_F77+set}" = set; then 5215 echo $ECHO_N "(cached) $ECHO_C" >&6 5216 else 5217 if test -n "$F77"; then 5218 ac_cv_prog_F77="$F77" # Let the user override the test. 5219 else 5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5221 for as_dir in $PATH 5222 do 5223 IFS=$as_save_IFS 5224 test -z "$as_dir" && as_dir=. 5225 for ac_exec_ext in '' $ac_executable_extensions; do 5226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5227 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5229 break 2 5230 fi 5231 done 5232 done 5233 5234 fi 5235 fi 5236 F77=$ac_cv_prog_F77 5237 if test -n "$F77"; then 5238 echo "$as_me:$LINENO: result: $F77" >&5 5239 echo "${ECHO_T}$F77" >&6 5240 else 5241 echo "$as_me:$LINENO: result: no" >&5 5242 echo "${ECHO_T}no" >&6 5243 fi 5244 5245 test -n "$F77" && break 5246 done 5247 fi 5248 if test -z "$F77"; then 5249 ac_ct_F77=$F77 5250 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5251 do 5252 # Extract the first word of "$ac_prog", so it can be a program name with args. 5253 set dummy $ac_prog; ac_word=$2 5254 echo "$as_me:$LINENO: checking for $ac_word" >&5 5255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5256 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5257 echo $ECHO_N "(cached) $ECHO_C" >&6 5258 else 5259 if test -n "$ac_ct_F77"; then 5260 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5261 else 5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5263 for as_dir in $PATH 5264 do 5265 IFS=$as_save_IFS 5266 test -z "$as_dir" && as_dir=. 5267 for ac_exec_ext in '' $ac_executable_extensions; do 5268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5269 ac_cv_prog_ac_ct_F77="$ac_prog" 5270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5271 break 2 5272 fi 5273 done 5274 done 5275 5276 fi 5277 fi 5278 ac_ct_F77=$ac_cv_prog_ac_ct_F77 5279 if test -n "$ac_ct_F77"; then 5280 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5281 echo "${ECHO_T}$ac_ct_F77" >&6 5282 else 5283 echo "$as_me:$LINENO: result: no" >&5 5284 echo "${ECHO_T}no" >&6 5285 fi 5286 5287 test -n "$ac_ct_F77" && break 5288 done 5289 5290 F77=$ac_ct_F77 5291 fi 5292 5293 5294 # Provide some information about the compiler. 5295 echo "$as_me:5295:" \ 5296 "checking for Fortran 77 compiler version" >&5 5297 ac_compiler=`set X $ac_compile; echo $2` 5298 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5299 (eval $ac_compiler --version </dev/null >&5) 2>&5 5300 ac_status=$? 5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5302 (exit $ac_status); } 5303 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5304 (eval $ac_compiler -v </dev/null >&5) 2>&5 5305 ac_status=$? 5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5307 (exit $ac_status); } 5308 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5309 (eval $ac_compiler -V </dev/null >&5) 2>&5 5310 ac_status=$? 5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5312 (exit $ac_status); } 5313 rm -f a.out 5314 5315 # If we don't use `.F' as extension, the preprocessor is not run on the 5316 # input file. (Note that this only needs to work for GNU compilers.) 5317 ac_save_ext=$ac_ext 5318 ac_ext=F 5319 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5320 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 5321 if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5322 echo $ECHO_N "(cached) $ECHO_C" >&6 5323 else 5324 cat >conftest.$ac_ext <<_ACEOF 5325 program main 5326 #ifndef __GNUC__ 5327 choke me 5328 #endif 5329 5330 end 5331 _ACEOF 5332 rm -f conftest.$ac_objext 5333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5334 (eval $ac_compile) 2>conftest.er1 5335 ac_status=$? 5336 grep -v '^ *+' conftest.er1 >conftest.err 5337 rm -f conftest.er1 5338 cat conftest.err >&5 5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5340 (exit $ac_status); } && 5341 { ac_try='test -z "$ac_f77_werror_flag" 5342 || test ! -s conftest.err' 5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5344 (eval $ac_try) 2>&5 5345 ac_status=$? 5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5347 (exit $ac_status); }; } && 5348 { ac_try='test -s conftest.$ac_objext' 5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5350 (eval $ac_try) 2>&5 5351 ac_status=$? 5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5353 (exit $ac_status); }; }; then 5354 ac_compiler_gnu=yes 5355 else 5356 echo "$as_me: failed program was:" >&5 5357 sed 's/^/| /' conftest.$ac_ext >&5 5358 5359 ac_compiler_gnu=no 5360 fi 5361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5362 ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5363 5364 fi 5365 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5366 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 5367 ac_ext=$ac_save_ext 5368 ac_test_FFLAGS=${FFLAGS+set} 5369 ac_save_FFLAGS=$FFLAGS 5370 FFLAGS= 5371 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5372 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 5373 if test "${ac_cv_prog_f77_g+set}" = set; then 5374 echo $ECHO_N "(cached) $ECHO_C" >&6 5375 else 5376 FFLAGS=-g 5377 cat >conftest.$ac_ext <<_ACEOF 5378 program main 5379 5380 end 5381 _ACEOF 5382 rm -f conftest.$ac_objext 5383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5384 (eval $ac_compile) 2>conftest.er1 5385 ac_status=$? 5386 grep -v '^ *+' conftest.er1 >conftest.err 5387 rm -f conftest.er1 5388 cat conftest.err >&5 5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5390 (exit $ac_status); } && 5391 { ac_try='test -z "$ac_f77_werror_flag" 5392 || test ! -s conftest.err' 5393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5394 (eval $ac_try) 2>&5 5395 ac_status=$? 5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5397 (exit $ac_status); }; } && 5398 { ac_try='test -s conftest.$ac_objext' 5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5400 (eval $ac_try) 2>&5 5401 ac_status=$? 5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5403 (exit $ac_status); }; }; then 5404 ac_cv_prog_f77_g=yes 5405 else 5406 echo "$as_me: failed program was:" >&5 5407 sed 's/^/| /' conftest.$ac_ext >&5 5408 5409 ac_cv_prog_f77_g=no 5410 fi 5411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5412 5413 fi 5414 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5415 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 5416 if test "$ac_test_FFLAGS" = set; then 5417 FFLAGS=$ac_save_FFLAGS 5418 elif test $ac_cv_prog_f77_g = yes; then 5419 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5420 FFLAGS="-g -O2" 5421 else 5422 FFLAGS="-g" 5423 fi 5424 else 5425 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5426 FFLAGS="-O2" 5427 else 5428 FFLAGS= 5429 fi 5430 fi 5431 5432 G77=`test $ac_compiler_gnu = yes && echo yes` 5433 ac_ext=c 5434 ac_cpp='$CPP $CPPFLAGS' 5435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5437 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5438 5439 5440 5441 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5442 5443 # find the maximum length of command line arguments 5444 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5445 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5446 if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5447 echo $ECHO_N "(cached) $ECHO_C" >&6 5448 else 5449 i=0 5450 teststring="ABCD" 5451 5452 case $build_os in 5453 msdosdjgpp*) 5454 # On DJGPP, this test can blow up pretty badly due to problems in libc 5455 # (any single argument exceeding 2000 bytes causes a buffer overrun 5456 # during glob expansion). Even if it were fixed, the result of this 5457 # check would be larger than it should be. 5458 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5459 ;; 5460 5461 gnu*) 5462 # Under GNU Hurd, this test is not required because there is 5463 # no limit to the length of command line arguments. 5464 # Libtool will interpret -1 as no limit whatsoever 5465 lt_cv_sys_max_cmd_len=-1; 5466 ;; 5467 5468 cygwin* | mingw*) 5469 # On Win9x/ME, this test blows up -- it succeeds, but takes 5470 # about 5 minutes as the teststring grows exponentially. 5471 # Worse, since 9x/ME are not pre-emptively multitasking, 5472 # you end up with a "frozen" computer, even though with patience 5473 # the test eventually succeeds (with a max line length of 256k). 5474 # Instead, let's just punt: use the minimum linelength reported by 5475 # all of the supported platforms: 8192 (on NT/2K/XP). 5476 lt_cv_sys_max_cmd_len=8192; 5477 ;; 5478 5479 amigaos*) 5480 # On AmigaOS with pdksh, this test takes hours, literally. 5481 # So we just punt and use a minimum line length of 8192. 5482 lt_cv_sys_max_cmd_len=8192; 5483 ;; 5484 5485 *) 5486 # If test is not a shell built-in, we'll probably end up computing a 5487 # maximum length that is only half of the actual maximum length, but 5488 # we can't tell. 5489 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5490 = "XX$teststring") >/dev/null 2>&1 && 5491 new_result=`expr "X$teststring" : ".*" 2>&1` && 5492 lt_cv_sys_max_cmd_len=$new_result && 5493 test $i != 17 # 1/2 MB should be enough 5494 do 5495 i=`expr $i + 1` 5496 teststring=$teststring$teststring 5497 done 5498 teststring= 5499 # Add a significant safety factor because C++ compilers can tack on massive 5500 # amounts of additional arguments before passing them to the linker. 5501 # It appears as though 1/2 is a usable value. 5502 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5503 ;; 5504 esac 5505 5506 fi 5507 5508 if test -n $lt_cv_sys_max_cmd_len ; then 5509 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5510 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 5511 else 5512 echo "$as_me:$LINENO: result: none" >&5 5513 echo "${ECHO_T}none" >&6 5514 fi 3496 5515 3497 5516 … … 3499 5518 3500 5519 # Check for command to grab the raw symbol name followed by C symbol from nm. 3501 echo "$as_me:$LINENO: checking command to parse $NM output " >&53502 echo $ECHO_N "checking command to parse $NM output ... $ECHO_C" >&65520 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5521 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 3503 5522 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 3504 5523 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 3518 5537 3519 5538 # Transform an extracted symbol line into a proper C declaration 3520 lt_cv_ global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char\1;/p'"5539 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 3521 5540 3522 5541 # Transform an extracted symbol line into symbol name and symbol address 3523 lt_cv_ global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"5542 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'" 3524 5543 3525 5544 # Define system-specific variables. … … 3532 5551 ;; 3533 5552 hpux*) # Its linker distinguishes data from code symbols 3534 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 3535 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 5553 if test "$host_cpu" = ia64; then 5554 symcode='[ABCDEGRST]' 5555 fi 5556 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5557 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'" 3536 5558 ;; 3537 5559 irix* | nonstopux*) … … 3542 5564 ;; 3543 5565 solaris* | sysv5*) 3544 symcode='[BD T]'5566 symcode='[BDRT]' 3545 5567 ;; 3546 5568 sysv4) … … 3551 5573 # Handle CRLF in mingw tool chain 3552 5574 opt_cr= 3553 case $ host_os in5575 case $build_os in 3554 5576 mingw*) 3555 5577 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp … … 3558 5580 3559 5581 # If we're using GNU nm, then use its standard symbol codes. 3560 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then 3561 symcode='[ABCDGISTW]' 3562 fi 5582 case `$NM -V 2>&1` in 5583 *GNU* | *'with BFD'*) 5584 symcode='[ABCDGIRSTW]' ;; 5585 esac 3563 5586 3564 5587 # Try without a prefix undercore, then with it. … … 3566 5589 3567 5590 # Write the raw and C identifiers. 3568 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"5591 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 3569 5592 3570 5593 # Check to see that the pipe works correctly. 3571 5594 pipe_works=no 5595 3572 5596 rm -f conftest* 3573 5597 cat > conftest.$ac_ext <<EOF … … 3603 5627 3604 5628 # Make sure that we snagged all the symbols we need. 3605 if egrep ' nm_test_var$' "$nlist" >/dev/null; then3606 if egrep ' nm_test_func$' "$nlist" >/dev/null; then5629 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5630 if grep ' nm_test_func$' "$nlist" >/dev/null; then 3607 5631 cat <<EOF > conftest.$ac_ext 3608 5632 #ifdef __cplusplus … … 3612 5636 EOF 3613 5637 # Now generate the symbol file. 3614 eval "$lt_cv_ global_symbol_to_cdecl"' < "$nlist">> conftest.$ac_ext'5638 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 3615 5639 3616 5640 cat <<EOF >> conftest.$ac_ext 3617 5641 #if defined (__STDC__) && __STDC__ 3618 # define lt_ptr void *5642 # define lt_ptr_t void * 3619 5643 #else 3620 # define lt_ptr char *5644 # define lt_ptr_t char * 3621 5645 # define const 3622 5646 #endif … … 3625 5649 const struct { 3626 5650 const char *name; 3627 lt_ptr address;5651 lt_ptr_t address; 3628 5652 } 3629 5653 lt_preloaded_symbols[] = 3630 5654 { 3631 5655 EOF 3632 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist">> conftest.$ac_ext5656 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 3633 5657 cat <<\EOF >> conftest.$ac_ext 3634 {0, (lt_ptr ) 0}5658 {0, (lt_ptr_t) 0} 3635 5659 }; 3636 5660 … … 3641 5665 # Now try linking the two files. 3642 5666 mv conftest.$ac_objext conftstm.$ac_objext 3643 save_LIBS="$LIBS"3644 save_CFLAGS="$CFLAGS"5667 lt_save_LIBS="$LIBS" 5668 lt_save_CFLAGS="$CFLAGS" 3645 5669 LIBS="conftstm.$ac_objext" 3646 CFLAGS="$CFLAGS$ no_builtin_flag"5670 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 3647 5671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3648 5672 (eval $ac_link) 2>&5 3649 5673 ac_status=$? 3650 5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3651 (exit $ac_status); } && test -s conftest$ ac_exeext; then5675 (exit $ac_status); } && test -s conftest${ac_exeext}; then 3652 5676 pipe_works=yes 3653 5677 fi 3654 LIBS="$ save_LIBS"3655 CFLAGS="$ save_CFLAGS"5678 LIBS="$lt_save_LIBS" 5679 CFLAGS="$lt_save_CFLAGS" 3656 5680 else 3657 5681 echo "cannot find nm_test_func in $nlist" >&5 … … 3679 5703 fi 3680 5704 3681 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"3682 5705 if test -z "$lt_cv_sys_global_symbol_pipe"; then 3683 global_symbol_to_cdecl= 3684 global_symbol_to_c_name_address= 3685 else 3686 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" 3687 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" 3688 fi 3689 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; 3690 then 5706 lt_cv_sys_global_symbol_to_cdecl= 5707 fi 5708 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 3691 5709 echo "$as_me:$LINENO: result: failed" >&5 3692 5710 echo "${ECHO_T}failed" >&6 … … 3696 5714 fi 3697 5715 3698 ac_ext=c 3699 ac_cpp='$CPP $CPPFLAGS' 3700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3702 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3703 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3704 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3705 # On Suns, sometimes $CPP names a directory. 3706 if test -n "$CPP" && test -d "$CPP"; then 3707 CPP= 3708 fi 3709 if test -z "$CPP"; then 3710 if test "${ac_cv_prog_CPP+set}" = set; then 5716 echo "$as_me:$LINENO: checking for objdir" >&5 5717 echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5718 if test "${lt_cv_objdir+set}" = set; then 3711 5719 echo $ECHO_N "(cached) $ECHO_C" >&6 3712 5720 else 3713 # Double quotes because CPP needs to be expanded 3714 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3715 do 3716 ac_preproc_ok=false 3717 for ac_c_preproc_warn_flag in '' yes 3718 do 3719 # Use a header file that comes with gcc, so configuring glibc 3720 # with a fresh cross-compiler works. 3721 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3722 # <limits.h> exists even on freestanding compilers. 3723 # On the NeXT, cc -E runs the code through the compiler's parser, 3724 # not just through cpp. "Syntax error" is here to catch this case. 3725 cat >conftest.$ac_ext <<_ACEOF 3726 #line $LINENO "configure" 3727 /* confdefs.h. */ 3728 _ACEOF 3729 cat confdefs.h >>conftest.$ac_ext 3730 cat >>conftest.$ac_ext <<_ACEOF 3731 /* end confdefs.h. */ 3732 #ifdef __STDC__ 3733 # include <limits.h> 3734 #else 3735 # include <assert.h> 3736 #endif 3737 Syntax error 3738 _ACEOF 3739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3740 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3741 ac_status=$? 3742 grep -v '^ *+' conftest.er1 >conftest.err 3743 rm -f conftest.er1 3744 cat conftest.err >&5 3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3746 (exit $ac_status); } >/dev/null; then 3747 if test -s conftest.err; then 3748 ac_cpp_err=$ac_c_preproc_warn_flag 3749 else 3750 ac_cpp_err= 3751 fi 3752 else 3753 ac_cpp_err=yes 3754 fi 3755 if test -z "$ac_cpp_err"; then 3756 : 3757 else 3758 echo "$as_me: failed program was:" >&5 3759 sed 's/^/| /' conftest.$ac_ext >&5 3760 3761 # Broken: fails on valid input. 3762 continue 3763 fi 3764 rm -f conftest.err conftest.$ac_ext 3765 3766 # OK, works on sane cases. Now check whether non-existent headers 3767 # can be detected and how. 3768 cat >conftest.$ac_ext <<_ACEOF 3769 #line $LINENO "configure" 3770 /* confdefs.h. */ 3771 _ACEOF 3772 cat confdefs.h >>conftest.$ac_ext 3773 cat >>conftest.$ac_ext <<_ACEOF 3774 /* end confdefs.h. */ 3775 #include <ac_nonexistent.h> 3776 _ACEOF 3777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3779 ac_status=$? 3780 grep -v '^ *+' conftest.er1 >conftest.err 3781 rm -f conftest.er1 3782 cat conftest.err >&5 3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3784 (exit $ac_status); } >/dev/null; then 3785 if test -s conftest.err; then 3786 ac_cpp_err=$ac_c_preproc_warn_flag 3787 else 3788 ac_cpp_err= 3789 fi 3790 else 3791 ac_cpp_err=yes 3792 fi 3793 if test -z "$ac_cpp_err"; then 3794 # Broken: success on invalid input. 3795 continue 3796 else 3797 echo "$as_me: failed program was:" >&5 3798 sed 's/^/| /' conftest.$ac_ext >&5 3799 3800 # Passes both tests. 3801 ac_preproc_ok=: 3802 break 3803 fi 3804 rm -f conftest.err conftest.$ac_ext 3805 3806 done 3807 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3808 rm -f conftest.err conftest.$ac_ext 3809 if $ac_preproc_ok; then 3810 break 3811 fi 3812 3813 done 3814 ac_cv_prog_CPP=$CPP 3815 3816 fi 3817 CPP=$ac_cv_prog_CPP 3818 else 3819 ac_cv_prog_CPP=$CPP 3820 fi 3821 echo "$as_me:$LINENO: result: $CPP" >&5 3822 echo "${ECHO_T}$CPP" >&6 3823 ac_preproc_ok=false 3824 for ac_c_preproc_warn_flag in '' yes 3825 do 3826 # Use a header file that comes with gcc, so configuring glibc 3827 # with a fresh cross-compiler works. 3828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3829 # <limits.h> exists even on freestanding compilers. 3830 # On the NeXT, cc -E runs the code through the compiler's parser, 3831 # not just through cpp. "Syntax error" is here to catch this case. 3832 cat >conftest.$ac_ext <<_ACEOF 3833 #line $LINENO "configure" 3834 /* confdefs.h. */ 3835 _ACEOF 3836 cat confdefs.h >>conftest.$ac_ext 3837 cat >>conftest.$ac_ext <<_ACEOF 3838 /* end confdefs.h. */ 3839 #ifdef __STDC__ 3840 # include <limits.h> 3841 #else 3842 # include <assert.h> 3843 #endif 3844 Syntax error 3845 _ACEOF 3846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3848 ac_status=$? 3849 grep -v '^ *+' conftest.er1 >conftest.err 3850 rm -f conftest.er1 3851 cat conftest.err >&5 3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3853 (exit $ac_status); } >/dev/null; then 3854 if test -s conftest.err; then 3855 ac_cpp_err=$ac_c_preproc_warn_flag 3856 else 3857 ac_cpp_err= 3858 fi 3859 else 3860 ac_cpp_err=yes 3861 fi 3862 if test -z "$ac_cpp_err"; then 3863 : 3864 else 3865 echo "$as_me: failed program was:" >&5 3866 sed 's/^/| /' conftest.$ac_ext >&5 3867 3868 # Broken: fails on valid input. 3869 continue 3870 fi 3871 rm -f conftest.err conftest.$ac_ext 3872 3873 # OK, works on sane cases. Now check whether non-existent headers 3874 # can be detected and how. 3875 cat >conftest.$ac_ext <<_ACEOF 3876 #line $LINENO "configure" 3877 /* confdefs.h. */ 3878 _ACEOF 3879 cat confdefs.h >>conftest.$ac_ext 3880 cat >>conftest.$ac_ext <<_ACEOF 3881 /* end confdefs.h. */ 3882 #include <ac_nonexistent.h> 3883 _ACEOF 3884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3886 ac_status=$? 3887 grep -v '^ *+' conftest.er1 >conftest.err 3888 rm -f conftest.er1 3889 cat conftest.err >&5 3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3891 (exit $ac_status); } >/dev/null; then 3892 if test -s conftest.err; then 3893 ac_cpp_err=$ac_c_preproc_warn_flag 3894 else 3895 ac_cpp_err= 3896 fi 3897 else 3898 ac_cpp_err=yes 3899 fi 3900 if test -z "$ac_cpp_err"; then 3901 # Broken: success on invalid input. 3902 continue 3903 else 3904 echo "$as_me: failed program was:" >&5 3905 sed 's/^/| /' conftest.$ac_ext >&5 3906 3907 # Passes both tests. 3908 ac_preproc_ok=: 3909 break 3910 fi 3911 rm -f conftest.err conftest.$ac_ext 3912 3913 done 3914 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3915 rm -f conftest.err conftest.$ac_ext 3916 if $ac_preproc_ok; then 3917 : 3918 else 3919 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3920 See \`config.log' for more details." >&5 3921 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3922 See \`config.log' for more details." >&2;} 3923 { (exit 1); exit 1; }; } 3924 fi 3925 3926 ac_ext=c 3927 ac_cpp='$CPP $CPPFLAGS' 3928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3930 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3931 3932 3933 echo "$as_me:$LINENO: checking for egrep" >&5 3934 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3935 if test "${ac_cv_prog_egrep+set}" = set; then 3936 echo $ECHO_N "(cached) $ECHO_C" >&6 3937 else 3938 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3939 then ac_cv_prog_egrep='grep -E' 3940 else ac_cv_prog_egrep='egrep' 3941 fi 3942 fi 3943 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3944 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3945 EGREP=$ac_cv_prog_egrep 3946 3947 3948 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3949 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3950 if test "${ac_cv_header_stdc+set}" = set; then 3951 echo $ECHO_N "(cached) $ECHO_C" >&6 3952 else 3953 cat >conftest.$ac_ext <<_ACEOF 3954 #line $LINENO "configure" 3955 /* confdefs.h. */ 3956 _ACEOF 3957 cat confdefs.h >>conftest.$ac_ext 3958 cat >>conftest.$ac_ext <<_ACEOF 3959 /* end confdefs.h. */ 3960 #include <stdlib.h> 3961 #include <stdarg.h> 3962 #include <string.h> 3963 #include <float.h> 3964 3965 int 3966 main () 3967 { 3968 3969 ; 3970 return 0; 3971 } 3972 _ACEOF 3973 rm -f conftest.$ac_objext 3974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3975 (eval $ac_compile) 2>&5 3976 ac_status=$? 3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3978 (exit $ac_status); } && 3979 { ac_try='test -s conftest.$ac_objext' 3980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3981 (eval $ac_try) 2>&5 3982 ac_status=$? 3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3984 (exit $ac_status); }; }; then 3985 ac_cv_header_stdc=yes 3986 else 3987 echo "$as_me: failed program was:" >&5 3988 sed 's/^/| /' conftest.$ac_ext >&5 3989 3990 ac_cv_header_stdc=no 3991 fi 3992 rm -f conftest.$ac_objext conftest.$ac_ext 3993 3994 if test $ac_cv_header_stdc = yes; then 3995 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3996 cat >conftest.$ac_ext <<_ACEOF 3997 #line $LINENO "configure" 3998 /* confdefs.h. */ 3999 _ACEOF 4000 cat confdefs.h >>conftest.$ac_ext 4001 cat >>conftest.$ac_ext <<_ACEOF 4002 /* end confdefs.h. */ 4003 #include <string.h> 4004 4005 _ACEOF 4006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4007 $EGREP "memchr" >/dev/null 2>&1; then 4008 : 4009 else 4010 ac_cv_header_stdc=no 4011 fi 4012 rm -f conftest* 4013 4014 fi 4015 4016 if test $ac_cv_header_stdc = yes; then 4017 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4018 cat >conftest.$ac_ext <<_ACEOF 4019 #line $LINENO "configure" 4020 /* confdefs.h. */ 4021 _ACEOF 4022 cat confdefs.h >>conftest.$ac_ext 4023 cat >>conftest.$ac_ext <<_ACEOF 4024 /* end confdefs.h. */ 4025 #include <stdlib.h> 4026 4027 _ACEOF 4028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4029 $EGREP "free" >/dev/null 2>&1; then 4030 : 4031 else 4032 ac_cv_header_stdc=no 4033 fi 4034 rm -f conftest* 4035 4036 fi 4037 4038 if test $ac_cv_header_stdc = yes; then 4039 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4040 if test "$cross_compiling" = yes; then 4041 : 4042 else 4043 cat >conftest.$ac_ext <<_ACEOF 4044 #line $LINENO "configure" 4045 /* confdefs.h. */ 4046 _ACEOF 4047 cat confdefs.h >>conftest.$ac_ext 4048 cat >>conftest.$ac_ext <<_ACEOF 4049 /* end confdefs.h. */ 4050 #include <ctype.h> 4051 #if ((' ' & 0x0FF) == 0x020) 4052 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4053 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4054 #else 4055 # define ISLOWER(c) \ 4056 (('a' <= (c) && (c) <= 'i') \ 4057 || ('j' <= (c) && (c) <= 'r') \ 4058 || ('s' <= (c) && (c) <= 'z')) 4059 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4060 #endif 4061 4062 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4063 int 4064 main () 4065 { 4066 int i; 4067 for (i = 0; i < 256; i++) 4068 if (XOR (islower (i), ISLOWER (i)) 4069 || toupper (i) != TOUPPER (i)) 4070 exit(2); 4071 exit (0); 4072 } 4073 _ACEOF 4074 rm -f conftest$ac_exeext 4075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4076 (eval $ac_link) 2>&5 4077 ac_status=$? 4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4081 (eval $ac_try) 2>&5 4082 ac_status=$? 4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4084 (exit $ac_status); }; }; then 4085 : 4086 else 4087 echo "$as_me: program exited with status $ac_status" >&5 4088 echo "$as_me: failed program was:" >&5 4089 sed 's/^/| /' conftest.$ac_ext >&5 4090 4091 ( exit $ac_status ) 4092 ac_cv_header_stdc=no 4093 fi 4094 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4095 fi 4096 fi 4097 fi 4098 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4099 echo "${ECHO_T}$ac_cv_header_stdc" >&6 4100 if test $ac_cv_header_stdc = yes; then 4101 4102 cat >>confdefs.h <<\_ACEOF 4103 #define STDC_HEADERS 1 4104 _ACEOF 4105 4106 fi 4107 4108 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4119 inttypes.h stdint.h unistd.h 4120 do 4121 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4122 echo "$as_me:$LINENO: checking for $ac_header" >&5 4123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4124 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4125 echo $ECHO_N "(cached) $ECHO_C" >&6 4126 else 4127 cat >conftest.$ac_ext <<_ACEOF 4128 #line $LINENO "configure" 4129 /* confdefs.h. */ 4130 _ACEOF 4131 cat confdefs.h >>conftest.$ac_ext 4132 cat >>conftest.$ac_ext <<_ACEOF 4133 /* end confdefs.h. */ 4134 $ac_includes_default 4135 4136 #include <$ac_header> 4137 _ACEOF 4138 rm -f conftest.$ac_objext 4139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4140 (eval $ac_compile) 2>&5 4141 ac_status=$? 4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4143 (exit $ac_status); } && 4144 { ac_try='test -s conftest.$ac_objext' 4145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4146 (eval $ac_try) 2>&5 4147 ac_status=$? 4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4149 (exit $ac_status); }; }; then 4150 eval "$as_ac_Header=yes" 4151 else 4152 echo "$as_me: failed program was:" >&5 4153 sed 's/^/| /' conftest.$ac_ext >&5 4154 4155 eval "$as_ac_Header=no" 4156 fi 4157 rm -f conftest.$ac_objext conftest.$ac_ext 4158 fi 4159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4161 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4162 cat >>confdefs.h <<_ACEOF 4163 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4164 _ACEOF 4165 4166 fi 4167 4168 done 4169 4170 4171 4172 for ac_header in dlfcn.h 4173 do 4174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4175 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4176 echo "$as_me:$LINENO: checking for $ac_header" >&5 4177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4178 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4179 echo $ECHO_N "(cached) $ECHO_C" >&6 4180 fi 4181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4183 else 4184 # Is the header compilable? 4185 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4186 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4187 cat >conftest.$ac_ext <<_ACEOF 4188 #line $LINENO "configure" 4189 /* confdefs.h. */ 4190 _ACEOF 4191 cat confdefs.h >>conftest.$ac_ext 4192 cat >>conftest.$ac_ext <<_ACEOF 4193 /* end confdefs.h. */ 4194 $ac_includes_default 4195 #include <$ac_header> 4196 _ACEOF 4197 rm -f conftest.$ac_objext 4198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4199 (eval $ac_compile) 2>&5 4200 ac_status=$? 4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4202 (exit $ac_status); } && 4203 { ac_try='test -s conftest.$ac_objext' 4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4205 (eval $ac_try) 2>&5 4206 ac_status=$? 4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4208 (exit $ac_status); }; }; then 4209 ac_header_compiler=yes 4210 else 4211 echo "$as_me: failed program was:" >&5 4212 sed 's/^/| /' conftest.$ac_ext >&5 4213 4214 ac_header_compiler=no 4215 fi 4216 rm -f conftest.$ac_objext conftest.$ac_ext 4217 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4218 echo "${ECHO_T}$ac_header_compiler" >&6 4219 4220 # Is the header present? 4221 echo "$as_me:$LINENO: checking $ac_header presence" >&5 4222 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4223 cat >conftest.$ac_ext <<_ACEOF 4224 #line $LINENO "configure" 4225 /* confdefs.h. */ 4226 _ACEOF 4227 cat confdefs.h >>conftest.$ac_ext 4228 cat >>conftest.$ac_ext <<_ACEOF 4229 /* end confdefs.h. */ 4230 #include <$ac_header> 4231 _ACEOF 4232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4234 ac_status=$? 4235 grep -v '^ *+' conftest.er1 >conftest.err 4236 rm -f conftest.er1 4237 cat conftest.err >&5 4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4239 (exit $ac_status); } >/dev/null; then 4240 if test -s conftest.err; then 4241 ac_cpp_err=$ac_c_preproc_warn_flag 4242 else 4243 ac_cpp_err= 4244 fi 4245 else 4246 ac_cpp_err=yes 4247 fi 4248 if test -z "$ac_cpp_err"; then 4249 ac_header_preproc=yes 4250 else 4251 echo "$as_me: failed program was:" >&5 4252 sed 's/^/| /' conftest.$ac_ext >&5 4253 4254 ac_header_preproc=no 4255 fi 4256 rm -f conftest.err conftest.$ac_ext 4257 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4258 echo "${ECHO_T}$ac_header_preproc" >&6 4259 4260 # So? What about this header? 4261 case $ac_header_compiler:$ac_header_preproc in 4262 yes:no ) 4263 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4264 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4267 ( 4268 cat <<\_ASBOX 4269 ## ------------------------------------ ## 4270 ## Report this to bug-autoconf@gnu.org. ## 4271 ## ------------------------------------ ## 4272 _ASBOX 4273 ) | 4274 sed "s/^/$as_me: WARNING: /" >&2 4275 ;; 4276 no:yes ) 4277 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4278 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4279 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4280 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4283 ( 4284 cat <<\_ASBOX 4285 ## ------------------------------------ ## 4286 ## Report this to bug-autoconf@gnu.org. ## 4287 ## ------------------------------------ ## 4288 _ASBOX 4289 ) | 4290 sed "s/^/$as_me: WARNING: /" >&2 4291 ;; 4292 esac 4293 echo "$as_me:$LINENO: checking for $ac_header" >&5 4294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4295 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4296 echo $ECHO_N "(cached) $ECHO_C" >&6 4297 else 4298 eval "$as_ac_Header=$ac_header_preproc" 4299 fi 4300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4302 4303 fi 4304 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4305 cat >>confdefs.h <<_ACEOF 4306 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4307 _ACEOF 4308 4309 fi 4310 4311 done 4312 4313 4314 4315 4316 4317 4318 # Only perform the check for file, if the check method requires it 4319 case $deplibs_check_method in 4320 file_magic*) 4321 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 4322 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 4323 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 4324 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 4325 echo $ECHO_N "(cached) $ECHO_C" >&6 4326 else 4327 case $MAGIC_CMD in 4328 /*) 4329 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4330 ;; 4331 ?:/*) 4332 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 4333 ;; 4334 *) 4335 ac_save_MAGIC_CMD="$MAGIC_CMD" 4336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4337 ac_dummy="/usr/bin:$PATH" 4338 for ac_dir in $ac_dummy; do 4339 test -z "$ac_dir" && ac_dir=. 4340 if test -f $ac_dir/${ac_tool_prefix}file; then 4341 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 4342 if test -n "$file_magic_test_file"; then 4343 case $deplibs_check_method in 4344 "file_magic "*) 4345 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 4346 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4347 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 4348 egrep "$file_magic_regex" > /dev/null; then 4349 : 4350 else 4351 cat <<EOF 1>&2 4352 4353 *** Warning: the command libtool uses to detect shared libraries, 4354 *** $file_magic_cmd, produces output that libtool cannot recognize. 4355 *** The result is that libtool may fail to recognize shared libraries 4356 *** as such. This will affect the creation of libtool libraries that 4357 *** depend on shared libraries, but programs linked with such libtool 4358 *** libraries will work regardless of this problem. Nevertheless, you 4359 *** may want to report the problem to your system manager and/or to 4360 *** bug-libtool@gnu.org 4361 4362 EOF 4363 fi ;; 4364 esac 4365 fi 4366 break 4367 fi 4368 done 4369 IFS="$ac_save_ifs" 4370 MAGIC_CMD="$ac_save_MAGIC_CMD" 4371 ;; 4372 esac 4373 fi 4374 4375 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4376 if test -n "$MAGIC_CMD"; then 4377 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 4378 echo "${ECHO_T}$MAGIC_CMD" >&6 4379 else 4380 echo "$as_me:$LINENO: result: no" >&5 4381 echo "${ECHO_T}no" >&6 4382 fi 4383 4384 if test -z "$lt_cv_path_MAGIC_CMD"; then 4385 if test -n "$ac_tool_prefix"; then 4386 echo "$as_me:$LINENO: checking for file" >&5 4387 echo $ECHO_N "checking for file... $ECHO_C" >&6 4388 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 4389 echo $ECHO_N "(cached) $ECHO_C" >&6 4390 else 4391 case $MAGIC_CMD in 4392 /*) 4393 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4394 ;; 4395 ?:/*) 4396 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 4397 ;; 4398 *) 4399 ac_save_MAGIC_CMD="$MAGIC_CMD" 4400 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4401 ac_dummy="/usr/bin:$PATH" 4402 for ac_dir in $ac_dummy; do 4403 test -z "$ac_dir" && ac_dir=. 4404 if test -f $ac_dir/file; then 4405 lt_cv_path_MAGIC_CMD="$ac_dir/file" 4406 if test -n "$file_magic_test_file"; then 4407 case $deplibs_check_method in 4408 "file_magic "*) 4409 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 4410 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4411 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 4412 egrep "$file_magic_regex" > /dev/null; then 4413 : 4414 else 4415 cat <<EOF 1>&2 4416 4417 *** Warning: the command libtool uses to detect shared libraries, 4418 *** $file_magic_cmd, produces output that libtool cannot recognize. 4419 *** The result is that libtool may fail to recognize shared libraries 4420 *** as such. This will affect the creation of libtool libraries that 4421 *** depend on shared libraries, but programs linked with such libtool 4422 *** libraries will work regardless of this problem. Nevertheless, you 4423 *** may want to report the problem to your system manager and/or to 4424 *** bug-libtool@gnu.org 4425 4426 EOF 4427 fi ;; 4428 esac 4429 fi 4430 break 4431 fi 4432 done 4433 IFS="$ac_save_ifs" 4434 MAGIC_CMD="$ac_save_MAGIC_CMD" 4435 ;; 4436 esac 4437 fi 4438 4439 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4440 if test -n "$MAGIC_CMD"; then 4441 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 4442 echo "${ECHO_T}$MAGIC_CMD" >&6 4443 else 4444 echo "$as_me:$LINENO: result: no" >&5 4445 echo "${ECHO_T}no" >&6 4446 fi 4447 4448 else 4449 MAGIC_CMD=: 4450 fi 4451 fi 4452 5721 rm -f .libs 2>/dev/null 5722 mkdir .libs 2>/dev/null 5723 if test -d .libs; then 5724 lt_cv_objdir=.libs 5725 else 5726 # MS-DOS does not allow filenames that begin with a dot. 5727 lt_cv_objdir=_libs 5728 fi 5729 rmdir .libs 2>/dev/null 5730 fi 5731 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5732 echo "${ECHO_T}$lt_cv_objdir" >&6 5733 objdir=$lt_cv_objdir 5734 5735 5736 5737 5738 5739 case $host_os in 5740 aix3*) 5741 # AIX sometimes has problems with the GCC collect2 program. For some 5742 # reason, if we set the COLLECT_NAMES environment variable, the problems 5743 # vanish in a puff of smoke. 5744 if test "X${COLLECT_NAMES+set}" != Xset; then 5745 COLLECT_NAMES= 5746 export COLLECT_NAMES 4453 5747 fi 4454 5748 ;; 4455 5749 esac 5750 5751 # Sed substitution that helps us do robust quoting. It backslashifies 5752 # metacharacters that are still active within double-quoted strings. 5753 Xsed='sed -e s/^X//' 5754 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5755 5756 # Same as above, but do not quote variable references. 5757 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5758 5759 # Sed substitution to delay expansion of an escaped shell variable in a 5760 # double_quote_subst'ed string. 5761 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5762 5763 # Sed substitution to avoid accidental globbing in evaled expressions 5764 no_glob_subst='s/\*/\\\*/g' 5765 5766 # Constants: 5767 rm="rm -f" 5768 5769 # Global variables: 5770 default_ofile=libtool 5771 can_build_shared=yes 5772 5773 # All known linkers require a `.a' archive for static linking (except M$VC, 5774 # which needs '.lib'). 5775 libext=a 5776 ltmain="$ac_aux_dir/ltmain.sh" 5777 ofile="$default_ofile" 5778 with_gnu_ld="$lt_cv_prog_gnu_ld" 5779 5780 if test -n "$ac_tool_prefix"; then 5781 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5782 set dummy ${ac_tool_prefix}ar; ac_word=$2 5783 echo "$as_me:$LINENO: checking for $ac_word" >&5 5784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5785 if test "${ac_cv_prog_AR+set}" = set; then 5786 echo $ECHO_N "(cached) $ECHO_C" >&6 5787 else 5788 if test -n "$AR"; then 5789 ac_cv_prog_AR="$AR" # Let the user override the test. 5790 else 5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5792 for as_dir in $PATH 5793 do 5794 IFS=$as_save_IFS 5795 test -z "$as_dir" && as_dir=. 5796 for ac_exec_ext in '' $ac_executable_extensions; do 5797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5798 ac_cv_prog_AR="${ac_tool_prefix}ar" 5799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5800 break 2 5801 fi 5802 done 5803 done 5804 5805 fi 5806 fi 5807 AR=$ac_cv_prog_AR 5808 if test -n "$AR"; then 5809 echo "$as_me:$LINENO: result: $AR" >&5 5810 echo "${ECHO_T}$AR" >&6 5811 else 5812 echo "$as_me:$LINENO: result: no" >&5 5813 echo "${ECHO_T}no" >&6 5814 fi 5815 5816 fi 5817 if test -z "$ac_cv_prog_AR"; then 5818 ac_ct_AR=$AR 5819 # Extract the first word of "ar", so it can be a program name with args. 5820 set dummy ar; ac_word=$2 5821 echo "$as_me:$LINENO: checking for $ac_word" >&5 5822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5823 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5824 echo $ECHO_N "(cached) $ECHO_C" >&6 5825 else 5826 if test -n "$ac_ct_AR"; then 5827 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5828 else 5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5830 for as_dir in $PATH 5831 do 5832 IFS=$as_save_IFS 5833 test -z "$as_dir" && as_dir=. 5834 for ac_exec_ext in '' $ac_executable_extensions; do 5835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5836 ac_cv_prog_ac_ct_AR="ar" 5837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5838 break 2 5839 fi 5840 done 5841 done 5842 5843 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 5844 fi 5845 fi 5846 ac_ct_AR=$ac_cv_prog_ac_ct_AR 5847 if test -n "$ac_ct_AR"; then 5848 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5849 echo "${ECHO_T}$ac_ct_AR" >&6 5850 else 5851 echo "$as_me:$LINENO: result: no" >&5 5852 echo "${ECHO_T}no" >&6 5853 fi 5854 5855 AR=$ac_ct_AR 5856 else 5857 AR="$ac_cv_prog_AR" 5858 fi 4456 5859 4457 5860 if test -n "$ac_tool_prefix"; then … … 4616 6019 4617 6020 4618 enable_dlopen=no4619 enable_win32_dll=no4620 4621 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.4622 if test "${enable_libtool_lock+set}" = set; then4623 enableval="$enable_libtool_lock"4624 4625 fi;4626 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes4627 4628 # Some flags need to be propagated to the compiler or linker for good4629 # libtool support.4630 case $host in4631 *-*-irix6*)4632 # Find out which ABI we are using.4633 echo '#line 4633 "configure"' > conftest.$ac_ext4634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&54635 (eval $ac_compile) 2>&54636 ac_status=$?4637 echo "$as_me:$LINENO: \$? = $ac_status" >&54638 (exit $ac_status); }; then4639 case `/usr/bin/file conftest.$ac_objext` in4640 *32-bit*)4641 LD="${LD-ld} -32"4642 ;;4643 *N32*)4644 LD="${LD-ld} -n32"4645 ;;4646 *64-bit*)4647 LD="${LD-ld} -64"4648 ;;4649 esac4650 fi4651 rm -rf conftest*4652 ;;4653 4654 *-*-sco3.2v5*)4655 # On SCO OpenServer 5, we need -belf to get full-featured binaries.4656 SAVE_CFLAGS="$CFLAGS"4657 CFLAGS="$CFLAGS -belf"4658 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&54659 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&64660 if test "${lt_cv_cc_needs_belf+set}" = set; then4661 echo $ECHO_N "(cached) $ECHO_C" >&64662 else4663 4664 4665 ac_ext=c4666 ac_cpp='$CPP $CPPFLAGS'4667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'4668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'4669 ac_compiler_gnu=$ac_cv_c_compiler_gnu4670 4671 cat >conftest.$ac_ext <<_ACEOF4672 #line $LINENO "configure"4673 /* confdefs.h. */4674 _ACEOF4675 cat confdefs.h >>conftest.$ac_ext4676 cat >>conftest.$ac_ext <<_ACEOF4677 /* end confdefs.h. */4678 4679 int4680 main ()4681 {4682 4683 ;4684 return 0;4685 }4686 _ACEOF4687 rm -f conftest.$ac_objext conftest$ac_exeext4688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&54689 (eval $ac_link) 2>&54690 ac_status=$?4691 echo "$as_me:$LINENO: \$? = $ac_status" >&54692 (exit $ac_status); } &&4693 { ac_try='test -s conftest$ac_exeext'4694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&54695 (eval $ac_try) 2>&54696 ac_status=$?4697 echo "$as_me:$LINENO: \$? = $ac_status" >&54698 (exit $ac_status); }; }; then4699 lt_cv_cc_needs_belf=yes4700 else4701 echo "$as_me: failed program was:" >&54702 sed 's/^/| /' conftest.$ac_ext >&54703 4704 lt_cv_cc_needs_belf=no4705 fi4706 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext4707 ac_ext=c4708 ac_cpp='$CPP $CPPFLAGS'4709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'4710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'4711 ac_compiler_gnu=$ac_cv_c_compiler_gnu4712 4713 fi4714 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&54715 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&64716 if test x"$lt_cv_cc_needs_belf" != x"yes"; then4717 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf4718 CFLAGS="$SAVE_CFLAGS"4719 fi4720 ;;4721 4722 4723 esac4724 4725 # Sed substitution that helps us do robust quoting. It backslashifies4726 # metacharacters that are still active within double-quoted strings.4727 Xsed='sed -e s/^X//'4728 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'4729 4730 # Same as above, but do not quote variable references.4731 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'4732 4733 # Sed substitution to delay expansion of an escaped shell variable in a4734 # double_quote_subst'ed string.4735 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'4736 4737 # Constants:4738 rm="rm -f"4739 4740 # Global variables:4741 default_ofile=libtool4742 can_build_shared=yes4743 4744 # All known linkers require a `.a' archive for static linking (except M$VC,4745 # which needs '.lib').4746 libext=a4747 ltmain="$ac_aux_dir/ltmain.sh"4748 ofile="$default_ofile"4749 with_gnu_ld="$lt_cv_prog_gnu_ld"4750 need_locks="$enable_libtool_lock"4751 4752 6021 old_CC="$CC" 4753 6022 old_CFLAGS="$CFLAGS" … … 4758 6027 test -z "$AS" && AS=as 4759 6028 test -z "$CC" && CC=cc 6029 test -z "$LTCC" && LTCC=$CC 4760 6030 test -z "$DLLTOOL" && DLLTOOL=dlltool 4761 6031 test -z "$LD" && LD=ld … … 4763 6033 test -z "$MAGIC_CMD" && MAGIC_CMD=file 4764 6034 test -z "$NM" && NM=nm 6035 test -z "$SED" && SED=sed 4765 6036 test -z "$OBJDUMP" && OBJDUMP=objdump 4766 6037 test -z "$RANLIB" && RANLIB=: 4767 6038 test -z "$STRIP" && STRIP=: 4768 6039 test -z "$ac_objext" && ac_objext=o 4769 4770 if test x"$host" != x"$build"; then4771 ac_tool_prefix=${host_alias}-4772 else4773 ac_tool_prefix=4774 fi4775 4776 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.4777 case $host_os in4778 linux-gnu*) ;;4779 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`4780 esac4781 4782 case $host_os in4783 aix3*)4784 # AIX sometimes has problems with the GCC collect2 program. For some4785 # reason, if we set the COLLECT_NAMES environment variable, the problems4786 # vanish in a puff of smoke.4787 if test "X${COLLECT_NAMES+set}" != Xset; then4788 COLLECT_NAMES=4789 export COLLECT_NAMES4790 fi4791 ;;4792 esac4793 6040 4794 6041 # Determine commands to create old-style static archives. … … 4809 6056 fi 4810 6057 4811 # Allow CC to be a program name with arguments. 4812 set dummy $CC 4813 compiler="$2" 4814 4815 echo "$as_me:$LINENO: checking for objdir" >&5 4816 echo $ECHO_N "checking for objdir... $ECHO_C" >&6 4817 rm -f .libs 2>/dev/null 4818 mkdir .libs 2>/dev/null 4819 if test -d .libs; then 4820 objdir=.libs 4821 else 4822 # MS-DOS does not allow filenames that begin with a dot. 4823 objdir=_libs 4824 fi 4825 rmdir .libs 2>/dev/null 4826 echo "$as_me:$LINENO: result: $objdir" >&5 4827 echo "${ECHO_T}$objdir" >&6 4828 6058 # Only perform the check for file, if the check method requires it 6059 case $deplibs_check_method in 6060 file_magic*) 6061 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6062 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6063 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 6064 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6065 echo $ECHO_N "(cached) $ECHO_C" >&6 6066 else 6067 case $MAGIC_CMD in 6068 [\\/*] | ?:[\\/]*) 6069 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6070 ;; 6071 *) 6072 lt_save_MAGIC_CMD="$MAGIC_CMD" 6073 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6074 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6075 for ac_dir in $ac_dummy; do 6076 IFS="$lt_save_ifs" 6077 test -z "$ac_dir" && ac_dir=. 6078 if test -f $ac_dir/${ac_tool_prefix}file; then 6079 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6080 if test -n "$file_magic_test_file"; then 6081 case $deplibs_check_method in 6082 "file_magic "*) 6083 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 6084 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6085 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6086 $EGREP "$file_magic_regex" > /dev/null; then 6087 : 6088 else 6089 cat <<EOF 1>&2 6090 6091 *** Warning: the command libtool uses to detect shared libraries, 6092 *** $file_magic_cmd, produces output that libtool cannot recognize. 6093 *** The result is that libtool may fail to recognize shared libraries 6094 *** as such. This will affect the creation of libtool libraries that 6095 *** depend on shared libraries, but programs linked with such libtool 6096 *** libraries will work regardless of this problem. Nevertheless, you 6097 *** may want to report the problem to your system manager and/or to 6098 *** bug-libtool@gnu.org 6099 6100 EOF 6101 fi ;; 6102 esac 6103 fi 6104 break 6105 fi 6106 done 6107 IFS="$lt_save_ifs" 6108 MAGIC_CMD="$lt_save_MAGIC_CMD" 6109 ;; 6110 esac 6111 fi 6112 6113 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6114 if test -n "$MAGIC_CMD"; then 6115 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6116 echo "${ECHO_T}$MAGIC_CMD" >&6 6117 else 6118 echo "$as_me:$LINENO: result: no" >&5 6119 echo "${ECHO_T}no" >&6 6120 fi 6121 6122 if test -z "$lt_cv_path_MAGIC_CMD"; then 6123 if test -n "$ac_tool_prefix"; then 6124 echo "$as_me:$LINENO: checking for file" >&5 6125 echo $ECHO_N "checking for file... $ECHO_C" >&6 6126 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6127 echo $ECHO_N "(cached) $ECHO_C" >&6 6128 else 6129 case $MAGIC_CMD in 6130 [\\/*] | ?:[\\/]*) 6131 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6132 ;; 6133 *) 6134 lt_save_MAGIC_CMD="$MAGIC_CMD" 6135 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6136 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6137 for ac_dir in $ac_dummy; do 6138 IFS="$lt_save_ifs" 6139 test -z "$ac_dir" && ac_dir=. 6140 if test -f $ac_dir/file; then 6141 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6142 if test -n "$file_magic_test_file"; then 6143 case $deplibs_check_method in 6144 "file_magic "*) 6145 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 6146 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6147 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6148 $EGREP "$file_magic_regex" > /dev/null; then 6149 : 6150 else 6151 cat <<EOF 1>&2 6152 6153 *** Warning: the command libtool uses to detect shared libraries, 6154 *** $file_magic_cmd, produces output that libtool cannot recognize. 6155 *** The result is that libtool may fail to recognize shared libraries 6156 *** as such. This will affect the creation of libtool libraries that 6157 *** depend on shared libraries, but programs linked with such libtool 6158 *** libraries will work regardless of this problem. Nevertheless, you 6159 *** may want to report the problem to your system manager and/or to 6160 *** bug-libtool@gnu.org 6161 6162 EOF 6163 fi ;; 6164 esac 6165 fi 6166 break 6167 fi 6168 done 6169 IFS="$lt_save_ifs" 6170 MAGIC_CMD="$lt_save_MAGIC_CMD" 6171 ;; 6172 esac 6173 fi 6174 6175 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6176 if test -n "$MAGIC_CMD"; then 6177 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6178 echo "${ECHO_T}$MAGIC_CMD" >&6 6179 else 6180 echo "$as_me:$LINENO: result: no" >&5 6181 echo "${ECHO_T}no" >&6 6182 fi 6183 6184 else 6185 MAGIC_CMD=: 6186 fi 6187 fi 6188 6189 fi 6190 ;; 6191 esac 6192 6193 enable_dlopen=no 6194 enable_win32_dll=no 6195 6196 # Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6197 if test "${enable_libtool_lock+set}" = set; then 6198 enableval="$enable_libtool_lock" 6199 6200 fi; 6201 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4829 6202 4830 6203 … … 4838 6211 test -z "$pic_mode" && pic_mode=default 4839 6212 4840 # We assume here that the value for lt_cv_prog_cc_pic will not be cached 4841 # in isolation, and that seeing it set (from the cache) indicates that 4842 # the associated values are set (in the cache) correctly too. 6213 # Use C for the default configuration in the libtool script 6214 tagname= 6215 lt_save_CC="$CC" 6216 ac_ext=c 6217 ac_cpp='$CPP $CPPFLAGS' 6218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6220 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6221 6222 6223 # Source file extension for C test sources. 6224 ac_ext=c 6225 6226 # Object file extension for compiled C test sources. 6227 objext=o 6228 objext=$objext 6229 6230 # Code to be used in simple compile tests 6231 lt_simple_compile_test_code="int some_variable = 0;\n" 6232 6233 # Code to be used in simple link tests 6234 lt_simple_link_test_code='int main(){return(0);}\n' 6235 6236 6237 # If no C compiler was specified, use CC. 6238 LTCC=${LTCC-"$CC"} 6239 6240 # Allow CC to be a program name with arguments. 6241 compiler=$CC 6242 6243 6244 # 6245 # Check for any special shared library compilation flags. 6246 # 6247 lt_prog_cc_shlib= 6248 if test "$GCC" = no; then 6249 case $host_os in 6250 sco3.2v5*) 6251 lt_prog_cc_shlib='-belf' 6252 ;; 6253 esac 6254 fi 6255 if test -n "$lt_prog_cc_shlib"; then 6256 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 6257 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 6258 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 6259 else 6260 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 6261 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 6262 lt_cv_prog_cc_can_build_shared=no 6263 fi 6264 fi 6265 6266 6267 # 6268 # Check to make sure the static flag actually works. 6269 # 6270 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 6271 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 6272 if test "${lt_prog_compiler_static_works+set}" = set; then 6273 echo $ECHO_N "(cached) $ECHO_C" >&6 6274 else 6275 lt_prog_compiler_static_works=no 6276 save_LDFLAGS="$LDFLAGS" 6277 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 6278 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6279 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6280 # The compiler can only warn and ignore the option if not recognized 6281 # So say no if there are warnings 6282 if test -s conftest.err; then 6283 # Append any errors to the config.log. 6284 cat conftest.err 1>&5 6285 else 6286 lt_prog_compiler_static_works=yes 6287 fi 6288 fi 6289 $rm conftest* 6290 LDFLAGS="$save_LDFLAGS" 6291 6292 fi 6293 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6294 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6295 6296 if test x"$lt_prog_compiler_static_works" = xyes; then 6297 : 6298 else 6299 lt_prog_compiler_static= 6300 fi 6301 6302 6303 6304 6305 lt_prog_compiler_no_builtin_flag= 6306 6307 if test "$GCC" = yes; then 6308 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6309 6310 6311 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6312 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6313 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6314 echo $ECHO_N "(cached) $ECHO_C" >&6 6315 else 6316 lt_cv_prog_compiler_rtti_exceptions=no 6317 ac_outfile=conftest.$ac_objext 6318 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6319 lt_compiler_flag="-fno-rtti -fno-exceptions" 6320 # Insert the option either (1) after the last *FLAGS variable, or 6321 # (2) before a word containing "conftest.", or (3) at the end. 6322 # Note that $ac_compile itself does not contain backslashes and begins 6323 # with a dollar sign (not a hyphen), so the echo should work correctly. 6324 # The option is referenced via a variable to avoid confusing sed. 6325 lt_compile=`echo "$ac_compile" | $SED \ 6326 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6328 -e 's:$: $lt_compiler_flag:'` 6329 (eval echo "\"\$as_me:6329: $lt_compile\"" >&5) 6330 (eval "$lt_compile" 2>conftest.err) 6331 ac_status=$? 6332 cat conftest.err >&5 6333 echo "$as_me:6333: \$? = $ac_status" >&5 6334 if (exit $ac_status) && test -s "$ac_outfile"; then 6335 # The compiler can only warn and ignore the option if not recognized 6336 # So say no if there are warnings 6337 if test ! -s conftest.err; then 6338 lt_cv_prog_compiler_rtti_exceptions=yes 6339 fi 6340 fi 6341 $rm conftest* 6342 6343 fi 6344 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6345 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6346 6347 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6348 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6349 else 6350 : 6351 fi 6352 6353 fi 6354 6355 lt_prog_compiler_wl= 6356 lt_prog_compiler_pic= 6357 lt_prog_compiler_static= 6358 4843 6359 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 4844 6360 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 4845 if test "${lt_cv_prog_cc_pic+set}" = set; then4846 echo $ECHO_N "(cached) $ECHO_C" >&64847 else4848 lt_cv_prog_cc_pic=4849 lt_cv_prog_cc_shlib=4850 lt_cv_prog_cc_wl=4851 lt_cv_prog_cc_static=4852 lt_cv_prog_cc_no_builtin=4853 lt_cv_prog_cc_can_build_shared=$can_build_shared4854 6361 4855 6362 if test "$GCC" = yes; then 4856 lt_ cv_prog_cc_wl='-Wl,'4857 lt_ cv_prog_cc_static='-static'6363 lt_prog_compiler_wl='-Wl,' 6364 lt_prog_compiler_static='-static' 4858 6365 4859 6366 case $host_os in 4860 aix*) 4861 # Below there is a dirty hack to force normal static linking with -ldl 4862 # The problem is because libdl dynamically linked with both libc and 4863 # libC (AIX C++ library), which obviously doesn't included in libraries 4864 # list by gcc. This cause undefined symbols with -static flags. 4865 # This hack allows C programs to be linked with "-static -ldl", but 4866 # not sure about C++ programs. 4867 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" 4868 ;; 6367 aix*) 6368 # All AIX code is PIC. 6369 if test "$host_cpu" = ia64; then 6370 # AIX 5 now supports IA64 processor 6371 lt_prog_compiler_static='-Bstatic' 6372 fi 6373 ;; 6374 4869 6375 amigaos*) 4870 6376 # FIXME: we need at least 68020 code to build shared libraries, but 4871 6377 # adding the `-m68020' flag to GCC prevents building anything better, 4872 6378 # like `-m68040'. 4873 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' 4874 ;; 4875 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6379 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6380 ;; 6381 6382 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 4876 6383 # PIC is the default for these OSes. 4877 6384 ;; 6385 6386 mingw* | pw32* | os2*) 6387 # This hack is so that the source file can tell whether it is being 6388 # built for inclusion in a dll (and should export symbols for example). 6389 lt_prog_compiler_pic='-DDLL_EXPORT' 6390 ;; 6391 4878 6392 darwin* | rhapsody*) 4879 6393 # PIC is the default on this platform 4880 6394 # Common symbols not allowed in MH_DYLIB files 4881 lt_cv_prog_cc_pic='-fno-common' 4882 ;; 4883 cygwin* | mingw* | pw32* | os2*) 6395 lt_prog_compiler_pic='-fno-common' 6396 ;; 6397 6398 msdosdjgpp*) 6399 # Just because we use GCC doesn't mean we suddenly get shared libraries 6400 # on systems that don't support them. 6401 lt_prog_compiler_can_build_shared=no 6402 enable_shared=no 6403 ;; 6404 6405 sysv4*MP*) 6406 if test -d /usr/nec; then 6407 lt_prog_compiler_pic=-Kconform_pic 6408 fi 6409 ;; 6410 6411 hpux*) 6412 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6413 # not for PA HP-UX. 6414 case "$host_cpu" in 6415 hppa*64*|ia64*) 6416 # +Z the default 6417 ;; 6418 *) 6419 lt_prog_compiler_pic='-fPIC' 6420 ;; 6421 esac 6422 ;; 6423 6424 *) 6425 lt_prog_compiler_pic='-fPIC' 6426 ;; 6427 esac 6428 else 6429 # PORTME Check for flag to pass linker flags through the system compiler. 6430 case $host_os in 6431 aix*) 6432 lt_prog_compiler_wl='-Wl,' 6433 if test "$host_cpu" = ia64; then 6434 # AIX 5 now supports IA64 processor 6435 lt_prog_compiler_static='-Bstatic' 6436 else 6437 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6438 fi 6439 ;; 6440 6441 mingw* | pw32* | os2*) 4884 6442 # This hack is so that the source file can tell whether it is being 4885 6443 # built for inclusion in a dll (and should export symbols for example). 4886 lt_cv_prog_cc_pic='-DDLL_EXPORT' 4887 ;; 4888 sysv4*MP*) 4889 if test -d /usr/nec; then 4890 lt_cv_prog_cc_pic=-Kconform_pic 4891 fi 4892 ;; 4893 *) 4894 lt_cv_prog_cc_pic='-fPIC' 4895 ;; 4896 esac 4897 else 4898 # PORTME Check for PIC flags for the system compiler. 4899 case $host_os in 4900 aix3* | aix4* | aix5*) 4901 lt_cv_prog_cc_wl='-Wl,' 4902 # All AIX code is PIC. 4903 if test "$host_cpu" = ia64; then 4904 # AIX 5 now supports IA64 processor 4905 lt_cv_prog_cc_static='-Bstatic' 4906 else 4907 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' 4908 fi 6444 lt_prog_compiler_pic='-DDLL_EXPORT' 4909 6445 ;; 4910 6446 4911 6447 hpux9* | hpux10* | hpux11*) 4912 # Is there a better lt_cv_prog_cc_static that works with the bundled CC? 4913 lt_cv_prog_cc_wl='-Wl,' 4914 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" 4915 lt_cv_prog_cc_pic='+Z' 6448 lt_prog_compiler_wl='-Wl,' 6449 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6450 # not for PA HP-UX. 6451 case "$host_cpu" in 6452 hppa*64*|ia64*) 6453 # +Z the default 6454 ;; 6455 *) 6456 lt_prog_compiler_pic='+Z' 6457 ;; 6458 esac 6459 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6460 lt_prog_compiler_static='${wl}-a ${wl}archive' 4916 6461 ;; 4917 6462 4918 6463 irix5* | irix6* | nonstopux*) 4919 lt_cv_prog_cc_wl='-Wl,' 4920 lt_cv_prog_cc_static='-non_shared' 6464 lt_prog_compiler_wl='-Wl,' 4921 6465 # PIC (with -KPIC) is the default. 4922 ;; 4923 4924 cygwin* | mingw* | pw32* | os2*) 4925 # This hack is so that the source file can tell whether it is being 4926 # built for inclusion in a dll (and should export symbols for example). 4927 lt_cv_prog_cc_pic='-DDLL_EXPORT' 6466 lt_prog_compiler_static='-non_shared' 4928 6467 ;; 4929 6468 4930 6469 newsos6) 4931 lt_cv_prog_cc_pic='-KPIC' 4932 lt_cv_prog_cc_static='-Bstatic' 6470 lt_prog_compiler_pic='-KPIC' 6471 lt_prog_compiler_static='-Bstatic' 6472 ;; 6473 6474 linux*) 6475 case $CC in 6476 icc* | ecc*) 6477 lt_prog_compiler_wl='-Wl,' 6478 lt_prog_compiler_pic='-KPIC' 6479 lt_prog_compiler_static='-static' 6480 ;; 6481 ccc*) 6482 lt_prog_compiler_wl='-Wl,' 6483 # All Alpha code is PIC. 6484 lt_prog_compiler_static='-non_shared' 6485 ;; 6486 esac 4933 6487 ;; 4934 6488 4935 6489 osf3* | osf4* | osf5*) 6490 lt_prog_compiler_wl='-Wl,' 4936 6491 # All OSF/1 code is PIC. 4937 lt_cv_prog_cc_wl='-Wl,' 4938 lt_cv_prog_cc_static='-non_shared' 6492 lt_prog_compiler_static='-non_shared' 4939 6493 ;; 4940 6494 4941 6495 sco3.2v5*) 4942 lt_cv_prog_cc_pic='-Kpic' 4943 lt_cv_prog_cc_static='-dn' 4944 lt_cv_prog_cc_shlib='-belf' 6496 lt_prog_compiler_pic='-Kpic' 6497 lt_prog_compiler_static='-dn' 4945 6498 ;; 4946 6499 4947 6500 solaris*) 4948 lt_ cv_prog_cc_pic='-KPIC'4949 lt_ cv_prog_cc_static='-Bstatic'4950 lt_ cv_prog_cc_wl='-Wl,'6501 lt_prog_compiler_wl='-Wl,' 6502 lt_prog_compiler_pic='-KPIC' 6503 lt_prog_compiler_static='-Bstatic' 4951 6504 ;; 4952 6505 4953 6506 sunos4*) 4954 lt_ cv_prog_cc_pic='-PIC'4955 lt_ cv_prog_cc_static='-Bstatic'4956 lt_ cv_prog_cc_wl='-Qoption ld'6507 lt_prog_compiler_wl='-Qoption ld ' 6508 lt_prog_compiler_pic='-PIC' 6509 lt_prog_compiler_static='-Bstatic' 4957 6510 ;; 4958 6511 4959 6512 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 4960 lt_cv_prog_cc_pic='-KPIC' 4961 lt_cv_prog_cc_static='-Bstatic' 4962 lt_cv_prog_cc_wl='-Wl,' 4963 ;; 4964 4965 uts4*) 4966 lt_cv_prog_cc_pic='-pic' 4967 lt_cv_prog_cc_static='-Bstatic' 6513 lt_prog_compiler_wl='-Wl,' 6514 lt_prog_compiler_pic='-KPIC' 6515 lt_prog_compiler_static='-Bstatic' 4968 6516 ;; 4969 6517 4970 6518 sysv4*MP*) 4971 6519 if test -d /usr/nec ;then 4972 lt_ cv_prog_cc_pic='-Kconform_pic'4973 lt_ cv_prog_cc_static='-Bstatic'6520 lt_prog_compiler_pic='-Kconform_pic' 6521 lt_prog_compiler_static='-Bstatic' 4974 6522 fi 4975 6523 ;; 4976 6524 6525 uts4*) 6526 lt_prog_compiler_pic='-pic' 6527 lt_prog_compiler_static='-Bstatic' 6528 ;; 6529 4977 6530 *) 4978 lt_ cv_prog_cc_can_build_shared=no6531 lt_prog_compiler_can_build_shared=no 4979 6532 ;; 4980 6533 esac 4981 6534 fi 4982 6535 4983 fi 4984 4985 if test -z "$lt_cv_prog_cc_pic"; then 4986 echo "$as_me:$LINENO: result: none" >&5 4987 echo "${ECHO_T}none" >&6 4988 else 4989 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5 4990 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 4991 4992 # Check to make sure the pic_flag actually works. 4993 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 4994 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 4995 if test "${lt_cv_prog_cc_pic_works+set}" = set; then 6536 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6537 echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6538 6539 # 6540 # Check to make sure the PIC flag actually works. 6541 # 6542 if test -n "$lt_prog_compiler_pic"; then 6543 6544 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6545 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6546 if test "${lt_prog_compiler_pic_works+set}" = set; then 4996 6547 echo $ECHO_N "(cached) $ECHO_C" >&6 4997 6548 else 4998 save_CFLAGS="$CFLAGS" 4999 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" 5000 cat >conftest.$ac_ext <<_ACEOF 5001 #line $LINENO "configure" 5002 /* confdefs.h. */ 5003 _ACEOF 5004 cat confdefs.h >>conftest.$ac_ext 5005 cat >>conftest.$ac_ext <<_ACEOF 5006 /* end confdefs.h. */ 5007 5008 int 5009 main () 5010 { 5011 5012 ; 5013 return 0; 5014 } 5015 _ACEOF 5016 rm -f conftest.$ac_objext 5017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5018 (eval $ac_compile) 2>&5 5019 ac_status=$? 5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5021 (exit $ac_status); } && 5022 { ac_try='test -s conftest.$ac_objext' 5023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5024 (eval $ac_try) 2>&5 5025 ac_status=$? 5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5027 (exit $ac_status); }; }; then 5028 case $host_os in 5029 hpux9* | hpux10* | hpux11*) 5030 # On HP-UX, both CC and GCC only warn that PIC is supported... then 5031 # they create non-PIC objects. So, if there were any warnings, we 5032 # assume that PIC is not supported. 5033 if test -s conftest.err; then 5034 lt_cv_prog_cc_pic_works=no 5035 else 5036 lt_cv_prog_cc_pic_works=yes 5037 fi 5038 ;; 5039 *) 5040 lt_cv_prog_cc_pic_works=yes 5041 ;; 5042 esac 5043 5044 else 5045 echo "$as_me: failed program was:" >&5 5046 sed 's/^/| /' conftest.$ac_ext >&5 5047 5048 lt_cv_prog_cc_pic_works=no 5049 5050 fi 5051 rm -f conftest.$ac_objext conftest.$ac_ext 5052 CFLAGS="$save_CFLAGS" 5053 5054 fi 5055 5056 5057 if test "X$lt_cv_prog_cc_pic_works" = Xno; then 5058 lt_cv_prog_cc_pic= 5059 lt_cv_prog_cc_can_build_shared=no 5060 else 5061 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" 5062 fi 5063 5064 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5 5065 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6 5066 fi 5067 5068 # Check for any special shared library compilation flags. 5069 if test -n "$lt_cv_prog_cc_shlib"; then 5070 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 5071 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} 5072 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : 5073 else 5074 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 5075 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 5076 lt_cv_prog_cc_can_build_shared=no 5077 fi 5078 fi 5079 5080 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 5081 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 5082 if test "${lt_cv_prog_cc_static_works+set}" = set; then 5083 echo $ECHO_N "(cached) $ECHO_C" >&6 5084 else 5085 lt_cv_prog_cc_static_works=no 5086 save_LDFLAGS="$LDFLAGS" 5087 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" 5088 cat >conftest.$ac_ext <<_ACEOF 5089 #line $LINENO "configure" 5090 /* confdefs.h. */ 5091 _ACEOF 5092 cat confdefs.h >>conftest.$ac_ext 5093 cat >>conftest.$ac_ext <<_ACEOF 5094 /* end confdefs.h. */ 5095 5096 int 5097 main () 5098 { 5099 5100 ; 5101 return 0; 5102 } 5103 _ACEOF 5104 rm -f conftest.$ac_objext conftest$ac_exeext 5105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5106 (eval $ac_link) 2>&5 5107 ac_status=$? 5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5109 (exit $ac_status); } && 5110 { ac_try='test -s conftest$ac_exeext' 5111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5112 (eval $ac_try) 2>&5 5113 ac_status=$? 5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5115 (exit $ac_status); }; }; then 5116 lt_cv_prog_cc_static_works=yes 5117 else 5118 echo "$as_me: failed program was:" >&5 5119 sed 's/^/| /' conftest.$ac_ext >&5 5120 5121 fi 5122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5123 LDFLAGS="$save_LDFLAGS" 5124 5125 fi 5126 5127 5128 # Belt *and* braces to stop my trousers falling down: 5129 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= 5130 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5 5131 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6 5132 5133 pic_flag="$lt_cv_prog_cc_pic" 5134 special_shlib_compile_flags="$lt_cv_prog_cc_shlib" 5135 wl="$lt_cv_prog_cc_wl" 5136 link_static_flag="$lt_cv_prog_cc_static" 5137 no_builtin_flag="$lt_cv_prog_cc_no_builtin" 5138 can_build_shared="$lt_cv_prog_cc_can_build_shared" 5139 5140 5141 # Check to see if options -o and -c are simultaneously supported by compiler 6549 lt_prog_compiler_pic_works=no 6550 ac_outfile=conftest.$ac_objext 6551 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6552 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6553 # Insert the option either (1) after the last *FLAGS variable, or 6554 # (2) before a word containing "conftest.", or (3) at the end. 6555 # Note that $ac_compile itself does not contain backslashes and begins 6556 # with a dollar sign (not a hyphen), so the echo should work correctly. 6557 # The option is referenced via a variable to avoid confusing sed. 6558 lt_compile=`echo "$ac_compile" | $SED \ 6559 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6561 -e 's:$: $lt_compiler_flag:'` 6562 (eval echo "\"\$as_me:6562: $lt_compile\"" >&5) 6563 (eval "$lt_compile" 2>conftest.err) 6564 ac_status=$? 6565 cat conftest.err >&5 6566 echo "$as_me:6566: \$? = $ac_status" >&5 6567 if (exit $ac_status) && test -s "$ac_outfile"; then 6568 # The compiler can only warn and ignore the option if not recognized 6569 # So say no if there are warnings 6570 if test ! -s conftest.err; then 6571 lt_prog_compiler_pic_works=yes 6572 fi 6573 fi 6574 $rm conftest* 6575 6576 fi 6577 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6578 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6579 6580 if test x"$lt_prog_compiler_pic_works" = xyes; then 6581 case $lt_prog_compiler_pic in 6582 "" | " "*) ;; 6583 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6584 esac 6585 else 6586 lt_prog_compiler_pic= 6587 lt_prog_compiler_can_build_shared=no 6588 fi 6589 6590 fi 6591 case "$host_os" in 6592 # For platforms which do not support PIC, -DPIC is meaningless: 6593 *djgpp*) 6594 lt_prog_compiler_pic= 6595 ;; 6596 *) 6597 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6598 ;; 6599 esac 6600 5142 6601 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 5143 6602 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 5144 if test "${lt_cv_ compiler_c_o+set}" = set; then6603 if test "${lt_cv_prog_compiler_c_o+set}" = set; then 5145 6604 echo $ECHO_N "(cached) $ECHO_C" >&6 5146 6605 else 5147 5148 $rm -r conftest 2>/dev/null 5149 mkdir conftest 5150 cd conftest 5151 echo "int some_variable = 0;" > conftest.$ac_ext 5152 mkdir out 5153 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 5154 # that will create temporary files in the current directory regardless of 5155 # the output directory. Thus, making CWD read-only will cause this test 5156 # to fail, enabling locking or at least warning the user not to do parallel 5157 # builds. 5158 chmod -w . 5159 save_CFLAGS="$CFLAGS" 5160 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" 5161 compiler_c_o=no 5162 if { (eval echo configure:5162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then 5163 # The compiler can only warn and ignore the option if not recognized 5164 # So say no if there are warnings 5165 if test -s out/conftest.err; then 5166 lt_cv_compiler_c_o=no 5167 else 5168 lt_cv_compiler_c_o=yes 5169 fi 5170 else 5171 # Append any errors to the config.log. 5172 cat out/conftest.err 1>&5 5173 lt_cv_compiler_c_o=no 5174 fi 5175 CFLAGS="$save_CFLAGS" 5176 chmod u+w . 5177 $rm conftest* out/* 5178 rmdir out 5179 cd .. 5180 rmdir conftest 5181 $rm -r conftest 2>/dev/null 5182 5183 fi 5184 5185 compiler_c_o=$lt_cv_compiler_c_o 5186 echo "$as_me:$LINENO: result: $compiler_c_o" >&5 5187 echo "${ECHO_T}$compiler_c_o" >&6 5188 5189 if test x"$compiler_c_o" = x"yes"; then 5190 # Check to see if we can write to a .lo 5191 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5 5192 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6 5193 if test "${lt_cv_compiler_o_lo+set}" = set; then 5194 echo $ECHO_N "(cached) $ECHO_C" >&6 5195 else 5196 5197 lt_cv_compiler_o_lo=no 5198 save_CFLAGS="$CFLAGS" 5199 CFLAGS="$CFLAGS -c -o conftest.lo" 5200 save_objext="$ac_objext" 5201 ac_objext=lo 5202 cat >conftest.$ac_ext <<_ACEOF 5203 #line $LINENO "configure" 5204 /* confdefs.h. */ 5205 _ACEOF 5206 cat confdefs.h >>conftest.$ac_ext 5207 cat >>conftest.$ac_ext <<_ACEOF 5208 /* end confdefs.h. */ 5209 5210 int 5211 main () 5212 { 5213 int some_variable = 0; 5214 ; 5215 return 0; 5216 } 5217 _ACEOF 5218 rm -f conftest.$ac_objext 5219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5220 (eval $ac_compile) 2>&5 5221 ac_status=$? 5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5223 (exit $ac_status); } && 5224 { ac_try='test -s conftest.$ac_objext' 5225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5226 (eval $ac_try) 2>&5 5227 ac_status=$? 5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5229 (exit $ac_status); }; }; then 5230 # The compiler can only warn and ignore the option if not recognized 5231 # So say no if there are warnings 5232 if test -s conftest.err; then 5233 lt_cv_compiler_o_lo=no 5234 else 5235 lt_cv_compiler_o_lo=yes 5236 fi 5237 5238 else 5239 echo "$as_me: failed program was:" >&5 5240 sed 's/^/| /' conftest.$ac_ext >&5 5241 5242 fi 5243 rm -f conftest.$ac_objext conftest.$ac_ext 5244 ac_objext="$save_objext" 5245 CFLAGS="$save_CFLAGS" 5246 5247 fi 5248 5249 compiler_o_lo=$lt_cv_compiler_o_lo 5250 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5 5251 echo "${ECHO_T}$compiler_o_lo" >&6 5252 else 5253 compiler_o_lo=no 5254 fi 5255 5256 # Check to see if we can do hard links to lock some files if needed 6606 lt_cv_prog_compiler_c_o=no 6607 $rm -r conftest 2>/dev/null 6608 mkdir conftest 6609 cd conftest 6610 mkdir out 6611 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6612 6613 lt_compiler_flag="-o out/conftest2.$ac_objext" 6614 # Insert the option either (1) after the last *FLAGS variable, or 6615 # (2) before a word containing "conftest.", or (3) at the end. 6616 # Note that $ac_compile itself does not contain backslashes and begins 6617 # with a dollar sign (not a hyphen), so the echo should work correctly. 6618 lt_compile=`echo "$ac_compile" | $SED \ 6619 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6620 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6621 -e 's:$: $lt_compiler_flag:'` 6622 (eval echo "\"\$as_me:6622: $lt_compile\"" >&5) 6623 (eval "$lt_compile" 2>out/conftest.err) 6624 ac_status=$? 6625 cat out/conftest.err >&5 6626 echo "$as_me:6626: \$? = $ac_status" >&5 6627 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6628 then 6629 # The compiler can only warn and ignore the option if not recognized 6630 # So say no if there are warnings 6631 if test ! -s out/conftest.err; then 6632 lt_cv_prog_compiler_c_o=yes 6633 fi 6634 fi 6635 chmod u+w . 6636 $rm conftest* 6637 # SGI C++ compiler will create directory out/ii_files/ for 6638 # template instantiation 6639 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 6640 $rm out/* && rmdir out 6641 cd .. 6642 rmdir conftest 6643 $rm conftest* 6644 6645 fi 6646 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6647 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6648 6649 5257 6650 hard_links="nottested" 5258 if test "$ compiler_c_o" = no && test "$need_locks" != no; then6651 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 5259 6652 # do not overwrite the value of need_locks provided by the user 5260 6653 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 … … 5277 6670 fi 5278 6671 5279 if test "$GCC" = yes; then 5280 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler 5281 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 5282 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 5283 echo "int some_variable = 0;" > conftest.$ac_ext 5284 save_CFLAGS="$CFLAGS" 5285 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" 5286 compiler_rtti_exceptions=no 5287 cat >conftest.$ac_ext <<_ACEOF 5288 #line $LINENO "configure" 5289 /* confdefs.h. */ 5290 _ACEOF 5291 cat confdefs.h >>conftest.$ac_ext 5292 cat >>conftest.$ac_ext <<_ACEOF 5293 /* end confdefs.h. */ 5294 5295 int 5296 main () 5297 { 5298 int some_variable = 0; 5299 ; 5300 return 0; 5301 } 5302 _ACEOF 5303 rm -f conftest.$ac_objext 5304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5305 (eval $ac_compile) 2>&5 5306 ac_status=$? 5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5308 (exit $ac_status); } && 5309 { ac_try='test -s conftest.$ac_objext' 5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5311 (eval $ac_try) 2>&5 5312 ac_status=$? 5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5314 (exit $ac_status); }; }; then 5315 # The compiler can only warn and ignore the option if not recognized 5316 # So say no if there are warnings 5317 if test -s conftest.err; then 5318 compiler_rtti_exceptions=no 5319 else 5320 compiler_rtti_exceptions=yes 6672 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6673 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6674 6675 runpath_var= 6676 allow_undefined_flag= 6677 enable_shared_with_static_runtimes=no 6678 archive_cmds= 6679 archive_expsym_cmds= 6680 old_archive_From_new_cmds= 6681 old_archive_from_expsyms_cmds= 6682 export_dynamic_flag_spec= 6683 whole_archive_flag_spec= 6684 thread_safe_flag_spec= 6685 hardcode_libdir_flag_spec= 6686 hardcode_libdir_flag_spec_ld= 6687 hardcode_libdir_separator= 6688 hardcode_direct=no 6689 hardcode_minus_L=no 6690 hardcode_shlibpath_var=unsupported 6691 link_all_deplibs=unknown 6692 hardcode_automatic=no 6693 module_cmds= 6694 module_expsym_cmds= 6695 always_export_symbols=no 6696 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6697 # include_expsyms should be a list of space-separated symbols to be *always* 6698 # included in the symbol list 6699 include_expsyms= 6700 # exclude_expsyms can be an extended regexp of symbols to exclude 6701 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6702 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6703 # as well as any symbol that contains `d'. 6704 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6705 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6706 # platforms (ab)use it in PIC code, but their linkers get confused if 6707 # the symbol is explicitly referenced. Since portable code cannot 6708 # rely on this symbol name, it's probably fine to never include it in 6709 # preloaded symbol tables. 6710 extract_expsyms_cmds= 6711 6712 case $host_os in 6713 cygwin* | mingw* | pw32*) 6714 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6715 # When not using gcc, we currently assume that we are using 6716 # Microsoft Visual C++. 6717 if test "$GCC" != yes; then 6718 with_gnu_ld=no 5321 6719 fi 5322 5323 else 5324 echo "$as_me: failed program was:" >&5 5325 sed 's/^/| /' conftest.$ac_ext >&5 5326 5327 fi 5328 rm -f conftest.$ac_objext conftest.$ac_ext 5329 CFLAGS="$save_CFLAGS" 5330 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5 5331 echo "${ECHO_T}$compiler_rtti_exceptions" >&6 5332 5333 if test "$compiler_rtti_exceptions" = "yes"; then 5334 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' 5335 else 5336 no_builtin_flag=' -fno-builtin' 5337 fi 5338 fi 5339 5340 # See if the linker supports building shared libraries. 5341 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5 5342 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 5343 5344 allow_undefined_flag= 5345 no_undefined_flag= 5346 need_lib_prefix=unknown 5347 need_version=unknown 5348 # when you set need_version to no, make sure it does not cause -set_version 5349 # flags to be left without arguments 5350 archive_cmds= 5351 archive_expsym_cmds= 5352 old_archive_from_new_cmds= 5353 old_archive_from_expsyms_cmds= 5354 export_dynamic_flag_spec= 5355 whole_archive_flag_spec= 5356 thread_safe_flag_spec= 5357 hardcode_into_libs=no 5358 hardcode_libdir_flag_spec= 5359 hardcode_libdir_separator= 5360 hardcode_direct=no 5361 hardcode_minus_L=no 5362 hardcode_shlibpath_var=unsupported 5363 runpath_var= 5364 link_all_deplibs=unknown 5365 always_export_symbols=no 5366 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' 5367 # include_expsyms should be a list of space-separated symbols to be *always* 5368 # included in the symbol list 5369 include_expsyms= 5370 # exclude_expsyms can be an egrep regular expression of symbols to exclude 5371 # it will be wrapped by ` (' and `)$', so one must not match beginning or 5372 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 5373 # as well as any symbol that contains `d'. 5374 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 5375 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 5376 # platforms (ab)use it in PIC code, but their linkers get confused if 5377 # the symbol is explicitly referenced. Since portable code cannot 5378 # rely on this symbol name, it's probably fine to never include it in 5379 # preloaded symbol tables. 5380 extract_expsyms_cmds= 5381 5382 case $host_os in 5383 cygwin* | mingw* | pw32*) 5384 # FIXME: the MSVC++ port hasn't been tested in a loooong time 5385 # When not using gcc, we currently assume that we are using 5386 # Microsoft Visual C++. 5387 if test "$GCC" != yes; then 6720 ;; 6721 openbsd*) 5388 6722 with_gnu_ld=no 5389 fi 5390 ;; 5391 openbsd*) 5392 with_gnu_ld=no 5393 ;; 5394 esac 5395 5396 ld_shlibs=yes 5397 if test "$with_gnu_ld" = yes; then 5398 # If archive_cmds runs LD, not CC, wlarc should be empty 5399 wlarc='${wl}' 5400 5401 # See if GNU ld supports shared libraries. 5402 case $host_os in 5403 aix3* | aix4* | aix5*) 5404 # On AIX, the GNU linker is very broken 5405 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. 5406 ld_shlibs=no 5407 cat <<EOF 1>&2 6723 ;; 6724 esac 6725 6726 ld_shlibs=yes 6727 if test "$with_gnu_ld" = yes; then 6728 # If archive_cmds runs LD, not CC, wlarc should be empty 6729 wlarc='${wl}' 6730 6731 # See if GNU ld supports shared libraries. 6732 case $host_os in 6733 aix3* | aix4* | aix5*) 6734 # On AIX/PPC, the GNU linker is very broken 6735 if test "$host_cpu" != ia64; then 6736 ld_shlibs=no 6737 cat <<EOF 1>&2 5408 6738 5409 6739 *** Warning: the GNU linker, at least up to release 2.9.1, is reported … … 5414 6744 5415 6745 EOF 5416 ;; 5417 5418 amigaos*) 5419 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 5420 hardcode_libdir_flag_spec='-L$libdir' 5421 hardcode_minus_L=yes 5422 5423 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 5424 # that the semantics of dynamic libraries on AmigaOS, at least up 5425 # to version 4, is to share data among multiple programs linked 5426 # with the same dynamic library. Since this doesn't match the 5427 # behavior of shared libraries on other platforms, we can use 5428 # them. 5429 ld_shlibs=no 5430 ;; 5431 5432 beos*) 5433 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 6746 fi 6747 ;; 6748 6749 amigaos*) 6750 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 6751 hardcode_libdir_flag_spec='-L$libdir' 6752 hardcode_minus_L=yes 6753 6754 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6755 # that the semantics of dynamic libraries on AmigaOS, at least up 6756 # to version 4, is to share data among multiple programs linked 6757 # with the same dynamic library. Since this doesn't match the 6758 # behavior of shared libraries on other platforms, we can't use 6759 # them. 6760 ld_shlibs=no 6761 ;; 6762 6763 beos*) 6764 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6765 allow_undefined_flag=unsupported 6766 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6767 # support --undefined. This deserves some investigation. FIXME 6768 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6769 else 6770 ld_shlibs=no 6771 fi 6772 ;; 6773 6774 cygwin* | mingw* | pw32*) 6775 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6776 # as there is no search path for DLLs. 6777 hardcode_libdir_flag_spec='-L$libdir' 5434 6778 allow_undefined_flag=unsupported 5435 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 5436 # support --undefined. This deserves some investigation. FIXME 5437 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5438 else 5439 ld_shlibs=no 5440 fi 5441 ;; 5442 5443 cygwin* | mingw* | pw32*) 5444 # hardcode_libdir_flag_spec is actually meaningless, as there is 5445 # no search path for DLLs. 5446 hardcode_libdir_flag_spec='-L$libdir' 5447 allow_undefined_flag=unsupported 5448 always_export_symbols=yes 5449 5450 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ 5451 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ 5452 test -f $output_objdir/impgen.exe || (cd $output_objdir && \ 5453 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ 5454 else $CC -o impgen impgen.c ; fi)~ 5455 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' 5456 5457 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' 5458 5459 # cygwin and mingw dlls have different entry points and sets of symbols 5460 # to exclude. 5461 # FIXME: what about values for MSVC? 5462 dll_entry=__cygwin_dll_entry@12 5463 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ 5464 case $host_os in 5465 mingw*) 5466 # mingw values 5467 dll_entry=_DllMainCRTStartup@12 5468 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ 5469 ;; 5470 esac 5471 5472 # mingw and cygwin differ, and it's simplest to just exclude the union 5473 # of the two symbol sets. 5474 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 5475 5476 # recent cygwin and mingw systems supply a stub DllMain which the user 5477 # can override, but on older systems we have to supply one (in ltdll.c) 5478 if test "x$lt_cv_need_dllmain" = "xyes"; then 5479 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " 5480 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ 5481 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' 5482 else 5483 ltdll_obj= 5484 ltdll_cmds= 5485 fi 5486 5487 # Extract the symbol export list from an `--export-all' def file, 5488 # then regenerate the def file from the symbol export list, so that 5489 # the compiled dll only exports the symbol export list. 5490 # Be careful not to strip the DATA tag left be newer dlltools. 5491 export_symbols_cmds="$ltdll_cmds"' 5492 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ 5493 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' 5494 5495 # If the export-symbols file already is a .def file (1st line 5496 # is EXPORTS), use it as is. 5497 # If DATA tags from a recent dlltool are present, honour them! 5498 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then 5499 cp $export_symbols $output_objdir/$soname-def; 6779 always_export_symbols=no 6780 enable_shared_with_static_runtimes=yes 6781 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6782 6783 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6785 # If the export-symbols file already is a .def file (1st line 6786 # is EXPORTS), use it as is; otherwise, prepend... 6787 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6788 cp $export_symbols $output_objdir/$soname.def; 6789 else 6790 echo EXPORTS > $output_objdir/$soname.def; 6791 cat $export_symbols >> $output_objdir/$soname.def; 6792 fi~ 6793 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 5500 6794 else 5501 echo EXPORTS > $output_objdir/$soname-def; 5502 _lt_hint=1; 5503 cat $export_symbols | while read symbol; do 5504 set dummy \$symbol; 5505 case \$# in 5506 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; 5507 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;; 5508 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; 5509 esac; 5510 _lt_hint=`expr 1 + \$_lt_hint`; 5511 done; 5512 fi~ 5513 '"$ltdll_cmds"' 5514 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ 5515 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ 5516 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ 5517 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ 5518 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' 5519 ;; 5520 5521 netbsd*) 5522 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 5523 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 5524 wlarc= 5525 else 5526 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5527 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5528 fi 5529 ;; 5530 5531 solaris* | sysv5*) 5532 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then 5533 ld_shlibs=no 5534 cat <<EOF 1>&2 6795 ld_shlibs=no 6796 fi 6797 ;; 6798 6799 netbsd*) 6800 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6801 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6802 wlarc= 6803 else 6804 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6805 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6806 fi 6807 ;; 6808 6809 solaris* | sysv5*) 6810 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 6811 ld_shlibs=no 6812 cat <<EOF 1>&2 5535 6813 5536 6814 *** Warning: The releases 2.8.* of the GNU linker cannot reliably … … 5542 6820 5543 6821 EOF 5544 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 5545 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5546 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6822 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6823 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6824 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6825 else 6826 ld_shlibs=no 6827 fi 6828 ;; 6829 6830 sunos4*) 6831 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6832 wlarc= 6833 hardcode_direct=yes 6834 hardcode_shlibpath_var=no 6835 ;; 6836 6837 linux*) 6838 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6839 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6840 archive_cmds="$tmp_archive_cmds" 6841 supports_anon_versioning=no 6842 case `$LD -v 2>/dev/null` in 6843 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6844 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6845 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6846 *\ 2.11.*) ;; # other 2.11 versions 6847 *) supports_anon_versioning=yes ;; 6848 esac 6849 if test $supports_anon_versioning = yes; then 6850 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 6851 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6852 $echo "local: *; };" >> $output_objdir/$libname.ver~ 6853 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6854 else 6855 archive_expsym_cmds="$tmp_archive_cmds" 6856 fi 5547 6857 else 5548 6858 ld_shlibs=no … … 5550 6860 ;; 5551 6861 5552 sunos4*) 5553 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5554 wlarc= 5555 hardcode_direct=yes 5556 hardcode_shlibpath_var=no 5557 ;; 5558 5559 *) 5560 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 5561 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5562 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6862 *) 6863 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6864 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6865 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6866 else 6867 ld_shlibs=no 6868 fi 6869 ;; 6870 esac 6871 6872 if test "$ld_shlibs" = yes; then 6873 runpath_var=LD_RUN_PATH 6874 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6875 export_dynamic_flag_spec='${wl}--export-dynamic' 6876 # ancient GNU ld didn't support --whole-archive et. al. 6877 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6878 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6879 else 6880 whole_archive_flag_spec= 6881 fi 6882 fi 6883 else 6884 # PORTME fill in a description of your system's linker (not GNU ld) 6885 case $host_os in 6886 aix3*) 6887 allow_undefined_flag=unsupported 6888 always_export_symbols=yes 6889 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 6890 # Note: this linker hardcodes the directories in LIBPATH if there 6891 # are no directories specified by -L. 6892 hardcode_minus_L=yes 6893 if test "$GCC" = yes && test -z "$link_static_flag"; then 6894 # Neither direct hardcoding nor static linking is supported with a 6895 # broken collect2. 6896 hardcode_direct=unsupported 6897 fi 6898 ;; 6899 6900 aix4* | aix5*) 6901 if test "$host_cpu" = ia64; then 6902 # On IA64, the linker does run time linking by default, so we don't 6903 # have to do anything special. 6904 aix_use_runtimelinking=no 6905 exp_sym_flag='-Bexport' 6906 no_entry_flag="" 6907 else 6908 # If we're using GNU nm, then we don't want the "-C" option. 6909 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6910 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 6911 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 6912 else 6913 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 6914 fi 6915 aix_use_runtimelinking=no 6916 6917 # Test if we are trying to use run time linking or normal 6918 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6919 # need to do runtime linking. 6920 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 6921 for ld_flag in $LDFLAGS; do 6922 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6923 aix_use_runtimelinking=yes 6924 break 6925 fi 6926 done 6927 esac 6928 6929 exp_sym_flag='-bexport' 6930 no_entry_flag='-bnoentry' 6931 fi 6932 6933 # When large executables or shared objects are built, AIX ld can 6934 # have problems creating the table of contents. If linking a library 6935 # or program results in "error TOC overflow" add -mminimal-toc to 6936 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6937 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6938 6939 archive_cmds='' 6940 hardcode_direct=yes 6941 hardcode_libdir_separator=':' 6942 link_all_deplibs=yes 6943 6944 if test "$GCC" = yes; then 6945 case $host_os in aix4.012|aix4.012.*) 6946 # We only want to do this on AIX 4.2 and lower, the check 6947 # below for broken collect2 doesn't work under 4.3+ 6948 collect2name=`${CC} -print-prog-name=collect2` 6949 if test -f "$collect2name" && \ 6950 strings "$collect2name" | grep resolve_lib_name >/dev/null 6951 then 6952 # We have reworked collect2 6953 hardcode_direct=yes 6954 else 6955 # We have old collect2 6956 hardcode_direct=unsupported 6957 # It fails to find uninstalled libraries when the uninstalled 6958 # path is not listed in the libpath. Setting hardcode_minus_L 6959 # to unsupported forces relinking 6960 hardcode_minus_L=yes 6961 hardcode_libdir_flag_spec='-L$libdir' 6962 hardcode_libdir_separator= 6963 fi 6964 esac 6965 shared_flag='-shared' 6966 else 6967 # not using gcc 6968 if test "$host_cpu" = ia64; then 6969 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6970 # chokes on -Wl,-G. The following line is correct: 6971 shared_flag='-G' 6972 else 6973 if test "$aix_use_runtimelinking" = yes; then 6974 shared_flag='${wl}-G' 6975 else 6976 shared_flag='${wl}-bM:SRE' 6977 fi 6978 fi 6979 fi 6980 6981 # It seems that -bexpall does not export symbols beginning with 6982 # underscore (_), so it is better to generate a list of symbols to export. 6983 always_export_symbols=yes 6984 if test "$aix_use_runtimelinking" = yes; then 6985 # Warning - without using the other runtime loading flags (-brtl), 6986 # -berok will link without error, but may produce a broken library. 6987 allow_undefined_flag='-berok' 6988 # Determine the default libpath from the value encoded in an empty executable. 6989 cat >conftest.$ac_ext <<_ACEOF 6990 /* confdefs.h. */ 6991 _ACEOF 6992 cat confdefs.h >>conftest.$ac_ext 6993 cat >>conftest.$ac_ext <<_ACEOF 6994 /* end confdefs.h. */ 6995 6996 int 6997 main () 6998 { 6999 7000 ; 7001 return 0; 7002 } 7003 _ACEOF 7004 rm -f conftest.$ac_objext conftest$ac_exeext 7005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7006 (eval $ac_link) 2>conftest.er1 7007 ac_status=$? 7008 grep -v '^ *+' conftest.er1 >conftest.err 7009 rm -f conftest.er1 7010 cat conftest.err >&5 7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7012 (exit $ac_status); } && 7013 { ac_try='test -z "$ac_c_werror_flag" 7014 || test ! -s conftest.err' 7015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7016 (eval $ac_try) 2>&5 7017 ac_status=$? 7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7019 (exit $ac_status); }; } && 7020 { ac_try='test -s conftest$ac_exeext' 7021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7022 (eval $ac_try) 2>&5 7023 ac_status=$? 7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7025 (exit $ac_status); }; }; then 7026 7027 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7028 }'` 7029 # Check for a 64-bit object if we didn't find anything. 7030 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; } 7031 }'`; fi 7032 else 7033 echo "$as_me: failed program was:" >&5 7034 sed 's/^/| /' conftest.$ac_ext >&5 7035 7036 fi 7037 rm -f conftest.err conftest.$ac_objext \ 7038 conftest$ac_exeext conftest.$ac_ext 7039 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7040 7041 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7042 archive_expsym_cmds="\$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" 7043 else 7044 if test "$host_cpu" = ia64; then 7045 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7046 allow_undefined_flag="-z nodefs" 7047 archive_expsym_cmds="\$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" 7048 else 7049 # Determine the default libpath from the value encoded in an empty executable. 7050 cat >conftest.$ac_ext <<_ACEOF 7051 /* confdefs.h. */ 7052 _ACEOF 7053 cat confdefs.h >>conftest.$ac_ext 7054 cat >>conftest.$ac_ext <<_ACEOF 7055 /* end confdefs.h. */ 7056 7057 int 7058 main () 7059 { 7060 7061 ; 7062 return 0; 7063 } 7064 _ACEOF 7065 rm -f conftest.$ac_objext conftest$ac_exeext 7066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7067 (eval $ac_link) 2>conftest.er1 7068 ac_status=$? 7069 grep -v '^ *+' conftest.er1 >conftest.err 7070 rm -f conftest.er1 7071 cat conftest.err >&5 7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7073 (exit $ac_status); } && 7074 { ac_try='test -z "$ac_c_werror_flag" 7075 || test ! -s conftest.err' 7076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7077 (eval $ac_try) 2>&5 7078 ac_status=$? 7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7080 (exit $ac_status); }; } && 7081 { ac_try='test -s conftest$ac_exeext' 7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7083 (eval $ac_try) 2>&5 7084 ac_status=$? 7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7086 (exit $ac_status); }; }; then 7087 7088 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7089 }'` 7090 # Check for a 64-bit object if we didn't find anything. 7091 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; } 7092 }'`; fi 7093 else 7094 echo "$as_me: failed program was:" >&5 7095 sed 's/^/| /' conftest.$ac_ext >&5 7096 7097 fi 7098 rm -f conftest.err conftest.$ac_objext \ 7099 conftest$ac_exeext conftest.$ac_ext 7100 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7101 7102 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7103 # Warning - without using the other run time loading flags, 7104 # -berok will link without error, but may produce a broken library. 7105 no_undefined_flag=' ${wl}-bernotok' 7106 allow_undefined_flag=' ${wl}-berok' 7107 # -bexpall does not export symbols beginning with underscore (_) 7108 always_export_symbols=yes 7109 # Exported symbols can be pulled into shared objects from archives 7110 whole_archive_flag_spec=' ' 7111 archive_cmds_need_lc=yes 7112 # This is similar to how AIX traditionally builds it's shared libraries. 7113 archive_expsym_cmds="\$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' 7114 fi 7115 fi 7116 ;; 7117 7118 amigaos*) 7119 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 7120 hardcode_libdir_flag_spec='-L$libdir' 7121 hardcode_minus_L=yes 7122 # see comment about different semantics on the GNU ld section 7123 ld_shlibs=no 7124 ;; 7125 7126 bsdi4*) 7127 export_dynamic_flag_spec=-rdynamic 7128 ;; 7129 7130 cygwin* | mingw* | pw32*) 7131 # When not using gcc, we currently assume that we are using 7132 # Microsoft Visual C++. 7133 # hardcode_libdir_flag_spec is actually meaningless, as there is 7134 # no search path for DLLs. 7135 hardcode_libdir_flag_spec=' ' 7136 allow_undefined_flag=unsupported 7137 # Tell ltmain to make .lib files, not .a files. 7138 libext=lib 7139 # Tell ltmain to make .dll files, not .so files. 7140 shrext_cmds=".dll" 7141 # FIXME: Setting linknames here is a bad hack. 7142 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7143 # The linker will automatically build a .lib file if we build a DLL. 7144 old_archive_From_new_cmds='true' 7145 # FIXME: Should let the user specify the lib program. 7146 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7147 fix_srcfile_path='`cygpath -w "$srcfile"`' 7148 enable_shared_with_static_runtimes=yes 7149 ;; 7150 7151 darwin* | rhapsody*) 7152 if test "$GXX" = yes ; then 7153 archive_cmds_need_lc=no 7154 case "$host_os" in 7155 rhapsody* | darwin1.[012]) 7156 allow_undefined_flag='-undefined suppress' 7157 ;; 7158 *) # Darwin 1.3 on 7159 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7160 allow_undefined_flag='-flat_namespace -undefined suppress' 7161 else 7162 case ${MACOSX_DEPLOYMENT_TARGET} in 7163 10.[012]) 7164 allow_undefined_flag='-flat_namespace -undefined suppress' 7165 ;; 7166 10.*) 7167 allow_undefined_flag='-undefined dynamic_lookup' 7168 ;; 7169 esac 7170 fi 7171 ;; 7172 esac 7173 lt_int_apple_cc_single_mod=no 7174 output_verbose_link_cmd='echo' 7175 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 7176 lt_int_apple_cc_single_mod=yes 7177 fi 7178 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 7179 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7180 else 7181 archive_cmds='$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' 7182 fi 7183 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7184 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 7185 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 7186 archive_expsym_cmds='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}' 7187 else 7188 archive_expsym_cmds='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}' 7189 fi 7190 module_expsym_cmds='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}' 7191 hardcode_direct=no 7192 hardcode_automatic=yes 7193 hardcode_shlibpath_var=unsupported 7194 whole_archive_flag_spec='-all_load $convenience' 7195 link_all_deplibs=yes 5563 7196 else 5564 7197 ld_shlibs=no 5565 7198 fi 7199 ;; 7200 7201 dgux*) 7202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7203 hardcode_libdir_flag_spec='-L$libdir' 7204 hardcode_shlibpath_var=no 7205 ;; 7206 7207 freebsd1*) 7208 ld_shlibs=no 7209 ;; 7210 7211 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7212 # support. Future versions do this automatically, but an explicit c++rt0.o 7213 # does not break anything, and helps significantly (at the cost of a little 7214 # extra space). 7215 freebsd2.2*) 7216 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7217 hardcode_libdir_flag_spec='-R$libdir' 7218 hardcode_direct=yes 7219 hardcode_shlibpath_var=no 7220 ;; 7221 7222 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7223 freebsd2*) 7224 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7225 hardcode_direct=yes 7226 hardcode_minus_L=yes 7227 hardcode_shlibpath_var=no 7228 ;; 7229 7230 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7231 freebsd* | kfreebsd*-gnu) 7232 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7233 hardcode_libdir_flag_spec='-R$libdir' 7234 hardcode_direct=yes 7235 hardcode_shlibpath_var=no 7236 ;; 7237 7238 hpux9*) 7239 if test "$GCC" = yes; then 7240 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 7241 else 7242 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 7243 fi 7244 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7245 hardcode_libdir_separator=: 7246 hardcode_direct=yes 7247 7248 # hardcode_minus_L: Not really in the search PATH, 7249 # but as the default location of the library. 7250 hardcode_minus_L=yes 7251 export_dynamic_flag_spec='${wl}-E' 7252 ;; 7253 7254 hpux10* | hpux11*) 7255 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7256 case "$host_cpu" in 7257 hppa*64*|ia64*) 7258 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7259 ;; 7260 *) 7261 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7262 ;; 7263 esac 7264 else 7265 case "$host_cpu" in 7266 hppa*64*|ia64*) 7267 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 7268 ;; 7269 *) 7270 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7271 ;; 7272 esac 7273 fi 7274 if test "$with_gnu_ld" = no; then 7275 case "$host_cpu" in 7276 hppa*64*) 7277 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7278 hardcode_libdir_flag_spec_ld='+b $libdir' 7279 hardcode_libdir_separator=: 7280 hardcode_direct=no 7281 hardcode_shlibpath_var=no 7282 ;; 7283 ia64*) 7284 hardcode_libdir_flag_spec='-L$libdir' 7285 hardcode_direct=no 7286 hardcode_shlibpath_var=no 7287 7288 # hardcode_minus_L: Not really in the search PATH, 7289 # but as the default location of the library. 7290 hardcode_minus_L=yes 7291 ;; 7292 *) 7293 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7294 hardcode_libdir_separator=: 7295 hardcode_direct=yes 7296 export_dynamic_flag_spec='${wl}-E' 7297 7298 # hardcode_minus_L: Not really in the search PATH, 7299 # but as the default location of the library. 7300 hardcode_minus_L=yes 7301 ;; 7302 esac 7303 fi 7304 ;; 7305 7306 irix5* | irix6* | nonstopux*) 7307 if test "$GCC" = yes; then 7308 archive_cmds='$CC -shared $libobjs $deplibs $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' 7309 else 7310 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 7311 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7312 fi 7313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7314 hardcode_libdir_separator=: 7315 link_all_deplibs=yes 7316 ;; 7317 7318 netbsd*) 7319 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7320 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7321 else 7322 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7323 fi 7324 hardcode_libdir_flag_spec='-R$libdir' 7325 hardcode_direct=yes 7326 hardcode_shlibpath_var=no 7327 ;; 7328 7329 newsos6) 7330 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7331 hardcode_direct=yes 7332 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7333 hardcode_libdir_separator=: 7334 hardcode_shlibpath_var=no 7335 ;; 7336 7337 openbsd*) 7338 hardcode_direct=yes 7339 hardcode_shlibpath_var=no 7340 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7341 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7342 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7343 export_dynamic_flag_spec='${wl}-E' 7344 else 7345 case $host_os in 7346 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7347 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7348 hardcode_libdir_flag_spec='-R$libdir' 7349 ;; 7350 *) 7351 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7352 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7353 ;; 7354 esac 7355 fi 7356 ;; 7357 7358 os2*) 7359 hardcode_libdir_flag_spec='-L$libdir' 7360 hardcode_minus_L=yes 7361 allow_undefined_flag=unsupported 7362 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 7363 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7364 ;; 7365 7366 osf3*) 7367 if test "$GCC" = yes; then 7368 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7369 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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' 7370 else 7371 allow_undefined_flag=' -expect_unresolved \*' 7372 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 7373 fi 7374 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7375 hardcode_libdir_separator=: 7376 ;; 7377 7378 osf4* | osf5*) # as osf3* with the addition of -msym flag 7379 if test "$GCC" = yes; then 7380 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7381 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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' 7382 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7383 else 7384 allow_undefined_flag=' -expect_unresolved \*' 7385 archive_cmds='$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' 7386 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7387 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 7388 7389 # Both c and cxx compiler support -rpath directly 7390 hardcode_libdir_flag_spec='-rpath $libdir' 7391 fi 7392 hardcode_libdir_separator=: 7393 ;; 7394 7395 sco3.2v5*) 7396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7397 hardcode_shlibpath_var=no 7398 export_dynamic_flag_spec='${wl}-Bexport' 7399 runpath_var=LD_RUN_PATH 7400 hardcode_runpath_var=yes 7401 ;; 7402 7403 solaris*) 7404 no_undefined_flag=' -z text' 7405 if test "$GCC" = yes; then 7406 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7407 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7408 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7409 else 7410 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7411 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7412 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7413 fi 7414 hardcode_libdir_flag_spec='-R$libdir' 7415 hardcode_shlibpath_var=no 7416 case $host_os in 7417 solaris2.[0-5] | solaris2.[0-5].*) ;; 7418 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 7419 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7420 esac 7421 link_all_deplibs=yes 7422 ;; 7423 7424 sunos4*) 7425 if test "x$host_vendor" = xsequent; then 7426 # Use $CC to link under sequent, because it throws in some extra .o 7427 # files that make .init and .fini sections work. 7428 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7429 else 7430 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7431 fi 7432 hardcode_libdir_flag_spec='-L$libdir' 7433 hardcode_direct=yes 7434 hardcode_minus_L=yes 7435 hardcode_shlibpath_var=no 7436 ;; 7437 7438 sysv4) 7439 case $host_vendor in 7440 sni) 7441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7442 hardcode_direct=yes # is this really true??? 7443 ;; 7444 siemens) 7445 ## LD is ld it makes a PLAMLIB 7446 ## CC just makes a GrossModule. 7447 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7448 reload_cmds='$CC -r -o $output$reload_objs' 7449 hardcode_direct=no 7450 ;; 7451 motorola) 7452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7453 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7454 ;; 7455 esac 7456 runpath_var='LD_RUN_PATH' 7457 hardcode_shlibpath_var=no 7458 ;; 7459 7460 sysv4.3*) 7461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7462 hardcode_shlibpath_var=no 7463 export_dynamic_flag_spec='-Bexport' 7464 ;; 7465 7466 sysv4*MP*) 7467 if test -d /usr/nec; then 7468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7469 hardcode_shlibpath_var=no 7470 runpath_var=LD_RUN_PATH 7471 hardcode_runpath_var=yes 7472 ld_shlibs=yes 7473 fi 7474 ;; 7475 7476 sysv4.2uw2*) 7477 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7478 hardcode_direct=yes 7479 hardcode_minus_L=no 7480 hardcode_shlibpath_var=no 7481 hardcode_runpath_var=yes 7482 runpath_var=LD_RUN_PATH 7483 ;; 7484 7485 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 7486 no_undefined_flag='${wl}-z ${wl}text' 7487 if test "$GCC" = yes; then 7488 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7489 else 7490 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7491 fi 7492 runpath_var='LD_RUN_PATH' 7493 hardcode_shlibpath_var=no 7494 ;; 7495 7496 sysv5*) 7497 no_undefined_flag=' -z text' 7498 # $CC -shared without GNU ld will not create a library from C++ 7499 # object files and a static libstdc++, better avoid it by now 7500 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7501 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7502 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7503 hardcode_libdir_flag_spec= 7504 hardcode_shlibpath_var=no 7505 runpath_var='LD_RUN_PATH' 7506 ;; 7507 7508 uts4*) 7509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7510 hardcode_libdir_flag_spec='-L$libdir' 7511 hardcode_shlibpath_var=no 7512 ;; 7513 7514 *) 7515 ld_shlibs=no 7516 ;; 7517 esac 7518 fi 7519 7520 echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7521 echo "${ECHO_T}$ld_shlibs" >&6 7522 test "$ld_shlibs" = no && can_build_shared=no 7523 7524 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 7525 if test "$GCC" = yes; then 7526 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 7527 fi 7528 7529 # 7530 # Do we need to explicitly link libc? 7531 # 7532 case "x$archive_cmds_need_lc" in 7533 x|xyes) 7534 # Assume -lc should be added 7535 archive_cmds_need_lc=yes 7536 7537 if test "$enable_shared" = yes && test "$GCC" = yes; then 7538 case $archive_cmds in 7539 *'~'*) 7540 # FIXME: we may have to deal with multi-command sequences. 7541 ;; 7542 '$CC '*) 7543 # Test whether the compiler implicitly links with -lc since on some 7544 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7545 # to ld, don't add -lc before -lgcc. 7546 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7547 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7548 $rm conftest* 7549 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7550 7551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7552 (eval $ac_compile) 2>&5 7553 ac_status=$? 7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7555 (exit $ac_status); } 2>conftest.err; then 7556 soname=conftest 7557 lib=conftest 7558 libobjs=conftest.$ac_objext 7559 deplibs= 7560 wl=$lt_prog_compiler_wl 7561 compiler_flags=-v 7562 linker_flags=-v 7563 verstring= 7564 output_objdir=. 7565 libname=conftest 7566 lt_save_allow_undefined_flag=$allow_undefined_flag 7567 allow_undefined_flag= 7568 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7569 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7570 ac_status=$? 7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7572 (exit $ac_status); } 7573 then 7574 archive_cmds_need_lc=no 7575 else 7576 archive_cmds_need_lc=yes 7577 fi 7578 allow_undefined_flag=$lt_save_allow_undefined_flag 7579 else 7580 cat conftest.err 1>&5 7581 fi 7582 $rm conftest* 7583 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7584 echo "${ECHO_T}$archive_cmds_need_lc" >&6 7585 ;; 7586 esac 7587 fi 7588 ;; 7589 esac 7590 7591 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7592 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7593 library_names_spec= 7594 libname_spec='lib$name' 7595 soname_spec= 7596 shrext_cmds=".so" 7597 postinstall_cmds= 7598 postuninstall_cmds= 7599 finish_cmds= 7600 finish_eval= 7601 shlibpath_var= 7602 shlibpath_overrides_runpath=unknown 7603 version_type=none 7604 dynamic_linker="$host_os ld.so" 7605 sys_lib_dlsearch_path_spec="/lib /usr/lib" 7606 if test "$GCC" = yes; then 7607 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7608 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7609 # if the path contains ";" then we assume it to be the separator 7610 # otherwise default to the standard path separator (i.e. ":") - it is 7611 # assumed that no part of a normal pathname contains ";" but that should 7612 # okay in the real world where ";" in dirpaths is itself problematic. 7613 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7614 else 7615 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7616 fi 7617 else 7618 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7619 fi 7620 need_lib_prefix=unknown 7621 hardcode_into_libs=no 7622 7623 # when you set need_version to no, make sure it does not cause -set_version 7624 # flags to be left without arguments 7625 need_version=unknown 7626 7627 case $host_os in 7628 aix3*) 7629 version_type=linux 7630 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7631 shlibpath_var=LIBPATH 7632 7633 # AIX 3 has no versioning support, so we append a major version to the name. 7634 soname_spec='${libname}${release}${shared_ext}$major' 7635 ;; 7636 7637 aix4* | aix5*) 7638 version_type=linux 7639 need_lib_prefix=no 7640 need_version=no 7641 hardcode_into_libs=yes 7642 if test "$host_cpu" = ia64; then 7643 # AIX 5 supports IA64 7644 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7645 shlibpath_var=LD_LIBRARY_PATH 7646 else 7647 # With GCC up to 2.95.x, collect2 would create an import file 7648 # for dependence libraries. The import file would start with 7649 # the line `#! .'. This would cause the generated library to 7650 # depend on `.', always an invalid library. This was fixed in 7651 # development snapshots of GCC prior to 3.0. 7652 case $host_os in 7653 aix4 | aix4.[01] | aix4.[01].*) 7654 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7655 echo ' yes ' 7656 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7657 : 7658 else 7659 can_build_shared=no 7660 fi 7661 ;; 7662 esac 7663 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7664 # soname into executable. Probably we can add versioning support to 7665 # collect2, so additional links can be useful in future. 7666 if test "$aix_use_runtimelinking" = yes; then 7667 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7668 # instead of lib<name>.a to let people know that these are not 7669 # typical AIX shared libraries. 7670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7671 else 7672 # We preserve .a as extension for shared libraries through AIX4.2 7673 # and later when we are not doing run time linking. 7674 library_names_spec='${libname}${release}.a $libname.a' 7675 soname_spec='${libname}${release}${shared_ext}$major' 7676 fi 7677 shlibpath_var=LIBPATH 7678 fi 7679 ;; 7680 7681 amigaos*) 7682 library_names_spec='$libname.ixlibrary $libname.a' 7683 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7684 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 7685 ;; 7686 7687 beos*) 7688 library_names_spec='${libname}${shared_ext}' 7689 dynamic_linker="$host_os ld.so" 7690 shlibpath_var=LIBRARY_PATH 7691 ;; 7692 7693 bsdi4*) 7694 version_type=linux 7695 need_version=no 7696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7697 soname_spec='${libname}${release}${shared_ext}$major' 7698 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7699 shlibpath_var=LD_LIBRARY_PATH 7700 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7701 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7702 # the default ld.so.conf also contains /usr/contrib/lib and 7703 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7704 # libtool to hard-code these into programs 7705 ;; 7706 7707 cygwin* | mingw* | pw32*) 7708 version_type=windows 7709 shrext_cmds=".dll" 7710 need_version=no 7711 need_lib_prefix=no 7712 7713 case $GCC,$host_os in 7714 yes,cygwin* | yes,mingw* | yes,pw32*) 7715 library_names_spec='$libname.dll.a' 7716 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7717 postinstall_cmds='base_file=`basename \${file}`~ 7718 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 7719 dldir=$destdir/`dirname \$dlpath`~ 7720 test -d \$dldir || mkdir -p \$dldir~ 7721 $install_prog $dir/$dlname \$dldir/$dlname' 7722 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7723 dlpath=$dir/\$dldll~ 7724 $rm \$dlpath' 7725 shlibpath_overrides_runpath=yes 7726 7727 case $host_os in 7728 cygwin*) 7729 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7730 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7731 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7732 ;; 7733 mingw*) 7734 # MinGW DLLs use traditional 'lib' prefix 7735 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7736 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7737 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7738 # It is most probably a Windows format PATH printed by 7739 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7740 # path with ; separators, and with drive letters. We can handle the 7741 # drive letters (cygwin fileutils understands them), so leave them, 7742 # especially as we might pass files found there to a mingw objdump, 7743 # which wouldn't understand a cygwinified path. Ahh. 7744 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7745 else 7746 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7747 fi 7748 ;; 7749 pw32*) 7750 # pw32 DLLs use 'pw' prefix rather than 'lib' 7751 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 7752 ;; 7753 esac 7754 ;; 7755 7756 *) 7757 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 5566 7758 ;; 5567 7759 esac 5568 5569 if test "$ld_shlibs" = yes; then 5570 runpath_var=LD_RUN_PATH 5571 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 5572 export_dynamic_flag_spec='${wl}--export-dynamic' 5573 case $host_os in 5574 cygwin* | mingw* | pw32*) 5575 # dlltool doesn't understand --whole-archive et. al. 5576 whole_archive_flag_spec= 5577 ;; 7760 dynamic_linker='Win32 ld.exe' 7761 # FIXME: first we should search . and the directory the executable is in 7762 shlibpath_var=PATH 7763 ;; 7764 7765 darwin* | rhapsody*) 7766 dynamic_linker="$host_os dyld" 7767 version_type=darwin 7768 need_lib_prefix=no 7769 need_version=no 7770 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 7771 soname_spec='${libname}${release}${major}$shared_ext' 7772 shlibpath_overrides_runpath=yes 7773 shlibpath_var=DYLD_LIBRARY_PATH 7774 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 7775 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 7776 if test "$GCC" = yes; then 7777 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"` 7778 else 7779 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 7780 fi 7781 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7782 ;; 7783 7784 dgux*) 7785 version_type=linux 7786 need_lib_prefix=no 7787 need_version=no 7788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 7789 soname_spec='${libname}${release}${shared_ext}$major' 7790 shlibpath_var=LD_LIBRARY_PATH 7791 ;; 7792 7793 freebsd1*) 7794 dynamic_linker=no 7795 ;; 7796 7797 kfreebsd*-gnu) 7798 version_type=linux 7799 need_lib_prefix=no 7800 need_version=no 7801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7802 soname_spec='${libname}${release}${shared_ext}$major' 7803 shlibpath_var=LD_LIBRARY_PATH 7804 shlibpath_overrides_runpath=no 7805 hardcode_into_libs=yes 7806 dynamic_linker='GNU ld.so' 7807 ;; 7808 7809 freebsd*) 7810 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 7811 version_type=freebsd-$objformat 7812 case $version_type in 7813 freebsd-elf*) 7814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 7815 need_version=no 7816 need_lib_prefix=no 7817 ;; 7818 freebsd-*) 7819 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 7820 need_version=yes 7821 ;; 7822 esac 7823 shlibpath_var=LD_LIBRARY_PATH 7824 case $host_os in 7825 freebsd2*) 7826 shlibpath_overrides_runpath=yes 7827 ;; 7828 freebsd3.01* | freebsdelf3.01*) 7829 shlibpath_overrides_runpath=yes 7830 hardcode_into_libs=yes 7831 ;; 7832 *) # from 3.2 on 7833 shlibpath_overrides_runpath=no 7834 hardcode_into_libs=yes 7835 ;; 7836 esac 7837 ;; 7838 7839 gnu*) 7840 version_type=linux 7841 need_lib_prefix=no 7842 need_version=no 7843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 7844 soname_spec='${libname}${release}${shared_ext}$major' 7845 shlibpath_var=LD_LIBRARY_PATH 7846 hardcode_into_libs=yes 7847 ;; 7848 7849 hpux9* | hpux10* | hpux11*) 7850 # Give a soname corresponding to the major version so that dld.sl refuses to 7851 # link against other versions. 7852 version_type=sunos 7853 need_lib_prefix=no 7854 need_version=no 7855 case "$host_cpu" in 7856 ia64*) 7857 shrext_cmds='.so' 7858 hardcode_into_libs=yes 7859 dynamic_linker="$host_os dld.so" 7860 shlibpath_var=LD_LIBRARY_PATH 7861 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7863 soname_spec='${libname}${release}${shared_ext}$major' 7864 if test "X$HPUX_IA64_MODE" = X32; then 7865 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 7866 else 7867 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 7868 fi 7869 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7870 ;; 7871 hppa*64*) 7872 shrext_cmds='.sl' 7873 hardcode_into_libs=yes 7874 dynamic_linker="$host_os dld.sl" 7875 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 7876 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7878 soname_spec='${libname}${release}${shared_ext}$major' 7879 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 7880 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7881 ;; 7882 *) 7883 shrext_cmds='.sl' 7884 dynamic_linker="$host_os dld.sl" 7885 shlibpath_var=SHLIB_PATH 7886 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 7887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7888 soname_spec='${libname}${release}${shared_ext}$major' 7889 ;; 7890 esac 7891 # HP-UX runs *really* slowly unless shared libraries are mode 555. 7892 postinstall_cmds='chmod 555 $lib' 7893 ;; 7894 7895 irix5* | irix6* | nonstopux*) 7896 case $host_os in 7897 nonstopux*) version_type=nonstopux ;; 5578 7898 *) 5579 # ancient GNU ld didn't support --whole-archive et. al. 5580 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then 5581 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 5582 else 5583 whole_archive_flag_spec= 5584 fi 5585 ;; 7899 if test "$lt_cv_prog_gnu_ld" = yes; then 7900 version_type=linux 7901 else 7902 version_type=irix 7903 fi ;; 7904 esac 7905 need_lib_prefix=no 7906 need_version=no 7907 soname_spec='${libname}${release}${shared_ext}$major' 7908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 7909 case $host_os in 7910 irix5* | nonstopux*) 7911 libsuff= shlibsuff= 7912 ;; 7913 *) 7914 case $LD in # libtool.m4 will add one of these switches to LD 7915 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 7916 libsuff= shlibsuff= libmagic=32-bit;; 7917 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 7918 libsuff=32 shlibsuff=N32 libmagic=N32;; 7919 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 7920 libsuff=64 shlibsuff=64 libmagic=64-bit;; 7921 *) libsuff= shlibsuff= libmagic=never-match;; 5586 7922 esac 5587 fi5588 else5589 # PORTME fill in a description of your system's linker (not GNU ld)5590 case $host_os in5591 aix3*)5592 allow_undefined_flag=unsupported5593 always_export_symbols=yes5594 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'5595 # Note: this linker hardcodes the directories in LIBPATH if there5596 # are no directories specified by -L.5597 hardcode_minus_L=yes5598 if test "$GCC" = yes && test -z "$link_static_flag"; then5599 # Neither direct hardcoding nor static linking is supported with a5600 # broken collect2.5601 hardcode_direct=unsupported5602 fi5603 7923 ;; 5604 5605 aix4* | aix5*) 5606 if test "$host_cpu" = ia64; then 5607 # On IA64, the linker does run time linking by default, so we don't 5608 # have to do anything special. 5609 aix_use_runtimelinking=no 5610 exp_sym_flag='-Bexport' 5611 no_entry_flag="" 5612 else 5613 aix_use_runtimelinking=no 5614 5615 # Test if we are trying to use run time linking or normal 5616 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 5617 # need to do runtime linking. 5618 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 5619 for ld_flag in $LDFLAGS; do 5620 case $ld_flag in 5621 *-brtl*) 5622 aix_use_runtimelinking=yes 5623 break 5624 ;; 5625 esac 5626 done 5627 esac 5628 5629 exp_sym_flag='-bexport' 5630 no_entry_flag='-bnoentry' 5631 fi 5632 5633 # When large executables or shared objects are built, AIX ld can 5634 # have problems creating the table of contents. If linking a library 5635 # or program results in "error TOC overflow" add -mminimal-toc to 5636 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 5637 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 5638 5639 hardcode_direct=yes 5640 archive_cmds='' 5641 hardcode_libdir_separator=':' 5642 if test "$GCC" = yes; then 5643 case $host_os in aix4.[012]|aix4.[012].*) 5644 collect2name=`${CC} -print-prog-name=collect2` 5645 if test -f "$collect2name" && \ 5646 strings "$collect2name" | grep resolve_lib_name >/dev/null 5647 then 5648 # We have reworked collect2 5649 hardcode_direct=yes 5650 else 5651 # We have old collect2 5652 hardcode_direct=unsupported 5653 # It fails to find uninstalled libraries when the uninstalled 5654 # path is not listed in the libpath. Setting hardcode_minus_L 5655 # to unsupported forces relinking 5656 hardcode_minus_L=yes 5657 hardcode_libdir_flag_spec='-L$libdir' 5658 hardcode_libdir_separator= 5659 fi 5660 esac 5661 5662 shared_flag='-shared' 5663 else 5664 # not using gcc 5665 if test "$host_cpu" = ia64; then 5666 shared_flag='${wl}-G' 5667 else 5668 if test "$aix_use_runtimelinking" = yes; then 5669 shared_flag='${wl}-G' 5670 else 5671 shared_flag='${wl}-bM:SRE' 5672 fi 5673 fi 5674 fi 5675 5676 # It seems that -bexpall can do strange things, so it is better to 5677 # generate a list of symbols to export. 5678 always_export_symbols=yes 5679 if test "$aix_use_runtimelinking" = yes; then 5680 # Warning - without using the other runtime loading flags (-brtl), 5681 # -berok will link without error, but may produce a broken library. 5682 allow_undefined_flag='-berok' 5683 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' 5684 archive_expsym_cmds="\$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" 5685 else 5686 if test "$host_cpu" = ia64; then 5687 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 5688 allow_undefined_flag="-z nodefs" 5689 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 5690 else 5691 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' 5692 # Warning - without using the other run time loading flags, 5693 # -berok will link without error, but may produce a broken library. 5694 allow_undefined_flag='${wl}-berok' 5695 # This is a bit strange, but is similar to how AIX traditionally builds 5696 # it's shared libraries. 5697 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname' 5698 fi 5699 fi 5700 ;; 5701 5702 amigaos*) 5703 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 5704 hardcode_libdir_flag_spec='-L$libdir' 5705 hardcode_minus_L=yes 5706 # see comment about different semantics on the GNU ld section 5707 ld_shlibs=no 5708 ;; 5709 5710 cygwin* | mingw* | pw32*) 5711 # When not using gcc, we currently assume that we are using 5712 # Microsoft Visual C++. 5713 # hardcode_libdir_flag_spec is actually meaningless, as there is 5714 # no search path for DLLs. 5715 hardcode_libdir_flag_spec=' ' 5716 allow_undefined_flag=unsupported 5717 # Tell ltmain to make .lib files, not .a files. 5718 libext=lib 5719 # FIXME: Setting linknames here is a bad hack. 5720 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 5721 # The linker will automatically build a .lib file if we build a DLL. 5722 old_archive_from_new_cmds='true' 5723 # FIXME: Should let the user specify the lib program. 5724 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 5725 fix_srcfile_path='`cygpath -w "$srcfile"`' 5726 ;; 5727 5728 darwin* | rhapsody*) 5729 case "$host_os" in 5730 rhapsody* | darwin1.[012]) 5731 allow_undefined_flag='-undefined suppress' 5732 ;; 5733 *) # Darwin 1.3 on 5734 allow_undefined_flag='-flat_namespace -undefined suppress' 5735 ;; 5736 esac 5737 # FIXME: Relying on posixy $() will cause problems for 5738 # cross-compilation, but unfortunately the echo tests do not 5739 # yet detect zsh echo's removal of \ escapes. Also zsh mangles 5740 # `"' quotes if we put them in here... so don't! 5741 archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)' 5742 # We need to add '_' to the symbols in $export_symbols first 5743 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' 5744 hardcode_direct=yes 5745 hardcode_shlibpath_var=no 5746 whole_archive_flag_spec='-all_load $convenience' 5747 ;; 5748 5749 freebsd1*) 5750 ld_shlibs=no 5751 ;; 5752 5753 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 5754 # support. Future versions do this automatically, but an explicit c++rt0.o 5755 # does not break anything, and helps significantly (at the cost of a little 5756 # extra space). 5757 freebsd2.2*) 5758 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 5759 hardcode_libdir_flag_spec='-R$libdir' 5760 hardcode_direct=yes 5761 hardcode_shlibpath_var=no 5762 ;; 5763 5764 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 5765 freebsd2*) 5766 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5767 hardcode_direct=yes 5768 hardcode_minus_L=yes 5769 hardcode_shlibpath_var=no 5770 ;; 5771 5772 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 5773 freebsd*) 5774 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 5775 hardcode_libdir_flag_spec='-R$libdir' 5776 hardcode_direct=yes 5777 hardcode_shlibpath_var=no 5778 ;; 5779 5780 hpux9* | hpux10* | hpux11*) 5781 case $host_os in 5782 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; 5783 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; 5784 esac 5785 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 5786 hardcode_libdir_separator=: 5787 hardcode_direct=yes 5788 hardcode_minus_L=yes # Not in the search PATH, but as the default 5789 # location of the library. 5790 export_dynamic_flag_spec='${wl}-E' 5791 ;; 5792 5793 irix5* | irix6* | nonstopux*) 5794 if test "$GCC" = yes; then 5795 archive_cmds='$CC -shared $libobjs $deplibs $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' 5796 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 5797 else 5798 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 5799 hardcode_libdir_flag_spec='-rpath $libdir' 5800 fi 5801 hardcode_libdir_separator=: 5802 link_all_deplibs=yes 5803 ;; 5804 5805 netbsd*) 5806 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 5807 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 5808 else 5809 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 5810 fi 5811 hardcode_libdir_flag_spec='-R$libdir' 5812 hardcode_direct=yes 5813 hardcode_shlibpath_var=no 5814 ;; 5815 5816 newsos6) 5817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5818 hardcode_direct=yes 5819 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 5820 hardcode_libdir_separator=: 5821 hardcode_shlibpath_var=no 5822 ;; 5823 5824 openbsd*) 5825 hardcode_direct=yes 5826 hardcode_shlibpath_var=no 5827 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5828 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5829 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 5830 export_dynamic_flag_spec='${wl}-E' 5831 else 5832 case "$host_os" in 5833 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 5834 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5835 hardcode_libdir_flag_spec='-R$libdir' 5836 ;; 5837 *) 5838 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5839 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7924 esac 7925 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 7926 shlibpath_overrides_runpath=no 7927 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 7928 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 7929 hardcode_into_libs=yes 7930 ;; 7931 7932 # No shared lib support for Linux oldld, aout, or coff. 7933 linux*oldld* | linux*aout* | linux*coff*) 7934 dynamic_linker=no 7935 ;; 7936 7937 # This must be Linux ELF. 7938 linux*) 7939 version_type=linux 7940 need_lib_prefix=no 7941 need_version=no 7942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7943 soname_spec='${libname}${release}${shared_ext}$major' 7944 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 7945 shlibpath_var=LD_LIBRARY_PATH 7946 shlibpath_overrides_runpath=no 7947 # This implies no fast_install, which is unacceptable. 7948 # Some rework will be needed to allow for fast_install 7949 # before this can be enabled. 7950 hardcode_into_libs=yes 7951 7952 # find out which ABI we are using 7953 libsuff= 7954 case "$host_cpu" in 7955 x86_64*|s390x*|powerpc64*) 7956 echo '#line 7956 "configure"' > conftest.$ac_ext 7957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7958 (eval $ac_compile) 2>&5 7959 ac_status=$? 7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7961 (exit $ac_status); }; then 7962 case `/usr/bin/file conftest.$ac_objext` in 7963 *64-bit*) 7964 libsuff=64 7965 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 5840 7966 ;; 5841 7967 esac 5842 7968 fi 7969 rm -rf conftest* 5843 7970 ;; 5844 5845 os2*) 5846 hardcode_libdir_flag_spec='-L$libdir' 5847 hardcode_minus_L=yes 5848 allow_undefined_flag=unsupported 5849 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 5850 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 5851 ;; 5852 5853 osf3*) 5854 if test "$GCC" = yes; then 5855 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 5856 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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' 5857 else 5858 allow_undefined_flag=' -expect_unresolved \*' 5859 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 5860 fi 5861 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 5862 hardcode_libdir_separator=: 5863 ;; 5864 5865 osf4* | osf5*) # as osf3* with the addition of -msym flag 5866 if test "$GCC" = yes; then 5867 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 5868 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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' 5869 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 5870 else 5871 allow_undefined_flag=' -expect_unresolved \*' 5872 archive_cmds='$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' 5873 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 5874 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 5875 5876 #Both c and cxx compiler support -rpath directly 5877 hardcode_libdir_flag_spec='-rpath $libdir' 5878 fi 5879 hardcode_libdir_separator=: 5880 ;; 5881 5882 sco3.2v5*) 5883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5884 hardcode_shlibpath_var=no 5885 runpath_var=LD_RUN_PATH 5886 hardcode_runpath_var=yes 5887 export_dynamic_flag_spec='${wl}-Bexport' 5888 ;; 5889 5890 solaris*) 5891 # gcc --version < 3.0 without binutils cannot create self contained 5892 # shared libraries reliably, requiring libgcc.a to resolve some of 5893 # the object symbols generated in some cases. Libraries that use 5894 # assert need libgcc.a to resolve __eprintf, for example. Linking 5895 # a copy of libgcc.a into every shared library to guarantee resolving 5896 # such symbols causes other problems: According to Tim Van Holder 5897 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate 5898 # (to the application) exception stack for one thing. 5899 no_undefined_flag=' -z defs' 5900 if test "$GCC" = yes; then 5901 case `$CC --version 2>/dev/null` in 5902 [12].*) 5903 cat <<EOF 1>&2 5904 5905 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably 5906 *** create self contained shared libraries on Solaris systems, without 5907 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling 5908 *** -no-undefined support, which will at least allow you to build shared 5909 *** libraries. However, you may find that when you link such libraries 5910 *** into an application without using GCC, you have to manually add 5911 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to 5912 *** upgrade to a newer version of GCC. Another option is to rebuild your 5913 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. 5914 5915 EOF 5916 no_undefined_flag= 7971 esac 7972 7973 # Append ld.so.conf contents to the search path 7974 if test -f /etc/ld.so.conf; then 7975 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 7976 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 7977 fi 7978 7979 # We used to test for /lib/ld.so.1 and disable shared libraries on 7980 # powerpc, because MkLinux only supported shared libraries with the 7981 # GNU dynamic linker. Since this was broken with cross compilers, 7982 # most powerpc-linux boxes support dynamic linking these days and 7983 # people can always --disable-shared, the test was removed, and we 7984 # assume the GNU/Linux dynamic linker is in use. 7985 dynamic_linker='GNU/Linux ld.so' 7986 ;; 7987 7988 knetbsd*-gnu) 7989 version_type=linux 7990 need_lib_prefix=no 7991 need_version=no 7992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7993 soname_spec='${libname}${release}${shared_ext}$major' 7994 shlibpath_var=LD_LIBRARY_PATH 7995 shlibpath_overrides_runpath=no 7996 hardcode_into_libs=yes 7997 dynamic_linker='GNU ld.so' 7998 ;; 7999 8000 netbsd*) 8001 version_type=sunos 8002 need_lib_prefix=no 8003 need_version=no 8004 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8006 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8007 dynamic_linker='NetBSD (a.out) ld.so' 8008 else 8009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8010 soname_spec='${libname}${release}${shared_ext}$major' 8011 dynamic_linker='NetBSD ld.elf_so' 8012 fi 8013 shlibpath_var=LD_LIBRARY_PATH 8014 shlibpath_overrides_runpath=yes 8015 hardcode_into_libs=yes 8016 ;; 8017 8018 newsos6) 8019 version_type=linux 8020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8021 shlibpath_var=LD_LIBRARY_PATH 8022 shlibpath_overrides_runpath=yes 8023 ;; 8024 8025 nto-qnx*) 8026 version_type=linux 8027 need_lib_prefix=no 8028 need_version=no 8029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8030 soname_spec='${libname}${release}${shared_ext}$major' 8031 shlibpath_var=LD_LIBRARY_PATH 8032 shlibpath_overrides_runpath=yes 8033 ;; 8034 8035 openbsd*) 8036 version_type=sunos 8037 need_lib_prefix=no 8038 need_version=yes 8039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8041 shlibpath_var=LD_LIBRARY_PATH 8042 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8043 case $host_os in 8044 openbsd2.[89] | openbsd2.[89].*) 8045 shlibpath_overrides_runpath=no 8046 ;; 8047 *) 8048 shlibpath_overrides_runpath=yes 5917 8049 ;; 5918 8050 esac 5919 fi 5920 # $CC -shared without GNU ld will not create a library from C++ 5921 # object files and a static libstdc++, better avoid it by now 5922 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 5923 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 5924 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 5925 hardcode_libdir_flag_spec='-R$libdir' 5926 hardcode_shlibpath_var=no 5927 case $host_os in 5928 solaris2.[0-5] | solaris2.[0-5].*) ;; 5929 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 5930 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 5931 esac 5932 link_all_deplibs=yes 5933 ;; 5934 5935 sunos4*) 5936 if test "x$host_vendor" = xsequent; then 5937 # Use $CC to link under sequent, because it throws in some extra .o 5938 # files that make .init and .fini sections work. 5939 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 5940 else 5941 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 5942 fi 5943 hardcode_libdir_flag_spec='-L$libdir' 5944 hardcode_direct=yes 5945 hardcode_minus_L=yes 5946 hardcode_shlibpath_var=no 5947 ;; 5948 5949 sysv4) 5950 case $host_vendor in 5951 sni) 5952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5953 hardcode_direct=yes # is this really true??? 5954 ;; 5955 siemens) 5956 ## LD is ld it makes a PLAMLIB 5957 ## CC just makes a GrossModule. 5958 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 5959 reload_cmds='$CC -r -o $output$reload_objs' 5960 hardcode_direct=no 5961 ;; 5962 motorola) 5963 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5964 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 5965 ;; 5966 esac 5967 runpath_var='LD_RUN_PATH' 5968 hardcode_shlibpath_var=no 5969 ;; 5970 5971 sysv4.3*) 5972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5973 hardcode_shlibpath_var=no 5974 export_dynamic_flag_spec='-Bexport' 5975 ;; 5976 5977 sysv5*) 5978 no_undefined_flag=' -z text' 5979 # $CC -shared without GNU ld will not create a library from C++ 5980 # object files and a static libstdc++, better avoid it by now 5981 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 5982 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 5983 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 5984 hardcode_libdir_flag_spec= 5985 hardcode_shlibpath_var=no 5986 runpath_var='LD_RUN_PATH' 5987 ;; 5988 5989 uts4*) 5990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5991 hardcode_libdir_flag_spec='-L$libdir' 5992 hardcode_shlibpath_var=no 5993 ;; 5994 5995 dgux*) 5996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5997 hardcode_libdir_flag_spec='-L$libdir' 5998 hardcode_shlibpath_var=no 5999 ;; 6000 6001 sysv4*MP*) 6002 if test -d /usr/nec; then 6003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6004 hardcode_shlibpath_var=no 8051 else 8052 shlibpath_overrides_runpath=yes 8053 fi 8054 ;; 8055 8056 os2*) 8057 libname_spec='$name' 8058 shrext_cmds=".dll" 8059 need_lib_prefix=no 8060 library_names_spec='$libname${shared_ext} $libname.a' 8061 dynamic_linker='OS/2 ld.exe' 8062 shlibpath_var=LIBPATH 8063 ;; 8064 8065 osf3* | osf4* | osf5*) 8066 version_type=osf 8067 need_lib_prefix=no 8068 need_version=no 8069 soname_spec='${libname}${release}${shared_ext}$major' 8070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8071 shlibpath_var=LD_LIBRARY_PATH 8072 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8073 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8074 ;; 8075 8076 sco3.2v5*) 8077 version_type=osf 8078 soname_spec='${libname}${release}${shared_ext}$major' 8079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8080 shlibpath_var=LD_LIBRARY_PATH 8081 ;; 8082 8083 solaris*) 8084 version_type=linux 8085 need_lib_prefix=no 8086 need_version=no 8087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8088 soname_spec='${libname}${release}${shared_ext}$major' 8089 shlibpath_var=LD_LIBRARY_PATH 8090 shlibpath_overrides_runpath=yes 8091 hardcode_into_libs=yes 8092 # ldd complains unless libraries are executable 8093 postinstall_cmds='chmod +x $lib' 8094 ;; 8095 8096 sunos4*) 8097 version_type=sunos 8098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8099 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8100 shlibpath_var=LD_LIBRARY_PATH 8101 shlibpath_overrides_runpath=yes 8102 if test "$with_gnu_ld" = yes; then 8103 need_lib_prefix=no 8104 fi 8105 need_version=yes 8106 ;; 8107 8108 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8109 version_type=linux 8110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8111 soname_spec='${libname}${release}${shared_ext}$major' 8112 shlibpath_var=LD_LIBRARY_PATH 8113 case $host_vendor in 8114 sni) 8115 shlibpath_overrides_runpath=no 8116 need_lib_prefix=no 8117 export_dynamic_flag_spec='${wl}-Blargedynsym' 6005 8118 runpath_var=LD_RUN_PATH 6006 hardcode_runpath_var=yes 6007 ld_shlibs=yes 6008 fi 6009 ;; 6010 6011 sysv4.2uw2*) 6012 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 6013 hardcode_direct=yes 6014 hardcode_minus_L=no 6015 hardcode_shlibpath_var=no 6016 hardcode_runpath_var=yes 6017 runpath_var=LD_RUN_PATH 6018 ;; 6019 6020 sysv5uw7* | unixware7*) 6021 no_undefined_flag='${wl}-z ${wl}text' 6022 if test "$GCC" = yes; then 6023 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6024 else 6025 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6026 fi 6027 runpath_var='LD_RUN_PATH' 6028 hardcode_shlibpath_var=no 6029 ;; 6030 6031 *) 6032 ld_shlibs=no 6033 ;; 8119 ;; 8120 siemens) 8121 need_lib_prefix=no 8122 ;; 8123 motorola) 8124 need_lib_prefix=no 8125 need_version=no 8126 shlibpath_overrides_runpath=no 8127 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8128 ;; 6034 8129 esac 6035 fi 6036 echo "$as_me:$LINENO: result: $ld_shlibs" >&5 6037 echo "${ECHO_T}$ld_shlibs" >&6 6038 test "$ld_shlibs" = no && can_build_shared=no 6039 6040 # Check hardcoding attributes. 8130 ;; 8131 8132 sysv4*MP*) 8133 if test -d /usr/nec ;then 8134 version_type=linux 8135 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8136 soname_spec='$libname${shared_ext}.$major' 8137 shlibpath_var=LD_LIBRARY_PATH 8138 fi 8139 ;; 8140 8141 uts4*) 8142 version_type=linux 8143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8144 soname_spec='${libname}${release}${shared_ext}$major' 8145 shlibpath_var=LD_LIBRARY_PATH 8146 ;; 8147 8148 *) 8149 dynamic_linker=no 8150 ;; 8151 esac 8152 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8153 echo "${ECHO_T}$dynamic_linker" >&6 8154 test "$dynamic_linker" = no && can_build_shared=no 8155 6041 8156 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 6042 8157 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 6043 8158 hardcode_action= 6044 8159 if test -n "$hardcode_libdir_flag_spec" || \ 6045 test -n "$runpath_var"; then 8160 test -n "$runpath_var " || \ 8161 test "X$hardcode_automatic"="Xyes" ; then 6046 8162 6047 8163 # We can hardcode non-existant directories. … … 6050 8166 # have to relink, otherwise we might link with an installed library 6051 8167 # when we should be linking with a yet-to-be-installed one 6052 ## test "$ hardcode_shlibpath_var" != no &&8168 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 6053 8169 test "$hardcode_minus_L" != no; then 6054 8170 # Linking always hardcodes the temporary library directory. … … 6065 8181 echo "$as_me:$LINENO: result: $hardcode_action" >&5 6066 8182 echo "${ECHO_T}$hardcode_action" >&6 8183 8184 if test "$hardcode_action" = relink; then 8185 # Fast installation is not supported 8186 enable_fast_install=no 8187 elif test "$shlibpath_overrides_runpath" = yes || 8188 test "$enable_shared" = no; then 8189 # Fast installation is not necessary 8190 enable_fast_install=needless 8191 fi 6067 8192 6068 8193 striplib= … … 6076 8201 echo "${ECHO_T}yes" >&6 6077 8202 else 8203 # FIXME - insert some real tests, host_os isn't really good enough 8204 case $host_os in 8205 darwin*) 8206 if test -n "$STRIP" ; then 8207 striplib="$STRIP -x" 8208 echo "$as_me:$LINENO: result: yes" >&5 8209 echo "${ECHO_T}yes" >&6 8210 else 6078 8211 echo "$as_me:$LINENO: result: no" >&5 6079 8212 echo "${ECHO_T}no" >&6 6080 8213 fi 6081 6082 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6083 test -z "$deplibs_check_method" && deplibs_check_method=unknown 6084 6085 # PORTME Fill in your ld.so characteristics 6086 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 6087 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 6088 library_names_spec= 6089 libname_spec='lib$name' 6090 soname_spec= 6091 postinstall_cmds= 6092 postuninstall_cmds= 6093 finish_cmds= 6094 finish_eval= 6095 shlibpath_var= 6096 shlibpath_overrides_runpath=unknown 6097 version_type=none 6098 dynamic_linker="$host_os ld.so" 6099 sys_lib_dlsearch_path_spec="/lib /usr/lib" 6100 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 6101 6102 case $host_os in 6103 aix3*) 6104 version_type=linux 6105 library_names_spec='${libname}${release}.so$versuffix $libname.a' 6106 shlibpath_var=LIBPATH 6107 6108 # AIX has no versioning support, so we append a major version to the name. 6109 soname_spec='${libname}${release}.so$major' 6110 ;; 6111 6112 aix4* | aix5*) 6113 version_type=linux 6114 need_lib_prefix=no 6115 need_version=no 6116 hardcode_into_libs=yes 6117 if test "$host_cpu" = ia64; then 6118 # AIX 5 supports IA64 6119 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' 6120 shlibpath_var=LD_LIBRARY_PATH 6121 else 6122 # With GCC up to 2.95.x, collect2 would create an import file 6123 # for dependence libraries. The import file would start with 6124 # the line `#! .'. This would cause the generated library to 6125 # depend on `.', always an invalid library. This was fixed in 6126 # development snapshots of GCC prior to 3.0. 6127 case $host_os in 6128 aix4 | aix4.[01] | aix4.[01].*) 6129 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 6130 echo ' yes ' 6131 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 6132 : 6133 else 6134 can_build_shared=no 6135 fi 6136 ;; 6137 esac 6138 # AIX (on Power*) has no versioning support, so currently we can 6139 # not hardcode correct soname into executable. Probably we can 6140 # add versioning support to collect2, so additional links can 6141 # be useful in future. 6142 if test "$aix_use_runtimelinking" = yes; then 6143 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 6144 # instead of lib<name>.a to let people know that these are not 6145 # typical AIX shared libraries. 6146 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6147 else 6148 # We preserve .a as extension for shared libraries through AIX4.2 6149 # and later when we are not doing run time linking. 6150 library_names_spec='${libname}${release}.a $libname.a' 6151 soname_spec='${libname}${release}.so$major' 6152 fi 6153 shlibpath_var=LIBPATH 6154 fi 6155 hardcode_into_libs=yes 6156 ;; 6157 6158 amigaos*) 6159 library_names_spec='$libname.ixlibrary $libname.a' 6160 # Create ${libname}_ixlibrary.a entries in /sys/libs. 6161 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' 6162 ;; 6163 6164 beos*) 6165 library_names_spec='${libname}.so' 6166 dynamic_linker="$host_os ld.so" 6167 shlibpath_var=LIBRARY_PATH 6168 ;; 6169 6170 bsdi4*) 6171 version_type=linux 6172 need_version=no 6173 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6174 soname_spec='${libname}${release}.so$major' 6175 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 6176 shlibpath_var=LD_LIBRARY_PATH 6177 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 6178 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 6179 export_dynamic_flag_spec=-rdynamic 6180 # the default ld.so.conf also contains /usr/contrib/lib and 6181 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 6182 # libtool to hard-code these into programs 6183 ;; 6184 6185 cygwin* | mingw* | pw32*) 6186 version_type=windows 6187 need_version=no 6188 need_lib_prefix=no 6189 case $GCC,$host_os in 6190 yes,cygwin*) 6191 library_names_spec='$libname.dll.a' 6192 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 6193 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ 6194 dldir=$destdir/`dirname \$dlpath`~ 6195 test -d \$dldir || mkdir -p \$dldir~ 6196 $install_prog .libs/$dlname \$dldir/$dlname' 6197 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ 6198 dlpath=$dir/\$dldll~ 6199 $rm \$dlpath' 6200 ;; 6201 yes,mingw*) 6202 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 6203 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"` 6204 ;; 6205 yes,pw32*) 6206 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' 6207 ;; 6208 *) 6209 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' 8214 ;; 8215 *) 8216 echo "$as_me:$LINENO: result: no" >&5 8217 echo "${ECHO_T}no" >&6 6210 8218 ;; 6211 8219 esac 6212 dynamic_linker='Win32 ld.exe'6213 # FIXME: first we should search . and the directory the executable is in6214 shlibpath_var=PATH6215 ;;6216 6217 darwin* | rhapsody*)6218 dynamic_linker="$host_os dyld"6219 version_type=darwin6220 need_lib_prefix=no6221 need_version=no6222 # FIXME: Relying on posixy $() will cause problems for6223 # cross-compilation, but unfortunately the echo tests do not6224 # yet detect zsh echo's removal of \ escapes.6225 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'6226 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'6227 shlibpath_overrides_runpath=yes6228 shlibpath_var=DYLD_LIBRARY_PATH6229 ;;6230 6231 freebsd1*)6232 dynamic_linker=no6233 ;;6234 6235 freebsd*)6236 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`6237 version_type=freebsd-$objformat6238 case $version_type in6239 freebsd-elf*)6240 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'6241 need_version=no6242 need_lib_prefix=no6243 ;;6244 freebsd-*)6245 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'6246 need_version=yes6247 ;;6248 esac6249 shlibpath_var=LD_LIBRARY_PATH6250 case $host_os in6251 freebsd2*)6252 shlibpath_overrides_runpath=yes6253 ;;6254 *)6255 shlibpath_overrides_runpath=no6256 hardcode_into_libs=yes6257 ;;6258 esac6259 ;;6260 6261 gnu*)6262 version_type=linux6263 need_lib_prefix=no6264 need_version=no6265 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'6266 soname_spec='${libname}${release}.so$major'6267 shlibpath_var=LD_LIBRARY_PATH6268 hardcode_into_libs=yes6269 ;;6270 6271 hpux9* | hpux10* | hpux11*)6272 # Give a soname corresponding to the major version so that dld.sl refuses to6273 # link against other versions.6274 dynamic_linker="$host_os dld.sl"6275 version_type=sunos6276 need_lib_prefix=no6277 need_version=no6278 shlibpath_var=SHLIB_PATH6279 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH6280 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'6281 soname_spec='${libname}${release}.sl$major'6282 # HP-UX runs *really* slowly unless shared libraries are mode 555.6283 postinstall_cmds='chmod 555 $lib'6284 ;;6285 6286 irix5* | irix6* | nonstopux*)6287 case $host_os in6288 nonstopux*) version_type=nonstopux ;;6289 *) version_type=irix ;;6290 esac6291 need_lib_prefix=no6292 need_version=no6293 soname_spec='${libname}${release}.so$major'6294 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'6295 case $host_os in6296 irix5* | nonstopux*)6297 libsuff= shlibsuff=6298 ;;6299 *)6300 case $LD in # libtool.m4 will add one of these switches to LD6301 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;6302 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;6303 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;6304 *) libsuff= shlibsuff= libmagic=never-match;;6305 esac6306 ;;6307 esac6308 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH6309 shlibpath_overrides_runpath=no6310 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"6311 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"6312 ;;6313 6314 # No shared lib support for Linux oldld, aout, or coff.6315 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)6316 dynamic_linker=no6317 ;;6318 6319 # This must be Linux ELF.6320 linux-gnu*)6321 version_type=linux6322 need_lib_prefix=no6323 need_version=no6324 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'6325 soname_spec='${libname}${release}.so$major'6326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'6327 shlibpath_var=LD_LIBRARY_PATH6328 shlibpath_overrides_runpath=no6329 # This implies no fast_install, which is unacceptable.6330 # Some rework will be needed to allow for fast_install6331 # before this can be enabled.6332 hardcode_into_libs=yes6333 6334 # We used to test for /lib/ld.so.1 and disable shared libraries on6335 # powerpc, because MkLinux only supported shared libraries with the6336 # GNU dynamic linker. Since this was broken with cross compilers,6337 # most powerpc-linux boxes support dynamic linking these days and6338 # people can always --disable-shared, the test was removed, and we6339 # assume the GNU/Linux dynamic linker is in use.6340 dynamic_linker='GNU/Linux ld.so'6341 6342 # Find out which ABI we are using (multilib Linux x86_64 hack).6343 libsuff=6344 case "$host_cpu" in6345 x86_64*|s390x*)6346 echo '#line 6346 "configure"' > conftest.$ac_ext6347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&56348 (eval $ac_compile) 2>&56349 ac_status=$?6350 echo "$as_me:$LINENO: \$? = $ac_status" >&56351 (exit $ac_status); }; then6352 case `/usr/bin/file conftest.$ac_objext` in6353 *64-bit*)6354 libsuff=646355 ;;6356 esac6357 fi6358 rm -rf conftest*6359 ;;6360 *)6361 ;;6362 esac6363 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"6364 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"6365 ;;6366 6367 netbsd*)6368 version_type=sunos6369 need_lib_prefix=no6370 need_version=no6371 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then6372 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'6373 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'6374 dynamic_linker='NetBSD (a.out) ld.so'6375 else6376 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'6377 soname_spec='${libname}${release}.so$major'6378 dynamic_linker='NetBSD ld.elf_so'6379 fi6380 shlibpath_var=LD_LIBRARY_PATH6381 shlibpath_overrides_runpath=yes6382 hardcode_into_libs=yes6383 ;;6384 6385 newsos6)6386 version_type=linux6387 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'6388 shlibpath_var=LD_LIBRARY_PATH6389 shlibpath_overrides_runpath=yes6390 ;;6391 6392 openbsd*)6393 version_type=sunos6394 need_lib_prefix=no6395 need_version=no6396 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then6397 case "$host_os" in6398 openbsd2.[89] | openbsd2.[89].*)6399 shlibpath_overrides_runpath=no6400 ;;6401 *)6402 shlibpath_overrides_runpath=yes6403 ;;6404 esac6405 else6406 shlibpath_overrides_runpath=yes6407 fi6408 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'6409 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'6410 shlibpath_var=LD_LIBRARY_PATH6411 ;;6412 6413 os2*)6414 libname_spec='$name'6415 need_lib_prefix=no6416 library_names_spec='$libname.dll $libname.a'6417 dynamic_linker='OS/2 ld.exe'6418 shlibpath_var=LIBPATH6419 ;;6420 6421 osf3* | osf4* | osf5*)6422 version_type=osf6423 need_version=no6424 soname_spec='${libname}${release}.so$major'6425 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'6426 shlibpath_var=LD_LIBRARY_PATH6427 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"6428 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"6429 hardcode_into_libs=yes6430 ;;6431 6432 sco3.2v5*)6433 version_type=osf6434 soname_spec='${libname}${release}.so$major'6435 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'6436 shlibpath_var=LD_LIBRARY_PATH6437 ;;6438 6439 solaris*)6440 version_type=linux6441 need_lib_prefix=no6442 need_version=no6443 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'6444 soname_spec='${libname}${release}.so$major'6445 shlibpath_var=LD_LIBRARY_PATH6446 shlibpath_overrides_runpath=yes6447 hardcode_into_libs=yes6448 # ldd complains unless libraries are executable6449 postinstall_cmds='chmod +x $lib'6450 ;;6451 6452 sunos4*)6453 version_type=sunos6454 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'6455 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'6456 shlibpath_var=LD_LIBRARY_PATH6457 shlibpath_overrides_runpath=yes6458 if test "$with_gnu_ld" = yes; then6459 need_lib_prefix=no6460 fi6461 need_version=yes6462 ;;6463 6464 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)6465 version_type=linux6466 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'6467 soname_spec='${libname}${release}.so$major'6468 shlibpath_var=LD_LIBRARY_PATH6469 case $host_vendor in6470 sni)6471 shlibpath_overrides_runpath=no6472 need_lib_prefix=no6473 export_dynamic_flag_spec='${wl}-Blargedynsym'6474 runpath_var=LD_RUN_PATH6475 ;;6476 siemens)6477 need_lib_prefix=no6478 ;;6479 motorola)6480 need_lib_prefix=no6481 need_version=no6482 shlibpath_overrides_runpath=no6483 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'6484 ;;6485 esac6486 ;;6487 6488 uts4*)6489 version_type=linux6490 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'6491 soname_spec='${libname}${release}.so$major'6492 shlibpath_var=LD_LIBRARY_PATH6493 ;;6494 6495 dgux*)6496 version_type=linux6497 need_lib_prefix=no6498 need_version=no6499 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'6500 soname_spec='${libname}${release}.so$major'6501 shlibpath_var=LD_LIBRARY_PATH6502 ;;6503 6504 sysv4*MP*)6505 if test -d /usr/nec ;then6506 version_type=linux6507 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'6508 soname_spec='$libname.so.$major'6509 shlibpath_var=LD_LIBRARY_PATH6510 fi6511 ;;6512 6513 *)6514 dynamic_linker=no6515 ;;6516 esac6517 echo "$as_me:$LINENO: result: $dynamic_linker" >&56518 echo "${ECHO_T}$dynamic_linker" >&66519 test "$dynamic_linker" = no && can_build_shared=no6520 6521 # Report the final consequences.6522 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&56523 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&66524 echo "$as_me:$LINENO: result: $can_build_shared" >&56525 echo "${ECHO_T}$can_build_shared" >&66526 6527 echo "$as_me:$LINENO: checking whether to build shared libraries" >&56528 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&66529 test "$can_build_shared" = "no" && enable_shared=no6530 6531 # On AIX, shared libraries and static libraries use the same namespace, and6532 # are all built from PIC.6533 case "$host_os" in6534 aix3*)6535 test "$enable_shared" = yes && enable_static=no6536 if test -n "$RANLIB"; then6537 archive_cmds="$archive_cmds~\$RANLIB \$lib"6538 postinstall_cmds='$RANLIB $lib'6539 fi6540 ;;6541 6542 aix4*)6543 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then6544 test "$enable_shared" = yes && enable_static=no6545 fi6546 ;;6547 esac6548 echo "$as_me:$LINENO: result: $enable_shared" >&56549 echo "${ECHO_T}$enable_shared" >&66550 6551 echo "$as_me:$LINENO: checking whether to build static libraries" >&56552 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&66553 # Make sure either enable_shared or enable_static is yes.6554 test "$enable_shared" = yes || enable_static=yes6555 echo "$as_me:$LINENO: result: $enable_static" >&56556 echo "${ECHO_T}$enable_static" >&66557 6558 if test "$hardcode_action" = relink; then6559 # Fast installation is not supported6560 enable_fast_install=no6561 elif test "$shlibpath_overrides_runpath" = yes ||6562 test "$enable_shared" = no; then6563 # Fast installation is not necessary6564 enable_fast_install=needless6565 fi6566 6567 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"6568 if test "$GCC" = yes; then6569 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"6570 8220 fi 6571 8221 … … 6585 8235 ;; 6586 8236 6587 cygwin* |mingw* | pw32*)8237 mingw* | pw32*) 6588 8238 lt_cv_dlopen="LoadLibrary" 6589 8239 lt_cv_dlopen_libs= 8240 ;; 8241 8242 cygwin*) 8243 lt_cv_dlopen="dlopen" 8244 lt_cv_dlopen_libs= 8245 ;; 8246 8247 darwin*) 8248 # if libdl is installed we need to link against it 8249 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8250 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8251 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8252 echo $ECHO_N "(cached) $ECHO_C" >&6 8253 else 8254 ac_check_lib_save_LIBS=$LIBS 8255 LIBS="-ldl $LIBS" 8256 cat >conftest.$ac_ext <<_ACEOF 8257 /* confdefs.h. */ 8258 _ACEOF 8259 cat confdefs.h >>conftest.$ac_ext 8260 cat >>conftest.$ac_ext <<_ACEOF 8261 /* end confdefs.h. */ 8262 8263 /* Override any gcc2 internal prototype to avoid an error. */ 8264 #ifdef __cplusplus 8265 extern "C" 8266 #endif 8267 /* We use char because int might match the return type of a gcc2 8268 builtin and then its argument prototype would still apply. */ 8269 char dlopen (); 8270 int 8271 main () 8272 { 8273 dlopen (); 8274 ; 8275 return 0; 8276 } 8277 _ACEOF 8278 rm -f conftest.$ac_objext conftest$ac_exeext 8279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8280 (eval $ac_link) 2>conftest.er1 8281 ac_status=$? 8282 grep -v '^ *+' conftest.er1 >conftest.err 8283 rm -f conftest.er1 8284 cat conftest.err >&5 8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8286 (exit $ac_status); } && 8287 { ac_try='test -z "$ac_c_werror_flag" 8288 || test ! -s conftest.err' 8289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8290 (eval $ac_try) 2>&5 8291 ac_status=$? 8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8293 (exit $ac_status); }; } && 8294 { ac_try='test -s conftest$ac_exeext' 8295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8296 (eval $ac_try) 2>&5 8297 ac_status=$? 8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8299 (exit $ac_status); }; }; then 8300 ac_cv_lib_dl_dlopen=yes 8301 else 8302 echo "$as_me: failed program was:" >&5 8303 sed 's/^/| /' conftest.$ac_ext >&5 8304 8305 ac_cv_lib_dl_dlopen=no 8306 fi 8307 rm -f conftest.err conftest.$ac_objext \ 8308 conftest$ac_exeext conftest.$ac_ext 8309 LIBS=$ac_check_lib_save_LIBS 8310 fi 8311 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8312 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8313 if test $ac_cv_lib_dl_dlopen = yes; then 8314 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8315 else 8316 8317 lt_cv_dlopen="dyld" 8318 lt_cv_dlopen_libs= 8319 lt_cv_dlopen_self=yes 8320 8321 fi 8322 6590 8323 ;; 6591 8324 … … 6597 8330 else 6598 8331 cat >conftest.$ac_ext <<_ACEOF 6599 #line $LINENO "configure"6600 8332 /* confdefs.h. */ 6601 8333 _ACEOF … … 6603 8335 cat >>conftest.$ac_ext <<_ACEOF 6604 8336 /* end confdefs.h. */ 8337 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8338 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8339 #define shl_load innocuous_shl_load 8340 6605 8341 /* System header to define __stub macros and hopefully few prototypes, 6606 8342 which can conflict with char shl_load (); below. 6607 8343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6608 8344 <limits.h> exists even on freestanding compilers. */ 8345 6609 8346 #ifdef __STDC__ 6610 8347 # include <limits.h> … … 6612 8349 # include <assert.h> 6613 8350 #endif 8351 8352 #undef shl_load 8353 6614 8354 /* Override any gcc2 internal prototype to avoid an error. */ 6615 8355 #ifdef __cplusplus … … 6642 8382 rm -f conftest.$ac_objext conftest$ac_exeext 6643 8383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6644 (eval $ac_link) 2>&5 8384 (eval $ac_link) 2>conftest.er1 8385 ac_status=$? 8386 grep -v '^ *+' conftest.er1 >conftest.err 8387 rm -f conftest.er1 8388 cat conftest.err >&5 8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8390 (exit $ac_status); } && 8391 { ac_try='test -z "$ac_c_werror_flag" 8392 || test ! -s conftest.err' 8393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8394 (eval $ac_try) 2>&5 6645 8395 ac_status=$? 6646 8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6647 (exit $ac_status); } &&6648 { ac_try='test -s conftest$ac_exeext'8397 (exit $ac_status); }; } && 8398 { ac_try='test -s conftest$ac_exeext' 6649 8399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6650 8400 (eval $ac_try) 2>&5 … … 6659 8409 ac_cv_func_shl_load=no 6660 8410 fi 6661 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8411 rm -f conftest.err conftest.$ac_objext \ 8412 conftest$ac_exeext conftest.$ac_ext 6662 8413 fi 6663 8414 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 … … 6674 8425 LIBS="-ldld $LIBS" 6675 8426 cat >conftest.$ac_ext <<_ACEOF 6676 #line $LINENO "configure"6677 8427 /* confdefs.h. */ 6678 8428 _ACEOF … … 6698 8448 rm -f conftest.$ac_objext conftest$ac_exeext 6699 8449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6700 (eval $ac_link) 2>&5 8450 (eval $ac_link) 2>conftest.er1 8451 ac_status=$? 8452 grep -v '^ *+' conftest.er1 >conftest.err 8453 rm -f conftest.er1 8454 cat conftest.err >&5 8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8456 (exit $ac_status); } && 8457 { ac_try='test -z "$ac_c_werror_flag" 8458 || test ! -s conftest.err' 8459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8460 (eval $ac_try) 2>&5 6701 8461 ac_status=$? 6702 8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6703 (exit $ac_status); } &&6704 { ac_try='test -s conftest$ac_exeext'8463 (exit $ac_status); }; } && 8464 { ac_try='test -s conftest$ac_exeext' 6705 8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6706 8466 (eval $ac_try) 2>&5 … … 6715 8475 ac_cv_lib_dld_shl_load=no 6716 8476 fi 6717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8477 rm -f conftest.err conftest.$ac_objext \ 8478 conftest$ac_exeext conftest.$ac_ext 6718 8479 LIBS=$ac_check_lib_save_LIBS 6719 8480 fi … … 6729 8490 else 6730 8491 cat >conftest.$ac_ext <<_ACEOF 6731 #line $LINENO "configure"6732 8492 /* confdefs.h. */ 6733 8493 _ACEOF … … 6735 8495 cat >>conftest.$ac_ext <<_ACEOF 6736 8496 /* end confdefs.h. */ 8497 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 8498 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8499 #define dlopen innocuous_dlopen 8500 6737 8501 /* System header to define __stub macros and hopefully few prototypes, 6738 8502 which can conflict with char dlopen (); below. 6739 8503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6740 8504 <limits.h> exists even on freestanding compilers. */ 8505 6741 8506 #ifdef __STDC__ 6742 8507 # include <limits.h> … … 6744 8509 # include <assert.h> 6745 8510 #endif 8511 8512 #undef dlopen 8513 6746 8514 /* Override any gcc2 internal prototype to avoid an error. */ 6747 8515 #ifdef __cplusplus … … 6774 8542 rm -f conftest.$ac_objext conftest$ac_exeext 6775 8543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6776 (eval $ac_link) 2>&5 8544 (eval $ac_link) 2>conftest.er1 8545 ac_status=$? 8546 grep -v '^ *+' conftest.er1 >conftest.err 8547 rm -f conftest.er1 8548 cat conftest.err >&5 8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8550 (exit $ac_status); } && 8551 { ac_try='test -z "$ac_c_werror_flag" 8552 || test ! -s conftest.err' 8553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8554 (eval $ac_try) 2>&5 6777 8555 ac_status=$? 6778 8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6779 (exit $ac_status); } &&6780 { ac_try='test -s conftest$ac_exeext'8557 (exit $ac_status); }; } && 8558 { ac_try='test -s conftest$ac_exeext' 6781 8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6782 8560 (eval $ac_try) 2>&5 … … 6791 8569 ac_cv_func_dlopen=no 6792 8570 fi 6793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8571 rm -f conftest.err conftest.$ac_objext \ 8572 conftest$ac_exeext conftest.$ac_ext 6794 8573 fi 6795 8574 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 … … 6806 8585 LIBS="-ldl $LIBS" 6807 8586 cat >conftest.$ac_ext <<_ACEOF 6808 #line $LINENO "configure"6809 8587 /* confdefs.h. */ 6810 8588 _ACEOF … … 6830 8608 rm -f conftest.$ac_objext conftest$ac_exeext 6831 8609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6832 (eval $ac_link) 2>&5 8610 (eval $ac_link) 2>conftest.er1 8611 ac_status=$? 8612 grep -v '^ *+' conftest.er1 >conftest.err 8613 rm -f conftest.er1 8614 cat conftest.err >&5 8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8616 (exit $ac_status); } && 8617 { ac_try='test -z "$ac_c_werror_flag" 8618 || test ! -s conftest.err' 8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8620 (eval $ac_try) 2>&5 6833 8621 ac_status=$? 6834 8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6835 (exit $ac_status); } &&6836 { ac_try='test -s conftest$ac_exeext'8623 (exit $ac_status); }; } && 8624 { ac_try='test -s conftest$ac_exeext' 6837 8625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6838 8626 (eval $ac_try) 2>&5 … … 6847 8635 ac_cv_lib_dl_dlopen=no 6848 8636 fi 6849 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8637 rm -f conftest.err conftest.$ac_objext \ 8638 conftest$ac_exeext conftest.$ac_ext 6850 8639 LIBS=$ac_check_lib_save_LIBS 6851 8640 fi … … 6863 8652 LIBS="-lsvld $LIBS" 6864 8653 cat >conftest.$ac_ext <<_ACEOF 6865 #line $LINENO "configure"6866 8654 /* confdefs.h. */ 6867 8655 _ACEOF … … 6887 8675 rm -f conftest.$ac_objext conftest$ac_exeext 6888 8676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6889 (eval $ac_link) 2>&5 8677 (eval $ac_link) 2>conftest.er1 8678 ac_status=$? 8679 grep -v '^ *+' conftest.er1 >conftest.err 8680 rm -f conftest.er1 8681 cat conftest.err >&5 8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8683 (exit $ac_status); } && 8684 { ac_try='test -z "$ac_c_werror_flag" 8685 || test ! -s conftest.err' 8686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8687 (eval $ac_try) 2>&5 6890 8688 ac_status=$? 6891 8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6892 (exit $ac_status); } &&6893 { ac_try='test -s conftest$ac_exeext'8690 (exit $ac_status); }; } && 8691 { ac_try='test -s conftest$ac_exeext' 6894 8692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6895 8693 (eval $ac_try) 2>&5 … … 6904 8702 ac_cv_lib_svld_dlopen=no 6905 8703 fi 6906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8704 rm -f conftest.err conftest.$ac_objext \ 8705 conftest$ac_exeext conftest.$ac_ext 6907 8706 LIBS=$ac_check_lib_save_LIBS 6908 8707 fi … … 6920 8719 LIBS="-ldld $LIBS" 6921 8720 cat >conftest.$ac_ext <<_ACEOF 6922 #line $LINENO "configure"6923 8721 /* confdefs.h. */ 6924 8722 _ACEOF … … 6944 8742 rm -f conftest.$ac_objext conftest$ac_exeext 6945 8743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6946 (eval $ac_link) 2>&5 8744 (eval $ac_link) 2>conftest.er1 8745 ac_status=$? 8746 grep -v '^ *+' conftest.er1 >conftest.err 8747 rm -f conftest.er1 8748 cat conftest.err >&5 8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8750 (exit $ac_status); } && 8751 { ac_try='test -z "$ac_c_werror_flag" 8752 || test ! -s conftest.err' 8753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8754 (eval $ac_try) 2>&5 6947 8755 ac_status=$? 6948 8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6949 (exit $ac_status); } &&6950 { ac_try='test -s conftest$ac_exeext'8757 (exit $ac_status); }; } && 8758 { ac_try='test -s conftest$ac_exeext' 6951 8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6952 8760 (eval $ac_try) 2>&5 … … 6961 8769 ac_cv_lib_dld_dld_link=no 6962 8770 fi 6963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8771 rm -f conftest.err conftest.$ac_objext \ 8772 conftest$ac_exeext conftest.$ac_ext 6964 8773 LIBS=$ac_check_lib_save_LIBS 6965 8774 fi … … 6997 8806 dlopen) 6998 8807 save_CPPFLAGS="$CPPFLAGS" 6999 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"8808 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 7000 8809 7001 8810 save_LDFLAGS="$LDFLAGS" … … 7013 8822 lt_cv_dlopen_self=cross 7014 8823 else 7015 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=28824 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 7016 8825 lt_status=$lt_dlunknown 7017 8826 cat > conftest.$ac_ext <<EOF 7018 #line 7018"configure"8827 #line 8827 "configure" 7019 8828 #include "confdefs.h" 7020 8829 … … 7111 8920 lt_cv_dlopen_self_static=cross 7112 8921 else 7113 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=28922 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 7114 8923 lt_status=$lt_dlunknown 7115 8924 cat > conftest.$ac_ext <<EOF 7116 #line 7116"configure"8925 #line 8925 "configure" 7117 8926 #include "confdefs.h" 7118 8927 … … 7218 9027 7219 9028 7220 if test "$enable_shared" = yes && test "$GCC" = yes; then 7221 case $archive_cmds in 7222 *'~'*) 7223 # FIXME: we may have to deal with multi-command sequences. 9029 # Report which librarie types wil actually be built 9030 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9031 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9032 echo "$as_me:$LINENO: result: $can_build_shared" >&5 9033 echo "${ECHO_T}$can_build_shared" >&6 9034 9035 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9036 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9037 test "$can_build_shared" = "no" && enable_shared=no 9038 9039 # On AIX, shared libraries and static libraries use the same namespace, and 9040 # are all built from PIC. 9041 case "$host_os" in 9042 aix3*) 9043 test "$enable_shared" = yes && enable_static=no 9044 if test -n "$RANLIB"; then 9045 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9046 postinstall_cmds='$RANLIB $lib' 9047 fi 9048 ;; 9049 9050 aix4* | aix5*) 9051 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9052 test "$enable_shared" = yes && enable_static=no 9053 fi 9054 ;; 9055 darwin* | rhapsody*) 9056 if test "$GCC" = yes; then 9057 archive_cmds_need_lc=no 9058 case "$host_os" in 9059 rhapsody* | darwin1.[012]) 9060 allow_undefined_flag='-undefined suppress' 9061 ;; 9062 *) # Darwin 1.3 on 9063 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 9064 allow_undefined_flag='-flat_namespace -undefined suppress' 9065 else 9066 case ${MACOSX_DEPLOYMENT_TARGET} in 9067 10.[012]) 9068 allow_undefined_flag='-flat_namespace -undefined suppress' 9069 ;; 9070 10.*) 9071 allow_undefined_flag='-undefined dynamic_lookup' 9072 ;; 9073 esac 9074 fi 9075 ;; 9076 esac 9077 output_verbose_link_cmd='echo' 9078 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' 9079 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9080 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 9081 archive_expsym_cmds='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}' 9082 module_expsym_cmds='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}' 9083 hardcode_direct=no 9084 hardcode_automatic=yes 9085 hardcode_shlibpath_var=unsupported 9086 whole_archive_flag_spec='-all_load $convenience' 9087 link_all_deplibs=yes 9088 else 9089 ld_shlibs=no 9090 fi 7224 9091 ;; 7225 '$CC '*) 7226 # Test whether the compiler implicitly links with -lc since on some 7227 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7228 # to ld, don't add -lc before -lgcc. 7229 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7230 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7231 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then 7232 echo $ECHO_N "(cached) $ECHO_C" >&6 7233 else 7234 $rm conftest* 7235 echo 'static int dummy;' > conftest.$ac_ext 7236 7237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7238 (eval $ac_compile) 2>&5 7239 ac_status=$? 7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7241 (exit $ac_status); }; then 7242 soname=conftest 7243 lib=conftest 7244 libobjs=conftest.$ac_objext 7245 deplibs= 7246 wl=$lt_cv_prog_cc_wl 7247 compiler_flags=-v 7248 linker_flags=-v 7249 verstring= 7250 output_objdir=. 7251 libname=conftest 7252 save_allow_undefined_flag=$allow_undefined_flag 7253 allow_undefined_flag= 7254 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7255 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7256 ac_status=$? 7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7258 (exit $ac_status); } 7259 then 7260 lt_cv_archive_cmds_need_lc=no 7261 else 7262 lt_cv_archive_cmds_need_lc=yes 7263 fi 7264 allow_undefined_flag=$save_allow_undefined_flag 7265 else 7266 cat conftest.err 1>&5 7267 fi 7268 fi 7269 7270 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 7271 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 7272 ;; 7273 esac 7274 fi 7275 need_lc=${lt_cv_archive_cmds_need_lc-yes} 7276 7277 # The second clause should only fire when bootstrapping the 9092 esac 9093 echo "$as_me:$LINENO: result: $enable_shared" >&5 9094 echo "${ECHO_T}$enable_shared" >&6 9095 9096 echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9097 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9098 # Make sure either enable_shared or enable_static is yes. 9099 test "$enable_shared" = yes || enable_static=yes 9100 echo "$as_me:$LINENO: result: $enable_static" >&5 9101 echo "${ECHO_T}$enable_static" >&6 9102 9103 # The else clause should only fire when bootstrapping the 7278 9104 # libtool distribution, otherwise you forgot to ship ltmain.sh 7279 9105 # with your package, and you will get complaints that there are 7280 9106 # no rules to generate ltmain.sh. 7281 9107 if test -f "$ltmain"; then 7282 : 7283 else 7284 # If there is no Makefile yet, we rely on a make rule to execute 7285 # `config.status --recheck' to rerun these tests and create the 7286 # libtool script then. 7287 test -f Makefile && make "$ltmain" 7288 fi 7289 7290 if test -f "$ltmain"; then 7291 trap "$rm \"${ofile}T\"; exit 1" 1 2 15 7292 $rm -f "${ofile}T" 7293 7294 echo creating $ofile 7295 9108 # See if we are running on zsh, and set the options which allow our commands through 9109 # without removal of \ escapes. 9110 if test -n "${ZSH_VERSION+set}" ; then 9111 setopt NO_GLOB_SUBST 9112 fi 7296 9113 # Now quote all the things that may contain metacharacters while being 7297 9114 # careful not to overquote the AC_SUBSTed values. We take copies of the 7298 9115 # variables and quote the copies for generation of the libtool script. 7299 for var in echo old_CC old_CFLAGS SED \ 7300 AR AR_FLAGS CC LD LN_S NM SHELL \ 7301 reload_flag reload_cmds wl \ 7302 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ 7303 thread_safe_flag_spec whole_archive_flag_spec libname_spec \ 7304 library_names_spec soname_spec \ 7305 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ 7306 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ 7307 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ 7308 old_striplib striplib file_magic_cmd export_symbols_cmds \ 7309 deplibs_check_method allow_undefined_flag no_undefined_flag \ 7310 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ 7311 global_symbol_to_c_name_address \ 7312 hardcode_libdir_flag_spec hardcode_libdir_separator \ 9116 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 9117 SED SHELL STRIP \ 9118 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9119 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9120 deplibs_check_method reload_flag reload_cmds need_locks \ 9121 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9122 lt_cv_sys_global_symbol_to_c_name_address \ 7313 9123 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 7314 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do 9124 old_postinstall_cmds old_postuninstall_cmds \ 9125 compiler \ 9126 CC \ 9127 LD \ 9128 lt_prog_compiler_wl \ 9129 lt_prog_compiler_pic \ 9130 lt_prog_compiler_static \ 9131 lt_prog_compiler_no_builtin_flag \ 9132 export_dynamic_flag_spec \ 9133 thread_safe_flag_spec \ 9134 whole_archive_flag_spec \ 9135 enable_shared_with_static_runtimes \ 9136 old_archive_cmds \ 9137 old_archive_from_new_cmds \ 9138 predep_objects \ 9139 postdep_objects \ 9140 predeps \ 9141 postdeps \ 9142 compiler_lib_search_path \ 9143 archive_cmds \ 9144 archive_expsym_cmds \ 9145 postinstall_cmds \ 9146 postuninstall_cmds \ 9147 old_archive_from_expsyms_cmds \ 9148 allow_undefined_flag \ 9149 no_undefined_flag \ 9150 export_symbols_cmds \ 9151 hardcode_libdir_flag_spec \ 9152 hardcode_libdir_flag_spec_ld \ 9153 hardcode_libdir_separator \ 9154 hardcode_automatic \ 9155 module_cmds \ 9156 module_expsym_cmds \ 9157 lt_cv_prog_compiler_c_o \ 9158 exclude_expsyms \ 9159 include_expsyms; do 7315 9160 7316 9161 case $var in 7317 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ 9162 old_archive_cmds | \ 9163 old_archive_from_new_cmds | \ 9164 archive_cmds | \ 9165 archive_expsym_cmds | \ 9166 module_cmds | \ 9167 module_expsym_cmds | \ 9168 old_archive_from_expsyms_cmds | \ 9169 export_symbols_cmds | \ 9170 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9171 postinstall_cmds | postuninstall_cmds | \ 7318 9172 old_postinstall_cmds | old_postuninstall_cmds | \ 7319 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ 7320 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ 7321 postinstall_cmds | postuninstall_cmds | \ 7322 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9173 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 7323 9174 # Double-quote double-evaled strings. 7324 9175 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" … … 7330 9181 done 7331 9182 7332 cat <<__EOF__ > "${ofile}T" 9183 case $lt_echo in 9184 *'\$0 --fallback-echo"') 9185 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9186 ;; 9187 esac 9188 9189 cfgfile="${ofile}T" 9190 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9191 $rm -f "$cfgfile" 9192 { echo "$as_me:$LINENO: creating $ofile" >&5 9193 echo "$as_me: creating $ofile" >&6;} 9194 9195 cat <<__EOF__ >> "$cfgfile" 7333 9196 #! $SHELL 7334 9197 7335 # `$echo "$ ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.9198 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 7336 9199 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 7337 9200 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 7338 9201 # 7339 # Copyright (C) 1996-2000 Free Software Foundation, Inc. 9202 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 9203 # Free Software Foundation, Inc. 9204 # 9205 # This file is part of GNU Libtool: 7340 9206 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 7341 9207 # … … 7359 9225 # the same distribution terms that you use for the rest of that program. 7360 9226 7361 # A sed that does not truncate output.9227 # A sed program that does not truncate output. 7362 9228 SED=$lt_SED 7363 9229 7364 9230 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 7365 Xsed="$ {SED}-e s/^X//"9231 Xsed="$SED -e s/^X//" 7366 9232 7367 9233 # The HP-UX ksh and POSIX shell print the target directory to stdout … … 7369 9235 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 7370 9236 9237 # The names of the tagged configurations supported by this script. 9238 available_tags= 9239 7371 9240 # ### BEGIN LIBTOOL CONFIG 7372 9241 … … 7383 9252 7384 9253 # Whether or not to add -lc for building shared libraries. 7385 build_libtool_need_lc=$need_lc 9254 build_libtool_need_lc=$archive_cmds_need_lc 9255 9256 # Whether or not to disallow shared libs when runtime libs are static 9257 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 7386 9258 7387 9259 # Whether or not to optimize for fast installation. … … 7399 9271 AR_FLAGS=$lt_AR_FLAGS 7400 9272 7401 # The default C compiler. 7402 CC=$lt_CC 9273 # A C compiler. 9274 LTCC=$lt_LTCC 9275 9276 # A language-specific compiler. 9277 CC=$lt_compiler 7403 9278 7404 9279 # Is the compiler the GNU C compiler? 7405 9280 with_gcc=$GCC 7406 9281 9282 # An ERE matcher. 9283 EGREP=$lt_EGREP 9284 7407 9285 # The linker used to build libraries. 7408 9286 LD=$lt_LD … … 7415 9293 7416 9294 # A symbol stripping program 7417 STRIP=$ STRIP9295 STRIP=$lt_STRIP 7418 9296 7419 9297 # Used to examine libraries when file_magic_cmd begins "file" … … 7437 9315 7438 9316 # How to pass a linker flag through the compiler. 7439 wl=$lt_ wl9317 wl=$lt_lt_prog_compiler_wl 7440 9318 7441 9319 # Object file suffix (normally "o"). … … 7445 9323 libext="$libext" 7446 9324 9325 # Shared library suffix (normally ".so"). 9326 shrext_cmds='$shrext_cmds' 9327 7447 9328 # Executable file suffix (normally ""). 7448 9329 exeext="$exeext" 7449 9330 7450 9331 # Additional compiler flags for building library objects. 7451 pic_flag=$lt_ pic_flag9332 pic_flag=$lt_lt_prog_compiler_pic 7452 9333 pic_mode=$pic_mode 7453 9334 9335 # What is the maximum length of a command? 9336 max_cmd_len=$lt_cv_sys_max_cmd_len 9337 7454 9338 # Does compiler simultaneously support -c and -o options? 7455 compiler_c_o=$lt_compiler_c_o 7456 7457 # Can we write directly to a .lo ? 7458 compiler_o_lo=$lt_compiler_o_lo 9339 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 7459 9340 7460 9341 # Must we lock files when doing compilation ? … … 7477 9358 7478 9359 # Compiler flag to prevent dynamic linking. 7479 link_static_flag=$lt_l ink_static_flag9360 link_static_flag=$lt_lt_prog_compiler_static 7480 9361 7481 9362 # Compiler flag to turn off builtin functions. 7482 no_builtin_flag=$lt_ no_builtin_flag9363 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 7483 9364 7484 9365 # Compiler flag to allow reflexive dlopens. … … 7522 9403 postuninstall_cmds=$lt_postuninstall_cmds 7523 9404 9405 # Commands used to build a loadable module (assumed same as above if empty) 9406 module_cmds=$lt_module_cmds 9407 module_expsym_cmds=$lt_module_expsym_cmds 9408 7524 9409 # Commands to strip libraries. 7525 9410 old_striplib=$lt_old_striplib 7526 9411 striplib=$lt_striplib 7527 9412 9413 # Dependencies to place before the objects being linked to create a 9414 # shared library. 9415 predep_objects=$lt_predep_objects 9416 9417 # Dependencies to place after the objects being linked to create a 9418 # shared library. 9419 postdep_objects=$lt_postdep_objects 9420 9421 # Dependencies to place before the objects being linked to create a 9422 # shared library. 9423 predeps=$lt_predeps 9424 9425 # Dependencies to place after the objects being linked to create a 9426 # shared library. 9427 postdeps=$lt_postdeps 9428 9429 # The library search path used internally by the compiler when linking 9430 # a shared library. 9431 compiler_lib_search_path=$lt_compiler_lib_search_path 9432 7528 9433 # Method to check whether dependent libraries are shared objects. 7529 9434 deplibs_check_method=$lt_deplibs_check_method … … 7545 9450 7546 9451 # Take the output of nm and produce a listing of raw symbols and C names. 7547 global_symbol_pipe=$lt_ global_symbol_pipe9452 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 7548 9453 7549 9454 # Transform the output of nm in a proper C declaration 7550 global_symbol_to_cdecl=$lt_ global_symbol_to_cdecl9455 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 7551 9456 7552 9457 # Transform the output of nm in a C name address pair 7553 global_symbol_to_c_name_address=$lt_ global_symbol_to_c_name_address9458 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 7554 9459 7555 9460 # This is the shared library runtime path variable. … … 7572 9477 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 7573 9478 9479 # If ld is used when linking, flag to hardcode \$libdir into 9480 # a binary during linking. This must work even if \$libdir does 9481 # not exist. 9482 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 9483 7574 9484 # Whether we need a single -rpath flag with a separated argument. 7575 9485 hardcode_libdir_separator=$lt_hardcode_libdir_separator 7576 9486 7577 # Set to yes if using DIR/libNAME .soduring linking hardcodes DIR into the9487 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 7578 9488 # resulting binary. 7579 9489 hardcode_direct=$hardcode_direct … … 7587 9497 hardcode_shlibpath_var=$hardcode_shlibpath_var 7588 9498 9499 # Set to yes if building a shared library automatically hardcodes DIR into the library 9500 # and all subsequent libraries and executables linked against it. 9501 hardcode_automatic=$hardcode_automatic 9502 7589 9503 # Variables whose values should be saved in libtool wrapper scripts and 7590 9504 # restored at relink time. … … 7622 9536 __EOF__ 7623 9537 9538 7624 9539 case $host_os in 7625 9540 aix3*) 7626 cat <<\EOF >> "$ {ofile}T"9541 cat <<\EOF >> "$cfgfile" 7627 9542 7628 9543 # AIX sometimes has problems with the GCC collect2 program. For some … … 7637 9552 esac 7638 9553 7639 case $host_os in7640 cygwin* | mingw* | pw32* | os2*)7641 cat <<'EOF' >> "${ofile}T"7642 # This is a source program that is used to create dlls on Windows7643 # Don't remove nor modify the starting and closing comments7644 # /* ltdll.c starts here */7645 # #define WIN32_LEAN_AND_MEAN7646 # #include <windows.h>7647 # #undef WIN32_LEAN_AND_MEAN7648 # #include <stdio.h>7649 #7650 # #ifndef __CYGWIN__7651 # # ifdef __CYGWIN32__7652 # # define __CYGWIN__ __CYGWIN32__7653 # # endif7654 # #endif7655 #7656 # #ifdef __cplusplus7657 # extern "C" {7658 # #endif7659 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);7660 # #ifdef __cplusplus7661 # }7662 # #endif7663 #7664 # #ifdef __CYGWIN__7665 # #include <cygwin/cygwin_dll.h>7666 # DECLARE_CYGWIN_DLL( DllMain );7667 # #endif7668 # HINSTANCE __hDllInstance_base;7669 #7670 # BOOL APIENTRY7671 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)7672 # {7673 # __hDllInstance_base = hInst;7674 # return TRUE;7675 # }7676 # /* ltdll.c ends here */7677 # This is a source program that is used to create import libraries7678 # on Windows for dlls which lack them. Don't remove nor modify the7679 # starting and closing comments7680 # /* impgen.c starts here */7681 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.7682 #7683 # This file is part of GNU libtool.7684 #7685 # This program is free software; you can redistribute it and/or modify7686 # it under the terms of the GNU General Public License as published by7687 # the Free Software Foundation; either version 2 of the License, or7688 # (at your option) any later version.7689 #7690 # This program is distributed in the hope that it will be useful,7691 # but WITHOUT ANY WARRANTY; without even the implied warranty of7692 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the7693 # GNU General Public License for more details.7694 #7695 # You should have received a copy of the GNU General Public License7696 # along with this program; if not, write to the Free Software7697 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.7698 # */7699 #7700 # #include <stdio.h> /* for printf() */7701 # #include <unistd.h> /* for open(), lseek(), read() */7702 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */7703 # #include <string.h> /* for strdup() */7704 #7705 # /* O_BINARY isn't required (or even defined sometimes) under Unix */7706 # #ifndef O_BINARY7707 # #define O_BINARY 07708 # #endif7709 #7710 # static unsigned int7711 # pe_get16 (fd, offset)7712 # int fd;7713 # int offset;7714 # {7715 # unsigned char b[2];7716 # lseek (fd, offset, SEEK_SET);7717 # read (fd, b, 2);7718 # return b[0] + (b[1]<<8);7719 # }7720 #7721 # static unsigned int7722 # pe_get32 (fd, offset)7723 # int fd;7724 # int offset;7725 # {7726 # unsigned char b[4];7727 # lseek (fd, offset, SEEK_SET);7728 # read (fd, b, 4);7729 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);7730 # }7731 #7732 # static unsigned int7733 # pe_as32 (ptr)7734 # void *ptr;7735 # {7736 # unsigned char *b = ptr;7737 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);7738 # }7739 #7740 # int7741 # main (argc, argv)7742 # int argc;7743 # char *argv[];7744 # {7745 # int dll;7746 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;7747 # unsigned long export_rva, export_size, nsections, secptr, expptr;7748 # unsigned long name_rvas, nexp;7749 # unsigned char *expdata, *erva;7750 # char *filename, *dll_name;7751 #7752 # filename = argv[1];7753 #7754 # dll = open(filename, O_RDONLY|O_BINARY);7755 # if (dll < 1)7756 # return 1;7757 #7758 # dll_name = filename;7759 #7760 # for (i=0; filename[i]; i++)7761 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')7762 # dll_name = filename + i +1;7763 #7764 # pe_header_offset = pe_get32 (dll, 0x3c);7765 # opthdr_ofs = pe_header_offset + 4 + 20;7766 # num_entries = pe_get32 (dll, opthdr_ofs + 92);7767 #7768 # if (num_entries < 1) /* no exports */7769 # return 1;7770 #7771 # export_rva = pe_get32 (dll, opthdr_ofs + 96);7772 # export_size = pe_get32 (dll, opthdr_ofs + 100);7773 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);7774 # secptr = (pe_header_offset + 4 + 20 +7775 # pe_get16 (dll, pe_header_offset + 4 + 16));7776 #7777 # expptr = 0;7778 # for (i = 0; i < nsections; i++)7779 # {7780 # char sname[8];7781 # unsigned long secptr1 = secptr + 40 * i;7782 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);7783 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);7784 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);7785 # lseek(dll, secptr1, SEEK_SET);7786 # read(dll, sname, 8);7787 # if (vaddr <= export_rva && vaddr+vsize > export_rva)7788 # {7789 # expptr = fptr + (export_rva - vaddr);7790 # if (export_rva + export_size > vaddr + vsize)7791 # export_size = vsize - (export_rva - vaddr);7792 # break;7793 # }7794 # }7795 #7796 # expdata = (unsigned char*)malloc(export_size);7797 # lseek (dll, expptr, SEEK_SET);7798 # read (dll, expdata, export_size);7799 # erva = expdata - export_rva;7800 #7801 # nexp = pe_as32 (expdata+24);7802 # name_rvas = pe_as32 (expdata+32);7803 #7804 # printf ("EXPORTS\n");7805 # for (i = 0; i<nexp; i++)7806 # {7807 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);7808 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);7809 # }7810 #7811 # return 0;7812 # }7813 # /* impgen.c ends here */7814 7815 EOF7816 ;;7817 esac7818 7819 9554 # We use sed instead of cat because bash on DJGPP gets confused if 7820 9555 # if finds mixed CR/LF and LF-only lines. Since sed operates in 7821 9556 # text mode, it properly converts lines to CR/LF. This bash problem 7822 9557 # is reportedly fixed, but why not run on old versions too? 7823 sed '$q' "$ltmain" >> "$ {ofile}T" || (rm -f "${ofile}T"; exit 1)7824 7825 mv -f "$ {ofile}T" "$ofile" || \7826 (rm -f "$ofile" && cp "$ {ofile}T" "$ofile" && rm -f "${ofile}T")9558 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9559 9560 mv -f "$cfgfile" "$ofile" || \ 9561 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 7827 9562 chmod +x "$ofile" 7828 fi 7829 7830 9563 9564 else 9565 # If there is no Makefile yet, we rely on a make rule to execute 9566 # `config.status --recheck' to rerun these tests and create the 9567 # libtool script then. 9568 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9569 if test -f "$ltmain_in"; then 9570 test -f Makefile && make "$ltmain" 9571 fi 9572 fi 9573 9574 9575 ac_ext=c 9576 ac_cpp='$CPP $CPPFLAGS' 9577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9579 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9580 9581 CC="$lt_save_CC" 9582 9583 9584 # Check whether --with-tags or --without-tags was given. 9585 if test "${with_tags+set}" = set; then 9586 withval="$with_tags" 9587 tagnames="$withval" 9588 fi; 9589 9590 if test -f "$ltmain" && test -n "$tagnames"; then 9591 if test ! -f "${ofile}"; then 9592 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9593 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9594 fi 9595 9596 if test -z "$LTCC"; then 9597 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9598 if test -z "$LTCC"; then 9599 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9600 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9601 else 9602 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9603 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9604 fi 9605 fi 9606 9607 # Extract list of available tagged configurations in $ofile. 9608 # Note that this assumes the entire list is on one line. 9609 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9610 9611 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9612 for tagname in $tagnames; do 9613 IFS="$lt_save_ifs" 9614 # Check whether tagname contains only valid characters 9615 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9616 "") ;; 9617 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 9618 echo "$as_me: error: invalid tag name: $tagname" >&2;} 9619 { (exit 1); exit 1; }; } 9620 ;; 9621 esac 9622 9623 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9624 then 9625 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 9626 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 9627 { (exit 1); exit 1; }; } 9628 fi 9629 9630 # Update the list of available tags. 9631 if test -n "$tagname"; then 9632 echo appending configuration tag \"$tagname\" to $ofile 9633 9634 case $tagname in 9635 CXX) 9636 if test -n "$CXX" && test "X$CXX" != "Xno"; then 9637 ac_ext=cc 9638 ac_cpp='$CXXCPP $CPPFLAGS' 9639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9642 9643 9644 9645 9646 archive_cmds_need_lc_CXX=no 9647 allow_undefined_flag_CXX= 9648 always_export_symbols_CXX=no 9649 archive_expsym_cmds_CXX= 9650 export_dynamic_flag_spec_CXX= 9651 hardcode_direct_CXX=no 9652 hardcode_libdir_flag_spec_CXX= 9653 hardcode_libdir_flag_spec_ld_CXX= 9654 hardcode_libdir_separator_CXX= 9655 hardcode_minus_L_CXX=no 9656 hardcode_automatic_CXX=no 9657 module_cmds_CXX= 9658 module_expsym_cmds_CXX= 9659 link_all_deplibs_CXX=unknown 9660 old_archive_cmds_CXX=$old_archive_cmds 9661 no_undefined_flag_CXX= 9662 whole_archive_flag_spec_CXX= 9663 enable_shared_with_static_runtimes_CXX=no 9664 9665 # Dependencies to place before and after the object being linked: 9666 predep_objects_CXX= 9667 postdep_objects_CXX= 9668 predeps_CXX= 9669 postdeps_CXX= 9670 compiler_lib_search_path_CXX= 9671 9672 # Source file extension for C++ test sources. 9673 ac_ext=cc 9674 9675 # Object file extension for compiled C++ test sources. 9676 objext=o 9677 objext_CXX=$objext 9678 9679 # Code to be used in simple compile tests 9680 lt_simple_compile_test_code="int some_variable = 0;\n" 9681 9682 # Code to be used in simple link tests 9683 lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 9684 9685 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 9686 9687 # If no C compiler was specified, use CC. 9688 LTCC=${LTCC-"$CC"} 9689 9690 # Allow CC to be a program name with arguments. 9691 compiler=$CC 9692 9693 9694 # Allow CC to be a program name with arguments. 9695 lt_save_CC=$CC 9696 lt_save_LD=$LD 9697 lt_save_GCC=$GCC 9698 GCC=$GXX 9699 lt_save_with_gnu_ld=$with_gnu_ld 9700 lt_save_path_LD=$lt_cv_path_LD 9701 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 9702 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 9703 else 9704 unset lt_cv_prog_gnu_ld 9705 fi 9706 if test -n "${lt_cv_path_LDCXX+set}"; then 9707 lt_cv_path_LD=$lt_cv_path_LDCXX 9708 else 9709 unset lt_cv_path_LD 9710 fi 9711 test -z "${LDCXX+set}" || LD=$LDCXX 9712 CC=${CXX-"c++"} 9713 compiler=$CC 9714 compiler_CXX=$CC 9715 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 9716 9717 # We don't want -fno-exception wen compiling C++ code, so set the 9718 # no_builtin_flag separately 9719 if test "$GXX" = yes; then 9720 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 9721 else 9722 lt_prog_compiler_no_builtin_flag_CXX= 9723 fi 9724 9725 if test "$GXX" = yes; then 9726 # Set up default GNU C++ configuration 9727 9728 9729 # Check whether --with-gnu-ld or --without-gnu-ld was given. 9730 if test "${with_gnu_ld+set}" = set; then 9731 withval="$with_gnu_ld" 9732 test "$withval" = no || with_gnu_ld=yes 9733 else 9734 with_gnu_ld=no 9735 fi; 9736 ac_prog=ld 9737 if test "$GCC" = yes; then 9738 # Check if gcc -print-prog-name=ld gives a path. 9739 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 9740 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 9741 case $host in 9742 *-*-mingw*) 9743 # gcc leaves a trailing carriage return which upsets mingw 9744 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9745 *) 9746 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9747 esac 9748 case $ac_prog in 9749 # Accept absolute paths. 9750 [\\/]* | ?:[\\/]*) 9751 re_direlt='/[^/][^/]*/\.\./' 9752 # Canonicalize the pathname of ld 9753 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 9754 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 9755 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 9756 done 9757 test -z "$LD" && LD="$ac_prog" 9758 ;; 9759 "") 9760 # If it fails, then pretend we aren't using GCC. 9761 ac_prog=ld 9762 ;; 9763 *) 9764 # If it is relative, then search for the first ld in PATH. 9765 with_gnu_ld=unknown 9766 ;; 9767 esac 9768 elif test "$with_gnu_ld" = yes; then 9769 echo "$as_me:$LINENO: checking for GNU ld" >&5 9770 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 9771 else 9772 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 9773 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 9774 fi 9775 if test "${lt_cv_path_LD+set}" = set; then 9776 echo $ECHO_N "(cached) $ECHO_C" >&6 9777 else 9778 if test -z "$LD"; then 9779 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9780 for ac_dir in $PATH; do 9781 IFS="$lt_save_ifs" 9782 test -z "$ac_dir" && ac_dir=. 9783 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9784 lt_cv_path_LD="$ac_dir/$ac_prog" 9785 # Check to see if the program is GNU ld. I'd rather use --version, 9786 # but apparently some GNU ld's only accept -v. 9787 # Break only if it was the GNU/non-GNU ld that we prefer. 9788 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9789 *GNU* | *'with BFD'*) 9790 test "$with_gnu_ld" != no && break 9791 ;; 9792 *) 9793 test "$with_gnu_ld" != yes && break 9794 ;; 9795 esac 9796 fi 9797 done 9798 IFS="$lt_save_ifs" 9799 else 9800 lt_cv_path_LD="$LD" # Let the user override the test with a path. 9801 fi 9802 fi 9803 9804 LD="$lt_cv_path_LD" 9805 if test -n "$LD"; then 9806 echo "$as_me:$LINENO: result: $LD" >&5 9807 echo "${ECHO_T}$LD" >&6 9808 else 9809 echo "$as_me:$LINENO: result: no" >&5 9810 echo "${ECHO_T}no" >&6 9811 fi 9812 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 9813 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 9814 { (exit 1); exit 1; }; } 9815 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 9816 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 9817 if test "${lt_cv_prog_gnu_ld+set}" = set; then 9818 echo $ECHO_N "(cached) $ECHO_C" >&6 9819 else 9820 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 9821 case `$LD -v 2>&1 </dev/null` in 9822 *GNU* | *'with BFD'*) 9823 lt_cv_prog_gnu_ld=yes 9824 ;; 9825 *) 9826 lt_cv_prog_gnu_ld=no 9827 ;; 9828 esac 9829 fi 9830 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 9831 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 9832 with_gnu_ld=$lt_cv_prog_gnu_ld 9833 9834 9835 9836 # Check if GNU C++ uses GNU ld as the underlying linker, since the 9837 # archiving commands below assume that GNU ld is being used. 9838 if test "$with_gnu_ld" = yes; then 9839 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9840 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9841 9842 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 9843 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9844 9845 # If archive_cmds runs LD, not CC, wlarc should be empty 9846 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 9847 # investigate it a little bit more. (MM) 9848 wlarc='${wl}' 9849 9850 # ancient GNU ld didn't support --whole-archive et. al. 9851 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 9852 grep 'no-whole-archive' > /dev/null; then 9853 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9854 else 9855 whole_archive_flag_spec_CXX= 9856 fi 9857 else 9858 with_gnu_ld=no 9859 wlarc= 9860 9861 # A generic and very simple default shared library creation 9862 # command for GNU C++ for the case where it uses the native 9863 # linker, instead of GNU ld. If possible, this setting should 9864 # overridden to take advantage of the native linker features on 9865 # the platform it is being used on. 9866 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 9867 fi 9868 9869 # Commands to make compiler produce verbose output that lists 9870 # what "hidden" libraries, object files and flags are used when 9871 # linking a shared library. 9872 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 9873 9874 else 9875 GXX=no 9876 with_gnu_ld=no 9877 wlarc= 9878 fi 9879 9880 # PORTME: fill in a description of your system's C++ link characteristics 9881 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9882 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 9883 ld_shlibs_CXX=yes 9884 case $host_os in 9885 aix3*) 9886 # FIXME: insert proper C++ library support 9887 ld_shlibs_CXX=no 9888 ;; 9889 aix4* | aix5*) 9890 if test "$host_cpu" = ia64; then 9891 # On IA64, the linker does run time linking by default, so we don't 9892 # have to do anything special. 9893 aix_use_runtimelinking=no 9894 exp_sym_flag='-Bexport' 9895 no_entry_flag="" 9896 else 9897 aix_use_runtimelinking=no 9898 9899 # Test if we are trying to use run time linking or normal 9900 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9901 # need to do runtime linking. 9902 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 9903 for ld_flag in $LDFLAGS; do 9904 case $ld_flag in 9905 *-brtl*) 9906 aix_use_runtimelinking=yes 9907 break 9908 ;; 9909 esac 9910 done 9911 esac 9912 9913 exp_sym_flag='-bexport' 9914 no_entry_flag='-bnoentry' 9915 fi 9916 9917 # When large executables or shared objects are built, AIX ld can 9918 # have problems creating the table of contents. If linking a library 9919 # or program results in "error TOC overflow" add -mminimal-toc to 9920 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9921 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9922 9923 archive_cmds_CXX='' 9924 hardcode_direct_CXX=yes 9925 hardcode_libdir_separator_CXX=':' 9926 link_all_deplibs_CXX=yes 9927 9928 if test "$GXX" = yes; then 9929 case $host_os in aix4.012|aix4.012.*) 9930 # We only want to do this on AIX 4.2 and lower, the check 9931 # below for broken collect2 doesn't work under 4.3+ 9932 collect2name=`${CC} -print-prog-name=collect2` 9933 if test -f "$collect2name" && \ 9934 strings "$collect2name" | grep resolve_lib_name >/dev/null 9935 then 9936 # We have reworked collect2 9937 hardcode_direct_CXX=yes 9938 else 9939 # We have old collect2 9940 hardcode_direct_CXX=unsupported 9941 # It fails to find uninstalled libraries when the uninstalled 9942 # path is not listed in the libpath. Setting hardcode_minus_L 9943 # to unsupported forces relinking 9944 hardcode_minus_L_CXX=yes 9945 hardcode_libdir_flag_spec_CXX='-L$libdir' 9946 hardcode_libdir_separator_CXX= 9947 fi 9948 esac 9949 shared_flag='-shared' 9950 else 9951 # not using gcc 9952 if test "$host_cpu" = ia64; then 9953 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9954 # chokes on -Wl,-G. The following line is correct: 9955 shared_flag='-G' 9956 else 9957 if test "$aix_use_runtimelinking" = yes; then 9958 shared_flag='${wl}-G' 9959 else 9960 shared_flag='${wl}-bM:SRE' 9961 fi 9962 fi 9963 fi 9964 9965 # It seems that -bexpall does not export symbols beginning with 9966 # underscore (_), so it is better to generate a list of symbols to export. 9967 always_export_symbols_CXX=yes 9968 if test "$aix_use_runtimelinking" = yes; then 9969 # Warning - without using the other runtime loading flags (-brtl), 9970 # -berok will link without error, but may produce a broken library. 9971 allow_undefined_flag_CXX='-berok' 9972 # Determine the default libpath from the value encoded in an empty executable. 9973 cat >conftest.$ac_ext <<_ACEOF 9974 /* confdefs.h. */ 9975 _ACEOF 9976 cat confdefs.h >>conftest.$ac_ext 9977 cat >>conftest.$ac_ext <<_ACEOF 9978 /* end confdefs.h. */ 9979 9980 int 9981 main () 9982 { 9983 9984 ; 9985 return 0; 9986 } 9987 _ACEOF 9988 rm -f conftest.$ac_objext conftest$ac_exeext 9989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9990 (eval $ac_link) 2>conftest.er1 9991 ac_status=$? 9992 grep -v '^ *+' conftest.er1 >conftest.err 9993 rm -f conftest.er1 9994 cat conftest.err >&5 9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9996 (exit $ac_status); } && 9997 { ac_try='test -z "$ac_cxx_werror_flag" 9998 || test ! -s conftest.err' 9999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10000 (eval $ac_try) 2>&5 10001 ac_status=$? 10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10003 (exit $ac_status); }; } && 10004 { ac_try='test -s conftest$ac_exeext' 10005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10006 (eval $ac_try) 2>&5 10007 ac_status=$? 10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10009 (exit $ac_status); }; }; then 10010 10011 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10012 }'` 10013 # Check for a 64-bit object if we didn't find anything. 10014 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; } 10015 }'`; fi 10016 else 10017 echo "$as_me: failed program was:" >&5 10018 sed 's/^/| /' conftest.$ac_ext >&5 10019 10020 fi 10021 rm -f conftest.err conftest.$ac_objext \ 10022 conftest$ac_exeext conftest.$ac_ext 10023 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10024 10025 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10026 10027 archive_expsym_cmds_CXX="\$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" 10028 else 10029 if test "$host_cpu" = ia64; then 10030 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10031 allow_undefined_flag_CXX="-z nodefs" 10032 archive_expsym_cmds_CXX="\$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" 10033 else 10034 # Determine the default libpath from the value encoded in an empty executable. 10035 cat >conftest.$ac_ext <<_ACEOF 10036 /* confdefs.h. */ 10037 _ACEOF 10038 cat confdefs.h >>conftest.$ac_ext 10039 cat >>conftest.$ac_ext <<_ACEOF 10040 /* end confdefs.h. */ 10041 10042 int 10043 main () 10044 { 10045 10046 ; 10047 return 0; 10048 } 10049 _ACEOF 10050 rm -f conftest.$ac_objext conftest$ac_exeext 10051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10052 (eval $ac_link) 2>conftest.er1 10053 ac_status=$? 10054 grep -v '^ *+' conftest.er1 >conftest.err 10055 rm -f conftest.er1 10056 cat conftest.err >&5 10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10058 (exit $ac_status); } && 10059 { ac_try='test -z "$ac_cxx_werror_flag" 10060 || test ! -s conftest.err' 10061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10062 (eval $ac_try) 2>&5 10063 ac_status=$? 10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10065 (exit $ac_status); }; } && 10066 { ac_try='test -s conftest$ac_exeext' 10067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10068 (eval $ac_try) 2>&5 10069 ac_status=$? 10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10071 (exit $ac_status); }; }; then 10072 10073 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10074 }'` 10075 # Check for a 64-bit object if we didn't find anything. 10076 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; } 10077 }'`; fi 10078 else 10079 echo "$as_me: failed program was:" >&5 10080 sed 's/^/| /' conftest.$ac_ext >&5 10081 10082 fi 10083 rm -f conftest.err conftest.$ac_objext \ 10084 conftest$ac_exeext conftest.$ac_ext 10085 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10086 10087 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10088 # Warning - without using the other run time loading flags, 10089 # -berok will link without error, but may produce a broken library. 10090 no_undefined_flag_CXX=' ${wl}-bernotok' 10091 allow_undefined_flag_CXX=' ${wl}-berok' 10092 # -bexpall does not export symbols beginning with underscore (_) 10093 always_export_symbols_CXX=yes 10094 # Exported symbols can be pulled into shared objects from archives 10095 whole_archive_flag_spec_CXX=' ' 10096 archive_cmds_need_lc_CXX=yes 10097 # This is similar to how AIX traditionally builds it's shared libraries. 10098 archive_expsym_cmds_CXX="\$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' 10099 fi 10100 fi 10101 ;; 10102 chorus*) 10103 case $cc_basename in 10104 *) 10105 # FIXME: insert proper C++ library support 10106 ld_shlibs_CXX=no 10107 ;; 10108 esac 10109 ;; 10110 10111 cygwin* | mingw* | pw32*) 10112 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10113 # as there is no search path for DLLs. 10114 hardcode_libdir_flag_spec_CXX='-L$libdir' 10115 allow_undefined_flag_CXX=unsupported 10116 always_export_symbols_CXX=no 10117 enable_shared_with_static_runtimes_CXX=yes 10118 10119 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10120 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 10121 # If the export-symbols file already is a .def file (1st line 10122 # is EXPORTS), use it as is; otherwise, prepend... 10123 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10124 cp $export_symbols $output_objdir/$soname.def; 10125 else 10126 echo EXPORTS > $output_objdir/$soname.def; 10127 cat $export_symbols >> $output_objdir/$soname.def; 10128 fi~ 10129 $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' 10130 else 10131 ld_shlibs_CXX=no 10132 fi 10133 ;; 10134 10135 darwin* | rhapsody*) 10136 if test "$GXX" = yes; then 10137 archive_cmds_need_lc_CXX=no 10138 case "$host_os" in 10139 rhapsody* | darwin1.[012]) 10140 allow_undefined_flag_CXX='-undefined suppress' 10141 ;; 10142 *) # Darwin 1.3 on 10143 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10144 allow_undefined_flag_CXX='-flat_namespace -undefined suppress' 10145 else 10146 case ${MACOSX_DEPLOYMENT_TARGET} in 10147 10.[012]) 10148 allow_undefined_flag_CXX='-flat_namespace -undefined suppress' 10149 ;; 10150 10.*) 10151 allow_undefined_flag_CXX='-undefined dynamic_lookup' 10152 ;; 10153 esac 10154 fi 10155 ;; 10156 esac 10157 lt_int_apple_cc_single_mod=no 10158 output_verbose_link_cmd='echo' 10159 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 10160 lt_int_apple_cc_single_mod=yes 10161 fi 10162 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10163 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10164 else 10165 archive_cmds_CXX='$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' 10166 fi 10167 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10168 10169 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 10170 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10171 archive_expsym_cmds_CXX='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}' 10172 else 10173 archive_expsym_cmds_CXX='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}' 10174 fi 10175 module_expsym_cmds_CXX='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}' 10176 hardcode_direct_CXX=no 10177 hardcode_automatic_CXX=yes 10178 hardcode_shlibpath_var_CXX=unsupported 10179 whole_archive_flag_spec_CXX='-all_load $convenience' 10180 link_all_deplibs_CXX=yes 10181 else 10182 ld_shlibs_CXX=no 10183 fi 10184 ;; 10185 10186 dgux*) 10187 case $cc_basename in 10188 ec++) 10189 # FIXME: insert proper C++ library support 10190 ld_shlibs_CXX=no 10191 ;; 10192 ghcx) 10193 # Green Hills C++ Compiler 10194 # FIXME: insert proper C++ library support 10195 ld_shlibs_CXX=no 10196 ;; 10197 *) 10198 # FIXME: insert proper C++ library support 10199 ld_shlibs_CXX=no 10200 ;; 10201 esac 10202 ;; 10203 freebsd12*) 10204 # C++ shared libraries reported to be fairly broken before switch to ELF 10205 ld_shlibs_CXX=no 10206 ;; 10207 freebsd-elf*) 10208 archive_cmds_need_lc_CXX=no 10209 ;; 10210 freebsd* | kfreebsd*-gnu) 10211 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10212 # conventions 10213 ld_shlibs_CXX=yes 10214 ;; 10215 gnu*) 10216 ;; 10217 hpux9*) 10218 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10219 hardcode_libdir_separator_CXX=: 10220 export_dynamic_flag_spec_CXX='${wl}-E' 10221 hardcode_direct_CXX=yes 10222 hardcode_minus_L_CXX=yes # Not in the search PATH, 10223 # but as the default 10224 # location of the library. 10225 10226 case $cc_basename in 10227 CC) 10228 # FIXME: insert proper C++ library support 10229 ld_shlibs_CXX=no 10230 ;; 10231 aCC) 10232 archive_cmds_CXX='$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' 10233 # Commands to make compiler produce verbose output that lists 10234 # what "hidden" libraries, object files and flags are used when 10235 # linking a shared library. 10236 # 10237 # There doesn't appear to be a way to prevent this compiler from 10238 # explicitly linking system object files so we need to strip them 10239 # from the output so that they don't get included in the library 10240 # dependencies. 10241 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' 10242 ;; 10243 *) 10244 if test "$GXX" = yes; then 10245 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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' 10246 else 10247 # FIXME: insert proper C++ library support 10248 ld_shlibs_CXX=no 10249 fi 10250 ;; 10251 esac 10252 ;; 10253 hpux10*|hpux11*) 10254 if test $with_gnu_ld = no; then 10255 case "$host_cpu" in 10256 hppa*64*) 10257 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10258 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10259 hardcode_libdir_separator_CXX=: 10260 ;; 10261 ia64*) 10262 hardcode_libdir_flag_spec_CXX='-L$libdir' 10263 ;; 10264 *) 10265 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10266 hardcode_libdir_separator_CXX=: 10267 export_dynamic_flag_spec_CXX='${wl}-E' 10268 ;; 10269 esac 10270 fi 10271 case "$host_cpu" in 10272 hppa*64*) 10273 hardcode_direct_CXX=no 10274 hardcode_shlibpath_var_CXX=no 10275 ;; 10276 ia64*) 10277 hardcode_direct_CXX=no 10278 hardcode_shlibpath_var_CXX=no 10279 hardcode_minus_L_CXX=yes # Not in the search PATH, 10280 # but as the default 10281 # location of the library. 10282 ;; 10283 *) 10284 hardcode_direct_CXX=yes 10285 hardcode_minus_L_CXX=yes # Not in the search PATH, 10286 # but as the default 10287 # location of the library. 10288 ;; 10289 esac 10290 10291 case $cc_basename in 10292 CC) 10293 # FIXME: insert proper C++ library support 10294 ld_shlibs_CXX=no 10295 ;; 10296 aCC) 10297 case "$host_cpu" in 10298 hppa*64*|ia64*) 10299 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10300 ;; 10301 *) 10302 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10303 ;; 10304 esac 10305 # Commands to make compiler produce verbose output that lists 10306 # what "hidden" libraries, object files and flags are used when 10307 # linking a shared library. 10308 # 10309 # There doesn't appear to be a way to prevent this compiler from 10310 # explicitly linking system object files so we need to strip them 10311 # from the output so that they don't get included in the library 10312 # dependencies. 10313 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' 10314 ;; 10315 *) 10316 if test "$GXX" = yes; then 10317 if test $with_gnu_ld = no; then 10318 case "$host_cpu" in 10319 ia64*|hppa*64*) 10320 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10321 ;; 10322 *) 10323 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10324 ;; 10325 esac 10326 fi 10327 else 10328 # FIXME: insert proper C++ library support 10329 ld_shlibs_CXX=no 10330 fi 10331 ;; 10332 esac 10333 ;; 10334 irix5* | irix6*) 10335 case $cc_basename in 10336 CC) 10337 # SGI C++ 10338 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 10339 10340 # Archives containing C++ object files must be created using 10341 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10342 # necessary to make sure instantiated templates are included 10343 # in the archive. 10344 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10345 ;; 10346 *) 10347 if test "$GXX" = yes; then 10348 if test "$with_gnu_ld" = no; then 10349 archive_cmds_CXX='$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}${objdir}/so_locations -o $lib' 10350 else 10351 archive_cmds_CXX='$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' 10352 fi 10353 fi 10354 link_all_deplibs_CXX=yes 10355 ;; 10356 esac 10357 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10358 hardcode_libdir_separator_CXX=: 10359 ;; 10360 linux*) 10361 case $cc_basename in 10362 KCC) 10363 # Kuck and Associates, Inc. (KAI) C++ Compiler 10364 10365 # KCC will only create a shared library if the output file 10366 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10367 # to its proper name (with version) after linking. 10368 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 10369 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 10370 # Commands to make compiler produce verbose output that lists 10371 # what "hidden" libraries, object files and flags are used when 10372 # linking a shared library. 10373 # 10374 # There doesn't appear to be a way to prevent this compiler from 10375 # explicitly linking system object files so we need to strip them 10376 # from the output so that they don't get included in the library 10377 # dependencies. 10378 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 10379 10380 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10381 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10382 10383 # Archives containing C++ object files must be created using 10384 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10385 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10386 ;; 10387 icpc) 10388 # Intel C++ 10389 with_gnu_ld=yes 10390 archive_cmds_need_lc_CXX=no 10391 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10392 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10393 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10394 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10395 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10396 ;; 10397 cxx) 10398 # Compaq C++ 10399 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10400 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 10401 10402 runpath_var=LD_RUN_PATH 10403 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10404 hardcode_libdir_separator_CXX=: 10405 10406 # Commands to make compiler produce verbose output that lists 10407 # what "hidden" libraries, object files and flags are used when 10408 # linking a shared library. 10409 # 10410 # There doesn't appear to be a way to prevent this compiler from 10411 # explicitly linking system object files so we need to strip them 10412 # from the output so that they don't get included in the library 10413 # dependencies. 10414 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' 10415 ;; 10416 esac 10417 ;; 10418 lynxos*) 10419 # FIXME: insert proper C++ library support 10420 ld_shlibs_CXX=no 10421 ;; 10422 m88k*) 10423 # FIXME: insert proper C++ library support 10424 ld_shlibs_CXX=no 10425 ;; 10426 mvs*) 10427 case $cc_basename in 10428 cxx) 10429 # FIXME: insert proper C++ library support 10430 ld_shlibs_CXX=no 10431 ;; 10432 *) 10433 # FIXME: insert proper C++ library support 10434 ld_shlibs_CXX=no 10435 ;; 10436 esac 10437 ;; 10438 netbsd*) 10439 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10440 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10441 wlarc= 10442 hardcode_libdir_flag_spec_CXX='-R$libdir' 10443 hardcode_direct_CXX=yes 10444 hardcode_shlibpath_var_CXX=no 10445 fi 10446 # Workaround some broken pre-1.5 toolchains 10447 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10448 ;; 10449 osf3*) 10450 case $cc_basename in 10451 KCC) 10452 # Kuck and Associates, Inc. (KAI) C++ Compiler 10453 10454 # KCC will only create a shared library if the output file 10455 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10456 # to its proper name (with version) after linking. 10457 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 10458 10459 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10460 hardcode_libdir_separator_CXX=: 10461 10462 # Archives containing C++ object files must be created using 10463 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10464 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10465 10466 ;; 10467 RCC) 10468 # Rational C++ 2.4.1 10469 # FIXME: insert proper C++ library support 10470 ld_shlibs_CXX=no 10471 ;; 10472 cxx) 10473 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10474 archive_cmds_CXX='$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 ${objdir}/so_locations -o $lib' 10475 10476 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10477 hardcode_libdir_separator_CXX=: 10478 10479 # Commands to make compiler produce verbose output that lists 10480 # what "hidden" libraries, object files and flags are used when 10481 # linking a shared library. 10482 # 10483 # There doesn't appear to be a way to prevent this compiler from 10484 # explicitly linking system object files so we need to strip them 10485 # from the output so that they don't get included in the library 10486 # dependencies. 10487 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "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' 10488 ;; 10489 *) 10490 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10491 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10492 archive_cmds_CXX='$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}${objdir}/so_locations -o $lib' 10493 10494 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10495 hardcode_libdir_separator_CXX=: 10496 10497 # Commands to make compiler produce verbose output that lists 10498 # what "hidden" libraries, object files and flags are used when 10499 # linking a shared library. 10500 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10501 10502 else 10503 # FIXME: insert proper C++ library support 10504 ld_shlibs_CXX=no 10505 fi 10506 ;; 10507 esac 10508 ;; 10509 osf4* | osf5*) 10510 case $cc_basename in 10511 KCC) 10512 # Kuck and Associates, Inc. (KAI) C++ Compiler 10513 10514 # KCC will only create a shared library if the output file 10515 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10516 # to its proper name (with version) after linking. 10517 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 10518 10519 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10520 hardcode_libdir_separator_CXX=: 10521 10522 # Archives containing C++ object files must be created using 10523 # the KAI C++ compiler. 10524 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 10525 ;; 10526 RCC) 10527 # Rational C++ 2.4.1 10528 # FIXME: insert proper C++ library support 10529 ld_shlibs_CXX=no 10530 ;; 10531 cxx) 10532 allow_undefined_flag_CXX=' -expect_unresolved \*' 10533 archive_cmds_CXX='$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 ${objdir}/so_locations -o $lib' 10534 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10535 echo "-hidden">> $lib.exp~ 10536 $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~ 10537 $rm $lib.exp' 10538 10539 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10540 hardcode_libdir_separator_CXX=: 10541 10542 # Commands to make compiler produce verbose output that lists 10543 # what "hidden" libraries, object files and flags are used when 10544 # linking a shared library. 10545 # 10546 # There doesn't appear to be a way to prevent this compiler from 10547 # explicitly linking system object files so we need to strip them 10548 # from the output so that they don't get included in the library 10549 # dependencies. 10550 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "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' 10551 ;; 10552 *) 10553 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10554 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10555 archive_cmds_CXX='$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}${objdir}/so_locations -o $lib' 10556 10557 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10558 hardcode_libdir_separator_CXX=: 10559 10560 # Commands to make compiler produce verbose output that lists 10561 # what "hidden" libraries, object files and flags are used when 10562 # linking a shared library. 10563 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10564 10565 else 10566 # FIXME: insert proper C++ library support 10567 ld_shlibs_CXX=no 10568 fi 10569 ;; 10570 esac 10571 ;; 10572 psos*) 10573 # FIXME: insert proper C++ library support 10574 ld_shlibs_CXX=no 10575 ;; 10576 sco*) 10577 archive_cmds_need_lc_CXX=no 10578 case $cc_basename in 10579 CC) 10580 # FIXME: insert proper C++ library support 10581 ld_shlibs_CXX=no 10582 ;; 10583 *) 10584 # FIXME: insert proper C++ library support 10585 ld_shlibs_CXX=no 10586 ;; 10587 esac 10588 ;; 10589 sunos4*) 10590 case $cc_basename in 10591 CC) 10592 # Sun C++ 4.x 10593 # FIXME: insert proper C++ library support 10594 ld_shlibs_CXX=no 10595 ;; 10596 lcc) 10597 # Lucid 10598 # FIXME: insert proper C++ library support 10599 ld_shlibs_CXX=no 10600 ;; 10601 *) 10602 # FIXME: insert proper C++ library support 10603 ld_shlibs_CXX=no 10604 ;; 10605 esac 10606 ;; 10607 solaris*) 10608 case $cc_basename in 10609 CC) 10610 # Sun C++ 4.2, 5.x and Centerline C++ 10611 no_undefined_flag_CXX=' -zdefs' 10612 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10613 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10614 $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' 10615 10616 hardcode_libdir_flag_spec_CXX='-R$libdir' 10617 hardcode_shlibpath_var_CXX=no 10618 case $host_os in 10619 solaris2.0-5 | solaris2.0-5.*) ;; 10620 *) 10621 # The C++ compiler is used as linker so we must use $wl 10622 # flag to pass the commands to the underlying system 10623 # linker. 10624 # Supported since Solaris 2.6 (maybe 2.5.1?) 10625 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10626 ;; 10627 esac 10628 link_all_deplibs_CXX=yes 10629 10630 # Commands to make compiler produce verbose output that lists 10631 # what "hidden" libraries, object files and flags are used when 10632 # linking a shared library. 10633 # 10634 # There doesn't appear to be a way to prevent this compiler from 10635 # explicitly linking system object files so we need to strip them 10636 # from the output so that they don't get included in the library 10637 # dependencies. 10638 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' 10639 10640 # Archives containing C++ object files must be created using 10641 # "CC -xar", where "CC" is the Sun C++ compiler. This is 10642 # necessary to make sure instantiated templates are included 10643 # in the archive. 10644 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 10645 ;; 10646 gcx) 10647 # Green Hills C++ Compiler 10648 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10649 10650 # The C++ compiler must be used to create the archive. 10651 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 10652 ;; 10653 *) 10654 # GNU C++ compiler with Solaris linker 10655 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10656 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 10657 if $CC --version | grep -v '^2\.7' > /dev/null; then 10658 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10659 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10660 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10661 10662 # Commands to make compiler produce verbose output that lists 10663 # what "hidden" libraries, object files and flags are used when 10664 # linking a shared library. 10665 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10666 else 10667 # g++ 2.7 appears to require `-G' NOT `-shared' on this 10668 # platform. 10669 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10670 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10671 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10672 10673 # Commands to make compiler produce verbose output that lists 10674 # what "hidden" libraries, object files and flags are used when 10675 # linking a shared library. 10676 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10677 fi 10678 10679 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 10680 fi 10681 ;; 10682 esac 10683 ;; 10684 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 10685 archive_cmds_need_lc_CXX=no 10686 ;; 10687 tandem*) 10688 case $cc_basename in 10689 NCC) 10690 # NonStop-UX NCC 3.20 10691 # FIXME: insert proper C++ library support 10692 ld_shlibs_CXX=no 10693 ;; 10694 *) 10695 # FIXME: insert proper C++ library support 10696 ld_shlibs_CXX=no 10697 ;; 10698 esac 10699 ;; 10700 vxworks*) 10701 # FIXME: insert proper C++ library support 10702 ld_shlibs_CXX=no 10703 ;; 10704 *) 10705 # FIXME: insert proper C++ library support 10706 ld_shlibs_CXX=no 10707 ;; 10708 esac 10709 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 10710 echo "${ECHO_T}$ld_shlibs_CXX" >&6 10711 test "$ld_shlibs_CXX" = no && can_build_shared=no 10712 10713 GCC_CXX="$GXX" 10714 LD_CXX="$LD" 10715 10716 10717 cat > conftest.$ac_ext <<EOF 10718 class Foo 10719 { 10720 public: 10721 Foo (void) { a = 0; } 10722 private: 10723 int a; 10724 }; 10725 EOF 10726 10727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10728 (eval $ac_compile) 2>&5 10729 ac_status=$? 10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10731 (exit $ac_status); }; then 10732 # Parse the compiler output and extract the necessary 10733 # objects, libraries and library flags. 10734 10735 # Sentinel used to keep track of whether or not we are before 10736 # the conftest object file. 10737 pre_test_object_deps_done=no 10738 10739 # The `*' in the case matches for architectures that use `case' in 10740 # $output_verbose_cmd can trigger glob expansion during the loop 10741 # eval without this substitution. 10742 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" 10743 10744 for p in `eval $output_verbose_link_cmd`; do 10745 case $p in 10746 10747 -L* | -R* | -l*) 10748 # Some compilers place space between "-{L,R}" and the path. 10749 # Remove the space. 10750 if test $p = "-L" \ 10751 || test $p = "-R"; then 10752 prev=$p 10753 continue 10754 else 10755 prev= 10756 fi 10757 10758 if test "$pre_test_object_deps_done" = no; then 10759 case $p in 10760 -L* | -R*) 10761 # Internal compiler library paths should come after those 10762 # provided the user. The postdeps already come after the 10763 # user supplied libs so there is no need to process them. 10764 if test -z "$compiler_lib_search_path_CXX"; then 10765 compiler_lib_search_path_CXX="${prev}${p}" 10766 else 10767 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 10768 fi 10769 ;; 10770 # The "-l" case would never come before the object being 10771 # linked, so don't bother handling this case. 10772 esac 10773 else 10774 if test -z "$postdeps_CXX"; then 10775 postdeps_CXX="${prev}${p}" 10776 else 10777 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 10778 fi 10779 fi 10780 ;; 10781 10782 *.$objext) 10783 # This assumes that the test object file only shows up 10784 # once in the compiler output. 10785 if test "$p" = "conftest.$objext"; then 10786 pre_test_object_deps_done=yes 10787 continue 10788 fi 10789 10790 if test "$pre_test_object_deps_done" = no; then 10791 if test -z "$predep_objects_CXX"; then 10792 predep_objects_CXX="$p" 10793 else 10794 predep_objects_CXX="$predep_objects_CXX $p" 10795 fi 10796 else 10797 if test -z "$postdep_objects_CXX"; then 10798 postdep_objects_CXX="$p" 10799 else 10800 postdep_objects_CXX="$postdep_objects_CXX $p" 10801 fi 10802 fi 10803 ;; 10804 10805 *) ;; # Ignore the rest. 10806 10807 esac 10808 done 10809 10810 # Clean up. 10811 rm -f a.out a.exe 10812 else 10813 echo "libtool.m4: error: problem compiling CXX test program" 10814 fi 10815 10816 $rm -f confest.$objext 10817 10818 case " $postdeps_CXX " in 10819 *" -lc "*) archive_cmds_need_lc_CXX=no ;; 10820 esac 10821 10822 lt_prog_compiler_wl_CXX= 10823 lt_prog_compiler_pic_CXX= 10824 lt_prog_compiler_static_CXX= 10825 10826 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 10827 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 10828 10829 # C++ specific cases for pic, static, wl, etc. 10830 if test "$GXX" = yes; then 10831 lt_prog_compiler_wl_CXX='-Wl,' 10832 lt_prog_compiler_static_CXX='-static' 10833 10834 case $host_os in 10835 aix*) 10836 # All AIX code is PIC. 10837 if test "$host_cpu" = ia64; then 10838 # AIX 5 now supports IA64 processor 10839 lt_prog_compiler_static_CXX='-Bstatic' 10840 fi 10841 ;; 10842 amigaos*) 10843 # FIXME: we need at least 68020 code to build shared libraries, but 10844 # adding the `-m68020' flag to GCC prevents building anything better, 10845 # like `-m68040'. 10846 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 10847 ;; 10848 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10849 # PIC is the default for these OSes. 10850 ;; 10851 mingw* | os2* | pw32*) 10852 # This hack is so that the source file can tell whether it is being 10853 # built for inclusion in a dll (and should export symbols for example). 10854 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 10855 ;; 10856 darwin* | rhapsody*) 10857 # PIC is the default on this platform 10858 # Common symbols not allowed in MH_DYLIB files 10859 lt_prog_compiler_pic_CXX='-fno-common' 10860 ;; 10861 *djgpp*) 10862 # DJGPP does not support shared libraries at all 10863 lt_prog_compiler_pic_CXX= 10864 ;; 10865 sysv4*MP*) 10866 if test -d /usr/nec; then 10867 lt_prog_compiler_pic_CXX=-Kconform_pic 10868 fi 10869 ;; 10870 hpux*) 10871 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10872 # not for PA HP-UX. 10873 case "$host_cpu" in 10874 hppa*64*|ia64*) 10875 ;; 10876 *) 10877 lt_prog_compiler_pic_CXX='-fPIC' 10878 ;; 10879 esac 10880 ;; 10881 *) 10882 lt_prog_compiler_pic_CXX='-fPIC' 10883 ;; 10884 esac 10885 else 10886 case $host_os in 10887 aix4* | aix5*) 10888 # All AIX code is PIC. 10889 if test "$host_cpu" = ia64; then 10890 # AIX 5 now supports IA64 processor 10891 lt_prog_compiler_static_CXX='-Bstatic' 10892 else 10893 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 10894 fi 10895 ;; 10896 chorus*) 10897 case $cc_basename in 10898 cxch68) 10899 # Green Hills C++ Compiler 10900 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--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" 10901 ;; 10902 esac 10903 ;; 10904 dgux*) 10905 case $cc_basename in 10906 ec++) 10907 lt_prog_compiler_pic_CXX='-KPIC' 10908 ;; 10909 ghcx) 10910 # Green Hills C++ Compiler 10911 lt_prog_compiler_pic_CXX='-pic' 10912 ;; 10913 *) 10914 ;; 10915 esac 10916 ;; 10917 freebsd* | kfreebsd*-gnu) 10918 # FreeBSD uses GNU C++ 10919 ;; 10920 hpux9* | hpux10* | hpux11*) 10921 case $cc_basename in 10922 CC) 10923 lt_prog_compiler_wl_CXX='-Wl,' 10924 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 10925 if test "$host_cpu" != ia64; then 10926 lt_prog_compiler_pic_CXX='+Z' 10927 fi 10928 ;; 10929 aCC) 10930 lt_prog_compiler_wl_CXX='-Wl,' 10931 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 10932 case "$host_cpu" in 10933 hppa*64*|ia64*) 10934 # +Z the default 10935 ;; 10936 *) 10937 lt_prog_compiler_pic_CXX='+Z' 10938 ;; 10939 esac 10940 ;; 10941 *) 10942 ;; 10943 esac 10944 ;; 10945 irix5* | irix6* | nonstopux*) 10946 case $cc_basename in 10947 CC) 10948 lt_prog_compiler_wl_CXX='-Wl,' 10949 lt_prog_compiler_static_CXX='-non_shared' 10950 # CC pic flag -KPIC is the default. 10951 ;; 10952 *) 10953 ;; 10954 esac 10955 ;; 10956 linux*) 10957 case $cc_basename in 10958 KCC) 10959 # KAI C++ Compiler 10960 lt_prog_compiler_wl_CXX='--backend -Wl,' 10961 lt_prog_compiler_pic_CXX='-fPIC' 10962 ;; 10963 icpc) 10964 # Intel C++ 10965 lt_prog_compiler_wl_CXX='-Wl,' 10966 lt_prog_compiler_pic_CXX='-KPIC' 10967 lt_prog_compiler_static_CXX='-static' 10968 ;; 10969 cxx) 10970 # Compaq C++ 10971 # Make sure the PIC flag is empty. It appears that all Alpha 10972 # Linux and Compaq Tru64 Unix objects are PIC. 10973 lt_prog_compiler_pic_CXX= 10974 lt_prog_compiler_static_CXX='-non_shared' 10975 ;; 10976 *) 10977 ;; 10978 esac 10979 ;; 10980 lynxos*) 10981 ;; 10982 m88k*) 10983 ;; 10984 mvs*) 10985 case $cc_basename in 10986 cxx) 10987 lt_prog_compiler_pic_CXX='-W c,exportall' 10988 ;; 10989 *) 10990 ;; 10991 esac 10992 ;; 10993 netbsd*) 10994 ;; 10995 osf3* | osf4* | osf5*) 10996 case $cc_basename in 10997 KCC) 10998 lt_prog_compiler_wl_CXX='--backend -Wl,' 10999 ;; 11000 RCC) 11001 # Rational C++ 2.4.1 11002 lt_prog_compiler_pic_CXX='-pic' 11003 ;; 11004 cxx) 11005 # Digital/Compaq C++ 11006 lt_prog_compiler_wl_CXX='-Wl,' 11007 # Make sure the PIC flag is empty. It appears that all Alpha 11008 # Linux and Compaq Tru64 Unix objects are PIC. 11009 lt_prog_compiler_pic_CXX= 11010 lt_prog_compiler_static_CXX='-non_shared' 11011 ;; 11012 *) 11013 ;; 11014 esac 11015 ;; 11016 psos*) 11017 ;; 11018 sco*) 11019 case $cc_basename in 11020 CC) 11021 lt_prog_compiler_pic_CXX='-fPIC' 11022 ;; 11023 *) 11024 ;; 11025 esac 11026 ;; 11027 solaris*) 11028 case $cc_basename in 11029 CC) 11030 # Sun C++ 4.2, 5.x and Centerline C++ 11031 lt_prog_compiler_pic_CXX='-KPIC' 11032 lt_prog_compiler_static_CXX='-Bstatic' 11033 lt_prog_compiler_wl_CXX='-Qoption ld ' 11034 ;; 11035 gcx) 11036 # Green Hills C++ Compiler 11037 lt_prog_compiler_pic_CXX='-PIC' 11038 ;; 11039 *) 11040 ;; 11041 esac 11042 ;; 11043 sunos4*) 11044 case $cc_basename in 11045 CC) 11046 # Sun C++ 4.x 11047 lt_prog_compiler_pic_CXX='-pic' 11048 lt_prog_compiler_static_CXX='-Bstatic' 11049 ;; 11050 lcc) 11051 # Lucid 11052 lt_prog_compiler_pic_CXX='-pic' 11053 ;; 11054 *) 11055 ;; 11056 esac 11057 ;; 11058 tandem*) 11059 case $cc_basename in 11060 NCC) 11061 # NonStop-UX NCC 3.20 11062 lt_prog_compiler_pic_CXX='-KPIC' 11063 ;; 11064 *) 11065 ;; 11066 esac 11067 ;; 11068 unixware*) 11069 ;; 11070 vxworks*) 11071 ;; 11072 *) 11073 lt_prog_compiler_can_build_shared_CXX=no 11074 ;; 11075 esac 11076 fi 11077 11078 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 11079 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 11080 11081 # 11082 # Check to make sure the PIC flag actually works. 11083 # 11084 if test -n "$lt_prog_compiler_pic_CXX"; then 11085 11086 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11087 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 11088 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 11089 echo $ECHO_N "(cached) $ECHO_C" >&6 11090 else 11091 lt_prog_compiler_pic_works_CXX=no 11092 ac_outfile=conftest.$ac_objext 11093 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11094 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11095 # Insert the option either (1) after the last *FLAGS variable, or 11096 # (2) before a word containing "conftest.", or (3) at the end. 11097 # Note that $ac_compile itself does not contain backslashes and begins 11098 # with a dollar sign (not a hyphen), so the echo should work correctly. 11099 # The option is referenced via a variable to avoid confusing sed. 11100 lt_compile=`echo "$ac_compile" | $SED \ 11101 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 11102 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11103 -e 's:$: $lt_compiler_flag:'` 11104 (eval echo "\"\$as_me:11104: $lt_compile\"" >&5) 11105 (eval "$lt_compile" 2>conftest.err) 11106 ac_status=$? 11107 cat conftest.err >&5 11108 echo "$as_me:11108: \$? = $ac_status" >&5 11109 if (exit $ac_status) && test -s "$ac_outfile"; then 11110 # The compiler can only warn and ignore the option if not recognized 11111 # So say no if there are warnings 11112 if test ! -s conftest.err; then 11113 lt_prog_compiler_pic_works_CXX=yes 11114 fi 11115 fi 11116 $rm conftest* 11117 11118 fi 11119 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11120 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 11121 11122 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11123 case $lt_prog_compiler_pic_CXX in 11124 "" | " "*) ;; 11125 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11126 esac 11127 else 11128 lt_prog_compiler_pic_CXX= 11129 lt_prog_compiler_can_build_shared_CXX=no 11130 fi 11131 11132 fi 11133 case "$host_os" in 11134 # For platforms which do not support PIC, -DPIC is meaningless: 11135 *djgpp*) 11136 lt_prog_compiler_pic_CXX= 11137 ;; 11138 *) 11139 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11140 ;; 11141 esac 11142 11143 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11144 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11145 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11146 echo $ECHO_N "(cached) $ECHO_C" >&6 11147 else 11148 lt_cv_prog_compiler_c_o_CXX=no 11149 $rm -r conftest 2>/dev/null 11150 mkdir conftest 11151 cd conftest 11152 mkdir out 11153 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11154 11155 lt_compiler_flag="-o out/conftest2.$ac_objext" 11156 # Insert the option either (1) after the last *FLAGS variable, or 11157 # (2) before a word containing "conftest.", or (3) at the end. 11158 # Note that $ac_compile itself does not contain backslashes and begins 11159 # with a dollar sign (not a hyphen), so the echo should work correctly. 11160 lt_compile=`echo "$ac_compile" | $SED \ 11161 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 11162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11163 -e 's:$: $lt_compiler_flag:'` 11164 (eval echo "\"\$as_me:11164: $lt_compile\"" >&5) 11165 (eval "$lt_compile" 2>out/conftest.err) 11166 ac_status=$? 11167 cat out/conftest.err >&5 11168 echo "$as_me:11168: \$? = $ac_status" >&5 11169 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11170 then 11171 # The compiler can only warn and ignore the option if not recognized 11172 # So say no if there are warnings 11173 if test ! -s out/conftest.err; then 11174 lt_cv_prog_compiler_c_o_CXX=yes 11175 fi 11176 fi 11177 chmod u+w . 11178 $rm conftest* 11179 # SGI C++ compiler will create directory out/ii_files/ for 11180 # template instantiation 11181 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11182 $rm out/* && rmdir out 11183 cd .. 11184 rmdir conftest 11185 $rm conftest* 11186 11187 fi 11188 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11189 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11190 11191 11192 hard_links="nottested" 11193 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11194 # do not overwrite the value of need_locks provided by the user 11195 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11196 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11197 hard_links=yes 11198 $rm conftest* 11199 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11200 touch conftest.a 11201 ln conftest.a conftest.b 2>&5 || hard_links=no 11202 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11203 echo "$as_me:$LINENO: result: $hard_links" >&5 11204 echo "${ECHO_T}$hard_links" >&6 11205 if test "$hard_links" = no; then 11206 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11207 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11208 need_locks=warn 11209 fi 11210 else 11211 need_locks=no 11212 fi 11213 11214 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11215 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11216 11217 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11218 case $host_os in 11219 aix4* | aix5*) 11220 # If we're using GNU nm, then we don't want the "-C" option. 11221 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11222 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11223 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 11224 else 11225 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 11226 fi 11227 ;; 11228 pw32*) 11229 export_symbols_cmds_CXX="$ltdll_cmds" 11230 ;; 11231 cygwin* | mingw*) 11232 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 11233 ;; 11234 *) 11235 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11236 ;; 11237 esac 11238 11239 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11240 echo "${ECHO_T}$ld_shlibs_CXX" >&6 11241 test "$ld_shlibs_CXX" = no && can_build_shared=no 11242 11243 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11244 if test "$GCC" = yes; then 11245 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11246 fi 11247 11248 # 11249 # Do we need to explicitly link libc? 11250 # 11251 case "x$archive_cmds_need_lc_CXX" in 11252 x|xyes) 11253 # Assume -lc should be added 11254 archive_cmds_need_lc_CXX=yes 11255 11256 if test "$enable_shared" = yes && test "$GCC" = yes; then 11257 case $archive_cmds_CXX in 11258 *'~'*) 11259 # FIXME: we may have to deal with multi-command sequences. 11260 ;; 11261 '$CC '*) 11262 # Test whether the compiler implicitly links with -lc since on some 11263 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11264 # to ld, don't add -lc before -lgcc. 11265 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11266 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11267 $rm conftest* 11268 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11269 11270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11271 (eval $ac_compile) 2>&5 11272 ac_status=$? 11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11274 (exit $ac_status); } 2>conftest.err; then 11275 soname=conftest 11276 lib=conftest 11277 libobjs=conftest.$ac_objext 11278 deplibs= 11279 wl=$lt_prog_compiler_wl_CXX 11280 compiler_flags=-v 11281 linker_flags=-v 11282 verstring= 11283 output_objdir=. 11284 libname=conftest 11285 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11286 allow_undefined_flag_CXX= 11287 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11288 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11289 ac_status=$? 11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11291 (exit $ac_status); } 11292 then 11293 archive_cmds_need_lc_CXX=no 11294 else 11295 archive_cmds_need_lc_CXX=yes 11296 fi 11297 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 11298 else 11299 cat conftest.err 1>&5 11300 fi 11301 $rm conftest* 11302 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 11303 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 11304 ;; 11305 esac 11306 fi 11307 ;; 11308 esac 11309 11310 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11311 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 11312 library_names_spec= 11313 libname_spec='lib$name' 11314 soname_spec= 11315 shrext_cmds=".so" 11316 postinstall_cmds= 11317 postuninstall_cmds= 11318 finish_cmds= 11319 finish_eval= 11320 shlibpath_var= 11321 shlibpath_overrides_runpath=unknown 11322 version_type=none 11323 dynamic_linker="$host_os ld.so" 11324 sys_lib_dlsearch_path_spec="/lib /usr/lib" 11325 if test "$GCC" = yes; then 11326 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11327 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11328 # if the path contains ";" then we assume it to be the separator 11329 # otherwise default to the standard path separator (i.e. ":") - it is 11330 # assumed that no part of a normal pathname contains ";" but that should 11331 # okay in the real world where ";" in dirpaths is itself problematic. 11332 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11333 else 11334 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11335 fi 11336 else 11337 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11338 fi 11339 need_lib_prefix=unknown 11340 hardcode_into_libs=no 11341 11342 # when you set need_version to no, make sure it does not cause -set_version 11343 # flags to be left without arguments 11344 need_version=unknown 11345 11346 case $host_os in 11347 aix3*) 11348 version_type=linux 11349 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11350 shlibpath_var=LIBPATH 11351 11352 # AIX 3 has no versioning support, so we append a major version to the name. 11353 soname_spec='${libname}${release}${shared_ext}$major' 11354 ;; 11355 11356 aix4* | aix5*) 11357 version_type=linux 11358 need_lib_prefix=no 11359 need_version=no 11360 hardcode_into_libs=yes 11361 if test "$host_cpu" = ia64; then 11362 # AIX 5 supports IA64 11363 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11364 shlibpath_var=LD_LIBRARY_PATH 11365 else 11366 # With GCC up to 2.95.x, collect2 would create an import file 11367 # for dependence libraries. The import file would start with 11368 # the line `#! .'. This would cause the generated library to 11369 # depend on `.', always an invalid library. This was fixed in 11370 # development snapshots of GCC prior to 3.0. 11371 case $host_os in 11372 aix4 | aix4.[01] | aix4.[01].*) 11373 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11374 echo ' yes ' 11375 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11376 : 11377 else 11378 can_build_shared=no 11379 fi 11380 ;; 11381 esac 11382 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11383 # soname into executable. Probably we can add versioning support to 11384 # collect2, so additional links can be useful in future. 11385 if test "$aix_use_runtimelinking" = yes; then 11386 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11387 # instead of lib<name>.a to let people know that these are not 11388 # typical AIX shared libraries. 11389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11390 else 11391 # We preserve .a as extension for shared libraries through AIX4.2 11392 # and later when we are not doing run time linking. 11393 library_names_spec='${libname}${release}.a $libname.a' 11394 soname_spec='${libname}${release}${shared_ext}$major' 11395 fi 11396 shlibpath_var=LIBPATH 11397 fi 11398 ;; 11399 11400 amigaos*) 11401 library_names_spec='$libname.ixlibrary $libname.a' 11402 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11403 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11404 ;; 11405 11406 beos*) 11407 library_names_spec='${libname}${shared_ext}' 11408 dynamic_linker="$host_os ld.so" 11409 shlibpath_var=LIBRARY_PATH 11410 ;; 11411 11412 bsdi4*) 11413 version_type=linux 11414 need_version=no 11415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11416 soname_spec='${libname}${release}${shared_ext}$major' 11417 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11418 shlibpath_var=LD_LIBRARY_PATH 11419 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11420 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11421 # the default ld.so.conf also contains /usr/contrib/lib and 11422 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11423 # libtool to hard-code these into programs 11424 ;; 11425 11426 cygwin* | mingw* | pw32*) 11427 version_type=windows 11428 shrext_cmds=".dll" 11429 need_version=no 11430 need_lib_prefix=no 11431 11432 case $GCC,$host_os in 11433 yes,cygwin* | yes,mingw* | yes,pw32*) 11434 library_names_spec='$libname.dll.a' 11435 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11436 postinstall_cmds='base_file=`basename \${file}`~ 11437 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11438 dldir=$destdir/`dirname \$dlpath`~ 11439 test -d \$dldir || mkdir -p \$dldir~ 11440 $install_prog $dir/$dlname \$dldir/$dlname' 11441 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11442 dlpath=$dir/\$dldll~ 11443 $rm \$dlpath' 11444 shlibpath_overrides_runpath=yes 11445 11446 case $host_os in 11447 cygwin*) 11448 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11449 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11450 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11451 ;; 11452 mingw*) 11453 # MinGW DLLs use traditional 'lib' prefix 11454 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11455 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11456 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11457 # It is most probably a Windows format PATH printed by 11458 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11459 # path with ; separators, and with drive letters. We can handle the 11460 # drive letters (cygwin fileutils understands them), so leave them, 11461 # especially as we might pass files found there to a mingw objdump, 11462 # which wouldn't understand a cygwinified path. Ahh. 11463 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11464 else 11465 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11466 fi 11467 ;; 11468 pw32*) 11469 # pw32 DLLs use 'pw' prefix rather than 'lib' 11470 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 11471 ;; 11472 esac 11473 ;; 11474 11475 *) 11476 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11477 ;; 11478 esac 11479 dynamic_linker='Win32 ld.exe' 11480 # FIXME: first we should search . and the directory the executable is in 11481 shlibpath_var=PATH 11482 ;; 11483 11484 darwin* | rhapsody*) 11485 dynamic_linker="$host_os dyld" 11486 version_type=darwin 11487 need_lib_prefix=no 11488 need_version=no 11489 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11490 soname_spec='${libname}${release}${major}$shared_ext' 11491 shlibpath_overrides_runpath=yes 11492 shlibpath_var=DYLD_LIBRARY_PATH 11493 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 11494 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 11495 if test "$GCC" = yes; then 11496 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"` 11497 else 11498 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 11499 fi 11500 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11501 ;; 11502 11503 dgux*) 11504 version_type=linux 11505 need_lib_prefix=no 11506 need_version=no 11507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11508 soname_spec='${libname}${release}${shared_ext}$major' 11509 shlibpath_var=LD_LIBRARY_PATH 11510 ;; 11511 11512 freebsd1*) 11513 dynamic_linker=no 11514 ;; 11515 11516 kfreebsd*-gnu) 11517 version_type=linux 11518 need_lib_prefix=no 11519 need_version=no 11520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11521 soname_spec='${libname}${release}${shared_ext}$major' 11522 shlibpath_var=LD_LIBRARY_PATH 11523 shlibpath_overrides_runpath=no 11524 hardcode_into_libs=yes 11525 dynamic_linker='GNU ld.so' 11526 ;; 11527 11528 freebsd*) 11529 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 11530 version_type=freebsd-$objformat 11531 case $version_type in 11532 freebsd-elf*) 11533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11534 need_version=no 11535 need_lib_prefix=no 11536 ;; 11537 freebsd-*) 11538 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11539 need_version=yes 11540 ;; 11541 esac 11542 shlibpath_var=LD_LIBRARY_PATH 11543 case $host_os in 11544 freebsd2*) 11545 shlibpath_overrides_runpath=yes 11546 ;; 11547 freebsd3.01* | freebsdelf3.01*) 11548 shlibpath_overrides_runpath=yes 11549 hardcode_into_libs=yes 11550 ;; 11551 *) # from 3.2 on 11552 shlibpath_overrides_runpath=no 11553 hardcode_into_libs=yes 11554 ;; 11555 esac 11556 ;; 11557 11558 gnu*) 11559 version_type=linux 11560 need_lib_prefix=no 11561 need_version=no 11562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11563 soname_spec='${libname}${release}${shared_ext}$major' 11564 shlibpath_var=LD_LIBRARY_PATH 11565 hardcode_into_libs=yes 11566 ;; 11567 11568 hpux9* | hpux10* | hpux11*) 11569 # Give a soname corresponding to the major version so that dld.sl refuses to 11570 # link against other versions. 11571 version_type=sunos 11572 need_lib_prefix=no 11573 need_version=no 11574 case "$host_cpu" in 11575 ia64*) 11576 shrext_cmds='.so' 11577 hardcode_into_libs=yes 11578 dynamic_linker="$host_os dld.so" 11579 shlibpath_var=LD_LIBRARY_PATH 11580 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11582 soname_spec='${libname}${release}${shared_ext}$major' 11583 if test "X$HPUX_IA64_MODE" = X32; then 11584 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11585 else 11586 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11587 fi 11588 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11589 ;; 11590 hppa*64*) 11591 shrext_cmds='.sl' 11592 hardcode_into_libs=yes 11593 dynamic_linker="$host_os dld.sl" 11594 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11595 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11597 soname_spec='${libname}${release}${shared_ext}$major' 11598 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11599 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11600 ;; 11601 *) 11602 shrext_cmds='.sl' 11603 dynamic_linker="$host_os dld.sl" 11604 shlibpath_var=SHLIB_PATH 11605 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11607 soname_spec='${libname}${release}${shared_ext}$major' 11608 ;; 11609 esac 11610 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11611 postinstall_cmds='chmod 555 $lib' 11612 ;; 11613 11614 irix5* | irix6* | nonstopux*) 11615 case $host_os in 11616 nonstopux*) version_type=nonstopux ;; 11617 *) 11618 if test "$lt_cv_prog_gnu_ld" = yes; then 11619 version_type=linux 11620 else 11621 version_type=irix 11622 fi ;; 11623 esac 11624 need_lib_prefix=no 11625 need_version=no 11626 soname_spec='${libname}${release}${shared_ext}$major' 11627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11628 case $host_os in 11629 irix5* | nonstopux*) 11630 libsuff= shlibsuff= 11631 ;; 11632 *) 11633 case $LD in # libtool.m4 will add one of these switches to LD 11634 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11635 libsuff= shlibsuff= libmagic=32-bit;; 11636 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11637 libsuff=32 shlibsuff=N32 libmagic=N32;; 11638 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11639 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11640 *) libsuff= shlibsuff= libmagic=never-match;; 11641 esac 11642 ;; 11643 esac 11644 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11645 shlibpath_overrides_runpath=no 11646 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11647 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11648 hardcode_into_libs=yes 11649 ;; 11650 11651 # No shared lib support for Linux oldld, aout, or coff. 11652 linux*oldld* | linux*aout* | linux*coff*) 11653 dynamic_linker=no 11654 ;; 11655 11656 # This must be Linux ELF. 11657 linux*) 11658 version_type=linux 11659 need_lib_prefix=no 11660 need_version=no 11661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11662 soname_spec='${libname}${release}${shared_ext}$major' 11663 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11664 shlibpath_var=LD_LIBRARY_PATH 11665 shlibpath_overrides_runpath=no 11666 # This implies no fast_install, which is unacceptable. 11667 # Some rework will be needed to allow for fast_install 11668 # before this can be enabled. 11669 hardcode_into_libs=yes 11670 11671 # find out which ABI we are using 11672 libsuff= 11673 case "$host_cpu" in 11674 x86_64*|s390x*|powerpc64*) 11675 echo '#line 11675 "configure"' > conftest.$ac_ext 11676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11677 (eval $ac_compile) 2>&5 11678 ac_status=$? 11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11680 (exit $ac_status); }; then 11681 case `/usr/bin/file conftest.$ac_objext` in 11682 *64-bit*) 11683 libsuff=64 11684 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 11685 ;; 11686 esac 11687 fi 11688 rm -rf conftest* 11689 ;; 11690 esac 11691 11692 # Append ld.so.conf contents to the search path 11693 if test -f /etc/ld.so.conf; then 11694 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 11695 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 11696 fi 11697 11698 # We used to test for /lib/ld.so.1 and disable shared libraries on 11699 # powerpc, because MkLinux only supported shared libraries with the 11700 # GNU dynamic linker. Since this was broken with cross compilers, 11701 # most powerpc-linux boxes support dynamic linking these days and 11702 # people can always --disable-shared, the test was removed, and we 11703 # assume the GNU/Linux dynamic linker is in use. 11704 dynamic_linker='GNU/Linux ld.so' 11705 ;; 11706 11707 knetbsd*-gnu) 11708 version_type=linux 11709 need_lib_prefix=no 11710 need_version=no 11711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11712 soname_spec='${libname}${release}${shared_ext}$major' 11713 shlibpath_var=LD_LIBRARY_PATH 11714 shlibpath_overrides_runpath=no 11715 hardcode_into_libs=yes 11716 dynamic_linker='GNU ld.so' 11717 ;; 11718 11719 netbsd*) 11720 version_type=sunos 11721 need_lib_prefix=no 11722 need_version=no 11723 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11725 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11726 dynamic_linker='NetBSD (a.out) ld.so' 11727 else 11728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11729 soname_spec='${libname}${release}${shared_ext}$major' 11730 dynamic_linker='NetBSD ld.elf_so' 11731 fi 11732 shlibpath_var=LD_LIBRARY_PATH 11733 shlibpath_overrides_runpath=yes 11734 hardcode_into_libs=yes 11735 ;; 11736 11737 newsos6) 11738 version_type=linux 11739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11740 shlibpath_var=LD_LIBRARY_PATH 11741 shlibpath_overrides_runpath=yes 11742 ;; 11743 11744 nto-qnx*) 11745 version_type=linux 11746 need_lib_prefix=no 11747 need_version=no 11748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11749 soname_spec='${libname}${release}${shared_ext}$major' 11750 shlibpath_var=LD_LIBRARY_PATH 11751 shlibpath_overrides_runpath=yes 11752 ;; 11753 11754 openbsd*) 11755 version_type=sunos 11756 need_lib_prefix=no 11757 need_version=yes 11758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11759 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11760 shlibpath_var=LD_LIBRARY_PATH 11761 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11762 case $host_os in 11763 openbsd2.[89] | openbsd2.[89].*) 11764 shlibpath_overrides_runpath=no 11765 ;; 11766 *) 11767 shlibpath_overrides_runpath=yes 11768 ;; 11769 esac 11770 else 11771 shlibpath_overrides_runpath=yes 11772 fi 11773 ;; 11774 11775 os2*) 11776 libname_spec='$name' 11777 shrext_cmds=".dll" 11778 need_lib_prefix=no 11779 library_names_spec='$libname${shared_ext} $libname.a' 11780 dynamic_linker='OS/2 ld.exe' 11781 shlibpath_var=LIBPATH 11782 ;; 11783 11784 osf3* | osf4* | osf5*) 11785 version_type=osf 11786 need_lib_prefix=no 11787 need_version=no 11788 soname_spec='${libname}${release}${shared_ext}$major' 11789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11790 shlibpath_var=LD_LIBRARY_PATH 11791 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11792 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11793 ;; 11794 11795 sco3.2v5*) 11796 version_type=osf 11797 soname_spec='${libname}${release}${shared_ext}$major' 11798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11799 shlibpath_var=LD_LIBRARY_PATH 11800 ;; 11801 11802 solaris*) 11803 version_type=linux 11804 need_lib_prefix=no 11805 need_version=no 11806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11807 soname_spec='${libname}${release}${shared_ext}$major' 11808 shlibpath_var=LD_LIBRARY_PATH 11809 shlibpath_overrides_runpath=yes 11810 hardcode_into_libs=yes 11811 # ldd complains unless libraries are executable 11812 postinstall_cmds='chmod +x $lib' 11813 ;; 11814 11815 sunos4*) 11816 version_type=sunos 11817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11818 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11819 shlibpath_var=LD_LIBRARY_PATH 11820 shlibpath_overrides_runpath=yes 11821 if test "$with_gnu_ld" = yes; then 11822 need_lib_prefix=no 11823 fi 11824 need_version=yes 11825 ;; 11826 11827 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11828 version_type=linux 11829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11830 soname_spec='${libname}${release}${shared_ext}$major' 11831 shlibpath_var=LD_LIBRARY_PATH 11832 case $host_vendor in 11833 sni) 11834 shlibpath_overrides_runpath=no 11835 need_lib_prefix=no 11836 export_dynamic_flag_spec='${wl}-Blargedynsym' 11837 runpath_var=LD_RUN_PATH 11838 ;; 11839 siemens) 11840 need_lib_prefix=no 11841 ;; 11842 motorola) 11843 need_lib_prefix=no 11844 need_version=no 11845 shlibpath_overrides_runpath=no 11846 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11847 ;; 11848 esac 11849 ;; 11850 11851 sysv4*MP*) 11852 if test -d /usr/nec ;then 11853 version_type=linux 11854 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11855 soname_spec='$libname${shared_ext}.$major' 11856 shlibpath_var=LD_LIBRARY_PATH 11857 fi 11858 ;; 11859 11860 uts4*) 11861 version_type=linux 11862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11863 soname_spec='${libname}${release}${shared_ext}$major' 11864 shlibpath_var=LD_LIBRARY_PATH 11865 ;; 11866 11867 *) 11868 dynamic_linker=no 11869 ;; 11870 esac 11871 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 11872 echo "${ECHO_T}$dynamic_linker" >&6 11873 test "$dynamic_linker" = no && can_build_shared=no 11874 11875 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 11876 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 11877 hardcode_action_CXX= 11878 if test -n "$hardcode_libdir_flag_spec_CXX" || \ 11879 test -n "$runpath_var CXX" || \ 11880 test "X$hardcode_automatic_CXX"="Xyes" ; then 11881 11882 # We can hardcode non-existant directories. 11883 if test "$hardcode_direct_CXX" != no && 11884 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11885 # have to relink, otherwise we might link with an installed library 11886 # when we should be linking with a yet-to-be-installed one 11887 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 11888 test "$hardcode_minus_L_CXX" != no; then 11889 # Linking always hardcodes the temporary library directory. 11890 hardcode_action_CXX=relink 11891 else 11892 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11893 hardcode_action_CXX=immediate 11894 fi 11895 else 11896 # We cannot hardcode anything, or else we can only hardcode existing 11897 # directories. 11898 hardcode_action_CXX=unsupported 11899 fi 11900 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 11901 echo "${ECHO_T}$hardcode_action_CXX" >&6 11902 11903 if test "$hardcode_action_CXX" = relink; then 11904 # Fast installation is not supported 11905 enable_fast_install=no 11906 elif test "$shlibpath_overrides_runpath" = yes || 11907 test "$enable_shared" = no; then 11908 # Fast installation is not necessary 11909 enable_fast_install=needless 11910 fi 11911 11912 striplib= 11913 old_striplib= 11914 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11915 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 11916 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 11917 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11918 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11919 echo "$as_me:$LINENO: result: yes" >&5 11920 echo "${ECHO_T}yes" >&6 11921 else 11922 # FIXME - insert some real tests, host_os isn't really good enough 11923 case $host_os in 11924 darwin*) 11925 if test -n "$STRIP" ; then 11926 striplib="$STRIP -x" 11927 echo "$as_me:$LINENO: result: yes" >&5 11928 echo "${ECHO_T}yes" >&6 11929 else 11930 echo "$as_me:$LINENO: result: no" >&5 11931 echo "${ECHO_T}no" >&6 11932 fi 11933 ;; 11934 *) 11935 echo "$as_me:$LINENO: result: no" >&5 11936 echo "${ECHO_T}no" >&6 11937 ;; 11938 esac 11939 fi 11940 11941 if test "x$enable_dlopen" != xyes; then 11942 enable_dlopen=unknown 11943 enable_dlopen_self=unknown 11944 enable_dlopen_self_static=unknown 11945 else 11946 lt_cv_dlopen=no 11947 lt_cv_dlopen_libs= 11948 11949 case $host_os in 11950 beos*) 11951 lt_cv_dlopen="load_add_on" 11952 lt_cv_dlopen_libs= 11953 lt_cv_dlopen_self=yes 11954 ;; 11955 11956 mingw* | pw32*) 11957 lt_cv_dlopen="LoadLibrary" 11958 lt_cv_dlopen_libs= 11959 ;; 11960 11961 cygwin*) 11962 lt_cv_dlopen="dlopen" 11963 lt_cv_dlopen_libs= 11964 ;; 11965 11966 darwin*) 11967 # if libdl is installed we need to link against it 11968 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11969 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 11970 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11971 echo $ECHO_N "(cached) $ECHO_C" >&6 11972 else 11973 ac_check_lib_save_LIBS=$LIBS 11974 LIBS="-ldl $LIBS" 11975 cat >conftest.$ac_ext <<_ACEOF 11976 /* confdefs.h. */ 11977 _ACEOF 11978 cat confdefs.h >>conftest.$ac_ext 11979 cat >>conftest.$ac_ext <<_ACEOF 11980 /* end confdefs.h. */ 11981 11982 /* Override any gcc2 internal prototype to avoid an error. */ 11983 #ifdef __cplusplus 11984 extern "C" 11985 #endif 11986 /* We use char because int might match the return type of a gcc2 11987 builtin and then its argument prototype would still apply. */ 11988 char dlopen (); 11989 int 11990 main () 11991 { 11992 dlopen (); 11993 ; 11994 return 0; 11995 } 11996 _ACEOF 11997 rm -f conftest.$ac_objext conftest$ac_exeext 11998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11999 (eval $ac_link) 2>conftest.er1 12000 ac_status=$? 12001 grep -v '^ *+' conftest.er1 >conftest.err 12002 rm -f conftest.er1 12003 cat conftest.err >&5 12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12005 (exit $ac_status); } && 12006 { ac_try='test -z "$ac_cxx_werror_flag" 12007 || test ! -s conftest.err' 12008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12009 (eval $ac_try) 2>&5 12010 ac_status=$? 12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12012 (exit $ac_status); }; } && 12013 { ac_try='test -s conftest$ac_exeext' 12014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12015 (eval $ac_try) 2>&5 12016 ac_status=$? 12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12018 (exit $ac_status); }; }; then 12019 ac_cv_lib_dl_dlopen=yes 12020 else 12021 echo "$as_me: failed program was:" >&5 12022 sed 's/^/| /' conftest.$ac_ext >&5 12023 12024 ac_cv_lib_dl_dlopen=no 12025 fi 12026 rm -f conftest.err conftest.$ac_objext \ 12027 conftest$ac_exeext conftest.$ac_ext 12028 LIBS=$ac_check_lib_save_LIBS 12029 fi 12030 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12031 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12032 if test $ac_cv_lib_dl_dlopen = yes; then 12033 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12034 else 12035 12036 lt_cv_dlopen="dyld" 12037 lt_cv_dlopen_libs= 12038 lt_cv_dlopen_self=yes 12039 12040 fi 12041 12042 ;; 12043 12044 *) 12045 echo "$as_me:$LINENO: checking for shl_load" >&5 12046 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 12047 if test "${ac_cv_func_shl_load+set}" = set; then 12048 echo $ECHO_N "(cached) $ECHO_C" >&6 12049 else 12050 cat >conftest.$ac_ext <<_ACEOF 12051 /* confdefs.h. */ 12052 _ACEOF 12053 cat confdefs.h >>conftest.$ac_ext 12054 cat >>conftest.$ac_ext <<_ACEOF 12055 /* end confdefs.h. */ 12056 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 12057 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12058 #define shl_load innocuous_shl_load 12059 12060 /* System header to define __stub macros and hopefully few prototypes, 12061 which can conflict with char shl_load (); below. 12062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12063 <limits.h> exists even on freestanding compilers. */ 12064 12065 #ifdef __STDC__ 12066 # include <limits.h> 12067 #else 12068 # include <assert.h> 12069 #endif 12070 12071 #undef shl_load 12072 12073 /* Override any gcc2 internal prototype to avoid an error. */ 12074 #ifdef __cplusplus 12075 extern "C" 12076 { 12077 #endif 12078 /* We use char because int might match the return type of a gcc2 12079 builtin and then its argument prototype would still apply. */ 12080 char shl_load (); 12081 /* The GNU C library defines this for functions which it implements 12082 to always fail with ENOSYS. Some functions are actually named 12083 something starting with __ and the normal name is an alias. */ 12084 #if defined (__stub_shl_load) || defined (__stub___shl_load) 12085 choke me 12086 #else 12087 char (*f) () = shl_load; 12088 #endif 12089 #ifdef __cplusplus 12090 } 12091 #endif 12092 12093 int 12094 main () 12095 { 12096 return f != shl_load; 12097 ; 12098 return 0; 12099 } 12100 _ACEOF 12101 rm -f conftest.$ac_objext conftest$ac_exeext 12102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12103 (eval $ac_link) 2>conftest.er1 12104 ac_status=$? 12105 grep -v '^ *+' conftest.er1 >conftest.err 12106 rm -f conftest.er1 12107 cat conftest.err >&5 12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12109 (exit $ac_status); } && 12110 { ac_try='test -z "$ac_cxx_werror_flag" 12111 || test ! -s conftest.err' 12112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12113 (eval $ac_try) 2>&5 12114 ac_status=$? 12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12116 (exit $ac_status); }; } && 12117 { ac_try='test -s conftest$ac_exeext' 12118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12119 (eval $ac_try) 2>&5 12120 ac_status=$? 12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12122 (exit $ac_status); }; }; then 12123 ac_cv_func_shl_load=yes 12124 else 12125 echo "$as_me: failed program was:" >&5 12126 sed 's/^/| /' conftest.$ac_ext >&5 12127 12128 ac_cv_func_shl_load=no 12129 fi 12130 rm -f conftest.err conftest.$ac_objext \ 12131 conftest$ac_exeext conftest.$ac_ext 12132 fi 12133 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 12134 echo "${ECHO_T}$ac_cv_func_shl_load" >&6 12135 if test $ac_cv_func_shl_load = yes; then 12136 lt_cv_dlopen="shl_load" 12137 else 12138 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 12139 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 12140 if test "${ac_cv_lib_dld_shl_load+set}" = set; then 12141 echo $ECHO_N "(cached) $ECHO_C" >&6 12142 else 12143 ac_check_lib_save_LIBS=$LIBS 12144 LIBS="-ldld $LIBS" 12145 cat >conftest.$ac_ext <<_ACEOF 12146 /* confdefs.h. */ 12147 _ACEOF 12148 cat confdefs.h >>conftest.$ac_ext 12149 cat >>conftest.$ac_ext <<_ACEOF 12150 /* end confdefs.h. */ 12151 12152 /* Override any gcc2 internal prototype to avoid an error. */ 12153 #ifdef __cplusplus 12154 extern "C" 12155 #endif 12156 /* We use char because int might match the return type of a gcc2 12157 builtin and then its argument prototype would still apply. */ 12158 char shl_load (); 12159 int 12160 main () 12161 { 12162 shl_load (); 12163 ; 12164 return 0; 12165 } 12166 _ACEOF 12167 rm -f conftest.$ac_objext conftest$ac_exeext 12168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12169 (eval $ac_link) 2>conftest.er1 12170 ac_status=$? 12171 grep -v '^ *+' conftest.er1 >conftest.err 12172 rm -f conftest.er1 12173 cat conftest.err >&5 12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12175 (exit $ac_status); } && 12176 { ac_try='test -z "$ac_cxx_werror_flag" 12177 || test ! -s conftest.err' 12178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12179 (eval $ac_try) 2>&5 12180 ac_status=$? 12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12182 (exit $ac_status); }; } && 12183 { ac_try='test -s conftest$ac_exeext' 12184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12185 (eval $ac_try) 2>&5 12186 ac_status=$? 12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12188 (exit $ac_status); }; }; then 12189 ac_cv_lib_dld_shl_load=yes 12190 else 12191 echo "$as_me: failed program was:" >&5 12192 sed 's/^/| /' conftest.$ac_ext >&5 12193 12194 ac_cv_lib_dld_shl_load=no 12195 fi 12196 rm -f conftest.err conftest.$ac_objext \ 12197 conftest$ac_exeext conftest.$ac_ext 12198 LIBS=$ac_check_lib_save_LIBS 12199 fi 12200 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 12201 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 12202 if test $ac_cv_lib_dld_shl_load = yes; then 12203 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 12204 else 12205 echo "$as_me:$LINENO: checking for dlopen" >&5 12206 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 12207 if test "${ac_cv_func_dlopen+set}" = set; then 12208 echo $ECHO_N "(cached) $ECHO_C" >&6 12209 else 12210 cat >conftest.$ac_ext <<_ACEOF 12211 /* confdefs.h. */ 12212 _ACEOF 12213 cat confdefs.h >>conftest.$ac_ext 12214 cat >>conftest.$ac_ext <<_ACEOF 12215 /* end confdefs.h. */ 12216 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 12217 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12218 #define dlopen innocuous_dlopen 12219 12220 /* System header to define __stub macros and hopefully few prototypes, 12221 which can conflict with char dlopen (); below. 12222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12223 <limits.h> exists even on freestanding compilers. */ 12224 12225 #ifdef __STDC__ 12226 # include <limits.h> 12227 #else 12228 # include <assert.h> 12229 #endif 12230 12231 #undef dlopen 12232 12233 /* Override any gcc2 internal prototype to avoid an error. */ 12234 #ifdef __cplusplus 12235 extern "C" 12236 { 12237 #endif 12238 /* We use char because int might match the return type of a gcc2 12239 builtin and then its argument prototype would still apply. */ 12240 char dlopen (); 12241 /* The GNU C library defines this for functions which it implements 12242 to always fail with ENOSYS. Some functions are actually named 12243 something starting with __ and the normal name is an alias. */ 12244 #if defined (__stub_dlopen) || defined (__stub___dlopen) 12245 choke me 12246 #else 12247 char (*f) () = dlopen; 12248 #endif 12249 #ifdef __cplusplus 12250 } 12251 #endif 12252 12253 int 12254 main () 12255 { 12256 return f != dlopen; 12257 ; 12258 return 0; 12259 } 12260 _ACEOF 12261 rm -f conftest.$ac_objext conftest$ac_exeext 12262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12263 (eval $ac_link) 2>conftest.er1 12264 ac_status=$? 12265 grep -v '^ *+' conftest.er1 >conftest.err 12266 rm -f conftest.er1 12267 cat conftest.err >&5 12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12269 (exit $ac_status); } && 12270 { ac_try='test -z "$ac_cxx_werror_flag" 12271 || test ! -s conftest.err' 12272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12273 (eval $ac_try) 2>&5 12274 ac_status=$? 12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12276 (exit $ac_status); }; } && 12277 { ac_try='test -s conftest$ac_exeext' 12278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12279 (eval $ac_try) 2>&5 12280 ac_status=$? 12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12282 (exit $ac_status); }; }; then 12283 ac_cv_func_dlopen=yes 12284 else 12285 echo "$as_me: failed program was:" >&5 12286 sed 's/^/| /' conftest.$ac_ext >&5 12287 12288 ac_cv_func_dlopen=no 12289 fi 12290 rm -f conftest.err conftest.$ac_objext \ 12291 conftest$ac_exeext conftest.$ac_ext 12292 fi 12293 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 12294 echo "${ECHO_T}$ac_cv_func_dlopen" >&6 12295 if test $ac_cv_func_dlopen = yes; then 12296 lt_cv_dlopen="dlopen" 12297 else 12298 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12299 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12300 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12301 echo $ECHO_N "(cached) $ECHO_C" >&6 12302 else 12303 ac_check_lib_save_LIBS=$LIBS 12304 LIBS="-ldl $LIBS" 12305 cat >conftest.$ac_ext <<_ACEOF 12306 /* confdefs.h. */ 12307 _ACEOF 12308 cat confdefs.h >>conftest.$ac_ext 12309 cat >>conftest.$ac_ext <<_ACEOF 12310 /* end confdefs.h. */ 12311 12312 /* Override any gcc2 internal prototype to avoid an error. */ 12313 #ifdef __cplusplus 12314 extern "C" 12315 #endif 12316 /* We use char because int might match the return type of a gcc2 12317 builtin and then its argument prototype would still apply. */ 12318 char dlopen (); 12319 int 12320 main () 12321 { 12322 dlopen (); 12323 ; 12324 return 0; 12325 } 12326 _ACEOF 12327 rm -f conftest.$ac_objext conftest$ac_exeext 12328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12329 (eval $ac_link) 2>conftest.er1 12330 ac_status=$? 12331 grep -v '^ *+' conftest.er1 >conftest.err 12332 rm -f conftest.er1 12333 cat conftest.err >&5 12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12335 (exit $ac_status); } && 12336 { ac_try='test -z "$ac_cxx_werror_flag" 12337 || test ! -s conftest.err' 12338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12339 (eval $ac_try) 2>&5 12340 ac_status=$? 12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12342 (exit $ac_status); }; } && 12343 { ac_try='test -s conftest$ac_exeext' 12344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12345 (eval $ac_try) 2>&5 12346 ac_status=$? 12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12348 (exit $ac_status); }; }; then 12349 ac_cv_lib_dl_dlopen=yes 12350 else 12351 echo "$as_me: failed program was:" >&5 12352 sed 's/^/| /' conftest.$ac_ext >&5 12353 12354 ac_cv_lib_dl_dlopen=no 12355 fi 12356 rm -f conftest.err conftest.$ac_objext \ 12357 conftest$ac_exeext conftest.$ac_ext 12358 LIBS=$ac_check_lib_save_LIBS 12359 fi 12360 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12361 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12362 if test $ac_cv_lib_dl_dlopen = yes; then 12363 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12364 else 12365 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 12366 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 12367 if test "${ac_cv_lib_svld_dlopen+set}" = set; then 12368 echo $ECHO_N "(cached) $ECHO_C" >&6 12369 else 12370 ac_check_lib_save_LIBS=$LIBS 12371 LIBS="-lsvld $LIBS" 12372 cat >conftest.$ac_ext <<_ACEOF 12373 /* confdefs.h. */ 12374 _ACEOF 12375 cat confdefs.h >>conftest.$ac_ext 12376 cat >>conftest.$ac_ext <<_ACEOF 12377 /* end confdefs.h. */ 12378 12379 /* Override any gcc2 internal prototype to avoid an error. */ 12380 #ifdef __cplusplus 12381 extern "C" 12382 #endif 12383 /* We use char because int might match the return type of a gcc2 12384 builtin and then its argument prototype would still apply. */ 12385 char dlopen (); 12386 int 12387 main () 12388 { 12389 dlopen (); 12390 ; 12391 return 0; 12392 } 12393 _ACEOF 12394 rm -f conftest.$ac_objext conftest$ac_exeext 12395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12396 (eval $ac_link) 2>conftest.er1 12397 ac_status=$? 12398 grep -v '^ *+' conftest.er1 >conftest.err 12399 rm -f conftest.er1 12400 cat conftest.err >&5 12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12402 (exit $ac_status); } && 12403 { ac_try='test -z "$ac_cxx_werror_flag" 12404 || test ! -s conftest.err' 12405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12406 (eval $ac_try) 2>&5 12407 ac_status=$? 12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12409 (exit $ac_status); }; } && 12410 { ac_try='test -s conftest$ac_exeext' 12411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12412 (eval $ac_try) 2>&5 12413 ac_status=$? 12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12415 (exit $ac_status); }; }; then 12416 ac_cv_lib_svld_dlopen=yes 12417 else 12418 echo "$as_me: failed program was:" >&5 12419 sed 's/^/| /' conftest.$ac_ext >&5 12420 12421 ac_cv_lib_svld_dlopen=no 12422 fi 12423 rm -f conftest.err conftest.$ac_objext \ 12424 conftest$ac_exeext conftest.$ac_ext 12425 LIBS=$ac_check_lib_save_LIBS 12426 fi 12427 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 12428 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 12429 if test $ac_cv_lib_svld_dlopen = yes; then 12430 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12431 else 12432 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 12433 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 12434 if test "${ac_cv_lib_dld_dld_link+set}" = set; then 12435 echo $ECHO_N "(cached) $ECHO_C" >&6 12436 else 12437 ac_check_lib_save_LIBS=$LIBS 12438 LIBS="-ldld $LIBS" 12439 cat >conftest.$ac_ext <<_ACEOF 12440 /* confdefs.h. */ 12441 _ACEOF 12442 cat confdefs.h >>conftest.$ac_ext 12443 cat >>conftest.$ac_ext <<_ACEOF 12444 /* end confdefs.h. */ 12445 12446 /* Override any gcc2 internal prototype to avoid an error. */ 12447 #ifdef __cplusplus 12448 extern "C" 12449 #endif 12450 /* We use char because int might match the return type of a gcc2 12451 builtin and then its argument prototype would still apply. */ 12452 char dld_link (); 12453 int 12454 main () 12455 { 12456 dld_link (); 12457 ; 12458 return 0; 12459 } 12460 _ACEOF 12461 rm -f conftest.$ac_objext conftest$ac_exeext 12462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12463 (eval $ac_link) 2>conftest.er1 12464 ac_status=$? 12465 grep -v '^ *+' conftest.er1 >conftest.err 12466 rm -f conftest.er1 12467 cat conftest.err >&5 12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12469 (exit $ac_status); } && 12470 { ac_try='test -z "$ac_cxx_werror_flag" 12471 || test ! -s conftest.err' 12472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12473 (eval $ac_try) 2>&5 12474 ac_status=$? 12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12476 (exit $ac_status); }; } && 12477 { ac_try='test -s conftest$ac_exeext' 12478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12479 (eval $ac_try) 2>&5 12480 ac_status=$? 12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12482 (exit $ac_status); }; }; then 12483 ac_cv_lib_dld_dld_link=yes 12484 else 12485 echo "$as_me: failed program was:" >&5 12486 sed 's/^/| /' conftest.$ac_ext >&5 12487 12488 ac_cv_lib_dld_dld_link=no 12489 fi 12490 rm -f conftest.err conftest.$ac_objext \ 12491 conftest$ac_exeext conftest.$ac_ext 12492 LIBS=$ac_check_lib_save_LIBS 12493 fi 12494 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 12495 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 12496 if test $ac_cv_lib_dld_dld_link = yes; then 12497 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 12498 fi 12499 12500 12501 fi 12502 12503 12504 fi 12505 12506 12507 fi 12508 12509 12510 fi 12511 12512 12513 fi 12514 12515 ;; 12516 esac 12517 12518 if test "x$lt_cv_dlopen" != xno; then 12519 enable_dlopen=yes 12520 else 12521 enable_dlopen=no 12522 fi 12523 12524 case $lt_cv_dlopen in 12525 dlopen) 12526 save_CPPFLAGS="$CPPFLAGS" 12527 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12528 12529 save_LDFLAGS="$LDFLAGS" 12530 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12531 12532 save_LIBS="$LIBS" 12533 LIBS="$lt_cv_dlopen_libs $LIBS" 12534 12535 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 12536 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 12537 if test "${lt_cv_dlopen_self+set}" = set; then 12538 echo $ECHO_N "(cached) $ECHO_C" >&6 12539 else 12540 if test "$cross_compiling" = yes; then : 12541 lt_cv_dlopen_self=cross 12542 else 12543 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12544 lt_status=$lt_dlunknown 12545 cat > conftest.$ac_ext <<EOF 12546 #line 12546 "configure" 12547 #include "confdefs.h" 12548 12549 #if HAVE_DLFCN_H 12550 #include <dlfcn.h> 12551 #endif 12552 12553 #include <stdio.h> 12554 12555 #ifdef RTLD_GLOBAL 12556 # define LT_DLGLOBAL RTLD_GLOBAL 12557 #else 12558 # ifdef DL_GLOBAL 12559 # define LT_DLGLOBAL DL_GLOBAL 12560 # else 12561 # define LT_DLGLOBAL 0 12562 # endif 12563 #endif 12564 12565 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12566 find out it does not work in some platform. */ 12567 #ifndef LT_DLLAZY_OR_NOW 12568 # ifdef RTLD_LAZY 12569 # define LT_DLLAZY_OR_NOW RTLD_LAZY 12570 # else 12571 # ifdef DL_LAZY 12572 # define LT_DLLAZY_OR_NOW DL_LAZY 12573 # else 12574 # ifdef RTLD_NOW 12575 # define LT_DLLAZY_OR_NOW RTLD_NOW 12576 # else 12577 # ifdef DL_NOW 12578 # define LT_DLLAZY_OR_NOW DL_NOW 12579 # else 12580 # define LT_DLLAZY_OR_NOW 0 12581 # endif 12582 # endif 12583 # endif 12584 # endif 12585 #endif 12586 12587 #ifdef __cplusplus 12588 extern "C" void exit (int); 12589 #endif 12590 12591 void fnord() { int i=42;} 12592 int main () 12593 { 12594 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12595 int status = $lt_dlunknown; 12596 12597 if (self) 12598 { 12599 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12600 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12601 /* dlclose (self); */ 12602 } 12603 12604 exit (status); 12605 } 12606 EOF 12607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12608 (eval $ac_link) 2>&5 12609 ac_status=$? 12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12611 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12612 (./conftest; exit; ) 2>/dev/null 12613 lt_status=$? 12614 case x$lt_status in 12615 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12616 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12617 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 12618 esac 12619 else : 12620 # compilation failed 12621 lt_cv_dlopen_self=no 12622 fi 12623 fi 12624 rm -fr conftest* 12625 12626 12627 fi 12628 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 12629 echo "${ECHO_T}$lt_cv_dlopen_self" >&6 12630 12631 if test "x$lt_cv_dlopen_self" = xyes; then 12632 LDFLAGS="$LDFLAGS $link_static_flag" 12633 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 12634 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 12635 if test "${lt_cv_dlopen_self_static+set}" = set; then 12636 echo $ECHO_N "(cached) $ECHO_C" >&6 12637 else 12638 if test "$cross_compiling" = yes; then : 12639 lt_cv_dlopen_self_static=cross 12640 else 12641 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12642 lt_status=$lt_dlunknown 12643 cat > conftest.$ac_ext <<EOF 12644 #line 12644 "configure" 12645 #include "confdefs.h" 12646 12647 #if HAVE_DLFCN_H 12648 #include <dlfcn.h> 12649 #endif 12650 12651 #include <stdio.h> 12652 12653 #ifdef RTLD_GLOBAL 12654 # define LT_DLGLOBAL RTLD_GLOBAL 12655 #else 12656 # ifdef DL_GLOBAL 12657 # define LT_DLGLOBAL DL_GLOBAL 12658 # else 12659 # define LT_DLGLOBAL 0 12660 # endif 12661 #endif 12662 12663 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12664 find out it does not work in some platform. */ 12665 #ifndef LT_DLLAZY_OR_NOW 12666 # ifdef RTLD_LAZY 12667 # define LT_DLLAZY_OR_NOW RTLD_LAZY 12668 # else 12669 # ifdef DL_LAZY 12670 # define LT_DLLAZY_OR_NOW DL_LAZY 12671 # else 12672 # ifdef RTLD_NOW 12673 # define LT_DLLAZY_OR_NOW RTLD_NOW 12674 # else 12675 # ifdef DL_NOW 12676 # define LT_DLLAZY_OR_NOW DL_NOW 12677 # else 12678 # define LT_DLLAZY_OR_NOW 0 12679 # endif 12680 # endif 12681 # endif 12682 # endif 12683 #endif 12684 12685 #ifdef __cplusplus 12686 extern "C" void exit (int); 12687 #endif 12688 12689 void fnord() { int i=42;} 12690 int main () 12691 { 12692 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12693 int status = $lt_dlunknown; 12694 12695 if (self) 12696 { 12697 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12698 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12699 /* dlclose (self); */ 12700 } 12701 12702 exit (status); 12703 } 12704 EOF 12705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12706 (eval $ac_link) 2>&5 12707 ac_status=$? 12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12709 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12710 (./conftest; exit; ) 2>/dev/null 12711 lt_status=$? 12712 case x$lt_status in 12713 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12714 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12715 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 12716 esac 12717 else : 12718 # compilation failed 12719 lt_cv_dlopen_self_static=no 12720 fi 12721 fi 12722 rm -fr conftest* 12723 12724 12725 fi 12726 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 12727 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 12728 fi 12729 12730 CPPFLAGS="$save_CPPFLAGS" 12731 LDFLAGS="$save_LDFLAGS" 12732 LIBS="$save_LIBS" 12733 ;; 12734 esac 12735 12736 case $lt_cv_dlopen_self in 12737 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12738 *) enable_dlopen_self=unknown ;; 12739 esac 12740 12741 case $lt_cv_dlopen_self_static in 12742 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12743 *) enable_dlopen_self_static=unknown ;; 12744 esac 12745 fi 12746 12747 12748 # The else clause should only fire when bootstrapping the 12749 # libtool distribution, otherwise you forgot to ship ltmain.sh 12750 # with your package, and you will get complaints that there are 12751 # no rules to generate ltmain.sh. 12752 if test -f "$ltmain"; then 12753 # See if we are running on zsh, and set the options which allow our commands through 12754 # without removal of \ escapes. 12755 if test -n "${ZSH_VERSION+set}" ; then 12756 setopt NO_GLOB_SUBST 12757 fi 12758 # Now quote all the things that may contain metacharacters while being 12759 # careful not to overquote the AC_SUBSTed values. We take copies of the 12760 # variables and quote the copies for generation of the libtool script. 12761 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 12762 SED SHELL STRIP \ 12763 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12764 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12765 deplibs_check_method reload_flag reload_cmds need_locks \ 12766 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12767 lt_cv_sys_global_symbol_to_c_name_address \ 12768 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12769 old_postinstall_cmds old_postuninstall_cmds \ 12770 compiler_CXX \ 12771 CC_CXX \ 12772 LD_CXX \ 12773 lt_prog_compiler_wl_CXX \ 12774 lt_prog_compiler_pic_CXX \ 12775 lt_prog_compiler_static_CXX \ 12776 lt_prog_compiler_no_builtin_flag_CXX \ 12777 export_dynamic_flag_spec_CXX \ 12778 thread_safe_flag_spec_CXX \ 12779 whole_archive_flag_spec_CXX \ 12780 enable_shared_with_static_runtimes_CXX \ 12781 old_archive_cmds_CXX \ 12782 old_archive_from_new_cmds_CXX \ 12783 predep_objects_CXX \ 12784 postdep_objects_CXX \ 12785 predeps_CXX \ 12786 postdeps_CXX \ 12787 compiler_lib_search_path_CXX \ 12788 archive_cmds_CXX \ 12789 archive_expsym_cmds_CXX \ 12790 postinstall_cmds_CXX \ 12791 postuninstall_cmds_CXX \ 12792 old_archive_from_expsyms_cmds_CXX \ 12793 allow_undefined_flag_CXX \ 12794 no_undefined_flag_CXX \ 12795 export_symbols_cmds_CXX \ 12796 hardcode_libdir_flag_spec_CXX \ 12797 hardcode_libdir_flag_spec_ld_CXX \ 12798 hardcode_libdir_separator_CXX \ 12799 hardcode_automatic_CXX \ 12800 module_cmds_CXX \ 12801 module_expsym_cmds_CXX \ 12802 lt_cv_prog_compiler_c_o_CXX \ 12803 exclude_expsyms_CXX \ 12804 include_expsyms_CXX; do 12805 12806 case $var in 12807 old_archive_cmds_CXX | \ 12808 old_archive_from_new_cmds_CXX | \ 12809 archive_cmds_CXX | \ 12810 archive_expsym_cmds_CXX | \ 12811 module_cmds_CXX | \ 12812 module_expsym_cmds_CXX | \ 12813 old_archive_from_expsyms_cmds_CXX | \ 12814 export_symbols_cmds_CXX | \ 12815 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12816 postinstall_cmds | postuninstall_cmds | \ 12817 old_postinstall_cmds | old_postuninstall_cmds | \ 12818 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12819 # Double-quote double-evaled strings. 12820 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12821 ;; 12822 *) 12823 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12824 ;; 12825 esac 12826 done 12827 12828 case $lt_echo in 12829 *'\$0 --fallback-echo"') 12830 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12831 ;; 12832 esac 12833 12834 cfgfile="$ofile" 12835 12836 cat <<__EOF__ >> "$cfgfile" 12837 # ### BEGIN LIBTOOL TAG CONFIG: $tagname 12838 12839 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12840 12841 # Shell to use when invoking shell scripts. 12842 SHELL=$lt_SHELL 12843 12844 # Whether or not to build shared libraries. 12845 build_libtool_libs=$enable_shared 12846 12847 # Whether or not to build static libraries. 12848 build_old_libs=$enable_static 12849 12850 # Whether or not to add -lc for building shared libraries. 12851 build_libtool_need_lc=$archive_cmds_need_lc_CXX 12852 12853 # Whether or not to disallow shared libs when runtime libs are static 12854 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 12855 12856 # Whether or not to optimize for fast installation. 12857 fast_install=$enable_fast_install 12858 12859 # The host system. 12860 host_alias=$host_alias 12861 host=$host 12862 12863 # An echo program that does not interpret backslashes. 12864 echo=$lt_echo 12865 12866 # The archiver. 12867 AR=$lt_AR 12868 AR_FLAGS=$lt_AR_FLAGS 12869 12870 # A C compiler. 12871 LTCC=$lt_LTCC 12872 12873 # A language-specific compiler. 12874 CC=$lt_compiler_CXX 12875 12876 # Is the compiler the GNU C compiler? 12877 with_gcc=$GCC_CXX 12878 12879 # An ERE matcher. 12880 EGREP=$lt_EGREP 12881 12882 # The linker used to build libraries. 12883 LD=$lt_LD_CXX 12884 12885 # Whether we need hard or soft links. 12886 LN_S=$lt_LN_S 12887 12888 # A BSD-compatible nm program. 12889 NM=$lt_NM 12890 12891 # A symbol stripping program 12892 STRIP=$lt_STRIP 12893 12894 # Used to examine libraries when file_magic_cmd begins "file" 12895 MAGIC_CMD=$MAGIC_CMD 12896 12897 # Used on cygwin: DLL creation program. 12898 DLLTOOL="$DLLTOOL" 12899 12900 # Used on cygwin: object dumper. 12901 OBJDUMP="$OBJDUMP" 12902 12903 # Used on cygwin: assembler. 12904 AS="$AS" 12905 12906 # The name of the directory that contains temporary libtool files. 12907 objdir=$objdir 12908 12909 # How to create reloadable object files. 12910 reload_flag=$lt_reload_flag 12911 reload_cmds=$lt_reload_cmds 12912 12913 # How to pass a linker flag through the compiler. 12914 wl=$lt_lt_prog_compiler_wl_CXX 12915 12916 # Object file suffix (normally "o"). 12917 objext="$ac_objext" 12918 12919 # Old archive suffix (normally "a"). 12920 libext="$libext" 12921 12922 # Shared library suffix (normally ".so"). 12923 shrext_cmds='$shrext_cmds' 12924 12925 # Executable file suffix (normally ""). 12926 exeext="$exeext" 12927 12928 # Additional compiler flags for building library objects. 12929 pic_flag=$lt_lt_prog_compiler_pic_CXX 12930 pic_mode=$pic_mode 12931 12932 # What is the maximum length of a command? 12933 max_cmd_len=$lt_cv_sys_max_cmd_len 12934 12935 # Does compiler simultaneously support -c and -o options? 12936 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 12937 12938 # Must we lock files when doing compilation ? 12939 need_locks=$lt_need_locks 12940 12941 # Do we need the lib prefix for modules? 12942 need_lib_prefix=$need_lib_prefix 12943 12944 # Do we need a version for libraries? 12945 need_version=$need_version 12946 12947 # Whether dlopen is supported. 12948 dlopen_support=$enable_dlopen 12949 12950 # Whether dlopen of programs is supported. 12951 dlopen_self=$enable_dlopen_self 12952 12953 # Whether dlopen of statically linked programs is supported. 12954 dlopen_self_static=$enable_dlopen_self_static 12955 12956 # Compiler flag to prevent dynamic linking. 12957 link_static_flag=$lt_lt_prog_compiler_static_CXX 12958 12959 # Compiler flag to turn off builtin functions. 12960 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 12961 12962 # Compiler flag to allow reflexive dlopens. 12963 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 12964 12965 # Compiler flag to generate shared objects directly from archives. 12966 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 12967 12968 # Compiler flag to generate thread-safe objects. 12969 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 12970 12971 # Library versioning type. 12972 version_type=$version_type 12973 12974 # Format of library name prefix. 12975 libname_spec=$lt_libname_spec 12976 12977 # List of archive names. First name is the real one, the rest are links. 12978 # The last name is the one that the linker finds with -lNAME. 12979 library_names_spec=$lt_library_names_spec 12980 12981 # The coded name of the library, if different from the real name. 12982 soname_spec=$lt_soname_spec 12983 12984 # Commands used to build and install an old-style archive. 12985 RANLIB=$lt_RANLIB 12986 old_archive_cmds=$lt_old_archive_cmds_CXX 12987 old_postinstall_cmds=$lt_old_postinstall_cmds 12988 old_postuninstall_cmds=$lt_old_postuninstall_cmds 12989 12990 # Create an old-style archive from a shared archive. 12991 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 12992 12993 # Create a temporary old-style archive to link instead of a shared archive. 12994 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 12995 12996 # Commands used to build and install a shared archive. 12997 archive_cmds=$lt_archive_cmds_CXX 12998 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 12999 postinstall_cmds=$lt_postinstall_cmds 13000 postuninstall_cmds=$lt_postuninstall_cmds 13001 13002 # Commands used to build a loadable module (assumed same as above if empty) 13003 module_cmds=$lt_module_cmds_CXX 13004 module_expsym_cmds=$lt_module_expsym_cmds_CXX 13005 13006 # Commands to strip libraries. 13007 old_striplib=$lt_old_striplib 13008 striplib=$lt_striplib 13009 13010 # Dependencies to place before the objects being linked to create a 13011 # shared library. 13012 predep_objects=$lt_predep_objects_CXX 13013 13014 # Dependencies to place after the objects being linked to create a 13015 # shared library. 13016 postdep_objects=$lt_postdep_objects_CXX 13017 13018 # Dependencies to place before the objects being linked to create a 13019 # shared library. 13020 predeps=$lt_predeps_CXX 13021 13022 # Dependencies to place after the objects being linked to create a 13023 # shared library. 13024 postdeps=$lt_postdeps_CXX 13025 13026 # The library search path used internally by the compiler when linking 13027 # a shared library. 13028 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13029 13030 # Method to check whether dependent libraries are shared objects. 13031 deplibs_check_method=$lt_deplibs_check_method 13032 13033 # Command to use when deplibs_check_method == file_magic. 13034 file_magic_cmd=$lt_file_magic_cmd 13035 13036 # Flag that allows shared libraries with undefined symbols to be built. 13037 allow_undefined_flag=$lt_allow_undefined_flag_CXX 13038 13039 # Flag that forces no undefined symbols. 13040 no_undefined_flag=$lt_no_undefined_flag_CXX 13041 13042 # Commands used to finish a libtool library installation in a directory. 13043 finish_cmds=$lt_finish_cmds 13044 13045 # Same as above, but a single script fragment to be evaled but not shown. 13046 finish_eval=$lt_finish_eval 13047 13048 # Take the output of nm and produce a listing of raw symbols and C names. 13049 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13050 13051 # Transform the output of nm in a proper C declaration 13052 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13053 13054 # Transform the output of nm in a C name address pair 13055 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13056 13057 # This is the shared library runtime path variable. 13058 runpath_var=$runpath_var 13059 13060 # This is the shared library path variable. 13061 shlibpath_var=$shlibpath_var 13062 13063 # Is shlibpath searched before the hard-coded library search path? 13064 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13065 13066 # How to hardcode a shared library path into an executable. 13067 hardcode_action=$hardcode_action_CXX 13068 13069 # Whether we should hardcode library paths into libraries. 13070 hardcode_into_libs=$hardcode_into_libs 13071 13072 # Flag to hardcode \$libdir into a binary during linking. 13073 # This must work even if \$libdir does not exist. 13074 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13075 13076 # If ld is used when linking, flag to hardcode \$libdir into 13077 # a binary during linking. This must work even if \$libdir does 13078 # not exist. 13079 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13080 13081 # Whether we need a single -rpath flag with a separated argument. 13082 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13083 13084 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13085 # resulting binary. 13086 hardcode_direct=$hardcode_direct_CXX 13087 13088 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13089 # resulting binary. 13090 hardcode_minus_L=$hardcode_minus_L_CXX 13091 13092 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13093 # the resulting binary. 13094 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13095 13096 # Set to yes if building a shared library automatically hardcodes DIR into the library 13097 # and all subsequent libraries and executables linked against it. 13098 hardcode_automatic=$hardcode_automatic_CXX 13099 13100 # Variables whose values should be saved in libtool wrapper scripts and 13101 # restored at relink time. 13102 variables_saved_for_relink="$variables_saved_for_relink" 13103 13104 # Whether libtool must link a program against all its dependency libraries. 13105 link_all_deplibs=$link_all_deplibs_CXX 13106 13107 # Compile-time system search path for libraries 13108 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13109 13110 # Run-time system search path for libraries 13111 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13112 13113 # Fix the shell variable \$srcfile for the compiler. 13114 fix_srcfile_path="$fix_srcfile_path_CXX" 13115 13116 # Set to yes if exported symbols are required. 13117 always_export_symbols=$always_export_symbols_CXX 13118 13119 # The commands to list exported symbols. 13120 export_symbols_cmds=$lt_export_symbols_cmds_CXX 13121 13122 # The commands to extract the exported symbol list from a shared archive. 13123 extract_expsyms_cmds=$lt_extract_expsyms_cmds 13124 13125 # Symbols that should not be listed in the preloaded symbols. 13126 exclude_expsyms=$lt_exclude_expsyms_CXX 13127 13128 # Symbols that must always be exported. 13129 include_expsyms=$lt_include_expsyms_CXX 13130 13131 # ### END LIBTOOL TAG CONFIG: $tagname 13132 13133 __EOF__ 13134 13135 13136 else 13137 # If there is no Makefile yet, we rely on a make rule to execute 13138 # `config.status --recheck' to rerun these tests and create the 13139 # libtool script then. 13140 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13141 if test -f "$ltmain_in"; then 13142 test -f Makefile && make "$ltmain" 13143 fi 13144 fi 13145 13146 13147 ac_ext=c 13148 ac_cpp='$CPP $CPPFLAGS' 13149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13151 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13152 13153 CC=$lt_save_CC 13154 LDCXX=$LD 13155 LD=$lt_save_LD 13156 GCC=$lt_save_GCC 13157 with_gnu_ldcxx=$with_gnu_ld 13158 with_gnu_ld=$lt_save_with_gnu_ld 13159 lt_cv_path_LDCXX=$lt_cv_path_LD 13160 lt_cv_path_LD=$lt_save_path_LD 13161 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13162 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13163 13164 else 13165 tagname="" 13166 fi 13167 ;; 13168 13169 F77) 13170 if test -n "$F77" && test "X$F77" != "Xno"; then 13171 13172 ac_ext=f 13173 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13174 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13175 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13176 13177 13178 archive_cmds_need_lc_F77=no 13179 allow_undefined_flag_F77= 13180 always_export_symbols_F77=no 13181 archive_expsym_cmds_F77= 13182 export_dynamic_flag_spec_F77= 13183 hardcode_direct_F77=no 13184 hardcode_libdir_flag_spec_F77= 13185 hardcode_libdir_flag_spec_ld_F77= 13186 hardcode_libdir_separator_F77= 13187 hardcode_minus_L_F77=no 13188 hardcode_automatic_F77=no 13189 module_cmds_F77= 13190 module_expsym_cmds_F77= 13191 link_all_deplibs_F77=unknown 13192 old_archive_cmds_F77=$old_archive_cmds 13193 no_undefined_flag_F77= 13194 whole_archive_flag_spec_F77= 13195 enable_shared_with_static_runtimes_F77=no 13196 13197 # Source file extension for f77 test sources. 13198 ac_ext=f 13199 13200 # Object file extension for compiled f77 test sources. 13201 objext=o 13202 objext_F77=$objext 13203 13204 # Code to be used in simple compile tests 13205 lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13206 13207 # Code to be used in simple link tests 13208 lt_simple_link_test_code=" program t\n end\n" 13209 13210 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13211 13212 # If no C compiler was specified, use CC. 13213 LTCC=${LTCC-"$CC"} 13214 13215 # Allow CC to be a program name with arguments. 13216 compiler=$CC 13217 13218 13219 # Allow CC to be a program name with arguments. 13220 lt_save_CC="$CC" 13221 CC=${F77-"f77"} 13222 compiler=$CC 13223 compiler_F77=$CC 13224 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 13225 13226 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13227 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 13228 echo "$as_me:$LINENO: result: $can_build_shared" >&5 13229 echo "${ECHO_T}$can_build_shared" >&6 13230 13231 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13232 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 13233 test "$can_build_shared" = "no" && enable_shared=no 13234 13235 # On AIX, shared libraries and static libraries use the same namespace, and 13236 # are all built from PIC. 13237 case "$host_os" in 13238 aix3*) 13239 test "$enable_shared" = yes && enable_static=no 13240 if test -n "$RANLIB"; then 13241 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13242 postinstall_cmds='$RANLIB $lib' 13243 fi 13244 ;; 13245 aix4* | aix5*) 13246 test "$enable_shared" = yes && enable_static=no 13247 ;; 13248 esac 13249 echo "$as_me:$LINENO: result: $enable_shared" >&5 13250 echo "${ECHO_T}$enable_shared" >&6 13251 13252 echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13253 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 13254 # Make sure either enable_shared or enable_static is yes. 13255 test "$enable_shared" = yes || enable_static=yes 13256 echo "$as_me:$LINENO: result: $enable_static" >&5 13257 echo "${ECHO_T}$enable_static" >&6 13258 13259 test "$ld_shlibs_F77" = no && can_build_shared=no 13260 13261 GCC_F77="$G77" 13262 LD_F77="$LD" 13263 13264 lt_prog_compiler_wl_F77= 13265 lt_prog_compiler_pic_F77= 13266 lt_prog_compiler_static_F77= 13267 13268 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13269 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13270 13271 if test "$GCC" = yes; then 13272 lt_prog_compiler_wl_F77='-Wl,' 13273 lt_prog_compiler_static_F77='-static' 13274 13275 case $host_os in 13276 aix*) 13277 # All AIX code is PIC. 13278 if test "$host_cpu" = ia64; then 13279 # AIX 5 now supports IA64 processor 13280 lt_prog_compiler_static_F77='-Bstatic' 13281 fi 13282 ;; 13283 13284 amigaos*) 13285 # FIXME: we need at least 68020 code to build shared libraries, but 13286 # adding the `-m68020' flag to GCC prevents building anything better, 13287 # like `-m68040'. 13288 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13289 ;; 13290 13291 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13292 # PIC is the default for these OSes. 13293 ;; 13294 13295 mingw* | pw32* | os2*) 13296 # This hack is so that the source file can tell whether it is being 13297 # built for inclusion in a dll (and should export symbols for example). 13298 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13299 ;; 13300 13301 darwin* | rhapsody*) 13302 # PIC is the default on this platform 13303 # Common symbols not allowed in MH_DYLIB files 13304 lt_prog_compiler_pic_F77='-fno-common' 13305 ;; 13306 13307 msdosdjgpp*) 13308 # Just because we use GCC doesn't mean we suddenly get shared libraries 13309 # on systems that don't support them. 13310 lt_prog_compiler_can_build_shared_F77=no 13311 enable_shared=no 13312 ;; 13313 13314 sysv4*MP*) 13315 if test -d /usr/nec; then 13316 lt_prog_compiler_pic_F77=-Kconform_pic 13317 fi 13318 ;; 13319 13320 hpux*) 13321 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13322 # not for PA HP-UX. 13323 case "$host_cpu" in 13324 hppa*64*|ia64*) 13325 # +Z the default 13326 ;; 13327 *) 13328 lt_prog_compiler_pic_F77='-fPIC' 13329 ;; 13330 esac 13331 ;; 13332 13333 *) 13334 lt_prog_compiler_pic_F77='-fPIC' 13335 ;; 13336 esac 13337 else 13338 # PORTME Check for flag to pass linker flags through the system compiler. 13339 case $host_os in 13340 aix*) 13341 lt_prog_compiler_wl_F77='-Wl,' 13342 if test "$host_cpu" = ia64; then 13343 # AIX 5 now supports IA64 processor 13344 lt_prog_compiler_static_F77='-Bstatic' 13345 else 13346 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13347 fi 13348 ;; 13349 13350 mingw* | pw32* | os2*) 13351 # This hack is so that the source file can tell whether it is being 13352 # built for inclusion in a dll (and should export symbols for example). 13353 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13354 ;; 13355 13356 hpux9* | hpux10* | hpux11*) 13357 lt_prog_compiler_wl_F77='-Wl,' 13358 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13359 # not for PA HP-UX. 13360 case "$host_cpu" in 13361 hppa*64*|ia64*) 13362 # +Z the default 13363 ;; 13364 *) 13365 lt_prog_compiler_pic_F77='+Z' 13366 ;; 13367 esac 13368 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13369 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13370 ;; 13371 13372 irix5* | irix6* | nonstopux*) 13373 lt_prog_compiler_wl_F77='-Wl,' 13374 # PIC (with -KPIC) is the default. 13375 lt_prog_compiler_static_F77='-non_shared' 13376 ;; 13377 13378 newsos6) 13379 lt_prog_compiler_pic_F77='-KPIC' 13380 lt_prog_compiler_static_F77='-Bstatic' 13381 ;; 13382 13383 linux*) 13384 case $CC in 13385 icc* | ecc*) 13386 lt_prog_compiler_wl_F77='-Wl,' 13387 lt_prog_compiler_pic_F77='-KPIC' 13388 lt_prog_compiler_static_F77='-static' 13389 ;; 13390 ccc*) 13391 lt_prog_compiler_wl_F77='-Wl,' 13392 # All Alpha code is PIC. 13393 lt_prog_compiler_static_F77='-non_shared' 13394 ;; 13395 esac 13396 ;; 13397 13398 osf3* | osf4* | osf5*) 13399 lt_prog_compiler_wl_F77='-Wl,' 13400 # All OSF/1 code is PIC. 13401 lt_prog_compiler_static_F77='-non_shared' 13402 ;; 13403 13404 sco3.2v5*) 13405 lt_prog_compiler_pic_F77='-Kpic' 13406 lt_prog_compiler_static_F77='-dn' 13407 ;; 13408 13409 solaris*) 13410 lt_prog_compiler_wl_F77='-Wl,' 13411 lt_prog_compiler_pic_F77='-KPIC' 13412 lt_prog_compiler_static_F77='-Bstatic' 13413 ;; 13414 13415 sunos4*) 13416 lt_prog_compiler_wl_F77='-Qoption ld ' 13417 lt_prog_compiler_pic_F77='-PIC' 13418 lt_prog_compiler_static_F77='-Bstatic' 13419 ;; 13420 13421 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13422 lt_prog_compiler_wl_F77='-Wl,' 13423 lt_prog_compiler_pic_F77='-KPIC' 13424 lt_prog_compiler_static_F77='-Bstatic' 13425 ;; 13426 13427 sysv4*MP*) 13428 if test -d /usr/nec ;then 13429 lt_prog_compiler_pic_F77='-Kconform_pic' 13430 lt_prog_compiler_static_F77='-Bstatic' 13431 fi 13432 ;; 13433 13434 uts4*) 13435 lt_prog_compiler_pic_F77='-pic' 13436 lt_prog_compiler_static_F77='-Bstatic' 13437 ;; 13438 13439 *) 13440 lt_prog_compiler_can_build_shared_F77=no 13441 ;; 13442 esac 13443 fi 13444 13445 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13446 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 13447 13448 # 13449 # Check to make sure the PIC flag actually works. 13450 # 13451 if test -n "$lt_prog_compiler_pic_F77"; then 13452 13453 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13454 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 13455 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13456 echo $ECHO_N "(cached) $ECHO_C" >&6 13457 else 13458 lt_prog_compiler_pic_works_F77=no 13459 ac_outfile=conftest.$ac_objext 13460 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13461 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13462 # Insert the option either (1) after the last *FLAGS variable, or 13463 # (2) before a word containing "conftest.", or (3) at the end. 13464 # Note that $ac_compile itself does not contain backslashes and begins 13465 # with a dollar sign (not a hyphen), so the echo should work correctly. 13466 # The option is referenced via a variable to avoid confusing sed. 13467 lt_compile=`echo "$ac_compile" | $SED \ 13468 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 13469 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13470 -e 's:$: $lt_compiler_flag:'` 13471 (eval echo "\"\$as_me:13471: $lt_compile\"" >&5) 13472 (eval "$lt_compile" 2>conftest.err) 13473 ac_status=$? 13474 cat conftest.err >&5 13475 echo "$as_me:13475: \$? = $ac_status" >&5 13476 if (exit $ac_status) && test -s "$ac_outfile"; then 13477 # The compiler can only warn and ignore the option if not recognized 13478 # So say no if there are warnings 13479 if test ! -s conftest.err; then 13480 lt_prog_compiler_pic_works_F77=yes 13481 fi 13482 fi 13483 $rm conftest* 13484 13485 fi 13486 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13487 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 13488 13489 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13490 case $lt_prog_compiler_pic_F77 in 13491 "" | " "*) ;; 13492 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13493 esac 13494 else 13495 lt_prog_compiler_pic_F77= 13496 lt_prog_compiler_can_build_shared_F77=no 13497 fi 13498 13499 fi 13500 case "$host_os" in 13501 # For platforms which do not support PIC, -DPIC is meaningless: 13502 *djgpp*) 13503 lt_prog_compiler_pic_F77= 13504 ;; 13505 *) 13506 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13507 ;; 13508 esac 13509 13510 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13511 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13512 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13513 echo $ECHO_N "(cached) $ECHO_C" >&6 13514 else 13515 lt_cv_prog_compiler_c_o_F77=no 13516 $rm -r conftest 2>/dev/null 13517 mkdir conftest 13518 cd conftest 13519 mkdir out 13520 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13521 13522 lt_compiler_flag="-o out/conftest2.$ac_objext" 13523 # Insert the option either (1) after the last *FLAGS variable, or 13524 # (2) before a word containing "conftest.", or (3) at the end. 13525 # Note that $ac_compile itself does not contain backslashes and begins 13526 # with a dollar sign (not a hyphen), so the echo should work correctly. 13527 lt_compile=`echo "$ac_compile" | $SED \ 13528 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 13529 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13530 -e 's:$: $lt_compiler_flag:'` 13531 (eval echo "\"\$as_me:13531: $lt_compile\"" >&5) 13532 (eval "$lt_compile" 2>out/conftest.err) 13533 ac_status=$? 13534 cat out/conftest.err >&5 13535 echo "$as_me:13535: \$? = $ac_status" >&5 13536 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13537 then 13538 # The compiler can only warn and ignore the option if not recognized 13539 # So say no if there are warnings 13540 if test ! -s out/conftest.err; then 13541 lt_cv_prog_compiler_c_o_F77=yes 13542 fi 13543 fi 13544 chmod u+w . 13545 $rm conftest* 13546 # SGI C++ compiler will create directory out/ii_files/ for 13547 # template instantiation 13548 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13549 $rm out/* && rmdir out 13550 cd .. 13551 rmdir conftest 13552 $rm conftest* 13553 13554 fi 13555 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13556 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 13557 13558 13559 hard_links="nottested" 13560 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13561 # do not overwrite the value of need_locks provided by the user 13562 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13563 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13564 hard_links=yes 13565 $rm conftest* 13566 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13567 touch conftest.a 13568 ln conftest.a conftest.b 2>&5 || hard_links=no 13569 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13570 echo "$as_me:$LINENO: result: $hard_links" >&5 13571 echo "${ECHO_T}$hard_links" >&6 13572 if test "$hard_links" = no; then 13573 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13574 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13575 need_locks=warn 13576 fi 13577 else 13578 need_locks=no 13579 fi 13580 13581 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13582 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13583 13584 runpath_var= 13585 allow_undefined_flag_F77= 13586 enable_shared_with_static_runtimes_F77=no 13587 archive_cmds_F77= 13588 archive_expsym_cmds_F77= 13589 old_archive_From_new_cmds_F77= 13590 old_archive_from_expsyms_cmds_F77= 13591 export_dynamic_flag_spec_F77= 13592 whole_archive_flag_spec_F77= 13593 thread_safe_flag_spec_F77= 13594 hardcode_libdir_flag_spec_F77= 13595 hardcode_libdir_flag_spec_ld_F77= 13596 hardcode_libdir_separator_F77= 13597 hardcode_direct_F77=no 13598 hardcode_minus_L_F77=no 13599 hardcode_shlibpath_var_F77=unsupported 13600 link_all_deplibs_F77=unknown 13601 hardcode_automatic_F77=no 13602 module_cmds_F77= 13603 module_expsym_cmds_F77= 13604 always_export_symbols_F77=no 13605 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13606 # include_expsyms should be a list of space-separated symbols to be *always* 13607 # included in the symbol list 13608 include_expsyms_F77= 13609 # exclude_expsyms can be an extended regexp of symbols to exclude 13610 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13611 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13612 # as well as any symbol that contains `d'. 13613 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 13614 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13615 # platforms (ab)use it in PIC code, but their linkers get confused if 13616 # the symbol is explicitly referenced. Since portable code cannot 13617 # rely on this symbol name, it's probably fine to never include it in 13618 # preloaded symbol tables. 13619 extract_expsyms_cmds= 13620 13621 case $host_os in 13622 cygwin* | mingw* | pw32*) 13623 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13624 # When not using gcc, we currently assume that we are using 13625 # Microsoft Visual C++. 13626 if test "$GCC" != yes; then 13627 with_gnu_ld=no 13628 fi 13629 ;; 13630 openbsd*) 13631 with_gnu_ld=no 13632 ;; 13633 esac 13634 13635 ld_shlibs_F77=yes 13636 if test "$with_gnu_ld" = yes; then 13637 # If archive_cmds runs LD, not CC, wlarc should be empty 13638 wlarc='${wl}' 13639 13640 # See if GNU ld supports shared libraries. 13641 case $host_os in 13642 aix3* | aix4* | aix5*) 13643 # On AIX/PPC, the GNU linker is very broken 13644 if test "$host_cpu" != ia64; then 13645 ld_shlibs_F77=no 13646 cat <<EOF 1>&2 13647 13648 *** Warning: the GNU linker, at least up to release 2.9.1, is reported 13649 *** to be unable to reliably create shared libraries on AIX. 13650 *** Therefore, libtool is disabling shared libraries support. If you 13651 *** really care for shared libraries, you may want to modify your PATH 13652 *** so that a non-GNU linker is found, and then restart. 13653 13654 EOF 13655 fi 13656 ;; 13657 13658 amigaos*) 13659 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 13660 hardcode_libdir_flag_spec_F77='-L$libdir' 13661 hardcode_minus_L_F77=yes 13662 13663 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 13664 # that the semantics of dynamic libraries on AmigaOS, at least up 13665 # to version 4, is to share data among multiple programs linked 13666 # with the same dynamic library. Since this doesn't match the 13667 # behavior of shared libraries on other platforms, we can't use 13668 # them. 13669 ld_shlibs_F77=no 13670 ;; 13671 13672 beos*) 13673 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13674 allow_undefined_flag_F77=unsupported 13675 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13676 # support --undefined. This deserves some investigation. FIXME 13677 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13678 else 13679 ld_shlibs_F77=no 13680 fi 13681 ;; 13682 13683 cygwin* | mingw* | pw32*) 13684 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 13685 # as there is no search path for DLLs. 13686 hardcode_libdir_flag_spec_F77='-L$libdir' 13687 allow_undefined_flag_F77=unsupported 13688 always_export_symbols_F77=no 13689 enable_shared_with_static_runtimes_F77=yes 13690 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 13691 13692 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 13693 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 13694 # If the export-symbols file already is a .def file (1st line 13695 # is EXPORTS), use it as is; otherwise, prepend... 13696 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13697 cp $export_symbols $output_objdir/$soname.def; 13698 else 13699 echo EXPORTS > $output_objdir/$soname.def; 13700 cat $export_symbols >> $output_objdir/$soname.def; 13701 fi~ 13702 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 13703 else 13704 ld_shlibs=no 13705 fi 13706 ;; 13707 13708 netbsd*) 13709 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13710 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13711 wlarc= 13712 else 13713 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13714 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13715 fi 13716 ;; 13717 13718 solaris* | sysv5*) 13719 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 13720 ld_shlibs_F77=no 13721 cat <<EOF 1>&2 13722 13723 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 13724 *** create shared libraries on Solaris systems. Therefore, libtool 13725 *** is disabling shared libraries support. We urge you to upgrade GNU 13726 *** binutils to release 2.9.1 or newer. Another option is to modify 13727 *** your PATH or compiler configuration so that the native linker is 13728 *** used, and then restart. 13729 13730 EOF 13731 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13732 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13733 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13734 else 13735 ld_shlibs_F77=no 13736 fi 13737 ;; 13738 13739 sunos4*) 13740 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13741 wlarc= 13742 hardcode_direct_F77=yes 13743 hardcode_shlibpath_var_F77=no 13744 ;; 13745 13746 linux*) 13747 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13748 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13749 archive_cmds_F77="$tmp_archive_cmds" 13750 supports_anon_versioning=no 13751 case `$LD -v 2>/dev/null` in 13752 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13753 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13754 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13755 *\ 2.11.*) ;; # other 2.11 versions 13756 *) supports_anon_versioning=yes ;; 13757 esac 13758 if test $supports_anon_versioning = yes; then 13759 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 13760 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13761 $echo "local: *; };" >> $output_objdir/$libname.ver~ 13762 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13763 else 13764 archive_expsym_cmds_F77="$tmp_archive_cmds" 13765 fi 13766 else 13767 ld_shlibs_F77=no 13768 fi 13769 ;; 13770 13771 *) 13772 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13773 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13774 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13775 else 13776 ld_shlibs_F77=no 13777 fi 13778 ;; 13779 esac 13780 13781 if test "$ld_shlibs_F77" = yes; then 13782 runpath_var=LD_RUN_PATH 13783 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 13784 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 13785 # ancient GNU ld didn't support --whole-archive et. al. 13786 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 13787 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13788 else 13789 whole_archive_flag_spec_F77= 13790 fi 13791 fi 13792 else 13793 # PORTME fill in a description of your system's linker (not GNU ld) 13794 case $host_os in 13795 aix3*) 13796 allow_undefined_flag_F77=unsupported 13797 always_export_symbols_F77=yes 13798 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 13799 # Note: this linker hardcodes the directories in LIBPATH if there 13800 # are no directories specified by -L. 13801 hardcode_minus_L_F77=yes 13802 if test "$GCC" = yes && test -z "$link_static_flag"; then 13803 # Neither direct hardcoding nor static linking is supported with a 13804 # broken collect2. 13805 hardcode_direct_F77=unsupported 13806 fi 13807 ;; 13808 13809 aix4* | aix5*) 13810 if test "$host_cpu" = ia64; then 13811 # On IA64, the linker does run time linking by default, so we don't 13812 # have to do anything special. 13813 aix_use_runtimelinking=no 13814 exp_sym_flag='-Bexport' 13815 no_entry_flag="" 13816 else 13817 # If we're using GNU nm, then we don't want the "-C" option. 13818 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13819 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13820 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 13821 else 13822 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 13823 fi 13824 aix_use_runtimelinking=no 13825 13826 # Test if we are trying to use run time linking or normal 13827 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13828 # need to do runtime linking. 13829 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 13830 for ld_flag in $LDFLAGS; do 13831 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13832 aix_use_runtimelinking=yes 13833 break 13834 fi 13835 done 13836 esac 13837 13838 exp_sym_flag='-bexport' 13839 no_entry_flag='-bnoentry' 13840 fi 13841 13842 # When large executables or shared objects are built, AIX ld can 13843 # have problems creating the table of contents. If linking a library 13844 # or program results in "error TOC overflow" add -mminimal-toc to 13845 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13846 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13847 13848 archive_cmds_F77='' 13849 hardcode_direct_F77=yes 13850 hardcode_libdir_separator_F77=':' 13851 link_all_deplibs_F77=yes 13852 13853 if test "$GCC" = yes; then 13854 case $host_os in aix4.012|aix4.012.*) 13855 # We only want to do this on AIX 4.2 and lower, the check 13856 # below for broken collect2 doesn't work under 4.3+ 13857 collect2name=`${CC} -print-prog-name=collect2` 13858 if test -f "$collect2name" && \ 13859 strings "$collect2name" | grep resolve_lib_name >/dev/null 13860 then 13861 # We have reworked collect2 13862 hardcode_direct_F77=yes 13863 else 13864 # We have old collect2 13865 hardcode_direct_F77=unsupported 13866 # It fails to find uninstalled libraries when the uninstalled 13867 # path is not listed in the libpath. Setting hardcode_minus_L 13868 # to unsupported forces relinking 13869 hardcode_minus_L_F77=yes 13870 hardcode_libdir_flag_spec_F77='-L$libdir' 13871 hardcode_libdir_separator_F77= 13872 fi 13873 esac 13874 shared_flag='-shared' 13875 else 13876 # not using gcc 13877 if test "$host_cpu" = ia64; then 13878 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13879 # chokes on -Wl,-G. The following line is correct: 13880 shared_flag='-G' 13881 else 13882 if test "$aix_use_runtimelinking" = yes; then 13883 shared_flag='${wl}-G' 13884 else 13885 shared_flag='${wl}-bM:SRE' 13886 fi 13887 fi 13888 fi 13889 13890 # It seems that -bexpall does not export symbols beginning with 13891 # underscore (_), so it is better to generate a list of symbols to export. 13892 always_export_symbols_F77=yes 13893 if test "$aix_use_runtimelinking" = yes; then 13894 # Warning - without using the other runtime loading flags (-brtl), 13895 # -berok will link without error, but may produce a broken library. 13896 allow_undefined_flag_F77='-berok' 13897 # Determine the default libpath from the value encoded in an empty executable. 13898 cat >conftest.$ac_ext <<_ACEOF 13899 program main 13900 13901 end 13902 _ACEOF 13903 rm -f conftest.$ac_objext conftest$ac_exeext 13904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13905 (eval $ac_link) 2>conftest.er1 13906 ac_status=$? 13907 grep -v '^ *+' conftest.er1 >conftest.err 13908 rm -f conftest.er1 13909 cat conftest.err >&5 13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13911 (exit $ac_status); } && 13912 { ac_try='test -z "$ac_f77_werror_flag" 13913 || test ! -s conftest.err' 13914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13915 (eval $ac_try) 2>&5 13916 ac_status=$? 13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13918 (exit $ac_status); }; } && 13919 { ac_try='test -s conftest$ac_exeext' 13920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13921 (eval $ac_try) 2>&5 13922 ac_status=$? 13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13924 (exit $ac_status); }; }; then 13925 13926 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13927 }'` 13928 # Check for a 64-bit object if we didn't find anything. 13929 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; } 13930 }'`; fi 13931 else 13932 echo "$as_me: failed program was:" >&5 13933 sed 's/^/| /' conftest.$ac_ext >&5 13934 13935 fi 13936 rm -f conftest.err conftest.$ac_objext \ 13937 conftest$ac_exeext conftest.$ac_ext 13938 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13939 13940 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13941 archive_expsym_cmds_F77="\$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" 13942 else 13943 if test "$host_cpu" = ia64; then 13944 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 13945 allow_undefined_flag_F77="-z nodefs" 13946 archive_expsym_cmds_F77="\$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" 13947 else 13948 # Determine the default libpath from the value encoded in an empty executable. 13949 cat >conftest.$ac_ext <<_ACEOF 13950 program main 13951 13952 end 13953 _ACEOF 13954 rm -f conftest.$ac_objext conftest$ac_exeext 13955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13956 (eval $ac_link) 2>conftest.er1 13957 ac_status=$? 13958 grep -v '^ *+' conftest.er1 >conftest.err 13959 rm -f conftest.er1 13960 cat conftest.err >&5 13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13962 (exit $ac_status); } && 13963 { ac_try='test -z "$ac_f77_werror_flag" 13964 || test ! -s conftest.err' 13965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13966 (eval $ac_try) 2>&5 13967 ac_status=$? 13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13969 (exit $ac_status); }; } && 13970 { ac_try='test -s conftest$ac_exeext' 13971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13972 (eval $ac_try) 2>&5 13973 ac_status=$? 13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13975 (exit $ac_status); }; }; then 13976 13977 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13978 }'` 13979 # Check for a 64-bit object if we didn't find anything. 13980 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; } 13981 }'`; fi 13982 else 13983 echo "$as_me: failed program was:" >&5 13984 sed 's/^/| /' conftest.$ac_ext >&5 13985 13986 fi 13987 rm -f conftest.err conftest.$ac_objext \ 13988 conftest$ac_exeext conftest.$ac_ext 13989 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13990 13991 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13992 # Warning - without using the other run time loading flags, 13993 # -berok will link without error, but may produce a broken library. 13994 no_undefined_flag_F77=' ${wl}-bernotok' 13995 allow_undefined_flag_F77=' ${wl}-berok' 13996 # -bexpall does not export symbols beginning with underscore (_) 13997 always_export_symbols_F77=yes 13998 # Exported symbols can be pulled into shared objects from archives 13999 whole_archive_flag_spec_F77=' ' 14000 archive_cmds_need_lc_F77=yes 14001 # This is similar to how AIX traditionally builds it's shared libraries. 14002 archive_expsym_cmds_F77="\$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' 14003 fi 14004 fi 14005 ;; 14006 14007 amigaos*) 14008 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 14009 hardcode_libdir_flag_spec_F77='-L$libdir' 14010 hardcode_minus_L_F77=yes 14011 # see comment about different semantics on the GNU ld section 14012 ld_shlibs_F77=no 14013 ;; 14014 14015 bsdi4*) 14016 export_dynamic_flag_spec_F77=-rdynamic 14017 ;; 14018 14019 cygwin* | mingw* | pw32*) 14020 # When not using gcc, we currently assume that we are using 14021 # Microsoft Visual C++. 14022 # hardcode_libdir_flag_spec is actually meaningless, as there is 14023 # no search path for DLLs. 14024 hardcode_libdir_flag_spec_F77=' ' 14025 allow_undefined_flag_F77=unsupported 14026 # Tell ltmain to make .lib files, not .a files. 14027 libext=lib 14028 # Tell ltmain to make .dll files, not .so files. 14029 shrext_cmds=".dll" 14030 # FIXME: Setting linknames here is a bad hack. 14031 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14032 # The linker will automatically build a .lib file if we build a DLL. 14033 old_archive_From_new_cmds_F77='true' 14034 # FIXME: Should let the user specify the lib program. 14035 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14036 fix_srcfile_path='`cygpath -w "$srcfile"`' 14037 enable_shared_with_static_runtimes_F77=yes 14038 ;; 14039 14040 darwin* | rhapsody*) 14041 if test "$GXX" = yes ; then 14042 archive_cmds_need_lc_F77=no 14043 case "$host_os" in 14044 rhapsody* | darwin1.[012]) 14045 allow_undefined_flag_F77='-undefined suppress' 14046 ;; 14047 *) # Darwin 1.3 on 14048 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14049 allow_undefined_flag_F77='-flat_namespace -undefined suppress' 14050 else 14051 case ${MACOSX_DEPLOYMENT_TARGET} in 14052 10.[012]) 14053 allow_undefined_flag_F77='-flat_namespace -undefined suppress' 14054 ;; 14055 10.*) 14056 allow_undefined_flag_F77='-undefined dynamic_lookup' 14057 ;; 14058 esac 14059 fi 14060 ;; 14061 esac 14062 lt_int_apple_cc_single_mod=no 14063 output_verbose_link_cmd='echo' 14064 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 14065 lt_int_apple_cc_single_mod=yes 14066 fi 14067 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 14068 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14069 else 14070 archive_cmds_F77='$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' 14071 fi 14072 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14073 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 14074 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 14075 archive_expsym_cmds_F77='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}' 14076 else 14077 archive_expsym_cmds_F77='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}' 14078 fi 14079 module_expsym_cmds_F77='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}' 14080 hardcode_direct_F77=no 14081 hardcode_automatic_F77=yes 14082 hardcode_shlibpath_var_F77=unsupported 14083 whole_archive_flag_spec_F77='-all_load $convenience' 14084 link_all_deplibs_F77=yes 14085 else 14086 ld_shlibs_F77=no 14087 fi 14088 ;; 14089 14090 dgux*) 14091 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14092 hardcode_libdir_flag_spec_F77='-L$libdir' 14093 hardcode_shlibpath_var_F77=no 14094 ;; 14095 14096 freebsd1*) 14097 ld_shlibs_F77=no 14098 ;; 14099 14100 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14101 # support. Future versions do this automatically, but an explicit c++rt0.o 14102 # does not break anything, and helps significantly (at the cost of a little 14103 # extra space). 14104 freebsd2.2*) 14105 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14106 hardcode_libdir_flag_spec_F77='-R$libdir' 14107 hardcode_direct_F77=yes 14108 hardcode_shlibpath_var_F77=no 14109 ;; 14110 14111 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14112 freebsd2*) 14113 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14114 hardcode_direct_F77=yes 14115 hardcode_minus_L_F77=yes 14116 hardcode_shlibpath_var_F77=no 14117 ;; 14118 14119 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14120 freebsd* | kfreebsd*-gnu) 14121 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14122 hardcode_libdir_flag_spec_F77='-R$libdir' 14123 hardcode_direct_F77=yes 14124 hardcode_shlibpath_var_F77=no 14125 ;; 14126 14127 hpux9*) 14128 if test "$GCC" = yes; then 14129 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 14130 else 14131 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 14132 fi 14133 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14134 hardcode_libdir_separator_F77=: 14135 hardcode_direct_F77=yes 14136 14137 # hardcode_minus_L: Not really in the search PATH, 14138 # but as the default location of the library. 14139 hardcode_minus_L_F77=yes 14140 export_dynamic_flag_spec_F77='${wl}-E' 14141 ;; 14142 14143 hpux10* | hpux11*) 14144 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14145 case "$host_cpu" in 14146 hppa*64*|ia64*) 14147 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14148 ;; 14149 *) 14150 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14151 ;; 14152 esac 14153 else 14154 case "$host_cpu" in 14155 hppa*64*|ia64*) 14156 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 14157 ;; 14158 *) 14159 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14160 ;; 14161 esac 14162 fi 14163 if test "$with_gnu_ld" = no; then 14164 case "$host_cpu" in 14165 hppa*64*) 14166 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14167 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14168 hardcode_libdir_separator_F77=: 14169 hardcode_direct_F77=no 14170 hardcode_shlibpath_var_F77=no 14171 ;; 14172 ia64*) 14173 hardcode_libdir_flag_spec_F77='-L$libdir' 14174 hardcode_direct_F77=no 14175 hardcode_shlibpath_var_F77=no 14176 14177 # hardcode_minus_L: Not really in the search PATH, 14178 # but as the default location of the library. 14179 hardcode_minus_L_F77=yes 14180 ;; 14181 *) 14182 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14183 hardcode_libdir_separator_F77=: 14184 hardcode_direct_F77=yes 14185 export_dynamic_flag_spec_F77='${wl}-E' 14186 14187 # hardcode_minus_L: Not really in the search PATH, 14188 # but as the default location of the library. 14189 hardcode_minus_L_F77=yes 14190 ;; 14191 esac 14192 fi 14193 ;; 14194 14195 irix5* | irix6* | nonstopux*) 14196 if test "$GCC" = yes; then 14197 archive_cmds_F77='$CC -shared $libobjs $deplibs $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' 14198 else 14199 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 14200 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14201 fi 14202 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14203 hardcode_libdir_separator_F77=: 14204 link_all_deplibs_F77=yes 14205 ;; 14206 14207 netbsd*) 14208 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14209 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14210 else 14211 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14212 fi 14213 hardcode_libdir_flag_spec_F77='-R$libdir' 14214 hardcode_direct_F77=yes 14215 hardcode_shlibpath_var_F77=no 14216 ;; 14217 14218 newsos6) 14219 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14220 hardcode_direct_F77=yes 14221 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14222 hardcode_libdir_separator_F77=: 14223 hardcode_shlibpath_var_F77=no 14224 ;; 14225 14226 openbsd*) 14227 hardcode_direct_F77=yes 14228 hardcode_shlibpath_var_F77=no 14229 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14230 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14231 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14232 export_dynamic_flag_spec_F77='${wl}-E' 14233 else 14234 case $host_os in 14235 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14236 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14237 hardcode_libdir_flag_spec_F77='-R$libdir' 14238 ;; 14239 *) 14240 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14241 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14242 ;; 14243 esac 14244 fi 14245 ;; 14246 14247 os2*) 14248 hardcode_libdir_flag_spec_F77='-L$libdir' 14249 hardcode_minus_L_F77=yes 14250 allow_undefined_flag_F77=unsupported 14251 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 14252 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14253 ;; 14254 14255 osf3*) 14256 if test "$GCC" = yes; then 14257 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14258 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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' 14259 else 14260 allow_undefined_flag_F77=' -expect_unresolved \*' 14261 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 14262 fi 14263 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14264 hardcode_libdir_separator_F77=: 14265 ;; 14266 14267 osf4* | osf5*) # as osf3* with the addition of -msym flag 14268 if test "$GCC" = yes; then 14269 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14270 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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' 14271 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14272 else 14273 allow_undefined_flag_F77=' -expect_unresolved \*' 14274 archive_cmds_F77='$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' 14275 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 14276 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 14277 14278 # Both c and cxx compiler support -rpath directly 14279 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14280 fi 14281 hardcode_libdir_separator_F77=: 14282 ;; 14283 14284 sco3.2v5*) 14285 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14286 hardcode_shlibpath_var_F77=no 14287 export_dynamic_flag_spec_F77='${wl}-Bexport' 14288 runpath_var=LD_RUN_PATH 14289 hardcode_runpath_var=yes 14290 ;; 14291 14292 solaris*) 14293 no_undefined_flag_F77=' -z text' 14294 if test "$GCC" = yes; then 14295 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14296 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14297 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14298 else 14299 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14300 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14301 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14302 fi 14303 hardcode_libdir_flag_spec_F77='-R$libdir' 14304 hardcode_shlibpath_var_F77=no 14305 case $host_os in 14306 solaris2.[0-5] | solaris2.[0-5].*) ;; 14307 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 14308 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14309 esac 14310 link_all_deplibs_F77=yes 14311 ;; 14312 14313 sunos4*) 14314 if test "x$host_vendor" = xsequent; then 14315 # Use $CC to link under sequent, because it throws in some extra .o 14316 # files that make .init and .fini sections work. 14317 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14318 else 14319 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14320 fi 14321 hardcode_libdir_flag_spec_F77='-L$libdir' 14322 hardcode_direct_F77=yes 14323 hardcode_minus_L_F77=yes 14324 hardcode_shlibpath_var_F77=no 14325 ;; 14326 14327 sysv4) 14328 case $host_vendor in 14329 sni) 14330 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14331 hardcode_direct_F77=yes # is this really true??? 14332 ;; 14333 siemens) 14334 ## LD is ld it makes a PLAMLIB 14335 ## CC just makes a GrossModule. 14336 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14337 reload_cmds_F77='$CC -r -o $output$reload_objs' 14338 hardcode_direct_F77=no 14339 ;; 14340 motorola) 14341 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14342 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14343 ;; 14344 esac 14345 runpath_var='LD_RUN_PATH' 14346 hardcode_shlibpath_var_F77=no 14347 ;; 14348 14349 sysv4.3*) 14350 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14351 hardcode_shlibpath_var_F77=no 14352 export_dynamic_flag_spec_F77='-Bexport' 14353 ;; 14354 14355 sysv4*MP*) 14356 if test -d /usr/nec; then 14357 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14358 hardcode_shlibpath_var_F77=no 14359 runpath_var=LD_RUN_PATH 14360 hardcode_runpath_var=yes 14361 ld_shlibs_F77=yes 14362 fi 14363 ;; 14364 14365 sysv4.2uw2*) 14366 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14367 hardcode_direct_F77=yes 14368 hardcode_minus_L_F77=no 14369 hardcode_shlibpath_var_F77=no 14370 hardcode_runpath_var=yes 14371 runpath_var=LD_RUN_PATH 14372 ;; 14373 14374 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 14375 no_undefined_flag_F77='${wl}-z ${wl}text' 14376 if test "$GCC" = yes; then 14377 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14378 else 14379 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14380 fi 14381 runpath_var='LD_RUN_PATH' 14382 hardcode_shlibpath_var_F77=no 14383 ;; 14384 14385 sysv5*) 14386 no_undefined_flag_F77=' -z text' 14387 # $CC -shared without GNU ld will not create a library from C++ 14388 # object files and a static libstdc++, better avoid it by now 14389 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14390 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14391 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14392 hardcode_libdir_flag_spec_F77= 14393 hardcode_shlibpath_var_F77=no 14394 runpath_var='LD_RUN_PATH' 14395 ;; 14396 14397 uts4*) 14398 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14399 hardcode_libdir_flag_spec_F77='-L$libdir' 14400 hardcode_shlibpath_var_F77=no 14401 ;; 14402 14403 *) 14404 ld_shlibs_F77=no 14405 ;; 14406 esac 14407 fi 14408 14409 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14410 echo "${ECHO_T}$ld_shlibs_F77" >&6 14411 test "$ld_shlibs_F77" = no && can_build_shared=no 14412 14413 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14414 if test "$GCC" = yes; then 14415 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14416 fi 14417 14418 # 14419 # Do we need to explicitly link libc? 14420 # 14421 case "x$archive_cmds_need_lc_F77" in 14422 x|xyes) 14423 # Assume -lc should be added 14424 archive_cmds_need_lc_F77=yes 14425 14426 if test "$enable_shared" = yes && test "$GCC" = yes; then 14427 case $archive_cmds_F77 in 14428 *'~'*) 14429 # FIXME: we may have to deal with multi-command sequences. 14430 ;; 14431 '$CC '*) 14432 # Test whether the compiler implicitly links with -lc since on some 14433 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14434 # to ld, don't add -lc before -lgcc. 14435 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14436 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 14437 $rm conftest* 14438 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14439 14440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14441 (eval $ac_compile) 2>&5 14442 ac_status=$? 14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14444 (exit $ac_status); } 2>conftest.err; then 14445 soname=conftest 14446 lib=conftest 14447 libobjs=conftest.$ac_objext 14448 deplibs= 14449 wl=$lt_prog_compiler_wl_F77 14450 compiler_flags=-v 14451 linker_flags=-v 14452 verstring= 14453 output_objdir=. 14454 libname=conftest 14455 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14456 allow_undefined_flag_F77= 14457 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14458 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14459 ac_status=$? 14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14461 (exit $ac_status); } 14462 then 14463 archive_cmds_need_lc_F77=no 14464 else 14465 archive_cmds_need_lc_F77=yes 14466 fi 14467 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14468 else 14469 cat conftest.err 1>&5 14470 fi 14471 $rm conftest* 14472 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14473 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 14474 ;; 14475 esac 14476 fi 14477 ;; 14478 esac 14479 14480 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14481 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 14482 library_names_spec= 14483 libname_spec='lib$name' 14484 soname_spec= 14485 shrext_cmds=".so" 14486 postinstall_cmds= 14487 postuninstall_cmds= 14488 finish_cmds= 14489 finish_eval= 14490 shlibpath_var= 14491 shlibpath_overrides_runpath=unknown 14492 version_type=none 14493 dynamic_linker="$host_os ld.so" 14494 sys_lib_dlsearch_path_spec="/lib /usr/lib" 14495 if test "$GCC" = yes; then 14496 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14497 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14498 # if the path contains ";" then we assume it to be the separator 14499 # otherwise default to the standard path separator (i.e. ":") - it is 14500 # assumed that no part of a normal pathname contains ";" but that should 14501 # okay in the real world where ";" in dirpaths is itself problematic. 14502 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14503 else 14504 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14505 fi 14506 else 14507 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14508 fi 14509 need_lib_prefix=unknown 14510 hardcode_into_libs=no 14511 14512 # when you set need_version to no, make sure it does not cause -set_version 14513 # flags to be left without arguments 14514 need_version=unknown 14515 14516 case $host_os in 14517 aix3*) 14518 version_type=linux 14519 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14520 shlibpath_var=LIBPATH 14521 14522 # AIX 3 has no versioning support, so we append a major version to the name. 14523 soname_spec='${libname}${release}${shared_ext}$major' 14524 ;; 14525 14526 aix4* | aix5*) 14527 version_type=linux 14528 need_lib_prefix=no 14529 need_version=no 14530 hardcode_into_libs=yes 14531 if test "$host_cpu" = ia64; then 14532 # AIX 5 supports IA64 14533 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14534 shlibpath_var=LD_LIBRARY_PATH 14535 else 14536 # With GCC up to 2.95.x, collect2 would create an import file 14537 # for dependence libraries. The import file would start with 14538 # the line `#! .'. This would cause the generated library to 14539 # depend on `.', always an invalid library. This was fixed in 14540 # development snapshots of GCC prior to 3.0. 14541 case $host_os in 14542 aix4 | aix4.[01] | aix4.[01].*) 14543 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14544 echo ' yes ' 14545 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14546 : 14547 else 14548 can_build_shared=no 14549 fi 14550 ;; 14551 esac 14552 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14553 # soname into executable. Probably we can add versioning support to 14554 # collect2, so additional links can be useful in future. 14555 if test "$aix_use_runtimelinking" = yes; then 14556 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14557 # instead of lib<name>.a to let people know that these are not 14558 # typical AIX shared libraries. 14559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14560 else 14561 # We preserve .a as extension for shared libraries through AIX4.2 14562 # and later when we are not doing run time linking. 14563 library_names_spec='${libname}${release}.a $libname.a' 14564 soname_spec='${libname}${release}${shared_ext}$major' 14565 fi 14566 shlibpath_var=LIBPATH 14567 fi 14568 ;; 14569 14570 amigaos*) 14571 library_names_spec='$libname.ixlibrary $libname.a' 14572 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14573 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 14574 ;; 14575 14576 beos*) 14577 library_names_spec='${libname}${shared_ext}' 14578 dynamic_linker="$host_os ld.so" 14579 shlibpath_var=LIBRARY_PATH 14580 ;; 14581 14582 bsdi4*) 14583 version_type=linux 14584 need_version=no 14585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14586 soname_spec='${libname}${release}${shared_ext}$major' 14587 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14588 shlibpath_var=LD_LIBRARY_PATH 14589 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14590 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14591 # the default ld.so.conf also contains /usr/contrib/lib and 14592 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14593 # libtool to hard-code these into programs 14594 ;; 14595 14596 cygwin* | mingw* | pw32*) 14597 version_type=windows 14598 shrext_cmds=".dll" 14599 need_version=no 14600 need_lib_prefix=no 14601 14602 case $GCC,$host_os in 14603 yes,cygwin* | yes,mingw* | yes,pw32*) 14604 library_names_spec='$libname.dll.a' 14605 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14606 postinstall_cmds='base_file=`basename \${file}`~ 14607 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14608 dldir=$destdir/`dirname \$dlpath`~ 14609 test -d \$dldir || mkdir -p \$dldir~ 14610 $install_prog $dir/$dlname \$dldir/$dlname' 14611 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14612 dlpath=$dir/\$dldll~ 14613 $rm \$dlpath' 14614 shlibpath_overrides_runpath=yes 14615 14616 case $host_os in 14617 cygwin*) 14618 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14619 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14620 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14621 ;; 14622 mingw*) 14623 # MinGW DLLs use traditional 'lib' prefix 14624 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14625 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14626 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14627 # It is most probably a Windows format PATH printed by 14628 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14629 # path with ; separators, and with drive letters. We can handle the 14630 # drive letters (cygwin fileutils understands them), so leave them, 14631 # especially as we might pass files found there to a mingw objdump, 14632 # which wouldn't understand a cygwinified path. Ahh. 14633 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14634 else 14635 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14636 fi 14637 ;; 14638 pw32*) 14639 # pw32 DLLs use 'pw' prefix rather than 'lib' 14640 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 14641 ;; 14642 esac 14643 ;; 14644 14645 *) 14646 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14647 ;; 14648 esac 14649 dynamic_linker='Win32 ld.exe' 14650 # FIXME: first we should search . and the directory the executable is in 14651 shlibpath_var=PATH 14652 ;; 14653 14654 darwin* | rhapsody*) 14655 dynamic_linker="$host_os dyld" 14656 version_type=darwin 14657 need_lib_prefix=no 14658 need_version=no 14659 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14660 soname_spec='${libname}${release}${major}$shared_ext' 14661 shlibpath_overrides_runpath=yes 14662 shlibpath_var=DYLD_LIBRARY_PATH 14663 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 14664 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 14665 if test "$GCC" = yes; then 14666 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"` 14667 else 14668 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 14669 fi 14670 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14671 ;; 14672 14673 dgux*) 14674 version_type=linux 14675 need_lib_prefix=no 14676 need_version=no 14677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14678 soname_spec='${libname}${release}${shared_ext}$major' 14679 shlibpath_var=LD_LIBRARY_PATH 14680 ;; 14681 14682 freebsd1*) 14683 dynamic_linker=no 14684 ;; 14685 14686 kfreebsd*-gnu) 14687 version_type=linux 14688 need_lib_prefix=no 14689 need_version=no 14690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14691 soname_spec='${libname}${release}${shared_ext}$major' 14692 shlibpath_var=LD_LIBRARY_PATH 14693 shlibpath_overrides_runpath=no 14694 hardcode_into_libs=yes 14695 dynamic_linker='GNU ld.so' 14696 ;; 14697 14698 freebsd*) 14699 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 14700 version_type=freebsd-$objformat 14701 case $version_type in 14702 freebsd-elf*) 14703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14704 need_version=no 14705 need_lib_prefix=no 14706 ;; 14707 freebsd-*) 14708 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14709 need_version=yes 14710 ;; 14711 esac 14712 shlibpath_var=LD_LIBRARY_PATH 14713 case $host_os in 14714 freebsd2*) 14715 shlibpath_overrides_runpath=yes 14716 ;; 14717 freebsd3.01* | freebsdelf3.01*) 14718 shlibpath_overrides_runpath=yes 14719 hardcode_into_libs=yes 14720 ;; 14721 *) # from 3.2 on 14722 shlibpath_overrides_runpath=no 14723 hardcode_into_libs=yes 14724 ;; 14725 esac 14726 ;; 14727 14728 gnu*) 14729 version_type=linux 14730 need_lib_prefix=no 14731 need_version=no 14732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14733 soname_spec='${libname}${release}${shared_ext}$major' 14734 shlibpath_var=LD_LIBRARY_PATH 14735 hardcode_into_libs=yes 14736 ;; 14737 14738 hpux9* | hpux10* | hpux11*) 14739 # Give a soname corresponding to the major version so that dld.sl refuses to 14740 # link against other versions. 14741 version_type=sunos 14742 need_lib_prefix=no 14743 need_version=no 14744 case "$host_cpu" in 14745 ia64*) 14746 shrext_cmds='.so' 14747 hardcode_into_libs=yes 14748 dynamic_linker="$host_os dld.so" 14749 shlibpath_var=LD_LIBRARY_PATH 14750 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14752 soname_spec='${libname}${release}${shared_ext}$major' 14753 if test "X$HPUX_IA64_MODE" = X32; then 14754 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14755 else 14756 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14757 fi 14758 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14759 ;; 14760 hppa*64*) 14761 shrext_cmds='.sl' 14762 hardcode_into_libs=yes 14763 dynamic_linker="$host_os dld.sl" 14764 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14765 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14767 soname_spec='${libname}${release}${shared_ext}$major' 14768 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14769 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14770 ;; 14771 *) 14772 shrext_cmds='.sl' 14773 dynamic_linker="$host_os dld.sl" 14774 shlibpath_var=SHLIB_PATH 14775 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14777 soname_spec='${libname}${release}${shared_ext}$major' 14778 ;; 14779 esac 14780 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14781 postinstall_cmds='chmod 555 $lib' 14782 ;; 14783 14784 irix5* | irix6* | nonstopux*) 14785 case $host_os in 14786 nonstopux*) version_type=nonstopux ;; 14787 *) 14788 if test "$lt_cv_prog_gnu_ld" = yes; then 14789 version_type=linux 14790 else 14791 version_type=irix 14792 fi ;; 14793 esac 14794 need_lib_prefix=no 14795 need_version=no 14796 soname_spec='${libname}${release}${shared_ext}$major' 14797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14798 case $host_os in 14799 irix5* | nonstopux*) 14800 libsuff= shlibsuff= 14801 ;; 14802 *) 14803 case $LD in # libtool.m4 will add one of these switches to LD 14804 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14805 libsuff= shlibsuff= libmagic=32-bit;; 14806 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14807 libsuff=32 shlibsuff=N32 libmagic=N32;; 14808 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14809 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14810 *) libsuff= shlibsuff= libmagic=never-match;; 14811 esac 14812 ;; 14813 esac 14814 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14815 shlibpath_overrides_runpath=no 14816 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14817 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14818 hardcode_into_libs=yes 14819 ;; 14820 14821 # No shared lib support for Linux oldld, aout, or coff. 14822 linux*oldld* | linux*aout* | linux*coff*) 14823 dynamic_linker=no 14824 ;; 14825 14826 # This must be Linux ELF. 14827 linux*) 14828 version_type=linux 14829 need_lib_prefix=no 14830 need_version=no 14831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14832 soname_spec='${libname}${release}${shared_ext}$major' 14833 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14834 shlibpath_var=LD_LIBRARY_PATH 14835 shlibpath_overrides_runpath=no 14836 # This implies no fast_install, which is unacceptable. 14837 # Some rework will be needed to allow for fast_install 14838 # before this can be enabled. 14839 hardcode_into_libs=yes 14840 14841 # find out which ABI we are using 14842 libsuff= 14843 case "$host_cpu" in 14844 x86_64*|s390x*|powerpc64*) 14845 echo '#line 14845 "configure"' > conftest.$ac_ext 14846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14847 (eval $ac_compile) 2>&5 14848 ac_status=$? 14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14850 (exit $ac_status); }; then 14851 case `/usr/bin/file conftest.$ac_objext` in 14852 *64-bit*) 14853 libsuff=64 14854 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 14855 ;; 14856 esac 14857 fi 14858 rm -rf conftest* 14859 ;; 14860 esac 14861 14862 # Append ld.so.conf contents to the search path 14863 if test -f /etc/ld.so.conf; then 14864 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 14865 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 14866 fi 14867 14868 # We used to test for /lib/ld.so.1 and disable shared libraries on 14869 # powerpc, because MkLinux only supported shared libraries with the 14870 # GNU dynamic linker. Since this was broken with cross compilers, 14871 # most powerpc-linux boxes support dynamic linking these days and 14872 # people can always --disable-shared, the test was removed, and we 14873 # assume the GNU/Linux dynamic linker is in use. 14874 dynamic_linker='GNU/Linux ld.so' 14875 ;; 14876 14877 knetbsd*-gnu) 14878 version_type=linux 14879 need_lib_prefix=no 14880 need_version=no 14881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14882 soname_spec='${libname}${release}${shared_ext}$major' 14883 shlibpath_var=LD_LIBRARY_PATH 14884 shlibpath_overrides_runpath=no 14885 hardcode_into_libs=yes 14886 dynamic_linker='GNU ld.so' 14887 ;; 14888 14889 netbsd*) 14890 version_type=sunos 14891 need_lib_prefix=no 14892 need_version=no 14893 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14896 dynamic_linker='NetBSD (a.out) ld.so' 14897 else 14898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14899 soname_spec='${libname}${release}${shared_ext}$major' 14900 dynamic_linker='NetBSD ld.elf_so' 14901 fi 14902 shlibpath_var=LD_LIBRARY_PATH 14903 shlibpath_overrides_runpath=yes 14904 hardcode_into_libs=yes 14905 ;; 14906 14907 newsos6) 14908 version_type=linux 14909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14910 shlibpath_var=LD_LIBRARY_PATH 14911 shlibpath_overrides_runpath=yes 14912 ;; 14913 14914 nto-qnx*) 14915 version_type=linux 14916 need_lib_prefix=no 14917 need_version=no 14918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14919 soname_spec='${libname}${release}${shared_ext}$major' 14920 shlibpath_var=LD_LIBRARY_PATH 14921 shlibpath_overrides_runpath=yes 14922 ;; 14923 14924 openbsd*) 14925 version_type=sunos 14926 need_lib_prefix=no 14927 need_version=yes 14928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14929 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14930 shlibpath_var=LD_LIBRARY_PATH 14931 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14932 case $host_os in 14933 openbsd2.[89] | openbsd2.[89].*) 14934 shlibpath_overrides_runpath=no 14935 ;; 14936 *) 14937 shlibpath_overrides_runpath=yes 14938 ;; 14939 esac 14940 else 14941 shlibpath_overrides_runpath=yes 14942 fi 14943 ;; 14944 14945 os2*) 14946 libname_spec='$name' 14947 shrext_cmds=".dll" 14948 need_lib_prefix=no 14949 library_names_spec='$libname${shared_ext} $libname.a' 14950 dynamic_linker='OS/2 ld.exe' 14951 shlibpath_var=LIBPATH 14952 ;; 14953 14954 osf3* | osf4* | osf5*) 14955 version_type=osf 14956 need_lib_prefix=no 14957 need_version=no 14958 soname_spec='${libname}${release}${shared_ext}$major' 14959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14960 shlibpath_var=LD_LIBRARY_PATH 14961 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14962 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14963 ;; 14964 14965 sco3.2v5*) 14966 version_type=osf 14967 soname_spec='${libname}${release}${shared_ext}$major' 14968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14969 shlibpath_var=LD_LIBRARY_PATH 14970 ;; 14971 14972 solaris*) 14973 version_type=linux 14974 need_lib_prefix=no 14975 need_version=no 14976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14977 soname_spec='${libname}${release}${shared_ext}$major' 14978 shlibpath_var=LD_LIBRARY_PATH 14979 shlibpath_overrides_runpath=yes 14980 hardcode_into_libs=yes 14981 # ldd complains unless libraries are executable 14982 postinstall_cmds='chmod +x $lib' 14983 ;; 14984 14985 sunos4*) 14986 version_type=sunos 14987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14988 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14989 shlibpath_var=LD_LIBRARY_PATH 14990 shlibpath_overrides_runpath=yes 14991 if test "$with_gnu_ld" = yes; then 14992 need_lib_prefix=no 14993 fi 14994 need_version=yes 14995 ;; 14996 14997 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14998 version_type=linux 14999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15000 soname_spec='${libname}${release}${shared_ext}$major' 15001 shlibpath_var=LD_LIBRARY_PATH 15002 case $host_vendor in 15003 sni) 15004 shlibpath_overrides_runpath=no 15005 need_lib_prefix=no 15006 export_dynamic_flag_spec='${wl}-Blargedynsym' 15007 runpath_var=LD_RUN_PATH 15008 ;; 15009 siemens) 15010 need_lib_prefix=no 15011 ;; 15012 motorola) 15013 need_lib_prefix=no 15014 need_version=no 15015 shlibpath_overrides_runpath=no 15016 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15017 ;; 15018 esac 15019 ;; 15020 15021 sysv4*MP*) 15022 if test -d /usr/nec ;then 15023 version_type=linux 15024 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15025 soname_spec='$libname${shared_ext}.$major' 15026 shlibpath_var=LD_LIBRARY_PATH 15027 fi 15028 ;; 15029 15030 uts4*) 15031 version_type=linux 15032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15033 soname_spec='${libname}${release}${shared_ext}$major' 15034 shlibpath_var=LD_LIBRARY_PATH 15035 ;; 15036 15037 *) 15038 dynamic_linker=no 15039 ;; 15040 esac 15041 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15042 echo "${ECHO_T}$dynamic_linker" >&6 15043 test "$dynamic_linker" = no && can_build_shared=no 15044 15045 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15046 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15047 hardcode_action_F77= 15048 if test -n "$hardcode_libdir_flag_spec_F77" || \ 15049 test -n "$runpath_var F77" || \ 15050 test "X$hardcode_automatic_F77"="Xyes" ; then 15051 15052 # We can hardcode non-existant directories. 15053 if test "$hardcode_direct_F77" != no && 15054 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15055 # have to relink, otherwise we might link with an installed library 15056 # when we should be linking with a yet-to-be-installed one 15057 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15058 test "$hardcode_minus_L_F77" != no; then 15059 # Linking always hardcodes the temporary library directory. 15060 hardcode_action_F77=relink 15061 else 15062 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15063 hardcode_action_F77=immediate 15064 fi 15065 else 15066 # We cannot hardcode anything, or else we can only hardcode existing 15067 # directories. 15068 hardcode_action_F77=unsupported 15069 fi 15070 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15071 echo "${ECHO_T}$hardcode_action_F77" >&6 15072 15073 if test "$hardcode_action_F77" = relink; then 15074 # Fast installation is not supported 15075 enable_fast_install=no 15076 elif test "$shlibpath_overrides_runpath" = yes || 15077 test "$enable_shared" = no; then 15078 # Fast installation is not necessary 15079 enable_fast_install=needless 15080 fi 15081 15082 striplib= 15083 old_striplib= 15084 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 15085 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 15086 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 15087 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15088 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15089 echo "$as_me:$LINENO: result: yes" >&5 15090 echo "${ECHO_T}yes" >&6 15091 else 15092 # FIXME - insert some real tests, host_os isn't really good enough 15093 case $host_os in 15094 darwin*) 15095 if test -n "$STRIP" ; then 15096 striplib="$STRIP -x" 15097 echo "$as_me:$LINENO: result: yes" >&5 15098 echo "${ECHO_T}yes" >&6 15099 else 15100 echo "$as_me:$LINENO: result: no" >&5 15101 echo "${ECHO_T}no" >&6 15102 fi 15103 ;; 15104 *) 15105 echo "$as_me:$LINENO: result: no" >&5 15106 echo "${ECHO_T}no" >&6 15107 ;; 15108 esac 15109 fi 15110 15111 15112 15113 # The else clause should only fire when bootstrapping the 15114 # libtool distribution, otherwise you forgot to ship ltmain.sh 15115 # with your package, and you will get complaints that there are 15116 # no rules to generate ltmain.sh. 15117 if test -f "$ltmain"; then 15118 # See if we are running on zsh, and set the options which allow our commands through 15119 # without removal of \ escapes. 15120 if test -n "${ZSH_VERSION+set}" ; then 15121 setopt NO_GLOB_SUBST 15122 fi 15123 # Now quote all the things that may contain metacharacters while being 15124 # careful not to overquote the AC_SUBSTed values. We take copies of the 15125 # variables and quote the copies for generation of the libtool script. 15126 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 15127 SED SHELL STRIP \ 15128 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15129 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15130 deplibs_check_method reload_flag reload_cmds need_locks \ 15131 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15132 lt_cv_sys_global_symbol_to_c_name_address \ 15133 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15134 old_postinstall_cmds old_postuninstall_cmds \ 15135 compiler_F77 \ 15136 CC_F77 \ 15137 LD_F77 \ 15138 lt_prog_compiler_wl_F77 \ 15139 lt_prog_compiler_pic_F77 \ 15140 lt_prog_compiler_static_F77 \ 15141 lt_prog_compiler_no_builtin_flag_F77 \ 15142 export_dynamic_flag_spec_F77 \ 15143 thread_safe_flag_spec_F77 \ 15144 whole_archive_flag_spec_F77 \ 15145 enable_shared_with_static_runtimes_F77 \ 15146 old_archive_cmds_F77 \ 15147 old_archive_from_new_cmds_F77 \ 15148 predep_objects_F77 \ 15149 postdep_objects_F77 \ 15150 predeps_F77 \ 15151 postdeps_F77 \ 15152 compiler_lib_search_path_F77 \ 15153 archive_cmds_F77 \ 15154 archive_expsym_cmds_F77 \ 15155 postinstall_cmds_F77 \ 15156 postuninstall_cmds_F77 \ 15157 old_archive_from_expsyms_cmds_F77 \ 15158 allow_undefined_flag_F77 \ 15159 no_undefined_flag_F77 \ 15160 export_symbols_cmds_F77 \ 15161 hardcode_libdir_flag_spec_F77 \ 15162 hardcode_libdir_flag_spec_ld_F77 \ 15163 hardcode_libdir_separator_F77 \ 15164 hardcode_automatic_F77 \ 15165 module_cmds_F77 \ 15166 module_expsym_cmds_F77 \ 15167 lt_cv_prog_compiler_c_o_F77 \ 15168 exclude_expsyms_F77 \ 15169 include_expsyms_F77; do 15170 15171 case $var in 15172 old_archive_cmds_F77 | \ 15173 old_archive_from_new_cmds_F77 | \ 15174 archive_cmds_F77 | \ 15175 archive_expsym_cmds_F77 | \ 15176 module_cmds_F77 | \ 15177 module_expsym_cmds_F77 | \ 15178 old_archive_from_expsyms_cmds_F77 | \ 15179 export_symbols_cmds_F77 | \ 15180 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15181 postinstall_cmds | postuninstall_cmds | \ 15182 old_postinstall_cmds | old_postuninstall_cmds | \ 15183 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15184 # Double-quote double-evaled strings. 15185 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15186 ;; 15187 *) 15188 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15189 ;; 15190 esac 15191 done 15192 15193 case $lt_echo in 15194 *'\$0 --fallback-echo"') 15195 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15196 ;; 15197 esac 15198 15199 cfgfile="$ofile" 15200 15201 cat <<__EOF__ >> "$cfgfile" 15202 # ### BEGIN LIBTOOL TAG CONFIG: $tagname 15203 15204 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15205 15206 # Shell to use when invoking shell scripts. 15207 SHELL=$lt_SHELL 15208 15209 # Whether or not to build shared libraries. 15210 build_libtool_libs=$enable_shared 15211 15212 # Whether or not to build static libraries. 15213 build_old_libs=$enable_static 15214 15215 # Whether or not to add -lc for building shared libraries. 15216 build_libtool_need_lc=$archive_cmds_need_lc_F77 15217 15218 # Whether or not to disallow shared libs when runtime libs are static 15219 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15220 15221 # Whether or not to optimize for fast installation. 15222 fast_install=$enable_fast_install 15223 15224 # The host system. 15225 host_alias=$host_alias 15226 host=$host 15227 15228 # An echo program that does not interpret backslashes. 15229 echo=$lt_echo 15230 15231 # The archiver. 15232 AR=$lt_AR 15233 AR_FLAGS=$lt_AR_FLAGS 15234 15235 # A C compiler. 15236 LTCC=$lt_LTCC 15237 15238 # A language-specific compiler. 15239 CC=$lt_compiler_F77 15240 15241 # Is the compiler the GNU C compiler? 15242 with_gcc=$GCC_F77 15243 15244 # An ERE matcher. 15245 EGREP=$lt_EGREP 15246 15247 # The linker used to build libraries. 15248 LD=$lt_LD_F77 15249 15250 # Whether we need hard or soft links. 15251 LN_S=$lt_LN_S 15252 15253 # A BSD-compatible nm program. 15254 NM=$lt_NM 15255 15256 # A symbol stripping program 15257 STRIP=$lt_STRIP 15258 15259 # Used to examine libraries when file_magic_cmd begins "file" 15260 MAGIC_CMD=$MAGIC_CMD 15261 15262 # Used on cygwin: DLL creation program. 15263 DLLTOOL="$DLLTOOL" 15264 15265 # Used on cygwin: object dumper. 15266 OBJDUMP="$OBJDUMP" 15267 15268 # Used on cygwin: assembler. 15269 AS="$AS" 15270 15271 # The name of the directory that contains temporary libtool files. 15272 objdir=$objdir 15273 15274 # How to create reloadable object files. 15275 reload_flag=$lt_reload_flag 15276 reload_cmds=$lt_reload_cmds 15277 15278 # How to pass a linker flag through the compiler. 15279 wl=$lt_lt_prog_compiler_wl_F77 15280 15281 # Object file suffix (normally "o"). 15282 objext="$ac_objext" 15283 15284 # Old archive suffix (normally "a"). 15285 libext="$libext" 15286 15287 # Shared library suffix (normally ".so"). 15288 shrext_cmds='$shrext_cmds' 15289 15290 # Executable file suffix (normally ""). 15291 exeext="$exeext" 15292 15293 # Additional compiler flags for building library objects. 15294 pic_flag=$lt_lt_prog_compiler_pic_F77 15295 pic_mode=$pic_mode 15296 15297 # What is the maximum length of a command? 15298 max_cmd_len=$lt_cv_sys_max_cmd_len 15299 15300 # Does compiler simultaneously support -c and -o options? 15301 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15302 15303 # Must we lock files when doing compilation ? 15304 need_locks=$lt_need_locks 15305 15306 # Do we need the lib prefix for modules? 15307 need_lib_prefix=$need_lib_prefix 15308 15309 # Do we need a version for libraries? 15310 need_version=$need_version 15311 15312 # Whether dlopen is supported. 15313 dlopen_support=$enable_dlopen 15314 15315 # Whether dlopen of programs is supported. 15316 dlopen_self=$enable_dlopen_self 15317 15318 # Whether dlopen of statically linked programs is supported. 15319 dlopen_self_static=$enable_dlopen_self_static 15320 15321 # Compiler flag to prevent dynamic linking. 15322 link_static_flag=$lt_lt_prog_compiler_static_F77 15323 15324 # Compiler flag to turn off builtin functions. 15325 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15326 15327 # Compiler flag to allow reflexive dlopens. 15328 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15329 15330 # Compiler flag to generate shared objects directly from archives. 15331 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15332 15333 # Compiler flag to generate thread-safe objects. 15334 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15335 15336 # Library versioning type. 15337 version_type=$version_type 15338 15339 # Format of library name prefix. 15340 libname_spec=$lt_libname_spec 15341 15342 # List of archive names. First name is the real one, the rest are links. 15343 # The last name is the one that the linker finds with -lNAME. 15344 library_names_spec=$lt_library_names_spec 15345 15346 # The coded name of the library, if different from the real name. 15347 soname_spec=$lt_soname_spec 15348 15349 # Commands used to build and install an old-style archive. 15350 RANLIB=$lt_RANLIB 15351 old_archive_cmds=$lt_old_archive_cmds_F77 15352 old_postinstall_cmds=$lt_old_postinstall_cmds 15353 old_postuninstall_cmds=$lt_old_postuninstall_cmds 15354 15355 # Create an old-style archive from a shared archive. 15356 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15357 15358 # Create a temporary old-style archive to link instead of a shared archive. 15359 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15360 15361 # Commands used to build and install a shared archive. 15362 archive_cmds=$lt_archive_cmds_F77 15363 archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15364 postinstall_cmds=$lt_postinstall_cmds 15365 postuninstall_cmds=$lt_postuninstall_cmds 15366 15367 # Commands used to build a loadable module (assumed same as above if empty) 15368 module_cmds=$lt_module_cmds_F77 15369 module_expsym_cmds=$lt_module_expsym_cmds_F77 15370 15371 # Commands to strip libraries. 15372 old_striplib=$lt_old_striplib 15373 striplib=$lt_striplib 15374 15375 # Dependencies to place before the objects being linked to create a 15376 # shared library. 15377 predep_objects=$lt_predep_objects_F77 15378 15379 # Dependencies to place after the objects being linked to create a 15380 # shared library. 15381 postdep_objects=$lt_postdep_objects_F77 15382 15383 # Dependencies to place before the objects being linked to create a 15384 # shared library. 15385 predeps=$lt_predeps_F77 15386 15387 # Dependencies to place after the objects being linked to create a 15388 # shared library. 15389 postdeps=$lt_postdeps_F77 15390 15391 # The library search path used internally by the compiler when linking 15392 # a shared library. 15393 compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15394 15395 # Method to check whether dependent libraries are shared objects. 15396 deplibs_check_method=$lt_deplibs_check_method 15397 15398 # Command to use when deplibs_check_method == file_magic. 15399 file_magic_cmd=$lt_file_magic_cmd 15400 15401 # Flag that allows shared libraries with undefined symbols to be built. 15402 allow_undefined_flag=$lt_allow_undefined_flag_F77 15403 15404 # Flag that forces no undefined symbols. 15405 no_undefined_flag=$lt_no_undefined_flag_F77 15406 15407 # Commands used to finish a libtool library installation in a directory. 15408 finish_cmds=$lt_finish_cmds 15409 15410 # Same as above, but a single script fragment to be evaled but not shown. 15411 finish_eval=$lt_finish_eval 15412 15413 # Take the output of nm and produce a listing of raw symbols and C names. 15414 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15415 15416 # Transform the output of nm in a proper C declaration 15417 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15418 15419 # Transform the output of nm in a C name address pair 15420 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15421 15422 # This is the shared library runtime path variable. 15423 runpath_var=$runpath_var 15424 15425 # This is the shared library path variable. 15426 shlibpath_var=$shlibpath_var 15427 15428 # Is shlibpath searched before the hard-coded library search path? 15429 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15430 15431 # How to hardcode a shared library path into an executable. 15432 hardcode_action=$hardcode_action_F77 15433 15434 # Whether we should hardcode library paths into libraries. 15435 hardcode_into_libs=$hardcode_into_libs 15436 15437 # Flag to hardcode \$libdir into a binary during linking. 15438 # This must work even if \$libdir does not exist. 15439 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15440 15441 # If ld is used when linking, flag to hardcode \$libdir into 15442 # a binary during linking. This must work even if \$libdir does 15443 # not exist. 15444 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15445 15446 # Whether we need a single -rpath flag with a separated argument. 15447 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15448 15449 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15450 # resulting binary. 15451 hardcode_direct=$hardcode_direct_F77 15452 15453 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15454 # resulting binary. 15455 hardcode_minus_L=$hardcode_minus_L_F77 15456 15457 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15458 # the resulting binary. 15459 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15460 15461 # Set to yes if building a shared library automatically hardcodes DIR into the library 15462 # and all subsequent libraries and executables linked against it. 15463 hardcode_automatic=$hardcode_automatic_F77 15464 15465 # Variables whose values should be saved in libtool wrapper scripts and 15466 # restored at relink time. 15467 variables_saved_for_relink="$variables_saved_for_relink" 15468 15469 # Whether libtool must link a program against all its dependency libraries. 15470 link_all_deplibs=$link_all_deplibs_F77 15471 15472 # Compile-time system search path for libraries 15473 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15474 15475 # Run-time system search path for libraries 15476 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15477 15478 # Fix the shell variable \$srcfile for the compiler. 15479 fix_srcfile_path="$fix_srcfile_path_F77" 15480 15481 # Set to yes if exported symbols are required. 15482 always_export_symbols=$always_export_symbols_F77 15483 15484 # The commands to list exported symbols. 15485 export_symbols_cmds=$lt_export_symbols_cmds_F77 15486 15487 # The commands to extract the exported symbol list from a shared archive. 15488 extract_expsyms_cmds=$lt_extract_expsyms_cmds 15489 15490 # Symbols that should not be listed in the preloaded symbols. 15491 exclude_expsyms=$lt_exclude_expsyms_F77 15492 15493 # Symbols that must always be exported. 15494 include_expsyms=$lt_include_expsyms_F77 15495 15496 # ### END LIBTOOL TAG CONFIG: $tagname 15497 15498 __EOF__ 15499 15500 15501 else 15502 # If there is no Makefile yet, we rely on a make rule to execute 15503 # `config.status --recheck' to rerun these tests and create the 15504 # libtool script then. 15505 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15506 if test -f "$ltmain_in"; then 15507 test -f Makefile && make "$ltmain" 15508 fi 15509 fi 15510 15511 15512 ac_ext=c 15513 ac_cpp='$CPP $CPPFLAGS' 15514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15516 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15517 15518 CC="$lt_save_CC" 15519 15520 else 15521 tagname="" 15522 fi 15523 ;; 15524 15525 GCJ) 15526 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 15527 15528 15529 15530 # Source file extension for Java test sources. 15531 ac_ext=java 15532 15533 # Object file extension for compiled Java test sources. 15534 objext=o 15535 objext_GCJ=$objext 15536 15537 # Code to be used in simple compile tests 15538 lt_simple_compile_test_code="class foo {}\n" 15539 15540 # Code to be used in simple link tests 15541 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' 15542 15543 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 15544 15545 # If no C compiler was specified, use CC. 15546 LTCC=${LTCC-"$CC"} 15547 15548 # Allow CC to be a program name with arguments. 15549 compiler=$CC 15550 15551 15552 # Allow CC to be a program name with arguments. 15553 lt_save_CC="$CC" 15554 CC=${GCJ-"gcj"} 15555 compiler=$CC 15556 compiler_GCJ=$CC 15557 15558 # GCJ did not exist at the time GCC didn't implicitly link libc in. 15559 archive_cmds_need_lc_GCJ=no 15560 15561 15562 lt_prog_compiler_no_builtin_flag_GCJ= 15563 15564 if test "$GCC" = yes; then 15565 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 15566 15567 15568 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15569 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 15570 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 15571 echo $ECHO_N "(cached) $ECHO_C" >&6 15572 else 15573 lt_cv_prog_compiler_rtti_exceptions=no 15574 ac_outfile=conftest.$ac_objext 15575 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15576 lt_compiler_flag="-fno-rtti -fno-exceptions" 15577 # Insert the option either (1) after the last *FLAGS variable, or 15578 # (2) before a word containing "conftest.", or (3) at the end. 15579 # Note that $ac_compile itself does not contain backslashes and begins 15580 # with a dollar sign (not a hyphen), so the echo should work correctly. 15581 # The option is referenced via a variable to avoid confusing sed. 15582 lt_compile=`echo "$ac_compile" | $SED \ 15583 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15584 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15585 -e 's:$: $lt_compiler_flag:'` 15586 (eval echo "\"\$as_me:15586: $lt_compile\"" >&5) 15587 (eval "$lt_compile" 2>conftest.err) 15588 ac_status=$? 15589 cat conftest.err >&5 15590 echo "$as_me:15590: \$? = $ac_status" >&5 15591 if (exit $ac_status) && test -s "$ac_outfile"; then 15592 # The compiler can only warn and ignore the option if not recognized 15593 # So say no if there are warnings 15594 if test ! -s conftest.err; then 15595 lt_cv_prog_compiler_rtti_exceptions=yes 15596 fi 15597 fi 15598 $rm conftest* 15599 15600 fi 15601 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15602 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 15603 15604 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 15605 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 15606 else 15607 : 15608 fi 15609 15610 fi 15611 15612 lt_prog_compiler_wl_GCJ= 15613 lt_prog_compiler_pic_GCJ= 15614 lt_prog_compiler_static_GCJ= 15615 15616 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15617 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 15618 15619 if test "$GCC" = yes; then 15620 lt_prog_compiler_wl_GCJ='-Wl,' 15621 lt_prog_compiler_static_GCJ='-static' 15622 15623 case $host_os in 15624 aix*) 15625 # All AIX code is PIC. 15626 if test "$host_cpu" = ia64; then 15627 # AIX 5 now supports IA64 processor 15628 lt_prog_compiler_static_GCJ='-Bstatic' 15629 fi 15630 ;; 15631 15632 amigaos*) 15633 # FIXME: we need at least 68020 code to build shared libraries, but 15634 # adding the `-m68020' flag to GCC prevents building anything better, 15635 # like `-m68040'. 15636 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 15637 ;; 15638 15639 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15640 # PIC is the default for these OSes. 15641 ;; 15642 15643 mingw* | pw32* | os2*) 15644 # This hack is so that the source file can tell whether it is being 15645 # built for inclusion in a dll (and should export symbols for example). 15646 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15647 ;; 15648 15649 darwin* | rhapsody*) 15650 # PIC is the default on this platform 15651 # Common symbols not allowed in MH_DYLIB files 15652 lt_prog_compiler_pic_GCJ='-fno-common' 15653 ;; 15654 15655 msdosdjgpp*) 15656 # Just because we use GCC doesn't mean we suddenly get shared libraries 15657 # on systems that don't support them. 15658 lt_prog_compiler_can_build_shared_GCJ=no 15659 enable_shared=no 15660 ;; 15661 15662 sysv4*MP*) 15663 if test -d /usr/nec; then 15664 lt_prog_compiler_pic_GCJ=-Kconform_pic 15665 fi 15666 ;; 15667 15668 hpux*) 15669 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15670 # not for PA HP-UX. 15671 case "$host_cpu" in 15672 hppa*64*|ia64*) 15673 # +Z the default 15674 ;; 15675 *) 15676 lt_prog_compiler_pic_GCJ='-fPIC' 15677 ;; 15678 esac 15679 ;; 15680 15681 *) 15682 lt_prog_compiler_pic_GCJ='-fPIC' 15683 ;; 15684 esac 15685 else 15686 # PORTME Check for flag to pass linker flags through the system compiler. 15687 case $host_os in 15688 aix*) 15689 lt_prog_compiler_wl_GCJ='-Wl,' 15690 if test "$host_cpu" = ia64; then 15691 # AIX 5 now supports IA64 processor 15692 lt_prog_compiler_static_GCJ='-Bstatic' 15693 else 15694 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 15695 fi 15696 ;; 15697 15698 mingw* | pw32* | os2*) 15699 # This hack is so that the source file can tell whether it is being 15700 # built for inclusion in a dll (and should export symbols for example). 15701 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15702 ;; 15703 15704 hpux9* | hpux10* | hpux11*) 15705 lt_prog_compiler_wl_GCJ='-Wl,' 15706 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15707 # not for PA HP-UX. 15708 case "$host_cpu" in 15709 hppa*64*|ia64*) 15710 # +Z the default 15711 ;; 15712 *) 15713 lt_prog_compiler_pic_GCJ='+Z' 15714 ;; 15715 esac 15716 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15717 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 15718 ;; 15719 15720 irix5* | irix6* | nonstopux*) 15721 lt_prog_compiler_wl_GCJ='-Wl,' 15722 # PIC (with -KPIC) is the default. 15723 lt_prog_compiler_static_GCJ='-non_shared' 15724 ;; 15725 15726 newsos6) 15727 lt_prog_compiler_pic_GCJ='-KPIC' 15728 lt_prog_compiler_static_GCJ='-Bstatic' 15729 ;; 15730 15731 linux*) 15732 case $CC in 15733 icc* | ecc*) 15734 lt_prog_compiler_wl_GCJ='-Wl,' 15735 lt_prog_compiler_pic_GCJ='-KPIC' 15736 lt_prog_compiler_static_GCJ='-static' 15737 ;; 15738 ccc*) 15739 lt_prog_compiler_wl_GCJ='-Wl,' 15740 # All Alpha code is PIC. 15741 lt_prog_compiler_static_GCJ='-non_shared' 15742 ;; 15743 esac 15744 ;; 15745 15746 osf3* | osf4* | osf5*) 15747 lt_prog_compiler_wl_GCJ='-Wl,' 15748 # All OSF/1 code is PIC. 15749 lt_prog_compiler_static_GCJ='-non_shared' 15750 ;; 15751 15752 sco3.2v5*) 15753 lt_prog_compiler_pic_GCJ='-Kpic' 15754 lt_prog_compiler_static_GCJ='-dn' 15755 ;; 15756 15757 solaris*) 15758 lt_prog_compiler_wl_GCJ='-Wl,' 15759 lt_prog_compiler_pic_GCJ='-KPIC' 15760 lt_prog_compiler_static_GCJ='-Bstatic' 15761 ;; 15762 15763 sunos4*) 15764 lt_prog_compiler_wl_GCJ='-Qoption ld ' 15765 lt_prog_compiler_pic_GCJ='-PIC' 15766 lt_prog_compiler_static_GCJ='-Bstatic' 15767 ;; 15768 15769 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15770 lt_prog_compiler_wl_GCJ='-Wl,' 15771 lt_prog_compiler_pic_GCJ='-KPIC' 15772 lt_prog_compiler_static_GCJ='-Bstatic' 15773 ;; 15774 15775 sysv4*MP*) 15776 if test -d /usr/nec ;then 15777 lt_prog_compiler_pic_GCJ='-Kconform_pic' 15778 lt_prog_compiler_static_GCJ='-Bstatic' 15779 fi 15780 ;; 15781 15782 uts4*) 15783 lt_prog_compiler_pic_GCJ='-pic' 15784 lt_prog_compiler_static_GCJ='-Bstatic' 15785 ;; 15786 15787 *) 15788 lt_prog_compiler_can_build_shared_GCJ=no 15789 ;; 15790 esac 15791 fi 15792 15793 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 15794 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 15795 15796 # 15797 # Check to make sure the PIC flag actually works. 15798 # 15799 if test -n "$lt_prog_compiler_pic_GCJ"; then 15800 15801 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 15802 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 15803 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 15804 echo $ECHO_N "(cached) $ECHO_C" >&6 15805 else 15806 lt_prog_compiler_pic_works_GCJ=no 15807 ac_outfile=conftest.$ac_objext 15808 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15809 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 15810 # Insert the option either (1) after the last *FLAGS variable, or 15811 # (2) before a word containing "conftest.", or (3) at the end. 15812 # Note that $ac_compile itself does not contain backslashes and begins 15813 # with a dollar sign (not a hyphen), so the echo should work correctly. 15814 # The option is referenced via a variable to avoid confusing sed. 15815 lt_compile=`echo "$ac_compile" | $SED \ 15816 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15818 -e 's:$: $lt_compiler_flag:'` 15819 (eval echo "\"\$as_me:15819: $lt_compile\"" >&5) 15820 (eval "$lt_compile" 2>conftest.err) 15821 ac_status=$? 15822 cat conftest.err >&5 15823 echo "$as_me:15823: \$? = $ac_status" >&5 15824 if (exit $ac_status) && test -s "$ac_outfile"; then 15825 # The compiler can only warn and ignore the option if not recognized 15826 # So say no if there are warnings 15827 if test ! -s conftest.err; then 15828 lt_prog_compiler_pic_works_GCJ=yes 15829 fi 15830 fi 15831 $rm conftest* 15832 15833 fi 15834 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 15835 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 15836 15837 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 15838 case $lt_prog_compiler_pic_GCJ in 15839 "" | " "*) ;; 15840 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 15841 esac 15842 else 15843 lt_prog_compiler_pic_GCJ= 15844 lt_prog_compiler_can_build_shared_GCJ=no 15845 fi 15846 15847 fi 15848 case "$host_os" in 15849 # For platforms which do not support PIC, -DPIC is meaningless: 15850 *djgpp*) 15851 lt_prog_compiler_pic_GCJ= 15852 ;; 15853 *) 15854 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 15855 ;; 15856 esac 15857 15858 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15859 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 15860 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 15861 echo $ECHO_N "(cached) $ECHO_C" >&6 15862 else 15863 lt_cv_prog_compiler_c_o_GCJ=no 15864 $rm -r conftest 2>/dev/null 15865 mkdir conftest 15866 cd conftest 15867 mkdir out 15868 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15869 15870 lt_compiler_flag="-o out/conftest2.$ac_objext" 15871 # Insert the option either (1) after the last *FLAGS variable, or 15872 # (2) before a word containing "conftest.", or (3) at the end. 15873 # Note that $ac_compile itself does not contain backslashes and begins 15874 # with a dollar sign (not a hyphen), so the echo should work correctly. 15875 lt_compile=`echo "$ac_compile" | $SED \ 15876 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15877 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15878 -e 's:$: $lt_compiler_flag:'` 15879 (eval echo "\"\$as_me:15879: $lt_compile\"" >&5) 15880 (eval "$lt_compile" 2>out/conftest.err) 15881 ac_status=$? 15882 cat out/conftest.err >&5 15883 echo "$as_me:15883: \$? = $ac_status" >&5 15884 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15885 then 15886 # The compiler can only warn and ignore the option if not recognized 15887 # So say no if there are warnings 15888 if test ! -s out/conftest.err; then 15889 lt_cv_prog_compiler_c_o_GCJ=yes 15890 fi 15891 fi 15892 chmod u+w . 15893 $rm conftest* 15894 # SGI C++ compiler will create directory out/ii_files/ for 15895 # template instantiation 15896 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15897 $rm out/* && rmdir out 15898 cd .. 15899 rmdir conftest 15900 $rm conftest* 15901 15902 fi 15903 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 15904 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 15905 15906 15907 hard_links="nottested" 15908 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 15909 # do not overwrite the value of need_locks provided by the user 15910 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15911 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 15912 hard_links=yes 15913 $rm conftest* 15914 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15915 touch conftest.a 15916 ln conftest.a conftest.b 2>&5 || hard_links=no 15917 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15918 echo "$as_me:$LINENO: result: $hard_links" >&5 15919 echo "${ECHO_T}$hard_links" >&6 15920 if test "$hard_links" = no; then 15921 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15922 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15923 need_locks=warn 15924 fi 15925 else 15926 need_locks=no 15927 fi 15928 15929 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15930 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 15931 15932 runpath_var= 15933 allow_undefined_flag_GCJ= 15934 enable_shared_with_static_runtimes_GCJ=no 15935 archive_cmds_GCJ= 15936 archive_expsym_cmds_GCJ= 15937 old_archive_From_new_cmds_GCJ= 15938 old_archive_from_expsyms_cmds_GCJ= 15939 export_dynamic_flag_spec_GCJ= 15940 whole_archive_flag_spec_GCJ= 15941 thread_safe_flag_spec_GCJ= 15942 hardcode_libdir_flag_spec_GCJ= 15943 hardcode_libdir_flag_spec_ld_GCJ= 15944 hardcode_libdir_separator_GCJ= 15945 hardcode_direct_GCJ=no 15946 hardcode_minus_L_GCJ=no 15947 hardcode_shlibpath_var_GCJ=unsupported 15948 link_all_deplibs_GCJ=unknown 15949 hardcode_automatic_GCJ=no 15950 module_cmds_GCJ= 15951 module_expsym_cmds_GCJ= 15952 always_export_symbols_GCJ=no 15953 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15954 # include_expsyms should be a list of space-separated symbols to be *always* 15955 # included in the symbol list 15956 include_expsyms_GCJ= 15957 # exclude_expsyms can be an extended regexp of symbols to exclude 15958 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15959 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15960 # as well as any symbol that contains `d'. 15961 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 15962 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15963 # platforms (ab)use it in PIC code, but their linkers get confused if 15964 # the symbol is explicitly referenced. Since portable code cannot 15965 # rely on this symbol name, it's probably fine to never include it in 15966 # preloaded symbol tables. 15967 extract_expsyms_cmds= 15968 15969 case $host_os in 15970 cygwin* | mingw* | pw32*) 15971 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15972 # When not using gcc, we currently assume that we are using 15973 # Microsoft Visual C++. 15974 if test "$GCC" != yes; then 15975 with_gnu_ld=no 15976 fi 15977 ;; 15978 openbsd*) 15979 with_gnu_ld=no 15980 ;; 15981 esac 15982 15983 ld_shlibs_GCJ=yes 15984 if test "$with_gnu_ld" = yes; then 15985 # If archive_cmds runs LD, not CC, wlarc should be empty 15986 wlarc='${wl}' 15987 15988 # See if GNU ld supports shared libraries. 15989 case $host_os in 15990 aix3* | aix4* | aix5*) 15991 # On AIX/PPC, the GNU linker is very broken 15992 if test "$host_cpu" != ia64; then 15993 ld_shlibs_GCJ=no 15994 cat <<EOF 1>&2 15995 15996 *** Warning: the GNU linker, at least up to release 2.9.1, is reported 15997 *** to be unable to reliably create shared libraries on AIX. 15998 *** Therefore, libtool is disabling shared libraries support. If you 15999 *** really care for shared libraries, you may want to modify your PATH 16000 *** so that a non-GNU linker is found, and then restart. 16001 16002 EOF 16003 fi 16004 ;; 16005 16006 amigaos*) 16007 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 16008 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16009 hardcode_minus_L_GCJ=yes 16010 16011 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16012 # that the semantics of dynamic libraries on AmigaOS, at least up 16013 # to version 4, is to share data among multiple programs linked 16014 # with the same dynamic library. Since this doesn't match the 16015 # behavior of shared libraries on other platforms, we can't use 16016 # them. 16017 ld_shlibs_GCJ=no 16018 ;; 16019 16020 beos*) 16021 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16022 allow_undefined_flag_GCJ=unsupported 16023 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16024 # support --undefined. This deserves some investigation. FIXME 16025 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16026 else 16027 ld_shlibs_GCJ=no 16028 fi 16029 ;; 16030 16031 cygwin* | mingw* | pw32*) 16032 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16033 # as there is no search path for DLLs. 16034 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16035 allow_undefined_flag_GCJ=unsupported 16036 always_export_symbols_GCJ=no 16037 enable_shared_with_static_runtimes_GCJ=yes 16038 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16039 16040 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16041 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16042 # If the export-symbols file already is a .def file (1st line 16043 # is EXPORTS), use it as is; otherwise, prepend... 16044 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16045 cp $export_symbols $output_objdir/$soname.def; 16046 else 16047 echo EXPORTS > $output_objdir/$soname.def; 16048 cat $export_symbols >> $output_objdir/$soname.def; 16049 fi~ 16050 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16051 else 16052 ld_shlibs=no 16053 fi 16054 ;; 16055 16056 netbsd*) 16057 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16058 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16059 wlarc= 16060 else 16061 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16062 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16063 fi 16064 ;; 16065 16066 solaris* | sysv5*) 16067 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16068 ld_shlibs_GCJ=no 16069 cat <<EOF 1>&2 16070 16071 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 16072 *** create shared libraries on Solaris systems. Therefore, libtool 16073 *** is disabling shared libraries support. We urge you to upgrade GNU 16074 *** binutils to release 2.9.1 or newer. Another option is to modify 16075 *** your PATH or compiler configuration so that the native linker is 16076 *** used, and then restart. 16077 16078 EOF 16079 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16080 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16081 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16082 else 16083 ld_shlibs_GCJ=no 16084 fi 16085 ;; 16086 16087 sunos4*) 16088 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16089 wlarc= 16090 hardcode_direct_GCJ=yes 16091 hardcode_shlibpath_var_GCJ=no 16092 ;; 16093 16094 linux*) 16095 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16096 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16097 archive_cmds_GCJ="$tmp_archive_cmds" 16098 supports_anon_versioning=no 16099 case `$LD -v 2>/dev/null` in 16100 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16101 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16102 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16103 *\ 2.11.*) ;; # other 2.11 versions 16104 *) supports_anon_versioning=yes ;; 16105 esac 16106 if test $supports_anon_versioning = yes; then 16107 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16108 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16109 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16110 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16111 else 16112 archive_expsym_cmds_GCJ="$tmp_archive_cmds" 16113 fi 16114 else 16115 ld_shlibs_GCJ=no 16116 fi 16117 ;; 16118 16119 *) 16120 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16121 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16122 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16123 else 16124 ld_shlibs_GCJ=no 16125 fi 16126 ;; 16127 esac 16128 16129 if test "$ld_shlibs_GCJ" = yes; then 16130 runpath_var=LD_RUN_PATH 16131 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16132 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16133 # ancient GNU ld didn't support --whole-archive et. al. 16134 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16135 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16136 else 16137 whole_archive_flag_spec_GCJ= 16138 fi 16139 fi 16140 else 16141 # PORTME fill in a description of your system's linker (not GNU ld) 16142 case $host_os in 16143 aix3*) 16144 allow_undefined_flag_GCJ=unsupported 16145 always_export_symbols_GCJ=yes 16146 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 16147 # Note: this linker hardcodes the directories in LIBPATH if there 16148 # are no directories specified by -L. 16149 hardcode_minus_L_GCJ=yes 16150 if test "$GCC" = yes && test -z "$link_static_flag"; then 16151 # Neither direct hardcoding nor static linking is supported with a 16152 # broken collect2. 16153 hardcode_direct_GCJ=unsupported 16154 fi 16155 ;; 16156 16157 aix4* | aix5*) 16158 if test "$host_cpu" = ia64; then 16159 # On IA64, the linker does run time linking by default, so we don't 16160 # have to do anything special. 16161 aix_use_runtimelinking=no 16162 exp_sym_flag='-Bexport' 16163 no_entry_flag="" 16164 else 16165 # If we're using GNU nm, then we don't want the "-C" option. 16166 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16167 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16168 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 16169 else 16170 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 16171 fi 16172 aix_use_runtimelinking=no 16173 16174 # Test if we are trying to use run time linking or normal 16175 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16176 # need to do runtime linking. 16177 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16178 for ld_flag in $LDFLAGS; do 16179 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16180 aix_use_runtimelinking=yes 16181 break 16182 fi 16183 done 16184 esac 16185 16186 exp_sym_flag='-bexport' 16187 no_entry_flag='-bnoentry' 16188 fi 16189 16190 # When large executables or shared objects are built, AIX ld can 16191 # have problems creating the table of contents. If linking a library 16192 # or program results in "error TOC overflow" add -mminimal-toc to 16193 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16194 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16195 16196 archive_cmds_GCJ='' 16197 hardcode_direct_GCJ=yes 16198 hardcode_libdir_separator_GCJ=':' 16199 link_all_deplibs_GCJ=yes 16200 16201 if test "$GCC" = yes; then 16202 case $host_os in aix4.012|aix4.012.*) 16203 # We only want to do this on AIX 4.2 and lower, the check 16204 # below for broken collect2 doesn't work under 4.3+ 16205 collect2name=`${CC} -print-prog-name=collect2` 16206 if test -f "$collect2name" && \ 16207 strings "$collect2name" | grep resolve_lib_name >/dev/null 16208 then 16209 # We have reworked collect2 16210 hardcode_direct_GCJ=yes 16211 else 16212 # We have old collect2 16213 hardcode_direct_GCJ=unsupported 16214 # It fails to find uninstalled libraries when the uninstalled 16215 # path is not listed in the libpath. Setting hardcode_minus_L 16216 # to unsupported forces relinking 16217 hardcode_minus_L_GCJ=yes 16218 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16219 hardcode_libdir_separator_GCJ= 16220 fi 16221 esac 16222 shared_flag='-shared' 16223 else 16224 # not using gcc 16225 if test "$host_cpu" = ia64; then 16226 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16227 # chokes on -Wl,-G. The following line is correct: 16228 shared_flag='-G' 16229 else 16230 if test "$aix_use_runtimelinking" = yes; then 16231 shared_flag='${wl}-G' 16232 else 16233 shared_flag='${wl}-bM:SRE' 16234 fi 16235 fi 16236 fi 16237 16238 # It seems that -bexpall does not export symbols beginning with 16239 # underscore (_), so it is better to generate a list of symbols to export. 16240 always_export_symbols_GCJ=yes 16241 if test "$aix_use_runtimelinking" = yes; then 16242 # Warning - without using the other runtime loading flags (-brtl), 16243 # -berok will link without error, but may produce a broken library. 16244 allow_undefined_flag_GCJ='-berok' 16245 # Determine the default libpath from the value encoded in an empty executable. 16246 cat >conftest.$ac_ext <<_ACEOF 16247 /* confdefs.h. */ 16248 _ACEOF 16249 cat confdefs.h >>conftest.$ac_ext 16250 cat >>conftest.$ac_ext <<_ACEOF 16251 /* end confdefs.h. */ 16252 16253 int 16254 main () 16255 { 16256 16257 ; 16258 return 0; 16259 } 16260 _ACEOF 16261 rm -f conftest.$ac_objext conftest$ac_exeext 16262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16263 (eval $ac_link) 2>conftest.er1 16264 ac_status=$? 16265 grep -v '^ *+' conftest.er1 >conftest.err 16266 rm -f conftest.er1 16267 cat conftest.err >&5 16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16269 (exit $ac_status); } && 16270 { ac_try='test -z "$ac_c_werror_flag" 16271 || test ! -s conftest.err' 16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16273 (eval $ac_try) 2>&5 16274 ac_status=$? 16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16276 (exit $ac_status); }; } && 16277 { ac_try='test -s conftest$ac_exeext' 16278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16279 (eval $ac_try) 2>&5 16280 ac_status=$? 16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16282 (exit $ac_status); }; }; then 16283 16284 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16285 }'` 16286 # Check for a 64-bit object if we didn't find anything. 16287 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; } 16288 }'`; fi 16289 else 16290 echo "$as_me: failed program was:" >&5 16291 sed 's/^/| /' conftest.$ac_ext >&5 16292 16293 fi 16294 rm -f conftest.err conftest.$ac_objext \ 16295 conftest$ac_exeext conftest.$ac_ext 16296 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16297 16298 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16299 archive_expsym_cmds_GCJ="\$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" 16300 else 16301 if test "$host_cpu" = ia64; then 16302 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16303 allow_undefined_flag_GCJ="-z nodefs" 16304 archive_expsym_cmds_GCJ="\$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" 16305 else 16306 # Determine the default libpath from the value encoded in an empty executable. 16307 cat >conftest.$ac_ext <<_ACEOF 16308 /* confdefs.h. */ 16309 _ACEOF 16310 cat confdefs.h >>conftest.$ac_ext 16311 cat >>conftest.$ac_ext <<_ACEOF 16312 /* end confdefs.h. */ 16313 16314 int 16315 main () 16316 { 16317 16318 ; 16319 return 0; 16320 } 16321 _ACEOF 16322 rm -f conftest.$ac_objext conftest$ac_exeext 16323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16324 (eval $ac_link) 2>conftest.er1 16325 ac_status=$? 16326 grep -v '^ *+' conftest.er1 >conftest.err 16327 rm -f conftest.er1 16328 cat conftest.err >&5 16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16330 (exit $ac_status); } && 16331 { ac_try='test -z "$ac_c_werror_flag" 16332 || test ! -s conftest.err' 16333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16334 (eval $ac_try) 2>&5 16335 ac_status=$? 16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16337 (exit $ac_status); }; } && 16338 { ac_try='test -s conftest$ac_exeext' 16339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16340 (eval $ac_try) 2>&5 16341 ac_status=$? 16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16343 (exit $ac_status); }; }; then 16344 16345 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16346 }'` 16347 # Check for a 64-bit object if we didn't find anything. 16348 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; } 16349 }'`; fi 16350 else 16351 echo "$as_me: failed program was:" >&5 16352 sed 's/^/| /' conftest.$ac_ext >&5 16353 16354 fi 16355 rm -f conftest.err conftest.$ac_objext \ 16356 conftest$ac_exeext conftest.$ac_ext 16357 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16358 16359 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16360 # Warning - without using the other run time loading flags, 16361 # -berok will link without error, but may produce a broken library. 16362 no_undefined_flag_GCJ=' ${wl}-bernotok' 16363 allow_undefined_flag_GCJ=' ${wl}-berok' 16364 # -bexpall does not export symbols beginning with underscore (_) 16365 always_export_symbols_GCJ=yes 16366 # Exported symbols can be pulled into shared objects from archives 16367 whole_archive_flag_spec_GCJ=' ' 16368 archive_cmds_need_lc_GCJ=yes 16369 # This is similar to how AIX traditionally builds it's shared libraries. 16370 archive_expsym_cmds_GCJ="\$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' 16371 fi 16372 fi 16373 ;; 16374 16375 amigaos*) 16376 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 16377 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16378 hardcode_minus_L_GCJ=yes 16379 # see comment about different semantics on the GNU ld section 16380 ld_shlibs_GCJ=no 16381 ;; 16382 16383 bsdi4*) 16384 export_dynamic_flag_spec_GCJ=-rdynamic 16385 ;; 16386 16387 cygwin* | mingw* | pw32*) 16388 # When not using gcc, we currently assume that we are using 16389 # Microsoft Visual C++. 16390 # hardcode_libdir_flag_spec is actually meaningless, as there is 16391 # no search path for DLLs. 16392 hardcode_libdir_flag_spec_GCJ=' ' 16393 allow_undefined_flag_GCJ=unsupported 16394 # Tell ltmain to make .lib files, not .a files. 16395 libext=lib 16396 # Tell ltmain to make .dll files, not .so files. 16397 shrext_cmds=".dll" 16398 # FIXME: Setting linknames here is a bad hack. 16399 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16400 # The linker will automatically build a .lib file if we build a DLL. 16401 old_archive_From_new_cmds_GCJ='true' 16402 # FIXME: Should let the user specify the lib program. 16403 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 16404 fix_srcfile_path='`cygpath -w "$srcfile"`' 16405 enable_shared_with_static_runtimes_GCJ=yes 16406 ;; 16407 16408 darwin* | rhapsody*) 16409 if test "$GXX" = yes ; then 16410 archive_cmds_need_lc_GCJ=no 16411 case "$host_os" in 16412 rhapsody* | darwin1.[012]) 16413 allow_undefined_flag_GCJ='-undefined suppress' 16414 ;; 16415 *) # Darwin 1.3 on 16416 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16417 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' 16418 else 16419 case ${MACOSX_DEPLOYMENT_TARGET} in 16420 10.[012]) 16421 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' 16422 ;; 16423 10.*) 16424 allow_undefined_flag_GCJ='-undefined dynamic_lookup' 16425 ;; 16426 esac 16427 fi 16428 ;; 16429 esac 16430 lt_int_apple_cc_single_mod=no 16431 output_verbose_link_cmd='echo' 16432 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 16433 lt_int_apple_cc_single_mod=yes 16434 fi 16435 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 16436 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16437 else 16438 archive_cmds_GCJ='$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' 16439 fi 16440 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16441 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 16442 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 16443 archive_expsym_cmds_GCJ='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}' 16444 else 16445 archive_expsym_cmds_GCJ='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}' 16446 fi 16447 module_expsym_cmds_GCJ='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}' 16448 hardcode_direct_GCJ=no 16449 hardcode_automatic_GCJ=yes 16450 hardcode_shlibpath_var_GCJ=unsupported 16451 whole_archive_flag_spec_GCJ='-all_load $convenience' 16452 link_all_deplibs_GCJ=yes 16453 else 16454 ld_shlibs_GCJ=no 16455 fi 16456 ;; 16457 16458 dgux*) 16459 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16460 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16461 hardcode_shlibpath_var_GCJ=no 16462 ;; 16463 16464 freebsd1*) 16465 ld_shlibs_GCJ=no 16466 ;; 16467 16468 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16469 # support. Future versions do this automatically, but an explicit c++rt0.o 16470 # does not break anything, and helps significantly (at the cost of a little 16471 # extra space). 16472 freebsd2.2*) 16473 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16474 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16475 hardcode_direct_GCJ=yes 16476 hardcode_shlibpath_var_GCJ=no 16477 ;; 16478 16479 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16480 freebsd2*) 16481 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16482 hardcode_direct_GCJ=yes 16483 hardcode_minus_L_GCJ=yes 16484 hardcode_shlibpath_var_GCJ=no 16485 ;; 16486 16487 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16488 freebsd* | kfreebsd*-gnu) 16489 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16490 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16491 hardcode_direct_GCJ=yes 16492 hardcode_shlibpath_var_GCJ=no 16493 ;; 16494 16495 hpux9*) 16496 if test "$GCC" = yes; then 16497 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 16498 else 16499 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 16500 fi 16501 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16502 hardcode_libdir_separator_GCJ=: 16503 hardcode_direct_GCJ=yes 16504 16505 # hardcode_minus_L: Not really in the search PATH, 16506 # but as the default location of the library. 16507 hardcode_minus_L_GCJ=yes 16508 export_dynamic_flag_spec_GCJ='${wl}-E' 16509 ;; 16510 16511 hpux10* | hpux11*) 16512 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16513 case "$host_cpu" in 16514 hppa*64*|ia64*) 16515 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16516 ;; 16517 *) 16518 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16519 ;; 16520 esac 16521 else 16522 case "$host_cpu" in 16523 hppa*64*|ia64*) 16524 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 16525 ;; 16526 *) 16527 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16528 ;; 16529 esac 16530 fi 16531 if test "$with_gnu_ld" = no; then 16532 case "$host_cpu" in 16533 hppa*64*) 16534 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16535 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 16536 hardcode_libdir_separator_GCJ=: 16537 hardcode_direct_GCJ=no 16538 hardcode_shlibpath_var_GCJ=no 16539 ;; 16540 ia64*) 16541 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16542 hardcode_direct_GCJ=no 16543 hardcode_shlibpath_var_GCJ=no 16544 16545 # hardcode_minus_L: Not really in the search PATH, 16546 # but as the default location of the library. 16547 hardcode_minus_L_GCJ=yes 16548 ;; 16549 *) 16550 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16551 hardcode_libdir_separator_GCJ=: 16552 hardcode_direct_GCJ=yes 16553 export_dynamic_flag_spec_GCJ='${wl}-E' 16554 16555 # hardcode_minus_L: Not really in the search PATH, 16556 # but as the default location of the library. 16557 hardcode_minus_L_GCJ=yes 16558 ;; 16559 esac 16560 fi 16561 ;; 16562 16563 irix5* | irix6* | nonstopux*) 16564 if test "$GCC" = yes; then 16565 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $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' 16566 else 16567 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 16568 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 16569 fi 16570 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16571 hardcode_libdir_separator_GCJ=: 16572 link_all_deplibs_GCJ=yes 16573 ;; 16574 16575 netbsd*) 16576 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16577 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16578 else 16579 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16580 fi 16581 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16582 hardcode_direct_GCJ=yes 16583 hardcode_shlibpath_var_GCJ=no 16584 ;; 16585 16586 newsos6) 16587 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16588 hardcode_direct_GCJ=yes 16589 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16590 hardcode_libdir_separator_GCJ=: 16591 hardcode_shlibpath_var_GCJ=no 16592 ;; 16593 16594 openbsd*) 16595 hardcode_direct_GCJ=yes 16596 hardcode_shlibpath_var_GCJ=no 16597 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16598 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16599 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16600 export_dynamic_flag_spec_GCJ='${wl}-E' 16601 else 16602 case $host_os in 16603 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16604 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16605 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16606 ;; 16607 *) 16608 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16609 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16610 ;; 16611 esac 16612 fi 16613 ;; 16614 16615 os2*) 16616 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16617 hardcode_minus_L_GCJ=yes 16618 allow_undefined_flag_GCJ=unsupported 16619 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 16620 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16621 ;; 16622 16623 osf3*) 16624 if test "$GCC" = yes; then 16625 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16626 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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' 16627 else 16628 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16629 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 16630 fi 16631 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16632 hardcode_libdir_separator_GCJ=: 16633 ;; 16634 16635 osf4* | osf5*) # as osf3* with the addition of -msym flag 16636 if test "$GCC" = yes; then 16637 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16638 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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' 16639 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16640 else 16641 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16642 archive_cmds_GCJ='$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' 16643 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 16644 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 16645 16646 # Both c and cxx compiler support -rpath directly 16647 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 16648 fi 16649 hardcode_libdir_separator_GCJ=: 16650 ;; 16651 16652 sco3.2v5*) 16653 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16654 hardcode_shlibpath_var_GCJ=no 16655 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 16656 runpath_var=LD_RUN_PATH 16657 hardcode_runpath_var=yes 16658 ;; 16659 16660 solaris*) 16661 no_undefined_flag_GCJ=' -z text' 16662 if test "$GCC" = yes; then 16663 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16664 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16665 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16666 else 16667 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16668 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16669 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16670 fi 16671 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16672 hardcode_shlibpath_var_GCJ=no 16673 case $host_os in 16674 solaris2.[0-5] | solaris2.[0-5].*) ;; 16675 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 16676 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 16677 esac 16678 link_all_deplibs_GCJ=yes 16679 ;; 16680 16681 sunos4*) 16682 if test "x$host_vendor" = xsequent; then 16683 # Use $CC to link under sequent, because it throws in some extra .o 16684 # files that make .init and .fini sections work. 16685 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16686 else 16687 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16688 fi 16689 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16690 hardcode_direct_GCJ=yes 16691 hardcode_minus_L_GCJ=yes 16692 hardcode_shlibpath_var_GCJ=no 16693 ;; 16694 16695 sysv4) 16696 case $host_vendor in 16697 sni) 16698 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16699 hardcode_direct_GCJ=yes # is this really true??? 16700 ;; 16701 siemens) 16702 ## LD is ld it makes a PLAMLIB 16703 ## CC just makes a GrossModule. 16704 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16705 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 16706 hardcode_direct_GCJ=no 16707 ;; 16708 motorola) 16709 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16710 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 16711 ;; 16712 esac 16713 runpath_var='LD_RUN_PATH' 16714 hardcode_shlibpath_var_GCJ=no 16715 ;; 16716 16717 sysv4.3*) 16718 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16719 hardcode_shlibpath_var_GCJ=no 16720 export_dynamic_flag_spec_GCJ='-Bexport' 16721 ;; 16722 16723 sysv4*MP*) 16724 if test -d /usr/nec; then 16725 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16726 hardcode_shlibpath_var_GCJ=no 16727 runpath_var=LD_RUN_PATH 16728 hardcode_runpath_var=yes 16729 ld_shlibs_GCJ=yes 16730 fi 16731 ;; 16732 16733 sysv4.2uw2*) 16734 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16735 hardcode_direct_GCJ=yes 16736 hardcode_minus_L_GCJ=no 16737 hardcode_shlibpath_var_GCJ=no 16738 hardcode_runpath_var=yes 16739 runpath_var=LD_RUN_PATH 16740 ;; 16741 16742 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 16743 no_undefined_flag_GCJ='${wl}-z ${wl}text' 16744 if test "$GCC" = yes; then 16745 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16746 else 16747 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16748 fi 16749 runpath_var='LD_RUN_PATH' 16750 hardcode_shlibpath_var_GCJ=no 16751 ;; 16752 16753 sysv5*) 16754 no_undefined_flag_GCJ=' -z text' 16755 # $CC -shared without GNU ld will not create a library from C++ 16756 # object files and a static libstdc++, better avoid it by now 16757 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16758 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16759 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16760 hardcode_libdir_flag_spec_GCJ= 16761 hardcode_shlibpath_var_GCJ=no 16762 runpath_var='LD_RUN_PATH' 16763 ;; 16764 16765 uts4*) 16766 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16767 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16768 hardcode_shlibpath_var_GCJ=no 16769 ;; 16770 16771 *) 16772 ld_shlibs_GCJ=no 16773 ;; 16774 esac 16775 fi 16776 16777 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 16778 echo "${ECHO_T}$ld_shlibs_GCJ" >&6 16779 test "$ld_shlibs_GCJ" = no && can_build_shared=no 16780 16781 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16782 if test "$GCC" = yes; then 16783 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16784 fi 16785 16786 # 16787 # Do we need to explicitly link libc? 16788 # 16789 case "x$archive_cmds_need_lc_GCJ" in 16790 x|xyes) 16791 # Assume -lc should be added 16792 archive_cmds_need_lc_GCJ=yes 16793 16794 if test "$enable_shared" = yes && test "$GCC" = yes; then 16795 case $archive_cmds_GCJ in 16796 *'~'*) 16797 # FIXME: we may have to deal with multi-command sequences. 16798 ;; 16799 '$CC '*) 16800 # Test whether the compiler implicitly links with -lc since on some 16801 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16802 # to ld, don't add -lc before -lgcc. 16803 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 16804 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 16805 $rm conftest* 16806 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16807 16808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16809 (eval $ac_compile) 2>&5 16810 ac_status=$? 16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16812 (exit $ac_status); } 2>conftest.err; then 16813 soname=conftest 16814 lib=conftest 16815 libobjs=conftest.$ac_objext 16816 deplibs= 16817 wl=$lt_prog_compiler_wl_GCJ 16818 compiler_flags=-v 16819 linker_flags=-v 16820 verstring= 16821 output_objdir=. 16822 libname=conftest 16823 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 16824 allow_undefined_flag_GCJ= 16825 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 16826 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 16827 ac_status=$? 16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16829 (exit $ac_status); } 16830 then 16831 archive_cmds_need_lc_GCJ=no 16832 else 16833 archive_cmds_need_lc_GCJ=yes 16834 fi 16835 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 16836 else 16837 cat conftest.err 1>&5 16838 fi 16839 $rm conftest* 16840 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 16841 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 16842 ;; 16843 esac 16844 fi 16845 ;; 16846 esac 16847 16848 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16849 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 16850 library_names_spec= 16851 libname_spec='lib$name' 16852 soname_spec= 16853 shrext_cmds=".so" 16854 postinstall_cmds= 16855 postuninstall_cmds= 16856 finish_cmds= 16857 finish_eval= 16858 shlibpath_var= 16859 shlibpath_overrides_runpath=unknown 16860 version_type=none 16861 dynamic_linker="$host_os ld.so" 16862 sys_lib_dlsearch_path_spec="/lib /usr/lib" 16863 if test "$GCC" = yes; then 16864 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16865 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 16866 # if the path contains ";" then we assume it to be the separator 16867 # otherwise default to the standard path separator (i.e. ":") - it is 16868 # assumed that no part of a normal pathname contains ";" but that should 16869 # okay in the real world where ";" in dirpaths is itself problematic. 16870 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16871 else 16872 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16873 fi 16874 else 16875 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16876 fi 16877 need_lib_prefix=unknown 16878 hardcode_into_libs=no 16879 16880 # when you set need_version to no, make sure it does not cause -set_version 16881 # flags to be left without arguments 16882 need_version=unknown 16883 16884 case $host_os in 16885 aix3*) 16886 version_type=linux 16887 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16888 shlibpath_var=LIBPATH 16889 16890 # AIX 3 has no versioning support, so we append a major version to the name. 16891 soname_spec='${libname}${release}${shared_ext}$major' 16892 ;; 16893 16894 aix4* | aix5*) 16895 version_type=linux 16896 need_lib_prefix=no 16897 need_version=no 16898 hardcode_into_libs=yes 16899 if test "$host_cpu" = ia64; then 16900 # AIX 5 supports IA64 16901 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16902 shlibpath_var=LD_LIBRARY_PATH 16903 else 16904 # With GCC up to 2.95.x, collect2 would create an import file 16905 # for dependence libraries. The import file would start with 16906 # the line `#! .'. This would cause the generated library to 16907 # depend on `.', always an invalid library. This was fixed in 16908 # development snapshots of GCC prior to 3.0. 16909 case $host_os in 16910 aix4 | aix4.[01] | aix4.[01].*) 16911 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16912 echo ' yes ' 16913 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16914 : 16915 else 16916 can_build_shared=no 16917 fi 16918 ;; 16919 esac 16920 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16921 # soname into executable. Probably we can add versioning support to 16922 # collect2, so additional links can be useful in future. 16923 if test "$aix_use_runtimelinking" = yes; then 16924 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16925 # instead of lib<name>.a to let people know that these are not 16926 # typical AIX shared libraries. 16927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16928 else 16929 # We preserve .a as extension for shared libraries through AIX4.2 16930 # and later when we are not doing run time linking. 16931 library_names_spec='${libname}${release}.a $libname.a' 16932 soname_spec='${libname}${release}${shared_ext}$major' 16933 fi 16934 shlibpath_var=LIBPATH 16935 fi 16936 ;; 16937 16938 amigaos*) 16939 library_names_spec='$libname.ixlibrary $libname.a' 16940 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16941 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 16942 ;; 16943 16944 beos*) 16945 library_names_spec='${libname}${shared_ext}' 16946 dynamic_linker="$host_os ld.so" 16947 shlibpath_var=LIBRARY_PATH 16948 ;; 16949 16950 bsdi4*) 16951 version_type=linux 16952 need_version=no 16953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16954 soname_spec='${libname}${release}${shared_ext}$major' 16955 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16956 shlibpath_var=LD_LIBRARY_PATH 16957 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16958 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16959 # the default ld.so.conf also contains /usr/contrib/lib and 16960 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16961 # libtool to hard-code these into programs 16962 ;; 16963 16964 cygwin* | mingw* | pw32*) 16965 version_type=windows 16966 shrext_cmds=".dll" 16967 need_version=no 16968 need_lib_prefix=no 16969 16970 case $GCC,$host_os in 16971 yes,cygwin* | yes,mingw* | yes,pw32*) 16972 library_names_spec='$libname.dll.a' 16973 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16974 postinstall_cmds='base_file=`basename \${file}`~ 16975 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16976 dldir=$destdir/`dirname \$dlpath`~ 16977 test -d \$dldir || mkdir -p \$dldir~ 16978 $install_prog $dir/$dlname \$dldir/$dlname' 16979 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16980 dlpath=$dir/\$dldll~ 16981 $rm \$dlpath' 16982 shlibpath_overrides_runpath=yes 16983 16984 case $host_os in 16985 cygwin*) 16986 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16987 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16988 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 16989 ;; 16990 mingw*) 16991 # MinGW DLLs use traditional 'lib' prefix 16992 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16993 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16994 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16995 # It is most probably a Windows format PATH printed by 16996 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16997 # path with ; separators, and with drive letters. We can handle the 16998 # drive letters (cygwin fileutils understands them), so leave them, 16999 # especially as we might pass files found there to a mingw objdump, 17000 # which wouldn't understand a cygwinified path. Ahh. 17001 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17002 else 17003 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17004 fi 17005 ;; 17006 pw32*) 17007 # pw32 DLLs use 'pw' prefix rather than 'lib' 17008 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 17009 ;; 17010 esac 17011 ;; 17012 17013 *) 17014 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17015 ;; 17016 esac 17017 dynamic_linker='Win32 ld.exe' 17018 # FIXME: first we should search . and the directory the executable is in 17019 shlibpath_var=PATH 17020 ;; 17021 17022 darwin* | rhapsody*) 17023 dynamic_linker="$host_os dyld" 17024 version_type=darwin 17025 need_lib_prefix=no 17026 need_version=no 17027 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17028 soname_spec='${libname}${release}${major}$shared_ext' 17029 shlibpath_overrides_runpath=yes 17030 shlibpath_var=DYLD_LIBRARY_PATH 17031 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 17032 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17033 if test "$GCC" = yes; then 17034 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"` 17035 else 17036 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17037 fi 17038 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17039 ;; 17040 17041 dgux*) 17042 version_type=linux 17043 need_lib_prefix=no 17044 need_version=no 17045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17046 soname_spec='${libname}${release}${shared_ext}$major' 17047 shlibpath_var=LD_LIBRARY_PATH 17048 ;; 17049 17050 freebsd1*) 17051 dynamic_linker=no 17052 ;; 17053 17054 kfreebsd*-gnu) 17055 version_type=linux 17056 need_lib_prefix=no 17057 need_version=no 17058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17059 soname_spec='${libname}${release}${shared_ext}$major' 17060 shlibpath_var=LD_LIBRARY_PATH 17061 shlibpath_overrides_runpath=no 17062 hardcode_into_libs=yes 17063 dynamic_linker='GNU ld.so' 17064 ;; 17065 17066 freebsd*) 17067 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 17068 version_type=freebsd-$objformat 17069 case $version_type in 17070 freebsd-elf*) 17071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17072 need_version=no 17073 need_lib_prefix=no 17074 ;; 17075 freebsd-*) 17076 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17077 need_version=yes 17078 ;; 17079 esac 17080 shlibpath_var=LD_LIBRARY_PATH 17081 case $host_os in 17082 freebsd2*) 17083 shlibpath_overrides_runpath=yes 17084 ;; 17085 freebsd3.01* | freebsdelf3.01*) 17086 shlibpath_overrides_runpath=yes 17087 hardcode_into_libs=yes 17088 ;; 17089 *) # from 3.2 on 17090 shlibpath_overrides_runpath=no 17091 hardcode_into_libs=yes 17092 ;; 17093 esac 17094 ;; 17095 17096 gnu*) 17097 version_type=linux 17098 need_lib_prefix=no 17099 need_version=no 17100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17101 soname_spec='${libname}${release}${shared_ext}$major' 17102 shlibpath_var=LD_LIBRARY_PATH 17103 hardcode_into_libs=yes 17104 ;; 17105 17106 hpux9* | hpux10* | hpux11*) 17107 # Give a soname corresponding to the major version so that dld.sl refuses to 17108 # link against other versions. 17109 version_type=sunos 17110 need_lib_prefix=no 17111 need_version=no 17112 case "$host_cpu" in 17113 ia64*) 17114 shrext_cmds='.so' 17115 hardcode_into_libs=yes 17116 dynamic_linker="$host_os dld.so" 17117 shlibpath_var=LD_LIBRARY_PATH 17118 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17120 soname_spec='${libname}${release}${shared_ext}$major' 17121 if test "X$HPUX_IA64_MODE" = X32; then 17122 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17123 else 17124 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17125 fi 17126 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17127 ;; 17128 hppa*64*) 17129 shrext_cmds='.sl' 17130 hardcode_into_libs=yes 17131 dynamic_linker="$host_os dld.sl" 17132 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17133 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17135 soname_spec='${libname}${release}${shared_ext}$major' 17136 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17137 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17138 ;; 17139 *) 17140 shrext_cmds='.sl' 17141 dynamic_linker="$host_os dld.sl" 17142 shlibpath_var=SHLIB_PATH 17143 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17145 soname_spec='${libname}${release}${shared_ext}$major' 17146 ;; 17147 esac 17148 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17149 postinstall_cmds='chmod 555 $lib' 17150 ;; 17151 17152 irix5* | irix6* | nonstopux*) 17153 case $host_os in 17154 nonstopux*) version_type=nonstopux ;; 17155 *) 17156 if test "$lt_cv_prog_gnu_ld" = yes; then 17157 version_type=linux 17158 else 17159 version_type=irix 17160 fi ;; 17161 esac 17162 need_lib_prefix=no 17163 need_version=no 17164 soname_spec='${libname}${release}${shared_ext}$major' 17165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17166 case $host_os in 17167 irix5* | nonstopux*) 17168 libsuff= shlibsuff= 17169 ;; 17170 *) 17171 case $LD in # libtool.m4 will add one of these switches to LD 17172 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17173 libsuff= shlibsuff= libmagic=32-bit;; 17174 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17175 libsuff=32 shlibsuff=N32 libmagic=N32;; 17176 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17177 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17178 *) libsuff= shlibsuff= libmagic=never-match;; 17179 esac 17180 ;; 17181 esac 17182 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17183 shlibpath_overrides_runpath=no 17184 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17185 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17186 hardcode_into_libs=yes 17187 ;; 17188 17189 # No shared lib support for Linux oldld, aout, or coff. 17190 linux*oldld* | linux*aout* | linux*coff*) 17191 dynamic_linker=no 17192 ;; 17193 17194 # This must be Linux ELF. 17195 linux*) 17196 version_type=linux 17197 need_lib_prefix=no 17198 need_version=no 17199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17200 soname_spec='${libname}${release}${shared_ext}$major' 17201 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17202 shlibpath_var=LD_LIBRARY_PATH 17203 shlibpath_overrides_runpath=no 17204 # This implies no fast_install, which is unacceptable. 17205 # Some rework will be needed to allow for fast_install 17206 # before this can be enabled. 17207 hardcode_into_libs=yes 17208 17209 # find out which ABI we are using 17210 libsuff= 17211 case "$host_cpu" in 17212 x86_64*|s390x*|powerpc64*) 17213 echo '#line 17213 "configure"' > conftest.$ac_ext 17214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17215 (eval $ac_compile) 2>&5 17216 ac_status=$? 17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17218 (exit $ac_status); }; then 17219 case `/usr/bin/file conftest.$ac_objext` in 17220 *64-bit*) 17221 libsuff=64 17222 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 17223 ;; 17224 esac 17225 fi 17226 rm -rf conftest* 17227 ;; 17228 esac 17229 17230 # Append ld.so.conf contents to the search path 17231 if test -f /etc/ld.so.conf; then 17232 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 17233 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 17234 fi 17235 17236 # We used to test for /lib/ld.so.1 and disable shared libraries on 17237 # powerpc, because MkLinux only supported shared libraries with the 17238 # GNU dynamic linker. Since this was broken with cross compilers, 17239 # most powerpc-linux boxes support dynamic linking these days and 17240 # people can always --disable-shared, the test was removed, and we 17241 # assume the GNU/Linux dynamic linker is in use. 17242 dynamic_linker='GNU/Linux ld.so' 17243 ;; 17244 17245 knetbsd*-gnu) 17246 version_type=linux 17247 need_lib_prefix=no 17248 need_version=no 17249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17250 soname_spec='${libname}${release}${shared_ext}$major' 17251 shlibpath_var=LD_LIBRARY_PATH 17252 shlibpath_overrides_runpath=no 17253 hardcode_into_libs=yes 17254 dynamic_linker='GNU ld.so' 17255 ;; 17256 17257 netbsd*) 17258 version_type=sunos 17259 need_lib_prefix=no 17260 need_version=no 17261 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17264 dynamic_linker='NetBSD (a.out) ld.so' 17265 else 17266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17267 soname_spec='${libname}${release}${shared_ext}$major' 17268 dynamic_linker='NetBSD ld.elf_so' 17269 fi 17270 shlibpath_var=LD_LIBRARY_PATH 17271 shlibpath_overrides_runpath=yes 17272 hardcode_into_libs=yes 17273 ;; 17274 17275 newsos6) 17276 version_type=linux 17277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17278 shlibpath_var=LD_LIBRARY_PATH 17279 shlibpath_overrides_runpath=yes 17280 ;; 17281 17282 nto-qnx*) 17283 version_type=linux 17284 need_lib_prefix=no 17285 need_version=no 17286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17287 soname_spec='${libname}${release}${shared_ext}$major' 17288 shlibpath_var=LD_LIBRARY_PATH 17289 shlibpath_overrides_runpath=yes 17290 ;; 17291 17292 openbsd*) 17293 version_type=sunos 17294 need_lib_prefix=no 17295 need_version=yes 17296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17297 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17298 shlibpath_var=LD_LIBRARY_PATH 17299 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17300 case $host_os in 17301 openbsd2.[89] | openbsd2.[89].*) 17302 shlibpath_overrides_runpath=no 17303 ;; 17304 *) 17305 shlibpath_overrides_runpath=yes 17306 ;; 17307 esac 17308 else 17309 shlibpath_overrides_runpath=yes 17310 fi 17311 ;; 17312 17313 os2*) 17314 libname_spec='$name' 17315 shrext_cmds=".dll" 17316 need_lib_prefix=no 17317 library_names_spec='$libname${shared_ext} $libname.a' 17318 dynamic_linker='OS/2 ld.exe' 17319 shlibpath_var=LIBPATH 17320 ;; 17321 17322 osf3* | osf4* | osf5*) 17323 version_type=osf 17324 need_lib_prefix=no 17325 need_version=no 17326 soname_spec='${libname}${release}${shared_ext}$major' 17327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17328 shlibpath_var=LD_LIBRARY_PATH 17329 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17330 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17331 ;; 17332 17333 sco3.2v5*) 17334 version_type=osf 17335 soname_spec='${libname}${release}${shared_ext}$major' 17336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17337 shlibpath_var=LD_LIBRARY_PATH 17338 ;; 17339 17340 solaris*) 17341 version_type=linux 17342 need_lib_prefix=no 17343 need_version=no 17344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17345 soname_spec='${libname}${release}${shared_ext}$major' 17346 shlibpath_var=LD_LIBRARY_PATH 17347 shlibpath_overrides_runpath=yes 17348 hardcode_into_libs=yes 17349 # ldd complains unless libraries are executable 17350 postinstall_cmds='chmod +x $lib' 17351 ;; 17352 17353 sunos4*) 17354 version_type=sunos 17355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17356 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17357 shlibpath_var=LD_LIBRARY_PATH 17358 shlibpath_overrides_runpath=yes 17359 if test "$with_gnu_ld" = yes; then 17360 need_lib_prefix=no 17361 fi 17362 need_version=yes 17363 ;; 17364 17365 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17366 version_type=linux 17367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17368 soname_spec='${libname}${release}${shared_ext}$major' 17369 shlibpath_var=LD_LIBRARY_PATH 17370 case $host_vendor in 17371 sni) 17372 shlibpath_overrides_runpath=no 17373 need_lib_prefix=no 17374 export_dynamic_flag_spec='${wl}-Blargedynsym' 17375 runpath_var=LD_RUN_PATH 17376 ;; 17377 siemens) 17378 need_lib_prefix=no 17379 ;; 17380 motorola) 17381 need_lib_prefix=no 17382 need_version=no 17383 shlibpath_overrides_runpath=no 17384 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17385 ;; 17386 esac 17387 ;; 17388 17389 sysv4*MP*) 17390 if test -d /usr/nec ;then 17391 version_type=linux 17392 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17393 soname_spec='$libname${shared_ext}.$major' 17394 shlibpath_var=LD_LIBRARY_PATH 17395 fi 17396 ;; 17397 17398 uts4*) 17399 version_type=linux 17400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17401 soname_spec='${libname}${release}${shared_ext}$major' 17402 shlibpath_var=LD_LIBRARY_PATH 17403 ;; 17404 17405 *) 17406 dynamic_linker=no 17407 ;; 17408 esac 17409 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17410 echo "${ECHO_T}$dynamic_linker" >&6 17411 test "$dynamic_linker" = no && can_build_shared=no 17412 17413 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17414 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 17415 hardcode_action_GCJ= 17416 if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 17417 test -n "$runpath_var GCJ" || \ 17418 test "X$hardcode_automatic_GCJ"="Xyes" ; then 17419 17420 # We can hardcode non-existant directories. 17421 if test "$hardcode_direct_GCJ" != no && 17422 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17423 # have to relink, otherwise we might link with an installed library 17424 # when we should be linking with a yet-to-be-installed one 17425 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 17426 test "$hardcode_minus_L_GCJ" != no; then 17427 # Linking always hardcodes the temporary library directory. 17428 hardcode_action_GCJ=relink 17429 else 17430 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17431 hardcode_action_GCJ=immediate 17432 fi 17433 else 17434 # We cannot hardcode anything, or else we can only hardcode existing 17435 # directories. 17436 hardcode_action_GCJ=unsupported 17437 fi 17438 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 17439 echo "${ECHO_T}$hardcode_action_GCJ" >&6 17440 17441 if test "$hardcode_action_GCJ" = relink; then 17442 # Fast installation is not supported 17443 enable_fast_install=no 17444 elif test "$shlibpath_overrides_runpath" = yes || 17445 test "$enable_shared" = no; then 17446 # Fast installation is not necessary 17447 enable_fast_install=needless 17448 fi 17449 17450 striplib= 17451 old_striplib= 17452 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 17453 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 17454 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 17455 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 17456 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 17457 echo "$as_me:$LINENO: result: yes" >&5 17458 echo "${ECHO_T}yes" >&6 17459 else 17460 # FIXME - insert some real tests, host_os isn't really good enough 17461 case $host_os in 17462 darwin*) 17463 if test -n "$STRIP" ; then 17464 striplib="$STRIP -x" 17465 echo "$as_me:$LINENO: result: yes" >&5 17466 echo "${ECHO_T}yes" >&6 17467 else 17468 echo "$as_me:$LINENO: result: no" >&5 17469 echo "${ECHO_T}no" >&6 17470 fi 17471 ;; 17472 *) 17473 echo "$as_me:$LINENO: result: no" >&5 17474 echo "${ECHO_T}no" >&6 17475 ;; 17476 esac 17477 fi 17478 17479 if test "x$enable_dlopen" != xyes; then 17480 enable_dlopen=unknown 17481 enable_dlopen_self=unknown 17482 enable_dlopen_self_static=unknown 17483 else 17484 lt_cv_dlopen=no 17485 lt_cv_dlopen_libs= 17486 17487 case $host_os in 17488 beos*) 17489 lt_cv_dlopen="load_add_on" 17490 lt_cv_dlopen_libs= 17491 lt_cv_dlopen_self=yes 17492 ;; 17493 17494 mingw* | pw32*) 17495 lt_cv_dlopen="LoadLibrary" 17496 lt_cv_dlopen_libs= 17497 ;; 17498 17499 cygwin*) 17500 lt_cv_dlopen="dlopen" 17501 lt_cv_dlopen_libs= 17502 ;; 17503 17504 darwin*) 17505 # if libdl is installed we need to link against it 17506 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 17507 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 17508 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 17509 echo $ECHO_N "(cached) $ECHO_C" >&6 17510 else 17511 ac_check_lib_save_LIBS=$LIBS 17512 LIBS="-ldl $LIBS" 17513 cat >conftest.$ac_ext <<_ACEOF 17514 /* confdefs.h. */ 17515 _ACEOF 17516 cat confdefs.h >>conftest.$ac_ext 17517 cat >>conftest.$ac_ext <<_ACEOF 17518 /* end confdefs.h. */ 17519 17520 /* Override any gcc2 internal prototype to avoid an error. */ 17521 #ifdef __cplusplus 17522 extern "C" 17523 #endif 17524 /* We use char because int might match the return type of a gcc2 17525 builtin and then its argument prototype would still apply. */ 17526 char dlopen (); 17527 int 17528 main () 17529 { 17530 dlopen (); 17531 ; 17532 return 0; 17533 } 17534 _ACEOF 17535 rm -f conftest.$ac_objext conftest$ac_exeext 17536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17537 (eval $ac_link) 2>conftest.er1 17538 ac_status=$? 17539 grep -v '^ *+' conftest.er1 >conftest.err 17540 rm -f conftest.er1 17541 cat conftest.err >&5 17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17543 (exit $ac_status); } && 17544 { ac_try='test -z "$ac_c_werror_flag" 17545 || test ! -s conftest.err' 17546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17547 (eval $ac_try) 2>&5 17548 ac_status=$? 17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17550 (exit $ac_status); }; } && 17551 { ac_try='test -s conftest$ac_exeext' 17552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17553 (eval $ac_try) 2>&5 17554 ac_status=$? 17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17556 (exit $ac_status); }; }; then 17557 ac_cv_lib_dl_dlopen=yes 17558 else 17559 echo "$as_me: failed program was:" >&5 17560 sed 's/^/| /' conftest.$ac_ext >&5 17561 17562 ac_cv_lib_dl_dlopen=no 17563 fi 17564 rm -f conftest.err conftest.$ac_objext \ 17565 conftest$ac_exeext conftest.$ac_ext 17566 LIBS=$ac_check_lib_save_LIBS 17567 fi 17568 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 17569 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 17570 if test $ac_cv_lib_dl_dlopen = yes; then 17571 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17572 else 17573 17574 lt_cv_dlopen="dyld" 17575 lt_cv_dlopen_libs= 17576 lt_cv_dlopen_self=yes 17577 17578 fi 17579 17580 ;; 17581 17582 *) 17583 echo "$as_me:$LINENO: checking for shl_load" >&5 17584 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 17585 if test "${ac_cv_func_shl_load+set}" = set; then 17586 echo $ECHO_N "(cached) $ECHO_C" >&6 17587 else 17588 cat >conftest.$ac_ext <<_ACEOF 17589 /* confdefs.h. */ 17590 _ACEOF 17591 cat confdefs.h >>conftest.$ac_ext 17592 cat >>conftest.$ac_ext <<_ACEOF 17593 /* end confdefs.h. */ 17594 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 17595 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17596 #define shl_load innocuous_shl_load 17597 17598 /* System header to define __stub macros and hopefully few prototypes, 17599 which can conflict with char shl_load (); below. 17600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17601 <limits.h> exists even on freestanding compilers. */ 17602 17603 #ifdef __STDC__ 17604 # include <limits.h> 17605 #else 17606 # include <assert.h> 17607 #endif 17608 17609 #undef shl_load 17610 17611 /* Override any gcc2 internal prototype to avoid an error. */ 17612 #ifdef __cplusplus 17613 extern "C" 17614 { 17615 #endif 17616 /* We use char because int might match the return type of a gcc2 17617 builtin and then its argument prototype would still apply. */ 17618 char shl_load (); 17619 /* The GNU C library defines this for functions which it implements 17620 to always fail with ENOSYS. Some functions are actually named 17621 something starting with __ and the normal name is an alias. */ 17622 #if defined (__stub_shl_load) || defined (__stub___shl_load) 17623 choke me 17624 #else 17625 char (*f) () = shl_load; 17626 #endif 17627 #ifdef __cplusplus 17628 } 17629 #endif 17630 17631 int 17632 main () 17633 { 17634 return f != shl_load; 17635 ; 17636 return 0; 17637 } 17638 _ACEOF 17639 rm -f conftest.$ac_objext conftest$ac_exeext 17640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17641 (eval $ac_link) 2>conftest.er1 17642 ac_status=$? 17643 grep -v '^ *+' conftest.er1 >conftest.err 17644 rm -f conftest.er1 17645 cat conftest.err >&5 17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17647 (exit $ac_status); } && 17648 { ac_try='test -z "$ac_c_werror_flag" 17649 || test ! -s conftest.err' 17650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17651 (eval $ac_try) 2>&5 17652 ac_status=$? 17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17654 (exit $ac_status); }; } && 17655 { ac_try='test -s conftest$ac_exeext' 17656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17657 (eval $ac_try) 2>&5 17658 ac_status=$? 17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17660 (exit $ac_status); }; }; then 17661 ac_cv_func_shl_load=yes 17662 else 17663 echo "$as_me: failed program was:" >&5 17664 sed 's/^/| /' conftest.$ac_ext >&5 17665 17666 ac_cv_func_shl_load=no 17667 fi 17668 rm -f conftest.err conftest.$ac_objext \ 17669 conftest$ac_exeext conftest.$ac_ext 17670 fi 17671 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 17672 echo "${ECHO_T}$ac_cv_func_shl_load" >&6 17673 if test $ac_cv_func_shl_load = yes; then 17674 lt_cv_dlopen="shl_load" 17675 else 17676 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 17677 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 17678 if test "${ac_cv_lib_dld_shl_load+set}" = set; then 17679 echo $ECHO_N "(cached) $ECHO_C" >&6 17680 else 17681 ac_check_lib_save_LIBS=$LIBS 17682 LIBS="-ldld $LIBS" 17683 cat >conftest.$ac_ext <<_ACEOF 17684 /* confdefs.h. */ 17685 _ACEOF 17686 cat confdefs.h >>conftest.$ac_ext 17687 cat >>conftest.$ac_ext <<_ACEOF 17688 /* end confdefs.h. */ 17689 17690 /* Override any gcc2 internal prototype to avoid an error. */ 17691 #ifdef __cplusplus 17692 extern "C" 17693 #endif 17694 /* We use char because int might match the return type of a gcc2 17695 builtin and then its argument prototype would still apply. */ 17696 char shl_load (); 17697 int 17698 main () 17699 { 17700 shl_load (); 17701 ; 17702 return 0; 17703 } 17704 _ACEOF 17705 rm -f conftest.$ac_objext conftest$ac_exeext 17706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17707 (eval $ac_link) 2>conftest.er1 17708 ac_status=$? 17709 grep -v '^ *+' conftest.er1 >conftest.err 17710 rm -f conftest.er1 17711 cat conftest.err >&5 17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17713 (exit $ac_status); } && 17714 { ac_try='test -z "$ac_c_werror_flag" 17715 || test ! -s conftest.err' 17716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17717 (eval $ac_try) 2>&5 17718 ac_status=$? 17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17720 (exit $ac_status); }; } && 17721 { ac_try='test -s conftest$ac_exeext' 17722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17723 (eval $ac_try) 2>&5 17724 ac_status=$? 17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17726 (exit $ac_status); }; }; then 17727 ac_cv_lib_dld_shl_load=yes 17728 else 17729 echo "$as_me: failed program was:" >&5 17730 sed 's/^/| /' conftest.$ac_ext >&5 17731 17732 ac_cv_lib_dld_shl_load=no 17733 fi 17734 rm -f conftest.err conftest.$ac_objext \ 17735 conftest$ac_exeext conftest.$ac_ext 17736 LIBS=$ac_check_lib_save_LIBS 17737 fi 17738 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 17739 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 17740 if test $ac_cv_lib_dld_shl_load = yes; then 17741 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 17742 else 17743 echo "$as_me:$LINENO: checking for dlopen" >&5 17744 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 17745 if test "${ac_cv_func_dlopen+set}" = set; then 17746 echo $ECHO_N "(cached) $ECHO_C" >&6 17747 else 17748 cat >conftest.$ac_ext <<_ACEOF 17749 /* confdefs.h. */ 17750 _ACEOF 17751 cat confdefs.h >>conftest.$ac_ext 17752 cat >>conftest.$ac_ext <<_ACEOF 17753 /* end confdefs.h. */ 17754 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 17755 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17756 #define dlopen innocuous_dlopen 17757 17758 /* System header to define __stub macros and hopefully few prototypes, 17759 which can conflict with char dlopen (); below. 17760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17761 <limits.h> exists even on freestanding compilers. */ 17762 17763 #ifdef __STDC__ 17764 # include <limits.h> 17765 #else 17766 # include <assert.h> 17767 #endif 17768 17769 #undef dlopen 17770 17771 /* Override any gcc2 internal prototype to avoid an error. */ 17772 #ifdef __cplusplus 17773 extern "C" 17774 { 17775 #endif 17776 /* We use char because int might match the return type of a gcc2 17777 builtin and then its argument prototype would still apply. */ 17778 char dlopen (); 17779 /* The GNU C library defines this for functions which it implements 17780 to always fail with ENOSYS. Some functions are actually named 17781 something starting with __ and the normal name is an alias. */ 17782 #if defined (__stub_dlopen) || defined (__stub___dlopen) 17783 choke me 17784 #else 17785 char (*f) () = dlopen; 17786 #endif 17787 #ifdef __cplusplus 17788 } 17789 #endif 17790 17791 int 17792 main () 17793 { 17794 return f != dlopen; 17795 ; 17796 return 0; 17797 } 17798 _ACEOF 17799 rm -f conftest.$ac_objext conftest$ac_exeext 17800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17801 (eval $ac_link) 2>conftest.er1 17802 ac_status=$? 17803 grep -v '^ *+' conftest.er1 >conftest.err 17804 rm -f conftest.er1 17805 cat conftest.err >&5 17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17807 (exit $ac_status); } && 17808 { ac_try='test -z "$ac_c_werror_flag" 17809 || test ! -s conftest.err' 17810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17811 (eval $ac_try) 2>&5 17812 ac_status=$? 17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17814 (exit $ac_status); }; } && 17815 { ac_try='test -s conftest$ac_exeext' 17816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17817 (eval $ac_try) 2>&5 17818 ac_status=$? 17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17820 (exit $ac_status); }; }; then 17821 ac_cv_func_dlopen=yes 17822 else 17823 echo "$as_me: failed program was:" >&5 17824 sed 's/^/| /' conftest.$ac_ext >&5 17825 17826 ac_cv_func_dlopen=no 17827 fi 17828 rm -f conftest.err conftest.$ac_objext \ 17829 conftest$ac_exeext conftest.$ac_ext 17830 fi 17831 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 17832 echo "${ECHO_T}$ac_cv_func_dlopen" >&6 17833 if test $ac_cv_func_dlopen = yes; then 17834 lt_cv_dlopen="dlopen" 17835 else 17836 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 17837 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 17838 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 17839 echo $ECHO_N "(cached) $ECHO_C" >&6 17840 else 17841 ac_check_lib_save_LIBS=$LIBS 17842 LIBS="-ldl $LIBS" 17843 cat >conftest.$ac_ext <<_ACEOF 17844 /* confdefs.h. */ 17845 _ACEOF 17846 cat confdefs.h >>conftest.$ac_ext 17847 cat >>conftest.$ac_ext <<_ACEOF 17848 /* end confdefs.h. */ 17849 17850 /* Override any gcc2 internal prototype to avoid an error. */ 17851 #ifdef __cplusplus 17852 extern "C" 17853 #endif 17854 /* We use char because int might match the return type of a gcc2 17855 builtin and then its argument prototype would still apply. */ 17856 char dlopen (); 17857 int 17858 main () 17859 { 17860 dlopen (); 17861 ; 17862 return 0; 17863 } 17864 _ACEOF 17865 rm -f conftest.$ac_objext conftest$ac_exeext 17866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17867 (eval $ac_link) 2>conftest.er1 17868 ac_status=$? 17869 grep -v '^ *+' conftest.er1 >conftest.err 17870 rm -f conftest.er1 17871 cat conftest.err >&5 17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17873 (exit $ac_status); } && 17874 { ac_try='test -z "$ac_c_werror_flag" 17875 || test ! -s conftest.err' 17876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17877 (eval $ac_try) 2>&5 17878 ac_status=$? 17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17880 (exit $ac_status); }; } && 17881 { ac_try='test -s conftest$ac_exeext' 17882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17883 (eval $ac_try) 2>&5 17884 ac_status=$? 17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17886 (exit $ac_status); }; }; then 17887 ac_cv_lib_dl_dlopen=yes 17888 else 17889 echo "$as_me: failed program was:" >&5 17890 sed 's/^/| /' conftest.$ac_ext >&5 17891 17892 ac_cv_lib_dl_dlopen=no 17893 fi 17894 rm -f conftest.err conftest.$ac_objext \ 17895 conftest$ac_exeext conftest.$ac_ext 17896 LIBS=$ac_check_lib_save_LIBS 17897 fi 17898 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 17899 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 17900 if test $ac_cv_lib_dl_dlopen = yes; then 17901 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17902 else 17903 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 17904 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 17905 if test "${ac_cv_lib_svld_dlopen+set}" = set; then 17906 echo $ECHO_N "(cached) $ECHO_C" >&6 17907 else 17908 ac_check_lib_save_LIBS=$LIBS 17909 LIBS="-lsvld $LIBS" 17910 cat >conftest.$ac_ext <<_ACEOF 17911 /* confdefs.h. */ 17912 _ACEOF 17913 cat confdefs.h >>conftest.$ac_ext 17914 cat >>conftest.$ac_ext <<_ACEOF 17915 /* end confdefs.h. */ 17916 17917 /* Override any gcc2 internal prototype to avoid an error. */ 17918 #ifdef __cplusplus 17919 extern "C" 17920 #endif 17921 /* We use char because int might match the return type of a gcc2 17922 builtin and then its argument prototype would still apply. */ 17923 char dlopen (); 17924 int 17925 main () 17926 { 17927 dlopen (); 17928 ; 17929 return 0; 17930 } 17931 _ACEOF 17932 rm -f conftest.$ac_objext conftest$ac_exeext 17933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17934 (eval $ac_link) 2>conftest.er1 17935 ac_status=$? 17936 grep -v '^ *+' conftest.er1 >conftest.err 17937 rm -f conftest.er1 17938 cat conftest.err >&5 17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17940 (exit $ac_status); } && 17941 { ac_try='test -z "$ac_c_werror_flag" 17942 || test ! -s conftest.err' 17943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17944 (eval $ac_try) 2>&5 17945 ac_status=$? 17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17947 (exit $ac_status); }; } && 17948 { ac_try='test -s conftest$ac_exeext' 17949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17950 (eval $ac_try) 2>&5 17951 ac_status=$? 17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17953 (exit $ac_status); }; }; then 17954 ac_cv_lib_svld_dlopen=yes 17955 else 17956 echo "$as_me: failed program was:" >&5 17957 sed 's/^/| /' conftest.$ac_ext >&5 17958 17959 ac_cv_lib_svld_dlopen=no 17960 fi 17961 rm -f conftest.err conftest.$ac_objext \ 17962 conftest$ac_exeext conftest.$ac_ext 17963 LIBS=$ac_check_lib_save_LIBS 17964 fi 17965 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 17966 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 17967 if test $ac_cv_lib_svld_dlopen = yes; then 17968 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 17969 else 17970 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 17971 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 17972 if test "${ac_cv_lib_dld_dld_link+set}" = set; then 17973 echo $ECHO_N "(cached) $ECHO_C" >&6 17974 else 17975 ac_check_lib_save_LIBS=$LIBS 17976 LIBS="-ldld $LIBS" 17977 cat >conftest.$ac_ext <<_ACEOF 17978 /* confdefs.h. */ 17979 _ACEOF 17980 cat confdefs.h >>conftest.$ac_ext 17981 cat >>conftest.$ac_ext <<_ACEOF 17982 /* end confdefs.h. */ 17983 17984 /* Override any gcc2 internal prototype to avoid an error. */ 17985 #ifdef __cplusplus 17986 extern "C" 17987 #endif 17988 /* We use char because int might match the return type of a gcc2 17989 builtin and then its argument prototype would still apply. */ 17990 char dld_link (); 17991 int 17992 main () 17993 { 17994 dld_link (); 17995 ; 17996 return 0; 17997 } 17998 _ACEOF 17999 rm -f conftest.$ac_objext conftest$ac_exeext 18000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18001 (eval $ac_link) 2>conftest.er1 18002 ac_status=$? 18003 grep -v '^ *+' conftest.er1 >conftest.err 18004 rm -f conftest.er1 18005 cat conftest.err >&5 18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18007 (exit $ac_status); } && 18008 { ac_try='test -z "$ac_c_werror_flag" 18009 || test ! -s conftest.err' 18010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18011 (eval $ac_try) 2>&5 18012 ac_status=$? 18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18014 (exit $ac_status); }; } && 18015 { ac_try='test -s conftest$ac_exeext' 18016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18017 (eval $ac_try) 2>&5 18018 ac_status=$? 18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18020 (exit $ac_status); }; }; then 18021 ac_cv_lib_dld_dld_link=yes 18022 else 18023 echo "$as_me: failed program was:" >&5 18024 sed 's/^/| /' conftest.$ac_ext >&5 18025 18026 ac_cv_lib_dld_dld_link=no 18027 fi 18028 rm -f conftest.err conftest.$ac_objext \ 18029 conftest$ac_exeext conftest.$ac_ext 18030 LIBS=$ac_check_lib_save_LIBS 18031 fi 18032 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 18033 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 18034 if test $ac_cv_lib_dld_dld_link = yes; then 18035 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 18036 fi 18037 18038 18039 fi 18040 18041 18042 fi 18043 18044 18045 fi 18046 18047 18048 fi 18049 18050 18051 fi 18052 18053 ;; 18054 esac 18055 18056 if test "x$lt_cv_dlopen" != xno; then 18057 enable_dlopen=yes 18058 else 18059 enable_dlopen=no 18060 fi 18061 18062 case $lt_cv_dlopen in 18063 dlopen) 18064 save_CPPFLAGS="$CPPFLAGS" 18065 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18066 18067 save_LDFLAGS="$LDFLAGS" 18068 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18069 18070 save_LIBS="$LIBS" 18071 LIBS="$lt_cv_dlopen_libs $LIBS" 18072 18073 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 18074 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 18075 if test "${lt_cv_dlopen_self+set}" = set; then 18076 echo $ECHO_N "(cached) $ECHO_C" >&6 18077 else 18078 if test "$cross_compiling" = yes; then : 18079 lt_cv_dlopen_self=cross 18080 else 18081 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18082 lt_status=$lt_dlunknown 18083 cat > conftest.$ac_ext <<EOF 18084 #line 18084 "configure" 18085 #include "confdefs.h" 18086 18087 #if HAVE_DLFCN_H 18088 #include <dlfcn.h> 18089 #endif 18090 18091 #include <stdio.h> 18092 18093 #ifdef RTLD_GLOBAL 18094 # define LT_DLGLOBAL RTLD_GLOBAL 18095 #else 18096 # ifdef DL_GLOBAL 18097 # define LT_DLGLOBAL DL_GLOBAL 18098 # else 18099 # define LT_DLGLOBAL 0 18100 # endif 18101 #endif 18102 18103 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18104 find out it does not work in some platform. */ 18105 #ifndef LT_DLLAZY_OR_NOW 18106 # ifdef RTLD_LAZY 18107 # define LT_DLLAZY_OR_NOW RTLD_LAZY 18108 # else 18109 # ifdef DL_LAZY 18110 # define LT_DLLAZY_OR_NOW DL_LAZY 18111 # else 18112 # ifdef RTLD_NOW 18113 # define LT_DLLAZY_OR_NOW RTLD_NOW 18114 # else 18115 # ifdef DL_NOW 18116 # define LT_DLLAZY_OR_NOW DL_NOW 18117 # else 18118 # define LT_DLLAZY_OR_NOW 0 18119 # endif 18120 # endif 18121 # endif 18122 # endif 18123 #endif 18124 18125 #ifdef __cplusplus 18126 extern "C" void exit (int); 18127 #endif 18128 18129 void fnord() { int i=42;} 18130 int main () 18131 { 18132 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18133 int status = $lt_dlunknown; 18134 18135 if (self) 18136 { 18137 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18138 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18139 /* dlclose (self); */ 18140 } 18141 18142 exit (status); 18143 } 18144 EOF 18145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18146 (eval $ac_link) 2>&5 18147 ac_status=$? 18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18149 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 18150 (./conftest; exit; ) 2>/dev/null 18151 lt_status=$? 18152 case x$lt_status in 18153 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18154 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18155 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 18156 esac 18157 else : 18158 # compilation failed 18159 lt_cv_dlopen_self=no 18160 fi 18161 fi 18162 rm -fr conftest* 18163 18164 18165 fi 18166 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 18167 echo "${ECHO_T}$lt_cv_dlopen_self" >&6 18168 18169 if test "x$lt_cv_dlopen_self" = xyes; then 18170 LDFLAGS="$LDFLAGS $link_static_flag" 18171 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 18172 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 18173 if test "${lt_cv_dlopen_self_static+set}" = set; then 18174 echo $ECHO_N "(cached) $ECHO_C" >&6 18175 else 18176 if test "$cross_compiling" = yes; then : 18177 lt_cv_dlopen_self_static=cross 18178 else 18179 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18180 lt_status=$lt_dlunknown 18181 cat > conftest.$ac_ext <<EOF 18182 #line 18182 "configure" 18183 #include "confdefs.h" 18184 18185 #if HAVE_DLFCN_H 18186 #include <dlfcn.h> 18187 #endif 18188 18189 #include <stdio.h> 18190 18191 #ifdef RTLD_GLOBAL 18192 # define LT_DLGLOBAL RTLD_GLOBAL 18193 #else 18194 # ifdef DL_GLOBAL 18195 # define LT_DLGLOBAL DL_GLOBAL 18196 # else 18197 # define LT_DLGLOBAL 0 18198 # endif 18199 #endif 18200 18201 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18202 find out it does not work in some platform. */ 18203 #ifndef LT_DLLAZY_OR_NOW 18204 # ifdef RTLD_LAZY 18205 # define LT_DLLAZY_OR_NOW RTLD_LAZY 18206 # else 18207 # ifdef DL_LAZY 18208 # define LT_DLLAZY_OR_NOW DL_LAZY 18209 # else 18210 # ifdef RTLD_NOW 18211 # define LT_DLLAZY_OR_NOW RTLD_NOW 18212 # else 18213 # ifdef DL_NOW 18214 # define LT_DLLAZY_OR_NOW DL_NOW 18215 # else 18216 # define LT_DLLAZY_OR_NOW 0 18217 # endif 18218 # endif 18219 # endif 18220 # endif 18221 #endif 18222 18223 #ifdef __cplusplus 18224 extern "C" void exit (int); 18225 #endif 18226 18227 void fnord() { int i=42;} 18228 int main () 18229 { 18230 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18231 int status = $lt_dlunknown; 18232 18233 if (self) 18234 { 18235 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18236 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18237 /* dlclose (self); */ 18238 } 18239 18240 exit (status); 18241 } 18242 EOF 18243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18244 (eval $ac_link) 2>&5 18245 ac_status=$? 18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18247 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 18248 (./conftest; exit; ) 2>/dev/null 18249 lt_status=$? 18250 case x$lt_status in 18251 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18252 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18253 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 18254 esac 18255 else : 18256 # compilation failed 18257 lt_cv_dlopen_self_static=no 18258 fi 18259 fi 18260 rm -fr conftest* 18261 18262 18263 fi 18264 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 18265 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 18266 fi 18267 18268 CPPFLAGS="$save_CPPFLAGS" 18269 LDFLAGS="$save_LDFLAGS" 18270 LIBS="$save_LIBS" 18271 ;; 18272 esac 18273 18274 case $lt_cv_dlopen_self in 18275 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18276 *) enable_dlopen_self=unknown ;; 18277 esac 18278 18279 case $lt_cv_dlopen_self_static in 18280 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18281 *) enable_dlopen_self_static=unknown ;; 18282 esac 18283 fi 18284 18285 18286 # The else clause should only fire when bootstrapping the 18287 # libtool distribution, otherwise you forgot to ship ltmain.sh 18288 # with your package, and you will get complaints that there are 18289 # no rules to generate ltmain.sh. 18290 if test -f "$ltmain"; then 18291 # See if we are running on zsh, and set the options which allow our commands through 18292 # without removal of \ escapes. 18293 if test -n "${ZSH_VERSION+set}" ; then 18294 setopt NO_GLOB_SUBST 18295 fi 18296 # Now quote all the things that may contain metacharacters while being 18297 # careful not to overquote the AC_SUBSTed values. We take copies of the 18298 # variables and quote the copies for generation of the libtool script. 18299 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 18300 SED SHELL STRIP \ 18301 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18302 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18303 deplibs_check_method reload_flag reload_cmds need_locks \ 18304 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18305 lt_cv_sys_global_symbol_to_c_name_address \ 18306 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18307 old_postinstall_cmds old_postuninstall_cmds \ 18308 compiler_GCJ \ 18309 CC_GCJ \ 18310 LD_GCJ \ 18311 lt_prog_compiler_wl_GCJ \ 18312 lt_prog_compiler_pic_GCJ \ 18313 lt_prog_compiler_static_GCJ \ 18314 lt_prog_compiler_no_builtin_flag_GCJ \ 18315 export_dynamic_flag_spec_GCJ \ 18316 thread_safe_flag_spec_GCJ \ 18317 whole_archive_flag_spec_GCJ \ 18318 enable_shared_with_static_runtimes_GCJ \ 18319 old_archive_cmds_GCJ \ 18320 old_archive_from_new_cmds_GCJ \ 18321 predep_objects_GCJ \ 18322 postdep_objects_GCJ \ 18323 predeps_GCJ \ 18324 postdeps_GCJ \ 18325 compiler_lib_search_path_GCJ \ 18326 archive_cmds_GCJ \ 18327 archive_expsym_cmds_GCJ \ 18328 postinstall_cmds_GCJ \ 18329 postuninstall_cmds_GCJ \ 18330 old_archive_from_expsyms_cmds_GCJ \ 18331 allow_undefined_flag_GCJ \ 18332 no_undefined_flag_GCJ \ 18333 export_symbols_cmds_GCJ \ 18334 hardcode_libdir_flag_spec_GCJ \ 18335 hardcode_libdir_flag_spec_ld_GCJ \ 18336 hardcode_libdir_separator_GCJ \ 18337 hardcode_automatic_GCJ \ 18338 module_cmds_GCJ \ 18339 module_expsym_cmds_GCJ \ 18340 lt_cv_prog_compiler_c_o_GCJ \ 18341 exclude_expsyms_GCJ \ 18342 include_expsyms_GCJ; do 18343 18344 case $var in 18345 old_archive_cmds_GCJ | \ 18346 old_archive_from_new_cmds_GCJ | \ 18347 archive_cmds_GCJ | \ 18348 archive_expsym_cmds_GCJ | \ 18349 module_cmds_GCJ | \ 18350 module_expsym_cmds_GCJ | \ 18351 old_archive_from_expsyms_cmds_GCJ | \ 18352 export_symbols_cmds_GCJ | \ 18353 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18354 postinstall_cmds | postuninstall_cmds | \ 18355 old_postinstall_cmds | old_postuninstall_cmds | \ 18356 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18357 # Double-quote double-evaled strings. 18358 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18359 ;; 18360 *) 18361 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18362 ;; 18363 esac 18364 done 18365 18366 case $lt_echo in 18367 *'\$0 --fallback-echo"') 18368 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18369 ;; 18370 esac 18371 18372 cfgfile="$ofile" 18373 18374 cat <<__EOF__ >> "$cfgfile" 18375 # ### BEGIN LIBTOOL TAG CONFIG: $tagname 18376 18377 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18378 18379 # Shell to use when invoking shell scripts. 18380 SHELL=$lt_SHELL 18381 18382 # Whether or not to build shared libraries. 18383 build_libtool_libs=$enable_shared 18384 18385 # Whether or not to build static libraries. 18386 build_old_libs=$enable_static 18387 18388 # Whether or not to add -lc for building shared libraries. 18389 build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18390 18391 # Whether or not to disallow shared libs when runtime libs are static 18392 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18393 18394 # Whether or not to optimize for fast installation. 18395 fast_install=$enable_fast_install 18396 18397 # The host system. 18398 host_alias=$host_alias 18399 host=$host 18400 18401 # An echo program that does not interpret backslashes. 18402 echo=$lt_echo 18403 18404 # The archiver. 18405 AR=$lt_AR 18406 AR_FLAGS=$lt_AR_FLAGS 18407 18408 # A C compiler. 18409 LTCC=$lt_LTCC 18410 18411 # A language-specific compiler. 18412 CC=$lt_compiler_GCJ 18413 18414 # Is the compiler the GNU C compiler? 18415 with_gcc=$GCC_GCJ 18416 18417 # An ERE matcher. 18418 EGREP=$lt_EGREP 18419 18420 # The linker used to build libraries. 18421 LD=$lt_LD_GCJ 18422 18423 # Whether we need hard or soft links. 18424 LN_S=$lt_LN_S 18425 18426 # A BSD-compatible nm program. 18427 NM=$lt_NM 18428 18429 # A symbol stripping program 18430 STRIP=$lt_STRIP 18431 18432 # Used to examine libraries when file_magic_cmd begins "file" 18433 MAGIC_CMD=$MAGIC_CMD 18434 18435 # Used on cygwin: DLL creation program. 18436 DLLTOOL="$DLLTOOL" 18437 18438 # Used on cygwin: object dumper. 18439 OBJDUMP="$OBJDUMP" 18440 18441 # Used on cygwin: assembler. 18442 AS="$AS" 18443 18444 # The name of the directory that contains temporary libtool files. 18445 objdir=$objdir 18446 18447 # How to create reloadable object files. 18448 reload_flag=$lt_reload_flag 18449 reload_cmds=$lt_reload_cmds 18450 18451 # How to pass a linker flag through the compiler. 18452 wl=$lt_lt_prog_compiler_wl_GCJ 18453 18454 # Object file suffix (normally "o"). 18455 objext="$ac_objext" 18456 18457 # Old archive suffix (normally "a"). 18458 libext="$libext" 18459 18460 # Shared library suffix (normally ".so"). 18461 shrext_cmds='$shrext_cmds' 18462 18463 # Executable file suffix (normally ""). 18464 exeext="$exeext" 18465 18466 # Additional compiler flags for building library objects. 18467 pic_flag=$lt_lt_prog_compiler_pic_GCJ 18468 pic_mode=$pic_mode 18469 18470 # What is the maximum length of a command? 18471 max_cmd_len=$lt_cv_sys_max_cmd_len 18472 18473 # Does compiler simultaneously support -c and -o options? 18474 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18475 18476 # Must we lock files when doing compilation ? 18477 need_locks=$lt_need_locks 18478 18479 # Do we need the lib prefix for modules? 18480 need_lib_prefix=$need_lib_prefix 18481 18482 # Do we need a version for libraries? 18483 need_version=$need_version 18484 18485 # Whether dlopen is supported. 18486 dlopen_support=$enable_dlopen 18487 18488 # Whether dlopen of programs is supported. 18489 dlopen_self=$enable_dlopen_self 18490 18491 # Whether dlopen of statically linked programs is supported. 18492 dlopen_self_static=$enable_dlopen_self_static 18493 18494 # Compiler flag to prevent dynamic linking. 18495 link_static_flag=$lt_lt_prog_compiler_static_GCJ 18496 18497 # Compiler flag to turn off builtin functions. 18498 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18499 18500 # Compiler flag to allow reflexive dlopens. 18501 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18502 18503 # Compiler flag to generate shared objects directly from archives. 18504 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18505 18506 # Compiler flag to generate thread-safe objects. 18507 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18508 18509 # Library versioning type. 18510 version_type=$version_type 18511 18512 # Format of library name prefix. 18513 libname_spec=$lt_libname_spec 18514 18515 # List of archive names. First name is the real one, the rest are links. 18516 # The last name is the one that the linker finds with -lNAME. 18517 library_names_spec=$lt_library_names_spec 18518 18519 # The coded name of the library, if different from the real name. 18520 soname_spec=$lt_soname_spec 18521 18522 # Commands used to build and install an old-style archive. 18523 RANLIB=$lt_RANLIB 18524 old_archive_cmds=$lt_old_archive_cmds_GCJ 18525 old_postinstall_cmds=$lt_old_postinstall_cmds 18526 old_postuninstall_cmds=$lt_old_postuninstall_cmds 18527 18528 # Create an old-style archive from a shared archive. 18529 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18530 18531 # Create a temporary old-style archive to link instead of a shared archive. 18532 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18533 18534 # Commands used to build and install a shared archive. 18535 archive_cmds=$lt_archive_cmds_GCJ 18536 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18537 postinstall_cmds=$lt_postinstall_cmds 18538 postuninstall_cmds=$lt_postuninstall_cmds 18539 18540 # Commands used to build a loadable module (assumed same as above if empty) 18541 module_cmds=$lt_module_cmds_GCJ 18542 module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18543 18544 # Commands to strip libraries. 18545 old_striplib=$lt_old_striplib 18546 striplib=$lt_striplib 18547 18548 # Dependencies to place before the objects being linked to create a 18549 # shared library. 18550 predep_objects=$lt_predep_objects_GCJ 18551 18552 # Dependencies to place after the objects being linked to create a 18553 # shared library. 18554 postdep_objects=$lt_postdep_objects_GCJ 18555 18556 # Dependencies to place before the objects being linked to create a 18557 # shared library. 18558 predeps=$lt_predeps_GCJ 18559 18560 # Dependencies to place after the objects being linked to create a 18561 # shared library. 18562 postdeps=$lt_postdeps_GCJ 18563 18564 # The library search path used internally by the compiler when linking 18565 # a shared library. 18566 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18567 18568 # Method to check whether dependent libraries are shared objects. 18569 deplibs_check_method=$lt_deplibs_check_method 18570 18571 # Command to use when deplibs_check_method == file_magic. 18572 file_magic_cmd=$lt_file_magic_cmd 18573 18574 # Flag that allows shared libraries with undefined symbols to be built. 18575 allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18576 18577 # Flag that forces no undefined symbols. 18578 no_undefined_flag=$lt_no_undefined_flag_GCJ 18579 18580 # Commands used to finish a libtool library installation in a directory. 18581 finish_cmds=$lt_finish_cmds 18582 18583 # Same as above, but a single script fragment to be evaled but not shown. 18584 finish_eval=$lt_finish_eval 18585 18586 # Take the output of nm and produce a listing of raw symbols and C names. 18587 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18588 18589 # Transform the output of nm in a proper C declaration 18590 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18591 18592 # Transform the output of nm in a C name address pair 18593 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18594 18595 # This is the shared library runtime path variable. 18596 runpath_var=$runpath_var 18597 18598 # This is the shared library path variable. 18599 shlibpath_var=$shlibpath_var 18600 18601 # Is shlibpath searched before the hard-coded library search path? 18602 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18603 18604 # How to hardcode a shared library path into an executable. 18605 hardcode_action=$hardcode_action_GCJ 18606 18607 # Whether we should hardcode library paths into libraries. 18608 hardcode_into_libs=$hardcode_into_libs 18609 18610 # Flag to hardcode \$libdir into a binary during linking. 18611 # This must work even if \$libdir does not exist. 18612 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18613 18614 # If ld is used when linking, flag to hardcode \$libdir into 18615 # a binary during linking. This must work even if \$libdir does 18616 # not exist. 18617 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18618 18619 # Whether we need a single -rpath flag with a separated argument. 18620 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18621 18622 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18623 # resulting binary. 18624 hardcode_direct=$hardcode_direct_GCJ 18625 18626 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18627 # resulting binary. 18628 hardcode_minus_L=$hardcode_minus_L_GCJ 18629 18630 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18631 # the resulting binary. 18632 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18633 18634 # Set to yes if building a shared library automatically hardcodes DIR into the library 18635 # and all subsequent libraries and executables linked against it. 18636 hardcode_automatic=$hardcode_automatic_GCJ 18637 18638 # Variables whose values should be saved in libtool wrapper scripts and 18639 # restored at relink time. 18640 variables_saved_for_relink="$variables_saved_for_relink" 18641 18642 # Whether libtool must link a program against all its dependency libraries. 18643 link_all_deplibs=$link_all_deplibs_GCJ 18644 18645 # Compile-time system search path for libraries 18646 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18647 18648 # Run-time system search path for libraries 18649 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18650 18651 # Fix the shell variable \$srcfile for the compiler. 18652 fix_srcfile_path="$fix_srcfile_path_GCJ" 18653 18654 # Set to yes if exported symbols are required. 18655 always_export_symbols=$always_export_symbols_GCJ 18656 18657 # The commands to list exported symbols. 18658 export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18659 18660 # The commands to extract the exported symbol list from a shared archive. 18661 extract_expsyms_cmds=$lt_extract_expsyms_cmds 18662 18663 # Symbols that should not be listed in the preloaded symbols. 18664 exclude_expsyms=$lt_exclude_expsyms_GCJ 18665 18666 # Symbols that must always be exported. 18667 include_expsyms=$lt_include_expsyms_GCJ 18668 18669 # ### END LIBTOOL TAG CONFIG: $tagname 18670 18671 __EOF__ 18672 18673 18674 else 18675 # If there is no Makefile yet, we rely on a make rule to execute 18676 # `config.status --recheck' to rerun these tests and create the 18677 # libtool script then. 18678 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18679 if test -f "$ltmain_in"; then 18680 test -f Makefile && make "$ltmain" 18681 fi 18682 fi 18683 18684 18685 ac_ext=c 18686 ac_cpp='$CPP $CPPFLAGS' 18687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18689 ac_compiler_gnu=$ac_cv_c_compiler_gnu 18690 18691 CC="$lt_save_CC" 18692 18693 else 18694 tagname="" 18695 fi 18696 ;; 18697 18698 RC) 18699 18700 18701 18702 # Source file extension for RC test sources. 18703 ac_ext=rc 18704 18705 # Object file extension for compiled RC test sources. 18706 objext=o 18707 objext_RC=$objext 18708 18709 # Code to be used in simple compile tests 18710 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18711 18712 # Code to be used in simple link tests 18713 lt_simple_link_test_code="$lt_simple_compile_test_code" 18714 18715 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 18716 18717 # If no C compiler was specified, use CC. 18718 LTCC=${LTCC-"$CC"} 18719 18720 # Allow CC to be a program name with arguments. 18721 compiler=$CC 18722 18723 18724 # Allow CC to be a program name with arguments. 18725 lt_save_CC="$CC" 18726 CC=${RC-"windres"} 18727 compiler=$CC 18728 compiler_RC=$CC 18729 lt_cv_prog_compiler_c_o_RC=yes 18730 18731 # The else clause should only fire when bootstrapping the 18732 # libtool distribution, otherwise you forgot to ship ltmain.sh 18733 # with your package, and you will get complaints that there are 18734 # no rules to generate ltmain.sh. 18735 if test -f "$ltmain"; then 18736 # See if we are running on zsh, and set the options which allow our commands through 18737 # without removal of \ escapes. 18738 if test -n "${ZSH_VERSION+set}" ; then 18739 setopt NO_GLOB_SUBST 18740 fi 18741 # Now quote all the things that may contain metacharacters while being 18742 # careful not to overquote the AC_SUBSTed values. We take copies of the 18743 # variables and quote the copies for generation of the libtool script. 18744 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 18745 SED SHELL STRIP \ 18746 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18747 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18748 deplibs_check_method reload_flag reload_cmds need_locks \ 18749 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18750 lt_cv_sys_global_symbol_to_c_name_address \ 18751 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18752 old_postinstall_cmds old_postuninstall_cmds \ 18753 compiler_RC \ 18754 CC_RC \ 18755 LD_RC \ 18756 lt_prog_compiler_wl_RC \ 18757 lt_prog_compiler_pic_RC \ 18758 lt_prog_compiler_static_RC \ 18759 lt_prog_compiler_no_builtin_flag_RC \ 18760 export_dynamic_flag_spec_RC \ 18761 thread_safe_flag_spec_RC \ 18762 whole_archive_flag_spec_RC \ 18763 enable_shared_with_static_runtimes_RC \ 18764 old_archive_cmds_RC \ 18765 old_archive_from_new_cmds_RC \ 18766 predep_objects_RC \ 18767 postdep_objects_RC \ 18768 predeps_RC \ 18769 postdeps_RC \ 18770 compiler_lib_search_path_RC \ 18771 archive_cmds_RC \ 18772 archive_expsym_cmds_RC \ 18773 postinstall_cmds_RC \ 18774 postuninstall_cmds_RC \ 18775 old_archive_from_expsyms_cmds_RC \ 18776 allow_undefined_flag_RC \ 18777 no_undefined_flag_RC \ 18778 export_symbols_cmds_RC \ 18779 hardcode_libdir_flag_spec_RC \ 18780 hardcode_libdir_flag_spec_ld_RC \ 18781 hardcode_libdir_separator_RC \ 18782 hardcode_automatic_RC \ 18783 module_cmds_RC \ 18784 module_expsym_cmds_RC \ 18785 lt_cv_prog_compiler_c_o_RC \ 18786 exclude_expsyms_RC \ 18787 include_expsyms_RC; do 18788 18789 case $var in 18790 old_archive_cmds_RC | \ 18791 old_archive_from_new_cmds_RC | \ 18792 archive_cmds_RC | \ 18793 archive_expsym_cmds_RC | \ 18794 module_cmds_RC | \ 18795 module_expsym_cmds_RC | \ 18796 old_archive_from_expsyms_cmds_RC | \ 18797 export_symbols_cmds_RC | \ 18798 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18799 postinstall_cmds | postuninstall_cmds | \ 18800 old_postinstall_cmds | old_postuninstall_cmds | \ 18801 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18802 # Double-quote double-evaled strings. 18803 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18804 ;; 18805 *) 18806 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18807 ;; 18808 esac 18809 done 18810 18811 case $lt_echo in 18812 *'\$0 --fallback-echo"') 18813 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18814 ;; 18815 esac 18816 18817 cfgfile="$ofile" 18818 18819 cat <<__EOF__ >> "$cfgfile" 18820 # ### BEGIN LIBTOOL TAG CONFIG: $tagname 18821 18822 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18823 18824 # Shell to use when invoking shell scripts. 18825 SHELL=$lt_SHELL 18826 18827 # Whether or not to build shared libraries. 18828 build_libtool_libs=$enable_shared 18829 18830 # Whether or not to build static libraries. 18831 build_old_libs=$enable_static 18832 18833 # Whether or not to add -lc for building shared libraries. 18834 build_libtool_need_lc=$archive_cmds_need_lc_RC 18835 18836 # Whether or not to disallow shared libs when runtime libs are static 18837 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18838 18839 # Whether or not to optimize for fast installation. 18840 fast_install=$enable_fast_install 18841 18842 # The host system. 18843 host_alias=$host_alias 18844 host=$host 18845 18846 # An echo program that does not interpret backslashes. 18847 echo=$lt_echo 18848 18849 # The archiver. 18850 AR=$lt_AR 18851 AR_FLAGS=$lt_AR_FLAGS 18852 18853 # A C compiler. 18854 LTCC=$lt_LTCC 18855 18856 # A language-specific compiler. 18857 CC=$lt_compiler_RC 18858 18859 # Is the compiler the GNU C compiler? 18860 with_gcc=$GCC_RC 18861 18862 # An ERE matcher. 18863 EGREP=$lt_EGREP 18864 18865 # The linker used to build libraries. 18866 LD=$lt_LD_RC 18867 18868 # Whether we need hard or soft links. 18869 LN_S=$lt_LN_S 18870 18871 # A BSD-compatible nm program. 18872 NM=$lt_NM 18873 18874 # A symbol stripping program 18875 STRIP=$lt_STRIP 18876 18877 # Used to examine libraries when file_magic_cmd begins "file" 18878 MAGIC_CMD=$MAGIC_CMD 18879 18880 # Used on cygwin: DLL creation program. 18881 DLLTOOL="$DLLTOOL" 18882 18883 # Used on cygwin: object dumper. 18884 OBJDUMP="$OBJDUMP" 18885 18886 # Used on cygwin: assembler. 18887 AS="$AS" 18888 18889 # The name of the directory that contains temporary libtool files. 18890 objdir=$objdir 18891 18892 # How to create reloadable object files. 18893 reload_flag=$lt_reload_flag 18894 reload_cmds=$lt_reload_cmds 18895 18896 # How to pass a linker flag through the compiler. 18897 wl=$lt_lt_prog_compiler_wl_RC 18898 18899 # Object file suffix (normally "o"). 18900 objext="$ac_objext" 18901 18902 # Old archive suffix (normally "a"). 18903 libext="$libext" 18904 18905 # Shared library suffix (normally ".so"). 18906 shrext_cmds='$shrext_cmds' 18907 18908 # Executable file suffix (normally ""). 18909 exeext="$exeext" 18910 18911 # Additional compiler flags for building library objects. 18912 pic_flag=$lt_lt_prog_compiler_pic_RC 18913 pic_mode=$pic_mode 18914 18915 # What is the maximum length of a command? 18916 max_cmd_len=$lt_cv_sys_max_cmd_len 18917 18918 # Does compiler simultaneously support -c and -o options? 18919 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18920 18921 # Must we lock files when doing compilation ? 18922 need_locks=$lt_need_locks 18923 18924 # Do we need the lib prefix for modules? 18925 need_lib_prefix=$need_lib_prefix 18926 18927 # Do we need a version for libraries? 18928 need_version=$need_version 18929 18930 # Whether dlopen is supported. 18931 dlopen_support=$enable_dlopen 18932 18933 # Whether dlopen of programs is supported. 18934 dlopen_self=$enable_dlopen_self 18935 18936 # Whether dlopen of statically linked programs is supported. 18937 dlopen_self_static=$enable_dlopen_self_static 18938 18939 # Compiler flag to prevent dynamic linking. 18940 link_static_flag=$lt_lt_prog_compiler_static_RC 18941 18942 # Compiler flag to turn off builtin functions. 18943 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18944 18945 # Compiler flag to allow reflexive dlopens. 18946 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18947 18948 # Compiler flag to generate shared objects directly from archives. 18949 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18950 18951 # Compiler flag to generate thread-safe objects. 18952 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18953 18954 # Library versioning type. 18955 version_type=$version_type 18956 18957 # Format of library name prefix. 18958 libname_spec=$lt_libname_spec 18959 18960 # List of archive names. First name is the real one, the rest are links. 18961 # The last name is the one that the linker finds with -lNAME. 18962 library_names_spec=$lt_library_names_spec 18963 18964 # The coded name of the library, if different from the real name. 18965 soname_spec=$lt_soname_spec 18966 18967 # Commands used to build and install an old-style archive. 18968 RANLIB=$lt_RANLIB 18969 old_archive_cmds=$lt_old_archive_cmds_RC 18970 old_postinstall_cmds=$lt_old_postinstall_cmds 18971 old_postuninstall_cmds=$lt_old_postuninstall_cmds 18972 18973 # Create an old-style archive from a shared archive. 18974 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 18975 18976 # Create a temporary old-style archive to link instead of a shared archive. 18977 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 18978 18979 # Commands used to build and install a shared archive. 18980 archive_cmds=$lt_archive_cmds_RC 18981 archive_expsym_cmds=$lt_archive_expsym_cmds_RC 18982 postinstall_cmds=$lt_postinstall_cmds 18983 postuninstall_cmds=$lt_postuninstall_cmds 18984 18985 # Commands used to build a loadable module (assumed same as above if empty) 18986 module_cmds=$lt_module_cmds_RC 18987 module_expsym_cmds=$lt_module_expsym_cmds_RC 18988 18989 # Commands to strip libraries. 18990 old_striplib=$lt_old_striplib 18991 striplib=$lt_striplib 18992 18993 # Dependencies to place before the objects being linked to create a 18994 # shared library. 18995 predep_objects=$lt_predep_objects_RC 18996 18997 # Dependencies to place after the objects being linked to create a 18998 # shared library. 18999 postdep_objects=$lt_postdep_objects_RC 19000 19001 # Dependencies to place before the objects being linked to create a 19002 # shared library. 19003 predeps=$lt_predeps_RC 19004 19005 # Dependencies to place after the objects being linked to create a 19006 # shared library. 19007 postdeps=$lt_postdeps_RC 19008 19009 # The library search path used internally by the compiler when linking 19010 # a shared library. 19011 compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19012 19013 # Method to check whether dependent libraries are shared objects. 19014 deplibs_check_method=$lt_deplibs_check_method 19015 19016 # Command to use when deplibs_check_method == file_magic. 19017 file_magic_cmd=$lt_file_magic_cmd 19018 19019 # Flag that allows shared libraries with undefined symbols to be built. 19020 allow_undefined_flag=$lt_allow_undefined_flag_RC 19021 19022 # Flag that forces no undefined symbols. 19023 no_undefined_flag=$lt_no_undefined_flag_RC 19024 19025 # Commands used to finish a libtool library installation in a directory. 19026 finish_cmds=$lt_finish_cmds 19027 19028 # Same as above, but a single script fragment to be evaled but not shown. 19029 finish_eval=$lt_finish_eval 19030 19031 # Take the output of nm and produce a listing of raw symbols and C names. 19032 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19033 19034 # Transform the output of nm in a proper C declaration 19035 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19036 19037 # Transform the output of nm in a C name address pair 19038 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19039 19040 # This is the shared library runtime path variable. 19041 runpath_var=$runpath_var 19042 19043 # This is the shared library path variable. 19044 shlibpath_var=$shlibpath_var 19045 19046 # Is shlibpath searched before the hard-coded library search path? 19047 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19048 19049 # How to hardcode a shared library path into an executable. 19050 hardcode_action=$hardcode_action_RC 19051 19052 # Whether we should hardcode library paths into libraries. 19053 hardcode_into_libs=$hardcode_into_libs 19054 19055 # Flag to hardcode \$libdir into a binary during linking. 19056 # This must work even if \$libdir does not exist. 19057 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19058 19059 # If ld is used when linking, flag to hardcode \$libdir into 19060 # a binary during linking. This must work even if \$libdir does 19061 # not exist. 19062 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19063 19064 # Whether we need a single -rpath flag with a separated argument. 19065 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19066 19067 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19068 # resulting binary. 19069 hardcode_direct=$hardcode_direct_RC 19070 19071 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19072 # resulting binary. 19073 hardcode_minus_L=$hardcode_minus_L_RC 19074 19075 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19076 # the resulting binary. 19077 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19078 19079 # Set to yes if building a shared library automatically hardcodes DIR into the library 19080 # and all subsequent libraries and executables linked against it. 19081 hardcode_automatic=$hardcode_automatic_RC 19082 19083 # Variables whose values should be saved in libtool wrapper scripts and 19084 # restored at relink time. 19085 variables_saved_for_relink="$variables_saved_for_relink" 19086 19087 # Whether libtool must link a program against all its dependency libraries. 19088 link_all_deplibs=$link_all_deplibs_RC 19089 19090 # Compile-time system search path for libraries 19091 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19092 19093 # Run-time system search path for libraries 19094 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19095 19096 # Fix the shell variable \$srcfile for the compiler. 19097 fix_srcfile_path="$fix_srcfile_path_RC" 19098 19099 # Set to yes if exported symbols are required. 19100 always_export_symbols=$always_export_symbols_RC 19101 19102 # The commands to list exported symbols. 19103 export_symbols_cmds=$lt_export_symbols_cmds_RC 19104 19105 # The commands to extract the exported symbol list from a shared archive. 19106 extract_expsyms_cmds=$lt_extract_expsyms_cmds 19107 19108 # Symbols that should not be listed in the preloaded symbols. 19109 exclude_expsyms=$lt_exclude_expsyms_RC 19110 19111 # Symbols that must always be exported. 19112 include_expsyms=$lt_include_expsyms_RC 19113 19114 # ### END LIBTOOL TAG CONFIG: $tagname 19115 19116 __EOF__ 19117 19118 19119 else 19120 # If there is no Makefile yet, we rely on a make rule to execute 19121 # `config.status --recheck' to rerun these tests and create the 19122 # libtool script then. 19123 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19124 if test -f "$ltmain_in"; then 19125 test -f Makefile && make "$ltmain" 19126 fi 19127 fi 19128 19129 19130 ac_ext=c 19131 ac_cpp='$CPP $CPPFLAGS' 19132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19134 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19135 19136 CC="$lt_save_CC" 19137 19138 ;; 19139 19140 *) 19141 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19142 echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19143 { (exit 1); exit 1; }; } 19144 ;; 19145 esac 19146 19147 # Append the new tag name to the list of available tags. 19148 if test -n "$tagname" ; then 19149 available_tags="$available_tags $tagname" 19150 fi 19151 fi 19152 done 19153 IFS="$lt_save_ifs" 19154 19155 # Now substitute the updated list of available tags. 19156 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19157 mv "${ofile}T" "$ofile" 19158 chmod +x "$ofile" 19159 else 19160 rm -f "${ofile}T" 19161 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19162 echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19163 { (exit 1); exit 1; }; } 19164 fi 19165 fi 7831 19166 7832 19167 … … 7839 19174 7840 19175 # Prevent multiple expansion 19176 19177 19178 19179 19180 19181 19182 19183 19184 19185 19186 19187 19188 19189 19190 19191 19192 19193 7841 19194 7842 19195 … … 7984 19337 LIBS="-lsla $LIBS" 7985 19338 cat >conftest.$ac_ext <<_ACEOF 7986 #line $LINENO "configure"7987 19339 /* confdefs.h. */ 7988 19340 _ACEOF … … 8002 19354 rm -f conftest.$ac_objext conftest$ac_exeext 8003 19355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8004 (eval $ac_link) 2>&5 19356 (eval $ac_link) 2>conftest.er1 19357 ac_status=$? 19358 grep -v '^ *+' conftest.er1 >conftest.err 19359 rm -f conftest.er1 19360 cat conftest.err >&5 19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19362 (exit $ac_status); } && 19363 { ac_try='test -z "$ac_c_werror_flag" 19364 || test ! -s conftest.err' 19365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19366 (eval $ac_try) 2>&5 8005 19367 ac_status=$? 8006 19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8007 (exit $ac_status); } &&8008 { ac_try='test -s conftest$ac_exeext'19369 (exit $ac_status); }; } && 19370 { ac_try='test -s conftest$ac_exeext' 8009 19371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8010 19372 (eval $ac_try) 2>&5 … … 8019 19381 ac_cv_lib_sla_main=no 8020 19382 fi 8021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19383 rm -f conftest.err conftest.$ac_objext \ 19384 conftest$ac_exeext conftest.$ac_ext 8022 19385 LIBS=$ac_check_lib_save_LIBS 8023 19386 fi … … 8046 19409 LIBS="-lcfitsio $LIBS" 8047 19410 cat >conftest.$ac_ext <<_ACEOF 8048 #line $LINENO "configure"8049 19411 /* confdefs.h. */ 8050 19412 _ACEOF … … 8064 19426 rm -f conftest.$ac_objext conftest$ac_exeext 8065 19427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8066 (eval $ac_link) 2>&5 19428 (eval $ac_link) 2>conftest.er1 19429 ac_status=$? 19430 grep -v '^ *+' conftest.er1 >conftest.err 19431 rm -f conftest.er1 19432 cat conftest.err >&5 19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19434 (exit $ac_status); } && 19435 { ac_try='test -z "$ac_c_werror_flag" 19436 || test ! -s conftest.err' 19437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19438 (eval $ac_try) 2>&5 8067 19439 ac_status=$? 8068 19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8069 (exit $ac_status); } &&8070 { ac_try='test -s conftest$ac_exeext'19441 (exit $ac_status); }; } && 19442 { ac_try='test -s conftest$ac_exeext' 8071 19443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8072 19444 (eval $ac_try) 2>&5 … … 8081 19453 ac_cv_lib_cfitsio_main=no 8082 19454 fi 8083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19455 rm -f conftest.err conftest.$ac_objext \ 19456 conftest$ac_exeext conftest.$ac_ext 8084 19457 LIBS=$ac_check_lib_save_LIBS 8085 19458 fi … … 8108 19481 LIBS="-lfftw3f $LIBS" 8109 19482 cat >conftest.$ac_ext <<_ACEOF 8110 #line $LINENO "configure"8111 19483 /* confdefs.h. */ 8112 19484 _ACEOF … … 8126 19498 rm -f conftest.$ac_objext conftest$ac_exeext 8127 19499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8128 (eval $ac_link) 2>&5 19500 (eval $ac_link) 2>conftest.er1 19501 ac_status=$? 19502 grep -v '^ *+' conftest.er1 >conftest.err 19503 rm -f conftest.er1 19504 cat conftest.err >&5 19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19506 (exit $ac_status); } && 19507 { ac_try='test -z "$ac_c_werror_flag" 19508 || test ! -s conftest.err' 19509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19510 (eval $ac_try) 2>&5 8129 19511 ac_status=$? 8130 19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8131 (exit $ac_status); } &&8132 { ac_try='test -s conftest$ac_exeext'19513 (exit $ac_status); }; } && 19514 { ac_try='test -s conftest$ac_exeext' 8133 19515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8134 19516 (eval $ac_try) 2>&5 … … 8143 19525 ac_cv_lib_fftw3f_main=no 8144 19526 fi 8145 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19527 rm -f conftest.err conftest.$ac_objext \ 19528 conftest$ac_exeext conftest.$ac_ext 8146 19529 LIBS=$ac_check_lib_save_LIBS 8147 19530 fi … … 8170 19553 LIBS="-lgsl $LIBS" 8171 19554 cat >conftest.$ac_ext <<_ACEOF 8172 #line $LINENO "configure"8173 19555 /* confdefs.h. */ 8174 19556 _ACEOF … … 8188 19570 rm -f conftest.$ac_objext conftest$ac_exeext 8189 19571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8190 (eval $ac_link) 2>&5 19572 (eval $ac_link) 2>conftest.er1 19573 ac_status=$? 19574 grep -v '^ *+' conftest.er1 >conftest.err 19575 rm -f conftest.er1 19576 cat conftest.err >&5 19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19578 (exit $ac_status); } && 19579 { ac_try='test -z "$ac_c_werror_flag" 19580 || test ! -s conftest.err' 19581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19582 (eval $ac_try) 2>&5 8191 19583 ac_status=$? 8192 19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8193 (exit $ac_status); } &&8194 { ac_try='test -s conftest$ac_exeext'19585 (exit $ac_status); }; } && 19586 { ac_try='test -s conftest$ac_exeext' 8195 19587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8196 19588 (eval $ac_try) 2>&5 … … 8205 19597 ac_cv_lib_gsl_main=no 8206 19598 fi 8207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19599 rm -f conftest.err conftest.$ac_objext \ 19600 conftest$ac_exeext conftest.$ac_ext 8208 19601 LIBS=$ac_check_lib_save_LIBS 8209 19602 fi … … 8232 19625 LIBS="-lgslcblas $LIBS" 8233 19626 cat >conftest.$ac_ext <<_ACEOF 8234 #line $LINENO "configure"8235 19627 /* confdefs.h. */ 8236 19628 _ACEOF … … 8250 19642 rm -f conftest.$ac_objext conftest$ac_exeext 8251 19643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8252 (eval $ac_link) 2>&5 19644 (eval $ac_link) 2>conftest.er1 19645 ac_status=$? 19646 grep -v '^ *+' conftest.er1 >conftest.err 19647 rm -f conftest.er1 19648 cat conftest.err >&5 19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19650 (exit $ac_status); } && 19651 { ac_try='test -z "$ac_c_werror_flag" 19652 || test ! -s conftest.err' 19653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19654 (eval $ac_try) 2>&5 8253 19655 ac_status=$? 8254 19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8255 (exit $ac_status); } &&8256 { ac_try='test -s conftest$ac_exeext'19657 (exit $ac_status); }; } && 19658 { ac_try='test -s conftest$ac_exeext' 8257 19659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8258 19660 (eval $ac_try) 2>&5 … … 8267 19669 ac_cv_lib_gslcblas_main=no 8268 19670 fi 8269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19671 rm -f conftest.err conftest.$ac_objext \ 19672 conftest$ac_exeext conftest.$ac_ext 8270 19673 LIBS=$ac_check_lib_save_LIBS 8271 19674 fi … … 8294 19697 LIBS="-lpslib $LIBS" 8295 19698 cat >conftest.$ac_ext <<_ACEOF 8296 #line $LINENO "configure"8297 19699 /* confdefs.h. */ 8298 19700 _ACEOF … … 8312 19714 rm -f conftest.$ac_objext conftest$ac_exeext 8313 19715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8314 (eval $ac_link) 2>&5 19716 (eval $ac_link) 2>conftest.er1 19717 ac_status=$? 19718 grep -v '^ *+' conftest.er1 >conftest.err 19719 rm -f conftest.er1 19720 cat conftest.err >&5 19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19722 (exit $ac_status); } && 19723 { ac_try='test -z "$ac_c_werror_flag" 19724 || test ! -s conftest.err' 19725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19726 (eval $ac_try) 2>&5 8315 19727 ac_status=$? 8316 19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8317 (exit $ac_status); } &&8318 { ac_try='test -s conftest$ac_exeext'19729 (exit $ac_status); }; } && 19730 { ac_try='test -s conftest$ac_exeext' 8319 19731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8320 19732 (eval $ac_try) 2>&5 … … 8329 19741 ac_cv_lib_pslib_main=no 8330 19742 fi 8331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19743 rm -f conftest.err conftest.$ac_objext \ 19744 conftest$ac_exeext conftest.$ac_ext 8332 19745 LIBS=$ac_check_lib_save_LIBS 8333 19746 fi … … 8377 19790 # substitution turns \\\\ into \\, and sed turns \\ into \). 8378 19791 sed -n \ 8379 "s/'/'\\\\''/g;8380 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"19792 "s/'/'\\\\''/g; 19793 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8381 19794 ;; 8382 19795 *) 8383 19796 # `set' quotes correctly as required by POSIX, so do not add quotes. 8384 19797 sed -n \ 8385 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"19798 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 8386 19799 ;; 8387 19800 esac; … … 8413 19826 # (actually we leave an empty line to preserve line numbers). 8414 19827 if test "x$srcdir" = x.; then 8415 ac_vpsub='/^[ ]*VPATH[]*=/{19828 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 8416 19829 s/:*\$(srcdir):*/:/; 8417 19830 s/:*\${srcdir}:*/:/; 8418 19831 s/:*@srcdir@:*/:/; 8419 s/^\([^=]*=[ ]*\):*/\1/;19832 s/^\([^=]*=[ ]*\):*/\1/; 8420 19833 s/:*$//; 8421 s/^[^=]*=[ ]*$//;19834 s/^[^=]*=[ ]*$//; 8422 19835 }' 8423 19836 fi … … 8430 19843 # 1. Remove the extension, and $U if already installed. 8431 19844 ac_i=`echo "$ac_i" | 8432 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`19845 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 8433 19846 # 2. Add them. 8434 19847 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" … … 8444 19857 Usually this means the macro was only invoked conditionally." >&5 8445 19858 echo "$as_me: error: conditional \"AMDEP\" was never defined. 19859 Usually this means the macro was only invoked conditionally." >&2;} 19860 { (exit 1); exit 1; }; } 19861 fi 19862 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19863 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 19864 Usually this means the macro was only invoked conditionally." >&5 19865 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 19866 Usually this means the macro was only invoked conditionally." >&2;} 19867 { (exit 1); exit 1; }; } 19868 fi 19869 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 19870 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 19871 Usually this means the macro was only invoked conditionally." >&5 19872 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 8446 19873 Usually this means the macro was only invoked conditionally." >&2;} 8447 19874 { (exit 1); exit 1; }; } … … 8481 19908 set -o posix 8482 19909 fi 19910 DUALCASE=1; export DUALCASE # for MKS sh 8483 19911 8484 19912 # Support unset when possible. 8485 if ( FOO=FOO; unset FOO) >/dev/null 2>&1; then19913 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8486 19914 as_unset=unset 8487 19915 else … … 8502 19930 LC_TELEPHONE LC_TIME 8503 19931 do 8504 if (set +x; test - n"`(eval $as_var=C; export $as_var) 2>&1`"); then19932 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 8505 19933 eval $as_var=C; export $as_var 8506 19934 else … … 8681 20109 as_mkdir_p=: 8682 20110 else 20111 test -d ./-p && rmdir ./-p 8683 20112 as_mkdir_p=false 8684 20113 fi … … 8687 20116 8688 20117 # Sed expression to map a string onto a valid CPP name. 8689 as_tr_cpp=" sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"20118 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 8690 20119 8691 20120 # Sed expression to map a string onto a valid variable name. 8692 as_tr_sh=" sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"20121 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 8693 20122 8694 20123 … … 8717 20146 8718 20147 This file was extended by $as_me, which was 8719 generated by GNU Autoconf 2.5 7. Invocation command line was20148 generated by GNU Autoconf 2.59. Invocation command line was 8720 20149 8721 20150 CONFIG_FILES = $CONFIG_FILES … … 8761 20190 --recheck update $as_me by reconfiguring in the same conditions 8762 20191 --file=FILE[:TEMPLATE] 8763 instantiate the configuration file FILE20192 instantiate the configuration file FILE 8764 20193 --header=FILE[:TEMPLATE] 8765 instantiate the configuration header FILE20194 instantiate the configuration header FILE 8766 20195 8767 20196 Configuration files: … … 8780 20209 ac_cs_version="\\ 8781 20210 config.status 8782 configured by $0, generated by GNU Autoconf 2.5 7,20211 configured by $0, generated by GNU Autoconf 2.59, 8783 20212 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 8784 20213 8785 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 8786 Free Software Foundation, Inc. 20214 Copyright (C) 2003 Free Software Foundation, Inc. 8787 20215 This config.status script is free software; the Free Software Foundation 8788 20216 gives unlimited permission to copy, distribute and modify it." … … 8983 20411 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 8984 20412 s,@INSTALL_DATA@,$INSTALL_DATA,;t t 20413 s,@CYGPATH_W@,$CYGPATH_W,;t t 8985 20414 s,@PACKAGE@,$PACKAGE,;t t 8986 20415 s,@VERSION@,$VERSION,;t t … … 8995 20424 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 8996 20425 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 20426 s,@mkdir_p@,$mkdir_p,;t t 8997 20427 s,@AWK@,$AWK,;t t 8998 20428 s,@SET_MAKE@,$SET_MAKE,;t t 20429 s,@am__leading_dot@,$am__leading_dot,;t t 8999 20430 s,@CC@,$CC,;t t 9000 20431 s,@CFLAGS@,$CFLAGS,;t t … … 9011 20442 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 9012 20443 s,@CCDEPMODE@,$CCDEPMODE,;t t 20444 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 20445 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 9013 20446 s,@build@,$build,;t t 9014 20447 s,@build_cpu@,$build_cpu,;t t … … 9019 20452 s,@host_vendor@,$host_vendor,;t t 9020 20453 s,@host_os@,$host_os,;t t 20454 s,@EGREP@,$EGREP,;t t 9021 20455 s,@LN_S@,$LN_S,;t t 9022 20456 s,@ECHO@,$ECHO,;t t 20457 s,@AR@,$AR,;t t 20458 s,@ac_ct_AR@,$ac_ct_AR,;t t 9023 20459 s,@RANLIB@,$RANLIB,;t t 9024 20460 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 9025 20461 s,@CPP@,$CPP,;t t 9026 s,@EGREP@,$EGREP,;t t 20462 s,@CXX@,$CXX,;t t 20463 s,@CXXFLAGS@,$CXXFLAGS,;t t 20464 s,@ac_ct_CXX@,$ac_ct_CXX,;t t 20465 s,@CXXDEPMODE@,$CXXDEPMODE,;t t 20466 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 20467 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 20468 s,@CXXCPP@,$CXXCPP,;t t 20469 s,@F77@,$F77,;t t 20470 s,@FFLAGS@,$FFLAGS,;t t 20471 s,@ac_ct_F77@,$ac_ct_F77,;t t 9027 20472 s,@LIBTOOL@,$LIBTOOL,;t t 9028 20473 s,@GSL_CONFIG@,$GSL_CONFIG,;t t … … 9058 20503 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 9059 20504 if test -z "$ac_sed_cmds"; then 9060 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"20505 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 9061 20506 else 9062 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"20507 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 9063 20508 fi 9064 20509 ac_sed_frag=`expr $ac_sed_frag + 1` … … 9078 20523 case $ac_file in 9079 20524 - | *:- | *:-:* ) # input from stdin 9080 cat >$tmp/stdin9081 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`9082 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;20525 cat >$tmp/stdin 20526 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20527 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 9083 20528 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 9084 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;20529 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 9085 20530 * ) ac_file_in=$ac_file.in ;; 9086 20531 esac … … 9089 20534 ac_dir=`(dirname "$ac_file") 2>/dev/null || 9090 20535 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9091 X"$ac_file" : 'X\(//\)[^/]' \| \9092 X"$ac_file" : 'X\(//\)$' \| \9093 X"$ac_file" : 'X\(/\)' \| \9094 . : '\(.\)' 2>/dev/null ||20536 X"$ac_file" : 'X\(//\)[^/]' \| \ 20537 X"$ac_file" : 'X\(//\)$' \| \ 20538 X"$ac_file" : 'X\(/\)' \| \ 20539 . : '\(.\)' 2>/dev/null || 9095 20540 echo X"$ac_file" | 9096 20541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } … … 9108 20553 as_dir=`(dirname "$as_dir") 2>/dev/null || 9109 20554 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9110 X"$as_dir" : 'X\(//\)[^/]' \| \9111 X"$as_dir" : 'X\(//\)$' \| \9112 X"$as_dir" : 'X\(/\)' \| \9113 . : '\(.\)' 2>/dev/null ||20555 X"$as_dir" : 'X\(//\)[^/]' \| \ 20556 X"$as_dir" : 'X\(//\)$' \| \ 20557 X"$as_dir" : 'X\(/\)' \| \ 20558 . : '\(.\)' 2>/dev/null || 9114 20559 echo X"$as_dir" | 9115 20560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } … … 9149 20594 ac_top_srcdir=$ac_top_builddir$srcdir ;; 9150 20595 esac 9151 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 9152 # absolute. 9153 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 9154 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 9155 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 9156 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 20596 20597 # Do not use `cd foo && pwd` to compute absolute paths, because 20598 # the directories may not exist. 20599 case `pwd` in 20600 .) ac_abs_builddir="$ac_dir";; 20601 *) 20602 case "$ac_dir" in 20603 .) ac_abs_builddir=`pwd`;; 20604 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 20605 *) ac_abs_builddir=`pwd`/"$ac_dir";; 20606 esac;; 20607 esac 20608 case $ac_abs_builddir in 20609 .) ac_abs_top_builddir=${ac_top_builddir}.;; 20610 *) 20611 case ${ac_top_builddir}. in 20612 .) ac_abs_top_builddir=$ac_abs_builddir;; 20613 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 20614 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 20615 esac;; 20616 esac 20617 case $ac_abs_builddir in 20618 .) ac_abs_srcdir=$ac_srcdir;; 20619 *) 20620 case $ac_srcdir in 20621 .) ac_abs_srcdir=$ac_abs_builddir;; 20622 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 20623 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 20624 esac;; 20625 esac 20626 case $ac_abs_builddir in 20627 .) ac_abs_top_srcdir=$ac_top_srcdir;; 20628 *) 20629 case $ac_top_srcdir in 20630 .) ac_abs_top_srcdir=$ac_abs_builddir;; 20631 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 20632 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 20633 esac;; 20634 esac 9157 20635 9158 20636 … … 9176 20654 fi 9177 20655 configure_input=$configure_input"Generated from `echo $ac_file_in | 9178 sed 's,.*/,,'` by configure."20656 sed 's,.*/,,'` by configure." 9179 20657 9180 20658 # First look for the input files in the build tree, otherwise in the … … 9185 20663 -) echo $tmp/stdin ;; 9186 20664 [\\/$]*) 9187 # Absolute (can't be DOS-style, as IFS=:)9188 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&520665 # Absolute (can't be DOS-style, as IFS=:) 20666 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 9189 20667 echo "$as_me: error: cannot find input file: $f" >&2;} 9190 20668 { (exit 1); exit 1; }; } 9191 echo $f;;20669 echo "$f";; 9192 20670 *) # Relative 9193 if test -f "$f"; then9194 # Build tree9195 echo $f 9196 elif test -f "$srcdir/$f"; then9197 # Source tree9198 echo $srcdir/$f 9199 else9200 # /dev/null tree9201 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&520671 if test -f "$f"; then 20672 # Build tree 20673 echo "$f" 20674 elif test -f "$srcdir/$f"; then 20675 # Source tree 20676 echo "$srcdir/$f" 20677 else 20678 # /dev/null tree 20679 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 9202 20680 echo "$as_me: error: cannot find input file: $f" >&2;} 9203 20681 { (exit 1); exit 1; }; } 9204 fi;;20682 fi;; 9205 20683 esac 9206 20684 done` || { (exit 1); exit 1; } … … 9244 20722 # 9245 20723 # ac_d sets the value in "#define NAME VALUE" lines. 9246 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][]*\)'9247 ac_dB='[ ].*$,\1#\2'20724 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 20725 ac_dB='[ ].*$,\1#\2' 9248 20726 ac_dC=' ' 9249 20727 ac_dD=',;t' 9250 20728 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 9251 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][]*\)'20729 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 9252 20730 ac_uB='$,\1#\2define\3' 9253 20731 ac_uC=' ' … … 9258 20736 case $ac_file in 9259 20737 - | *:- | *:-:* ) # input from stdin 9260 cat >$tmp/stdin9261 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`9262 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;20738 cat >$tmp/stdin 20739 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20740 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 9263 20741 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 9264 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;20742 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 9265 20743 * ) ac_file_in=$ac_file.in ;; 9266 20744 esac … … 9276 20754 -) echo $tmp/stdin ;; 9277 20755 [\\/$]*) 9278 # Absolute (can't be DOS-style, as IFS=:)9279 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&520756 # Absolute (can't be DOS-style, as IFS=:) 20757 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 9280 20758 echo "$as_me: error: cannot find input file: $f" >&2;} 9281 20759 { (exit 1); exit 1; }; } 9282 echo $f;; 20760 # Do quote $f, to prevent DOS paths from being IFS'd. 20761 echo "$f";; 9283 20762 *) # Relative 9284 if test -f "$f"; then9285 # Build tree9286 echo $f 9287 elif test -f "$srcdir/$f"; then9288 # Source tree9289 echo $srcdir/$f 9290 else9291 # /dev/null tree9292 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&520763 if test -f "$f"; then 20764 # Build tree 20765 echo "$f" 20766 elif test -f "$srcdir/$f"; then 20767 # Source tree 20768 echo "$srcdir/$f" 20769 else 20770 # /dev/null tree 20771 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 9293 20772 echo "$as_me: error: cannot find input file: $f" >&2;} 9294 20773 { (exit 1); exit 1; }; } 9295 fi;;20774 fi;; 9296 20775 esac 9297 20776 done` || { (exit 1); exit 1; } 9298 20777 # Remove the trailing spaces. 9299 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in20778 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 9300 20779 9301 20780 _ACEOF … … 9320 20799 t clear 9321 20800 : clear 9322 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp20801 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 9323 20802 t end 9324 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp20803 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 9325 20804 : end 9326 20805 _ACEOF … … 9336 20815 # on some systems where configure will not decide to define it. 9337 20816 cat >>conftest.undefs <<\_ACEOF 9338 s,^[ ]*#[ ]*undef[ ][]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,20817 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 9339 20818 _ACEOF 9340 20819 … … 9342 20821 # of here documents, and old seds have small limits too (100 cmds). 9343 20822 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 9344 echo ' if grep "^[ ]*#[]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS20823 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 9345 20824 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 9346 20825 echo ' :' >>$CONFIG_STATUS … … 9351 20830 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 9352 20831 # Speed up: don't consider the non `#define' lines. 9353 echo '/^[ ]*#[]*define/!b' >>$CONFIG_STATUS20832 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 9354 20833 # Work around the forget-to-reset-the-flag bug. 9355 20834 echo 't clr' >>$CONFIG_STATUS … … 9378 20857 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 9379 20858 # Speed up: don't consider the non `#undef' 9380 echo '/^[ ]*#[]*undef/!b' >>$CONFIG_STATUS20859 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 9381 20860 # Work around the forget-to-reset-the-flag bug. 9382 20861 echo 't clr' >>$CONFIG_STATUS … … 9412 20891 ac_dir=`(dirname "$ac_file") 2>/dev/null || 9413 20892 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9414 X"$ac_file" : 'X\(//\)[^/]' \| \9415 X"$ac_file" : 'X\(//\)$' \| \9416 X"$ac_file" : 'X\(/\)' \| \9417 . : '\(.\)' 2>/dev/null ||20893 X"$ac_file" : 'X\(//\)[^/]' \| \ 20894 X"$ac_file" : 'X\(//\)$' \| \ 20895 X"$ac_file" : 'X\(/\)' \| \ 20896 . : '\(.\)' 2>/dev/null || 9418 20897 echo X"$ac_file" | 9419 20898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } … … 9431 20910 as_dir=`(dirname "$as_dir") 2>/dev/null || 9432 20911 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9433 X"$as_dir" : 'X\(//\)[^/]' \| \9434 X"$as_dir" : 'X\(//\)$' \| \9435 X"$as_dir" : 'X\(/\)' \| \9436 . : '\(.\)' 2>/dev/null ||20912 X"$as_dir" : 'X\(//\)[^/]' \| \ 20913 X"$as_dir" : 'X\(//\)$' \| \ 20914 X"$as_dir" : 'X\(/\)' \| \ 20915 . : '\(.\)' 2>/dev/null || 9437 20916 echo X"$as_dir" | 9438 20917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } … … 9454 20933 rm -f $tmp/config.h 9455 20934 fi 9456 # Run the commands associated with the file. 9457 case $ac_file in 9458 src/config.h ) # update the timestamp 9459 echo 'timestamp for src/config.h' >"src/stamp-h1" 9460 ;; 20935 # Compute $ac_file's index in $config_headers. 20936 _am_stamp_count=1 20937 for _am_header in $config_headers :; do 20938 case $_am_header in 20939 $ac_file | $ac_file:* ) 20940 break ;; 20941 * ) 20942 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 9461 20943 esac 20944 done 20945 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 20946 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20947 X$ac_file : 'X\(//\)[^/]' \| \ 20948 X$ac_file : 'X\(//\)$' \| \ 20949 X$ac_file : 'X\(/\)' \| \ 20950 . : '\(.\)' 2>/dev/null || 20951 echo X$ac_file | 20952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20953 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20954 /^X\(\/\/\)$/{ s//\1/; q; } 20955 /^X\(\/\).*/{ s//\1/; q; } 20956 s/.*/./; q'`/stamp-h$_am_stamp_count 9462 20957 done 9463 20958 _ACEOF … … 9472 20967 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 9473 20968 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9474 X"$ac_dest" : 'X\(//\)[^/]' \| \9475 X"$ac_dest" : 'X\(//\)$' \| \9476 X"$ac_dest" : 'X\(/\)' \| \9477 . : '\(.\)' 2>/dev/null ||20969 X"$ac_dest" : 'X\(//\)[^/]' \| \ 20970 X"$ac_dest" : 'X\(//\)$' \| \ 20971 X"$ac_dest" : 'X\(/\)' \| \ 20972 . : '\(.\)' 2>/dev/null || 9478 20973 echo X"$ac_dest" | 9479 20974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } … … 9482 20977 /^X\(\/\).*/{ s//\1/; q; } 9483 20978 s/.*/./; q'` 20979 { if $as_mkdir_p; then 20980 mkdir -p "$ac_dir" 20981 else 20982 as_dir="$ac_dir" 20983 as_dirs= 20984 while test ! -d "$as_dir"; do 20985 as_dirs="$as_dir $as_dirs" 20986 as_dir=`(dirname "$as_dir") 2>/dev/null || 20987 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20988 X"$as_dir" : 'X\(//\)[^/]' \| \ 20989 X"$as_dir" : 'X\(//\)$' \| \ 20990 X"$as_dir" : 'X\(/\)' \| \ 20991 . : '\(.\)' 2>/dev/null || 20992 echo X"$as_dir" | 20993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20994 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20995 /^X\(\/\/\)$/{ s//\1/; q; } 20996 /^X\(\/\).*/{ s//\1/; q; } 20997 s/.*/./; q'` 20998 done 20999 test ! -n "$as_dirs" || mkdir $as_dirs 21000 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21001 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21002 { (exit 1); exit 1; }; }; } 21003 9484 21004 ac_builddir=. 9485 21005 … … 9507 21027 ac_top_srcdir=$ac_top_builddir$srcdir ;; 9508 21028 esac 9509 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 9510 # absolute. 9511 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 9512 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 9513 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 9514 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 21029 21030 # Do not use `cd foo && pwd` to compute absolute paths, because 21031 # the directories may not exist. 21032 case `pwd` in 21033 .) ac_abs_builddir="$ac_dir";; 21034 *) 21035 case "$ac_dir" in 21036 .) ac_abs_builddir=`pwd`;; 21037 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 21038 *) ac_abs_builddir=`pwd`/"$ac_dir";; 21039 esac;; 21040 esac 21041 case $ac_abs_builddir in 21042 .) ac_abs_top_builddir=${ac_top_builddir}.;; 21043 *) 21044 case ${ac_top_builddir}. in 21045 .) ac_abs_top_builddir=$ac_abs_builddir;; 21046 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 21047 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 21048 esac;; 21049 esac 21050 case $ac_abs_builddir in 21051 .) ac_abs_srcdir=$ac_srcdir;; 21052 *) 21053 case $ac_srcdir in 21054 .) ac_abs_srcdir=$ac_abs_builddir;; 21055 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 21056 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 21057 esac;; 21058 esac 21059 case $ac_abs_builddir in 21060 .) ac_abs_top_srcdir=$ac_top_srcdir;; 21061 *) 21062 case $ac_top_srcdir in 21063 .) ac_abs_top_srcdir=$ac_abs_builddir;; 21064 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 21065 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 21066 esac;; 21067 esac 9515 21068 9516 21069 … … 9530 21083 dirpart=`(dirname "$mf") 2>/dev/null || 9531 21084 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9532 X"$mf" : 'X\(//\)[^/]' \| \9533 X"$mf" : 'X\(//\)$' \| \9534 X"$mf" : 'X\(/\)' \| \9535 . : '\(.\)' 2>/dev/null ||21085 X"$mf" : 'X\(//\)[^/]' \| \ 21086 X"$mf" : 'X\(//\)$' \| \ 21087 X"$mf" : 'X\(/\)' \| \ 21088 . : '\(.\)' 2>/dev/null || 9536 21089 echo X"$mf" | 9537 21090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } … … 9546 21099 # Extract the definition of DEP_FILES from the Makefile without 9547 21100 # running `make'. 9548 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`21101 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 9549 21102 test -z "$DEPDIR" && continue 9550 21103 # When using ansi2knr, U may be empty or an underscore; expand it 9551 U=`sed -n -e '/^U = / s///p' < "$mf"`21104 U=`sed -n 's/^U = //p' < "$mf"` 9552 21105 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 9553 21106 # We invoke sed twice because it is the simplest approach to 9554 21107 # changing $(DEPDIR) to its actual value in the expansion. 9555 for file in `sed -n -e'21108 for file in `sed -n ' 9556 21109 /^DEP_FILES = .*\\\\$/ { 9557 21110 s/^DEP_FILES = // … … 9569 21122 fdir=`(dirname "$file") 2>/dev/null || 9570 21123 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9571 X"$file" : 'X\(//\)[^/]' \| \9572 X"$file" : 'X\(//\)$' \| \9573 X"$file" : 'X\(/\)' \| \9574 . : '\(.\)' 2>/dev/null ||21124 X"$file" : 'X\(//\)[^/]' \| \ 21125 X"$file" : 'X\(//\)$' \| \ 21126 X"$file" : 'X\(/\)' \| \ 21127 . : '\(.\)' 2>/dev/null || 9575 21128 echo X"$file" | 9576 21129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } … … 9588 21141 as_dir=`(dirname "$as_dir") 2>/dev/null || 9589 21142 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9590 X"$as_dir" : 'X\(//\)[^/]' \| \9591 X"$as_dir" : 'X\(//\)$' \| \9592 X"$as_dir" : 'X\(/\)' \| \9593 . : '\(.\)' 2>/dev/null ||21143 X"$as_dir" : 'X\(//\)[^/]' \| \ 21144 X"$as_dir" : 'X\(//\)$' \| \ 21145 X"$as_dir" : 'X\(/\)' \| \ 21146 . : '\(.\)' 2>/dev/null || 9594 21147 echo X"$as_dir" | 9595 21148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } -
trunk/psModules/src/Makefile.in
r2132 r2138 1 # Makefile.in generated by automake 1. 6.3 from Makefile.am.1 # Makefile.in generated by automake 1.8.3 from Makefile.am. 2 2 # @configure_input@ 3 3 4 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 20025 # Free Software Foundation, Inc.4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 5 # 2003, 2004 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 SHELL = @SHELL@ 16 17 18 SOURCES = $(libpsmodule_a_SOURCES) 17 19 18 20 srcdir = @srcdir@ 19 21 top_srcdir = @top_srcdir@ 20 22 VPATH = @srcdir@ 21 prefix = @prefix@22 exec_prefix = @exec_prefix@23 24 bindir = @bindir@25 sbindir = @sbindir@26 libexecdir = @libexecdir@27 datadir = @datadir@28 sysconfdir = @sysconfdir@29 sharedstatedir = @sharedstatedir@30 localstatedir = @localstatedir@31 libdir = @libdir@32 infodir = @infodir@33 mandir = @mandir@34 includedir = @includedir@35 oldincludedir = /usr/include36 23 pkgdatadir = $(datadir)/@PACKAGE@ 37 24 pkglibdir = $(libdir)/@PACKAGE@ 38 25 pkgincludedir = $(includedir)/@PACKAGE@ 39 26 top_builddir = .. 40 41 ACLOCAL = @ACLOCAL@42 AUTOCONF = @AUTOCONF@43 AUTOMAKE = @AUTOMAKE@44 AUTOHEADER = @AUTOHEADER@45 46 27 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 47 28 INSTALL = @INSTALL@ 48 INSTALL_PROGRAM = @INSTALL_PROGRAM@49 INSTALL_DATA = @INSTALL_DATA@50 29 install_sh_DATA = $(install_sh) -c -m 644 51 30 install_sh_PROGRAM = $(install_sh) -c 52 31 install_sh_SCRIPT = $(install_sh) -c 53 INSTALL_SCRIPT = @INSTALL_SCRIPT@54 32 INSTALL_HEADER = $(INSTALL_DATA) 55 transform = @program_transform_name@33 transform = $(program_transform_name) 56 34 NORMAL_INSTALL = : 57 35 PRE_INSTALL = : … … 60 38 PRE_UNINSTALL = : 61 39 POST_UNINSTALL = : 62 host_alias = @host_alias@63 40 host_triplet = @host@ 64 65 EXEEXT = @EXEEXT@66 OBJEXT = @OBJEXT@67 PATH_SEPARATOR = @PATH_SEPARATOR@68 AMTAR = @AMTAR@69 AS = @AS@70 AWK = @AWK@71 CC = @CC@72 CFLAGS = @CFLAGS@73 DEPDIR = @DEPDIR@74 DLLTOOL = @DLLTOOL@75 ECHO = @ECHO@76 GSL_CONFIG = @GSL_CONFIG@77 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@78 LIBTOOL = @LIBTOOL@79 LN_S = @LN_S@80 OBJDUMP = @OBJDUMP@81 PACKAGE = @PACKAGE@82 RANLIB = @RANLIB@83 STRIP = @STRIP@84 VERSION = @VERSION@85 am__include = @am__include@86 am__quote = @am__quote@87 install_sh = @install_sh@88 lib_LIBRARIES = libpsmodule.a89 90 libpsmodule_a_SOURCES = pmFlatField.c pmMaskBadPixels.c pmSubtractBias.c psTest.c pmSubtractBias.c pmNonLinear.c91 libpsmodule_a_HEADERS = pmFlatField.h pmMaskBadPixels.h pmSubtractBias.h psTest.h pmSubtractBias.h pmNonLinear.h92 libpsmodule_adir = .93 41 subdir = src 42 DIST_COMMON = $(libpsmodule_a_HEADERS) $(srcdir)/Makefile.am \ 43 $(srcdir)/Makefile.in $(srcdir)/config.h.in 44 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 45 am__aclocal_m4_deps = $(top_srcdir)/configure.in 46 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 47 $(ACLOCAL_M4) 94 48 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 95 49 CONFIG_HEADER = config.h 96 50 CONFIG_CLEAN_FILES = 51 ARFLAGS = cru 52 am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(libpsmodule_adir)" 53 libLIBRARIES_INSTALL = $(INSTALL_DATA) 97 54 LIBRARIES = $(lib_LIBRARIES) 98 99 libpsmodule_a_AR = $(AR) cru 55 libpsmodule_a_AR = $(AR) $(ARFLAGS) 100 56 libpsmodule_a_LIBADD = 101 57 am_libpsmodule_a_OBJECTS = pmFlatField.$(OBJEXT) \ 102 58 pmMaskBadPixels.$(OBJEXT) pmSubtractBias.$(OBJEXT) \ 103 psTest.$(OBJEXT) pmSubtractBias.$(OBJEXT) pmNonLinear.$(OBJEXT) 59 psTest.$(OBJEXT) pmSubtractBias.$(OBJEXT) \ 60 pmNonLinear.$(OBJEXT) 104 61 libpsmodule_a_OBJECTS = $(am_libpsmodule_a_OBJECTS) 105 106 DEFS = @DEFS@ 107 DEFAULT_INCLUDES = -I. -I$(srcdir) -I. 108 CPPFLAGS = @CPPFLAGS@ 109 LDFLAGS = @LDFLAGS@ 110 LIBS = @LIBS@ 62 DEFAULT_INCLUDES = -I. -I$(srcdir) -I. 111 63 depcomp = $(SHELL) $(top_srcdir)/depcomp 112 64 am__depfiles_maybe = depfiles … … 114 66 @AMDEP_TRUE@ ./$(DEPDIR)/pmMaskBadPixels.Po \ 115 67 @AMDEP_TRUE@ ./$(DEPDIR)/pmNonLinear.Po \ 116 @AMDEP_TRUE@ ./$(DEPDIR)/pmSubtractBias.Po ./$(DEPDIR)/psTest.Po 68 @AMDEP_TRUE@ ./$(DEPDIR)/pmSubtractBias.Po \ 69 @AMDEP_TRUE@ ./$(DEPDIR)/psTest.Po 117 70 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 118 71 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 119 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \ 120 $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 72 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \ 73 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ 74 $(AM_CFLAGS) $(CFLAGS) 121 75 CCLD = $(CC) 122 76 LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 123 77 $(AM_LDFLAGS) $(LDFLAGS) -o $@ 78 SOURCES = $(libpsmodule_a_SOURCES) 124 79 DIST_SOURCES = $(libpsmodule_a_SOURCES) 80 libpsmodule_aHEADERS_INSTALL = $(INSTALL_HEADER) 125 81 HEADERS = $(libpsmodule_a_HEADERS) 126 127 DIST_COMMON = $(libpsmodule_a_HEADERS) Makefile.am Makefile.in \ 128 config.h.in 129 SOURCES = $(libpsmodule_a_SOURCES) 130 82 ETAGS = etags 83 CTAGS = ctags 84 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 85 ACLOCAL = @ACLOCAL@ 86 AMDEP_FALSE = @AMDEP_FALSE@ 87 AMDEP_TRUE = @AMDEP_TRUE@ 88 AMTAR = @AMTAR@ 89 AR = @AR@ 90 AUTOCONF = @AUTOCONF@ 91 AUTOHEADER = @AUTOHEADER@ 92 AUTOMAKE = @AUTOMAKE@ 93 AWK = @AWK@ 94 CC = @CC@ 95 CCDEPMODE = @CCDEPMODE@ 96 CFLAGS = @CFLAGS@ 97 CPP = @CPP@ 98 CPPFLAGS = @CPPFLAGS@ 99 CXX = @CXX@ 100 CXXCPP = @CXXCPP@ 101 CXXDEPMODE = @CXXDEPMODE@ 102 CXXFLAGS = @CXXFLAGS@ 103 CYGPATH_W = @CYGPATH_W@ 104 DEFS = @DEFS@ 105 DEPDIR = @DEPDIR@ 106 ECHO = @ECHO@ 107 ECHO_C = @ECHO_C@ 108 ECHO_N = @ECHO_N@ 109 ECHO_T = @ECHO_T@ 110 EGREP = @EGREP@ 111 EXEEXT = @EXEEXT@ 112 F77 = @F77@ 113 FFLAGS = @FFLAGS@ 114 GSL_CONFIG = @GSL_CONFIG@ 115 INSTALL_DATA = @INSTALL_DATA@ 116 INSTALL_PROGRAM = @INSTALL_PROGRAM@ 117 INSTALL_SCRIPT = @INSTALL_SCRIPT@ 118 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 119 LDFLAGS = @LDFLAGS@ 120 LIBOBJS = @LIBOBJS@ 121 LIBS = @LIBS@ 122 LIBTOOL = @LIBTOOL@ 123 LN_S = @LN_S@ 124 LTLIBOBJS = @LTLIBOBJS@ 125 MAKEINFO = @MAKEINFO@ 126 OBJEXT = @OBJEXT@ 127 PACKAGE = @PACKAGE@ 128 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ 129 PACKAGE_NAME = @PACKAGE_NAME@ 130 PACKAGE_STRING = @PACKAGE_STRING@ 131 PACKAGE_TARNAME = @PACKAGE_TARNAME@ 132 PACKAGE_VERSION = @PACKAGE_VERSION@ 133 PATH_SEPARATOR = @PATH_SEPARATOR@ 134 RANLIB = @RANLIB@ 135 SET_MAKE = @SET_MAKE@ 136 SHELL = @SHELL@ 137 STRIP = @STRIP@ 138 VERSION = @VERSION@ 139 ac_ct_AR = @ac_ct_AR@ 140 ac_ct_CC = @ac_ct_CC@ 141 ac_ct_CXX = @ac_ct_CXX@ 142 ac_ct_F77 = @ac_ct_F77@ 143 ac_ct_RANLIB = @ac_ct_RANLIB@ 144 ac_ct_STRIP = @ac_ct_STRIP@ 145 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ 146 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ 147 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ 148 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ 149 am__include = @am__include@ 150 am__leading_dot = @am__leading_dot@ 151 am__quote = @am__quote@ 152 bindir = @bindir@ 153 build = @build@ 154 build_alias = @build_alias@ 155 build_cpu = @build_cpu@ 156 build_os = @build_os@ 157 build_vendor = @build_vendor@ 158 datadir = @datadir@ 159 exec_prefix = @exec_prefix@ 160 host = @host@ 161 host_alias = @host_alias@ 162 host_cpu = @host_cpu@ 163 host_os = @host_os@ 164 host_vendor = @host_vendor@ 165 includedir = @includedir@ 166 infodir = @infodir@ 167 install_sh = @install_sh@ 168 libdir = @libdir@ 169 libexecdir = @libexecdir@ 170 localstatedir = @localstatedir@ 171 mandir = @mandir@ 172 mkdir_p = @mkdir_p@ 173 oldincludedir = @oldincludedir@ 174 prefix = @prefix@ 175 program_transform_name = @program_transform_name@ 176 sbindir = @sbindir@ 177 sharedstatedir = @sharedstatedir@ 178 sysconfdir = @sysconfdir@ 179 target_alias = @target_alias@ 180 lib_LIBRARIES = libpsmodule.a 181 libpsmodule_a_SOURCES = pmFlatField.c pmMaskBadPixels.c pmSubtractBias.c psTest.c pmSubtractBias.c pmNonLinear.c 182 libpsmodule_a_HEADERS = pmFlatField.h pmMaskBadPixels.h pmSubtractBias.h psTest.h pmSubtractBias.h pmNonLinear.h 183 libpsmodule_adir = . 131 184 all: config.h 132 185 $(MAKE) $(AM_MAKEFLAGS) all-am … … 134 187 .SUFFIXES: 135 188 .SUFFIXES: .c .lo .o .obj 136 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 189 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) 190 @for dep in $?; do \ 191 case '$(am__configure_deps)' in \ 192 *$$dep*) \ 193 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ 194 && exit 0; \ 195 exit 1;; \ 196 esac; \ 197 done; \ 198 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ 137 199 cd $(top_srcdir) && \ 138 200 $(AUTOMAKE) --gnu src/Makefile 139 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 140 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) 201 .PRECIOUS: Makefile 202 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 203 @case '$?' in \ 204 *config.status*) \ 205 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ 206 *) \ 207 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ 208 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ 209 esac; 210 211 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) 212 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 213 214 $(top_srcdir)/configure: $(am__configure_deps) 215 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 216 $(ACLOCAL_M4): $(am__aclocal_m4_deps) 217 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 141 218 142 219 config.h: stamp-h1 … … 149 226 @rm -f stamp-h1 150 227 cd $(top_builddir) && $(SHELL) ./config.status src/config.h 151 152 $(srcdir)/config.h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) 228 $(srcdir)/config.h.in: $(am__configure_deps) 153 229 cd $(top_srcdir) && $(AUTOHEADER) 154 touch $(srcdir)/config.h.in 230 rm -f stamp-h1 231 touch $@ 155 232 156 233 distclean-hdr: 157 234 -rm -f config.h stamp-h1 158 159 AR = ar160 libLIBRARIES_INSTALL = $(INSTALL_DATA)161 235 install-libLIBRARIES: $(lib_LIBRARIES) 162 236 @$(NORMAL_INSTALL) 163 $(mkinstalldirs) $(DESTDIR)$(libdir)237 test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)" 164 238 @list='$(lib_LIBRARIES)'; for p in $$list; do \ 165 239 if test -f $$p; then \ 166 240 f="`echo $$p | sed -e 's|^.*/||'`"; \ 167 echo " $(libLIBRARIES_INSTALL) $$p $(DESTDIR)$(libdir)/$$f"; \168 $(libLIBRARIES_INSTALL) $$p $(DESTDIR)$(libdir)/$$f; \241 echo " $(libLIBRARIES_INSTALL) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \ 242 $(libLIBRARIES_INSTALL) "$$p" "$(DESTDIR)$(libdir)/$$f"; \ 169 243 else :; fi; \ 170 244 done … … 173 247 if test -f $$p; then \ 174 248 p="`echo $$p | sed -e 's|^.*/||'`"; \ 175 echo " $(RANLIB) $(DESTDIR)$(libdir)/$$p"; \176 $(RANLIB) $(DESTDIR)$(libdir)/$$p; \249 echo " $(RANLIB) '$(DESTDIR)$(libdir)/$$p'"; \ 250 $(RANLIB) "$(DESTDIR)$(libdir)/$$p"; \ 177 251 else :; fi; \ 178 252 done … … 182 256 @list='$(lib_LIBRARIES)'; for p in $$list; do \ 183 257 p="`echo $$p | sed -e 's|^.*/||'`"; \ 184 echo " rm -f $(DESTDIR)$(libdir)/$$p"; \185 rm -f $(DESTDIR)$(libdir)/$$p; \258 echo " rm -f '$(DESTDIR)$(libdir)/$$p'"; \ 259 rm -f "$(DESTDIR)$(libdir)/$$p"; \ 186 260 done 187 261 … … 194 268 195 269 mostlyclean-compile: 196 -rm -f *.$(OBJEXT) core *.core270 -rm -f *.$(OBJEXT) 197 271 198 272 distclean-compile: … … 205 279 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/psTest.Po@am__quote@ 206 280 207 distclean-depend:208 -rm -rf ./$(DEPDIR)209 210 281 .c.o: 211 @AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 212 @AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ 213 @AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 214 $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$< 282 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ 283 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 284 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 285 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ 286 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 287 @am__fastdepCC_FALSE@ $(COMPILE) -c $< 215 288 216 289 .c.obj: 217 @AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 218 @AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ 219 @AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 220 $(COMPILE) -c `cygpath -w $<` 290 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ 291 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 292 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 293 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ 294 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 295 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` 221 296 222 297 .c.lo: 223 @AMDEP_TRUE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ 224 @AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@ 225 @AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 226 $(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$< 227 CCDEPMODE = @CCDEPMODE@ 298 @am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ 299 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 300 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ 301 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@ 302 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 303 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< 228 304 229 305 mostlyclean-libtool: … … 236 312 -rm -f libtool 237 313 uninstall-info-am: 238 libpsmodule_aHEADERS_INSTALL = $(INSTALL_HEADER)239 314 install-libpsmodule_aHEADERS: $(libpsmodule_a_HEADERS) 240 315 @$(NORMAL_INSTALL) 241 $(mkinstalldirs) $(DESTDIR)$(libpsmodule_adir)316 test -z "$(libpsmodule_adir)" || $(mkdir_p) "$(DESTDIR)$(libpsmodule_adir)" 242 317 @list='$(libpsmodule_a_HEADERS)'; for p in $$list; do \ 243 318 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ 244 319 f="`echo $$p | sed -e 's|^.*/||'`"; \ 245 echo " $(libpsmodule_aHEADERS_INSTALL) $$d$$p $(DESTDIR)$(libpsmodule_adir)/$$f"; \246 $(libpsmodule_aHEADERS_INSTALL) $$d$$p $(DESTDIR)$(libpsmodule_adir)/$$f; \320 echo " $(libpsmodule_aHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(libpsmodule_adir)/$$f'"; \ 321 $(libpsmodule_aHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(libpsmodule_adir)/$$f"; \ 247 322 done 248 323 … … 251 326 @list='$(libpsmodule_a_HEADERS)'; for p in $$list; do \ 252 327 f="`echo $$p | sed -e 's|^.*/||'`"; \ 253 echo " rm -f $(DESTDIR)$(libpsmodule_adir)/$$f"; \ 254 rm -f $(DESTDIR)$(libpsmodule_adir)/$$f; \ 255 done 256 257 ETAGS = etags 258 ETAGSFLAGS = 259 260 tags: TAGS 328 echo " rm -f '$(DESTDIR)$(libpsmodule_adir)/$$f'"; \ 329 rm -f "$(DESTDIR)$(libpsmodule_adir)/$$f"; \ 330 done 261 331 262 332 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) … … 268 338 END { for (i in files) print i; }'`; \ 269 339 mkid -fID $$unique 340 tags: TAGS 270 341 271 342 TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ … … 282 353 || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 283 354 $$tags $$unique 355 ctags: CTAGS 356 CTAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ 357 $(TAGS_FILES) $(LISP) 358 tags=; \ 359 here=`pwd`; \ 360 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ 361 unique=`for i in $$list; do \ 362 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 363 done | \ 364 $(AWK) ' { files[$$0] = 1; } \ 365 END { for (i in files) print i; }'`; \ 366 test -z "$(CTAGS_ARGS)$$tags$$unique" \ 367 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ 368 $$tags $$unique 284 369 285 370 GTAGS: … … 289 374 290 375 distclean-tags: 291 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH 292 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 293 294 top_distdir = .. 295 distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) 376 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags 296 377 297 378 distdir: $(DISTFILES) 298 @list='$(DISTFILES)'; for file in $$list; do \ 379 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ 380 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ 381 list='$(DISTFILES)'; for file in $$list; do \ 382 case $$file in \ 383 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ 384 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ 385 esac; \ 299 386 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ 300 387 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ 301 388 if test "$$dir" != "$$file" && test "$$dir" != "."; then \ 302 389 dir="/$$dir"; \ 303 $(mk installdirs) "$(distdir)$$dir"; \390 $(mkdir_p) "$(distdir)$$dir"; \ 304 391 else \ 305 392 dir=''; \ … … 319 406 check: check-am 320 407 all-am: Makefile $(LIBRARIES) $(HEADERS) config.h 321 322 408 installdirs: 323 $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(libpsmodule_adir) 324 409 for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(libpsmodule_adir)"; do \ 410 test -z "$$dir" || $(mkdir_p) "$$dir"; \ 411 done 325 412 install: install-am 326 413 install-exec: install-exec-am … … 334 421 install-strip: 335 422 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ 336 INSTALL_STRIP_FLAG=-s \423 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ 337 424 `test -z '$(STRIP)' || \ 338 425 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install … … 342 429 343 430 distclean-generic: 344 -rm -f Makefile$(CONFIG_CLEAN_FILES)431 -rm -f $(CONFIG_CLEAN_FILES) 345 432 346 433 maintainer-clean-generic: … … 349 436 clean: clean-am 350 437 351 clean-am: clean-generic clean-libLIBRARIES clean-libtool mostlyclean-am 438 clean-am: clean-generic clean-libLIBRARIES clean-libtool \ 439 mostlyclean-am 352 440 353 441 distclean: distclean-am 354 355 distclean-am: clean-am distclean-compile distclean-depend \ 356 distclean-generic distclean-hdr distclean-libtool\357 distclean- tags442 -rm -rf ./$(DEPDIR) 443 -rm -f Makefile 444 distclean-am: clean-am distclean-compile distclean-generic \ 445 distclean-hdr distclean-libtool distclean-tags 358 446 359 447 dvi: dvi-am … … 361 449 dvi-am: 362 450 451 html: html-am 452 363 453 info: info-am 364 454 … … 376 466 377 467 maintainer-clean: maintainer-clean-am 378 468 -rm -rf ./$(DEPDIR) 469 -rm -f Makefile 379 470 maintainer-clean-am: distclean-am maintainer-clean-generic 380 471 … … 384 475 mostlyclean-libtool 385 476 477 pdf: pdf-am 478 479 pdf-am: 480 481 ps: ps-am 482 483 ps-am: 484 386 485 uninstall-am: uninstall-info-am uninstall-libLIBRARIES \ 387 486 uninstall-libpsmodule_aHEADERS 388 487 389 .PHONY: GTAGS all all-am check check-am clean clean-generic \ 390 clean-libLIBRARIES clean-libtool distclean distclean-compile \ 391 distclean-depend distclean-generic distclean-hdr \ 392 distclean-libtool distclean-tags distdir dvi dvi-am info \ 393 info-am install install-am install-data install-data-am \ 394 install-exec install-exec-am install-info install-info-am \ 395 install-libLIBRARIES install-libpsmodule_aHEADERS install-man \ 396 install-strip installcheck installcheck-am installdirs \ 397 maintainer-clean maintainer-clean-generic mostlyclean \ 398 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ 488 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ 489 clean-libLIBRARIES clean-libtool ctags distclean \ 490 distclean-compile distclean-generic distclean-hdr \ 491 distclean-libtool distclean-tags distdir dvi dvi-am html \ 492 html-am info info-am install install-am install-data \ 493 install-data-am install-exec install-exec-am install-info \ 494 install-info-am install-libLIBRARIES \ 495 install-libpsmodule_aHEADERS install-man install-strip \ 496 installcheck installcheck-am installdirs maintainer-clean \ 497 maintainer-clean-generic mostlyclean mostlyclean-compile \ 498 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ 399 499 tags uninstall uninstall-am uninstall-info-am \ 400 500 uninstall-libLIBRARIES uninstall-libpsmodule_aHEADERS -
trunk/psModules/src/pmFlatField.c
r1870 r2138 18 18 * @author Ross Harman, MHPCC 19 19 * 20 * @version $Revision: 1.1 4$ $Name: not supported by cvs2svn $21 * @date $Date: 2004- 09-23 23:33:54$20 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 21 * @date $Date: 2004-10-14 23:52:09 $ 22 22 * 23 23 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 30 30 #include<stdio.h> 31 31 #include<math.h> 32 #include <string.h> 32 33 33 34 #include "pslib.h" -
trunk/psModules/src/pmMaskBadPixels.c
r1874 r2138 19 19 * @author Ross Harman, MHPCC 20 20 * 21 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $22 * @date $Date: 2004- 09-24 01:34:43$21 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 22 * @date $Date: 2004-10-14 23:52:09 $ 23 23 * 24 24 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 78 78 79 79 // Check input image and its mask are not larger than mask 80 if(inImage->numRows >mask->numRows || inImage->numCols > mask->numCols) {80 if(inImage->numRows > mask->numRows || inImage->numCols > mask->numCols) { 81 81 psErrorMsg(PS_ERRORNAME_DOMAIN "pmMaskBadPixels", PS_ERR_BAD_PARAMETER_SIZE, true, 82 82 PS_ERRORTEXT_pmMaskBadPixels_SIZE_INPUT_IMAGE, -
trunk/psModules/test/Makefile.in
r2132 r2138 1 # Makefile.in generated by automake 1. 6.3 from Makefile.am.1 # Makefile.in generated by automake 1.8.3 from Makefile.am. 2 2 # @configure_input@ 3 3 4 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 20025 # Free Software Foundation, Inc.4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 5 # 2003, 2004 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 SHELL = @SHELL@ 16 17 SOURCES = $(tst_pmFlatField_SOURCES) $(tst_pmMaskBadPixels_SOURCES) $(tst_pmNonLinear_SOURCES) $(tst_pmSubtractBias_SOURCES) 17 18 18 19 srcdir = @srcdir@ 19 20 top_srcdir = @top_srcdir@ 20 21 VPATH = @srcdir@ 21 prefix = @prefix@22 exec_prefix = @exec_prefix@23 24 bindir = @bindir@25 sbindir = @sbindir@26 libexecdir = @libexecdir@27 datadir = @datadir@28 sysconfdir = @sysconfdir@29 sharedstatedir = @sharedstatedir@30 localstatedir = @localstatedir@31 libdir = @libdir@32 infodir = @infodir@33 mandir = @mandir@34 includedir = @includedir@35 oldincludedir = /usr/include36 22 pkgdatadir = $(datadir)/@PACKAGE@ 37 23 pkglibdir = $(libdir)/@PACKAGE@ 38 24 pkgincludedir = $(includedir)/@PACKAGE@ 39 25 top_builddir = .. 40 41 ACLOCAL = @ACLOCAL@42 AUTOCONF = @AUTOCONF@43 AUTOMAKE = @AUTOMAKE@44 AUTOHEADER = @AUTOHEADER@45 46 26 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 47 27 INSTALL = @INSTALL@ 48 INSTALL_PROGRAM = @INSTALL_PROGRAM@49 INSTALL_DATA = @INSTALL_DATA@50 28 install_sh_DATA = $(install_sh) -c -m 644 51 29 install_sh_PROGRAM = $(install_sh) -c 52 30 install_sh_SCRIPT = $(install_sh) -c 53 INSTALL_SCRIPT = @INSTALL_SCRIPT@54 31 INSTALL_HEADER = $(INSTALL_DATA) 55 transform = @program_transform_name@32 transform = $(program_transform_name) 56 33 NORMAL_INSTALL = : 57 34 PRE_INSTALL = : … … 60 37 PRE_UNINSTALL = : 61 38 POST_UNINSTALL = : 62 host_alias = @host_alias@63 39 host_triplet = @host@ 64 65 EXEEXT = @EXEEXT@ 66 OBJEXT = @OBJEXT@ 67 PATH_SEPARATOR = @PATH_SEPARATOR@ 68 AMTAR = @AMTAR@ 69 AS = @AS@ 70 AWK = @AWK@ 71 CC = @CC@ 72 CFLAGS = @CFLAGS@ 73 DEPDIR = @DEPDIR@ 74 DLLTOOL = @DLLTOOL@ 75 ECHO = @ECHO@ 76 GSL_CONFIG = @GSL_CONFIG@ 77 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 78 LIBTOOL = @LIBTOOL@ 79 LN_S = @LN_S@ 80 OBJDUMP = @OBJDUMP@ 81 PACKAGE = @PACKAGE@ 82 RANLIB = @RANLIB@ 83 STRIP = @STRIP@ 84 VERSION = @VERSION@ 85 am__include = @am__include@ 86 am__quote = @am__quote@ 87 install_sh = @install_sh@ 88 bin_PROGRAMS = tst_pmFlatField tst_pmMaskBadPixels tst_pmNonLinear tst_pmSubtractBias 89 90 tst_pmFlatField_SOURCES = tst_pmFlatField.c 91 tst_pmFlatField_LDFLAGS = -L../src -lpsmodule 92 93 tst_pmMaskBadPixels_SOURCES = tst_pmMaskBadPixels.c 94 tst_pmMaskBadPixels_LDFLAGS = -L../src -lpsmodule 95 96 tst_pmNonLinear_SOURCES = tst_pmNonLinear.c 97 tst_pmNonLinear_LDFLAGS = -L../src -lpsmodule 98 99 tst_pmSubtractBias_SOURCES = tst_pmSubtractBias.c 100 tst_pmSubtractBias_LDFLAGS = -L../src -lpsmodule 40 bin_PROGRAMS = tst_pmFlatField$(EXEEXT) tst_pmMaskBadPixels$(EXEEXT) \ 41 tst_pmNonLinear$(EXEEXT) tst_pmSubtractBias$(EXEEXT) 101 42 subdir = test 43 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 44 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 45 am__aclocal_m4_deps = $(top_srcdir)/configure.in 46 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 47 $(ACLOCAL_M4) 102 48 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 103 49 CONFIG_HEADER = $(top_builddir)/src/config.h 104 50 CONFIG_CLEAN_FILES = 105 bin_PROGRAMS = tst_pmFlatField$(EXEEXT) tst_pmMaskBadPixels$(EXEEXT) \ 106 tst_pmNonLinear$(EXEEXT) tst_pmSubtractBias$(EXEEXT)51 am__installdirs = "$(DESTDIR)$(bindir)" 52 binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) 107 53 PROGRAMS = $(bin_PROGRAMS) 108 109 54 am_tst_pmFlatField_OBJECTS = tst_pmFlatField.$(OBJEXT) 110 55 tst_pmFlatField_OBJECTS = $(am_tst_pmFlatField_OBJECTS) 111 56 tst_pmFlatField_LDADD = $(LDADD) 112 tst_pmFlatField_DEPENDENCIES =113 57 am_tst_pmMaskBadPixels_OBJECTS = tst_pmMaskBadPixels.$(OBJEXT) 114 58 tst_pmMaskBadPixels_OBJECTS = $(am_tst_pmMaskBadPixels_OBJECTS) 115 59 tst_pmMaskBadPixels_LDADD = $(LDADD) 116 tst_pmMaskBadPixels_DEPENDENCIES =117 60 am_tst_pmNonLinear_OBJECTS = tst_pmNonLinear.$(OBJEXT) 118 61 tst_pmNonLinear_OBJECTS = $(am_tst_pmNonLinear_OBJECTS) 119 62 tst_pmNonLinear_LDADD = $(LDADD) 120 tst_pmNonLinear_DEPENDENCIES =121 63 am_tst_pmSubtractBias_OBJECTS = tst_pmSubtractBias.$(OBJEXT) 122 64 tst_pmSubtractBias_OBJECTS = $(am_tst_pmSubtractBias_OBJECTS) 123 65 tst_pmSubtractBias_LDADD = $(LDADD) 124 tst_pmSubtractBias_DEPENDENCIES = 125 126 DEFS = @DEFS@ 127 DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/src 128 CPPFLAGS = @CPPFLAGS@ 129 LDFLAGS = @LDFLAGS@ 130 LIBS = @LIBS@ 66 DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/src 131 67 depcomp = $(SHELL) $(top_srcdir)/depcomp 132 68 am__depfiles_maybe = depfiles … … 137 73 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 138 74 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 139 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \ 140 $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 75 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \ 76 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ 77 $(AM_CFLAGS) $(CFLAGS) 141 78 CCLD = $(CC) 142 79 LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 143 80 $(AM_LDFLAGS) $(LDFLAGS) -o $@ 144 DIST_SOURCES = $(tst_pmFlatField_SOURCES) $(tst_pmMaskBadPixels_SOURCES) \81 SOURCES = $(tst_pmFlatField_SOURCES) $(tst_pmMaskBadPixels_SOURCES) \ 145 82 $(tst_pmNonLinear_SOURCES) $(tst_pmSubtractBias_SOURCES) 146 DIST_COMMON = Makefile.am Makefile.in 147 SOURCES = $(tst_pmFlatField_SOURCES) $(tst_pmMaskBadPixels_SOURCES) $(tst_pmNonLinear_SOURCES) $(tst_pmSubtractBias_SOURCES) 148 83 DIST_SOURCES = $(tst_pmFlatField_SOURCES) \ 84 $(tst_pmMaskBadPixels_SOURCES) $(tst_pmNonLinear_SOURCES) \ 85 $(tst_pmSubtractBias_SOURCES) 86 ETAGS = etags 87 CTAGS = ctags 88 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 89 ACLOCAL = @ACLOCAL@ 90 AMDEP_FALSE = @AMDEP_FALSE@ 91 AMDEP_TRUE = @AMDEP_TRUE@ 92 AMTAR = @AMTAR@ 93 AR = @AR@ 94 AUTOCONF = @AUTOCONF@ 95 AUTOHEADER = @AUTOHEADER@ 96 AUTOMAKE = @AUTOMAKE@ 97 AWK = @AWK@ 98 CC = @CC@ 99 CCDEPMODE = @CCDEPMODE@ 100 CFLAGS = @CFLAGS@ 101 CPP = @CPP@ 102 CPPFLAGS = @CPPFLAGS@ 103 CXX = @CXX@ 104 CXXCPP = @CXXCPP@ 105 CXXDEPMODE = @CXXDEPMODE@ 106 CXXFLAGS = @CXXFLAGS@ 107 CYGPATH_W = @CYGPATH_W@ 108 DEFS = @DEFS@ 109 DEPDIR = @DEPDIR@ 110 ECHO = @ECHO@ 111 ECHO_C = @ECHO_C@ 112 ECHO_N = @ECHO_N@ 113 ECHO_T = @ECHO_T@ 114 EGREP = @EGREP@ 115 EXEEXT = @EXEEXT@ 116 F77 = @F77@ 117 FFLAGS = @FFLAGS@ 118 GSL_CONFIG = @GSL_CONFIG@ 119 INSTALL_DATA = @INSTALL_DATA@ 120 INSTALL_PROGRAM = @INSTALL_PROGRAM@ 121 INSTALL_SCRIPT = @INSTALL_SCRIPT@ 122 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 123 LDFLAGS = @LDFLAGS@ 124 LIBOBJS = @LIBOBJS@ 125 LIBS = @LIBS@ 126 LIBTOOL = @LIBTOOL@ 127 LN_S = @LN_S@ 128 LTLIBOBJS = @LTLIBOBJS@ 129 MAKEINFO = @MAKEINFO@ 130 OBJEXT = @OBJEXT@ 131 PACKAGE = @PACKAGE@ 132 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ 133 PACKAGE_NAME = @PACKAGE_NAME@ 134 PACKAGE_STRING = @PACKAGE_STRING@ 135 PACKAGE_TARNAME = @PACKAGE_TARNAME@ 136 PACKAGE_VERSION = @PACKAGE_VERSION@ 137 PATH_SEPARATOR = @PATH_SEPARATOR@ 138 RANLIB = @RANLIB@ 139 SET_MAKE = @SET_MAKE@ 140 SHELL = @SHELL@ 141 STRIP = @STRIP@ 142 VERSION = @VERSION@ 143 ac_ct_AR = @ac_ct_AR@ 144 ac_ct_CC = @ac_ct_CC@ 145 ac_ct_CXX = @ac_ct_CXX@ 146 ac_ct_F77 = @ac_ct_F77@ 147 ac_ct_RANLIB = @ac_ct_RANLIB@ 148 ac_ct_STRIP = @ac_ct_STRIP@ 149 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ 150 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ 151 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ 152 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ 153 am__include = @am__include@ 154 am__leading_dot = @am__leading_dot@ 155 am__quote = @am__quote@ 156 bindir = @bindir@ 157 build = @build@ 158 build_alias = @build_alias@ 159 build_cpu = @build_cpu@ 160 build_os = @build_os@ 161 build_vendor = @build_vendor@ 162 datadir = @datadir@ 163 exec_prefix = @exec_prefix@ 164 host = @host@ 165 host_alias = @host_alias@ 166 host_cpu = @host_cpu@ 167 host_os = @host_os@ 168 host_vendor = @host_vendor@ 169 includedir = @includedir@ 170 infodir = @infodir@ 171 install_sh = @install_sh@ 172 libdir = @libdir@ 173 libexecdir = @libexecdir@ 174 localstatedir = @localstatedir@ 175 mandir = @mandir@ 176 mkdir_p = @mkdir_p@ 177 oldincludedir = @oldincludedir@ 178 prefix = @prefix@ 179 program_transform_name = @program_transform_name@ 180 sbindir = @sbindir@ 181 sharedstatedir = @sharedstatedir@ 182 sysconfdir = @sysconfdir@ 183 target_alias = @target_alias@ 184 tst_pmFlatField_SOURCES = tst_pmFlatField.c 185 tst_pmFlatField_LDFLAGS = -L../src -lpsmodule 186 tst_pmMaskBadPixels_SOURCES = tst_pmMaskBadPixels.c 187 tst_pmMaskBadPixels_LDFLAGS = -L../src -lpsmodule 188 tst_pmNonLinear_SOURCES = tst_pmNonLinear.c 189 tst_pmNonLinear_LDFLAGS = -L../src -lpsmodule 190 tst_pmSubtractBias_SOURCES = tst_pmSubtractBias.c 191 tst_pmSubtractBias_LDFLAGS = -L../src -lpsmodule 149 192 all: all-am 150 193 151 194 .SUFFIXES: 152 195 .SUFFIXES: .c .lo .o .obj 153 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 196 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) 197 @for dep in $?; do \ 198 case '$(am__configure_deps)' in \ 199 *$$dep*) \ 200 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ 201 && exit 0; \ 202 exit 1;; \ 203 esac; \ 204 done; \ 205 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu test/Makefile'; \ 154 206 cd $(top_srcdir) && \ 155 207 $(AUTOMAKE) --gnu test/Makefile 156 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 157 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) 158 binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) 208 .PRECIOUS: Makefile 209 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 210 @case '$?' in \ 211 *config.status*) \ 212 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ 213 *) \ 214 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ 215 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ 216 esac; 217 218 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) 219 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 220 221 $(top_srcdir)/configure: $(am__configure_deps) 222 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 223 $(ACLOCAL_M4): $(am__aclocal_m4_deps) 224 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 159 225 install-binPROGRAMS: $(bin_PROGRAMS) 160 226 @$(NORMAL_INSTALL) 161 $(mkinstalldirs) $(DESTDIR)$(bindir)227 test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" 162 228 @list='$(bin_PROGRAMS)'; for p in $$list; do \ 163 229 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ … … 166 232 ; then \ 167 233 f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ 168 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \169 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f; \234 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ 235 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ 170 236 else :; fi; \ 171 237 done … … 175 241 @list='$(bin_PROGRAMS)'; for p in $$list; do \ 176 242 f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ 177 echo " rm -f $(DESTDIR)$(bindir)/$$f"; \178 rm -f $(DESTDIR)$(bindir)/$$f; \243 echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ 244 rm -f "$(DESTDIR)$(bindir)/$$f"; \ 179 245 done 180 246 … … 199 265 200 266 mostlyclean-compile: 201 -rm -f *.$(OBJEXT) core *.core267 -rm -f *.$(OBJEXT) 202 268 203 269 distclean-compile: … … 209 275 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tst_pmSubtractBias.Po@am__quote@ 210 276 211 distclean-depend:212 -rm -rf ./$(DEPDIR)213 214 277 .c.o: 215 @AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 216 @AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ 217 @AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 218 $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$< 278 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ 279 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 280 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 281 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ 282 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 283 @am__fastdepCC_FALSE@ $(COMPILE) -c $< 219 284 220 285 .c.obj: 221 @AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 222 @AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ 223 @AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 224 $(COMPILE) -c `cygpath -w $<` 286 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ 287 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 288 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 289 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ 290 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 291 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` 225 292 226 293 .c.lo: 227 @AMDEP_TRUE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ 228 @AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@ 229 @AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 230 $(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$< 231 CCDEPMODE = @CCDEPMODE@ 294 @am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ 295 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 296 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ 297 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@ 298 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 299 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< 232 300 233 301 mostlyclean-libtool: … … 240 308 -rm -f libtool 241 309 uninstall-info-am: 242 243 ETAGS = etags244 ETAGSFLAGS =245 246 tags: TAGS247 310 248 311 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) … … 254 317 END { for (i in files) print i; }'`; \ 255 318 mkid -fID $$unique 319 tags: TAGS 256 320 257 321 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ … … 268 332 || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 269 333 $$tags $$unique 334 ctags: CTAGS 335 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 336 $(TAGS_FILES) $(LISP) 337 tags=; \ 338 here=`pwd`; \ 339 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 340 unique=`for i in $$list; do \ 341 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 342 done | \ 343 $(AWK) ' { files[$$0] = 1; } \ 344 END { for (i in files) print i; }'`; \ 345 test -z "$(CTAGS_ARGS)$$tags$$unique" \ 346 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ 347 $$tags $$unique 270 348 271 349 GTAGS: … … 275 353 276 354 distclean-tags: 277 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH 278 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 279 280 top_distdir = .. 281 distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) 355 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags 282 356 283 357 distdir: $(DISTFILES) 284 @list='$(DISTFILES)'; for file in $$list; do \ 358 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ 359 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ 360 list='$(DISTFILES)'; for file in $$list; do \ 361 case $$file in \ 362 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ 363 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ 364 esac; \ 285 365 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ 286 366 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ 287 367 if test "$$dir" != "$$file" && test "$$dir" != "."; then \ 288 368 dir="/$$dir"; \ 289 $(mk installdirs) "$(distdir)$$dir"; \369 $(mkdir_p) "$(distdir)$$dir"; \ 290 370 else \ 291 371 dir=''; \ … … 305 385 check: check-am 306 386 all-am: Makefile $(PROGRAMS) 307 308 387 installdirs: 309 $(mkinstalldirs) $(DESTDIR)$(bindir) 310 388 for dir in "$(DESTDIR)$(bindir)"; do \ 389 test -z "$$dir" || $(mkdir_p) "$$dir"; \ 390 done 311 391 install: install-am 312 392 install-exec: install-exec-am … … 320 400 install-strip: 321 401 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ 322 INSTALL_STRIP_FLAG=-s \402 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ 323 403 `test -z '$(STRIP)' || \ 324 404 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install … … 328 408 329 409 distclean-generic: 330 -rm -f Makefile$(CONFIG_CLEAN_FILES)410 -rm -f $(CONFIG_CLEAN_FILES) 331 411 332 412 maintainer-clean-generic: … … 338 418 339 419 distclean: distclean-am 340 341 distclean-am: clean-am distclean-compile distclean-depend \ 342 distclean-generic distclean-libtool distclean-tags 420 -rm -rf ./$(DEPDIR) 421 -rm -f Makefile 422 distclean-am: clean-am distclean-compile distclean-generic \ 423 distclean-libtool distclean-tags 343 424 344 425 dvi: dvi-am … … 346 427 dvi-am: 347 428 429 html: html-am 430 348 431 info: info-am 349 432 … … 361 444 362 445 maintainer-clean: maintainer-clean-am 363 446 -rm -rf ./$(DEPDIR) 447 -rm -f Makefile 364 448 maintainer-clean-am: distclean-am maintainer-clean-generic 365 449 … … 369 453 mostlyclean-libtool 370 454 455 pdf: pdf-am 456 457 pdf-am: 458 459 ps: ps-am 460 461 ps-am: 462 371 463 uninstall-am: uninstall-binPROGRAMS uninstall-info-am 372 464 373 .PHONY: GTAGS all all-am check check-am clean clean-binPROGRAMS \374 clean-generic clean-libtool distclean distclean-compile \375 distclean- depend distclean-generic distclean-libtool\376 d istclean-tags distdir dvi dvi-am info info-am install\377 install- am install-binPROGRAMS install-data install-data-am\378 install-exec install-exec-am install-info install-info-am\379 install- man install-strip installcheck installcheck-am\380 installdirs maintainer-clean maintainer-clean-generic\381 mostlyclean mostlyclean-compile mostlyclean-generic\382 mostlyclean-libtooltags uninstall uninstall-am \465 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ 466 clean-generic clean-libtool ctags distclean distclean-compile \ 467 distclean-generic distclean-libtool distclean-tags distdir dvi \ 468 dvi-am html html-am info info-am install install-am \ 469 install-binPROGRAMS install-data install-data-am install-exec \ 470 install-exec-am install-info install-info-am install-man \ 471 install-strip installcheck installcheck-am installdirs \ 472 maintainer-clean maintainer-clean-generic mostlyclean \ 473 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ 474 pdf pdf-am ps ps-am tags uninstall uninstall-am \ 383 475 uninstall-binPROGRAMS uninstall-info-am 384 476 -
trunk/psModules/test/tst_pmMaskBadPixels.c
r1888 r2138 17 17 * @author Ross Harman, MHPCC 18 18 * 19 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $20 * @date $Date: 2004- 09-24 23:42:28$19 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 20 * @date $Date: 2004-10-14 23:52:09 $ 21 21 * 22 22 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 56 56 57 57 58 static int testMaskBadPixels(void); 58 static int testMaskBadPixels1(void); 59 static int testMaskBadPixels2(void); 60 static int testMaskBadPixels3(void); 61 static int testMaskBadPixels4(void); 62 static int testMaskBadPixels5(void); 63 static int testMaskBadPixels6(void); 64 static int testMaskBadPixels7(void); 65 static int testMaskBadPixels8(void); 66 static int testMaskBadPixels9(void); 67 static int testMaskBadPixels10(void); 68 static int testMaskBadPixels11(void); 59 69 60 70 61 71 testDescription tests[] = { 62 {testMaskBadPixels, 885, "pmMaskBadPixels", 0, false}, 72 {testMaskBadPixels1, 885, "pmMaskBadPixels - Create mask based on maskVal argument", 0, false}, 73 {testMaskBadPixels2, 885, "pmMaskBadPixels - Create mask based on saturation argument", 0, false}, 74 {testMaskBadPixels3, 885, "pmMaskBadPixels - Create mask based on growVal and grow arguments", 0, false}, 75 {testMaskBadPixels4, 885, "pmMaskBadPixels - Auto create mask based on maskVal argument", 0, false}, 76 {testMaskBadPixels5, 885, "pmMaskBadPixels - Attempt to use null mask", 0, false}, 77 {testMaskBadPixels6, 885, "pmMaskBadPixels - Attempt tp use null input image", 0, false}, 78 {testMaskBadPixels7, 885, "pmMaskBadPixels - Attempt to use input image bigger than mask", 0, false}, 79 {testMaskBadPixels8, 885, "pmMaskBadPixels - Attempt to use input image mask bigger than mask", 0, false}, 80 {testMaskBadPixels9, 885, "pmMaskBadPixels - Attempt to use offset greater than input image", 0, false}, 81 {testMaskBadPixels10, 885, "pmMaskBadPixels - Attempt to use complex input image", 0, false}, 82 {testMaskBadPixels11, 885, "pmMaskBadPixels - Attempt to use non-mask type mask image", 0, false}, 63 83 {NULL} 64 84 }; … … 71 91 72 92 73 int testMaskBadPixels( void ) 74 { 75 76 93 int testMaskBadPixels1( void ) 94 { 77 95 // Test A - Create mask based on maskVal argument 78 printPositiveTestHeader(stdout, "pmMaskBadPixels", "Test A - Create mask based on maskVal argument");79 96 CREATE_AND_SET_IMAGE(inImage1,F64,0,50,50); 80 97 CREATE_AND_SET_IMAGE(mask1,U8,0,50,50) … … 87 104 psFree(inReadout); 88 105 psFree(inImage1); 89 printFooter(stdout, "pmMaskBadPixels", "Test A - Create mask based on maskVal argument", true); 90 printf("\n\n\n"); 91 92 106 107 return 0; 108 } 109 110 int testMaskBadPixels2( void ) 111 { 93 112 // Test B - Create mask based on saturation argument 94 printPositiveTestHeader(stdout, "pmMaskBadPixels", "Test B - Create mask based on saturation argument");95 113 CREATE_AND_SET_IMAGE(inImage2,F64,150.0,50,50); 96 114 CREATE_AND_SET_IMAGE(mask2,U8,0,50,50) … … 102 120 psFree(inReadout2); 103 121 psFree(inImage2); 104 printFooter(stdout, "pmMaskBadPixels", "Test B - Create mask based on saturation argument", true); 105 printf("\n\n\n"); 106 107 122 123 return 0; 124 } 125 126 int testMaskBadPixels3( void ) 127 { 108 128 // Test C - Create mask based on growVal and grow arguments 109 printPositiveTestHeader(stdout, "pmMaskBadPixels", "Test C - Create mask based on growVal and grow arguments");110 129 CREATE_AND_SET_IMAGE(inImage3,F64,50.0,50,50); 111 130 CREATE_AND_SET_IMAGE(mask3,U8,0,50,50) … … 120 139 psFree(inReadout3); 121 140 psFree(inImage3); 122 printFooter(stdout, "pmMaskBadPixels", "Test C - Create mask based on growVal and grow arguments", true); 123 printf("\n\n\n"); 124 125 141 142 return 0; 143 } 144 145 int testMaskBadPixels4( void ) 146 { 126 147 // Test D - Auto Create mask based on maskVal argument 127 printPositiveTestHeader(stdout, "pmMaskBadPixels", "Test D - Auto create mask based on maskVal argument");128 148 CREATE_AND_SET_IMAGE(inImage4,F64,50.0,50,50); 129 149 CREATE_AND_SET_IMAGE(mask4,U8,0,50,50) … … 138 158 psFree(inReadout4); 139 159 psFree(inImage4); 140 printFooter(stdout, "pmMaskBadPixels", "Test D - Auto create mask based on maskVal argument", true); 141 printf("\n\n\n"); 142 143 160 161 return 0; 162 } 163 164 int testMaskBadPixels5( void ) 165 { 144 166 // Test E - Attempt to use null mask 145 printNegativeTestHeader(stdout,"pmMaskBadPixels", "Test E - Attempt to use null mask",146 "Null not allowed for mask image", 0);147 167 CREATE_AND_SET_IMAGE(inImage5,F64,50.0,50,50); 148 168 psReadout *inReadout5 = psReadoutAlloc(0, 0, inImage5); 149 pmMaskBadPixels(inReadout 4, NULL, 0, 100.0, 1, 10);169 pmMaskBadPixels(inReadout5, NULL, 0, 100.0, 1, 10); 150 170 psFree(inReadout5); 151 171 psFree(inImage5); 152 printFooter(stdout, "pmMaskBadPixels", "Test E - Attempt to use null mask", true); 153 printf("\n\n\n"); 154 155 172 173 return 0; 174 } 175 176 int testMaskBadPixels6( void ) 177 { 156 178 // Test F - Attempt tp use null input image 157 printNegativeTestHeader(stdout,"pmMaskBadPixels", "Test F - Attempt tp use null input image",158 "Null not allowed for input image", 0);159 160 179 CREATE_AND_SET_IMAGE(mask6,U8,0,50,50) 161 180 psReadout *inReadout6 = psReadoutAlloc(0, 0, NULL); … … 163 182 pmMaskBadPixels(inReadout6, mask6, 0, 100.0, 1, 10); 164 183 psFree(inReadout6); 165 printFooter(stdout, "pmMaskBadPixels", "Test F - Attempt tp use null input image", true); 166 printf("\n\n\n"); 167 168 184 185 return 0; 186 } 187 188 int testMaskBadPixels7( void ) 189 { 169 190 // Test G - Attempt to use input image bigger than mask 170 printNegativeTestHeader(stdout,"pmMaskBadPixels", "Test G - Attempt to use input image bigger than mask",171 "Input image size exceeds that of mask image", 0);172 191 CREATE_AND_SET_IMAGE(inImage7,F64,0.0,60,60); 173 192 CREATE_AND_SET_IMAGE(mask7,U8,0,50,50) 174 193 CREATE_AND_SET_IMAGE(mask7i,U8,0,50,50) 175 194 psReadout *inReadout7 = psReadoutAlloc(0, 0, inImage7); 176 inReadout 4->mask = mask7i;177 pmMaskBadPixels(inReadout 4, mask7, 0, 100.0, 1, 10);195 inReadout7->mask = mask7i; 196 pmMaskBadPixels(inReadout7, mask7, 0, 100.0, 1, 10); 178 197 psFree(mask7); 179 198 psFree(inReadout7); 180 199 psFree(inImage7); 181 printFooter(stdout, "pmMaskBadPixels", "Test G - Attempt to use input image bigger than mask", true); 182 printf("\n\n\n"); 183 184 200 201 return 0; 202 } 203 204 int testMaskBadPixels8( void ) 205 { 185 206 // Test H - Attempt to use input image mask bigger than mask 186 printNegativeTestHeader(stdout,"pmMaskBadPixels", "Test H - Attempt to use input image mask bigger than mask",187 "Input image mask size exceeds that of mask image", 0);188 207 CREATE_AND_SET_IMAGE(inImage8,F64,0.0,50,50); 189 208 CREATE_AND_SET_IMAGE(mask8,U8,0,50,50) … … 195 214 psFree(inReadout8); 196 215 psFree(inImage8); 197 printFooter(stdout, "pmMaskBadPixels", "Test H - Attempt to use input image mask bigger than mask", true); 198 printf("\n\n\n"); 199 200 216 217 return 0; 218 } 219 220 int testMaskBadPixels9( void ) 221 { 201 222 // Test I - Attempt to use offset greater than input image 202 printNegativeTestHeader(stdout,"pmMaskBadPixels", "Test I - Attempt to use offset greater than input image",203 "Total offset >= input image size", 0);204 223 CREATE_AND_SET_IMAGE(inImage9,F64,0.0,50,50); 205 224 CREATE_AND_SET_IMAGE(mask9,U8,0,50,50) … … 207 226 psReadout *inReadout9 = psReadoutAlloc(0, 0, inImage9); 208 227 inReadout9->mask = mask9i; 209 *(int*)&inReadout ->col0 = 150;210 *(int*)&inReadout ->row0 = 150;228 *(int*)&inReadout9->col0 = 150; 229 *(int*)&inReadout9->row0 = 150; 211 230 pmMaskBadPixels(inReadout9, mask9, 0, 100.0, 1, 10); 212 231 psFree(mask9); 213 232 psFree(inReadout9); 214 233 psFree(inImage9); 215 printFooter(stdout, "pmMaskBadPixels", "Test I - Attempt to use offset greater than input image", true); 216 printf("\n\n\n"); 217 218 234 235 return 0; 236 } 237 238 int testMaskBadPixels10( void ) 239 { 219 240 // Test J - Attempt to use complex input image 220 printNegativeTestHeader(stdout,"pmMaskBadPixels", "Test J - Attempt to use complex input image",221 "Complex types not allowed for input image", 0);222 241 CREATE_AND_SET_IMAGE(inImage10,C64,50.0,50,50); 223 242 CREATE_AND_SET_IMAGE(mask10,U8,0,50,50) … … 229 248 psFree(inReadout10); 230 249 psFree(inImage10); 231 printFooter(stdout, "pmMaskBadPixels", "Test J - Attempt to use complex input image", true); 232 printf("\n\n\n"); 233 234 250 251 return 0; 252 } 253 254 int testMaskBadPixels11( void ) 255 { 235 256 // Test K - Attempt to use non-mask type mask image 236 printNegativeTestHeader(stdout,"pmMaskBadPixels", "Test K - Attempt to use non-mask type mask image",237 "Mask must be PS_TYPE_MASK type", 0);238 257 CREATE_AND_SET_IMAGE(inImage11,F64,50.0,50,50); 239 258 CREATE_AND_SET_IMAGE(mask11,F64,0,50,50) 240 259 CREATE_AND_SET_IMAGE(mask11i,U8,0,50,50) 241 psReadout *inReadout11 = psReadoutAlloc(0, 0, inImage1 0);260 psReadout *inReadout11 = psReadoutAlloc(0, 0, inImage11); 242 261 inReadout11->mask = mask11i; 243 262 pmMaskBadPixels(inReadout11, mask11, 0, 100.0, 1, 10); … … 245 264 psFree(inReadout11); 246 265 psFree(inImage11); 247 printFooter(stdout, "pmMaskBadPixels", "Test K - Attempt to use non-mask type mask image", true); 248 printf("\n\n\n"); 249 250 return 0; 251 } 266 267 return 0; 268 } 269 -
trunk/psModules/test/tst_pmNonLinear.c
r2128 r2138 13 13 * @author GLG, MHPCC 14 14 * 15 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $16 * @date $Date: 2004-10-14 2 0:49:53$15 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2004-10-14 23:52:09 $ 17 17 * 18 18 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 56 56 } 57 57 58 printPositiveTestHeader(stdout, "pmNonLinear", "Simple polynomial");59 58 myReadout = pmNonLinearityPolynomial(myReadout, myPoly); 60 59 for (i=0;i<numRows;i++) { … … 72 71 psFree(myReadout); 73 72 psFree(myPoly); 74 printFooter(stdout, "pmNonLinear", "Simple polynomial", true);75 73 return(testStatus); 76 74 } … … 112 110 } 113 111 114 printPositiveTestHeader(stdout, "pmNonLinear", "Simple polynomial");115 112 myReadout = pmNonLinearityLookup(myReadout, in, out); 116 113 for (i=0;i<numRows;i++) { … … 129 126 psFree(in); 130 127 psFree(out); 131 printFooter(stdout, "pmNonLinear", "Simple polynomial", true);132 128 return(testStatus); 133 129 } -
trunk/psModules/test/tst_pmSubtractBias.c
r2133 r2138 7 7 * @author GLG, MHPCC 8 8 * 9 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $10 * @date $Date: 2004-10-14 2 2:54:14$9 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2004-10-14 23:52:09 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 19 19 static int test01(void); 20 20 testDescription tests[] = { 21 {test00, 000, "pmSubtractBias ", 0, false},22 {test01, 000, "pmSubtractBias ", 0, false},21 {test00, 000, "pmSubtractBias - Full Bias Frame", 0, false}, 22 {test01, 000, "pmSubtractBias - Multiple Overscan Frames", 0, false}, 23 23 {NULL} 24 24 }; … … 51 51 } 52 52 53 printPositiveTestHeader(stdout, "pmSubtractBias", "Full Bias Frame");54 55 53 myReadout = pmSubtractBias(myReadout, NULL, NULL, PM_OVERSCAN_NONE, NULL, 56 54 0, PM_FIT_NONE, myBias); … … 70 68 psFree(myReadout); 71 69 psFree(myBias); 72 printFooter(stdout, "pmSubtractBias", "Full Bias Frame", true);73 70 return(testStatus); 74 71 } … … 114 111 psListAdd(list, PS_LIST_HEAD, tmpImage4); 115 112 116 printPositiveTestHeader(stdout, "pmSubtractBias", "Multiple Overscan Frames");117 118 113 myReadout = pmSubtractBias(myReadout, NULL, list, PM_OVERSCAN_ALL, stat, 119 114 0, PM_FIT_NONE, NULL); … … 138 133 psFree(list); 139 134 140 printFooter(stdout, "pmSubtractBias", "Multiple Overscan Frames", true);141 135 return(testStatus); 142 136 }
Note:
See TracChangeset
for help on using the changeset viewer.
