1# generated automatically by aclocal 1.16.1 -*- Autoconf -*- 2 3# Copyright (C) 1996-2018 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.69],, 18[m4_warning([this file was generated for autoconf 2.69. 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-2018 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.16' 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.16.1], [], 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.16.1])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-2018 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[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 107# Expand $ac_aux_dir to an absolute path. 108am_aux_dir=`cd "$ac_aux_dir" && pwd` 109]) 110 111# AM_CONDITIONAL -*- Autoconf -*- 112 113# Copyright (C) 1997-2018 Free Software Foundation, Inc. 114# 115# This file is free software; the Free Software Foundation 116# gives unlimited permission to copy and/or distribute it, 117# with or without modifications, as long as this notice is preserved. 118 119# AM_CONDITIONAL(NAME, SHELL-CONDITION) 120# ------------------------------------- 121# Define a conditional. 122AC_DEFUN([AM_CONDITIONAL], 123[AC_PREREQ([2.52])dnl 124 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 125 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 126AC_SUBST([$1_TRUE])dnl 127AC_SUBST([$1_FALSE])dnl 128_AM_SUBST_NOTMAKE([$1_TRUE])dnl 129_AM_SUBST_NOTMAKE([$1_FALSE])dnl 130m4_define([_AM_COND_VALUE_$1], [$2])dnl 131if $2; then 132 $1_TRUE= 133 $1_FALSE='#' 134else 135 $1_TRUE='#' 136 $1_FALSE= 137fi 138AC_CONFIG_COMMANDS_PRE( 139[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 140 AC_MSG_ERROR([[conditional "$1" was never defined. 141Usually this means the macro was only invoked conditionally.]]) 142fi])]) 143 144# Copyright (C) 1999-2018 Free Software Foundation, Inc. 145# 146# This file is free software; the Free Software Foundation 147# gives unlimited permission to copy and/or distribute it, 148# with or without modifications, as long as this notice is preserved. 149 150 151# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be 152# written in clear, in which case automake, when reading aclocal.m4, 153# will think it sees a *use*, and therefore will trigger all it's 154# C support machinery. Also note that it means that autoscan, seeing 155# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 156 157 158# _AM_DEPENDENCIES(NAME) 159# ---------------------- 160# See how the compiler implements dependency checking. 161# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". 162# We try a few techniques and use that to set a single cache variable. 163# 164# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 165# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 166# dependency, and given that the user is not expected to run this macro, 167# just rely on AC_PROG_CC. 168AC_DEFUN([_AM_DEPENDENCIES], 169[AC_REQUIRE([AM_SET_DEPDIR])dnl 170AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 171AC_REQUIRE([AM_MAKE_INCLUDE])dnl 172AC_REQUIRE([AM_DEP_TRACK])dnl 173 174m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], 175 [$1], [CXX], [depcc="$CXX" am_compiler_list=], 176 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 177 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], 178 [$1], [UPC], [depcc="$UPC" am_compiler_list=], 179 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 180 [depcc="$$1" am_compiler_list=]) 181 182AC_CACHE_CHECK([dependency style of $depcc], 183 [am_cv_$1_dependencies_compiler_type], 184[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 185 # We make a subdir and do the tests there. Otherwise we can end up 186 # making bogus files that we don't know about and never remove. For 187 # instance it was reported that on HP-UX the gcc test will end up 188 # making a dummy file named 'D' -- because '-MD' means "put the output 189 # in D". 190 rm -rf conftest.dir 191 mkdir conftest.dir 192 # Copy depcomp to subdir because otherwise we won't find it if we're 193 # using a relative directory. 194 cp "$am_depcomp" conftest.dir 195 cd conftest.dir 196 # We will build objects and dependencies in a subdirectory because 197 # it helps to detect inapplicable dependency modes. For instance 198 # both Tru64's cc and ICC support -MD to output dependencies as a 199 # side effect of compilation, but ICC will put the dependencies in 200 # the current directory while Tru64 will put them in the object 201 # directory. 202 mkdir sub 203 204 am_cv_$1_dependencies_compiler_type=none 205 if test "$am_compiler_list" = ""; then 206 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 207 fi 208 am__universal=false 209 m4_case([$1], [CC], 210 [case " $depcc " in #( 211 *\ -arch\ *\ -arch\ *) am__universal=true ;; 212 esac], 213 [CXX], 214 [case " $depcc " in #( 215 *\ -arch\ *\ -arch\ *) am__universal=true ;; 216 esac]) 217 218 for depmode in $am_compiler_list; do 219 # Setup a source with many dependencies, because some compilers 220 # like to wrap large dependency lists on column 80 (with \), and 221 # we should not choose a depcomp mode which is confused by this. 222 # 223 # We need to recreate these files for each test, as the compiler may 224 # overwrite some of them when testing with obscure command lines. 225 # This happens at least with the AIX C compiler. 226 : > sub/conftest.c 227 for i in 1 2 3 4 5 6; do 228 echo '#include "conftst'$i'.h"' >> sub/conftest.c 229 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 230 # Solaris 10 /bin/sh. 231 echo '/* dummy */' > sub/conftst$i.h 232 done 233 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 234 235 # We check with '-c' and '-o' for the sake of the "dashmstdout" 236 # mode. It turns out that the SunPro C++ compiler does not properly 237 # handle '-M -o', and we need to detect this. Also, some Intel 238 # versions had trouble with output in subdirs. 239 am__obj=sub/conftest.${OBJEXT-o} 240 am__minus_obj="-o $am__obj" 241 case $depmode in 242 gcc) 243 # This depmode causes a compiler race in universal mode. 244 test "$am__universal" = false || continue 245 ;; 246 nosideeffect) 247 # After this tag, mechanisms are not by side-effect, so they'll 248 # only be used when explicitly requested. 249 if test "x$enable_dependency_tracking" = xyes; then 250 continue 251 else 252 break 253 fi 254 ;; 255 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 256 # This compiler won't grok '-c -o', but also, the minuso test has 257 # not run yet. These depmodes are late enough in the game, and 258 # so weak that their functioning should not be impacted. 259 am__obj=conftest.${OBJEXT-o} 260 am__minus_obj= 261 ;; 262 none) break ;; 263 esac 264 if depmode=$depmode \ 265 source=sub/conftest.c object=$am__obj \ 266 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 267 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 268 >/dev/null 2>conftest.err && 269 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 270 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 271 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 272 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 273 # icc doesn't choke on unknown options, it will just issue warnings 274 # or remarks (even with -Werror). So we grep stderr for any message 275 # that says an option was ignored or not supported. 276 # When given -MP, icc 7.0 and 7.1 complain thusly: 277 # icc: Command line warning: ignoring option '-M'; no argument required 278 # The diagnosis changed in icc 8.0: 279 # icc: Command line remark: option '-MP' not supported 280 if (grep 'ignoring option' conftest.err || 281 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 282 am_cv_$1_dependencies_compiler_type=$depmode 283 break 284 fi 285 fi 286 done 287 288 cd .. 289 rm -rf conftest.dir 290else 291 am_cv_$1_dependencies_compiler_type=none 292fi 293]) 294AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 295AM_CONDITIONAL([am__fastdep$1], [ 296 test "x$enable_dependency_tracking" != xno \ 297 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 298]) 299 300 301# AM_SET_DEPDIR 302# ------------- 303# Choose a directory name for dependency files. 304# This macro is AC_REQUIREd in _AM_DEPENDENCIES. 305AC_DEFUN([AM_SET_DEPDIR], 306[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 307AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 308]) 309 310 311# AM_DEP_TRACK 312# ------------ 313AC_DEFUN([AM_DEP_TRACK], 314[AC_ARG_ENABLE([dependency-tracking], [dnl 315AS_HELP_STRING( 316 [--enable-dependency-tracking], 317 [do not reject slow dependency extractors]) 318AS_HELP_STRING( 319 [--disable-dependency-tracking], 320 [speeds up one-time build])]) 321if test "x$enable_dependency_tracking" != xno; then 322 am_depcomp="$ac_aux_dir/depcomp" 323 AMDEPBACKSLASH='\' 324 am__nodep='_no' 325fi 326AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 327AC_SUBST([AMDEPBACKSLASH])dnl 328_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 329AC_SUBST([am__nodep])dnl 330_AM_SUBST_NOTMAKE([am__nodep])dnl 331]) 332 333# Generate code to set up dependency tracking. -*- Autoconf -*- 334 335# Copyright (C) 1999-2018 Free Software Foundation, Inc. 336# 337# This file is free software; the Free Software Foundation 338# gives unlimited permission to copy and/or distribute it, 339# with or without modifications, as long as this notice is preserved. 340 341# _AM_OUTPUT_DEPENDENCY_COMMANDS 342# ------------------------------ 343AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 344[{ 345 # Older Autoconf quotes --file arguments for eval, but not when files 346 # are listed without --file. Let's play safe and only enable the eval 347 # if we detect the quoting. 348 # TODO: see whether this extra hack can be removed once we start 349 # requiring Autoconf 2.70 or later. 350 AS_CASE([$CONFIG_FILES], 351 [*\'*], [eval set x "$CONFIG_FILES"], 352 [*], [set x $CONFIG_FILES]) 353 shift 354 # Used to flag and report bootstrapping failures. 355 am_rc=0 356 for am_mf 357 do 358 # Strip MF so we end up with the name of the file. 359 am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'` 360 # Check whether this is an Automake generated Makefile which includes 361 # dependency-tracking related rules and includes. 362 # Grep'ing the whole file directly is not great: AIX grep has a line 363 # limit of 2048, but all sed's we know have understand at least 4000. 364 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 365 || continue 366 am_dirpart=`AS_DIRNAME(["$am_mf"])` 367 am_filepart=`AS_BASENAME(["$am_mf"])` 368 AM_RUN_LOG([cd "$am_dirpart" \ 369 && sed -e '/# am--include-marker/d' "$am_filepart" \ 370 | $MAKE -f - am--depfiles]) || am_rc=$? 371 done 372 if test $am_rc -ne 0; then 373 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments 374 for automatic dependency tracking. Try re-running configure with the 375 '--disable-dependency-tracking' option to at least be able to build 376 the package (albeit without support for automatic dependency tracking).]) 377 fi 378 AS_UNSET([am_dirpart]) 379 AS_UNSET([am_filepart]) 380 AS_UNSET([am_mf]) 381 AS_UNSET([am_rc]) 382 rm -f conftest-deps.mk 383} 384])# _AM_OUTPUT_DEPENDENCY_COMMANDS 385 386 387# AM_OUTPUT_DEPENDENCY_COMMANDS 388# ----------------------------- 389# This macro should only be invoked once -- use via AC_REQUIRE. 390# 391# This code is only required when automatic dependency tracking is enabled. 392# This creates each '.Po' and '.Plo' makefile fragment that we'll need in 393# order to bootstrap the dependency handling code. 394AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 395[AC_CONFIG_COMMANDS([depfiles], 396 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 397 [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])]) 398 399# Do all the work for Automake. -*- Autoconf -*- 400 401# Copyright (C) 1996-2018 Free Software Foundation, Inc. 402# 403# This file is free software; the Free Software Foundation 404# gives unlimited permission to copy and/or distribute it, 405# with or without modifications, as long as this notice is preserved. 406 407# This macro actually does too much. Some checks are only needed if 408# your package does certain things. But this isn't really a big deal. 409 410dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. 411m4_define([AC_PROG_CC], 412m4_defn([AC_PROG_CC]) 413[_AM_PROG_CC_C_O 414]) 415 416# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 417# AM_INIT_AUTOMAKE([OPTIONS]) 418# ----------------------------------------------- 419# The call with PACKAGE and VERSION arguments is the old style 420# call (pre autoconf-2.50), which is being phased out. PACKAGE 421# and VERSION should now be passed to AC_INIT and removed from 422# the call to AM_INIT_AUTOMAKE. 423# We support both call styles for the transition. After 424# the next Automake release, Autoconf can make the AC_INIT 425# arguments mandatory, and then we can depend on a new Autoconf 426# release and drop the old call support. 427AC_DEFUN([AM_INIT_AUTOMAKE], 428[AC_PREREQ([2.65])dnl 429dnl Autoconf wants to disallow AM_ names. We explicitly allow 430dnl the ones we care about. 431m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 432AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 433AC_REQUIRE([AC_PROG_INSTALL])dnl 434if test "`cd $srcdir && pwd`" != "`pwd`"; then 435 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 436 # is not polluted with repeated "-I." 437 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 438 # test to see if srcdir already configured 439 if test -f $srcdir/config.status; then 440 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 441 fi 442fi 443 444# test whether we have cygpath 445if test -z "$CYGPATH_W"; then 446 if (cygpath --version) >/dev/null 2>/dev/null; then 447 CYGPATH_W='cygpath -w' 448 else 449 CYGPATH_W=echo 450 fi 451fi 452AC_SUBST([CYGPATH_W]) 453 454# Define the identity of the package. 455dnl Distinguish between old-style and new-style calls. 456m4_ifval([$2], 457[AC_DIAGNOSE([obsolete], 458 [$0: two- and three-arguments forms are deprecated.]) 459m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 460 AC_SUBST([PACKAGE], [$1])dnl 461 AC_SUBST([VERSION], [$2])], 462[_AM_SET_OPTIONS([$1])dnl 463dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 464m4_if( 465 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), 466 [ok:ok],, 467 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 468 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 469 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 470 471_AM_IF_OPTION([no-define],, 472[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) 473 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl 474 475# Some tools Automake needs. 476AC_REQUIRE([AM_SANITY_CHECK])dnl 477AC_REQUIRE([AC_ARG_PROGRAM])dnl 478AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) 479AM_MISSING_PROG([AUTOCONF], [autoconf]) 480AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) 481AM_MISSING_PROG([AUTOHEADER], [autoheader]) 482AM_MISSING_PROG([MAKEINFO], [makeinfo]) 483AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 484AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 485AC_REQUIRE([AC_PROG_MKDIR_P])dnl 486# For better backward compatibility. To be removed once Automake 1.9.x 487# dies out for good. For more background, see: 488# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 489# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 490AC_SUBST([mkdir_p], ['$(MKDIR_P)']) 491# We need awk for the "check" target (and possibly the TAP driver). The 492# system "awk" is bad on some platforms. 493AC_REQUIRE([AC_PROG_AWK])dnl 494AC_REQUIRE([AC_PROG_MAKE_SET])dnl 495AC_REQUIRE([AM_SET_LEADING_DOT])dnl 496_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 497 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 498 [_AM_PROG_TAR([v7])])]) 499_AM_IF_OPTION([no-dependencies],, 500[AC_PROVIDE_IFELSE([AC_PROG_CC], 501 [_AM_DEPENDENCIES([CC])], 502 [m4_define([AC_PROG_CC], 503 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl 504AC_PROVIDE_IFELSE([AC_PROG_CXX], 505 [_AM_DEPENDENCIES([CXX])], 506 [m4_define([AC_PROG_CXX], 507 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl 508AC_PROVIDE_IFELSE([AC_PROG_OBJC], 509 [_AM_DEPENDENCIES([OBJC])], 510 [m4_define([AC_PROG_OBJC], 511 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl 512AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], 513 [_AM_DEPENDENCIES([OBJCXX])], 514 [m4_define([AC_PROG_OBJCXX], 515 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl 516]) 517AC_REQUIRE([AM_SILENT_RULES])dnl 518dnl The testsuite driver may need to know about EXEEXT, so add the 519dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This 520dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. 521AC_CONFIG_COMMANDS_PRE(dnl 522[m4_provide_if([_AM_COMPILER_EXEEXT], 523 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 524 525# POSIX will say in a future version that running "rm -f" with no argument 526# is OK; and we want to be able to make that assumption in our Makefile 527# recipes. So use an aggressive probe to check that the usage we want is 528# actually supported "in the wild" to an acceptable degree. 529# See automake bug#10828. 530# To make any issue more visible, cause the running configure to be aborted 531# by default if the 'rm' program in use doesn't match our expectations; the 532# user can still override this though. 533if rm -f && rm -fr && rm -rf; then : OK; else 534 cat >&2 <<'END' 535Oops! 536 537Your 'rm' program seems unable to run without file operands specified 538on the command line, even when the '-f' option is present. This is contrary 539to the behaviour of most rm programs out there, and not conforming with 540the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 541 542Please tell bug-automake@gnu.org about your system, including the value 543of your $PATH and any error possibly output before this message. This 544can help us improve future automake versions. 545 546END 547 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 548 echo 'Configuration will proceed anyway, since you have set the' >&2 549 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 550 echo >&2 551 else 552 cat >&2 <<'END' 553Aborting the configuration process, to ensure you take notice of the issue. 554 555You can download and install GNU coreutils to get an 'rm' implementation 556that behaves properly: <https://www.gnu.org/software/coreutils/>. 557 558If you want to complete the configuration process using your problematic 559'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 560to "yes", and re-run configure. 561 562END 563 AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) 564 fi 565fi 566dnl The trailing newline in this macro's definition is deliberate, for 567dnl backward compatibility and to allow trailing 'dnl'-style comments 568dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. 569]) 570 571dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 572dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 573dnl mangled by Autoconf and run in a shell conditional statement. 574m4_define([_AC_COMPILER_EXEEXT], 575m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 576 577# When config.status generates a header, we must update the stamp-h file. 578# This file resides in the same directory as the config header 579# that is generated. The stamp files are numbered to have different names. 580 581# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 582# loop where config.status creates the headers, so we can generate 583# our stamp files there. 584AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 585[# Compute $1's index in $config_headers. 586_am_arg=$1 587_am_stamp_count=1 588for _am_header in $config_headers :; do 589 case $_am_header in 590 $_am_arg | $_am_arg:* ) 591 break ;; 592 * ) 593 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 594 esac 595done 596echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 597 598# Copyright (C) 2001-2018 Free Software Foundation, Inc. 599# 600# This file is free software; the Free Software Foundation 601# gives unlimited permission to copy and/or distribute it, 602# with or without modifications, as long as this notice is preserved. 603 604# AM_PROG_INSTALL_SH 605# ------------------ 606# Define $install_sh. 607AC_DEFUN([AM_PROG_INSTALL_SH], 608[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 609if test x"${install_sh+set}" != xset; then 610 case $am_aux_dir in 611 *\ * | *\ *) 612 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 613 *) 614 install_sh="\${SHELL} $am_aux_dir/install-sh" 615 esac 616fi 617AC_SUBST([install_sh])]) 618 619# Copyright (C) 2003-2018 Free Software Foundation, Inc. 620# 621# This file is free software; the Free Software Foundation 622# gives unlimited permission to copy and/or distribute it, 623# with or without modifications, as long as this notice is preserved. 624 625# Check whether the underlying file-system supports filenames 626# with a leading dot. For instance MS-DOS doesn't. 627AC_DEFUN([AM_SET_LEADING_DOT], 628[rm -rf .tst 2>/dev/null 629mkdir .tst 2>/dev/null 630if test -d .tst; then 631 am__leading_dot=. 632else 633 am__leading_dot=_ 634fi 635rmdir .tst 2>/dev/null 636AC_SUBST([am__leading_dot])]) 637 638# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 639# From Jim Meyering 640 641# Copyright (C) 1996-2018 Free Software Foundation, Inc. 642# 643# This file is free software; the Free Software Foundation 644# gives unlimited permission to copy and/or distribute it, 645# with or without modifications, as long as this notice is preserved. 646 647# AM_MAINTAINER_MODE([DEFAULT-MODE]) 648# ---------------------------------- 649# Control maintainer-specific portions of Makefiles. 650# Default is to disable them, unless 'enable' is passed literally. 651# For symmetry, 'disable' may be passed as well. Anyway, the user 652# can override the default with the --enable/--disable switch. 653AC_DEFUN([AM_MAINTAINER_MODE], 654[m4_case(m4_default([$1], [disable]), 655 [enable], [m4_define([am_maintainer_other], [disable])], 656 [disable], [m4_define([am_maintainer_other], [enable])], 657 [m4_define([am_maintainer_other], [enable]) 658 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) 659AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) 660 dnl maintainer-mode's default is 'disable' unless 'enable' is passed 661 AC_ARG_ENABLE([maintainer-mode], 662 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], 663 am_maintainer_other[ make rules and dependencies not useful 664 (and sometimes confusing) to the casual installer])], 665 [USE_MAINTAINER_MODE=$enableval], 666 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) 667 AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 668 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) 669 MAINT=$MAINTAINER_MODE_TRUE 670 AC_SUBST([MAINT])dnl 671] 672) 673 674# Check to see how 'make' treats includes. -*- Autoconf -*- 675 676# Copyright (C) 2001-2018 Free Software Foundation, Inc. 677# 678# This file is free software; the Free Software Foundation 679# gives unlimited permission to copy and/or distribute it, 680# with or without modifications, as long as this notice is preserved. 681 682# AM_MAKE_INCLUDE() 683# ----------------- 684# Check whether make has an 'include' directive that can support all 685# the idioms we need for our automatic dependency tracking code. 686AC_DEFUN([AM_MAKE_INCLUDE], 687[AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive]) 688cat > confinc.mk << 'END' 689am__doit: 690 @echo this is the am__doit target >confinc.out 691.PHONY: am__doit 692END 693am__include="#" 694am__quote= 695# BSD make does it like this. 696echo '.include "confinc.mk" # ignored' > confmf.BSD 697# Other make implementations (GNU, Solaris 10, AIX) do it like this. 698echo 'include confinc.mk # ignored' > confmf.GNU 699_am_result=no 700for s in GNU BSD; do 701 AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) 702 AS_CASE([$?:`cat confinc.out 2>/dev/null`], 703 ['0:this is the am__doit target'], 704 [AS_CASE([$s], 705 [BSD], [am__include='.include' am__quote='"'], 706 [am__include='include' am__quote=''])]) 707 if test "$am__include" != "#"; then 708 _am_result="yes ($s style)" 709 break 710 fi 711done 712rm -f confinc.* confmf.* 713AC_MSG_RESULT([${_am_result}]) 714AC_SUBST([am__include])]) 715AC_SUBST([am__quote])]) 716 717# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 718 719# Copyright (C) 1997-2018 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# AM_MISSING_PROG(NAME, PROGRAM) 726# ------------------------------ 727AC_DEFUN([AM_MISSING_PROG], 728[AC_REQUIRE([AM_MISSING_HAS_RUN]) 729$1=${$1-"${am_missing_run}$2"} 730AC_SUBST($1)]) 731 732# AM_MISSING_HAS_RUN 733# ------------------ 734# Define MISSING if not defined so far and test if it is modern enough. 735# If it is, set am_missing_run to use it, otherwise, to nothing. 736AC_DEFUN([AM_MISSING_HAS_RUN], 737[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 738AC_REQUIRE_AUX_FILE([missing])dnl 739if test x"${MISSING+set}" != xset; then 740 case $am_aux_dir in 741 *\ * | *\ *) 742 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 743 *) 744 MISSING="\${SHELL} $am_aux_dir/missing" ;; 745 esac 746fi 747# Use eval to expand $SHELL 748if eval "$MISSING --is-lightweight"; then 749 am_missing_run="$MISSING " 750else 751 am_missing_run= 752 AC_MSG_WARN(['missing' script is too old or missing]) 753fi 754]) 755 756# Helper functions for option handling. -*- Autoconf -*- 757 758# Copyright (C) 2001-2018 Free Software Foundation, Inc. 759# 760# This file is free software; the Free Software Foundation 761# gives unlimited permission to copy and/or distribute it, 762# with or without modifications, as long as this notice is preserved. 763 764# _AM_MANGLE_OPTION(NAME) 765# ----------------------- 766AC_DEFUN([_AM_MANGLE_OPTION], 767[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 768 769# _AM_SET_OPTION(NAME) 770# -------------------- 771# Set option NAME. Presently that only means defining a flag for this option. 772AC_DEFUN([_AM_SET_OPTION], 773[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) 774 775# _AM_SET_OPTIONS(OPTIONS) 776# ------------------------ 777# OPTIONS is a space-separated list of Automake options. 778AC_DEFUN([_AM_SET_OPTIONS], 779[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 780 781# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 782# ------------------------------------------- 783# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 784AC_DEFUN([_AM_IF_OPTION], 785[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 786 787# Copyright (C) 1999-2018 Free Software Foundation, Inc. 788# 789# This file is free software; the Free Software Foundation 790# gives unlimited permission to copy and/or distribute it, 791# with or without modifications, as long as this notice is preserved. 792 793# _AM_PROG_CC_C_O 794# --------------- 795# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC 796# to automatically call this. 797AC_DEFUN([_AM_PROG_CC_C_O], 798[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 799AC_REQUIRE_AUX_FILE([compile])dnl 800AC_LANG_PUSH([C])dnl 801AC_CACHE_CHECK( 802 [whether $CC understands -c and -o together], 803 [am_cv_prog_cc_c_o], 804 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) 805 # Make sure it works both with $CC and with simple cc. 806 # Following AC_PROG_CC_C_O, we do the test twice because some 807 # compilers refuse to overwrite an existing .o file with -o, 808 # though they will create one. 809 am_cv_prog_cc_c_o=yes 810 for am_i in 1 2; do 811 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ 812 && test -f conftest2.$ac_objext; then 813 : OK 814 else 815 am_cv_prog_cc_c_o=no 816 break 817 fi 818 done 819 rm -f core conftest* 820 unset am_i]) 821if test "$am_cv_prog_cc_c_o" != yes; then 822 # Losing compiler, so override with the script. 823 # FIXME: It is wrong to rewrite CC. 824 # But if we don't then we get into trouble of one sort or another. 825 # A longer-term fix would be to have automake use am__CC in this case, 826 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 827 CC="$am_aux_dir/compile $CC" 828fi 829AC_LANG_POP([C])]) 830 831# For backward compatibility. 832AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) 833 834# Copyright (C) 2001-2018 Free Software Foundation, Inc. 835# 836# This file is free software; the Free Software Foundation 837# gives unlimited permission to copy and/or distribute it, 838# with or without modifications, as long as this notice is preserved. 839 840# AM_RUN_LOG(COMMAND) 841# ------------------- 842# Run COMMAND, save the exit status in ac_status, and log it. 843# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) 844AC_DEFUN([AM_RUN_LOG], 845[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD 846 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD 847 ac_status=$? 848 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 849 (exit $ac_status); }]) 850 851# Check to make sure that the build environment is sane. -*- Autoconf -*- 852 853# Copyright (C) 1996-2018 Free Software Foundation, Inc. 854# 855# This file is free software; the Free Software Foundation 856# gives unlimited permission to copy and/or distribute it, 857# with or without modifications, as long as this notice is preserved. 858 859# AM_SANITY_CHECK 860# --------------- 861AC_DEFUN([AM_SANITY_CHECK], 862[AC_MSG_CHECKING([whether build environment is sane]) 863# Reject unsafe characters in $srcdir or the absolute working directory 864# name. Accept space and tab only in the latter. 865am_lf=' 866' 867case `pwd` in 868 *[[\\\"\#\$\&\'\`$am_lf]]*) 869 AC_MSG_ERROR([unsafe absolute working directory name]);; 870esac 871case $srcdir in 872 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 873 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; 874esac 875 876# Do 'set' in a subshell so we don't clobber the current shell's 877# arguments. Must try -L first in case configure is actually a 878# symlink; some systems play weird games with the mod time of symlinks 879# (eg FreeBSD returns the mod time of the symlink's containing 880# directory). 881if ( 882 am_has_slept=no 883 for am_try in 1 2; do 884 echo "timestamp, slept: $am_has_slept" > conftest.file 885 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 886 if test "$[*]" = "X"; then 887 # -L didn't work. 888 set X `ls -t "$srcdir/configure" conftest.file` 889 fi 890 if test "$[*]" != "X $srcdir/configure conftest.file" \ 891 && test "$[*]" != "X conftest.file $srcdir/configure"; then 892 893 # If neither matched, then we have a broken ls. This can happen 894 # if, for instance, CONFIG_SHELL is bash and it inherits a 895 # broken ls alias from the environment. This has actually 896 # happened. Such a system could not be considered "sane". 897 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 898 alias in your environment]) 899 fi 900 if test "$[2]" = conftest.file || test $am_try -eq 2; then 901 break 902 fi 903 # Just in case. 904 sleep 1 905 am_has_slept=yes 906 done 907 test "$[2]" = conftest.file 908 ) 909then 910 # Ok. 911 : 912else 913 AC_MSG_ERROR([newly created file is older than distributed files! 914Check your system clock]) 915fi 916AC_MSG_RESULT([yes]) 917# If we didn't sleep, we still need to ensure time stamps of config.status and 918# generated files are strictly newer. 919am_sleep_pid= 920if grep 'slept: no' conftest.file >/dev/null 2>&1; then 921 ( sleep 1 ) & 922 am_sleep_pid=$! 923fi 924AC_CONFIG_COMMANDS_PRE( 925 [AC_MSG_CHECKING([that generated files are newer than configure]) 926 if test -n "$am_sleep_pid"; then 927 # Hide warnings about reused PIDs. 928 wait $am_sleep_pid 2>/dev/null 929 fi 930 AC_MSG_RESULT([done])]) 931rm -f conftest.file 932]) 933 934# Copyright (C) 2009-2018 Free Software Foundation, Inc. 935# 936# This file is free software; the Free Software Foundation 937# gives unlimited permission to copy and/or distribute it, 938# with or without modifications, as long as this notice is preserved. 939 940# AM_SILENT_RULES([DEFAULT]) 941# -------------------------- 942# Enable less verbose build rules; with the default set to DEFAULT 943# ("yes" being less verbose, "no" or empty being verbose). 944AC_DEFUN([AM_SILENT_RULES], 945[AC_ARG_ENABLE([silent-rules], [dnl 946AS_HELP_STRING( 947 [--enable-silent-rules], 948 [less verbose build output (undo: "make V=1")]) 949AS_HELP_STRING( 950 [--disable-silent-rules], 951 [verbose build output (undo: "make V=0")])dnl 952]) 953case $enable_silent_rules in @%:@ ((( 954 yes) AM_DEFAULT_VERBOSITY=0;; 955 no) AM_DEFAULT_VERBOSITY=1;; 956 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 957esac 958dnl 959dnl A few 'make' implementations (e.g., NonStop OS and NextStep) 960dnl do not support nested variable expansions. 961dnl See automake bug#9928 and bug#10237. 962am_make=${MAKE-make} 963AC_CACHE_CHECK([whether $am_make supports nested variables], 964 [am_cv_make_support_nested_variables], 965 [if AS_ECHO([['TRUE=$(BAR$(V)) 966BAR0=false 967BAR1=true 968V=1 969am__doit: 970 @$(TRUE) 971.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then 972 am_cv_make_support_nested_variables=yes 973else 974 am_cv_make_support_nested_variables=no 975fi]) 976if test $am_cv_make_support_nested_variables = yes; then 977 dnl Using '$V' instead of '$(V)' breaks IRIX make. 978 AM_V='$(V)' 979 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 980else 981 AM_V=$AM_DEFAULT_VERBOSITY 982 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 983fi 984AC_SUBST([AM_V])dnl 985AM_SUBST_NOTMAKE([AM_V])dnl 986AC_SUBST([AM_DEFAULT_V])dnl 987AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl 988AC_SUBST([AM_DEFAULT_VERBOSITY])dnl 989AM_BACKSLASH='\' 990AC_SUBST([AM_BACKSLASH])dnl 991_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 992]) 993 994# Copyright (C) 2001-2018 Free Software Foundation, Inc. 995# 996# This file is free software; the Free Software Foundation 997# gives unlimited permission to copy and/or distribute it, 998# with or without modifications, as long as this notice is preserved. 999 1000# AM_PROG_INSTALL_STRIP 1001# --------------------- 1002# One issue with vendor 'install' (even GNU) is that you can't 1003# specify the program used to strip binaries. This is especially 1004# annoying in cross-compiling environments, where the build's strip 1005# is unlikely to handle the host's binaries. 1006# Fortunately install-sh will honor a STRIPPROG variable, so we 1007# always use install-sh in "make install-strip", and initialize 1008# STRIPPROG with the value of the STRIP variable (set by the user). 1009AC_DEFUN([AM_PROG_INSTALL_STRIP], 1010[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 1011# Installed binaries are usually stripped using 'strip' when the user 1012# run "make install-strip". However 'strip' might not be the right 1013# tool to use in cross-compilation environments, therefore Automake 1014# will honor the 'STRIP' environment variable to overrule this program. 1015dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. 1016if test "$cross_compiling" != no; then 1017 AC_CHECK_TOOL([STRIP], [strip], :) 1018fi 1019INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 1020AC_SUBST([INSTALL_STRIP_PROGRAM])]) 1021 1022# Copyright (C) 2006-2018 Free Software Foundation, Inc. 1023# 1024# This file is free software; the Free Software Foundation 1025# gives unlimited permission to copy and/or distribute it, 1026# with or without modifications, as long as this notice is preserved. 1027 1028# _AM_SUBST_NOTMAKE(VARIABLE) 1029# --------------------------- 1030# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 1031# This macro is traced by Automake. 1032AC_DEFUN([_AM_SUBST_NOTMAKE]) 1033 1034# AM_SUBST_NOTMAKE(VARIABLE) 1035# -------------------------- 1036# Public sister of _AM_SUBST_NOTMAKE. 1037AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 1038 1039# Check how to create a tarball. -*- Autoconf -*- 1040 1041# Copyright (C) 2004-2018 Free Software Foundation, Inc. 1042# 1043# This file is free software; the Free Software Foundation 1044# gives unlimited permission to copy and/or distribute it, 1045# with or without modifications, as long as this notice is preserved. 1046 1047# _AM_PROG_TAR(FORMAT) 1048# -------------------- 1049# Check how to create a tarball in format FORMAT. 1050# FORMAT should be one of 'v7', 'ustar', or 'pax'. 1051# 1052# Substitute a variable $(am__tar) that is a command 1053# writing to stdout a FORMAT-tarball containing the directory 1054# $tardir. 1055# tardir=directory && $(am__tar) > result.tar 1056# 1057# Substitute a variable $(am__untar) that extract such 1058# a tarball read from stdin. 1059# $(am__untar) < result.tar 1060# 1061AC_DEFUN([_AM_PROG_TAR], 1062[# Always define AMTAR for backward compatibility. Yes, it's still used 1063# in the wild :-( We should find a proper way to deprecate it ... 1064AC_SUBST([AMTAR], ['$${TAR-tar}']) 1065 1066# We'll loop over all known methods to create a tar archive until one works. 1067_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 1068 1069m4_if([$1], [v7], 1070 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 1071 1072 [m4_case([$1], 1073 [ustar], 1074 [# The POSIX 1988 'ustar' format is defined with fixed-size fields. 1075 # There is notably a 21 bits limit for the UID and the GID. In fact, 1076 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 1077 # and bug#13588). 1078 am_max_uid=2097151 # 2^21 - 1 1079 am_max_gid=$am_max_uid 1080 # The $UID and $GID variables are not portable, so we need to resort 1081 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 1082 # below are definitely unexpected, so allow the users to see them 1083 # (that is, avoid stderr redirection). 1084 am_uid=`id -u || echo unknown` 1085 am_gid=`id -g || echo unknown` 1086 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) 1087 if test $am_uid -le $am_max_uid; then 1088 AC_MSG_RESULT([yes]) 1089 else 1090 AC_MSG_RESULT([no]) 1091 _am_tools=none 1092 fi 1093 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) 1094 if test $am_gid -le $am_max_gid; then 1095 AC_MSG_RESULT([yes]) 1096 else 1097 AC_MSG_RESULT([no]) 1098 _am_tools=none 1099 fi], 1100 1101 [pax], 1102 [], 1103 1104 [m4_fatal([Unknown tar format])]) 1105 1106 AC_MSG_CHECKING([how to create a $1 tar archive]) 1107 1108 # Go ahead even if we have the value already cached. We do so because we 1109 # need to set the values for the 'am__tar' and 'am__untar' variables. 1110 _am_tools=${am_cv_prog_tar_$1-$_am_tools} 1111 1112 for _am_tool in $_am_tools; do 1113 case $_am_tool in 1114 gnutar) 1115 for _am_tar in tar gnutar gtar; do 1116 AM_RUN_LOG([$_am_tar --version]) && break 1117 done 1118 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 1119 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 1120 am__untar="$_am_tar -xf -" 1121 ;; 1122 plaintar) 1123 # Must skip GNU tar: if it does not support --format= it doesn't create 1124 # ustar tarball either. 1125 (tar --version) >/dev/null 2>&1 && continue 1126 am__tar='tar chf - "$$tardir"' 1127 am__tar_='tar chf - "$tardir"' 1128 am__untar='tar xf -' 1129 ;; 1130 pax) 1131 am__tar='pax -L -x $1 -w "$$tardir"' 1132 am__tar_='pax -L -x $1 -w "$tardir"' 1133 am__untar='pax -r' 1134 ;; 1135 cpio) 1136 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 1137 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 1138 am__untar='cpio -i -H $1 -d' 1139 ;; 1140 none) 1141 am__tar=false 1142 am__tar_=false 1143 am__untar=false 1144 ;; 1145 esac 1146 1147 # If the value was cached, stop now. We just wanted to have am__tar 1148 # and am__untar set. 1149 test -n "${am_cv_prog_tar_$1}" && break 1150 1151 # tar/untar a dummy directory, and stop if the command works. 1152 rm -rf conftest.dir 1153 mkdir conftest.dir 1154 echo GrepMe > conftest.dir/file 1155 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 1156 rm -rf conftest.dir 1157 if test -s conftest.tar; then 1158 AM_RUN_LOG([$am__untar <conftest.tar]) 1159 AM_RUN_LOG([cat conftest.dir/file]) 1160 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 1161 fi 1162 done 1163 rm -rf conftest.dir 1164 1165 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 1166 AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 1167 1168AC_SUBST([am__tar]) 1169AC_SUBST([am__untar]) 1170]) # _AM_PROG_TAR 1171 1172# Copyright (C) 1995-2002 Free Software Foundation, Inc. 1173# Copyright (C) 2001-2003,2004 Red Hat, Inc. 1174# 1175# This file is free software, distributed under the terms of the GNU 1176# General Public License. As a special exception to the GNU General 1177# Public License, this file may be distributed as part of a program 1178# that contains a configuration script generated by Autoconf, under 1179# the same distribution terms as the rest of that program. 1180# 1181# This file can be copied and used freely without restrictions. It can 1182# be used in projects which are not available under the GNU Public License 1183# but which still want to provide support for the GNU gettext functionality. 1184# 1185# Macro to add for using GNU gettext. 1186# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996 1187# 1188# Modified to never use included libintl. 1189# Owen Taylor <otaylor@redhat.com>, 12/15/1998 1190# 1191# Major rework to remove unused code 1192# Owen Taylor <otaylor@redhat.com>, 12/11/2002 1193# 1194# Added better handling of ALL_LINGUAS from GNU gettext version 1195# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002 1196# 1197# Modified to require ngettext 1198# Matthias Clasen <mclasen@redhat.com> 08/06/2004 1199 1200# Increment this whenever this file is changed. 1201#serial 1 1202 1203# We need this here as well, since someone might use autoconf-2.5x 1204# to configure GLib then an older version to configure a package 1205# using AM_GLIB_GNU_GETTEXT 1206AC_PREREQ(2.53) 1207 1208dnl 1209dnl We go to great lengths to make sure that aclocal won't 1210dnl try to pull in the installed version of these macros 1211dnl when running aclocal in the glib directory. 1212dnl 1213m4_copy([AC_DEFUN],[glib_DEFUN]) 1214m4_copy([AC_REQUIRE],[glib_REQUIRE]) 1215dnl 1216dnl At the end, if we're not within glib, we'll define the public 1217dnl definitions in terms of our private definitions. 1218dnl 1219 1220# GLIB_LC_MESSAGES 1221#-------------------- 1222glib_DEFUN([GLIB_LC_MESSAGES], 1223 [AC_CHECK_HEADERS([locale.h]) 1224 if test $ac_cv_header_locale_h = yes; then 1225 AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, 1226 [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], 1227 am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) 1228 if test $am_cv_val_LC_MESSAGES = yes; then 1229 AC_DEFINE(HAVE_LC_MESSAGES, 1, 1230 [Define if your <locale.h> file defines LC_MESSAGES.]) 1231 fi 1232 fi]) 1233 1234# GLIB_PATH_PROG_WITH_TEST 1235#---------------------------- 1236dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, 1237dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) 1238glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], 1239[# Extract the first word of "$2", so it can be a program name with args. 1240set dummy $2; ac_word=[$]2 1241AC_MSG_CHECKING([for $ac_word]) 1242AC_CACHE_VAL(ac_cv_path_$1, 1243[case "[$]$1" in 1244 /*) 1245 ac_cv_path_$1="[$]$1" # Let the user override the test with a path. 1246 ;; 1247 *) 1248 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1249 for ac_dir in ifelse([$5], , $PATH, [$5]); do 1250 test -z "$ac_dir" && ac_dir=. 1251 if test -f $ac_dir/$ac_word; then 1252 if [$3]; then 1253 ac_cv_path_$1="$ac_dir/$ac_word" 1254 break 1255 fi 1256 fi 1257 done 1258 IFS="$ac_save_ifs" 1259dnl If no 4th arg is given, leave the cache variable unset, 1260dnl so AC_PATH_PROGS will keep looking. 1261ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" 1262])dnl 1263 ;; 1264esac])dnl 1265$1="$ac_cv_path_$1" 1266if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then 1267 AC_MSG_RESULT([$]$1) 1268else 1269 AC_MSG_RESULT(no) 1270fi 1271AC_SUBST($1)dnl 1272]) 1273 1274dnl Checks for special options needed on Mac OS X. 1275dnl Defines INTL_MACOSX_LIBS. 1276dnl 1277dnl Copied from intlmacosx.m4 in gettext, GPL. 1278dnl Copyright (C) 2004-2013 Free Software Foundation, Inc. 1279glib_DEFUN([glib_gt_INTL_MACOSX], 1280[ 1281 dnl Check for API introduced in Mac OS X 10.2. 1282 AC_CACHE_CHECK([for CFPreferencesCopyAppValue], 1283 [gt_cv_func_CFPreferencesCopyAppValue], 1284 [gt_save_LIBS="$LIBS" 1285 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 1286 AC_LINK_IFELSE( 1287 [AC_LANG_PROGRAM( 1288 [[#include <CoreFoundation/CFPreferences.h>]], 1289 [[CFPreferencesCopyAppValue(NULL, NULL)]])], 1290 [gt_cv_func_CFPreferencesCopyAppValue=yes], 1291 [gt_cv_func_CFPreferencesCopyAppValue=no]) 1292 LIBS="$gt_save_LIBS"]) 1293 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 1294 AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1], 1295 [Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) 1296 fi 1297 dnl Check for API introduced in Mac OS X 10.3. 1298 AC_CACHE_CHECK([for CFLocaleCopyCurrent], [gt_cv_func_CFLocaleCopyCurrent], 1299 [gt_save_LIBS="$LIBS" 1300 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 1301 AC_LINK_IFELSE( 1302 [AC_LANG_PROGRAM( 1303 [[#include <CoreFoundation/CFLocale.h>]], 1304 [[CFLocaleCopyCurrent();]])], 1305 [gt_cv_func_CFLocaleCopyCurrent=yes], 1306 [gt_cv_func_CFLocaleCopyCurrent=no]) 1307 LIBS="$gt_save_LIBS"]) 1308 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 1309 AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], [1], 1310 [Define to 1 if you have the Mac OS X function CFLocaleCopyCurrent in the CoreFoundation framework.]) 1311 fi 1312 INTL_MACOSX_LIBS= 1313 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 1314 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 1315 fi 1316 AC_SUBST([INTL_MACOSX_LIBS]) 1317]) 1318 1319# GLIB_WITH_NLS 1320#----------------- 1321glib_DEFUN([GLIB_WITH_NLS], 1322 dnl NLS is obligatory 1323 [USE_NLS=yes 1324 AC_SUBST(USE_NLS) 1325 1326 gt_cv_have_gettext=no 1327 1328 CATOBJEXT=NONE 1329 XGETTEXT=: 1330 INTLLIBS= 1331 1332 glib_gt_INTL_MACOSX 1333 1334 AC_CHECK_HEADER(libintl.h, 1335 [gt_cv_func_dgettext_libintl="no" 1336 libintl_extra_libs="" 1337 1338 # 1339 # First check in libc 1340 # 1341 AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc, 1342 [AC_TRY_LINK([ 1343#include <libintl.h> 1344], 1345 [return !ngettext ("","", 1)], 1346 gt_cv_func_ngettext_libc=yes, 1347 gt_cv_func_ngettext_libc=no) 1348 ]) 1349 1350 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 1351 AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, 1352 [AC_TRY_LINK([ 1353#include <libintl.h> 1354], 1355 [return !dgettext ("","")], 1356 gt_cv_func_dgettext_libc=yes, 1357 gt_cv_func_dgettext_libc=no) 1358 ]) 1359 fi 1360 1361 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 1362 AC_CHECK_FUNCS(bind_textdomain_codeset) 1363 fi 1364 1365 # 1366 # If we don't have everything we want, check in libintl 1367 # 1368 if test "$gt_cv_func_dgettext_libc" != "yes" \ 1369 || test "$gt_cv_func_ngettext_libc" != "yes" \ 1370 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then 1371 1372 AC_CHECK_LIB(intl, bindtextdomain, 1373 [AC_CHECK_LIB(intl, ngettext, 1374 [AC_CHECK_LIB(intl, dgettext, 1375 gt_cv_func_dgettext_libintl=yes)])]) 1376 1377 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then 1378 AC_MSG_CHECKING([if -liconv is needed to use gettext]) 1379 AC_MSG_RESULT([]) 1380 AC_CHECK_LIB(intl, ngettext, 1381 [AC_CHECK_LIB(intl, dcgettext, 1382 [gt_cv_func_dgettext_libintl=yes 1383 libintl_extra_libs=-liconv], 1384 :,-liconv)], 1385 :,-liconv) 1386 fi 1387 1388 # 1389 # If we found libintl, then check in it for bind_textdomain_codeset(); 1390 # we'll prefer libc if neither have bind_textdomain_codeset(), 1391 # and both have dgettext and ngettext 1392 # 1393 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then 1394 glib_save_LIBS="$LIBS" 1395 LIBS="$LIBS -lintl $libintl_extra_libs" 1396 unset ac_cv_func_bind_textdomain_codeset 1397 AC_CHECK_FUNCS(bind_textdomain_codeset) 1398 LIBS="$glib_save_LIBS" 1399 1400 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then 1401 gt_cv_func_dgettext_libc=no 1402 else 1403 if test "$gt_cv_func_dgettext_libc" = "yes" \ 1404 && test "$gt_cv_func_ngettext_libc" = "yes"; then 1405 gt_cv_func_dgettext_libintl=no 1406 fi 1407 fi 1408 fi 1409 fi 1410 1411 if test "$gt_cv_func_dgettext_libc" = "yes" \ 1412 || test "$gt_cv_func_dgettext_libintl" = "yes"; then 1413 gt_cv_have_gettext=yes 1414 fi 1415 1416 if test "$gt_cv_func_dgettext_libintl" = "yes"; then 1417 INTLLIBS="-lintl $libintl_extra_libs $INTL_MACOSX_LIBS" 1418 fi 1419 1420 if test "$gt_cv_have_gettext" = "yes"; then 1421 AC_DEFINE(HAVE_GETTEXT,1, 1422 [Define if the GNU gettext() function is already present or preinstalled.]) 1423 GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, 1424 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl 1425 if test "$MSGFMT" != "no"; then 1426 glib_save_LIBS="$LIBS" 1427 LIBS="$LIBS $INTLLIBS" 1428 AC_CHECK_FUNCS(dcgettext) 1429 MSGFMT_OPTS= 1430 AC_MSG_CHECKING([if msgfmt accepts -c]) 1431 GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[ 1432msgid "" 1433msgstr "" 1434"Content-Type: text/plain; charset=UTF-8\n" 1435"Project-Id-Version: test 1.0\n" 1436"PO-Revision-Date: 2007-02-15 12:01+0100\n" 1437"Last-Translator: test <foo@bar.xx>\n" 1438"Language-Team: C <LL@li.org>\n" 1439"MIME-Version: 1.0\n" 1440"Content-Transfer-Encoding: 8bit\n" 1441], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])]) 1442 AC_SUBST(MSGFMT_OPTS) 1443 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) 1444 GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, 1445 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) 1446 AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; 1447 return _nl_msg_cat_cntr], 1448 [CATOBJEXT=.gmo 1449 DATADIRNAME=share], 1450 [case $host in 1451 *-*-solaris*) 1452 dnl On Solaris, if bind_textdomain_codeset is in libc, 1453 dnl GNU format message catalog is always supported, 1454 dnl since both are added to the libc all together. 1455 dnl Hence, we'd like to go with DATADIRNAME=share and 1456 dnl and CATOBJEXT=.gmo in this case. 1457 AC_CHECK_FUNC(bind_textdomain_codeset, 1458 [CATOBJEXT=.gmo 1459 DATADIRNAME=share], 1460 [CATOBJEXT=.mo 1461 DATADIRNAME=lib]) 1462 ;; 1463 *-*-openbsd*) 1464 CATOBJEXT=.mo 1465 DATADIRNAME=share 1466 ;; 1467 *) 1468 CATOBJEXT=.mo 1469 DATADIRNAME=lib 1470 ;; 1471 esac]) 1472 LIBS="$glib_save_LIBS" 1473 INSTOBJEXT=.mo 1474 else 1475 gt_cv_have_gettext=no 1476 fi 1477 fi 1478 ]) 1479 1480 if test "$gt_cv_have_gettext" = "yes" ; then 1481 AC_DEFINE(ENABLE_NLS, 1, 1482 [always defined to indicate that i18n is enabled]) 1483 fi 1484 1485 dnl Test whether we really found GNU xgettext. 1486 if test "$XGETTEXT" != ":"; then 1487 dnl If it is not GNU xgettext we define it as : so that the 1488 dnl Makefiles still can work. 1489 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then 1490 : ; 1491 else 1492 AC_MSG_RESULT( 1493 [found xgettext program is not GNU xgettext; ignore it]) 1494 XGETTEXT=":" 1495 fi 1496 fi 1497 1498 # We need to process the po/ directory. 1499 POSUB=po 1500 1501 AC_OUTPUT_COMMANDS( 1502 [case "$CONFIG_FILES" in *po/Makefile.in*) 1503 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile 1504 esac]) 1505 1506 dnl These rules are solely for the distribution goal. While doing this 1507 dnl we only have to keep exactly one list of the available catalogs 1508 dnl in configure.ac. 1509 for lang in $ALL_LINGUAS; do 1510 GMOFILES="$GMOFILES $lang.gmo" 1511 POFILES="$POFILES $lang.po" 1512 done 1513 1514 dnl Make all variables we use known to autoconf. 1515 AC_SUBST(CATALOGS) 1516 AC_SUBST(CATOBJEXT) 1517 AC_SUBST(DATADIRNAME) 1518 AC_SUBST(GMOFILES) 1519 AC_SUBST(INSTOBJEXT) 1520 AC_SUBST(INTLLIBS) 1521 AC_SUBST(PO_IN_DATADIR_TRUE) 1522 AC_SUBST(PO_IN_DATADIR_FALSE) 1523 AC_SUBST(POFILES) 1524 AC_SUBST(POSUB) 1525 ]) 1526 1527# AM_GLIB_GNU_GETTEXT 1528# ------------------- 1529# Do checks necessary for use of gettext. If a suitable implementation 1530# of gettext is found in either in libintl or in the C library, 1531# it will set INTLLIBS to the libraries needed for use of gettext 1532# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable 1533# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() 1534# on various variables needed by the Makefile.in.in installed by 1535# glib-gettextize. 1536dnl 1537AU_DEFUN([GLIB_GNU_GETTEXT], 1538 [AC_REQUIRE([AC_PROG_CC])dnl 1539 1540 GLIB_LC_MESSAGES 1541 GLIB_WITH_NLS 1542 1543 if test "$gt_cv_have_gettext" = "yes"; then 1544 if test "x$ALL_LINGUAS" = "x"; then 1545 LINGUAS= 1546 else 1547 AC_MSG_CHECKING(for catalogs to be installed) 1548 NEW_LINGUAS= 1549 for presentlang in $ALL_LINGUAS; do 1550 useit=no 1551 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then 1552 desiredlanguages="$LINGUAS" 1553 else 1554 desiredlanguages="$ALL_LINGUAS" 1555 fi 1556 for desiredlang in $desiredlanguages; do 1557 # Use the presentlang catalog if desiredlang is 1558 # a. equal to presentlang, or 1559 # b. a variant of presentlang (because in this case, 1560 # presentlang can be used as a fallback for messages 1561 # which are not translated in the desiredlang catalog). 1562 case "$desiredlang" in 1563 "$presentlang"*) useit=yes;; 1564 esac 1565 done 1566 if test $useit = yes; then 1567 NEW_LINGUAS="$NEW_LINGUAS $presentlang" 1568 fi 1569 done 1570 LINGUAS=$NEW_LINGUAS 1571 AC_MSG_RESULT($LINGUAS) 1572 fi 1573 1574 dnl Construct list of names of catalog files to be constructed. 1575 if test -n "$LINGUAS"; then 1576 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 1577 fi 1578 fi 1579 1580 dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly 1581 dnl find the mkinstalldirs script in another subdir but ($top_srcdir). 1582 dnl Try to locate is. 1583 MKINSTALLDIRS= 1584 if test -n "$ac_aux_dir"; then 1585 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" 1586 fi 1587 if test -z "$MKINSTALLDIRS"; then 1588 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 1589 fi 1590 AC_SUBST(MKINSTALLDIRS) 1591 1592 dnl Generate list of files to be processed by xgettext which will 1593 dnl be included in po/Makefile. 1594 test -d po || mkdir po 1595 if test "x$srcdir" != "x."; then 1596 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then 1597 posrcprefix="$srcdir/" 1598 else 1599 posrcprefix="../$srcdir/" 1600 fi 1601 else 1602 posrcprefix="../" 1603 fi 1604 rm -f po/POTFILES 1605 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ 1606 < $srcdir/po/POTFILES.in > po/POTFILES 1607 ], 1608 [[$0: This macro is deprecated. You should use upstream gettext instead.]]) 1609 1610# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) 1611# ------------------------------- 1612# Define VARIABLE to the location where catalog files will 1613# be installed by po/Makefile. 1614glib_DEFUN([GLIB_DEFINE_LOCALEDIR], 1615[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl 1616glib_save_prefix="$prefix" 1617glib_save_exec_prefix="$exec_prefix" 1618glib_save_datarootdir="$datarootdir" 1619test "x$prefix" = xNONE && prefix=$ac_default_prefix 1620test "x$exec_prefix" = xNONE && exec_prefix=$prefix 1621datarootdir=`eval echo "${datarootdir}"` 1622if test "x$CATOBJEXT" = "x.mo" ; then 1623 localedir=`eval echo "${libdir}/locale"` 1624else 1625 localedir=`eval echo "${datadir}/locale"` 1626fi 1627prefix="$glib_save_prefix" 1628exec_prefix="$glib_save_exec_prefix" 1629datarootdir="$glib_save_datarootdir" 1630AC_DEFINE_UNQUOTED($1, "$localedir", 1631 [Define the location where the catalogs will be installed]) 1632]) 1633 1634dnl 1635dnl Now the definitions that aclocal will find 1636dnl 1637ifdef(glib_configure_ac,[],[ 1638AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) 1639AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) 1640])dnl 1641 1642# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL]) 1643# 1644# Create a temporary file with TEST-FILE as its contents and pass the 1645# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with 1646# 0 and perform ACTION-IF-FAIL for any other exit status. 1647AC_DEFUN([GLIB_RUN_PROG], 1648[cat >conftest.foo <<_ACEOF 1649$2 1650_ACEOF 1651if AC_RUN_LOG([$1 conftest.foo]); then 1652 m4_ifval([$3], [$3], [:]) 1653m4_ifvaln([$4], [else $4])dnl 1654echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD 1655sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD 1656fi]) 1657 1658 1659 1660dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml]) 1661# serial 42 IT_PROG_INTLTOOL 1662AC_DEFUN([IT_PROG_INTLTOOL], [ 1663AC_PREREQ([2.50])dnl 1664AC_REQUIRE([AM_NLS])dnl 1665 1666case "$am__api_version" in 1667 1.[01234]) 1668 AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool]) 1669 ;; 1670 *) 1671 ;; 1672esac 1673 1674INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` 1675INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` 1676INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` 1677if test -n "$1"; then 1678 AC_MSG_CHECKING([for intltool >= $1]) 1679 AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found]) 1680 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || 1681 AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.]) 1682fi 1683 1684AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update]) 1685AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge]) 1686AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract]) 1687if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then 1688 AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.]) 1689fi 1690 1691if test -z "$AM_DEFAULT_VERBOSITY"; then 1692 AM_DEFAULT_VERBOSITY=1 1693fi 1694AC_SUBST([AM_DEFAULT_VERBOSITY]) 1695 1696INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))' 1697INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))' 1698INTLTOOL__v_MERGE_0='@echo " ITMRG " [$]@;' 1699AC_SUBST(INTLTOOL_V_MERGE) 1700AC_SUBST(INTLTOOL__v_MERGE_) 1701AC_SUBST(INTLTOOL__v_MERGE_0) 1702 1703INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))' 1704intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))' 1705intltool__v_merge_options_0='-q' 1706AC_SUBST(INTLTOOL_V_MERGE_OPTIONS) 1707AC_SUBST(intltool__v_merge_options_) 1708AC_SUBST(intltool__v_merge_options_0) 1709 1710 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 1711INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 1712 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 1713 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 1714 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@' 1715 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 1716 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 1717 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 1718INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 1719 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 1720 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 1721if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then 1722 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@' 1723else 1724 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir' 1725fi 1726 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 1727 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 1728 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 1729 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 1730 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 1731 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 1732 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 1733 1734_IT_SUBST(INTLTOOL_DESKTOP_RULE) 1735_IT_SUBST(INTLTOOL_DIRECTORY_RULE) 1736_IT_SUBST(INTLTOOL_KEYS_RULE) 1737_IT_SUBST(INTLTOOL_PROP_RULE) 1738_IT_SUBST(INTLTOOL_OAF_RULE) 1739_IT_SUBST(INTLTOOL_PONG_RULE) 1740_IT_SUBST(INTLTOOL_SERVER_RULE) 1741_IT_SUBST(INTLTOOL_SHEET_RULE) 1742_IT_SUBST(INTLTOOL_SOUNDLIST_RULE) 1743_IT_SUBST(INTLTOOL_UI_RULE) 1744_IT_SUBST(INTLTOOL_XAM_RULE) 1745_IT_SUBST(INTLTOOL_KBD_RULE) 1746_IT_SUBST(INTLTOOL_XML_RULE) 1747_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE) 1748_IT_SUBST(INTLTOOL_CAVES_RULE) 1749_IT_SUBST(INTLTOOL_SCHEMAS_RULE) 1750_IT_SUBST(INTLTOOL_THEME_RULE) 1751_IT_SUBST(INTLTOOL_SERVICE_RULE) 1752_IT_SUBST(INTLTOOL_POLICY_RULE) 1753 1754# Check the gettext tools to make sure they are GNU 1755AC_PATH_PROG(XGETTEXT, xgettext) 1756AC_PATH_PROG(MSGMERGE, msgmerge) 1757AC_PATH_PROG(MSGFMT, msgfmt) 1758AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) 1759if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then 1760 AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) 1761fi 1762xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" 1763mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" 1764mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" 1765if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then 1766 AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) 1767fi 1768 1769AC_PATH_PROG(INTLTOOL_PERL, perl) 1770if test -z "$INTLTOOL_PERL"; then 1771 AC_MSG_ERROR([perl not found]) 1772fi 1773AC_MSG_CHECKING([for perl >= 5.8.1]) 1774$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 1775if test $? -ne 0; then 1776 AC_MSG_ERROR([perl 5.8.1 is required for intltool]) 1777else 1778 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"` 1779 AC_MSG_RESULT([$IT_PERL_VERSION]) 1780fi 1781if test "x$2" != "xno-xml"; then 1782 AC_MSG_CHECKING([for XML::Parser]) 1783 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then 1784 AC_MSG_RESULT([ok]) 1785 else 1786 AC_MSG_ERROR([XML::Parser perl module is required for intltool]) 1787 fi 1788fi 1789 1790# Substitute ALL_LINGUAS so we can use it in po/Makefile 1791AC_SUBST(ALL_LINGUAS) 1792 1793IT_PO_SUBDIR([po]) 1794 1795]) 1796 1797 1798# IT_PO_SUBDIR(DIRNAME) 1799# --------------------- 1800# All po subdirs have to be declared with this macro; the subdir "po" is 1801# declared by IT_PROG_INTLTOOL. 1802# 1803AC_DEFUN([IT_PO_SUBDIR], 1804[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS. 1805dnl 1806dnl The following CONFIG_COMMANDS should be executed at the very end 1807dnl of config.status. 1808AC_CONFIG_COMMANDS_PRE([ 1809 AC_CONFIG_COMMANDS([$1/stamp-it], [ 1810 if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then 1811 AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.]) 1812 fi 1813 rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp" 1814 >"$1/stamp-it.tmp" 1815 [sed '/^#/d 1816 s/^[[].*] *// 1817 /^[ ]*$/d 1818 '"s|^| $ac_top_srcdir/|" \ 1819 "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES" 1820 ] 1821 [sed '/^POTFILES =/,/[^\\]$/ { 1822 /^POTFILES =/!d 1823 r $1/POTFILES 1824 } 1825 ' "$1/Makefile.in" >"$1/Makefile"] 1826 rm -f "$1/Makefile.tmp" 1827 mv "$1/stamp-it.tmp" "$1/stamp-it" 1828 ]) 1829])dnl 1830]) 1831 1832# _IT_SUBST(VARIABLE) 1833# ------------------- 1834# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST 1835# 1836AC_DEFUN([_IT_SUBST], 1837[ 1838AC_SUBST([$1]) 1839m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) 1840] 1841) 1842 1843# deprecated macros 1844AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL]) 1845# A hint is needed for aclocal from Automake <= 1.9.4: 1846# AC_DEFUN([AC_PROG_INTLTOOL], ...) 1847 1848 1849# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 1850# 1851# Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc. 1852# Written by Gordon Matzigkeit, 1996 1853# 1854# This file is free software; the Free Software Foundation gives 1855# unlimited permission to copy and/or distribute it, with or without 1856# modifications, as long as this notice is preserved. 1857 1858m4_define([_LT_COPYING], [dnl 1859# Copyright (C) 2014 Free Software Foundation, Inc. 1860# This is free software; see the source for copying conditions. There is NO 1861# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 1862 1863# GNU Libtool is free software; you can redistribute it and/or modify 1864# it under the terms of the GNU General Public License as published by 1865# the Free Software Foundation; either version 2 of of the License, or 1866# (at your option) any later version. 1867# 1868# As a special exception to the GNU General Public License, if you 1869# distribute this file as part of a program or library that is built 1870# using GNU Libtool, you may include this file under the same 1871# distribution terms that you use for the rest of that program. 1872# 1873# GNU Libtool is distributed in the hope that it will be useful, but 1874# WITHOUT ANY WARRANTY; without even the implied warranty of 1875# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1876# GNU General Public License for more details. 1877# 1878# You should have received a copy of the GNU General Public License 1879# along with this program. If not, see <http://www.gnu.org/licenses/>. 1880]) 1881 1882# serial 58 LT_INIT 1883 1884 1885# LT_PREREQ(VERSION) 1886# ------------------ 1887# Complain and exit if this libtool version is less that VERSION. 1888m4_defun([LT_PREREQ], 1889[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, 1890 [m4_default([$3], 1891 [m4_fatal([Libtool version $1 or higher is required], 1892 63)])], 1893 [$2])]) 1894 1895 1896# _LT_CHECK_BUILDDIR 1897# ------------------ 1898# Complain if the absolute build directory name contains unusual characters 1899m4_defun([_LT_CHECK_BUILDDIR], 1900[case `pwd` in 1901 *\ * | *\ *) 1902 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; 1903esac 1904]) 1905 1906 1907# LT_INIT([OPTIONS]) 1908# ------------------ 1909AC_DEFUN([LT_INIT], 1910[AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK 1911AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 1912AC_BEFORE([$0], [LT_LANG])dnl 1913AC_BEFORE([$0], [LT_OUTPUT])dnl 1914AC_BEFORE([$0], [LTDL_INIT])dnl 1915m4_require([_LT_CHECK_BUILDDIR])dnl 1916 1917dnl Autoconf doesn't catch unexpanded LT_ macros by default: 1918m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl 1919m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl 1920dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 1921dnl unless we require an AC_DEFUNed macro: 1922AC_REQUIRE([LTOPTIONS_VERSION])dnl 1923AC_REQUIRE([LTSUGAR_VERSION])dnl 1924AC_REQUIRE([LTVERSION_VERSION])dnl 1925AC_REQUIRE([LTOBSOLETE_VERSION])dnl 1926m4_require([_LT_PROG_LTMAIN])dnl 1927 1928_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) 1929 1930dnl Parse OPTIONS 1931_LT_SET_OPTIONS([$0], [$1]) 1932 1933# This can be used to rebuild libtool when needed 1934LIBTOOL_DEPS=$ltmain 1935 1936# Always use our own libtool. 1937LIBTOOL='$(SHELL) $(top_builddir)/libtool' 1938AC_SUBST(LIBTOOL)dnl 1939 1940_LT_SETUP 1941 1942# Only expand once: 1943m4_define([LT_INIT]) 1944])# LT_INIT 1945 1946# Old names: 1947AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) 1948AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) 1949dnl aclocal-1.4 backwards compatibility: 1950dnl AC_DEFUN([AC_PROG_LIBTOOL], []) 1951dnl AC_DEFUN([AM_PROG_LIBTOOL], []) 1952 1953 1954# _LT_PREPARE_CC_BASENAME 1955# ----------------------- 1956m4_defun([_LT_PREPARE_CC_BASENAME], [ 1957# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 1958func_cc_basename () 1959{ 1960 for cc_temp in @S|@*""; do 1961 case $cc_temp in 1962 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 1963 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 1964 \-*) ;; 1965 *) break;; 1966 esac 1967 done 1968 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 1969} 1970])# _LT_PREPARE_CC_BASENAME 1971 1972 1973# _LT_CC_BASENAME(CC) 1974# ------------------- 1975# It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME, 1976# but that macro is also expanded into generated libtool script, which 1977# arranges for $SED and $ECHO to be set by different means. 1978m4_defun([_LT_CC_BASENAME], 1979[m4_require([_LT_PREPARE_CC_BASENAME])dnl 1980AC_REQUIRE([_LT_DECL_SED])dnl 1981AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 1982func_cc_basename $1 1983cc_basename=$func_cc_basename_result 1984]) 1985 1986 1987# _LT_FILEUTILS_DEFAULTS 1988# ---------------------- 1989# It is okay to use these file commands and assume they have been set 1990# sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'. 1991m4_defun([_LT_FILEUTILS_DEFAULTS], 1992[: ${CP="cp -f"} 1993: ${MV="mv -f"} 1994: ${RM="rm -f"} 1995])# _LT_FILEUTILS_DEFAULTS 1996 1997 1998# _LT_SETUP 1999# --------- 2000m4_defun([_LT_SETUP], 2001[AC_REQUIRE([AC_CANONICAL_HOST])dnl 2002AC_REQUIRE([AC_CANONICAL_BUILD])dnl 2003AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl 2004AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 2005 2006_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl 2007dnl 2008_LT_DECL([], [host_alias], [0], [The host system])dnl 2009_LT_DECL([], [host], [0])dnl 2010_LT_DECL([], [host_os], [0])dnl 2011dnl 2012_LT_DECL([], [build_alias], [0], [The build system])dnl 2013_LT_DECL([], [build], [0])dnl 2014_LT_DECL([], [build_os], [0])dnl 2015dnl 2016AC_REQUIRE([AC_PROG_CC])dnl 2017AC_REQUIRE([LT_PATH_LD])dnl 2018AC_REQUIRE([LT_PATH_NM])dnl 2019dnl 2020AC_REQUIRE([AC_PROG_LN_S])dnl 2021test -z "$LN_S" && LN_S="ln -s" 2022_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl 2023dnl 2024AC_REQUIRE([LT_CMD_MAX_LEN])dnl 2025_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl 2026_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl 2027dnl 2028m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2029m4_require([_LT_CHECK_SHELL_FEATURES])dnl 2030m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl 2031m4_require([_LT_CMD_RELOAD])dnl 2032m4_require([_LT_CHECK_MAGIC_METHOD])dnl 2033m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl 2034m4_require([_LT_CMD_OLD_ARCHIVE])dnl 2035m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 2036m4_require([_LT_WITH_SYSROOT])dnl 2037m4_require([_LT_CMD_TRUNCATE])dnl 2038 2039_LT_CONFIG_LIBTOOL_INIT([ 2040# See if we are running on zsh, and set the options that allow our 2041# commands through without removal of \ escapes INIT. 2042if test -n "\${ZSH_VERSION+set}"; then 2043 setopt NO_GLOB_SUBST 2044fi 2045]) 2046if test -n "${ZSH_VERSION+set}"; then 2047 setopt NO_GLOB_SUBST 2048fi 2049 2050_LT_CHECK_OBJDIR 2051 2052m4_require([_LT_TAG_COMPILER])dnl 2053 2054case $host_os in 2055aix3*) 2056 # AIX sometimes has problems with the GCC collect2 program. For some 2057 # reason, if we set the COLLECT_NAMES environment variable, the problems 2058 # vanish in a puff of smoke. 2059 if test set != "${COLLECT_NAMES+set}"; then 2060 COLLECT_NAMES= 2061 export COLLECT_NAMES 2062 fi 2063 ;; 2064esac 2065 2066# Global variables: 2067ofile=libtool 2068can_build_shared=yes 2069 2070# All known linkers require a '.a' archive for static linking (except MSVC, 2071# which needs '.lib'). 2072libext=a 2073 2074with_gnu_ld=$lt_cv_prog_gnu_ld 2075 2076old_CC=$CC 2077old_CFLAGS=$CFLAGS 2078 2079# Set sane defaults for various variables 2080test -z "$CC" && CC=cc 2081test -z "$LTCC" && LTCC=$CC 2082test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 2083test -z "$LD" && LD=ld 2084test -z "$ac_objext" && ac_objext=o 2085 2086_LT_CC_BASENAME([$compiler]) 2087 2088# Only perform the check for file, if the check method requires it 2089test -z "$MAGIC_CMD" && MAGIC_CMD=file 2090case $deplibs_check_method in 2091file_magic*) 2092 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 2093 _LT_PATH_MAGIC 2094 fi 2095 ;; 2096esac 2097 2098# Use C for the default configuration in the libtool script 2099LT_SUPPORTED_TAG([CC]) 2100_LT_LANG_C_CONFIG 2101_LT_LANG_DEFAULT_CONFIG 2102_LT_CONFIG_COMMANDS 2103])# _LT_SETUP 2104 2105 2106# _LT_PREPARE_SED_QUOTE_VARS 2107# -------------------------- 2108# Define a few sed substitution that help us do robust quoting. 2109m4_defun([_LT_PREPARE_SED_QUOTE_VARS], 2110[# Backslashify metacharacters that are still active within 2111# double-quoted strings. 2112sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' 2113 2114# Same as above, but do not quote variable references. 2115double_quote_subst='s/\([["`\\]]\)/\\\1/g' 2116 2117# Sed substitution to delay expansion of an escaped shell variable in a 2118# double_quote_subst'ed string. 2119delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2120 2121# Sed substitution to delay expansion of an escaped single quote. 2122delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2123 2124# Sed substitution to avoid accidental globbing in evaled expressions 2125no_glob_subst='s/\*/\\\*/g' 2126]) 2127 2128# _LT_PROG_LTMAIN 2129# --------------- 2130# Note that this code is called both from 'configure', and 'config.status' 2131# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 2132# 'config.status' has no value for ac_aux_dir unless we are using Automake, 2133# so we pass a copy along to make sure it has a sensible value anyway. 2134m4_defun([_LT_PROG_LTMAIN], 2135[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 2136_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) 2137ltmain=$ac_aux_dir/ltmain.sh 2138])# _LT_PROG_LTMAIN 2139 2140 2141 2142# So that we can recreate a full libtool script including additional 2143# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 2144# in macros and then make a single call at the end using the 'libtool' 2145# label. 2146 2147 2148# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 2149# ---------------------------------------- 2150# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 2151m4_define([_LT_CONFIG_LIBTOOL_INIT], 2152[m4_ifval([$1], 2153 [m4_append([_LT_OUTPUT_LIBTOOL_INIT], 2154 [$1 2155])])]) 2156 2157# Initialize. 2158m4_define([_LT_OUTPUT_LIBTOOL_INIT]) 2159 2160 2161# _LT_CONFIG_LIBTOOL([COMMANDS]) 2162# ------------------------------ 2163# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. 2164m4_define([_LT_CONFIG_LIBTOOL], 2165[m4_ifval([$1], 2166 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], 2167 [$1 2168])])]) 2169 2170# Initialize. 2171m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) 2172 2173 2174# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) 2175# ----------------------------------------------------- 2176m4_defun([_LT_CONFIG_SAVE_COMMANDS], 2177[_LT_CONFIG_LIBTOOL([$1]) 2178_LT_CONFIG_LIBTOOL_INIT([$2]) 2179]) 2180 2181 2182# _LT_FORMAT_COMMENT([COMMENT]) 2183# ----------------------------- 2184# Add leading comment marks to the start of each line, and a trailing 2185# full-stop to the whole comment if one is not present already. 2186m4_define([_LT_FORMAT_COMMENT], 2187[m4_ifval([$1], [ 2188m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], 2189 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) 2190)]) 2191 2192 2193 2194 2195 2196# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) 2197# ------------------------------------------------------------------- 2198# CONFIGNAME is the name given to the value in the libtool script. 2199# VARNAME is the (base) name used in the configure script. 2200# VALUE may be 0, 1 or 2 for a computed quote escaped value based on 2201# VARNAME. Any other value will be used directly. 2202m4_define([_LT_DECL], 2203[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], 2204 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], 2205 [m4_ifval([$1], [$1], [$2])]) 2206 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) 2207 m4_ifval([$4], 2208 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) 2209 lt_dict_add_subkey([lt_decl_dict], [$2], 2210 [tagged?], [m4_ifval([$5], [yes], [no])])]) 2211]) 2212 2213 2214# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) 2215# -------------------------------------------------------- 2216m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) 2217 2218 2219# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) 2220# ------------------------------------------------ 2221m4_define([lt_decl_tag_varnames], 2222[_lt_decl_filter([tagged?], [yes], $@)]) 2223 2224 2225# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) 2226# --------------------------------------------------------- 2227m4_define([_lt_decl_filter], 2228[m4_case([$#], 2229 [0], [m4_fatal([$0: too few arguments: $#])], 2230 [1], [m4_fatal([$0: too few arguments: $#: $1])], 2231 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], 2232 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], 2233 [lt_dict_filter([lt_decl_dict], $@)])[]dnl 2234]) 2235 2236 2237# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) 2238# -------------------------------------------------- 2239m4_define([lt_decl_quote_varnames], 2240[_lt_decl_filter([value], [1], $@)]) 2241 2242 2243# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) 2244# --------------------------------------------------- 2245m4_define([lt_decl_dquote_varnames], 2246[_lt_decl_filter([value], [2], $@)]) 2247 2248 2249# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) 2250# --------------------------------------------------- 2251m4_define([lt_decl_varnames_tagged], 2252[m4_assert([$# <= 2])dnl 2253_$0(m4_quote(m4_default([$1], [[, ]])), 2254 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), 2255 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) 2256m4_define([_lt_decl_varnames_tagged], 2257[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) 2258 2259 2260# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) 2261# ------------------------------------------------ 2262m4_define([lt_decl_all_varnames], 2263[_$0(m4_quote(m4_default([$1], [[, ]])), 2264 m4_if([$2], [], 2265 m4_quote(lt_decl_varnames), 2266 m4_quote(m4_shift($@))))[]dnl 2267]) 2268m4_define([_lt_decl_all_varnames], 2269[lt_join($@, lt_decl_varnames_tagged([$1], 2270 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl 2271]) 2272 2273 2274# _LT_CONFIG_STATUS_DECLARE([VARNAME]) 2275# ------------------------------------ 2276# Quote a variable value, and forward it to 'config.status' so that its 2277# declaration there will have the same value as in 'configure'. VARNAME 2278# must have a single quote delimited value for this to work. 2279m4_define([_LT_CONFIG_STATUS_DECLARE], 2280[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) 2281 2282 2283# _LT_CONFIG_STATUS_DECLARATIONS 2284# ------------------------------ 2285# We delimit libtool config variables with single quotes, so when 2286# we write them to config.status, we have to be sure to quote all 2287# embedded single quotes properly. In configure, this macro expands 2288# each variable declared with _LT_DECL (and _LT_TAGDECL) into: 2289# 2290# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' 2291m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], 2292[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), 2293 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) 2294 2295 2296# _LT_LIBTOOL_TAGS 2297# ---------------- 2298# Output comment and list of tags supported by the script 2299m4_defun([_LT_LIBTOOL_TAGS], 2300[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl 2301available_tags='_LT_TAGS'dnl 2302]) 2303 2304 2305# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 2306# ----------------------------------- 2307# Extract the dictionary values for VARNAME (optionally with TAG) and 2308# expand to a commented shell variable setting: 2309# 2310# # Some comment about what VAR is for. 2311# visible_name=$lt_internal_name 2312m4_define([_LT_LIBTOOL_DECLARE], 2313[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], 2314 [description])))[]dnl 2315m4_pushdef([_libtool_name], 2316 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl 2317m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), 2318 [0], [_libtool_name=[$]$1], 2319 [1], [_libtool_name=$lt_[]$1], 2320 [2], [_libtool_name=$lt_[]$1], 2321 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl 2322m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl 2323]) 2324 2325 2326# _LT_LIBTOOL_CONFIG_VARS 2327# ----------------------- 2328# Produce commented declarations of non-tagged libtool config variables 2329# suitable for insertion in the LIBTOOL CONFIG section of the 'libtool' 2330# script. Tagged libtool config variables (even for the LIBTOOL CONFIG 2331# section) are produced by _LT_LIBTOOL_TAG_VARS. 2332m4_defun([_LT_LIBTOOL_CONFIG_VARS], 2333[m4_foreach([_lt_var], 2334 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), 2335 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) 2336 2337 2338# _LT_LIBTOOL_TAG_VARS(TAG) 2339# ------------------------- 2340m4_define([_LT_LIBTOOL_TAG_VARS], 2341[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), 2342 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) 2343 2344 2345# _LT_TAGVAR(VARNAME, [TAGNAME]) 2346# ------------------------------ 2347m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) 2348 2349 2350# _LT_CONFIG_COMMANDS 2351# ------------------- 2352# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 2353# variables for single and double quote escaping we saved from calls 2354# to _LT_DECL, we can put quote escaped variables declarations 2355# into 'config.status', and then the shell code to quote escape them in 2356# for loops in 'config.status'. Finally, any additional code accumulated 2357# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 2358m4_defun([_LT_CONFIG_COMMANDS], 2359[AC_PROVIDE_IFELSE([LT_OUTPUT], 2360 dnl If the libtool generation code has been placed in $CONFIG_LT, 2361 dnl instead of duplicating it all over again into config.status, 2362 dnl then we will have config.status run $CONFIG_LT later, so it 2363 dnl needs to know what name is stored there: 2364 [AC_CONFIG_COMMANDS([libtool], 2365 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], 2366 dnl If the libtool generation code is destined for config.status, 2367 dnl expand the accumulated commands and init code now: 2368 [AC_CONFIG_COMMANDS([libtool], 2369 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) 2370])#_LT_CONFIG_COMMANDS 2371 2372 2373# Initialize. 2374m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], 2375[ 2376 2377# The HP-UX ksh and POSIX shell print the target directory to stdout 2378# if CDPATH is set. 2379(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 2380 2381sed_quote_subst='$sed_quote_subst' 2382double_quote_subst='$double_quote_subst' 2383delay_variable_subst='$delay_variable_subst' 2384_LT_CONFIG_STATUS_DECLARATIONS 2385LTCC='$LTCC' 2386LTCFLAGS='$LTCFLAGS' 2387compiler='$compiler_DEFAULT' 2388 2389# A function that is used when there is no print builtin or printf. 2390func_fallback_echo () 2391{ 2392 eval 'cat <<_LTECHO_EOF 2393\$[]1 2394_LTECHO_EOF' 2395} 2396 2397# Quote evaled strings. 2398for var in lt_decl_all_varnames([[ \ 2399]], lt_decl_quote_varnames); do 2400 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 2401 *[[\\\\\\\`\\"\\\$]]*) 2402 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 2403 ;; 2404 *) 2405 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 2406 ;; 2407 esac 2408done 2409 2410# Double-quote double-evaled strings. 2411for var in lt_decl_all_varnames([[ \ 2412]], lt_decl_dquote_varnames); do 2413 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 2414 *[[\\\\\\\`\\"\\\$]]*) 2415 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 2416 ;; 2417 *) 2418 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 2419 ;; 2420 esac 2421done 2422 2423_LT_OUTPUT_LIBTOOL_INIT 2424]) 2425 2426# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) 2427# ------------------------------------ 2428# Generate a child script FILE with all initialization necessary to 2429# reuse the environment learned by the parent script, and make the 2430# file executable. If COMMENT is supplied, it is inserted after the 2431# '#!' sequence but before initialization text begins. After this 2432# macro, additional text can be appended to FILE to form the body of 2433# the child script. The macro ends with non-zero status if the 2434# file could not be fully written (such as if the disk is full). 2435m4_ifdef([AS_INIT_GENERATED], 2436[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], 2437[m4_defun([_LT_GENERATED_FILE_INIT], 2438[m4_require([AS_PREPARE])]dnl 2439[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl 2440[lt_write_fail=0 2441cat >$1 <<_ASEOF || lt_write_fail=1 2442#! $SHELL 2443# Generated by $as_me. 2444$2 2445SHELL=\${CONFIG_SHELL-$SHELL} 2446export SHELL 2447_ASEOF 2448cat >>$1 <<\_ASEOF || lt_write_fail=1 2449AS_SHELL_SANITIZE 2450_AS_PREPARE 2451exec AS_MESSAGE_FD>&1 2452_ASEOF 2453test 0 = "$lt_write_fail" && chmod +x $1[]dnl 2454m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT 2455 2456# LT_OUTPUT 2457# --------- 2458# This macro allows early generation of the libtool script (before 2459# AC_OUTPUT is called), incase it is used in configure for compilation 2460# tests. 2461AC_DEFUN([LT_OUTPUT], 2462[: ${CONFIG_LT=./config.lt} 2463AC_MSG_NOTICE([creating $CONFIG_LT]) 2464_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], 2465[# Run this file to recreate a libtool stub with the current configuration.]) 2466 2467cat >>"$CONFIG_LT" <<\_LTEOF 2468lt_cl_silent=false 2469exec AS_MESSAGE_LOG_FD>>config.log 2470{ 2471 echo 2472 AS_BOX([Running $as_me.]) 2473} >&AS_MESSAGE_LOG_FD 2474 2475lt_cl_help="\ 2476'$as_me' creates a local libtool stub from the current configuration, 2477for use in further configure time tests before the real libtool is 2478generated. 2479 2480Usage: $[0] [[OPTIONS]] 2481 2482 -h, --help print this help, then exit 2483 -V, --version print version number, then exit 2484 -q, --quiet do not print progress messages 2485 -d, --debug don't remove temporary files 2486 2487Report bugs to <bug-libtool@gnu.org>." 2488 2489lt_cl_version="\ 2490m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl 2491m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) 2492configured by $[0], generated by m4_PACKAGE_STRING. 2493 2494Copyright (C) 2011 Free Software Foundation, Inc. 2495This config.lt script is free software; the Free Software Foundation 2496gives unlimited permision to copy, distribute and modify it." 2497 2498while test 0 != $[#] 2499do 2500 case $[1] in 2501 --version | --v* | -V ) 2502 echo "$lt_cl_version"; exit 0 ;; 2503 --help | --h* | -h ) 2504 echo "$lt_cl_help"; exit 0 ;; 2505 --debug | --d* | -d ) 2506 debug=: ;; 2507 --quiet | --q* | --silent | --s* | -q ) 2508 lt_cl_silent=: ;; 2509 2510 -*) AC_MSG_ERROR([unrecognized option: $[1] 2511Try '$[0] --help' for more information.]) ;; 2512 2513 *) AC_MSG_ERROR([unrecognized argument: $[1] 2514Try '$[0] --help' for more information.]) ;; 2515 esac 2516 shift 2517done 2518 2519if $lt_cl_silent; then 2520 exec AS_MESSAGE_FD>/dev/null 2521fi 2522_LTEOF 2523 2524cat >>"$CONFIG_LT" <<_LTEOF 2525_LT_OUTPUT_LIBTOOL_COMMANDS_INIT 2526_LTEOF 2527 2528cat >>"$CONFIG_LT" <<\_LTEOF 2529AC_MSG_NOTICE([creating $ofile]) 2530_LT_OUTPUT_LIBTOOL_COMMANDS 2531AS_EXIT(0) 2532_LTEOF 2533chmod +x "$CONFIG_LT" 2534 2535# configure is writing to config.log, but config.lt does its own redirection, 2536# appending to config.log, which fails on DOS, as config.log is still kept 2537# open by configure. Here we exec the FD to /dev/null, effectively closing 2538# config.log, so it can be properly (re)opened and appended to by config.lt. 2539lt_cl_success=: 2540test yes = "$silent" && 2541 lt_config_lt_args="$lt_config_lt_args --quiet" 2542exec AS_MESSAGE_LOG_FD>/dev/null 2543$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 2544exec AS_MESSAGE_LOG_FD>>config.log 2545$lt_cl_success || AS_EXIT(1) 2546])# LT_OUTPUT 2547 2548 2549# _LT_CONFIG(TAG) 2550# --------------- 2551# If TAG is the built-in tag, create an initial libtool script with a 2552# default configuration from the untagged config vars. Otherwise add code 2553# to config.status for appending the configuration named by TAG from the 2554# matching tagged config vars. 2555m4_defun([_LT_CONFIG], 2556[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2557_LT_CONFIG_SAVE_COMMANDS([ 2558 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 2559 m4_if(_LT_TAG, [C], [ 2560 # See if we are running on zsh, and set the options that allow our 2561 # commands through without removal of \ escapes. 2562 if test -n "${ZSH_VERSION+set}"; then 2563 setopt NO_GLOB_SUBST 2564 fi 2565 2566 cfgfile=${ofile}T 2567 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 2568 $RM "$cfgfile" 2569 2570 cat <<_LT_EOF >> "$cfgfile" 2571#! $SHELL 2572# Generated automatically by $as_me ($PACKAGE) $VERSION 2573# NOTE: Changes made to this file will be lost: look at ltmain.sh. 2574 2575# Provide generalized library-building support services. 2576# Written by Gordon Matzigkeit, 1996 2577 2578_LT_COPYING 2579_LT_LIBTOOL_TAGS 2580 2581# Configured defaults for sys_lib_dlsearch_path munging. 2582: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 2583 2584# ### BEGIN LIBTOOL CONFIG 2585_LT_LIBTOOL_CONFIG_VARS 2586_LT_LIBTOOL_TAG_VARS 2587# ### END LIBTOOL CONFIG 2588 2589_LT_EOF 2590 2591 cat <<'_LT_EOF' >> "$cfgfile" 2592 2593# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 2594 2595_LT_PREPARE_MUNGE_PATH_LIST 2596_LT_PREPARE_CC_BASENAME 2597 2598# ### END FUNCTIONS SHARED WITH CONFIGURE 2599 2600_LT_EOF 2601 2602 case $host_os in 2603 aix3*) 2604 cat <<\_LT_EOF >> "$cfgfile" 2605# AIX sometimes has problems with the GCC collect2 program. For some 2606# reason, if we set the COLLECT_NAMES environment variable, the problems 2607# vanish in a puff of smoke. 2608if test set != "${COLLECT_NAMES+set}"; then 2609 COLLECT_NAMES= 2610 export COLLECT_NAMES 2611fi 2612_LT_EOF 2613 ;; 2614 esac 2615 2616 _LT_PROG_LTMAIN 2617 2618 # We use sed instead of cat because bash on DJGPP gets confused if 2619 # if finds mixed CR/LF and LF-only lines. Since sed operates in 2620 # text mode, it properly converts lines to CR/LF. This bash problem 2621 # is reportedly fixed, but why not run on old versions too? 2622 sed '$q' "$ltmain" >> "$cfgfile" \ 2623 || (rm -f "$cfgfile"; exit 1) 2624 2625 mv -f "$cfgfile" "$ofile" || 2626 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 2627 chmod +x "$ofile" 2628], 2629[cat <<_LT_EOF >> "$ofile" 2630 2631dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded 2632dnl in a comment (ie after a #). 2633# ### BEGIN LIBTOOL TAG CONFIG: $1 2634_LT_LIBTOOL_TAG_VARS(_LT_TAG) 2635# ### END LIBTOOL TAG CONFIG: $1 2636_LT_EOF 2637])dnl /m4_if 2638], 2639[m4_if([$1], [], [ 2640 PACKAGE='$PACKAGE' 2641 VERSION='$VERSION' 2642 RM='$RM' 2643 ofile='$ofile'], []) 2644])dnl /_LT_CONFIG_SAVE_COMMANDS 2645])# _LT_CONFIG 2646 2647 2648# LT_SUPPORTED_TAG(TAG) 2649# --------------------- 2650# Trace this macro to discover what tags are supported by the libtool 2651# --tag option, using: 2652# autoconf --trace 'LT_SUPPORTED_TAG:$1' 2653AC_DEFUN([LT_SUPPORTED_TAG], []) 2654 2655 2656# C support is built-in for now 2657m4_define([_LT_LANG_C_enabled], []) 2658m4_define([_LT_TAGS], []) 2659 2660 2661# LT_LANG(LANG) 2662# ------------- 2663# Enable libtool support for the given language if not already enabled. 2664AC_DEFUN([LT_LANG], 2665[AC_BEFORE([$0], [LT_OUTPUT])dnl 2666m4_case([$1], 2667 [C], [_LT_LANG(C)], 2668 [C++], [_LT_LANG(CXX)], 2669 [Go], [_LT_LANG(GO)], 2670 [Java], [_LT_LANG(GCJ)], 2671 [Fortran 77], [_LT_LANG(F77)], 2672 [Fortran], [_LT_LANG(FC)], 2673 [Windows Resource], [_LT_LANG(RC)], 2674 [m4_ifdef([_LT_LANG_]$1[_CONFIG], 2675 [_LT_LANG($1)], 2676 [m4_fatal([$0: unsupported language: "$1"])])])dnl 2677])# LT_LANG 2678 2679 2680# _LT_LANG(LANGNAME) 2681# ------------------ 2682m4_defun([_LT_LANG], 2683[m4_ifdef([_LT_LANG_]$1[_enabled], [], 2684 [LT_SUPPORTED_TAG([$1])dnl 2685 m4_append([_LT_TAGS], [$1 ])dnl 2686 m4_define([_LT_LANG_]$1[_enabled], [])dnl 2687 _LT_LANG_$1_CONFIG($1)])dnl 2688])# _LT_LANG 2689 2690 2691m4_ifndef([AC_PROG_GO], [ 2692# NOTE: This macro has been submitted for inclusion into # 2693# GNU Autoconf as AC_PROG_GO. When it is available in # 2694# a released version of Autoconf we should remove this # 2695# macro and use it instead. # 2696m4_defun([AC_PROG_GO], 2697[AC_LANG_PUSH(Go)dnl 2698AC_ARG_VAR([GOC], [Go compiler command])dnl 2699AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl 2700_AC_ARG_VAR_LDFLAGS()dnl 2701AC_CHECK_TOOL(GOC, gccgo) 2702if test -z "$GOC"; then 2703 if test -n "$ac_tool_prefix"; then 2704 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) 2705 fi 2706fi 2707if test -z "$GOC"; then 2708 AC_CHECK_PROG(GOC, gccgo, gccgo, false) 2709fi 2710])#m4_defun 2711])#m4_ifndef 2712 2713 2714# _LT_LANG_DEFAULT_CONFIG 2715# ----------------------- 2716m4_defun([_LT_LANG_DEFAULT_CONFIG], 2717[AC_PROVIDE_IFELSE([AC_PROG_CXX], 2718 [LT_LANG(CXX)], 2719 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) 2720 2721AC_PROVIDE_IFELSE([AC_PROG_F77], 2722 [LT_LANG(F77)], 2723 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) 2724 2725AC_PROVIDE_IFELSE([AC_PROG_FC], 2726 [LT_LANG(FC)], 2727 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) 2728 2729dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal 2730dnl pulling things in needlessly. 2731AC_PROVIDE_IFELSE([AC_PROG_GCJ], 2732 [LT_LANG(GCJ)], 2733 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 2734 [LT_LANG(GCJ)], 2735 [AC_PROVIDE_IFELSE([LT_PROG_GCJ], 2736 [LT_LANG(GCJ)], 2737 [m4_ifdef([AC_PROG_GCJ], 2738 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) 2739 m4_ifdef([A][M_PROG_GCJ], 2740 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) 2741 m4_ifdef([LT_PROG_GCJ], 2742 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) 2743 2744AC_PROVIDE_IFELSE([AC_PROG_GO], 2745 [LT_LANG(GO)], 2746 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) 2747 2748AC_PROVIDE_IFELSE([LT_PROG_RC], 2749 [LT_LANG(RC)], 2750 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) 2751])# _LT_LANG_DEFAULT_CONFIG 2752 2753# Obsolete macros: 2754AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) 2755AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) 2756AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) 2757AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) 2758AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) 2759dnl aclocal-1.4 backwards compatibility: 2760dnl AC_DEFUN([AC_LIBTOOL_CXX], []) 2761dnl AC_DEFUN([AC_LIBTOOL_F77], []) 2762dnl AC_DEFUN([AC_LIBTOOL_FC], []) 2763dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) 2764dnl AC_DEFUN([AC_LIBTOOL_RC], []) 2765 2766 2767# _LT_TAG_COMPILER 2768# ---------------- 2769m4_defun([_LT_TAG_COMPILER], 2770[AC_REQUIRE([AC_PROG_CC])dnl 2771 2772_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl 2773_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl 2774_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl 2775_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl 2776 2777# If no C compiler was specified, use CC. 2778LTCC=${LTCC-"$CC"} 2779 2780# If no C compiler flags were specified, use CFLAGS. 2781LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 2782 2783# Allow CC to be a program name with arguments. 2784compiler=$CC 2785])# _LT_TAG_COMPILER 2786 2787 2788# _LT_COMPILER_BOILERPLATE 2789# ------------------------ 2790# Check for compiler boilerplate output or warnings with 2791# the simple compiler test code. 2792m4_defun([_LT_COMPILER_BOILERPLATE], 2793[m4_require([_LT_DECL_SED])dnl 2794ac_outfile=conftest.$ac_objext 2795echo "$lt_simple_compile_test_code" >conftest.$ac_ext 2796eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 2797_lt_compiler_boilerplate=`cat conftest.err` 2798$RM conftest* 2799])# _LT_COMPILER_BOILERPLATE 2800 2801 2802# _LT_LINKER_BOILERPLATE 2803# ---------------------- 2804# Check for linker boilerplate output or warnings with 2805# the simple link test code. 2806m4_defun([_LT_LINKER_BOILERPLATE], 2807[m4_require([_LT_DECL_SED])dnl 2808ac_outfile=conftest.$ac_objext 2809echo "$lt_simple_link_test_code" >conftest.$ac_ext 2810eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 2811_lt_linker_boilerplate=`cat conftest.err` 2812$RM -r conftest* 2813])# _LT_LINKER_BOILERPLATE 2814 2815# _LT_REQUIRED_DARWIN_CHECKS 2816# ------------------------- 2817m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ 2818 case $host_os in 2819 rhapsody* | darwin*) 2820 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) 2821 AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 2822 AC_CHECK_TOOL([LIPO], [lipo], [:]) 2823 AC_CHECK_TOOL([OTOOL], [otool], [:]) 2824 AC_CHECK_TOOL([OTOOL64], [otool64], [:]) 2825 _LT_DECL([], [DSYMUTIL], [1], 2826 [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) 2827 _LT_DECL([], [NMEDIT], [1], 2828 [Tool to change global to local symbols on Mac OS X]) 2829 _LT_DECL([], [LIPO], [1], 2830 [Tool to manipulate fat objects and archives on Mac OS X]) 2831 _LT_DECL([], [OTOOL], [1], 2832 [ldd/readelf like tool for Mach-O binaries on Mac OS X]) 2833 _LT_DECL([], [OTOOL64], [1], 2834 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) 2835 2836 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 2837 [lt_cv_apple_cc_single_mod=no 2838 if test -z "$LT_MULTI_MODULE"; then 2839 # By default we will add the -single_module flag. You can override 2840 # by either setting the environment variable LT_MULTI_MODULE 2841 # non-empty at configure time, or by adding -multi_module to the 2842 # link flags. 2843 rm -rf libconftest.dylib* 2844 echo "int foo(void){return 1;}" > conftest.c 2845 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 2846-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD 2847 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 2848 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 2849 _lt_result=$? 2850 # If there is a non-empty error log, and "single_module" 2851 # appears in it, assume the flag caused a linker warning 2852 if test -s conftest.err && $GREP single_module conftest.err; then 2853 cat conftest.err >&AS_MESSAGE_LOG_FD 2854 # Otherwise, if the output was created with a 0 exit code from 2855 # the compiler, it worked. 2856 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 2857 lt_cv_apple_cc_single_mod=yes 2858 else 2859 cat conftest.err >&AS_MESSAGE_LOG_FD 2860 fi 2861 rm -rf libconftest.dylib* 2862 rm -f conftest.* 2863 fi]) 2864 2865 AC_CACHE_CHECK([for -exported_symbols_list linker flag], 2866 [lt_cv_ld_exported_symbols_list], 2867 [lt_cv_ld_exported_symbols_list=no 2868 save_LDFLAGS=$LDFLAGS 2869 echo "_main" > conftest.sym 2870 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 2871 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 2872 [lt_cv_ld_exported_symbols_list=yes], 2873 [lt_cv_ld_exported_symbols_list=no]) 2874 LDFLAGS=$save_LDFLAGS 2875 ]) 2876 2877 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], 2878 [lt_cv_ld_force_load=no 2879 cat > conftest.c << _LT_EOF 2880int forced_loaded() { return 2;} 2881_LT_EOF 2882 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD 2883 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD 2884 echo "$AR cr libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD 2885 $AR cr libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD 2886 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD 2887 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD 2888 cat > conftest.c << _LT_EOF 2889int main() { return 0;} 2890_LT_EOF 2891 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD 2892 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 2893 _lt_result=$? 2894 if test -s conftest.err && $GREP force_load conftest.err; then 2895 cat conftest.err >&AS_MESSAGE_LOG_FD 2896 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 2897 lt_cv_ld_force_load=yes 2898 else 2899 cat conftest.err >&AS_MESSAGE_LOG_FD 2900 fi 2901 rm -f conftest.err libconftest.a conftest conftest.c 2902 rm -rf conftest.dSYM 2903 ]) 2904 case $host_os in 2905 rhapsody* | darwin1.[[012]]) 2906 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 2907 darwin1.*) 2908 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 2909 darwin*) # darwin 5.x on 2910 # if running on 10.5 or later, the deployment target defaults 2911 # to the OS version, if on x86, and 10.4, the deployment 2912 # target defaults to 10.4. Don't you love it? 2913 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 2914 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 2915 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 2916 10.[[012]][[,.]]*) 2917 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 2918 10.*) 2919 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 2920 esac 2921 ;; 2922 esac 2923 if test yes = "$lt_cv_apple_cc_single_mod"; then 2924 _lt_dar_single_mod='$single_module' 2925 fi 2926 if test yes = "$lt_cv_ld_exported_symbols_list"; then 2927 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 2928 else 2929 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 2930 fi 2931 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 2932 _lt_dsymutil='~$DSYMUTIL $lib || :' 2933 else 2934 _lt_dsymutil= 2935 fi 2936 ;; 2937 esac 2938]) 2939 2940 2941# _LT_DARWIN_LINKER_FEATURES([TAG]) 2942# --------------------------------- 2943# Checks for linker and compiler features on darwin 2944m4_defun([_LT_DARWIN_LINKER_FEATURES], 2945[ 2946 m4_require([_LT_REQUIRED_DARWIN_CHECKS]) 2947 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 2948 _LT_TAGVAR(hardcode_direct, $1)=no 2949 _LT_TAGVAR(hardcode_automatic, $1)=yes 2950 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 2951 if test yes = "$lt_cv_ld_force_load"; then 2952 _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\"`' 2953 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], 2954 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) 2955 else 2956 _LT_TAGVAR(whole_archive_flag_spec, $1)='' 2957 fi 2958 _LT_TAGVAR(link_all_deplibs, $1)=yes 2959 _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined 2960 case $cc_basename in 2961 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 2962 *) _lt_dar_can_shared=$GCC ;; 2963 esac 2964 if test yes = "$_lt_dar_can_shared"; then 2965 output_verbose_link_cmd=func_echo_all 2966 _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" 2967 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 2968 _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" 2969 _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" 2970 m4_if([$1], [CXX], 2971[ if test yes != "$lt_cv_apple_cc_single_mod"; then 2972 _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" 2973 _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" 2974 fi 2975],[]) 2976 else 2977 _LT_TAGVAR(ld_shlibs, $1)=no 2978 fi 2979]) 2980 2981# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) 2982# ---------------------------------- 2983# Links a minimal program and checks the executable 2984# for the system default hardcoded library path. In most cases, 2985# this is /usr/lib:/lib, but when the MPI compilers are used 2986# the location of the communication and MPI libs are included too. 2987# If we don't find anything, use the default library path according 2988# to the aix ld manual. 2989# Store the results from the different compilers for each TAGNAME. 2990# Allow to override them for all tags through lt_cv_aix_libpath. 2991m4_defun([_LT_SYS_MODULE_PATH_AIX], 2992[m4_require([_LT_DECL_SED])dnl 2993if test set = "${lt_cv_aix_libpath+set}"; then 2994 aix_libpath=$lt_cv_aix_libpath 2995else 2996 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], 2997 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ 2998 lt_aix_libpath_sed='[ 2999 /Import File Strings/,/^$/ { 3000 /^0/ { 3001 s/^0 *\([^ ]*\) *$/\1/ 3002 p 3003 } 3004 }]' 3005 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 3006 # Check for a 64-bit object if we didn't find anything. 3007 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 3008 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 3009 fi],[]) 3010 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 3011 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib 3012 fi 3013 ]) 3014 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) 3015fi 3016])# _LT_SYS_MODULE_PATH_AIX 3017 3018 3019# _LT_SHELL_INIT(ARG) 3020# ------------------- 3021m4_define([_LT_SHELL_INIT], 3022[m4_divert_text([M4SH-INIT], [$1 3023])])# _LT_SHELL_INIT 3024 3025 3026 3027# _LT_PROG_ECHO_BACKSLASH 3028# ----------------------- 3029# Find how we can fake an echo command that does not interpret backslash. 3030# In particular, with Autoconf 2.60 or later we add some code to the start 3031# of the generated configure script that will find a shell with a builtin 3032# printf (that we can use as an echo command). 3033m4_defun([_LT_PROG_ECHO_BACKSLASH], 3034[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3035ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3036ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3037 3038AC_MSG_CHECKING([how to print strings]) 3039# Test print first, because it will be a builtin if present. 3040if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3041 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3042 ECHO='print -r --' 3043elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3044 ECHO='printf %s\n' 3045else 3046 # Use this function as a fallback that always works. 3047 func_fallback_echo () 3048 { 3049 eval 'cat <<_LTECHO_EOF 3050$[]1 3051_LTECHO_EOF' 3052 } 3053 ECHO='func_fallback_echo' 3054fi 3055 3056# func_echo_all arg... 3057# Invoke $ECHO with all args, space-separated. 3058func_echo_all () 3059{ 3060 $ECHO "$*" 3061} 3062 3063case $ECHO in 3064 printf*) AC_MSG_RESULT([printf]) ;; 3065 print*) AC_MSG_RESULT([print -r]) ;; 3066 *) AC_MSG_RESULT([cat]) ;; 3067esac 3068 3069m4_ifdef([_AS_DETECT_SUGGESTED], 3070[_AS_DETECT_SUGGESTED([ 3071 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( 3072 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3073 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3074 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3075 PATH=/empty FPATH=/empty; export PATH FPATH 3076 test "X`printf %s $ECHO`" = "X$ECHO" \ 3077 || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) 3078 3079_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) 3080_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) 3081])# _LT_PROG_ECHO_BACKSLASH 3082 3083 3084# _LT_WITH_SYSROOT 3085# ---------------- 3086AC_DEFUN([_LT_WITH_SYSROOT], 3087[AC_MSG_CHECKING([for sysroot]) 3088AC_ARG_WITH([sysroot], 3089[AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], 3090 [Search for dependent libraries within DIR (or the compiler's sysroot 3091 if not specified).])], 3092[], [with_sysroot=no]) 3093 3094dnl lt_sysroot will always be passed unquoted. We quote it here 3095dnl in case the user passed a directory name. 3096lt_sysroot= 3097case $with_sysroot in #( 3098 yes) 3099 if test yes = "$GCC"; then 3100 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 3101 fi 3102 ;; #( 3103 /*) 3104 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 3105 ;; #( 3106 no|'') 3107 ;; #( 3108 *) 3109 AC_MSG_RESULT([$with_sysroot]) 3110 AC_MSG_ERROR([The sysroot must be an absolute path.]) 3111 ;; 3112esac 3113 3114 AC_MSG_RESULT([${lt_sysroot:-no}]) 3115_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl 3116[dependent libraries, and where our libraries should be installed.])]) 3117 3118# _LT_ENABLE_LOCK 3119# --------------- 3120m4_defun([_LT_ENABLE_LOCK], 3121[AC_ARG_ENABLE([libtool-lock], 3122 [AS_HELP_STRING([--disable-libtool-lock], 3123 [avoid locking (might break parallel builds)])]) 3124test no = "$enable_libtool_lock" || enable_libtool_lock=yes 3125 3126# Some flags need to be propagated to the compiler or linker for good 3127# libtool support. 3128case $host in 3129ia64-*-hpux*) 3130 # Find out what ABI is being produced by ac_compile, and set mode 3131 # options accordingly. 3132 echo 'int i;' > conftest.$ac_ext 3133 if AC_TRY_EVAL(ac_compile); then 3134 case `/usr/bin/file conftest.$ac_objext` in 3135 *ELF-32*) 3136 HPUX_IA64_MODE=32 3137 ;; 3138 *ELF-64*) 3139 HPUX_IA64_MODE=64 3140 ;; 3141 esac 3142 fi 3143 rm -rf conftest* 3144 ;; 3145*-*-irix6*) 3146 # Find out what ABI is being produced by ac_compile, and set linker 3147 # options accordingly. 3148 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 3149 if AC_TRY_EVAL(ac_compile); then 3150 if test yes = "$lt_cv_prog_gnu_ld"; then 3151 case `/usr/bin/file conftest.$ac_objext` in 3152 *32-bit*) 3153 LD="${LD-ld} -melf32bsmip" 3154 ;; 3155 *N32*) 3156 LD="${LD-ld} -melf32bmipn32" 3157 ;; 3158 *64-bit*) 3159 LD="${LD-ld} -melf64bmip" 3160 ;; 3161 esac 3162 else 3163 case `/usr/bin/file conftest.$ac_objext` in 3164 *32-bit*) 3165 LD="${LD-ld} -32" 3166 ;; 3167 *N32*) 3168 LD="${LD-ld} -n32" 3169 ;; 3170 *64-bit*) 3171 LD="${LD-ld} -64" 3172 ;; 3173 esac 3174 fi 3175 fi 3176 rm -rf conftest* 3177 ;; 3178 3179mips64*-*linux*) 3180 # Find out what ABI is being produced by ac_compile, and set linker 3181 # options accordingly. 3182 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 3183 if AC_TRY_EVAL(ac_compile); then 3184 emul=elf 3185 case `/usr/bin/file conftest.$ac_objext` in 3186 *32-bit*) 3187 emul="${emul}32" 3188 ;; 3189 *64-bit*) 3190 emul="${emul}64" 3191 ;; 3192 esac 3193 case `/usr/bin/file conftest.$ac_objext` in 3194 *MSB*) 3195 emul="${emul}btsmip" 3196 ;; 3197 *LSB*) 3198 emul="${emul}ltsmip" 3199 ;; 3200 esac 3201 case `/usr/bin/file conftest.$ac_objext` in 3202 *N32*) 3203 emul="${emul}n32" 3204 ;; 3205 esac 3206 LD="${LD-ld} -m $emul" 3207 fi 3208 rm -rf conftest* 3209 ;; 3210 3211x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 3212s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 3213 # Find out what ABI is being produced by ac_compile, and set linker 3214 # options accordingly. Note that the listed cases only cover the 3215 # situations where additional linker options are needed (such as when 3216 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 3217 # vice versa); the common cases where no linker options are needed do 3218 # not appear in the list. 3219 echo 'int i;' > conftest.$ac_ext 3220 if AC_TRY_EVAL(ac_compile); then 3221 case `/usr/bin/file conftest.o` in 3222 *32-bit*) 3223 case $host in 3224 x86_64-*kfreebsd*-gnu) 3225 LD="${LD-ld} -m elf_i386_fbsd" 3226 ;; 3227 x86_64-*linux*) 3228 case `/usr/bin/file conftest.o` in 3229 *x86-64*) 3230 LD="${LD-ld} -m elf32_x86_64" 3231 ;; 3232 *) 3233 LD="${LD-ld} -m elf_i386" 3234 ;; 3235 esac 3236 ;; 3237 powerpc64le-*linux*) 3238 LD="${LD-ld} -m elf32lppclinux" 3239 ;; 3240 powerpc64-*linux*) 3241 LD="${LD-ld} -m elf32ppclinux" 3242 ;; 3243 s390x-*linux*) 3244 LD="${LD-ld} -m elf_s390" 3245 ;; 3246 sparc64-*linux*) 3247 LD="${LD-ld} -m elf32_sparc" 3248 ;; 3249 esac 3250 ;; 3251 *64-bit*) 3252 case $host in 3253 x86_64-*kfreebsd*-gnu) 3254 LD="${LD-ld} -m elf_x86_64_fbsd" 3255 ;; 3256 x86_64-*linux*) 3257 LD="${LD-ld} -m elf_x86_64" 3258 ;; 3259 powerpcle-*linux*) 3260 LD="${LD-ld} -m elf64lppc" 3261 ;; 3262 powerpc-*linux*) 3263 LD="${LD-ld} -m elf64ppc" 3264 ;; 3265 s390*-*linux*|s390*-*tpf*) 3266 LD="${LD-ld} -m elf64_s390" 3267 ;; 3268 sparc*-*linux*) 3269 LD="${LD-ld} -m elf64_sparc" 3270 ;; 3271 esac 3272 ;; 3273 esac 3274 fi 3275 rm -rf conftest* 3276 ;; 3277 3278*-*-sco3.2v5*) 3279 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3280 SAVE_CFLAGS=$CFLAGS 3281 CFLAGS="$CFLAGS -belf" 3282 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 3283 [AC_LANG_PUSH(C) 3284 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 3285 AC_LANG_POP]) 3286 if test yes != "$lt_cv_cc_needs_belf"; then 3287 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3288 CFLAGS=$SAVE_CFLAGS 3289 fi 3290 ;; 3291*-*solaris*) 3292 # Find out what ABI is being produced by ac_compile, and set linker 3293 # options accordingly. 3294 echo 'int i;' > conftest.$ac_ext 3295 if AC_TRY_EVAL(ac_compile); then 3296 case `/usr/bin/file conftest.o` in 3297 *64-bit*) 3298 case $lt_cv_prog_gnu_ld in 3299 yes*) 3300 case $host in 3301 i?86-*-solaris*|x86_64-*-solaris*) 3302 LD="${LD-ld} -m elf_x86_64" 3303 ;; 3304 sparc*-*-solaris*) 3305 LD="${LD-ld} -m elf64_sparc" 3306 ;; 3307 esac 3308 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 3309 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 3310 LD=${LD-ld}_sol2 3311 fi 3312 ;; 3313 *) 3314 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 3315 LD="${LD-ld} -64" 3316 fi 3317 ;; 3318 esac 3319 ;; 3320 esac 3321 fi 3322 rm -rf conftest* 3323 ;; 3324esac 3325 3326need_locks=$enable_libtool_lock 3327])# _LT_ENABLE_LOCK 3328 3329 3330# _LT_PROG_AR 3331# ----------- 3332m4_defun([_LT_PROG_AR], 3333[AC_CHECK_TOOLS(AR, [ar], false) 3334: ${AR=ar} 3335: ${AR_FLAGS=cr} 3336_LT_DECL([], [AR], [1], [The archiver]) 3337_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) 3338 3339AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], 3340 [lt_cv_ar_at_file=no 3341 AC_COMPILE_IFELSE([AC_LANG_PROGRAM], 3342 [echo conftest.$ac_objext > conftest.lst 3343 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' 3344 AC_TRY_EVAL([lt_ar_try]) 3345 if test 0 -eq "$ac_status"; then 3346 # Ensure the archiver fails upon bogus file names. 3347 rm -f conftest.$ac_objext libconftest.a 3348 AC_TRY_EVAL([lt_ar_try]) 3349 if test 0 -ne "$ac_status"; then 3350 lt_cv_ar_at_file=@ 3351 fi 3352 fi 3353 rm -f conftest.* libconftest.a 3354 ]) 3355 ]) 3356 3357if test no = "$lt_cv_ar_at_file"; then 3358 archiver_list_spec= 3359else 3360 archiver_list_spec=$lt_cv_ar_at_file 3361fi 3362_LT_DECL([], [archiver_list_spec], [1], 3363 [How to feed a file listing to the archiver]) 3364])# _LT_PROG_AR 3365 3366 3367# _LT_CMD_OLD_ARCHIVE 3368# ------------------- 3369m4_defun([_LT_CMD_OLD_ARCHIVE], 3370[_LT_PROG_AR 3371 3372AC_CHECK_TOOL(STRIP, strip, :) 3373test -z "$STRIP" && STRIP=: 3374_LT_DECL([], [STRIP], [1], [A symbol stripping program]) 3375 3376AC_CHECK_TOOL(RANLIB, ranlib, :) 3377test -z "$RANLIB" && RANLIB=: 3378_LT_DECL([], [RANLIB], [1], 3379 [Commands used to install an old-style archive]) 3380 3381# Determine commands to create old-style static archives. 3382old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 3383old_postinstall_cmds='chmod 644 $oldlib' 3384old_postuninstall_cmds= 3385 3386if test -n "$RANLIB"; then 3387 case $host_os in 3388 bitrig* | openbsd*) 3389 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 3390 ;; 3391 *) 3392 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 3393 ;; 3394 esac 3395 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 3396fi 3397 3398case $host_os in 3399 darwin*) 3400 lock_old_archive_extraction=yes ;; 3401 *) 3402 lock_old_archive_extraction=no ;; 3403esac 3404_LT_DECL([], [old_postinstall_cmds], [2]) 3405_LT_DECL([], [old_postuninstall_cmds], [2]) 3406_LT_TAGDECL([], [old_archive_cmds], [2], 3407 [Commands used to build an old-style archive]) 3408_LT_DECL([], [lock_old_archive_extraction], [0], 3409 [Whether to use a lock for old archive extraction]) 3410])# _LT_CMD_OLD_ARCHIVE 3411 3412 3413# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 3414# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 3415# ---------------------------------------------------------------- 3416# Check whether the given compiler option works 3417AC_DEFUN([_LT_COMPILER_OPTION], 3418[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 3419m4_require([_LT_DECL_SED])dnl 3420AC_CACHE_CHECK([$1], [$2], 3421 [$2=no 3422 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 3423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 3424 lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment 3425 # Insert the option either (1) after the last *FLAGS variable, or 3426 # (2) before a word containing "conftest.", or (3) at the end. 3427 # Note that $ac_compile itself does not contain backslashes and begins 3428 # with a dollar sign (not a hyphen), so the echo should work correctly. 3429 # The option is referenced via a variable to avoid confusing sed. 3430 lt_compile=`echo "$ac_compile" | $SED \ 3431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 3432 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 3433 -e 's:$: $lt_compiler_flag:'` 3434 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 3435 (eval "$lt_compile" 2>conftest.err) 3436 ac_status=$? 3437 cat conftest.err >&AS_MESSAGE_LOG_FD 3438 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 3439 if (exit $ac_status) && test -s "$ac_outfile"; then 3440 # The compiler can only warn and ignore the option if not recognized 3441 # So say no if there are warnings other than the usual output. 3442 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 3443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 3444 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 3445 $2=yes 3446 fi 3447 fi 3448 $RM conftest* 3449]) 3450 3451if test yes = "[$]$2"; then 3452 m4_if([$5], , :, [$5]) 3453else 3454 m4_if([$6], , :, [$6]) 3455fi 3456])# _LT_COMPILER_OPTION 3457 3458# Old name: 3459AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) 3460dnl aclocal-1.4 backwards compatibility: 3461dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) 3462 3463 3464# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 3465# [ACTION-SUCCESS], [ACTION-FAILURE]) 3466# ---------------------------------------------------- 3467# Check whether the given linker option works 3468AC_DEFUN([_LT_LINKER_OPTION], 3469[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 3470m4_require([_LT_DECL_SED])dnl 3471AC_CACHE_CHECK([$1], [$2], 3472 [$2=no 3473 save_LDFLAGS=$LDFLAGS 3474 LDFLAGS="$LDFLAGS $3" 3475 echo "$lt_simple_link_test_code" > conftest.$ac_ext 3476 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 3477 # The linker can only warn and ignore the option if not recognized 3478 # So say no if there are warnings 3479 if test -s conftest.err; then 3480 # Append any errors to the config.log. 3481 cat conftest.err 1>&AS_MESSAGE_LOG_FD 3482 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 3483 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 3484 if diff conftest.exp conftest.er2 >/dev/null; then 3485 $2=yes 3486 fi 3487 else 3488 $2=yes 3489 fi 3490 fi 3491 $RM -r conftest* 3492 LDFLAGS=$save_LDFLAGS 3493]) 3494 3495if test yes = "[$]$2"; then 3496 m4_if([$4], , :, [$4]) 3497else 3498 m4_if([$5], , :, [$5]) 3499fi 3500])# _LT_LINKER_OPTION 3501 3502# Old name: 3503AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) 3504dnl aclocal-1.4 backwards compatibility: 3505dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) 3506 3507 3508# LT_CMD_MAX_LEN 3509#--------------- 3510AC_DEFUN([LT_CMD_MAX_LEN], 3511[AC_REQUIRE([AC_CANONICAL_HOST])dnl 3512# find the maximum length of command line arguments 3513AC_MSG_CHECKING([the maximum length of command line arguments]) 3514AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 3515 i=0 3516 teststring=ABCD 3517 3518 case $build_os in 3519 msdosdjgpp*) 3520 # On DJGPP, this test can blow up pretty badly due to problems in libc 3521 # (any single argument exceeding 2000 bytes causes a buffer overrun 3522 # during glob expansion). Even if it were fixed, the result of this 3523 # check would be larger than it should be. 3524 lt_cv_sys_max_cmd_len=12288; # 12K is about right 3525 ;; 3526 3527 gnu*) 3528 # Under GNU Hurd, this test is not required because there is 3529 # no limit to the length of command line arguments. 3530 # Libtool will interpret -1 as no limit whatsoever 3531 lt_cv_sys_max_cmd_len=-1; 3532 ;; 3533 3534 cygwin* | mingw* | cegcc*) 3535 # On Win9x/ME, this test blows up -- it succeeds, but takes 3536 # about 5 minutes as the teststring grows exponentially. 3537 # Worse, since 9x/ME are not pre-emptively multitasking, 3538 # you end up with a "frozen" computer, even though with patience 3539 # the test eventually succeeds (with a max line length of 256k). 3540 # Instead, let's just punt: use the minimum linelength reported by 3541 # all of the supported platforms: 8192 (on NT/2K/XP). 3542 lt_cv_sys_max_cmd_len=8192; 3543 ;; 3544 3545 mint*) 3546 # On MiNT this can take a long time and run out of memory. 3547 lt_cv_sys_max_cmd_len=8192; 3548 ;; 3549 3550 amigaos*) 3551 # On AmigaOS with pdksh, this test takes hours, literally. 3552 # So we just punt and use a minimum line length of 8192. 3553 lt_cv_sys_max_cmd_len=8192; 3554 ;; 3555 3556 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 3557 # This has been around since 386BSD, at least. Likely further. 3558 if test -x /sbin/sysctl; then 3559 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 3560 elif test -x /usr/sbin/sysctl; then 3561 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 3562 else 3563 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 3564 fi 3565 # And add a safety zone 3566 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 3567 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 3568 ;; 3569 3570 interix*) 3571 # We know the value 262144 and hardcode it with a safety zone (like BSD) 3572 lt_cv_sys_max_cmd_len=196608 3573 ;; 3574 3575 os2*) 3576 # The test takes a long time on OS/2. 3577 lt_cv_sys_max_cmd_len=8192 3578 ;; 3579 3580 osf*) 3581 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 3582 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 3583 # nice to cause kernel panics so lets avoid the loop below. 3584 # First set a reasonable default. 3585 lt_cv_sys_max_cmd_len=16384 3586 # 3587 if test -x /sbin/sysconfig; then 3588 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 3589 *1*) lt_cv_sys_max_cmd_len=-1 ;; 3590 esac 3591 fi 3592 ;; 3593 sco3.2v5*) 3594 lt_cv_sys_max_cmd_len=102400 3595 ;; 3596 sysv5* | sco5v6* | sysv4.2uw2*) 3597 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 3598 if test -n "$kargmax"; then 3599 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 3600 else 3601 lt_cv_sys_max_cmd_len=32768 3602 fi 3603 ;; 3604 *) 3605 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 3606 if test -n "$lt_cv_sys_max_cmd_len" && \ 3607 test undefined != "$lt_cv_sys_max_cmd_len"; then 3608 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 3609 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 3610 else 3611 # Make teststring a little bigger before we do anything with it. 3612 # a 1K string should be a reasonable start. 3613 for i in 1 2 3 4 5 6 7 8; do 3614 teststring=$teststring$teststring 3615 done 3616 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 3617 # If test is not a shell built-in, we'll probably end up computing a 3618 # maximum length that is only half of the actual maximum length, but 3619 # we can't tell. 3620 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 3621 = "X$teststring$teststring"; } >/dev/null 2>&1 && 3622 test 17 != "$i" # 1/2 MB should be enough 3623 do 3624 i=`expr $i + 1` 3625 teststring=$teststring$teststring 3626 done 3627 # Only check the string length outside the loop. 3628 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 3629 teststring= 3630 # Add a significant safety factor because C++ compilers can tack on 3631 # massive amounts of additional arguments before passing them to the 3632 # linker. It appears as though 1/2 is a usable value. 3633 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 3634 fi 3635 ;; 3636 esac 3637]) 3638if test -n "$lt_cv_sys_max_cmd_len"; then 3639 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 3640else 3641 AC_MSG_RESULT(none) 3642fi 3643max_cmd_len=$lt_cv_sys_max_cmd_len 3644_LT_DECL([], [max_cmd_len], [0], 3645 [What is the maximum length of a command?]) 3646])# LT_CMD_MAX_LEN 3647 3648# Old name: 3649AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) 3650dnl aclocal-1.4 backwards compatibility: 3651dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) 3652 3653 3654# _LT_HEADER_DLFCN 3655# ---------------- 3656m4_defun([_LT_HEADER_DLFCN], 3657[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl 3658])# _LT_HEADER_DLFCN 3659 3660 3661# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 3662# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 3663# ---------------------------------------------------------------- 3664m4_defun([_LT_TRY_DLOPEN_SELF], 3665[m4_require([_LT_HEADER_DLFCN])dnl 3666if test yes = "$cross_compiling"; then : 3667 [$4] 3668else 3669 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 3670 lt_status=$lt_dlunknown 3671 cat > conftest.$ac_ext <<_LT_EOF 3672[#line $LINENO "configure" 3673#include "confdefs.h" 3674 3675#if HAVE_DLFCN_H 3676#include <dlfcn.h> 3677#endif 3678 3679#include <stdio.h> 3680 3681#ifdef RTLD_GLOBAL 3682# define LT_DLGLOBAL RTLD_GLOBAL 3683#else 3684# ifdef DL_GLOBAL 3685# define LT_DLGLOBAL DL_GLOBAL 3686# else 3687# define LT_DLGLOBAL 0 3688# endif 3689#endif 3690 3691/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 3692 find out it does not work in some platform. */ 3693#ifndef LT_DLLAZY_OR_NOW 3694# ifdef RTLD_LAZY 3695# define LT_DLLAZY_OR_NOW RTLD_LAZY 3696# else 3697# ifdef DL_LAZY 3698# define LT_DLLAZY_OR_NOW DL_LAZY 3699# else 3700# ifdef RTLD_NOW 3701# define LT_DLLAZY_OR_NOW RTLD_NOW 3702# else 3703# ifdef DL_NOW 3704# define LT_DLLAZY_OR_NOW DL_NOW 3705# else 3706# define LT_DLLAZY_OR_NOW 0 3707# endif 3708# endif 3709# endif 3710# endif 3711#endif 3712 3713/* When -fvisibility=hidden is used, assume the code has been annotated 3714 correspondingly for the symbols needed. */ 3715#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 3716int fnord () __attribute__((visibility("default"))); 3717#endif 3718 3719int fnord () { return 42; } 3720int main () 3721{ 3722 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 3723 int status = $lt_dlunknown; 3724 3725 if (self) 3726 { 3727 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 3728 else 3729 { 3730 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 3731 else puts (dlerror ()); 3732 } 3733 /* dlclose (self); */ 3734 } 3735 else 3736 puts (dlerror ()); 3737 3738 return status; 3739}] 3740_LT_EOF 3741 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then 3742 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 3743 lt_status=$? 3744 case x$lt_status in 3745 x$lt_dlno_uscore) $1 ;; 3746 x$lt_dlneed_uscore) $2 ;; 3747 x$lt_dlunknown|x*) $3 ;; 3748 esac 3749 else : 3750 # compilation failed 3751 $3 3752 fi 3753fi 3754rm -fr conftest* 3755])# _LT_TRY_DLOPEN_SELF 3756 3757 3758# LT_SYS_DLOPEN_SELF 3759# ------------------ 3760AC_DEFUN([LT_SYS_DLOPEN_SELF], 3761[m4_require([_LT_HEADER_DLFCN])dnl 3762if test yes != "$enable_dlopen"; then 3763 enable_dlopen=unknown 3764 enable_dlopen_self=unknown 3765 enable_dlopen_self_static=unknown 3766else 3767 lt_cv_dlopen=no 3768 lt_cv_dlopen_libs= 3769 3770 case $host_os in 3771 beos*) 3772 lt_cv_dlopen=load_add_on 3773 lt_cv_dlopen_libs= 3774 lt_cv_dlopen_self=yes 3775 ;; 3776 3777 mingw* | pw32* | cegcc*) 3778 lt_cv_dlopen=LoadLibrary 3779 lt_cv_dlopen_libs= 3780 ;; 3781 3782 cygwin*) 3783 lt_cv_dlopen=dlopen 3784 lt_cv_dlopen_libs= 3785 ;; 3786 3787 darwin*) 3788 # if libdl is installed we need to link against it 3789 AC_CHECK_LIB([dl], [dlopen], 3790 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[ 3791 lt_cv_dlopen=dyld 3792 lt_cv_dlopen_libs= 3793 lt_cv_dlopen_self=yes 3794 ]) 3795 ;; 3796 3797 tpf*) 3798 # Don't try to run any link tests for TPF. We know it's impossible 3799 # because TPF is a cross-compiler, and we know how we open DSOs. 3800 lt_cv_dlopen=dlopen 3801 lt_cv_dlopen_libs= 3802 lt_cv_dlopen_self=no 3803 ;; 3804 3805 *) 3806 AC_CHECK_FUNC([shl_load], 3807 [lt_cv_dlopen=shl_load], 3808 [AC_CHECK_LIB([dld], [shl_load], 3809 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld], 3810 [AC_CHECK_FUNC([dlopen], 3811 [lt_cv_dlopen=dlopen], 3812 [AC_CHECK_LIB([dl], [dlopen], 3813 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl], 3814 [AC_CHECK_LIB([svld], [dlopen], 3815 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld], 3816 [AC_CHECK_LIB([dld], [dld_link], 3817 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld]) 3818 ]) 3819 ]) 3820 ]) 3821 ]) 3822 ]) 3823 ;; 3824 esac 3825 3826 if test no = "$lt_cv_dlopen"; then 3827 enable_dlopen=no 3828 else 3829 enable_dlopen=yes 3830 fi 3831 3832 case $lt_cv_dlopen in 3833 dlopen) 3834 save_CPPFLAGS=$CPPFLAGS 3835 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 3836 3837 save_LDFLAGS=$LDFLAGS 3838 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 3839 3840 save_LIBS=$LIBS 3841 LIBS="$lt_cv_dlopen_libs $LIBS" 3842 3843 AC_CACHE_CHECK([whether a program can dlopen itself], 3844 lt_cv_dlopen_self, [dnl 3845 _LT_TRY_DLOPEN_SELF( 3846 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 3847 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 3848 ]) 3849 3850 if test yes = "$lt_cv_dlopen_self"; then 3851 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 3852 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 3853 lt_cv_dlopen_self_static, [dnl 3854 _LT_TRY_DLOPEN_SELF( 3855 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 3856 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 3857 ]) 3858 fi 3859 3860 CPPFLAGS=$save_CPPFLAGS 3861 LDFLAGS=$save_LDFLAGS 3862 LIBS=$save_LIBS 3863 ;; 3864 esac 3865 3866 case $lt_cv_dlopen_self in 3867 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 3868 *) enable_dlopen_self=unknown ;; 3869 esac 3870 3871 case $lt_cv_dlopen_self_static in 3872 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 3873 *) enable_dlopen_self_static=unknown ;; 3874 esac 3875fi 3876_LT_DECL([dlopen_support], [enable_dlopen], [0], 3877 [Whether dlopen is supported]) 3878_LT_DECL([dlopen_self], [enable_dlopen_self], [0], 3879 [Whether dlopen of programs is supported]) 3880_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], 3881 [Whether dlopen of statically linked programs is supported]) 3882])# LT_SYS_DLOPEN_SELF 3883 3884# Old name: 3885AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) 3886dnl aclocal-1.4 backwards compatibility: 3887dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) 3888 3889 3890# _LT_COMPILER_C_O([TAGNAME]) 3891# --------------------------- 3892# Check to see if options -c and -o are simultaneously supported by compiler. 3893# This macro does not hard code the compiler like AC_PROG_CC_C_O. 3894m4_defun([_LT_COMPILER_C_O], 3895[m4_require([_LT_DECL_SED])dnl 3896m4_require([_LT_FILEUTILS_DEFAULTS])dnl 3897m4_require([_LT_TAG_COMPILER])dnl 3898AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 3899 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 3900 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 3901 $RM -r conftest 2>/dev/null 3902 mkdir conftest 3903 cd conftest 3904 mkdir out 3905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 3906 3907 lt_compiler_flag="-o out/conftest2.$ac_objext" 3908 # Insert the option either (1) after the last *FLAGS variable, or 3909 # (2) before a word containing "conftest.", or (3) at the end. 3910 # Note that $ac_compile itself does not contain backslashes and begins 3911 # with a dollar sign (not a hyphen), so the echo should work correctly. 3912 lt_compile=`echo "$ac_compile" | $SED \ 3913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 3914 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 3915 -e 's:$: $lt_compiler_flag:'` 3916 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 3917 (eval "$lt_compile" 2>out/conftest.err) 3918 ac_status=$? 3919 cat out/conftest.err >&AS_MESSAGE_LOG_FD 3920 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 3921 if (exit $ac_status) && test -s out/conftest2.$ac_objext 3922 then 3923 # The compiler can only warn and ignore the option if not recognized 3924 # So say no if there are warnings 3925 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 3926 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 3927 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 3928 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 3929 fi 3930 fi 3931 chmod u+w . 2>&AS_MESSAGE_LOG_FD 3932 $RM conftest* 3933 # SGI C++ compiler will create directory out/ii_files/ for 3934 # template instantiation 3935 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 3936 $RM out/* && rmdir out 3937 cd .. 3938 $RM -r conftest 3939 $RM conftest* 3940]) 3941_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], 3942 [Does compiler simultaneously support -c and -o options?]) 3943])# _LT_COMPILER_C_O 3944 3945 3946# _LT_COMPILER_FILE_LOCKS([TAGNAME]) 3947# ---------------------------------- 3948# Check to see if we can do hard links to lock some files if needed 3949m4_defun([_LT_COMPILER_FILE_LOCKS], 3950[m4_require([_LT_ENABLE_LOCK])dnl 3951m4_require([_LT_FILEUTILS_DEFAULTS])dnl 3952_LT_COMPILER_C_O([$1]) 3953 3954hard_links=nottested 3955if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then 3956 # do not overwrite the value of need_locks provided by the user 3957 AC_MSG_CHECKING([if we can lock with hard links]) 3958 hard_links=yes 3959 $RM conftest* 3960 ln conftest.a conftest.b 2>/dev/null && hard_links=no 3961 touch conftest.a 3962 ln conftest.a conftest.b 2>&5 || hard_links=no 3963 ln conftest.a conftest.b 2>/dev/null && hard_links=no 3964 AC_MSG_RESULT([$hard_links]) 3965 if test no = "$hard_links"; then 3966 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe]) 3967 need_locks=warn 3968 fi 3969else 3970 need_locks=no 3971fi 3972_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) 3973])# _LT_COMPILER_FILE_LOCKS 3974 3975 3976# _LT_CHECK_OBJDIR 3977# ---------------- 3978m4_defun([_LT_CHECK_OBJDIR], 3979[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 3980[rm -f .libs 2>/dev/null 3981mkdir .libs 2>/dev/null 3982if test -d .libs; then 3983 lt_cv_objdir=.libs 3984else 3985 # MS-DOS does not allow filenames that begin with a dot. 3986 lt_cv_objdir=_libs 3987fi 3988rmdir .libs 2>/dev/null]) 3989objdir=$lt_cv_objdir 3990_LT_DECL([], [objdir], [0], 3991 [The name of the directory that contains temporary libtool files])dnl 3992m4_pattern_allow([LT_OBJDIR])dnl 3993AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/", 3994 [Define to the sub-directory where libtool stores uninstalled libraries.]) 3995])# _LT_CHECK_OBJDIR 3996 3997 3998# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 3999# -------------------------------------- 4000# Check hardcoding attributes. 4001m4_defun([_LT_LINKER_HARDCODE_LIBPATH], 4002[AC_MSG_CHECKING([how to hardcode library paths into programs]) 4003_LT_TAGVAR(hardcode_action, $1)= 4004if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 4005 test -n "$_LT_TAGVAR(runpath_var, $1)" || 4006 test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then 4007 4008 # We can hardcode non-existent directories. 4009 if test no != "$_LT_TAGVAR(hardcode_direct, $1)" && 4010 # If the only mechanism to avoid hardcoding is shlibpath_var, we 4011 # have to relink, otherwise we might link with an installed library 4012 # when we should be linking with a yet-to-be-installed one 4013 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" && 4014 test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then 4015 # Linking always hardcodes the temporary library directory. 4016 _LT_TAGVAR(hardcode_action, $1)=relink 4017 else 4018 # We can link without hardcoding, and we can hardcode nonexisting dirs. 4019 _LT_TAGVAR(hardcode_action, $1)=immediate 4020 fi 4021else 4022 # We cannot hardcode anything, or else we can only hardcode existing 4023 # directories. 4024 _LT_TAGVAR(hardcode_action, $1)=unsupported 4025fi 4026AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 4027 4028if test relink = "$_LT_TAGVAR(hardcode_action, $1)" || 4029 test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then 4030 # Fast installation is not supported 4031 enable_fast_install=no 4032elif test yes = "$shlibpath_overrides_runpath" || 4033 test no = "$enable_shared"; then 4034 # Fast installation is not necessary 4035 enable_fast_install=needless 4036fi 4037_LT_TAGDECL([], [hardcode_action], [0], 4038 [How to hardcode a shared library path into an executable]) 4039])# _LT_LINKER_HARDCODE_LIBPATH 4040 4041 4042# _LT_CMD_STRIPLIB 4043# ---------------- 4044m4_defun([_LT_CMD_STRIPLIB], 4045[m4_require([_LT_DECL_EGREP]) 4046striplib= 4047old_striplib= 4048AC_MSG_CHECKING([whether stripping libraries is possible]) 4049if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 4050 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 4051 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 4052 AC_MSG_RESULT([yes]) 4053else 4054# FIXME - insert some real tests, host_os isn't really good enough 4055 case $host_os in 4056 darwin*) 4057 if test -n "$STRIP"; then 4058 striplib="$STRIP -x" 4059 old_striplib="$STRIP -S" 4060 AC_MSG_RESULT([yes]) 4061 else 4062 AC_MSG_RESULT([no]) 4063 fi 4064 ;; 4065 *) 4066 AC_MSG_RESULT([no]) 4067 ;; 4068 esac 4069fi 4070_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) 4071_LT_DECL([], [striplib], [1]) 4072])# _LT_CMD_STRIPLIB 4073 4074 4075# _LT_PREPARE_MUNGE_PATH_LIST 4076# --------------------------- 4077# Make sure func_munge_path_list() is defined correctly. 4078m4_defun([_LT_PREPARE_MUNGE_PATH_LIST], 4079[[# func_munge_path_list VARIABLE PATH 4080# ----------------------------------- 4081# VARIABLE is name of variable containing _space_ separated list of 4082# directories to be munged by the contents of PATH, which is string 4083# having a format: 4084# "DIR[:DIR]:" 4085# string "DIR[ DIR]" will be prepended to VARIABLE 4086# ":DIR[:DIR]" 4087# string "DIR[ DIR]" will be appended to VARIABLE 4088# "DIRP[:DIRP]::[DIRA:]DIRA" 4089# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 4090# "DIRA[ DIRA]" will be appended to VARIABLE 4091# "DIR[:DIR]" 4092# VARIABLE will be replaced by "DIR[ DIR]" 4093func_munge_path_list () 4094{ 4095 case x@S|@2 in 4096 x) 4097 ;; 4098 *:) 4099 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" 4100 ;; 4101 x:*) 4102 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" 4103 ;; 4104 *::*) 4105 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 4106 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" 4107 ;; 4108 *) 4109 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" 4110 ;; 4111 esac 4112} 4113]])# _LT_PREPARE_PATH_LIST 4114 4115 4116# _LT_SYS_DYNAMIC_LINKER([TAG]) 4117# ----------------------------- 4118# PORTME Fill in your ld.so characteristics 4119m4_defun([_LT_SYS_DYNAMIC_LINKER], 4120[AC_REQUIRE([AC_CANONICAL_HOST])dnl 4121m4_require([_LT_DECL_EGREP])dnl 4122m4_require([_LT_FILEUTILS_DEFAULTS])dnl 4123m4_require([_LT_DECL_OBJDUMP])dnl 4124m4_require([_LT_DECL_SED])dnl 4125m4_require([_LT_CHECK_SHELL_FEATURES])dnl 4126m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl 4127AC_MSG_CHECKING([dynamic linker characteristics]) 4128m4_if([$1], 4129 [], [ 4130if test yes = "$GCC"; then 4131 case $host_os in 4132 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 4133 *) lt_awk_arg='/^libraries:/' ;; 4134 esac 4135 case $host_os in 4136 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;; 4137 *) lt_sed_strip_eq='s|=/|/|g' ;; 4138 esac 4139 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 4140 case $lt_search_path_spec in 4141 *\;*) 4142 # if the path contains ";" then we assume it to be the separator 4143 # otherwise default to the standard path separator (i.e. ":") - it is 4144 # assumed that no part of a normal pathname contains ";" but that should 4145 # okay in the real world where ";" in dirpaths is itself problematic. 4146 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 4147 ;; 4148 *) 4149 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 4150 ;; 4151 esac 4152 # Ok, now we have the path, separated by spaces, we can step through it 4153 # and add multilib dir if necessary... 4154 lt_tmp_lt_search_path_spec= 4155 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 4156 # ...but if some path component already ends with the multilib dir we assume 4157 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 4158 case "$lt_multi_os_dir; $lt_search_path_spec " in 4159 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 4160 lt_multi_os_dir= 4161 ;; 4162 esac 4163 for lt_sys_path in $lt_search_path_spec; do 4164 if test -d "$lt_sys_path$lt_multi_os_dir"; then 4165 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 4166 elif test -n "$lt_multi_os_dir"; then 4167 test -d "$lt_sys_path" && \ 4168 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 4169 fi 4170 done 4171 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 4172BEGIN {RS = " "; FS = "/|\n";} { 4173 lt_foo = ""; 4174 lt_count = 0; 4175 for (lt_i = NF; lt_i > 0; lt_i--) { 4176 if ($lt_i != "" && $lt_i != ".") { 4177 if ($lt_i == "..") { 4178 lt_count++; 4179 } else { 4180 if (lt_count == 0) { 4181 lt_foo = "/" $lt_i lt_foo; 4182 } else { 4183 lt_count--; 4184 } 4185 } 4186 } 4187 } 4188 if (lt_foo != "") { lt_freq[[lt_foo]]++; } 4189 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 4190}'` 4191 # AWK program above erroneously prepends '/' to C:/dos/paths 4192 # for these hosts. 4193 case $host_os in 4194 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 4195 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;; 4196 esac 4197 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 4198else 4199 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 4200fi]) 4201library_names_spec= 4202libname_spec='lib$name' 4203soname_spec= 4204shrext_cmds=.so 4205postinstall_cmds= 4206postuninstall_cmds= 4207finish_cmds= 4208finish_eval= 4209shlibpath_var= 4210shlibpath_overrides_runpath=unknown 4211version_type=none 4212dynamic_linker="$host_os ld.so" 4213sys_lib_dlsearch_path_spec="/lib /usr/lib" 4214need_lib_prefix=unknown 4215hardcode_into_libs=no 4216 4217# when you set need_version to no, make sure it does not cause -set_version 4218# flags to be left without arguments 4219need_version=unknown 4220 4221AC_ARG_VAR([LT_SYS_LIBRARY_PATH], 4222[User-defined run-time library search path.]) 4223 4224case $host_os in 4225aix3*) 4226 version_type=linux # correct to gnu/linux during the next big refactor 4227 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 4228 shlibpath_var=LIBPATH 4229 4230 # AIX 3 has no versioning support, so we append a major version to the name. 4231 soname_spec='$libname$release$shared_ext$major' 4232 ;; 4233 4234aix[[4-9]]*) 4235 version_type=linux # correct to gnu/linux during the next big refactor 4236 need_lib_prefix=no 4237 need_version=no 4238 hardcode_into_libs=yes 4239 if test ia64 = "$host_cpu"; then 4240 # AIX 5 supports IA64 4241 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 4242 shlibpath_var=LD_LIBRARY_PATH 4243 else 4244 # With GCC up to 2.95.x, collect2 would create an import file 4245 # for dependence libraries. The import file would start with 4246 # the line '#! .'. This would cause the generated library to 4247 # depend on '.', always an invalid library. This was fixed in 4248 # development snapshots of GCC prior to 3.0. 4249 case $host_os in 4250 aix4 | aix4.[[01]] | aix4.[[01]].*) 4251 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 4252 echo ' yes ' 4253 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 4254 : 4255 else 4256 can_build_shared=no 4257 fi 4258 ;; 4259 esac 4260 # Using Import Files as archive members, it is possible to support 4261 # filename-based versioning of shared library archives on AIX. While 4262 # this would work for both with and without runtime linking, it will 4263 # prevent static linking of such archives. So we do filename-based 4264 # shared library versioning with .so extension only, which is used 4265 # when both runtime linking and shared linking is enabled. 4266 # Unfortunately, runtime linking may impact performance, so we do 4267 # not want this to be the default eventually. Also, we use the 4268 # versioned .so libs for executables only if there is the -brtl 4269 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 4270 # To allow for filename-based versioning support, we need to create 4271 # libNAME.so.V as an archive file, containing: 4272 # *) an Import File, referring to the versioned filename of the 4273 # archive as well as the shared archive member, telling the 4274 # bitwidth (32 or 64) of that shared object, and providing the 4275 # list of exported symbols of that shared object, eventually 4276 # decorated with the 'weak' keyword 4277 # *) the shared object with the F_LOADONLY flag set, to really avoid 4278 # it being seen by the linker. 4279 # At run time we better use the real file rather than another symlink, 4280 # but for link time we create the symlink libNAME.so -> libNAME.so.V 4281 4282 case $with_aix_soname,$aix_use_runtimelinking in 4283 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 4284 # soname into executable. Probably we can add versioning support to 4285 # collect2, so additional links can be useful in future. 4286 aix,yes) # traditional libtool 4287 dynamic_linker='AIX unversionable lib.so' 4288 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 4289 # instead of lib<name>.a to let people know that these are not 4290 # typical AIX shared libraries. 4291 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 4292 ;; 4293 aix,no) # traditional AIX only 4294 dynamic_linker='AIX lib.a[(]lib.so.V[)]' 4295 # We preserve .a as extension for shared libraries through AIX4.2 4296 # and later when we are not doing run time linking. 4297 library_names_spec='$libname$release.a $libname.a' 4298 soname_spec='$libname$release$shared_ext$major' 4299 ;; 4300 svr4,*) # full svr4 only 4301 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]" 4302 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 4303 # We do not specify a path in Import Files, so LIBPATH fires. 4304 shlibpath_overrides_runpath=yes 4305 ;; 4306 *,yes) # both, prefer svr4 4307 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]" 4308 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 4309 # unpreferred sharedlib libNAME.a needs extra handling 4310 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 4311 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 4312 # We do not specify a path in Import Files, so LIBPATH fires. 4313 shlibpath_overrides_runpath=yes 4314 ;; 4315 *,no) # both, prefer aix 4316 dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]" 4317 library_names_spec='$libname$release.a $libname.a' 4318 soname_spec='$libname$release$shared_ext$major' 4319 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 4320 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 4321 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 4322 ;; 4323 esac 4324 shlibpath_var=LIBPATH 4325 fi 4326 ;; 4327 4328amigaos*) 4329 case $host_cpu in 4330 powerpc) 4331 # Since July 2007 AmigaOS4 officially supports .so libraries. 4332 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 4333 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 4334 ;; 4335 m68k) 4336 library_names_spec='$libname.ixlibrary $libname.a' 4337 # Create ${libname}_ixlibrary.a entries in /sys/libs. 4338 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $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' 4339 ;; 4340 esac 4341 ;; 4342 4343beos*) 4344 library_names_spec='$libname$shared_ext' 4345 dynamic_linker="$host_os ld.so" 4346 shlibpath_var=LIBRARY_PATH 4347 ;; 4348 4349bsdi[[45]]*) 4350 version_type=linux # correct to gnu/linux during the next big refactor 4351 need_version=no 4352 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 4353 soname_spec='$libname$release$shared_ext$major' 4354 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 4355 shlibpath_var=LD_LIBRARY_PATH 4356 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 4357 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 4358 # the default ld.so.conf also contains /usr/contrib/lib and 4359 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 4360 # libtool to hard-code these into programs 4361 ;; 4362 4363cygwin* | mingw* | pw32* | cegcc*) 4364 version_type=windows 4365 shrext_cmds=.dll 4366 need_version=no 4367 need_lib_prefix=no 4368 4369 case $GCC,$cc_basename in 4370 yes,*) 4371 # gcc 4372 library_names_spec='$libname.dll.a' 4373 # DLL is installed to $(libdir)/../bin by postinstall_cmds 4374 postinstall_cmds='base_file=`basename \$file`~ 4375 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 4376 dldir=$destdir/`dirname \$dlpath`~ 4377 test -d \$dldir || mkdir -p \$dldir~ 4378 $install_prog $dir/$dlname \$dldir/$dlname~ 4379 chmod a+x \$dldir/$dlname~ 4380 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 4381 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 4382 fi' 4383 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 4384 dlpath=$dir/\$dldll~ 4385 $RM \$dlpath' 4386 shlibpath_overrides_runpath=yes 4387 4388 case $host_os in 4389 cygwin*) 4390 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 4391 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 4392m4_if([$1], [],[ 4393 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) 4394 ;; 4395 mingw* | cegcc*) 4396 # MinGW DLLs use traditional 'lib' prefix 4397 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 4398 ;; 4399 pw32*) 4400 # pw32 DLLs use 'pw' prefix rather than 'lib' 4401 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 4402 ;; 4403 esac 4404 dynamic_linker='Win32 ld.exe' 4405 ;; 4406 4407 *,cl*) 4408 # Native MSVC 4409 libname_spec='$name' 4410 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 4411 library_names_spec='$libname.dll.lib' 4412 4413 case $build_os in 4414 mingw*) 4415 sys_lib_search_path_spec= 4416 lt_save_ifs=$IFS 4417 IFS=';' 4418 for lt_path in $LIB 4419 do 4420 IFS=$lt_save_ifs 4421 # Let DOS variable expansion print the short 8.3 style file name. 4422 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 4423 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 4424 done 4425 IFS=$lt_save_ifs 4426 # Convert to MSYS style. 4427 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` 4428 ;; 4429 cygwin*) 4430 # Convert to unix form, then to dos form, then back to unix form 4431 # but this time dos style (no spaces!) so that the unix form looks 4432 # like /cygdrive/c/PROGRA~1:/cygdr... 4433 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 4434 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 4435 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 4436 ;; 4437 *) 4438 sys_lib_search_path_spec=$LIB 4439 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then 4440 # It is most probably a Windows format PATH. 4441 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 4442 else 4443 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 4444 fi 4445 # FIXME: find the short name or the path components, as spaces are 4446 # common. (e.g. "Program Files" -> "PROGRA~1") 4447 ;; 4448 esac 4449 4450 # DLL is installed to $(libdir)/../bin by postinstall_cmds 4451 postinstall_cmds='base_file=`basename \$file`~ 4452 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 4453 dldir=$destdir/`dirname \$dlpath`~ 4454 test -d \$dldir || mkdir -p \$dldir~ 4455 $install_prog $dir/$dlname \$dldir/$dlname' 4456 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 4457 dlpath=$dir/\$dldll~ 4458 $RM \$dlpath' 4459 shlibpath_overrides_runpath=yes 4460 dynamic_linker='Win32 link.exe' 4461 ;; 4462 4463 *) 4464 # Assume MSVC wrapper 4465 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib' 4466 dynamic_linker='Win32 ld.exe' 4467 ;; 4468 esac 4469 # FIXME: first we should search . and the directory the executable is in 4470 shlibpath_var=PATH 4471 ;; 4472 4473darwin* | rhapsody*) 4474 dynamic_linker="$host_os dyld" 4475 version_type=darwin 4476 need_lib_prefix=no 4477 need_version=no 4478 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 4479 soname_spec='$libname$release$major$shared_ext' 4480 shlibpath_overrides_runpath=yes 4481 shlibpath_var=DYLD_LIBRARY_PATH 4482 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 4483m4_if([$1], [],[ 4484 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 4485 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 4486 ;; 4487 4488dgux*) 4489 version_type=linux # correct to gnu/linux during the next big refactor 4490 need_lib_prefix=no 4491 need_version=no 4492 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 4493 soname_spec='$libname$release$shared_ext$major' 4494 shlibpath_var=LD_LIBRARY_PATH 4495 ;; 4496 4497freebsd* | dragonfly*) 4498 # DragonFly does not have aout. When/if they implement a new 4499 # versioning mechanism, adjust this. 4500 if test -x /usr/bin/objformat; then 4501 objformat=`/usr/bin/objformat` 4502 else 4503 case $host_os in 4504 freebsd[[23]].*) objformat=aout ;; 4505 *) objformat=elf ;; 4506 esac 4507 fi 4508 version_type=freebsd-$objformat 4509 case $version_type in 4510 freebsd-elf*) 4511 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 4512 soname_spec='$libname$release$shared_ext$major' 4513 need_version=no 4514 need_lib_prefix=no 4515 ;; 4516 freebsd-*) 4517 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 4518 need_version=yes 4519 ;; 4520 esac 4521 shlibpath_var=LD_LIBRARY_PATH 4522 case $host_os in 4523 freebsd2.*) 4524 shlibpath_overrides_runpath=yes 4525 ;; 4526 freebsd3.[[01]]* | freebsdelf3.[[01]]*) 4527 shlibpath_overrides_runpath=yes 4528 hardcode_into_libs=yes 4529 ;; 4530 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 4531 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 4532 shlibpath_overrides_runpath=no 4533 hardcode_into_libs=yes 4534 ;; 4535 *) # from 4.6 on, and DragonFly 4536 shlibpath_overrides_runpath=yes 4537 hardcode_into_libs=yes 4538 ;; 4539 esac 4540 ;; 4541 4542haiku*) 4543 version_type=linux # correct to gnu/linux during the next big refactor 4544 need_lib_prefix=no 4545 need_version=no 4546 dynamic_linker="$host_os runtime_loader" 4547 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 4548 soname_spec='$libname$release$shared_ext$major' 4549 shlibpath_var=LIBRARY_PATH 4550 shlibpath_overrides_runpath=no 4551 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 4552 hardcode_into_libs=yes 4553 ;; 4554 4555hpux9* | hpux10* | hpux11*) 4556 # Give a soname corresponding to the major version so that dld.sl refuses to 4557 # link against other versions. 4558 version_type=sunos 4559 need_lib_prefix=no 4560 need_version=no 4561 case $host_cpu in 4562 ia64*) 4563 shrext_cmds='.so' 4564 hardcode_into_libs=yes 4565 dynamic_linker="$host_os dld.so" 4566 shlibpath_var=LD_LIBRARY_PATH 4567 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 4568 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 4569 soname_spec='$libname$release$shared_ext$major' 4570 if test 32 = "$HPUX_IA64_MODE"; then 4571 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 4572 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 4573 else 4574 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 4575 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 4576 fi 4577 ;; 4578 hppa*64*) 4579 shrext_cmds='.sl' 4580 hardcode_into_libs=yes 4581 dynamic_linker="$host_os dld.sl" 4582 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 4583 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 4584 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 4585 soname_spec='$libname$release$shared_ext$major' 4586 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 4587 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 4588 ;; 4589 *) 4590 shrext_cmds='.sl' 4591 dynamic_linker="$host_os dld.sl" 4592 shlibpath_var=SHLIB_PATH 4593 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 4594 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 4595 soname_spec='$libname$release$shared_ext$major' 4596 ;; 4597 esac 4598 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 4599 postinstall_cmds='chmod 555 $lib' 4600 # or fails outright, so override atomically: 4601 install_override_mode=555 4602 ;; 4603 4604interix[[3-9]]*) 4605 version_type=linux # correct to gnu/linux during the next big refactor 4606 need_lib_prefix=no 4607 need_version=no 4608 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 4609 soname_spec='$libname$release$shared_ext$major' 4610 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 4611 shlibpath_var=LD_LIBRARY_PATH 4612 shlibpath_overrides_runpath=no 4613 hardcode_into_libs=yes 4614 ;; 4615 4616irix5* | irix6* | nonstopux*) 4617 case $host_os in 4618 nonstopux*) version_type=nonstopux ;; 4619 *) 4620 if test yes = "$lt_cv_prog_gnu_ld"; then 4621 version_type=linux # correct to gnu/linux during the next big refactor 4622 else 4623 version_type=irix 4624 fi ;; 4625 esac 4626 need_lib_prefix=no 4627 need_version=no 4628 soname_spec='$libname$release$shared_ext$major' 4629 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 4630 case $host_os in 4631 irix5* | nonstopux*) 4632 libsuff= shlibsuff= 4633 ;; 4634 *) 4635 case $LD in # libtool.m4 will add one of these switches to LD 4636 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 4637 libsuff= shlibsuff= libmagic=32-bit;; 4638 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 4639 libsuff=32 shlibsuff=N32 libmagic=N32;; 4640 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 4641 libsuff=64 shlibsuff=64 libmagic=64-bit;; 4642 *) libsuff= shlibsuff= libmagic=never-match;; 4643 esac 4644 ;; 4645 esac 4646 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 4647 shlibpath_overrides_runpath=no 4648 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 4649 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 4650 hardcode_into_libs=yes 4651 ;; 4652 4653# No shared lib support for Linux oldld, aout, or coff. 4654linux*oldld* | linux*aout* | linux*coff*) 4655 dynamic_linker=no 4656 ;; 4657 4658linux*android*) 4659 version_type=none # Android doesn't support versioned libraries. 4660 need_lib_prefix=no 4661 need_version=no 4662 library_names_spec='$libname$release$shared_ext' 4663 soname_spec='$libname$release$shared_ext' 4664 finish_cmds= 4665 shlibpath_var=LD_LIBRARY_PATH 4666 shlibpath_overrides_runpath=yes 4667 4668 # This implies no fast_install, which is unacceptable. 4669 # Some rework will be needed to allow for fast_install 4670 # before this can be enabled. 4671 hardcode_into_libs=yes 4672 4673 dynamic_linker='Android linker' 4674 # Don't embed -rpath directories since the linker doesn't support them. 4675 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4676 ;; 4677 4678# This must be glibc/ELF. 4679linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 4680 version_type=linux # correct to gnu/linux during the next big refactor 4681 need_lib_prefix=no 4682 need_version=no 4683 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 4684 soname_spec='$libname$release$shared_ext$major' 4685 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 4686 shlibpath_var=LD_LIBRARY_PATH 4687 shlibpath_overrides_runpath=no 4688 4689 # Some binutils ld are patched to set DT_RUNPATH 4690 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], 4691 [lt_cv_shlibpath_overrides_runpath=no 4692 save_LDFLAGS=$LDFLAGS 4693 save_libdir=$libdir 4694 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 4695 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 4696 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 4697 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], 4698 [lt_cv_shlibpath_overrides_runpath=yes])]) 4699 LDFLAGS=$save_LDFLAGS 4700 libdir=$save_libdir 4701 ]) 4702 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 4703 4704 # This implies no fast_install, which is unacceptable. 4705 # Some rework will be needed to allow for fast_install 4706 # before this can be enabled. 4707 hardcode_into_libs=yes 4708 4709 # Ideally, we could use ldconfig to report *all* directores which are 4710 # searched for libraries, however this is still not possible. Aside from not 4711 # being certain /sbin/ldconfig is available, command 4712 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 4713 # even though it is searched at run-time. Try to do the best guess by 4714 # appending ld.so.conf contents (and includes) to the search path. 4715 if test -f /etc/ld.so.conf; then 4716 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' ' '` 4717 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 4718 fi 4719 4720 # We used to test for /lib/ld.so.1 and disable shared libraries on 4721 # powerpc, because MkLinux only supported shared libraries with the 4722 # GNU dynamic linker. Since this was broken with cross compilers, 4723 # most powerpc-linux boxes support dynamic linking these days and 4724 # people can always --disable-shared, the test was removed, and we 4725 # assume the GNU/Linux dynamic linker is in use. 4726 dynamic_linker='GNU/Linux ld.so' 4727 ;; 4728 4729netbsdelf*-gnu) 4730 version_type=linux 4731 need_lib_prefix=no 4732 need_version=no 4733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 4734 soname_spec='${libname}${release}${shared_ext}$major' 4735 shlibpath_var=LD_LIBRARY_PATH 4736 shlibpath_overrides_runpath=no 4737 hardcode_into_libs=yes 4738 dynamic_linker='NetBSD ld.elf_so' 4739 ;; 4740 4741netbsd*) 4742 version_type=sunos 4743 need_lib_prefix=no 4744 need_version=no 4745 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 4746 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 4747 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 4748 dynamic_linker='NetBSD (a.out) ld.so' 4749 else 4750 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 4751 soname_spec='$libname$release$shared_ext$major' 4752 dynamic_linker='NetBSD ld.elf_so' 4753 fi 4754 shlibpath_var=LD_LIBRARY_PATH 4755 shlibpath_overrides_runpath=yes 4756 hardcode_into_libs=yes 4757 ;; 4758 4759newsos6) 4760 version_type=linux # correct to gnu/linux during the next big refactor 4761 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 4762 shlibpath_var=LD_LIBRARY_PATH 4763 shlibpath_overrides_runpath=yes 4764 ;; 4765 4766*nto* | *qnx*) 4767 version_type=qnx 4768 need_lib_prefix=no 4769 need_version=no 4770 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 4771 soname_spec='$libname$release$shared_ext$major' 4772 shlibpath_var=LD_LIBRARY_PATH 4773 shlibpath_overrides_runpath=no 4774 hardcode_into_libs=yes 4775 dynamic_linker='ldqnx.so' 4776 ;; 4777 4778openbsd* | bitrig*) 4779 version_type=sunos 4780 sys_lib_dlsearch_path_spec=/usr/lib 4781 need_lib_prefix=no 4782 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 4783 need_version=no 4784 else 4785 need_version=yes 4786 fi 4787 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 4788 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 4789 shlibpath_var=LD_LIBRARY_PATH 4790 shlibpath_overrides_runpath=yes 4791 ;; 4792 4793os2*) 4794 libname_spec='$name' 4795 version_type=windows 4796 shrext_cmds=.dll 4797 need_version=no 4798 need_lib_prefix=no 4799 # OS/2 can only load a DLL with a base name of 8 characters or less. 4800 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 4801 v=$($ECHO $release$versuffix | tr -d .-); 4802 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 4803 $ECHO $n$v`$shared_ext' 4804 library_names_spec='${libname}_dll.$libext' 4805 dynamic_linker='OS/2 ld.exe' 4806 shlibpath_var=BEGINLIBPATH 4807 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 4808 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 4809 postinstall_cmds='base_file=`basename \$file`~ 4810 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 4811 dldir=$destdir/`dirname \$dlpath`~ 4812 test -d \$dldir || mkdir -p \$dldir~ 4813 $install_prog $dir/$dlname \$dldir/$dlname~ 4814 chmod a+x \$dldir/$dlname~ 4815 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 4816 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 4817 fi' 4818 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 4819 dlpath=$dir/\$dldll~ 4820 $RM \$dlpath' 4821 ;; 4822 4823osf3* | osf4* | osf5*) 4824 version_type=osf 4825 need_lib_prefix=no 4826 need_version=no 4827 soname_spec='$libname$release$shared_ext$major' 4828 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 4829 shlibpath_var=LD_LIBRARY_PATH 4830 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 4831 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 4832 ;; 4833 4834rdos*) 4835 dynamic_linker=no 4836 ;; 4837 4838solaris*) 4839 version_type=linux # correct to gnu/linux during the next big refactor 4840 need_lib_prefix=no 4841 need_version=no 4842 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 4843 soname_spec='$libname$release$shared_ext$major' 4844 shlibpath_var=LD_LIBRARY_PATH 4845 shlibpath_overrides_runpath=yes 4846 hardcode_into_libs=yes 4847 # ldd complains unless libraries are executable 4848 postinstall_cmds='chmod +x $lib' 4849 ;; 4850 4851sunos4*) 4852 version_type=sunos 4853 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 4854 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 4855 shlibpath_var=LD_LIBRARY_PATH 4856 shlibpath_overrides_runpath=yes 4857 if test yes = "$with_gnu_ld"; then 4858 need_lib_prefix=no 4859 fi 4860 need_version=yes 4861 ;; 4862 4863sysv4 | sysv4.3*) 4864 version_type=linux # correct to gnu/linux during the next big refactor 4865 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 4866 soname_spec='$libname$release$shared_ext$major' 4867 shlibpath_var=LD_LIBRARY_PATH 4868 case $host_vendor in 4869 sni) 4870 shlibpath_overrides_runpath=no 4871 need_lib_prefix=no 4872 runpath_var=LD_RUN_PATH 4873 ;; 4874 siemens) 4875 need_lib_prefix=no 4876 ;; 4877 motorola) 4878 need_lib_prefix=no 4879 need_version=no 4880 shlibpath_overrides_runpath=no 4881 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 4882 ;; 4883 esac 4884 ;; 4885 4886sysv4*MP*) 4887 if test -d /usr/nec; then 4888 version_type=linux # correct to gnu/linux during the next big refactor 4889 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 4890 soname_spec='$libname$shared_ext.$major' 4891 shlibpath_var=LD_LIBRARY_PATH 4892 fi 4893 ;; 4894 4895sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4896 version_type=sco 4897 need_lib_prefix=no 4898 need_version=no 4899 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 4900 soname_spec='$libname$release$shared_ext$major' 4901 shlibpath_var=LD_LIBRARY_PATH 4902 shlibpath_overrides_runpath=yes 4903 hardcode_into_libs=yes 4904 if test yes = "$with_gnu_ld"; then 4905 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 4906 else 4907 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 4908 case $host_os in 4909 sco3.2v5*) 4910 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 4911 ;; 4912 esac 4913 fi 4914 sys_lib_dlsearch_path_spec='/usr/lib' 4915 ;; 4916 4917tpf*) 4918 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 4919 version_type=linux # correct to gnu/linux during the next big refactor 4920 need_lib_prefix=no 4921 need_version=no 4922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 4923 shlibpath_var=LD_LIBRARY_PATH 4924 shlibpath_overrides_runpath=no 4925 hardcode_into_libs=yes 4926 ;; 4927 4928uts4*) 4929 version_type=linux # correct to gnu/linux during the next big refactor 4930 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 4931 soname_spec='$libname$release$shared_ext$major' 4932 shlibpath_var=LD_LIBRARY_PATH 4933 ;; 4934 4935*) 4936 dynamic_linker=no 4937 ;; 4938esac 4939AC_MSG_RESULT([$dynamic_linker]) 4940test no = "$dynamic_linker" && can_build_shared=no 4941 4942variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 4943if test yes = "$GCC"; then 4944 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 4945fi 4946 4947if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 4948 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 4949fi 4950 4951if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 4952 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 4953fi 4954 4955# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 4956configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 4957 4958# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 4959func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 4960 4961# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 4962configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 4963 4964_LT_DECL([], [variables_saved_for_relink], [1], 4965 [Variables whose values should be saved in libtool wrapper scripts and 4966 restored at link time]) 4967_LT_DECL([], [need_lib_prefix], [0], 4968 [Do we need the "lib" prefix for modules?]) 4969_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) 4970_LT_DECL([], [version_type], [0], [Library versioning type]) 4971_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) 4972_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) 4973_LT_DECL([], [shlibpath_overrides_runpath], [0], 4974 [Is shlibpath searched before the hard-coded library search path?]) 4975_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) 4976_LT_DECL([], [library_names_spec], [1], 4977 [[List of archive names. First name is the real one, the rest are links. 4978 The last name is the one that the linker finds with -lNAME]]) 4979_LT_DECL([], [soname_spec], [1], 4980 [[The coded name of the library, if different from the real name]]) 4981_LT_DECL([], [install_override_mode], [1], 4982 [Permission mode override for installation of shared libraries]) 4983_LT_DECL([], [postinstall_cmds], [2], 4984 [Command to use after installation of a shared archive]) 4985_LT_DECL([], [postuninstall_cmds], [2], 4986 [Command to use after uninstallation of a shared archive]) 4987_LT_DECL([], [finish_cmds], [2], 4988 [Commands used to finish a libtool library installation in a directory]) 4989_LT_DECL([], [finish_eval], [1], 4990 [[As "finish_cmds", except a single script fragment to be evaled but 4991 not shown]]) 4992_LT_DECL([], [hardcode_into_libs], [0], 4993 [Whether we should hardcode library paths into libraries]) 4994_LT_DECL([], [sys_lib_search_path_spec], [2], 4995 [Compile-time system search path for libraries]) 4996_LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2], 4997 [Detected run-time system search path for libraries]) 4998_LT_DECL([], [configure_time_lt_sys_library_path], [2], 4999 [Explicit LT_SYS_LIBRARY_PATH set during ./configure time]) 5000])# _LT_SYS_DYNAMIC_LINKER 5001 5002 5003# _LT_PATH_TOOL_PREFIX(TOOL) 5004# -------------------------- 5005# find a file program that can recognize shared library 5006AC_DEFUN([_LT_PATH_TOOL_PREFIX], 5007[m4_require([_LT_DECL_EGREP])dnl 5008AC_MSG_CHECKING([for $1]) 5009AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 5010[case $MAGIC_CMD in 5011[[\\/*] | ?:[\\/]*]) 5012 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 5013 ;; 5014*) 5015 lt_save_MAGIC_CMD=$MAGIC_CMD 5016 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5017dnl $ac_dummy forces splitting on constant user-supplied paths. 5018dnl POSIX.2 word splitting is done only on the output of word expansions, 5019dnl not every word. This closes a longstanding sh security hole. 5020 ac_dummy="m4_if([$2], , $PATH, [$2])" 5021 for ac_dir in $ac_dummy; do 5022 IFS=$lt_save_ifs 5023 test -z "$ac_dir" && ac_dir=. 5024 if test -f "$ac_dir/$1"; then 5025 lt_cv_path_MAGIC_CMD=$ac_dir/"$1" 5026 if test -n "$file_magic_test_file"; then 5027 case $deplibs_check_method in 5028 "file_magic "*) 5029 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 5030 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 5031 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5032 $EGREP "$file_magic_regex" > /dev/null; then 5033 : 5034 else 5035 cat <<_LT_EOF 1>&2 5036 5037*** Warning: the command libtool uses to detect shared libraries, 5038*** $file_magic_cmd, produces output that libtool cannot recognize. 5039*** The result is that libtool may fail to recognize shared libraries 5040*** as such. This will affect the creation of libtool libraries that 5041*** depend on shared libraries, but programs linked with such libtool 5042*** libraries will work regardless of this problem. Nevertheless, you 5043*** may want to report the problem to your system manager and/or to 5044*** bug-libtool@gnu.org 5045 5046_LT_EOF 5047 fi ;; 5048 esac 5049 fi 5050 break 5051 fi 5052 done 5053 IFS=$lt_save_ifs 5054 MAGIC_CMD=$lt_save_MAGIC_CMD 5055 ;; 5056esac]) 5057MAGIC_CMD=$lt_cv_path_MAGIC_CMD 5058if test -n "$MAGIC_CMD"; then 5059 AC_MSG_RESULT($MAGIC_CMD) 5060else 5061 AC_MSG_RESULT(no) 5062fi 5063_LT_DECL([], [MAGIC_CMD], [0], 5064 [Used to examine libraries when file_magic_cmd begins with "file"])dnl 5065])# _LT_PATH_TOOL_PREFIX 5066 5067# Old name: 5068AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) 5069dnl aclocal-1.4 backwards compatibility: 5070dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) 5071 5072 5073# _LT_PATH_MAGIC 5074# -------------- 5075# find a file program that can recognize a shared library 5076m4_defun([_LT_PATH_MAGIC], 5077[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 5078if test -z "$lt_cv_path_MAGIC_CMD"; then 5079 if test -n "$ac_tool_prefix"; then 5080 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 5081 else 5082 MAGIC_CMD=: 5083 fi 5084fi 5085])# _LT_PATH_MAGIC 5086 5087 5088# LT_PATH_LD 5089# ---------- 5090# find the pathname to the GNU or non-GNU linker 5091AC_DEFUN([LT_PATH_LD], 5092[AC_REQUIRE([AC_PROG_CC])dnl 5093AC_REQUIRE([AC_CANONICAL_HOST])dnl 5094AC_REQUIRE([AC_CANONICAL_BUILD])dnl 5095m4_require([_LT_DECL_SED])dnl 5096m4_require([_LT_DECL_EGREP])dnl 5097m4_require([_LT_PROG_ECHO_BACKSLASH])dnl 5098 5099AC_ARG_WITH([gnu-ld], 5100 [AS_HELP_STRING([--with-gnu-ld], 5101 [assume the C compiler uses GNU ld @<:@default=no@:>@])], 5102 [test no = "$withval" || with_gnu_ld=yes], 5103 [with_gnu_ld=no])dnl 5104 5105ac_prog=ld 5106if test yes = "$GCC"; then 5107 # Check if gcc -print-prog-name=ld gives a path. 5108 AC_MSG_CHECKING([for ld used by $CC]) 5109 case $host in 5110 *-*-mingw*) 5111 # gcc leaves a trailing carriage return, which upsets mingw 5112 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5113 *) 5114 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5115 esac 5116 case $ac_prog in 5117 # Accept absolute paths. 5118 [[\\/]]* | ?:[[\\/]]*) 5119 re_direlt='/[[^/]][[^/]]*/\.\./' 5120 # Canonicalize the pathname of ld 5121 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5122 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5123 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5124 done 5125 test -z "$LD" && LD=$ac_prog 5126 ;; 5127 "") 5128 # If it fails, then pretend we aren't using GCC. 5129 ac_prog=ld 5130 ;; 5131 *) 5132 # If it is relative, then search for the first ld in PATH. 5133 with_gnu_ld=unknown 5134 ;; 5135 esac 5136elif test yes = "$with_gnu_ld"; then 5137 AC_MSG_CHECKING([for GNU ld]) 5138else 5139 AC_MSG_CHECKING([for non-GNU ld]) 5140fi 5141AC_CACHE_VAL(lt_cv_path_LD, 5142[if test -z "$LD"; then 5143 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5144 for ac_dir in $PATH; do 5145 IFS=$lt_save_ifs 5146 test -z "$ac_dir" && ac_dir=. 5147 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5148 lt_cv_path_LD=$ac_dir/$ac_prog 5149 # Check to see if the program is GNU ld. I'd rather use --version, 5150 # but apparently some variants of GNU ld only accept -v. 5151 # Break only if it was the GNU/non-GNU ld that we prefer. 5152 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5153 *GNU* | *'with BFD'*) 5154 test no != "$with_gnu_ld" && break 5155 ;; 5156 *) 5157 test yes != "$with_gnu_ld" && break 5158 ;; 5159 esac 5160 fi 5161 done 5162 IFS=$lt_save_ifs 5163else 5164 lt_cv_path_LD=$LD # Let the user override the test with a path. 5165fi]) 5166LD=$lt_cv_path_LD 5167if test -n "$LD"; then 5168 AC_MSG_RESULT($LD) 5169else 5170 AC_MSG_RESULT(no) 5171fi 5172test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 5173_LT_PATH_LD_GNU 5174AC_SUBST([LD]) 5175 5176_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) 5177])# LT_PATH_LD 5178 5179# Old names: 5180AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) 5181AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) 5182dnl aclocal-1.4 backwards compatibility: 5183dnl AC_DEFUN([AM_PROG_LD], []) 5184dnl AC_DEFUN([AC_PROG_LD], []) 5185 5186 5187# _LT_PATH_LD_GNU 5188#- -------------- 5189m4_defun([_LT_PATH_LD_GNU], 5190[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 5191[# I'd rather use --version here, but apparently some GNU lds only accept -v. 5192case `$LD -v 2>&1 </dev/null` in 5193*GNU* | *'with BFD'*) 5194 lt_cv_prog_gnu_ld=yes 5195 ;; 5196*) 5197 lt_cv_prog_gnu_ld=no 5198 ;; 5199esac]) 5200with_gnu_ld=$lt_cv_prog_gnu_ld 5201])# _LT_PATH_LD_GNU 5202 5203 5204# _LT_CMD_RELOAD 5205# -------------- 5206# find reload flag for linker 5207# -- PORTME Some linkers may need a different reload flag. 5208m4_defun([_LT_CMD_RELOAD], 5209[AC_CACHE_CHECK([for $LD option to reload object files], 5210 lt_cv_ld_reload_flag, 5211 [lt_cv_ld_reload_flag='-r']) 5212reload_flag=$lt_cv_ld_reload_flag 5213case $reload_flag in 5214"" | " "*) ;; 5215*) reload_flag=" $reload_flag" ;; 5216esac 5217reload_cmds='$LD$reload_flag -o $output$reload_objs' 5218case $host_os in 5219 cygwin* | mingw* | pw32* | cegcc*) 5220 if test yes != "$GCC"; then 5221 reload_cmds=false 5222 fi 5223 ;; 5224 darwin*) 5225 if test yes = "$GCC"; then 5226 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5227 else 5228 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5229 fi 5230 ;; 5231esac 5232_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl 5233_LT_TAGDECL([], [reload_cmds], [2])dnl 5234])# _LT_CMD_RELOAD 5235 5236 5237# _LT_PATH_DD 5238# ----------- 5239# find a working dd 5240m4_defun([_LT_PATH_DD], 5241[AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD], 5242[printf 0123456789abcdef0123456789abcdef >conftest.i 5243cat conftest.i conftest.i >conftest2.i 5244: ${lt_DD:=$DD} 5245AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd], 5246[if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 5247 cmp -s conftest.i conftest.out \ 5248 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 5249fi]) 5250rm -f conftest.i conftest2.i conftest.out]) 5251])# _LT_PATH_DD 5252 5253 5254# _LT_CMD_TRUNCATE 5255# ---------------- 5256# find command to truncate a binary pipe 5257m4_defun([_LT_CMD_TRUNCATE], 5258[m4_require([_LT_PATH_DD]) 5259AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin], 5260[printf 0123456789abcdef0123456789abcdef >conftest.i 5261cat conftest.i conftest.i >conftest2.i 5262lt_cv_truncate_bin= 5263if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 5264 cmp -s conftest.i conftest.out \ 5265 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 5266fi 5267rm -f conftest.i conftest2.i conftest.out 5268test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"]) 5269_LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1], 5270 [Command to truncate a binary pipe]) 5271])# _LT_CMD_TRUNCATE 5272 5273 5274# _LT_CHECK_MAGIC_METHOD 5275# ---------------------- 5276# how to check for library dependencies 5277# -- PORTME fill in with the dynamic library characteristics 5278m4_defun([_LT_CHECK_MAGIC_METHOD], 5279[m4_require([_LT_DECL_EGREP]) 5280m4_require([_LT_DECL_OBJDUMP]) 5281AC_CACHE_CHECK([how to recognize dependent libraries], 5282lt_cv_deplibs_check_method, 5283[lt_cv_file_magic_cmd='$MAGIC_CMD' 5284lt_cv_file_magic_test_file= 5285lt_cv_deplibs_check_method='unknown' 5286# Need to set the preceding variable on all platforms that support 5287# interlibrary dependencies. 5288# 'none' -- dependencies not supported. 5289# 'unknown' -- same as none, but documents that we really don't know. 5290# 'pass_all' -- all dependencies passed with no checks. 5291# 'test_compile' -- check by making test program. 5292# 'file_magic [[regex]]' -- check by looking for files in library path 5293# that responds to the $file_magic_cmd with a given extended regex. 5294# If you have 'file' or equivalent on your system and you're not sure 5295# whether 'pass_all' will *always* work, you probably want this one. 5296 5297case $host_os in 5298aix[[4-9]]*) 5299 lt_cv_deplibs_check_method=pass_all 5300 ;; 5301 5302beos*) 5303 lt_cv_deplibs_check_method=pass_all 5304 ;; 5305 5306bsdi[[45]]*) 5307 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 5308 lt_cv_file_magic_cmd='/usr/bin/file -L' 5309 lt_cv_file_magic_test_file=/shlib/libc.so 5310 ;; 5311 5312cygwin*) 5313 # func_win32_libid is a shell function defined in ltmain.sh 5314 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5315 lt_cv_file_magic_cmd='func_win32_libid' 5316 ;; 5317 5318mingw* | pw32*) 5319 # Base MSYS/MinGW do not provide the 'file' command needed by 5320 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5321 # unless we find 'file', for example because we are cross-compiling. 5322 if ( file / ) >/dev/null 2>&1; then 5323 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5324 lt_cv_file_magic_cmd='func_win32_libid' 5325 else 5326 # Keep this pattern in sync with the one in func_win32_libid. 5327 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5328 lt_cv_file_magic_cmd='$OBJDUMP -f' 5329 fi 5330 ;; 5331 5332cegcc*) 5333 # use the weaker test based on 'objdump'. See mingw*. 5334 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5335 lt_cv_file_magic_cmd='$OBJDUMP -f' 5336 ;; 5337 5338darwin* | rhapsody*) 5339 lt_cv_deplibs_check_method=pass_all 5340 ;; 5341 5342freebsd* | dragonfly*) 5343 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5344 case $host_cpu in 5345 i*86 ) 5346 # Not sure whether the presence of OpenBSD here was a mistake. 5347 # Let's accept both of them until this is cleared up. 5348 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 5349 lt_cv_file_magic_cmd=/usr/bin/file 5350 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5351 ;; 5352 esac 5353 else 5354 lt_cv_deplibs_check_method=pass_all 5355 fi 5356 ;; 5357 5358haiku*) 5359 lt_cv_deplibs_check_method=pass_all 5360 ;; 5361 5362hpux10.20* | hpux11*) 5363 lt_cv_file_magic_cmd=/usr/bin/file 5364 case $host_cpu in 5365 ia64*) 5366 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 5367 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5368 ;; 5369 hppa*64*) 5370 [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]'] 5371 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5372 ;; 5373 *) 5374 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' 5375 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5376 ;; 5377 esac 5378 ;; 5379 5380interix[[3-9]]*) 5381 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5382 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 5383 ;; 5384 5385irix5* | irix6* | nonstopux*) 5386 case $LD in 5387 *-32|*"-32 ") libmagic=32-bit;; 5388 *-n32|*"-n32 ") libmagic=N32;; 5389 *-64|*"-64 ") libmagic=64-bit;; 5390 *) libmagic=never-match;; 5391 esac 5392 lt_cv_deplibs_check_method=pass_all 5393 ;; 5394 5395# This must be glibc/ELF. 5396linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5397 lt_cv_deplibs_check_method=pass_all 5398 ;; 5399 5400netbsd* | netbsdelf*-gnu) 5401 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5402 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 5403 else 5404 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 5405 fi 5406 ;; 5407 5408newos6*) 5409 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 5410 lt_cv_file_magic_cmd=/usr/bin/file 5411 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5412 ;; 5413 5414*nto* | *qnx*) 5415 lt_cv_deplibs_check_method=pass_all 5416 ;; 5417 5418openbsd* | bitrig*) 5419 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5420 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 5421 else 5422 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 5423 fi 5424 ;; 5425 5426osf3* | osf4* | osf5*) 5427 lt_cv_deplibs_check_method=pass_all 5428 ;; 5429 5430rdos*) 5431 lt_cv_deplibs_check_method=pass_all 5432 ;; 5433 5434solaris*) 5435 lt_cv_deplibs_check_method=pass_all 5436 ;; 5437 5438sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5439 lt_cv_deplibs_check_method=pass_all 5440 ;; 5441 5442sysv4 | sysv4.3*) 5443 case $host_vendor in 5444 motorola) 5445 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]]' 5446 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5447 ;; 5448 ncr) 5449 lt_cv_deplibs_check_method=pass_all 5450 ;; 5451 sequent) 5452 lt_cv_file_magic_cmd='/bin/file' 5453 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 5454 ;; 5455 sni) 5456 lt_cv_file_magic_cmd='/bin/file' 5457 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 5458 lt_cv_file_magic_test_file=/lib/libc.so 5459 ;; 5460 siemens) 5461 lt_cv_deplibs_check_method=pass_all 5462 ;; 5463 pc) 5464 lt_cv_deplibs_check_method=pass_all 5465 ;; 5466 esac 5467 ;; 5468 5469tpf*) 5470 lt_cv_deplibs_check_method=pass_all 5471 ;; 5472os2*) 5473 lt_cv_deplibs_check_method=pass_all 5474 ;; 5475esac 5476]) 5477 5478file_magic_glob= 5479want_nocaseglob=no 5480if test "$build" = "$host"; then 5481 case $host_os in 5482 mingw* | pw32*) 5483 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5484 want_nocaseglob=yes 5485 else 5486 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` 5487 fi 5488 ;; 5489 esac 5490fi 5491 5492file_magic_cmd=$lt_cv_file_magic_cmd 5493deplibs_check_method=$lt_cv_deplibs_check_method 5494test -z "$deplibs_check_method" && deplibs_check_method=unknown 5495 5496_LT_DECL([], [deplibs_check_method], [1], 5497 [Method to check whether dependent libraries are shared objects]) 5498_LT_DECL([], [file_magic_cmd], [1], 5499 [Command to use when deplibs_check_method = "file_magic"]) 5500_LT_DECL([], [file_magic_glob], [1], 5501 [How to find potential files when deplibs_check_method = "file_magic"]) 5502_LT_DECL([], [want_nocaseglob], [1], 5503 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) 5504])# _LT_CHECK_MAGIC_METHOD 5505 5506 5507# LT_PATH_NM 5508# ---------- 5509# find the pathname to a BSD- or MS-compatible name lister 5510AC_DEFUN([LT_PATH_NM], 5511[AC_REQUIRE([AC_PROG_CC])dnl 5512AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, 5513[if test -n "$NM"; then 5514 # Let the user override the test. 5515 lt_cv_path_NM=$NM 5516else 5517 lt_nm_to_check=${ac_tool_prefix}nm 5518 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5519 lt_nm_to_check="$lt_nm_to_check nm" 5520 fi 5521 for lt_tmp_nm in $lt_nm_to_check; do 5522 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5523 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5524 IFS=$lt_save_ifs 5525 test -z "$ac_dir" && ac_dir=. 5526 tmp_nm=$ac_dir/$lt_tmp_nm 5527 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5528 # Check to see if the nm accepts a BSD-compat flag. 5529 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5530 # nm: unknown option "B" ignored 5531 # Tru64's nm complains that /dev/null is an invalid object file 5532 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5533 case $build_os in 5534 mingw*) lt_bad_file=conftest.nm/nofile ;; 5535 *) lt_bad_file=/dev/null ;; 5536 esac 5537 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5538 *$lt_bad_file* | *'Invalid file or object type'*) 5539 lt_cv_path_NM="$tmp_nm -B" 5540 break 2 5541 ;; 5542 *) 5543 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5544 */dev/null*) 5545 lt_cv_path_NM="$tmp_nm -p" 5546 break 2 5547 ;; 5548 *) 5549 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5550 continue # so that we can try to find one that supports BSD flags 5551 ;; 5552 esac 5553 ;; 5554 esac 5555 fi 5556 done 5557 IFS=$lt_save_ifs 5558 done 5559 : ${lt_cv_path_NM=no} 5560fi]) 5561if test no != "$lt_cv_path_NM"; then 5562 NM=$lt_cv_path_NM 5563else 5564 # Didn't find any BSD compatible name lister, look for dumpbin. 5565 if test -n "$DUMPBIN"; then : 5566 # Let the user override the test. 5567 else 5568 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) 5569 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5570 *COFF*) 5571 DUMPBIN="$DUMPBIN -symbols -headers" 5572 ;; 5573 *) 5574 DUMPBIN=: 5575 ;; 5576 esac 5577 fi 5578 AC_SUBST([DUMPBIN]) 5579 if test : != "$DUMPBIN"; then 5580 NM=$DUMPBIN 5581 fi 5582fi 5583test -z "$NM" && NM=nm 5584AC_SUBST([NM]) 5585_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl 5586 5587AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], 5588 [lt_cv_nm_interface="BSD nm" 5589 echo "int some_variable = 0;" > conftest.$ac_ext 5590 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) 5591 (eval "$ac_compile" 2>conftest.err) 5592 cat conftest.err >&AS_MESSAGE_LOG_FD 5593 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) 5594 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5595 cat conftest.err >&AS_MESSAGE_LOG_FD 5596 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) 5597 cat conftest.out >&AS_MESSAGE_LOG_FD 5598 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5599 lt_cv_nm_interface="MS dumpbin" 5600 fi 5601 rm -f conftest*]) 5602])# LT_PATH_NM 5603 5604# Old names: 5605AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) 5606AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) 5607dnl aclocal-1.4 backwards compatibility: 5608dnl AC_DEFUN([AM_PROG_NM], []) 5609dnl AC_DEFUN([AC_PROG_NM], []) 5610 5611# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 5612# -------------------------------- 5613# how to determine the name of the shared library 5614# associated with a specific link library. 5615# -- PORTME fill in with the dynamic library characteristics 5616m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], 5617[m4_require([_LT_DECL_EGREP]) 5618m4_require([_LT_DECL_OBJDUMP]) 5619m4_require([_LT_DECL_DLLTOOL]) 5620AC_CACHE_CHECK([how to associate runtime and link libraries], 5621lt_cv_sharedlib_from_linklib_cmd, 5622[lt_cv_sharedlib_from_linklib_cmd='unknown' 5623 5624case $host_os in 5625cygwin* | mingw* | pw32* | cegcc*) 5626 # two different shell functions defined in ltmain.sh; 5627 # decide which one to use based on capabilities of $DLLTOOL 5628 case `$DLLTOOL --help 2>&1` in 5629 *--identify-strict*) 5630 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5631 ;; 5632 *) 5633 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5634 ;; 5635 esac 5636 ;; 5637*) 5638 # fallback: assume linklib IS sharedlib 5639 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5640 ;; 5641esac 5642]) 5643sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5644test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5645 5646_LT_DECL([], [sharedlib_from_linklib_cmd], [1], 5647 [Command to associate shared and link libraries]) 5648])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 5649 5650 5651# _LT_PATH_MANIFEST_TOOL 5652# ---------------------- 5653# locate the manifest tool 5654m4_defun([_LT_PATH_MANIFEST_TOOL], 5655[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) 5656test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 5657AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], 5658 [lt_cv_path_mainfest_tool=no 5659 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD 5660 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 5661 cat conftest.err >&AS_MESSAGE_LOG_FD 5662 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 5663 lt_cv_path_mainfest_tool=yes 5664 fi 5665 rm -f conftest*]) 5666if test yes != "$lt_cv_path_mainfest_tool"; then 5667 MANIFEST_TOOL=: 5668fi 5669_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl 5670])# _LT_PATH_MANIFEST_TOOL 5671 5672 5673# _LT_DLL_DEF_P([FILE]) 5674# --------------------- 5675# True iff FILE is a Windows DLL '.def' file. 5676# Keep in sync with func_dll_def_p in the libtool script 5677AC_DEFUN([_LT_DLL_DEF_P], 5678[dnl 5679 test DEF = "`$SED -n dnl 5680 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace 5681 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments 5682 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl 5683 -e q dnl Only consider the first "real" line 5684 $1`" dnl 5685])# _LT_DLL_DEF_P 5686 5687 5688# LT_LIB_M 5689# -------- 5690# check for math library 5691AC_DEFUN([LT_LIB_M], 5692[AC_REQUIRE([AC_CANONICAL_HOST])dnl 5693LIBM= 5694case $host in 5695*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 5696 # These system don't have libm, or don't need it 5697 ;; 5698*-ncr-sysv4.3*) 5699 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw) 5700 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 5701 ;; 5702*) 5703 AC_CHECK_LIB(m, cos, LIBM=-lm) 5704 ;; 5705esac 5706AC_SUBST([LIBM]) 5707])# LT_LIB_M 5708 5709# Old name: 5710AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) 5711dnl aclocal-1.4 backwards compatibility: 5712dnl AC_DEFUN([AC_CHECK_LIBM], []) 5713 5714 5715# _LT_COMPILER_NO_RTTI([TAGNAME]) 5716# ------------------------------- 5717m4_defun([_LT_COMPILER_NO_RTTI], 5718[m4_require([_LT_TAG_COMPILER])dnl 5719 5720_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 5721 5722if test yes = "$GCC"; then 5723 case $cc_basename in 5724 nvcc*) 5725 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; 5726 *) 5727 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; 5728 esac 5729 5730 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 5731 lt_cv_prog_compiler_rtti_exceptions, 5732 [-fno-rtti -fno-exceptions], [], 5733 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 5734fi 5735_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], 5736 [Compiler flag to turn off builtin functions]) 5737])# _LT_COMPILER_NO_RTTI 5738 5739 5740# _LT_CMD_GLOBAL_SYMBOLS 5741# ---------------------- 5742m4_defun([_LT_CMD_GLOBAL_SYMBOLS], 5743[AC_REQUIRE([AC_CANONICAL_HOST])dnl 5744AC_REQUIRE([AC_PROG_CC])dnl 5745AC_REQUIRE([AC_PROG_AWK])dnl 5746AC_REQUIRE([LT_PATH_NM])dnl 5747AC_REQUIRE([LT_PATH_LD])dnl 5748m4_require([_LT_DECL_SED])dnl 5749m4_require([_LT_DECL_EGREP])dnl 5750m4_require([_LT_TAG_COMPILER])dnl 5751 5752# Check for command to grab the raw symbol name followed by C symbol from nm. 5753AC_MSG_CHECKING([command to parse $NM output from $compiler object]) 5754AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 5755[ 5756# These are sane defaults that work on at least a few old systems. 5757# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5758 5759# Character class describing NM global symbol codes. 5760symcode='[[BCDEGRST]]' 5761 5762# Regexp to match symbols that can be accessed directly from C. 5763sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 5764 5765# Define system-specific variables. 5766case $host_os in 5767aix*) 5768 symcode='[[BCDT]]' 5769 ;; 5770cygwin* | mingw* | pw32* | cegcc*) 5771 symcode='[[ABCDGISTW]]' 5772 ;; 5773hpux*) 5774 if test ia64 = "$host_cpu"; then 5775 symcode='[[ABCDEGRST]]' 5776 fi 5777 ;; 5778irix* | nonstopux*) 5779 symcode='[[BCDEGRST]]' 5780 ;; 5781osf*) 5782 symcode='[[BCDEGQRST]]' 5783 ;; 5784solaris*) 5785 symcode='[[BDRT]]' 5786 ;; 5787sco3.2v5*) 5788 symcode='[[DT]]' 5789 ;; 5790sysv4.2uw2*) 5791 symcode='[[DT]]' 5792 ;; 5793sysv5* | sco5v6* | unixware* | OpenUNIX*) 5794 symcode='[[ABDT]]' 5795 ;; 5796sysv4) 5797 symcode='[[DFNSTU]]' 5798 ;; 5799esac 5800 5801# If we're using GNU nm, then use its standard symbol codes. 5802case `$NM -V 2>&1` in 5803*GNU* | *'with BFD'*) 5804 symcode='[[ABCDGIRSTW]]' ;; 5805esac 5806 5807if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5808 # Gets list of data symbols to import. 5809 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 5810 # Adjust the below global symbol transforms to fixup imported variables. 5811 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 5812 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 5813 lt_c_name_lib_hook="\ 5814 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 5815 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 5816else 5817 # Disable hooks by default. 5818 lt_cv_sys_global_symbol_to_import= 5819 lt_cdecl_hook= 5820 lt_c_name_hook= 5821 lt_c_name_lib_hook= 5822fi 5823 5824# Transform an extracted symbol line into a proper C declaration. 5825# Some systems (esp. on ia64) link data and code symbols differently, 5826# so use this general approach. 5827lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 5828$lt_cdecl_hook\ 5829" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 5830" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 5831 5832# Transform an extracted symbol line into symbol name and symbol address 5833lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 5834$lt_c_name_hook\ 5835" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 5836" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 5837 5838# Transform an extracted symbol line into symbol name with lib prefix and 5839# symbol address. 5840lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 5841$lt_c_name_lib_hook\ 5842" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 5843" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 5844" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 5845 5846# Handle CRLF in mingw tool chain 5847opt_cr= 5848case $build_os in 5849mingw*) 5850 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5851 ;; 5852esac 5853 5854# Try without a prefix underscore, then with it. 5855for ac_symprfx in "" "_"; do 5856 5857 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5858 symxfrm="\\1 $ac_symprfx\\2 \\2" 5859 5860 # Write the raw and C identifiers. 5861 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5862 # Fake it for dumpbin and say T for any non-static function, 5863 # D for any global variable and I for any imported variable. 5864 # Also find C++ and __fastcall symbols from MSVC++, 5865 # which start with @ or ?. 5866 lt_cv_sys_global_symbol_pipe="$AWK ['"\ 5867" {last_section=section; section=\$ 3};"\ 5868" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 5869" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5870" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 5871" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 5872" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 5873" \$ 0!~/External *\|/{next};"\ 5874" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5875" {if(hide[section]) next};"\ 5876" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 5877" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 5878" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 5879" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 5880" ' prfx=^$ac_symprfx]" 5881 else 5882 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5883 fi 5884 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5885 5886 # Check to see that the pipe works correctly. 5887 pipe_works=no 5888 5889 rm -f conftest* 5890 cat > conftest.$ac_ext <<_LT_EOF 5891#ifdef __cplusplus 5892extern "C" { 5893#endif 5894char nm_test_var; 5895void nm_test_func(void); 5896void nm_test_func(void){} 5897#ifdef __cplusplus 5898} 5899#endif 5900int main(){nm_test_var='a';nm_test_func();return(0);} 5901_LT_EOF 5902 5903 if AC_TRY_EVAL(ac_compile); then 5904 # Now try to grab the symbols. 5905 nlist=conftest.nm 5906 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&AS_MESSAGE_LOG_FD 5907 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&AS_MESSAGE_LOG_FD && test -s "$nlist"; then 5908 # Try sorting and uniquifying the output. 5909 if sort "$nlist" | uniq > "$nlist"T; then 5910 mv -f "$nlist"T "$nlist" 5911 else 5912 rm -f "$nlist"T 5913 fi 5914 5915 # Make sure that we snagged all the symbols we need. 5916 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5917 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5918 cat <<_LT_EOF > conftest.$ac_ext 5919/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 5920#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 5921/* DATA imports from DLLs on WIN32 can't be const, because runtime 5922 relocations are performed -- see ld's documentation on pseudo-relocs. */ 5923# define LT@&t@_DLSYM_CONST 5924#elif defined __osf__ 5925/* This system does not cope well with relocations in const data. */ 5926# define LT@&t@_DLSYM_CONST 5927#else 5928# define LT@&t@_DLSYM_CONST const 5929#endif 5930 5931#ifdef __cplusplus 5932extern "C" { 5933#endif 5934 5935_LT_EOF 5936 # Now generate the symbol file. 5937 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5938 5939 cat <<_LT_EOF >> conftest.$ac_ext 5940 5941/* The mapping between symbol names and symbols. */ 5942LT@&t@_DLSYM_CONST struct { 5943 const char *name; 5944 void *address; 5945} 5946lt__PROGRAM__LTX_preloaded_symbols[[]] = 5947{ 5948 { "@PROGRAM@", (void *) 0 }, 5949_LT_EOF 5950 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5951 cat <<\_LT_EOF >> conftest.$ac_ext 5952 {0, (void *) 0} 5953}; 5954 5955/* This works around a problem in FreeBSD linker */ 5956#ifdef FREEBSD_WORKAROUND 5957static const void *lt_preloaded_setup() { 5958 return lt__PROGRAM__LTX_preloaded_symbols; 5959} 5960#endif 5961 5962#ifdef __cplusplus 5963} 5964#endif 5965_LT_EOF 5966 # Now try linking the two files. 5967 mv conftest.$ac_objext conftstm.$ac_objext 5968 lt_globsym_save_LIBS=$LIBS 5969 lt_globsym_save_CFLAGS=$CFLAGS 5970 LIBS=conftstm.$ac_objext 5971 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 5972 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then 5973 pipe_works=yes 5974 fi 5975 LIBS=$lt_globsym_save_LIBS 5976 CFLAGS=$lt_globsym_save_CFLAGS 5977 else 5978 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 5979 fi 5980 else 5981 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 5982 fi 5983 else 5984 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 5985 fi 5986 else 5987 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 5988 cat conftest.$ac_ext >&5 5989 fi 5990 rm -rf conftest* conftst* 5991 5992 # Do not use the global_symbol_pipe unless it works. 5993 if test yes = "$pipe_works"; then 5994 break 5995 else 5996 lt_cv_sys_global_symbol_pipe= 5997 fi 5998done 5999]) 6000if test -z "$lt_cv_sys_global_symbol_pipe"; then 6001 lt_cv_sys_global_symbol_to_cdecl= 6002fi 6003if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6004 AC_MSG_RESULT(failed) 6005else 6006 AC_MSG_RESULT(ok) 6007fi 6008 6009# Response file support. 6010if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6011 nm_file_list_spec='@' 6012elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then 6013 nm_file_list_spec='@' 6014fi 6015 6016_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], 6017 [Take the output of nm and produce a listing of raw symbols and C names]) 6018_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 6019 [Transform the output of nm in a proper C declaration]) 6020_LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1], 6021 [Transform the output of nm into a list of symbols to manually relocate]) 6022_LT_DECL([global_symbol_to_c_name_address], 6023 [lt_cv_sys_global_symbol_to_c_name_address], [1], 6024 [Transform the output of nm in a C name address pair]) 6025_LT_DECL([global_symbol_to_c_name_address_lib_prefix], 6026 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 6027 [Transform the output of nm in a C name address pair when lib prefix is needed]) 6028_LT_DECL([nm_interface], [lt_cv_nm_interface], [1], 6029 [The name lister interface]) 6030_LT_DECL([], [nm_file_list_spec], [1], 6031 [Specify filename containing input files for $NM]) 6032]) # _LT_CMD_GLOBAL_SYMBOLS 6033 6034 6035# _LT_COMPILER_PIC([TAGNAME]) 6036# --------------------------- 6037m4_defun([_LT_COMPILER_PIC], 6038[m4_require([_LT_TAG_COMPILER])dnl 6039_LT_TAGVAR(lt_prog_compiler_wl, $1)= 6040_LT_TAGVAR(lt_prog_compiler_pic, $1)= 6041_LT_TAGVAR(lt_prog_compiler_static, $1)= 6042 6043m4_if([$1], [CXX], [ 6044 # C++ specific cases for pic, static, wl, etc. 6045 if test yes = "$GXX"; then 6046 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6047 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6048 6049 case $host_os in 6050 aix*) 6051 # All AIX code is PIC. 6052 if test ia64 = "$host_cpu"; then 6053 # AIX 5 now supports IA64 processor 6054 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6055 fi 6056 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6057 ;; 6058 6059 amigaos*) 6060 case $host_cpu in 6061 powerpc) 6062 # see comment about AmigaOS4 .so support 6063 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6064 ;; 6065 m68k) 6066 # FIXME: we need at least 68020 code to build shared libraries, but 6067 # adding the '-m68020' flag to GCC prevents building anything better, 6068 # like '-m68040'. 6069 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 6070 ;; 6071 esac 6072 ;; 6073 6074 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6075 # PIC is the default for these OSes. 6076 ;; 6077 mingw* | cygwin* | os2* | pw32* | cegcc*) 6078 # This hack is so that the source file can tell whether it is being 6079 # built for inclusion in a dll (and should export symbols for example). 6080 # Although the cygwin gcc ignores -fPIC, still need this for old-style 6081 # (--disable-auto-import) libraries 6082 m4_if([$1], [GCJ], [], 6083 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 6084 case $host_os in 6085 os2*) 6086 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 6087 ;; 6088 esac 6089 ;; 6090 darwin* | rhapsody*) 6091 # PIC is the default on this platform 6092 # Common symbols not allowed in MH_DYLIB files 6093 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 6094 ;; 6095 *djgpp*) 6096 # DJGPP does not support shared libraries at all 6097 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 6098 ;; 6099 haiku*) 6100 # PIC is the default for Haiku. 6101 # The "-static" flag exists, but is broken. 6102 _LT_TAGVAR(lt_prog_compiler_static, $1)= 6103 ;; 6104 interix[[3-9]]*) 6105 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6106 # Instead, we relocate shared libraries at runtime. 6107 ;; 6108 sysv4*MP*) 6109 if test -d /usr/nec; then 6110 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 6111 fi 6112 ;; 6113 hpux*) 6114 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 6115 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 6116 # sets the default TLS model and affects inlining. 6117 case $host_cpu in 6118 hppa*64*) 6119 ;; 6120 *) 6121 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6122 ;; 6123 esac 6124 ;; 6125 *qnx* | *nto*) 6126 # QNX uses GNU C++, but need to define -shared option too, otherwise 6127 # it will coredump. 6128 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 6129 ;; 6130 *) 6131 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6132 ;; 6133 esac 6134 else 6135 case $host_os in 6136 aix[[4-9]]*) 6137 # All AIX code is PIC. 6138 if test ia64 = "$host_cpu"; then 6139 # AIX 5 now supports IA64 processor 6140 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6141 else 6142 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 6143 fi 6144 ;; 6145 chorus*) 6146 case $cc_basename in 6147 cxch68*) 6148 # Green Hills C++ Compiler 6149 # _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" 6150 ;; 6151 esac 6152 ;; 6153 mingw* | cygwin* | os2* | pw32* | cegcc*) 6154 # This hack is so that the source file can tell whether it is being 6155 # built for inclusion in a dll (and should export symbols for example). 6156 m4_if([$1], [GCJ], [], 6157 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 6158 ;; 6159 dgux*) 6160 case $cc_basename in 6161 ec++*) 6162 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6163 ;; 6164 ghcx*) 6165 # Green Hills C++ Compiler 6166 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6167 ;; 6168 *) 6169 ;; 6170 esac 6171 ;; 6172 freebsd* | dragonfly*) 6173 # FreeBSD uses GNU C++ 6174 ;; 6175 hpux9* | hpux10* | hpux11*) 6176 case $cc_basename in 6177 CC*) 6178 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6179 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 6180 if test ia64 != "$host_cpu"; then 6181 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 6182 fi 6183 ;; 6184 aCC*) 6185 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6186 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 6187 case $host_cpu in 6188 hppa*64*|ia64*) 6189 # +Z the default 6190 ;; 6191 *) 6192 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 6193 ;; 6194 esac 6195 ;; 6196 *) 6197 ;; 6198 esac 6199 ;; 6200 interix*) 6201 # This is c89, which is MS Visual C++ (no shared libs) 6202 # Anyone wants to do a port? 6203 ;; 6204 irix5* | irix6* | nonstopux*) 6205 case $cc_basename in 6206 CC*) 6207 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6208 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6209 # CC pic flag -KPIC is the default. 6210 ;; 6211 *) 6212 ;; 6213 esac 6214 ;; 6215 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6216 case $cc_basename in 6217 KCC*) 6218 # KAI C++ Compiler 6219 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 6220 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6221 ;; 6222 ecpc* ) 6223 # old Intel C++ for x86_64, which still supported -KPIC. 6224 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6225 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6226 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6227 ;; 6228 icpc* ) 6229 # Intel C++, used to be incompatible with GCC. 6230 # ICC 10 doesn't accept -KPIC any more. 6231 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6232 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6233 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6234 ;; 6235 pgCC* | pgcpp*) 6236 # Portland Group C++ compiler 6237 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6238 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 6239 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6240 ;; 6241 cxx*) 6242 # Compaq C++ 6243 # Make sure the PIC flag is empty. It appears that all Alpha 6244 # Linux and Compaq Tru64 Unix objects are PIC. 6245 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 6246 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6247 ;; 6248 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) 6249 # IBM XL 8.0, 9.0 on PPC and BlueGene 6250 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6251 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 6252 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 6253 ;; 6254 *) 6255 case `$CC -V 2>&1 | sed 5q` in 6256 *Sun\ C*) 6257 # Sun C++ 5.9 6258 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6259 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6260 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 6261 ;; 6262 esac 6263 ;; 6264 esac 6265 ;; 6266 lynxos*) 6267 ;; 6268 m88k*) 6269 ;; 6270 mvs*) 6271 case $cc_basename in 6272 cxx*) 6273 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 6274 ;; 6275 *) 6276 ;; 6277 esac 6278 ;; 6279 netbsd* | netbsdelf*-gnu) 6280 ;; 6281 *qnx* | *nto*) 6282 # QNX uses GNU C++, but need to define -shared option too, otherwise 6283 # it will coredump. 6284 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 6285 ;; 6286 osf3* | osf4* | osf5*) 6287 case $cc_basename in 6288 KCC*) 6289 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 6290 ;; 6291 RCC*) 6292 # Rational C++ 2.4.1 6293 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6294 ;; 6295 cxx*) 6296 # Digital/Compaq C++ 6297 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6298 # Make sure the PIC flag is empty. It appears that all Alpha 6299 # Linux and Compaq Tru64 Unix objects are PIC. 6300 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 6301 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6302 ;; 6303 *) 6304 ;; 6305 esac 6306 ;; 6307 psos*) 6308 ;; 6309 solaris*) 6310 case $cc_basename in 6311 CC* | sunCC*) 6312 # Sun C++ 4.2, 5.x and Centerline C++ 6313 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6314 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6315 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 6316 ;; 6317 gcx*) 6318 # Green Hills C++ Compiler 6319 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 6320 ;; 6321 *) 6322 ;; 6323 esac 6324 ;; 6325 sunos4*) 6326 case $cc_basename in 6327 CC*) 6328 # Sun C++ 4.x 6329 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6330 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6331 ;; 6332 lcc*) 6333 # Lucid 6334 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6335 ;; 6336 *) 6337 ;; 6338 esac 6339 ;; 6340 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6341 case $cc_basename in 6342 CC*) 6343 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6344 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6345 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6346 ;; 6347 esac 6348 ;; 6349 tandem*) 6350 case $cc_basename in 6351 NCC*) 6352 # NonStop-UX NCC 3.20 6353 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6354 ;; 6355 *) 6356 ;; 6357 esac 6358 ;; 6359 vxworks*) 6360 ;; 6361 *) 6362 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6363 ;; 6364 esac 6365 fi 6366], 6367[ 6368 if test yes = "$GCC"; then 6369 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6370 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6371 6372 case $host_os in 6373 aix*) 6374 # All AIX code is PIC. 6375 if test ia64 = "$host_cpu"; then 6376 # AIX 5 now supports IA64 processor 6377 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6378 fi 6379 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6380 ;; 6381 6382 amigaos*) 6383 case $host_cpu in 6384 powerpc) 6385 # see comment about AmigaOS4 .so support 6386 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6387 ;; 6388 m68k) 6389 # FIXME: we need at least 68020 code to build shared libraries, but 6390 # adding the '-m68020' flag to GCC prevents building anything better, 6391 # like '-m68040'. 6392 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 6393 ;; 6394 esac 6395 ;; 6396 6397 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6398 # PIC is the default for these OSes. 6399 ;; 6400 6401 mingw* | cygwin* | pw32* | os2* | cegcc*) 6402 # This hack is so that the source file can tell whether it is being 6403 # built for inclusion in a dll (and should export symbols for example). 6404 # Although the cygwin gcc ignores -fPIC, still need this for old-style 6405 # (--disable-auto-import) libraries 6406 m4_if([$1], [GCJ], [], 6407 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 6408 case $host_os in 6409 os2*) 6410 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 6411 ;; 6412 esac 6413 ;; 6414 6415 darwin* | rhapsody*) 6416 # PIC is the default on this platform 6417 # Common symbols not allowed in MH_DYLIB files 6418 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 6419 ;; 6420 6421 haiku*) 6422 # PIC is the default for Haiku. 6423 # The "-static" flag exists, but is broken. 6424 _LT_TAGVAR(lt_prog_compiler_static, $1)= 6425 ;; 6426 6427 hpux*) 6428 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 6429 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 6430 # sets the default TLS model and affects inlining. 6431 case $host_cpu in 6432 hppa*64*) 6433 # +Z the default 6434 ;; 6435 *) 6436 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6437 ;; 6438 esac 6439 ;; 6440 6441 interix[[3-9]]*) 6442 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6443 # Instead, we relocate shared libraries at runtime. 6444 ;; 6445 6446 msdosdjgpp*) 6447 # Just because we use GCC doesn't mean we suddenly get shared libraries 6448 # on systems that don't support them. 6449 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6450 enable_shared=no 6451 ;; 6452 6453 *nto* | *qnx*) 6454 # QNX uses GNU C++, but need to define -shared option too, otherwise 6455 # it will coredump. 6456 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 6457 ;; 6458 6459 sysv4*MP*) 6460 if test -d /usr/nec; then 6461 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 6462 fi 6463 ;; 6464 6465 *) 6466 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6467 ;; 6468 esac 6469 6470 case $cc_basename in 6471 nvcc*) # Cuda Compiler Driver 2.2 6472 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' 6473 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 6474 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" 6475 fi 6476 ;; 6477 esac 6478 else 6479 # PORTME Check for flag to pass linker flags through the system compiler. 6480 case $host_os in 6481 aix*) 6482 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6483 if test ia64 = "$host_cpu"; then 6484 # AIX 5 now supports IA64 processor 6485 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6486 else 6487 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 6488 fi 6489 ;; 6490 6491 darwin* | rhapsody*) 6492 # PIC is the default on this platform 6493 # Common symbols not allowed in MH_DYLIB files 6494 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 6495 case $cc_basename in 6496 nagfor*) 6497 # NAG Fortran compiler 6498 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' 6499 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 6500 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6501 ;; 6502 esac 6503 ;; 6504 6505 mingw* | cygwin* | pw32* | os2* | cegcc*) 6506 # This hack is so that the source file can tell whether it is being 6507 # built for inclusion in a dll (and should export symbols for example). 6508 m4_if([$1], [GCJ], [], 6509 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 6510 case $host_os in 6511 os2*) 6512 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 6513 ;; 6514 esac 6515 ;; 6516 6517 hpux9* | hpux10* | hpux11*) 6518 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6519 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6520 # not for PA HP-UX. 6521 case $host_cpu in 6522 hppa*64*|ia64*) 6523 # +Z the default 6524 ;; 6525 *) 6526 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 6527 ;; 6528 esac 6529 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6530 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 6531 ;; 6532 6533 irix5* | irix6* | nonstopux*) 6534 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6535 # PIC (with -KPIC) is the default. 6536 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6537 ;; 6538 6539 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6540 case $cc_basename in 6541 # old Intel for x86_64, which still supported -KPIC. 6542 ecc*) 6543 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6544 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6545 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6546 ;; 6547 # flang / f18. f95 an alias for gfortran or flang on Debian 6548 flang* | f18* | f95*) 6549 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6550 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6551 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6552 ;; 6553 # icc used to be incompatible with GCC. 6554 # ICC 10 doesn't accept -KPIC any more. 6555 icc* | ifort*) 6556 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6557 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6558 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6559 ;; 6560 # Lahey Fortran 8.1. 6561 lf95*) 6562 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6563 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' 6564 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 6565 ;; 6566 nagfor*) 6567 # NAG Fortran compiler 6568 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' 6569 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 6570 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6571 ;; 6572 tcc*) 6573 # Fabrice Bellard et al's Tiny C Compiler 6574 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6575 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6576 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6577 ;; 6578 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 6579 # Portland Group compilers (*not* the Pentium gcc compiler, 6580 # which looks to be a dead project) 6581 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6582 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 6583 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6584 ;; 6585 ccc*) 6586 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6587 # All Alpha code is PIC. 6588 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6589 ;; 6590 xl* | bgxl* | bgf* | mpixl*) 6591 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 6592 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6593 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 6594 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 6595 ;; 6596 *) 6597 case `$CC -V 2>&1 | sed 5q` in 6598 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) 6599 # Sun Fortran 8.3 passes all unrecognized flags to the linker 6600 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6601 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6602 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' 6603 ;; 6604 *Sun\ F* | *Sun*Fortran*) 6605 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6606 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6607 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 6608 ;; 6609 *Sun\ C*) 6610 # Sun C 5.9 6611 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6612 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6613 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6614 ;; 6615 *Intel*\ [[CF]]*Compiler*) 6616 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6617 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6618 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6619 ;; 6620 *Portland\ Group*) 6621 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6622 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 6623 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6624 ;; 6625 esac 6626 ;; 6627 esac 6628 ;; 6629 6630 newsos6) 6631 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6632 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6633 ;; 6634 6635 *nto* | *qnx*) 6636 # QNX uses GNU C++, but need to define -shared option too, otherwise 6637 # it will coredump. 6638 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 6639 ;; 6640 6641 osf3* | osf4* | osf5*) 6642 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6643 # All OSF/1 code is PIC. 6644 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6645 ;; 6646 6647 rdos*) 6648 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6649 ;; 6650 6651 solaris*) 6652 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6653 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6654 case $cc_basename in 6655 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 6656 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 6657 *) 6658 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 6659 esac 6660 ;; 6661 6662 sunos4*) 6663 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 6664 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 6665 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6666 ;; 6667 6668 sysv4 | sysv4.2uw2* | sysv4.3*) 6669 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6670 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6671 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6672 ;; 6673 6674 sysv4*MP*) 6675 if test -d /usr/nec; then 6676 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 6677 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6678 fi 6679 ;; 6680 6681 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6682 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6683 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6684 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6685 ;; 6686 6687 unicos*) 6688 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6689 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6690 ;; 6691 6692 uts4*) 6693 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6694 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6695 ;; 6696 6697 *) 6698 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6699 ;; 6700 esac 6701 fi 6702]) 6703case $host_os in 6704 # For platforms that do not support PIC, -DPIC is meaningless: 6705 *djgpp*) 6706 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 6707 ;; 6708 *) 6709 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" 6710 ;; 6711esac 6712 6713AC_CACHE_CHECK([for $compiler option to produce PIC], 6714 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], 6715 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) 6716_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) 6717 6718# 6719# Check to make sure the PIC flag actually works. 6720# 6721if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 6722 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], 6723 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], 6724 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], 6725 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in 6726 "" | " "*) ;; 6727 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; 6728 esac], 6729 [_LT_TAGVAR(lt_prog_compiler_pic, $1)= 6730 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 6731fi 6732_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], 6733 [Additional compiler flags for building library objects]) 6734 6735_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], 6736 [How to pass a linker flag through the compiler]) 6737# 6738# Check to make sure the static flag actually works. 6739# 6740wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" 6741_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 6742 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), 6743 $lt_tmp_static_flag, 6744 [], 6745 [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) 6746_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], 6747 [Compiler flag to prevent dynamic linking]) 6748])# _LT_COMPILER_PIC 6749 6750 6751# _LT_LINKER_SHLIBS([TAGNAME]) 6752# ---------------------------- 6753# See if the linker supports building shared libraries. 6754m4_defun([_LT_LINKER_SHLIBS], 6755[AC_REQUIRE([LT_PATH_LD])dnl 6756AC_REQUIRE([LT_PATH_NM])dnl 6757m4_require([_LT_PATH_MANIFEST_TOOL])dnl 6758m4_require([_LT_FILEUTILS_DEFAULTS])dnl 6759m4_require([_LT_DECL_EGREP])dnl 6760m4_require([_LT_DECL_SED])dnl 6761m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 6762m4_require([_LT_TAG_COMPILER])dnl 6763AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 6764m4_if([$1], [CXX], [ 6765 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6766 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 6767 case $host_os in 6768 aix[[4-9]]*) 6769 # If we're using GNU nm, then we don't want the "-C" option. 6770 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 6771 # Without the "-l" option, or with the "-B" option, AIX nm treats 6772 # weak defined symbols like other global defined symbols, whereas 6773 # GNU nm marks them as "W". 6774 # While the 'weak' keyword is ignored in the Export File, we need 6775 # it in the Import File for the 'aix-soname' feature, so we have 6776 # to replace the "-B" option with "-P" for AIX nm. 6777 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 6778 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 6779 else 6780 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 6781 fi 6782 ;; 6783 pw32*) 6784 _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds 6785 ;; 6786 cygwin* | mingw* | cegcc*) 6787 case $cc_basename in 6788 cl*) 6789 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 6790 ;; 6791 *) 6792 _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' 6793 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 6794 ;; 6795 esac 6796 ;; 6797 linux* | k*bsd*-gnu | gnu*) 6798 _LT_TAGVAR(link_all_deplibs, $1)=no 6799 ;; 6800 *) 6801 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6802 ;; 6803 esac 6804], [ 6805 runpath_var= 6806 _LT_TAGVAR(allow_undefined_flag, $1)= 6807 _LT_TAGVAR(always_export_symbols, $1)=no 6808 _LT_TAGVAR(archive_cmds, $1)= 6809 _LT_TAGVAR(archive_expsym_cmds, $1)= 6810 _LT_TAGVAR(compiler_needs_object, $1)=no 6811 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 6812 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 6813 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6814 _LT_TAGVAR(hardcode_automatic, $1)=no 6815 _LT_TAGVAR(hardcode_direct, $1)=no 6816 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 6817 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 6818 _LT_TAGVAR(hardcode_libdir_separator, $1)= 6819 _LT_TAGVAR(hardcode_minus_L, $1)=no 6820 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 6821 _LT_TAGVAR(inherit_rpath, $1)=no 6822 _LT_TAGVAR(link_all_deplibs, $1)=unknown 6823 _LT_TAGVAR(module_cmds, $1)= 6824 _LT_TAGVAR(module_expsym_cmds, $1)= 6825 _LT_TAGVAR(old_archive_from_new_cmds, $1)= 6826 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= 6827 _LT_TAGVAR(thread_safe_flag_spec, $1)= 6828 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6829 # include_expsyms should be a list of space-separated symbols to be *always* 6830 # included in the symbol list 6831 _LT_TAGVAR(include_expsyms, $1)= 6832 # exclude_expsyms can be an extended regexp of symbols to exclude 6833 # it will be wrapped by ' (' and ')$', so one must not match beginning or 6834 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 6835 # as well as any symbol that contains 'd'. 6836 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 6837 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6838 # platforms (ab)use it in PIC code, but their linkers get confused if 6839 # the symbol is explicitly referenced. Since portable code cannot 6840 # rely on this symbol name, it's probably fine to never include it in 6841 # preloaded symbol tables. 6842 # Exclude shared library initialization/finalization symbols. 6843dnl Note also adjust exclude_expsyms for C++ above. 6844 extract_expsyms_cmds= 6845 6846 case $host_os in 6847 cygwin* | mingw* | pw32* | cegcc*) 6848 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6849 # When not using gcc, we currently assume that we are using 6850 # Microsoft Visual C++. 6851 if test yes != "$GCC"; then 6852 with_gnu_ld=no 6853 fi 6854 ;; 6855 interix*) 6856 # we just hope/assume this is gcc and not c89 (= MSVC++) 6857 with_gnu_ld=yes 6858 ;; 6859 openbsd* | bitrig*) 6860 with_gnu_ld=no 6861 ;; 6862 linux* | k*bsd*-gnu | gnu*) 6863 _LT_TAGVAR(link_all_deplibs, $1)=no 6864 ;; 6865 esac 6866 6867 _LT_TAGVAR(ld_shlibs, $1)=yes 6868 6869 # On some targets, GNU ld is compatible enough with the native linker 6870 # that we're better off using the native interface for both. 6871 lt_use_gnu_ld_interface=no 6872 if test yes = "$with_gnu_ld"; then 6873 case $host_os in 6874 aix*) 6875 # The AIX port of GNU ld has always aspired to compatibility 6876 # with the native linker. However, as the warning in the GNU ld 6877 # block says, versions before 2.19.5* couldn't really create working 6878 # shared libraries, regardless of the interface used. 6879 case `$LD -v 2>&1` in 6880 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 6881 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; 6882 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; 6883 *) 6884 lt_use_gnu_ld_interface=yes 6885 ;; 6886 esac 6887 ;; 6888 *) 6889 lt_use_gnu_ld_interface=yes 6890 ;; 6891 esac 6892 fi 6893 6894 if test yes = "$lt_use_gnu_ld_interface"; then 6895 # If archive_cmds runs LD, not CC, wlarc should be empty 6896 wlarc='$wl' 6897 6898 # Set some defaults for GNU ld with shared library support. These 6899 # are reset later if shared libraries are not supported. Putting them 6900 # here allows them to be overridden if necessary. 6901 runpath_var=LD_RUN_PATH 6902 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 6903 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 6904 # ancient GNU ld didn't support --whole-archive et. al. 6905 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 6906 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 6907 else 6908 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6909 fi 6910 supports_anon_versioning=no 6911 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 6912 *GNU\ gold*) supports_anon_versioning=yes ;; 6913 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 6914 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6915 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6916 *\ 2.11.*) ;; # other 2.11 versions 6917 *) supports_anon_versioning=yes ;; 6918 esac 6919 6920 # See if GNU ld supports shared libraries. 6921 case $host_os in 6922 aix[[3-9]]*) 6923 # On AIX/PPC, the GNU linker is very broken 6924 if test ia64 != "$host_cpu"; then 6925 _LT_TAGVAR(ld_shlibs, $1)=no 6926 cat <<_LT_EOF 1>&2 6927 6928*** Warning: the GNU linker, at least up to release 2.19, is reported 6929*** to be unable to reliably create shared libraries on AIX. 6930*** Therefore, libtool is disabling shared libraries support. If you 6931*** really care for shared libraries, you may want to install binutils 6932*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 6933*** You will then need to restart the configuration process. 6934 6935_LT_EOF 6936 fi 6937 ;; 6938 6939 amigaos*) 6940 case $host_cpu in 6941 powerpc) 6942 # see comment about AmigaOS4 .so support 6943 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 6944 _LT_TAGVAR(archive_expsym_cmds, $1)='' 6945 ;; 6946 m68k) 6947 _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)' 6948 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6949 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6950 ;; 6951 esac 6952 ;; 6953 6954 beos*) 6955 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6956 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6957 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6958 # support --undefined. This deserves some investigation. FIXME 6959 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 6960 else 6961 _LT_TAGVAR(ld_shlibs, $1)=no 6962 fi 6963 ;; 6964 6965 cygwin* | mingw* | pw32* | cegcc*) 6966 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 6967 # as there is no search path for DLLs. 6968 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6969 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' 6970 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6971 _LT_TAGVAR(always_export_symbols, $1)=no 6972 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6973 _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' 6974 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 6975 6976 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 6977 _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' 6978 # If the export-symbols file already is a .def file, use it as 6979 # is; otherwise, prepend EXPORTS... 6980 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 6981 cp $export_symbols $output_objdir/$soname.def; 6982 else 6983 echo EXPORTS > $output_objdir/$soname.def; 6984 cat $export_symbols >> $output_objdir/$soname.def; 6985 fi~ 6986 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6987 else 6988 _LT_TAGVAR(ld_shlibs, $1)=no 6989 fi 6990 ;; 6991 6992 haiku*) 6993 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 6994 _LT_TAGVAR(link_all_deplibs, $1)=yes 6995 ;; 6996 6997 os2*) 6998 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6999 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7000 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7001 shrext_cmds=.dll 7002 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 7003 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 7004 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 7005 $ECHO EXPORTS >> $output_objdir/$libname.def~ 7006 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 7007 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 7008 emximp -o $lib $output_objdir/$libname.def' 7009 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 7010 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 7011 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 7012 $ECHO EXPORTS >> $output_objdir/$libname.def~ 7013 prefix_cmds="$SED"~ 7014 if test EXPORTS = "`$SED 1q $export_symbols`"; then 7015 prefix_cmds="$prefix_cmds -e 1d"; 7016 fi~ 7017 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 7018 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 7019 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 7020 emximp -o $lib $output_objdir/$libname.def' 7021 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 7022 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 7023 ;; 7024 7025 interix[[3-9]]*) 7026 _LT_TAGVAR(hardcode_direct, $1)=no 7027 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7028 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 7029 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 7030 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7031 # Instead, shared libraries are loaded at an image base (0x10000000 by 7032 # default) and relocated if they conflict, which is a slow very memory 7033 # consuming and fragmenting process. To avoid this, we pick a random, 7034 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7035 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7036 _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' 7037 _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' 7038 ;; 7039 7040 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 7041 tmp_diet=no 7042 if test linux-dietlibc = "$host_os"; then 7043 case $cc_basename in 7044 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 7045 esac 7046 fi 7047 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 7048 && test no = "$tmp_diet" 7049 then 7050 tmp_addflag=' $pic_flag' 7051 tmp_sharedflag='-shared' 7052 case $cc_basename,$host_cpu in 7053 pgcc*) # Portland Group C compiler 7054 _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' 7055 tmp_addflag=' $pic_flag' 7056 ;; 7057 pgf77* | pgf90* | pgf95* | pgfortran*) 7058 # Portland Group f77 and f90 compilers 7059 _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' 7060 tmp_addflag=' $pic_flag -Mnomain' ;; 7061 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7062 tmp_addflag=' -i_dynamic' ;; 7063 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7064 tmp_addflag=' -i_dynamic -nofor_main' ;; 7065 ifc* | ifort*) # Intel Fortran compiler 7066 tmp_addflag=' -nofor_main' ;; 7067 lf95*) # Lahey Fortran 8.1 7068 _LT_TAGVAR(whole_archive_flag_spec, $1)= 7069 tmp_sharedflag='--shared' ;; 7070 nagfor*) # NAGFOR 5.3 7071 tmp_sharedflag='-Wl,-shared' ;; 7072 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 7073 tmp_sharedflag='-qmkshrobj' 7074 tmp_addflag= ;; 7075 nvcc*) # Cuda Compiler Driver 2.2 7076 _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' 7077 _LT_TAGVAR(compiler_needs_object, $1)=yes 7078 ;; 7079 esac 7080 case `$CC -V 2>&1 | sed 5q` in 7081 *Sun\ C*) # Sun C 5.9 7082 _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' 7083 _LT_TAGVAR(compiler_needs_object, $1)=yes 7084 tmp_sharedflag='-G' ;; 7085 *Sun\ F*) # Sun Fortran 8.3 7086 tmp_sharedflag='-G' ;; 7087 esac 7088 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 7089 7090 if test yes = "$supports_anon_versioning"; then 7091 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 7092 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7093 echo "local: *; };" >> $output_objdir/$libname.ver~ 7094 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 7095 fi 7096 7097 case $cc_basename in 7098 tcc*) 7099 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic' 7100 ;; 7101 xlf* | bgf* | bgxlf* | mpixlf*) 7102 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 7103 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' 7104 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 7105 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 7106 if test yes = "$supports_anon_versioning"; then 7107 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 7108 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7109 echo "local: *; };" >> $output_objdir/$libname.ver~ 7110 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 7111 fi 7112 ;; 7113 esac 7114 else 7115 _LT_TAGVAR(ld_shlibs, $1)=no 7116 fi 7117 ;; 7118 7119 netbsd* | netbsdelf*-gnu) 7120 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7121 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7122 wlarc= 7123 else 7124 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 7125 _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' 7126 fi 7127 ;; 7128 7129 solaris*) 7130 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 7131 _LT_TAGVAR(ld_shlibs, $1)=no 7132 cat <<_LT_EOF 1>&2 7133 7134*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7135*** create shared libraries on Solaris systems. Therefore, libtool 7136*** is disabling shared libraries support. We urge you to upgrade GNU 7137*** binutils to release 2.9.1 or newer. Another option is to modify 7138*** your PATH or compiler configuration so that the native linker is 7139*** used, and then restart. 7140 7141_LT_EOF 7142 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7143 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 7144 _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' 7145 else 7146 _LT_TAGVAR(ld_shlibs, $1)=no 7147 fi 7148 ;; 7149 7150 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7151 case `$LD -v 2>&1` in 7152 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 7153 _LT_TAGVAR(ld_shlibs, $1)=no 7154 cat <<_LT_EOF 1>&2 7155 7156*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 7157*** reliably create shared libraries on SCO systems. Therefore, libtool 7158*** is disabling shared libraries support. We urge you to upgrade GNU 7159*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7160*** your PATH or compiler configuration so that the native linker is 7161*** used, and then restart. 7162 7163_LT_EOF 7164 ;; 7165 *) 7166 # For security reasons, it is highly recommended that you always 7167 # use absolute paths for naming shared libraries, and exclude the 7168 # DT_RUNPATH tag from executables and libraries. But doing so 7169 # requires that you compile everything twice, which is a pain. 7170 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7171 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 7172 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 7173 _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' 7174 else 7175 _LT_TAGVAR(ld_shlibs, $1)=no 7176 fi 7177 ;; 7178 esac 7179 ;; 7180 7181 sunos4*) 7182 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7183 wlarc= 7184 _LT_TAGVAR(hardcode_direct, $1)=yes 7185 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7186 ;; 7187 7188 *) 7189 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7190 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 7191 _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' 7192 else 7193 _LT_TAGVAR(ld_shlibs, $1)=no 7194 fi 7195 ;; 7196 esac 7197 7198 if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then 7199 runpath_var= 7200 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 7201 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 7202 _LT_TAGVAR(whole_archive_flag_spec, $1)= 7203 fi 7204 else 7205 # PORTME fill in a description of your system's linker (not GNU ld) 7206 case $host_os in 7207 aix3*) 7208 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7209 _LT_TAGVAR(always_export_symbols, $1)=yes 7210 _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' 7211 # Note: this linker hardcodes the directories in LIBPATH if there 7212 # are no directories specified by -L. 7213 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7214 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 7215 # Neither direct hardcoding nor static linking is supported with a 7216 # broken collect2. 7217 _LT_TAGVAR(hardcode_direct, $1)=unsupported 7218 fi 7219 ;; 7220 7221 aix[[4-9]]*) 7222 if test ia64 = "$host_cpu"; then 7223 # On IA64, the linker does run time linking by default, so we don't 7224 # have to do anything special. 7225 aix_use_runtimelinking=no 7226 exp_sym_flag='-Bexport' 7227 no_entry_flag= 7228 else 7229 # If we're using GNU nm, then we don't want the "-C" option. 7230 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 7231 # Without the "-l" option, or with the "-B" option, AIX nm treats 7232 # weak defined symbols like other global defined symbols, whereas 7233 # GNU nm marks them as "W". 7234 # While the 'weak' keyword is ignored in the Export File, we need 7235 # it in the Import File for the 'aix-soname' feature, so we have 7236 # to replace the "-B" option with "-P" for AIX nm. 7237 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 7238 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 7239 else 7240 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 7241 fi 7242 aix_use_runtimelinking=no 7243 7244 # Test if we are trying to use run time linking or normal 7245 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7246 # have runtime linking enabled, and use it for executables. 7247 # For shared libraries, we enable/disable runtime linking 7248 # depending on the kind of the shared library created - 7249 # when "with_aix_soname,aix_use_runtimelinking" is: 7250 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 7251 # "aix,yes" lib.so shared, rtl:yes, for executables 7252 # lib.a static archive 7253 # "both,no" lib.so.V(shr.o) shared, rtl:yes 7254 # lib.a(lib.so.V) shared, rtl:no, for executables 7255 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 7256 # lib.a(lib.so.V) shared, rtl:no 7257 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 7258 # lib.a static archive 7259 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 7260 for ld_flag in $LDFLAGS; do 7261 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 7262 aix_use_runtimelinking=yes 7263 break 7264 fi 7265 done 7266 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 7267 # With aix-soname=svr4, we create the lib.so.V shared archives only, 7268 # so we don't have lib.a shared libs to link our executables. 7269 # We have to force runtime linking in this case. 7270 aix_use_runtimelinking=yes 7271 LDFLAGS="$LDFLAGS -Wl,-brtl" 7272 fi 7273 ;; 7274 esac 7275 7276 exp_sym_flag='-bexport' 7277 no_entry_flag='-bnoentry' 7278 fi 7279 7280 # When large executables or shared objects are built, AIX ld can 7281 # have problems creating the table of contents. If linking a library 7282 # or program results in "error TOC overflow" add -mminimal-toc to 7283 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7284 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7285 7286 _LT_TAGVAR(archive_cmds, $1)='' 7287 _LT_TAGVAR(hardcode_direct, $1)=yes 7288 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7289 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 7290 _LT_TAGVAR(link_all_deplibs, $1)=yes 7291 _LT_TAGVAR(file_list_spec, $1)='$wl-f,' 7292 case $with_aix_soname,$aix_use_runtimelinking in 7293 aix,*) ;; # traditional, no import file 7294 svr4,* | *,yes) # use import file 7295 # The Import File defines what to hardcode. 7296 _LT_TAGVAR(hardcode_direct, $1)=no 7297 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 7298 ;; 7299 esac 7300 7301 if test yes = "$GCC"; then 7302 case $host_os in aix4.[[012]]|aix4.[[012]].*) 7303 # We only want to do this on AIX 4.2 and lower, the check 7304 # below for broken collect2 doesn't work under 4.3+ 7305 collect2name=`$CC -print-prog-name=collect2` 7306 if test -f "$collect2name" && 7307 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 7308 then 7309 # We have reworked collect2 7310 : 7311 else 7312 # We have old collect2 7313 _LT_TAGVAR(hardcode_direct, $1)=unsupported 7314 # It fails to find uninstalled libraries when the uninstalled 7315 # path is not listed in the libpath. Setting hardcode_minus_L 7316 # to unsupported forces relinking 7317 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7318 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7319 _LT_TAGVAR(hardcode_libdir_separator, $1)= 7320 fi 7321 ;; 7322 esac 7323 shared_flag='-shared' 7324 if test yes = "$aix_use_runtimelinking"; then 7325 shared_flag="$shared_flag "'$wl-G' 7326 fi 7327 # Need to ensure runtime linking is disabled for the traditional 7328 # shared library, or the linker may eventually find shared libraries 7329 # /with/ Import File - we do not want to mix them. 7330 shared_flag_aix='-shared' 7331 shared_flag_svr4='-shared $wl-G' 7332 else 7333 # not using gcc 7334 if test ia64 = "$host_cpu"; then 7335 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7336 # chokes on -Wl,-G. The following line is correct: 7337 shared_flag='-G' 7338 else 7339 if test yes = "$aix_use_runtimelinking"; then 7340 shared_flag='$wl-G' 7341 else 7342 shared_flag='$wl-bM:SRE' 7343 fi 7344 shared_flag_aix='$wl-bM:SRE' 7345 shared_flag_svr4='$wl-G' 7346 fi 7347 fi 7348 7349 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' 7350 # It seems that -bexpall does not export symbols beginning with 7351 # underscore (_), so it is better to generate a list of symbols to export. 7352 _LT_TAGVAR(always_export_symbols, $1)=yes 7353 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 7354 # Warning - without using the other runtime loading flags (-brtl), 7355 # -berok will link without error, but may produce a broken library. 7356 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 7357 # Determine the default libpath from the value encoded in an 7358 # empty executable. 7359 _LT_SYS_MODULE_PATH_AIX([$1]) 7360 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 7361 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 7362 else 7363 if test ia64 = "$host_cpu"; then 7364 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' 7365 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 7366 _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" 7367 else 7368 # Determine the default libpath from the value encoded in an 7369 # empty executable. 7370 _LT_SYS_MODULE_PATH_AIX([$1]) 7371 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 7372 # Warning - without using the other run time loading flags, 7373 # -berok will link without error, but may produce a broken library. 7374 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' 7375 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' 7376 if test yes = "$with_gnu_ld"; then 7377 # We only use this code for GNU lds that support --whole-archive. 7378 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 7379 else 7380 # Exported symbols can be pulled into shared objects from archives 7381 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 7382 fi 7383 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 7384 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 7385 # -brtl affects multiple linker settings, -berok does not and is overridden later 7386 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' 7387 if test svr4 != "$with_aix_soname"; then 7388 # This is similar to how AIX traditionally builds its shared libraries. 7389 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 7390 fi 7391 if test aix != "$with_aix_soname"; then 7392 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 7393 else 7394 # used by -dlpreopen to get the symbols 7395 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 7396 fi 7397 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' 7398 fi 7399 fi 7400 ;; 7401 7402 amigaos*) 7403 case $host_cpu in 7404 powerpc) 7405 # see comment about AmigaOS4 .so support 7406 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 7407 _LT_TAGVAR(archive_expsym_cmds, $1)='' 7408 ;; 7409 m68k) 7410 _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)' 7411 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7412 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7413 ;; 7414 esac 7415 ;; 7416 7417 bsdi[[45]]*) 7418 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 7419 ;; 7420 7421 cygwin* | mingw* | pw32* | cegcc*) 7422 # When not using gcc, we currently assume that we are using 7423 # Microsoft Visual C++. 7424 # hardcode_libdir_flag_spec is actually meaningless, as there is 7425 # no search path for DLLs. 7426 case $cc_basename in 7427 cl*) 7428 # Native MSVC 7429 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 7430 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7431 _LT_TAGVAR(always_export_symbols, $1)=yes 7432 _LT_TAGVAR(file_list_spec, $1)='@' 7433 # Tell ltmain to make .lib files, not .a files. 7434 libext=lib 7435 # Tell ltmain to make .dll files, not .so files. 7436 shrext_cmds=.dll 7437 # FIXME: Setting linknames here is a bad hack. 7438 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 7439 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 7440 cp "$export_symbols" "$output_objdir/$soname.def"; 7441 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 7442 else 7443 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 7444 fi~ 7445 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 7446 linknames=' 7447 # The linker will not automatically build a static lib if we build a DLL. 7448 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 7449 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 7450 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 7451 _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' 7452 # Don't use ranlib 7453 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 7454 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 7455 lt_tool_outputfile="@TOOL_OUTPUT@"~ 7456 case $lt_outputfile in 7457 *.exe|*.EXE) ;; 7458 *) 7459 lt_outputfile=$lt_outputfile.exe 7460 lt_tool_outputfile=$lt_tool_outputfile.exe 7461 ;; 7462 esac~ 7463 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 7464 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 7465 $RM "$lt_outputfile.manifest"; 7466 fi' 7467 ;; 7468 *) 7469 # Assume MSVC wrapper 7470 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 7471 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7472 # Tell ltmain to make .lib files, not .a files. 7473 libext=lib 7474 # Tell ltmain to make .dll files, not .so files. 7475 shrext_cmds=.dll 7476 # FIXME: Setting linknames here is a bad hack. 7477 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 7478 # The linker will automatically build a .lib file if we build a DLL. 7479 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 7480 # FIXME: Should let the user specify the lib program. 7481 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 7482 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 7483 ;; 7484 esac 7485 ;; 7486 7487 darwin* | rhapsody*) 7488 _LT_DARWIN_LINKER_FEATURES($1) 7489 ;; 7490 7491 dgux*) 7492 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7493 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7494 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7495 ;; 7496 7497 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7498 # support. Future versions do this automatically, but an explicit c++rt0.o 7499 # does not break anything, and helps significantly (at the cost of a little 7500 # extra space). 7501 freebsd2.2*) 7502 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7503 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7504 _LT_TAGVAR(hardcode_direct, $1)=yes 7505 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7506 ;; 7507 7508 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7509 freebsd2.*) 7510 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7511 _LT_TAGVAR(hardcode_direct, $1)=yes 7512 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7513 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7514 ;; 7515 7516 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7517 freebsd* | dragonfly*) 7518 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7519 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7520 _LT_TAGVAR(hardcode_direct, $1)=yes 7521 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7522 ;; 7523 7524 hpux9*) 7525 if test yes = "$GCC"; then 7526 _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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 7527 else 7528 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 7529 fi 7530 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 7531 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7532 _LT_TAGVAR(hardcode_direct, $1)=yes 7533 7534 # hardcode_minus_L: Not really in the search PATH, 7535 # but as the default location of the library. 7536 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7537 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 7538 ;; 7539 7540 hpux10*) 7541 if test yes,no = "$GCC,$with_gnu_ld"; then 7542 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7543 else 7544 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7545 fi 7546 if test no = "$with_gnu_ld"; then 7547 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 7548 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7549 _LT_TAGVAR(hardcode_direct, $1)=yes 7550 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7551 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 7552 # hardcode_minus_L: Not really in the search PATH, 7553 # but as the default location of the library. 7554 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7555 fi 7556 ;; 7557 7558 hpux11*) 7559 if test yes,no = "$GCC,$with_gnu_ld"; then 7560 case $host_cpu in 7561 hppa*64*) 7562 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 7563 ;; 7564 ia64*) 7565 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7566 ;; 7567 *) 7568 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7569 ;; 7570 esac 7571 else 7572 case $host_cpu in 7573 hppa*64*) 7574 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 7575 ;; 7576 ia64*) 7577 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7578 ;; 7579 *) 7580 m4_if($1, [], [ 7581 # Older versions of the 11.00 compiler do not understand -b yet 7582 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 7583 _LT_LINKER_OPTION([if $CC understands -b], 7584 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], 7585 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], 7586 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], 7587 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) 7588 ;; 7589 esac 7590 fi 7591 if test no = "$with_gnu_ld"; then 7592 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 7593 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7594 7595 case $host_cpu in 7596 hppa*64*|ia64*) 7597 _LT_TAGVAR(hardcode_direct, $1)=no 7598 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7599 ;; 7600 *) 7601 _LT_TAGVAR(hardcode_direct, $1)=yes 7602 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7603 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 7604 7605 # hardcode_minus_L: Not really in the search PATH, 7606 # but as the default location of the library. 7607 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7608 ;; 7609 esac 7610 fi 7611 ;; 7612 7613 irix5* | irix6* | nonstopux*) 7614 if test yes = "$GCC"; then 7615 _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' 7616 # Try to use the -exported_symbol ld option, if it does not 7617 # work, assume that -exports_file does not work either and 7618 # implicitly export all symbols. 7619 # This should be the same for all languages, so no per-tag cache variable. 7620 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], 7621 [lt_cv_irix_exported_symbol], 7622 [save_LDFLAGS=$LDFLAGS 7623 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 7624 AC_LINK_IFELSE( 7625 [AC_LANG_SOURCE( 7626 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], 7627 [C++], [[int foo (void) { return 0; }]], 7628 [Fortran 77], [[ 7629 subroutine foo 7630 end]], 7631 [Fortran], [[ 7632 subroutine foo 7633 end]])])], 7634 [lt_cv_irix_exported_symbol=yes], 7635 [lt_cv_irix_exported_symbol=no]) 7636 LDFLAGS=$save_LDFLAGS]) 7637 if test yes = "$lt_cv_irix_exported_symbol"; then 7638 _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' 7639 fi 7640 _LT_TAGVAR(link_all_deplibs, $1)=no 7641 else 7642 _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' 7643 _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' 7644 fi 7645 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 7646 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 7647 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7648 _LT_TAGVAR(inherit_rpath, $1)=yes 7649 _LT_TAGVAR(link_all_deplibs, $1)=yes 7650 ;; 7651 7652 linux*) 7653 case $cc_basename in 7654 tcc*) 7655 # Fabrice Bellard et al's Tiny C Compiler 7656 _LT_TAGVAR(ld_shlibs, $1)=yes 7657 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7658 ;; 7659 esac 7660 ;; 7661 7662 netbsd* | netbsdelf*-gnu) 7663 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7664 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7665 else 7666 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7667 fi 7668 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7669 _LT_TAGVAR(hardcode_direct, $1)=yes 7670 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7671 ;; 7672 7673 newsos6) 7674 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7675 _LT_TAGVAR(hardcode_direct, $1)=yes 7676 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 7677 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7678 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7679 ;; 7680 7681 *nto* | *qnx*) 7682 ;; 7683 7684 openbsd* | bitrig*) 7685 if test -f /usr/libexec/ld.so; then 7686 _LT_TAGVAR(hardcode_direct, $1)=yes 7687 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7688 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7689 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 7690 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7691 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 7692 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 7693 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 7694 else 7695 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7696 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 7697 fi 7698 else 7699 _LT_TAGVAR(ld_shlibs, $1)=no 7700 fi 7701 ;; 7702 7703 os2*) 7704 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7705 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7706 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7707 shrext_cmds=.dll 7708 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 7709 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 7710 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 7711 $ECHO EXPORTS >> $output_objdir/$libname.def~ 7712 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 7713 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 7714 emximp -o $lib $output_objdir/$libname.def' 7715 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 7716 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 7717 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 7718 $ECHO EXPORTS >> $output_objdir/$libname.def~ 7719 prefix_cmds="$SED"~ 7720 if test EXPORTS = "`$SED 1q $export_symbols`"; then 7721 prefix_cmds="$prefix_cmds -e 1d"; 7722 fi~ 7723 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 7724 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 7725 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 7726 emximp -o $lib $output_objdir/$libname.def' 7727 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 7728 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 7729 ;; 7730 7731 osf3*) 7732 if test yes = "$GCC"; then 7733 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 7734 _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' 7735 else 7736 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 7737 _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' 7738 fi 7739 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 7740 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 7741 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7742 ;; 7743 7744 osf4* | osf5*) # as osf3* with the addition of -msym flag 7745 if test yes = "$GCC"; then 7746 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 7747 _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' 7748 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 7749 else 7750 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 7751 _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' 7752 _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~ 7753 $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' 7754 7755 # Both c and cxx compiler support -rpath directly 7756 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 7757 fi 7758 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 7759 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7760 ;; 7761 7762 solaris*) 7763 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' 7764 if test yes = "$GCC"; then 7765 wlarc='$wl' 7766 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 7767 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7768 $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' 7769 else 7770 case `$CC -V 2>&1` in 7771 *"Compilers 5.0"*) 7772 wlarc='' 7773 _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 7774 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7775 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 7776 ;; 7777 *) 7778 wlarc='$wl' 7779 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 7780 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7781 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 7782 ;; 7783 esac 7784 fi 7785 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7786 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7787 case $host_os in 7788 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 7789 *) 7790 # The compiler driver will combine and reorder linker options, 7791 # but understands '-z linker_flag'. GCC discards it without '$wl', 7792 # but is careful enough not to reorder. 7793 # Supported since Solaris 2.6 (maybe 2.5.1?) 7794 if test yes = "$GCC"; then 7795 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 7796 else 7797 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 7798 fi 7799 ;; 7800 esac 7801 _LT_TAGVAR(link_all_deplibs, $1)=yes 7802 ;; 7803 7804 sunos4*) 7805 if test sequent = "$host_vendor"; then 7806 # Use $CC to link under sequent, because it throws in some extra .o 7807 # files that make .init and .fini sections work. 7808 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7809 else 7810 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7811 fi 7812 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7813 _LT_TAGVAR(hardcode_direct, $1)=yes 7814 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7815 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7816 ;; 7817 7818 sysv4) 7819 case $host_vendor in 7820 sni) 7821 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7822 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 7823 ;; 7824 siemens) 7825 ## LD is ld it makes a PLAMLIB 7826 ## CC just makes a GrossModule. 7827 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7828 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 7829 _LT_TAGVAR(hardcode_direct, $1)=no 7830 ;; 7831 motorola) 7832 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7833 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 7834 ;; 7835 esac 7836 runpath_var='LD_RUN_PATH' 7837 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7838 ;; 7839 7840 sysv4.3*) 7841 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7842 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7843 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 7844 ;; 7845 7846 sysv4*MP*) 7847 if test -d /usr/nec; then 7848 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7849 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7850 runpath_var=LD_RUN_PATH 7851 hardcode_runpath_var=yes 7852 _LT_TAGVAR(ld_shlibs, $1)=yes 7853 fi 7854 ;; 7855 7856 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 7857 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 7858 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7859 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7860 runpath_var='LD_RUN_PATH' 7861 7862 if test yes = "$GCC"; then 7863 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7864 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7865 else 7866 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7867 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7868 fi 7869 ;; 7870 7871 sysv5* | sco3.2v5* | sco5v6*) 7872 # Note: We CANNOT use -z defs as we might desire, because we do not 7873 # link with -lc, and that would cause any symbols used from libc to 7874 # always be unresolved, which means just about no library would 7875 # ever link correctly. If we're not using GNU ld we use -z text 7876 # though, which does catch some bad symbols but isn't as heavy-handed 7877 # as -z defs. 7878 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 7879 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' 7880 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7881 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7882 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' 7883 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 7884 _LT_TAGVAR(link_all_deplibs, $1)=yes 7885 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' 7886 runpath_var='LD_RUN_PATH' 7887 7888 if test yes = "$GCC"; then 7889 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7890 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7891 else 7892 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7893 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7894 fi 7895 ;; 7896 7897 uts4*) 7898 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7899 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7900 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7901 ;; 7902 7903 *) 7904 _LT_TAGVAR(ld_shlibs, $1)=no 7905 ;; 7906 esac 7907 7908 if test sni = "$host_vendor"; then 7909 case $host in 7910 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 7911 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym' 7912 ;; 7913 esac 7914 fi 7915 fi 7916]) 7917AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 7918test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no 7919 7920_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld 7921 7922_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl 7923_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl 7924_LT_DECL([], [extract_expsyms_cmds], [2], 7925 [The commands to extract the exported symbol list from a shared archive]) 7926 7927# 7928# Do we need to explicitly link libc? 7929# 7930case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in 7931x|xyes) 7932 # Assume -lc should be added 7933 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 7934 7935 if test yes,yes = "$GCC,$enable_shared"; then 7936 case $_LT_TAGVAR(archive_cmds, $1) in 7937 *'~'*) 7938 # FIXME: we may have to deal with multi-command sequences. 7939 ;; 7940 '$CC '*) 7941 # Test whether the compiler implicitly links with -lc since on some 7942 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7943 # to ld, don't add -lc before -lgcc. 7944 AC_CACHE_CHECK([whether -lc should be explicitly linked in], 7945 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), 7946 [$RM conftest* 7947 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7948 7949 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 7950 soname=conftest 7951 lib=conftest 7952 libobjs=conftest.$ac_objext 7953 deplibs= 7954 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) 7955 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) 7956 compiler_flags=-v 7957 linker_flags=-v 7958 verstring= 7959 output_objdir=. 7960 libname=conftest 7961 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) 7962 _LT_TAGVAR(allow_undefined_flag, $1)= 7963 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 7964 then 7965 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7966 else 7967 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes 7968 fi 7969 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 7970 else 7971 cat conftest.err 1>&5 7972 fi 7973 $RM conftest* 7974 ]) 7975 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) 7976 ;; 7977 esac 7978 fi 7979 ;; 7980esac 7981 7982_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], 7983 [Whether or not to add -lc for building shared libraries]) 7984_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], 7985 [enable_shared_with_static_runtimes], [0], 7986 [Whether or not to disallow shared libs when runtime libs are static]) 7987_LT_TAGDECL([], [export_dynamic_flag_spec], [1], 7988 [Compiler flag to allow reflexive dlopens]) 7989_LT_TAGDECL([], [whole_archive_flag_spec], [1], 7990 [Compiler flag to generate shared objects directly from archives]) 7991_LT_TAGDECL([], [compiler_needs_object], [1], 7992 [Whether the compiler copes with passing no objects directly]) 7993_LT_TAGDECL([], [old_archive_from_new_cmds], [2], 7994 [Create an old-style archive from a shared archive]) 7995_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], 7996 [Create a temporary old-style archive to link instead of a shared archive]) 7997_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) 7998_LT_TAGDECL([], [archive_expsym_cmds], [2]) 7999_LT_TAGDECL([], [module_cmds], [2], 8000 [Commands used to build a loadable module if different from building 8001 a shared archive.]) 8002_LT_TAGDECL([], [module_expsym_cmds], [2]) 8003_LT_TAGDECL([], [with_gnu_ld], [1], 8004 [Whether we are building with GNU ld or not]) 8005_LT_TAGDECL([], [allow_undefined_flag], [1], 8006 [Flag that allows shared libraries with undefined symbols to be built]) 8007_LT_TAGDECL([], [no_undefined_flag], [1], 8008 [Flag that enforces no undefined symbols]) 8009_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], 8010 [Flag to hardcode $libdir into a binary during linking. 8011 This must work even if $libdir does not exist]) 8012_LT_TAGDECL([], [hardcode_libdir_separator], [1], 8013 [Whether we need a single "-rpath" flag with a separated argument]) 8014_LT_TAGDECL([], [hardcode_direct], [0], 8015 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes 8016 DIR into the resulting binary]) 8017_LT_TAGDECL([], [hardcode_direct_absolute], [0], 8018 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes 8019 DIR into the resulting binary and the resulting library dependency is 8020 "absolute", i.e impossible to change by setting $shlibpath_var if the 8021 library is relocated]) 8022_LT_TAGDECL([], [hardcode_minus_L], [0], 8023 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR 8024 into the resulting binary]) 8025_LT_TAGDECL([], [hardcode_shlibpath_var], [0], 8026 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 8027 into the resulting binary]) 8028_LT_TAGDECL([], [hardcode_automatic], [0], 8029 [Set to "yes" if building a shared library automatically hardcodes DIR 8030 into the library and all subsequent libraries and executables linked 8031 against it]) 8032_LT_TAGDECL([], [inherit_rpath], [0], 8033 [Set to yes if linker adds runtime paths of dependent libraries 8034 to runtime path list]) 8035_LT_TAGDECL([], [link_all_deplibs], [0], 8036 [Whether libtool must link a program against all its dependency libraries]) 8037_LT_TAGDECL([], [always_export_symbols], [0], 8038 [Set to "yes" if exported symbols are required]) 8039_LT_TAGDECL([], [export_symbols_cmds], [2], 8040 [The commands to list exported symbols]) 8041_LT_TAGDECL([], [exclude_expsyms], [1], 8042 [Symbols that should not be listed in the preloaded symbols]) 8043_LT_TAGDECL([], [include_expsyms], [1], 8044 [Symbols that must always be exported]) 8045_LT_TAGDECL([], [prelink_cmds], [2], 8046 [Commands necessary for linking programs (against libraries) with templates]) 8047_LT_TAGDECL([], [postlink_cmds], [2], 8048 [Commands necessary for finishing linking programs]) 8049_LT_TAGDECL([], [file_list_spec], [1], 8050 [Specify filename containing input files]) 8051dnl FIXME: Not yet implemented 8052dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], 8053dnl [Compiler flag to generate thread safe objects]) 8054])# _LT_LINKER_SHLIBS 8055 8056 8057# _LT_LANG_C_CONFIG([TAG]) 8058# ------------------------ 8059# Ensure that the configuration variables for a C compiler are suitably 8060# defined. These variables are subsequently used by _LT_CONFIG to write 8061# the compiler configuration to 'libtool'. 8062m4_defun([_LT_LANG_C_CONFIG], 8063[m4_require([_LT_DECL_EGREP])dnl 8064lt_save_CC=$CC 8065AC_LANG_PUSH(C) 8066 8067# Source file extension for C test sources. 8068ac_ext=c 8069 8070# Object file extension for compiled C test sources. 8071objext=o 8072_LT_TAGVAR(objext, $1)=$objext 8073 8074# Code to be used in simple compile tests 8075lt_simple_compile_test_code="int some_variable = 0;" 8076 8077# Code to be used in simple link tests 8078lt_simple_link_test_code='int main(){return(0);}' 8079 8080_LT_TAG_COMPILER 8081# Save the default compiler, since it gets overwritten when the other 8082# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8083compiler_DEFAULT=$CC 8084 8085# save warnings/boilerplate of simple test code 8086_LT_COMPILER_BOILERPLATE 8087_LT_LINKER_BOILERPLATE 8088 8089if test -n "$compiler"; then 8090 _LT_COMPILER_NO_RTTI($1) 8091 _LT_COMPILER_PIC($1) 8092 _LT_COMPILER_C_O($1) 8093 _LT_COMPILER_FILE_LOCKS($1) 8094 _LT_LINKER_SHLIBS($1) 8095 _LT_SYS_DYNAMIC_LINKER($1) 8096 _LT_LINKER_HARDCODE_LIBPATH($1) 8097 LT_SYS_DLOPEN_SELF 8098 _LT_CMD_STRIPLIB 8099 8100 # Report what library types will actually be built 8101 AC_MSG_CHECKING([if libtool supports shared libraries]) 8102 AC_MSG_RESULT([$can_build_shared]) 8103 8104 AC_MSG_CHECKING([whether to build shared libraries]) 8105 test no = "$can_build_shared" && enable_shared=no 8106 8107 # On AIX, shared libraries and static libraries use the same namespace, and 8108 # are all built from PIC. 8109 case $host_os in 8110 aix3*) 8111 test yes = "$enable_shared" && enable_static=no 8112 if test -n "$RANLIB"; then 8113 archive_cmds="$archive_cmds~\$RANLIB \$lib" 8114 postinstall_cmds='$RANLIB $lib' 8115 fi 8116 ;; 8117 8118 aix[[4-9]]*) 8119 if test ia64 != "$host_cpu"; then 8120 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 8121 yes,aix,yes) ;; # shared object as lib.so file only 8122 yes,svr4,*) ;; # shared object as lib.so archive member only 8123 yes,*) enable_static=no ;; # shared object in lib.a archive as well 8124 esac 8125 fi 8126 ;; 8127 esac 8128 AC_MSG_RESULT([$enable_shared]) 8129 8130 AC_MSG_CHECKING([whether to build static libraries]) 8131 # Make sure either enable_shared or enable_static is yes. 8132 test yes = "$enable_shared" || enable_static=yes 8133 AC_MSG_RESULT([$enable_static]) 8134 8135 _LT_CONFIG($1) 8136fi 8137AC_LANG_POP 8138CC=$lt_save_CC 8139])# _LT_LANG_C_CONFIG 8140 8141 8142# _LT_LANG_CXX_CONFIG([TAG]) 8143# -------------------------- 8144# Ensure that the configuration variables for a C++ compiler are suitably 8145# defined. These variables are subsequently used by _LT_CONFIG to write 8146# the compiler configuration to 'libtool'. 8147m4_defun([_LT_LANG_CXX_CONFIG], 8148[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 8149m4_require([_LT_DECL_EGREP])dnl 8150m4_require([_LT_PATH_MANIFEST_TOOL])dnl 8151if test -n "$CXX" && ( test no != "$CXX" && 8152 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 8153 (test g++ != "$CXX"))); then 8154 AC_PROG_CXXCPP 8155else 8156 _lt_caught_CXX_error=yes 8157fi 8158 8159AC_LANG_PUSH(C++) 8160_LT_TAGVAR(archive_cmds_need_lc, $1)=no 8161_LT_TAGVAR(allow_undefined_flag, $1)= 8162_LT_TAGVAR(always_export_symbols, $1)=no 8163_LT_TAGVAR(archive_expsym_cmds, $1)= 8164_LT_TAGVAR(compiler_needs_object, $1)=no 8165_LT_TAGVAR(export_dynamic_flag_spec, $1)= 8166_LT_TAGVAR(hardcode_direct, $1)=no 8167_LT_TAGVAR(hardcode_direct_absolute, $1)=no 8168_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 8169_LT_TAGVAR(hardcode_libdir_separator, $1)= 8170_LT_TAGVAR(hardcode_minus_L, $1)=no 8171_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 8172_LT_TAGVAR(hardcode_automatic, $1)=no 8173_LT_TAGVAR(inherit_rpath, $1)=no 8174_LT_TAGVAR(module_cmds, $1)= 8175_LT_TAGVAR(module_expsym_cmds, $1)= 8176_LT_TAGVAR(link_all_deplibs, $1)=unknown 8177_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 8178_LT_TAGVAR(reload_flag, $1)=$reload_flag 8179_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 8180_LT_TAGVAR(no_undefined_flag, $1)= 8181_LT_TAGVAR(whole_archive_flag_spec, $1)= 8182_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 8183 8184# Source file extension for C++ test sources. 8185ac_ext=cpp 8186 8187# Object file extension for compiled C++ test sources. 8188objext=o 8189_LT_TAGVAR(objext, $1)=$objext 8190 8191# No sense in running all these tests if we already determined that 8192# the CXX compiler isn't working. Some variables (like enable_shared) 8193# are currently assumed to apply to all compilers on this platform, 8194# and will be corrupted by setting them based on a non-working compiler. 8195if test yes != "$_lt_caught_CXX_error"; then 8196 # Code to be used in simple compile tests 8197 lt_simple_compile_test_code="int some_variable = 0;" 8198 8199 # Code to be used in simple link tests 8200 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 8201 8202 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 8203 _LT_TAG_COMPILER 8204 8205 # save warnings/boilerplate of simple test code 8206 _LT_COMPILER_BOILERPLATE 8207 _LT_LINKER_BOILERPLATE 8208 8209 # Allow CC to be a program name with arguments. 8210 lt_save_CC=$CC 8211 lt_save_CFLAGS=$CFLAGS 8212 lt_save_LD=$LD 8213 lt_save_GCC=$GCC 8214 GCC=$GXX 8215 lt_save_with_gnu_ld=$with_gnu_ld 8216 lt_save_path_LD=$lt_cv_path_LD 8217 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 8218 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 8219 else 8220 $as_unset lt_cv_prog_gnu_ld 8221 fi 8222 if test -n "${lt_cv_path_LDCXX+set}"; then 8223 lt_cv_path_LD=$lt_cv_path_LDCXX 8224 else 8225 $as_unset lt_cv_path_LD 8226 fi 8227 test -z "${LDCXX+set}" || LD=$LDCXX 8228 CC=${CXX-"c++"} 8229 CFLAGS=$CXXFLAGS 8230 compiler=$CC 8231 _LT_TAGVAR(compiler, $1)=$CC 8232 _LT_CC_BASENAME([$compiler]) 8233 8234 if test -n "$compiler"; then 8235 # We don't want -fno-exception when compiling C++ code, so set the 8236 # no_builtin_flag separately 8237 if test yes = "$GXX"; then 8238 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 8239 else 8240 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 8241 fi 8242 8243 if test yes = "$GXX"; then 8244 # Set up default GNU C++ configuration 8245 8246 LT_PATH_LD 8247 8248 # Check if GNU C++ uses GNU ld as the underlying linker, since the 8249 # archiving commands below assume that GNU ld is being used. 8250 if test yes = "$with_gnu_ld"; then 8251 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 8252 _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' 8253 8254 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 8255 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 8256 8257 # If archive_cmds runs LD, not CC, wlarc should be empty 8258 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 8259 # investigate it a little bit more. (MM) 8260 wlarc='$wl' 8261 8262 # ancient GNU ld didn't support --whole-archive et. al. 8263 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 8264 $GREP 'no-whole-archive' > /dev/null; then 8265 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 8266 else 8267 _LT_TAGVAR(whole_archive_flag_spec, $1)= 8268 fi 8269 else 8270 with_gnu_ld=no 8271 wlarc= 8272 8273 # A generic and very simple default shared library creation 8274 # command for GNU C++ for the case where it uses the native 8275 # linker, instead of GNU ld. If possible, this setting should 8276 # overridden to take advantage of the native linker features on 8277 # the platform it is being used on. 8278 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 8279 fi 8280 8281 # Commands to make compiler produce verbose output that lists 8282 # what "hidden" libraries, object files and flags are used when 8283 # linking a shared library. 8284 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 8285 8286 else 8287 GXX=no 8288 with_gnu_ld=no 8289 wlarc= 8290 fi 8291 8292 # PORTME: fill in a description of your system's C++ link characteristics 8293 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 8294 _LT_TAGVAR(ld_shlibs, $1)=yes 8295 case $host_os in 8296 aix3*) 8297 # FIXME: insert proper C++ library support 8298 _LT_TAGVAR(ld_shlibs, $1)=no 8299 ;; 8300 aix[[4-9]]*) 8301 if test ia64 = "$host_cpu"; then 8302 # On IA64, the linker does run time linking by default, so we don't 8303 # have to do anything special. 8304 aix_use_runtimelinking=no 8305 exp_sym_flag='-Bexport' 8306 no_entry_flag= 8307 else 8308 aix_use_runtimelinking=no 8309 8310 # Test if we are trying to use run time linking or normal 8311 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8312 # have runtime linking enabled, and use it for executables. 8313 # For shared libraries, we enable/disable runtime linking 8314 # depending on the kind of the shared library created - 8315 # when "with_aix_soname,aix_use_runtimelinking" is: 8316 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 8317 # "aix,yes" lib.so shared, rtl:yes, for executables 8318 # lib.a static archive 8319 # "both,no" lib.so.V(shr.o) shared, rtl:yes 8320 # lib.a(lib.so.V) shared, rtl:no, for executables 8321 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 8322 # lib.a(lib.so.V) shared, rtl:no 8323 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 8324 # lib.a static archive 8325 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 8326 for ld_flag in $LDFLAGS; do 8327 case $ld_flag in 8328 *-brtl*) 8329 aix_use_runtimelinking=yes 8330 break 8331 ;; 8332 esac 8333 done 8334 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 8335 # With aix-soname=svr4, we create the lib.so.V shared archives only, 8336 # so we don't have lib.a shared libs to link our executables. 8337 # We have to force runtime linking in this case. 8338 aix_use_runtimelinking=yes 8339 LDFLAGS="$LDFLAGS -Wl,-brtl" 8340 fi 8341 ;; 8342 esac 8343 8344 exp_sym_flag='-bexport' 8345 no_entry_flag='-bnoentry' 8346 fi 8347 8348 # When large executables or shared objects are built, AIX ld can 8349 # have problems creating the table of contents. If linking a library 8350 # or program results in "error TOC overflow" add -mminimal-toc to 8351 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8352 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8353 8354 _LT_TAGVAR(archive_cmds, $1)='' 8355 _LT_TAGVAR(hardcode_direct, $1)=yes 8356 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 8357 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 8358 _LT_TAGVAR(link_all_deplibs, $1)=yes 8359 _LT_TAGVAR(file_list_spec, $1)='$wl-f,' 8360 case $with_aix_soname,$aix_use_runtimelinking in 8361 aix,*) ;; # no import file 8362 svr4,* | *,yes) # use import file 8363 # The Import File defines what to hardcode. 8364 _LT_TAGVAR(hardcode_direct, $1)=no 8365 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 8366 ;; 8367 esac 8368 8369 if test yes = "$GXX"; then 8370 case $host_os in aix4.[[012]]|aix4.[[012]].*) 8371 # We only want to do this on AIX 4.2 and lower, the check 8372 # below for broken collect2 doesn't work under 4.3+ 8373 collect2name=`$CC -print-prog-name=collect2` 8374 if test -f "$collect2name" && 8375 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8376 then 8377 # We have reworked collect2 8378 : 8379 else 8380 # We have old collect2 8381 _LT_TAGVAR(hardcode_direct, $1)=unsupported 8382 # It fails to find uninstalled libraries when the uninstalled 8383 # path is not listed in the libpath. Setting hardcode_minus_L 8384 # to unsupported forces relinking 8385 _LT_TAGVAR(hardcode_minus_L, $1)=yes 8386 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 8387 _LT_TAGVAR(hardcode_libdir_separator, $1)= 8388 fi 8389 esac 8390 shared_flag='-shared' 8391 if test yes = "$aix_use_runtimelinking"; then 8392 shared_flag=$shared_flag' $wl-G' 8393 fi 8394 # Need to ensure runtime linking is disabled for the traditional 8395 # shared library, or the linker may eventually find shared libraries 8396 # /with/ Import File - we do not want to mix them. 8397 shared_flag_aix='-shared' 8398 shared_flag_svr4='-shared $wl-G' 8399 else 8400 # not using gcc 8401 if test ia64 = "$host_cpu"; then 8402 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8403 # chokes on -Wl,-G. The following line is correct: 8404 shared_flag='-G' 8405 else 8406 if test yes = "$aix_use_runtimelinking"; then 8407 shared_flag='$wl-G' 8408 else 8409 shared_flag='$wl-bM:SRE' 8410 fi 8411 shared_flag_aix='$wl-bM:SRE' 8412 shared_flag_svr4='$wl-G' 8413 fi 8414 fi 8415 8416 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' 8417 # It seems that -bexpall does not export symbols beginning with 8418 # underscore (_), so it is better to generate a list of symbols to 8419 # export. 8420 _LT_TAGVAR(always_export_symbols, $1)=yes 8421 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 8422 # Warning - without using the other runtime loading flags (-brtl), 8423 # -berok will link without error, but may produce a broken library. 8424 # The "-G" linker flag allows undefined symbols. 8425 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok' 8426 # Determine the default libpath from the value encoded in an empty 8427 # executable. 8428 _LT_SYS_MODULE_PATH_AIX([$1]) 8429 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 8430 8431 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 8432 else 8433 if test ia64 = "$host_cpu"; then 8434 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' 8435 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 8436 _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" 8437 else 8438 # Determine the default libpath from the value encoded in an 8439 # empty executable. 8440 _LT_SYS_MODULE_PATH_AIX([$1]) 8441 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 8442 # Warning - without using the other run time loading flags, 8443 # -berok will link without error, but may produce a broken library. 8444 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' 8445 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' 8446 if test yes = "$with_gnu_ld"; then 8447 # We only use this code for GNU lds that support --whole-archive. 8448 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 8449 else 8450 # Exported symbols can be pulled into shared objects from archives 8451 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 8452 fi 8453 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 8454 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 8455 # -brtl affects multiple linker settings, -berok does not and is overridden later 8456 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' 8457 if test svr4 != "$with_aix_soname"; then 8458 # This is similar to how AIX traditionally builds its shared 8459 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 8460 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 8461 fi 8462 if test aix != "$with_aix_soname"; then 8463 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 8464 else 8465 # used by -dlpreopen to get the symbols 8466 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 8467 fi 8468 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' 8469 fi 8470 fi 8471 ;; 8472 8473 beos*) 8474 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8475 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 8476 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8477 # support --undefined. This deserves some investigation. FIXME 8478 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8479 else 8480 _LT_TAGVAR(ld_shlibs, $1)=no 8481 fi 8482 ;; 8483 8484 chorus*) 8485 case $cc_basename in 8486 *) 8487 # FIXME: insert proper C++ library support 8488 _LT_TAGVAR(ld_shlibs, $1)=no 8489 ;; 8490 esac 8491 ;; 8492 8493 cygwin* | mingw* | pw32* | cegcc*) 8494 case $GXX,$cc_basename in 8495 ,cl* | no,cl*) 8496 # Native MSVC 8497 # hardcode_libdir_flag_spec is actually meaningless, as there is 8498 # no search path for DLLs. 8499 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 8500 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 8501 _LT_TAGVAR(always_export_symbols, $1)=yes 8502 _LT_TAGVAR(file_list_spec, $1)='@' 8503 # Tell ltmain to make .lib files, not .a files. 8504 libext=lib 8505 # Tell ltmain to make .dll files, not .so files. 8506 shrext_cmds=.dll 8507 # FIXME: Setting linknames here is a bad hack. 8508 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 8509 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 8510 cp "$export_symbols" "$output_objdir/$soname.def"; 8511 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 8512 else 8513 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 8514 fi~ 8515 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 8516 linknames=' 8517 # The linker will not automatically build a static lib if we build a DLL. 8518 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 8519 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 8520 # Don't use ranlib 8521 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 8522 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 8523 lt_tool_outputfile="@TOOL_OUTPUT@"~ 8524 case $lt_outputfile in 8525 *.exe|*.EXE) ;; 8526 *) 8527 lt_outputfile=$lt_outputfile.exe 8528 lt_tool_outputfile=$lt_tool_outputfile.exe 8529 ;; 8530 esac~ 8531 func_to_tool_file "$lt_outputfile"~ 8532 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 8533 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 8534 $RM "$lt_outputfile.manifest"; 8535 fi' 8536 ;; 8537 *) 8538 # g++ 8539 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 8540 # as there is no search path for DLLs. 8541 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 8542 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' 8543 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 8544 _LT_TAGVAR(always_export_symbols, $1)=no 8545 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 8546 8547 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8548 _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' 8549 # If the export-symbols file already is a .def file, use it as 8550 # is; otherwise, prepend EXPORTS... 8551 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 8552 cp $export_symbols $output_objdir/$soname.def; 8553 else 8554 echo EXPORTS > $output_objdir/$soname.def; 8555 cat $export_symbols >> $output_objdir/$soname.def; 8556 fi~ 8557 $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' 8558 else 8559 _LT_TAGVAR(ld_shlibs, $1)=no 8560 fi 8561 ;; 8562 esac 8563 ;; 8564 darwin* | rhapsody*) 8565 _LT_DARWIN_LINKER_FEATURES($1) 8566 ;; 8567 8568 os2*) 8569 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 8570 _LT_TAGVAR(hardcode_minus_L, $1)=yes 8571 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 8572 shrext_cmds=.dll 8573 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 8574 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 8575 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 8576 $ECHO EXPORTS >> $output_objdir/$libname.def~ 8577 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 8578 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 8579 emximp -o $lib $output_objdir/$libname.def' 8580 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 8581 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 8582 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 8583 $ECHO EXPORTS >> $output_objdir/$libname.def~ 8584 prefix_cmds="$SED"~ 8585 if test EXPORTS = "`$SED 1q $export_symbols`"; then 8586 prefix_cmds="$prefix_cmds -e 1d"; 8587 fi~ 8588 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 8589 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 8590 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 8591 emximp -o $lib $output_objdir/$libname.def' 8592 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 8593 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 8594 ;; 8595 8596 dgux*) 8597 case $cc_basename in 8598 ec++*) 8599 # FIXME: insert proper C++ library support 8600 _LT_TAGVAR(ld_shlibs, $1)=no 8601 ;; 8602 ghcx*) 8603 # Green Hills C++ Compiler 8604 # FIXME: insert proper C++ library support 8605 _LT_TAGVAR(ld_shlibs, $1)=no 8606 ;; 8607 *) 8608 # FIXME: insert proper C++ library support 8609 _LT_TAGVAR(ld_shlibs, $1)=no 8610 ;; 8611 esac 8612 ;; 8613 8614 freebsd2.*) 8615 # C++ shared libraries reported to be fairly broken before 8616 # switch to ELF 8617 _LT_TAGVAR(ld_shlibs, $1)=no 8618 ;; 8619 8620 freebsd-elf*) 8621 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 8622 ;; 8623 8624 freebsd* | dragonfly*) 8625 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 8626 # conventions 8627 _LT_TAGVAR(ld_shlibs, $1)=yes 8628 ;; 8629 8630 haiku*) 8631 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8632 _LT_TAGVAR(link_all_deplibs, $1)=yes 8633 ;; 8634 8635 hpux9*) 8636 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 8637 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8638 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 8639 _LT_TAGVAR(hardcode_direct, $1)=yes 8640 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 8641 # but as the default 8642 # location of the library. 8643 8644 case $cc_basename in 8645 CC*) 8646 # FIXME: insert proper C++ library support 8647 _LT_TAGVAR(ld_shlibs, $1)=no 8648 ;; 8649 aCC*) 8650 _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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 8651 # Commands to make compiler produce verbose output that lists 8652 # what "hidden" libraries, object files and flags are used when 8653 # linking a shared library. 8654 # 8655 # There doesn't appear to be a way to prevent this compiler from 8656 # explicitly linking system object files so we need to strip them 8657 # from the output so that they don't get included in the library 8658 # dependencies. 8659 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"' 8660 ;; 8661 *) 8662 if test yes = "$GXX"; then 8663 _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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 8664 else 8665 # FIXME: insert proper C++ library support 8666 _LT_TAGVAR(ld_shlibs, $1)=no 8667 fi 8668 ;; 8669 esac 8670 ;; 8671 8672 hpux10*|hpux11*) 8673 if test no = "$with_gnu_ld"; then 8674 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 8675 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8676 8677 case $host_cpu in 8678 hppa*64*|ia64*) 8679 ;; 8680 *) 8681 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 8682 ;; 8683 esac 8684 fi 8685 case $host_cpu in 8686 hppa*64*|ia64*) 8687 _LT_TAGVAR(hardcode_direct, $1)=no 8688 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8689 ;; 8690 *) 8691 _LT_TAGVAR(hardcode_direct, $1)=yes 8692 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 8693 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 8694 # but as the default 8695 # location of the library. 8696 ;; 8697 esac 8698 8699 case $cc_basename in 8700 CC*) 8701 # FIXME: insert proper C++ library support 8702 _LT_TAGVAR(ld_shlibs, $1)=no 8703 ;; 8704 aCC*) 8705 case $host_cpu in 8706 hppa*64*) 8707 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8708 ;; 8709 ia64*) 8710 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8711 ;; 8712 *) 8713 _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' 8714 ;; 8715 esac 8716 # Commands to make compiler produce verbose output that lists 8717 # what "hidden" libraries, object files and flags are used when 8718 # linking a shared library. 8719 # 8720 # There doesn't appear to be a way to prevent this compiler from 8721 # explicitly linking system object files so we need to strip them 8722 # from the output so that they don't get included in the library 8723 # dependencies. 8724 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"' 8725 ;; 8726 *) 8727 if test yes = "$GXX"; then 8728 if test no = "$with_gnu_ld"; then 8729 case $host_cpu in 8730 hppa*64*) 8731 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8732 ;; 8733 ia64*) 8734 _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' 8735 ;; 8736 *) 8737 _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' 8738 ;; 8739 esac 8740 fi 8741 else 8742 # FIXME: insert proper C++ library support 8743 _LT_TAGVAR(ld_shlibs, $1)=no 8744 fi 8745 ;; 8746 esac 8747 ;; 8748 8749 interix[[3-9]]*) 8750 _LT_TAGVAR(hardcode_direct, $1)=no 8751 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8752 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 8753 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 8754 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8755 # Instead, shared libraries are loaded at an image base (0x10000000 by 8756 # default) and relocated if they conflict, which is a slow very memory 8757 # consuming and fragmenting process. To avoid this, we pick a random, 8758 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8759 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8760 _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' 8761 _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' 8762 ;; 8763 irix5* | irix6*) 8764 case $cc_basename in 8765 CC*) 8766 # SGI C++ 8767 _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' 8768 8769 # Archives containing C++ object files must be created using 8770 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 8771 # necessary to make sure instantiated templates are included 8772 # in the archive. 8773 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 8774 ;; 8775 *) 8776 if test yes = "$GXX"; then 8777 if test no = "$with_gnu_ld"; then 8778 _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' 8779 else 8780 _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' 8781 fi 8782 fi 8783 _LT_TAGVAR(link_all_deplibs, $1)=yes 8784 ;; 8785 esac 8786 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 8787 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8788 _LT_TAGVAR(inherit_rpath, $1)=yes 8789 ;; 8790 8791 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8792 case $cc_basename in 8793 KCC*) 8794 # Kuck and Associates, Inc. (KAI) C++ Compiler 8795 8796 # KCC will only create a shared library if the output file 8797 # ends with ".so" (or ".sl" for HP-UX), so rename the library 8798 # to its proper name (with version) after linking. 8799 _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' 8800 _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' 8801 # Commands to make compiler produce verbose output that lists 8802 # what "hidden" libraries, object files and flags are used when 8803 # linking a shared library. 8804 # 8805 # There doesn't appear to be a way to prevent this compiler from 8806 # explicitly linking system object files so we need to strip them 8807 # from the output so that they don't get included in the library 8808 # dependencies. 8809 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"' 8810 8811 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 8812 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 8813 8814 # Archives containing C++ object files must be created using 8815 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 8816 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 8817 ;; 8818 icpc* | ecpc* ) 8819 # Intel C++ 8820 with_gnu_ld=yes 8821 # version 8.0 and above of icpc choke on multiply defined symbols 8822 # if we add $predep_objects and $postdep_objects, however 7.1 and 8823 # earlier do not add the objects themselves. 8824 case `$CC -V 2>&1` in 8825 *"Version 7."*) 8826 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 8827 _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' 8828 ;; 8829 *) # Version 8.0 or newer 8830 tmp_idyn= 8831 case $host_cpu in 8832 ia64*) tmp_idyn=' -i_dynamic';; 8833 esac 8834 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8835 _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' 8836 ;; 8837 esac 8838 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 8839 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 8840 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 8841 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 8842 ;; 8843 pgCC* | pgcpp*) 8844 # Portland Group C++ compiler 8845 case `$CC -V` in 8846 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) 8847 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 8848 rm -rf $tpldir~ 8849 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 8850 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 8851 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 8852 rm -rf $tpldir~ 8853 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 8854 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 8855 $RANLIB $oldlib' 8856 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 8857 rm -rf $tpldir~ 8858 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 8859 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 8860 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 8861 rm -rf $tpldir~ 8862 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 8863 $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' 8864 ;; 8865 *) # Version 6 and above use weak symbols 8866 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 8867 _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' 8868 ;; 8869 esac 8870 8871 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir' 8872 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 8873 _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' 8874 ;; 8875 cxx*) 8876 # Compaq C++ 8877 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 8878 _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' 8879 8880 runpath_var=LD_RUN_PATH 8881 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 8882 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8883 8884 # Commands to make compiler produce verbose output that lists 8885 # what "hidden" libraries, object files and flags are used when 8886 # linking a shared library. 8887 # 8888 # There doesn't appear to be a way to prevent this compiler from 8889 # explicitly linking system object files so we need to strip them 8890 # from the output so that they don't get included in the library 8891 # dependencies. 8892 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' 8893 ;; 8894 xl* | mpixl* | bgxl*) 8895 # IBM XL 8.0 on PPC, with GNU ld 8896 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 8897 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 8898 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8899 if test yes = "$supports_anon_versioning"; then 8900 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 8901 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8902 echo "local: *; };" >> $output_objdir/$libname.ver~ 8903 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 8904 fi 8905 ;; 8906 *) 8907 case `$CC -V 2>&1 | sed 5q` in 8908 *Sun\ C*) 8909 # Sun C++ 5.9 8910 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 8911 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8912 _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' 8913 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 8914 _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' 8915 _LT_TAGVAR(compiler_needs_object, $1)=yes 8916 8917 # Not sure whether something based on 8918 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 8919 # would be better. 8920 output_verbose_link_cmd='func_echo_all' 8921 8922 # Archives containing C++ object files must be created using 8923 # "CC -xar", where "CC" is the Sun C++ compiler. This is 8924 # necessary to make sure instantiated templates are included 8925 # in the archive. 8926 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 8927 ;; 8928 esac 8929 ;; 8930 esac 8931 ;; 8932 8933 lynxos*) 8934 # FIXME: insert proper C++ library support 8935 _LT_TAGVAR(ld_shlibs, $1)=no 8936 ;; 8937 8938 m88k*) 8939 # FIXME: insert proper C++ library support 8940 _LT_TAGVAR(ld_shlibs, $1)=no 8941 ;; 8942 8943 mvs*) 8944 case $cc_basename in 8945 cxx*) 8946 # FIXME: insert proper C++ library support 8947 _LT_TAGVAR(ld_shlibs, $1)=no 8948 ;; 8949 *) 8950 # FIXME: insert proper C++ library support 8951 _LT_TAGVAR(ld_shlibs, $1)=no 8952 ;; 8953 esac 8954 ;; 8955 8956 netbsd*) 8957 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8958 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 8959 wlarc= 8960 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 8961 _LT_TAGVAR(hardcode_direct, $1)=yes 8962 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8963 fi 8964 # Workaround some broken pre-1.5 toolchains 8965 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 8966 ;; 8967 8968 *nto* | *qnx*) 8969 _LT_TAGVAR(ld_shlibs, $1)=yes 8970 ;; 8971 8972 openbsd* | bitrig*) 8973 if test -f /usr/libexec/ld.so; then 8974 _LT_TAGVAR(hardcode_direct, $1)=yes 8975 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8976 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 8977 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 8978 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 8979 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 8980 _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' 8981 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 8982 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 8983 fi 8984 output_verbose_link_cmd=func_echo_all 8985 else 8986 _LT_TAGVAR(ld_shlibs, $1)=no 8987 fi 8988 ;; 8989 8990 osf3* | osf4* | osf5*) 8991 case $cc_basename in 8992 KCC*) 8993 # Kuck and Associates, Inc. (KAI) C++ Compiler 8994 8995 # KCC will only create a shared library if the output file 8996 # ends with ".so" (or ".sl" for HP-UX), so rename the library 8997 # to its proper name (with version) after linking. 8998 _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' 8999 9000 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 9001 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 9002 9003 # Archives containing C++ object files must be created using 9004 # the KAI C++ compiler. 9005 case $host in 9006 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; 9007 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; 9008 esac 9009 ;; 9010 RCC*) 9011 # Rational C++ 2.4.1 9012 # FIXME: insert proper C++ library support 9013 _LT_TAGVAR(ld_shlibs, $1)=no 9014 ;; 9015 cxx*) 9016 case $host in 9017 osf3*) 9018 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 9019 _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' 9020 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 9021 ;; 9022 *) 9023 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 9024 _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' 9025 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 9026 echo "-hidden">> $lib.exp~ 9027 $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~ 9028 $RM $lib.exp' 9029 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 9030 ;; 9031 esac 9032 9033 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 9034 9035 # Commands to make compiler produce verbose output that lists 9036 # what "hidden" libraries, object files and flags are used when 9037 # linking a shared library. 9038 # 9039 # There doesn't appear to be a way to prevent this compiler from 9040 # explicitly linking system object files so we need to strip them 9041 # from the output so that they don't get included in the library 9042 # dependencies. 9043 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"' 9044 ;; 9045 *) 9046 if test yes,no = "$GXX,$with_gnu_ld"; then 9047 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 9048 case $host in 9049 osf3*) 9050 _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' 9051 ;; 9052 *) 9053 _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' 9054 ;; 9055 esac 9056 9057 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 9058 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 9059 9060 # Commands to make compiler produce verbose output that lists 9061 # what "hidden" libraries, object files and flags are used when 9062 # linking a shared library. 9063 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 9064 9065 else 9066 # FIXME: insert proper C++ library support 9067 _LT_TAGVAR(ld_shlibs, $1)=no 9068 fi 9069 ;; 9070 esac 9071 ;; 9072 9073 psos*) 9074 # FIXME: insert proper C++ library support 9075 _LT_TAGVAR(ld_shlibs, $1)=no 9076 ;; 9077 9078 sunos4*) 9079 case $cc_basename in 9080 CC*) 9081 # Sun C++ 4.x 9082 # FIXME: insert proper C++ library support 9083 _LT_TAGVAR(ld_shlibs, $1)=no 9084 ;; 9085 lcc*) 9086 # Lucid 9087 # FIXME: insert proper C++ library support 9088 _LT_TAGVAR(ld_shlibs, $1)=no 9089 ;; 9090 *) 9091 # FIXME: insert proper C++ library support 9092 _LT_TAGVAR(ld_shlibs, $1)=no 9093 ;; 9094 esac 9095 ;; 9096 9097 solaris*) 9098 case $cc_basename in 9099 CC* | sunCC*) 9100 # Sun C++ 4.2, 5.x and Centerline C++ 9101 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 9102 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 9103 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 9104 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9105 $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' 9106 9107 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 9108 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9109 case $host_os in 9110 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 9111 *) 9112 # The compiler driver will combine and reorder linker options, 9113 # but understands '-z linker_flag'. 9114 # Supported since Solaris 2.6 (maybe 2.5.1?) 9115 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 9116 ;; 9117 esac 9118 _LT_TAGVAR(link_all_deplibs, $1)=yes 9119 9120 output_verbose_link_cmd='func_echo_all' 9121 9122 # Archives containing C++ object files must be created using 9123 # "CC -xar", where "CC" is the Sun C++ compiler. This is 9124 # necessary to make sure instantiated templates are included 9125 # in the archive. 9126 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 9127 ;; 9128 gcx*) 9129 # Green Hills C++ Compiler 9130 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 9131 9132 # The C++ compiler must be used to create the archive. 9133 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 9134 ;; 9135 *) 9136 # GNU C++ compiler with Solaris linker 9137 if test yes,no = "$GXX,$with_gnu_ld"; then 9138 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs' 9139 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 9140 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 9141 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9142 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 9143 9144 # Commands to make compiler produce verbose output that lists 9145 # what "hidden" libraries, object files and flags are used when 9146 # linking a shared library. 9147 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 9148 else 9149 # g++ 2.7 appears to require '-G' NOT '-shared' on this 9150 # platform. 9151 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 9152 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9153 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 9154 9155 # Commands to make compiler produce verbose output that lists 9156 # what "hidden" libraries, object files and flags are used when 9157 # linking a shared library. 9158 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 9159 fi 9160 9161 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' 9162 case $host_os in 9163 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 9164 *) 9165 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 9166 ;; 9167 esac 9168 fi 9169 ;; 9170 esac 9171 ;; 9172 9173 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 9174 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 9175 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 9176 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9177 runpath_var='LD_RUN_PATH' 9178 9179 case $cc_basename in 9180 CC*) 9181 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9182 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9183 ;; 9184 *) 9185 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9186 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9187 ;; 9188 esac 9189 ;; 9190 9191 sysv5* | sco3.2v5* | sco5v6*) 9192 # Note: We CANNOT use -z defs as we might desire, because we do not 9193 # link with -lc, and that would cause any symbols used from libc to 9194 # always be unresolved, which means just about no library would 9195 # ever link correctly. If we're not using GNU ld we use -z text 9196 # though, which does catch some bad symbols but isn't as heavy-handed 9197 # as -z defs. 9198 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 9199 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' 9200 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 9201 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9202 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' 9203 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 9204 _LT_TAGVAR(link_all_deplibs, $1)=yes 9205 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' 9206 runpath_var='LD_RUN_PATH' 9207 9208 case $cc_basename in 9209 CC*) 9210 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9211 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9212 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ 9213 '"$_LT_TAGVAR(old_archive_cmds, $1)" 9214 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ 9215 '"$_LT_TAGVAR(reload_cmds, $1)" 9216 ;; 9217 *) 9218 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9219 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9220 ;; 9221 esac 9222 ;; 9223 9224 tandem*) 9225 case $cc_basename in 9226 NCC*) 9227 # NonStop-UX NCC 3.20 9228 # FIXME: insert proper C++ library support 9229 _LT_TAGVAR(ld_shlibs, $1)=no 9230 ;; 9231 *) 9232 # FIXME: insert proper C++ library support 9233 _LT_TAGVAR(ld_shlibs, $1)=no 9234 ;; 9235 esac 9236 ;; 9237 9238 vxworks*) 9239 # FIXME: insert proper C++ library support 9240 _LT_TAGVAR(ld_shlibs, $1)=no 9241 ;; 9242 9243 *) 9244 # FIXME: insert proper C++ library support 9245 _LT_TAGVAR(ld_shlibs, $1)=no 9246 ;; 9247 esac 9248 9249 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 9250 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no 9251 9252 _LT_TAGVAR(GCC, $1)=$GXX 9253 _LT_TAGVAR(LD, $1)=$LD 9254 9255 ## CAVEAT EMPTOR: 9256 ## There is no encapsulation within the following macros, do not change 9257 ## the running order or otherwise move them around unless you know exactly 9258 ## what you are doing... 9259 _LT_SYS_HIDDEN_LIBDEPS($1) 9260 _LT_COMPILER_PIC($1) 9261 _LT_COMPILER_C_O($1) 9262 _LT_COMPILER_FILE_LOCKS($1) 9263 _LT_LINKER_SHLIBS($1) 9264 _LT_SYS_DYNAMIC_LINKER($1) 9265 _LT_LINKER_HARDCODE_LIBPATH($1) 9266 9267 _LT_CONFIG($1) 9268 fi # test -n "$compiler" 9269 9270 CC=$lt_save_CC 9271 CFLAGS=$lt_save_CFLAGS 9272 LDCXX=$LD 9273 LD=$lt_save_LD 9274 GCC=$lt_save_GCC 9275 with_gnu_ld=$lt_save_with_gnu_ld 9276 lt_cv_path_LDCXX=$lt_cv_path_LD 9277 lt_cv_path_LD=$lt_save_path_LD 9278 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 9279 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 9280fi # test yes != "$_lt_caught_CXX_error" 9281 9282AC_LANG_POP 9283])# _LT_LANG_CXX_CONFIG 9284 9285 9286# _LT_FUNC_STRIPNAME_CNF 9287# ---------------------- 9288# func_stripname_cnf prefix suffix name 9289# strip PREFIX and SUFFIX off of NAME. 9290# PREFIX and SUFFIX must not contain globbing or regex special 9291# characters, hashes, percent signs, but SUFFIX may contain a leading 9292# dot (in which case that matches only a dot). 9293# 9294# This function is identical to the (non-XSI) version of func_stripname, 9295# except this one can be used by m4 code that may be executed by configure, 9296# rather than the libtool script. 9297m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl 9298AC_REQUIRE([_LT_DECL_SED]) 9299AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) 9300func_stripname_cnf () 9301{ 9302 case @S|@2 in 9303 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; 9304 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; 9305 esac 9306} # func_stripname_cnf 9307])# _LT_FUNC_STRIPNAME_CNF 9308 9309 9310# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 9311# --------------------------------- 9312# Figure out "hidden" library dependencies from verbose 9313# compiler output when linking a shared library. 9314# Parse the compiler output and extract the necessary 9315# objects, libraries and library flags. 9316m4_defun([_LT_SYS_HIDDEN_LIBDEPS], 9317[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 9318AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl 9319# Dependencies to place before and after the object being linked: 9320_LT_TAGVAR(predep_objects, $1)= 9321_LT_TAGVAR(postdep_objects, $1)= 9322_LT_TAGVAR(predeps, $1)= 9323_LT_TAGVAR(postdeps, $1)= 9324_LT_TAGVAR(compiler_lib_search_path, $1)= 9325 9326dnl we can't use the lt_simple_compile_test_code here, 9327dnl because it contains code intended for an executable, 9328dnl not a library. It's possible we should let each 9329dnl tag define a new lt_????_link_test_code variable, 9330dnl but it's only used here... 9331m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF 9332int a; 9333void foo (void) { a = 0; } 9334_LT_EOF 9335], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF 9336class Foo 9337{ 9338public: 9339 Foo (void) { a = 0; } 9340private: 9341 int a; 9342}; 9343_LT_EOF 9344], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF 9345 subroutine foo 9346 implicit none 9347 integer*4 a 9348 a=0 9349 return 9350 end 9351_LT_EOF 9352], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF 9353 subroutine foo 9354 implicit none 9355 integer a 9356 a=0 9357 return 9358 end 9359_LT_EOF 9360], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF 9361public class foo { 9362 private int a; 9363 public void bar (void) { 9364 a = 0; 9365 } 9366}; 9367_LT_EOF 9368], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF 9369package foo 9370func foo() { 9371} 9372_LT_EOF 9373]) 9374 9375_lt_libdeps_save_CFLAGS=$CFLAGS 9376case "$CC $CFLAGS " in #( 9377*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 9378*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 9379*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 9380esac 9381 9382dnl Parse the compiler output and extract the necessary 9383dnl objects, libraries and library flags. 9384if AC_TRY_EVAL(ac_compile); then 9385 # Parse the compiler output and extract the necessary 9386 # objects, libraries and library flags. 9387 9388 # Sentinel used to keep track of whether or not we are before 9389 # the conftest object file. 9390 pre_test_object_deps_done=no 9391 9392 for p in `eval "$output_verbose_link_cmd"`; do 9393 case $prev$p in 9394 9395 -L* | -R* | -l*) 9396 # Some compilers place space between "-{L,R}" and the path. 9397 # Remove the space. 9398 if test x-L = "$p" || 9399 test x-R = "$p"; then 9400 prev=$p 9401 continue 9402 fi 9403 9404 # Expand the sysroot to ease extracting the directories later. 9405 if test -z "$prev"; then 9406 case $p in 9407 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 9408 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 9409 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 9410 esac 9411 fi 9412 case $p in 9413 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 9414 esac 9415 if test no = "$pre_test_object_deps_done"; then 9416 case $prev in 9417 -L | -R) 9418 # Internal compiler library paths should come after those 9419 # provided the user. The postdeps already come after the 9420 # user supplied libs so there is no need to process them. 9421 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then 9422 _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p 9423 else 9424 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p" 9425 fi 9426 ;; 9427 # The "-l" case would never come before the object being 9428 # linked, so don't bother handling this case. 9429 esac 9430 else 9431 if test -z "$_LT_TAGVAR(postdeps, $1)"; then 9432 _LT_TAGVAR(postdeps, $1)=$prev$p 9433 else 9434 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p" 9435 fi 9436 fi 9437 prev= 9438 ;; 9439 9440 *.lto.$objext) ;; # Ignore GCC LTO objects 9441 *.$objext) 9442 # This assumes that the test object file only shows up 9443 # once in the compiler output. 9444 if test "$p" = "conftest.$objext"; then 9445 pre_test_object_deps_done=yes 9446 continue 9447 fi 9448 9449 if test no = "$pre_test_object_deps_done"; then 9450 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then 9451 _LT_TAGVAR(predep_objects, $1)=$p 9452 else 9453 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" 9454 fi 9455 else 9456 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then 9457 _LT_TAGVAR(postdep_objects, $1)=$p 9458 else 9459 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" 9460 fi 9461 fi 9462 ;; 9463 9464 *) ;; # Ignore the rest. 9465 9466 esac 9467 done 9468 9469 # Clean up. 9470 rm -f a.out a.exe 9471else 9472 echo "libtool.m4: error: problem compiling $1 test program" 9473fi 9474 9475$RM -f confest.$objext 9476CFLAGS=$_lt_libdeps_save_CFLAGS 9477 9478# PORTME: override above test on systems where it is broken 9479m4_if([$1], [CXX], 9480[case $host_os in 9481interix[[3-9]]*) 9482 # Interix 3.5 installs completely hosed .la files for C++, so rather than 9483 # hack all around it, let's just trust "g++" to DTRT. 9484 _LT_TAGVAR(predep_objects,$1)= 9485 _LT_TAGVAR(postdep_objects,$1)= 9486 _LT_TAGVAR(postdeps,$1)= 9487 ;; 9488esac 9489]) 9490 9491case " $_LT_TAGVAR(postdeps, $1) " in 9492*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; 9493esac 9494 _LT_TAGVAR(compiler_lib_search_dirs, $1)= 9495if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then 9496 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'` 9497fi 9498_LT_TAGDECL([], [compiler_lib_search_dirs], [1], 9499 [The directories searched by this compiler when creating a shared library]) 9500_LT_TAGDECL([], [predep_objects], [1], 9501 [Dependencies to place before and after the objects being linked to 9502 create a shared library]) 9503_LT_TAGDECL([], [postdep_objects], [1]) 9504_LT_TAGDECL([], [predeps], [1]) 9505_LT_TAGDECL([], [postdeps], [1]) 9506_LT_TAGDECL([], [compiler_lib_search_path], [1], 9507 [The library search path used internally by the compiler when linking 9508 a shared library]) 9509])# _LT_SYS_HIDDEN_LIBDEPS 9510 9511 9512# _LT_LANG_F77_CONFIG([TAG]) 9513# -------------------------- 9514# Ensure that the configuration variables for a Fortran 77 compiler are 9515# suitably defined. These variables are subsequently used by _LT_CONFIG 9516# to write the compiler configuration to 'libtool'. 9517m4_defun([_LT_LANG_F77_CONFIG], 9518[AC_LANG_PUSH(Fortran 77) 9519if test -z "$F77" || test no = "$F77"; then 9520 _lt_disable_F77=yes 9521fi 9522 9523_LT_TAGVAR(archive_cmds_need_lc, $1)=no 9524_LT_TAGVAR(allow_undefined_flag, $1)= 9525_LT_TAGVAR(always_export_symbols, $1)=no 9526_LT_TAGVAR(archive_expsym_cmds, $1)= 9527_LT_TAGVAR(export_dynamic_flag_spec, $1)= 9528_LT_TAGVAR(hardcode_direct, $1)=no 9529_LT_TAGVAR(hardcode_direct_absolute, $1)=no 9530_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 9531_LT_TAGVAR(hardcode_libdir_separator, $1)= 9532_LT_TAGVAR(hardcode_minus_L, $1)=no 9533_LT_TAGVAR(hardcode_automatic, $1)=no 9534_LT_TAGVAR(inherit_rpath, $1)=no 9535_LT_TAGVAR(module_cmds, $1)= 9536_LT_TAGVAR(module_expsym_cmds, $1)= 9537_LT_TAGVAR(link_all_deplibs, $1)=unknown 9538_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 9539_LT_TAGVAR(reload_flag, $1)=$reload_flag 9540_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 9541_LT_TAGVAR(no_undefined_flag, $1)= 9542_LT_TAGVAR(whole_archive_flag_spec, $1)= 9543_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 9544 9545# Source file extension for f77 test sources. 9546ac_ext=f 9547 9548# Object file extension for compiled f77 test sources. 9549objext=o 9550_LT_TAGVAR(objext, $1)=$objext 9551 9552# No sense in running all these tests if we already determined that 9553# the F77 compiler isn't working. Some variables (like enable_shared) 9554# are currently assumed to apply to all compilers on this platform, 9555# and will be corrupted by setting them based on a non-working compiler. 9556if test yes != "$_lt_disable_F77"; then 9557 # Code to be used in simple compile tests 9558 lt_simple_compile_test_code="\ 9559 subroutine t 9560 return 9561 end 9562" 9563 9564 # Code to be used in simple link tests 9565 lt_simple_link_test_code="\ 9566 program t 9567 end 9568" 9569 9570 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 9571 _LT_TAG_COMPILER 9572 9573 # save warnings/boilerplate of simple test code 9574 _LT_COMPILER_BOILERPLATE 9575 _LT_LINKER_BOILERPLATE 9576 9577 # Allow CC to be a program name with arguments. 9578 lt_save_CC=$CC 9579 lt_save_GCC=$GCC 9580 lt_save_CFLAGS=$CFLAGS 9581 CC=${F77-"f77"} 9582 CFLAGS=$FFLAGS 9583 compiler=$CC 9584 _LT_TAGVAR(compiler, $1)=$CC 9585 _LT_CC_BASENAME([$compiler]) 9586 GCC=$G77 9587 if test -n "$compiler"; then 9588 AC_MSG_CHECKING([if libtool supports shared libraries]) 9589 AC_MSG_RESULT([$can_build_shared]) 9590 9591 AC_MSG_CHECKING([whether to build shared libraries]) 9592 test no = "$can_build_shared" && enable_shared=no 9593 9594 # On AIX, shared libraries and static libraries use the same namespace, and 9595 # are all built from PIC. 9596 case $host_os in 9597 aix3*) 9598 test yes = "$enable_shared" && enable_static=no 9599 if test -n "$RANLIB"; then 9600 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9601 postinstall_cmds='$RANLIB $lib' 9602 fi 9603 ;; 9604 aix[[4-9]]*) 9605 if test ia64 != "$host_cpu"; then 9606 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 9607 yes,aix,yes) ;; # shared object as lib.so file only 9608 yes,svr4,*) ;; # shared object as lib.so archive member only 9609 yes,*) enable_static=no ;; # shared object in lib.a archive as well 9610 esac 9611 fi 9612 ;; 9613 esac 9614 AC_MSG_RESULT([$enable_shared]) 9615 9616 AC_MSG_CHECKING([whether to build static libraries]) 9617 # Make sure either enable_shared or enable_static is yes. 9618 test yes = "$enable_shared" || enable_static=yes 9619 AC_MSG_RESULT([$enable_static]) 9620 9621 _LT_TAGVAR(GCC, $1)=$G77 9622 _LT_TAGVAR(LD, $1)=$LD 9623 9624 ## CAVEAT EMPTOR: 9625 ## There is no encapsulation within the following macros, do not change 9626 ## the running order or otherwise move them around unless you know exactly 9627 ## what you are doing... 9628 _LT_COMPILER_PIC($1) 9629 _LT_COMPILER_C_O($1) 9630 _LT_COMPILER_FILE_LOCKS($1) 9631 _LT_LINKER_SHLIBS($1) 9632 _LT_SYS_DYNAMIC_LINKER($1) 9633 _LT_LINKER_HARDCODE_LIBPATH($1) 9634 9635 _LT_CONFIG($1) 9636 fi # test -n "$compiler" 9637 9638 GCC=$lt_save_GCC 9639 CC=$lt_save_CC 9640 CFLAGS=$lt_save_CFLAGS 9641fi # test yes != "$_lt_disable_F77" 9642 9643AC_LANG_POP 9644])# _LT_LANG_F77_CONFIG 9645 9646 9647# _LT_LANG_FC_CONFIG([TAG]) 9648# ------------------------- 9649# Ensure that the configuration variables for a Fortran compiler are 9650# suitably defined. These variables are subsequently used by _LT_CONFIG 9651# to write the compiler configuration to 'libtool'. 9652m4_defun([_LT_LANG_FC_CONFIG], 9653[AC_LANG_PUSH(Fortran) 9654 9655if test -z "$FC" || test no = "$FC"; then 9656 _lt_disable_FC=yes 9657fi 9658 9659_LT_TAGVAR(archive_cmds_need_lc, $1)=no 9660_LT_TAGVAR(allow_undefined_flag, $1)= 9661_LT_TAGVAR(always_export_symbols, $1)=no 9662_LT_TAGVAR(archive_expsym_cmds, $1)= 9663_LT_TAGVAR(export_dynamic_flag_spec, $1)= 9664_LT_TAGVAR(hardcode_direct, $1)=no 9665_LT_TAGVAR(hardcode_direct_absolute, $1)=no 9666_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 9667_LT_TAGVAR(hardcode_libdir_separator, $1)= 9668_LT_TAGVAR(hardcode_minus_L, $1)=no 9669_LT_TAGVAR(hardcode_automatic, $1)=no 9670_LT_TAGVAR(inherit_rpath, $1)=no 9671_LT_TAGVAR(module_cmds, $1)= 9672_LT_TAGVAR(module_expsym_cmds, $1)= 9673_LT_TAGVAR(link_all_deplibs, $1)=unknown 9674_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 9675_LT_TAGVAR(reload_flag, $1)=$reload_flag 9676_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 9677_LT_TAGVAR(no_undefined_flag, $1)= 9678_LT_TAGVAR(whole_archive_flag_spec, $1)= 9679_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 9680 9681# Source file extension for fc test sources. 9682ac_ext=${ac_fc_srcext-f} 9683 9684# Object file extension for compiled fc test sources. 9685objext=o 9686_LT_TAGVAR(objext, $1)=$objext 9687 9688# No sense in running all these tests if we already determined that 9689# the FC compiler isn't working. Some variables (like enable_shared) 9690# are currently assumed to apply to all compilers on this platform, 9691# and will be corrupted by setting them based on a non-working compiler. 9692if test yes != "$_lt_disable_FC"; then 9693 # Code to be used in simple compile tests 9694 lt_simple_compile_test_code="\ 9695 subroutine t 9696 return 9697 end 9698" 9699 9700 # Code to be used in simple link tests 9701 lt_simple_link_test_code="\ 9702 program t 9703 end 9704" 9705 9706 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 9707 _LT_TAG_COMPILER 9708 9709 # save warnings/boilerplate of simple test code 9710 _LT_COMPILER_BOILERPLATE 9711 _LT_LINKER_BOILERPLATE 9712 9713 # Allow CC to be a program name with arguments. 9714 lt_save_CC=$CC 9715 lt_save_GCC=$GCC 9716 lt_save_CFLAGS=$CFLAGS 9717 CC=${FC-"f95"} 9718 CFLAGS=$FCFLAGS 9719 compiler=$CC 9720 GCC=$ac_cv_fc_compiler_gnu 9721 9722 _LT_TAGVAR(compiler, $1)=$CC 9723 _LT_CC_BASENAME([$compiler]) 9724 9725 if test -n "$compiler"; then 9726 AC_MSG_CHECKING([if libtool supports shared libraries]) 9727 AC_MSG_RESULT([$can_build_shared]) 9728 9729 AC_MSG_CHECKING([whether to build shared libraries]) 9730 test no = "$can_build_shared" && enable_shared=no 9731 9732 # On AIX, shared libraries and static libraries use the same namespace, and 9733 # are all built from PIC. 9734 case $host_os in 9735 aix3*) 9736 test yes = "$enable_shared" && enable_static=no 9737 if test -n "$RANLIB"; then 9738 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9739 postinstall_cmds='$RANLIB $lib' 9740 fi 9741 ;; 9742 aix[[4-9]]*) 9743 if test ia64 != "$host_cpu"; then 9744 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 9745 yes,aix,yes) ;; # shared object as lib.so file only 9746 yes,svr4,*) ;; # shared object as lib.so archive member only 9747 yes,*) enable_static=no ;; # shared object in lib.a archive as well 9748 esac 9749 fi 9750 ;; 9751 esac 9752 AC_MSG_RESULT([$enable_shared]) 9753 9754 AC_MSG_CHECKING([whether to build static libraries]) 9755 # Make sure either enable_shared or enable_static is yes. 9756 test yes = "$enable_shared" || enable_static=yes 9757 AC_MSG_RESULT([$enable_static]) 9758 9759 _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu 9760 _LT_TAGVAR(LD, $1)=$LD 9761 9762 ## CAVEAT EMPTOR: 9763 ## There is no encapsulation within the following macros, do not change 9764 ## the running order or otherwise move them around unless you know exactly 9765 ## what you are doing... 9766 _LT_SYS_HIDDEN_LIBDEPS($1) 9767 _LT_COMPILER_PIC($1) 9768 _LT_COMPILER_C_O($1) 9769 _LT_COMPILER_FILE_LOCKS($1) 9770 _LT_LINKER_SHLIBS($1) 9771 _LT_SYS_DYNAMIC_LINKER($1) 9772 _LT_LINKER_HARDCODE_LIBPATH($1) 9773 9774 _LT_CONFIG($1) 9775 fi # test -n "$compiler" 9776 9777 GCC=$lt_save_GCC 9778 CC=$lt_save_CC 9779 CFLAGS=$lt_save_CFLAGS 9780fi # test yes != "$_lt_disable_FC" 9781 9782AC_LANG_POP 9783])# _LT_LANG_FC_CONFIG 9784 9785 9786# _LT_LANG_GCJ_CONFIG([TAG]) 9787# -------------------------- 9788# Ensure that the configuration variables for the GNU Java Compiler compiler 9789# are suitably defined. These variables are subsequently used by _LT_CONFIG 9790# to write the compiler configuration to 'libtool'. 9791m4_defun([_LT_LANG_GCJ_CONFIG], 9792[AC_REQUIRE([LT_PROG_GCJ])dnl 9793AC_LANG_SAVE 9794 9795# Source file extension for Java test sources. 9796ac_ext=java 9797 9798# Object file extension for compiled Java test sources. 9799objext=o 9800_LT_TAGVAR(objext, $1)=$objext 9801 9802# Code to be used in simple compile tests 9803lt_simple_compile_test_code="class foo {}" 9804 9805# Code to be used in simple link tests 9806lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 9807 9808# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9809_LT_TAG_COMPILER 9810 9811# save warnings/boilerplate of simple test code 9812_LT_COMPILER_BOILERPLATE 9813_LT_LINKER_BOILERPLATE 9814 9815# Allow CC to be a program name with arguments. 9816lt_save_CC=$CC 9817lt_save_CFLAGS=$CFLAGS 9818lt_save_GCC=$GCC 9819GCC=yes 9820CC=${GCJ-"gcj"} 9821CFLAGS=$GCJFLAGS 9822compiler=$CC 9823_LT_TAGVAR(compiler, $1)=$CC 9824_LT_TAGVAR(LD, $1)=$LD 9825_LT_CC_BASENAME([$compiler]) 9826 9827# GCJ did not exist at the time GCC didn't implicitly link libc in. 9828_LT_TAGVAR(archive_cmds_need_lc, $1)=no 9829 9830_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 9831_LT_TAGVAR(reload_flag, $1)=$reload_flag 9832_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 9833 9834if test -n "$compiler"; then 9835 _LT_COMPILER_NO_RTTI($1) 9836 _LT_COMPILER_PIC($1) 9837 _LT_COMPILER_C_O($1) 9838 _LT_COMPILER_FILE_LOCKS($1) 9839 _LT_LINKER_SHLIBS($1) 9840 _LT_LINKER_HARDCODE_LIBPATH($1) 9841 9842 _LT_CONFIG($1) 9843fi 9844 9845AC_LANG_RESTORE 9846 9847GCC=$lt_save_GCC 9848CC=$lt_save_CC 9849CFLAGS=$lt_save_CFLAGS 9850])# _LT_LANG_GCJ_CONFIG 9851 9852 9853# _LT_LANG_GO_CONFIG([TAG]) 9854# -------------------------- 9855# Ensure that the configuration variables for the GNU Go compiler 9856# are suitably defined. These variables are subsequently used by _LT_CONFIG 9857# to write the compiler configuration to 'libtool'. 9858m4_defun([_LT_LANG_GO_CONFIG], 9859[AC_REQUIRE([LT_PROG_GO])dnl 9860AC_LANG_SAVE 9861 9862# Source file extension for Go test sources. 9863ac_ext=go 9864 9865# Object file extension for compiled Go test sources. 9866objext=o 9867_LT_TAGVAR(objext, $1)=$objext 9868 9869# Code to be used in simple compile tests 9870lt_simple_compile_test_code="package main; func main() { }" 9871 9872# Code to be used in simple link tests 9873lt_simple_link_test_code='package main; func main() { }' 9874 9875# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9876_LT_TAG_COMPILER 9877 9878# save warnings/boilerplate of simple test code 9879_LT_COMPILER_BOILERPLATE 9880_LT_LINKER_BOILERPLATE 9881 9882# Allow CC to be a program name with arguments. 9883lt_save_CC=$CC 9884lt_save_CFLAGS=$CFLAGS 9885lt_save_GCC=$GCC 9886GCC=yes 9887CC=${GOC-"gccgo"} 9888CFLAGS=$GOFLAGS 9889compiler=$CC 9890_LT_TAGVAR(compiler, $1)=$CC 9891_LT_TAGVAR(LD, $1)=$LD 9892_LT_CC_BASENAME([$compiler]) 9893 9894# Go did not exist at the time GCC didn't implicitly link libc in. 9895_LT_TAGVAR(archive_cmds_need_lc, $1)=no 9896 9897_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 9898_LT_TAGVAR(reload_flag, $1)=$reload_flag 9899_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 9900 9901if test -n "$compiler"; then 9902 _LT_COMPILER_NO_RTTI($1) 9903 _LT_COMPILER_PIC($1) 9904 _LT_COMPILER_C_O($1) 9905 _LT_COMPILER_FILE_LOCKS($1) 9906 _LT_LINKER_SHLIBS($1) 9907 _LT_LINKER_HARDCODE_LIBPATH($1) 9908 9909 _LT_CONFIG($1) 9910fi 9911 9912AC_LANG_RESTORE 9913 9914GCC=$lt_save_GCC 9915CC=$lt_save_CC 9916CFLAGS=$lt_save_CFLAGS 9917])# _LT_LANG_GO_CONFIG 9918 9919 9920# _LT_LANG_RC_CONFIG([TAG]) 9921# ------------------------- 9922# Ensure that the configuration variables for the Windows resource compiler 9923# are suitably defined. These variables are subsequently used by _LT_CONFIG 9924# to write the compiler configuration to 'libtool'. 9925m4_defun([_LT_LANG_RC_CONFIG], 9926[AC_REQUIRE([LT_PROG_RC])dnl 9927AC_LANG_SAVE 9928 9929# Source file extension for RC test sources. 9930ac_ext=rc 9931 9932# Object file extension for compiled RC test sources. 9933objext=o 9934_LT_TAGVAR(objext, $1)=$objext 9935 9936# Code to be used in simple compile tests 9937lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 9938 9939# Code to be used in simple link tests 9940lt_simple_link_test_code=$lt_simple_compile_test_code 9941 9942# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9943_LT_TAG_COMPILER 9944 9945# save warnings/boilerplate of simple test code 9946_LT_COMPILER_BOILERPLATE 9947_LT_LINKER_BOILERPLATE 9948 9949# Allow CC to be a program name with arguments. 9950lt_save_CC=$CC 9951lt_save_CFLAGS=$CFLAGS 9952lt_save_GCC=$GCC 9953GCC= 9954CC=${RC-"windres"} 9955CFLAGS= 9956compiler=$CC 9957_LT_TAGVAR(compiler, $1)=$CC 9958_LT_CC_BASENAME([$compiler]) 9959_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 9960 9961if test -n "$compiler"; then 9962 : 9963 _LT_CONFIG($1) 9964fi 9965 9966GCC=$lt_save_GCC 9967AC_LANG_RESTORE 9968CC=$lt_save_CC 9969CFLAGS=$lt_save_CFLAGS 9970])# _LT_LANG_RC_CONFIG 9971 9972 9973# LT_PROG_GCJ 9974# ----------- 9975AC_DEFUN([LT_PROG_GCJ], 9976[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], 9977 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 9978 [AC_CHECK_TOOL(GCJ, gcj,) 9979 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2" 9980 AC_SUBST(GCJFLAGS)])])[]dnl 9981]) 9982 9983# Old name: 9984AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) 9985dnl aclocal-1.4 backwards compatibility: 9986dnl AC_DEFUN([LT_AC_PROG_GCJ], []) 9987 9988 9989# LT_PROG_GO 9990# ---------- 9991AC_DEFUN([LT_PROG_GO], 9992[AC_CHECK_TOOL(GOC, gccgo,) 9993]) 9994 9995 9996# LT_PROG_RC 9997# ---------- 9998AC_DEFUN([LT_PROG_RC], 9999[AC_CHECK_TOOL(RC, windres,) 10000]) 10001 10002# Old name: 10003AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) 10004dnl aclocal-1.4 backwards compatibility: 10005dnl AC_DEFUN([LT_AC_PROG_RC], []) 10006 10007 10008# _LT_DECL_EGREP 10009# -------------- 10010# If we don't have a new enough Autoconf to choose the best grep 10011# available, choose the one first in the user's PATH. 10012m4_defun([_LT_DECL_EGREP], 10013[AC_REQUIRE([AC_PROG_EGREP])dnl 10014AC_REQUIRE([AC_PROG_FGREP])dnl 10015test -z "$GREP" && GREP=grep 10016_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) 10017_LT_DECL([], [EGREP], [1], [An ERE matcher]) 10018_LT_DECL([], [FGREP], [1], [A literal string matcher]) 10019dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too 10020AC_SUBST([GREP]) 10021]) 10022 10023 10024# _LT_DECL_OBJDUMP 10025# -------------- 10026# If we don't have a new enough Autoconf to choose the best objdump 10027# available, choose the one first in the user's PATH. 10028m4_defun([_LT_DECL_OBJDUMP], 10029[AC_CHECK_TOOL(OBJDUMP, objdump, false) 10030test -z "$OBJDUMP" && OBJDUMP=objdump 10031_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) 10032AC_SUBST([OBJDUMP]) 10033]) 10034 10035# _LT_DECL_DLLTOOL 10036# ---------------- 10037# Ensure DLLTOOL variable is set. 10038m4_defun([_LT_DECL_DLLTOOL], 10039[AC_CHECK_TOOL(DLLTOOL, dlltool, false) 10040test -z "$DLLTOOL" && DLLTOOL=dlltool 10041_LT_DECL([], [DLLTOOL], [1], [DLL creation program]) 10042AC_SUBST([DLLTOOL]) 10043]) 10044 10045# _LT_DECL_SED 10046# ------------ 10047# Check for a fully-functional sed program, that truncates 10048# as few characters as possible. Prefer GNU sed if found. 10049m4_defun([_LT_DECL_SED], 10050[AC_PROG_SED 10051test -z "$SED" && SED=sed 10052Xsed="$SED -e 1s/^X//" 10053_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) 10054_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], 10055 [Sed that helps us avoid accidentally triggering echo(1) options like -n]) 10056])# _LT_DECL_SED 10057 10058m4_ifndef([AC_PROG_SED], [ 10059# NOTE: This macro has been submitted for inclusion into # 10060# GNU Autoconf as AC_PROG_SED. When it is available in # 10061# a released version of Autoconf we should remove this # 10062# macro and use it instead. # 10063 10064m4_defun([AC_PROG_SED], 10065[AC_MSG_CHECKING([for a sed that does not truncate output]) 10066AC_CACHE_VAL(lt_cv_path_SED, 10067[# Loop through the user's path and test for sed and gsed. 10068# Then use that list of sed's as ones to test for truncation. 10069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10070for as_dir in $PATH 10071do 10072 IFS=$as_save_IFS 10073 test -z "$as_dir" && as_dir=. 10074 for lt_ac_prog in sed gsed; do 10075 for ac_exec_ext in '' $ac_executable_extensions; do 10076 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 10077 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 10078 fi 10079 done 10080 done 10081done 10082IFS=$as_save_IFS 10083lt_ac_max=0 10084lt_ac_count=0 10085# Add /usr/xpg4/bin/sed as it is typically found on Solaris 10086# along with /bin/sed that truncates output. 10087for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 10088 test ! -f "$lt_ac_sed" && continue 10089 cat /dev/null > conftest.in 10090 lt_ac_count=0 10091 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 10092 # Check for GNU sed and select it if it is found. 10093 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 10094 lt_cv_path_SED=$lt_ac_sed 10095 break 10096 fi 10097 while true; do 10098 cat conftest.in conftest.in >conftest.tmp 10099 mv conftest.tmp conftest.in 10100 cp conftest.in conftest.nl 10101 echo >>conftest.nl 10102 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 10103 cmp -s conftest.out conftest.nl || break 10104 # 10000 chars as input seems more than enough 10105 test 10 -lt "$lt_ac_count" && break 10106 lt_ac_count=`expr $lt_ac_count + 1` 10107 if test "$lt_ac_count" -gt "$lt_ac_max"; then 10108 lt_ac_max=$lt_ac_count 10109 lt_cv_path_SED=$lt_ac_sed 10110 fi 10111 done 10112done 10113]) 10114SED=$lt_cv_path_SED 10115AC_SUBST([SED]) 10116AC_MSG_RESULT([$SED]) 10117])#AC_PROG_SED 10118])#m4_ifndef 10119 10120# Old name: 10121AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) 10122dnl aclocal-1.4 backwards compatibility: 10123dnl AC_DEFUN([LT_AC_PROG_SED], []) 10124 10125 10126# _LT_CHECK_SHELL_FEATURES 10127# ------------------------ 10128# Find out whether the shell is Bourne or XSI compatible, 10129# or has some other useful features. 10130m4_defun([_LT_CHECK_SHELL_FEATURES], 10131[if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 10132 lt_unset=unset 10133else 10134 lt_unset=false 10135fi 10136_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl 10137 10138# test EBCDIC or ASCII 10139case `echo X|tr X '\101'` in 10140 A) # ASCII based system 10141 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 10142 lt_SP2NL='tr \040 \012' 10143 lt_NL2SP='tr \015\012 \040\040' 10144 ;; 10145 *) # EBCDIC based system 10146 lt_SP2NL='tr \100 \n' 10147 lt_NL2SP='tr \r\n \100\100' 10148 ;; 10149esac 10150_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl 10151_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl 10152])# _LT_CHECK_SHELL_FEATURES 10153 10154 10155# _LT_PATH_CONVERSION_FUNCTIONS 10156# ----------------------------- 10157# Determine what file name conversion functions should be used by 10158# func_to_host_file (and, implicitly, by func_to_host_path). These are needed 10159# for certain cross-compile configurations and native mingw. 10160m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], 10161[AC_REQUIRE([AC_CANONICAL_HOST])dnl 10162AC_REQUIRE([AC_CANONICAL_BUILD])dnl 10163AC_MSG_CHECKING([how to convert $build file names to $host format]) 10164AC_CACHE_VAL(lt_cv_to_host_file_cmd, 10165[case $host in 10166 *-*-mingw* ) 10167 case $build in 10168 *-*-mingw* ) # actually msys 10169 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 10170 ;; 10171 *-*-cygwin* ) 10172 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 10173 ;; 10174 * ) # otherwise, assume *nix 10175 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 10176 ;; 10177 esac 10178 ;; 10179 *-*-cygwin* ) 10180 case $build in 10181 *-*-mingw* ) # actually msys 10182 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 10183 ;; 10184 *-*-cygwin* ) 10185 lt_cv_to_host_file_cmd=func_convert_file_noop 10186 ;; 10187 * ) # otherwise, assume *nix 10188 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 10189 ;; 10190 esac 10191 ;; 10192 * ) # unhandled hosts (and "normal" native builds) 10193 lt_cv_to_host_file_cmd=func_convert_file_noop 10194 ;; 10195esac 10196]) 10197to_host_file_cmd=$lt_cv_to_host_file_cmd 10198AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) 10199_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], 10200 [0], [convert $build file names to $host format])dnl 10201 10202AC_MSG_CHECKING([how to convert $build file names to toolchain format]) 10203AC_CACHE_VAL(lt_cv_to_tool_file_cmd, 10204[#assume ordinary cross tools, or native build. 10205lt_cv_to_tool_file_cmd=func_convert_file_noop 10206case $host in 10207 *-*-mingw* ) 10208 case $build in 10209 *-*-mingw* ) # actually msys 10210 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 10211 ;; 10212 esac 10213 ;; 10214esac 10215]) 10216to_tool_file_cmd=$lt_cv_to_tool_file_cmd 10217AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) 10218_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], 10219 [0], [convert $build files to toolchain format])dnl 10220])# _LT_PATH_CONVERSION_FUNCTIONS 10221 10222# Helper functions for option handling. -*- Autoconf -*- 10223# 10224# Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software 10225# Foundation, Inc. 10226# Written by Gary V. Vaughan, 2004 10227# 10228# This file is free software; the Free Software Foundation gives 10229# unlimited permission to copy and/or distribute it, with or without 10230# modifications, as long as this notice is preserved. 10231 10232# serial 8 ltoptions.m4 10233 10234# This is to help aclocal find these macros, as it can't see m4_define. 10235AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) 10236 10237 10238# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) 10239# ------------------------------------------ 10240m4_define([_LT_MANGLE_OPTION], 10241[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) 10242 10243 10244# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) 10245# --------------------------------------- 10246# Set option OPTION-NAME for macro MACRO-NAME, and if there is a 10247# matching handler defined, dispatch to it. Other OPTION-NAMEs are 10248# saved as a flag. 10249m4_define([_LT_SET_OPTION], 10250[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl 10251m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), 10252 _LT_MANGLE_DEFUN([$1], [$2]), 10253 [m4_warning([Unknown $1 option '$2'])])[]dnl 10254]) 10255 10256 10257# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) 10258# ------------------------------------------------------------ 10259# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 10260m4_define([_LT_IF_OPTION], 10261[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) 10262 10263 10264# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) 10265# ------------------------------------------------------- 10266# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME 10267# are set. 10268m4_define([_LT_UNLESS_OPTIONS], 10269[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 10270 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), 10271 [m4_define([$0_found])])])[]dnl 10272m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 10273])[]dnl 10274]) 10275 10276 10277# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) 10278# ---------------------------------------- 10279# OPTION-LIST is a space-separated list of Libtool options associated 10280# with MACRO-NAME. If any OPTION has a matching handler declared with 10281# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about 10282# the unknown option and exit. 10283m4_defun([_LT_SET_OPTIONS], 10284[# Set options 10285m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 10286 [_LT_SET_OPTION([$1], _LT_Option)]) 10287 10288m4_if([$1],[LT_INIT],[ 10289 dnl 10290 dnl Simply set some default values (i.e off) if boolean options were not 10291 dnl specified: 10292 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no 10293 ]) 10294 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no 10295 ]) 10296 dnl 10297 dnl If no reference was made to various pairs of opposing options, then 10298 dnl we run the default mode handler for the pair. For example, if neither 10299 dnl 'shared' nor 'disable-shared' was passed, we enable building of shared 10300 dnl archives by default: 10301 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) 10302 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) 10303 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) 10304 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], 10305 [_LT_ENABLE_FAST_INSTALL]) 10306 _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4], 10307 [_LT_WITH_AIX_SONAME([aix])]) 10308 ]) 10309])# _LT_SET_OPTIONS 10310 10311 10312 10313# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) 10314# ----------------------------------------- 10315m4_define([_LT_MANGLE_DEFUN], 10316[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) 10317 10318 10319# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) 10320# ----------------------------------------------- 10321m4_define([LT_OPTION_DEFINE], 10322[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl 10323])# LT_OPTION_DEFINE 10324 10325 10326# dlopen 10327# ------ 10328LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes 10329]) 10330 10331AU_DEFUN([AC_LIBTOOL_DLOPEN], 10332[_LT_SET_OPTION([LT_INIT], [dlopen]) 10333AC_DIAGNOSE([obsolete], 10334[$0: Remove this warning and the call to _LT_SET_OPTION when you 10335put the 'dlopen' option into LT_INIT's first parameter.]) 10336]) 10337 10338dnl aclocal-1.4 backwards compatibility: 10339dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) 10340 10341 10342# win32-dll 10343# --------- 10344# Declare package support for building win32 dll's. 10345LT_OPTION_DEFINE([LT_INIT], [win32-dll], 10346[enable_win32_dll=yes 10347 10348case $host in 10349*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 10350 AC_CHECK_TOOL(AS, as, false) 10351 AC_CHECK_TOOL(DLLTOOL, dlltool, false) 10352 AC_CHECK_TOOL(OBJDUMP, objdump, false) 10353 ;; 10354esac 10355 10356test -z "$AS" && AS=as 10357_LT_DECL([], [AS], [1], [Assembler program])dnl 10358 10359test -z "$DLLTOOL" && DLLTOOL=dlltool 10360_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl 10361 10362test -z "$OBJDUMP" && OBJDUMP=objdump 10363_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl 10364])# win32-dll 10365 10366AU_DEFUN([AC_LIBTOOL_WIN32_DLL], 10367[AC_REQUIRE([AC_CANONICAL_HOST])dnl 10368_LT_SET_OPTION([LT_INIT], [win32-dll]) 10369AC_DIAGNOSE([obsolete], 10370[$0: Remove this warning and the call to _LT_SET_OPTION when you 10371put the 'win32-dll' option into LT_INIT's first parameter.]) 10372]) 10373 10374dnl aclocal-1.4 backwards compatibility: 10375dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) 10376 10377 10378# _LT_ENABLE_SHARED([DEFAULT]) 10379# ---------------------------- 10380# implement the --enable-shared flag, and supports the 'shared' and 10381# 'disable-shared' LT_INIT options. 10382# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 10383m4_define([_LT_ENABLE_SHARED], 10384[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl 10385AC_ARG_ENABLE([shared], 10386 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 10387 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], 10388 [p=${PACKAGE-default} 10389 case $enableval in 10390 yes) enable_shared=yes ;; 10391 no) enable_shared=no ;; 10392 *) 10393 enable_shared=no 10394 # Look at the argument we got. We use all the common list separators. 10395 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10396 for pkg in $enableval; do 10397 IFS=$lt_save_ifs 10398 if test "X$pkg" = "X$p"; then 10399 enable_shared=yes 10400 fi 10401 done 10402 IFS=$lt_save_ifs 10403 ;; 10404 esac], 10405 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) 10406 10407 _LT_DECL([build_libtool_libs], [enable_shared], [0], 10408 [Whether or not to build shared libraries]) 10409])# _LT_ENABLE_SHARED 10410 10411LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) 10412LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) 10413 10414# Old names: 10415AC_DEFUN([AC_ENABLE_SHARED], 10416[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) 10417]) 10418 10419AC_DEFUN([AC_DISABLE_SHARED], 10420[_LT_SET_OPTION([LT_INIT], [disable-shared]) 10421]) 10422 10423AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 10424AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 10425 10426dnl aclocal-1.4 backwards compatibility: 10427dnl AC_DEFUN([AM_ENABLE_SHARED], []) 10428dnl AC_DEFUN([AM_DISABLE_SHARED], []) 10429 10430 10431 10432# _LT_ENABLE_STATIC([DEFAULT]) 10433# ---------------------------- 10434# implement the --enable-static flag, and support the 'static' and 10435# 'disable-static' LT_INIT options. 10436# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 10437m4_define([_LT_ENABLE_STATIC], 10438[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl 10439AC_ARG_ENABLE([static], 10440 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], 10441 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], 10442 [p=${PACKAGE-default} 10443 case $enableval in 10444 yes) enable_static=yes ;; 10445 no) enable_static=no ;; 10446 *) 10447 enable_static=no 10448 # Look at the argument we got. We use all the common list separators. 10449 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10450 for pkg in $enableval; do 10451 IFS=$lt_save_ifs 10452 if test "X$pkg" = "X$p"; then 10453 enable_static=yes 10454 fi 10455 done 10456 IFS=$lt_save_ifs 10457 ;; 10458 esac], 10459 [enable_static=]_LT_ENABLE_STATIC_DEFAULT) 10460 10461 _LT_DECL([build_old_libs], [enable_static], [0], 10462 [Whether or not to build static libraries]) 10463])# _LT_ENABLE_STATIC 10464 10465LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) 10466LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) 10467 10468# Old names: 10469AC_DEFUN([AC_ENABLE_STATIC], 10470[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) 10471]) 10472 10473AC_DEFUN([AC_DISABLE_STATIC], 10474[_LT_SET_OPTION([LT_INIT], [disable-static]) 10475]) 10476 10477AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 10478AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 10479 10480dnl aclocal-1.4 backwards compatibility: 10481dnl AC_DEFUN([AM_ENABLE_STATIC], []) 10482dnl AC_DEFUN([AM_DISABLE_STATIC], []) 10483 10484 10485 10486# _LT_ENABLE_FAST_INSTALL([DEFAULT]) 10487# ---------------------------------- 10488# implement the --enable-fast-install flag, and support the 'fast-install' 10489# and 'disable-fast-install' LT_INIT options. 10490# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 10491m4_define([_LT_ENABLE_FAST_INSTALL], 10492[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl 10493AC_ARG_ENABLE([fast-install], 10494 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 10495 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 10496 [p=${PACKAGE-default} 10497 case $enableval in 10498 yes) enable_fast_install=yes ;; 10499 no) enable_fast_install=no ;; 10500 *) 10501 enable_fast_install=no 10502 # Look at the argument we got. We use all the common list separators. 10503 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10504 for pkg in $enableval; do 10505 IFS=$lt_save_ifs 10506 if test "X$pkg" = "X$p"; then 10507 enable_fast_install=yes 10508 fi 10509 done 10510 IFS=$lt_save_ifs 10511 ;; 10512 esac], 10513 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) 10514 10515_LT_DECL([fast_install], [enable_fast_install], [0], 10516 [Whether or not to optimize for fast installation])dnl 10517])# _LT_ENABLE_FAST_INSTALL 10518 10519LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) 10520LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) 10521 10522# Old names: 10523AU_DEFUN([AC_ENABLE_FAST_INSTALL], 10524[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) 10525AC_DIAGNOSE([obsolete], 10526[$0: Remove this warning and the call to _LT_SET_OPTION when you put 10527the 'fast-install' option into LT_INIT's first parameter.]) 10528]) 10529 10530AU_DEFUN([AC_DISABLE_FAST_INSTALL], 10531[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) 10532AC_DIAGNOSE([obsolete], 10533[$0: Remove this warning and the call to _LT_SET_OPTION when you put 10534the 'disable-fast-install' option into LT_INIT's first parameter.]) 10535]) 10536 10537dnl aclocal-1.4 backwards compatibility: 10538dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) 10539dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) 10540 10541 10542# _LT_WITH_AIX_SONAME([DEFAULT]) 10543# ---------------------------------- 10544# implement the --with-aix-soname flag, and support the `aix-soname=aix' 10545# and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT 10546# is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'. 10547m4_define([_LT_WITH_AIX_SONAME], 10548[m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl 10549shared_archive_member_spec= 10550case $host,$enable_shared in 10551power*-*-aix[[5-9]]*,yes) 10552 AC_MSG_CHECKING([which variant of shared library versioning to provide]) 10553 AC_ARG_WITH([aix-soname], 10554 [AS_HELP_STRING([--with-aix-soname=aix|svr4|both], 10555 [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])], 10556 [case $withval in 10557 aix|svr4|both) 10558 ;; 10559 *) 10560 AC_MSG_ERROR([Unknown argument to --with-aix-soname]) 10561 ;; 10562 esac 10563 lt_cv_with_aix_soname=$with_aix_soname], 10564 [AC_CACHE_VAL([lt_cv_with_aix_soname], 10565 [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT) 10566 with_aix_soname=$lt_cv_with_aix_soname]) 10567 AC_MSG_RESULT([$with_aix_soname]) 10568 if test aix != "$with_aix_soname"; then 10569 # For the AIX way of multilib, we name the shared archive member 10570 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 10571 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 10572 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 10573 # the AIX toolchain works better with OBJECT_MODE set (default 32). 10574 if test 64 = "${OBJECT_MODE-32}"; then 10575 shared_archive_member_spec=shr_64 10576 else 10577 shared_archive_member_spec=shr 10578 fi 10579 fi 10580 ;; 10581*) 10582 with_aix_soname=aix 10583 ;; 10584esac 10585 10586_LT_DECL([], [shared_archive_member_spec], [0], 10587 [Shared archive member basename, for filename based shared library versioning on AIX])dnl 10588])# _LT_WITH_AIX_SONAME 10589 10590LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])]) 10591LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])]) 10592LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])]) 10593 10594 10595# _LT_WITH_PIC([MODE]) 10596# -------------------- 10597# implement the --with-pic flag, and support the 'pic-only' and 'no-pic' 10598# LT_INIT options. 10599# MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'. 10600m4_define([_LT_WITH_PIC], 10601[AC_ARG_WITH([pic], 10602 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], 10603 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 10604 [lt_p=${PACKAGE-default} 10605 case $withval in 10606 yes|no) pic_mode=$withval ;; 10607 *) 10608 pic_mode=default 10609 # Look at the argument we got. We use all the common list separators. 10610 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10611 for lt_pkg in $withval; do 10612 IFS=$lt_save_ifs 10613 if test "X$lt_pkg" = "X$lt_p"; then 10614 pic_mode=yes 10615 fi 10616 done 10617 IFS=$lt_save_ifs 10618 ;; 10619 esac], 10620 [pic_mode=m4_default([$1], [default])]) 10621 10622_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl 10623])# _LT_WITH_PIC 10624 10625LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) 10626LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) 10627 10628# Old name: 10629AU_DEFUN([AC_LIBTOOL_PICMODE], 10630[_LT_SET_OPTION([LT_INIT], [pic-only]) 10631AC_DIAGNOSE([obsolete], 10632[$0: Remove this warning and the call to _LT_SET_OPTION when you 10633put the 'pic-only' option into LT_INIT's first parameter.]) 10634]) 10635 10636dnl aclocal-1.4 backwards compatibility: 10637dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) 10638 10639 10640m4_define([_LTDL_MODE], []) 10641LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], 10642 [m4_define([_LTDL_MODE], [nonrecursive])]) 10643LT_OPTION_DEFINE([LTDL_INIT], [recursive], 10644 [m4_define([_LTDL_MODE], [recursive])]) 10645LT_OPTION_DEFINE([LTDL_INIT], [subproject], 10646 [m4_define([_LTDL_MODE], [subproject])]) 10647 10648m4_define([_LTDL_TYPE], []) 10649LT_OPTION_DEFINE([LTDL_INIT], [installable], 10650 [m4_define([_LTDL_TYPE], [installable])]) 10651LT_OPTION_DEFINE([LTDL_INIT], [convenience], 10652 [m4_define([_LTDL_TYPE], [convenience])]) 10653 10654# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- 10655# 10656# Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software 10657# Foundation, Inc. 10658# Written by Gary V. Vaughan, 2004 10659# 10660# This file is free software; the Free Software Foundation gives 10661# unlimited permission to copy and/or distribute it, with or without 10662# modifications, as long as this notice is preserved. 10663 10664# serial 6 ltsugar.m4 10665 10666# This is to help aclocal find these macros, as it can't see m4_define. 10667AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) 10668 10669 10670# lt_join(SEP, ARG1, [ARG2...]) 10671# ----------------------------- 10672# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their 10673# associated separator. 10674# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier 10675# versions in m4sugar had bugs. 10676m4_define([lt_join], 10677[m4_if([$#], [1], [], 10678 [$#], [2], [[$2]], 10679 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) 10680m4_define([_lt_join], 10681[m4_if([$#$2], [2], [], 10682 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) 10683 10684 10685# lt_car(LIST) 10686# lt_cdr(LIST) 10687# ------------ 10688# Manipulate m4 lists. 10689# These macros are necessary as long as will still need to support 10690# Autoconf-2.59, which quotes differently. 10691m4_define([lt_car], [[$1]]) 10692m4_define([lt_cdr], 10693[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], 10694 [$#], 1, [], 10695 [m4_dquote(m4_shift($@))])]) 10696m4_define([lt_unquote], $1) 10697 10698 10699# lt_append(MACRO-NAME, STRING, [SEPARATOR]) 10700# ------------------------------------------ 10701# Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'. 10702# Note that neither SEPARATOR nor STRING are expanded; they are appended 10703# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). 10704# No SEPARATOR is output if MACRO-NAME was previously undefined (different 10705# than defined and empty). 10706# 10707# This macro is needed until we can rely on Autoconf 2.62, since earlier 10708# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. 10709m4_define([lt_append], 10710[m4_define([$1], 10711 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) 10712 10713 10714 10715# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) 10716# ---------------------------------------------------------- 10717# Produce a SEP delimited list of all paired combinations of elements of 10718# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list 10719# has the form PREFIXmINFIXSUFFIXn. 10720# Needed until we can rely on m4_combine added in Autoconf 2.62. 10721m4_define([lt_combine], 10722[m4_if(m4_eval([$# > 3]), [1], 10723 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl 10724[[m4_foreach([_Lt_prefix], [$2], 10725 [m4_foreach([_Lt_suffix], 10726 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, 10727 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) 10728 10729 10730# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) 10731# ----------------------------------------------------------------------- 10732# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited 10733# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. 10734m4_define([lt_if_append_uniq], 10735[m4_ifdef([$1], 10736 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], 10737 [lt_append([$1], [$2], [$3])$4], 10738 [$5])], 10739 [lt_append([$1], [$2], [$3])$4])]) 10740 10741 10742# lt_dict_add(DICT, KEY, VALUE) 10743# ----------------------------- 10744m4_define([lt_dict_add], 10745[m4_define([$1($2)], [$3])]) 10746 10747 10748# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) 10749# -------------------------------------------- 10750m4_define([lt_dict_add_subkey], 10751[m4_define([$1($2:$3)], [$4])]) 10752 10753 10754# lt_dict_fetch(DICT, KEY, [SUBKEY]) 10755# ---------------------------------- 10756m4_define([lt_dict_fetch], 10757[m4_ifval([$3], 10758 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), 10759 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) 10760 10761 10762# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) 10763# ----------------------------------------------------------------- 10764m4_define([lt_if_dict_fetch], 10765[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], 10766 [$5], 10767 [$6])]) 10768 10769 10770# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) 10771# -------------------------------------------------------------- 10772m4_define([lt_dict_filter], 10773[m4_if([$5], [], [], 10774 [lt_join(m4_quote(m4_default([$4], [[, ]])), 10775 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), 10776 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl 10777]) 10778 10779# ltversion.m4 -- version numbers -*- Autoconf -*- 10780# 10781# Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc. 10782# Written by Scott James Remnant, 2004 10783# 10784# This file is free software; the Free Software Foundation gives 10785# unlimited permission to copy and/or distribute it, with or without 10786# modifications, as long as this notice is preserved. 10787 10788# @configure_input@ 10789 10790# serial 4179 ltversion.m4 10791# This file is part of GNU Libtool 10792 10793m4_define([LT_PACKAGE_VERSION], [2.4.6]) 10794m4_define([LT_PACKAGE_REVISION], [2.4.6]) 10795 10796AC_DEFUN([LTVERSION_VERSION], 10797[macro_version='2.4.6' 10798macro_revision='2.4.6' 10799_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 10800_LT_DECL(, macro_revision, 0) 10801]) 10802 10803# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- 10804# 10805# Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software 10806# Foundation, Inc. 10807# Written by Scott James Remnant, 2004. 10808# 10809# This file is free software; the Free Software Foundation gives 10810# unlimited permission to copy and/or distribute it, with or without 10811# modifications, as long as this notice is preserved. 10812 10813# serial 5 lt~obsolete.m4 10814 10815# These exist entirely to fool aclocal when bootstrapping libtool. 10816# 10817# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN), 10818# which have later been changed to m4_define as they aren't part of the 10819# exported API, or moved to Autoconf or Automake where they belong. 10820# 10821# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN 10822# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us 10823# using a macro with the same name in our local m4/libtool.m4 it'll 10824# pull the old libtool.m4 in (it doesn't see our shiny new m4_define 10825# and doesn't know about Autoconf macros at all.) 10826# 10827# So we provide this file, which has a silly filename so it's always 10828# included after everything else. This provides aclocal with the 10829# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything 10830# because those macros already exist, or will be overwritten later. 10831# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 10832# 10833# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. 10834# Yes, that means every name once taken will need to remain here until 10835# we give up compatibility with versions before 1.7, at which point 10836# we need to keep only those names which we still refer to. 10837 10838# This is to help aclocal find these macros, as it can't see m4_define. 10839AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) 10840 10841m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) 10842m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) 10843m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) 10844m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) 10845m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) 10846m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) 10847m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) 10848m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) 10849m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) 10850m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) 10851m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) 10852m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) 10853m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) 10854m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) 10855m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) 10856m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) 10857m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) 10858m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) 10859m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) 10860m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) 10861m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) 10862m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) 10863m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) 10864m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) 10865m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) 10866m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) 10867m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) 10868m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) 10869m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) 10870m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) 10871m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) 10872m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) 10873m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) 10874m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) 10875m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) 10876m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) 10877m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) 10878m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) 10879m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) 10880m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) 10881m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) 10882m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) 10883m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) 10884m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) 10885m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) 10886m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) 10887m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) 10888m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) 10889m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) 10890m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) 10891m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) 10892m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) 10893m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) 10894m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) 10895m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) 10896m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) 10897m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) 10898m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) 10899m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) 10900m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) 10901m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) 10902 10903# nls.m4 serial 5 (gettext-0.18) 10904dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014, 2016 Free Software 10905dnl Foundation, Inc. 10906dnl This file is free software; the Free Software Foundation 10907dnl gives unlimited permission to copy and/or distribute it, 10908dnl with or without modifications, as long as this notice is preserved. 10909dnl 10910dnl This file can be used in projects which are not available under 10911dnl the GNU General Public License or the GNU Library General Public 10912dnl License but which still want to provide support for the GNU gettext 10913dnl functionality. 10914dnl Please note that the actual code of the GNU gettext library is covered 10915dnl by the GNU Library General Public License, and the rest of the GNU 10916dnl gettext package is covered by the GNU General Public License. 10917dnl They are *not* in the public domain. 10918 10919dnl Authors: 10920dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. 10921dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. 10922 10923AC_PREREQ([2.50]) 10924 10925AC_DEFUN([AM_NLS], 10926[ 10927 AC_MSG_CHECKING([whether NLS is requested]) 10928 dnl Default is enabled NLS 10929 AC_ARG_ENABLE([nls], 10930 [ --disable-nls do not use Native Language Support], 10931 USE_NLS=$enableval, USE_NLS=yes) 10932 AC_MSG_RESULT([$USE_NLS]) 10933 AC_SUBST([USE_NLS]) 10934]) 10935 10936dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 10937dnl serial 11 (pkg-config-0.29.1) 10938dnl 10939dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 10940dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com> 10941dnl 10942dnl This program is free software; you can redistribute it and/or modify 10943dnl it under the terms of the GNU General Public License as published by 10944dnl the Free Software Foundation; either version 2 of the License, or 10945dnl (at your option) any later version. 10946dnl 10947dnl This program is distributed in the hope that it will be useful, but 10948dnl WITHOUT ANY WARRANTY; without even the implied warranty of 10949dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10950dnl General Public License for more details. 10951dnl 10952dnl You should have received a copy of the GNU General Public License 10953dnl along with this program; if not, write to the Free Software 10954dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 10955dnl 02111-1307, USA. 10956dnl 10957dnl As a special exception to the GNU General Public License, if you 10958dnl distribute this file as part of a program that contains a 10959dnl configuration script generated by Autoconf, you may include it under 10960dnl the same distribution terms that you use for the rest of that 10961dnl program. 10962 10963dnl PKG_PREREQ(MIN-VERSION) 10964dnl ----------------------- 10965dnl Since: 0.29 10966dnl 10967dnl Verify that the version of the pkg-config macros are at least 10968dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's 10969dnl installed version of pkg-config, this checks the developer's version 10970dnl of pkg.m4 when generating configure. 10971dnl 10972dnl To ensure that this macro is defined, also add: 10973dnl m4_ifndef([PKG_PREREQ], 10974dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])]) 10975dnl 10976dnl See the "Since" comment for each macro you use to see what version 10977dnl of the macros you require. 10978m4_defun([PKG_PREREQ], 10979[m4_define([PKG_MACROS_VERSION], [0.29.1]) 10980m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, 10981 [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) 10982])dnl PKG_PREREQ 10983 10984dnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) 10985dnl ---------------------------------- 10986dnl Since: 0.16 10987dnl 10988dnl Search for the pkg-config tool and set the PKG_CONFIG variable to 10989dnl first found in the path. Checks that the version of pkg-config found 10990dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is 10991dnl used since that's the first version where most current features of 10992dnl pkg-config existed. 10993AC_DEFUN([PKG_PROG_PKG_CONFIG], 10994[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) 10995m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) 10996m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) 10997AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) 10998AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) 10999AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) 11000 11001if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11002 AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) 11003fi 11004if test -n "$PKG_CONFIG"; then 11005 _pkg_min_version=m4_default([$1], [0.9.0]) 11006 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) 11007 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11008 AC_MSG_RESULT([yes]) 11009 else 11010 AC_MSG_RESULT([no]) 11011 PKG_CONFIG="" 11012 fi 11013fi[]dnl 11014])dnl PKG_PROG_PKG_CONFIG 11015 11016dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 11017dnl ------------------------------------------------------------------- 11018dnl Since: 0.18 11019dnl 11020dnl Check to see whether a particular set of modules exists. Similar to 11021dnl PKG_CHECK_MODULES(), but does not set variables or print errors. 11022dnl 11023dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 11024dnl only at the first occurence in configure.ac, so if the first place 11025dnl it's called might be skipped (such as if it is within an "if", you 11026dnl have to call PKG_CHECK_EXISTS manually 11027AC_DEFUN([PKG_CHECK_EXISTS], 11028[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 11029if test -n "$PKG_CONFIG" && \ 11030 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then 11031 m4_default([$2], [:]) 11032m4_ifvaln([$3], [else 11033 $3])dnl 11034fi]) 11035 11036dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 11037dnl --------------------------------------------- 11038dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting 11039dnl pkg_failed based on the result. 11040m4_define([_PKG_CONFIG], 11041[if test -n "$$1"; then 11042 pkg_cv_[]$1="$$1" 11043 elif test -n "$PKG_CONFIG"; then 11044 PKG_CHECK_EXISTS([$3], 11045 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` 11046 test "x$?" != "x0" && pkg_failed=yes ], 11047 [pkg_failed=yes]) 11048 else 11049 pkg_failed=untried 11050fi[]dnl 11051])dnl _PKG_CONFIG 11052 11053dnl _PKG_SHORT_ERRORS_SUPPORTED 11054dnl --------------------------- 11055dnl Internal check to see if pkg-config supports short errors. 11056AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], 11057[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 11058if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11059 _pkg_short_errors_supported=yes 11060else 11061 _pkg_short_errors_supported=no 11062fi[]dnl 11063])dnl _PKG_SHORT_ERRORS_SUPPORTED 11064 11065 11066dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 11067dnl [ACTION-IF-NOT-FOUND]) 11068dnl -------------------------------------------------------------- 11069dnl Since: 0.4.0 11070dnl 11071dnl Note that if there is a possibility the first call to 11072dnl PKG_CHECK_MODULES might not happen, you should be sure to include an 11073dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 11074AC_DEFUN([PKG_CHECK_MODULES], 11075[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 11076AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl 11077AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl 11078 11079pkg_failed=no 11080AC_MSG_CHECKING([for $1]) 11081 11082_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) 11083_PKG_CONFIG([$1][_LIBS], [libs], [$2]) 11084 11085m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS 11086and $1[]_LIBS to avoid the need to call pkg-config. 11087See the pkg-config man page for more details.]) 11088 11089if test $pkg_failed = yes; then 11090 AC_MSG_RESULT([no]) 11091 _PKG_SHORT_ERRORS_SUPPORTED 11092 if test $_pkg_short_errors_supported = yes; then 11093 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` 11094 else 11095 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` 11096 fi 11097 # Put the nasty error message in config.log where it belongs 11098 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD 11099 11100 m4_default([$4], [AC_MSG_ERROR( 11101[Package requirements ($2) were not met: 11102 11103$$1_PKG_ERRORS 11104 11105Consider adjusting the PKG_CONFIG_PATH environment variable if you 11106installed software in a non-standard prefix. 11107 11108_PKG_TEXT])[]dnl 11109 ]) 11110elif test $pkg_failed = untried; then 11111 AC_MSG_RESULT([no]) 11112 m4_default([$4], [AC_MSG_FAILURE( 11113[The pkg-config script could not be found or is too old. Make sure it 11114is in your PATH or set the PKG_CONFIG environment variable to the full 11115path to pkg-config. 11116 11117_PKG_TEXT 11118 11119To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl 11120 ]) 11121else 11122 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS 11123 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS 11124 AC_MSG_RESULT([yes]) 11125 $3 11126fi[]dnl 11127])dnl PKG_CHECK_MODULES 11128 11129 11130dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 11131dnl [ACTION-IF-NOT-FOUND]) 11132dnl --------------------------------------------------------------------- 11133dnl Since: 0.29 11134dnl 11135dnl Checks for existence of MODULES and gathers its build flags with 11136dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags 11137dnl and VARIABLE-PREFIX_LIBS from --libs. 11138dnl 11139dnl Note that if there is a possibility the first call to 11140dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to 11141dnl include an explicit call to PKG_PROG_PKG_CONFIG in your 11142dnl configure.ac. 11143AC_DEFUN([PKG_CHECK_MODULES_STATIC], 11144[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 11145_save_PKG_CONFIG=$PKG_CONFIG 11146PKG_CONFIG="$PKG_CONFIG --static" 11147PKG_CHECK_MODULES($@) 11148PKG_CONFIG=$_save_PKG_CONFIG[]dnl 11149])dnl PKG_CHECK_MODULES_STATIC 11150 11151 11152dnl PKG_INSTALLDIR([DIRECTORY]) 11153dnl ------------------------- 11154dnl Since: 0.27 11155dnl 11156dnl Substitutes the variable pkgconfigdir as the location where a module 11157dnl should install pkg-config .pc files. By default the directory is 11158dnl $libdir/pkgconfig, but the default can be changed by passing 11159dnl DIRECTORY. The user can override through the --with-pkgconfigdir 11160dnl parameter. 11161AC_DEFUN([PKG_INSTALLDIR], 11162[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) 11163m4_pushdef([pkg_description], 11164 [pkg-config installation directory @<:@]pkg_default[@:>@]) 11165AC_ARG_WITH([pkgconfigdir], 11166 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, 11167 [with_pkgconfigdir=]pkg_default) 11168AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) 11169m4_popdef([pkg_default]) 11170m4_popdef([pkg_description]) 11171])dnl PKG_INSTALLDIR 11172 11173 11174dnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) 11175dnl -------------------------------- 11176dnl Since: 0.27 11177dnl 11178dnl Substitutes the variable noarch_pkgconfigdir as the location where a 11179dnl module should install arch-independent pkg-config .pc files. By 11180dnl default the directory is $datadir/pkgconfig, but the default can be 11181dnl changed by passing DIRECTORY. The user can override through the 11182dnl --with-noarch-pkgconfigdir parameter. 11183AC_DEFUN([PKG_NOARCH_INSTALLDIR], 11184[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) 11185m4_pushdef([pkg_description], 11186 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) 11187AC_ARG_WITH([noarch-pkgconfigdir], 11188 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, 11189 [with_noarch_pkgconfigdir=]pkg_default) 11190AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) 11191m4_popdef([pkg_default]) 11192m4_popdef([pkg_description]) 11193])dnl PKG_NOARCH_INSTALLDIR 11194 11195 11196dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, 11197dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 11198dnl ------------------------------------------- 11199dnl Since: 0.28 11200dnl 11201dnl Retrieves the value of the pkg-config variable for the given module. 11202AC_DEFUN([PKG_CHECK_VAR], 11203[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 11204AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl 11205 11206_PKG_CONFIG([$1], [variable="][$3]["], [$2]) 11207AS_VAR_COPY([$1], [pkg_cv_][$1]) 11208 11209AS_VAR_IF([$1], [""], [$5], [$4])dnl 11210])dnl PKG_CHECK_VAR 11211 11212dnl Copyright (c) 2002-2015 11213dnl The Xfce development team. All rights reserved. 11214dnl 11215dnl Written for Xfce by Benedikt Meurer <benny@xfce.org>. 11216dnl 11217dnl This program is free software; you can redistribute it and/or modify 11218dnl it under the terms of the GNU General Public License as published by 11219dnl the Free Software Foundation; either version 2 of the License, or 11220dnl (at your option) any later version. 11221dnl 11222dnl This program is distributed in the hope that it will be useful, 11223dnl but WITHOUT ANY WARRANTY; without even the implied warranty of 11224dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11225dnl GNU General Public License for more details. 11226dnl 11227dnl You should have received a copy of the GNU General Public License along 11228dnl with this program; if not, write to the Free Software Foundation, Inc., 11229dnl 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 11230dnl 11231dnl xdt-depends 11232dnl ----------- 11233dnl Contains M4 macros to check for software dependencies. 11234dnl Partly based on prior work of the XDG contributors. 11235dnl 11236 11237 11238 11239dnl We need recent a autoconf version 11240AC_PREREQ([2.60]) 11241 11242 11243 11244dnl XDT_PROG_PKG_CONFIG() 11245dnl 11246dnl Checks for the freedesktop.org pkg-config 11247dnl utility and sets the PKG_CONFIG environment 11248dnl variable to the full path if found. 11249dnl 11250AC_DEFUN([XDT_PROG_PKG_CONFIG], 11251[ 11252 # minimum supported version of pkg-config 11253 xdt_cv_PKG_CONFIG_MIN_VERSION=0.9.0 11254 11255 m4_ifdef([PKG_PROG_PKG_CONFIG], 11256 [ 11257 PKG_PROG_PKG_CONFIG([$xdt_cv_PKG_CONFIG_MIN_VERSION]) 11258 11259 if test x"$PKG_CONFIG" = x""; then 11260 echo 11261 echo "*** Your version of pkg-config is too old. You need atleast" 11262 echo "*** pkg-config $xdt_cv_PKG_CONFIG_MIN_VERSION or newer. You can download pkg-config" 11263 echo "*** from the freedesktop.org software repository at" 11264 echo "***" 11265 echo "*** https://www.freedesktop.org/wiki/Software/pkg-config/" 11266 echo "***" 11267 exit 1; 11268 fi 11269 ], 11270 [ 11271 echo 11272 echo "*** The pkg-config utility could not be found on your system." 11273 echo "*** Make sure it is in your path, or set the PKG_CONFIG" 11274 echo "*** environment variable to the full path to pkg-config." 11275 echo "*** You can download pkg-config from the freedesktop.org" 11276 echo "*** software repository at" 11277 echo "***" 11278 echo "*** https://www.freedesktop.org/wiki/Software/pkg-config/" 11279 echo "***" 11280 exit 1 11281 ]) 11282]) 11283 11284 11285 11286dnl XDT_CHECK_PACKAGE(varname, package, version, [action-if], [action-if-not]) 11287dnl 11288dnl Checks if "package" >= "version" is installed on the 11289dnl target system, using the pkg-config utility. If the 11290dnl dependency is met, "varname"_CFLAGS, "varname"_LIBS, 11291dnl "varname"_VERSION and "varname"_REQUIRED_VERSION 11292dnl will be set and marked for substition. 11293dnl 11294dnl "varname"_REQUIRED_VERSION will be set to the value of 11295dnl "version". This is mostly useful to automatically 11296dnl place the correct version information into the RPM 11297dnl .spec file. 11298dnl 11299dnl In addition, if the dependency is met, "action-if" will 11300dnl be executed if given. 11301dnl 11302dnl If the package check fails, "action-if-not" will be 11303dnl executed. If this parameter isn't specified, a diagnostic 11304dnl message will be printed and the configure script will 11305dnl be terminated with exit code 1. 11306dnl 11307AC_DEFUN([XDT_CHECK_PACKAGE], 11308[ 11309 XDT_PROG_PKG_CONFIG() 11310 11311 AC_MSG_CHECKING([for $2 >= $3]) 11312 if $PKG_CONFIG "--atleast-version=$3" "$2" >/dev/null 2>&1; then 11313 $1_VERSION=`$PKG_CONFIG --modversion "$2"` 11314 AC_MSG_RESULT([$$1_VERSION]) 11315 11316 AC_MSG_CHECKING([$1_CFLAGS]) 11317 $1_CFLAGS=`$PKG_CONFIG --cflags "$2"` 11318 AC_MSG_RESULT([$$1_CFLAGS]) 11319 11320 AC_MSG_CHECKING([$1_LIBS]) 11321 $1_LIBS=`$PKG_CONFIG --libs "$2"` 11322 AC_MSG_RESULT([$$1_LIBS]) 11323 11324 $1_REQUIRED_VERSION=$3 11325 11326 AC_SUBST([$1_VERSION]) 11327 AC_SUBST([$1_CFLAGS]) 11328 AC_SUBST([$1_LIBS]) 11329 AC_SUBST([$1_REQUIRED_VERSION]) 11330 11331 ifelse([$4], , , [$4]) 11332 elif $PKG_CONFIG --exists "$2" >/dev/null 2>&1; then 11333 xdt_cv_version=`$PKG_CONFIG --modversion "$2"` 11334 AC_MSG_RESULT([found, but $xdt_cv_version]) 11335 11336 ifelse([$5], , 11337 [ 11338 echo "*** The required package $2 was found on your system," 11339 echo "*** but the installed version ($xdt_cv_version) is too old." 11340 echo "*** Please upgrade $2 to atleast version $3, or adjust" 11341 echo "*** the PKG_CONFIG_PATH environment variable if you installed" 11342 echo "*** the new version of the package in a nonstandard prefix so" 11343 echo "*** pkg-config is able to find it." 11344 exit 1 11345 ], [$5]) 11346 else 11347 AC_MSG_RESULT([not found]) 11348 11349 ifelse([$5], , 11350 [ 11351 echo "*** The required package $2 was not found on your system." 11352 echo "*** Please install $2 (atleast version $3) or adjust" 11353 echo "*** the PKG_CONFIG_PATH environment variable if you" 11354 echo "*** installed the package in a nonstandard prefix so that" 11355 echo "*** pkg-config is able to find it." 11356 exit 1 11357 ], [$5]) 11358 fi 11359]) 11360 11361 11362 11363dnl XDT_CHECK_OPTIONAL_PACKAGE(varname, package, version, optionname, helpstring, [default]) 11364dnl 11365dnl Checks for an optional dependency on "package" >= "version". "default" 11366dnl can be "yes" or "no" (defaults to "yes" if not specified) and controls 11367dnl whether configure should check this dependency by default, or only if 11368dnl the user explicitly enables it using a command line switch. 11369dnl 11370dnl This macro automatically adds a commandline switch based on the "optionname" 11371dnl parameter (--enable-optionname/--disable-optionname), which allows the 11372dnl user to explicitly control whether this optional dependency should be 11373dnl enabled or not. The "helpstring" parameter gives a brief(!) description 11374dnl about this dependency. 11375dnl 11376dnl If the user chose to enable this dependency and the required package 11377dnl was found, this macro defines the variable "varname"_FOUND and sets it 11378dnl to the string "yes", in addition to the 4 variables set by XDT_CHECK_PACKAGE. 11379dnl But "varname"_FOUND will not be marked for substition. Furthermore, 11380dnl a CPP define HAVE_"varname" will be placed in config.h (or added to 11381dnl the cc command line, depending on your configure.ac) and set to 11382dnl 1. 11383dnl 11384AC_DEFUN([XDT_CHECK_OPTIONAL_PACKAGE], 11385[ 11386 AC_REQUIRE([XDT_PROG_PKG_CONFIG]) 11387 11388 AC_ARG_ENABLE([$4], 11389AC_HELP_STRING([--enable-$4], [Enable checking for $5 (default=m4_default([$6], [yes]))]) 11390AC_HELP_STRING([--disable-$4], [Disable checking for $5]), 11391 [xdt_cv_$1_check=$enableval], [xdt_cv_$1_check=m4_default([$6], [yes])]) 11392 11393 if test x"$xdt_cv_$1_check" = x"yes"; then 11394 if $PKG_CONFIG --exists "$2 >= $3" >/dev/null 2>&1; then 11395 XDT_CHECK_PACKAGE([$1], [$2], [$3], 11396 [ 11397 AC_DEFINE([HAVE_$1], [1], [Define if $2 >= $3 present]) 11398 $1_FOUND="yes" 11399 ]) 11400 else 11401 AC_MSG_CHECKING([for optional package $2 >= $3]) 11402 AC_MSG_RESULT([not found]) 11403 fi 11404 else 11405 AC_MSG_CHECKING([for optional package $2]) 11406 AC_MSG_RESULT([disabled]) 11407 fi 11408 11409 AM_CONDITIONAL([HAVE_$1], [test x"$$1_FOUND" = x"yes"]) 11410]) 11411 11412 11413 11414dnl XDT_CHECK_LIBX11() 11415dnl 11416dnl Executes various checks for X11. Sets LIBX11_CFLAGS, LIBX11_LDFLAGS 11417dnl and LIBX11_LIBS (and marks them for substitution). In addition 11418dnl HAVE_LIBX11 is set to 1 in config.h, if the X window system and 11419dnl the development files are detected on the target system. 11420dnl 11421AC_DEFUN([XDT_CHECK_LIBX11], 11422[ 11423 AC_REQUIRE([AC_PATH_XTRA]) 11424 11425 LIBX11_CFLAGS= LIBX11_LDFLAGS= LIBX11_LIBS= 11426 if test x"$no_x" != x"yes"; then 11427 AC_CHECK_LIB([X11], [main], 11428 [ 11429 AC_DEFINE([HAVE_LIBX11], [1], [Define if libX11 is available]) 11430 LIBX11_CFLAGS="$X_CFLAGS" 11431 for option in $X_PRE_LIBS $X_EXTRA_LIBS $X_LIBS; do 11432 case "$option" in 11433 -L*) 11434 path=`echo $option | sed 's/^-L//'` 11435 if test x"$path" != x""; then 11436 LIBX11_LDFLAGS="$LIBX11_LDFLAGS -L$path" 11437 fi 11438 ;; 11439 *) 11440 LIBX11_LIBS="$LIBX11_LIBS $option" 11441 ;; 11442 esac 11443 done 11444 if ! echo $LIBX11_LIBS | grep -- '-lX11' >/dev/null; then 11445 LIBX11_LIBS="$LIBX11_LIBS -lX11" 11446 fi 11447 ], [], [$X_CFLAGS $X_PRE_LIBS $X_EXTRA_LIBS $X_LIBS]) 11448 fi 11449 AC_SUBST([LIBX11_CFLAGS]) 11450 AC_SUBST([LIBX11_LDFLAGS]) 11451 AC_SUBST([LIBX11_LIBS]) 11452]) 11453 11454 11455 11456dnl XDT_CHECK_LIBX11_REQUIRE() 11457dnl 11458dnl Similar to XDT_CHECK_LIBX11(), but terminates with an error if 11459dnl the X window system and development files aren't detected on the 11460dnl target system. 11461dnl 11462AC_DEFUN([XDT_CHECK_LIBX11_REQUIRE], 11463[ 11464 AC_REQUIRE([XDT_CHECK_LIBX11]) 11465 11466 if test x"$no_x" = x"yes"; then 11467 AC_MSG_ERROR([X Window system libraries and header files are required]) 11468 fi 11469]) 11470 11471 11472 11473dnl XDT_CHECK_LIBSM() 11474dnl 11475dnl Checks whether the session management library is present on the 11476dnl target system, and sets LIBSM_CFLAGS, LIBSM_LDFLAGS and LIBSM_LIBS 11477dnl properly. In addition, HAVE_LIBSM will be set to 1 in config.h 11478dnl if libSM is detected. 11479dnl 11480AC_DEFUN([XDT_CHECK_LIBSM], 11481[ 11482 AC_REQUIRE([XDT_CHECK_LIBX11]) 11483 11484 LIBSM_CFLAGS= LIBSM_LDFLAGS= LIBSM_LIBS= 11485 if test x"$no_x" != x"yes"; then 11486 AC_CHECK_LIB([SM], [SmcSaveYourselfDone], 11487 [ 11488 AC_DEFINE([HAVE_LIBSM], [1], [Define if libSM is available]) 11489 LIBSM_CFLAGS="$LIBX11_CFLAGS" 11490 LIBSM_LDFLAGS="$LIBX11_LDFLAGS" 11491 LIBSM_LIBS="$LIBX11_LIBS" 11492 if ! echo $LIBSM_LIBS | grep -- '-lSM' >/dev/null; then 11493 LIBSM_LIBS="$LIBSM_LIBS -lSM -lICE" 11494 fi 11495 ], [], [$LIBX11_CFLAGS $LIBX11_LDFLAGS $LIBX11_LIBS -lICE]) 11496 fi 11497 AC_SUBST([LIBSM_CFLAGS]) 11498 AC_SUBST([LIBSM_LDFLAGS]) 11499 AC_SUBST([LIBSM_LIBS]) 11500]) 11501 11502 11503 11504dnl XDT_CHECK_LIBXPM() 11505dnl 11506dnl Checks if the Xpm library is present on the target system, and 11507dnl sets LIBXPM_CFLAGS, LIBXPM_LDFLAGS and LIBXPM_LIBS. In addition, 11508dnl HAVE_LIBXPM will be set to 1 in config.h if libXpm is detected. 11509dnl 11510AC_DEFUN([XDT_CHECK_LIBXPM], 11511[ 11512 AC_REQUIRE([XDT_CHECK_LIBX11]) 11513 11514 LIBXPM_CFLAGS= LIBXPM_LDFLAGS= LIBXPM_LIBS= 11515 if test "$no_x" != "yes"; then 11516 AC_CHECK_LIB([Xpm], [main], 11517 [ 11518 AC_DEFINE([HAVE_LIBXPM], [1], [Define if libXpm is available]) 11519 LIBXPM_CFLAGS="$LIBX11_CFLAGS" 11520 LIBXPM_LDFLAGS="$LIBX11_LDFLAGS" 11521 LIBXPM_LIBS="$LIBX11_LIBS" 11522 if ! echo $LIBXPM_LIBS | grep -- '-lXpm' >/dev/null; then 11523 LIBXPM_LIBS="$LIBXPM_LIBS -lXpm" 11524 fi 11525 ], [], [$LIBX11_CFLAGS $LIBX11_LDFLAGS $LIBX11_LIBS -lXpm]) 11526 fi 11527 AC_SUBST([LIBXPM_CFLAGS]) 11528 AC_SUBST([LIBXPM_LDFLAGS]) 11529 AC_SUBST([LIBXPM_LIBS]) 11530]) 11531 11532 11533 11534dnl XDT_CHECK_LIBXPM_REQUIRE() 11535dnl 11536dnl Similar to XDT_CHECK_LIBXPM(), but fails if the Xpm library isn't 11537dnl present on the target system. 11538dnl 11539AC_DEFUN([XDT_CHECK_LIBXPM_REQUIRE], 11540[ 11541 AC_REQUIRE([XDT_CHECK_LIBX11_REQUIRE]) 11542 AC_REQUIRE([XDT_CHECK_LIBXPM]) 11543 11544 if test x"$LIBXPM_LIBS" = x""; then 11545 AC_MSG_ERROR([The Xpm library was not found on your system]) 11546 fi 11547]) 11548 11549 11550dnl Copyright (c) 2002-2015 11551dnl The Xfce development team. All rights reserved. 11552dnl 11553dnl Written for Xfce by Benedikt Meurer <benny@xfce.org>. 11554dnl 11555dnl This program is free software; you can redistribute it and/or modify 11556dnl it under the terms of the GNU General Public License as published by 11557dnl the Free Software Foundation; either version 2 of the License, or 11558dnl (at your option) any later version. 11559dnl 11560dnl This program is distributed in the hope that it will be useful, 11561dnl but WITHOUT ANY WARRANTY; without even the implied warranty of 11562dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11563dnl GNU General Public License for more details. 11564dnl 11565dnl You should have received a copy of the GNU General Public License along 11566dnl with this program; if not, write to the Free Software Foundation, Inc., 11567dnl 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 11568dnl 11569dnl xdt-depends 11570dnl ----------- 11571dnl Contains M4 macros to check for software dependencies. 11572dnl Partly based on prior work of the XDG contributors. 11573dnl 11574 11575 11576 11577dnl We need recent a autoconf version 11578AC_PREREQ([2.60]) 11579 11580 11581dnl XDT_SUPPORTED_FLAGS(VAR, FLAGS) 11582dnl 11583dnl For each token in FLAGS, checks to be sure the compiler supports 11584dnl the flag, and if so, adds each one to VAR. 11585dnl 11586AC_DEFUN([XDT_SUPPORTED_FLAGS], 11587[ 11588 for flag in $2; do 11589 AC_MSG_CHECKING([if $CC supports $flag]) 11590 saved_CFLAGS="$CFLAGS" 11591 CFLAGS="$CFLAGS $flag" 11592 AC_COMPILE_IFELSE([AC_LANG_SOURCE([ ])], [flag_supported=yes], [flag_supported=no]) 11593 CFLAGS="$saved_CFLAGS" 11594 AC_MSG_RESULT([$flag_supported]) 11595 11596 if test "x$flag_supported" = "xyes"; then 11597 $1="$$1 $flag" 11598 fi 11599 done 11600]) 11601 11602 11603 11604dnl XDT_FEATURE_DEBUG(default_level=minimum) 11605dnl 11606AC_DEFUN([XDT_FEATURE_DEBUG], 11607[ 11608 dnl weird indentation to keep output indentation correct 11609 AC_ARG_ENABLE([debug], 11610 AC_HELP_STRING([--enable-debug@<:@=no|minimum|yes|full@:>@], 11611 [Build with debugging support @<:@default=m4_default([$1], [minimum])@:>@]) 11612AC_HELP_STRING([--disable-debug], [Include no debugging support]), 11613 [enable_debug=$enableval], [enable_debug=m4_default([$1], [minimum])]) 11614 11615 AC_MSG_CHECKING([whether to build with debugging support]) 11616 if test x"$enable_debug" = x"full" -o x"$enable_debug" = x"yes"; then 11617 AC_DEFINE([DEBUG], [1], [Define for debugging support]) 11618 11619 xdt_cv_additional_CFLAGS="-DXFCE_DISABLE_DEPRECATED \ 11620 -Wall -Wextra \ 11621 -Wno-missing-field-initializers \ 11622 -Wno-unused-parameter -Wold-style-definition \ 11623 -Wdeclaration-after-statement \ 11624 -Wmissing-declarations \ 11625 -Wmissing-noreturn -Wpointer-arith \ 11626 -Wcast-align -Wformat -Wformat-security -Wformat-y2k \ 11627 -Winit-self -Wmissing-include-dirs -Wundef \ 11628 -Wnested-externs" 11629 CPPFLAGS="$CPPFLAGS" 11630 11631 if test x`uname` = x"Linux"; then 11632 xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -fstack-protector" 11633 fi 11634 11635 dnl # signal.h inline is crapy on openbsd 11636 if test x`uname` != x"OpenBSD"; then 11637 xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -Wredundant-decls" 11638 fi 11639 11640 if test x"$enable_debug" = x"full"; then 11641 AC_DEFINE([DEBUG_TRACE], [1], [Define for tracing support]) 11642 xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -O0 -g -Werror" 11643 CPPFLAGS="$CPPFLAGS -DG_ENABLE_DEBUG" 11644 AC_MSG_RESULT([full]) 11645 else 11646 xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -g -Wshadow" 11647 AC_MSG_RESULT([yes]) 11648 fi 11649 11650 XDT_SUPPORTED_FLAGS([supported_CFLAGS], [$xdt_cv_additional_CFLAGS]) 11651 11652 ifelse([$CXX], , , [ 11653 dnl FIXME: should test on c++ compiler, but the following line causes 11654 dnl autoconf errors for projects that don't check for a 11655 dnl c++ compiler at all. 11656 dnl AC_LANG_PUSH([C++]) 11657 dnl XDT_SUPPORTED_FLAGS([supported_CXXFLAGS], [$xdt_cv_additional_CFLAGS]) 11658 dnl AC_LANG_POP() 11659 dnl instead, just use supported_CFLAGS... 11660 supported_CXXFLAGS="$supported_CFLAGS" 11661 ]) 11662 11663 CFLAGS="$CFLAGS $supported_CFLAGS" 11664 CXXFLAGS="$CXXFLAGS $supported_CXXFLAGS" 11665 else 11666 CPPFLAGS="$CPPFLAGS -DNDEBUG" 11667 11668 if test x"$enable_debug" = x"no"; then 11669 CPPFLAGS="$CPPFLAGS -DG_DISABLE_CAST_CHECKS -DG_DISABLE_ASSERT" 11670 AC_MSG_RESULT([no]) 11671 else 11672 AC_MSG_RESULT([minimum]) 11673 fi 11674 fi 11675]) 11676 11677 11678dnl XDT_FEATURE_VISIBILITY() 11679dnl 11680dnl Checks to see if the compiler supports the 'visibility' attribute 11681dnl If so, adds -DHAVE_GNUC_VISIBILTY to CPPFLAGS. Also sets the 11682dnl automake conditional HAVE_GNUC_VISIBILITY. 11683dnl 11684AC_DEFUN([XDT_FEATURE_VISIBILITY], 11685[ 11686 AC_ARG_ENABLE([visibility], 11687 AC_HELP_STRING([--disable-visibility], 11688 [Don't use ELF visibility attributes]), 11689 [enable_visibility=$enableval], [enable_visibility=yes]) 11690 have_gnuc_visibility=no 11691 if test "x$enable_visibility" != "xno"; then 11692 XDT_SUPPORTED_FLAGS([xdt_vis_test_cflags], [-Wall -Werror -Wno-unused-parameter]) 11693 saved_CFLAGS="$CFLAGS" 11694 CFLAGS="$CFLAGS $xdt_vis_test_cflags" 11695 AC_MSG_CHECKING([whether $CC supports the GNUC visibility attribute]) 11696 AC_COMPILE_IFELSE([AC_LANG_SOURCE( 11697 [ 11698 void test_default (void); 11699 void test_hidden (void); 11700 11701 void __attribute__ ((visibility("default"))) test_default (void) {} 11702 void __attribute__ ((visibility("hidden"))) test_hidden (void) {} 11703 11704 int main (int argc, char **argv) { 11705 test_default (); 11706 test_hidden (); 11707 return 0; 11708 } 11709 ])], 11710 [ 11711 have_gnuc_visibility=yes 11712 AC_MSG_RESULT([yes]) 11713 ], 11714 [ 11715 AC_MSG_RESULT([no]) 11716 ]) 11717 CFLAGS="$saved_CFLAGS" 11718 fi 11719 11720 if test "x$have_gnuc_visibility" = "xyes"; then 11721 CPPFLAGS="$CPPFLAGS -DHAVE_GNUC_VISIBILITY" 11722 xdt_vis_hidden_cflags="" 11723 XDT_SUPPORTED_FLAGS([xdt_vis_hidden_cflags], [-xldscope=hidden]) 11724 if test "x$xdt_vis_hidden_cflags" = "x"; then 11725 XDT_SUPPORTED_FLAGS([xdt_vis_hidden_cflags], [-fvisibility=hidden]) 11726 fi 11727 CFLAGS="$CFLAGS $xdt_vis_hidden_cflags" 11728 fi 11729 11730 AM_CONDITIONAL([HAVE_GNUC_VISIBILITY], [test "x$have_gnuc_visibility" = "xyes"]) 11731]) 11732 11733dnl XDT_FEATURE_LINKER_OPTS 11734dnl 11735dnl Checks for and enables any special linker optimizations. 11736dnl 11737AC_DEFUN([XDT_FEATURE_LINKER_OPTS], 11738[ 11739 AC_ARG_ENABLE([linker-opts], 11740 AC_HELP_STRING([--disable-linker-opts], 11741 [Disable linker optimizations]), 11742 [enable_linker_opts=$enableval], [enable_linker_opts=yes]) 11743 11744 if test "x$enable_linker_opts" != "xno"; then 11745 if test x`uname` != x"OpenBSD"; then 11746 AC_MSG_CHECKING([whether $LD accepts --as-needed]) 11747 case `$LD --as-needed -v 2>&1 </dev/null` in 11748 *GNU* | *'with BFD'*) 11749 LDFLAGS="$LDFLAGS -Wl,--as-needed" 11750 AC_MSG_RESULT([yes]) 11751 ;; 11752 *) 11753 AC_MSG_RESULT([no]) 11754 ;; 11755 esac 11756 fi 11757 AC_MSG_CHECKING([whether $LD accepts -O1]) 11758 case `$LD -O1 -v 2>&1 </dev/null` in 11759 *GNU* | *'with BFD'*) 11760 LDFLAGS="$LDFLAGS -Wl,-O1" 11761 AC_MSG_RESULT([yes]) 11762 ;; 11763 *) 11764 AC_MSG_RESULT([no]) 11765 ;; 11766 esac 11767 fi 11768]) 11769 11770dnl Copyright (c) 2002-2015 11771dnl The Xfce development team. All rights reserved. 11772dnl 11773dnl Written for Xfce by Benedikt Meurer <benny@xfce.org>. 11774dnl 11775dnl This program is free software; you can redistribute it and/or modify 11776dnl it under the terms of the GNU General Public License as published by 11777dnl the Free Software Foundation; either version 2 of the License, or 11778dnl (at your option) any later version. 11779dnl 11780dnl This program is distributed in the hope that it will be useful, 11781dnl but WITHOUT ANY WARRANTY; without even the implied warranty of 11782dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11783dnl GNU General Public License for more details. 11784dnl 11785dnl You should have received a copy of the GNU General Public License along 11786dnl with this program; if not, write to the Free Software Foundation, Inc., 11787dnl 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 11788dnl 11789dnl xdt-i18n 11790dnl -------- 11791dnl Internalization M4 macros. 11792dnl 11793 11794 11795dnl XDT_I18N([LINGUAS][, PACKAGE]) 11796dnl 11797dnl This macro takes care of setting up everything for i18n support. 11798dnl 11799dnl If LINGUAS isn't specified, it will automatically extract the linguas 11800dnl from po/*.po. 11801dnl 11802dnl If PACKAGE isn't specified, it defaults to the package tarname; see 11803dnl the description of AC_INIT() for an explanation of what makes up 11804dnl the package tarname. Normally, you don't need to specify PACKAGE, 11805dnl but you can stick with the default. 11806dnl 11807AC_DEFUN([XDT_I18N], 11808[ 11809 dnl Substitute GETTEXT_PACKAGE variable 11810 GETTEXT_PACKAGE=m4_default([$2], [AC_PACKAGE_TARNAME()]) 11811 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [Name of default gettext domain]) 11812 AC_SUBST([GETTEXT_PACKAGE]) 11813 11814 dnl gettext and stuff 11815 ALL_LINGUAS="m4_ifblank( 11816 [$1], 11817 [esyscmd([echo $(for i in po/*.po; do test -e "$i" && basename -- "$i" .po; done) | tr -d '\n'])], 11818 [$1])" 11819 AM_GLIB_GNU_GETTEXT() 11820 11821 dnl This is required on some Linux systems 11822 AC_CHECK_FUNC([bind_textdomain_codeset]) 11823 11824 dnl Determine where to install locale files 11825 AC_MSG_CHECKING([for locales directory]) 11826 AC_ARG_WITH([locales-dir], 11827 [ 11828 AC_HELP_STRING([--with-locales-dir=DIR], [Install locales into DIR]) 11829 ], [localedir=$withval], 11830 [ 11831 if test x"$CATOBJEXT" = x".mo"; then 11832 localedir=$libdir/locale 11833 else 11834 localedir=$datarootdir/locale 11835 fi 11836 ]) 11837 AC_MSG_RESULT([$localedir]) 11838 AC_SUBST([localedir]) 11839 11840 dnl Determine additional xgettext flags 11841 AC_MSG_CHECKING([for additional xgettext flags]) 11842 if test x"$XGETTEXT_ARGS" = x""; then 11843 XGETTEXT_ARGS="--keyword=Q_ --from-code=UTF-8"; 11844 else 11845 XGETTEXT_ARGS="$XGETTEXT_ARGS --keyword=Q_ --from-code=UTF-8"; 11846 fi 11847 AC_SUBST([XGETTEXT_ARGS]) 11848 AC_MSG_RESULT([$XGETTEXT_ARGS]) 11849]) 11850 11851 11852