1# generated automatically by aclocal 1.10 -*- Autoconf -*- 2 3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4# 2005, 2006 Free Software Foundation, Inc. 5# This file is free software; the Free Software Foundation 6# gives unlimited permission to copy and/or distribute it, 7# with or without modifications, as long as this notice is preserved. 8 9# This program is distributed in the hope that it will be useful, 10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12# PARTICULAR PURPOSE. 13 14 15# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. 16# 17# This file is free software; the Free Software Foundation 18# gives unlimited permission to copy and/or distribute it, 19# with or without modifications, as long as this notice is preserved. 20 21# AM_AUTOMAKE_VERSION(VERSION) 22# ---------------------------- 23# Automake X.Y traces this macro to ensure aclocal.m4 has been 24# generated from the m4 files accompanying Automake X.Y. 25# (This private macro should not be called outside this file.) 26AC_DEFUN([AM_AUTOMAKE_VERSION], 27[am__api_version='1.10' 28dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 29dnl require some minimum version. Point them to the right macro. 30m4_if([$1], [1.10], [], 31 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 32]) 33 34# _AM_AUTOCONF_VERSION(VERSION) 35# ----------------------------- 36# aclocal traces this macro to find the Autoconf version. 37# This is a private macro too. Using m4_define simplifies 38# the logic in aclocal, which can simply ignore this definition. 39m4_define([_AM_AUTOCONF_VERSION], []) 40 41# AM_SET_CURRENT_AUTOMAKE_VERSION 42# ------------------------------- 43# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 44# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. 45AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 46[AM_AUTOMAKE_VERSION([1.10])dnl 47_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)]) 48 49# AM_AUX_DIR_EXPAND -*- Autoconf -*- 50 51# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 52# 53# This file is free software; the Free Software Foundation 54# gives unlimited permission to copy and/or distribute it, 55# with or without modifications, as long as this notice is preserved. 56 57# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 58# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 59# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 60# 61# Of course, Automake must honor this variable whenever it calls a 62# tool from the auxiliary directory. The problem is that $srcdir (and 63# therefore $ac_aux_dir as well) can be either absolute or relative, 64# depending on how configure is run. This is pretty annoying, since 65# it makes $ac_aux_dir quite unusable in subdirectories: in the top 66# source directory, any form will work fine, but in subdirectories a 67# relative path needs to be adjusted first. 68# 69# $ac_aux_dir/missing 70# fails when called from a subdirectory if $ac_aux_dir is relative 71# $top_srcdir/$ac_aux_dir/missing 72# fails if $ac_aux_dir is absolute, 73# fails when called from a subdirectory in a VPATH build with 74# a relative $ac_aux_dir 75# 76# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 77# are both prefixed by $srcdir. In an in-source build this is usually 78# harmless because $srcdir is `.', but things will broke when you 79# start a VPATH build or use an absolute $srcdir. 80# 81# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 82# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 83# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 84# and then we would define $MISSING as 85# MISSING="\${SHELL} $am_aux_dir/missing" 86# This will work as long as MISSING is not called from configure, because 87# unfortunately $(top_srcdir) has no meaning in configure. 88# However there are other variables, like CC, which are often used in 89# configure, and could therefore not use this "fixed" $ac_aux_dir. 90# 91# Another solution, used here, is to always expand $ac_aux_dir to an 92# absolute PATH. The drawback is that using absolute paths prevent a 93# configured tree to be moved without reconfiguration. 94 95AC_DEFUN([AM_AUX_DIR_EXPAND], 96[dnl Rely on autoconf to set up CDPATH properly. 97AC_PREREQ([2.50])dnl 98# expand $ac_aux_dir to an absolute path 99am_aux_dir=`cd $ac_aux_dir && pwd` 100]) 101 102# AM_CONDITIONAL -*- Autoconf -*- 103 104# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 105# Free Software Foundation, Inc. 106# 107# This file is free software; the Free Software Foundation 108# gives unlimited permission to copy and/or distribute it, 109# with or without modifications, as long as this notice is preserved. 110 111# serial 8 112 113# AM_CONDITIONAL(NAME, SHELL-CONDITION) 114# ------------------------------------- 115# Define a conditional. 116AC_DEFUN([AM_CONDITIONAL], 117[AC_PREREQ(2.52)dnl 118 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 119 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 120AC_SUBST([$1_TRUE])dnl 121AC_SUBST([$1_FALSE])dnl 122_AM_SUBST_NOTMAKE([$1_TRUE])dnl 123_AM_SUBST_NOTMAKE([$1_FALSE])dnl 124if $2; then 125 $1_TRUE= 126 $1_FALSE='#' 127else 128 $1_TRUE='#' 129 $1_FALSE= 130fi 131AC_CONFIG_COMMANDS_PRE( 132[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 133 AC_MSG_ERROR([[conditional "$1" was never defined. 134Usually this means the macro was only invoked conditionally.]]) 135fi])]) 136 137# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 138# Free Software Foundation, Inc. 139# 140# This file is free software; the Free Software Foundation 141# gives unlimited permission to copy and/or distribute it, 142# with or without modifications, as long as this notice is preserved. 143 144# serial 9 145 146# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 147# written in clear, in which case automake, when reading aclocal.m4, 148# will think it sees a *use*, and therefore will trigger all it's 149# C support machinery. Also note that it means that autoscan, seeing 150# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 151 152 153# _AM_DEPENDENCIES(NAME) 154# ---------------------- 155# See how the compiler implements dependency checking. 156# NAME is "CC", "CXX", "GCJ", or "OBJC". 157# We try a few techniques and use that to set a single cache variable. 158# 159# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 160# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 161# dependency, and given that the user is not expected to run this macro, 162# just rely on AC_PROG_CC. 163AC_DEFUN([_AM_DEPENDENCIES], 164[AC_REQUIRE([AM_SET_DEPDIR])dnl 165AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 166AC_REQUIRE([AM_MAKE_INCLUDE])dnl 167AC_REQUIRE([AM_DEP_TRACK])dnl 168 169ifelse([$1], CC, [depcc="$CC" am_compiler_list=], 170 [$1], CXX, [depcc="$CXX" am_compiler_list=], 171 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 172 [$1], UPC, [depcc="$UPC" am_compiler_list=], 173 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 174 [depcc="$$1" am_compiler_list=]) 175 176AC_CACHE_CHECK([dependency style of $depcc], 177 [am_cv_$1_dependencies_compiler_type], 178[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 179 # We make a subdir and do the tests there. Otherwise we can end up 180 # making bogus files that we don't know about and never remove. For 181 # instance it was reported that on HP-UX the gcc test will end up 182 # making a dummy file named `D' -- because `-MD' means `put the output 183 # in D'. 184 mkdir conftest.dir 185 # Copy depcomp to subdir because otherwise we won't find it if we're 186 # using a relative directory. 187 cp "$am_depcomp" conftest.dir 188 cd conftest.dir 189 # We will build objects and dependencies in a subdirectory because 190 # it helps to detect inapplicable dependency modes. For instance 191 # both Tru64's cc and ICC support -MD to output dependencies as a 192 # side effect of compilation, but ICC will put the dependencies in 193 # the current directory while Tru64 will put them in the object 194 # directory. 195 mkdir sub 196 197 am_cv_$1_dependencies_compiler_type=none 198 if test "$am_compiler_list" = ""; then 199 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 200 fi 201 for depmode in $am_compiler_list; do 202 # Setup a source with many dependencies, because some compilers 203 # like to wrap large dependency lists on column 80 (with \), and 204 # we should not choose a depcomp mode which is confused by this. 205 # 206 # We need to recreate these files for each test, as the compiler may 207 # overwrite some of them when testing with obscure command lines. 208 # This happens at least with the AIX C compiler. 209 : > sub/conftest.c 210 for i in 1 2 3 4 5 6; do 211 echo '#include "conftst'$i'.h"' >> sub/conftest.c 212 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 213 # Solaris 8's {/usr,}/bin/sh. 214 touch sub/conftst$i.h 215 done 216 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 217 218 case $depmode in 219 nosideeffect) 220 # after this tag, mechanisms are not by side-effect, so they'll 221 # only be used when explicitly requested 222 if test "x$enable_dependency_tracking" = xyes; then 223 continue 224 else 225 break 226 fi 227 ;; 228 none) break ;; 229 esac 230 # We check with `-c' and `-o' for the sake of the "dashmstdout" 231 # mode. It turns out that the SunPro C++ compiler does not properly 232 # handle `-M -o', and we need to detect this. 233 if depmode=$depmode \ 234 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 235 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 236 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 237 >/dev/null 2>conftest.err && 238 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 239 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 240 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 241 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 242 # icc doesn't choke on unknown options, it will just issue warnings 243 # or remarks (even with -Werror). So we grep stderr for any message 244 # that says an option was ignored or not supported. 245 # When given -MP, icc 7.0 and 7.1 complain thusly: 246 # icc: Command line warning: ignoring option '-M'; no argument required 247 # The diagnosis changed in icc 8.0: 248 # icc: Command line remark: option '-MP' not supported 249 if (grep 'ignoring option' conftest.err || 250 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 251 am_cv_$1_dependencies_compiler_type=$depmode 252 break 253 fi 254 fi 255 done 256 257 cd .. 258 rm -rf conftest.dir 259else 260 am_cv_$1_dependencies_compiler_type=none 261fi 262]) 263AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 264AM_CONDITIONAL([am__fastdep$1], [ 265 test "x$enable_dependency_tracking" != xno \ 266 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 267]) 268 269 270# AM_SET_DEPDIR 271# ------------- 272# Choose a directory name for dependency files. 273# This macro is AC_REQUIREd in _AM_DEPENDENCIES 274AC_DEFUN([AM_SET_DEPDIR], 275[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 276AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 277]) 278 279 280# AM_DEP_TRACK 281# ------------ 282AC_DEFUN([AM_DEP_TRACK], 283[AC_ARG_ENABLE(dependency-tracking, 284[ --disable-dependency-tracking speeds up one-time build 285 --enable-dependency-tracking do not reject slow dependency extractors]) 286if test "x$enable_dependency_tracking" != xno; then 287 am_depcomp="$ac_aux_dir/depcomp" 288 AMDEPBACKSLASH='\' 289fi 290AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 291AC_SUBST([AMDEPBACKSLASH])dnl 292_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 293]) 294 295# Generate code to set up dependency tracking. -*- Autoconf -*- 296 297# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 298# Free Software Foundation, Inc. 299# 300# This file is free software; the Free Software Foundation 301# gives unlimited permission to copy and/or distribute it, 302# with or without modifications, as long as this notice is preserved. 303 304#serial 3 305 306# _AM_OUTPUT_DEPENDENCY_COMMANDS 307# ------------------------------ 308AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 309[for mf in $CONFIG_FILES; do 310 # Strip MF so we end up with the name of the file. 311 mf=`echo "$mf" | sed -e 's/:.*$//'` 312 # Check whether this is an Automake generated Makefile or not. 313 # We used to match only the files named `Makefile.in', but 314 # some people rename them; so instead we look at the file content. 315 # Grep'ing the first line is not enough: some people post-process 316 # each Makefile.in and add a new line on top of each file to say so. 317 # Grep'ing the whole file is not good either: AIX grep has a line 318 # limit of 2048, but all sed's we know have understand at least 4000. 319 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 320 dirpart=`AS_DIRNAME("$mf")` 321 else 322 continue 323 fi 324 # Extract the definition of DEPDIR, am__include, and am__quote 325 # from the Makefile without running `make'. 326 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 327 test -z "$DEPDIR" && continue 328 am__include=`sed -n 's/^am__include = //p' < "$mf"` 329 test -z "am__include" && continue 330 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 331 # When using ansi2knr, U may be empty or an underscore; expand it 332 U=`sed -n 's/^U = //p' < "$mf"` 333 # Find all dependency output files, they are included files with 334 # $(DEPDIR) in their names. We invoke sed twice because it is the 335 # simplest approach to changing $(DEPDIR) to its actual value in the 336 # expansion. 337 for file in `sed -n " 338 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 339 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 340 # Make sure the directory exists. 341 test -f "$dirpart/$file" && continue 342 fdir=`AS_DIRNAME(["$file"])` 343 AS_MKDIR_P([$dirpart/$fdir]) 344 # echo "creating $dirpart/$file" 345 echo '# dummy' > "$dirpart/$file" 346 done 347done 348])# _AM_OUTPUT_DEPENDENCY_COMMANDS 349 350 351# AM_OUTPUT_DEPENDENCY_COMMANDS 352# ----------------------------- 353# This macro should only be invoked once -- use via AC_REQUIRE. 354# 355# This code is only required when automatic dependency tracking 356# is enabled. FIXME. This creates each `.P' file that we will 357# need in order to bootstrap the dependency handling code. 358AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 359[AC_CONFIG_COMMANDS([depfiles], 360 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 361 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 362]) 363 364# Do all the work for Automake. -*- Autoconf -*- 365 366# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 367# 2005, 2006 Free Software Foundation, Inc. 368# 369# This file is free software; the Free Software Foundation 370# gives unlimited permission to copy and/or distribute it, 371# with or without modifications, as long as this notice is preserved. 372 373# serial 12 374 375# This macro actually does too much. Some checks are only needed if 376# your package does certain things. But this isn't really a big deal. 377 378# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 379# AM_INIT_AUTOMAKE([OPTIONS]) 380# ----------------------------------------------- 381# The call with PACKAGE and VERSION arguments is the old style 382# call (pre autoconf-2.50), which is being phased out. PACKAGE 383# and VERSION should now be passed to AC_INIT and removed from 384# the call to AM_INIT_AUTOMAKE. 385# We support both call styles for the transition. After 386# the next Automake release, Autoconf can make the AC_INIT 387# arguments mandatory, and then we can depend on a new Autoconf 388# release and drop the old call support. 389AC_DEFUN([AM_INIT_AUTOMAKE], 390[AC_PREREQ([2.60])dnl 391dnl Autoconf wants to disallow AM_ names. We explicitly allow 392dnl the ones we care about. 393m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 394AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 395AC_REQUIRE([AC_PROG_INSTALL])dnl 396if test "`cd $srcdir && pwd`" != "`pwd`"; then 397 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 398 # is not polluted with repeated "-I." 399 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 400 # test to see if srcdir already configured 401 if test -f $srcdir/config.status; then 402 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 403 fi 404fi 405 406# test whether we have cygpath 407if test -z "$CYGPATH_W"; then 408 if (cygpath --version) >/dev/null 2>/dev/null; then 409 CYGPATH_W='cygpath -w' 410 else 411 CYGPATH_W=echo 412 fi 413fi 414AC_SUBST([CYGPATH_W]) 415 416# Define the identity of the package. 417dnl Distinguish between old-style and new-style calls. 418m4_ifval([$2], 419[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 420 AC_SUBST([PACKAGE], [$1])dnl 421 AC_SUBST([VERSION], [$2])], 422[_AM_SET_OPTIONS([$1])dnl 423dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 424m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 425 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 426 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 427 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 428 429_AM_IF_OPTION([no-define],, 430[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 431 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 432 433# Some tools Automake needs. 434AC_REQUIRE([AM_SANITY_CHECK])dnl 435AC_REQUIRE([AC_ARG_PROGRAM])dnl 436AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 437AM_MISSING_PROG(AUTOCONF, autoconf) 438AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 439AM_MISSING_PROG(AUTOHEADER, autoheader) 440AM_MISSING_PROG(MAKEINFO, makeinfo) 441AM_PROG_INSTALL_SH 442AM_PROG_INSTALL_STRIP 443AC_REQUIRE([AM_PROG_MKDIR_P])dnl 444# We need awk for the "check" target. The system "awk" is bad on 445# some platforms. 446AC_REQUIRE([AC_PROG_AWK])dnl 447AC_REQUIRE([AC_PROG_MAKE_SET])dnl 448AC_REQUIRE([AM_SET_LEADING_DOT])dnl 449_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 450 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 451 [_AM_PROG_TAR([v7])])]) 452_AM_IF_OPTION([no-dependencies],, 453[AC_PROVIDE_IFELSE([AC_PROG_CC], 454 [_AM_DEPENDENCIES(CC)], 455 [define([AC_PROG_CC], 456 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 457AC_PROVIDE_IFELSE([AC_PROG_CXX], 458 [_AM_DEPENDENCIES(CXX)], 459 [define([AC_PROG_CXX], 460 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 461AC_PROVIDE_IFELSE([AC_PROG_OBJC], 462 [_AM_DEPENDENCIES(OBJC)], 463 [define([AC_PROG_OBJC], 464 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 465]) 466]) 467 468 469# When config.status generates a header, we must update the stamp-h file. 470# This file resides in the same directory as the config header 471# that is generated. The stamp files are numbered to have different names. 472 473# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 474# loop where config.status creates the headers, so we can generate 475# our stamp files there. 476AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 477[# Compute $1's index in $config_headers. 478_am_stamp_count=1 479for _am_header in $config_headers :; do 480 case $_am_header in 481 $1 | $1:* ) 482 break ;; 483 * ) 484 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 485 esac 486done 487echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) 488 489# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 490# 491# This file is free software; the Free Software Foundation 492# gives unlimited permission to copy and/or distribute it, 493# with or without modifications, as long as this notice is preserved. 494 495# AM_PROG_INSTALL_SH 496# ------------------ 497# Define $install_sh. 498AC_DEFUN([AM_PROG_INSTALL_SH], 499[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 500install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 501AC_SUBST(install_sh)]) 502 503# Copyright (C) 2003, 2005 Free Software Foundation, Inc. 504# 505# This file is free software; the Free Software Foundation 506# gives unlimited permission to copy and/or distribute it, 507# with or without modifications, as long as this notice is preserved. 508 509# serial 2 510 511# Check whether the underlying file-system supports filenames 512# with a leading dot. For instance MS-DOS doesn't. 513AC_DEFUN([AM_SET_LEADING_DOT], 514[rm -rf .tst 2>/dev/null 515mkdir .tst 2>/dev/null 516if test -d .tst; then 517 am__leading_dot=. 518else 519 am__leading_dot=_ 520fi 521rmdir .tst 2>/dev/null 522AC_SUBST([am__leading_dot])]) 523 524# Check to see how 'make' treats includes. -*- Autoconf -*- 525 526# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. 527# 528# This file is free software; the Free Software Foundation 529# gives unlimited permission to copy and/or distribute it, 530# with or without modifications, as long as this notice is preserved. 531 532# serial 3 533 534# AM_MAKE_INCLUDE() 535# ----------------- 536# Check to see how make treats includes. 537AC_DEFUN([AM_MAKE_INCLUDE], 538[am_make=${MAKE-make} 539cat > confinc << 'END' 540am__doit: 541 @echo done 542.PHONY: am__doit 543END 544# If we don't find an include directive, just comment out the code. 545AC_MSG_CHECKING([for style of include used by $am_make]) 546am__include="#" 547am__quote= 548_am_result=none 549# First try GNU make style include. 550echo "include confinc" > confmf 551# We grep out `Entering directory' and `Leaving directory' 552# messages which can occur if `w' ends up in MAKEFLAGS. 553# In particular we don't look at `^make:' because GNU make might 554# be invoked under some other name (usually "gmake"), in which 555# case it prints its new name instead of `make'. 556if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 557 am__include=include 558 am__quote= 559 _am_result=GNU 560fi 561# Now try BSD make style include. 562if test "$am__include" = "#"; then 563 echo '.include "confinc"' > confmf 564 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 565 am__include=.include 566 am__quote="\"" 567 _am_result=BSD 568 fi 569fi 570AC_SUBST([am__include]) 571AC_SUBST([am__quote]) 572AC_MSG_RESULT([$_am_result]) 573rm -f confinc confmf 574]) 575 576# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 577 578# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 579# Free Software Foundation, Inc. 580# 581# This file is free software; the Free Software Foundation 582# gives unlimited permission to copy and/or distribute it, 583# with or without modifications, as long as this notice is preserved. 584 585# serial 5 586 587# AM_MISSING_PROG(NAME, PROGRAM) 588# ------------------------------ 589AC_DEFUN([AM_MISSING_PROG], 590[AC_REQUIRE([AM_MISSING_HAS_RUN]) 591$1=${$1-"${am_missing_run}$2"} 592AC_SUBST($1)]) 593 594 595# AM_MISSING_HAS_RUN 596# ------------------ 597# Define MISSING if not defined so far and test if it supports --run. 598# If it does, set am_missing_run to use it, otherwise, to nothing. 599AC_DEFUN([AM_MISSING_HAS_RUN], 600[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 601AC_REQUIRE_AUX_FILE([missing])dnl 602test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 603# Use eval to expand $SHELL 604if eval "$MISSING --run true"; then 605 am_missing_run="$MISSING --run " 606else 607 am_missing_run= 608 AC_MSG_WARN([`missing' script is too old or missing]) 609fi 610]) 611 612# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 613# 614# This file is free software; the Free Software Foundation 615# gives unlimited permission to copy and/or distribute it, 616# with or without modifications, as long as this notice is preserved. 617 618# AM_PROG_MKDIR_P 619# --------------- 620# Check for `mkdir -p'. 621AC_DEFUN([AM_PROG_MKDIR_P], 622[AC_PREREQ([2.60])dnl 623AC_REQUIRE([AC_PROG_MKDIR_P])dnl 624dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, 625dnl while keeping a definition of mkdir_p for backward compatibility. 626dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. 627dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of 628dnl Makefile.ins that do not define MKDIR_P, so we do our own 629dnl adjustment using top_builddir (which is defined more often than 630dnl MKDIR_P). 631AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl 632case $mkdir_p in 633 [[\\/$]]* | ?:[[\\/]]*) ;; 634 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 635esac 636]) 637 638# Helper functions for option handling. -*- Autoconf -*- 639 640# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. 641# 642# This file is free software; the Free Software Foundation 643# gives unlimited permission to copy and/or distribute it, 644# with or without modifications, as long as this notice is preserved. 645 646# serial 3 647 648# _AM_MANGLE_OPTION(NAME) 649# ----------------------- 650AC_DEFUN([_AM_MANGLE_OPTION], 651[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 652 653# _AM_SET_OPTION(NAME) 654# ------------------------------ 655# Set option NAME. Presently that only means defining a flag for this option. 656AC_DEFUN([_AM_SET_OPTION], 657[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 658 659# _AM_SET_OPTIONS(OPTIONS) 660# ---------------------------------- 661# OPTIONS is a space-separated list of Automake options. 662AC_DEFUN([_AM_SET_OPTIONS], 663[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 664 665# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 666# ------------------------------------------- 667# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 668AC_DEFUN([_AM_IF_OPTION], 669[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 670 671# Check to make sure that the build environment is sane. -*- Autoconf -*- 672 673# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 674# Free Software Foundation, Inc. 675# 676# This file is free software; the Free Software Foundation 677# gives unlimited permission to copy and/or distribute it, 678# with or without modifications, as long as this notice is preserved. 679 680# serial 4 681 682# AM_SANITY_CHECK 683# --------------- 684AC_DEFUN([AM_SANITY_CHECK], 685[AC_MSG_CHECKING([whether build environment is sane]) 686# Just in case 687sleep 1 688echo timestamp > conftest.file 689# Do `set' in a subshell so we don't clobber the current shell's 690# arguments. Must try -L first in case configure is actually a 691# symlink; some systems play weird games with the mod time of symlinks 692# (eg FreeBSD returns the mod time of the symlink's containing 693# directory). 694if ( 695 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 696 if test "$[*]" = "X"; then 697 # -L didn't work. 698 set X `ls -t $srcdir/configure conftest.file` 699 fi 700 rm -f conftest.file 701 if test "$[*]" != "X $srcdir/configure conftest.file" \ 702 && test "$[*]" != "X conftest.file $srcdir/configure"; then 703 704 # If neither matched, then we have a broken ls. This can happen 705 # if, for instance, CONFIG_SHELL is bash and it inherits a 706 # broken ls alias from the environment. This has actually 707 # happened. Such a system could not be considered "sane". 708 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 709alias in your environment]) 710 fi 711 712 test "$[2]" = conftest.file 713 ) 714then 715 # Ok. 716 : 717else 718 AC_MSG_ERROR([newly created file is older than distributed files! 719Check your system clock]) 720fi 721AC_MSG_RESULT(yes)]) 722 723# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 724# 725# This file is free software; the Free Software Foundation 726# gives unlimited permission to copy and/or distribute it, 727# with or without modifications, as long as this notice is preserved. 728 729# AM_PROG_INSTALL_STRIP 730# --------------------- 731# One issue with vendor `install' (even GNU) is that you can't 732# specify the program used to strip binaries. This is especially 733# annoying in cross-compiling environments, where the build's strip 734# is unlikely to handle the host's binaries. 735# Fortunately install-sh will honor a STRIPPROG variable, so we 736# always use install-sh in `make install-strip', and initialize 737# STRIPPROG with the value of the STRIP variable (set by the user). 738AC_DEFUN([AM_PROG_INSTALL_STRIP], 739[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 740# Installed binaries are usually stripped using `strip' when the user 741# run `make install-strip'. However `strip' might not be the right 742# tool to use in cross-compilation environments, therefore Automake 743# will honor the `STRIP' environment variable to overrule this program. 744dnl Don't test for $cross_compiling = yes, because it might be `maybe'. 745if test "$cross_compiling" != no; then 746 AC_CHECK_TOOL([STRIP], [strip], :) 747fi 748INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 749AC_SUBST([INSTALL_STRIP_PROGRAM])]) 750 751# Copyright (C) 2006 Free Software Foundation, Inc. 752# 753# This file is free software; the Free Software Foundation 754# gives unlimited permission to copy and/or distribute it, 755# with or without modifications, as long as this notice is preserved. 756 757# _AM_SUBST_NOTMAKE(VARIABLE) 758# --------------------------- 759# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in. 760# This macro is traced by Automake. 761AC_DEFUN([_AM_SUBST_NOTMAKE]) 762 763# Check how to create a tarball. -*- Autoconf -*- 764 765# Copyright (C) 2004, 2005 Free Software Foundation, Inc. 766# 767# This file is free software; the Free Software Foundation 768# gives unlimited permission to copy and/or distribute it, 769# with or without modifications, as long as this notice is preserved. 770 771# serial 2 772 773# _AM_PROG_TAR(FORMAT) 774# -------------------- 775# Check how to create a tarball in format FORMAT. 776# FORMAT should be one of `v7', `ustar', or `pax'. 777# 778# Substitute a variable $(am__tar) that is a command 779# writing to stdout a FORMAT-tarball containing the directory 780# $tardir. 781# tardir=directory && $(am__tar) > result.tar 782# 783# Substitute a variable $(am__untar) that extract such 784# a tarball read from stdin. 785# $(am__untar) < result.tar 786AC_DEFUN([_AM_PROG_TAR], 787[# Always define AMTAR for backward compatibility. 788AM_MISSING_PROG([AMTAR], [tar]) 789m4_if([$1], [v7], 790 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 791 [m4_case([$1], [ustar],, [pax],, 792 [m4_fatal([Unknown tar format])]) 793AC_MSG_CHECKING([how to create a $1 tar archive]) 794# Loop over all known methods to create a tar archive until one works. 795_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 796_am_tools=${am_cv_prog_tar_$1-$_am_tools} 797# Do not fold the above two line into one, because Tru64 sh and 798# Solaris sh will not grok spaces in the rhs of `-'. 799for _am_tool in $_am_tools 800do 801 case $_am_tool in 802 gnutar) 803 for _am_tar in tar gnutar gtar; 804 do 805 AM_RUN_LOG([$_am_tar --version]) && break 806 done 807 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 808 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 809 am__untar="$_am_tar -xf -" 810 ;; 811 plaintar) 812 # Must skip GNU tar: if it does not support --format= it doesn't create 813 # ustar tarball either. 814 (tar --version) >/dev/null 2>&1 && continue 815 am__tar='tar chf - "$$tardir"' 816 am__tar_='tar chf - "$tardir"' 817 am__untar='tar xf -' 818 ;; 819 pax) 820 am__tar='pax -L -x $1 -w "$$tardir"' 821 am__tar_='pax -L -x $1 -w "$tardir"' 822 am__untar='pax -r' 823 ;; 824 cpio) 825 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 826 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 827 am__untar='cpio -i -H $1 -d' 828 ;; 829 none) 830 am__tar=false 831 am__tar_=false 832 am__untar=false 833 ;; 834 esac 835 836 # If the value was cached, stop now. We just wanted to have am__tar 837 # and am__untar set. 838 test -n "${am_cv_prog_tar_$1}" && break 839 840 # tar/untar a dummy directory, and stop if the command works 841 rm -rf conftest.dir 842 mkdir conftest.dir 843 echo GrepMe > conftest.dir/file 844 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 845 rm -rf conftest.dir 846 if test -s conftest.tar; then 847 AM_RUN_LOG([$am__untar <conftest.tar]) 848 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 849 fi 850done 851rm -rf conftest.dir 852 853AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 854AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 855AC_SUBST([am__tar]) 856AC_SUBST([am__untar]) 857]) # _AM_PROG_TAR 858 859# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 860 861# serial 51 AC_PROG_LIBTOOL 862 863 864# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) 865# ----------------------------------------------------------- 866# If this macro is not defined by Autoconf, define it here. 867m4_ifdef([AC_PROVIDE_IFELSE], 868 [], 869 [m4_define([AC_PROVIDE_IFELSE], 870 [m4_ifdef([AC_PROVIDE_$1], 871 [$2], [$3])])]) 872 873 874# AC_PROG_LIBTOOL 875# --------------- 876AC_DEFUN([AC_PROG_LIBTOOL], 877[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl 878dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX 879dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. 880 AC_PROVIDE_IFELSE([AC_PROG_CXX], 881 [AC_LIBTOOL_CXX], 882 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX 883 ])]) 884dnl And a similar setup for Fortran 77 support 885 AC_PROVIDE_IFELSE([AC_PROG_F77], 886 [AC_LIBTOOL_F77], 887 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 888])]) 889 890dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. 891dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run 892dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. 893 AC_PROVIDE_IFELSE([AC_PROG_GCJ], 894 [AC_LIBTOOL_GCJ], 895 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 896 [AC_LIBTOOL_GCJ], 897 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], 898 [AC_LIBTOOL_GCJ], 899 [ifdef([AC_PROG_GCJ], 900 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) 901 ifdef([A][M_PROG_GCJ], 902 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) 903 ifdef([LT_AC_PROG_GCJ], 904 [define([LT_AC_PROG_GCJ], 905 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) 906])])# AC_PROG_LIBTOOL 907 908 909# _AC_PROG_LIBTOOL 910# ---------------- 911AC_DEFUN([_AC_PROG_LIBTOOL], 912[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl 913AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl 914AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl 915AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl 916 917# This can be used to rebuild libtool when needed 918LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 919 920# Always use our own libtool. 921LIBTOOL='$(SHELL) $(top_builddir)/libtool' 922AC_SUBST(LIBTOOL)dnl 923 924# Prevent multiple expansion 925define([AC_PROG_LIBTOOL], []) 926])# _AC_PROG_LIBTOOL 927 928 929# AC_LIBTOOL_SETUP 930# ---------------- 931AC_DEFUN([AC_LIBTOOL_SETUP], 932[AC_PREREQ(2.50)dnl 933AC_REQUIRE([AC_ENABLE_SHARED])dnl 934AC_REQUIRE([AC_ENABLE_STATIC])dnl 935AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl 936AC_REQUIRE([AC_CANONICAL_HOST])dnl 937AC_REQUIRE([AC_CANONICAL_BUILD])dnl 938AC_REQUIRE([AC_PROG_CC])dnl 939AC_REQUIRE([AC_PROG_LD])dnl 940AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl 941AC_REQUIRE([AC_PROG_NM])dnl 942 943AC_REQUIRE([AC_PROG_LN_S])dnl 944AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl 945# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 946AC_REQUIRE([AC_OBJEXT])dnl 947AC_REQUIRE([AC_EXEEXT])dnl 948dnl 949 950AC_LIBTOOL_SYS_MAX_CMD_LEN 951AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 952AC_LIBTOOL_OBJDIR 953 954AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 955_LT_AC_PROG_ECHO_BACKSLASH 956 957case $host_os in 958aix3*) 959 # AIX sometimes has problems with the GCC collect2 program. For some 960 # reason, if we set the COLLECT_NAMES environment variable, the problems 961 # vanish in a puff of smoke. 962 if test "X${COLLECT_NAMES+set}" != Xset; then 963 COLLECT_NAMES= 964 export COLLECT_NAMES 965 fi 966 ;; 967esac 968 969# Sed substitution that helps us do robust quoting. It backslashifies 970# metacharacters that are still active within double-quoted strings. 971Xsed='sed -e 1s/^X//' 972[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] 973 974# Same as above, but do not quote variable references. 975[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] 976 977# Sed substitution to delay expansion of an escaped shell variable in a 978# double_quote_subst'ed string. 979delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 980 981# Sed substitution to avoid accidental globbing in evaled expressions 982no_glob_subst='s/\*/\\\*/g' 983 984# Constants: 985rm="rm -f" 986 987# Global variables: 988default_ofile=libtool 989can_build_shared=yes 990 991# All known linkers require a `.a' archive for static linking (except MSVC, 992# which needs '.lib'). 993libext=a 994ltmain="$ac_aux_dir/ltmain.sh" 995ofile="$default_ofile" 996with_gnu_ld="$lt_cv_prog_gnu_ld" 997 998AC_CHECK_TOOL(AR, ar, false) 999AC_CHECK_TOOL(RANLIB, ranlib, :) 1000AC_CHECK_TOOL(STRIP, strip, :) 1001 1002old_CC="$CC" 1003old_CFLAGS="$CFLAGS" 1004 1005# Set sane defaults for various variables 1006test -z "$AR" && AR=ar 1007test -z "$AR_FLAGS" && AR_FLAGS=cru 1008test -z "$AS" && AS=as 1009test -z "$CC" && CC=cc 1010test -z "$LTCC" && LTCC=$CC 1011test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 1012test -z "$DLLTOOL" && DLLTOOL=dlltool 1013test -z "$LD" && LD=ld 1014test -z "$LN_S" && LN_S="ln -s" 1015test -z "$MAGIC_CMD" && MAGIC_CMD=file 1016test -z "$NM" && NM=nm 1017test -z "$SED" && SED=sed 1018test -z "$OBJDUMP" && OBJDUMP=objdump 1019test -z "$RANLIB" && RANLIB=: 1020test -z "$STRIP" && STRIP=: 1021test -z "$ac_objext" && ac_objext=o 1022 1023# Determine commands to create old-style static archives. 1024old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 1025old_postinstall_cmds='chmod 644 $oldlib' 1026old_postuninstall_cmds= 1027 1028if test -n "$RANLIB"; then 1029 case $host_os in 1030 openbsd*) 1031 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 1032 ;; 1033 *) 1034 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 1035 ;; 1036 esac 1037 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 1038fi 1039 1040_LT_CC_BASENAME([$compiler]) 1041 1042# Only perform the check for file, if the check method requires it 1043case $deplibs_check_method in 1044file_magic*) 1045 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 1046 AC_PATH_MAGIC 1047 fi 1048 ;; 1049esac 1050 1051AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) 1052AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 1053enable_win32_dll=yes, enable_win32_dll=no) 1054 1055AC_ARG_ENABLE([libtool-lock], 1056 [AC_HELP_STRING([--disable-libtool-lock], 1057 [avoid locking (might break parallel builds)])]) 1058test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 1059 1060AC_ARG_WITH([pic], 1061 [AC_HELP_STRING([--with-pic], 1062 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 1063 [pic_mode="$withval"], 1064 [pic_mode=default]) 1065test -z "$pic_mode" && pic_mode=default 1066 1067# Use C for the default configuration in the libtool script 1068tagname= 1069AC_LIBTOOL_LANG_C_CONFIG 1070_LT_AC_TAGCONFIG 1071])# AC_LIBTOOL_SETUP 1072 1073 1074# _LT_AC_SYS_COMPILER 1075# ------------------- 1076AC_DEFUN([_LT_AC_SYS_COMPILER], 1077[AC_REQUIRE([AC_PROG_CC])dnl 1078 1079# If no C compiler was specified, use CC. 1080LTCC=${LTCC-"$CC"} 1081 1082# If no C compiler flags were specified, use CFLAGS. 1083LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 1084 1085# Allow CC to be a program name with arguments. 1086compiler=$CC 1087])# _LT_AC_SYS_COMPILER 1088 1089 1090# _LT_CC_BASENAME(CC) 1091# ------------------- 1092# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 1093AC_DEFUN([_LT_CC_BASENAME], 1094[for cc_temp in $1""; do 1095 case $cc_temp in 1096 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 1097 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 1098 \-*) ;; 1099 *) break;; 1100 esac 1101done 1102cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 1103]) 1104 1105 1106# _LT_COMPILER_BOILERPLATE 1107# ------------------------ 1108# Check for compiler boilerplate output or warnings with 1109# the simple compiler test code. 1110AC_DEFUN([_LT_COMPILER_BOILERPLATE], 1111[AC_REQUIRE([LT_AC_PROG_SED])dnl 1112ac_outfile=conftest.$ac_objext 1113echo "$lt_simple_compile_test_code" >conftest.$ac_ext 1114eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 1115_lt_compiler_boilerplate=`cat conftest.err` 1116$rm conftest* 1117])# _LT_COMPILER_BOILERPLATE 1118 1119 1120# _LT_LINKER_BOILERPLATE 1121# ---------------------- 1122# Check for linker boilerplate output or warnings with 1123# the simple link test code. 1124AC_DEFUN([_LT_LINKER_BOILERPLATE], 1125[AC_REQUIRE([LT_AC_PROG_SED])dnl 1126ac_outfile=conftest.$ac_objext 1127echo "$lt_simple_link_test_code" >conftest.$ac_ext 1128eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 1129_lt_linker_boilerplate=`cat conftest.err` 1130$rm conftest* 1131])# _LT_LINKER_BOILERPLATE 1132 1133 1134# _LT_AC_SYS_LIBPATH_AIX 1135# ---------------------- 1136# Links a minimal program and checks the executable 1137# for the system default hardcoded library path. In most cases, 1138# this is /usr/lib:/lib, but when the MPI compilers are used 1139# the location of the communication and MPI libs are included too. 1140# If we don't find anything, use the default library path according 1141# to the aix ld manual. 1142AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], 1143[AC_REQUIRE([LT_AC_PROG_SED])dnl 1144AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 1145lt_aix_libpath_sed=' 1146 /Import File Strings/,/^$/ { 1147 /^0/ { 1148 s/^0 *\(.*\)$/\1/ 1149 p 1150 } 1151 }' 1152aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 1153# Check for a 64-bit object if we didn't find anything. 1154if test -z "$aix_libpath"; then 1155 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 1156fi],[]) 1157if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 1158])# _LT_AC_SYS_LIBPATH_AIX 1159 1160 1161# _LT_AC_SHELL_INIT(ARG) 1162# ---------------------- 1163AC_DEFUN([_LT_AC_SHELL_INIT], 1164[ifdef([AC_DIVERSION_NOTICE], 1165 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 1166 [AC_DIVERT_PUSH(NOTICE)]) 1167$1 1168AC_DIVERT_POP 1169])# _LT_AC_SHELL_INIT 1170 1171 1172# _LT_AC_PROG_ECHO_BACKSLASH 1173# -------------------------- 1174# Add some code to the start of the generated configure script which 1175# will find an echo command which doesn't interpret backslashes. 1176AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], 1177[_LT_AC_SHELL_INIT([ 1178# Check that we are running under the correct shell. 1179SHELL=${CONFIG_SHELL-/bin/sh} 1180 1181case X$ECHO in 1182X*--fallback-echo) 1183 # Remove one level of quotation (which was required for Make). 1184 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` 1185 ;; 1186esac 1187 1188echo=${ECHO-echo} 1189if test "X[$]1" = X--no-reexec; then 1190 # Discard the --no-reexec flag, and continue. 1191 shift 1192elif test "X[$]1" = X--fallback-echo; then 1193 # Avoid inline document here, it may be left over 1194 : 1195elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 1196 # Yippee, $echo works! 1197 : 1198else 1199 # Restart under the correct shell. 1200 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} 1201fi 1202 1203if test "X[$]1" = X--fallback-echo; then 1204 # used as fallback echo 1205 shift 1206 cat <<EOF 1207[$]* 1208EOF 1209 exit 0 1210fi 1211 1212# The HP-UX ksh and POSIX shell print the target directory to stdout 1213# if CDPATH is set. 1214(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 1215 1216if test -z "$ECHO"; then 1217if test "X${echo_test_string+set}" != Xset; then 1218# find a string as large as possible, as long as the shell can cope with it 1219 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 1220 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 1221 if (echo_test_string=`eval $cmd`) 2>/dev/null && 1222 echo_test_string=`eval $cmd` && 1223 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 1224 then 1225 break 1226 fi 1227 done 1228fi 1229 1230if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 1231 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 1232 test "X$echo_testing_string" = "X$echo_test_string"; then 1233 : 1234else 1235 # The Solaris, AIX, and Digital Unix default echo programs unquote 1236 # backslashes. This makes it impossible to quote backslashes using 1237 # echo "$something" | sed 's/\\/\\\\/g' 1238 # 1239 # So, first we look for a working echo in the user's PATH. 1240 1241 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 1242 for dir in $PATH /usr/ucb; do 1243 IFS="$lt_save_ifs" 1244 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 1245 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 1246 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 1247 test "X$echo_testing_string" = "X$echo_test_string"; then 1248 echo="$dir/echo" 1249 break 1250 fi 1251 done 1252 IFS="$lt_save_ifs" 1253 1254 if test "X$echo" = Xecho; then 1255 # We didn't find a better echo, so look for alternatives. 1256 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 1257 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 1258 test "X$echo_testing_string" = "X$echo_test_string"; then 1259 # This shell has a builtin print -r that does the trick. 1260 echo='print -r' 1261 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 1262 test "X$CONFIG_SHELL" != X/bin/ksh; then 1263 # If we have ksh, try running configure again with it. 1264 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 1265 export ORIGINAL_CONFIG_SHELL 1266 CONFIG_SHELL=/bin/ksh 1267 export CONFIG_SHELL 1268 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 1269 else 1270 # Try using printf. 1271 echo='printf %s\n' 1272 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 1273 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 1274 test "X$echo_testing_string" = "X$echo_test_string"; then 1275 # Cool, printf works 1276 : 1277 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 1278 test "X$echo_testing_string" = 'X\t' && 1279 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 1280 test "X$echo_testing_string" = "X$echo_test_string"; then 1281 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 1282 export CONFIG_SHELL 1283 SHELL="$CONFIG_SHELL" 1284 export SHELL 1285 echo="$CONFIG_SHELL [$]0 --fallback-echo" 1286 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 1287 test "X$echo_testing_string" = 'X\t' && 1288 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 1289 test "X$echo_testing_string" = "X$echo_test_string"; then 1290 echo="$CONFIG_SHELL [$]0 --fallback-echo" 1291 else 1292 # maybe with a smaller string... 1293 prev=: 1294 1295 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 1296 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 1297 then 1298 break 1299 fi 1300 prev="$cmd" 1301 done 1302 1303 if test "$prev" != 'sed 50q "[$]0"'; then 1304 echo_test_string=`eval $prev` 1305 export echo_test_string 1306 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 1307 else 1308 # Oops. We lost completely, so just stick with echo. 1309 echo=echo 1310 fi 1311 fi 1312 fi 1313 fi 1314fi 1315fi 1316 1317# Copy echo and quote the copy suitably for passing to libtool from 1318# the Makefile, instead of quoting the original, which is used later. 1319ECHO=$echo 1320if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then 1321 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" 1322fi 1323 1324AC_SUBST(ECHO) 1325])])# _LT_AC_PROG_ECHO_BACKSLASH 1326 1327 1328# _LT_AC_LOCK 1329# ----------- 1330AC_DEFUN([_LT_AC_LOCK], 1331[AC_ARG_ENABLE([libtool-lock], 1332 [AC_HELP_STRING([--disable-libtool-lock], 1333 [avoid locking (might break parallel builds)])]) 1334test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 1335 1336# Some flags need to be propagated to the compiler or linker for good 1337# libtool support. 1338case $host in 1339ia64-*-hpux*) 1340 # Find out which ABI we are using. 1341 echo 'int i;' > conftest.$ac_ext 1342 if AC_TRY_EVAL(ac_compile); then 1343 case `/usr/bin/file conftest.$ac_objext` in 1344 *ELF-32*) 1345 HPUX_IA64_MODE="32" 1346 ;; 1347 *ELF-64*) 1348 HPUX_IA64_MODE="64" 1349 ;; 1350 esac 1351 fi 1352 rm -rf conftest* 1353 ;; 1354*-*-irix6*) 1355 # Find out which ABI we are using. 1356 echo '[#]line __oline__ "configure"' > conftest.$ac_ext 1357 if AC_TRY_EVAL(ac_compile); then 1358 if test "$lt_cv_prog_gnu_ld" = yes; then 1359 case `/usr/bin/file conftest.$ac_objext` in 1360 *32-bit*) 1361 LD="${LD-ld} -melf32bsmip" 1362 ;; 1363 *N32*) 1364 LD="${LD-ld} -melf32bmipn32" 1365 ;; 1366 *64-bit*) 1367 LD="${LD-ld} -melf64bmip" 1368 ;; 1369 esac 1370 else 1371 case `/usr/bin/file conftest.$ac_objext` in 1372 *32-bit*) 1373 LD="${LD-ld} -32" 1374 ;; 1375 *N32*) 1376 LD="${LD-ld} -n32" 1377 ;; 1378 *64-bit*) 1379 LD="${LD-ld} -64" 1380 ;; 1381 esac 1382 fi 1383 fi 1384 rm -rf conftest* 1385 ;; 1386 1387x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 1388s390*-*linux*|sparc*-*linux*) 1389 # Find out which ABI we are using. 1390 echo 'int i;' > conftest.$ac_ext 1391 if AC_TRY_EVAL(ac_compile); then 1392 case `/usr/bin/file conftest.o` in 1393 *32-bit*) 1394 case $host in 1395 x86_64-*kfreebsd*-gnu) 1396 LD="${LD-ld} -m elf_i386_fbsd" 1397 ;; 1398 x86_64-*linux*) 1399 LD="${LD-ld} -m elf_i386" 1400 ;; 1401 ppc64-*linux*|powerpc64-*linux*) 1402 LD="${LD-ld} -m elf32ppclinux" 1403 ;; 1404 s390x-*linux*) 1405 LD="${LD-ld} -m elf_s390" 1406 ;; 1407 sparc64-*linux*) 1408 LD="${LD-ld} -m elf32_sparc" 1409 ;; 1410 esac 1411 ;; 1412 *64-bit*) 1413 case $host in 1414 x86_64-*kfreebsd*-gnu) 1415 LD="${LD-ld} -m elf_x86_64_fbsd" 1416 ;; 1417 x86_64-*linux*) 1418 LD="${LD-ld} -m elf_x86_64" 1419 ;; 1420 ppc*-*linux*|powerpc*-*linux*) 1421 LD="${LD-ld} -m elf64ppc" 1422 ;; 1423 s390*-*linux*) 1424 LD="${LD-ld} -m elf64_s390" 1425 ;; 1426 sparc*-*linux*) 1427 LD="${LD-ld} -m elf64_sparc" 1428 ;; 1429 esac 1430 ;; 1431 esac 1432 fi 1433 rm -rf conftest* 1434 ;; 1435 1436*-*-sco3.2v5*) 1437 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 1438 SAVE_CFLAGS="$CFLAGS" 1439 CFLAGS="$CFLAGS -belf" 1440 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 1441 [AC_LANG_PUSH(C) 1442 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 1443 AC_LANG_POP]) 1444 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 1445 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 1446 CFLAGS="$SAVE_CFLAGS" 1447 fi 1448 ;; 1449sparc*-*solaris*) 1450 # Find out which ABI we are using. 1451 echo 'int i;' > conftest.$ac_ext 1452 if AC_TRY_EVAL(ac_compile); then 1453 case `/usr/bin/file conftest.o` in 1454 *64-bit*) 1455 case $lt_cv_prog_gnu_ld in 1456 yes*) LD="${LD-ld} -m elf64_sparc" ;; 1457 *) LD="${LD-ld} -64" ;; 1458 esac 1459 ;; 1460 esac 1461 fi 1462 rm -rf conftest* 1463 ;; 1464 1465AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 1466[*-*-cygwin* | *-*-mingw* | *-*-pw32*) 1467 AC_CHECK_TOOL(DLLTOOL, dlltool, false) 1468 AC_CHECK_TOOL(AS, as, false) 1469 AC_CHECK_TOOL(OBJDUMP, objdump, false) 1470 ;; 1471 ]) 1472esac 1473 1474need_locks="$enable_libtool_lock" 1475 1476])# _LT_AC_LOCK 1477 1478 1479# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 1480# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 1481# ---------------------------------------------------------------- 1482# Check whether the given compiler option works 1483AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], 1484[AC_REQUIRE([LT_AC_PROG_SED]) 1485AC_CACHE_CHECK([$1], [$2], 1486 [$2=no 1487 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 1488 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 1489 lt_compiler_flag="$3" 1490 # Insert the option either (1) after the last *FLAGS variable, or 1491 # (2) before a word containing "conftest.", or (3) at the end. 1492 # Note that $ac_compile itself does not contain backslashes and begins 1493 # with a dollar sign (not a hyphen), so the echo should work correctly. 1494 # The option is referenced via a variable to avoid confusing sed. 1495 lt_compile=`echo "$ac_compile" | $SED \ 1496 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 1497 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 1498 -e 's:$: $lt_compiler_flag:'` 1499 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 1500 (eval "$lt_compile" 2>conftest.err) 1501 ac_status=$? 1502 cat conftest.err >&AS_MESSAGE_LOG_FD 1503 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 1504 if (exit $ac_status) && test -s "$ac_outfile"; then 1505 # The compiler can only warn and ignore the option if not recognized 1506 # So say no if there are warnings other than the usual output. 1507 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 1508 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 1509 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 1510 $2=yes 1511 fi 1512 fi 1513 $rm conftest* 1514]) 1515 1516if test x"[$]$2" = xyes; then 1517 ifelse([$5], , :, [$5]) 1518else 1519 ifelse([$6], , :, [$6]) 1520fi 1521])# AC_LIBTOOL_COMPILER_OPTION 1522 1523 1524# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 1525# [ACTION-SUCCESS], [ACTION-FAILURE]) 1526# ------------------------------------------------------------ 1527# Check whether the given compiler option works 1528AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], 1529[AC_REQUIRE([LT_AC_PROG_SED])dnl 1530AC_CACHE_CHECK([$1], [$2], 1531 [$2=no 1532 save_LDFLAGS="$LDFLAGS" 1533 LDFLAGS="$LDFLAGS $3" 1534 echo "$lt_simple_link_test_code" > conftest.$ac_ext 1535 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 1536 # The linker can only warn and ignore the option if not recognized 1537 # So say no if there are warnings 1538 if test -s conftest.err; then 1539 # Append any errors to the config.log. 1540 cat conftest.err 1>&AS_MESSAGE_LOG_FD 1541 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 1542 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 1543 if diff conftest.exp conftest.er2 >/dev/null; then 1544 $2=yes 1545 fi 1546 else 1547 $2=yes 1548 fi 1549 fi 1550 $rm conftest* 1551 LDFLAGS="$save_LDFLAGS" 1552]) 1553 1554if test x"[$]$2" = xyes; then 1555 ifelse([$4], , :, [$4]) 1556else 1557 ifelse([$5], , :, [$5]) 1558fi 1559])# AC_LIBTOOL_LINKER_OPTION 1560 1561 1562# AC_LIBTOOL_SYS_MAX_CMD_LEN 1563# -------------------------- 1564AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], 1565[# find the maximum length of command line arguments 1566AC_MSG_CHECKING([the maximum length of command line arguments]) 1567AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 1568 i=0 1569 teststring="ABCD" 1570 1571 case $build_os in 1572 msdosdjgpp*) 1573 # On DJGPP, this test can blow up pretty badly due to problems in libc 1574 # (any single argument exceeding 2000 bytes causes a buffer overrun 1575 # during glob expansion). Even if it were fixed, the result of this 1576 # check would be larger than it should be. 1577 lt_cv_sys_max_cmd_len=12288; # 12K is about right 1578 ;; 1579 1580 gnu*) 1581 # Under GNU Hurd, this test is not required because there is 1582 # no limit to the length of command line arguments. 1583 # Libtool will interpret -1 as no limit whatsoever 1584 lt_cv_sys_max_cmd_len=-1; 1585 ;; 1586 1587 cygwin* | mingw*) 1588 # On Win9x/ME, this test blows up -- it succeeds, but takes 1589 # about 5 minutes as the teststring grows exponentially. 1590 # Worse, since 9x/ME are not pre-emptively multitasking, 1591 # you end up with a "frozen" computer, even though with patience 1592 # the test eventually succeeds (with a max line length of 256k). 1593 # Instead, let's just punt: use the minimum linelength reported by 1594 # all of the supported platforms: 8192 (on NT/2K/XP). 1595 lt_cv_sys_max_cmd_len=8192; 1596 ;; 1597 1598 amigaos*) 1599 # On AmigaOS with pdksh, this test takes hours, literally. 1600 # So we just punt and use a minimum line length of 8192. 1601 lt_cv_sys_max_cmd_len=8192; 1602 ;; 1603 1604 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 1605 # This has been around since 386BSD, at least. Likely further. 1606 if test -x /sbin/sysctl; then 1607 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 1608 elif test -x /usr/sbin/sysctl; then 1609 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 1610 else 1611 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 1612 fi 1613 # And add a safety zone 1614 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 1615 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 1616 ;; 1617 1618 interix*) 1619 # We know the value 262144 and hardcode it with a safety zone (like BSD) 1620 lt_cv_sys_max_cmd_len=196608 1621 ;; 1622 1623 osf*) 1624 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 1625 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 1626 # nice to cause kernel panics so lets avoid the loop below. 1627 # First set a reasonable default. 1628 lt_cv_sys_max_cmd_len=16384 1629 # 1630 if test -x /sbin/sysconfig; then 1631 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 1632 *1*) lt_cv_sys_max_cmd_len=-1 ;; 1633 esac 1634 fi 1635 ;; 1636 sco3.2v5*) 1637 lt_cv_sys_max_cmd_len=102400 1638 ;; 1639 sysv5* | sco5v6* | sysv4.2uw2*) 1640 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 1641 if test -n "$kargmax"; then 1642 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 1643 else 1644 lt_cv_sys_max_cmd_len=32768 1645 fi 1646 ;; 1647 *) 1648 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 1649 if test -n "$lt_cv_sys_max_cmd_len"; then 1650 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 1651 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 1652 else 1653 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 1654 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 1655 = "XX$teststring") >/dev/null 2>&1 && 1656 new_result=`expr "X$teststring" : ".*" 2>&1` && 1657 lt_cv_sys_max_cmd_len=$new_result && 1658 test $i != 17 # 1/2 MB should be enough 1659 do 1660 i=`expr $i + 1` 1661 teststring=$teststring$teststring 1662 done 1663 teststring= 1664 # Add a significant safety factor because C++ compilers can tack on massive 1665 # amounts of additional arguments before passing them to the linker. 1666 # It appears as though 1/2 is a usable value. 1667 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 1668 fi 1669 ;; 1670 esac 1671]) 1672if test -n $lt_cv_sys_max_cmd_len ; then 1673 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 1674else 1675 AC_MSG_RESULT(none) 1676fi 1677])# AC_LIBTOOL_SYS_MAX_CMD_LEN 1678 1679 1680# _LT_AC_CHECK_DLFCN 1681# ------------------ 1682AC_DEFUN([_LT_AC_CHECK_DLFCN], 1683[AC_CHECK_HEADERS(dlfcn.h)dnl 1684])# _LT_AC_CHECK_DLFCN 1685 1686 1687# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 1688# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 1689# --------------------------------------------------------------------- 1690AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], 1691[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 1692if test "$cross_compiling" = yes; then : 1693 [$4] 1694else 1695 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 1696 lt_status=$lt_dlunknown 1697 cat > conftest.$ac_ext <<EOF 1698[#line __oline__ "configure" 1699#include "confdefs.h" 1700 1701#if HAVE_DLFCN_H 1702#include <dlfcn.h> 1703#endif 1704 1705#include <stdio.h> 1706 1707#ifdef RTLD_GLOBAL 1708# define LT_DLGLOBAL RTLD_GLOBAL 1709#else 1710# ifdef DL_GLOBAL 1711# define LT_DLGLOBAL DL_GLOBAL 1712# else 1713# define LT_DLGLOBAL 0 1714# endif 1715#endif 1716 1717/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 1718 find out it does not work in some platform. */ 1719#ifndef LT_DLLAZY_OR_NOW 1720# ifdef RTLD_LAZY 1721# define LT_DLLAZY_OR_NOW RTLD_LAZY 1722# else 1723# ifdef DL_LAZY 1724# define LT_DLLAZY_OR_NOW DL_LAZY 1725# else 1726# ifdef RTLD_NOW 1727# define LT_DLLAZY_OR_NOW RTLD_NOW 1728# else 1729# ifdef DL_NOW 1730# define LT_DLLAZY_OR_NOW DL_NOW 1731# else 1732# define LT_DLLAZY_OR_NOW 0 1733# endif 1734# endif 1735# endif 1736# endif 1737#endif 1738 1739#ifdef __cplusplus 1740extern "C" void exit (int); 1741#endif 1742 1743void fnord() { int i=42;} 1744int main () 1745{ 1746 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 1747 int status = $lt_dlunknown; 1748 1749 if (self) 1750 { 1751 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 1752 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 1753 /* dlclose (self); */ 1754 } 1755 else 1756 puts (dlerror ()); 1757 1758 exit (status); 1759}] 1760EOF 1761 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 1762 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 1763 lt_status=$? 1764 case x$lt_status in 1765 x$lt_dlno_uscore) $1 ;; 1766 x$lt_dlneed_uscore) $2 ;; 1767 x$lt_dlunknown|x*) $3 ;; 1768 esac 1769 else : 1770 # compilation failed 1771 $3 1772 fi 1773fi 1774rm -fr conftest* 1775])# _LT_AC_TRY_DLOPEN_SELF 1776 1777 1778# AC_LIBTOOL_DLOPEN_SELF 1779# ---------------------- 1780AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], 1781[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 1782if test "x$enable_dlopen" != xyes; then 1783 enable_dlopen=unknown 1784 enable_dlopen_self=unknown 1785 enable_dlopen_self_static=unknown 1786else 1787 lt_cv_dlopen=no 1788 lt_cv_dlopen_libs= 1789 1790 case $host_os in 1791 beos*) 1792 lt_cv_dlopen="load_add_on" 1793 lt_cv_dlopen_libs= 1794 lt_cv_dlopen_self=yes 1795 ;; 1796 1797 mingw* | pw32*) 1798 lt_cv_dlopen="LoadLibrary" 1799 lt_cv_dlopen_libs= 1800 ;; 1801 1802 cygwin*) 1803 lt_cv_dlopen="dlopen" 1804 lt_cv_dlopen_libs= 1805 ;; 1806 1807 darwin*) 1808 # if libdl is installed we need to link against it 1809 AC_CHECK_LIB([dl], [dlopen], 1810 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 1811 lt_cv_dlopen="dyld" 1812 lt_cv_dlopen_libs= 1813 lt_cv_dlopen_self=yes 1814 ]) 1815 ;; 1816 1817 *) 1818 AC_CHECK_FUNC([shl_load], 1819 [lt_cv_dlopen="shl_load"], 1820 [AC_CHECK_LIB([dld], [shl_load], 1821 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], 1822 [AC_CHECK_FUNC([dlopen], 1823 [lt_cv_dlopen="dlopen"], 1824 [AC_CHECK_LIB([dl], [dlopen], 1825 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 1826 [AC_CHECK_LIB([svld], [dlopen], 1827 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 1828 [AC_CHECK_LIB([dld], [dld_link], 1829 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) 1830 ]) 1831 ]) 1832 ]) 1833 ]) 1834 ]) 1835 ;; 1836 esac 1837 1838 if test "x$lt_cv_dlopen" != xno; then 1839 enable_dlopen=yes 1840 else 1841 enable_dlopen=no 1842 fi 1843 1844 case $lt_cv_dlopen in 1845 dlopen) 1846 save_CPPFLAGS="$CPPFLAGS" 1847 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 1848 1849 save_LDFLAGS="$LDFLAGS" 1850 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 1851 1852 save_LIBS="$LIBS" 1853 LIBS="$lt_cv_dlopen_libs $LIBS" 1854 1855 AC_CACHE_CHECK([whether a program can dlopen itself], 1856 lt_cv_dlopen_self, [dnl 1857 _LT_AC_TRY_DLOPEN_SELF( 1858 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 1859 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 1860 ]) 1861 1862 if test "x$lt_cv_dlopen_self" = xyes; then 1863 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 1864 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 1865 lt_cv_dlopen_self_static, [dnl 1866 _LT_AC_TRY_DLOPEN_SELF( 1867 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 1868 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 1869 ]) 1870 fi 1871 1872 CPPFLAGS="$save_CPPFLAGS" 1873 LDFLAGS="$save_LDFLAGS" 1874 LIBS="$save_LIBS" 1875 ;; 1876 esac 1877 1878 case $lt_cv_dlopen_self in 1879 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 1880 *) enable_dlopen_self=unknown ;; 1881 esac 1882 1883 case $lt_cv_dlopen_self_static in 1884 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 1885 *) enable_dlopen_self_static=unknown ;; 1886 esac 1887fi 1888])# AC_LIBTOOL_DLOPEN_SELF 1889 1890 1891# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) 1892# --------------------------------- 1893# Check to see if options -c and -o are simultaneously supported by compiler 1894AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], 1895[AC_REQUIRE([LT_AC_PROG_SED])dnl 1896AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 1897AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 1898 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 1899 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 1900 $rm -r conftest 2>/dev/null 1901 mkdir conftest 1902 cd conftest 1903 mkdir out 1904 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 1905 1906 lt_compiler_flag="-o out/conftest2.$ac_objext" 1907 # Insert the option either (1) after the last *FLAGS variable, or 1908 # (2) before a word containing "conftest.", or (3) at the end. 1909 # Note that $ac_compile itself does not contain backslashes and begins 1910 # with a dollar sign (not a hyphen), so the echo should work correctly. 1911 lt_compile=`echo "$ac_compile" | $SED \ 1912 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 1913 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 1914 -e 's:$: $lt_compiler_flag:'` 1915 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 1916 (eval "$lt_compile" 2>out/conftest.err) 1917 ac_status=$? 1918 cat out/conftest.err >&AS_MESSAGE_LOG_FD 1919 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 1920 if (exit $ac_status) && test -s out/conftest2.$ac_objext 1921 then 1922 # The compiler can only warn and ignore the option if not recognized 1923 # So say no if there are warnings 1924 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 1925 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 1926 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 1927 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 1928 fi 1929 fi 1930 chmod u+w . 2>&AS_MESSAGE_LOG_FD 1931 $rm conftest* 1932 # SGI C++ compiler will create directory out/ii_files/ for 1933 # template instantiation 1934 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 1935 $rm out/* && rmdir out 1936 cd .. 1937 rmdir conftest 1938 $rm conftest* 1939]) 1940])# AC_LIBTOOL_PROG_CC_C_O 1941 1942 1943# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) 1944# ----------------------------------------- 1945# Check to see if we can do hard links to lock some files if needed 1946AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], 1947[AC_REQUIRE([_LT_AC_LOCK])dnl 1948 1949hard_links="nottested" 1950if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 1951 # do not overwrite the value of need_locks provided by the user 1952 AC_MSG_CHECKING([if we can lock with hard links]) 1953 hard_links=yes 1954 $rm conftest* 1955 ln conftest.a conftest.b 2>/dev/null && hard_links=no 1956 touch conftest.a 1957 ln conftest.a conftest.b 2>&5 || hard_links=no 1958 ln conftest.a conftest.b 2>/dev/null && hard_links=no 1959 AC_MSG_RESULT([$hard_links]) 1960 if test "$hard_links" = no; then 1961 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) 1962 need_locks=warn 1963 fi 1964else 1965 need_locks=no 1966fi 1967])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS 1968 1969 1970# AC_LIBTOOL_OBJDIR 1971# ----------------- 1972AC_DEFUN([AC_LIBTOOL_OBJDIR], 1973[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 1974[rm -f .libs 2>/dev/null 1975mkdir .libs 2>/dev/null 1976if test -d .libs; then 1977 lt_cv_objdir=.libs 1978else 1979 # MS-DOS does not allow filenames that begin with a dot. 1980 lt_cv_objdir=_libs 1981fi 1982rmdir .libs 2>/dev/null]) 1983objdir=$lt_cv_objdir 1984])# AC_LIBTOOL_OBJDIR 1985 1986 1987# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) 1988# ---------------------------------------------- 1989# Check hardcoding attributes. 1990AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], 1991[AC_MSG_CHECKING([how to hardcode library paths into programs]) 1992_LT_AC_TAGVAR(hardcode_action, $1)= 1993if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ 1994 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ 1995 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 1996 1997 # We can hardcode non-existant directories. 1998 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && 1999 # If the only mechanism to avoid hardcoding is shlibpath_var, we 2000 # have to relink, otherwise we might link with an installed library 2001 # when we should be linking with a yet-to-be-installed one 2002 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && 2003 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then 2004 # Linking always hardcodes the temporary library directory. 2005 _LT_AC_TAGVAR(hardcode_action, $1)=relink 2006 else 2007 # We can link without hardcoding, and we can hardcode nonexisting dirs. 2008 _LT_AC_TAGVAR(hardcode_action, $1)=immediate 2009 fi 2010else 2011 # We cannot hardcode anything, or else we can only hardcode existing 2012 # directories. 2013 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported 2014fi 2015AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) 2016 2017if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then 2018 # Fast installation is not supported 2019 enable_fast_install=no 2020elif test "$shlibpath_overrides_runpath" = yes || 2021 test "$enable_shared" = no; then 2022 # Fast installation is not necessary 2023 enable_fast_install=needless 2024fi 2025])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH 2026 2027 2028# AC_LIBTOOL_SYS_LIB_STRIP 2029# ------------------------ 2030AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], 2031[striplib= 2032old_striplib= 2033AC_MSG_CHECKING([whether stripping libraries is possible]) 2034if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 2035 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 2036 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 2037 AC_MSG_RESULT([yes]) 2038else 2039# FIXME - insert some real tests, host_os isn't really good enough 2040 case $host_os in 2041 darwin*) 2042 if test -n "$STRIP" ; then 2043 striplib="$STRIP -x" 2044 old_striplib="$STRIP -S" 2045 AC_MSG_RESULT([yes]) 2046 else 2047 AC_MSG_RESULT([no]) 2048fi 2049 ;; 2050 *) 2051 AC_MSG_RESULT([no]) 2052 ;; 2053 esac 2054fi 2055])# AC_LIBTOOL_SYS_LIB_STRIP 2056 2057 2058# AC_LIBTOOL_SYS_DYNAMIC_LINKER 2059# ----------------------------- 2060# PORTME Fill in your ld.so characteristics 2061AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], 2062[AC_REQUIRE([LT_AC_PROG_SED])dnl 2063AC_MSG_CHECKING([dynamic linker characteristics]) 2064library_names_spec= 2065libname_spec='lib$name' 2066soname_spec= 2067shrext_cmds=".so" 2068postinstall_cmds= 2069postuninstall_cmds= 2070finish_cmds= 2071finish_eval= 2072shlibpath_var= 2073shlibpath_overrides_runpath=unknown 2074version_type=none 2075dynamic_linker="$host_os ld.so" 2076sys_lib_dlsearch_path_spec="/lib /usr/lib" 2077m4_if($1,[],[ 2078if test "$GCC" = yes; then 2079 case $host_os in 2080 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 2081 *) lt_awk_arg="/^libraries:/" ;; 2082 esac 2083 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 2084 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 2085 # if the path contains ";" then we assume it to be the separator 2086 # otherwise default to the standard path separator (i.e. ":") - it is 2087 # assumed that no part of a normal pathname contains ";" but that should 2088 # okay in the real world where ";" in dirpaths is itself problematic. 2089 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 2090 else 2091 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 2092 fi 2093 # Ok, now we have the path, separated by spaces, we can step through it 2094 # and add multilib dir if necessary. 2095 lt_tmp_lt_search_path_spec= 2096 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 2097 for lt_sys_path in $lt_search_path_spec; do 2098 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 2099 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 2100 else 2101 test -d "$lt_sys_path" && \ 2102 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 2103 fi 2104 done 2105 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 2106BEGIN {RS=" "; FS="/|\n";} { 2107 lt_foo=""; 2108 lt_count=0; 2109 for (lt_i = NF; lt_i > 0; lt_i--) { 2110 if ($lt_i != "" && $lt_i != ".") { 2111 if ($lt_i == "..") { 2112 lt_count++; 2113 } else { 2114 if (lt_count == 0) { 2115 lt_foo="/" $lt_i lt_foo; 2116 } else { 2117 lt_count--; 2118 } 2119 } 2120 } 2121 } 2122 if (lt_foo != "") { lt_freq[[lt_foo]]++; } 2123 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 2124}'` 2125 sys_lib_search_path_spec=`echo $lt_search_path_spec` 2126else 2127 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 2128fi]) 2129need_lib_prefix=unknown 2130hardcode_into_libs=no 2131 2132# when you set need_version to no, make sure it does not cause -set_version 2133# flags to be left without arguments 2134need_version=unknown 2135 2136case $host_os in 2137aix3*) 2138 version_type=linux 2139 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 2140 shlibpath_var=LIBPATH 2141 2142 # AIX 3 has no versioning support, so we append a major version to the name. 2143 soname_spec='${libname}${release}${shared_ext}$major' 2144 ;; 2145 2146aix4* | aix5*) 2147 version_type=linux 2148 need_lib_prefix=no 2149 need_version=no 2150 hardcode_into_libs=yes 2151 if test "$host_cpu" = ia64; then 2152 # AIX 5 supports IA64 2153 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 2154 shlibpath_var=LD_LIBRARY_PATH 2155 else 2156 # With GCC up to 2.95.x, collect2 would create an import file 2157 # for dependence libraries. The import file would start with 2158 # the line `#! .'. This would cause the generated library to 2159 # depend on `.', always an invalid library. This was fixed in 2160 # development snapshots of GCC prior to 3.0. 2161 case $host_os in 2162 aix4 | aix4.[[01]] | aix4.[[01]].*) 2163 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 2164 echo ' yes ' 2165 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 2166 : 2167 else 2168 can_build_shared=no 2169 fi 2170 ;; 2171 esac 2172 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 2173 # soname into executable. Probably we can add versioning support to 2174 # collect2, so additional links can be useful in future. 2175 if test "$aix_use_runtimelinking" = yes; then 2176 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 2177 # instead of lib<name>.a to let people know that these are not 2178 # typical AIX shared libraries. 2179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2180 else 2181 # We preserve .a as extension for shared libraries through AIX4.2 2182 # and later when we are not doing run time linking. 2183 library_names_spec='${libname}${release}.a $libname.a' 2184 soname_spec='${libname}${release}${shared_ext}$major' 2185 fi 2186 shlibpath_var=LIBPATH 2187 fi 2188 ;; 2189 2190amigaos*) 2191 library_names_spec='$libname.ixlibrary $libname.a' 2192 # Create ${libname}_ixlibrary.a entries in /sys/libs. 2193 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' 2194 ;; 2195 2196beos*) 2197 library_names_spec='${libname}${shared_ext}' 2198 dynamic_linker="$host_os ld.so" 2199 shlibpath_var=LIBRARY_PATH 2200 ;; 2201 2202bsdi[[45]]*) 2203 version_type=linux 2204 need_version=no 2205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2206 soname_spec='${libname}${release}${shared_ext}$major' 2207 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 2208 shlibpath_var=LD_LIBRARY_PATH 2209 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 2210 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 2211 # the default ld.so.conf also contains /usr/contrib/lib and 2212 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 2213 # libtool to hard-code these into programs 2214 ;; 2215 2216cygwin* | mingw* | pw32*) 2217 version_type=windows 2218 shrext_cmds=".dll" 2219 need_version=no 2220 need_lib_prefix=no 2221 2222 case $GCC,$host_os in 2223 yes,cygwin* | yes,mingw* | yes,pw32*) 2224 library_names_spec='$libname.dll.a' 2225 # DLL is installed to $(libdir)/../bin by postinstall_cmds 2226 postinstall_cmds='base_file=`basename \${file}`~ 2227 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 2228 dldir=$destdir/`dirname \$dlpath`~ 2229 test -d \$dldir || mkdir -p \$dldir~ 2230 $install_prog $dir/$dlname \$dldir/$dlname~ 2231 chmod a+x \$dldir/$dlname' 2232 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 2233 dlpath=$dir/\$dldll~ 2234 $rm \$dlpath' 2235 shlibpath_overrides_runpath=yes 2236 2237 case $host_os in 2238 cygwin*) 2239 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 2240 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2241 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 2242 ;; 2243 mingw*) 2244 # MinGW DLLs use traditional 'lib' prefix 2245 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2246 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 2247 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then 2248 # It is most probably a Windows format PATH printed by 2249 # mingw gcc, but we are running on Cygwin. Gcc prints its search 2250 # path with ; separators, and with drive letters. We can handle the 2251 # drive letters (cygwin fileutils understands them), so leave them, 2252 # especially as we might pass files found there to a mingw objdump, 2253 # which wouldn't understand a cygwinified path. Ahh. 2254 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 2255 else 2256 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 2257 fi 2258 ;; 2259 pw32*) 2260 # pw32 DLLs use 'pw' prefix rather than 'lib' 2261 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2262 ;; 2263 esac 2264 ;; 2265 2266 *) 2267 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 2268 ;; 2269 esac 2270 dynamic_linker='Win32 ld.exe' 2271 # FIXME: first we should search . and the directory the executable is in 2272 shlibpath_var=PATH 2273 ;; 2274 2275darwin* | rhapsody*) 2276 dynamic_linker="$host_os dyld" 2277 version_type=darwin 2278 need_lib_prefix=no 2279 need_version=no 2280 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 2281 soname_spec='${libname}${release}${major}$shared_ext' 2282 shlibpath_overrides_runpath=yes 2283 shlibpath_var=DYLD_LIBRARY_PATH 2284 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 2285 m4_if([$1], [],[ 2286 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 2287 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 2288 ;; 2289 2290dgux*) 2291 version_type=linux 2292 need_lib_prefix=no 2293 need_version=no 2294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 2295 soname_spec='${libname}${release}${shared_ext}$major' 2296 shlibpath_var=LD_LIBRARY_PATH 2297 ;; 2298 2299freebsd1*) 2300 dynamic_linker=no 2301 ;; 2302 2303freebsd* | dragonfly*) 2304 # DragonFly does not have aout. When/if they implement a new 2305 # versioning mechanism, adjust this. 2306 if test -x /usr/bin/objformat; then 2307 objformat=`/usr/bin/objformat` 2308 else 2309 case $host_os in 2310 freebsd[[123]]*) objformat=aout ;; 2311 *) objformat=elf ;; 2312 esac 2313 fi 2314 version_type=freebsd-$objformat 2315 case $version_type in 2316 freebsd-elf*) 2317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 2318 need_version=no 2319 need_lib_prefix=no 2320 ;; 2321 freebsd-*) 2322 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 2323 need_version=yes 2324 ;; 2325 esac 2326 shlibpath_var=LD_LIBRARY_PATH 2327 case $host_os in 2328 freebsd2*) 2329 shlibpath_overrides_runpath=yes 2330 ;; 2331 freebsd3.[[01]]* | freebsdelf3.[[01]]*) 2332 shlibpath_overrides_runpath=yes 2333 hardcode_into_libs=yes 2334 ;; 2335 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 2336 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 2337 shlibpath_overrides_runpath=no 2338 hardcode_into_libs=yes 2339 ;; 2340 *) # from 4.6 on, and DragonFly 2341 shlibpath_overrides_runpath=yes 2342 hardcode_into_libs=yes 2343 ;; 2344 esac 2345 ;; 2346 2347gnu*) 2348 version_type=linux 2349 need_lib_prefix=no 2350 need_version=no 2351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 2352 soname_spec='${libname}${release}${shared_ext}$major' 2353 shlibpath_var=LD_LIBRARY_PATH 2354 hardcode_into_libs=yes 2355 ;; 2356 2357hpux9* | hpux10* | hpux11*) 2358 # Give a soname corresponding to the major version so that dld.sl refuses to 2359 # link against other versions. 2360 version_type=sunos 2361 need_lib_prefix=no 2362 need_version=no 2363 case $host_cpu in 2364 ia64*) 2365 shrext_cmds='.so' 2366 hardcode_into_libs=yes 2367 dynamic_linker="$host_os dld.so" 2368 shlibpath_var=LD_LIBRARY_PATH 2369 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 2370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2371 soname_spec='${libname}${release}${shared_ext}$major' 2372 if test "X$HPUX_IA64_MODE" = X32; then 2373 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 2374 else 2375 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 2376 fi 2377 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 2378 ;; 2379 hppa*64*) 2380 shrext_cmds='.sl' 2381 hardcode_into_libs=yes 2382 dynamic_linker="$host_os dld.sl" 2383 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 2384 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 2385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2386 soname_spec='${libname}${release}${shared_ext}$major' 2387 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 2388 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 2389 ;; 2390 *) 2391 shrext_cmds='.sl' 2392 dynamic_linker="$host_os dld.sl" 2393 shlibpath_var=SHLIB_PATH 2394 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 2395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2396 soname_spec='${libname}${release}${shared_ext}$major' 2397 ;; 2398 esac 2399 # HP-UX runs *really* slowly unless shared libraries are mode 555. 2400 postinstall_cmds='chmod 555 $lib' 2401 ;; 2402 2403interix[[3-9]]*) 2404 version_type=linux 2405 need_lib_prefix=no 2406 need_version=no 2407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 2408 soname_spec='${libname}${release}${shared_ext}$major' 2409 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 2410 shlibpath_var=LD_LIBRARY_PATH 2411 shlibpath_overrides_runpath=no 2412 hardcode_into_libs=yes 2413 ;; 2414 2415irix5* | irix6* | nonstopux*) 2416 case $host_os in 2417 nonstopux*) version_type=nonstopux ;; 2418 *) 2419 if test "$lt_cv_prog_gnu_ld" = yes; then 2420 version_type=linux 2421 else 2422 version_type=irix 2423 fi ;; 2424 esac 2425 need_lib_prefix=no 2426 need_version=no 2427 soname_spec='${libname}${release}${shared_ext}$major' 2428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 2429 case $host_os in 2430 irix5* | nonstopux*) 2431 libsuff= shlibsuff= 2432 ;; 2433 *) 2434 case $LD in # libtool.m4 will add one of these switches to LD 2435 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 2436 libsuff= shlibsuff= libmagic=32-bit;; 2437 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 2438 libsuff=32 shlibsuff=N32 libmagic=N32;; 2439 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 2440 libsuff=64 shlibsuff=64 libmagic=64-bit;; 2441 *) libsuff= shlibsuff= libmagic=never-match;; 2442 esac 2443 ;; 2444 esac 2445 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 2446 shlibpath_overrides_runpath=no 2447 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 2448 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 2449 hardcode_into_libs=yes 2450 ;; 2451 2452# No shared lib support for Linux oldld, aout, or coff. 2453linux*oldld* | linux*aout* | linux*coff*) 2454 dynamic_linker=no 2455 ;; 2456 2457# This must be Linux ELF. 2458linux* | k*bsd*-gnu) 2459 version_type=linux 2460 need_lib_prefix=no 2461 need_version=no 2462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2463 soname_spec='${libname}${release}${shared_ext}$major' 2464 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 2465 shlibpath_var=LD_LIBRARY_PATH 2466 shlibpath_overrides_runpath=no 2467 # This implies no fast_install, which is unacceptable. 2468 # Some rework will be needed to allow for fast_install 2469 # before this can be enabled. 2470 hardcode_into_libs=yes 2471 2472 # Append ld.so.conf contents to the search path 2473 if test -f /etc/ld.so.conf; then 2474 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 2475 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 2476 fi 2477 2478 # We used to test for /lib/ld.so.1 and disable shared libraries on 2479 # powerpc, because MkLinux only supported shared libraries with the 2480 # GNU dynamic linker. Since this was broken with cross compilers, 2481 # most powerpc-linux boxes support dynamic linking these days and 2482 # people can always --disable-shared, the test was removed, and we 2483 # assume the GNU/Linux dynamic linker is in use. 2484 dynamic_linker='GNU/Linux ld.so' 2485 ;; 2486 2487netbsd*) 2488 version_type=sunos 2489 need_lib_prefix=no 2490 need_version=no 2491 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 2492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 2493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 2494 dynamic_linker='NetBSD (a.out) ld.so' 2495 else 2496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 2497 soname_spec='${libname}${release}${shared_ext}$major' 2498 dynamic_linker='NetBSD ld.elf_so' 2499 fi 2500 shlibpath_var=LD_LIBRARY_PATH 2501 shlibpath_overrides_runpath=yes 2502 hardcode_into_libs=yes 2503 ;; 2504 2505newsos6) 2506 version_type=linux 2507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2508 shlibpath_var=LD_LIBRARY_PATH 2509 shlibpath_overrides_runpath=yes 2510 ;; 2511 2512nto-qnx*) 2513 version_type=linux 2514 need_lib_prefix=no 2515 need_version=no 2516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2517 soname_spec='${libname}${release}${shared_ext}$major' 2518 shlibpath_var=LD_LIBRARY_PATH 2519 shlibpath_overrides_runpath=yes 2520 ;; 2521 2522openbsd*) 2523 version_type=sunos 2524 sys_lib_dlsearch_path_spec="/usr/lib" 2525 need_lib_prefix=no 2526 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 2527 case $host_os in 2528 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 2529 *) need_version=no ;; 2530 esac 2531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 2532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 2533 shlibpath_var=LD_LIBRARY_PATH 2534 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 2535 case $host_os in 2536 openbsd2.[[89]] | openbsd2.[[89]].*) 2537 shlibpath_overrides_runpath=no 2538 ;; 2539 *) 2540 shlibpath_overrides_runpath=yes 2541 ;; 2542 esac 2543 else 2544 shlibpath_overrides_runpath=yes 2545 fi 2546 ;; 2547 2548os2*) 2549 libname_spec='$name' 2550 shrext_cmds=".dll" 2551 need_lib_prefix=no 2552 library_names_spec='$libname${shared_ext} $libname.a' 2553 dynamic_linker='OS/2 ld.exe' 2554 shlibpath_var=LIBPATH 2555 ;; 2556 2557osf3* | osf4* | osf5*) 2558 version_type=osf 2559 need_lib_prefix=no 2560 need_version=no 2561 soname_spec='${libname}${release}${shared_ext}$major' 2562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2563 shlibpath_var=LD_LIBRARY_PATH 2564 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 2565 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 2566 ;; 2567 2568rdos*) 2569 dynamic_linker=no 2570 ;; 2571 2572solaris*) 2573 version_type=linux 2574 need_lib_prefix=no 2575 need_version=no 2576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2577 soname_spec='${libname}${release}${shared_ext}$major' 2578 shlibpath_var=LD_LIBRARY_PATH 2579 shlibpath_overrides_runpath=yes 2580 hardcode_into_libs=yes 2581 # ldd complains unless libraries are executable 2582 postinstall_cmds='chmod +x $lib' 2583 ;; 2584 2585sunos4*) 2586 version_type=sunos 2587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 2588 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 2589 shlibpath_var=LD_LIBRARY_PATH 2590 shlibpath_overrides_runpath=yes 2591 if test "$with_gnu_ld" = yes; then 2592 need_lib_prefix=no 2593 fi 2594 need_version=yes 2595 ;; 2596 2597sysv4 | sysv4.3*) 2598 version_type=linux 2599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2600 soname_spec='${libname}${release}${shared_ext}$major' 2601 shlibpath_var=LD_LIBRARY_PATH 2602 case $host_vendor in 2603 sni) 2604 shlibpath_overrides_runpath=no 2605 need_lib_prefix=no 2606 export_dynamic_flag_spec='${wl}-Blargedynsym' 2607 runpath_var=LD_RUN_PATH 2608 ;; 2609 siemens) 2610 need_lib_prefix=no 2611 ;; 2612 motorola) 2613 need_lib_prefix=no 2614 need_version=no 2615 shlibpath_overrides_runpath=no 2616 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 2617 ;; 2618 esac 2619 ;; 2620 2621sysv4*MP*) 2622 if test -d /usr/nec ;then 2623 version_type=linux 2624 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 2625 soname_spec='$libname${shared_ext}.$major' 2626 shlibpath_var=LD_LIBRARY_PATH 2627 fi 2628 ;; 2629 2630sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 2631 version_type=freebsd-elf 2632 need_lib_prefix=no 2633 need_version=no 2634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 2635 soname_spec='${libname}${release}${shared_ext}$major' 2636 shlibpath_var=LD_LIBRARY_PATH 2637 hardcode_into_libs=yes 2638 if test "$with_gnu_ld" = yes; then 2639 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 2640 shlibpath_overrides_runpath=no 2641 else 2642 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 2643 shlibpath_overrides_runpath=yes 2644 case $host_os in 2645 sco3.2v5*) 2646 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 2647 ;; 2648 esac 2649 fi 2650 sys_lib_dlsearch_path_spec='/usr/lib' 2651 ;; 2652 2653uts4*) 2654 version_type=linux 2655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2656 soname_spec='${libname}${release}${shared_ext}$major' 2657 shlibpath_var=LD_LIBRARY_PATH 2658 ;; 2659 2660*) 2661 dynamic_linker=no 2662 ;; 2663esac 2664AC_MSG_RESULT([$dynamic_linker]) 2665test "$dynamic_linker" = no && can_build_shared=no 2666 2667variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 2668if test "$GCC" = yes; then 2669 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 2670fi 2671])# AC_LIBTOOL_SYS_DYNAMIC_LINKER 2672 2673 2674# _LT_AC_TAGCONFIG 2675# ---------------- 2676AC_DEFUN([_LT_AC_TAGCONFIG], 2677[AC_REQUIRE([LT_AC_PROG_SED])dnl 2678AC_ARG_WITH([tags], 2679 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], 2680 [include additional configurations @<:@automatic@:>@])], 2681 [tagnames="$withval"]) 2682 2683if test -f "$ltmain" && test -n "$tagnames"; then 2684 if test ! -f "${ofile}"; then 2685 AC_MSG_WARN([output file `$ofile' does not exist]) 2686 fi 2687 2688 if test -z "$LTCC"; then 2689 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 2690 if test -z "$LTCC"; then 2691 AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) 2692 else 2693 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) 2694 fi 2695 fi 2696 if test -z "$LTCFLAGS"; then 2697 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 2698 fi 2699 2700 # Extract list of available tagged configurations in $ofile. 2701 # Note that this assumes the entire list is on one line. 2702 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 2703 2704 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2705 for tagname in $tagnames; do 2706 IFS="$lt_save_ifs" 2707 # Check whether tagname contains only valid characters 2708 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in 2709 "") ;; 2710 *) AC_MSG_ERROR([invalid tag name: $tagname]) 2711 ;; 2712 esac 2713 2714 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 2715 then 2716 AC_MSG_ERROR([tag name \"$tagname\" already exists]) 2717 fi 2718 2719 # Update the list of available tags. 2720 if test -n "$tagname"; then 2721 echo appending configuration tag \"$tagname\" to $ofile 2722 2723 case $tagname in 2724 CXX) 2725 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 2726 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 2727 (test "X$CXX" != "Xg++"))) ; then 2728 AC_LIBTOOL_LANG_CXX_CONFIG 2729 else 2730 tagname="" 2731 fi 2732 ;; 2733 2734 F77) 2735 if test -n "$F77" && test "X$F77" != "Xno"; then 2736 AC_LIBTOOL_LANG_F77_CONFIG 2737 else 2738 tagname="" 2739 fi 2740 ;; 2741 2742 GCJ) 2743 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 2744 AC_LIBTOOL_LANG_GCJ_CONFIG 2745 else 2746 tagname="" 2747 fi 2748 ;; 2749 2750 RC) 2751 AC_LIBTOOL_LANG_RC_CONFIG 2752 ;; 2753 2754 *) 2755 AC_MSG_ERROR([Unsupported tag name: $tagname]) 2756 ;; 2757 esac 2758 2759 # Append the new tag name to the list of available tags. 2760 if test -n "$tagname" ; then 2761 available_tags="$available_tags $tagname" 2762 fi 2763 fi 2764 done 2765 IFS="$lt_save_ifs" 2766 2767 # Now substitute the updated list of available tags. 2768 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 2769 mv "${ofile}T" "$ofile" 2770 chmod +x "$ofile" 2771 else 2772 rm -f "${ofile}T" 2773 AC_MSG_ERROR([unable to update list of available tagged configurations.]) 2774 fi 2775fi 2776])# _LT_AC_TAGCONFIG 2777 2778 2779# AC_LIBTOOL_DLOPEN 2780# ----------------- 2781# enable checks for dlopen support 2782AC_DEFUN([AC_LIBTOOL_DLOPEN], 2783 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) 2784])# AC_LIBTOOL_DLOPEN 2785 2786 2787# AC_LIBTOOL_WIN32_DLL 2788# -------------------- 2789# declare package support for building win32 DLLs 2790AC_DEFUN([AC_LIBTOOL_WIN32_DLL], 2791[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) 2792])# AC_LIBTOOL_WIN32_DLL 2793 2794 2795# AC_ENABLE_SHARED([DEFAULT]) 2796# --------------------------- 2797# implement the --enable-shared flag 2798# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 2799AC_DEFUN([AC_ENABLE_SHARED], 2800[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl 2801AC_ARG_ENABLE([shared], 2802 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 2803 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], 2804 [p=${PACKAGE-default} 2805 case $enableval in 2806 yes) enable_shared=yes ;; 2807 no) enable_shared=no ;; 2808 *) 2809 enable_shared=no 2810 # Look at the argument we got. We use all the common list separators. 2811 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2812 for pkg in $enableval; do 2813 IFS="$lt_save_ifs" 2814 if test "X$pkg" = "X$p"; then 2815 enable_shared=yes 2816 fi 2817 done 2818 IFS="$lt_save_ifs" 2819 ;; 2820 esac], 2821 [enable_shared=]AC_ENABLE_SHARED_DEFAULT) 2822])# AC_ENABLE_SHARED 2823 2824 2825# AC_DISABLE_SHARED 2826# ----------------- 2827# set the default shared flag to --disable-shared 2828AC_DEFUN([AC_DISABLE_SHARED], 2829[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2830AC_ENABLE_SHARED(no) 2831])# AC_DISABLE_SHARED 2832 2833 2834# AC_ENABLE_STATIC([DEFAULT]) 2835# --------------------------- 2836# implement the --enable-static flag 2837# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 2838AC_DEFUN([AC_ENABLE_STATIC], 2839[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl 2840AC_ARG_ENABLE([static], 2841 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], 2842 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], 2843 [p=${PACKAGE-default} 2844 case $enableval in 2845 yes) enable_static=yes ;; 2846 no) enable_static=no ;; 2847 *) 2848 enable_static=no 2849 # Look at the argument we got. We use all the common list separators. 2850 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2851 for pkg in $enableval; do 2852 IFS="$lt_save_ifs" 2853 if test "X$pkg" = "X$p"; then 2854 enable_static=yes 2855 fi 2856 done 2857 IFS="$lt_save_ifs" 2858 ;; 2859 esac], 2860 [enable_static=]AC_ENABLE_STATIC_DEFAULT) 2861])# AC_ENABLE_STATIC 2862 2863 2864# AC_DISABLE_STATIC 2865# ----------------- 2866# set the default static flag to --disable-static 2867AC_DEFUN([AC_DISABLE_STATIC], 2868[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2869AC_ENABLE_STATIC(no) 2870])# AC_DISABLE_STATIC 2871 2872 2873# AC_ENABLE_FAST_INSTALL([DEFAULT]) 2874# --------------------------------- 2875# implement the --enable-fast-install flag 2876# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 2877AC_DEFUN([AC_ENABLE_FAST_INSTALL], 2878[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl 2879AC_ARG_ENABLE([fast-install], 2880 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 2881 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 2882 [p=${PACKAGE-default} 2883 case $enableval in 2884 yes) enable_fast_install=yes ;; 2885 no) enable_fast_install=no ;; 2886 *) 2887 enable_fast_install=no 2888 # Look at the argument we got. We use all the common list separators. 2889 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2890 for pkg in $enableval; do 2891 IFS="$lt_save_ifs" 2892 if test "X$pkg" = "X$p"; then 2893 enable_fast_install=yes 2894 fi 2895 done 2896 IFS="$lt_save_ifs" 2897 ;; 2898 esac], 2899 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) 2900])# AC_ENABLE_FAST_INSTALL 2901 2902 2903# AC_DISABLE_FAST_INSTALL 2904# ----------------------- 2905# set the default to --disable-fast-install 2906AC_DEFUN([AC_DISABLE_FAST_INSTALL], 2907[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2908AC_ENABLE_FAST_INSTALL(no) 2909])# AC_DISABLE_FAST_INSTALL 2910 2911 2912# AC_LIBTOOL_PICMODE([MODE]) 2913# -------------------------- 2914# implement the --with-pic flag 2915# MODE is either `yes' or `no'. If omitted, it defaults to `both'. 2916AC_DEFUN([AC_LIBTOOL_PICMODE], 2917[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2918pic_mode=ifelse($#,1,$1,default) 2919])# AC_LIBTOOL_PICMODE 2920 2921 2922# AC_PROG_EGREP 2923# ------------- 2924# This is predefined starting with Autoconf 2.54, so this conditional 2925# definition can be removed once we require Autoconf 2.54 or later. 2926m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], 2927[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], 2928 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2929 then ac_cv_prog_egrep='grep -E' 2930 else ac_cv_prog_egrep='egrep' 2931 fi]) 2932 EGREP=$ac_cv_prog_egrep 2933 AC_SUBST([EGREP]) 2934])]) 2935 2936 2937# AC_PATH_TOOL_PREFIX 2938# ------------------- 2939# find a file program which can recognize shared library 2940AC_DEFUN([AC_PATH_TOOL_PREFIX], 2941[AC_REQUIRE([AC_PROG_EGREP])dnl 2942AC_MSG_CHECKING([for $1]) 2943AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 2944[case $MAGIC_CMD in 2945[[\\/*] | ?:[\\/]*]) 2946 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 2947 ;; 2948*) 2949 lt_save_MAGIC_CMD="$MAGIC_CMD" 2950 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2951dnl $ac_dummy forces splitting on constant user-supplied paths. 2952dnl POSIX.2 word splitting is done only on the output of word expansions, 2953dnl not every word. This closes a longstanding sh security hole. 2954 ac_dummy="ifelse([$2], , $PATH, [$2])" 2955 for ac_dir in $ac_dummy; do 2956 IFS="$lt_save_ifs" 2957 test -z "$ac_dir" && ac_dir=. 2958 if test -f $ac_dir/$1; then 2959 lt_cv_path_MAGIC_CMD="$ac_dir/$1" 2960 if test -n "$file_magic_test_file"; then 2961 case $deplibs_check_method in 2962 "file_magic "*) 2963 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 2964 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 2965 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 2966 $EGREP "$file_magic_regex" > /dev/null; then 2967 : 2968 else 2969 cat <<EOF 1>&2 2970 2971*** Warning: the command libtool uses to detect shared libraries, 2972*** $file_magic_cmd, produces output that libtool cannot recognize. 2973*** The result is that libtool may fail to recognize shared libraries 2974*** as such. This will affect the creation of libtool libraries that 2975*** depend on shared libraries, but programs linked with such libtool 2976*** libraries will work regardless of this problem. Nevertheless, you 2977*** may want to report the problem to your system manager and/or to 2978*** bug-libtool@gnu.org 2979 2980EOF 2981 fi ;; 2982 esac 2983 fi 2984 break 2985 fi 2986 done 2987 IFS="$lt_save_ifs" 2988 MAGIC_CMD="$lt_save_MAGIC_CMD" 2989 ;; 2990esac]) 2991MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 2992if test -n "$MAGIC_CMD"; then 2993 AC_MSG_RESULT($MAGIC_CMD) 2994else 2995 AC_MSG_RESULT(no) 2996fi 2997])# AC_PATH_TOOL_PREFIX 2998 2999 3000# AC_PATH_MAGIC 3001# ------------- 3002# find a file program which can recognize a shared library 3003AC_DEFUN([AC_PATH_MAGIC], 3004[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 3005if test -z "$lt_cv_path_MAGIC_CMD"; then 3006 if test -n "$ac_tool_prefix"; then 3007 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 3008 else 3009 MAGIC_CMD=: 3010 fi 3011fi 3012])# AC_PATH_MAGIC 3013 3014 3015# AC_PROG_LD 3016# ---------- 3017# find the pathname to the GNU or non-GNU linker 3018AC_DEFUN([AC_PROG_LD], 3019[AC_ARG_WITH([gnu-ld], 3020 [AC_HELP_STRING([--with-gnu-ld], 3021 [assume the C compiler uses GNU ld @<:@default=no@:>@])], 3022 [test "$withval" = no || with_gnu_ld=yes], 3023 [with_gnu_ld=no]) 3024AC_REQUIRE([LT_AC_PROG_SED])dnl 3025AC_REQUIRE([AC_PROG_CC])dnl 3026AC_REQUIRE([AC_CANONICAL_HOST])dnl 3027AC_REQUIRE([AC_CANONICAL_BUILD])dnl 3028ac_prog=ld 3029if test "$GCC" = yes; then 3030 # Check if gcc -print-prog-name=ld gives a path. 3031 AC_MSG_CHECKING([for ld used by $CC]) 3032 case $host in 3033 *-*-mingw*) 3034 # gcc leaves a trailing carriage return which upsets mingw 3035 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3036 *) 3037 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3038 esac 3039 case $ac_prog in 3040 # Accept absolute paths. 3041 [[\\/]]* | ?:[[\\/]]*) 3042 re_direlt='/[[^/]][[^/]]*/\.\./' 3043 # Canonicalize the pathname of ld 3044 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3045 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3046 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3047 done 3048 test -z "$LD" && LD="$ac_prog" 3049 ;; 3050 "") 3051 # If it fails, then pretend we aren't using GCC. 3052 ac_prog=ld 3053 ;; 3054 *) 3055 # If it is relative, then search for the first ld in PATH. 3056 with_gnu_ld=unknown 3057 ;; 3058 esac 3059elif test "$with_gnu_ld" = yes; then 3060 AC_MSG_CHECKING([for GNU ld]) 3061else 3062 AC_MSG_CHECKING([for non-GNU ld]) 3063fi 3064AC_CACHE_VAL(lt_cv_path_LD, 3065[if test -z "$LD"; then 3066 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3067 for ac_dir in $PATH; do 3068 IFS="$lt_save_ifs" 3069 test -z "$ac_dir" && ac_dir=. 3070 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3071 lt_cv_path_LD="$ac_dir/$ac_prog" 3072 # Check to see if the program is GNU ld. I'd rather use --version, 3073 # but apparently some variants of GNU ld only accept -v. 3074 # Break only if it was the GNU/non-GNU ld that we prefer. 3075 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3076 *GNU* | *'with BFD'*) 3077 test "$with_gnu_ld" != no && break 3078 ;; 3079 *) 3080 test "$with_gnu_ld" != yes && break 3081 ;; 3082 esac 3083 fi 3084 done 3085 IFS="$lt_save_ifs" 3086else 3087 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3088fi]) 3089LD="$lt_cv_path_LD" 3090if test -n "$LD"; then 3091 AC_MSG_RESULT($LD) 3092else 3093 AC_MSG_RESULT(no) 3094fi 3095test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 3096AC_PROG_LD_GNU 3097])# AC_PROG_LD 3098 3099 3100# AC_PROG_LD_GNU 3101# -------------- 3102AC_DEFUN([AC_PROG_LD_GNU], 3103[AC_REQUIRE([AC_PROG_EGREP])dnl 3104AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 3105[# I'd rather use --version here, but apparently some GNU lds only accept -v. 3106case `$LD -v 2>&1 </dev/null` in 3107*GNU* | *'with BFD'*) 3108 lt_cv_prog_gnu_ld=yes 3109 ;; 3110*) 3111 lt_cv_prog_gnu_ld=no 3112 ;; 3113esac]) 3114with_gnu_ld=$lt_cv_prog_gnu_ld 3115])# AC_PROG_LD_GNU 3116 3117 3118# AC_PROG_LD_RELOAD_FLAG 3119# ---------------------- 3120# find reload flag for linker 3121# -- PORTME Some linkers may need a different reload flag. 3122AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], 3123[AC_CACHE_CHECK([for $LD option to reload object files], 3124 lt_cv_ld_reload_flag, 3125 [lt_cv_ld_reload_flag='-r']) 3126reload_flag=$lt_cv_ld_reload_flag 3127case $reload_flag in 3128"" | " "*) ;; 3129*) reload_flag=" $reload_flag" ;; 3130esac 3131reload_cmds='$LD$reload_flag -o $output$reload_objs' 3132case $host_os in 3133 darwin*) 3134 if test "$GCC" = yes; then 3135 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 3136 else 3137 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3138 fi 3139 ;; 3140esac 3141])# AC_PROG_LD_RELOAD_FLAG 3142 3143 3144# AC_DEPLIBS_CHECK_METHOD 3145# ----------------------- 3146# how to check for library dependencies 3147# -- PORTME fill in with the dynamic library characteristics 3148AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], 3149[AC_CACHE_CHECK([how to recognize dependent libraries], 3150lt_cv_deplibs_check_method, 3151[lt_cv_file_magic_cmd='$MAGIC_CMD' 3152lt_cv_file_magic_test_file= 3153lt_cv_deplibs_check_method='unknown' 3154# Need to set the preceding variable on all platforms that support 3155# interlibrary dependencies. 3156# 'none' -- dependencies not supported. 3157# `unknown' -- same as none, but documents that we really don't know. 3158# 'pass_all' -- all dependencies passed with no checks. 3159# 'test_compile' -- check by making test program. 3160# 'file_magic [[regex]]' -- check by looking for files in library path 3161# which responds to the $file_magic_cmd with a given extended regex. 3162# If you have `file' or equivalent on your system and you're not sure 3163# whether `pass_all' will *always* work, you probably want this one. 3164 3165case $host_os in 3166aix4* | aix5*) 3167 lt_cv_deplibs_check_method=pass_all 3168 ;; 3169 3170beos*) 3171 lt_cv_deplibs_check_method=pass_all 3172 ;; 3173 3174bsdi[[45]]*) 3175 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 3176 lt_cv_file_magic_cmd='/usr/bin/file -L' 3177 lt_cv_file_magic_test_file=/shlib/libc.so 3178 ;; 3179 3180cygwin*) 3181 # func_win32_libid is a shell function defined in ltmain.sh 3182 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3183 lt_cv_file_magic_cmd='func_win32_libid' 3184 ;; 3185 3186mingw* | pw32*) 3187 # Base MSYS/MinGW do not provide the 'file' command needed by 3188 # func_win32_libid shell function, so use a weaker test based on 'objdump', 3189 # unless we find 'file', for example because we are cross-compiling. 3190 if ( file / ) >/dev/null 2>&1; then 3191 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3192 lt_cv_file_magic_cmd='func_win32_libid' 3193 else 3194 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3195 lt_cv_file_magic_cmd='$OBJDUMP -f' 3196 fi 3197 ;; 3198 3199darwin* | rhapsody*) 3200 lt_cv_deplibs_check_method=pass_all 3201 ;; 3202 3203freebsd* | dragonfly*) 3204 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3205 case $host_cpu in 3206 i*86 ) 3207 # Not sure whether the presence of OpenBSD here was a mistake. 3208 # Let's accept both of them until this is cleared up. 3209 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 3210 lt_cv_file_magic_cmd=/usr/bin/file 3211 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3212 ;; 3213 esac 3214 else 3215 lt_cv_deplibs_check_method=pass_all 3216 fi 3217 ;; 3218 3219gnu*) 3220 lt_cv_deplibs_check_method=pass_all 3221 ;; 3222 3223hpux10.20* | hpux11*) 3224 lt_cv_file_magic_cmd=/usr/bin/file 3225 case $host_cpu in 3226 ia64*) 3227 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 3228 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3229 ;; 3230 hppa*64*) 3231 [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]'] 3232 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3233 ;; 3234 *) 3235 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' 3236 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3237 ;; 3238 esac 3239 ;; 3240 3241interix[[3-9]]*) 3242 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 3243 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 3244 ;; 3245 3246irix5* | irix6* | nonstopux*) 3247 case $LD in 3248 *-32|*"-32 ") libmagic=32-bit;; 3249 *-n32|*"-n32 ") libmagic=N32;; 3250 *-64|*"-64 ") libmagic=64-bit;; 3251 *) libmagic=never-match;; 3252 esac 3253 lt_cv_deplibs_check_method=pass_all 3254 ;; 3255 3256# This must be Linux ELF. 3257linux* | k*bsd*-gnu) 3258 lt_cv_deplibs_check_method=pass_all 3259 ;; 3260 3261netbsd*) 3262 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3263 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 3264 else 3265 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 3266 fi 3267 ;; 3268 3269newos6*) 3270 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 3271 lt_cv_file_magic_cmd=/usr/bin/file 3272 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3273 ;; 3274 3275nto-qnx*) 3276 lt_cv_deplibs_check_method=unknown 3277 ;; 3278 3279openbsd*) 3280 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3281 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 3282 else 3283 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 3284 fi 3285 ;; 3286 3287osf3* | osf4* | osf5*) 3288 lt_cv_deplibs_check_method=pass_all 3289 ;; 3290 3291rdos*) 3292 lt_cv_deplibs_check_method=pass_all 3293 ;; 3294 3295solaris*) 3296 lt_cv_deplibs_check_method=pass_all 3297 ;; 3298 3299sysv4 | sysv4.3*) 3300 case $host_vendor in 3301 motorola) 3302 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]]' 3303 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3304 ;; 3305 ncr) 3306 lt_cv_deplibs_check_method=pass_all 3307 ;; 3308 sequent) 3309 lt_cv_file_magic_cmd='/bin/file' 3310 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 3311 ;; 3312 sni) 3313 lt_cv_file_magic_cmd='/bin/file' 3314 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 3315 lt_cv_file_magic_test_file=/lib/libc.so 3316 ;; 3317 siemens) 3318 lt_cv_deplibs_check_method=pass_all 3319 ;; 3320 pc) 3321 lt_cv_deplibs_check_method=pass_all 3322 ;; 3323 esac 3324 ;; 3325 3326sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 3327 lt_cv_deplibs_check_method=pass_all 3328 ;; 3329esac 3330]) 3331file_magic_cmd=$lt_cv_file_magic_cmd 3332deplibs_check_method=$lt_cv_deplibs_check_method 3333test -z "$deplibs_check_method" && deplibs_check_method=unknown 3334])# AC_DEPLIBS_CHECK_METHOD 3335 3336 3337# AC_PROG_NM 3338# ---------- 3339# find the pathname to a BSD-compatible name lister 3340AC_DEFUN([AC_PROG_NM], 3341[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, 3342[if test -n "$NM"; then 3343 # Let the user override the test. 3344 lt_cv_path_NM="$NM" 3345else 3346 lt_nm_to_check="${ac_tool_prefix}nm" 3347 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3348 lt_nm_to_check="$lt_nm_to_check nm" 3349 fi 3350 for lt_tmp_nm in $lt_nm_to_check; do 3351 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3352 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3353 IFS="$lt_save_ifs" 3354 test -z "$ac_dir" && ac_dir=. 3355 tmp_nm="$ac_dir/$lt_tmp_nm" 3356 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3357 # Check to see if the nm accepts a BSD-compat flag. 3358 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3359 # nm: unknown option "B" ignored 3360 # Tru64's nm complains that /dev/null is an invalid object file 3361 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3362 */dev/null* | *'Invalid file or object type'*) 3363 lt_cv_path_NM="$tmp_nm -B" 3364 break 3365 ;; 3366 *) 3367 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3368 */dev/null*) 3369 lt_cv_path_NM="$tmp_nm -p" 3370 break 3371 ;; 3372 *) 3373 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3374 continue # so that we can try to find one that supports BSD flags 3375 ;; 3376 esac 3377 ;; 3378 esac 3379 fi 3380 done 3381 IFS="$lt_save_ifs" 3382 done 3383 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3384fi]) 3385NM="$lt_cv_path_NM" 3386])# AC_PROG_NM 3387 3388 3389# AC_CHECK_LIBM 3390# ------------- 3391# check for math library 3392AC_DEFUN([AC_CHECK_LIBM], 3393[AC_REQUIRE([AC_CANONICAL_HOST])dnl 3394LIBM= 3395case $host in 3396*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) 3397 # These system don't have libm, or don't need it 3398 ;; 3399*-ncr-sysv4.3*) 3400 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") 3401 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 3402 ;; 3403*) 3404 AC_CHECK_LIB(m, cos, LIBM="-lm") 3405 ;; 3406esac 3407])# AC_CHECK_LIBM 3408 3409 3410# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) 3411# ----------------------------------- 3412# sets LIBLTDL to the link flags for the libltdl convenience library and 3413# LTDLINCL to the include flags for the libltdl header and adds 3414# --enable-ltdl-convenience to the configure arguments. Note that 3415# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 3416# it is assumed to be `libltdl'. LIBLTDL will be prefixed with 3417# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' 3418# (note the single quotes!). If your package is not flat and you're not 3419# using automake, define top_builddir and top_srcdir appropriately in 3420# the Makefiles. 3421AC_DEFUN([AC_LIBLTDL_CONVENIENCE], 3422[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 3423 case $enable_ltdl_convenience in 3424 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; 3425 "") enable_ltdl_convenience=yes 3426 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; 3427 esac 3428 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la 3429 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) 3430 # For backwards non-gettext consistent compatibility... 3431 INCLTDL="$LTDLINCL" 3432])# AC_LIBLTDL_CONVENIENCE 3433 3434 3435# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) 3436# ----------------------------------- 3437# sets LIBLTDL to the link flags for the libltdl installable library and 3438# LTDLINCL to the include flags for the libltdl header and adds 3439# --enable-ltdl-install to the configure arguments. Note that 3440# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 3441# and an installed libltdl is not found, it is assumed to be `libltdl'. 3442# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with 3443# '${top_srcdir}/' (note the single quotes!). If your package is not 3444# flat and you're not using automake, define top_builddir and top_srcdir 3445# appropriately in the Makefiles. 3446# In the future, this macro may have to be called after AC_PROG_LIBTOOL. 3447AC_DEFUN([AC_LIBLTDL_INSTALLABLE], 3448[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 3449 AC_CHECK_LIB(ltdl, lt_dlinit, 3450 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], 3451 [if test x"$enable_ltdl_install" = xno; then 3452 AC_MSG_WARN([libltdl not installed, but installation disabled]) 3453 else 3454 enable_ltdl_install=yes 3455 fi 3456 ]) 3457 if test x"$enable_ltdl_install" = x"yes"; then 3458 ac_configure_args="$ac_configure_args --enable-ltdl-install" 3459 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la 3460 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) 3461 else 3462 ac_configure_args="$ac_configure_args --enable-ltdl-install=no" 3463 LIBLTDL="-lltdl" 3464 LTDLINCL= 3465 fi 3466 # For backwards non-gettext consistent compatibility... 3467 INCLTDL="$LTDLINCL" 3468])# AC_LIBLTDL_INSTALLABLE 3469 3470 3471# AC_LIBTOOL_CXX 3472# -------------- 3473# enable support for C++ libraries 3474AC_DEFUN([AC_LIBTOOL_CXX], 3475[AC_REQUIRE([_LT_AC_LANG_CXX]) 3476])# AC_LIBTOOL_CXX 3477 3478 3479# _LT_AC_LANG_CXX 3480# --------------- 3481AC_DEFUN([_LT_AC_LANG_CXX], 3482[AC_REQUIRE([AC_PROG_CXX]) 3483AC_REQUIRE([_LT_AC_PROG_CXXCPP]) 3484_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) 3485])# _LT_AC_LANG_CXX 3486 3487# _LT_AC_PROG_CXXCPP 3488# ------------------ 3489AC_DEFUN([_LT_AC_PROG_CXXCPP], 3490[ 3491AC_REQUIRE([AC_PROG_CXX]) 3492if test -n "$CXX" && ( test "X$CXX" != "Xno" && 3493 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 3494 (test "X$CXX" != "Xg++"))) ; then 3495 AC_PROG_CXXCPP 3496fi 3497])# _LT_AC_PROG_CXXCPP 3498 3499# AC_LIBTOOL_F77 3500# -------------- 3501# enable support for Fortran 77 libraries 3502AC_DEFUN([AC_LIBTOOL_F77], 3503[AC_REQUIRE([_LT_AC_LANG_F77]) 3504])# AC_LIBTOOL_F77 3505 3506 3507# _LT_AC_LANG_F77 3508# --------------- 3509AC_DEFUN([_LT_AC_LANG_F77], 3510[AC_REQUIRE([AC_PROG_F77]) 3511_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) 3512])# _LT_AC_LANG_F77 3513 3514 3515# AC_LIBTOOL_GCJ 3516# -------------- 3517# enable support for GCJ libraries 3518AC_DEFUN([AC_LIBTOOL_GCJ], 3519[AC_REQUIRE([_LT_AC_LANG_GCJ]) 3520])# AC_LIBTOOL_GCJ 3521 3522 3523# _LT_AC_LANG_GCJ 3524# --------------- 3525AC_DEFUN([_LT_AC_LANG_GCJ], 3526[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], 3527 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], 3528 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], 3529 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], 3530 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], 3531 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) 3532_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) 3533])# _LT_AC_LANG_GCJ 3534 3535 3536# AC_LIBTOOL_RC 3537# ------------- 3538# enable support for Windows resource files 3539AC_DEFUN([AC_LIBTOOL_RC], 3540[AC_REQUIRE([LT_AC_PROG_RC]) 3541_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) 3542])# AC_LIBTOOL_RC 3543 3544 3545# AC_LIBTOOL_LANG_C_CONFIG 3546# ------------------------ 3547# Ensure that the configuration vars for the C compiler are 3548# suitably defined. Those variables are subsequently used by 3549# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 3550AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) 3551AC_DEFUN([_LT_AC_LANG_C_CONFIG], 3552[lt_save_CC="$CC" 3553AC_LANG_PUSH(C) 3554 3555# Source file extension for C test sources. 3556ac_ext=c 3557 3558# Object file extension for compiled C test sources. 3559objext=o 3560_LT_AC_TAGVAR(objext, $1)=$objext 3561 3562# Code to be used in simple compile tests 3563lt_simple_compile_test_code="int some_variable = 0;" 3564 3565# Code to be used in simple link tests 3566lt_simple_link_test_code='int main(){return(0);}' 3567 3568_LT_AC_SYS_COMPILER 3569 3570# save warnings/boilerplate of simple test code 3571_LT_COMPILER_BOILERPLATE 3572_LT_LINKER_BOILERPLATE 3573 3574AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) 3575AC_LIBTOOL_PROG_COMPILER_PIC($1) 3576AC_LIBTOOL_PROG_CC_C_O($1) 3577AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 3578AC_LIBTOOL_PROG_LD_SHLIBS($1) 3579AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 3580AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 3581AC_LIBTOOL_SYS_LIB_STRIP 3582AC_LIBTOOL_DLOPEN_SELF 3583 3584# Report which library types will actually be built 3585AC_MSG_CHECKING([if libtool supports shared libraries]) 3586AC_MSG_RESULT([$can_build_shared]) 3587 3588AC_MSG_CHECKING([whether to build shared libraries]) 3589test "$can_build_shared" = "no" && enable_shared=no 3590 3591# On AIX, shared libraries and static libraries use the same namespace, and 3592# are all built from PIC. 3593case $host_os in 3594aix3*) 3595 test "$enable_shared" = yes && enable_static=no 3596 if test -n "$RANLIB"; then 3597 archive_cmds="$archive_cmds~\$RANLIB \$lib" 3598 postinstall_cmds='$RANLIB $lib' 3599 fi 3600 ;; 3601 3602aix4* | aix5*) 3603 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 3604 test "$enable_shared" = yes && enable_static=no 3605 fi 3606 ;; 3607esac 3608AC_MSG_RESULT([$enable_shared]) 3609 3610AC_MSG_CHECKING([whether to build static libraries]) 3611# Make sure either enable_shared or enable_static is yes. 3612test "$enable_shared" = yes || enable_static=yes 3613AC_MSG_RESULT([$enable_static]) 3614 3615AC_LIBTOOL_CONFIG($1) 3616 3617AC_LANG_POP 3618CC="$lt_save_CC" 3619])# AC_LIBTOOL_LANG_C_CONFIG 3620 3621 3622# AC_LIBTOOL_LANG_CXX_CONFIG 3623# -------------------------- 3624# Ensure that the configuration vars for the C compiler are 3625# suitably defined. Those variables are subsequently used by 3626# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 3627AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) 3628AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], 3629[AC_LANG_PUSH(C++) 3630AC_REQUIRE([AC_PROG_CXX]) 3631AC_REQUIRE([_LT_AC_PROG_CXXCPP]) 3632 3633_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3634_LT_AC_TAGVAR(allow_undefined_flag, $1)= 3635_LT_AC_TAGVAR(always_export_symbols, $1)=no 3636_LT_AC_TAGVAR(archive_expsym_cmds, $1)= 3637_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 3638_LT_AC_TAGVAR(hardcode_direct, $1)=no 3639_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 3640_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 3641_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 3642_LT_AC_TAGVAR(hardcode_minus_L, $1)=no 3643_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 3644_LT_AC_TAGVAR(hardcode_automatic, $1)=no 3645_LT_AC_TAGVAR(module_cmds, $1)= 3646_LT_AC_TAGVAR(module_expsym_cmds, $1)= 3647_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 3648_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 3649_LT_AC_TAGVAR(no_undefined_flag, $1)= 3650_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 3651_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 3652 3653# Dependencies to place before and after the object being linked: 3654_LT_AC_TAGVAR(predep_objects, $1)= 3655_LT_AC_TAGVAR(postdep_objects, $1)= 3656_LT_AC_TAGVAR(predeps, $1)= 3657_LT_AC_TAGVAR(postdeps, $1)= 3658_LT_AC_TAGVAR(compiler_lib_search_path, $1)= 3659 3660# Source file extension for C++ test sources. 3661ac_ext=cpp 3662 3663# Object file extension for compiled C++ test sources. 3664objext=o 3665_LT_AC_TAGVAR(objext, $1)=$objext 3666 3667# Code to be used in simple compile tests 3668lt_simple_compile_test_code="int some_variable = 0;" 3669 3670# Code to be used in simple link tests 3671lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 3672 3673# ltmain only uses $CC for tagged configurations so make sure $CC is set. 3674_LT_AC_SYS_COMPILER 3675 3676# save warnings/boilerplate of simple test code 3677_LT_COMPILER_BOILERPLATE 3678_LT_LINKER_BOILERPLATE 3679 3680# Allow CC to be a program name with arguments. 3681lt_save_CC=$CC 3682lt_save_LD=$LD 3683lt_save_GCC=$GCC 3684GCC=$GXX 3685lt_save_with_gnu_ld=$with_gnu_ld 3686lt_save_path_LD=$lt_cv_path_LD 3687if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 3688 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 3689else 3690 $as_unset lt_cv_prog_gnu_ld 3691fi 3692if test -n "${lt_cv_path_LDCXX+set}"; then 3693 lt_cv_path_LD=$lt_cv_path_LDCXX 3694else 3695 $as_unset lt_cv_path_LD 3696fi 3697test -z "${LDCXX+set}" || LD=$LDCXX 3698CC=${CXX-"c++"} 3699compiler=$CC 3700_LT_AC_TAGVAR(compiler, $1)=$CC 3701_LT_CC_BASENAME([$compiler]) 3702 3703# We don't want -fno-exception wen compiling C++ code, so set the 3704# no_builtin_flag separately 3705if test "$GXX" = yes; then 3706 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 3707else 3708 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 3709fi 3710 3711if test "$GXX" = yes; then 3712 # Set up default GNU C++ configuration 3713 3714 AC_PROG_LD 3715 3716 # Check if GNU C++ uses GNU ld as the underlying linker, since the 3717 # archiving commands below assume that GNU ld is being used. 3718 if test "$with_gnu_ld" = yes; then 3719 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 3720 _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' 3721 3722 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 3723 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 3724 3725 # If archive_cmds runs LD, not CC, wlarc should be empty 3726 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 3727 # investigate it a little bit more. (MM) 3728 wlarc='${wl}' 3729 3730 # ancient GNU ld didn't support --whole-archive et. al. 3731 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 3732 grep 'no-whole-archive' > /dev/null; then 3733 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 3734 else 3735 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 3736 fi 3737 else 3738 with_gnu_ld=no 3739 wlarc= 3740 3741 # A generic and very simple default shared library creation 3742 # command for GNU C++ for the case where it uses the native 3743 # linker, instead of GNU ld. If possible, this setting should 3744 # overridden to take advantage of the native linker features on 3745 # the platform it is being used on. 3746 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 3747 fi 3748 3749 # Commands to make compiler produce verbose output that lists 3750 # what "hidden" libraries, object files and flags are used when 3751 # linking a shared library. 3752 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 3753 3754else 3755 GXX=no 3756 with_gnu_ld=no 3757 wlarc= 3758fi 3759 3760# PORTME: fill in a description of your system's C++ link characteristics 3761AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 3762_LT_AC_TAGVAR(ld_shlibs, $1)=yes 3763case $host_os in 3764 aix3*) 3765 # FIXME: insert proper C++ library support 3766 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3767 ;; 3768 aix4* | aix5*) 3769 if test "$host_cpu" = ia64; then 3770 # On IA64, the linker does run time linking by default, so we don't 3771 # have to do anything special. 3772 aix_use_runtimelinking=no 3773 exp_sym_flag='-Bexport' 3774 no_entry_flag="" 3775 else 3776 aix_use_runtimelinking=no 3777 3778 # Test if we are trying to use run time linking or normal 3779 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 3780 # need to do runtime linking. 3781 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) 3782 for ld_flag in $LDFLAGS; do 3783 case $ld_flag in 3784 *-brtl*) 3785 aix_use_runtimelinking=yes 3786 break 3787 ;; 3788 esac 3789 done 3790 ;; 3791 esac 3792 3793 exp_sym_flag='-bexport' 3794 no_entry_flag='-bnoentry' 3795 fi 3796 3797 # When large executables or shared objects are built, AIX ld can 3798 # have problems creating the table of contents. If linking a library 3799 # or program results in "error TOC overflow" add -mminimal-toc to 3800 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 3801 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 3802 3803 _LT_AC_TAGVAR(archive_cmds, $1)='' 3804 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3805 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 3806 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3807 3808 if test "$GXX" = yes; then 3809 case $host_os in aix4.[[012]]|aix4.[[012]].*) 3810 # We only want to do this on AIX 4.2 and lower, the check 3811 # below for broken collect2 doesn't work under 4.3+ 3812 collect2name=`${CC} -print-prog-name=collect2` 3813 if test -f "$collect2name" && \ 3814 strings "$collect2name" | grep resolve_lib_name >/dev/null 3815 then 3816 # We have reworked collect2 3817 : 3818 else 3819 # We have old collect2 3820 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 3821 # It fails to find uninstalled libraries when the uninstalled 3822 # path is not listed in the libpath. Setting hardcode_minus_L 3823 # to unsupported forces relinking 3824 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 3825 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 3826 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 3827 fi 3828 ;; 3829 esac 3830 shared_flag='-shared' 3831 if test "$aix_use_runtimelinking" = yes; then 3832 shared_flag="$shared_flag "'${wl}-G' 3833 fi 3834 else 3835 # not using gcc 3836 if test "$host_cpu" = ia64; then 3837 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 3838 # chokes on -Wl,-G. The following line is correct: 3839 shared_flag='-G' 3840 else 3841 if test "$aix_use_runtimelinking" = yes; then 3842 shared_flag='${wl}-G' 3843 else 3844 shared_flag='${wl}-bM:SRE' 3845 fi 3846 fi 3847 fi 3848 3849 # It seems that -bexpall does not export symbols beginning with 3850 # underscore (_), so it is better to generate a list of symbols to export. 3851 _LT_AC_TAGVAR(always_export_symbols, $1)=yes 3852 if test "$aix_use_runtimelinking" = yes; then 3853 # Warning - without using the other runtime loading flags (-brtl), 3854 # -berok will link without error, but may produce a broken library. 3855 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' 3856 # Determine the default libpath from the value encoded in an empty executable. 3857 _LT_AC_SYS_LIBPATH_AIX 3858 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 3859 3860 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 3861 else 3862 if test "$host_cpu" = ia64; then 3863 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 3864 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 3865 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 3866 else 3867 # Determine the default libpath from the value encoded in an empty executable. 3868 _LT_AC_SYS_LIBPATH_AIX 3869 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 3870 # Warning - without using the other run time loading flags, 3871 # -berok will link without error, but may produce a broken library. 3872 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 3873 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 3874 # Exported symbols can be pulled into shared objects from archives 3875 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 3876 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 3877 # This is similar to how AIX traditionally builds its shared libraries. 3878 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 3879 fi 3880 fi 3881 ;; 3882 3883 beos*) 3884 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 3885 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 3886 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 3887 # support --undefined. This deserves some investigation. FIXME 3888 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 3889 else 3890 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3891 fi 3892 ;; 3893 3894 chorus*) 3895 case $cc_basename in 3896 *) 3897 # FIXME: insert proper C++ library support 3898 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3899 ;; 3900 esac 3901 ;; 3902 3903 cygwin* | mingw* | pw32*) 3904 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 3905 # as there is no search path for DLLs. 3906 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 3907 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 3908 _LT_AC_TAGVAR(always_export_symbols, $1)=no 3909 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 3910 3911 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 3912 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 3913 # If the export-symbols file already is a .def file (1st line 3914 # is EXPORTS), use it as is; otherwise, prepend... 3915 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 3916 cp $export_symbols $output_objdir/$soname.def; 3917 else 3918 echo EXPORTS > $output_objdir/$soname.def; 3919 cat $export_symbols >> $output_objdir/$soname.def; 3920 fi~ 3921 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 3922 else 3923 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3924 fi 3925 ;; 3926 darwin* | rhapsody*) 3927 case $host_os in 3928 rhapsody* | darwin1.[[012]]) 3929 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' 3930 ;; 3931 *) # Darwin 1.3 on 3932 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 3933 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 3934 else 3935 case ${MACOSX_DEPLOYMENT_TARGET} in 3936 10.[[012]]) 3937 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 3938 ;; 3939 10.*) 3940 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' 3941 ;; 3942 esac 3943 fi 3944 ;; 3945 esac 3946 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3947 _LT_AC_TAGVAR(hardcode_direct, $1)=no 3948 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 3949 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 3950 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' 3951 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3952 3953 if test "$GXX" = yes ; then 3954 lt_int_apple_cc_single_mod=no 3955 output_verbose_link_cmd='echo' 3956 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 3957 lt_int_apple_cc_single_mod=yes 3958 fi 3959 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 3960 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 3961 else 3962 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 3963 fi 3964 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 3965 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 3966 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 3967 _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}' 3968 else 3969 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 3970 fi 3971 _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}' 3972 else 3973 case $cc_basename in 3974 xlc*) 3975 output_verbose_link_cmd='echo' 3976 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 3977 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 3978 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 3979 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 3980 _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}' 3981 ;; 3982 *) 3983 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3984 ;; 3985 esac 3986 fi 3987 ;; 3988 3989 dgux*) 3990 case $cc_basename in 3991 ec++*) 3992 # FIXME: insert proper C++ library support 3993 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3994 ;; 3995 ghcx*) 3996 # Green Hills C++ Compiler 3997 # FIXME: insert proper C++ library support 3998 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3999 ;; 4000 *) 4001 # FIXME: insert proper C++ library support 4002 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4003 ;; 4004 esac 4005 ;; 4006 freebsd[[12]]*) 4007 # C++ shared libraries reported to be fairly broken before switch to ELF 4008 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4009 ;; 4010 freebsd-elf*) 4011 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 4012 ;; 4013 freebsd* | dragonfly*) 4014 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 4015 # conventions 4016 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 4017 ;; 4018 gnu*) 4019 ;; 4020 hpux9*) 4021 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 4022 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4023 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 4024 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 4025 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 4026 # but as the default 4027 # location of the library. 4028 4029 case $cc_basename in 4030 CC*) 4031 # FIXME: insert proper C++ library support 4032 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4033 ;; 4034 aCC*) 4035 _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' 4036 # Commands to make compiler produce verbose output that lists 4037 # what "hidden" libraries, object files and flags are used when 4038 # linking a shared library. 4039 # 4040 # There doesn't appear to be a way to prevent this compiler from 4041 # explicitly linking system object files so we need to strip them 4042 # from the output so that they don't get included in the library 4043 # dependencies. 4044 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' 4045 ;; 4046 *) 4047 if test "$GXX" = yes; then 4048 _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' 4049 else 4050 # FIXME: insert proper C++ library support 4051 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4052 fi 4053 ;; 4054 esac 4055 ;; 4056 hpux10*|hpux11*) 4057 if test $with_gnu_ld = no; then 4058 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 4059 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4060 4061 case $host_cpu in 4062 hppa*64*|ia64*) ;; 4063 *) 4064 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 4065 ;; 4066 esac 4067 fi 4068 case $host_cpu in 4069 hppa*64*|ia64*) 4070 _LT_AC_TAGVAR(hardcode_direct, $1)=no 4071 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4072 ;; 4073 *) 4074 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 4075 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 4076 # but as the default 4077 # location of the library. 4078 ;; 4079 esac 4080 4081 case $cc_basename in 4082 CC*) 4083 # FIXME: insert proper C++ library support 4084 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4085 ;; 4086 aCC*) 4087 case $host_cpu in 4088 hppa*64*) 4089 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 4090 ;; 4091 ia64*) 4092 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 4093 ;; 4094 *) 4095 _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' 4096 ;; 4097 esac 4098 # Commands to make compiler produce verbose output that lists 4099 # what "hidden" libraries, object files and flags are used when 4100 # linking a shared library. 4101 # 4102 # There doesn't appear to be a way to prevent this compiler from 4103 # explicitly linking system object files so we need to strip them 4104 # from the output so that they don't get included in the library 4105 # dependencies. 4106 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' 4107 ;; 4108 *) 4109 if test "$GXX" = yes; then 4110 if test $with_gnu_ld = no; then 4111 case $host_cpu in 4112 hppa*64*) 4113 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 4114 ;; 4115 ia64*) 4116 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 4117 ;; 4118 *) 4119 _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' 4120 ;; 4121 esac 4122 fi 4123 else 4124 # FIXME: insert proper C++ library support 4125 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4126 fi 4127 ;; 4128 esac 4129 ;; 4130 interix[[3-9]]*) 4131 _LT_AC_TAGVAR(hardcode_direct, $1)=no 4132 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4133 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 4134 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 4135 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 4136 # Instead, shared libraries are loaded at an image base (0x10000000 by 4137 # default) and relocated if they conflict, which is a slow very memory 4138 # consuming and fragmenting process. To avoid this, we pick a random, 4139 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 4140 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 4141 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 4142 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 4143 ;; 4144 irix5* | irix6*) 4145 case $cc_basename in 4146 CC*) 4147 # SGI C++ 4148 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 4149 4150 # Archives containing C++ object files must be created using 4151 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 4152 # necessary to make sure instantiated templates are included 4153 # in the archive. 4154 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 4155 ;; 4156 *) 4157 if test "$GXX" = yes; then 4158 if test "$with_gnu_ld" = no; then 4159 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 4160 else 4161 _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' 4162 fi 4163 fi 4164 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 4165 ;; 4166 esac 4167 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4168 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4169 ;; 4170 linux* | k*bsd*-gnu) 4171 case $cc_basename in 4172 KCC*) 4173 # Kuck and Associates, Inc. (KAI) C++ Compiler 4174 4175 # KCC will only create a shared library if the output file 4176 # ends with ".so" (or ".sl" for HP-UX), so rename the library 4177 # to its proper name (with version) after linking. 4178 _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' 4179 _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' 4180 # Commands to make compiler produce verbose output that lists 4181 # what "hidden" libraries, object files and flags are used when 4182 # linking a shared library. 4183 # 4184 # There doesn't appear to be a way to prevent this compiler from 4185 # explicitly linking system object files so we need to strip them 4186 # from the output so that they don't get included in the library 4187 # dependencies. 4188 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' 4189 4190 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' 4191 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 4192 4193 # Archives containing C++ object files must be created using 4194 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 4195 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 4196 ;; 4197 icpc*) 4198 # Intel C++ 4199 with_gnu_ld=yes 4200 # version 8.0 and above of icpc choke on multiply defined symbols 4201 # if we add $predep_objects and $postdep_objects, however 7.1 and 4202 # earlier do not add the objects themselves. 4203 case `$CC -V 2>&1` in 4204 *"Version 7."*) 4205 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 4206 _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' 4207 ;; 4208 *) # Version 8.0 or newer 4209 tmp_idyn= 4210 case $host_cpu in 4211 ia64*) tmp_idyn=' -i_dynamic';; 4212 esac 4213 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4214 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 4215 ;; 4216 esac 4217 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 4218 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 4219 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 4220 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 4221 ;; 4222 pgCC*) 4223 # Portland Group C++ compiler 4224 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 4225 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 4226 4227 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 4228 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 4229 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 4230 ;; 4231 cxx*) 4232 # Compaq C++ 4233 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 4234 _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' 4235 4236 runpath_var=LD_RUN_PATH 4237 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 4238 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4239 4240 # Commands to make compiler produce verbose output that lists 4241 # what "hidden" libraries, object files and flags are used when 4242 # linking a shared library. 4243 # 4244 # There doesn't appear to be a way to prevent this compiler from 4245 # explicitly linking system object files so we need to strip them 4246 # from the output so that they don't get included in the library 4247 # dependencies. 4248 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' 4249 ;; 4250 *) 4251 case `$CC -V 2>&1 | sed 5q` in 4252 *Sun\ C*) 4253 # Sun C++ 5.9 4254 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 4255 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 4256 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 4257 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 4258 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 4259 4260 # Not sure whether something based on 4261 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 4262 # would be better. 4263 output_verbose_link_cmd='echo' 4264 4265 # Archives containing C++ object files must be created using 4266 # "CC -xar", where "CC" is the Sun C++ compiler. This is 4267 # necessary to make sure instantiated templates are included 4268 # in the archive. 4269 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 4270 ;; 4271 esac 4272 ;; 4273 esac 4274 ;; 4275 lynxos*) 4276 # FIXME: insert proper C++ library support 4277 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4278 ;; 4279 m88k*) 4280 # FIXME: insert proper C++ library support 4281 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4282 ;; 4283 mvs*) 4284 case $cc_basename in 4285 cxx*) 4286 # FIXME: insert proper C++ library support 4287 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4288 ;; 4289 *) 4290 # FIXME: insert proper C++ library support 4291 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4292 ;; 4293 esac 4294 ;; 4295 netbsd*) 4296 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 4297 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 4298 wlarc= 4299 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 4300 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 4301 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4302 fi 4303 # Workaround some broken pre-1.5 toolchains 4304 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 4305 ;; 4306 openbsd2*) 4307 # C++ shared libraries are fairly broken 4308 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4309 ;; 4310 openbsd*) 4311 if test -f /usr/libexec/ld.so; then 4312 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 4313 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4314 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 4315 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 4316 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4317 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 4318 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 4319 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 4320 fi 4321 output_verbose_link_cmd='echo' 4322 else 4323 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4324 fi 4325 ;; 4326 osf3*) 4327 case $cc_basename in 4328 KCC*) 4329 # Kuck and Associates, Inc. (KAI) C++ Compiler 4330 4331 # KCC will only create a shared library if the output file 4332 # ends with ".so" (or ".sl" for HP-UX), so rename the library 4333 # to its proper name (with version) after linking. 4334 _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' 4335 4336 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 4337 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4338 4339 # Archives containing C++ object files must be created using 4340 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 4341 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 4342 4343 ;; 4344 RCC*) 4345 # Rational C++ 2.4.1 4346 # FIXME: insert proper C++ library support 4347 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4348 ;; 4349 cxx*) 4350 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 4351 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 4352 4353 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4354 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4355 4356 # Commands to make compiler produce verbose output that lists 4357 # what "hidden" libraries, object files and flags are used when 4358 # linking a shared library. 4359 # 4360 # There doesn't appear to be a way to prevent this compiler from 4361 # explicitly linking system object files so we need to strip them 4362 # from the output so that they don't get included in the library 4363 # dependencies. 4364 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' 4365 ;; 4366 *) 4367 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 4368 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 4369 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 4370 4371 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4372 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4373 4374 # Commands to make compiler produce verbose output that lists 4375 # what "hidden" libraries, object files and flags are used when 4376 # linking a shared library. 4377 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 4378 4379 else 4380 # FIXME: insert proper C++ library support 4381 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4382 fi 4383 ;; 4384 esac 4385 ;; 4386 osf4* | osf5*) 4387 case $cc_basename in 4388 KCC*) 4389 # Kuck and Associates, Inc. (KAI) C++ Compiler 4390 4391 # KCC will only create a shared library if the output file 4392 # ends with ".so" (or ".sl" for HP-UX), so rename the library 4393 # to its proper name (with version) after linking. 4394 _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' 4395 4396 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 4397 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4398 4399 # Archives containing C++ object files must be created using 4400 # the KAI C++ compiler. 4401 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' 4402 ;; 4403 RCC*) 4404 # Rational C++ 2.4.1 4405 # FIXME: insert proper C++ library support 4406 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4407 ;; 4408 cxx*) 4409 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 4410 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 4411 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 4412 echo "-hidden">> $lib.exp~ 4413 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ 4414 $rm $lib.exp' 4415 4416 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 4417 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4418 4419 # Commands to make compiler produce verbose output that lists 4420 # what "hidden" libraries, object files and flags are used when 4421 # linking a shared library. 4422 # 4423 # There doesn't appear to be a way to prevent this compiler from 4424 # explicitly linking system object files so we need to strip them 4425 # from the output so that they don't get included in the library 4426 # dependencies. 4427 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' 4428 ;; 4429 *) 4430 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 4431 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 4432 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 4433 4434 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4435 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4436 4437 # Commands to make compiler produce verbose output that lists 4438 # what "hidden" libraries, object files and flags are used when 4439 # linking a shared library. 4440 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 4441 4442 else 4443 # FIXME: insert proper C++ library support 4444 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4445 fi 4446 ;; 4447 esac 4448 ;; 4449 psos*) 4450 # FIXME: insert proper C++ library support 4451 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4452 ;; 4453 sunos4*) 4454 case $cc_basename in 4455 CC*) 4456 # Sun C++ 4.x 4457 # FIXME: insert proper C++ library support 4458 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4459 ;; 4460 lcc*) 4461 # Lucid 4462 # FIXME: insert proper C++ library support 4463 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4464 ;; 4465 *) 4466 # FIXME: insert proper C++ library support 4467 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4468 ;; 4469 esac 4470 ;; 4471 solaris*) 4472 case $cc_basename in 4473 CC*) 4474 # Sun C++ 4.2, 5.x and Centerline C++ 4475 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes 4476 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 4477 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 4478 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 4479 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 4480 4481 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 4482 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4483 case $host_os in 4484 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 4485 *) 4486 # The compiler driver will combine and reorder linker options, 4487 # but understands `-z linker_flag'. 4488 # Supported since Solaris 2.6 (maybe 2.5.1?) 4489 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 4490 ;; 4491 esac 4492 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 4493 4494 output_verbose_link_cmd='echo' 4495 4496 # Archives containing C++ object files must be created using 4497 # "CC -xar", where "CC" is the Sun C++ compiler. This is 4498 # necessary to make sure instantiated templates are included 4499 # in the archive. 4500 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 4501 ;; 4502 gcx*) 4503 # Green Hills C++ Compiler 4504 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 4505 4506 # The C++ compiler must be used to create the archive. 4507 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 4508 ;; 4509 *) 4510 # GNU C++ compiler with Solaris linker 4511 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 4512 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 4513 if $CC --version | grep -v '^2\.7' > /dev/null; then 4514 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 4515 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 4516 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 4517 4518 # Commands to make compiler produce verbose output that lists 4519 # what "hidden" libraries, object files and flags are used when 4520 # linking a shared library. 4521 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 4522 else 4523 # g++ 2.7 appears to require `-G' NOT `-shared' on this 4524 # platform. 4525 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 4526 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 4527 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 4528 4529 # Commands to make compiler produce verbose output that lists 4530 # what "hidden" libraries, object files and flags are used when 4531 # linking a shared library. 4532 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 4533 fi 4534 4535 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 4536 case $host_os in 4537 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 4538 *) 4539 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 4540 ;; 4541 esac 4542 fi 4543 ;; 4544 esac 4545 ;; 4546 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 4547 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 4548 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 4549 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4550 runpath_var='LD_RUN_PATH' 4551 4552 case $cc_basename in 4553 CC*) 4554 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 4555 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 4556 ;; 4557 *) 4558 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 4559 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 4560 ;; 4561 esac 4562 ;; 4563 sysv5* | sco3.2v5* | sco5v6*) 4564 # Note: We can NOT use -z defs as we might desire, because we do not 4565 # link with -lc, and that would cause any symbols used from libc to 4566 # always be unresolved, which means just about no library would 4567 # ever link correctly. If we're not using GNU ld we use -z text 4568 # though, which does catch some bad symbols but isn't as heavy-handed 4569 # as -z defs. 4570 # For security reasons, it is highly recommended that you always 4571 # use absolute paths for naming shared libraries, and exclude the 4572 # DT_RUNPATH tag from executables and libraries. But doing so 4573 # requires that you compile everything twice, which is a pain. 4574 # So that behaviour is only enabled if SCOABSPATH is set to a 4575 # non-empty value in the environment. Most likely only useful for 4576 # creating official distributions of packages. 4577 # This is a hack until libtool officially supports absolute path 4578 # names for shared libraries. 4579 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 4580 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 4581 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 4582 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4583 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 4584 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 4585 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 4586 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 4587 runpath_var='LD_RUN_PATH' 4588 4589 case $cc_basename in 4590 CC*) 4591 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 4592 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 4593 ;; 4594 *) 4595 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 4596 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 4597 ;; 4598 esac 4599 ;; 4600 tandem*) 4601 case $cc_basename in 4602 NCC*) 4603 # NonStop-UX NCC 3.20 4604 # FIXME: insert proper C++ library support 4605 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4606 ;; 4607 *) 4608 # FIXME: insert proper C++ library support 4609 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4610 ;; 4611 esac 4612 ;; 4613 vxworks*) 4614 # FIXME: insert proper C++ library support 4615 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4616 ;; 4617 *) 4618 # FIXME: insert proper C++ library support 4619 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4620 ;; 4621esac 4622AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 4623test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 4624 4625_LT_AC_TAGVAR(GCC, $1)="$GXX" 4626_LT_AC_TAGVAR(LD, $1)="$LD" 4627 4628AC_LIBTOOL_POSTDEP_PREDEP($1) 4629AC_LIBTOOL_PROG_COMPILER_PIC($1) 4630AC_LIBTOOL_PROG_CC_C_O($1) 4631AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 4632AC_LIBTOOL_PROG_LD_SHLIBS($1) 4633AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 4634AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 4635 4636AC_LIBTOOL_CONFIG($1) 4637 4638AC_LANG_POP 4639CC=$lt_save_CC 4640LDCXX=$LD 4641LD=$lt_save_LD 4642GCC=$lt_save_GCC 4643with_gnu_ldcxx=$with_gnu_ld 4644with_gnu_ld=$lt_save_with_gnu_ld 4645lt_cv_path_LDCXX=$lt_cv_path_LD 4646lt_cv_path_LD=$lt_save_path_LD 4647lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 4648lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 4649])# AC_LIBTOOL_LANG_CXX_CONFIG 4650 4651# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) 4652# ------------------------------------ 4653# Figure out "hidden" library dependencies from verbose 4654# compiler output when linking a shared library. 4655# Parse the compiler output and extract the necessary 4656# objects, libraries and library flags. 4657AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ 4658dnl we can't use the lt_simple_compile_test_code here, 4659dnl because it contains code intended for an executable, 4660dnl not a library. It's possible we should let each 4661dnl tag define a new lt_????_link_test_code variable, 4662dnl but it's only used here... 4663ifelse([$1],[],[cat > conftest.$ac_ext <<EOF 4664int a; 4665void foo (void) { a = 0; } 4666EOF 4667],[$1],[CXX],[cat > conftest.$ac_ext <<EOF 4668class Foo 4669{ 4670public: 4671 Foo (void) { a = 0; } 4672private: 4673 int a; 4674}; 4675EOF 4676],[$1],[F77],[cat > conftest.$ac_ext <<EOF 4677 subroutine foo 4678 implicit none 4679 integer*4 a 4680 a=0 4681 return 4682 end 4683EOF 4684],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF 4685public class foo { 4686 private int a; 4687 public void bar (void) { 4688 a = 0; 4689 } 4690}; 4691EOF 4692]) 4693dnl Parse the compiler output and extract the necessary 4694dnl objects, libraries and library flags. 4695if AC_TRY_EVAL(ac_compile); then 4696 # Parse the compiler output and extract the necessary 4697 # objects, libraries and library flags. 4698 4699 # Sentinel used to keep track of whether or not we are before 4700 # the conftest object file. 4701 pre_test_object_deps_done=no 4702 4703 # The `*' in the case matches for architectures that use `case' in 4704 # $output_verbose_cmd can trigger glob expansion during the loop 4705 # eval without this substitution. 4706 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 4707 4708 for p in `eval $output_verbose_link_cmd`; do 4709 case $p in 4710 4711 -L* | -R* | -l*) 4712 # Some compilers place space between "-{L,R}" and the path. 4713 # Remove the space. 4714 if test $p = "-L" \ 4715 || test $p = "-R"; then 4716 prev=$p 4717 continue 4718 else 4719 prev= 4720 fi 4721 4722 if test "$pre_test_object_deps_done" = no; then 4723 case $p in 4724 -L* | -R*) 4725 # Internal compiler library paths should come after those 4726 # provided the user. The postdeps already come after the 4727 # user supplied libs so there is no need to process them. 4728 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then 4729 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" 4730 else 4731 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" 4732 fi 4733 ;; 4734 # The "-l" case would never come before the object being 4735 # linked, so don't bother handling this case. 4736 esac 4737 else 4738 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then 4739 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}" 4740 else 4741 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}" 4742 fi 4743 fi 4744 ;; 4745 4746 *.$objext) 4747 # This assumes that the test object file only shows up 4748 # once in the compiler output. 4749 if test "$p" = "conftest.$objext"; then 4750 pre_test_object_deps_done=yes 4751 continue 4752 fi 4753 4754 if test "$pre_test_object_deps_done" = no; then 4755 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then 4756 _LT_AC_TAGVAR(predep_objects, $1)="$p" 4757 else 4758 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p" 4759 fi 4760 else 4761 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then 4762 _LT_AC_TAGVAR(postdep_objects, $1)="$p" 4763 else 4764 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p" 4765 fi 4766 fi 4767 ;; 4768 4769 *) ;; # Ignore the rest. 4770 4771 esac 4772 done 4773 4774 # Clean up. 4775 rm -f a.out a.exe 4776else 4777 echo "libtool.m4: error: problem compiling $1 test program" 4778fi 4779 4780$rm -f confest.$objext 4781 4782# PORTME: override above test on systems where it is broken 4783ifelse([$1],[CXX], 4784[case $host_os in 4785interix[[3-9]]*) 4786 # Interix 3.5 installs completely hosed .la files for C++, so rather than 4787 # hack all around it, let's just trust "g++" to DTRT. 4788 _LT_AC_TAGVAR(predep_objects,$1)= 4789 _LT_AC_TAGVAR(postdep_objects,$1)= 4790 _LT_AC_TAGVAR(postdeps,$1)= 4791 ;; 4792 4793linux*) 4794 case `$CC -V 2>&1 | sed 5q` in 4795 *Sun\ C*) 4796 # Sun C++ 5.9 4797 # 4798 # The more standards-conforming stlport4 library is 4799 # incompatible with the Cstd library. Avoid specifying 4800 # it if it's in CXXFLAGS. Ignore libCrun as 4801 # -library=stlport4 depends on it. 4802 case " $CXX $CXXFLAGS " in 4803 *" -library=stlport4 "*) 4804 solaris_use_stlport4=yes 4805 ;; 4806 esac 4807 if test "$solaris_use_stlport4" != yes; then 4808 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 4809 fi 4810 ;; 4811 esac 4812 ;; 4813 4814solaris*) 4815 case $cc_basename in 4816 CC*) 4817 # The more standards-conforming stlport4 library is 4818 # incompatible with the Cstd library. Avoid specifying 4819 # it if it's in CXXFLAGS. Ignore libCrun as 4820 # -library=stlport4 depends on it. 4821 case " $CXX $CXXFLAGS " in 4822 *" -library=stlport4 "*) 4823 solaris_use_stlport4=yes 4824 ;; 4825 esac 4826 4827 # Adding this requires a known-good setup of shared libraries for 4828 # Sun compiler versions before 5.6, else PIC objects from an old 4829 # archive will be linked into the output, leading to subtle bugs. 4830 if test "$solaris_use_stlport4" != yes; then 4831 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 4832 fi 4833 ;; 4834 esac 4835 ;; 4836esac 4837]) 4838 4839case " $_LT_AC_TAGVAR(postdeps, $1) " in 4840*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; 4841esac 4842])# AC_LIBTOOL_POSTDEP_PREDEP 4843 4844# AC_LIBTOOL_LANG_F77_CONFIG 4845# -------------------------- 4846# Ensure that the configuration vars for the C compiler are 4847# suitably defined. Those variables are subsequently used by 4848# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 4849AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) 4850AC_DEFUN([_LT_AC_LANG_F77_CONFIG], 4851[AC_REQUIRE([AC_PROG_F77]) 4852AC_LANG_PUSH(Fortran 77) 4853 4854_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 4855_LT_AC_TAGVAR(allow_undefined_flag, $1)= 4856_LT_AC_TAGVAR(always_export_symbols, $1)=no 4857_LT_AC_TAGVAR(archive_expsym_cmds, $1)= 4858_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 4859_LT_AC_TAGVAR(hardcode_direct, $1)=no 4860_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 4861_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 4862_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 4863_LT_AC_TAGVAR(hardcode_minus_L, $1)=no 4864_LT_AC_TAGVAR(hardcode_automatic, $1)=no 4865_LT_AC_TAGVAR(module_cmds, $1)= 4866_LT_AC_TAGVAR(module_expsym_cmds, $1)= 4867_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 4868_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 4869_LT_AC_TAGVAR(no_undefined_flag, $1)= 4870_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 4871_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 4872 4873# Source file extension for f77 test sources. 4874ac_ext=f 4875 4876# Object file extension for compiled f77 test sources. 4877objext=o 4878_LT_AC_TAGVAR(objext, $1)=$objext 4879 4880# Code to be used in simple compile tests 4881lt_simple_compile_test_code="\ 4882 subroutine t 4883 return 4884 end 4885" 4886 4887# Code to be used in simple link tests 4888lt_simple_link_test_code="\ 4889 program t 4890 end 4891" 4892 4893# ltmain only uses $CC for tagged configurations so make sure $CC is set. 4894_LT_AC_SYS_COMPILER 4895 4896# save warnings/boilerplate of simple test code 4897_LT_COMPILER_BOILERPLATE 4898_LT_LINKER_BOILERPLATE 4899 4900# Allow CC to be a program name with arguments. 4901lt_save_CC="$CC" 4902CC=${F77-"f77"} 4903compiler=$CC 4904_LT_AC_TAGVAR(compiler, $1)=$CC 4905_LT_CC_BASENAME([$compiler]) 4906 4907AC_MSG_CHECKING([if libtool supports shared libraries]) 4908AC_MSG_RESULT([$can_build_shared]) 4909 4910AC_MSG_CHECKING([whether to build shared libraries]) 4911test "$can_build_shared" = "no" && enable_shared=no 4912 4913# On AIX, shared libraries and static libraries use the same namespace, and 4914# are all built from PIC. 4915case $host_os in 4916aix3*) 4917 test "$enable_shared" = yes && enable_static=no 4918 if test -n "$RANLIB"; then 4919 archive_cmds="$archive_cmds~\$RANLIB \$lib" 4920 postinstall_cmds='$RANLIB $lib' 4921 fi 4922 ;; 4923aix4* | aix5*) 4924 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 4925 test "$enable_shared" = yes && enable_static=no 4926 fi 4927 ;; 4928esac 4929AC_MSG_RESULT([$enable_shared]) 4930 4931AC_MSG_CHECKING([whether to build static libraries]) 4932# Make sure either enable_shared or enable_static is yes. 4933test "$enable_shared" = yes || enable_static=yes 4934AC_MSG_RESULT([$enable_static]) 4935 4936_LT_AC_TAGVAR(GCC, $1)="$G77" 4937_LT_AC_TAGVAR(LD, $1)="$LD" 4938 4939AC_LIBTOOL_PROG_COMPILER_PIC($1) 4940AC_LIBTOOL_PROG_CC_C_O($1) 4941AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 4942AC_LIBTOOL_PROG_LD_SHLIBS($1) 4943AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 4944AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 4945 4946AC_LIBTOOL_CONFIG($1) 4947 4948AC_LANG_POP 4949CC="$lt_save_CC" 4950])# AC_LIBTOOL_LANG_F77_CONFIG 4951 4952 4953# AC_LIBTOOL_LANG_GCJ_CONFIG 4954# -------------------------- 4955# Ensure that the configuration vars for the C compiler are 4956# suitably defined. Those variables are subsequently used by 4957# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 4958AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) 4959AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], 4960[AC_LANG_SAVE 4961 4962# Source file extension for Java test sources. 4963ac_ext=java 4964 4965# Object file extension for compiled Java test sources. 4966objext=o 4967_LT_AC_TAGVAR(objext, $1)=$objext 4968 4969# Code to be used in simple compile tests 4970lt_simple_compile_test_code="class foo {}" 4971 4972# Code to be used in simple link tests 4973lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 4974 4975# ltmain only uses $CC for tagged configurations so make sure $CC is set. 4976_LT_AC_SYS_COMPILER 4977 4978# save warnings/boilerplate of simple test code 4979_LT_COMPILER_BOILERPLATE 4980_LT_LINKER_BOILERPLATE 4981 4982# Allow CC to be a program name with arguments. 4983lt_save_CC="$CC" 4984CC=${GCJ-"gcj"} 4985compiler=$CC 4986_LT_AC_TAGVAR(compiler, $1)=$CC 4987_LT_CC_BASENAME([$compiler]) 4988 4989# GCJ did not exist at the time GCC didn't implicitly link libc in. 4990_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 4991 4992_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 4993 4994AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) 4995AC_LIBTOOL_PROG_COMPILER_PIC($1) 4996AC_LIBTOOL_PROG_CC_C_O($1) 4997AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 4998AC_LIBTOOL_PROG_LD_SHLIBS($1) 4999AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 5000AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 5001 5002AC_LIBTOOL_CONFIG($1) 5003 5004AC_LANG_RESTORE 5005CC="$lt_save_CC" 5006])# AC_LIBTOOL_LANG_GCJ_CONFIG 5007 5008 5009# AC_LIBTOOL_LANG_RC_CONFIG 5010# ------------------------- 5011# Ensure that the configuration vars for the Windows resource compiler are 5012# suitably defined. Those variables are subsequently used by 5013# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 5014AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) 5015AC_DEFUN([_LT_AC_LANG_RC_CONFIG], 5016[AC_LANG_SAVE 5017 5018# Source file extension for RC test sources. 5019ac_ext=rc 5020 5021# Object file extension for compiled RC test sources. 5022objext=o 5023_LT_AC_TAGVAR(objext, $1)=$objext 5024 5025# Code to be used in simple compile tests 5026lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 5027 5028# Code to be used in simple link tests 5029lt_simple_link_test_code="$lt_simple_compile_test_code" 5030 5031# ltmain only uses $CC for tagged configurations so make sure $CC is set. 5032_LT_AC_SYS_COMPILER 5033 5034# save warnings/boilerplate of simple test code 5035_LT_COMPILER_BOILERPLATE 5036_LT_LINKER_BOILERPLATE 5037 5038# Allow CC to be a program name with arguments. 5039lt_save_CC="$CC" 5040CC=${RC-"windres"} 5041compiler=$CC 5042_LT_AC_TAGVAR(compiler, $1)=$CC 5043_LT_CC_BASENAME([$compiler]) 5044_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 5045 5046AC_LIBTOOL_CONFIG($1) 5047 5048AC_LANG_RESTORE 5049CC="$lt_save_CC" 5050])# AC_LIBTOOL_LANG_RC_CONFIG 5051 5052 5053# AC_LIBTOOL_CONFIG([TAGNAME]) 5054# ---------------------------- 5055# If TAGNAME is not passed, then create an initial libtool script 5056# with a default configuration from the untagged config vars. Otherwise 5057# add code to config.status for appending the configuration named by 5058# TAGNAME from the matching tagged config vars. 5059AC_DEFUN([AC_LIBTOOL_CONFIG], 5060[# The else clause should only fire when bootstrapping the 5061# libtool distribution, otherwise you forgot to ship ltmain.sh 5062# with your package, and you will get complaints that there are 5063# no rules to generate ltmain.sh. 5064if test -f "$ltmain"; then 5065 # See if we are running on zsh, and set the options which allow our commands through 5066 # without removal of \ escapes. 5067 if test -n "${ZSH_VERSION+set}" ; then 5068 setopt NO_GLOB_SUBST 5069 fi 5070 # Now quote all the things that may contain metacharacters while being 5071 # careful not to overquote the AC_SUBSTed values. We take copies of the 5072 # variables and quote the copies for generation of the libtool script. 5073 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 5074 SED SHELL STRIP \ 5075 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 5076 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 5077 deplibs_check_method reload_flag reload_cmds need_locks \ 5078 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 5079 lt_cv_sys_global_symbol_to_c_name_address \ 5080 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 5081 old_postinstall_cmds old_postuninstall_cmds \ 5082 _LT_AC_TAGVAR(compiler, $1) \ 5083 _LT_AC_TAGVAR(CC, $1) \ 5084 _LT_AC_TAGVAR(LD, $1) \ 5085 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ 5086 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ 5087 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ 5088 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ 5089 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ 5090 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ 5091 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ 5092 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ 5093 _LT_AC_TAGVAR(old_archive_cmds, $1) \ 5094 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ 5095 _LT_AC_TAGVAR(predep_objects, $1) \ 5096 _LT_AC_TAGVAR(postdep_objects, $1) \ 5097 _LT_AC_TAGVAR(predeps, $1) \ 5098 _LT_AC_TAGVAR(postdeps, $1) \ 5099 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ 5100 _LT_AC_TAGVAR(archive_cmds, $1) \ 5101 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ 5102 _LT_AC_TAGVAR(postinstall_cmds, $1) \ 5103 _LT_AC_TAGVAR(postuninstall_cmds, $1) \ 5104 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ 5105 _LT_AC_TAGVAR(allow_undefined_flag, $1) \ 5106 _LT_AC_TAGVAR(no_undefined_flag, $1) \ 5107 _LT_AC_TAGVAR(export_symbols_cmds, $1) \ 5108 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ 5109 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ 5110 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ 5111 _LT_AC_TAGVAR(hardcode_automatic, $1) \ 5112 _LT_AC_TAGVAR(module_cmds, $1) \ 5113 _LT_AC_TAGVAR(module_expsym_cmds, $1) \ 5114 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ 5115 _LT_AC_TAGVAR(fix_srcfile_path, $1) \ 5116 _LT_AC_TAGVAR(exclude_expsyms, $1) \ 5117 _LT_AC_TAGVAR(include_expsyms, $1); do 5118 5119 case $var in 5120 _LT_AC_TAGVAR(old_archive_cmds, $1) | \ 5121 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ 5122 _LT_AC_TAGVAR(archive_cmds, $1) | \ 5123 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ 5124 _LT_AC_TAGVAR(module_cmds, $1) | \ 5125 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ 5126 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ 5127 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ 5128 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 5129 postinstall_cmds | postuninstall_cmds | \ 5130 old_postinstall_cmds | old_postuninstall_cmds | \ 5131 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 5132 # Double-quote double-evaled strings. 5133 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 5134 ;; 5135 *) 5136 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 5137 ;; 5138 esac 5139 done 5140 5141 case $lt_echo in 5142 *'\[$]0 --fallback-echo"') 5143 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` 5144 ;; 5145 esac 5146 5147ifelse([$1], [], 5148 [cfgfile="${ofile}T" 5149 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 5150 $rm -f "$cfgfile" 5151 AC_MSG_NOTICE([creating $ofile])], 5152 [cfgfile="$ofile"]) 5153 5154 cat <<__EOF__ >> "$cfgfile" 5155ifelse([$1], [], 5156[#! $SHELL 5157 5158# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 5159# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 5160# NOTE: Changes made to this file will be lost: look at ltmain.sh. 5161# 5162# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 5163# Free Software Foundation, Inc. 5164# 5165# This file is part of GNU Libtool: 5166# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 5167# 5168# This program is free software; you can redistribute it and/or modify 5169# it under the terms of the GNU General Public License as published by 5170# the Free Software Foundation; either version 2 of the License, or 5171# (at your option) any later version. 5172# 5173# This program is distributed in the hope that it will be useful, but 5174# WITHOUT ANY WARRANTY; without even the implied warranty of 5175# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 5176# General Public License for more details. 5177# 5178# You should have received a copy of the GNU General Public License 5179# along with this program; if not, write to the Free Software 5180# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 5181# 5182# As a special exception to the GNU General Public License, if you 5183# distribute this file as part of a program that contains a 5184# configuration script generated by Autoconf, you may include it under 5185# the same distribution terms that you use for the rest of that program. 5186 5187# A sed program that does not truncate output. 5188SED=$lt_SED 5189 5190# Sed that helps us avoid accidentally triggering echo(1) options like -n. 5191Xsed="$SED -e 1s/^X//" 5192 5193# The HP-UX ksh and POSIX shell print the target directory to stdout 5194# if CDPATH is set. 5195(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 5196 5197# The names of the tagged configurations supported by this script. 5198available_tags= 5199 5200# ### BEGIN LIBTOOL CONFIG], 5201[# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) 5202 5203# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 5204 5205# Shell to use when invoking shell scripts. 5206SHELL=$lt_SHELL 5207 5208# Whether or not to build shared libraries. 5209build_libtool_libs=$enable_shared 5210 5211# Whether or not to build static libraries. 5212build_old_libs=$enable_static 5213 5214# Whether or not to add -lc for building shared libraries. 5215build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) 5216 5217# Whether or not to disallow shared libs when runtime libs are static 5218allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) 5219 5220# Whether or not to optimize for fast installation. 5221fast_install=$enable_fast_install 5222 5223# The host system. 5224host_alias=$host_alias 5225host=$host 5226host_os=$host_os 5227 5228# The build system. 5229build_alias=$build_alias 5230build=$build 5231build_os=$build_os 5232 5233# An echo program that does not interpret backslashes. 5234echo=$lt_echo 5235 5236# The archiver. 5237AR=$lt_AR 5238AR_FLAGS=$lt_AR_FLAGS 5239 5240# A C compiler. 5241LTCC=$lt_LTCC 5242 5243# LTCC compiler flags. 5244LTCFLAGS=$lt_LTCFLAGS 5245 5246# A language-specific compiler. 5247CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) 5248 5249# Is the compiler the GNU C compiler? 5250with_gcc=$_LT_AC_TAGVAR(GCC, $1) 5251 5252# An ERE matcher. 5253EGREP=$lt_EGREP 5254 5255# The linker used to build libraries. 5256LD=$lt_[]_LT_AC_TAGVAR(LD, $1) 5257 5258# Whether we need hard or soft links. 5259LN_S=$lt_LN_S 5260 5261# A BSD-compatible nm program. 5262NM=$lt_NM 5263 5264# A symbol stripping program 5265STRIP=$lt_STRIP 5266 5267# Used to examine libraries when file_magic_cmd begins "file" 5268MAGIC_CMD=$MAGIC_CMD 5269 5270# Used on cygwin: DLL creation program. 5271DLLTOOL="$DLLTOOL" 5272 5273# Used on cygwin: object dumper. 5274OBJDUMP="$OBJDUMP" 5275 5276# Used on cygwin: assembler. 5277AS="$AS" 5278 5279# The name of the directory that contains temporary libtool files. 5280objdir=$objdir 5281 5282# How to create reloadable object files. 5283reload_flag=$lt_reload_flag 5284reload_cmds=$lt_reload_cmds 5285 5286# How to pass a linker flag through the compiler. 5287wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) 5288 5289# Object file suffix (normally "o"). 5290objext="$ac_objext" 5291 5292# Old archive suffix (normally "a"). 5293libext="$libext" 5294 5295# Shared library suffix (normally ".so"). 5296shrext_cmds='$shrext_cmds' 5297 5298# Executable file suffix (normally ""). 5299exeext="$exeext" 5300 5301# Additional compiler flags for building library objects. 5302pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) 5303pic_mode=$pic_mode 5304 5305# What is the maximum length of a command? 5306max_cmd_len=$lt_cv_sys_max_cmd_len 5307 5308# Does compiler simultaneously support -c and -o options? 5309compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) 5310 5311# Must we lock files when doing compilation? 5312need_locks=$lt_need_locks 5313 5314# Do we need the lib prefix for modules? 5315need_lib_prefix=$need_lib_prefix 5316 5317# Do we need a version for libraries? 5318need_version=$need_version 5319 5320# Whether dlopen is supported. 5321dlopen_support=$enable_dlopen 5322 5323# Whether dlopen of programs is supported. 5324dlopen_self=$enable_dlopen_self 5325 5326# Whether dlopen of statically linked programs is supported. 5327dlopen_self_static=$enable_dlopen_self_static 5328 5329# Compiler flag to prevent dynamic linking. 5330link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) 5331 5332# Compiler flag to turn off builtin functions. 5333no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) 5334 5335# Compiler flag to allow reflexive dlopens. 5336export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) 5337 5338# Compiler flag to generate shared objects directly from archives. 5339whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) 5340 5341# Compiler flag to generate thread-safe objects. 5342thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) 5343 5344# Library versioning type. 5345version_type=$version_type 5346 5347# Format of library name prefix. 5348libname_spec=$lt_libname_spec 5349 5350# List of archive names. First name is the real one, the rest are links. 5351# The last name is the one that the linker finds with -lNAME. 5352library_names_spec=$lt_library_names_spec 5353 5354# The coded name of the library, if different from the real name. 5355soname_spec=$lt_soname_spec 5356 5357# Commands used to build and install an old-style archive. 5358RANLIB=$lt_RANLIB 5359old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) 5360old_postinstall_cmds=$lt_old_postinstall_cmds 5361old_postuninstall_cmds=$lt_old_postuninstall_cmds 5362 5363# Create an old-style archive from a shared archive. 5364old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) 5365 5366# Create a temporary old-style archive to link instead of a shared archive. 5367old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) 5368 5369# Commands used to build and install a shared archive. 5370archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) 5371archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) 5372postinstall_cmds=$lt_postinstall_cmds 5373postuninstall_cmds=$lt_postuninstall_cmds 5374 5375# Commands used to build a loadable module (assumed same as above if empty) 5376module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) 5377module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) 5378 5379# Commands to strip libraries. 5380old_striplib=$lt_old_striplib 5381striplib=$lt_striplib 5382 5383# Dependencies to place before the objects being linked to create a 5384# shared library. 5385predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) 5386 5387# Dependencies to place after the objects being linked to create a 5388# shared library. 5389postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) 5390 5391# Dependencies to place before the objects being linked to create a 5392# shared library. 5393predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) 5394 5395# Dependencies to place after the objects being linked to create a 5396# shared library. 5397postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) 5398 5399# The library search path used internally by the compiler when linking 5400# a shared library. 5401compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) 5402 5403# Method to check whether dependent libraries are shared objects. 5404deplibs_check_method=$lt_deplibs_check_method 5405 5406# Command to use when deplibs_check_method == file_magic. 5407file_magic_cmd=$lt_file_magic_cmd 5408 5409# Flag that allows shared libraries with undefined symbols to be built. 5410allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) 5411 5412# Flag that forces no undefined symbols. 5413no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) 5414 5415# Commands used to finish a libtool library installation in a directory. 5416finish_cmds=$lt_finish_cmds 5417 5418# Same as above, but a single script fragment to be evaled but not shown. 5419finish_eval=$lt_finish_eval 5420 5421# Take the output of nm and produce a listing of raw symbols and C names. 5422global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 5423 5424# Transform the output of nm in a proper C declaration 5425global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 5426 5427# Transform the output of nm in a C name address pair 5428global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 5429 5430# This is the shared library runtime path variable. 5431runpath_var=$runpath_var 5432 5433# This is the shared library path variable. 5434shlibpath_var=$shlibpath_var 5435 5436# Is shlibpath searched before the hard-coded library search path? 5437shlibpath_overrides_runpath=$shlibpath_overrides_runpath 5438 5439# How to hardcode a shared library path into an executable. 5440hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) 5441 5442# Whether we should hardcode library paths into libraries. 5443hardcode_into_libs=$hardcode_into_libs 5444 5445# Flag to hardcode \$libdir into a binary during linking. 5446# This must work even if \$libdir does not exist. 5447hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) 5448 5449# If ld is used when linking, flag to hardcode \$libdir into 5450# a binary during linking. This must work even if \$libdir does 5451# not exist. 5452hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) 5453 5454# Whether we need a single -rpath flag with a separated argument. 5455hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) 5456 5457# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 5458# resulting binary. 5459hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) 5460 5461# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 5462# resulting binary. 5463hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) 5464 5465# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 5466# the resulting binary. 5467hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) 5468 5469# Set to yes if building a shared library automatically hardcodes DIR into the library 5470# and all subsequent libraries and executables linked against it. 5471hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) 5472 5473# Variables whose values should be saved in libtool wrapper scripts and 5474# restored at relink time. 5475variables_saved_for_relink="$variables_saved_for_relink" 5476 5477# Whether libtool must link a program against all its dependency libraries. 5478link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) 5479 5480# Compile-time system search path for libraries 5481sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 5482 5483# Run-time system search path for libraries 5484sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 5485 5486# Fix the shell variable \$srcfile for the compiler. 5487fix_srcfile_path=$lt_fix_srcfile_path 5488 5489# Set to yes if exported symbols are required. 5490always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) 5491 5492# The commands to list exported symbols. 5493export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) 5494 5495# The commands to extract the exported symbol list from a shared archive. 5496extract_expsyms_cmds=$lt_extract_expsyms_cmds 5497 5498# Symbols that should not be listed in the preloaded symbols. 5499exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) 5500 5501# Symbols that must always be exported. 5502include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) 5503 5504ifelse([$1],[], 5505[# ### END LIBTOOL CONFIG], 5506[# ### END LIBTOOL TAG CONFIG: $tagname]) 5507 5508__EOF__ 5509 5510ifelse([$1],[], [ 5511 case $host_os in 5512 aix3*) 5513 cat <<\EOF >> "$cfgfile" 5514 5515# AIX sometimes has problems with the GCC collect2 program. For some 5516# reason, if we set the COLLECT_NAMES environment variable, the problems 5517# vanish in a puff of smoke. 5518if test "X${COLLECT_NAMES+set}" != Xset; then 5519 COLLECT_NAMES= 5520 export COLLECT_NAMES 5521fi 5522EOF 5523 ;; 5524 esac 5525 5526 # We use sed instead of cat because bash on DJGPP gets confused if 5527 # if finds mixed CR/LF and LF-only lines. Since sed operates in 5528 # text mode, it properly converts lines to CR/LF. This bash problem 5529 # is reportedly fixed, but why not run on old versions too? 5530 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 5531 5532 mv -f "$cfgfile" "$ofile" || \ 5533 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 5534 chmod +x "$ofile" 5535]) 5536else 5537 # If there is no Makefile yet, we rely on a make rule to execute 5538 # `config.status --recheck' to rerun these tests and create the 5539 # libtool script then. 5540 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 5541 if test -f "$ltmain_in"; then 5542 test -f Makefile && make "$ltmain" 5543 fi 5544fi 5545])# AC_LIBTOOL_CONFIG 5546 5547 5548# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) 5549# ------------------------------------------- 5550AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], 5551[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 5552 5553_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 5554 5555if test "$GCC" = yes; then 5556 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 5557 5558 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 5559 lt_cv_prog_compiler_rtti_exceptions, 5560 [-fno-rtti -fno-exceptions], [], 5561 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 5562fi 5563])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI 5564 5565 5566# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 5567# --------------------------------- 5568AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], 5569[AC_REQUIRE([AC_CANONICAL_HOST]) 5570AC_REQUIRE([LT_AC_PROG_SED]) 5571AC_REQUIRE([AC_PROG_NM]) 5572AC_REQUIRE([AC_OBJEXT]) 5573# Check for command to grab the raw symbol name followed by C symbol from nm. 5574AC_MSG_CHECKING([command to parse $NM output from $compiler object]) 5575AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 5576[ 5577# These are sane defaults that work on at least a few old systems. 5578# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5579 5580# Character class describing NM global symbol codes. 5581symcode='[[BCDEGRST]]' 5582 5583# Regexp to match symbols that can be accessed directly from C. 5584sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 5585 5586# Transform an extracted symbol line into a proper C declaration 5587lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5588 5589# Transform an extracted symbol line into symbol name and symbol address 5590lt_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'" 5591 5592# Define system-specific variables. 5593case $host_os in 5594aix*) 5595 symcode='[[BCDT]]' 5596 ;; 5597cygwin* | mingw* | pw32*) 5598 symcode='[[ABCDGISTW]]' 5599 ;; 5600hpux*) # Its linker distinguishes data from code symbols 5601 if test "$host_cpu" = ia64; then 5602 symcode='[[ABCDEGRST]]' 5603 fi 5604 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5605 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'" 5606 ;; 5607linux* | k*bsd*-gnu) 5608 if test "$host_cpu" = ia64; then 5609 symcode='[[ABCDGIRSTW]]' 5610 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5611 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'" 5612 fi 5613 ;; 5614irix* | nonstopux*) 5615 symcode='[[BCDEGRST]]' 5616 ;; 5617osf*) 5618 symcode='[[BCDEGQRST]]' 5619 ;; 5620solaris*) 5621 symcode='[[BDRT]]' 5622 ;; 5623sco3.2v5*) 5624 symcode='[[DT]]' 5625 ;; 5626sysv4.2uw2*) 5627 symcode='[[DT]]' 5628 ;; 5629sysv5* | sco5v6* | unixware* | OpenUNIX*) 5630 symcode='[[ABDT]]' 5631 ;; 5632sysv4) 5633 symcode='[[DFNSTU]]' 5634 ;; 5635esac 5636 5637# Handle CRLF in mingw tool chain 5638opt_cr= 5639case $build_os in 5640mingw*) 5641 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5642 ;; 5643esac 5644 5645# If we're using GNU nm, then use its standard symbol codes. 5646case `$NM -V 2>&1` in 5647*GNU* | *'with BFD'*) 5648 symcode='[[ABCDGIRSTW]]' ;; 5649esac 5650 5651# Try without a prefix undercore, then with it. 5652for ac_symprfx in "" "_"; do 5653 5654 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5655 symxfrm="\\1 $ac_symprfx\\2 \\2" 5656 5657 # Write the raw and C identifiers. 5658 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5659 5660 # Check to see that the pipe works correctly. 5661 pipe_works=no 5662 5663 rm -f conftest* 5664 cat > conftest.$ac_ext <<EOF 5665#ifdef __cplusplus 5666extern "C" { 5667#endif 5668char nm_test_var; 5669void nm_test_func(){} 5670#ifdef __cplusplus 5671} 5672#endif 5673int main(){nm_test_var='a';nm_test_func();return(0);} 5674EOF 5675 5676 if AC_TRY_EVAL(ac_compile); then 5677 # Now try to grab the symbols. 5678 nlist=conftest.nm 5679 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then 5680 # Try sorting and uniquifying the output. 5681 if sort "$nlist" | uniq > "$nlist"T; then 5682 mv -f "$nlist"T "$nlist" 5683 else 5684 rm -f "$nlist"T 5685 fi 5686 5687 # Make sure that we snagged all the symbols we need. 5688 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5689 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5690 cat <<EOF > conftest.$ac_ext 5691#ifdef __cplusplus 5692extern "C" { 5693#endif 5694 5695EOF 5696 # Now generate the symbol file. 5697 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5698 5699 cat <<EOF >> conftest.$ac_ext 5700#if defined (__STDC__) && __STDC__ 5701# define lt_ptr_t void * 5702#else 5703# define lt_ptr_t char * 5704# define const 5705#endif 5706 5707/* The mapping between symbol names and symbols. */ 5708const struct { 5709 const char *name; 5710 lt_ptr_t address; 5711} 5712lt_preloaded_symbols[[]] = 5713{ 5714EOF 5715 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5716 cat <<\EOF >> conftest.$ac_ext 5717 {0, (lt_ptr_t) 0} 5718}; 5719 5720#ifdef __cplusplus 5721} 5722#endif 5723EOF 5724 # Now try linking the two files. 5725 mv conftest.$ac_objext conftstm.$ac_objext 5726 lt_save_LIBS="$LIBS" 5727 lt_save_CFLAGS="$CFLAGS" 5728 LIBS="conftstm.$ac_objext" 5729 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 5730 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then 5731 pipe_works=yes 5732 fi 5733 LIBS="$lt_save_LIBS" 5734 CFLAGS="$lt_save_CFLAGS" 5735 else 5736 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 5737 fi 5738 else 5739 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 5740 fi 5741 else 5742 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 5743 fi 5744 else 5745 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 5746 cat conftest.$ac_ext >&5 5747 fi 5748 rm -f conftest* conftst* 5749 5750 # Do not use the global_symbol_pipe unless it works. 5751 if test "$pipe_works" = yes; then 5752 break 5753 else 5754 lt_cv_sys_global_symbol_pipe= 5755 fi 5756done 5757]) 5758if test -z "$lt_cv_sys_global_symbol_pipe"; then 5759 lt_cv_sys_global_symbol_to_cdecl= 5760fi 5761if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5762 AC_MSG_RESULT(failed) 5763else 5764 AC_MSG_RESULT(ok) 5765fi 5766]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 5767 5768 5769# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) 5770# --------------------------------------- 5771AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], 5772[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= 5773_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5774_LT_AC_TAGVAR(lt_prog_compiler_static, $1)= 5775 5776AC_MSG_CHECKING([for $compiler option to produce PIC]) 5777 ifelse([$1],[CXX],[ 5778 # C++ specific cases for pic, static, wl, etc. 5779 if test "$GXX" = yes; then 5780 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5781 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 5782 5783 case $host_os in 5784 aix*) 5785 # All AIX code is PIC. 5786 if test "$host_cpu" = ia64; then 5787 # AIX 5 now supports IA64 processor 5788 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5789 fi 5790 ;; 5791 amigaos*) 5792 # FIXME: we need at least 68020 code to build shared libraries, but 5793 # adding the `-m68020' flag to GCC prevents building anything better, 5794 # like `-m68040'. 5795 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 5796 ;; 5797 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 5798 # PIC is the default for these OSes. 5799 ;; 5800 mingw* | cygwin* | os2* | pw32*) 5801 # This hack is so that the source file can tell whether it is being 5802 # built for inclusion in a dll (and should export symbols for example). 5803 # Although the cygwin gcc ignores -fPIC, still need this for old-style 5804 # (--disable-auto-import) libraries 5805 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 5806 ;; 5807 darwin* | rhapsody*) 5808 # PIC is the default on this platform 5809 # Common symbols not allowed in MH_DYLIB files 5810 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 5811 ;; 5812 *djgpp*) 5813 # DJGPP does not support shared libraries at all 5814 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5815 ;; 5816 interix[[3-9]]*) 5817 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 5818 # Instead, we relocate shared libraries at runtime. 5819 ;; 5820 sysv4*MP*) 5821 if test -d /usr/nec; then 5822 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 5823 fi 5824 ;; 5825 hpux*) 5826 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5827 # not for PA HP-UX. 5828 case $host_cpu in 5829 hppa*64*|ia64*) 5830 ;; 5831 *) 5832 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5833 ;; 5834 esac 5835 ;; 5836 *) 5837 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5838 ;; 5839 esac 5840 else 5841 case $host_os in 5842 aix4* | aix5*) 5843 # All AIX code is PIC. 5844 if test "$host_cpu" = ia64; then 5845 # AIX 5 now supports IA64 processor 5846 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5847 else 5848 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 5849 fi 5850 ;; 5851 chorus*) 5852 case $cc_basename in 5853 cxch68*) 5854 # Green Hills C++ Compiler 5855 # _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" 5856 ;; 5857 esac 5858 ;; 5859 darwin*) 5860 # PIC is the default on this platform 5861 # Common symbols not allowed in MH_DYLIB files 5862 case $cc_basename in 5863 xlc*) 5864 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' 5865 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5866 ;; 5867 esac 5868 ;; 5869 dgux*) 5870 case $cc_basename in 5871 ec++*) 5872 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5873 ;; 5874 ghcx*) 5875 # Green Hills C++ Compiler 5876 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5877 ;; 5878 *) 5879 ;; 5880 esac 5881 ;; 5882 freebsd* | dragonfly*) 5883 # FreeBSD uses GNU C++ 5884 ;; 5885 hpux9* | hpux10* | hpux11*) 5886 case $cc_basename in 5887 CC*) 5888 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5889 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 5890 if test "$host_cpu" != ia64; then 5891 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5892 fi 5893 ;; 5894 aCC*) 5895 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5896 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 5897 case $host_cpu in 5898 hppa*64*|ia64*) 5899 # +Z the default 5900 ;; 5901 *) 5902 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5903 ;; 5904 esac 5905 ;; 5906 *) 5907 ;; 5908 esac 5909 ;; 5910 interix*) 5911 # This is c89, which is MS Visual C++ (no shared libs) 5912 # Anyone wants to do a port? 5913 ;; 5914 irix5* | irix6* | nonstopux*) 5915 case $cc_basename in 5916 CC*) 5917 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5918 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5919 # CC pic flag -KPIC is the default. 5920 ;; 5921 *) 5922 ;; 5923 esac 5924 ;; 5925 linux* | k*bsd*-gnu) 5926 case $cc_basename in 5927 KCC*) 5928 # KAI C++ Compiler 5929 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 5930 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5931 ;; 5932 icpc* | ecpc*) 5933 # Intel C++ 5934 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5935 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5936 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 5937 ;; 5938 pgCC*) 5939 # Portland Group C++ compiler. 5940 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5941 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 5942 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5943 ;; 5944 cxx*) 5945 # Compaq C++ 5946 # Make sure the PIC flag is empty. It appears that all Alpha 5947 # Linux and Compaq Tru64 Unix objects are PIC. 5948 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5949 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5950 ;; 5951 *) 5952 case `$CC -V 2>&1 | sed 5q` in 5953 *Sun\ C*) 5954 # Sun C++ 5.9 5955 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5956 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5957 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5958 ;; 5959 esac 5960 ;; 5961 esac 5962 ;; 5963 lynxos*) 5964 ;; 5965 m88k*) 5966 ;; 5967 mvs*) 5968 case $cc_basename in 5969 cxx*) 5970 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 5971 ;; 5972 *) 5973 ;; 5974 esac 5975 ;; 5976 netbsd*) 5977 ;; 5978 osf3* | osf4* | osf5*) 5979 case $cc_basename in 5980 KCC*) 5981 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 5982 ;; 5983 RCC*) 5984 # Rational C++ 2.4.1 5985 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5986 ;; 5987 cxx*) 5988 # Digital/Compaq C++ 5989 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5990 # Make sure the PIC flag is empty. It appears that all Alpha 5991 # Linux and Compaq Tru64 Unix objects are PIC. 5992 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5993 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5994 ;; 5995 *) 5996 ;; 5997 esac 5998 ;; 5999 psos*) 6000 ;; 6001 solaris*) 6002 case $cc_basename in 6003 CC*) 6004 # Sun C++ 4.2, 5.x and Centerline C++ 6005 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6006 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6007 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 6008 ;; 6009 gcx*) 6010 # Green Hills C++ Compiler 6011 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 6012 ;; 6013 *) 6014 ;; 6015 esac 6016 ;; 6017 sunos4*) 6018 case $cc_basename in 6019 CC*) 6020 # Sun C++ 4.x 6021 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6022 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6023 ;; 6024 lcc*) 6025 # Lucid 6026 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6027 ;; 6028 *) 6029 ;; 6030 esac 6031 ;; 6032 tandem*) 6033 case $cc_basename in 6034 NCC*) 6035 # NonStop-UX NCC 3.20 6036 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6037 ;; 6038 *) 6039 ;; 6040 esac 6041 ;; 6042 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6043 case $cc_basename in 6044 CC*) 6045 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6046 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6047 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6048 ;; 6049 esac 6050 ;; 6051 vxworks*) 6052 ;; 6053 *) 6054 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6055 ;; 6056 esac 6057 fi 6058], 6059[ 6060 if test "$GCC" = yes; then 6061 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6062 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 6063 6064 case $host_os in 6065 aix*) 6066 # All AIX code is PIC. 6067 if test "$host_cpu" = ia64; then 6068 # AIX 5 now supports IA64 processor 6069 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6070 fi 6071 ;; 6072 6073 amigaos*) 6074 # FIXME: we need at least 68020 code to build shared libraries, but 6075 # adding the `-m68020' flag to GCC prevents building anything better, 6076 # like `-m68040'. 6077 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 6078 ;; 6079 6080 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6081 # PIC is the default for these OSes. 6082 ;; 6083 6084 mingw* | cygwin* | pw32* | os2*) 6085 # This hack is so that the source file can tell whether it is being 6086 # built for inclusion in a dll (and should export symbols for example). 6087 # Although the cygwin gcc ignores -fPIC, still need this for old-style 6088 # (--disable-auto-import) libraries 6089 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 6090 ;; 6091 6092 darwin* | rhapsody*) 6093 # PIC is the default on this platform 6094 # Common symbols not allowed in MH_DYLIB files 6095 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 6096 ;; 6097 6098 interix[[3-9]]*) 6099 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6100 # Instead, we relocate shared libraries at runtime. 6101 ;; 6102 6103 msdosdjgpp*) 6104 # Just because we use GCC doesn't mean we suddenly get shared libraries 6105 # on systems that don't support them. 6106 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6107 enable_shared=no 6108 ;; 6109 6110 sysv4*MP*) 6111 if test -d /usr/nec; then 6112 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 6113 fi 6114 ;; 6115 6116 hpux*) 6117 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6118 # not for PA HP-UX. 6119 case $host_cpu in 6120 hppa*64*|ia64*) 6121 # +Z the default 6122 ;; 6123 *) 6124 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6125 ;; 6126 esac 6127 ;; 6128 6129 *) 6130 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6131 ;; 6132 esac 6133 else 6134 # PORTME Check for flag to pass linker flags through the system compiler. 6135 case $host_os in 6136 aix*) 6137 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6138 if test "$host_cpu" = ia64; then 6139 # AIX 5 now supports IA64 processor 6140 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6141 else 6142 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 6143 fi 6144 ;; 6145 darwin*) 6146 # PIC is the default on this platform 6147 # Common symbols not allowed in MH_DYLIB files 6148 case $cc_basename in 6149 xlc*) 6150 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' 6151 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6152 ;; 6153 esac 6154 ;; 6155 6156 mingw* | cygwin* | pw32* | os2*) 6157 # This hack is so that the source file can tell whether it is being 6158 # built for inclusion in a dll (and should export symbols for example). 6159 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 6160 ;; 6161 6162 hpux9* | hpux10* | hpux11*) 6163 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6164 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6165 # not for PA HP-UX. 6166 case $host_cpu in 6167 hppa*64*|ia64*) 6168 # +Z the default 6169 ;; 6170 *) 6171 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 6172 ;; 6173 esac 6174 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6175 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 6176 ;; 6177 6178 irix5* | irix6* | nonstopux*) 6179 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6180 # PIC (with -KPIC) is the default. 6181 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6182 ;; 6183 6184 newsos6) 6185 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6186 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6187 ;; 6188 6189 linux* | k*bsd*-gnu) 6190 case $cc_basename in 6191 icc* | ecc*) 6192 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6193 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6194 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 6195 ;; 6196 pgcc* | pgf77* | pgf90* | pgf95*) 6197 # Portland Group compilers (*not* the Pentium gcc compiler, 6198 # which looks to be a dead project) 6199 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6200 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 6201 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6202 ;; 6203 ccc*) 6204 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6205 # All Alpha code is PIC. 6206 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6207 ;; 6208 como) 6209 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-lopt=' 6210 ;; 6211 *) 6212 case `$CC -V 2>&1 | sed 5q` in 6213 *Sun\ C*) 6214 # Sun C 5.9 6215 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6216 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6217 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6218 ;; 6219 *Sun\ F*) 6220 # Sun Fortran 8.3 passes all unrecognized flags to the linker 6221 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6222 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6223 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='' 6224 ;; 6225 esac 6226 ;; 6227 esac 6228 ;; 6229 6230 osf3* | osf4* | osf5*) 6231 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6232 # All OSF/1 code is PIC. 6233 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6234 ;; 6235 6236 rdos*) 6237 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6238 ;; 6239 6240 solaris*) 6241 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6242 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6243 case $cc_basename in 6244 f77* | f90* | f95*) 6245 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 6246 *) 6247 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 6248 esac 6249 ;; 6250 6251 sunos4*) 6252 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 6253 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 6254 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6255 ;; 6256 6257 sysv4 | sysv4.2uw2* | sysv4.3*) 6258 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6259 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6260 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6261 ;; 6262 6263 sysv4*MP*) 6264 if test -d /usr/nec ;then 6265 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 6266 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6267 fi 6268 ;; 6269 6270 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6271 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6272 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6273 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6274 ;; 6275 6276 unicos*) 6277 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6278 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6279 ;; 6280 6281 uts4*) 6282 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6283 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6284 ;; 6285 6286 *) 6287 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6288 ;; 6289 esac 6290 fi 6291]) 6292AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) 6293 6294# 6295# Check to make sure the PIC flag actually works. 6296# 6297if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then 6298 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], 6299 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), 6300 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], 6301 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in 6302 "" | " "*) ;; 6303 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; 6304 esac], 6305 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 6306 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 6307fi 6308case $host_os in 6309 # For platforms which do not support PIC, -DPIC is meaningless: 6310 *djgpp*) 6311 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 6312 ;; 6313 *) 6314 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" 6315 ;; 6316esac 6317 6318# 6319# Check to make sure the static flag actually works. 6320# 6321wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" 6322AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 6323 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), 6324 $lt_tmp_static_flag, 6325 [], 6326 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) 6327]) 6328 6329 6330# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) 6331# ------------------------------------ 6332# See if the linker supports building shared libraries. 6333AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], 6334[AC_REQUIRE([LT_AC_PROG_SED])dnl 6335AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 6336ifelse([$1],[CXX],[ 6337 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6338 case $host_os in 6339 aix4* | aix5*) 6340 # If we're using GNU nm, then we don't want the "-C" option. 6341 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6342 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 6343 _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' 6344 else 6345 _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' 6346 fi 6347 ;; 6348 pw32*) 6349 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 6350 ;; 6351 cygwin* | mingw*) 6352 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' 6353 ;; 6354 *) 6355 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6356 ;; 6357 esac 6358],[ 6359 runpath_var= 6360 _LT_AC_TAGVAR(allow_undefined_flag, $1)= 6361 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 6362 _LT_AC_TAGVAR(archive_cmds, $1)= 6363 _LT_AC_TAGVAR(archive_expsym_cmds, $1)= 6364 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= 6365 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= 6366 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 6367 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 6368 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= 6369 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 6370 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 6371 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 6372 _LT_AC_TAGVAR(hardcode_direct, $1)=no 6373 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no 6374 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 6375 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 6376 _LT_AC_TAGVAR(hardcode_automatic, $1)=no 6377 _LT_AC_TAGVAR(module_cmds, $1)= 6378 _LT_AC_TAGVAR(module_expsym_cmds, $1)= 6379 _LT_AC_TAGVAR(always_export_symbols, $1)=no 6380 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6381 # include_expsyms should be a list of space-separated symbols to be *always* 6382 # included in the symbol list 6383 _LT_AC_TAGVAR(include_expsyms, $1)= 6384 # exclude_expsyms can be an extended regexp of symbols to exclude 6385 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6386 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6387 # as well as any symbol that contains `d'. 6388 _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" 6389 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6390 # platforms (ab)use it in PIC code, but their linkers get confused if 6391 # the symbol is explicitly referenced. Since portable code cannot 6392 # rely on this symbol name, it's probably fine to never include it in 6393 # preloaded symbol tables. 6394 extract_expsyms_cmds= 6395 # Just being paranoid about ensuring that cc_basename is set. 6396 _LT_CC_BASENAME([$compiler]) 6397 case $host_os in 6398 cygwin* | mingw* | pw32*) 6399 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6400 # When not using gcc, we currently assume that we are using 6401 # Microsoft Visual C++. 6402 if test "$GCC" != yes; then 6403 with_gnu_ld=no 6404 fi 6405 ;; 6406 interix*) 6407 # we just hope/assume this is gcc and not c89 (= MSVC++) 6408 with_gnu_ld=yes 6409 ;; 6410 openbsd*) 6411 with_gnu_ld=no 6412 ;; 6413 esac 6414 6415 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 6416 if test "$with_gnu_ld" = yes; then 6417 # If archive_cmds runs LD, not CC, wlarc should be empty 6418 wlarc='${wl}' 6419 6420 # Set some defaults for GNU ld with shared library support. These 6421 # are reset later if shared libraries are not supported. Putting them 6422 # here allows them to be overridden if necessary. 6423 runpath_var=LD_RUN_PATH 6424 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 6425 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 6426 # ancient GNU ld didn't support --whole-archive et. al. 6427 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6428 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6429 else 6430 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 6431 fi 6432 supports_anon_versioning=no 6433 case `$LD -v 2>/dev/null` in 6434 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 6435 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6436 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6437 *\ 2.11.*) ;; # other 2.11 versions 6438 *) supports_anon_versioning=yes ;; 6439 esac 6440 6441 # See if GNU ld supports shared libraries. 6442 case $host_os in 6443 aix3* | aix4* | aix5*) 6444 # On AIX/PPC, the GNU linker is very broken 6445 if test "$host_cpu" != ia64; then 6446 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6447 cat <<EOF 1>&2 6448 6449*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6450*** to be unable to reliably create shared libraries on AIX. 6451*** Therefore, libtool is disabling shared libraries support. If you 6452*** really care for shared libraries, you may want to modify your PATH 6453*** so that a non-GNU linker is found, and then restart. 6454 6455EOF 6456 fi 6457 ;; 6458 6459 amigaos*) 6460 _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)' 6461 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6462 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6463 6464 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6465 # that the semantics of dynamic libraries on AmigaOS, at least up 6466 # to version 4, is to share data among multiple programs linked 6467 # with the same dynamic library. Since this doesn't match the 6468 # behavior of shared libraries on other platforms, we can't use 6469 # them. 6470 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6471 ;; 6472 6473 beos*) 6474 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6475 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 6476 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6477 # support --undefined. This deserves some investigation. FIXME 6478 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6479 else 6480 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6481 fi 6482 ;; 6483 6484 cygwin* | mingw* | pw32*) 6485 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 6486 # as there is no search path for DLLs. 6487 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6488 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 6489 _LT_AC_TAGVAR(always_export_symbols, $1)=no 6490 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6491 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' 6492 6493 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6494 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6495 # If the export-symbols file already is a .def file (1st line 6496 # is EXPORTS), use it as is; otherwise, prepend... 6497 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6498 cp $export_symbols $output_objdir/$soname.def; 6499 else 6500 echo EXPORTS > $output_objdir/$soname.def; 6501 cat $export_symbols >> $output_objdir/$soname.def; 6502 fi~ 6503 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6504 else 6505 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6506 fi 6507 ;; 6508 6509 interix[[3-9]]*) 6510 _LT_AC_TAGVAR(hardcode_direct, $1)=no 6511 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6512 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6513 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6514 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 6515 # Instead, shared libraries are loaded at an image base (0x10000000 by 6516 # default) and relocated if they conflict, which is a slow very memory 6517 # consuming and fragmenting process. To avoid this, we pick a random, 6518 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 6519 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 6520 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6521 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6522 ;; 6523 6524 gnu* | linux* | k*bsd*-gnu) 6525 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6526 tmp_addflag= 6527 case $cc_basename,$host_cpu in 6528 pgcc*) # Portland Group C compiler 6529 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 6530 tmp_addflag=' $pic_flag' 6531 ;; 6532 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 6533 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 6534 tmp_addflag=' $pic_flag -Mnomain' ;; 6535 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 6536 tmp_addflag=' -i_dynamic' ;; 6537 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 6538 tmp_addflag=' -i_dynamic -nofor_main' ;; 6539 ifc* | ifort*) # Intel Fortran compiler 6540 tmp_addflag=' -nofor_main' ;; 6541 esac 6542 case `$CC -V 2>&1 | sed 5q` in 6543 *Sun\ C*) # Sun C 5.9 6544 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 6545 tmp_sharedflag='-G' ;; 6546 *Sun\ F*) # Sun Fortran 8.3 6547 tmp_sharedflag='-G' ;; 6548 *) 6549 tmp_sharedflag='-shared' ;; 6550 esac 6551 _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6552 6553 if test $supports_anon_versioning = yes; then 6554 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ 6555 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6556 $echo "local: *; };" >> $output_objdir/$libname.ver~ 6557 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6558 fi 6559 else 6560 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6561 fi 6562 ;; 6563 6564 netbsd*) 6565 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6566 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6567 wlarc= 6568 else 6569 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6570 _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' 6571 fi 6572 ;; 6573 6574 solaris*) 6575 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 6576 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6577 cat <<EOF 1>&2 6578 6579*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6580*** create shared libraries on Solaris systems. Therefore, libtool 6581*** is disabling shared libraries support. We urge you to upgrade GNU 6582*** binutils to release 2.9.1 or newer. Another option is to modify 6583*** your PATH or compiler configuration so that the native linker is 6584*** used, and then restart. 6585 6586EOF 6587 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6588 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6589 _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' 6590 else 6591 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6592 fi 6593 ;; 6594 6595 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 6596 case `$LD -v 2>&1` in 6597 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 6598 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6599 cat <<_LT_EOF 1>&2 6600 6601*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 6602*** reliably create shared libraries on SCO systems. Therefore, libtool 6603*** is disabling shared libraries support. We urge you to upgrade GNU 6604*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 6605*** your PATH or compiler configuration so that the native linker is 6606*** used, and then restart. 6607 6608_LT_EOF 6609 ;; 6610 *) 6611 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6612 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 6613 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 6614 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 6615 else 6616 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6617 fi 6618 ;; 6619 esac 6620 ;; 6621 6622 sunos4*) 6623 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6624 wlarc= 6625 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6626 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6627 ;; 6628 6629 *) 6630 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6631 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6632 _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' 6633 else 6634 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6635 fi 6636 ;; 6637 esac 6638 6639 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then 6640 runpath_var= 6641 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 6642 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 6643 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 6644 fi 6645 else 6646 # PORTME fill in a description of your system's linker (not GNU ld) 6647 case $host_os in 6648 aix3*) 6649 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 6650 _LT_AC_TAGVAR(always_export_symbols, $1)=yes 6651 _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' 6652 # Note: this linker hardcodes the directories in LIBPATH if there 6653 # are no directories specified by -L. 6654 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6655 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 6656 # Neither direct hardcoding nor static linking is supported with a 6657 # broken collect2. 6658 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 6659 fi 6660 ;; 6661 6662 aix4* | aix5*) 6663 if test "$host_cpu" = ia64; then 6664 # On IA64, the linker does run time linking by default, so we don't 6665 # have to do anything special. 6666 aix_use_runtimelinking=no 6667 exp_sym_flag='-Bexport' 6668 no_entry_flag="" 6669 else 6670 # If we're using GNU nm, then we don't want the "-C" option. 6671 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6672 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 6673 _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' 6674 else 6675 _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' 6676 fi 6677 aix_use_runtimelinking=no 6678 6679 # Test if we are trying to use run time linking or normal 6680 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6681 # need to do runtime linking. 6682 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) 6683 for ld_flag in $LDFLAGS; do 6684 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6685 aix_use_runtimelinking=yes 6686 break 6687 fi 6688 done 6689 ;; 6690 esac 6691 6692 exp_sym_flag='-bexport' 6693 no_entry_flag='-bnoentry' 6694 fi 6695 6696 # When large executables or shared objects are built, AIX ld can 6697 # have problems creating the table of contents. If linking a library 6698 # or program results in "error TOC overflow" add -mminimal-toc to 6699 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6700 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6701 6702 _LT_AC_TAGVAR(archive_cmds, $1)='' 6703 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6704 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 6705 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 6706 6707 if test "$GCC" = yes; then 6708 case $host_os in aix4.[[012]]|aix4.[[012]].*) 6709 # We only want to do this on AIX 4.2 and lower, the check 6710 # below for broken collect2 doesn't work under 4.3+ 6711 collect2name=`${CC} -print-prog-name=collect2` 6712 if test -f "$collect2name" && \ 6713 strings "$collect2name" | grep resolve_lib_name >/dev/null 6714 then 6715 # We have reworked collect2 6716 : 6717 else 6718 # We have old collect2 6719 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 6720 # It fails to find uninstalled libraries when the uninstalled 6721 # path is not listed in the libpath. Setting hardcode_minus_L 6722 # to unsupported forces relinking 6723 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6724 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6725 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 6726 fi 6727 ;; 6728 esac 6729 shared_flag='-shared' 6730 if test "$aix_use_runtimelinking" = yes; then 6731 shared_flag="$shared_flag "'${wl}-G' 6732 fi 6733 else 6734 # not using gcc 6735 if test "$host_cpu" = ia64; then 6736 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6737 # chokes on -Wl,-G. The following line is correct: 6738 shared_flag='-G' 6739 else 6740 if test "$aix_use_runtimelinking" = yes; then 6741 shared_flag='${wl}-G' 6742 else 6743 shared_flag='${wl}-bM:SRE' 6744 fi 6745 fi 6746 fi 6747 6748 # It seems that -bexpall does not export symbols beginning with 6749 # underscore (_), so it is better to generate a list of symbols to export. 6750 _LT_AC_TAGVAR(always_export_symbols, $1)=yes 6751 if test "$aix_use_runtimelinking" = yes; then 6752 # Warning - without using the other runtime loading flags (-brtl), 6753 # -berok will link without error, but may produce a broken library. 6754 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' 6755 # Determine the default libpath from the value encoded in an empty executable. 6756 _LT_AC_SYS_LIBPATH_AIX 6757 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 6758 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 6759 else 6760 if test "$host_cpu" = ia64; then 6761 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 6762 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 6763 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 6764 else 6765 # Determine the default libpath from the value encoded in an empty executable. 6766 _LT_AC_SYS_LIBPATH_AIX 6767 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 6768 # Warning - without using the other run time loading flags, 6769 # -berok will link without error, but may produce a broken library. 6770 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 6771 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 6772 # Exported symbols can be pulled into shared objects from archives 6773 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 6774 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 6775 # This is similar to how AIX traditionally builds its shared libraries. 6776 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 6777 fi 6778 fi 6779 ;; 6780 6781 amigaos*) 6782 _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)' 6783 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6784 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6785 # see comment about different semantics on the GNU ld section 6786 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6787 ;; 6788 6789 bsdi[[45]]*) 6790 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 6791 ;; 6792 6793 cygwin* | mingw* | pw32*) 6794 # When not using gcc, we currently assume that we are using 6795 # Microsoft Visual C++. 6796 # hardcode_libdir_flag_spec is actually meaningless, as there is 6797 # no search path for DLLs. 6798 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 6799 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 6800 # Tell ltmain to make .lib files, not .a files. 6801 libext=lib 6802 # Tell ltmain to make .dll files, not .so files. 6803 shrext_cmds=".dll" 6804 # FIXME: Setting linknames here is a bad hack. 6805 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 6806 # The linker will automatically build a .lib file if we build a DLL. 6807 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' 6808 # FIXME: Should let the user specify the lib program. 6809 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 6810 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' 6811 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6812 ;; 6813 6814 darwin* | rhapsody*) 6815 case $host_os in 6816 rhapsody* | darwin1.[[012]]) 6817 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' 6818 ;; 6819 *) # Darwin 1.3 on 6820 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 6821 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 6822 else 6823 case ${MACOSX_DEPLOYMENT_TARGET} in 6824 10.[[012]]) 6825 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 6826 ;; 6827 10.*) 6828 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' 6829 ;; 6830 esac 6831 fi 6832 ;; 6833 esac 6834 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 6835 _LT_AC_TAGVAR(hardcode_direct, $1)=no 6836 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 6837 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 6838 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' 6839 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 6840 if test "$GCC" = yes ; then 6841 output_verbose_link_cmd='echo' 6842 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 6843 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 6844 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 6845 _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}' 6846 _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}' 6847 else 6848 case $cc_basename in 6849 xlc*) 6850 output_verbose_link_cmd='echo' 6851 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 6852 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 6853 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 6854 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 6855 _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}' 6856 ;; 6857 *) 6858 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6859 ;; 6860 esac 6861 fi 6862 ;; 6863 6864 dgux*) 6865 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6866 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6867 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6868 ;; 6869 6870 freebsd1*) 6871 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6872 ;; 6873 6874 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 6875 # support. Future versions do this automatically, but an explicit c++rt0.o 6876 # does not break anything, and helps significantly (at the cost of a little 6877 # extra space). 6878 freebsd2.2*) 6879 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 6880 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6881 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6882 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6883 ;; 6884 6885 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 6886 freebsd2*) 6887 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6888 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6889 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6890 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6891 ;; 6892 6893 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 6894 freebsd* | dragonfly*) 6895 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 6896 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6897 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6898 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6899 ;; 6900 6901 hpux9*) 6902 if test "$GCC" = yes; then 6903 _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' 6904 else 6905 _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' 6906 fi 6907 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6908 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6909 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6910 6911 # hardcode_minus_L: Not really in the search PATH, 6912 # but as the default location of the library. 6913 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6914 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6915 ;; 6916 6917 hpux10*) 6918 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 6919 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6920 else 6921 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 6922 fi 6923 if test "$with_gnu_ld" = no; then 6924 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6925 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6926 6927 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6928 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6929 6930 # hardcode_minus_L: Not really in the search PATH, 6931 # but as the default location of the library. 6932 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6933 fi 6934 ;; 6935 6936 hpux11*) 6937 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 6938 case $host_cpu in 6939 hppa*64*) 6940 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6941 ;; 6942 ia64*) 6943 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 6944 ;; 6945 *) 6946 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6947 ;; 6948 esac 6949 else 6950 case $host_cpu in 6951 hppa*64*) 6952 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6953 ;; 6954 ia64*) 6955 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 6956 ;; 6957 *) 6958 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6959 ;; 6960 esac 6961 fi 6962 if test "$with_gnu_ld" = no; then 6963 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6964 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6965 6966 case $host_cpu in 6967 hppa*64*|ia64*) 6968 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 6969 _LT_AC_TAGVAR(hardcode_direct, $1)=no 6970 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6971 ;; 6972 *) 6973 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6974 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6975 6976 # hardcode_minus_L: Not really in the search PATH, 6977 # but as the default location of the library. 6978 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6979 ;; 6980 esac 6981 fi 6982 ;; 6983 6984 irix5* | irix6* | nonstopux*) 6985 if test "$GCC" = yes; then 6986 _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' 6987 else 6988 _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' 6989 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' 6990 fi 6991 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6992 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6993 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 6994 ;; 6995 6996 netbsd*) 6997 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6998 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 6999 else 7000 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7001 fi 7002 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7003 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 7004 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 7005 ;; 7006 7007 newsos6) 7008 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7009 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 7010 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7011 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 7012 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 7013 ;; 7014 7015 openbsd*) 7016 if test -f /usr/libexec/ld.so; then 7017 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 7018 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 7019 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7020 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7021 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7022 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 7023 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7024 else 7025 case $host_os in 7026 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 7027 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7028 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7029 ;; 7030 *) 7031 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7032 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 7033 ;; 7034 esac 7035 fi 7036 else 7037 _LT_AC_TAGVAR(ld_shlibs, $1)=no 7038 fi 7039 ;; 7040 7041 os2*) 7042 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7043 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 7044 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 7045 _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' 7046 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7047 ;; 7048 7049 osf3*) 7050 if test "$GCC" = yes; then 7051 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 7052 _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' 7053 else 7054 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 7055 _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' 7056 fi 7057 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7058 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 7059 ;; 7060 7061 osf4* | osf5*) # as osf3* with the addition of -msym flag 7062 if test "$GCC" = yes; then 7063 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 7064 _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' 7065 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7066 else 7067 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 7068 _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' 7069 _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~ 7070 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 7071 7072 # Both c and cxx compiler support -rpath directly 7073 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 7074 fi 7075 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 7076 ;; 7077 7078 solaris*) 7079 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' 7080 if test "$GCC" = yes; then 7081 wlarc='${wl}' 7082 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7083 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7084 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7085 else 7086 wlarc='' 7087 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7088 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7089 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7090 fi 7091 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7092 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 7093 case $host_os in 7094 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 7095 *) 7096 # The compiler driver will combine and reorder linker options, 7097 # but understands `-z linker_flag'. GCC discards it without `$wl', 7098 # but is careful enough not to reorder. 7099 # Supported since Solaris 2.6 (maybe 2.5.1?) 7100 if test "$GCC" = yes; then 7101 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 7102 else 7103 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 7104 fi 7105 ;; 7106 esac 7107 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 7108 ;; 7109 7110 sunos4*) 7111 if test "x$host_vendor" = xsequent; then 7112 # Use $CC to link under sequent, because it throws in some extra .o 7113 # files that make .init and .fini sections work. 7114 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7115 else 7116 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7117 fi 7118 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7119 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 7120 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 7121 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 7122 ;; 7123 7124 sysv4) 7125 case $host_vendor in 7126 sni) 7127 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7128 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 7129 ;; 7130 siemens) 7131 ## LD is ld it makes a PLAMLIB 7132 ## CC just makes a GrossModule. 7133 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7134 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 7135 _LT_AC_TAGVAR(hardcode_direct, $1)=no 7136 ;; 7137 motorola) 7138 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7139 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 7140 ;; 7141 esac 7142 runpath_var='LD_RUN_PATH' 7143 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 7144 ;; 7145 7146 sysv4.3*) 7147 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7148 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 7149 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 7150 ;; 7151 7152 sysv4*MP*) 7153 if test -d /usr/nec; then 7154 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7155 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 7156 runpath_var=LD_RUN_PATH 7157 hardcode_runpath_var=yes 7158 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 7159 fi 7160 ;; 7161 7162 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 7163 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 7164 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 7165 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 7166 runpath_var='LD_RUN_PATH' 7167 7168 if test "$GCC" = yes; then 7169 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7170 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7171 else 7172 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7173 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7174 fi 7175 ;; 7176 7177 sysv5* | sco3.2v5* | sco5v6*) 7178 # Note: We can NOT use -z defs as we might desire, because we do not 7179 # link with -lc, and that would cause any symbols used from libc to 7180 # always be unresolved, which means just about no library would 7181 # ever link correctly. If we're not using GNU ld we use -z text 7182 # though, which does catch some bad symbols but isn't as heavy-handed 7183 # as -z defs. 7184 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 7185 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 7186 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 7187 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 7188 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 7189 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 7190 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 7191 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 7192 runpath_var='LD_RUN_PATH' 7193 7194 if test "$GCC" = yes; then 7195 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7196 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7197 else 7198 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7199 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7200 fi 7201 ;; 7202 7203 uts4*) 7204 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7205 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7206 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 7207 ;; 7208 7209 *) 7210 _LT_AC_TAGVAR(ld_shlibs, $1)=no 7211 ;; 7212 esac 7213 fi 7214]) 7215AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 7216test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 7217 7218# 7219# Do we need to explicitly link libc? 7220# 7221case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in 7222x|xyes) 7223 # Assume -lc should be added 7224 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 7225 7226 if test "$enable_shared" = yes && test "$GCC" = yes; then 7227 case $_LT_AC_TAGVAR(archive_cmds, $1) in 7228 *'~'*) 7229 # FIXME: we may have to deal with multi-command sequences. 7230 ;; 7231 '$CC '*) 7232 # Test whether the compiler implicitly links with -lc since on some 7233 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7234 # to ld, don't add -lc before -lgcc. 7235 AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 7236 $rm conftest* 7237 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7238 7239 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 7240 soname=conftest 7241 lib=conftest 7242 libobjs=conftest.$ac_objext 7243 deplibs= 7244 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) 7245 pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) 7246 compiler_flags=-v 7247 linker_flags=-v 7248 verstring= 7249 output_objdir=. 7250 libname=conftest 7251 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) 7252 _LT_AC_TAGVAR(allow_undefined_flag, $1)= 7253 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 7254 then 7255 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 7256 else 7257 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 7258 fi 7259 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 7260 else 7261 cat conftest.err 1>&5 7262 fi 7263 $rm conftest* 7264 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) 7265 ;; 7266 esac 7267 fi 7268 ;; 7269esac 7270])# AC_LIBTOOL_PROG_LD_SHLIBS 7271 7272 7273# _LT_AC_FILE_LTDLL_C 7274# ------------------- 7275# Be careful that the start marker always follows a newline. 7276AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ 7277# /* ltdll.c starts here */ 7278# #define WIN32_LEAN_AND_MEAN 7279# #include <windows.h> 7280# #undef WIN32_LEAN_AND_MEAN 7281# #include <stdio.h> 7282# 7283# #ifndef __CYGWIN__ 7284# # ifdef __CYGWIN32__ 7285# # define __CYGWIN__ __CYGWIN32__ 7286# # endif 7287# #endif 7288# 7289# #ifdef __cplusplus 7290# extern "C" { 7291# #endif 7292# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); 7293# #ifdef __cplusplus 7294# } 7295# #endif 7296# 7297# #ifdef __CYGWIN__ 7298# #include <cygwin/cygwin_dll.h> 7299# DECLARE_CYGWIN_DLL( DllMain ); 7300# #endif 7301# HINSTANCE __hDllInstance_base; 7302# 7303# BOOL APIENTRY 7304# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) 7305# { 7306# __hDllInstance_base = hInst; 7307# return TRUE; 7308# } 7309# /* ltdll.c ends here */ 7310])# _LT_AC_FILE_LTDLL_C 7311 7312 7313# _LT_AC_TAGVAR(VARNAME, [TAGNAME]) 7314# --------------------------------- 7315AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) 7316 7317 7318# old names 7319AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) 7320AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 7321AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 7322AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 7323AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 7324AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) 7325AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) 7326 7327# This is just to silence aclocal about the macro not being used 7328ifelse([AC_DISABLE_FAST_INSTALL]) 7329 7330AC_DEFUN([LT_AC_PROG_GCJ], 7331[AC_CHECK_TOOL(GCJ, gcj, no) 7332 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 7333 AC_SUBST(GCJFLAGS) 7334]) 7335 7336AC_DEFUN([LT_AC_PROG_RC], 7337[AC_CHECK_TOOL(RC, windres, no) 7338]) 7339 7340 7341# Cheap backport of AS_EXECUTABLE_P and required macros 7342# from Autoconf 2.59; we should not use $as_executable_p directly. 7343 7344# _AS_TEST_PREPARE 7345# ---------------- 7346m4_ifndef([_AS_TEST_PREPARE], 7347[m4_defun([_AS_TEST_PREPARE], 7348[if test -x / >/dev/null 2>&1; then 7349 as_executable_p='test -x' 7350else 7351 as_executable_p='test -f' 7352fi 7353])])# _AS_TEST_PREPARE 7354 7355# AS_EXECUTABLE_P 7356# --------------- 7357# Check whether a file is executable. 7358m4_ifndef([AS_EXECUTABLE_P], 7359[m4_defun([AS_EXECUTABLE_P], 7360[AS_REQUIRE([_AS_TEST_PREPARE])dnl 7361$as_executable_p $1[]dnl 7362])])# AS_EXECUTABLE_P 7363 7364# NOTE: This macro has been submitted for inclusion into # 7365# GNU Autoconf as AC_PROG_SED. When it is available in # 7366# a released version of Autoconf we should remove this # 7367# macro and use it instead. # 7368# LT_AC_PROG_SED 7369# -------------- 7370# Check for a fully-functional sed program, that truncates 7371# as few characters as possible. Prefer GNU sed if found. 7372AC_DEFUN([LT_AC_PROG_SED], 7373[AC_MSG_CHECKING([for a sed that does not truncate output]) 7374AC_CACHE_VAL(lt_cv_path_SED, 7375[# Loop through the user's path and test for sed and gsed. 7376# Then use that list of sed's as ones to test for truncation. 7377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7378for as_dir in $PATH 7379do 7380 IFS=$as_save_IFS 7381 test -z "$as_dir" && as_dir=. 7382 for lt_ac_prog in sed gsed; do 7383 for ac_exec_ext in '' $ac_executable_extensions; do 7384 if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then 7385 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 7386 fi 7387 done 7388 done 7389done 7390IFS=$as_save_IFS 7391lt_ac_max=0 7392lt_ac_count=0 7393# Add /usr/xpg4/bin/sed as it is typically found on Solaris 7394# along with /bin/sed that truncates output. 7395for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 7396 test ! -f $lt_ac_sed && continue 7397 cat /dev/null > conftest.in 7398 lt_ac_count=0 7399 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 7400 # Check for GNU sed and select it if it is found. 7401 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 7402 lt_cv_path_SED=$lt_ac_sed 7403 break 7404 fi 7405 while true; do 7406 cat conftest.in conftest.in >conftest.tmp 7407 mv conftest.tmp conftest.in 7408 cp conftest.in conftest.nl 7409 echo >>conftest.nl 7410 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 7411 cmp -s conftest.out conftest.nl || break 7412 # 10000 chars as input seems more than enough 7413 test $lt_ac_count -gt 10 && break 7414 lt_ac_count=`expr $lt_ac_count + 1` 7415 if test $lt_ac_count -gt $lt_ac_max; then 7416 lt_ac_max=$lt_ac_count 7417 lt_cv_path_SED=$lt_ac_sed 7418 fi 7419 done 7420done 7421]) 7422SED=$lt_cv_path_SED 7423AC_SUBST([SED]) 7424AC_MSG_RESULT([$SED]) 7425]) 7426 7427