aclocal.m4 revision 08c70cfb
1# generated automatically by aclocal 1.13.2 -*- Autoconf -*- 2 3# Copyright (C) 1996-2013 Free Software Foundation, Inc. 4 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_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) 15m4_ifndef([AC_AUTOCONF_VERSION], 16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 17m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],, 18[m4_warning([this file was generated for autoconf 2.68. 19You have another version of autoconf. It may work, but is not guaranteed to. 20If you have problems, you may need to regenerate the build system entirely. 21To do so, use the procedure documented by the package, typically 'autoreconf'.])]) 22 23# Copyright (C) 2002-2013 Free Software Foundation, Inc. 24# 25# This file is free software; the Free Software Foundation 26# gives unlimited permission to copy and/or distribute it, 27# with or without modifications, as long as this notice is preserved. 28 29# AM_AUTOMAKE_VERSION(VERSION) 30# ---------------------------- 31# Automake X.Y traces this macro to ensure aclocal.m4 has been 32# generated from the m4 files accompanying Automake X.Y. 33# (This private macro should not be called outside this file.) 34AC_DEFUN([AM_AUTOMAKE_VERSION], 35[am__api_version='1.13' 36dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 37dnl require some minimum version. Point them to the right macro. 38m4_if([$1], [1.13.2], [], 39 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 40]) 41 42# _AM_AUTOCONF_VERSION(VERSION) 43# ----------------------------- 44# aclocal traces this macro to find the Autoconf version. 45# This is a private macro too. Using m4_define simplifies 46# the logic in aclocal, which can simply ignore this definition. 47m4_define([_AM_AUTOCONF_VERSION], []) 48 49# AM_SET_CURRENT_AUTOMAKE_VERSION 50# ------------------------------- 51# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 52# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 53AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 54[AM_AUTOMAKE_VERSION([1.13.2])dnl 55m4_ifndef([AC_AUTOCONF_VERSION], 56 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 57_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 58 59# AM_AUX_DIR_EXPAND -*- Autoconf -*- 60 61# Copyright (C) 2001-2013 Free Software Foundation, Inc. 62# 63# This file is free software; the Free Software Foundation 64# gives unlimited permission to copy and/or distribute it, 65# with or without modifications, as long as this notice is preserved. 66 67# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 68# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to 69# '$srcdir', '$srcdir/..', or '$srcdir/../..'. 70# 71# Of course, Automake must honor this variable whenever it calls a 72# tool from the auxiliary directory. The problem is that $srcdir (and 73# therefore $ac_aux_dir as well) can be either absolute or relative, 74# depending on how configure is run. This is pretty annoying, since 75# it makes $ac_aux_dir quite unusable in subdirectories: in the top 76# source directory, any form will work fine, but in subdirectories a 77# relative path needs to be adjusted first. 78# 79# $ac_aux_dir/missing 80# fails when called from a subdirectory if $ac_aux_dir is relative 81# $top_srcdir/$ac_aux_dir/missing 82# fails if $ac_aux_dir is absolute, 83# fails when called from a subdirectory in a VPATH build with 84# a relative $ac_aux_dir 85# 86# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 87# are both prefixed by $srcdir. In an in-source build this is usually 88# harmless because $srcdir is '.', but things will broke when you 89# start a VPATH build or use an absolute $srcdir. 90# 91# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 92# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 93# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 94# and then we would define $MISSING as 95# MISSING="\${SHELL} $am_aux_dir/missing" 96# This will work as long as MISSING is not called from configure, because 97# unfortunately $(top_srcdir) has no meaning in configure. 98# However there are other variables, like CC, which are often used in 99# configure, and could therefore not use this "fixed" $ac_aux_dir. 100# 101# Another solution, used here, is to always expand $ac_aux_dir to an 102# absolute PATH. The drawback is that using absolute paths prevent a 103# configured tree to be moved without reconfiguration. 104 105AC_DEFUN([AM_AUX_DIR_EXPAND], 106[dnl Rely on autoconf to set up CDPATH properly. 107AC_PREREQ([2.50])dnl 108# expand $ac_aux_dir to an absolute path 109am_aux_dir=`cd $ac_aux_dir && pwd` 110]) 111 112# AM_CONDITIONAL -*- Autoconf -*- 113 114# Copyright (C) 1997-2013 Free Software Foundation, Inc. 115# 116# This file is free software; the Free Software Foundation 117# gives unlimited permission to copy and/or distribute it, 118# with or without modifications, as long as this notice is preserved. 119 120# AM_CONDITIONAL(NAME, SHELL-CONDITION) 121# ------------------------------------- 122# Define a conditional. 123AC_DEFUN([AM_CONDITIONAL], 124[AC_PREREQ([2.52])dnl 125 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 126 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 127AC_SUBST([$1_TRUE])dnl 128AC_SUBST([$1_FALSE])dnl 129_AM_SUBST_NOTMAKE([$1_TRUE])dnl 130_AM_SUBST_NOTMAKE([$1_FALSE])dnl 131m4_define([_AM_COND_VALUE_$1], [$2])dnl 132if $2; then 133 $1_TRUE= 134 $1_FALSE='#' 135else 136 $1_TRUE='#' 137 $1_FALSE= 138fi 139AC_CONFIG_COMMANDS_PRE( 140[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 141 AC_MSG_ERROR([[conditional "$1" was never defined. 142Usually this means the macro was only invoked conditionally.]]) 143fi])]) 144 145# Copyright (C) 1999-2013 Free Software Foundation, Inc. 146# 147# This file is free software; the Free Software Foundation 148# gives unlimited permission to copy and/or distribute it, 149# with or without modifications, as long as this notice is preserved. 150 151 152# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be 153# written in clear, in which case automake, when reading aclocal.m4, 154# will think it sees a *use*, and therefore will trigger all it's 155# C support machinery. Also note that it means that autoscan, seeing 156# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 157 158 159# _AM_DEPENDENCIES(NAME) 160# ---------------------- 161# See how the compiler implements dependency checking. 162# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". 163# We try a few techniques and use that to set a single cache variable. 164# 165# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 166# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 167# dependency, and given that the user is not expected to run this macro, 168# just rely on AC_PROG_CC. 169AC_DEFUN([_AM_DEPENDENCIES], 170[AC_REQUIRE([AM_SET_DEPDIR])dnl 171AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 172AC_REQUIRE([AM_MAKE_INCLUDE])dnl 173AC_REQUIRE([AM_DEP_TRACK])dnl 174 175m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], 176 [$1], [CXX], [depcc="$CXX" am_compiler_list=], 177 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 178 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], 179 [$1], [UPC], [depcc="$UPC" am_compiler_list=], 180 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 181 [depcc="$$1" am_compiler_list=]) 182 183AC_CACHE_CHECK([dependency style of $depcc], 184 [am_cv_$1_dependencies_compiler_type], 185[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 186 # We make a subdir and do the tests there. Otherwise we can end up 187 # making bogus files that we don't know about and never remove. For 188 # instance it was reported that on HP-UX the gcc test will end up 189 # making a dummy file named 'D' -- because '-MD' means "put the output 190 # in D". 191 rm -rf conftest.dir 192 mkdir conftest.dir 193 # Copy depcomp to subdir because otherwise we won't find it if we're 194 # using a relative directory. 195 cp "$am_depcomp" conftest.dir 196 cd conftest.dir 197 # We will build objects and dependencies in a subdirectory because 198 # it helps to detect inapplicable dependency modes. For instance 199 # both Tru64's cc and ICC support -MD to output dependencies as a 200 # side effect of compilation, but ICC will put the dependencies in 201 # the current directory while Tru64 will put them in the object 202 # directory. 203 mkdir sub 204 205 am_cv_$1_dependencies_compiler_type=none 206 if test "$am_compiler_list" = ""; then 207 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 208 fi 209 am__universal=false 210 m4_case([$1], [CC], 211 [case " $depcc " in #( 212 *\ -arch\ *\ -arch\ *) am__universal=true ;; 213 esac], 214 [CXX], 215 [case " $depcc " in #( 216 *\ -arch\ *\ -arch\ *) am__universal=true ;; 217 esac]) 218 219 for depmode in $am_compiler_list; do 220 # Setup a source with many dependencies, because some compilers 221 # like to wrap large dependency lists on column 80 (with \), and 222 # we should not choose a depcomp mode which is confused by this. 223 # 224 # We need to recreate these files for each test, as the compiler may 225 # overwrite some of them when testing with obscure command lines. 226 # This happens at least with the AIX C compiler. 227 : > sub/conftest.c 228 for i in 1 2 3 4 5 6; do 229 echo '#include "conftst'$i'.h"' >> sub/conftest.c 230 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 231 # Solaris 10 /bin/sh. 232 echo '/* dummy */' > sub/conftst$i.h 233 done 234 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 235 236 # We check with '-c' and '-o' for the sake of the "dashmstdout" 237 # mode. It turns out that the SunPro C++ compiler does not properly 238 # handle '-M -o', and we need to detect this. Also, some Intel 239 # versions had trouble with output in subdirs. 240 am__obj=sub/conftest.${OBJEXT-o} 241 am__minus_obj="-o $am__obj" 242 case $depmode in 243 gcc) 244 # This depmode causes a compiler race in universal mode. 245 test "$am__universal" = false || continue 246 ;; 247 nosideeffect) 248 # After this tag, mechanisms are not by side-effect, so they'll 249 # only be used when explicitly requested. 250 if test "x$enable_dependency_tracking" = xyes; then 251 continue 252 else 253 break 254 fi 255 ;; 256 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 257 # This compiler won't grok '-c -o', but also, the minuso test has 258 # not run yet. These depmodes are late enough in the game, and 259 # so weak that their functioning should not be impacted. 260 am__obj=conftest.${OBJEXT-o} 261 am__minus_obj= 262 ;; 263 none) break ;; 264 esac 265 if depmode=$depmode \ 266 source=sub/conftest.c object=$am__obj \ 267 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 268 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 269 >/dev/null 2>conftest.err && 270 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 271 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 272 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 273 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 274 # icc doesn't choke on unknown options, it will just issue warnings 275 # or remarks (even with -Werror). So we grep stderr for any message 276 # that says an option was ignored or not supported. 277 # When given -MP, icc 7.0 and 7.1 complain thusly: 278 # icc: Command line warning: ignoring option '-M'; no argument required 279 # The diagnosis changed in icc 8.0: 280 # icc: Command line remark: option '-MP' not supported 281 if (grep 'ignoring option' conftest.err || 282 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 283 am_cv_$1_dependencies_compiler_type=$depmode 284 break 285 fi 286 fi 287 done 288 289 cd .. 290 rm -rf conftest.dir 291else 292 am_cv_$1_dependencies_compiler_type=none 293fi 294]) 295AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 296AM_CONDITIONAL([am__fastdep$1], [ 297 test "x$enable_dependency_tracking" != xno \ 298 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 299]) 300 301 302# AM_SET_DEPDIR 303# ------------- 304# Choose a directory name for dependency files. 305# This macro is AC_REQUIREd in _AM_DEPENDENCIES. 306AC_DEFUN([AM_SET_DEPDIR], 307[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 308AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 309]) 310 311 312# AM_DEP_TRACK 313# ------------ 314AC_DEFUN([AM_DEP_TRACK], 315[AC_ARG_ENABLE([dependency-tracking], [dnl 316AS_HELP_STRING( 317 [--enable-dependency-tracking], 318 [do not reject slow dependency extractors]) 319AS_HELP_STRING( 320 [--disable-dependency-tracking], 321 [speeds up one-time build])]) 322if test "x$enable_dependency_tracking" != xno; then 323 am_depcomp="$ac_aux_dir/depcomp" 324 AMDEPBACKSLASH='\' 325 am__nodep='_no' 326fi 327AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 328AC_SUBST([AMDEPBACKSLASH])dnl 329_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 330AC_SUBST([am__nodep])dnl 331_AM_SUBST_NOTMAKE([am__nodep])dnl 332]) 333 334# Generate code to set up dependency tracking. -*- Autoconf -*- 335 336# Copyright (C) 1999-2013 Free Software Foundation, Inc. 337# 338# This file is free software; the Free Software Foundation 339# gives unlimited permission to copy and/or distribute it, 340# with or without modifications, as long as this notice is preserved. 341 342 343# _AM_OUTPUT_DEPENDENCY_COMMANDS 344# ------------------------------ 345AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 346[{ 347 # Older Autoconf quotes --file arguments for eval, but not when files 348 # are listed without --file. Let's play safe and only enable the eval 349 # if we detect the quoting. 350 case $CONFIG_FILES in 351 *\'*) eval set x "$CONFIG_FILES" ;; 352 *) set x $CONFIG_FILES ;; 353 esac 354 shift 355 for mf 356 do 357 # Strip MF so we end up with the name of the file. 358 mf=`echo "$mf" | sed -e 's/:.*$//'` 359 # Check whether this is an Automake generated Makefile or not. 360 # We used to match only the files named 'Makefile.in', but 361 # some people rename them; so instead we look at the file content. 362 # Grep'ing the first line is not enough: some people post-process 363 # each Makefile.in and add a new line on top of each file to say so. 364 # Grep'ing the whole file is not good either: AIX grep has a line 365 # limit of 2048, but all sed's we know have understand at least 4000. 366 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 367 dirpart=`AS_DIRNAME("$mf")` 368 else 369 continue 370 fi 371 # Extract the definition of DEPDIR, am__include, and am__quote 372 # from the Makefile without running 'make'. 373 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 374 test -z "$DEPDIR" && continue 375 am__include=`sed -n 's/^am__include = //p' < "$mf"` 376 test -z "$am__include" && continue 377 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 378 # Find all dependency output files, they are included files with 379 # $(DEPDIR) in their names. We invoke sed twice because it is the 380 # simplest approach to changing $(DEPDIR) to its actual value in the 381 # expansion. 382 for file in `sed -n " 383 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 384 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 385 # Make sure the directory exists. 386 test -f "$dirpart/$file" && continue 387 fdir=`AS_DIRNAME(["$file"])` 388 AS_MKDIR_P([$dirpart/$fdir]) 389 # echo "creating $dirpart/$file" 390 echo '# dummy' > "$dirpart/$file" 391 done 392 done 393} 394])# _AM_OUTPUT_DEPENDENCY_COMMANDS 395 396 397# AM_OUTPUT_DEPENDENCY_COMMANDS 398# ----------------------------- 399# This macro should only be invoked once -- use via AC_REQUIRE. 400# 401# This code is only required when automatic dependency tracking 402# is enabled. FIXME. This creates each '.P' file that we will 403# need in order to bootstrap the dependency handling code. 404AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 405[AC_CONFIG_COMMANDS([depfiles], 406 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 407 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 408]) 409 410# Do all the work for Automake. -*- Autoconf -*- 411 412# Copyright (C) 1996-2013 Free Software Foundation, Inc. 413# 414# This file is free software; the Free Software Foundation 415# gives unlimited permission to copy and/or distribute it, 416# with or without modifications, as long as this notice is preserved. 417 418# This macro actually does too much. Some checks are only needed if 419# your package does certain things. But this isn't really a big deal. 420 421# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 422# AM_INIT_AUTOMAKE([OPTIONS]) 423# ----------------------------------------------- 424# The call with PACKAGE and VERSION arguments is the old style 425# call (pre autoconf-2.50), which is being phased out. PACKAGE 426# and VERSION should now be passed to AC_INIT and removed from 427# the call to AM_INIT_AUTOMAKE. 428# We support both call styles for the transition. After 429# the next Automake release, Autoconf can make the AC_INIT 430# arguments mandatory, and then we can depend on a new Autoconf 431# release and drop the old call support. 432AC_DEFUN([AM_INIT_AUTOMAKE], 433[AC_PREREQ([2.65])dnl 434dnl Autoconf wants to disallow AM_ names. We explicitly allow 435dnl the ones we care about. 436m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 437AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 438AC_REQUIRE([AC_PROG_INSTALL])dnl 439if test "`cd $srcdir && pwd`" != "`pwd`"; then 440 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 441 # is not polluted with repeated "-I." 442 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 443 # test to see if srcdir already configured 444 if test -f $srcdir/config.status; then 445 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 446 fi 447fi 448 449# test whether we have cygpath 450if test -z "$CYGPATH_W"; then 451 if (cygpath --version) >/dev/null 2>/dev/null; then 452 CYGPATH_W='cygpath -w' 453 else 454 CYGPATH_W=echo 455 fi 456fi 457AC_SUBST([CYGPATH_W]) 458 459# Define the identity of the package. 460dnl Distinguish between old-style and new-style calls. 461m4_ifval([$2], 462[AC_DIAGNOSE([obsolete], 463 [$0: two- and three-arguments forms are deprecated.]) 464m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 465 AC_SUBST([PACKAGE], [$1])dnl 466 AC_SUBST([VERSION], [$2])], 467[_AM_SET_OPTIONS([$1])dnl 468dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 469m4_if( 470 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), 471 [ok:ok],, 472 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 473 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 474 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 475 476_AM_IF_OPTION([no-define],, 477[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) 478 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl 479 480# Some tools Automake needs. 481AC_REQUIRE([AM_SANITY_CHECK])dnl 482AC_REQUIRE([AC_ARG_PROGRAM])dnl 483AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) 484AM_MISSING_PROG([AUTOCONF], [autoconf]) 485AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) 486AM_MISSING_PROG([AUTOHEADER], [autoheader]) 487AM_MISSING_PROG([MAKEINFO], [makeinfo]) 488AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 489AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 490AC_REQUIRE([AC_PROG_MKDIR_P])dnl 491# For better backward compatibility. To be removed once Automake 1.9.x 492# dies out for good. For more background, see: 493# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 494# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 495AC_SUBST([mkdir_p], ['$(MKDIR_P)']) 496# We need awk for the "check" target. The system "awk" is bad on 497# some platforms. 498AC_REQUIRE([AC_PROG_AWK])dnl 499AC_REQUIRE([AC_PROG_MAKE_SET])dnl 500AC_REQUIRE([AM_SET_LEADING_DOT])dnl 501_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 502 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 503 [_AM_PROG_TAR([v7])])]) 504_AM_IF_OPTION([no-dependencies],, 505[AC_PROVIDE_IFELSE([AC_PROG_CC], 506 [_AM_DEPENDENCIES([CC])], 507 [m4_define([AC_PROG_CC], 508 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl 509AC_PROVIDE_IFELSE([AC_PROG_CXX], 510 [_AM_DEPENDENCIES([CXX])], 511 [m4_define([AC_PROG_CXX], 512 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl 513AC_PROVIDE_IFELSE([AC_PROG_OBJC], 514 [_AM_DEPENDENCIES([OBJC])], 515 [m4_define([AC_PROG_OBJC], 516 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl 517AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], 518 [_AM_DEPENDENCIES([OBJCXX])], 519 [m4_define([AC_PROG_OBJCXX], 520 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl 521]) 522AC_REQUIRE([AM_SILENT_RULES])dnl 523dnl The testsuite driver may need to know about EXEEXT, so add the 524dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This 525dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. 526AC_CONFIG_COMMANDS_PRE(dnl 527[m4_provide_if([_AM_COMPILER_EXEEXT], 528 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 529]) 530 531dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 532dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 533dnl mangled by Autoconf and run in a shell conditional statement. 534m4_define([_AC_COMPILER_EXEEXT], 535m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 536 537 538# When config.status generates a header, we must update the stamp-h file. 539# This file resides in the same directory as the config header 540# that is generated. The stamp files are numbered to have different names. 541 542# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 543# loop where config.status creates the headers, so we can generate 544# our stamp files there. 545AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 546[# Compute $1's index in $config_headers. 547_am_arg=$1 548_am_stamp_count=1 549for _am_header in $config_headers :; do 550 case $_am_header in 551 $_am_arg | $_am_arg:* ) 552 break ;; 553 * ) 554 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 555 esac 556done 557echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 558 559# Copyright (C) 2001-2013 Free Software Foundation, Inc. 560# 561# This file is free software; the Free Software Foundation 562# gives unlimited permission to copy and/or distribute it, 563# with or without modifications, as long as this notice is preserved. 564 565# AM_PROG_INSTALL_SH 566# ------------------ 567# Define $install_sh. 568AC_DEFUN([AM_PROG_INSTALL_SH], 569[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 570if test x"${install_sh}" != xset; then 571 case $am_aux_dir in 572 *\ * | *\ *) 573 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 574 *) 575 install_sh="\${SHELL} $am_aux_dir/install-sh" 576 esac 577fi 578AC_SUBST([install_sh])]) 579 580# Copyright (C) 2003-2013 Free Software Foundation, Inc. 581# 582# This file is free software; the Free Software Foundation 583# gives unlimited permission to copy and/or distribute it, 584# with or without modifications, as long as this notice is preserved. 585 586# Check whether the underlying file-system supports filenames 587# with a leading dot. For instance MS-DOS doesn't. 588AC_DEFUN([AM_SET_LEADING_DOT], 589[rm -rf .tst 2>/dev/null 590mkdir .tst 2>/dev/null 591if test -d .tst; then 592 am__leading_dot=. 593else 594 am__leading_dot=_ 595fi 596rmdir .tst 2>/dev/null 597AC_SUBST([am__leading_dot])]) 598 599# Check to see how 'make' treats includes. -*- Autoconf -*- 600 601# Copyright (C) 2001-2013 Free Software Foundation, Inc. 602# 603# This file is free software; the Free Software Foundation 604# gives unlimited permission to copy and/or distribute it, 605# with or without modifications, as long as this notice is preserved. 606 607# AM_MAKE_INCLUDE() 608# ----------------- 609# Check to see how make treats includes. 610AC_DEFUN([AM_MAKE_INCLUDE], 611[am_make=${MAKE-make} 612cat > confinc << 'END' 613am__doit: 614 @echo this is the am__doit target 615.PHONY: am__doit 616END 617# If we don't find an include directive, just comment out the code. 618AC_MSG_CHECKING([for style of include used by $am_make]) 619am__include="#" 620am__quote= 621_am_result=none 622# First try GNU make style include. 623echo "include confinc" > confmf 624# Ignore all kinds of additional output from 'make'. 625case `$am_make -s -f confmf 2> /dev/null` in #( 626*the\ am__doit\ target*) 627 am__include=include 628 am__quote= 629 _am_result=GNU 630 ;; 631esac 632# Now try BSD make style include. 633if test "$am__include" = "#"; then 634 echo '.include "confinc"' > confmf 635 case `$am_make -s -f confmf 2> /dev/null` in #( 636 *the\ am__doit\ target*) 637 am__include=.include 638 am__quote="\"" 639 _am_result=BSD 640 ;; 641 esac 642fi 643AC_SUBST([am__include]) 644AC_SUBST([am__quote]) 645AC_MSG_RESULT([$_am_result]) 646rm -f confinc confmf 647]) 648 649# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 650 651# Copyright (C) 1997-2013 Free Software Foundation, Inc. 652# 653# This file is free software; the Free Software Foundation 654# gives unlimited permission to copy and/or distribute it, 655# with or without modifications, as long as this notice is preserved. 656 657# AM_MISSING_PROG(NAME, PROGRAM) 658# ------------------------------ 659AC_DEFUN([AM_MISSING_PROG], 660[AC_REQUIRE([AM_MISSING_HAS_RUN]) 661$1=${$1-"${am_missing_run}$2"} 662AC_SUBST($1)]) 663 664# AM_MISSING_HAS_RUN 665# ------------------ 666# Define MISSING if not defined so far and test if it is modern enough. 667# If it is, set am_missing_run to use it, otherwise, to nothing. 668AC_DEFUN([AM_MISSING_HAS_RUN], 669[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 670AC_REQUIRE_AUX_FILE([missing])dnl 671if test x"${MISSING+set}" != xset; then 672 case $am_aux_dir in 673 *\ * | *\ *) 674 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 675 *) 676 MISSING="\${SHELL} $am_aux_dir/missing" ;; 677 esac 678fi 679# Use eval to expand $SHELL 680if eval "$MISSING --is-lightweight"; then 681 am_missing_run="$MISSING " 682else 683 am_missing_run= 684 AC_MSG_WARN(['missing' script is too old or missing]) 685fi 686]) 687 688# Helper functions for option handling. -*- Autoconf -*- 689 690# Copyright (C) 2001-2013 Free Software Foundation, Inc. 691# 692# This file is free software; the Free Software Foundation 693# gives unlimited permission to copy and/or distribute it, 694# with or without modifications, as long as this notice is preserved. 695 696# _AM_MANGLE_OPTION(NAME) 697# ----------------------- 698AC_DEFUN([_AM_MANGLE_OPTION], 699[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 700 701# _AM_SET_OPTION(NAME) 702# -------------------- 703# Set option NAME. Presently that only means defining a flag for this option. 704AC_DEFUN([_AM_SET_OPTION], 705[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) 706 707# _AM_SET_OPTIONS(OPTIONS) 708# ------------------------ 709# OPTIONS is a space-separated list of Automake options. 710AC_DEFUN([_AM_SET_OPTIONS], 711[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 712 713# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 714# ------------------------------------------- 715# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 716AC_DEFUN([_AM_IF_OPTION], 717[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 718 719# Copyright (C) 1999-2013 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 726# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 727# --------------------------------------------------------------------------- 728# Adds support for distributing Python modules and packages. To 729# install modules, copy them to $(pythondir), using the python_PYTHON 730# automake variable. To install a package with the same name as the 731# automake package, install to $(pkgpythondir), or use the 732# pkgpython_PYTHON automake variable. 733# 734# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as 735# locations to install python extension modules (shared libraries). 736# Another macro is required to find the appropriate flags to compile 737# extension modules. 738# 739# If your package is configured with a different prefix to python, 740# users will have to add the install directory to the PYTHONPATH 741# environment variable, or create a .pth file (see the python 742# documentation for details). 743# 744# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will 745# cause an error if the version of python installed on the system 746# doesn't meet the requirement. MINIMUM-VERSION should consist of 747# numbers and dots only. 748AC_DEFUN([AM_PATH_PYTHON], 749 [ 750 dnl Find a Python interpreter. Python versions prior to 2.0 are not 751 dnl supported. (2.0 was released on October 16, 2000). 752 m4_define_default([_AM_PYTHON_INTERPRETER_LIST], 753[python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 dnl 754 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0]) 755 756 AC_ARG_VAR([PYTHON], [the Python interpreter]) 757 758 m4_if([$1],[],[ 759 dnl No version check is needed. 760 # Find any Python interpreter. 761 if test -z "$PYTHON"; then 762 AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :) 763 fi 764 am_display_PYTHON=python 765 ], [ 766 dnl A version check is needed. 767 if test -n "$PYTHON"; then 768 # If the user set $PYTHON, use it and don't search something else. 769 AC_MSG_CHECKING([whether $PYTHON version is >= $1]) 770 AM_PYTHON_CHECK_VERSION([$PYTHON], [$1], 771 [AC_MSG_RESULT([yes])], 772 [AC_MSG_RESULT([no]) 773 AC_MSG_ERROR([Python interpreter is too old])]) 774 am_display_PYTHON=$PYTHON 775 else 776 # Otherwise, try each interpreter until we find one that satisfies 777 # VERSION. 778 AC_CACHE_CHECK([for a Python interpreter with version >= $1], 779 [am_cv_pathless_PYTHON],[ 780 for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do 781 test "$am_cv_pathless_PYTHON" = none && break 782 AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break]) 783 done]) 784 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. 785 if test "$am_cv_pathless_PYTHON" = none; then 786 PYTHON=: 787 else 788 AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON]) 789 fi 790 am_display_PYTHON=$am_cv_pathless_PYTHON 791 fi 792 ]) 793 794 if test "$PYTHON" = :; then 795 dnl Run any user-specified action, or abort. 796 m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])]) 797 else 798 799 dnl Query Python for its version number. Getting [:3] seems to be 800 dnl the best way to do this; it's what "site.py" does in the standard 801 dnl library. 802 803 AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version], 804 [am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`]) 805 AC_SUBST([PYTHON_VERSION], [$am_cv_python_version]) 806 807 dnl Use the values of $prefix and $exec_prefix for the corresponding 808 dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX. These are made 809 dnl distinct variables so they can be overridden if need be. However, 810 dnl general consensus is that you shouldn't need this ability. 811 812 AC_SUBST([PYTHON_PREFIX], ['${prefix}']) 813 AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}']) 814 815 dnl At times (like when building shared libraries) you may want 816 dnl to know which OS platform Python thinks this is. 817 818 AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform], 819 [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`]) 820 AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform]) 821 822 # Just factor out some code duplication. 823 am_python_setup_sysconfig="\ 824import sys 825# Prefer sysconfig over distutils.sysconfig, for better compatibility 826# with python 3.x. See automake bug#10227. 827try: 828 import sysconfig 829except ImportError: 830 can_use_sysconfig = 0 831else: 832 can_use_sysconfig = 1 833# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: 834# <https://github.com/pypa/virtualenv/issues/118> 835try: 836 from platform import python_implementation 837 if python_implementation() == 'CPython' and sys.version[[:3]] == '2.7': 838 can_use_sysconfig = 0 839except ImportError: 840 pass" 841 842 dnl Set up 4 directories: 843 844 dnl pythondir -- where to install python scripts. This is the 845 dnl site-packages directory, not the python standard library 846 dnl directory like in previous automake betas. This behavior 847 dnl is more consistent with lispdir.m4 for example. 848 dnl Query distutils for this directory. 849 AC_CACHE_CHECK([for $am_display_PYTHON script directory], 850 [am_cv_python_pythondir], 851 [if test "x$prefix" = xNONE 852 then 853 am_py_prefix=$ac_default_prefix 854 else 855 am_py_prefix=$prefix 856 fi 857 am_cv_python_pythondir=`$PYTHON -c " 858$am_python_setup_sysconfig 859if can_use_sysconfig: 860 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) 861else: 862 from distutils import sysconfig 863 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') 864sys.stdout.write(sitedir)"` 865 case $am_cv_python_pythondir in 866 $am_py_prefix*) 867 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` 868 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"` 869 ;; 870 *) 871 case $am_py_prefix in 872 /usr|/System*) ;; 873 *) 874 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages 875 ;; 876 esac 877 ;; 878 esac 879 ]) 880 AC_SUBST([pythondir], [$am_cv_python_pythondir]) 881 882 dnl pkgpythondir -- $PACKAGE directory under pythondir. Was 883 dnl PYTHON_SITE_PACKAGE in previous betas, but this naming is 884 dnl more consistent with the rest of automake. 885 886 AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE]) 887 888 dnl pyexecdir -- directory for installing python extension modules 889 dnl (shared libraries) 890 dnl Query distutils for this directory. 891 AC_CACHE_CHECK([for $am_display_PYTHON extension module directory], 892 [am_cv_python_pyexecdir], 893 [if test "x$exec_prefix" = xNONE 894 then 895 am_py_exec_prefix=$am_py_prefix 896 else 897 am_py_exec_prefix=$exec_prefix 898 fi 899 am_cv_python_pyexecdir=`$PYTHON -c " 900$am_python_setup_sysconfig 901if can_use_sysconfig: 902 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'}) 903else: 904 from distutils import sysconfig 905 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix') 906sys.stdout.write(sitedir)"` 907 case $am_cv_python_pyexecdir in 908 $am_py_exec_prefix*) 909 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` 910 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"` 911 ;; 912 *) 913 case $am_py_exec_prefix in 914 /usr|/System*) ;; 915 *) 916 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages 917 ;; 918 esac 919 ;; 920 esac 921 ]) 922 AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir]) 923 924 dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE) 925 926 AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE]) 927 928 dnl Run any user-specified action. 929 $2 930 fi 931 932]) 933 934 935# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE]) 936# --------------------------------------------------------------------------- 937# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION. 938# Run ACTION-IF-FALSE otherwise. 939# This test uses sys.hexversion instead of the string equivalent (first 940# word of sys.version), in order to cope with versions such as 2.2c1. 941# This supports Python 2.0 or higher. (2.0 was released on October 16, 2000). 942AC_DEFUN([AM_PYTHON_CHECK_VERSION], 943 [prog="import sys 944# split strings by '.' and convert to numeric. Append some zeros 945# because we need at least 4 digits for the hex conversion. 946# map returns an iterator in Python 3.0 and a list in 2.x 947minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]] 948minverhex = 0 949# xrange is not present in Python 3.0 and range returns an iterator 950for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]] 951sys.exit(sys.hexversion < minverhex)" 952 AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])]) 953 954# Copyright (C) 2001-2013 Free Software Foundation, Inc. 955# 956# This file is free software; the Free Software Foundation 957# gives unlimited permission to copy and/or distribute it, 958# with or without modifications, as long as this notice is preserved. 959 960# AM_RUN_LOG(COMMAND) 961# ------------------- 962# Run COMMAND, save the exit status in ac_status, and log it. 963# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) 964AC_DEFUN([AM_RUN_LOG], 965[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD 966 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD 967 ac_status=$? 968 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 969 (exit $ac_status); }]) 970 971# Check to make sure that the build environment is sane. -*- Autoconf -*- 972 973# Copyright (C) 1996-2013 Free Software Foundation, Inc. 974# 975# This file is free software; the Free Software Foundation 976# gives unlimited permission to copy and/or distribute it, 977# with or without modifications, as long as this notice is preserved. 978 979# AM_SANITY_CHECK 980# --------------- 981AC_DEFUN([AM_SANITY_CHECK], 982[AC_MSG_CHECKING([whether build environment is sane]) 983# Reject unsafe characters in $srcdir or the absolute working directory 984# name. Accept space and tab only in the latter. 985am_lf=' 986' 987case `pwd` in 988 *[[\\\"\#\$\&\'\`$am_lf]]*) 989 AC_MSG_ERROR([unsafe absolute working directory name]);; 990esac 991case $srcdir in 992 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 993 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; 994esac 995 996# Do 'set' in a subshell so we don't clobber the current shell's 997# arguments. Must try -L first in case configure is actually a 998# symlink; some systems play weird games with the mod time of symlinks 999# (eg FreeBSD returns the mod time of the symlink's containing 1000# directory). 1001if ( 1002 am_has_slept=no 1003 for am_try in 1 2; do 1004 echo "timestamp, slept: $am_has_slept" > conftest.file 1005 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 1006 if test "$[*]" = "X"; then 1007 # -L didn't work. 1008 set X `ls -t "$srcdir/configure" conftest.file` 1009 fi 1010 if test "$[*]" != "X $srcdir/configure conftest.file" \ 1011 && test "$[*]" != "X conftest.file $srcdir/configure"; then 1012 1013 # If neither matched, then we have a broken ls. This can happen 1014 # if, for instance, CONFIG_SHELL is bash and it inherits a 1015 # broken ls alias from the environment. This has actually 1016 # happened. Such a system could not be considered "sane". 1017 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 1018 alias in your environment]) 1019 fi 1020 if test "$[2]" = conftest.file || test $am_try -eq 2; then 1021 break 1022 fi 1023 # Just in case. 1024 sleep 1 1025 am_has_slept=yes 1026 done 1027 test "$[2]" = conftest.file 1028 ) 1029then 1030 # Ok. 1031 : 1032else 1033 AC_MSG_ERROR([newly created file is older than distributed files! 1034Check your system clock]) 1035fi 1036AC_MSG_RESULT([yes]) 1037# If we didn't sleep, we still need to ensure time stamps of config.status and 1038# generated files are strictly newer. 1039am_sleep_pid= 1040if grep 'slept: no' conftest.file >/dev/null 2>&1; then 1041 ( sleep 1 ) & 1042 am_sleep_pid=$! 1043fi 1044AC_CONFIG_COMMANDS_PRE( 1045 [AC_MSG_CHECKING([that generated files are newer than configure]) 1046 if test -n "$am_sleep_pid"; then 1047 # Hide warnings about reused PIDs. 1048 wait $am_sleep_pid 2>/dev/null 1049 fi 1050 AC_MSG_RESULT([done])]) 1051rm -f conftest.file 1052]) 1053 1054# Copyright (C) 2009-2013 Free Software Foundation, Inc. 1055# 1056# This file is free software; the Free Software Foundation 1057# gives unlimited permission to copy and/or distribute it, 1058# with or without modifications, as long as this notice is preserved. 1059 1060# AM_SILENT_RULES([DEFAULT]) 1061# -------------------------- 1062# Enable less verbose build rules; with the default set to DEFAULT 1063# ("yes" being less verbose, "no" or empty being verbose). 1064AC_DEFUN([AM_SILENT_RULES], 1065[AC_ARG_ENABLE([silent-rules], [dnl 1066AS_HELP_STRING( 1067 [--enable-silent-rules], 1068 [less verbose build output (undo: "make V=1")]) 1069AS_HELP_STRING( 1070 [--disable-silent-rules], 1071 [verbose build output (undo: "make V=0")])dnl 1072]) 1073case $enable_silent_rules in @%:@ ((( 1074 yes) AM_DEFAULT_VERBOSITY=0;; 1075 no) AM_DEFAULT_VERBOSITY=1;; 1076 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 1077esac 1078dnl 1079dnl A few 'make' implementations (e.g., NonStop OS and NextStep) 1080dnl do not support nested variable expansions. 1081dnl See automake bug#9928 and bug#10237. 1082am_make=${MAKE-make} 1083AC_CACHE_CHECK([whether $am_make supports nested variables], 1084 [am_cv_make_support_nested_variables], 1085 [if AS_ECHO([['TRUE=$(BAR$(V)) 1086BAR0=false 1087BAR1=true 1088V=1 1089am__doit: 1090 @$(TRUE) 1091.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then 1092 am_cv_make_support_nested_variables=yes 1093else 1094 am_cv_make_support_nested_variables=no 1095fi]) 1096if test $am_cv_make_support_nested_variables = yes; then 1097 dnl Using '$V' instead of '$(V)' breaks IRIX make. 1098 AM_V='$(V)' 1099 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 1100else 1101 AM_V=$AM_DEFAULT_VERBOSITY 1102 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 1103fi 1104AC_SUBST([AM_V])dnl 1105AM_SUBST_NOTMAKE([AM_V])dnl 1106AC_SUBST([AM_DEFAULT_V])dnl 1107AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl 1108AC_SUBST([AM_DEFAULT_VERBOSITY])dnl 1109AM_BACKSLASH='\' 1110AC_SUBST([AM_BACKSLASH])dnl 1111_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 1112]) 1113 1114# Copyright (C) 2001-2013 Free Software Foundation, Inc. 1115# 1116# This file is free software; the Free Software Foundation 1117# gives unlimited permission to copy and/or distribute it, 1118# with or without modifications, as long as this notice is preserved. 1119 1120# AM_PROG_INSTALL_STRIP 1121# --------------------- 1122# One issue with vendor 'install' (even GNU) is that you can't 1123# specify the program used to strip binaries. This is especially 1124# annoying in cross-compiling environments, where the build's strip 1125# is unlikely to handle the host's binaries. 1126# Fortunately install-sh will honor a STRIPPROG variable, so we 1127# always use install-sh in "make install-strip", and initialize 1128# STRIPPROG with the value of the STRIP variable (set by the user). 1129AC_DEFUN([AM_PROG_INSTALL_STRIP], 1130[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 1131# Installed binaries are usually stripped using 'strip' when the user 1132# run "make install-strip". However 'strip' might not be the right 1133# tool to use in cross-compilation environments, therefore Automake 1134# will honor the 'STRIP' environment variable to overrule this program. 1135dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. 1136if test "$cross_compiling" != no; then 1137 AC_CHECK_TOOL([STRIP], [strip], :) 1138fi 1139INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 1140AC_SUBST([INSTALL_STRIP_PROGRAM])]) 1141 1142# Copyright (C) 2006-2013 Free Software Foundation, Inc. 1143# 1144# This file is free software; the Free Software Foundation 1145# gives unlimited permission to copy and/or distribute it, 1146# with or without modifications, as long as this notice is preserved. 1147 1148# _AM_SUBST_NOTMAKE(VARIABLE) 1149# --------------------------- 1150# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 1151# This macro is traced by Automake. 1152AC_DEFUN([_AM_SUBST_NOTMAKE]) 1153 1154# AM_SUBST_NOTMAKE(VARIABLE) 1155# -------------------------- 1156# Public sister of _AM_SUBST_NOTMAKE. 1157AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 1158 1159# Check how to create a tarball. -*- Autoconf -*- 1160 1161# Copyright (C) 2004-2013 Free Software Foundation, Inc. 1162# 1163# This file is free software; the Free Software Foundation 1164# gives unlimited permission to copy and/or distribute it, 1165# with or without modifications, as long as this notice is preserved. 1166 1167# _AM_PROG_TAR(FORMAT) 1168# -------------------- 1169# Check how to create a tarball in format FORMAT. 1170# FORMAT should be one of 'v7', 'ustar', or 'pax'. 1171# 1172# Substitute a variable $(am__tar) that is a command 1173# writing to stdout a FORMAT-tarball containing the directory 1174# $tardir. 1175# tardir=directory && $(am__tar) > result.tar 1176# 1177# Substitute a variable $(am__untar) that extract such 1178# a tarball read from stdin. 1179# $(am__untar) < result.tar 1180# 1181AC_DEFUN([_AM_PROG_TAR], 1182[# Always define AMTAR for backward compatibility. Yes, it's still used 1183# in the wild :-( We should find a proper way to deprecate it ... 1184AC_SUBST([AMTAR], ['$${TAR-tar}']) 1185 1186# We'll loop over all known methods to create a tar archive until one works. 1187_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 1188 1189m4_if([$1], [v7], 1190 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 1191 1192 [m4_case([$1], 1193 [ustar], 1194 [# The POSIX 1988 'ustar' format is defined with fixed-size fields. 1195 # There is notably a 21 bits limit for the UID and the GID. In fact, 1196 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 1197 # and bug#13588). 1198 am_max_uid=2097151 # 2^21 - 1 1199 am_max_gid=$am_max_uid 1200 # The $UID and $GID variables are not portable, so we need to resort 1201 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 1202 # below are definitely unexpected, so allow the users to see them 1203 # (that is, avoid stderr redirection). 1204 am_uid=`id -u || echo unknown` 1205 am_gid=`id -g || echo unknown` 1206 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) 1207 if test $am_uid -le $am_max_uid; then 1208 AC_MSG_RESULT([yes]) 1209 else 1210 AC_MSG_RESULT([no]) 1211 _am_tools=none 1212 fi 1213 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) 1214 if test $am_gid -le $am_max_gid; then 1215 AC_MSG_RESULT([yes]) 1216 else 1217 AC_MSG_RESULT([no]) 1218 _am_tools=none 1219 fi], 1220 1221 [pax], 1222 [], 1223 1224 [m4_fatal([Unknown tar format])]) 1225 1226 AC_MSG_CHECKING([how to create a $1 tar archive]) 1227 1228 # Go ahead even if we have the value already cached. We do so because we 1229 # need to set the values for the 'am__tar' and 'am__untar' variables. 1230 _am_tools=${am_cv_prog_tar_$1-$_am_tools} 1231 1232 for _am_tool in $_am_tools; do 1233 case $_am_tool in 1234 gnutar) 1235 for _am_tar in tar gnutar gtar; do 1236 AM_RUN_LOG([$_am_tar --version]) && break 1237 done 1238 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 1239 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 1240 am__untar="$_am_tar -xf -" 1241 ;; 1242 plaintar) 1243 # Must skip GNU tar: if it does not support --format= it doesn't create 1244 # ustar tarball either. 1245 (tar --version) >/dev/null 2>&1 && continue 1246 am__tar='tar chf - "$$tardir"' 1247 am__tar_='tar chf - "$tardir"' 1248 am__untar='tar xf -' 1249 ;; 1250 pax) 1251 am__tar='pax -L -x $1 -w "$$tardir"' 1252 am__tar_='pax -L -x $1 -w "$tardir"' 1253 am__untar='pax -r' 1254 ;; 1255 cpio) 1256 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 1257 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 1258 am__untar='cpio -i -H $1 -d' 1259 ;; 1260 none) 1261 am__tar=false 1262 am__tar_=false 1263 am__untar=false 1264 ;; 1265 esac 1266 1267 # If the value was cached, stop now. We just wanted to have am__tar 1268 # and am__untar set. 1269 test -n "${am_cv_prog_tar_$1}" && break 1270 1271 # tar/untar a dummy directory, and stop if the command works. 1272 rm -rf conftest.dir 1273 mkdir conftest.dir 1274 echo GrepMe > conftest.dir/file 1275 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 1276 rm -rf conftest.dir 1277 if test -s conftest.tar; then 1278 AM_RUN_LOG([$am__untar <conftest.tar]) 1279 AM_RUN_LOG([cat conftest.dir/file]) 1280 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 1281 fi 1282 done 1283 rm -rf conftest.dir 1284 1285 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 1286 AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 1287 1288AC_SUBST([am__tar]) 1289AC_SUBST([am__untar]) 1290]) # _AM_PROG_TAR 1291 1292# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 1293# 1294# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 1295# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 1296# Foundation, Inc. 1297# Written by Gordon Matzigkeit, 1996 1298# 1299# This file is free software; the Free Software Foundation gives 1300# unlimited permission to copy and/or distribute it, with or without 1301# modifications, as long as this notice is preserved. 1302 1303m4_define([_LT_COPYING], [dnl 1304# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 1305# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 1306# Foundation, Inc. 1307# Written by Gordon Matzigkeit, 1996 1308# 1309# This file is part of GNU Libtool. 1310# 1311# GNU Libtool is free software; you can redistribute it and/or 1312# modify it under the terms of the GNU General Public License as 1313# published by the Free Software Foundation; either version 2 of 1314# the License, or (at your option) any later version. 1315# 1316# As a special exception to the GNU General Public License, 1317# if you distribute this file as part of a program or library that 1318# is built using GNU Libtool, you may include this file under the 1319# same distribution terms that you use for the rest of that program. 1320# 1321# GNU Libtool is distributed in the hope that it will be useful, 1322# but WITHOUT ANY WARRANTY; without even the implied warranty of 1323# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1324# GNU General Public License for more details. 1325# 1326# You should have received a copy of the GNU General Public License 1327# along with GNU Libtool; see the file COPYING. If not, a copy 1328# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 1329# obtained by writing to the Free Software Foundation, Inc., 1330# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 1331]) 1332 1333# serial 57 LT_INIT 1334 1335 1336# LT_PREREQ(VERSION) 1337# ------------------ 1338# Complain and exit if this libtool version is less that VERSION. 1339m4_defun([LT_PREREQ], 1340[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, 1341 [m4_default([$3], 1342 [m4_fatal([Libtool version $1 or higher is required], 1343 63)])], 1344 [$2])]) 1345 1346 1347# _LT_CHECK_BUILDDIR 1348# ------------------ 1349# Complain if the absolute build directory name contains unusual characters 1350m4_defun([_LT_CHECK_BUILDDIR], 1351[case `pwd` in 1352 *\ * | *\ *) 1353 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; 1354esac 1355]) 1356 1357 1358# LT_INIT([OPTIONS]) 1359# ------------------ 1360AC_DEFUN([LT_INIT], 1361[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT 1362AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 1363AC_BEFORE([$0], [LT_LANG])dnl 1364AC_BEFORE([$0], [LT_OUTPUT])dnl 1365AC_BEFORE([$0], [LTDL_INIT])dnl 1366m4_require([_LT_CHECK_BUILDDIR])dnl 1367 1368dnl Autoconf doesn't catch unexpanded LT_ macros by default: 1369m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl 1370m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl 1371dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 1372dnl unless we require an AC_DEFUNed macro: 1373AC_REQUIRE([LTOPTIONS_VERSION])dnl 1374AC_REQUIRE([LTSUGAR_VERSION])dnl 1375AC_REQUIRE([LTVERSION_VERSION])dnl 1376AC_REQUIRE([LTOBSOLETE_VERSION])dnl 1377m4_require([_LT_PROG_LTMAIN])dnl 1378 1379_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) 1380 1381dnl Parse OPTIONS 1382_LT_SET_OPTIONS([$0], [$1]) 1383 1384# This can be used to rebuild libtool when needed 1385LIBTOOL_DEPS="$ltmain" 1386 1387# Always use our own libtool. 1388LIBTOOL='$(SHELL) $(top_builddir)/libtool' 1389AC_SUBST(LIBTOOL)dnl 1390 1391_LT_SETUP 1392 1393# Only expand once: 1394m4_define([LT_INIT]) 1395])# LT_INIT 1396 1397# Old names: 1398AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) 1399AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) 1400dnl aclocal-1.4 backwards compatibility: 1401dnl AC_DEFUN([AC_PROG_LIBTOOL], []) 1402dnl AC_DEFUN([AM_PROG_LIBTOOL], []) 1403 1404 1405# _LT_CC_BASENAME(CC) 1406# ------------------- 1407# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 1408m4_defun([_LT_CC_BASENAME], 1409[for cc_temp in $1""; do 1410 case $cc_temp in 1411 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 1412 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 1413 \-*) ;; 1414 *) break;; 1415 esac 1416done 1417cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 1418]) 1419 1420 1421# _LT_FILEUTILS_DEFAULTS 1422# ---------------------- 1423# It is okay to use these file commands and assume they have been set 1424# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. 1425m4_defun([_LT_FILEUTILS_DEFAULTS], 1426[: ${CP="cp -f"} 1427: ${MV="mv -f"} 1428: ${RM="rm -f"} 1429])# _LT_FILEUTILS_DEFAULTS 1430 1431 1432# _LT_SETUP 1433# --------- 1434m4_defun([_LT_SETUP], 1435[AC_REQUIRE([AC_CANONICAL_HOST])dnl 1436AC_REQUIRE([AC_CANONICAL_BUILD])dnl 1437AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl 1438AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 1439 1440_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl 1441dnl 1442_LT_DECL([], [host_alias], [0], [The host system])dnl 1443_LT_DECL([], [host], [0])dnl 1444_LT_DECL([], [host_os], [0])dnl 1445dnl 1446_LT_DECL([], [build_alias], [0], [The build system])dnl 1447_LT_DECL([], [build], [0])dnl 1448_LT_DECL([], [build_os], [0])dnl 1449dnl 1450AC_REQUIRE([AC_PROG_CC])dnl 1451AC_REQUIRE([LT_PATH_LD])dnl 1452AC_REQUIRE([LT_PATH_NM])dnl 1453dnl 1454AC_REQUIRE([AC_PROG_LN_S])dnl 1455test -z "$LN_S" && LN_S="ln -s" 1456_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl 1457dnl 1458AC_REQUIRE([LT_CMD_MAX_LEN])dnl 1459_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl 1460_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl 1461dnl 1462m4_require([_LT_FILEUTILS_DEFAULTS])dnl 1463m4_require([_LT_CHECK_SHELL_FEATURES])dnl 1464m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl 1465m4_require([_LT_CMD_RELOAD])dnl 1466m4_require([_LT_CHECK_MAGIC_METHOD])dnl 1467m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl 1468m4_require([_LT_CMD_OLD_ARCHIVE])dnl 1469m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 1470m4_require([_LT_WITH_SYSROOT])dnl 1471 1472_LT_CONFIG_LIBTOOL_INIT([ 1473# See if we are running on zsh, and set the options which allow our 1474# commands through without removal of \ escapes INIT. 1475if test -n "\${ZSH_VERSION+set}" ; then 1476 setopt NO_GLOB_SUBST 1477fi 1478]) 1479if test -n "${ZSH_VERSION+set}" ; then 1480 setopt NO_GLOB_SUBST 1481fi 1482 1483_LT_CHECK_OBJDIR 1484 1485m4_require([_LT_TAG_COMPILER])dnl 1486 1487case $host_os in 1488aix3*) 1489 # AIX sometimes has problems with the GCC collect2 program. For some 1490 # reason, if we set the COLLECT_NAMES environment variable, the problems 1491 # vanish in a puff of smoke. 1492 if test "X${COLLECT_NAMES+set}" != Xset; then 1493 COLLECT_NAMES= 1494 export COLLECT_NAMES 1495 fi 1496 ;; 1497esac 1498 1499# Global variables: 1500ofile=libtool 1501can_build_shared=yes 1502 1503# All known linkers require a `.a' archive for static linking (except MSVC, 1504# which needs '.lib'). 1505libext=a 1506 1507with_gnu_ld="$lt_cv_prog_gnu_ld" 1508 1509old_CC="$CC" 1510old_CFLAGS="$CFLAGS" 1511 1512# Set sane defaults for various variables 1513test -z "$CC" && CC=cc 1514test -z "$LTCC" && LTCC=$CC 1515test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 1516test -z "$LD" && LD=ld 1517test -z "$ac_objext" && ac_objext=o 1518 1519_LT_CC_BASENAME([$compiler]) 1520 1521# Only perform the check for file, if the check method requires it 1522test -z "$MAGIC_CMD" && MAGIC_CMD=file 1523case $deplibs_check_method in 1524file_magic*) 1525 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 1526 _LT_PATH_MAGIC 1527 fi 1528 ;; 1529esac 1530 1531# Use C for the default configuration in the libtool script 1532LT_SUPPORTED_TAG([CC]) 1533_LT_LANG_C_CONFIG 1534_LT_LANG_DEFAULT_CONFIG 1535_LT_CONFIG_COMMANDS 1536])# _LT_SETUP 1537 1538 1539# _LT_PREPARE_SED_QUOTE_VARS 1540# -------------------------- 1541# Define a few sed substitution that help us do robust quoting. 1542m4_defun([_LT_PREPARE_SED_QUOTE_VARS], 1543[# Backslashify metacharacters that are still active within 1544# double-quoted strings. 1545sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' 1546 1547# Same as above, but do not quote variable references. 1548double_quote_subst='s/\([["`\\]]\)/\\\1/g' 1549 1550# Sed substitution to delay expansion of an escaped shell variable in a 1551# double_quote_subst'ed string. 1552delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 1553 1554# Sed substitution to delay expansion of an escaped single quote. 1555delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 1556 1557# Sed substitution to avoid accidental globbing in evaled expressions 1558no_glob_subst='s/\*/\\\*/g' 1559]) 1560 1561# _LT_PROG_LTMAIN 1562# --------------- 1563# Note that this code is called both from `configure', and `config.status' 1564# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 1565# `config.status' has no value for ac_aux_dir unless we are using Automake, 1566# so we pass a copy along to make sure it has a sensible value anyway. 1567m4_defun([_LT_PROG_LTMAIN], 1568[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 1569_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) 1570ltmain="$ac_aux_dir/ltmain.sh" 1571])# _LT_PROG_LTMAIN 1572 1573 1574 1575# So that we can recreate a full libtool script including additional 1576# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 1577# in macros and then make a single call at the end using the `libtool' 1578# label. 1579 1580 1581# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 1582# ---------------------------------------- 1583# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 1584m4_define([_LT_CONFIG_LIBTOOL_INIT], 1585[m4_ifval([$1], 1586 [m4_append([_LT_OUTPUT_LIBTOOL_INIT], 1587 [$1 1588])])]) 1589 1590# Initialize. 1591m4_define([_LT_OUTPUT_LIBTOOL_INIT]) 1592 1593 1594# _LT_CONFIG_LIBTOOL([COMMANDS]) 1595# ------------------------------ 1596# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. 1597m4_define([_LT_CONFIG_LIBTOOL], 1598[m4_ifval([$1], 1599 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], 1600 [$1 1601])])]) 1602 1603# Initialize. 1604m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) 1605 1606 1607# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) 1608# ----------------------------------------------------- 1609m4_defun([_LT_CONFIG_SAVE_COMMANDS], 1610[_LT_CONFIG_LIBTOOL([$1]) 1611_LT_CONFIG_LIBTOOL_INIT([$2]) 1612]) 1613 1614 1615# _LT_FORMAT_COMMENT([COMMENT]) 1616# ----------------------------- 1617# Add leading comment marks to the start of each line, and a trailing 1618# full-stop to the whole comment if one is not present already. 1619m4_define([_LT_FORMAT_COMMENT], 1620[m4_ifval([$1], [ 1621m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], 1622 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) 1623)]) 1624 1625 1626 1627 1628 1629# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) 1630# ------------------------------------------------------------------- 1631# CONFIGNAME is the name given to the value in the libtool script. 1632# VARNAME is the (base) name used in the configure script. 1633# VALUE may be 0, 1 or 2 for a computed quote escaped value based on 1634# VARNAME. Any other value will be used directly. 1635m4_define([_LT_DECL], 1636[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], 1637 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], 1638 [m4_ifval([$1], [$1], [$2])]) 1639 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) 1640 m4_ifval([$4], 1641 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) 1642 lt_dict_add_subkey([lt_decl_dict], [$2], 1643 [tagged?], [m4_ifval([$5], [yes], [no])])]) 1644]) 1645 1646 1647# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) 1648# -------------------------------------------------------- 1649m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) 1650 1651 1652# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) 1653# ------------------------------------------------ 1654m4_define([lt_decl_tag_varnames], 1655[_lt_decl_filter([tagged?], [yes], $@)]) 1656 1657 1658# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) 1659# --------------------------------------------------------- 1660m4_define([_lt_decl_filter], 1661[m4_case([$#], 1662 [0], [m4_fatal([$0: too few arguments: $#])], 1663 [1], [m4_fatal([$0: too few arguments: $#: $1])], 1664 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], 1665 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], 1666 [lt_dict_filter([lt_decl_dict], $@)])[]dnl 1667]) 1668 1669 1670# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) 1671# -------------------------------------------------- 1672m4_define([lt_decl_quote_varnames], 1673[_lt_decl_filter([value], [1], $@)]) 1674 1675 1676# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) 1677# --------------------------------------------------- 1678m4_define([lt_decl_dquote_varnames], 1679[_lt_decl_filter([value], [2], $@)]) 1680 1681 1682# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) 1683# --------------------------------------------------- 1684m4_define([lt_decl_varnames_tagged], 1685[m4_assert([$# <= 2])dnl 1686_$0(m4_quote(m4_default([$1], [[, ]])), 1687 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), 1688 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) 1689m4_define([_lt_decl_varnames_tagged], 1690[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) 1691 1692 1693# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) 1694# ------------------------------------------------ 1695m4_define([lt_decl_all_varnames], 1696[_$0(m4_quote(m4_default([$1], [[, ]])), 1697 m4_if([$2], [], 1698 m4_quote(lt_decl_varnames), 1699 m4_quote(m4_shift($@))))[]dnl 1700]) 1701m4_define([_lt_decl_all_varnames], 1702[lt_join($@, lt_decl_varnames_tagged([$1], 1703 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl 1704]) 1705 1706 1707# _LT_CONFIG_STATUS_DECLARE([VARNAME]) 1708# ------------------------------------ 1709# Quote a variable value, and forward it to `config.status' so that its 1710# declaration there will have the same value as in `configure'. VARNAME 1711# must have a single quote delimited value for this to work. 1712m4_define([_LT_CONFIG_STATUS_DECLARE], 1713[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) 1714 1715 1716# _LT_CONFIG_STATUS_DECLARATIONS 1717# ------------------------------ 1718# We delimit libtool config variables with single quotes, so when 1719# we write them to config.status, we have to be sure to quote all 1720# embedded single quotes properly. In configure, this macro expands 1721# each variable declared with _LT_DECL (and _LT_TAGDECL) into: 1722# 1723# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' 1724m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], 1725[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), 1726 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) 1727 1728 1729# _LT_LIBTOOL_TAGS 1730# ---------------- 1731# Output comment and list of tags supported by the script 1732m4_defun([_LT_LIBTOOL_TAGS], 1733[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl 1734available_tags="_LT_TAGS"dnl 1735]) 1736 1737 1738# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 1739# ----------------------------------- 1740# Extract the dictionary values for VARNAME (optionally with TAG) and 1741# expand to a commented shell variable setting: 1742# 1743# # Some comment about what VAR is for. 1744# visible_name=$lt_internal_name 1745m4_define([_LT_LIBTOOL_DECLARE], 1746[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], 1747 [description])))[]dnl 1748m4_pushdef([_libtool_name], 1749 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl 1750m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), 1751 [0], [_libtool_name=[$]$1], 1752 [1], [_libtool_name=$lt_[]$1], 1753 [2], [_libtool_name=$lt_[]$1], 1754 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl 1755m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl 1756]) 1757 1758 1759# _LT_LIBTOOL_CONFIG_VARS 1760# ----------------------- 1761# Produce commented declarations of non-tagged libtool config variables 1762# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' 1763# script. Tagged libtool config variables (even for the LIBTOOL CONFIG 1764# section) are produced by _LT_LIBTOOL_TAG_VARS. 1765m4_defun([_LT_LIBTOOL_CONFIG_VARS], 1766[m4_foreach([_lt_var], 1767 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), 1768 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) 1769 1770 1771# _LT_LIBTOOL_TAG_VARS(TAG) 1772# ------------------------- 1773m4_define([_LT_LIBTOOL_TAG_VARS], 1774[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), 1775 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) 1776 1777 1778# _LT_TAGVAR(VARNAME, [TAGNAME]) 1779# ------------------------------ 1780m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) 1781 1782 1783# _LT_CONFIG_COMMANDS 1784# ------------------- 1785# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 1786# variables for single and double quote escaping we saved from calls 1787# to _LT_DECL, we can put quote escaped variables declarations 1788# into `config.status', and then the shell code to quote escape them in 1789# for loops in `config.status'. Finally, any additional code accumulated 1790# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 1791m4_defun([_LT_CONFIG_COMMANDS], 1792[AC_PROVIDE_IFELSE([LT_OUTPUT], 1793 dnl If the libtool generation code has been placed in $CONFIG_LT, 1794 dnl instead of duplicating it all over again into config.status, 1795 dnl then we will have config.status run $CONFIG_LT later, so it 1796 dnl needs to know what name is stored there: 1797 [AC_CONFIG_COMMANDS([libtool], 1798 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], 1799 dnl If the libtool generation code is destined for config.status, 1800 dnl expand the accumulated commands and init code now: 1801 [AC_CONFIG_COMMANDS([libtool], 1802 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) 1803])#_LT_CONFIG_COMMANDS 1804 1805 1806# Initialize. 1807m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], 1808[ 1809 1810# The HP-UX ksh and POSIX shell print the target directory to stdout 1811# if CDPATH is set. 1812(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 1813 1814sed_quote_subst='$sed_quote_subst' 1815double_quote_subst='$double_quote_subst' 1816delay_variable_subst='$delay_variable_subst' 1817_LT_CONFIG_STATUS_DECLARATIONS 1818LTCC='$LTCC' 1819LTCFLAGS='$LTCFLAGS' 1820compiler='$compiler_DEFAULT' 1821 1822# A function that is used when there is no print builtin or printf. 1823func_fallback_echo () 1824{ 1825 eval 'cat <<_LTECHO_EOF 1826\$[]1 1827_LTECHO_EOF' 1828} 1829 1830# Quote evaled strings. 1831for var in lt_decl_all_varnames([[ \ 1832]], lt_decl_quote_varnames); do 1833 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 1834 *[[\\\\\\\`\\"\\\$]]*) 1835 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 1836 ;; 1837 *) 1838 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 1839 ;; 1840 esac 1841done 1842 1843# Double-quote double-evaled strings. 1844for var in lt_decl_all_varnames([[ \ 1845]], lt_decl_dquote_varnames); do 1846 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 1847 *[[\\\\\\\`\\"\\\$]]*) 1848 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 1849 ;; 1850 *) 1851 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 1852 ;; 1853 esac 1854done 1855 1856_LT_OUTPUT_LIBTOOL_INIT 1857]) 1858 1859# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) 1860# ------------------------------------ 1861# Generate a child script FILE with all initialization necessary to 1862# reuse the environment learned by the parent script, and make the 1863# file executable. If COMMENT is supplied, it is inserted after the 1864# `#!' sequence but before initialization text begins. After this 1865# macro, additional text can be appended to FILE to form the body of 1866# the child script. The macro ends with non-zero status if the 1867# file could not be fully written (such as if the disk is full). 1868m4_ifdef([AS_INIT_GENERATED], 1869[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], 1870[m4_defun([_LT_GENERATED_FILE_INIT], 1871[m4_require([AS_PREPARE])]dnl 1872[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl 1873[lt_write_fail=0 1874cat >$1 <<_ASEOF || lt_write_fail=1 1875#! $SHELL 1876# Generated by $as_me. 1877$2 1878SHELL=\${CONFIG_SHELL-$SHELL} 1879export SHELL 1880_ASEOF 1881cat >>$1 <<\_ASEOF || lt_write_fail=1 1882AS_SHELL_SANITIZE 1883_AS_PREPARE 1884exec AS_MESSAGE_FD>&1 1885_ASEOF 1886test $lt_write_fail = 0 && chmod +x $1[]dnl 1887m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT 1888 1889# LT_OUTPUT 1890# --------- 1891# This macro allows early generation of the libtool script (before 1892# AC_OUTPUT is called), incase it is used in configure for compilation 1893# tests. 1894AC_DEFUN([LT_OUTPUT], 1895[: ${CONFIG_LT=./config.lt} 1896AC_MSG_NOTICE([creating $CONFIG_LT]) 1897_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], 1898[# Run this file to recreate a libtool stub with the current configuration.]) 1899 1900cat >>"$CONFIG_LT" <<\_LTEOF 1901lt_cl_silent=false 1902exec AS_MESSAGE_LOG_FD>>config.log 1903{ 1904 echo 1905 AS_BOX([Running $as_me.]) 1906} >&AS_MESSAGE_LOG_FD 1907 1908lt_cl_help="\ 1909\`$as_me' creates a local libtool stub from the current configuration, 1910for use in further configure time tests before the real libtool is 1911generated. 1912 1913Usage: $[0] [[OPTIONS]] 1914 1915 -h, --help print this help, then exit 1916 -V, --version print version number, then exit 1917 -q, --quiet do not print progress messages 1918 -d, --debug don't remove temporary files 1919 1920Report bugs to <bug-libtool@gnu.org>." 1921 1922lt_cl_version="\ 1923m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl 1924m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) 1925configured by $[0], generated by m4_PACKAGE_STRING. 1926 1927Copyright (C) 2011 Free Software Foundation, Inc. 1928This config.lt script is free software; the Free Software Foundation 1929gives unlimited permision to copy, distribute and modify it." 1930 1931while test $[#] != 0 1932do 1933 case $[1] in 1934 --version | --v* | -V ) 1935 echo "$lt_cl_version"; exit 0 ;; 1936 --help | --h* | -h ) 1937 echo "$lt_cl_help"; exit 0 ;; 1938 --debug | --d* | -d ) 1939 debug=: ;; 1940 --quiet | --q* | --silent | --s* | -q ) 1941 lt_cl_silent=: ;; 1942 1943 -*) AC_MSG_ERROR([unrecognized option: $[1] 1944Try \`$[0] --help' for more information.]) ;; 1945 1946 *) AC_MSG_ERROR([unrecognized argument: $[1] 1947Try \`$[0] --help' for more information.]) ;; 1948 esac 1949 shift 1950done 1951 1952if $lt_cl_silent; then 1953 exec AS_MESSAGE_FD>/dev/null 1954fi 1955_LTEOF 1956 1957cat >>"$CONFIG_LT" <<_LTEOF 1958_LT_OUTPUT_LIBTOOL_COMMANDS_INIT 1959_LTEOF 1960 1961cat >>"$CONFIG_LT" <<\_LTEOF 1962AC_MSG_NOTICE([creating $ofile]) 1963_LT_OUTPUT_LIBTOOL_COMMANDS 1964AS_EXIT(0) 1965_LTEOF 1966chmod +x "$CONFIG_LT" 1967 1968# configure is writing to config.log, but config.lt does its own redirection, 1969# appending to config.log, which fails on DOS, as config.log is still kept 1970# open by configure. Here we exec the FD to /dev/null, effectively closing 1971# config.log, so it can be properly (re)opened and appended to by config.lt. 1972lt_cl_success=: 1973test "$silent" = yes && 1974 lt_config_lt_args="$lt_config_lt_args --quiet" 1975exec AS_MESSAGE_LOG_FD>/dev/null 1976$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 1977exec AS_MESSAGE_LOG_FD>>config.log 1978$lt_cl_success || AS_EXIT(1) 1979])# LT_OUTPUT 1980 1981 1982# _LT_CONFIG(TAG) 1983# --------------- 1984# If TAG is the built-in tag, create an initial libtool script with a 1985# default configuration from the untagged config vars. Otherwise add code 1986# to config.status for appending the configuration named by TAG from the 1987# matching tagged config vars. 1988m4_defun([_LT_CONFIG], 1989[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 1990_LT_CONFIG_SAVE_COMMANDS([ 1991 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 1992 m4_if(_LT_TAG, [C], [ 1993 # See if we are running on zsh, and set the options which allow our 1994 # commands through without removal of \ escapes. 1995 if test -n "${ZSH_VERSION+set}" ; then 1996 setopt NO_GLOB_SUBST 1997 fi 1998 1999 cfgfile="${ofile}T" 2000 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 2001 $RM "$cfgfile" 2002 2003 cat <<_LT_EOF >> "$cfgfile" 2004#! $SHELL 2005 2006# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 2007# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 2008# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 2009# NOTE: Changes made to this file will be lost: look at ltmain.sh. 2010# 2011_LT_COPYING 2012_LT_LIBTOOL_TAGS 2013 2014# ### BEGIN LIBTOOL CONFIG 2015_LT_LIBTOOL_CONFIG_VARS 2016_LT_LIBTOOL_TAG_VARS 2017# ### END LIBTOOL CONFIG 2018 2019_LT_EOF 2020 2021 case $host_os in 2022 aix3*) 2023 cat <<\_LT_EOF >> "$cfgfile" 2024# AIX sometimes has problems with the GCC collect2 program. For some 2025# reason, if we set the COLLECT_NAMES environment variable, the problems 2026# vanish in a puff of smoke. 2027if test "X${COLLECT_NAMES+set}" != Xset; then 2028 COLLECT_NAMES= 2029 export COLLECT_NAMES 2030fi 2031_LT_EOF 2032 ;; 2033 esac 2034 2035 _LT_PROG_LTMAIN 2036 2037 # We use sed instead of cat because bash on DJGPP gets confused if 2038 # if finds mixed CR/LF and LF-only lines. Since sed operates in 2039 # text mode, it properly converts lines to CR/LF. This bash problem 2040 # is reportedly fixed, but why not run on old versions too? 2041 sed '$q' "$ltmain" >> "$cfgfile" \ 2042 || (rm -f "$cfgfile"; exit 1) 2043 2044 _LT_PROG_REPLACE_SHELLFNS 2045 2046 mv -f "$cfgfile" "$ofile" || 2047 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 2048 chmod +x "$ofile" 2049], 2050[cat <<_LT_EOF >> "$ofile" 2051 2052dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded 2053dnl in a comment (ie after a #). 2054# ### BEGIN LIBTOOL TAG CONFIG: $1 2055_LT_LIBTOOL_TAG_VARS(_LT_TAG) 2056# ### END LIBTOOL TAG CONFIG: $1 2057_LT_EOF 2058])dnl /m4_if 2059], 2060[m4_if([$1], [], [ 2061 PACKAGE='$PACKAGE' 2062 VERSION='$VERSION' 2063 TIMESTAMP='$TIMESTAMP' 2064 RM='$RM' 2065 ofile='$ofile'], []) 2066])dnl /_LT_CONFIG_SAVE_COMMANDS 2067])# _LT_CONFIG 2068 2069 2070# LT_SUPPORTED_TAG(TAG) 2071# --------------------- 2072# Trace this macro to discover what tags are supported by the libtool 2073# --tag option, using: 2074# autoconf --trace 'LT_SUPPORTED_TAG:$1' 2075AC_DEFUN([LT_SUPPORTED_TAG], []) 2076 2077 2078# C support is built-in for now 2079m4_define([_LT_LANG_C_enabled], []) 2080m4_define([_LT_TAGS], []) 2081 2082 2083# LT_LANG(LANG) 2084# ------------- 2085# Enable libtool support for the given language if not already enabled. 2086AC_DEFUN([LT_LANG], 2087[AC_BEFORE([$0], [LT_OUTPUT])dnl 2088m4_case([$1], 2089 [C], [_LT_LANG(C)], 2090 [C++], [_LT_LANG(CXX)], 2091 [Go], [_LT_LANG(GO)], 2092 [Java], [_LT_LANG(GCJ)], 2093 [Fortran 77], [_LT_LANG(F77)], 2094 [Fortran], [_LT_LANG(FC)], 2095 [Windows Resource], [_LT_LANG(RC)], 2096 [m4_ifdef([_LT_LANG_]$1[_CONFIG], 2097 [_LT_LANG($1)], 2098 [m4_fatal([$0: unsupported language: "$1"])])])dnl 2099])# LT_LANG 2100 2101 2102# _LT_LANG(LANGNAME) 2103# ------------------ 2104m4_defun([_LT_LANG], 2105[m4_ifdef([_LT_LANG_]$1[_enabled], [], 2106 [LT_SUPPORTED_TAG([$1])dnl 2107 m4_append([_LT_TAGS], [$1 ])dnl 2108 m4_define([_LT_LANG_]$1[_enabled], [])dnl 2109 _LT_LANG_$1_CONFIG($1)])dnl 2110])# _LT_LANG 2111 2112 2113m4_ifndef([AC_PROG_GO], [ 2114# NOTE: This macro has been submitted for inclusion into # 2115# GNU Autoconf as AC_PROG_GO. When it is available in # 2116# a released version of Autoconf we should remove this # 2117# macro and use it instead. # 2118m4_defun([AC_PROG_GO], 2119[AC_LANG_PUSH(Go)dnl 2120AC_ARG_VAR([GOC], [Go compiler command])dnl 2121AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl 2122_AC_ARG_VAR_LDFLAGS()dnl 2123AC_CHECK_TOOL(GOC, gccgo) 2124if test -z "$GOC"; then 2125 if test -n "$ac_tool_prefix"; then 2126 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) 2127 fi 2128fi 2129if test -z "$GOC"; then 2130 AC_CHECK_PROG(GOC, gccgo, gccgo, false) 2131fi 2132])#m4_defun 2133])#m4_ifndef 2134 2135 2136# _LT_LANG_DEFAULT_CONFIG 2137# ----------------------- 2138m4_defun([_LT_LANG_DEFAULT_CONFIG], 2139[AC_PROVIDE_IFELSE([AC_PROG_CXX], 2140 [LT_LANG(CXX)], 2141 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) 2142 2143AC_PROVIDE_IFELSE([AC_PROG_F77], 2144 [LT_LANG(F77)], 2145 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) 2146 2147AC_PROVIDE_IFELSE([AC_PROG_FC], 2148 [LT_LANG(FC)], 2149 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) 2150 2151dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal 2152dnl pulling things in needlessly. 2153AC_PROVIDE_IFELSE([AC_PROG_GCJ], 2154 [LT_LANG(GCJ)], 2155 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 2156 [LT_LANG(GCJ)], 2157 [AC_PROVIDE_IFELSE([LT_PROG_GCJ], 2158 [LT_LANG(GCJ)], 2159 [m4_ifdef([AC_PROG_GCJ], 2160 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) 2161 m4_ifdef([A][M_PROG_GCJ], 2162 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) 2163 m4_ifdef([LT_PROG_GCJ], 2164 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) 2165 2166AC_PROVIDE_IFELSE([AC_PROG_GO], 2167 [LT_LANG(GO)], 2168 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) 2169 2170AC_PROVIDE_IFELSE([LT_PROG_RC], 2171 [LT_LANG(RC)], 2172 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) 2173])# _LT_LANG_DEFAULT_CONFIG 2174 2175# Obsolete macros: 2176AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) 2177AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) 2178AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) 2179AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) 2180AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) 2181dnl aclocal-1.4 backwards compatibility: 2182dnl AC_DEFUN([AC_LIBTOOL_CXX], []) 2183dnl AC_DEFUN([AC_LIBTOOL_F77], []) 2184dnl AC_DEFUN([AC_LIBTOOL_FC], []) 2185dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) 2186dnl AC_DEFUN([AC_LIBTOOL_RC], []) 2187 2188 2189# _LT_TAG_COMPILER 2190# ---------------- 2191m4_defun([_LT_TAG_COMPILER], 2192[AC_REQUIRE([AC_PROG_CC])dnl 2193 2194_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl 2195_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl 2196_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl 2197_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl 2198 2199# If no C compiler was specified, use CC. 2200LTCC=${LTCC-"$CC"} 2201 2202# If no C compiler flags were specified, use CFLAGS. 2203LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 2204 2205# Allow CC to be a program name with arguments. 2206compiler=$CC 2207])# _LT_TAG_COMPILER 2208 2209 2210# _LT_COMPILER_BOILERPLATE 2211# ------------------------ 2212# Check for compiler boilerplate output or warnings with 2213# the simple compiler test code. 2214m4_defun([_LT_COMPILER_BOILERPLATE], 2215[m4_require([_LT_DECL_SED])dnl 2216ac_outfile=conftest.$ac_objext 2217echo "$lt_simple_compile_test_code" >conftest.$ac_ext 2218eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 2219_lt_compiler_boilerplate=`cat conftest.err` 2220$RM conftest* 2221])# _LT_COMPILER_BOILERPLATE 2222 2223 2224# _LT_LINKER_BOILERPLATE 2225# ---------------------- 2226# Check for linker boilerplate output or warnings with 2227# the simple link test code. 2228m4_defun([_LT_LINKER_BOILERPLATE], 2229[m4_require([_LT_DECL_SED])dnl 2230ac_outfile=conftest.$ac_objext 2231echo "$lt_simple_link_test_code" >conftest.$ac_ext 2232eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 2233_lt_linker_boilerplate=`cat conftest.err` 2234$RM -r conftest* 2235])# _LT_LINKER_BOILERPLATE 2236 2237# _LT_REQUIRED_DARWIN_CHECKS 2238# ------------------------- 2239m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ 2240 case $host_os in 2241 rhapsody* | darwin*) 2242 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) 2243 AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 2244 AC_CHECK_TOOL([LIPO], [lipo], [:]) 2245 AC_CHECK_TOOL([OTOOL], [otool], [:]) 2246 AC_CHECK_TOOL([OTOOL64], [otool64], [:]) 2247 _LT_DECL([], [DSYMUTIL], [1], 2248 [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) 2249 _LT_DECL([], [NMEDIT], [1], 2250 [Tool to change global to local symbols on Mac OS X]) 2251 _LT_DECL([], [LIPO], [1], 2252 [Tool to manipulate fat objects and archives on Mac OS X]) 2253 _LT_DECL([], [OTOOL], [1], 2254 [ldd/readelf like tool for Mach-O binaries on Mac OS X]) 2255 _LT_DECL([], [OTOOL64], [1], 2256 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) 2257 2258 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 2259 [lt_cv_apple_cc_single_mod=no 2260 if test -z "${LT_MULTI_MODULE}"; then 2261 # By default we will add the -single_module flag. You can override 2262 # by either setting the environment variable LT_MULTI_MODULE 2263 # non-empty at configure time, or by adding -multi_module to the 2264 # link flags. 2265 rm -rf libconftest.dylib* 2266 echo "int foo(void){return 1;}" > conftest.c 2267 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 2268-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD 2269 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 2270 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 2271 _lt_result=$? 2272 # If there is a non-empty error log, and "single_module" 2273 # appears in it, assume the flag caused a linker warning 2274 if test -s conftest.err && $GREP single_module conftest.err; then 2275 cat conftest.err >&AS_MESSAGE_LOG_FD 2276 # Otherwise, if the output was created with a 0 exit code from 2277 # the compiler, it worked. 2278 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 2279 lt_cv_apple_cc_single_mod=yes 2280 else 2281 cat conftest.err >&AS_MESSAGE_LOG_FD 2282 fi 2283 rm -rf libconftest.dylib* 2284 rm -f conftest.* 2285 fi]) 2286 2287 AC_CACHE_CHECK([for -exported_symbols_list linker flag], 2288 [lt_cv_ld_exported_symbols_list], 2289 [lt_cv_ld_exported_symbols_list=no 2290 save_LDFLAGS=$LDFLAGS 2291 echo "_main" > conftest.sym 2292 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 2293 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 2294 [lt_cv_ld_exported_symbols_list=yes], 2295 [lt_cv_ld_exported_symbols_list=no]) 2296 LDFLAGS="$save_LDFLAGS" 2297 ]) 2298 2299 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], 2300 [lt_cv_ld_force_load=no 2301 cat > conftest.c << _LT_EOF 2302int forced_loaded() { return 2;} 2303_LT_EOF 2304 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD 2305 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD 2306 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD 2307 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD 2308 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD 2309 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD 2310 cat > conftest.c << _LT_EOF 2311int main() { return 0;} 2312_LT_EOF 2313 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD 2314 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 2315 _lt_result=$? 2316 if test -s conftest.err && $GREP force_load conftest.err; then 2317 cat conftest.err >&AS_MESSAGE_LOG_FD 2318 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 2319 lt_cv_ld_force_load=yes 2320 else 2321 cat conftest.err >&AS_MESSAGE_LOG_FD 2322 fi 2323 rm -f conftest.err libconftest.a conftest conftest.c 2324 rm -rf conftest.dSYM 2325 ]) 2326 case $host_os in 2327 rhapsody* | darwin1.[[012]]) 2328 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 2329 darwin1.*) 2330 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 2331 darwin*) # darwin 5.x on 2332 # if running on 10.5 or later, the deployment target defaults 2333 # to the OS version, if on x86, and 10.4, the deployment 2334 # target defaults to 10.4. Don't you love it? 2335 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 2336 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 2337 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 2338 10.[[012]]*) 2339 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 2340 10.*) 2341 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 2342 esac 2343 ;; 2344 esac 2345 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 2346 _lt_dar_single_mod='$single_module' 2347 fi 2348 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 2349 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 2350 else 2351 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 2352 fi 2353 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 2354 _lt_dsymutil='~$DSYMUTIL $lib || :' 2355 else 2356 _lt_dsymutil= 2357 fi 2358 ;; 2359 esac 2360]) 2361 2362 2363# _LT_DARWIN_LINKER_FEATURES([TAG]) 2364# --------------------------------- 2365# Checks for linker and compiler features on darwin 2366m4_defun([_LT_DARWIN_LINKER_FEATURES], 2367[ 2368 m4_require([_LT_REQUIRED_DARWIN_CHECKS]) 2369 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 2370 _LT_TAGVAR(hardcode_direct, $1)=no 2371 _LT_TAGVAR(hardcode_automatic, $1)=yes 2372 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 2373 if test "$lt_cv_ld_force_load" = "yes"; then 2374 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 2375 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], 2376 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) 2377 else 2378 _LT_TAGVAR(whole_archive_flag_spec, $1)='' 2379 fi 2380 _LT_TAGVAR(link_all_deplibs, $1)=yes 2381 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" 2382 case $cc_basename in 2383 ifort*) _lt_dar_can_shared=yes ;; 2384 *) _lt_dar_can_shared=$GCC ;; 2385 esac 2386 if test "$_lt_dar_can_shared" = "yes"; then 2387 output_verbose_link_cmd=func_echo_all 2388 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 2389 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 2390 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 2391 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 2392 m4_if([$1], [CXX], 2393[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then 2394 _LT_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${_lt_dsymutil}" 2395 _LT_TAGVAR(archive_expsym_cmds, $1)="sed '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${_lt_dar_export_syms}${_lt_dsymutil}" 2396 fi 2397],[]) 2398 else 2399 _LT_TAGVAR(ld_shlibs, $1)=no 2400 fi 2401]) 2402 2403# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) 2404# ---------------------------------- 2405# Links a minimal program and checks the executable 2406# for the system default hardcoded library path. In most cases, 2407# this is /usr/lib:/lib, but when the MPI compilers are used 2408# the location of the communication and MPI libs are included too. 2409# If we don't find anything, use the default library path according 2410# to the aix ld manual. 2411# Store the results from the different compilers for each TAGNAME. 2412# Allow to override them for all tags through lt_cv_aix_libpath. 2413m4_defun([_LT_SYS_MODULE_PATH_AIX], 2414[m4_require([_LT_DECL_SED])dnl 2415if test "${lt_cv_aix_libpath+set}" = set; then 2416 aix_libpath=$lt_cv_aix_libpath 2417else 2418 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], 2419 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ 2420 lt_aix_libpath_sed='[ 2421 /Import File Strings/,/^$/ { 2422 /^0/ { 2423 s/^0 *\([^ ]*\) *$/\1/ 2424 p 2425 } 2426 }]' 2427 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 2428 # Check for a 64-bit object if we didn't find anything. 2429 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 2430 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 2431 fi],[]) 2432 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 2433 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" 2434 fi 2435 ]) 2436 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) 2437fi 2438])# _LT_SYS_MODULE_PATH_AIX 2439 2440 2441# _LT_SHELL_INIT(ARG) 2442# ------------------- 2443m4_define([_LT_SHELL_INIT], 2444[m4_divert_text([M4SH-INIT], [$1 2445])])# _LT_SHELL_INIT 2446 2447 2448 2449# _LT_PROG_ECHO_BACKSLASH 2450# ----------------------- 2451# Find how we can fake an echo command that does not interpret backslash. 2452# In particular, with Autoconf 2.60 or later we add some code to the start 2453# of the generated configure script which will find a shell with a builtin 2454# printf (which we can use as an echo command). 2455m4_defun([_LT_PROG_ECHO_BACKSLASH], 2456[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2457ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2458ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2459 2460AC_MSG_CHECKING([how to print strings]) 2461# Test print first, because it will be a builtin if present. 2462if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2463 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2464 ECHO='print -r --' 2465elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2466 ECHO='printf %s\n' 2467else 2468 # Use this function as a fallback that always works. 2469 func_fallback_echo () 2470 { 2471 eval 'cat <<_LTECHO_EOF 2472$[]1 2473_LTECHO_EOF' 2474 } 2475 ECHO='func_fallback_echo' 2476fi 2477 2478# func_echo_all arg... 2479# Invoke $ECHO with all args, space-separated. 2480func_echo_all () 2481{ 2482 $ECHO "$*" 2483} 2484 2485case "$ECHO" in 2486 printf*) AC_MSG_RESULT([printf]) ;; 2487 print*) AC_MSG_RESULT([print -r]) ;; 2488 *) AC_MSG_RESULT([cat]) ;; 2489esac 2490 2491m4_ifdef([_AS_DETECT_SUGGESTED], 2492[_AS_DETECT_SUGGESTED([ 2493 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( 2494 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2495 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2496 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2497 PATH=/empty FPATH=/empty; export PATH FPATH 2498 test "X`printf %s $ECHO`" = "X$ECHO" \ 2499 || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) 2500 2501_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) 2502_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) 2503])# _LT_PROG_ECHO_BACKSLASH 2504 2505 2506# _LT_WITH_SYSROOT 2507# ---------------- 2508AC_DEFUN([_LT_WITH_SYSROOT], 2509[AC_MSG_CHECKING([for sysroot]) 2510AC_ARG_WITH([sysroot], 2511[ --with-sysroot[=DIR] Search for dependent libraries within DIR 2512 (or the compiler's sysroot if not specified).], 2513[], [with_sysroot=no]) 2514 2515dnl lt_sysroot will always be passed unquoted. We quote it here 2516dnl in case the user passed a directory name. 2517lt_sysroot= 2518case ${with_sysroot} in #( 2519 yes) 2520 if test "$GCC" = yes; then 2521 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 2522 fi 2523 ;; #( 2524 /*) 2525 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 2526 ;; #( 2527 no|'') 2528 ;; #( 2529 *) 2530 AC_MSG_RESULT([${with_sysroot}]) 2531 AC_MSG_ERROR([The sysroot must be an absolute path.]) 2532 ;; 2533esac 2534 2535 AC_MSG_RESULT([${lt_sysroot:-no}]) 2536_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl 2537[dependent libraries, and in which our libraries should be installed.])]) 2538 2539# _LT_ENABLE_LOCK 2540# --------------- 2541m4_defun([_LT_ENABLE_LOCK], 2542[AC_ARG_ENABLE([libtool-lock], 2543 [AS_HELP_STRING([--disable-libtool-lock], 2544 [avoid locking (might break parallel builds)])]) 2545test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 2546 2547# Some flags need to be propagated to the compiler or linker for good 2548# libtool support. 2549case $host in 2550ia64-*-hpux*) 2551 # Find out which ABI we are using. 2552 echo 'int i;' > conftest.$ac_ext 2553 if AC_TRY_EVAL(ac_compile); then 2554 case `/usr/bin/file conftest.$ac_objext` in 2555 *ELF-32*) 2556 HPUX_IA64_MODE="32" 2557 ;; 2558 *ELF-64*) 2559 HPUX_IA64_MODE="64" 2560 ;; 2561 esac 2562 fi 2563 rm -rf conftest* 2564 ;; 2565*-*-irix6*) 2566 # Find out which ABI we are using. 2567 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 2568 if AC_TRY_EVAL(ac_compile); then 2569 if test "$lt_cv_prog_gnu_ld" = yes; then 2570 case `/usr/bin/file conftest.$ac_objext` in 2571 *32-bit*) 2572 LD="${LD-ld} -melf32bsmip" 2573 ;; 2574 *N32*) 2575 LD="${LD-ld} -melf32bmipn32" 2576 ;; 2577 *64-bit*) 2578 LD="${LD-ld} -melf64bmip" 2579 ;; 2580 esac 2581 else 2582 case `/usr/bin/file conftest.$ac_objext` in 2583 *32-bit*) 2584 LD="${LD-ld} -32" 2585 ;; 2586 *N32*) 2587 LD="${LD-ld} -n32" 2588 ;; 2589 *64-bit*) 2590 LD="${LD-ld} -64" 2591 ;; 2592 esac 2593 fi 2594 fi 2595 rm -rf conftest* 2596 ;; 2597 2598x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 2599s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 2600 # Find out which ABI we are using. 2601 echo 'int i;' > conftest.$ac_ext 2602 if AC_TRY_EVAL(ac_compile); then 2603 case `/usr/bin/file conftest.o` in 2604 *32-bit*) 2605 case $host in 2606 x86_64-*kfreebsd*-gnu) 2607 LD="${LD-ld} -m elf_i386_fbsd" 2608 ;; 2609 x86_64-*linux*) 2610 LD="${LD-ld} -m elf_i386" 2611 ;; 2612 ppc64-*linux*|powerpc64-*linux*) 2613 LD="${LD-ld} -m elf32ppclinux" 2614 ;; 2615 s390x-*linux*) 2616 LD="${LD-ld} -m elf_s390" 2617 ;; 2618 sparc64-*linux*) 2619 LD="${LD-ld} -m elf32_sparc" 2620 ;; 2621 esac 2622 ;; 2623 *64-bit*) 2624 case $host in 2625 x86_64-*kfreebsd*-gnu) 2626 LD="${LD-ld} -m elf_x86_64_fbsd" 2627 ;; 2628 x86_64-*linux*) 2629 LD="${LD-ld} -m elf_x86_64" 2630 ;; 2631 ppc*-*linux*|powerpc*-*linux*) 2632 LD="${LD-ld} -m elf64ppc" 2633 ;; 2634 s390*-*linux*|s390*-*tpf*) 2635 LD="${LD-ld} -m elf64_s390" 2636 ;; 2637 sparc*-*linux*) 2638 LD="${LD-ld} -m elf64_sparc" 2639 ;; 2640 esac 2641 ;; 2642 esac 2643 fi 2644 rm -rf conftest* 2645 ;; 2646 2647*-*-sco3.2v5*) 2648 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 2649 SAVE_CFLAGS="$CFLAGS" 2650 CFLAGS="$CFLAGS -belf" 2651 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 2652 [AC_LANG_PUSH(C) 2653 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 2654 AC_LANG_POP]) 2655 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 2656 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 2657 CFLAGS="$SAVE_CFLAGS" 2658 fi 2659 ;; 2660*-*solaris*) 2661 # Find out which ABI we are using. 2662 echo 'int i;' > conftest.$ac_ext 2663 if AC_TRY_EVAL(ac_compile); then 2664 case `/usr/bin/file conftest.o` in 2665 *64-bit*) 2666 case $lt_cv_prog_gnu_ld in 2667 yes*) 2668 case $host in 2669 i?86-*-solaris*) 2670 LD="${LD-ld} -m elf_x86_64" 2671 ;; 2672 sparc*-*-solaris*) 2673 LD="${LD-ld} -m elf64_sparc" 2674 ;; 2675 esac 2676 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 2677 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 2678 LD="${LD-ld}_sol2" 2679 fi 2680 ;; 2681 *) 2682 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 2683 LD="${LD-ld} -64" 2684 fi 2685 ;; 2686 esac 2687 ;; 2688 esac 2689 fi 2690 rm -rf conftest* 2691 ;; 2692esac 2693 2694need_locks="$enable_libtool_lock" 2695])# _LT_ENABLE_LOCK 2696 2697 2698# _LT_PROG_AR 2699# ----------- 2700m4_defun([_LT_PROG_AR], 2701[AC_CHECK_TOOLS(AR, [ar], false) 2702: ${AR=ar} 2703: ${AR_FLAGS=cru} 2704_LT_DECL([], [AR], [1], [The archiver]) 2705_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) 2706 2707AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], 2708 [lt_cv_ar_at_file=no 2709 AC_COMPILE_IFELSE([AC_LANG_PROGRAM], 2710 [echo conftest.$ac_objext > conftest.lst 2711 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' 2712 AC_TRY_EVAL([lt_ar_try]) 2713 if test "$ac_status" -eq 0; then 2714 # Ensure the archiver fails upon bogus file names. 2715 rm -f conftest.$ac_objext libconftest.a 2716 AC_TRY_EVAL([lt_ar_try]) 2717 if test "$ac_status" -ne 0; then 2718 lt_cv_ar_at_file=@ 2719 fi 2720 fi 2721 rm -f conftest.* libconftest.a 2722 ]) 2723 ]) 2724 2725if test "x$lt_cv_ar_at_file" = xno; then 2726 archiver_list_spec= 2727else 2728 archiver_list_spec=$lt_cv_ar_at_file 2729fi 2730_LT_DECL([], [archiver_list_spec], [1], 2731 [How to feed a file listing to the archiver]) 2732])# _LT_PROG_AR 2733 2734 2735# _LT_CMD_OLD_ARCHIVE 2736# ------------------- 2737m4_defun([_LT_CMD_OLD_ARCHIVE], 2738[_LT_PROG_AR 2739 2740AC_CHECK_TOOL(STRIP, strip, :) 2741test -z "$STRIP" && STRIP=: 2742_LT_DECL([], [STRIP], [1], [A symbol stripping program]) 2743 2744AC_CHECK_TOOL(RANLIB, ranlib, :) 2745test -z "$RANLIB" && RANLIB=: 2746_LT_DECL([], [RANLIB], [1], 2747 [Commands used to install an old-style archive]) 2748 2749# Determine commands to create old-style static archives. 2750old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 2751old_postinstall_cmds='chmod 644 $oldlib' 2752old_postuninstall_cmds= 2753 2754if test -n "$RANLIB"; then 2755 case $host_os in 2756 openbsd*) 2757 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 2758 ;; 2759 *) 2760 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 2761 ;; 2762 esac 2763 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 2764fi 2765 2766case $host_os in 2767 darwin*) 2768 lock_old_archive_extraction=yes ;; 2769 *) 2770 lock_old_archive_extraction=no ;; 2771esac 2772_LT_DECL([], [old_postinstall_cmds], [2]) 2773_LT_DECL([], [old_postuninstall_cmds], [2]) 2774_LT_TAGDECL([], [old_archive_cmds], [2], 2775 [Commands used to build an old-style archive]) 2776_LT_DECL([], [lock_old_archive_extraction], [0], 2777 [Whether to use a lock for old archive extraction]) 2778])# _LT_CMD_OLD_ARCHIVE 2779 2780 2781# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 2782# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 2783# ---------------------------------------------------------------- 2784# Check whether the given compiler option works 2785AC_DEFUN([_LT_COMPILER_OPTION], 2786[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2787m4_require([_LT_DECL_SED])dnl 2788AC_CACHE_CHECK([$1], [$2], 2789 [$2=no 2790 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 2791 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 2792 lt_compiler_flag="$3" 2793 # Insert the option either (1) after the last *FLAGS variable, or 2794 # (2) before a word containing "conftest.", or (3) at the end. 2795 # Note that $ac_compile itself does not contain backslashes and begins 2796 # with a dollar sign (not a hyphen), so the echo should work correctly. 2797 # The option is referenced via a variable to avoid confusing sed. 2798 lt_compile=`echo "$ac_compile" | $SED \ 2799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 2800 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 2801 -e 's:$: $lt_compiler_flag:'` 2802 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 2803 (eval "$lt_compile" 2>conftest.err) 2804 ac_status=$? 2805 cat conftest.err >&AS_MESSAGE_LOG_FD 2806 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 2807 if (exit $ac_status) && test -s "$ac_outfile"; then 2808 # The compiler can only warn and ignore the option if not recognized 2809 # So say no if there are warnings other than the usual output. 2810 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 2811 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 2812 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 2813 $2=yes 2814 fi 2815 fi 2816 $RM conftest* 2817]) 2818 2819if test x"[$]$2" = xyes; then 2820 m4_if([$5], , :, [$5]) 2821else 2822 m4_if([$6], , :, [$6]) 2823fi 2824])# _LT_COMPILER_OPTION 2825 2826# Old name: 2827AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) 2828dnl aclocal-1.4 backwards compatibility: 2829dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) 2830 2831 2832# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 2833# [ACTION-SUCCESS], [ACTION-FAILURE]) 2834# ---------------------------------------------------- 2835# Check whether the given linker option works 2836AC_DEFUN([_LT_LINKER_OPTION], 2837[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2838m4_require([_LT_DECL_SED])dnl 2839AC_CACHE_CHECK([$1], [$2], 2840 [$2=no 2841 save_LDFLAGS="$LDFLAGS" 2842 LDFLAGS="$LDFLAGS $3" 2843 echo "$lt_simple_link_test_code" > conftest.$ac_ext 2844 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 2845 # The linker can only warn and ignore the option if not recognized 2846 # So say no if there are warnings 2847 if test -s conftest.err; then 2848 # Append any errors to the config.log. 2849 cat conftest.err 1>&AS_MESSAGE_LOG_FD 2850 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 2851 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 2852 if diff conftest.exp conftest.er2 >/dev/null; then 2853 $2=yes 2854 fi 2855 else 2856 $2=yes 2857 fi 2858 fi 2859 $RM -r conftest* 2860 LDFLAGS="$save_LDFLAGS" 2861]) 2862 2863if test x"[$]$2" = xyes; then 2864 m4_if([$4], , :, [$4]) 2865else 2866 m4_if([$5], , :, [$5]) 2867fi 2868])# _LT_LINKER_OPTION 2869 2870# Old name: 2871AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) 2872dnl aclocal-1.4 backwards compatibility: 2873dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) 2874 2875 2876# LT_CMD_MAX_LEN 2877#--------------- 2878AC_DEFUN([LT_CMD_MAX_LEN], 2879[AC_REQUIRE([AC_CANONICAL_HOST])dnl 2880# find the maximum length of command line arguments 2881AC_MSG_CHECKING([the maximum length of command line arguments]) 2882AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 2883 i=0 2884 teststring="ABCD" 2885 2886 case $build_os in 2887 msdosdjgpp*) 2888 # On DJGPP, this test can blow up pretty badly due to problems in libc 2889 # (any single argument exceeding 2000 bytes causes a buffer overrun 2890 # during glob expansion). Even if it were fixed, the result of this 2891 # check would be larger than it should be. 2892 lt_cv_sys_max_cmd_len=12288; # 12K is about right 2893 ;; 2894 2895 gnu*) 2896 # Under GNU Hurd, this test is not required because there is 2897 # no limit to the length of command line arguments. 2898 # Libtool will interpret -1 as no limit whatsoever 2899 lt_cv_sys_max_cmd_len=-1; 2900 ;; 2901 2902 cygwin* | mingw* | cegcc*) 2903 # On Win9x/ME, this test blows up -- it succeeds, but takes 2904 # about 5 minutes as the teststring grows exponentially. 2905 # Worse, since 9x/ME are not pre-emptively multitasking, 2906 # you end up with a "frozen" computer, even though with patience 2907 # the test eventually succeeds (with a max line length of 256k). 2908 # Instead, let's just punt: use the minimum linelength reported by 2909 # all of the supported platforms: 8192 (on NT/2K/XP). 2910 lt_cv_sys_max_cmd_len=8192; 2911 ;; 2912 2913 mint*) 2914 # On MiNT this can take a long time and run out of memory. 2915 lt_cv_sys_max_cmd_len=8192; 2916 ;; 2917 2918 amigaos*) 2919 # On AmigaOS with pdksh, this test takes hours, literally. 2920 # So we just punt and use a minimum line length of 8192. 2921 lt_cv_sys_max_cmd_len=8192; 2922 ;; 2923 2924 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 2925 # This has been around since 386BSD, at least. Likely further. 2926 if test -x /sbin/sysctl; then 2927 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 2928 elif test -x /usr/sbin/sysctl; then 2929 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 2930 else 2931 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 2932 fi 2933 # And add a safety zone 2934 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 2935 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 2936 ;; 2937 2938 interix*) 2939 # We know the value 262144 and hardcode it with a safety zone (like BSD) 2940 lt_cv_sys_max_cmd_len=196608 2941 ;; 2942 2943 os2*) 2944 # The test takes a long time on OS/2. 2945 lt_cv_sys_max_cmd_len=8192 2946 ;; 2947 2948 osf*) 2949 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 2950 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 2951 # nice to cause kernel panics so lets avoid the loop below. 2952 # First set a reasonable default. 2953 lt_cv_sys_max_cmd_len=16384 2954 # 2955 if test -x /sbin/sysconfig; then 2956 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 2957 *1*) lt_cv_sys_max_cmd_len=-1 ;; 2958 esac 2959 fi 2960 ;; 2961 sco3.2v5*) 2962 lt_cv_sys_max_cmd_len=102400 2963 ;; 2964 sysv5* | sco5v6* | sysv4.2uw2*) 2965 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 2966 if test -n "$kargmax"; then 2967 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 2968 else 2969 lt_cv_sys_max_cmd_len=32768 2970 fi 2971 ;; 2972 *) 2973 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 2974 if test -n "$lt_cv_sys_max_cmd_len"; then 2975 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 2976 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 2977 else 2978 # Make teststring a little bigger before we do anything with it. 2979 # a 1K string should be a reasonable start. 2980 for i in 1 2 3 4 5 6 7 8 ; do 2981 teststring=$teststring$teststring 2982 done 2983 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 2984 # If test is not a shell built-in, we'll probably end up computing a 2985 # maximum length that is only half of the actual maximum length, but 2986 # we can't tell. 2987 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 2988 = "X$teststring$teststring"; } >/dev/null 2>&1 && 2989 test $i != 17 # 1/2 MB should be enough 2990 do 2991 i=`expr $i + 1` 2992 teststring=$teststring$teststring 2993 done 2994 # Only check the string length outside the loop. 2995 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 2996 teststring= 2997 # Add a significant safety factor because C++ compilers can tack on 2998 # massive amounts of additional arguments before passing them to the 2999 # linker. It appears as though 1/2 is a usable value. 3000 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 3001 fi 3002 ;; 3003 esac 3004]) 3005if test -n $lt_cv_sys_max_cmd_len ; then 3006 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 3007else 3008 AC_MSG_RESULT(none) 3009fi 3010max_cmd_len=$lt_cv_sys_max_cmd_len 3011_LT_DECL([], [max_cmd_len], [0], 3012 [What is the maximum length of a command?]) 3013])# LT_CMD_MAX_LEN 3014 3015# Old name: 3016AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) 3017dnl aclocal-1.4 backwards compatibility: 3018dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) 3019 3020 3021# _LT_HEADER_DLFCN 3022# ---------------- 3023m4_defun([_LT_HEADER_DLFCN], 3024[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl 3025])# _LT_HEADER_DLFCN 3026 3027 3028# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 3029# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 3030# ---------------------------------------------------------------- 3031m4_defun([_LT_TRY_DLOPEN_SELF], 3032[m4_require([_LT_HEADER_DLFCN])dnl 3033if test "$cross_compiling" = yes; then : 3034 [$4] 3035else 3036 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 3037 lt_status=$lt_dlunknown 3038 cat > conftest.$ac_ext <<_LT_EOF 3039[#line $LINENO "configure" 3040#include "confdefs.h" 3041 3042#if HAVE_DLFCN_H 3043#include <dlfcn.h> 3044#endif 3045 3046#include <stdio.h> 3047 3048#ifdef RTLD_GLOBAL 3049# define LT_DLGLOBAL RTLD_GLOBAL 3050#else 3051# ifdef DL_GLOBAL 3052# define LT_DLGLOBAL DL_GLOBAL 3053# else 3054# define LT_DLGLOBAL 0 3055# endif 3056#endif 3057 3058/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 3059 find out it does not work in some platform. */ 3060#ifndef LT_DLLAZY_OR_NOW 3061# ifdef RTLD_LAZY 3062# define LT_DLLAZY_OR_NOW RTLD_LAZY 3063# else 3064# ifdef DL_LAZY 3065# define LT_DLLAZY_OR_NOW DL_LAZY 3066# else 3067# ifdef RTLD_NOW 3068# define LT_DLLAZY_OR_NOW RTLD_NOW 3069# else 3070# ifdef DL_NOW 3071# define LT_DLLAZY_OR_NOW DL_NOW 3072# else 3073# define LT_DLLAZY_OR_NOW 0 3074# endif 3075# endif 3076# endif 3077# endif 3078#endif 3079 3080/* When -fvisbility=hidden is used, assume the code has been annotated 3081 correspondingly for the symbols needed. */ 3082#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 3083int fnord () __attribute__((visibility("default"))); 3084#endif 3085 3086int fnord () { return 42; } 3087int main () 3088{ 3089 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 3090 int status = $lt_dlunknown; 3091 3092 if (self) 3093 { 3094 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 3095 else 3096 { 3097 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 3098 else puts (dlerror ()); 3099 } 3100 /* dlclose (self); */ 3101 } 3102 else 3103 puts (dlerror ()); 3104 3105 return status; 3106}] 3107_LT_EOF 3108 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 3109 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 3110 lt_status=$? 3111 case x$lt_status in 3112 x$lt_dlno_uscore) $1 ;; 3113 x$lt_dlneed_uscore) $2 ;; 3114 x$lt_dlunknown|x*) $3 ;; 3115 esac 3116 else : 3117 # compilation failed 3118 $3 3119 fi 3120fi 3121rm -fr conftest* 3122])# _LT_TRY_DLOPEN_SELF 3123 3124 3125# LT_SYS_DLOPEN_SELF 3126# ------------------ 3127AC_DEFUN([LT_SYS_DLOPEN_SELF], 3128[m4_require([_LT_HEADER_DLFCN])dnl 3129if test "x$enable_dlopen" != xyes; then 3130 enable_dlopen=unknown 3131 enable_dlopen_self=unknown 3132 enable_dlopen_self_static=unknown 3133else 3134 lt_cv_dlopen=no 3135 lt_cv_dlopen_libs= 3136 3137 case $host_os in 3138 beos*) 3139 lt_cv_dlopen="load_add_on" 3140 lt_cv_dlopen_libs= 3141 lt_cv_dlopen_self=yes 3142 ;; 3143 3144 mingw* | pw32* | cegcc*) 3145 lt_cv_dlopen="LoadLibrary" 3146 lt_cv_dlopen_libs= 3147 ;; 3148 3149 cygwin*) 3150 lt_cv_dlopen="dlopen" 3151 lt_cv_dlopen_libs= 3152 ;; 3153 3154 darwin*) 3155 # if libdl is installed we need to link against it 3156 AC_CHECK_LIB([dl], [dlopen], 3157 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 3158 lt_cv_dlopen="dyld" 3159 lt_cv_dlopen_libs= 3160 lt_cv_dlopen_self=yes 3161 ]) 3162 ;; 3163 3164 *) 3165 AC_CHECK_FUNC([shl_load], 3166 [lt_cv_dlopen="shl_load"], 3167 [AC_CHECK_LIB([dld], [shl_load], 3168 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], 3169 [AC_CHECK_FUNC([dlopen], 3170 [lt_cv_dlopen="dlopen"], 3171 [AC_CHECK_LIB([dl], [dlopen], 3172 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 3173 [AC_CHECK_LIB([svld], [dlopen], 3174 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 3175 [AC_CHECK_LIB([dld], [dld_link], 3176 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) 3177 ]) 3178 ]) 3179 ]) 3180 ]) 3181 ]) 3182 ;; 3183 esac 3184 3185 if test "x$lt_cv_dlopen" != xno; then 3186 enable_dlopen=yes 3187 else 3188 enable_dlopen=no 3189 fi 3190 3191 case $lt_cv_dlopen in 3192 dlopen) 3193 save_CPPFLAGS="$CPPFLAGS" 3194 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 3195 3196 save_LDFLAGS="$LDFLAGS" 3197 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 3198 3199 save_LIBS="$LIBS" 3200 LIBS="$lt_cv_dlopen_libs $LIBS" 3201 3202 AC_CACHE_CHECK([whether a program can dlopen itself], 3203 lt_cv_dlopen_self, [dnl 3204 _LT_TRY_DLOPEN_SELF( 3205 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 3206 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 3207 ]) 3208 3209 if test "x$lt_cv_dlopen_self" = xyes; then 3210 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 3211 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 3212 lt_cv_dlopen_self_static, [dnl 3213 _LT_TRY_DLOPEN_SELF( 3214 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 3215 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 3216 ]) 3217 fi 3218 3219 CPPFLAGS="$save_CPPFLAGS" 3220 LDFLAGS="$save_LDFLAGS" 3221 LIBS="$save_LIBS" 3222 ;; 3223 esac 3224 3225 case $lt_cv_dlopen_self in 3226 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 3227 *) enable_dlopen_self=unknown ;; 3228 esac 3229 3230 case $lt_cv_dlopen_self_static in 3231 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 3232 *) enable_dlopen_self_static=unknown ;; 3233 esac 3234fi 3235_LT_DECL([dlopen_support], [enable_dlopen], [0], 3236 [Whether dlopen is supported]) 3237_LT_DECL([dlopen_self], [enable_dlopen_self], [0], 3238 [Whether dlopen of programs is supported]) 3239_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], 3240 [Whether dlopen of statically linked programs is supported]) 3241])# LT_SYS_DLOPEN_SELF 3242 3243# Old name: 3244AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) 3245dnl aclocal-1.4 backwards compatibility: 3246dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) 3247 3248 3249# _LT_COMPILER_C_O([TAGNAME]) 3250# --------------------------- 3251# Check to see if options -c and -o are simultaneously supported by compiler. 3252# This macro does not hard code the compiler like AC_PROG_CC_C_O. 3253m4_defun([_LT_COMPILER_C_O], 3254[m4_require([_LT_DECL_SED])dnl 3255m4_require([_LT_FILEUTILS_DEFAULTS])dnl 3256m4_require([_LT_TAG_COMPILER])dnl 3257AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 3258 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 3259 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 3260 $RM -r conftest 2>/dev/null 3261 mkdir conftest 3262 cd conftest 3263 mkdir out 3264 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 3265 3266 lt_compiler_flag="-o out/conftest2.$ac_objext" 3267 # Insert the option either (1) after the last *FLAGS variable, or 3268 # (2) before a word containing "conftest.", or (3) at the end. 3269 # Note that $ac_compile itself does not contain backslashes and begins 3270 # with a dollar sign (not a hyphen), so the echo should work correctly. 3271 lt_compile=`echo "$ac_compile" | $SED \ 3272 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 3273 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 3274 -e 's:$: $lt_compiler_flag:'` 3275 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 3276 (eval "$lt_compile" 2>out/conftest.err) 3277 ac_status=$? 3278 cat out/conftest.err >&AS_MESSAGE_LOG_FD 3279 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 3280 if (exit $ac_status) && test -s out/conftest2.$ac_objext 3281 then 3282 # The compiler can only warn and ignore the option if not recognized 3283 # So say no if there are warnings 3284 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 3285 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 3286 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 3287 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 3288 fi 3289 fi 3290 chmod u+w . 2>&AS_MESSAGE_LOG_FD 3291 $RM conftest* 3292 # SGI C++ compiler will create directory out/ii_files/ for 3293 # template instantiation 3294 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 3295 $RM out/* && rmdir out 3296 cd .. 3297 $RM -r conftest 3298 $RM conftest* 3299]) 3300_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], 3301 [Does compiler simultaneously support -c and -o options?]) 3302])# _LT_COMPILER_C_O 3303 3304 3305# _LT_COMPILER_FILE_LOCKS([TAGNAME]) 3306# ---------------------------------- 3307# Check to see if we can do hard links to lock some files if needed 3308m4_defun([_LT_COMPILER_FILE_LOCKS], 3309[m4_require([_LT_ENABLE_LOCK])dnl 3310m4_require([_LT_FILEUTILS_DEFAULTS])dnl 3311_LT_COMPILER_C_O([$1]) 3312 3313hard_links="nottested" 3314if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 3315 # do not overwrite the value of need_locks provided by the user 3316 AC_MSG_CHECKING([if we can lock with hard links]) 3317 hard_links=yes 3318 $RM conftest* 3319 ln conftest.a conftest.b 2>/dev/null && hard_links=no 3320 touch conftest.a 3321 ln conftest.a conftest.b 2>&5 || hard_links=no 3322 ln conftest.a conftest.b 2>/dev/null && hard_links=no 3323 AC_MSG_RESULT([$hard_links]) 3324 if test "$hard_links" = no; then 3325 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) 3326 need_locks=warn 3327 fi 3328else 3329 need_locks=no 3330fi 3331_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) 3332])# _LT_COMPILER_FILE_LOCKS 3333 3334 3335# _LT_CHECK_OBJDIR 3336# ---------------- 3337m4_defun([_LT_CHECK_OBJDIR], 3338[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 3339[rm -f .libs 2>/dev/null 3340mkdir .libs 2>/dev/null 3341if test -d .libs; then 3342 lt_cv_objdir=.libs 3343else 3344 # MS-DOS does not allow filenames that begin with a dot. 3345 lt_cv_objdir=_libs 3346fi 3347rmdir .libs 2>/dev/null]) 3348objdir=$lt_cv_objdir 3349_LT_DECL([], [objdir], [0], 3350 [The name of the directory that contains temporary libtool files])dnl 3351m4_pattern_allow([LT_OBJDIR])dnl 3352AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", 3353 [Define to the sub-directory in which libtool stores uninstalled libraries.]) 3354])# _LT_CHECK_OBJDIR 3355 3356 3357# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 3358# -------------------------------------- 3359# Check hardcoding attributes. 3360m4_defun([_LT_LINKER_HARDCODE_LIBPATH], 3361[AC_MSG_CHECKING([how to hardcode library paths into programs]) 3362_LT_TAGVAR(hardcode_action, $1)= 3363if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 3364 test -n "$_LT_TAGVAR(runpath_var, $1)" || 3365 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 3366 3367 # We can hardcode non-existent directories. 3368 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && 3369 # If the only mechanism to avoid hardcoding is shlibpath_var, we 3370 # have to relink, otherwise we might link with an installed library 3371 # when we should be linking with a yet-to-be-installed one 3372 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && 3373 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then 3374 # Linking always hardcodes the temporary library directory. 3375 _LT_TAGVAR(hardcode_action, $1)=relink 3376 else 3377 # We can link without hardcoding, and we can hardcode nonexisting dirs. 3378 _LT_TAGVAR(hardcode_action, $1)=immediate 3379 fi 3380else 3381 # We cannot hardcode anything, or else we can only hardcode existing 3382 # directories. 3383 _LT_TAGVAR(hardcode_action, $1)=unsupported 3384fi 3385AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 3386 3387if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || 3388 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then 3389 # Fast installation is not supported 3390 enable_fast_install=no 3391elif test "$shlibpath_overrides_runpath" = yes || 3392 test "$enable_shared" = no; then 3393 # Fast installation is not necessary 3394 enable_fast_install=needless 3395fi 3396_LT_TAGDECL([], [hardcode_action], [0], 3397 [How to hardcode a shared library path into an executable]) 3398])# _LT_LINKER_HARDCODE_LIBPATH 3399 3400 3401# _LT_CMD_STRIPLIB 3402# ---------------- 3403m4_defun([_LT_CMD_STRIPLIB], 3404[m4_require([_LT_DECL_EGREP]) 3405striplib= 3406old_striplib= 3407AC_MSG_CHECKING([whether stripping libraries is possible]) 3408if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 3409 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 3410 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 3411 AC_MSG_RESULT([yes]) 3412else 3413# FIXME - insert some real tests, host_os isn't really good enough 3414 case $host_os in 3415 darwin*) 3416 if test -n "$STRIP" ; then 3417 striplib="$STRIP -x" 3418 old_striplib="$STRIP -S" 3419 AC_MSG_RESULT([yes]) 3420 else 3421 AC_MSG_RESULT([no]) 3422 fi 3423 ;; 3424 *) 3425 AC_MSG_RESULT([no]) 3426 ;; 3427 esac 3428fi 3429_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) 3430_LT_DECL([], [striplib], [1]) 3431])# _LT_CMD_STRIPLIB 3432 3433 3434# _LT_SYS_DYNAMIC_LINKER([TAG]) 3435# ----------------------------- 3436# PORTME Fill in your ld.so characteristics 3437m4_defun([_LT_SYS_DYNAMIC_LINKER], 3438[AC_REQUIRE([AC_CANONICAL_HOST])dnl 3439m4_require([_LT_DECL_EGREP])dnl 3440m4_require([_LT_FILEUTILS_DEFAULTS])dnl 3441m4_require([_LT_DECL_OBJDUMP])dnl 3442m4_require([_LT_DECL_SED])dnl 3443m4_require([_LT_CHECK_SHELL_FEATURES])dnl 3444AC_MSG_CHECKING([dynamic linker characteristics]) 3445m4_if([$1], 3446 [], [ 3447if test "$GCC" = yes; then 3448 case $host_os in 3449 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 3450 *) lt_awk_arg="/^libraries:/" ;; 3451 esac 3452 case $host_os in 3453 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; 3454 *) lt_sed_strip_eq="s,=/,/,g" ;; 3455 esac 3456 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 3457 case $lt_search_path_spec in 3458 *\;*) 3459 # if the path contains ";" then we assume it to be the separator 3460 # otherwise default to the standard path separator (i.e. ":") - it is 3461 # assumed that no part of a normal pathname contains ";" but that should 3462 # okay in the real world where ";" in dirpaths is itself problematic. 3463 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 3464 ;; 3465 *) 3466 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 3467 ;; 3468 esac 3469 # Ok, now we have the path, separated by spaces, we can step through it 3470 # and add multilib dir if necessary. 3471 lt_tmp_lt_search_path_spec= 3472 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 3473 for lt_sys_path in $lt_search_path_spec; do 3474 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 3475 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 3476 else 3477 test -d "$lt_sys_path" && \ 3478 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 3479 fi 3480 done 3481 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 3482BEGIN {RS=" "; FS="/|\n";} { 3483 lt_foo=""; 3484 lt_count=0; 3485 for (lt_i = NF; lt_i > 0; lt_i--) { 3486 if ($lt_i != "" && $lt_i != ".") { 3487 if ($lt_i == "..") { 3488 lt_count++; 3489 } else { 3490 if (lt_count == 0) { 3491 lt_foo="/" $lt_i lt_foo; 3492 } else { 3493 lt_count--; 3494 } 3495 } 3496 } 3497 } 3498 if (lt_foo != "") { lt_freq[[lt_foo]]++; } 3499 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 3500}'` 3501 # AWK program above erroneously prepends '/' to C:/dos/paths 3502 # for these hosts. 3503 case $host_os in 3504 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 3505 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; 3506 esac 3507 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 3508else 3509 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 3510fi]) 3511library_names_spec= 3512libname_spec='lib$name' 3513soname_spec= 3514shrext_cmds=".so" 3515postinstall_cmds= 3516postuninstall_cmds= 3517finish_cmds= 3518finish_eval= 3519shlibpath_var= 3520shlibpath_overrides_runpath=unknown 3521version_type=none 3522dynamic_linker="$host_os ld.so" 3523sys_lib_dlsearch_path_spec="/lib /usr/lib" 3524need_lib_prefix=unknown 3525hardcode_into_libs=no 3526 3527# when you set need_version to no, make sure it does not cause -set_version 3528# flags to be left without arguments 3529need_version=unknown 3530 3531case $host_os in 3532aix3*) 3533 version_type=linux # correct to gnu/linux during the next big refactor 3534 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 3535 shlibpath_var=LIBPATH 3536 3537 # AIX 3 has no versioning support, so we append a major version to the name. 3538 soname_spec='${libname}${release}${shared_ext}$major' 3539 ;; 3540 3541aix[[4-9]]*) 3542 version_type=linux # correct to gnu/linux during the next big refactor 3543 need_lib_prefix=no 3544 need_version=no 3545 hardcode_into_libs=yes 3546 if test "$host_cpu" = ia64; then 3547 # AIX 5 supports IA64 3548 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 3549 shlibpath_var=LD_LIBRARY_PATH 3550 else 3551 # With GCC up to 2.95.x, collect2 would create an import file 3552 # for dependence libraries. The import file would start with 3553 # the line `#! .'. This would cause the generated library to 3554 # depend on `.', always an invalid library. This was fixed in 3555 # development snapshots of GCC prior to 3.0. 3556 case $host_os in 3557 aix4 | aix4.[[01]] | aix4.[[01]].*) 3558 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 3559 echo ' yes ' 3560 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 3561 : 3562 else 3563 can_build_shared=no 3564 fi 3565 ;; 3566 esac 3567 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 3568 # soname into executable. Probably we can add versioning support to 3569 # collect2, so additional links can be useful in future. 3570 if test "$aix_use_runtimelinking" = yes; then 3571 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 3572 # instead of lib<name>.a to let people know that these are not 3573 # typical AIX shared libraries. 3574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3575 else 3576 # We preserve .a as extension for shared libraries through AIX4.2 3577 # and later when we are not doing run time linking. 3578 library_names_spec='${libname}${release}.a $libname.a' 3579 soname_spec='${libname}${release}${shared_ext}$major' 3580 fi 3581 shlibpath_var=LIBPATH 3582 fi 3583 ;; 3584 3585amigaos*) 3586 case $host_cpu in 3587 powerpc) 3588 # Since July 2007 AmigaOS4 officially supports .so libraries. 3589 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 3590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3591 ;; 3592 m68k) 3593 library_names_spec='$libname.ixlibrary $libname.a' 3594 # Create ${libname}_ixlibrary.a entries in /sys/libs. 3595 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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' 3596 ;; 3597 esac 3598 ;; 3599 3600beos*) 3601 library_names_spec='${libname}${shared_ext}' 3602 dynamic_linker="$host_os ld.so" 3603 shlibpath_var=LIBRARY_PATH 3604 ;; 3605 3606bsdi[[45]]*) 3607 version_type=linux # correct to gnu/linux during the next big refactor 3608 need_version=no 3609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3610 soname_spec='${libname}${release}${shared_ext}$major' 3611 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 3612 shlibpath_var=LD_LIBRARY_PATH 3613 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 3614 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 3615 # the default ld.so.conf also contains /usr/contrib/lib and 3616 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 3617 # libtool to hard-code these into programs 3618 ;; 3619 3620cygwin* | mingw* | pw32* | cegcc*) 3621 version_type=windows 3622 shrext_cmds=".dll" 3623 need_version=no 3624 need_lib_prefix=no 3625 3626 case $GCC,$cc_basename in 3627 yes,*) 3628 # gcc 3629 library_names_spec='$libname.dll.a' 3630 # DLL is installed to $(libdir)/../bin by postinstall_cmds 3631 postinstall_cmds='base_file=`basename \${file}`~ 3632 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 3633 dldir=$destdir/`dirname \$dlpath`~ 3634 test -d \$dldir || mkdir -p \$dldir~ 3635 $install_prog $dir/$dlname \$dldir/$dlname~ 3636 chmod a+x \$dldir/$dlname~ 3637 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 3638 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 3639 fi' 3640 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 3641 dlpath=$dir/\$dldll~ 3642 $RM \$dlpath' 3643 shlibpath_overrides_runpath=yes 3644 3645 case $host_os in 3646 cygwin*) 3647 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 3648 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 3649m4_if([$1], [],[ 3650 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) 3651 ;; 3652 mingw* | cegcc*) 3653 # MinGW DLLs use traditional 'lib' prefix 3654 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 3655 ;; 3656 pw32*) 3657 # pw32 DLLs use 'pw' prefix rather than 'lib' 3658 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 3659 ;; 3660 esac 3661 dynamic_linker='Win32 ld.exe' 3662 ;; 3663 3664 *,cl*) 3665 # Native MSVC 3666 libname_spec='$name' 3667 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 3668 library_names_spec='${libname}.dll.lib' 3669 3670 case $build_os in 3671 mingw*) 3672 sys_lib_search_path_spec= 3673 lt_save_ifs=$IFS 3674 IFS=';' 3675 for lt_path in $LIB 3676 do 3677 IFS=$lt_save_ifs 3678 # Let DOS variable expansion print the short 8.3 style file name. 3679 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 3680 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 3681 done 3682 IFS=$lt_save_ifs 3683 # Convert to MSYS style. 3684 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` 3685 ;; 3686 cygwin*) 3687 # Convert to unix form, then to dos form, then back to unix form 3688 # but this time dos style (no spaces!) so that the unix form looks 3689 # like /cygdrive/c/PROGRA~1:/cygdr... 3690 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 3691 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 3692 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 3693 ;; 3694 *) 3695 sys_lib_search_path_spec="$LIB" 3696 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then 3697 # It is most probably a Windows format PATH. 3698 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 3699 else 3700 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 3701 fi 3702 # FIXME: find the short name or the path components, as spaces are 3703 # common. (e.g. "Program Files" -> "PROGRA~1") 3704 ;; 3705 esac 3706 3707 # DLL is installed to $(libdir)/../bin by postinstall_cmds 3708 postinstall_cmds='base_file=`basename \${file}`~ 3709 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 3710 dldir=$destdir/`dirname \$dlpath`~ 3711 test -d \$dldir || mkdir -p \$dldir~ 3712 $install_prog $dir/$dlname \$dldir/$dlname' 3713 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 3714 dlpath=$dir/\$dldll~ 3715 $RM \$dlpath' 3716 shlibpath_overrides_runpath=yes 3717 dynamic_linker='Win32 link.exe' 3718 ;; 3719 3720 *) 3721 # Assume MSVC wrapper 3722 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 3723 dynamic_linker='Win32 ld.exe' 3724 ;; 3725 esac 3726 # FIXME: first we should search . and the directory the executable is in 3727 shlibpath_var=PATH 3728 ;; 3729 3730darwin* | rhapsody*) 3731 dynamic_linker="$host_os dyld" 3732 version_type=darwin 3733 need_lib_prefix=no 3734 need_version=no 3735 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 3736 soname_spec='${libname}${release}${major}$shared_ext' 3737 shlibpath_overrides_runpath=yes 3738 shlibpath_var=DYLD_LIBRARY_PATH 3739 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 3740m4_if([$1], [],[ 3741 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 3742 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 3743 ;; 3744 3745dgux*) 3746 version_type=linux # correct to gnu/linux during the next big refactor 3747 need_lib_prefix=no 3748 need_version=no 3749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 3750 soname_spec='${libname}${release}${shared_ext}$major' 3751 shlibpath_var=LD_LIBRARY_PATH 3752 ;; 3753 3754freebsd* | dragonfly*) 3755 # DragonFly does not have aout. When/if they implement a new 3756 # versioning mechanism, adjust this. 3757 if test -x /usr/bin/objformat; then 3758 objformat=`/usr/bin/objformat` 3759 else 3760 case $host_os in 3761 freebsd[[23]].*) objformat=aout ;; 3762 *) objformat=elf ;; 3763 esac 3764 fi 3765 version_type=freebsd-$objformat 3766 case $version_type in 3767 freebsd-elf*) 3768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 3769 need_version=no 3770 need_lib_prefix=no 3771 ;; 3772 freebsd-*) 3773 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 3774 need_version=yes 3775 ;; 3776 esac 3777 shlibpath_var=LD_LIBRARY_PATH 3778 case $host_os in 3779 freebsd2.*) 3780 shlibpath_overrides_runpath=yes 3781 ;; 3782 freebsd3.[[01]]* | freebsdelf3.[[01]]*) 3783 shlibpath_overrides_runpath=yes 3784 hardcode_into_libs=yes 3785 ;; 3786 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 3787 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 3788 shlibpath_overrides_runpath=no 3789 hardcode_into_libs=yes 3790 ;; 3791 *) # from 4.6 on, and DragonFly 3792 shlibpath_overrides_runpath=yes 3793 hardcode_into_libs=yes 3794 ;; 3795 esac 3796 ;; 3797 3798gnu*) 3799 version_type=linux # correct to gnu/linux during the next big refactor 3800 need_lib_prefix=no 3801 need_version=no 3802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 3803 soname_spec='${libname}${release}${shared_ext}$major' 3804 shlibpath_var=LD_LIBRARY_PATH 3805 shlibpath_overrides_runpath=no 3806 hardcode_into_libs=yes 3807 ;; 3808 3809haiku*) 3810 version_type=linux # correct to gnu/linux during the next big refactor 3811 need_lib_prefix=no 3812 need_version=no 3813 dynamic_linker="$host_os runtime_loader" 3814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 3815 soname_spec='${libname}${release}${shared_ext}$major' 3816 shlibpath_var=LIBRARY_PATH 3817 shlibpath_overrides_runpath=yes 3818 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 3819 hardcode_into_libs=yes 3820 ;; 3821 3822hpux9* | hpux10* | hpux11*) 3823 # Give a soname corresponding to the major version so that dld.sl refuses to 3824 # link against other versions. 3825 version_type=sunos 3826 need_lib_prefix=no 3827 need_version=no 3828 case $host_cpu in 3829 ia64*) 3830 shrext_cmds='.so' 3831 hardcode_into_libs=yes 3832 dynamic_linker="$host_os dld.so" 3833 shlibpath_var=LD_LIBRARY_PATH 3834 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 3835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3836 soname_spec='${libname}${release}${shared_ext}$major' 3837 if test "X$HPUX_IA64_MODE" = X32; then 3838 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 3839 else 3840 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 3841 fi 3842 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 3843 ;; 3844 hppa*64*) 3845 shrext_cmds='.sl' 3846 hardcode_into_libs=yes 3847 dynamic_linker="$host_os dld.sl" 3848 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 3849 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 3850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3851 soname_spec='${libname}${release}${shared_ext}$major' 3852 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 3853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 3854 ;; 3855 *) 3856 shrext_cmds='.sl' 3857 dynamic_linker="$host_os dld.sl" 3858 shlibpath_var=SHLIB_PATH 3859 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 3860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3861 soname_spec='${libname}${release}${shared_ext}$major' 3862 ;; 3863 esac 3864 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 3865 postinstall_cmds='chmod 555 $lib' 3866 # or fails outright, so override atomically: 3867 install_override_mode=555 3868 ;; 3869 3870interix[[3-9]]*) 3871 version_type=linux # correct to gnu/linux during the next big refactor 3872 need_lib_prefix=no 3873 need_version=no 3874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 3875 soname_spec='${libname}${release}${shared_ext}$major' 3876 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 3877 shlibpath_var=LD_LIBRARY_PATH 3878 shlibpath_overrides_runpath=no 3879 hardcode_into_libs=yes 3880 ;; 3881 3882irix5* | irix6* | nonstopux*) 3883 case $host_os in 3884 nonstopux*) version_type=nonstopux ;; 3885 *) 3886 if test "$lt_cv_prog_gnu_ld" = yes; then 3887 version_type=linux # correct to gnu/linux during the next big refactor 3888 else 3889 version_type=irix 3890 fi ;; 3891 esac 3892 need_lib_prefix=no 3893 need_version=no 3894 soname_spec='${libname}${release}${shared_ext}$major' 3895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 3896 case $host_os in 3897 irix5* | nonstopux*) 3898 libsuff= shlibsuff= 3899 ;; 3900 *) 3901 case $LD in # libtool.m4 will add one of these switches to LD 3902 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 3903 libsuff= shlibsuff= libmagic=32-bit;; 3904 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 3905 libsuff=32 shlibsuff=N32 libmagic=N32;; 3906 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 3907 libsuff=64 shlibsuff=64 libmagic=64-bit;; 3908 *) libsuff= shlibsuff= libmagic=never-match;; 3909 esac 3910 ;; 3911 esac 3912 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 3913 shlibpath_overrides_runpath=no 3914 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 3915 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 3916 hardcode_into_libs=yes 3917 ;; 3918 3919# No shared lib support for Linux oldld, aout, or coff. 3920linux*oldld* | linux*aout* | linux*coff*) 3921 dynamic_linker=no 3922 ;; 3923 3924# This must be glibc/ELF. 3925linux* | k*bsd*-gnu | kopensolaris*-gnu) 3926 version_type=linux # correct to gnu/linux during the next big refactor 3927 need_lib_prefix=no 3928 need_version=no 3929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3930 soname_spec='${libname}${release}${shared_ext}$major' 3931 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 3932 shlibpath_var=LD_LIBRARY_PATH 3933 shlibpath_overrides_runpath=no 3934 3935 # Some binutils ld are patched to set DT_RUNPATH 3936 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], 3937 [lt_cv_shlibpath_overrides_runpath=no 3938 save_LDFLAGS=$LDFLAGS 3939 save_libdir=$libdir 3940 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 3941 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 3942 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 3943 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], 3944 [lt_cv_shlibpath_overrides_runpath=yes])]) 3945 LDFLAGS=$save_LDFLAGS 3946 libdir=$save_libdir 3947 ]) 3948 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 3949 3950 # This implies no fast_install, which is unacceptable. 3951 # Some rework will be needed to allow for fast_install 3952 # before this can be enabled. 3953 hardcode_into_libs=yes 3954 3955 # Append ld.so.conf contents to the search path 3956 if test -f /etc/ld.so.conf; then 3957 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 3958 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 3959 fi 3960 3961 # We used to test for /lib/ld.so.1 and disable shared libraries on 3962 # powerpc, because MkLinux only supported shared libraries with the 3963 # GNU dynamic linker. Since this was broken with cross compilers, 3964 # most powerpc-linux boxes support dynamic linking these days and 3965 # people can always --disable-shared, the test was removed, and we 3966 # assume the GNU/Linux dynamic linker is in use. 3967 dynamic_linker='GNU/Linux ld.so' 3968 ;; 3969 3970netbsd*) 3971 version_type=sunos 3972 need_lib_prefix=no 3973 need_version=no 3974 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 3975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 3976 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 3977 dynamic_linker='NetBSD (a.out) ld.so' 3978 else 3979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 3980 soname_spec='${libname}${release}${shared_ext}$major' 3981 dynamic_linker='NetBSD ld.elf_so' 3982 fi 3983 shlibpath_var=LD_LIBRARY_PATH 3984 shlibpath_overrides_runpath=yes 3985 hardcode_into_libs=yes 3986 ;; 3987 3988newsos6) 3989 version_type=linux # correct to gnu/linux during the next big refactor 3990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3991 shlibpath_var=LD_LIBRARY_PATH 3992 shlibpath_overrides_runpath=yes 3993 ;; 3994 3995*nto* | *qnx*) 3996 version_type=qnx 3997 need_lib_prefix=no 3998 need_version=no 3999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4000 soname_spec='${libname}${release}${shared_ext}$major' 4001 shlibpath_var=LD_LIBRARY_PATH 4002 shlibpath_overrides_runpath=no 4003 hardcode_into_libs=yes 4004 dynamic_linker='ldqnx.so' 4005 ;; 4006 4007openbsd*) 4008 version_type=sunos 4009 sys_lib_dlsearch_path_spec="/usr/lib" 4010 need_lib_prefix=no 4011 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 4012 case $host_os in 4013 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 4014 *) need_version=no ;; 4015 esac 4016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 4017 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 4018 shlibpath_var=LD_LIBRARY_PATH 4019 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4020 case $host_os in 4021 openbsd2.[[89]] | openbsd2.[[89]].*) 4022 shlibpath_overrides_runpath=no 4023 ;; 4024 *) 4025 shlibpath_overrides_runpath=yes 4026 ;; 4027 esac 4028 else 4029 shlibpath_overrides_runpath=yes 4030 fi 4031 ;; 4032 4033os2*) 4034 libname_spec='$name' 4035 shrext_cmds=".dll" 4036 need_lib_prefix=no 4037 library_names_spec='$libname${shared_ext} $libname.a' 4038 dynamic_linker='OS/2 ld.exe' 4039 shlibpath_var=LIBPATH 4040 ;; 4041 4042osf3* | osf4* | osf5*) 4043 version_type=osf 4044 need_lib_prefix=no 4045 need_version=no 4046 soname_spec='${libname}${release}${shared_ext}$major' 4047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4048 shlibpath_var=LD_LIBRARY_PATH 4049 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 4050 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 4051 ;; 4052 4053rdos*) 4054 dynamic_linker=no 4055 ;; 4056 4057solaris*) 4058 version_type=linux # correct to gnu/linux during the next big refactor 4059 need_lib_prefix=no 4060 need_version=no 4061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4062 soname_spec='${libname}${release}${shared_ext}$major' 4063 shlibpath_var=LD_LIBRARY_PATH 4064 shlibpath_overrides_runpath=yes 4065 hardcode_into_libs=yes 4066 # ldd complains unless libraries are executable 4067 postinstall_cmds='chmod +x $lib' 4068 ;; 4069 4070sunos4*) 4071 version_type=sunos 4072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 4073 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 4074 shlibpath_var=LD_LIBRARY_PATH 4075 shlibpath_overrides_runpath=yes 4076 if test "$with_gnu_ld" = yes; then 4077 need_lib_prefix=no 4078 fi 4079 need_version=yes 4080 ;; 4081 4082sysv4 | sysv4.3*) 4083 version_type=linux # correct to gnu/linux during the next big refactor 4084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4085 soname_spec='${libname}${release}${shared_ext}$major' 4086 shlibpath_var=LD_LIBRARY_PATH 4087 case $host_vendor in 4088 sni) 4089 shlibpath_overrides_runpath=no 4090 need_lib_prefix=no 4091 runpath_var=LD_RUN_PATH 4092 ;; 4093 siemens) 4094 need_lib_prefix=no 4095 ;; 4096 motorola) 4097 need_lib_prefix=no 4098 need_version=no 4099 shlibpath_overrides_runpath=no 4100 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 4101 ;; 4102 esac 4103 ;; 4104 4105sysv4*MP*) 4106 if test -d /usr/nec ;then 4107 version_type=linux # correct to gnu/linux during the next big refactor 4108 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 4109 soname_spec='$libname${shared_ext}.$major' 4110 shlibpath_var=LD_LIBRARY_PATH 4111 fi 4112 ;; 4113 4114sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4115 version_type=freebsd-elf 4116 need_lib_prefix=no 4117 need_version=no 4118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 4119 soname_spec='${libname}${release}${shared_ext}$major' 4120 shlibpath_var=LD_LIBRARY_PATH 4121 shlibpath_overrides_runpath=yes 4122 hardcode_into_libs=yes 4123 if test "$with_gnu_ld" = yes; then 4124 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 4125 else 4126 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 4127 case $host_os in 4128 sco3.2v5*) 4129 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 4130 ;; 4131 esac 4132 fi 4133 sys_lib_dlsearch_path_spec='/usr/lib' 4134 ;; 4135 4136tpf*) 4137 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 4138 version_type=linux # correct to gnu/linux during the next big refactor 4139 need_lib_prefix=no 4140 need_version=no 4141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4142 shlibpath_var=LD_LIBRARY_PATH 4143 shlibpath_overrides_runpath=no 4144 hardcode_into_libs=yes 4145 ;; 4146 4147uts4*) 4148 version_type=linux # correct to gnu/linux during the next big refactor 4149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4150 soname_spec='${libname}${release}${shared_ext}$major' 4151 shlibpath_var=LD_LIBRARY_PATH 4152 ;; 4153 4154*) 4155 dynamic_linker=no 4156 ;; 4157esac 4158AC_MSG_RESULT([$dynamic_linker]) 4159test "$dynamic_linker" = no && can_build_shared=no 4160 4161variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 4162if test "$GCC" = yes; then 4163 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 4164fi 4165 4166if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 4167 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 4168fi 4169if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 4170 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 4171fi 4172 4173_LT_DECL([], [variables_saved_for_relink], [1], 4174 [Variables whose values should be saved in libtool wrapper scripts and 4175 restored at link time]) 4176_LT_DECL([], [need_lib_prefix], [0], 4177 [Do we need the "lib" prefix for modules?]) 4178_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) 4179_LT_DECL([], [version_type], [0], [Library versioning type]) 4180_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) 4181_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) 4182_LT_DECL([], [shlibpath_overrides_runpath], [0], 4183 [Is shlibpath searched before the hard-coded library search path?]) 4184_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) 4185_LT_DECL([], [library_names_spec], [1], 4186 [[List of archive names. First name is the real one, the rest are links. 4187 The last name is the one that the linker finds with -lNAME]]) 4188_LT_DECL([], [soname_spec], [1], 4189 [[The coded name of the library, if different from the real name]]) 4190_LT_DECL([], [install_override_mode], [1], 4191 [Permission mode override for installation of shared libraries]) 4192_LT_DECL([], [postinstall_cmds], [2], 4193 [Command to use after installation of a shared archive]) 4194_LT_DECL([], [postuninstall_cmds], [2], 4195 [Command to use after uninstallation of a shared archive]) 4196_LT_DECL([], [finish_cmds], [2], 4197 [Commands used to finish a libtool library installation in a directory]) 4198_LT_DECL([], [finish_eval], [1], 4199 [[As "finish_cmds", except a single script fragment to be evaled but 4200 not shown]]) 4201_LT_DECL([], [hardcode_into_libs], [0], 4202 [Whether we should hardcode library paths into libraries]) 4203_LT_DECL([], [sys_lib_search_path_spec], [2], 4204 [Compile-time system search path for libraries]) 4205_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], 4206 [Run-time system search path for libraries]) 4207])# _LT_SYS_DYNAMIC_LINKER 4208 4209 4210# _LT_PATH_TOOL_PREFIX(TOOL) 4211# -------------------------- 4212# find a file program which can recognize shared library 4213AC_DEFUN([_LT_PATH_TOOL_PREFIX], 4214[m4_require([_LT_DECL_EGREP])dnl 4215AC_MSG_CHECKING([for $1]) 4216AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 4217[case $MAGIC_CMD in 4218[[\\/*] | ?:[\\/]*]) 4219 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4220 ;; 4221*) 4222 lt_save_MAGIC_CMD="$MAGIC_CMD" 4223 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4224dnl $ac_dummy forces splitting on constant user-supplied paths. 4225dnl POSIX.2 word splitting is done only on the output of word expansions, 4226dnl not every word. This closes a longstanding sh security hole. 4227 ac_dummy="m4_if([$2], , $PATH, [$2])" 4228 for ac_dir in $ac_dummy; do 4229 IFS="$lt_save_ifs" 4230 test -z "$ac_dir" && ac_dir=. 4231 if test -f $ac_dir/$1; then 4232 lt_cv_path_MAGIC_CMD="$ac_dir/$1" 4233 if test -n "$file_magic_test_file"; then 4234 case $deplibs_check_method in 4235 "file_magic "*) 4236 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 4237 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4238 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 4239 $EGREP "$file_magic_regex" > /dev/null; then 4240 : 4241 else 4242 cat <<_LT_EOF 1>&2 4243 4244*** Warning: the command libtool uses to detect shared libraries, 4245*** $file_magic_cmd, produces output that libtool cannot recognize. 4246*** The result is that libtool may fail to recognize shared libraries 4247*** as such. This will affect the creation of libtool libraries that 4248*** depend on shared libraries, but programs linked with such libtool 4249*** libraries will work regardless of this problem. Nevertheless, you 4250*** may want to report the problem to your system manager and/or to 4251*** bug-libtool@gnu.org 4252 4253_LT_EOF 4254 fi ;; 4255 esac 4256 fi 4257 break 4258 fi 4259 done 4260 IFS="$lt_save_ifs" 4261 MAGIC_CMD="$lt_save_MAGIC_CMD" 4262 ;; 4263esac]) 4264MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4265if test -n "$MAGIC_CMD"; then 4266 AC_MSG_RESULT($MAGIC_CMD) 4267else 4268 AC_MSG_RESULT(no) 4269fi 4270_LT_DECL([], [MAGIC_CMD], [0], 4271 [Used to examine libraries when file_magic_cmd begins with "file"])dnl 4272])# _LT_PATH_TOOL_PREFIX 4273 4274# Old name: 4275AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) 4276dnl aclocal-1.4 backwards compatibility: 4277dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) 4278 4279 4280# _LT_PATH_MAGIC 4281# -------------- 4282# find a file program which can recognize a shared library 4283m4_defun([_LT_PATH_MAGIC], 4284[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 4285if test -z "$lt_cv_path_MAGIC_CMD"; then 4286 if test -n "$ac_tool_prefix"; then 4287 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 4288 else 4289 MAGIC_CMD=: 4290 fi 4291fi 4292])# _LT_PATH_MAGIC 4293 4294 4295# LT_PATH_LD 4296# ---------- 4297# find the pathname to the GNU or non-GNU linker 4298AC_DEFUN([LT_PATH_LD], 4299[AC_REQUIRE([AC_PROG_CC])dnl 4300AC_REQUIRE([AC_CANONICAL_HOST])dnl 4301AC_REQUIRE([AC_CANONICAL_BUILD])dnl 4302m4_require([_LT_DECL_SED])dnl 4303m4_require([_LT_DECL_EGREP])dnl 4304m4_require([_LT_PROG_ECHO_BACKSLASH])dnl 4305 4306AC_ARG_WITH([gnu-ld], 4307 [AS_HELP_STRING([--with-gnu-ld], 4308 [assume the C compiler uses GNU ld @<:@default=no@:>@])], 4309 [test "$withval" = no || with_gnu_ld=yes], 4310 [with_gnu_ld=no])dnl 4311 4312ac_prog=ld 4313if test "$GCC" = yes; then 4314 # Check if gcc -print-prog-name=ld gives a path. 4315 AC_MSG_CHECKING([for ld used by $CC]) 4316 case $host in 4317 *-*-mingw*) 4318 # gcc leaves a trailing carriage return which upsets mingw 4319 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4320 *) 4321 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4322 esac 4323 case $ac_prog in 4324 # Accept absolute paths. 4325 [[\\/]]* | ?:[[\\/]]*) 4326 re_direlt='/[[^/]][[^/]]*/\.\./' 4327 # Canonicalize the pathname of ld 4328 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4329 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4330 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4331 done 4332 test -z "$LD" && LD="$ac_prog" 4333 ;; 4334 "") 4335 # If it fails, then pretend we aren't using GCC. 4336 ac_prog=ld 4337 ;; 4338 *) 4339 # If it is relative, then search for the first ld in PATH. 4340 with_gnu_ld=unknown 4341 ;; 4342 esac 4343elif test "$with_gnu_ld" = yes; then 4344 AC_MSG_CHECKING([for GNU ld]) 4345else 4346 AC_MSG_CHECKING([for non-GNU ld]) 4347fi 4348AC_CACHE_VAL(lt_cv_path_LD, 4349[if test -z "$LD"; then 4350 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4351 for ac_dir in $PATH; do 4352 IFS="$lt_save_ifs" 4353 test -z "$ac_dir" && ac_dir=. 4354 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4355 lt_cv_path_LD="$ac_dir/$ac_prog" 4356 # Check to see if the program is GNU ld. I'd rather use --version, 4357 # but apparently some variants of GNU ld only accept -v. 4358 # Break only if it was the GNU/non-GNU ld that we prefer. 4359 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4360 *GNU* | *'with BFD'*) 4361 test "$with_gnu_ld" != no && break 4362 ;; 4363 *) 4364 test "$with_gnu_ld" != yes && break 4365 ;; 4366 esac 4367 fi 4368 done 4369 IFS="$lt_save_ifs" 4370else 4371 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4372fi]) 4373LD="$lt_cv_path_LD" 4374if test -n "$LD"; then 4375 AC_MSG_RESULT($LD) 4376else 4377 AC_MSG_RESULT(no) 4378fi 4379test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 4380_LT_PATH_LD_GNU 4381AC_SUBST([LD]) 4382 4383_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) 4384])# LT_PATH_LD 4385 4386# Old names: 4387AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) 4388AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) 4389dnl aclocal-1.4 backwards compatibility: 4390dnl AC_DEFUN([AM_PROG_LD], []) 4391dnl AC_DEFUN([AC_PROG_LD], []) 4392 4393 4394# _LT_PATH_LD_GNU 4395#- -------------- 4396m4_defun([_LT_PATH_LD_GNU], 4397[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 4398[# I'd rather use --version here, but apparently some GNU lds only accept -v. 4399case `$LD -v 2>&1 </dev/null` in 4400*GNU* | *'with BFD'*) 4401 lt_cv_prog_gnu_ld=yes 4402 ;; 4403*) 4404 lt_cv_prog_gnu_ld=no 4405 ;; 4406esac]) 4407with_gnu_ld=$lt_cv_prog_gnu_ld 4408])# _LT_PATH_LD_GNU 4409 4410 4411# _LT_CMD_RELOAD 4412# -------------- 4413# find reload flag for linker 4414# -- PORTME Some linkers may need a different reload flag. 4415m4_defun([_LT_CMD_RELOAD], 4416[AC_CACHE_CHECK([for $LD option to reload object files], 4417 lt_cv_ld_reload_flag, 4418 [lt_cv_ld_reload_flag='-r']) 4419reload_flag=$lt_cv_ld_reload_flag 4420case $reload_flag in 4421"" | " "*) ;; 4422*) reload_flag=" $reload_flag" ;; 4423esac 4424reload_cmds='$LD$reload_flag -o $output$reload_objs' 4425case $host_os in 4426 cygwin* | mingw* | pw32* | cegcc*) 4427 if test "$GCC" != yes; then 4428 reload_cmds=false 4429 fi 4430 ;; 4431 darwin*) 4432 if test "$GCC" = yes; then 4433 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4434 else 4435 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4436 fi 4437 ;; 4438esac 4439_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl 4440_LT_TAGDECL([], [reload_cmds], [2])dnl 4441])# _LT_CMD_RELOAD 4442 4443 4444# _LT_CHECK_MAGIC_METHOD 4445# ---------------------- 4446# how to check for library dependencies 4447# -- PORTME fill in with the dynamic library characteristics 4448m4_defun([_LT_CHECK_MAGIC_METHOD], 4449[m4_require([_LT_DECL_EGREP]) 4450m4_require([_LT_DECL_OBJDUMP]) 4451AC_CACHE_CHECK([how to recognize dependent libraries], 4452lt_cv_deplibs_check_method, 4453[lt_cv_file_magic_cmd='$MAGIC_CMD' 4454lt_cv_file_magic_test_file= 4455lt_cv_deplibs_check_method='unknown' 4456# Need to set the preceding variable on all platforms that support 4457# interlibrary dependencies. 4458# 'none' -- dependencies not supported. 4459# `unknown' -- same as none, but documents that we really don't know. 4460# 'pass_all' -- all dependencies passed with no checks. 4461# 'test_compile' -- check by making test program. 4462# 'file_magic [[regex]]' -- check by looking for files in library path 4463# which responds to the $file_magic_cmd with a given extended regex. 4464# If you have `file' or equivalent on your system and you're not sure 4465# whether `pass_all' will *always* work, you probably want this one. 4466 4467case $host_os in 4468aix[[4-9]]*) 4469 lt_cv_deplibs_check_method=pass_all 4470 ;; 4471 4472beos*) 4473 lt_cv_deplibs_check_method=pass_all 4474 ;; 4475 4476bsdi[[45]]*) 4477 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 4478 lt_cv_file_magic_cmd='/usr/bin/file -L' 4479 lt_cv_file_magic_test_file=/shlib/libc.so 4480 ;; 4481 4482cygwin*) 4483 # func_win32_libid is a shell function defined in ltmain.sh 4484 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4485 lt_cv_file_magic_cmd='func_win32_libid' 4486 ;; 4487 4488mingw* | pw32*) 4489 # Base MSYS/MinGW do not provide the 'file' command needed by 4490 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4491 # unless we find 'file', for example because we are cross-compiling. 4492 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 4493 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 4494 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4495 lt_cv_file_magic_cmd='func_win32_libid' 4496 else 4497 # Keep this pattern in sync with the one in func_win32_libid. 4498 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 4499 lt_cv_file_magic_cmd='$OBJDUMP -f' 4500 fi 4501 ;; 4502 4503cegcc*) 4504 # use the weaker test based on 'objdump'. See mingw*. 4505 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4506 lt_cv_file_magic_cmd='$OBJDUMP -f' 4507 ;; 4508 4509darwin* | rhapsody*) 4510 lt_cv_deplibs_check_method=pass_all 4511 ;; 4512 4513freebsd* | dragonfly*) 4514 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4515 case $host_cpu in 4516 i*86 ) 4517 # Not sure whether the presence of OpenBSD here was a mistake. 4518 # Let's accept both of them until this is cleared up. 4519 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 4520 lt_cv_file_magic_cmd=/usr/bin/file 4521 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4522 ;; 4523 esac 4524 else 4525 lt_cv_deplibs_check_method=pass_all 4526 fi 4527 ;; 4528 4529gnu*) 4530 lt_cv_deplibs_check_method=pass_all 4531 ;; 4532 4533haiku*) 4534 lt_cv_deplibs_check_method=pass_all 4535 ;; 4536 4537hpux10.20* | hpux11*) 4538 lt_cv_file_magic_cmd=/usr/bin/file 4539 case $host_cpu in 4540 ia64*) 4541 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 4542 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4543 ;; 4544 hppa*64*) 4545 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] 4546 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4547 ;; 4548 *) 4549 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' 4550 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4551 ;; 4552 esac 4553 ;; 4554 4555interix[[3-9]]*) 4556 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4557 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 4558 ;; 4559 4560irix5* | irix6* | nonstopux*) 4561 case $LD in 4562 *-32|*"-32 ") libmagic=32-bit;; 4563 *-n32|*"-n32 ") libmagic=N32;; 4564 *-64|*"-64 ") libmagic=64-bit;; 4565 *) libmagic=never-match;; 4566 esac 4567 lt_cv_deplibs_check_method=pass_all 4568 ;; 4569 4570# This must be glibc/ELF. 4571linux* | k*bsd*-gnu | kopensolaris*-gnu) 4572 lt_cv_deplibs_check_method=pass_all 4573 ;; 4574 4575netbsd*) 4576 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4577 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 4578 else 4579 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 4580 fi 4581 ;; 4582 4583newos6*) 4584 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 4585 lt_cv_file_magic_cmd=/usr/bin/file 4586 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4587 ;; 4588 4589*nto* | *qnx*) 4590 lt_cv_deplibs_check_method=pass_all 4591 ;; 4592 4593openbsd*) 4594 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4595 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 4596 else 4597 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 4598 fi 4599 ;; 4600 4601osf3* | osf4* | osf5*) 4602 lt_cv_deplibs_check_method=pass_all 4603 ;; 4604 4605rdos*) 4606 lt_cv_deplibs_check_method=pass_all 4607 ;; 4608 4609solaris*) 4610 lt_cv_deplibs_check_method=pass_all 4611 ;; 4612 4613sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4614 lt_cv_deplibs_check_method=pass_all 4615 ;; 4616 4617sysv4 | sysv4.3*) 4618 case $host_vendor in 4619 motorola) 4620 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]]' 4621 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4622 ;; 4623 ncr) 4624 lt_cv_deplibs_check_method=pass_all 4625 ;; 4626 sequent) 4627 lt_cv_file_magic_cmd='/bin/file' 4628 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 4629 ;; 4630 sni) 4631 lt_cv_file_magic_cmd='/bin/file' 4632 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 4633 lt_cv_file_magic_test_file=/lib/libc.so 4634 ;; 4635 siemens) 4636 lt_cv_deplibs_check_method=pass_all 4637 ;; 4638 pc) 4639 lt_cv_deplibs_check_method=pass_all 4640 ;; 4641 esac 4642 ;; 4643 4644tpf*) 4645 lt_cv_deplibs_check_method=pass_all 4646 ;; 4647esac 4648]) 4649 4650file_magic_glob= 4651want_nocaseglob=no 4652if test "$build" = "$host"; then 4653 case $host_os in 4654 mingw* | pw32*) 4655 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 4656 want_nocaseglob=yes 4657 else 4658 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` 4659 fi 4660 ;; 4661 esac 4662fi 4663 4664file_magic_cmd=$lt_cv_file_magic_cmd 4665deplibs_check_method=$lt_cv_deplibs_check_method 4666test -z "$deplibs_check_method" && deplibs_check_method=unknown 4667 4668_LT_DECL([], [deplibs_check_method], [1], 4669 [Method to check whether dependent libraries are shared objects]) 4670_LT_DECL([], [file_magic_cmd], [1], 4671 [Command to use when deplibs_check_method = "file_magic"]) 4672_LT_DECL([], [file_magic_glob], [1], 4673 [How to find potential files when deplibs_check_method = "file_magic"]) 4674_LT_DECL([], [want_nocaseglob], [1], 4675 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) 4676])# _LT_CHECK_MAGIC_METHOD 4677 4678 4679# LT_PATH_NM 4680# ---------- 4681# find the pathname to a BSD- or MS-compatible name lister 4682AC_DEFUN([LT_PATH_NM], 4683[AC_REQUIRE([AC_PROG_CC])dnl 4684AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, 4685[if test -n "$NM"; then 4686 # Let the user override the test. 4687 lt_cv_path_NM="$NM" 4688else 4689 lt_nm_to_check="${ac_tool_prefix}nm" 4690 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4691 lt_nm_to_check="$lt_nm_to_check nm" 4692 fi 4693 for lt_tmp_nm in $lt_nm_to_check; do 4694 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4695 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4696 IFS="$lt_save_ifs" 4697 test -z "$ac_dir" && ac_dir=. 4698 tmp_nm="$ac_dir/$lt_tmp_nm" 4699 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4700 # Check to see if the nm accepts a BSD-compat flag. 4701 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4702 # nm: unknown option "B" ignored 4703 # Tru64's nm complains that /dev/null is an invalid object file 4704 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4705 */dev/null* | *'Invalid file or object type'*) 4706 lt_cv_path_NM="$tmp_nm -B" 4707 break 4708 ;; 4709 *) 4710 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4711 */dev/null*) 4712 lt_cv_path_NM="$tmp_nm -p" 4713 break 4714 ;; 4715 *) 4716 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4717 continue # so that we can try to find one that supports BSD flags 4718 ;; 4719 esac 4720 ;; 4721 esac 4722 fi 4723 done 4724 IFS="$lt_save_ifs" 4725 done 4726 : ${lt_cv_path_NM=no} 4727fi]) 4728if test "$lt_cv_path_NM" != "no"; then 4729 NM="$lt_cv_path_NM" 4730else 4731 # Didn't find any BSD compatible name lister, look for dumpbin. 4732 if test -n "$DUMPBIN"; then : 4733 # Let the user override the test. 4734 else 4735 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) 4736 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4737 *COFF*) 4738 DUMPBIN="$DUMPBIN -symbols" 4739 ;; 4740 *) 4741 DUMPBIN=: 4742 ;; 4743 esac 4744 fi 4745 AC_SUBST([DUMPBIN]) 4746 if test "$DUMPBIN" != ":"; then 4747 NM="$DUMPBIN" 4748 fi 4749fi 4750test -z "$NM" && NM=nm 4751AC_SUBST([NM]) 4752_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl 4753 4754AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], 4755 [lt_cv_nm_interface="BSD nm" 4756 echo "int some_variable = 0;" > conftest.$ac_ext 4757 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) 4758 (eval "$ac_compile" 2>conftest.err) 4759 cat conftest.err >&AS_MESSAGE_LOG_FD 4760 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) 4761 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4762 cat conftest.err >&AS_MESSAGE_LOG_FD 4763 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) 4764 cat conftest.out >&AS_MESSAGE_LOG_FD 4765 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4766 lt_cv_nm_interface="MS dumpbin" 4767 fi 4768 rm -f conftest*]) 4769])# LT_PATH_NM 4770 4771# Old names: 4772AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) 4773AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) 4774dnl aclocal-1.4 backwards compatibility: 4775dnl AC_DEFUN([AM_PROG_NM], []) 4776dnl AC_DEFUN([AC_PROG_NM], []) 4777 4778# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 4779# -------------------------------- 4780# how to determine the name of the shared library 4781# associated with a specific link library. 4782# -- PORTME fill in with the dynamic library characteristics 4783m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], 4784[m4_require([_LT_DECL_EGREP]) 4785m4_require([_LT_DECL_OBJDUMP]) 4786m4_require([_LT_DECL_DLLTOOL]) 4787AC_CACHE_CHECK([how to associate runtime and link libraries], 4788lt_cv_sharedlib_from_linklib_cmd, 4789[lt_cv_sharedlib_from_linklib_cmd='unknown' 4790 4791case $host_os in 4792cygwin* | mingw* | pw32* | cegcc*) 4793 # two different shell functions defined in ltmain.sh 4794 # decide which to use based on capabilities of $DLLTOOL 4795 case `$DLLTOOL --help 2>&1` in 4796 *--identify-strict*) 4797 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 4798 ;; 4799 *) 4800 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 4801 ;; 4802 esac 4803 ;; 4804*) 4805 # fallback: assume linklib IS sharedlib 4806 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 4807 ;; 4808esac 4809]) 4810sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 4811test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 4812 4813_LT_DECL([], [sharedlib_from_linklib_cmd], [1], 4814 [Command to associate shared and link libraries]) 4815])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 4816 4817 4818# _LT_PATH_MANIFEST_TOOL 4819# ---------------------- 4820# locate the manifest tool 4821m4_defun([_LT_PATH_MANIFEST_TOOL], 4822[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) 4823test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 4824AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], 4825 [lt_cv_path_mainfest_tool=no 4826 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD 4827 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 4828 cat conftest.err >&AS_MESSAGE_LOG_FD 4829 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 4830 lt_cv_path_mainfest_tool=yes 4831 fi 4832 rm -f conftest*]) 4833if test "x$lt_cv_path_mainfest_tool" != xyes; then 4834 MANIFEST_TOOL=: 4835fi 4836_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl 4837])# _LT_PATH_MANIFEST_TOOL 4838 4839 4840# LT_LIB_M 4841# -------- 4842# check for math library 4843AC_DEFUN([LT_LIB_M], 4844[AC_REQUIRE([AC_CANONICAL_HOST])dnl 4845LIBM= 4846case $host in 4847*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 4848 # These system don't have libm, or don't need it 4849 ;; 4850*-ncr-sysv4.3*) 4851 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") 4852 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 4853 ;; 4854*) 4855 AC_CHECK_LIB(m, cos, LIBM="-lm") 4856 ;; 4857esac 4858AC_SUBST([LIBM]) 4859])# LT_LIB_M 4860 4861# Old name: 4862AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) 4863dnl aclocal-1.4 backwards compatibility: 4864dnl AC_DEFUN([AC_CHECK_LIBM], []) 4865 4866 4867# _LT_COMPILER_NO_RTTI([TAGNAME]) 4868# ------------------------------- 4869m4_defun([_LT_COMPILER_NO_RTTI], 4870[m4_require([_LT_TAG_COMPILER])dnl 4871 4872_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 4873 4874if test "$GCC" = yes; then 4875 case $cc_basename in 4876 nvcc*) 4877 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; 4878 *) 4879 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; 4880 esac 4881 4882 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 4883 lt_cv_prog_compiler_rtti_exceptions, 4884 [-fno-rtti -fno-exceptions], [], 4885 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 4886fi 4887_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], 4888 [Compiler flag to turn off builtin functions]) 4889])# _LT_COMPILER_NO_RTTI 4890 4891 4892# _LT_CMD_GLOBAL_SYMBOLS 4893# ---------------------- 4894m4_defun([_LT_CMD_GLOBAL_SYMBOLS], 4895[AC_REQUIRE([AC_CANONICAL_HOST])dnl 4896AC_REQUIRE([AC_PROG_CC])dnl 4897AC_REQUIRE([AC_PROG_AWK])dnl 4898AC_REQUIRE([LT_PATH_NM])dnl 4899AC_REQUIRE([LT_PATH_LD])dnl 4900m4_require([_LT_DECL_SED])dnl 4901m4_require([_LT_DECL_EGREP])dnl 4902m4_require([_LT_TAG_COMPILER])dnl 4903 4904# Check for command to grab the raw symbol name followed by C symbol from nm. 4905AC_MSG_CHECKING([command to parse $NM output from $compiler object]) 4906AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 4907[ 4908# These are sane defaults that work on at least a few old systems. 4909# [They come from Ultrix. What could be older than Ultrix?!! ;)] 4910 4911# Character class describing NM global symbol codes. 4912symcode='[[BCDEGRST]]' 4913 4914# Regexp to match symbols that can be accessed directly from C. 4915sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 4916 4917# Define system-specific variables. 4918case $host_os in 4919aix*) 4920 symcode='[[BCDT]]' 4921 ;; 4922cygwin* | mingw* | pw32* | cegcc*) 4923 symcode='[[ABCDGISTW]]' 4924 ;; 4925hpux*) 4926 if test "$host_cpu" = ia64; then 4927 symcode='[[ABCDEGRST]]' 4928 fi 4929 ;; 4930irix* | nonstopux*) 4931 symcode='[[BCDEGRST]]' 4932 ;; 4933osf*) 4934 symcode='[[BCDEGQRST]]' 4935 ;; 4936solaris*) 4937 symcode='[[BDRT]]' 4938 ;; 4939sco3.2v5*) 4940 symcode='[[DT]]' 4941 ;; 4942sysv4.2uw2*) 4943 symcode='[[DT]]' 4944 ;; 4945sysv5* | sco5v6* | unixware* | OpenUNIX*) 4946 symcode='[[ABDT]]' 4947 ;; 4948sysv4) 4949 symcode='[[DFNSTU]]' 4950 ;; 4951esac 4952 4953# If we're using GNU nm, then use its standard symbol codes. 4954case `$NM -V 2>&1` in 4955*GNU* | *'with BFD'*) 4956 symcode='[[ABCDGIRSTW]]' ;; 4957esac 4958 4959# Transform an extracted symbol line into a proper C declaration. 4960# Some systems (esp. on ia64) link data and code symbols differently, 4961# so use this general approach. 4962lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4963 4964# Transform an extracted symbol line into symbol name and symbol address 4965lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" 4966lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 4967 4968# Handle CRLF in mingw tool chain 4969opt_cr= 4970case $build_os in 4971mingw*) 4972 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 4973 ;; 4974esac 4975 4976# Try without a prefix underscore, then with it. 4977for ac_symprfx in "" "_"; do 4978 4979 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 4980 symxfrm="\\1 $ac_symprfx\\2 \\2" 4981 4982 # Write the raw and C identifiers. 4983 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 4984 # Fake it for dumpbin and say T for any non-static function 4985 # and D for any global variable. 4986 # Also find C++ and __fastcall symbols from MSVC++, 4987 # which start with @ or ?. 4988 lt_cv_sys_global_symbol_pipe="$AWK ['"\ 4989" {last_section=section; section=\$ 3};"\ 4990" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 4991" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 4992" \$ 0!~/External *\|/{next};"\ 4993" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 4994" {if(hide[section]) next};"\ 4995" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 4996" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 4997" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 4998" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 4999" ' prfx=^$ac_symprfx]" 5000 else 5001 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5002 fi 5003 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5004 5005 # Check to see that the pipe works correctly. 5006 pipe_works=no 5007 5008 rm -f conftest* 5009 cat > conftest.$ac_ext <<_LT_EOF 5010#ifdef __cplusplus 5011extern "C" { 5012#endif 5013char nm_test_var; 5014void nm_test_func(void); 5015void nm_test_func(void){} 5016#ifdef __cplusplus 5017} 5018#endif 5019int main(){nm_test_var='a';nm_test_func();return(0);} 5020_LT_EOF 5021 5022 if AC_TRY_EVAL(ac_compile); then 5023 # Now try to grab the symbols. 5024 nlist=conftest.nm 5025 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then 5026 # Try sorting and uniquifying the output. 5027 if sort "$nlist" | uniq > "$nlist"T; then 5028 mv -f "$nlist"T "$nlist" 5029 else 5030 rm -f "$nlist"T 5031 fi 5032 5033 # Make sure that we snagged all the symbols we need. 5034 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5035 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5036 cat <<_LT_EOF > conftest.$ac_ext 5037/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 5038#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 5039/* DATA imports from DLLs on WIN32 con't be const, because runtime 5040 relocations are performed -- see ld's documentation on pseudo-relocs. */ 5041# define LT@&t@_DLSYM_CONST 5042#elif defined(__osf__) 5043/* This system does not cope well with relocations in const data. */ 5044# define LT@&t@_DLSYM_CONST 5045#else 5046# define LT@&t@_DLSYM_CONST const 5047#endif 5048 5049#ifdef __cplusplus 5050extern "C" { 5051#endif 5052 5053_LT_EOF 5054 # Now generate the symbol file. 5055 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5056 5057 cat <<_LT_EOF >> conftest.$ac_ext 5058 5059/* The mapping between symbol names and symbols. */ 5060LT@&t@_DLSYM_CONST struct { 5061 const char *name; 5062 void *address; 5063} 5064lt__PROGRAM__LTX_preloaded_symbols[[]] = 5065{ 5066 { "@PROGRAM@", (void *) 0 }, 5067_LT_EOF 5068 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5069 cat <<\_LT_EOF >> conftest.$ac_ext 5070 {0, (void *) 0} 5071}; 5072 5073/* This works around a problem in FreeBSD linker */ 5074#ifdef FREEBSD_WORKAROUND 5075static const void *lt_preloaded_setup() { 5076 return lt__PROGRAM__LTX_preloaded_symbols; 5077} 5078#endif 5079 5080#ifdef __cplusplus 5081} 5082#endif 5083_LT_EOF 5084 # Now try linking the two files. 5085 mv conftest.$ac_objext conftstm.$ac_objext 5086 lt_globsym_save_LIBS=$LIBS 5087 lt_globsym_save_CFLAGS=$CFLAGS 5088 LIBS="conftstm.$ac_objext" 5089 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 5090 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then 5091 pipe_works=yes 5092 fi 5093 LIBS=$lt_globsym_save_LIBS 5094 CFLAGS=$lt_globsym_save_CFLAGS 5095 else 5096 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 5097 fi 5098 else 5099 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 5100 fi 5101 else 5102 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 5103 fi 5104 else 5105 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 5106 cat conftest.$ac_ext >&5 5107 fi 5108 rm -rf conftest* conftst* 5109 5110 # Do not use the global_symbol_pipe unless it works. 5111 if test "$pipe_works" = yes; then 5112 break 5113 else 5114 lt_cv_sys_global_symbol_pipe= 5115 fi 5116done 5117]) 5118if test -z "$lt_cv_sys_global_symbol_pipe"; then 5119 lt_cv_sys_global_symbol_to_cdecl= 5120fi 5121if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5122 AC_MSG_RESULT(failed) 5123else 5124 AC_MSG_RESULT(ok) 5125fi 5126 5127# Response file support. 5128if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5129 nm_file_list_spec='@' 5130elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then 5131 nm_file_list_spec='@' 5132fi 5133 5134_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], 5135 [Take the output of nm and produce a listing of raw symbols and C names]) 5136_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 5137 [Transform the output of nm in a proper C declaration]) 5138_LT_DECL([global_symbol_to_c_name_address], 5139 [lt_cv_sys_global_symbol_to_c_name_address], [1], 5140 [Transform the output of nm in a C name address pair]) 5141_LT_DECL([global_symbol_to_c_name_address_lib_prefix], 5142 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 5143 [Transform the output of nm in a C name address pair when lib prefix is needed]) 5144_LT_DECL([], [nm_file_list_spec], [1], 5145 [Specify filename containing input files for $NM]) 5146]) # _LT_CMD_GLOBAL_SYMBOLS 5147 5148 5149# _LT_COMPILER_PIC([TAGNAME]) 5150# --------------------------- 5151m4_defun([_LT_COMPILER_PIC], 5152[m4_require([_LT_TAG_COMPILER])dnl 5153_LT_TAGVAR(lt_prog_compiler_wl, $1)= 5154_LT_TAGVAR(lt_prog_compiler_pic, $1)= 5155_LT_TAGVAR(lt_prog_compiler_static, $1)= 5156 5157m4_if([$1], [CXX], [ 5158 # C++ specific cases for pic, static, wl, etc. 5159 if test "$GXX" = yes; then 5160 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5161 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5162 5163 case $host_os in 5164 aix*) 5165 # All AIX code is PIC. 5166 if test "$host_cpu" = ia64; then 5167 # AIX 5 now supports IA64 processor 5168 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5169 fi 5170 ;; 5171 5172 amigaos*) 5173 case $host_cpu in 5174 powerpc) 5175 # see comment about AmigaOS4 .so support 5176 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5177 ;; 5178 m68k) 5179 # FIXME: we need at least 68020 code to build shared libraries, but 5180 # adding the `-m68020' flag to GCC prevents building anything better, 5181 # like `-m68040'. 5182 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 5183 ;; 5184 esac 5185 ;; 5186 5187 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 5188 # PIC is the default for these OSes. 5189 ;; 5190 mingw* | cygwin* | os2* | pw32* | cegcc*) 5191 # This hack is so that the source file can tell whether it is being 5192 # built for inclusion in a dll (and should export symbols for example). 5193 # Although the cygwin gcc ignores -fPIC, still need this for old-style 5194 # (--disable-auto-import) libraries 5195 m4_if([$1], [GCJ], [], 5196 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 5197 ;; 5198 darwin* | rhapsody*) 5199 # PIC is the default on this platform 5200 # Common symbols not allowed in MH_DYLIB files 5201 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 5202 ;; 5203 *djgpp*) 5204 # DJGPP does not support shared libraries at all 5205 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 5206 ;; 5207 haiku*) 5208 # PIC is the default for Haiku. 5209 # The "-static" flag exists, but is broken. 5210 _LT_TAGVAR(lt_prog_compiler_static, $1)= 5211 ;; 5212 interix[[3-9]]*) 5213 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 5214 # Instead, we relocate shared libraries at runtime. 5215 ;; 5216 sysv4*MP*) 5217 if test -d /usr/nec; then 5218 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 5219 fi 5220 ;; 5221 hpux*) 5222 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 5223 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 5224 # sets the default TLS model and affects inlining. 5225 case $host_cpu in 5226 hppa*64*) 5227 ;; 5228 *) 5229 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5230 ;; 5231 esac 5232 ;; 5233 *qnx* | *nto*) 5234 # QNX uses GNU C++, but need to define -shared option too, otherwise 5235 # it will coredump. 5236 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 5237 ;; 5238 *) 5239 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5240 ;; 5241 esac 5242 else 5243 case $host_os in 5244 aix[[4-9]]*) 5245 # All AIX code is PIC. 5246 if test "$host_cpu" = ia64; then 5247 # AIX 5 now supports IA64 processor 5248 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5249 else 5250 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 5251 fi 5252 ;; 5253 chorus*) 5254 case $cc_basename in 5255 cxch68*) 5256 # Green Hills C++ Compiler 5257 # _LT_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" 5258 ;; 5259 esac 5260 ;; 5261 mingw* | cygwin* | os2* | pw32* | cegcc*) 5262 # This hack is so that the source file can tell whether it is being 5263 # built for inclusion in a dll (and should export symbols for example). 5264 m4_if([$1], [GCJ], [], 5265 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 5266 ;; 5267 dgux*) 5268 case $cc_basename in 5269 ec++*) 5270 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5271 ;; 5272 ghcx*) 5273 # Green Hills C++ Compiler 5274 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5275 ;; 5276 *) 5277 ;; 5278 esac 5279 ;; 5280 freebsd* | dragonfly*) 5281 # FreeBSD uses GNU C++ 5282 ;; 5283 hpux9* | hpux10* | hpux11*) 5284 case $cc_basename in 5285 CC*) 5286 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5287 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 5288 if test "$host_cpu" != ia64; then 5289 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5290 fi 5291 ;; 5292 aCC*) 5293 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5294 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 5295 case $host_cpu in 5296 hppa*64*|ia64*) 5297 # +Z the default 5298 ;; 5299 *) 5300 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5301 ;; 5302 esac 5303 ;; 5304 *) 5305 ;; 5306 esac 5307 ;; 5308 interix*) 5309 # This is c89, which is MS Visual C++ (no shared libs) 5310 # Anyone wants to do a port? 5311 ;; 5312 irix5* | irix6* | nonstopux*) 5313 case $cc_basename in 5314 CC*) 5315 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5316 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5317 # CC pic flag -KPIC is the default. 5318 ;; 5319 *) 5320 ;; 5321 esac 5322 ;; 5323 linux* | k*bsd*-gnu | kopensolaris*-gnu) 5324 case $cc_basename in 5325 KCC*) 5326 # KAI C++ Compiler 5327 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 5328 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5329 ;; 5330 ecpc* ) 5331 # old Intel C++ for x86_64 which still supported -KPIC. 5332 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5333 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5334 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5335 ;; 5336 icpc* ) 5337 # Intel C++, used to be incompatible with GCC. 5338 # ICC 10 doesn't accept -KPIC any more. 5339 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5340 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5341 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5342 ;; 5343 pgCC* | pgcpp*) 5344 # Portland Group C++ compiler 5345 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5346 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 5347 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5348 ;; 5349 cxx*) 5350 # Compaq C++ 5351 # Make sure the PIC flag is empty. It appears that all Alpha 5352 # Linux and Compaq Tru64 Unix objects are PIC. 5353 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 5354 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5355 ;; 5356 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) 5357 # IBM XL 8.0, 9.0 on PPC and BlueGene 5358 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5359 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 5360 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 5361 ;; 5362 *) 5363 case `$CC -V 2>&1 | sed 5q` in 5364 *Sun\ C*) 5365 # Sun C++ 5.9 5366 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5367 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5368 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5369 ;; 5370 esac 5371 ;; 5372 esac 5373 ;; 5374 lynxos*) 5375 ;; 5376 m88k*) 5377 ;; 5378 mvs*) 5379 case $cc_basename in 5380 cxx*) 5381 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 5382 ;; 5383 *) 5384 ;; 5385 esac 5386 ;; 5387 netbsd*) 5388 ;; 5389 *qnx* | *nto*) 5390 # QNX uses GNU C++, but need to define -shared option too, otherwise 5391 # it will coredump. 5392 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 5393 ;; 5394 osf3* | osf4* | osf5*) 5395 case $cc_basename in 5396 KCC*) 5397 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 5398 ;; 5399 RCC*) 5400 # Rational C++ 2.4.1 5401 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5402 ;; 5403 cxx*) 5404 # Digital/Compaq C++ 5405 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5406 # Make sure the PIC flag is empty. It appears that all Alpha 5407 # Linux and Compaq Tru64 Unix objects are PIC. 5408 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 5409 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5410 ;; 5411 *) 5412 ;; 5413 esac 5414 ;; 5415 psos*) 5416 ;; 5417 solaris*) 5418 case $cc_basename in 5419 CC* | sunCC*) 5420 # Sun C++ 4.2, 5.x and Centerline C++ 5421 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5422 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5423 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5424 ;; 5425 gcx*) 5426 # Green Hills C++ Compiler 5427 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 5428 ;; 5429 *) 5430 ;; 5431 esac 5432 ;; 5433 sunos4*) 5434 case $cc_basename in 5435 CC*) 5436 # Sun C++ 4.x 5437 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5438 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5439 ;; 5440 lcc*) 5441 # Lucid 5442 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5443 ;; 5444 *) 5445 ;; 5446 esac 5447 ;; 5448 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 5449 case $cc_basename in 5450 CC*) 5451 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5452 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5453 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5454 ;; 5455 esac 5456 ;; 5457 tandem*) 5458 case $cc_basename in 5459 NCC*) 5460 # NonStop-UX NCC 3.20 5461 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5462 ;; 5463 *) 5464 ;; 5465 esac 5466 ;; 5467 vxworks*) 5468 ;; 5469 *) 5470 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5471 ;; 5472 esac 5473 fi 5474], 5475[ 5476 if test "$GCC" = yes; then 5477 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5478 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5479 5480 case $host_os in 5481 aix*) 5482 # All AIX code is PIC. 5483 if test "$host_cpu" = ia64; then 5484 # AIX 5 now supports IA64 processor 5485 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5486 fi 5487 ;; 5488 5489 amigaos*) 5490 case $host_cpu in 5491 powerpc) 5492 # see comment about AmigaOS4 .so support 5493 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5494 ;; 5495 m68k) 5496 # FIXME: we need at least 68020 code to build shared libraries, but 5497 # adding the `-m68020' flag to GCC prevents building anything better, 5498 # like `-m68040'. 5499 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 5500 ;; 5501 esac 5502 ;; 5503 5504 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 5505 # PIC is the default for these OSes. 5506 ;; 5507 5508 mingw* | cygwin* | pw32* | os2* | cegcc*) 5509 # This hack is so that the source file can tell whether it is being 5510 # built for inclusion in a dll (and should export symbols for example). 5511 # Although the cygwin gcc ignores -fPIC, still need this for old-style 5512 # (--disable-auto-import) libraries 5513 m4_if([$1], [GCJ], [], 5514 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 5515 ;; 5516 5517 darwin* | rhapsody*) 5518 # PIC is the default on this platform 5519 # Common symbols not allowed in MH_DYLIB files 5520 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 5521 ;; 5522 5523 haiku*) 5524 # PIC is the default for Haiku. 5525 # The "-static" flag exists, but is broken. 5526 _LT_TAGVAR(lt_prog_compiler_static, $1)= 5527 ;; 5528 5529 hpux*) 5530 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 5531 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 5532 # sets the default TLS model and affects inlining. 5533 case $host_cpu in 5534 hppa*64*) 5535 # +Z the default 5536 ;; 5537 *) 5538 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5539 ;; 5540 esac 5541 ;; 5542 5543 interix[[3-9]]*) 5544 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 5545 # Instead, we relocate shared libraries at runtime. 5546 ;; 5547 5548 msdosdjgpp*) 5549 # Just because we use GCC doesn't mean we suddenly get shared libraries 5550 # on systems that don't support them. 5551 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5552 enable_shared=no 5553 ;; 5554 5555 *nto* | *qnx*) 5556 # QNX uses GNU C++, but need to define -shared option too, otherwise 5557 # it will coredump. 5558 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 5559 ;; 5560 5561 sysv4*MP*) 5562 if test -d /usr/nec; then 5563 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 5564 fi 5565 ;; 5566 5567 *) 5568 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5569 ;; 5570 esac 5571 5572 case $cc_basename in 5573 nvcc*) # Cuda Compiler Driver 2.2 5574 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' 5575 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 5576 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" 5577 fi 5578 ;; 5579 esac 5580 else 5581 # PORTME Check for flag to pass linker flags through the system compiler. 5582 case $host_os in 5583 aix*) 5584 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5585 if test "$host_cpu" = ia64; then 5586 # AIX 5 now supports IA64 processor 5587 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5588 else 5589 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 5590 fi 5591 ;; 5592 5593 mingw* | cygwin* | pw32* | os2* | cegcc*) 5594 # This hack is so that the source file can tell whether it is being 5595 # built for inclusion in a dll (and should export symbols for example). 5596 m4_if([$1], [GCJ], [], 5597 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 5598 ;; 5599 5600 hpux9* | hpux10* | hpux11*) 5601 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5602 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5603 # not for PA HP-UX. 5604 case $host_cpu in 5605 hppa*64*|ia64*) 5606 # +Z the default 5607 ;; 5608 *) 5609 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5610 ;; 5611 esac 5612 # Is there a better lt_prog_compiler_static that works with the bundled CC? 5613 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 5614 ;; 5615 5616 irix5* | irix6* | nonstopux*) 5617 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5618 # PIC (with -KPIC) is the default. 5619 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5620 ;; 5621 5622 linux* | k*bsd*-gnu | kopensolaris*-gnu) 5623 case $cc_basename in 5624 # old Intel for x86_64 which still supported -KPIC. 5625 ecc*) 5626 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5627 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5628 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5629 ;; 5630 # icc used to be incompatible with GCC. 5631 # ICC 10 doesn't accept -KPIC any more. 5632 icc* | ifort*) 5633 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5634 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5635 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5636 ;; 5637 # Lahey Fortran 8.1. 5638 lf95*) 5639 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5640 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' 5641 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 5642 ;; 5643 nagfor*) 5644 # NAG Fortran compiler 5645 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' 5646 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 5647 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5648 ;; 5649 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 5650 # Portland Group compilers (*not* the Pentium gcc compiler, 5651 # which looks to be a dead project) 5652 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5653 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 5654 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5655 ;; 5656 ccc*) 5657 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5658 # All Alpha code is PIC. 5659 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5660 ;; 5661 xl* | bgxl* | bgf* | mpixl*) 5662 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 5663 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5664 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 5665 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 5666 ;; 5667 *) 5668 case `$CC -V 2>&1 | sed 5q` in 5669 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) 5670 # Sun Fortran 8.3 passes all unrecognized flags to the linker 5671 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5672 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5673 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' 5674 ;; 5675 *Sun\ F* | *Sun*Fortran*) 5676 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5677 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5678 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5679 ;; 5680 *Sun\ C*) 5681 # Sun C 5.9 5682 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5683 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5684 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5685 ;; 5686 *Intel*\ [[CF]]*Compiler*) 5687 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5688 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5689 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5690 ;; 5691 *Portland\ Group*) 5692 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5693 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 5694 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5695 ;; 5696 esac 5697 ;; 5698 esac 5699 ;; 5700 5701 newsos6) 5702 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5703 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5704 ;; 5705 5706 *nto* | *qnx*) 5707 # QNX uses GNU C++, but need to define -shared option too, otherwise 5708 # it will coredump. 5709 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 5710 ;; 5711 5712 osf3* | osf4* | osf5*) 5713 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5714 # All OSF/1 code is PIC. 5715 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5716 ;; 5717 5718 rdos*) 5719 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5720 ;; 5721 5722 solaris*) 5723 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5724 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5725 case $cc_basename in 5726 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 5727 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 5728 *) 5729 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 5730 esac 5731 ;; 5732 5733 sunos4*) 5734 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5735 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 5736 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5737 ;; 5738 5739 sysv4 | sysv4.2uw2* | sysv4.3*) 5740 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5741 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5742 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5743 ;; 5744 5745 sysv4*MP*) 5746 if test -d /usr/nec ;then 5747 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 5748 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5749 fi 5750 ;; 5751 5752 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 5753 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5754 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5755 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5756 ;; 5757 5758 unicos*) 5759 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5760 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5761 ;; 5762 5763 uts4*) 5764 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5765 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5766 ;; 5767 5768 *) 5769 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5770 ;; 5771 esac 5772 fi 5773]) 5774case $host_os in 5775 # For platforms which do not support PIC, -DPIC is meaningless: 5776 *djgpp*) 5777 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 5778 ;; 5779 *) 5780 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" 5781 ;; 5782esac 5783 5784AC_CACHE_CHECK([for $compiler option to produce PIC], 5785 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], 5786 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) 5787_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) 5788 5789# 5790# Check to make sure the PIC flag actually works. 5791# 5792if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 5793 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], 5794 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], 5795 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], 5796 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in 5797 "" | " "*) ;; 5798 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; 5799 esac], 5800 [_LT_TAGVAR(lt_prog_compiler_pic, $1)= 5801 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 5802fi 5803_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], 5804 [Additional compiler flags for building library objects]) 5805 5806_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], 5807 [How to pass a linker flag through the compiler]) 5808# 5809# Check to make sure the static flag actually works. 5810# 5811wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" 5812_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 5813 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), 5814 $lt_tmp_static_flag, 5815 [], 5816 [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) 5817_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], 5818 [Compiler flag to prevent dynamic linking]) 5819])# _LT_COMPILER_PIC 5820 5821 5822# _LT_LINKER_SHLIBS([TAGNAME]) 5823# ---------------------------- 5824# See if the linker supports building shared libraries. 5825m4_defun([_LT_LINKER_SHLIBS], 5826[AC_REQUIRE([LT_PATH_LD])dnl 5827AC_REQUIRE([LT_PATH_NM])dnl 5828m4_require([_LT_PATH_MANIFEST_TOOL])dnl 5829m4_require([_LT_FILEUTILS_DEFAULTS])dnl 5830m4_require([_LT_DECL_EGREP])dnl 5831m4_require([_LT_DECL_SED])dnl 5832m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 5833m4_require([_LT_TAG_COMPILER])dnl 5834AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 5835m4_if([$1], [CXX], [ 5836 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5837 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 5838 case $host_os in 5839 aix[[4-9]]*) 5840 # If we're using GNU nm, then we don't want the "-C" option. 5841 # -C means demangle to AIX nm, but means don't demangle with GNU nm 5842 # Also, AIX nm treats weak defined symbols like other global defined 5843 # symbols, whereas GNU nm marks them as "W". 5844 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 5845 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 5846 else 5847 _LT_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' 5848 fi 5849 ;; 5850 pw32*) 5851 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 5852 ;; 5853 cygwin* | mingw* | cegcc*) 5854 case $cc_basename in 5855 cl*) 5856 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 5857 ;; 5858 *) 5859 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' 5860 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 5861 ;; 5862 esac 5863 ;; 5864 *) 5865 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5866 ;; 5867 esac 5868], [ 5869 runpath_var= 5870 _LT_TAGVAR(allow_undefined_flag, $1)= 5871 _LT_TAGVAR(always_export_symbols, $1)=no 5872 _LT_TAGVAR(archive_cmds, $1)= 5873 _LT_TAGVAR(archive_expsym_cmds, $1)= 5874 _LT_TAGVAR(compiler_needs_object, $1)=no 5875 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 5876 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 5877 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5878 _LT_TAGVAR(hardcode_automatic, $1)=no 5879 _LT_TAGVAR(hardcode_direct, $1)=no 5880 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 5881 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 5882 _LT_TAGVAR(hardcode_libdir_separator, $1)= 5883 _LT_TAGVAR(hardcode_minus_L, $1)=no 5884 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 5885 _LT_TAGVAR(inherit_rpath, $1)=no 5886 _LT_TAGVAR(link_all_deplibs, $1)=unknown 5887 _LT_TAGVAR(module_cmds, $1)= 5888 _LT_TAGVAR(module_expsym_cmds, $1)= 5889 _LT_TAGVAR(old_archive_from_new_cmds, $1)= 5890 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= 5891 _LT_TAGVAR(thread_safe_flag_spec, $1)= 5892 _LT_TAGVAR(whole_archive_flag_spec, $1)= 5893 # include_expsyms should be a list of space-separated symbols to be *always* 5894 # included in the symbol list 5895 _LT_TAGVAR(include_expsyms, $1)= 5896 # exclude_expsyms can be an extended regexp of symbols to exclude 5897 # it will be wrapped by ` (' and `)$', so one must not match beginning or 5898 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 5899 # as well as any symbol that contains `d'. 5900 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 5901 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 5902 # platforms (ab)use it in PIC code, but their linkers get confused if 5903 # the symbol is explicitly referenced. Since portable code cannot 5904 # rely on this symbol name, it's probably fine to never include it in 5905 # preloaded symbol tables. 5906 # Exclude shared library initialization/finalization symbols. 5907dnl Note also adjust exclude_expsyms for C++ above. 5908 extract_expsyms_cmds= 5909 5910 case $host_os in 5911 cygwin* | mingw* | pw32* | cegcc*) 5912 # FIXME: the MSVC++ port hasn't been tested in a loooong time 5913 # When not using gcc, we currently assume that we are using 5914 # Microsoft Visual C++. 5915 if test "$GCC" != yes; then 5916 with_gnu_ld=no 5917 fi 5918 ;; 5919 interix*) 5920 # we just hope/assume this is gcc and not c89 (= MSVC++) 5921 with_gnu_ld=yes 5922 ;; 5923 openbsd*) 5924 with_gnu_ld=no 5925 ;; 5926 esac 5927 5928 _LT_TAGVAR(ld_shlibs, $1)=yes 5929 5930 # On some targets, GNU ld is compatible enough with the native linker 5931 # that we're better off using the native interface for both. 5932 lt_use_gnu_ld_interface=no 5933 if test "$with_gnu_ld" = yes; then 5934 case $host_os in 5935 aix*) 5936 # The AIX port of GNU ld has always aspired to compatibility 5937 # with the native linker. However, as the warning in the GNU ld 5938 # block says, versions before 2.19.5* couldn't really create working 5939 # shared libraries, regardless of the interface used. 5940 case `$LD -v 2>&1` in 5941 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 5942 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; 5943 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; 5944 *) 5945 lt_use_gnu_ld_interface=yes 5946 ;; 5947 esac 5948 ;; 5949 *) 5950 lt_use_gnu_ld_interface=yes 5951 ;; 5952 esac 5953 fi 5954 5955 if test "$lt_use_gnu_ld_interface" = yes; then 5956 # If archive_cmds runs LD, not CC, wlarc should be empty 5957 wlarc='${wl}' 5958 5959 # Set some defaults for GNU ld with shared library support. These 5960 # are reset later if shared libraries are not supported. Putting them 5961 # here allows them to be overridden if necessary. 5962 runpath_var=LD_RUN_PATH 5963 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5964 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 5965 # ancient GNU ld didn't support --whole-archive et. al. 5966 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 5967 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 5968 else 5969 _LT_TAGVAR(whole_archive_flag_spec, $1)= 5970 fi 5971 supports_anon_versioning=no 5972 case `$LD -v 2>&1` in 5973 *GNU\ gold*) supports_anon_versioning=yes ;; 5974 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 5975 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 5976 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 5977 *\ 2.11.*) ;; # other 2.11 versions 5978 *) supports_anon_versioning=yes ;; 5979 esac 5980 5981 # See if GNU ld supports shared libraries. 5982 case $host_os in 5983 aix[[3-9]]*) 5984 # On AIX/PPC, the GNU linker is very broken 5985 if test "$host_cpu" != ia64; then 5986 _LT_TAGVAR(ld_shlibs, $1)=no 5987 cat <<_LT_EOF 1>&2 5988 5989*** Warning: the GNU linker, at least up to release 2.19, is reported 5990*** to be unable to reliably create shared libraries on AIX. 5991*** Therefore, libtool is disabling shared libraries support. If you 5992*** really care for shared libraries, you may want to install binutils 5993*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 5994*** You will then need to restart the configuration process. 5995 5996_LT_EOF 5997 fi 5998 ;; 5999 6000 amigaos*) 6001 case $host_cpu in 6002 powerpc) 6003 # see comment about AmigaOS4 .so support 6004 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6005 _LT_TAGVAR(archive_expsym_cmds, $1)='' 6006 ;; 6007 m68k) 6008 _LT_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)' 6009 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6010 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6011 ;; 6012 esac 6013 ;; 6014 6015 beos*) 6016 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6017 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6018 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6019 # support --undefined. This deserves some investigation. FIXME 6020 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6021 else 6022 _LT_TAGVAR(ld_shlibs, $1)=no 6023 fi 6024 ;; 6025 6026 cygwin* | mingw* | pw32* | cegcc*) 6027 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 6028 # as there is no search path for DLLs. 6029 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6030 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' 6031 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6032 _LT_TAGVAR(always_export_symbols, $1)=no 6033 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6034 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' 6035 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 6036 6037 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 6038 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6039 # If the export-symbols file already is a .def file (1st line 6040 # is EXPORTS), use it as is; otherwise, prepend... 6041 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6042 cp $export_symbols $output_objdir/$soname.def; 6043 else 6044 echo EXPORTS > $output_objdir/$soname.def; 6045 cat $export_symbols >> $output_objdir/$soname.def; 6046 fi~ 6047 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6048 else 6049 _LT_TAGVAR(ld_shlibs, $1)=no 6050 fi 6051 ;; 6052 6053 haiku*) 6054 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6055 _LT_TAGVAR(link_all_deplibs, $1)=yes 6056 ;; 6057 6058 interix[[3-9]]*) 6059 _LT_TAGVAR(hardcode_direct, $1)=no 6060 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6061 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6062 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6063 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 6064 # Instead, shared libraries are loaded at an image base (0x10000000 by 6065 # default) and relocated if they conflict, which is a slow very memory 6066 # consuming and fragmenting process. To avoid this, we pick a random, 6067 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 6068 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 6069 _LT_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' 6070 _LT_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' 6071 ;; 6072 6073 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 6074 tmp_diet=no 6075 if test "$host_os" = linux-dietlibc; then 6076 case $cc_basename in 6077 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 6078 esac 6079 fi 6080 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 6081 && test "$tmp_diet" = no 6082 then 6083 tmp_addflag=' $pic_flag' 6084 tmp_sharedflag='-shared' 6085 case $cc_basename,$host_cpu in 6086 pgcc*) # Portland Group C compiler 6087 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 6088 tmp_addflag=' $pic_flag' 6089 ;; 6090 pgf77* | pgf90* | pgf95* | pgfortran*) 6091 # Portland Group f77 and f90 compilers 6092 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 6093 tmp_addflag=' $pic_flag -Mnomain' ;; 6094 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 6095 tmp_addflag=' -i_dynamic' ;; 6096 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 6097 tmp_addflag=' -i_dynamic -nofor_main' ;; 6098 ifc* | ifort*) # Intel Fortran compiler 6099 tmp_addflag=' -nofor_main' ;; 6100 lf95*) # Lahey Fortran 8.1 6101 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6102 tmp_sharedflag='--shared' ;; 6103 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 6104 tmp_sharedflag='-qmkshrobj' 6105 tmp_addflag= ;; 6106 nvcc*) # Cuda Compiler Driver 2.2 6107 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 6108 _LT_TAGVAR(compiler_needs_object, $1)=yes 6109 ;; 6110 esac 6111 case `$CC -V 2>&1 | sed 5q` in 6112 *Sun\ C*) # Sun C 5.9 6113 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 6114 _LT_TAGVAR(compiler_needs_object, $1)=yes 6115 tmp_sharedflag='-G' ;; 6116 *Sun\ F*) # Sun Fortran 8.3 6117 tmp_sharedflag='-G' ;; 6118 esac 6119 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6120 6121 if test "x$supports_anon_versioning" = xyes; then 6122 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 6123 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6124 echo "local: *; };" >> $output_objdir/$libname.ver~ 6125 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6126 fi 6127 6128 case $cc_basename in 6129 xlf* | bgf* | bgxlf* | mpixlf*) 6130 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 6131 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' 6132 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6133 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 6134 if test "x$supports_anon_versioning" = xyes; then 6135 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 6136 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6137 echo "local: *; };" >> $output_objdir/$libname.ver~ 6138 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 6139 fi 6140 ;; 6141 esac 6142 else 6143 _LT_TAGVAR(ld_shlibs, $1)=no 6144 fi 6145 ;; 6146 6147 netbsd*) 6148 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 6149 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6150 wlarc= 6151 else 6152 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6153 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6154 fi 6155 ;; 6156 6157 solaris*) 6158 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 6159 _LT_TAGVAR(ld_shlibs, $1)=no 6160 cat <<_LT_EOF 1>&2 6161 6162*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6163*** create shared libraries on Solaris systems. Therefore, libtool 6164*** is disabling shared libraries support. We urge you to upgrade GNU 6165*** binutils to release 2.9.1 or newer. Another option is to modify 6166*** your PATH or compiler configuration so that the native linker is 6167*** used, and then restart. 6168 6169_LT_EOF 6170 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6171 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6172 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6173 else 6174 _LT_TAGVAR(ld_shlibs, $1)=no 6175 fi 6176 ;; 6177 6178 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 6179 case `$LD -v 2>&1` in 6180 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 6181 _LT_TAGVAR(ld_shlibs, $1)=no 6182 cat <<_LT_EOF 1>&2 6183 6184*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 6185*** reliably create shared libraries on SCO systems. Therefore, libtool 6186*** is disabling shared libraries support. We urge you to upgrade GNU 6187*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 6188*** your PATH or compiler configuration so that the native linker is 6189*** used, and then restart. 6190 6191_LT_EOF 6192 ;; 6193 *) 6194 # For security reasons, it is highly recommended that you always 6195 # use absolute paths for naming shared libraries, and exclude the 6196 # DT_RUNPATH tag from executables and libraries. But doing so 6197 # requires that you compile everything twice, which is a pain. 6198 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6199 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6200 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6201 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6202 else 6203 _LT_TAGVAR(ld_shlibs, $1)=no 6204 fi 6205 ;; 6206 esac 6207 ;; 6208 6209 sunos4*) 6210 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6211 wlarc= 6212 _LT_TAGVAR(hardcode_direct, $1)=yes 6213 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6214 ;; 6215 6216 *) 6217 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6218 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6219 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6220 else 6221 _LT_TAGVAR(ld_shlibs, $1)=no 6222 fi 6223 ;; 6224 esac 6225 6226 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then 6227 runpath_var= 6228 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 6229 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 6230 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6231 fi 6232 else 6233 # PORTME fill in a description of your system's linker (not GNU ld) 6234 case $host_os in 6235 aix3*) 6236 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6237 _LT_TAGVAR(always_export_symbols, $1)=yes 6238 _LT_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' 6239 # Note: this linker hardcodes the directories in LIBPATH if there 6240 # are no directories specified by -L. 6241 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6242 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 6243 # Neither direct hardcoding nor static linking is supported with a 6244 # broken collect2. 6245 _LT_TAGVAR(hardcode_direct, $1)=unsupported 6246 fi 6247 ;; 6248 6249 aix[[4-9]]*) 6250 if test "$host_cpu" = ia64; then 6251 # On IA64, the linker does run time linking by default, so we don't 6252 # have to do anything special. 6253 aix_use_runtimelinking=no 6254 exp_sym_flag='-Bexport' 6255 no_entry_flag="" 6256 else 6257 # If we're using GNU nm, then we don't want the "-C" option. 6258 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6259 # Also, AIX nm treats weak defined symbols like other global 6260 # defined symbols, whereas GNU nm marks them as "W". 6261 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 6262 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 6263 else 6264 _LT_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' 6265 fi 6266 aix_use_runtimelinking=no 6267 6268 # Test if we are trying to use run time linking or normal 6269 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6270 # need to do runtime linking. 6271 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 6272 for ld_flag in $LDFLAGS; do 6273 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6274 aix_use_runtimelinking=yes 6275 break 6276 fi 6277 done 6278 ;; 6279 esac 6280 6281 exp_sym_flag='-bexport' 6282 no_entry_flag='-bnoentry' 6283 fi 6284 6285 # When large executables or shared objects are built, AIX ld can 6286 # have problems creating the table of contents. If linking a library 6287 # or program results in "error TOC overflow" add -mminimal-toc to 6288 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6289 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6290 6291 _LT_TAGVAR(archive_cmds, $1)='' 6292 _LT_TAGVAR(hardcode_direct, $1)=yes 6293 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6294 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 6295 _LT_TAGVAR(link_all_deplibs, $1)=yes 6296 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 6297 6298 if test "$GCC" = yes; then 6299 case $host_os in aix4.[[012]]|aix4.[[012]].*) 6300 # We only want to do this on AIX 4.2 and lower, the check 6301 # below for broken collect2 doesn't work under 4.3+ 6302 collect2name=`${CC} -print-prog-name=collect2` 6303 if test -f "$collect2name" && 6304 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 6305 then 6306 # We have reworked collect2 6307 : 6308 else 6309 # We have old collect2 6310 _LT_TAGVAR(hardcode_direct, $1)=unsupported 6311 # It fails to find uninstalled libraries when the uninstalled 6312 # path is not listed in the libpath. Setting hardcode_minus_L 6313 # to unsupported forces relinking 6314 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6315 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6316 _LT_TAGVAR(hardcode_libdir_separator, $1)= 6317 fi 6318 ;; 6319 esac 6320 shared_flag='-shared' 6321 if test "$aix_use_runtimelinking" = yes; then 6322 shared_flag="$shared_flag "'${wl}-G' 6323 fi 6324 else 6325 # not using gcc 6326 if test "$host_cpu" = ia64; then 6327 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6328 # chokes on -Wl,-G. The following line is correct: 6329 shared_flag='-G' 6330 else 6331 if test "$aix_use_runtimelinking" = yes; then 6332 shared_flag='${wl}-G' 6333 else 6334 shared_flag='${wl}-bM:SRE' 6335 fi 6336 fi 6337 fi 6338 6339 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 6340 # It seems that -bexpall does not export symbols beginning with 6341 # underscore (_), so it is better to generate a list of symbols to export. 6342 _LT_TAGVAR(always_export_symbols, $1)=yes 6343 if test "$aix_use_runtimelinking" = yes; then 6344 # Warning - without using the other runtime loading flags (-brtl), 6345 # -berok will link without error, but may produce a broken library. 6346 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 6347 # Determine the default libpath from the value encoded in an 6348 # empty executable. 6349 _LT_SYS_MODULE_PATH_AIX([$1]) 6350 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 6351 _LT_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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 6352 else 6353 if test "$host_cpu" = ia64; then 6354 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 6355 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 6356 _LT_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" 6357 else 6358 # Determine the default libpath from the value encoded in an 6359 # empty executable. 6360 _LT_SYS_MODULE_PATH_AIX([$1]) 6361 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 6362 # Warning - without using the other run time loading flags, 6363 # -berok will link without error, but may produce a broken library. 6364 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 6365 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 6366 if test "$with_gnu_ld" = yes; then 6367 # We only use this code for GNU lds that support --whole-archive. 6368 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 6369 else 6370 # Exported symbols can be pulled into shared objects from archives 6371 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 6372 fi 6373 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6374 # This is similar to how AIX traditionally builds its shared libraries. 6375 _LT_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' 6376 fi 6377 fi 6378 ;; 6379 6380 amigaos*) 6381 case $host_cpu in 6382 powerpc) 6383 # see comment about AmigaOS4 .so support 6384 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6385 _LT_TAGVAR(archive_expsym_cmds, $1)='' 6386 ;; 6387 m68k) 6388 _LT_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)' 6389 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6390 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6391 ;; 6392 esac 6393 ;; 6394 6395 bsdi[[45]]*) 6396 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 6397 ;; 6398 6399 cygwin* | mingw* | pw32* | cegcc*) 6400 # When not using gcc, we currently assume that we are using 6401 # Microsoft Visual C++. 6402 # hardcode_libdir_flag_spec is actually meaningless, as there is 6403 # no search path for DLLs. 6404 case $cc_basename in 6405 cl*) 6406 # Native MSVC 6407 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 6408 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6409 _LT_TAGVAR(always_export_symbols, $1)=yes 6410 _LT_TAGVAR(file_list_spec, $1)='@' 6411 # Tell ltmain to make .lib files, not .a files. 6412 libext=lib 6413 # Tell ltmain to make .dll files, not .so files. 6414 shrext_cmds=".dll" 6415 # FIXME: Setting linknames here is a bad hack. 6416 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 6417 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6418 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 6419 else 6420 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 6421 fi~ 6422 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 6423 linknames=' 6424 # The linker will not automatically build a static lib if we build a DLL. 6425 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 6426 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6427 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 6428 _LT_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' 6429 # Don't use ranlib 6430 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 6431 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 6432 lt_tool_outputfile="@TOOL_OUTPUT@"~ 6433 case $lt_outputfile in 6434 *.exe|*.EXE) ;; 6435 *) 6436 lt_outputfile="$lt_outputfile.exe" 6437 lt_tool_outputfile="$lt_tool_outputfile.exe" 6438 ;; 6439 esac~ 6440 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 6441 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 6442 $RM "$lt_outputfile.manifest"; 6443 fi' 6444 ;; 6445 *) 6446 # Assume MSVC wrapper 6447 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 6448 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6449 # Tell ltmain to make .lib files, not .a files. 6450 libext=lib 6451 # Tell ltmain to make .dll files, not .so files. 6452 shrext_cmds=".dll" 6453 # FIXME: Setting linknames here is a bad hack. 6454 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 6455 # The linker will automatically build a .lib file if we build a DLL. 6456 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 6457 # FIXME: Should let the user specify the lib program. 6458 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 6459 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6460 ;; 6461 esac 6462 ;; 6463 6464 darwin* | rhapsody*) 6465 _LT_DARWIN_LINKER_FEATURES($1) 6466 ;; 6467 6468 dgux*) 6469 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6470 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6471 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6472 ;; 6473 6474 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 6475 # support. Future versions do this automatically, but an explicit c++rt0.o 6476 # does not break anything, and helps significantly (at the cost of a little 6477 # extra space). 6478 freebsd2.2*) 6479 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 6480 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6481 _LT_TAGVAR(hardcode_direct, $1)=yes 6482 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6483 ;; 6484 6485 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 6486 freebsd2.*) 6487 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6488 _LT_TAGVAR(hardcode_direct, $1)=yes 6489 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6490 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6491 ;; 6492 6493 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 6494 freebsd* | dragonfly*) 6495 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6496 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6497 _LT_TAGVAR(hardcode_direct, $1)=yes 6498 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6499 ;; 6500 6501 hpux9*) 6502 if test "$GCC" = yes; then 6503 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 6504 else 6505 _LT_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' 6506 fi 6507 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6508 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6509 _LT_TAGVAR(hardcode_direct, $1)=yes 6510 6511 # hardcode_minus_L: Not really in the search PATH, 6512 # but as the default location of the library. 6513 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6514 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6515 ;; 6516 6517 hpux10*) 6518 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 6519 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6520 else 6521 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 6522 fi 6523 if test "$with_gnu_ld" = no; then 6524 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6525 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6526 _LT_TAGVAR(hardcode_direct, $1)=yes 6527 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6528 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6529 # hardcode_minus_L: Not really in the search PATH, 6530 # but as the default location of the library. 6531 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6532 fi 6533 ;; 6534 6535 hpux11*) 6536 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 6537 case $host_cpu in 6538 hppa*64*) 6539 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6540 ;; 6541 ia64*) 6542 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 6543 ;; 6544 *) 6545 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6546 ;; 6547 esac 6548 else 6549 case $host_cpu in 6550 hppa*64*) 6551 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6552 ;; 6553 ia64*) 6554 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 6555 ;; 6556 *) 6557 m4_if($1, [], [ 6558 # Older versions of the 11.00 compiler do not understand -b yet 6559 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 6560 _LT_LINKER_OPTION([if $CC understands -b], 6561 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], 6562 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], 6563 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], 6564 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) 6565 ;; 6566 esac 6567 fi 6568 if test "$with_gnu_ld" = no; then 6569 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6570 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6571 6572 case $host_cpu in 6573 hppa*64*|ia64*) 6574 _LT_TAGVAR(hardcode_direct, $1)=no 6575 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6576 ;; 6577 *) 6578 _LT_TAGVAR(hardcode_direct, $1)=yes 6579 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6580 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6581 6582 # hardcode_minus_L: Not really in the search PATH, 6583 # but as the default location of the library. 6584 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6585 ;; 6586 esac 6587 fi 6588 ;; 6589 6590 irix5* | irix6* | nonstopux*) 6591 if test "$GCC" = yes; then 6592 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6593 # Try to use the -exported_symbol ld option, if it does not 6594 # work, assume that -exports_file does not work either and 6595 # implicitly export all symbols. 6596 # This should be the same for all languages, so no per-tag cache variable. 6597 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], 6598 [lt_cv_irix_exported_symbol], 6599 [save_LDFLAGS="$LDFLAGS" 6600 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 6601 AC_LINK_IFELSE( 6602 [AC_LANG_SOURCE( 6603 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], 6604 [C++], [[int foo (void) { return 0; }]], 6605 [Fortran 77], [[ 6606 subroutine foo 6607 end]], 6608 [Fortran], [[ 6609 subroutine foo 6610 end]])])], 6611 [lt_cv_irix_exported_symbol=yes], 6612 [lt_cv_irix_exported_symbol=no]) 6613 LDFLAGS="$save_LDFLAGS"]) 6614 if test "$lt_cv_irix_exported_symbol" = yes; then 6615 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 6616 fi 6617 else 6618 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 6619 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 6620 fi 6621 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 6622 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6623 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6624 _LT_TAGVAR(inherit_rpath, $1)=yes 6625 _LT_TAGVAR(link_all_deplibs, $1)=yes 6626 ;; 6627 6628 netbsd*) 6629 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 6630 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 6631 else 6632 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 6633 fi 6634 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6635 _LT_TAGVAR(hardcode_direct, $1)=yes 6636 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6637 ;; 6638 6639 newsos6) 6640 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6641 _LT_TAGVAR(hardcode_direct, $1)=yes 6642 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6643 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6644 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6645 ;; 6646 6647 *nto* | *qnx*) 6648 ;; 6649 6650 openbsd*) 6651 if test -f /usr/libexec/ld.so; then 6652 _LT_TAGVAR(hardcode_direct, $1)=yes 6653 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6654 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6655 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6656 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6657 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 6658 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6659 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6660 else 6661 case $host_os in 6662 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 6663 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6664 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6665 ;; 6666 *) 6667 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6668 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6669 ;; 6670 esac 6671 fi 6672 else 6673 _LT_TAGVAR(ld_shlibs, $1)=no 6674 fi 6675 ;; 6676 6677 os2*) 6678 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6679 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6680 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6681 _LT_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' 6682 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 6683 ;; 6684 6685 osf3*) 6686 if test "$GCC" = yes; then 6687 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 6688 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6689 else 6690 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 6691 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 6692 fi 6693 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 6694 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6695 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6696 ;; 6697 6698 osf4* | osf5*) # as osf3* with the addition of -msym flag 6699 if test "$GCC" = yes; then 6700 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 6701 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6702 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6703 else 6704 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 6705 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 6706 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 6707 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 6708 6709 # Both c and cxx compiler support -rpath directly 6710 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 6711 fi 6712 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 6713 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6714 ;; 6715 6716 solaris*) 6717 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' 6718 if test "$GCC" = yes; then 6719 wlarc='${wl}' 6720 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6721 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6722 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 6723 else 6724 case `$CC -V 2>&1` in 6725 *"Compilers 5.0"*) 6726 wlarc='' 6727 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6728 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6729 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 6730 ;; 6731 *) 6732 wlarc='${wl}' 6733 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 6734 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6735 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 6736 ;; 6737 esac 6738 fi 6739 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6740 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6741 case $host_os in 6742 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 6743 *) 6744 # The compiler driver will combine and reorder linker options, 6745 # but understands `-z linker_flag'. GCC discards it without `$wl', 6746 # but is careful enough not to reorder. 6747 # Supported since Solaris 2.6 (maybe 2.5.1?) 6748 if test "$GCC" = yes; then 6749 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 6750 else 6751 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 6752 fi 6753 ;; 6754 esac 6755 _LT_TAGVAR(link_all_deplibs, $1)=yes 6756 ;; 6757 6758 sunos4*) 6759 if test "x$host_vendor" = xsequent; then 6760 # Use $CC to link under sequent, because it throws in some extra .o 6761 # files that make .init and .fini sections work. 6762 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 6763 else 6764 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 6765 fi 6766 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6767 _LT_TAGVAR(hardcode_direct, $1)=yes 6768 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6769 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6770 ;; 6771 6772 sysv4) 6773 case $host_vendor in 6774 sni) 6775 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6776 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 6777 ;; 6778 siemens) 6779 ## LD is ld it makes a PLAMLIB 6780 ## CC just makes a GrossModule. 6781 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 6782 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 6783 _LT_TAGVAR(hardcode_direct, $1)=no 6784 ;; 6785 motorola) 6786 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6787 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 6788 ;; 6789 esac 6790 runpath_var='LD_RUN_PATH' 6791 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6792 ;; 6793 6794 sysv4.3*) 6795 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6796 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6797 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 6798 ;; 6799 6800 sysv4*MP*) 6801 if test -d /usr/nec; then 6802 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6803 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6804 runpath_var=LD_RUN_PATH 6805 hardcode_runpath_var=yes 6806 _LT_TAGVAR(ld_shlibs, $1)=yes 6807 fi 6808 ;; 6809 6810 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 6811 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 6812 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6813 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6814 runpath_var='LD_RUN_PATH' 6815 6816 if test "$GCC" = yes; then 6817 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6818 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6819 else 6820 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6821 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6822 fi 6823 ;; 6824 6825 sysv5* | sco3.2v5* | sco5v6*) 6826 # Note: We can NOT use -z defs as we might desire, because we do not 6827 # link with -lc, and that would cause any symbols used from libc to 6828 # always be unresolved, which means just about no library would 6829 # ever link correctly. If we're not using GNU ld we use -z text 6830 # though, which does catch some bad symbols but isn't as heavy-handed 6831 # as -z defs. 6832 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 6833 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 6834 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6835 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6836 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 6837 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 6838 _LT_TAGVAR(link_all_deplibs, $1)=yes 6839 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 6840 runpath_var='LD_RUN_PATH' 6841 6842 if test "$GCC" = yes; then 6843 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6844 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6845 else 6846 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6847 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6848 fi 6849 ;; 6850 6851 uts4*) 6852 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6853 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6854 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6855 ;; 6856 6857 *) 6858 _LT_TAGVAR(ld_shlibs, $1)=no 6859 ;; 6860 esac 6861 6862 if test x$host_vendor = xsni; then 6863 case $host in 6864 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6865 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' 6866 ;; 6867 esac 6868 fi 6869 fi 6870]) 6871AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 6872test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 6873 6874_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld 6875 6876_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl 6877_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl 6878_LT_DECL([], [extract_expsyms_cmds], [2], 6879 [The commands to extract the exported symbol list from a shared archive]) 6880 6881# 6882# Do we need to explicitly link libc? 6883# 6884case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in 6885x|xyes) 6886 # Assume -lc should be added 6887 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6888 6889 if test "$enable_shared" = yes && test "$GCC" = yes; then 6890 case $_LT_TAGVAR(archive_cmds, $1) in 6891 *'~'*) 6892 # FIXME: we may have to deal with multi-command sequences. 6893 ;; 6894 '$CC '*) 6895 # Test whether the compiler implicitly links with -lc since on some 6896 # systems, -lgcc has to come before -lc. If gcc already passes -lc 6897 # to ld, don't add -lc before -lgcc. 6898 AC_CACHE_CHECK([whether -lc should be explicitly linked in], 6899 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), 6900 [$RM conftest* 6901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 6902 6903 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 6904 soname=conftest 6905 lib=conftest 6906 libobjs=conftest.$ac_objext 6907 deplibs= 6908 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) 6909 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) 6910 compiler_flags=-v 6911 linker_flags=-v 6912 verstring= 6913 output_objdir=. 6914 libname=conftest 6915 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) 6916 _LT_TAGVAR(allow_undefined_flag, $1)= 6917 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 6918 then 6919 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no 6920 else 6921 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6922 fi 6923 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 6924 else 6925 cat conftest.err 1>&5 6926 fi 6927 $RM conftest* 6928 ]) 6929 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) 6930 ;; 6931 esac 6932 fi 6933 ;; 6934esac 6935 6936_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], 6937 [Whether or not to add -lc for building shared libraries]) 6938_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], 6939 [enable_shared_with_static_runtimes], [0], 6940 [Whether or not to disallow shared libs when runtime libs are static]) 6941_LT_TAGDECL([], [export_dynamic_flag_spec], [1], 6942 [Compiler flag to allow reflexive dlopens]) 6943_LT_TAGDECL([], [whole_archive_flag_spec], [1], 6944 [Compiler flag to generate shared objects directly from archives]) 6945_LT_TAGDECL([], [compiler_needs_object], [1], 6946 [Whether the compiler copes with passing no objects directly]) 6947_LT_TAGDECL([], [old_archive_from_new_cmds], [2], 6948 [Create an old-style archive from a shared archive]) 6949_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], 6950 [Create a temporary old-style archive to link instead of a shared archive]) 6951_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) 6952_LT_TAGDECL([], [archive_expsym_cmds], [2]) 6953_LT_TAGDECL([], [module_cmds], [2], 6954 [Commands used to build a loadable module if different from building 6955 a shared archive.]) 6956_LT_TAGDECL([], [module_expsym_cmds], [2]) 6957_LT_TAGDECL([], [with_gnu_ld], [1], 6958 [Whether we are building with GNU ld or not]) 6959_LT_TAGDECL([], [allow_undefined_flag], [1], 6960 [Flag that allows shared libraries with undefined symbols to be built]) 6961_LT_TAGDECL([], [no_undefined_flag], [1], 6962 [Flag that enforces no undefined symbols]) 6963_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], 6964 [Flag to hardcode $libdir into a binary during linking. 6965 This must work even if $libdir does not exist]) 6966_LT_TAGDECL([], [hardcode_libdir_separator], [1], 6967 [Whether we need a single "-rpath" flag with a separated argument]) 6968_LT_TAGDECL([], [hardcode_direct], [0], 6969 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 6970 DIR into the resulting binary]) 6971_LT_TAGDECL([], [hardcode_direct_absolute], [0], 6972 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 6973 DIR into the resulting binary and the resulting library dependency is 6974 "absolute", i.e impossible to change by setting ${shlibpath_var} if the 6975 library is relocated]) 6976_LT_TAGDECL([], [hardcode_minus_L], [0], 6977 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR 6978 into the resulting binary]) 6979_LT_TAGDECL([], [hardcode_shlibpath_var], [0], 6980 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 6981 into the resulting binary]) 6982_LT_TAGDECL([], [hardcode_automatic], [0], 6983 [Set to "yes" if building a shared library automatically hardcodes DIR 6984 into the library and all subsequent libraries and executables linked 6985 against it]) 6986_LT_TAGDECL([], [inherit_rpath], [0], 6987 [Set to yes if linker adds runtime paths of dependent libraries 6988 to runtime path list]) 6989_LT_TAGDECL([], [link_all_deplibs], [0], 6990 [Whether libtool must link a program against all its dependency libraries]) 6991_LT_TAGDECL([], [always_export_symbols], [0], 6992 [Set to "yes" if exported symbols are required]) 6993_LT_TAGDECL([], [export_symbols_cmds], [2], 6994 [The commands to list exported symbols]) 6995_LT_TAGDECL([], [exclude_expsyms], [1], 6996 [Symbols that should not be listed in the preloaded symbols]) 6997_LT_TAGDECL([], [include_expsyms], [1], 6998 [Symbols that must always be exported]) 6999_LT_TAGDECL([], [prelink_cmds], [2], 7000 [Commands necessary for linking programs (against libraries) with templates]) 7001_LT_TAGDECL([], [postlink_cmds], [2], 7002 [Commands necessary for finishing linking programs]) 7003_LT_TAGDECL([], [file_list_spec], [1], 7004 [Specify filename containing input files]) 7005dnl FIXME: Not yet implemented 7006dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], 7007dnl [Compiler flag to generate thread safe objects]) 7008])# _LT_LINKER_SHLIBS 7009 7010 7011# _LT_LANG_C_CONFIG([TAG]) 7012# ------------------------ 7013# Ensure that the configuration variables for a C compiler are suitably 7014# defined. These variables are subsequently used by _LT_CONFIG to write 7015# the compiler configuration to `libtool'. 7016m4_defun([_LT_LANG_C_CONFIG], 7017[m4_require([_LT_DECL_EGREP])dnl 7018lt_save_CC="$CC" 7019AC_LANG_PUSH(C) 7020 7021# Source file extension for C test sources. 7022ac_ext=c 7023 7024# Object file extension for compiled C test sources. 7025objext=o 7026_LT_TAGVAR(objext, $1)=$objext 7027 7028# Code to be used in simple compile tests 7029lt_simple_compile_test_code="int some_variable = 0;" 7030 7031# Code to be used in simple link tests 7032lt_simple_link_test_code='int main(){return(0);}' 7033 7034_LT_TAG_COMPILER 7035# Save the default compiler, since it gets overwritten when the other 7036# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7037compiler_DEFAULT=$CC 7038 7039# save warnings/boilerplate of simple test code 7040_LT_COMPILER_BOILERPLATE 7041_LT_LINKER_BOILERPLATE 7042 7043if test -n "$compiler"; then 7044 _LT_COMPILER_NO_RTTI($1) 7045 _LT_COMPILER_PIC($1) 7046 _LT_COMPILER_C_O($1) 7047 _LT_COMPILER_FILE_LOCKS($1) 7048 _LT_LINKER_SHLIBS($1) 7049 _LT_SYS_DYNAMIC_LINKER($1) 7050 _LT_LINKER_HARDCODE_LIBPATH($1) 7051 LT_SYS_DLOPEN_SELF 7052 _LT_CMD_STRIPLIB 7053 7054 # Report which library types will actually be built 7055 AC_MSG_CHECKING([if libtool supports shared libraries]) 7056 AC_MSG_RESULT([$can_build_shared]) 7057 7058 AC_MSG_CHECKING([whether to build shared libraries]) 7059 test "$can_build_shared" = "no" && enable_shared=no 7060 7061 # On AIX, shared libraries and static libraries use the same namespace, and 7062 # are all built from PIC. 7063 case $host_os in 7064 aix3*) 7065 test "$enable_shared" = yes && enable_static=no 7066 if test -n "$RANLIB"; then 7067 archive_cmds="$archive_cmds~\$RANLIB \$lib" 7068 postinstall_cmds='$RANLIB $lib' 7069 fi 7070 ;; 7071 7072 aix[[4-9]]*) 7073 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 7074 test "$enable_shared" = yes && enable_static=no 7075 fi 7076 ;; 7077 esac 7078 AC_MSG_RESULT([$enable_shared]) 7079 7080 AC_MSG_CHECKING([whether to build static libraries]) 7081 # Make sure either enable_shared or enable_static is yes. 7082 test "$enable_shared" = yes || enable_static=yes 7083 AC_MSG_RESULT([$enable_static]) 7084 7085 _LT_CONFIG($1) 7086fi 7087AC_LANG_POP 7088CC="$lt_save_CC" 7089])# _LT_LANG_C_CONFIG 7090 7091 7092# _LT_LANG_CXX_CONFIG([TAG]) 7093# -------------------------- 7094# Ensure that the configuration variables for a C++ compiler are suitably 7095# defined. These variables are subsequently used by _LT_CONFIG to write 7096# the compiler configuration to `libtool'. 7097m4_defun([_LT_LANG_CXX_CONFIG], 7098[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 7099m4_require([_LT_DECL_EGREP])dnl 7100m4_require([_LT_PATH_MANIFEST_TOOL])dnl 7101if test -n "$CXX" && ( test "X$CXX" != "Xno" && 7102 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 7103 (test "X$CXX" != "Xg++"))) ; then 7104 AC_PROG_CXXCPP 7105else 7106 _lt_caught_CXX_error=yes 7107fi 7108 7109AC_LANG_PUSH(C++) 7110_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7111_LT_TAGVAR(allow_undefined_flag, $1)= 7112_LT_TAGVAR(always_export_symbols, $1)=no 7113_LT_TAGVAR(archive_expsym_cmds, $1)= 7114_LT_TAGVAR(compiler_needs_object, $1)=no 7115_LT_TAGVAR(export_dynamic_flag_spec, $1)= 7116_LT_TAGVAR(hardcode_direct, $1)=no 7117_LT_TAGVAR(hardcode_direct_absolute, $1)=no 7118_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 7119_LT_TAGVAR(hardcode_libdir_separator, $1)= 7120_LT_TAGVAR(hardcode_minus_L, $1)=no 7121_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 7122_LT_TAGVAR(hardcode_automatic, $1)=no 7123_LT_TAGVAR(inherit_rpath, $1)=no 7124_LT_TAGVAR(module_cmds, $1)= 7125_LT_TAGVAR(module_expsym_cmds, $1)= 7126_LT_TAGVAR(link_all_deplibs, $1)=unknown 7127_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7128_LT_TAGVAR(reload_flag, $1)=$reload_flag 7129_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 7130_LT_TAGVAR(no_undefined_flag, $1)= 7131_LT_TAGVAR(whole_archive_flag_spec, $1)= 7132_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 7133 7134# Source file extension for C++ test sources. 7135ac_ext=cpp 7136 7137# Object file extension for compiled C++ test sources. 7138objext=o 7139_LT_TAGVAR(objext, $1)=$objext 7140 7141# No sense in running all these tests if we already determined that 7142# the CXX compiler isn't working. Some variables (like enable_shared) 7143# are currently assumed to apply to all compilers on this platform, 7144# and will be corrupted by setting them based on a non-working compiler. 7145if test "$_lt_caught_CXX_error" != yes; then 7146 # Code to be used in simple compile tests 7147 lt_simple_compile_test_code="int some_variable = 0;" 7148 7149 # Code to be used in simple link tests 7150 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 7151 7152 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 7153 _LT_TAG_COMPILER 7154 7155 # save warnings/boilerplate of simple test code 7156 _LT_COMPILER_BOILERPLATE 7157 _LT_LINKER_BOILERPLATE 7158 7159 # Allow CC to be a program name with arguments. 7160 lt_save_CC=$CC 7161 lt_save_CFLAGS=$CFLAGS 7162 lt_save_LD=$LD 7163 lt_save_GCC=$GCC 7164 GCC=$GXX 7165 lt_save_with_gnu_ld=$with_gnu_ld 7166 lt_save_path_LD=$lt_cv_path_LD 7167 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 7168 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 7169 else 7170 $as_unset lt_cv_prog_gnu_ld 7171 fi 7172 if test -n "${lt_cv_path_LDCXX+set}"; then 7173 lt_cv_path_LD=$lt_cv_path_LDCXX 7174 else 7175 $as_unset lt_cv_path_LD 7176 fi 7177 test -z "${LDCXX+set}" || LD=$LDCXX 7178 CC=${CXX-"c++"} 7179 CFLAGS=$CXXFLAGS 7180 compiler=$CC 7181 _LT_TAGVAR(compiler, $1)=$CC 7182 _LT_CC_BASENAME([$compiler]) 7183 7184 if test -n "$compiler"; then 7185 # We don't want -fno-exception when compiling C++ code, so set the 7186 # no_builtin_flag separately 7187 if test "$GXX" = yes; then 7188 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 7189 else 7190 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 7191 fi 7192 7193 if test "$GXX" = yes; then 7194 # Set up default GNU C++ configuration 7195 7196 LT_PATH_LD 7197 7198 # Check if GNU C++ uses GNU ld as the underlying linker, since the 7199 # archiving commands below assume that GNU ld is being used. 7200 if test "$with_gnu_ld" = yes; then 7201 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 7202 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7203 7204 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7205 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 7206 7207 # If archive_cmds runs LD, not CC, wlarc should be empty 7208 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 7209 # investigate it a little bit more. (MM) 7210 wlarc='${wl}' 7211 7212 # ancient GNU ld didn't support --whole-archive et. al. 7213 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 7214 $GREP 'no-whole-archive' > /dev/null; then 7215 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7216 else 7217 _LT_TAGVAR(whole_archive_flag_spec, $1)= 7218 fi 7219 else 7220 with_gnu_ld=no 7221 wlarc= 7222 7223 # A generic and very simple default shared library creation 7224 # command for GNU C++ for the case where it uses the native 7225 # linker, instead of GNU ld. If possible, this setting should 7226 # overridden to take advantage of the native linker features on 7227 # the platform it is being used on. 7228 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 7229 fi 7230 7231 # Commands to make compiler produce verbose output that lists 7232 # what "hidden" libraries, object files and flags are used when 7233 # linking a shared library. 7234 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 7235 7236 else 7237 GXX=no 7238 with_gnu_ld=no 7239 wlarc= 7240 fi 7241 7242 # PORTME: fill in a description of your system's C++ link characteristics 7243 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 7244 _LT_TAGVAR(ld_shlibs, $1)=yes 7245 case $host_os in 7246 aix3*) 7247 # FIXME: insert proper C++ library support 7248 _LT_TAGVAR(ld_shlibs, $1)=no 7249 ;; 7250 aix[[4-9]]*) 7251 if test "$host_cpu" = ia64; then 7252 # On IA64, the linker does run time linking by default, so we don't 7253 # have to do anything special. 7254 aix_use_runtimelinking=no 7255 exp_sym_flag='-Bexport' 7256 no_entry_flag="" 7257 else 7258 aix_use_runtimelinking=no 7259 7260 # Test if we are trying to use run time linking or normal 7261 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7262 # need to do runtime linking. 7263 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 7264 for ld_flag in $LDFLAGS; do 7265 case $ld_flag in 7266 *-brtl*) 7267 aix_use_runtimelinking=yes 7268 break 7269 ;; 7270 esac 7271 done 7272 ;; 7273 esac 7274 7275 exp_sym_flag='-bexport' 7276 no_entry_flag='-bnoentry' 7277 fi 7278 7279 # When large executables or shared objects are built, AIX ld can 7280 # have problems creating the table of contents. If linking a library 7281 # or program results in "error TOC overflow" add -mminimal-toc to 7282 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7283 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7284 7285 _LT_TAGVAR(archive_cmds, $1)='' 7286 _LT_TAGVAR(hardcode_direct, $1)=yes 7287 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7288 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 7289 _LT_TAGVAR(link_all_deplibs, $1)=yes 7290 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 7291 7292 if test "$GXX" = yes; then 7293 case $host_os in aix4.[[012]]|aix4.[[012]].*) 7294 # We only want to do this on AIX 4.2 and lower, the check 7295 # below for broken collect2 doesn't work under 4.3+ 7296 collect2name=`${CC} -print-prog-name=collect2` 7297 if test -f "$collect2name" && 7298 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 7299 then 7300 # We have reworked collect2 7301 : 7302 else 7303 # We have old collect2 7304 _LT_TAGVAR(hardcode_direct, $1)=unsupported 7305 # It fails to find uninstalled libraries when the uninstalled 7306 # path is not listed in the libpath. Setting hardcode_minus_L 7307 # to unsupported forces relinking 7308 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7309 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7310 _LT_TAGVAR(hardcode_libdir_separator, $1)= 7311 fi 7312 esac 7313 shared_flag='-shared' 7314 if test "$aix_use_runtimelinking" = yes; then 7315 shared_flag="$shared_flag "'${wl}-G' 7316 fi 7317 else 7318 # not using gcc 7319 if test "$host_cpu" = ia64; then 7320 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7321 # chokes on -Wl,-G. The following line is correct: 7322 shared_flag='-G' 7323 else 7324 if test "$aix_use_runtimelinking" = yes; then 7325 shared_flag='${wl}-G' 7326 else 7327 shared_flag='${wl}-bM:SRE' 7328 fi 7329 fi 7330 fi 7331 7332 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 7333 # It seems that -bexpall does not export symbols beginning with 7334 # underscore (_), so it is better to generate a list of symbols to 7335 # export. 7336 _LT_TAGVAR(always_export_symbols, $1)=yes 7337 if test "$aix_use_runtimelinking" = yes; then 7338 # Warning - without using the other runtime loading flags (-brtl), 7339 # -berok will link without error, but may produce a broken library. 7340 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 7341 # Determine the default libpath from the value encoded in an empty 7342 # executable. 7343 _LT_SYS_MODULE_PATH_AIX([$1]) 7344 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 7345 7346 _LT_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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 7347 else 7348 if test "$host_cpu" = ia64; then 7349 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 7350 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 7351 _LT_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" 7352 else 7353 # Determine the default libpath from the value encoded in an 7354 # empty executable. 7355 _LT_SYS_MODULE_PATH_AIX([$1]) 7356 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 7357 # Warning - without using the other run time loading flags, 7358 # -berok will link without error, but may produce a broken library. 7359 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 7360 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 7361 if test "$with_gnu_ld" = yes; then 7362 # We only use this code for GNU lds that support --whole-archive. 7363 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 7364 else 7365 # Exported symbols can be pulled into shared objects from archives 7366 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 7367 fi 7368 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 7369 # This is similar to how AIX traditionally builds its shared 7370 # libraries. 7371 _LT_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' 7372 fi 7373 fi 7374 ;; 7375 7376 beos*) 7377 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7378 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7379 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7380 # support --undefined. This deserves some investigation. FIXME 7381 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7382 else 7383 _LT_TAGVAR(ld_shlibs, $1)=no 7384 fi 7385 ;; 7386 7387 chorus*) 7388 case $cc_basename in 7389 *) 7390 # FIXME: insert proper C++ library support 7391 _LT_TAGVAR(ld_shlibs, $1)=no 7392 ;; 7393 esac 7394 ;; 7395 7396 cygwin* | mingw* | pw32* | cegcc*) 7397 case $GXX,$cc_basename in 7398 ,cl* | no,cl*) 7399 # Native MSVC 7400 # hardcode_libdir_flag_spec is actually meaningless, as there is 7401 # no search path for DLLs. 7402 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 7403 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7404 _LT_TAGVAR(always_export_symbols, $1)=yes 7405 _LT_TAGVAR(file_list_spec, $1)='@' 7406 # Tell ltmain to make .lib files, not .a files. 7407 libext=lib 7408 # Tell ltmain to make .dll files, not .so files. 7409 shrext_cmds=".dll" 7410 # FIXME: Setting linknames here is a bad hack. 7411 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 7412 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7413 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 7414 else 7415 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 7416 fi~ 7417 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 7418 linknames=' 7419 # The linker will not automatically build a static lib if we build a DLL. 7420 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 7421 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 7422 # Don't use ranlib 7423 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 7424 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 7425 lt_tool_outputfile="@TOOL_OUTPUT@"~ 7426 case $lt_outputfile in 7427 *.exe|*.EXE) ;; 7428 *) 7429 lt_outputfile="$lt_outputfile.exe" 7430 lt_tool_outputfile="$lt_tool_outputfile.exe" 7431 ;; 7432 esac~ 7433 func_to_tool_file "$lt_outputfile"~ 7434 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 7435 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 7436 $RM "$lt_outputfile.manifest"; 7437 fi' 7438 ;; 7439 *) 7440 # g++ 7441 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 7442 # as there is no search path for DLLs. 7443 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7444 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' 7445 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7446 _LT_TAGVAR(always_export_symbols, $1)=no 7447 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 7448 7449 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 7450 _LT_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' 7451 # If the export-symbols file already is a .def file (1st line 7452 # is EXPORTS), use it as is; otherwise, prepend... 7453 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7454 cp $export_symbols $output_objdir/$soname.def; 7455 else 7456 echo EXPORTS > $output_objdir/$soname.def; 7457 cat $export_symbols >> $output_objdir/$soname.def; 7458 fi~ 7459 $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' 7460 else 7461 _LT_TAGVAR(ld_shlibs, $1)=no 7462 fi 7463 ;; 7464 esac 7465 ;; 7466 darwin* | rhapsody*) 7467 _LT_DARWIN_LINKER_FEATURES($1) 7468 ;; 7469 7470 dgux*) 7471 case $cc_basename in 7472 ec++*) 7473 # FIXME: insert proper C++ library support 7474 _LT_TAGVAR(ld_shlibs, $1)=no 7475 ;; 7476 ghcx*) 7477 # Green Hills C++ Compiler 7478 # FIXME: insert proper C++ library support 7479 _LT_TAGVAR(ld_shlibs, $1)=no 7480 ;; 7481 *) 7482 # FIXME: insert proper C++ library support 7483 _LT_TAGVAR(ld_shlibs, $1)=no 7484 ;; 7485 esac 7486 ;; 7487 7488 freebsd2.*) 7489 # C++ shared libraries reported to be fairly broken before 7490 # switch to ELF 7491 _LT_TAGVAR(ld_shlibs, $1)=no 7492 ;; 7493 7494 freebsd-elf*) 7495 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7496 ;; 7497 7498 freebsd* | dragonfly*) 7499 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 7500 # conventions 7501 _LT_TAGVAR(ld_shlibs, $1)=yes 7502 ;; 7503 7504 gnu*) 7505 ;; 7506 7507 haiku*) 7508 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7509 _LT_TAGVAR(link_all_deplibs, $1)=yes 7510 ;; 7511 7512 hpux9*) 7513 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 7514 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7515 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7516 _LT_TAGVAR(hardcode_direct, $1)=yes 7517 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 7518 # but as the default 7519 # location of the library. 7520 7521 case $cc_basename in 7522 CC*) 7523 # FIXME: insert proper C++ library support 7524 _LT_TAGVAR(ld_shlibs, $1)=no 7525 ;; 7526 aCC*) 7527 _LT_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' 7528 # Commands to make compiler produce verbose output that lists 7529 # what "hidden" libraries, object files and flags are used when 7530 # linking a shared library. 7531 # 7532 # There doesn't appear to be a way to prevent this compiler from 7533 # explicitly linking system object files so we need to strip them 7534 # from the output so that they don't get included in the library 7535 # dependencies. 7536 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 7537 ;; 7538 *) 7539 if test "$GXX" = yes; then 7540 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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' 7541 else 7542 # FIXME: insert proper C++ library support 7543 _LT_TAGVAR(ld_shlibs, $1)=no 7544 fi 7545 ;; 7546 esac 7547 ;; 7548 7549 hpux10*|hpux11*) 7550 if test $with_gnu_ld = no; then 7551 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 7552 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7553 7554 case $host_cpu in 7555 hppa*64*|ia64*) 7556 ;; 7557 *) 7558 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7559 ;; 7560 esac 7561 fi 7562 case $host_cpu in 7563 hppa*64*|ia64*) 7564 _LT_TAGVAR(hardcode_direct, $1)=no 7565 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7566 ;; 7567 *) 7568 _LT_TAGVAR(hardcode_direct, $1)=yes 7569 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7570 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 7571 # but as the default 7572 # location of the library. 7573 ;; 7574 esac 7575 7576 case $cc_basename in 7577 CC*) 7578 # FIXME: insert proper C++ library support 7579 _LT_TAGVAR(ld_shlibs, $1)=no 7580 ;; 7581 aCC*) 7582 case $host_cpu in 7583 hppa*64*) 7584 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 7585 ;; 7586 ia64*) 7587 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 7588 ;; 7589 *) 7590 _LT_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' 7591 ;; 7592 esac 7593 # Commands to make compiler produce verbose output that lists 7594 # what "hidden" libraries, object files and flags are used when 7595 # linking a shared library. 7596 # 7597 # There doesn't appear to be a way to prevent this compiler from 7598 # explicitly linking system object files so we need to strip them 7599 # from the output so that they don't get included in the library 7600 # dependencies. 7601 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; func_echo_all "$list"' 7602 ;; 7603 *) 7604 if test "$GXX" = yes; then 7605 if test $with_gnu_ld = no; then 7606 case $host_cpu in 7607 hppa*64*) 7608 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 7609 ;; 7610 ia64*) 7611 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 7612 ;; 7613 *) 7614 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 7615 ;; 7616 esac 7617 fi 7618 else 7619 # FIXME: insert proper C++ library support 7620 _LT_TAGVAR(ld_shlibs, $1)=no 7621 fi 7622 ;; 7623 esac 7624 ;; 7625 7626 interix[[3-9]]*) 7627 _LT_TAGVAR(hardcode_direct, $1)=no 7628 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7629 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 7630 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7631 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7632 # Instead, shared libraries are loaded at an image base (0x10000000 by 7633 # default) and relocated if they conflict, which is a slow very memory 7634 # consuming and fragmenting process. To avoid this, we pick a random, 7635 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7636 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7637 _LT_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' 7638 _LT_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' 7639 ;; 7640 irix5* | irix6*) 7641 case $cc_basename in 7642 CC*) 7643 # SGI C++ 7644 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 7645 7646 # Archives containing C++ object files must be created using 7647 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 7648 # necessary to make sure instantiated templates are included 7649 # in the archive. 7650 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 7651 ;; 7652 *) 7653 if test "$GXX" = yes; then 7654 if test "$with_gnu_ld" = no; then 7655 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7656 else 7657 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 7658 fi 7659 fi 7660 _LT_TAGVAR(link_all_deplibs, $1)=yes 7661 ;; 7662 esac 7663 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7664 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7665 _LT_TAGVAR(inherit_rpath, $1)=yes 7666 ;; 7667 7668 linux* | k*bsd*-gnu | kopensolaris*-gnu) 7669 case $cc_basename in 7670 KCC*) 7671 # Kuck and Associates, Inc. (KAI) C++ Compiler 7672 7673 # KCC will only create a shared library if the output file 7674 # ends with ".so" (or ".sl" for HP-UX), so rename the library 7675 # to its proper name (with version) after linking. 7676 _LT_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' 7677 _LT_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' 7678 # Commands to make compiler produce verbose output that lists 7679 # what "hidden" libraries, object files and flags are used when 7680 # linking a shared library. 7681 # 7682 # There doesn't appear to be a way to prevent this compiler from 7683 # explicitly linking system object files so we need to strip them 7684 # from the output so that they don't get included in the library 7685 # dependencies. 7686 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; func_echo_all "$list"' 7687 7688 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 7689 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 7690 7691 # Archives containing C++ object files must be created using 7692 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 7693 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 7694 ;; 7695 icpc* | ecpc* ) 7696 # Intel C++ 7697 with_gnu_ld=yes 7698 # version 8.0 and above of icpc choke on multiply defined symbols 7699 # if we add $predep_objects and $postdep_objects, however 7.1 and 7700 # earlier do not add the objects themselves. 7701 case `$CC -V 2>&1` in 7702 *"Version 7."*) 7703 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 7704 _LT_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' 7705 ;; 7706 *) # Version 8.0 or newer 7707 tmp_idyn= 7708 case $host_cpu in 7709 ia64*) tmp_idyn=' -i_dynamic';; 7710 esac 7711 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7712 _LT_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' 7713 ;; 7714 esac 7715 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7716 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 7717 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 7718 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 7719 ;; 7720 pgCC* | pgcpp*) 7721 # Portland Group C++ compiler 7722 case `$CC -V` in 7723 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) 7724 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 7725 rm -rf $tpldir~ 7726 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 7727 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 7728 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 7729 rm -rf $tpldir~ 7730 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 7731 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 7732 $RANLIB $oldlib' 7733 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 7734 rm -rf $tpldir~ 7735 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 7736 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 7737 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 7738 rm -rf $tpldir~ 7739 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 7740 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 7741 ;; 7742 *) # Version 6 and above use weak symbols 7743 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 7744 _LT_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' 7745 ;; 7746 esac 7747 7748 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 7749 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 7750 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 7751 ;; 7752 cxx*) 7753 # Compaq C++ 7754 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 7755 _LT_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' 7756 7757 runpath_var=LD_RUN_PATH 7758 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 7759 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7760 7761 # Commands to make compiler produce verbose output that lists 7762 # what "hidden" libraries, object files and flags are used when 7763 # linking a shared library. 7764 # 7765 # There doesn't appear to be a way to prevent this compiler from 7766 # explicitly linking system object files so we need to strip them 7767 # from the output so that they don't get included in the library 7768 # dependencies. 7769 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed' 7770 ;; 7771 xl* | mpixl* | bgxl*) 7772 # IBM XL 8.0 on PPC, with GNU ld 7773 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7774 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 7775 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7776 if test "x$supports_anon_versioning" = xyes; then 7777 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 7778 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7779 echo "local: *; };" >> $output_objdir/$libname.ver~ 7780 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7781 fi 7782 ;; 7783 *) 7784 case `$CC -V 2>&1 | sed 5q` in 7785 *Sun\ C*) 7786 # Sun C++ 5.9 7787 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 7788 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 7789 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 7790 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7791 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 7792 _LT_TAGVAR(compiler_needs_object, $1)=yes 7793 7794 # Not sure whether something based on 7795 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 7796 # would be better. 7797 output_verbose_link_cmd='func_echo_all' 7798 7799 # Archives containing C++ object files must be created using 7800 # "CC -xar", where "CC" is the Sun C++ compiler. This is 7801 # necessary to make sure instantiated templates are included 7802 # in the archive. 7803 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 7804 ;; 7805 esac 7806 ;; 7807 esac 7808 ;; 7809 7810 lynxos*) 7811 # FIXME: insert proper C++ library support 7812 _LT_TAGVAR(ld_shlibs, $1)=no 7813 ;; 7814 7815 m88k*) 7816 # FIXME: insert proper C++ library support 7817 _LT_TAGVAR(ld_shlibs, $1)=no 7818 ;; 7819 7820 mvs*) 7821 case $cc_basename in 7822 cxx*) 7823 # FIXME: insert proper C++ library support 7824 _LT_TAGVAR(ld_shlibs, $1)=no 7825 ;; 7826 *) 7827 # FIXME: insert proper C++ library support 7828 _LT_TAGVAR(ld_shlibs, $1)=no 7829 ;; 7830 esac 7831 ;; 7832 7833 netbsd*) 7834 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7835 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 7836 wlarc= 7837 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7838 _LT_TAGVAR(hardcode_direct, $1)=yes 7839 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7840 fi 7841 # Workaround some broken pre-1.5 toolchains 7842 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 7843 ;; 7844 7845 *nto* | *qnx*) 7846 _LT_TAGVAR(ld_shlibs, $1)=yes 7847 ;; 7848 7849 openbsd2*) 7850 # C++ shared libraries are fairly broken 7851 _LT_TAGVAR(ld_shlibs, $1)=no 7852 ;; 7853 7854 openbsd*) 7855 if test -f /usr/libexec/ld.so; then 7856 _LT_TAGVAR(hardcode_direct, $1)=yes 7857 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7858 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7859 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 7860 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 7861 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7862 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 7863 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7864 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7865 fi 7866 output_verbose_link_cmd=func_echo_all 7867 else 7868 _LT_TAGVAR(ld_shlibs, $1)=no 7869 fi 7870 ;; 7871 7872 osf3* | osf4* | osf5*) 7873 case $cc_basename in 7874 KCC*) 7875 # Kuck and Associates, Inc. (KAI) C++ Compiler 7876 7877 # KCC will only create a shared library if the output file 7878 # ends with ".so" (or ".sl" for HP-UX), so rename the library 7879 # to its proper name (with version) after linking. 7880 _LT_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' 7881 7882 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 7883 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7884 7885 # Archives containing C++ object files must be created using 7886 # the KAI C++ compiler. 7887 case $host in 7888 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; 7889 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; 7890 esac 7891 ;; 7892 RCC*) 7893 # Rational C++ 2.4.1 7894 # FIXME: insert proper C++ library support 7895 _LT_TAGVAR(ld_shlibs, $1)=no 7896 ;; 7897 cxx*) 7898 case $host in 7899 osf3*) 7900 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 7901 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 7902 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7903 ;; 7904 *) 7905 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 7906 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 7907 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 7908 echo "-hidden">> $lib.exp~ 7909 $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~ 7910 $RM $lib.exp' 7911 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 7912 ;; 7913 esac 7914 7915 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7916 7917 # Commands to make compiler produce verbose output that lists 7918 # what "hidden" libraries, object files and flags are used when 7919 # linking a shared library. 7920 # 7921 # There doesn't appear to be a way to prevent this compiler from 7922 # explicitly linking system object files so we need to strip them 7923 # from the output so that they don't get included in the library 7924 # dependencies. 7925 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"' 7926 ;; 7927 *) 7928 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 7929 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 7930 case $host in 7931 osf3*) 7932 _LT_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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7933 ;; 7934 *) 7935 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7936 ;; 7937 esac 7938 7939 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7940 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7941 7942 # Commands to make compiler produce verbose output that lists 7943 # what "hidden" libraries, object files and flags are used when 7944 # linking a shared library. 7945 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 7946 7947 else 7948 # FIXME: insert proper C++ library support 7949 _LT_TAGVAR(ld_shlibs, $1)=no 7950 fi 7951 ;; 7952 esac 7953 ;; 7954 7955 psos*) 7956 # FIXME: insert proper C++ library support 7957 _LT_TAGVAR(ld_shlibs, $1)=no 7958 ;; 7959 7960 sunos4*) 7961 case $cc_basename in 7962 CC*) 7963 # Sun C++ 4.x 7964 # FIXME: insert proper C++ library support 7965 _LT_TAGVAR(ld_shlibs, $1)=no 7966 ;; 7967 lcc*) 7968 # Lucid 7969 # FIXME: insert proper C++ library support 7970 _LT_TAGVAR(ld_shlibs, $1)=no 7971 ;; 7972 *) 7973 # FIXME: insert proper C++ library support 7974 _LT_TAGVAR(ld_shlibs, $1)=no 7975 ;; 7976 esac 7977 ;; 7978 7979 solaris*) 7980 case $cc_basename in 7981 CC* | sunCC*) 7982 # Sun C++ 4.2, 5.x and Centerline C++ 7983 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 7984 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 7985 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 7986 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7987 $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' 7988 7989 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7990 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7991 case $host_os in 7992 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 7993 *) 7994 # The compiler driver will combine and reorder linker options, 7995 # but understands `-z linker_flag'. 7996 # Supported since Solaris 2.6 (maybe 2.5.1?) 7997 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 7998 ;; 7999 esac 8000 _LT_TAGVAR(link_all_deplibs, $1)=yes 8001 8002 output_verbose_link_cmd='func_echo_all' 8003 8004 # Archives containing C++ object files must be created using 8005 # "CC -xar", where "CC" is the Sun C++ compiler. This is 8006 # necessary to make sure instantiated templates are included 8007 # in the archive. 8008 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 8009 ;; 8010 gcx*) 8011 # Green Hills C++ Compiler 8012 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 8013 8014 # The C++ compiler must be used to create the archive. 8015 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 8016 ;; 8017 *) 8018 # GNU C++ compiler with Solaris linker 8019 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 8020 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 8021 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 8022 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 8023 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8024 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 8025 8026 # Commands to make compiler produce verbose output that lists 8027 # what "hidden" libraries, object files and flags are used when 8028 # linking a shared library. 8029 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 8030 else 8031 # g++ 2.7 appears to require `-G' NOT `-shared' on this 8032 # platform. 8033 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 8034 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8035 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 8036 8037 # Commands to make compiler produce verbose output that lists 8038 # what "hidden" libraries, object files and flags are used when 8039 # linking a shared library. 8040 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 8041 fi 8042 8043 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 8044 case $host_os in 8045 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 8046 *) 8047 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8048 ;; 8049 esac 8050 fi 8051 ;; 8052 esac 8053 ;; 8054 8055 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 8056 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 8057 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 8058 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8059 runpath_var='LD_RUN_PATH' 8060 8061 case $cc_basename in 8062 CC*) 8063 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8064 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8065 ;; 8066 *) 8067 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8068 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8069 ;; 8070 esac 8071 ;; 8072 8073 sysv5* | sco3.2v5* | sco5v6*) 8074 # Note: We can NOT use -z defs as we might desire, because we do not 8075 # link with -lc, and that would cause any symbols used from libc to 8076 # always be unresolved, which means just about no library would 8077 # ever link correctly. If we're not using GNU ld we use -z text 8078 # though, which does catch some bad symbols but isn't as heavy-handed 8079 # as -z defs. 8080 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 8081 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 8082 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 8083 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8084 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 8085 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 8086 _LT_TAGVAR(link_all_deplibs, $1)=yes 8087 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 8088 runpath_var='LD_RUN_PATH' 8089 8090 case $cc_basename in 8091 CC*) 8092 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8093 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8094 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ 8095 '"$_LT_TAGVAR(old_archive_cmds, $1)" 8096 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ 8097 '"$_LT_TAGVAR(reload_cmds, $1)" 8098 ;; 8099 *) 8100 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8101 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8102 ;; 8103 esac 8104 ;; 8105 8106 tandem*) 8107 case $cc_basename in 8108 NCC*) 8109 # NonStop-UX NCC 3.20 8110 # FIXME: insert proper C++ library support 8111 _LT_TAGVAR(ld_shlibs, $1)=no 8112 ;; 8113 *) 8114 # FIXME: insert proper C++ library support 8115 _LT_TAGVAR(ld_shlibs, $1)=no 8116 ;; 8117 esac 8118 ;; 8119 8120 vxworks*) 8121 # FIXME: insert proper C++ library support 8122 _LT_TAGVAR(ld_shlibs, $1)=no 8123 ;; 8124 8125 *) 8126 # FIXME: insert proper C++ library support 8127 _LT_TAGVAR(ld_shlibs, $1)=no 8128 ;; 8129 esac 8130 8131 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 8132 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 8133 8134 _LT_TAGVAR(GCC, $1)="$GXX" 8135 _LT_TAGVAR(LD, $1)="$LD" 8136 8137 ## CAVEAT EMPTOR: 8138 ## There is no encapsulation within the following macros, do not change 8139 ## the running order or otherwise move them around unless you know exactly 8140 ## what you are doing... 8141 _LT_SYS_HIDDEN_LIBDEPS($1) 8142 _LT_COMPILER_PIC($1) 8143 _LT_COMPILER_C_O($1) 8144 _LT_COMPILER_FILE_LOCKS($1) 8145 _LT_LINKER_SHLIBS($1) 8146 _LT_SYS_DYNAMIC_LINKER($1) 8147 _LT_LINKER_HARDCODE_LIBPATH($1) 8148 8149 _LT_CONFIG($1) 8150 fi # test -n "$compiler" 8151 8152 CC=$lt_save_CC 8153 CFLAGS=$lt_save_CFLAGS 8154 LDCXX=$LD 8155 LD=$lt_save_LD 8156 GCC=$lt_save_GCC 8157 with_gnu_ld=$lt_save_with_gnu_ld 8158 lt_cv_path_LDCXX=$lt_cv_path_LD 8159 lt_cv_path_LD=$lt_save_path_LD 8160 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 8161 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 8162fi # test "$_lt_caught_CXX_error" != yes 8163 8164AC_LANG_POP 8165])# _LT_LANG_CXX_CONFIG 8166 8167 8168# _LT_FUNC_STRIPNAME_CNF 8169# ---------------------- 8170# func_stripname_cnf prefix suffix name 8171# strip PREFIX and SUFFIX off of NAME. 8172# PREFIX and SUFFIX must not contain globbing or regex special 8173# characters, hashes, percent signs, but SUFFIX may contain a leading 8174# dot (in which case that matches only a dot). 8175# 8176# This function is identical to the (non-XSI) version of func_stripname, 8177# except this one can be used by m4 code that may be executed by configure, 8178# rather than the libtool script. 8179m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl 8180AC_REQUIRE([_LT_DECL_SED]) 8181AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) 8182func_stripname_cnf () 8183{ 8184 case ${2} in 8185 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 8186 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 8187 esac 8188} # func_stripname_cnf 8189])# _LT_FUNC_STRIPNAME_CNF 8190 8191# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 8192# --------------------------------- 8193# Figure out "hidden" library dependencies from verbose 8194# compiler output when linking a shared library. 8195# Parse the compiler output and extract the necessary 8196# objects, libraries and library flags. 8197m4_defun([_LT_SYS_HIDDEN_LIBDEPS], 8198[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 8199AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl 8200# Dependencies to place before and after the object being linked: 8201_LT_TAGVAR(predep_objects, $1)= 8202_LT_TAGVAR(postdep_objects, $1)= 8203_LT_TAGVAR(predeps, $1)= 8204_LT_TAGVAR(postdeps, $1)= 8205_LT_TAGVAR(compiler_lib_search_path, $1)= 8206 8207dnl we can't use the lt_simple_compile_test_code here, 8208dnl because it contains code intended for an executable, 8209dnl not a library. It's possible we should let each 8210dnl tag define a new lt_????_link_test_code variable, 8211dnl but it's only used here... 8212m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF 8213int a; 8214void foo (void) { a = 0; } 8215_LT_EOF 8216], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF 8217class Foo 8218{ 8219public: 8220 Foo (void) { a = 0; } 8221private: 8222 int a; 8223}; 8224_LT_EOF 8225], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF 8226 subroutine foo 8227 implicit none 8228 integer*4 a 8229 a=0 8230 return 8231 end 8232_LT_EOF 8233], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF 8234 subroutine foo 8235 implicit none 8236 integer a 8237 a=0 8238 return 8239 end 8240_LT_EOF 8241], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF 8242public class foo { 8243 private int a; 8244 public void bar (void) { 8245 a = 0; 8246 } 8247}; 8248_LT_EOF 8249], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF 8250package foo 8251func foo() { 8252} 8253_LT_EOF 8254]) 8255 8256_lt_libdeps_save_CFLAGS=$CFLAGS 8257case "$CC $CFLAGS " in #( 8258*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 8259*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 8260*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 8261esac 8262 8263dnl Parse the compiler output and extract the necessary 8264dnl objects, libraries and library flags. 8265if AC_TRY_EVAL(ac_compile); then 8266 # Parse the compiler output and extract the necessary 8267 # objects, libraries and library flags. 8268 8269 # Sentinel used to keep track of whether or not we are before 8270 # the conftest object file. 8271 pre_test_object_deps_done=no 8272 8273 for p in `eval "$output_verbose_link_cmd"`; do 8274 case ${prev}${p} in 8275 8276 -L* | -R* | -l*) 8277 # Some compilers place space between "-{L,R}" and the path. 8278 # Remove the space. 8279 if test $p = "-L" || 8280 test $p = "-R"; then 8281 prev=$p 8282 continue 8283 fi 8284 8285 # Expand the sysroot to ease extracting the directories later. 8286 if test -z "$prev"; then 8287 case $p in 8288 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 8289 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 8290 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 8291 esac 8292 fi 8293 case $p in 8294 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 8295 esac 8296 if test "$pre_test_object_deps_done" = no; then 8297 case ${prev} in 8298 -L | -R) 8299 # Internal compiler library paths should come after those 8300 # provided the user. The postdeps already come after the 8301 # user supplied libs so there is no need to process them. 8302 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then 8303 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" 8304 else 8305 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" 8306 fi 8307 ;; 8308 # The "-l" case would never come before the object being 8309 # linked, so don't bother handling this case. 8310 esac 8311 else 8312 if test -z "$_LT_TAGVAR(postdeps, $1)"; then 8313 _LT_TAGVAR(postdeps, $1)="${prev}${p}" 8314 else 8315 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" 8316 fi 8317 fi 8318 prev= 8319 ;; 8320 8321 *.lto.$objext) ;; # Ignore GCC LTO objects 8322 *.$objext) 8323 # This assumes that the test object file only shows up 8324 # once in the compiler output. 8325 if test "$p" = "conftest.$objext"; then 8326 pre_test_object_deps_done=yes 8327 continue 8328 fi 8329 8330 if test "$pre_test_object_deps_done" = no; then 8331 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then 8332 _LT_TAGVAR(predep_objects, $1)="$p" 8333 else 8334 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" 8335 fi 8336 else 8337 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then 8338 _LT_TAGVAR(postdep_objects, $1)="$p" 8339 else 8340 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" 8341 fi 8342 fi 8343 ;; 8344 8345 *) ;; # Ignore the rest. 8346 8347 esac 8348 done 8349 8350 # Clean up. 8351 rm -f a.out a.exe 8352else 8353 echo "libtool.m4: error: problem compiling $1 test program" 8354fi 8355 8356$RM -f confest.$objext 8357CFLAGS=$_lt_libdeps_save_CFLAGS 8358 8359# PORTME: override above test on systems where it is broken 8360m4_if([$1], [CXX], 8361[case $host_os in 8362interix[[3-9]]*) 8363 # Interix 3.5 installs completely hosed .la files for C++, so rather than 8364 # hack all around it, let's just trust "g++" to DTRT. 8365 _LT_TAGVAR(predep_objects,$1)= 8366 _LT_TAGVAR(postdep_objects,$1)= 8367 _LT_TAGVAR(postdeps,$1)= 8368 ;; 8369 8370linux*) 8371 case `$CC -V 2>&1 | sed 5q` in 8372 *Sun\ C*) 8373 # Sun C++ 5.9 8374 8375 # The more standards-conforming stlport4 library is 8376 # incompatible with the Cstd library. Avoid specifying 8377 # it if it's in CXXFLAGS. Ignore libCrun as 8378 # -library=stlport4 depends on it. 8379 case " $CXX $CXXFLAGS " in 8380 *" -library=stlport4 "*) 8381 solaris_use_stlport4=yes 8382 ;; 8383 esac 8384 8385 if test "$solaris_use_stlport4" != yes; then 8386 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 8387 fi 8388 ;; 8389 esac 8390 ;; 8391 8392solaris*) 8393 case $cc_basename in 8394 CC* | sunCC*) 8395 # The more standards-conforming stlport4 library is 8396 # incompatible with the Cstd library. Avoid specifying 8397 # it if it's in CXXFLAGS. Ignore libCrun as 8398 # -library=stlport4 depends on it. 8399 case " $CXX $CXXFLAGS " in 8400 *" -library=stlport4 "*) 8401 solaris_use_stlport4=yes 8402 ;; 8403 esac 8404 8405 # Adding this requires a known-good setup of shared libraries for 8406 # Sun compiler versions before 5.6, else PIC objects from an old 8407 # archive will be linked into the output, leading to subtle bugs. 8408 if test "$solaris_use_stlport4" != yes; then 8409 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 8410 fi 8411 ;; 8412 esac 8413 ;; 8414esac 8415]) 8416 8417case " $_LT_TAGVAR(postdeps, $1) " in 8418*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; 8419esac 8420 _LT_TAGVAR(compiler_lib_search_dirs, $1)= 8421if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then 8422 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 8423fi 8424_LT_TAGDECL([], [compiler_lib_search_dirs], [1], 8425 [The directories searched by this compiler when creating a shared library]) 8426_LT_TAGDECL([], [predep_objects], [1], 8427 [Dependencies to place before and after the objects being linked to 8428 create a shared library]) 8429_LT_TAGDECL([], [postdep_objects], [1]) 8430_LT_TAGDECL([], [predeps], [1]) 8431_LT_TAGDECL([], [postdeps], [1]) 8432_LT_TAGDECL([], [compiler_lib_search_path], [1], 8433 [The library search path used internally by the compiler when linking 8434 a shared library]) 8435])# _LT_SYS_HIDDEN_LIBDEPS 8436 8437 8438# _LT_LANG_F77_CONFIG([TAG]) 8439# -------------------------- 8440# Ensure that the configuration variables for a Fortran 77 compiler are 8441# suitably defined. These variables are subsequently used by _LT_CONFIG 8442# to write the compiler configuration to `libtool'. 8443m4_defun([_LT_LANG_F77_CONFIG], 8444[AC_LANG_PUSH(Fortran 77) 8445if test -z "$F77" || test "X$F77" = "Xno"; then 8446 _lt_disable_F77=yes 8447fi 8448 8449_LT_TAGVAR(archive_cmds_need_lc, $1)=no 8450_LT_TAGVAR(allow_undefined_flag, $1)= 8451_LT_TAGVAR(always_export_symbols, $1)=no 8452_LT_TAGVAR(archive_expsym_cmds, $1)= 8453_LT_TAGVAR(export_dynamic_flag_spec, $1)= 8454_LT_TAGVAR(hardcode_direct, $1)=no 8455_LT_TAGVAR(hardcode_direct_absolute, $1)=no 8456_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 8457_LT_TAGVAR(hardcode_libdir_separator, $1)= 8458_LT_TAGVAR(hardcode_minus_L, $1)=no 8459_LT_TAGVAR(hardcode_automatic, $1)=no 8460_LT_TAGVAR(inherit_rpath, $1)=no 8461_LT_TAGVAR(module_cmds, $1)= 8462_LT_TAGVAR(module_expsym_cmds, $1)= 8463_LT_TAGVAR(link_all_deplibs, $1)=unknown 8464_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 8465_LT_TAGVAR(reload_flag, $1)=$reload_flag 8466_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 8467_LT_TAGVAR(no_undefined_flag, $1)= 8468_LT_TAGVAR(whole_archive_flag_spec, $1)= 8469_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 8470 8471# Source file extension for f77 test sources. 8472ac_ext=f 8473 8474# Object file extension for compiled f77 test sources. 8475objext=o 8476_LT_TAGVAR(objext, $1)=$objext 8477 8478# No sense in running all these tests if we already determined that 8479# the F77 compiler isn't working. Some variables (like enable_shared) 8480# are currently assumed to apply to all compilers on this platform, 8481# and will be corrupted by setting them based on a non-working compiler. 8482if test "$_lt_disable_F77" != yes; then 8483 # Code to be used in simple compile tests 8484 lt_simple_compile_test_code="\ 8485 subroutine t 8486 return 8487 end 8488" 8489 8490 # Code to be used in simple link tests 8491 lt_simple_link_test_code="\ 8492 program t 8493 end 8494" 8495 8496 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 8497 _LT_TAG_COMPILER 8498 8499 # save warnings/boilerplate of simple test code 8500 _LT_COMPILER_BOILERPLATE 8501 _LT_LINKER_BOILERPLATE 8502 8503 # Allow CC to be a program name with arguments. 8504 lt_save_CC="$CC" 8505 lt_save_GCC=$GCC 8506 lt_save_CFLAGS=$CFLAGS 8507 CC=${F77-"f77"} 8508 CFLAGS=$FFLAGS 8509 compiler=$CC 8510 _LT_TAGVAR(compiler, $1)=$CC 8511 _LT_CC_BASENAME([$compiler]) 8512 GCC=$G77 8513 if test -n "$compiler"; then 8514 AC_MSG_CHECKING([if libtool supports shared libraries]) 8515 AC_MSG_RESULT([$can_build_shared]) 8516 8517 AC_MSG_CHECKING([whether to build shared libraries]) 8518 test "$can_build_shared" = "no" && enable_shared=no 8519 8520 # On AIX, shared libraries and static libraries use the same namespace, and 8521 # are all built from PIC. 8522 case $host_os in 8523 aix3*) 8524 test "$enable_shared" = yes && enable_static=no 8525 if test -n "$RANLIB"; then 8526 archive_cmds="$archive_cmds~\$RANLIB \$lib" 8527 postinstall_cmds='$RANLIB $lib' 8528 fi 8529 ;; 8530 aix[[4-9]]*) 8531 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 8532 test "$enable_shared" = yes && enable_static=no 8533 fi 8534 ;; 8535 esac 8536 AC_MSG_RESULT([$enable_shared]) 8537 8538 AC_MSG_CHECKING([whether to build static libraries]) 8539 # Make sure either enable_shared or enable_static is yes. 8540 test "$enable_shared" = yes || enable_static=yes 8541 AC_MSG_RESULT([$enable_static]) 8542 8543 _LT_TAGVAR(GCC, $1)="$G77" 8544 _LT_TAGVAR(LD, $1)="$LD" 8545 8546 ## CAVEAT EMPTOR: 8547 ## There is no encapsulation within the following macros, do not change 8548 ## the running order or otherwise move them around unless you know exactly 8549 ## what you are doing... 8550 _LT_COMPILER_PIC($1) 8551 _LT_COMPILER_C_O($1) 8552 _LT_COMPILER_FILE_LOCKS($1) 8553 _LT_LINKER_SHLIBS($1) 8554 _LT_SYS_DYNAMIC_LINKER($1) 8555 _LT_LINKER_HARDCODE_LIBPATH($1) 8556 8557 _LT_CONFIG($1) 8558 fi # test -n "$compiler" 8559 8560 GCC=$lt_save_GCC 8561 CC="$lt_save_CC" 8562 CFLAGS="$lt_save_CFLAGS" 8563fi # test "$_lt_disable_F77" != yes 8564 8565AC_LANG_POP 8566])# _LT_LANG_F77_CONFIG 8567 8568 8569# _LT_LANG_FC_CONFIG([TAG]) 8570# ------------------------- 8571# Ensure that the configuration variables for a Fortran compiler are 8572# suitably defined. These variables are subsequently used by _LT_CONFIG 8573# to write the compiler configuration to `libtool'. 8574m4_defun([_LT_LANG_FC_CONFIG], 8575[AC_LANG_PUSH(Fortran) 8576 8577if test -z "$FC" || test "X$FC" = "Xno"; then 8578 _lt_disable_FC=yes 8579fi 8580 8581_LT_TAGVAR(archive_cmds_need_lc, $1)=no 8582_LT_TAGVAR(allow_undefined_flag, $1)= 8583_LT_TAGVAR(always_export_symbols, $1)=no 8584_LT_TAGVAR(archive_expsym_cmds, $1)= 8585_LT_TAGVAR(export_dynamic_flag_spec, $1)= 8586_LT_TAGVAR(hardcode_direct, $1)=no 8587_LT_TAGVAR(hardcode_direct_absolute, $1)=no 8588_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 8589_LT_TAGVAR(hardcode_libdir_separator, $1)= 8590_LT_TAGVAR(hardcode_minus_L, $1)=no 8591_LT_TAGVAR(hardcode_automatic, $1)=no 8592_LT_TAGVAR(inherit_rpath, $1)=no 8593_LT_TAGVAR(module_cmds, $1)= 8594_LT_TAGVAR(module_expsym_cmds, $1)= 8595_LT_TAGVAR(link_all_deplibs, $1)=unknown 8596_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 8597_LT_TAGVAR(reload_flag, $1)=$reload_flag 8598_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 8599_LT_TAGVAR(no_undefined_flag, $1)= 8600_LT_TAGVAR(whole_archive_flag_spec, $1)= 8601_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 8602 8603# Source file extension for fc test sources. 8604ac_ext=${ac_fc_srcext-f} 8605 8606# Object file extension for compiled fc test sources. 8607objext=o 8608_LT_TAGVAR(objext, $1)=$objext 8609 8610# No sense in running all these tests if we already determined that 8611# the FC compiler isn't working. Some variables (like enable_shared) 8612# are currently assumed to apply to all compilers on this platform, 8613# and will be corrupted by setting them based on a non-working compiler. 8614if test "$_lt_disable_FC" != yes; then 8615 # Code to be used in simple compile tests 8616 lt_simple_compile_test_code="\ 8617 subroutine t 8618 return 8619 end 8620" 8621 8622 # Code to be used in simple link tests 8623 lt_simple_link_test_code="\ 8624 program t 8625 end 8626" 8627 8628 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 8629 _LT_TAG_COMPILER 8630 8631 # save warnings/boilerplate of simple test code 8632 _LT_COMPILER_BOILERPLATE 8633 _LT_LINKER_BOILERPLATE 8634 8635 # Allow CC to be a program name with arguments. 8636 lt_save_CC="$CC" 8637 lt_save_GCC=$GCC 8638 lt_save_CFLAGS=$CFLAGS 8639 CC=${FC-"f95"} 8640 CFLAGS=$FCFLAGS 8641 compiler=$CC 8642 GCC=$ac_cv_fc_compiler_gnu 8643 8644 _LT_TAGVAR(compiler, $1)=$CC 8645 _LT_CC_BASENAME([$compiler]) 8646 8647 if test -n "$compiler"; then 8648 AC_MSG_CHECKING([if libtool supports shared libraries]) 8649 AC_MSG_RESULT([$can_build_shared]) 8650 8651 AC_MSG_CHECKING([whether to build shared libraries]) 8652 test "$can_build_shared" = "no" && enable_shared=no 8653 8654 # On AIX, shared libraries and static libraries use the same namespace, and 8655 # are all built from PIC. 8656 case $host_os in 8657 aix3*) 8658 test "$enable_shared" = yes && enable_static=no 8659 if test -n "$RANLIB"; then 8660 archive_cmds="$archive_cmds~\$RANLIB \$lib" 8661 postinstall_cmds='$RANLIB $lib' 8662 fi 8663 ;; 8664 aix[[4-9]]*) 8665 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 8666 test "$enable_shared" = yes && enable_static=no 8667 fi 8668 ;; 8669 esac 8670 AC_MSG_RESULT([$enable_shared]) 8671 8672 AC_MSG_CHECKING([whether to build static libraries]) 8673 # Make sure either enable_shared or enable_static is yes. 8674 test "$enable_shared" = yes || enable_static=yes 8675 AC_MSG_RESULT([$enable_static]) 8676 8677 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" 8678 _LT_TAGVAR(LD, $1)="$LD" 8679 8680 ## CAVEAT EMPTOR: 8681 ## There is no encapsulation within the following macros, do not change 8682 ## the running order or otherwise move them around unless you know exactly 8683 ## what you are doing... 8684 _LT_SYS_HIDDEN_LIBDEPS($1) 8685 _LT_COMPILER_PIC($1) 8686 _LT_COMPILER_C_O($1) 8687 _LT_COMPILER_FILE_LOCKS($1) 8688 _LT_LINKER_SHLIBS($1) 8689 _LT_SYS_DYNAMIC_LINKER($1) 8690 _LT_LINKER_HARDCODE_LIBPATH($1) 8691 8692 _LT_CONFIG($1) 8693 fi # test -n "$compiler" 8694 8695 GCC=$lt_save_GCC 8696 CC=$lt_save_CC 8697 CFLAGS=$lt_save_CFLAGS 8698fi # test "$_lt_disable_FC" != yes 8699 8700AC_LANG_POP 8701])# _LT_LANG_FC_CONFIG 8702 8703 8704# _LT_LANG_GCJ_CONFIG([TAG]) 8705# -------------------------- 8706# Ensure that the configuration variables for the GNU Java Compiler compiler 8707# are suitably defined. These variables are subsequently used by _LT_CONFIG 8708# to write the compiler configuration to `libtool'. 8709m4_defun([_LT_LANG_GCJ_CONFIG], 8710[AC_REQUIRE([LT_PROG_GCJ])dnl 8711AC_LANG_SAVE 8712 8713# Source file extension for Java test sources. 8714ac_ext=java 8715 8716# Object file extension for compiled Java test sources. 8717objext=o 8718_LT_TAGVAR(objext, $1)=$objext 8719 8720# Code to be used in simple compile tests 8721lt_simple_compile_test_code="class foo {}" 8722 8723# Code to be used in simple link tests 8724lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 8725 8726# ltmain only uses $CC for tagged configurations so make sure $CC is set. 8727_LT_TAG_COMPILER 8728 8729# save warnings/boilerplate of simple test code 8730_LT_COMPILER_BOILERPLATE 8731_LT_LINKER_BOILERPLATE 8732 8733# Allow CC to be a program name with arguments. 8734lt_save_CC=$CC 8735lt_save_CFLAGS=$CFLAGS 8736lt_save_GCC=$GCC 8737GCC=yes 8738CC=${GCJ-"gcj"} 8739CFLAGS=$GCJFLAGS 8740compiler=$CC 8741_LT_TAGVAR(compiler, $1)=$CC 8742_LT_TAGVAR(LD, $1)="$LD" 8743_LT_CC_BASENAME([$compiler]) 8744 8745# GCJ did not exist at the time GCC didn't implicitly link libc in. 8746_LT_TAGVAR(archive_cmds_need_lc, $1)=no 8747 8748_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 8749_LT_TAGVAR(reload_flag, $1)=$reload_flag 8750_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 8751 8752if test -n "$compiler"; then 8753 _LT_COMPILER_NO_RTTI($1) 8754 _LT_COMPILER_PIC($1) 8755 _LT_COMPILER_C_O($1) 8756 _LT_COMPILER_FILE_LOCKS($1) 8757 _LT_LINKER_SHLIBS($1) 8758 _LT_LINKER_HARDCODE_LIBPATH($1) 8759 8760 _LT_CONFIG($1) 8761fi 8762 8763AC_LANG_RESTORE 8764 8765GCC=$lt_save_GCC 8766CC=$lt_save_CC 8767CFLAGS=$lt_save_CFLAGS 8768])# _LT_LANG_GCJ_CONFIG 8769 8770 8771# _LT_LANG_GO_CONFIG([TAG]) 8772# -------------------------- 8773# Ensure that the configuration variables for the GNU Go compiler 8774# are suitably defined. These variables are subsequently used by _LT_CONFIG 8775# to write the compiler configuration to `libtool'. 8776m4_defun([_LT_LANG_GO_CONFIG], 8777[AC_REQUIRE([LT_PROG_GO])dnl 8778AC_LANG_SAVE 8779 8780# Source file extension for Go test sources. 8781ac_ext=go 8782 8783# Object file extension for compiled Go test sources. 8784objext=o 8785_LT_TAGVAR(objext, $1)=$objext 8786 8787# Code to be used in simple compile tests 8788lt_simple_compile_test_code="package main; func main() { }" 8789 8790# Code to be used in simple link tests 8791lt_simple_link_test_code='package main; func main() { }' 8792 8793# ltmain only uses $CC for tagged configurations so make sure $CC is set. 8794_LT_TAG_COMPILER 8795 8796# save warnings/boilerplate of simple test code 8797_LT_COMPILER_BOILERPLATE 8798_LT_LINKER_BOILERPLATE 8799 8800# Allow CC to be a program name with arguments. 8801lt_save_CC=$CC 8802lt_save_CFLAGS=$CFLAGS 8803lt_save_GCC=$GCC 8804GCC=yes 8805CC=${GOC-"gccgo"} 8806CFLAGS=$GOFLAGS 8807compiler=$CC 8808_LT_TAGVAR(compiler, $1)=$CC 8809_LT_TAGVAR(LD, $1)="$LD" 8810_LT_CC_BASENAME([$compiler]) 8811 8812# Go did not exist at the time GCC didn't implicitly link libc in. 8813_LT_TAGVAR(archive_cmds_need_lc, $1)=no 8814 8815_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 8816_LT_TAGVAR(reload_flag, $1)=$reload_flag 8817_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 8818 8819if test -n "$compiler"; then 8820 _LT_COMPILER_NO_RTTI($1) 8821 _LT_COMPILER_PIC($1) 8822 _LT_COMPILER_C_O($1) 8823 _LT_COMPILER_FILE_LOCKS($1) 8824 _LT_LINKER_SHLIBS($1) 8825 _LT_LINKER_HARDCODE_LIBPATH($1) 8826 8827 _LT_CONFIG($1) 8828fi 8829 8830AC_LANG_RESTORE 8831 8832GCC=$lt_save_GCC 8833CC=$lt_save_CC 8834CFLAGS=$lt_save_CFLAGS 8835])# _LT_LANG_GO_CONFIG 8836 8837 8838# _LT_LANG_RC_CONFIG([TAG]) 8839# ------------------------- 8840# Ensure that the configuration variables for the Windows resource compiler 8841# are suitably defined. These variables are subsequently used by _LT_CONFIG 8842# to write the compiler configuration to `libtool'. 8843m4_defun([_LT_LANG_RC_CONFIG], 8844[AC_REQUIRE([LT_PROG_RC])dnl 8845AC_LANG_SAVE 8846 8847# Source file extension for RC test sources. 8848ac_ext=rc 8849 8850# Object file extension for compiled RC test sources. 8851objext=o 8852_LT_TAGVAR(objext, $1)=$objext 8853 8854# Code to be used in simple compile tests 8855lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 8856 8857# Code to be used in simple link tests 8858lt_simple_link_test_code="$lt_simple_compile_test_code" 8859 8860# ltmain only uses $CC for tagged configurations so make sure $CC is set. 8861_LT_TAG_COMPILER 8862 8863# save warnings/boilerplate of simple test code 8864_LT_COMPILER_BOILERPLATE 8865_LT_LINKER_BOILERPLATE 8866 8867# Allow CC to be a program name with arguments. 8868lt_save_CC="$CC" 8869lt_save_CFLAGS=$CFLAGS 8870lt_save_GCC=$GCC 8871GCC= 8872CC=${RC-"windres"} 8873CFLAGS= 8874compiler=$CC 8875_LT_TAGVAR(compiler, $1)=$CC 8876_LT_CC_BASENAME([$compiler]) 8877_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 8878 8879if test -n "$compiler"; then 8880 : 8881 _LT_CONFIG($1) 8882fi 8883 8884GCC=$lt_save_GCC 8885AC_LANG_RESTORE 8886CC=$lt_save_CC 8887CFLAGS=$lt_save_CFLAGS 8888])# _LT_LANG_RC_CONFIG 8889 8890 8891# LT_PROG_GCJ 8892# ----------- 8893AC_DEFUN([LT_PROG_GCJ], 8894[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], 8895 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 8896 [AC_CHECK_TOOL(GCJ, gcj,) 8897 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 8898 AC_SUBST(GCJFLAGS)])])[]dnl 8899]) 8900 8901# Old name: 8902AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) 8903dnl aclocal-1.4 backwards compatibility: 8904dnl AC_DEFUN([LT_AC_PROG_GCJ], []) 8905 8906 8907# LT_PROG_GO 8908# ---------- 8909AC_DEFUN([LT_PROG_GO], 8910[AC_CHECK_TOOL(GOC, gccgo,) 8911]) 8912 8913 8914# LT_PROG_RC 8915# ---------- 8916AC_DEFUN([LT_PROG_RC], 8917[AC_CHECK_TOOL(RC, windres,) 8918]) 8919 8920# Old name: 8921AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) 8922dnl aclocal-1.4 backwards compatibility: 8923dnl AC_DEFUN([LT_AC_PROG_RC], []) 8924 8925 8926# _LT_DECL_EGREP 8927# -------------- 8928# If we don't have a new enough Autoconf to choose the best grep 8929# available, choose the one first in the user's PATH. 8930m4_defun([_LT_DECL_EGREP], 8931[AC_REQUIRE([AC_PROG_EGREP])dnl 8932AC_REQUIRE([AC_PROG_FGREP])dnl 8933test -z "$GREP" && GREP=grep 8934_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) 8935_LT_DECL([], [EGREP], [1], [An ERE matcher]) 8936_LT_DECL([], [FGREP], [1], [A literal string matcher]) 8937dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too 8938AC_SUBST([GREP]) 8939]) 8940 8941 8942# _LT_DECL_OBJDUMP 8943# -------------- 8944# If we don't have a new enough Autoconf to choose the best objdump 8945# available, choose the one first in the user's PATH. 8946m4_defun([_LT_DECL_OBJDUMP], 8947[AC_CHECK_TOOL(OBJDUMP, objdump, false) 8948test -z "$OBJDUMP" && OBJDUMP=objdump 8949_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) 8950AC_SUBST([OBJDUMP]) 8951]) 8952 8953# _LT_DECL_DLLTOOL 8954# ---------------- 8955# Ensure DLLTOOL variable is set. 8956m4_defun([_LT_DECL_DLLTOOL], 8957[AC_CHECK_TOOL(DLLTOOL, dlltool, false) 8958test -z "$DLLTOOL" && DLLTOOL=dlltool 8959_LT_DECL([], [DLLTOOL], [1], [DLL creation program]) 8960AC_SUBST([DLLTOOL]) 8961]) 8962 8963# _LT_DECL_SED 8964# ------------ 8965# Check for a fully-functional sed program, that truncates 8966# as few characters as possible. Prefer GNU sed if found. 8967m4_defun([_LT_DECL_SED], 8968[AC_PROG_SED 8969test -z "$SED" && SED=sed 8970Xsed="$SED -e 1s/^X//" 8971_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) 8972_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], 8973 [Sed that helps us avoid accidentally triggering echo(1) options like -n]) 8974])# _LT_DECL_SED 8975 8976m4_ifndef([AC_PROG_SED], [ 8977# NOTE: This macro has been submitted for inclusion into # 8978# GNU Autoconf as AC_PROG_SED. When it is available in # 8979# a released version of Autoconf we should remove this # 8980# macro and use it instead. # 8981 8982m4_defun([AC_PROG_SED], 8983[AC_MSG_CHECKING([for a sed that does not truncate output]) 8984AC_CACHE_VAL(lt_cv_path_SED, 8985[# Loop through the user's path and test for sed and gsed. 8986# Then use that list of sed's as ones to test for truncation. 8987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8988for as_dir in $PATH 8989do 8990 IFS=$as_save_IFS 8991 test -z "$as_dir" && as_dir=. 8992 for lt_ac_prog in sed gsed; do 8993 for ac_exec_ext in '' $ac_executable_extensions; do 8994 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 8995 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 8996 fi 8997 done 8998 done 8999done 9000IFS=$as_save_IFS 9001lt_ac_max=0 9002lt_ac_count=0 9003# Add /usr/xpg4/bin/sed as it is typically found on Solaris 9004# along with /bin/sed that truncates output. 9005for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 9006 test ! -f $lt_ac_sed && continue 9007 cat /dev/null > conftest.in 9008 lt_ac_count=0 9009 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 9010 # Check for GNU sed and select it if it is found. 9011 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 9012 lt_cv_path_SED=$lt_ac_sed 9013 break 9014 fi 9015 while true; do 9016 cat conftest.in conftest.in >conftest.tmp 9017 mv conftest.tmp conftest.in 9018 cp conftest.in conftest.nl 9019 echo >>conftest.nl 9020 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 9021 cmp -s conftest.out conftest.nl || break 9022 # 10000 chars as input seems more than enough 9023 test $lt_ac_count -gt 10 && break 9024 lt_ac_count=`expr $lt_ac_count + 1` 9025 if test $lt_ac_count -gt $lt_ac_max; then 9026 lt_ac_max=$lt_ac_count 9027 lt_cv_path_SED=$lt_ac_sed 9028 fi 9029 done 9030done 9031]) 9032SED=$lt_cv_path_SED 9033AC_SUBST([SED]) 9034AC_MSG_RESULT([$SED]) 9035])#AC_PROG_SED 9036])#m4_ifndef 9037 9038# Old name: 9039AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) 9040dnl aclocal-1.4 backwards compatibility: 9041dnl AC_DEFUN([LT_AC_PROG_SED], []) 9042 9043 9044# _LT_CHECK_SHELL_FEATURES 9045# ------------------------ 9046# Find out whether the shell is Bourne or XSI compatible, 9047# or has some other useful features. 9048m4_defun([_LT_CHECK_SHELL_FEATURES], 9049[AC_MSG_CHECKING([whether the shell understands some XSI constructs]) 9050# Try some XSI features 9051xsi_shell=no 9052( _lt_dummy="a/b/c" 9053 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 9054 = c,a/b,b/c, \ 9055 && eval 'test $(( 1 + 1 )) -eq 2 \ 9056 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 9057 && xsi_shell=yes 9058AC_MSG_RESULT([$xsi_shell]) 9059_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) 9060 9061AC_MSG_CHECKING([whether the shell understands "+="]) 9062lt_shell_append=no 9063( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ 9064 >/dev/null 2>&1 \ 9065 && lt_shell_append=yes 9066AC_MSG_RESULT([$lt_shell_append]) 9067_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) 9068 9069if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 9070 lt_unset=unset 9071else 9072 lt_unset=false 9073fi 9074_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl 9075 9076# test EBCDIC or ASCII 9077case `echo X|tr X '\101'` in 9078 A) # ASCII based system 9079 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 9080 lt_SP2NL='tr \040 \012' 9081 lt_NL2SP='tr \015\012 \040\040' 9082 ;; 9083 *) # EBCDIC based system 9084 lt_SP2NL='tr \100 \n' 9085 lt_NL2SP='tr \r\n \100\100' 9086 ;; 9087esac 9088_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl 9089_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl 9090])# _LT_CHECK_SHELL_FEATURES 9091 9092 9093# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY) 9094# ------------------------------------------------------ 9095# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and 9096# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY. 9097m4_defun([_LT_PROG_FUNCTION_REPLACE], 9098[dnl { 9099sed -e '/^$1 ()$/,/^} # $1 /c\ 9100$1 ()\ 9101{\ 9102m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1]) 9103} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \ 9104 && mv -f "$cfgfile.tmp" "$cfgfile" \ 9105 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 9106test 0 -eq $? || _lt_function_replace_fail=: 9107]) 9108 9109 9110# _LT_PROG_REPLACE_SHELLFNS 9111# ------------------------- 9112# Replace existing portable implementations of several shell functions with 9113# equivalent extended shell implementations where those features are available.. 9114m4_defun([_LT_PROG_REPLACE_SHELLFNS], 9115[if test x"$xsi_shell" = xyes; then 9116 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl 9117 case ${1} in 9118 */*) func_dirname_result="${1%/*}${2}" ;; 9119 * ) func_dirname_result="${3}" ;; 9120 esac]) 9121 9122 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl 9123 func_basename_result="${1##*/}"]) 9124 9125 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl 9126 case ${1} in 9127 */*) func_dirname_result="${1%/*}${2}" ;; 9128 * ) func_dirname_result="${3}" ;; 9129 esac 9130 func_basename_result="${1##*/}"]) 9131 9132 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl 9133 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 9134 # positional parameters, so assign one to ordinary parameter first. 9135 func_stripname_result=${3} 9136 func_stripname_result=${func_stripname_result#"${1}"} 9137 func_stripname_result=${func_stripname_result%"${2}"}]) 9138 9139 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl 9140 func_split_long_opt_name=${1%%=*} 9141 func_split_long_opt_arg=${1#*=}]) 9142 9143 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl 9144 func_split_short_opt_arg=${1#??} 9145 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}]) 9146 9147 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl 9148 case ${1} in 9149 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 9150 *) func_lo2o_result=${1} ;; 9151 esac]) 9152 9153 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo]) 9154 9155 _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))]) 9156 9157 _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}]) 9158fi 9159 9160if test x"$lt_shell_append" = xyes; then 9161 _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"]) 9162 9163 _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl 9164 func_quote_for_eval "${2}" 9165dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \ 9166 eval "${1}+=\\\\ \\$func_quote_for_eval_result"]) 9167 9168 # Save a `func_append' function call where possible by direct use of '+=' 9169 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 9170 && mv -f "$cfgfile.tmp" "$cfgfile" \ 9171 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 9172 test 0 -eq $? || _lt_function_replace_fail=: 9173else 9174 # Save a `func_append' function call even when '+=' is not available 9175 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 9176 && mv -f "$cfgfile.tmp" "$cfgfile" \ 9177 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 9178 test 0 -eq $? || _lt_function_replace_fail=: 9179fi 9180 9181if test x"$_lt_function_replace_fail" = x":"; then 9182 AC_MSG_WARN([Unable to substitute extended shell functions in $ofile]) 9183fi 9184]) 9185 9186# _LT_PATH_CONVERSION_FUNCTIONS 9187# ----------------------------- 9188# Determine which file name conversion functions should be used by 9189# func_to_host_file (and, implicitly, by func_to_host_path). These are needed 9190# for certain cross-compile configurations and native mingw. 9191m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], 9192[AC_REQUIRE([AC_CANONICAL_HOST])dnl 9193AC_REQUIRE([AC_CANONICAL_BUILD])dnl 9194AC_MSG_CHECKING([how to convert $build file names to $host format]) 9195AC_CACHE_VAL(lt_cv_to_host_file_cmd, 9196[case $host in 9197 *-*-mingw* ) 9198 case $build in 9199 *-*-mingw* ) # actually msys 9200 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 9201 ;; 9202 *-*-cygwin* ) 9203 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 9204 ;; 9205 * ) # otherwise, assume *nix 9206 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 9207 ;; 9208 esac 9209 ;; 9210 *-*-cygwin* ) 9211 case $build in 9212 *-*-mingw* ) # actually msys 9213 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 9214 ;; 9215 *-*-cygwin* ) 9216 lt_cv_to_host_file_cmd=func_convert_file_noop 9217 ;; 9218 * ) # otherwise, assume *nix 9219 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 9220 ;; 9221 esac 9222 ;; 9223 * ) # unhandled hosts (and "normal" native builds) 9224 lt_cv_to_host_file_cmd=func_convert_file_noop 9225 ;; 9226esac 9227]) 9228to_host_file_cmd=$lt_cv_to_host_file_cmd 9229AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) 9230_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], 9231 [0], [convert $build file names to $host format])dnl 9232 9233AC_MSG_CHECKING([how to convert $build file names to toolchain format]) 9234AC_CACHE_VAL(lt_cv_to_tool_file_cmd, 9235[#assume ordinary cross tools, or native build. 9236lt_cv_to_tool_file_cmd=func_convert_file_noop 9237case $host in 9238 *-*-mingw* ) 9239 case $build in 9240 *-*-mingw* ) # actually msys 9241 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 9242 ;; 9243 esac 9244 ;; 9245esac 9246]) 9247to_tool_file_cmd=$lt_cv_to_tool_file_cmd 9248AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) 9249_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], 9250 [0], [convert $build files to toolchain format])dnl 9251])# _LT_PATH_CONVERSION_FUNCTIONS 9252 9253# Helper functions for option handling. -*- Autoconf -*- 9254# 9255# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, 9256# Inc. 9257# Written by Gary V. Vaughan, 2004 9258# 9259# This file is free software; the Free Software Foundation gives 9260# unlimited permission to copy and/or distribute it, with or without 9261# modifications, as long as this notice is preserved. 9262 9263# serial 7 ltoptions.m4 9264 9265# This is to help aclocal find these macros, as it can't see m4_define. 9266AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) 9267 9268 9269# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) 9270# ------------------------------------------ 9271m4_define([_LT_MANGLE_OPTION], 9272[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) 9273 9274 9275# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) 9276# --------------------------------------- 9277# Set option OPTION-NAME for macro MACRO-NAME, and if there is a 9278# matching handler defined, dispatch to it. Other OPTION-NAMEs are 9279# saved as a flag. 9280m4_define([_LT_SET_OPTION], 9281[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl 9282m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), 9283 _LT_MANGLE_DEFUN([$1], [$2]), 9284 [m4_warning([Unknown $1 option `$2'])])[]dnl 9285]) 9286 9287 9288# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) 9289# ------------------------------------------------------------ 9290# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 9291m4_define([_LT_IF_OPTION], 9292[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) 9293 9294 9295# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) 9296# ------------------------------------------------------- 9297# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME 9298# are set. 9299m4_define([_LT_UNLESS_OPTIONS], 9300[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 9301 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), 9302 [m4_define([$0_found])])])[]dnl 9303m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 9304])[]dnl 9305]) 9306 9307 9308# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) 9309# ---------------------------------------- 9310# OPTION-LIST is a space-separated list of Libtool options associated 9311# with MACRO-NAME. If any OPTION has a matching handler declared with 9312# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about 9313# the unknown option and exit. 9314m4_defun([_LT_SET_OPTIONS], 9315[# Set options 9316m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 9317 [_LT_SET_OPTION([$1], _LT_Option)]) 9318 9319m4_if([$1],[LT_INIT],[ 9320 dnl 9321 dnl Simply set some default values (i.e off) if boolean options were not 9322 dnl specified: 9323 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no 9324 ]) 9325 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no 9326 ]) 9327 dnl 9328 dnl If no reference was made to various pairs of opposing options, then 9329 dnl we run the default mode handler for the pair. For example, if neither 9330 dnl `shared' nor `disable-shared' was passed, we enable building of shared 9331 dnl archives by default: 9332 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) 9333 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) 9334 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) 9335 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], 9336 [_LT_ENABLE_FAST_INSTALL]) 9337 ]) 9338])# _LT_SET_OPTIONS 9339 9340 9341 9342# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) 9343# ----------------------------------------- 9344m4_define([_LT_MANGLE_DEFUN], 9345[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) 9346 9347 9348# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) 9349# ----------------------------------------------- 9350m4_define([LT_OPTION_DEFINE], 9351[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl 9352])# LT_OPTION_DEFINE 9353 9354 9355# dlopen 9356# ------ 9357LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes 9358]) 9359 9360AU_DEFUN([AC_LIBTOOL_DLOPEN], 9361[_LT_SET_OPTION([LT_INIT], [dlopen]) 9362AC_DIAGNOSE([obsolete], 9363[$0: Remove this warning and the call to _LT_SET_OPTION when you 9364put the `dlopen' option into LT_INIT's first parameter.]) 9365]) 9366 9367dnl aclocal-1.4 backwards compatibility: 9368dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) 9369 9370 9371# win32-dll 9372# --------- 9373# Declare package support for building win32 dll's. 9374LT_OPTION_DEFINE([LT_INIT], [win32-dll], 9375[enable_win32_dll=yes 9376 9377case $host in 9378*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 9379 AC_CHECK_TOOL(AS, as, false) 9380 AC_CHECK_TOOL(DLLTOOL, dlltool, false) 9381 AC_CHECK_TOOL(OBJDUMP, objdump, false) 9382 ;; 9383esac 9384 9385test -z "$AS" && AS=as 9386_LT_DECL([], [AS], [1], [Assembler program])dnl 9387 9388test -z "$DLLTOOL" && DLLTOOL=dlltool 9389_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl 9390 9391test -z "$OBJDUMP" && OBJDUMP=objdump 9392_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl 9393])# win32-dll 9394 9395AU_DEFUN([AC_LIBTOOL_WIN32_DLL], 9396[AC_REQUIRE([AC_CANONICAL_HOST])dnl 9397_LT_SET_OPTION([LT_INIT], [win32-dll]) 9398AC_DIAGNOSE([obsolete], 9399[$0: Remove this warning and the call to _LT_SET_OPTION when you 9400put the `win32-dll' option into LT_INIT's first parameter.]) 9401]) 9402 9403dnl aclocal-1.4 backwards compatibility: 9404dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) 9405 9406 9407# _LT_ENABLE_SHARED([DEFAULT]) 9408# ---------------------------- 9409# implement the --enable-shared flag, and supports the `shared' and 9410# `disable-shared' LT_INIT options. 9411# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 9412m4_define([_LT_ENABLE_SHARED], 9413[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl 9414AC_ARG_ENABLE([shared], 9415 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 9416 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], 9417 [p=${PACKAGE-default} 9418 case $enableval in 9419 yes) enable_shared=yes ;; 9420 no) enable_shared=no ;; 9421 *) 9422 enable_shared=no 9423 # Look at the argument we got. We use all the common list separators. 9424 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9425 for pkg in $enableval; do 9426 IFS="$lt_save_ifs" 9427 if test "X$pkg" = "X$p"; then 9428 enable_shared=yes 9429 fi 9430 done 9431 IFS="$lt_save_ifs" 9432 ;; 9433 esac], 9434 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) 9435 9436 _LT_DECL([build_libtool_libs], [enable_shared], [0], 9437 [Whether or not to build shared libraries]) 9438])# _LT_ENABLE_SHARED 9439 9440LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) 9441LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) 9442 9443# Old names: 9444AC_DEFUN([AC_ENABLE_SHARED], 9445[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) 9446]) 9447 9448AC_DEFUN([AC_DISABLE_SHARED], 9449[_LT_SET_OPTION([LT_INIT], [disable-shared]) 9450]) 9451 9452AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 9453AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 9454 9455dnl aclocal-1.4 backwards compatibility: 9456dnl AC_DEFUN([AM_ENABLE_SHARED], []) 9457dnl AC_DEFUN([AM_DISABLE_SHARED], []) 9458 9459 9460 9461# _LT_ENABLE_STATIC([DEFAULT]) 9462# ---------------------------- 9463# implement the --enable-static flag, and support the `static' and 9464# `disable-static' LT_INIT options. 9465# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 9466m4_define([_LT_ENABLE_STATIC], 9467[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl 9468AC_ARG_ENABLE([static], 9469 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], 9470 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], 9471 [p=${PACKAGE-default} 9472 case $enableval in 9473 yes) enable_static=yes ;; 9474 no) enable_static=no ;; 9475 *) 9476 enable_static=no 9477 # Look at the argument we got. We use all the common list separators. 9478 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9479 for pkg in $enableval; do 9480 IFS="$lt_save_ifs" 9481 if test "X$pkg" = "X$p"; then 9482 enable_static=yes 9483 fi 9484 done 9485 IFS="$lt_save_ifs" 9486 ;; 9487 esac], 9488 [enable_static=]_LT_ENABLE_STATIC_DEFAULT) 9489 9490 _LT_DECL([build_old_libs], [enable_static], [0], 9491 [Whether or not to build static libraries]) 9492])# _LT_ENABLE_STATIC 9493 9494LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) 9495LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) 9496 9497# Old names: 9498AC_DEFUN([AC_ENABLE_STATIC], 9499[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) 9500]) 9501 9502AC_DEFUN([AC_DISABLE_STATIC], 9503[_LT_SET_OPTION([LT_INIT], [disable-static]) 9504]) 9505 9506AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 9507AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 9508 9509dnl aclocal-1.4 backwards compatibility: 9510dnl AC_DEFUN([AM_ENABLE_STATIC], []) 9511dnl AC_DEFUN([AM_DISABLE_STATIC], []) 9512 9513 9514 9515# _LT_ENABLE_FAST_INSTALL([DEFAULT]) 9516# ---------------------------------- 9517# implement the --enable-fast-install flag, and support the `fast-install' 9518# and `disable-fast-install' LT_INIT options. 9519# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 9520m4_define([_LT_ENABLE_FAST_INSTALL], 9521[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl 9522AC_ARG_ENABLE([fast-install], 9523 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 9524 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 9525 [p=${PACKAGE-default} 9526 case $enableval in 9527 yes) enable_fast_install=yes ;; 9528 no) enable_fast_install=no ;; 9529 *) 9530 enable_fast_install=no 9531 # Look at the argument we got. We use all the common list separators. 9532 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9533 for pkg in $enableval; do 9534 IFS="$lt_save_ifs" 9535 if test "X$pkg" = "X$p"; then 9536 enable_fast_install=yes 9537 fi 9538 done 9539 IFS="$lt_save_ifs" 9540 ;; 9541 esac], 9542 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) 9543 9544_LT_DECL([fast_install], [enable_fast_install], [0], 9545 [Whether or not to optimize for fast installation])dnl 9546])# _LT_ENABLE_FAST_INSTALL 9547 9548LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) 9549LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) 9550 9551# Old names: 9552AU_DEFUN([AC_ENABLE_FAST_INSTALL], 9553[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) 9554AC_DIAGNOSE([obsolete], 9555[$0: Remove this warning and the call to _LT_SET_OPTION when you put 9556the `fast-install' option into LT_INIT's first parameter.]) 9557]) 9558 9559AU_DEFUN([AC_DISABLE_FAST_INSTALL], 9560[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) 9561AC_DIAGNOSE([obsolete], 9562[$0: Remove this warning and the call to _LT_SET_OPTION when you put 9563the `disable-fast-install' option into LT_INIT's first parameter.]) 9564]) 9565 9566dnl aclocal-1.4 backwards compatibility: 9567dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) 9568dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) 9569 9570 9571# _LT_WITH_PIC([MODE]) 9572# -------------------- 9573# implement the --with-pic flag, and support the `pic-only' and `no-pic' 9574# LT_INIT options. 9575# MODE is either `yes' or `no'. If omitted, it defaults to `both'. 9576m4_define([_LT_WITH_PIC], 9577[AC_ARG_WITH([pic], 9578 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], 9579 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 9580 [lt_p=${PACKAGE-default} 9581 case $withval in 9582 yes|no) pic_mode=$withval ;; 9583 *) 9584 pic_mode=default 9585 # Look at the argument we got. We use all the common list separators. 9586 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9587 for lt_pkg in $withval; do 9588 IFS="$lt_save_ifs" 9589 if test "X$lt_pkg" = "X$lt_p"; then 9590 pic_mode=yes 9591 fi 9592 done 9593 IFS="$lt_save_ifs" 9594 ;; 9595 esac], 9596 [pic_mode=default]) 9597 9598test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) 9599 9600_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl 9601])# _LT_WITH_PIC 9602 9603LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) 9604LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) 9605 9606# Old name: 9607AU_DEFUN([AC_LIBTOOL_PICMODE], 9608[_LT_SET_OPTION([LT_INIT], [pic-only]) 9609AC_DIAGNOSE([obsolete], 9610[$0: Remove this warning and the call to _LT_SET_OPTION when you 9611put the `pic-only' option into LT_INIT's first parameter.]) 9612]) 9613 9614dnl aclocal-1.4 backwards compatibility: 9615dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) 9616 9617 9618m4_define([_LTDL_MODE], []) 9619LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], 9620 [m4_define([_LTDL_MODE], [nonrecursive])]) 9621LT_OPTION_DEFINE([LTDL_INIT], [recursive], 9622 [m4_define([_LTDL_MODE], [recursive])]) 9623LT_OPTION_DEFINE([LTDL_INIT], [subproject], 9624 [m4_define([_LTDL_MODE], [subproject])]) 9625 9626m4_define([_LTDL_TYPE], []) 9627LT_OPTION_DEFINE([LTDL_INIT], [installable], 9628 [m4_define([_LTDL_TYPE], [installable])]) 9629LT_OPTION_DEFINE([LTDL_INIT], [convenience], 9630 [m4_define([_LTDL_TYPE], [convenience])]) 9631 9632# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- 9633# 9634# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 9635# Written by Gary V. Vaughan, 2004 9636# 9637# This file is free software; the Free Software Foundation gives 9638# unlimited permission to copy and/or distribute it, with or without 9639# modifications, as long as this notice is preserved. 9640 9641# serial 6 ltsugar.m4 9642 9643# This is to help aclocal find these macros, as it can't see m4_define. 9644AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) 9645 9646 9647# lt_join(SEP, ARG1, [ARG2...]) 9648# ----------------------------- 9649# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their 9650# associated separator. 9651# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier 9652# versions in m4sugar had bugs. 9653m4_define([lt_join], 9654[m4_if([$#], [1], [], 9655 [$#], [2], [[$2]], 9656 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) 9657m4_define([_lt_join], 9658[m4_if([$#$2], [2], [], 9659 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) 9660 9661 9662# lt_car(LIST) 9663# lt_cdr(LIST) 9664# ------------ 9665# Manipulate m4 lists. 9666# These macros are necessary as long as will still need to support 9667# Autoconf-2.59 which quotes differently. 9668m4_define([lt_car], [[$1]]) 9669m4_define([lt_cdr], 9670[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], 9671 [$#], 1, [], 9672 [m4_dquote(m4_shift($@))])]) 9673m4_define([lt_unquote], $1) 9674 9675 9676# lt_append(MACRO-NAME, STRING, [SEPARATOR]) 9677# ------------------------------------------ 9678# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. 9679# Note that neither SEPARATOR nor STRING are expanded; they are appended 9680# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). 9681# No SEPARATOR is output if MACRO-NAME was previously undefined (different 9682# than defined and empty). 9683# 9684# This macro is needed until we can rely on Autoconf 2.62, since earlier 9685# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. 9686m4_define([lt_append], 9687[m4_define([$1], 9688 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) 9689 9690 9691 9692# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) 9693# ---------------------------------------------------------- 9694# Produce a SEP delimited list of all paired combinations of elements of 9695# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list 9696# has the form PREFIXmINFIXSUFFIXn. 9697# Needed until we can rely on m4_combine added in Autoconf 2.62. 9698m4_define([lt_combine], 9699[m4_if(m4_eval([$# > 3]), [1], 9700 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl 9701[[m4_foreach([_Lt_prefix], [$2], 9702 [m4_foreach([_Lt_suffix], 9703 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, 9704 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) 9705 9706 9707# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) 9708# ----------------------------------------------------------------------- 9709# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited 9710# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. 9711m4_define([lt_if_append_uniq], 9712[m4_ifdef([$1], 9713 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], 9714 [lt_append([$1], [$2], [$3])$4], 9715 [$5])], 9716 [lt_append([$1], [$2], [$3])$4])]) 9717 9718 9719# lt_dict_add(DICT, KEY, VALUE) 9720# ----------------------------- 9721m4_define([lt_dict_add], 9722[m4_define([$1($2)], [$3])]) 9723 9724 9725# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) 9726# -------------------------------------------- 9727m4_define([lt_dict_add_subkey], 9728[m4_define([$1($2:$3)], [$4])]) 9729 9730 9731# lt_dict_fetch(DICT, KEY, [SUBKEY]) 9732# ---------------------------------- 9733m4_define([lt_dict_fetch], 9734[m4_ifval([$3], 9735 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), 9736 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) 9737 9738 9739# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) 9740# ----------------------------------------------------------------- 9741m4_define([lt_if_dict_fetch], 9742[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], 9743 [$5], 9744 [$6])]) 9745 9746 9747# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) 9748# -------------------------------------------------------------- 9749m4_define([lt_dict_filter], 9750[m4_if([$5], [], [], 9751 [lt_join(m4_quote(m4_default([$4], [[, ]])), 9752 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), 9753 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl 9754]) 9755 9756# ltversion.m4 -- version numbers -*- Autoconf -*- 9757# 9758# Copyright (C) 2004 Free Software Foundation, Inc. 9759# Written by Scott James Remnant, 2004 9760# 9761# This file is free software; the Free Software Foundation gives 9762# unlimited permission to copy and/or distribute it, with or without 9763# modifications, as long as this notice is preserved. 9764 9765# @configure_input@ 9766 9767# serial 3337 ltversion.m4 9768# This file is part of GNU Libtool 9769 9770m4_define([LT_PACKAGE_VERSION], [2.4.2]) 9771m4_define([LT_PACKAGE_REVISION], [1.3337]) 9772 9773AC_DEFUN([LTVERSION_VERSION], 9774[macro_version='2.4.2' 9775macro_revision='1.3337' 9776_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 9777_LT_DECL(, macro_revision, 0) 9778]) 9779 9780# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- 9781# 9782# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. 9783# Written by Scott James Remnant, 2004. 9784# 9785# This file is free software; the Free Software Foundation gives 9786# unlimited permission to copy and/or distribute it, with or without 9787# modifications, as long as this notice is preserved. 9788 9789# serial 5 lt~obsolete.m4 9790 9791# These exist entirely to fool aclocal when bootstrapping libtool. 9792# 9793# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) 9794# which have later been changed to m4_define as they aren't part of the 9795# exported API, or moved to Autoconf or Automake where they belong. 9796# 9797# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN 9798# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us 9799# using a macro with the same name in our local m4/libtool.m4 it'll 9800# pull the old libtool.m4 in (it doesn't see our shiny new m4_define 9801# and doesn't know about Autoconf macros at all.) 9802# 9803# So we provide this file, which has a silly filename so it's always 9804# included after everything else. This provides aclocal with the 9805# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything 9806# because those macros already exist, or will be overwritten later. 9807# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 9808# 9809# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. 9810# Yes, that means every name once taken will need to remain here until 9811# we give up compatibility with versions before 1.7, at which point 9812# we need to keep only those names which we still refer to. 9813 9814# This is to help aclocal find these macros, as it can't see m4_define. 9815AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) 9816 9817m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) 9818m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) 9819m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) 9820m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) 9821m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) 9822m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) 9823m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) 9824m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) 9825m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) 9826m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) 9827m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) 9828m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) 9829m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) 9830m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) 9831m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) 9832m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) 9833m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) 9834m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) 9835m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) 9836m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) 9837m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) 9838m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) 9839m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) 9840m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) 9841m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) 9842m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) 9843m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) 9844m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) 9845m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) 9846m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) 9847m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) 9848m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) 9849m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) 9850m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) 9851m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) 9852m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) 9853m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) 9854m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) 9855m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) 9856m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) 9857m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) 9858m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) 9859m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) 9860m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) 9861m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) 9862m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) 9863m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) 9864m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) 9865m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) 9866m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) 9867m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) 9868m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) 9869m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) 9870m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) 9871m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) 9872m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) 9873m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) 9874m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) 9875m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) 9876m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) 9877m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) 9878 9879# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 9880# 9881# Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 9882# 9883# This program is free software; you can redistribute it and/or modify 9884# it under the terms of the GNU General Public License as published by 9885# the Free Software Foundation; either version 2 of the License, or 9886# (at your option) any later version. 9887# 9888# This program is distributed in the hope that it will be useful, but 9889# WITHOUT ANY WARRANTY; without even the implied warranty of 9890# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9891# General Public License for more details. 9892# 9893# You should have received a copy of the GNU General Public License 9894# along with this program; if not, write to the Free Software 9895# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 9896# 9897# As a special exception to the GNU General Public License, if you 9898# distribute this file as part of a program that contains a 9899# configuration script generated by Autoconf, you may include it under 9900# the same distribution terms that you use for the rest of that program. 9901 9902# PKG_PROG_PKG_CONFIG([MIN-VERSION]) 9903# ---------------------------------- 9904AC_DEFUN([PKG_PROG_PKG_CONFIG], 9905[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) 9906m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) 9907AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl 9908if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 9909 AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) 9910fi 9911if test -n "$PKG_CONFIG"; then 9912 _pkg_min_version=m4_default([$1], [0.9.0]) 9913 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) 9914 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 9915 AC_MSG_RESULT([yes]) 9916 else 9917 AC_MSG_RESULT([no]) 9918 PKG_CONFIG="" 9919 fi 9920 9921fi[]dnl 9922])# PKG_PROG_PKG_CONFIG 9923 9924# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 9925# 9926# Check to see whether a particular set of modules exists. Similar 9927# to PKG_CHECK_MODULES(), but does not set variables or print errors. 9928# 9929# 9930# Similar to PKG_CHECK_MODULES, make sure that the first instance of 9931# this or PKG_CHECK_MODULES is called, or make sure to call 9932# PKG_CHECK_EXISTS manually 9933# -------------------------------------------------------------- 9934AC_DEFUN([PKG_CHECK_EXISTS], 9935[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 9936if test -n "$PKG_CONFIG" && \ 9937 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then 9938 m4_ifval([$2], [$2], [:]) 9939m4_ifvaln([$3], [else 9940 $3])dnl 9941fi]) 9942 9943 9944# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 9945# --------------------------------------------- 9946m4_define([_PKG_CONFIG], 9947[if test -n "$$1"; then 9948 pkg_cv_[]$1="$$1" 9949 elif test -n "$PKG_CONFIG"; then 9950 PKG_CHECK_EXISTS([$3], 9951 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], 9952 [pkg_failed=yes]) 9953 else 9954 pkg_failed=untried 9955fi[]dnl 9956])# _PKG_CONFIG 9957 9958# _PKG_SHORT_ERRORS_SUPPORTED 9959# ----------------------------- 9960AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], 9961[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 9962if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 9963 _pkg_short_errors_supported=yes 9964else 9965 _pkg_short_errors_supported=no 9966fi[]dnl 9967])# _PKG_SHORT_ERRORS_SUPPORTED 9968 9969 9970# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 9971# [ACTION-IF-NOT-FOUND]) 9972# 9973# 9974# Note that if there is a possibility the first call to 9975# PKG_CHECK_MODULES might not happen, you should be sure to include an 9976# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 9977# 9978# 9979# -------------------------------------------------------------- 9980AC_DEFUN([PKG_CHECK_MODULES], 9981[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 9982AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl 9983AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl 9984 9985pkg_failed=no 9986AC_MSG_CHECKING([for $1]) 9987 9988_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) 9989_PKG_CONFIG([$1][_LIBS], [libs], [$2]) 9990 9991m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS 9992and $1[]_LIBS to avoid the need to call pkg-config. 9993See the pkg-config man page for more details.]) 9994 9995if test $pkg_failed = yes; then 9996 _PKG_SHORT_ERRORS_SUPPORTED 9997 if test $_pkg_short_errors_supported = yes; then 9998 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` 9999 else 10000 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1` 10001 fi 10002 # Put the nasty error message in config.log where it belongs 10003 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD 10004 10005 ifelse([$4], , [AC_MSG_ERROR(dnl 10006[Package requirements ($2) were not met: 10007 10008$$1_PKG_ERRORS 10009 10010Consider adjusting the PKG_CONFIG_PATH environment variable if you 10011installed software in a non-standard prefix. 10012 10013_PKG_TEXT 10014])], 10015 [AC_MSG_RESULT([no]) 10016 $4]) 10017elif test $pkg_failed = untried; then 10018 ifelse([$4], , [AC_MSG_FAILURE(dnl 10019[The pkg-config script could not be found or is too old. Make sure it 10020is in your PATH or set the PKG_CONFIG environment variable to the full 10021path to pkg-config. 10022 10023_PKG_TEXT 10024 10025To get pkg-config, see <http://pkg-config.freedesktop.org/>.])], 10026 [$4]) 10027else 10028 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS 10029 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS 10030 AC_MSG_RESULT([yes]) 10031 ifelse([$3], , :, [$3]) 10032fi[]dnl 10033])# PKG_CHECK_MODULES 10034 10035m4_include([acinclude.m4]) 10036