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