aclocal.m4 revision 84febdac
1# generated automatically by aclocal 1.16.4 -*- Autoconf -*- 2 3# Copyright (C) 1996-2021 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.71],, 18[m4_warning([this file was generated for autoconf 2.71. 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-2021 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.4], [], 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.4])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-2021 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-2021 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-2021 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-2021 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. If GNU make was not used, consider 375 re-running the configure script with MAKE="gmake" (or whatever is 376 necessary). You can also try re-running configure with the 377 '--disable-dependency-tracking' option to at least be able to build 378 the package (albeit without support for automatic dependency tracking).]) 379 fi 380 AS_UNSET([am_dirpart]) 381 AS_UNSET([am_filepart]) 382 AS_UNSET([am_mf]) 383 AS_UNSET([am_rc]) 384 rm -f conftest-deps.mk 385} 386])# _AM_OUTPUT_DEPENDENCY_COMMANDS 387 388 389# AM_OUTPUT_DEPENDENCY_COMMANDS 390# ----------------------------- 391# This macro should only be invoked once -- use via AC_REQUIRE. 392# 393# This code is only required when automatic dependency tracking is enabled. 394# This creates each '.Po' and '.Plo' makefile fragment that we'll need in 395# order to bootstrap the dependency handling code. 396AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 397[AC_CONFIG_COMMANDS([depfiles], 398 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 399 [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])]) 400 401# Do all the work for Automake. -*- Autoconf -*- 402 403# Copyright (C) 1996-2021 Free Software Foundation, Inc. 404# 405# This file is free software; the Free Software Foundation 406# gives unlimited permission to copy and/or distribute it, 407# with or without modifications, as long as this notice is preserved. 408 409# This macro actually does too much. Some checks are only needed if 410# your package does certain things. But this isn't really a big deal. 411 412dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. 413m4_define([AC_PROG_CC], 414m4_defn([AC_PROG_CC]) 415[_AM_PROG_CC_C_O 416]) 417 418# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 419# AM_INIT_AUTOMAKE([OPTIONS]) 420# ----------------------------------------------- 421# The call with PACKAGE and VERSION arguments is the old style 422# call (pre autoconf-2.50), which is being phased out. PACKAGE 423# and VERSION should now be passed to AC_INIT and removed from 424# the call to AM_INIT_AUTOMAKE. 425# We support both call styles for the transition. After 426# the next Automake release, Autoconf can make the AC_INIT 427# arguments mandatory, and then we can depend on a new Autoconf 428# release and drop the old call support. 429AC_DEFUN([AM_INIT_AUTOMAKE], 430[AC_PREREQ([2.65])dnl 431dnl Autoconf wants to disallow AM_ names. We explicitly allow 432dnl the ones we care about. 433m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 434AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 435AC_REQUIRE([AC_PROG_INSTALL])dnl 436if test "`cd $srcdir && pwd`" != "`pwd`"; then 437 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 438 # is not polluted with repeated "-I." 439 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 440 # test to see if srcdir already configured 441 if test -f $srcdir/config.status; then 442 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 443 fi 444fi 445 446# test whether we have cygpath 447if test -z "$CYGPATH_W"; then 448 if (cygpath --version) >/dev/null 2>/dev/null; then 449 CYGPATH_W='cygpath -w' 450 else 451 CYGPATH_W=echo 452 fi 453fi 454AC_SUBST([CYGPATH_W]) 455 456# Define the identity of the package. 457dnl Distinguish between old-style and new-style calls. 458m4_ifval([$2], 459[AC_DIAGNOSE([obsolete], 460 [$0: two- and three-arguments forms are deprecated.]) 461m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 462 AC_SUBST([PACKAGE], [$1])dnl 463 AC_SUBST([VERSION], [$2])], 464[_AM_SET_OPTIONS([$1])dnl 465dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 466m4_if( 467 m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]), 468 [ok:ok],, 469 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 470 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 471 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 472 473_AM_IF_OPTION([no-define],, 474[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) 475 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl 476 477# Some tools Automake needs. 478AC_REQUIRE([AM_SANITY_CHECK])dnl 479AC_REQUIRE([AC_ARG_PROGRAM])dnl 480AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) 481AM_MISSING_PROG([AUTOCONF], [autoconf]) 482AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) 483AM_MISSING_PROG([AUTOHEADER], [autoheader]) 484AM_MISSING_PROG([MAKEINFO], [makeinfo]) 485AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 486AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 487AC_REQUIRE([AC_PROG_MKDIR_P])dnl 488# For better backward compatibility. To be removed once Automake 1.9.x 489# dies out for good. For more background, see: 490# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 491# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 492AC_SUBST([mkdir_p], ['$(MKDIR_P)']) 493# We need awk for the "check" target (and possibly the TAP driver). The 494# system "awk" is bad on some platforms. 495AC_REQUIRE([AC_PROG_AWK])dnl 496AC_REQUIRE([AC_PROG_MAKE_SET])dnl 497AC_REQUIRE([AM_SET_LEADING_DOT])dnl 498_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 499 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 500 [_AM_PROG_TAR([v7])])]) 501_AM_IF_OPTION([no-dependencies],, 502[AC_PROVIDE_IFELSE([AC_PROG_CC], 503 [_AM_DEPENDENCIES([CC])], 504 [m4_define([AC_PROG_CC], 505 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl 506AC_PROVIDE_IFELSE([AC_PROG_CXX], 507 [_AM_DEPENDENCIES([CXX])], 508 [m4_define([AC_PROG_CXX], 509 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl 510AC_PROVIDE_IFELSE([AC_PROG_OBJC], 511 [_AM_DEPENDENCIES([OBJC])], 512 [m4_define([AC_PROG_OBJC], 513 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl 514AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], 515 [_AM_DEPENDENCIES([OBJCXX])], 516 [m4_define([AC_PROG_OBJCXX], 517 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl 518]) 519# Variables for tags utilities; see am/tags.am 520if test -z "$CTAGS"; then 521 CTAGS=ctags 522fi 523AC_SUBST([CTAGS]) 524if test -z "$ETAGS"; then 525 ETAGS=etags 526fi 527AC_SUBST([ETAGS]) 528if test -z "$CSCOPE"; then 529 CSCOPE=cscope 530fi 531AC_SUBST([CSCOPE]) 532 533AC_REQUIRE([AM_SILENT_RULES])dnl 534dnl The testsuite driver may need to know about EXEEXT, so add the 535dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This 536dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. 537AC_CONFIG_COMMANDS_PRE(dnl 538[m4_provide_if([_AM_COMPILER_EXEEXT], 539 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 540 541# POSIX will say in a future version that running "rm -f" with no argument 542# is OK; and we want to be able to make that assumption in our Makefile 543# recipes. So use an aggressive probe to check that the usage we want is 544# actually supported "in the wild" to an acceptable degree. 545# See automake bug#10828. 546# To make any issue more visible, cause the running configure to be aborted 547# by default if the 'rm' program in use doesn't match our expectations; the 548# user can still override this though. 549if rm -f && rm -fr && rm -rf; then : OK; else 550 cat >&2 <<'END' 551Oops! 552 553Your 'rm' program seems unable to run without file operands specified 554on the command line, even when the '-f' option is present. This is contrary 555to the behaviour of most rm programs out there, and not conforming with 556the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 557 558Please tell bug-automake@gnu.org about your system, including the value 559of your $PATH and any error possibly output before this message. This 560can help us improve future automake versions. 561 562END 563 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 564 echo 'Configuration will proceed anyway, since you have set the' >&2 565 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 566 echo >&2 567 else 568 cat >&2 <<'END' 569Aborting the configuration process, to ensure you take notice of the issue. 570 571You can download and install GNU coreutils to get an 'rm' implementation 572that behaves properly: <https://www.gnu.org/software/coreutils/>. 573 574If you want to complete the configuration process using your problematic 575'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 576to "yes", and re-run configure. 577 578END 579 AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) 580 fi 581fi 582dnl The trailing newline in this macro's definition is deliberate, for 583dnl backward compatibility and to allow trailing 'dnl'-style comments 584dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. 585]) 586 587dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 588dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 589dnl mangled by Autoconf and run in a shell conditional statement. 590m4_define([_AC_COMPILER_EXEEXT], 591m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 592 593# When config.status generates a header, we must update the stamp-h file. 594# This file resides in the same directory as the config header 595# that is generated. The stamp files are numbered to have different names. 596 597# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 598# loop where config.status creates the headers, so we can generate 599# our stamp files there. 600AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 601[# Compute $1's index in $config_headers. 602_am_arg=$1 603_am_stamp_count=1 604for _am_header in $config_headers :; do 605 case $_am_header in 606 $_am_arg | $_am_arg:* ) 607 break ;; 608 * ) 609 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 610 esac 611done 612echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 613 614# Copyright (C) 2001-2021 Free Software Foundation, Inc. 615# 616# This file is free software; the Free Software Foundation 617# gives unlimited permission to copy and/or distribute it, 618# with or without modifications, as long as this notice is preserved. 619 620# AM_PROG_INSTALL_SH 621# ------------------ 622# Define $install_sh. 623AC_DEFUN([AM_PROG_INSTALL_SH], 624[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 625if test x"${install_sh+set}" != xset; then 626 case $am_aux_dir in 627 *\ * | *\ *) 628 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 629 *) 630 install_sh="\${SHELL} $am_aux_dir/install-sh" 631 esac 632fi 633AC_SUBST([install_sh])]) 634 635# Copyright (C) 2003-2021 Free Software Foundation, Inc. 636# 637# This file is free software; the Free Software Foundation 638# gives unlimited permission to copy and/or distribute it, 639# with or without modifications, as long as this notice is preserved. 640 641# Check whether the underlying file-system supports filenames 642# with a leading dot. For instance MS-DOS doesn't. 643AC_DEFUN([AM_SET_LEADING_DOT], 644[rm -rf .tst 2>/dev/null 645mkdir .tst 2>/dev/null 646if test -d .tst; then 647 am__leading_dot=. 648else 649 am__leading_dot=_ 650fi 651rmdir .tst 2>/dev/null 652AC_SUBST([am__leading_dot])]) 653 654# Check to see how 'make' treats includes. -*- Autoconf -*- 655 656# Copyright (C) 2001-2021 Free Software Foundation, Inc. 657# 658# This file is free software; the Free Software Foundation 659# gives unlimited permission to copy and/or distribute it, 660# with or without modifications, as long as this notice is preserved. 661 662# AM_MAKE_INCLUDE() 663# ----------------- 664# Check whether make has an 'include' directive that can support all 665# the idioms we need for our automatic dependency tracking code. 666AC_DEFUN([AM_MAKE_INCLUDE], 667[AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive]) 668cat > confinc.mk << 'END' 669am__doit: 670 @echo this is the am__doit target >confinc.out 671.PHONY: am__doit 672END 673am__include="#" 674am__quote= 675# BSD make does it like this. 676echo '.include "confinc.mk" # ignored' > confmf.BSD 677# Other make implementations (GNU, Solaris 10, AIX) do it like this. 678echo 'include confinc.mk # ignored' > confmf.GNU 679_am_result=no 680for s in GNU BSD; do 681 AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) 682 AS_CASE([$?:`cat confinc.out 2>/dev/null`], 683 ['0:this is the am__doit target'], 684 [AS_CASE([$s], 685 [BSD], [am__include='.include' am__quote='"'], 686 [am__include='include' am__quote=''])]) 687 if test "$am__include" != "#"; then 688 _am_result="yes ($s style)" 689 break 690 fi 691done 692rm -f confinc.* confmf.* 693AC_MSG_RESULT([${_am_result}]) 694AC_SUBST([am__include])]) 695AC_SUBST([am__quote])]) 696 697# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 698 699# Copyright (C) 1997-2021 Free Software Foundation, Inc. 700# 701# This file is free software; the Free Software Foundation 702# gives unlimited permission to copy and/or distribute it, 703# with or without modifications, as long as this notice is preserved. 704 705# AM_MISSING_PROG(NAME, PROGRAM) 706# ------------------------------ 707AC_DEFUN([AM_MISSING_PROG], 708[AC_REQUIRE([AM_MISSING_HAS_RUN]) 709$1=${$1-"${am_missing_run}$2"} 710AC_SUBST($1)]) 711 712# AM_MISSING_HAS_RUN 713# ------------------ 714# Define MISSING if not defined so far and test if it is modern enough. 715# If it is, set am_missing_run to use it, otherwise, to nothing. 716AC_DEFUN([AM_MISSING_HAS_RUN], 717[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 718AC_REQUIRE_AUX_FILE([missing])dnl 719if test x"${MISSING+set}" != xset; then 720 MISSING="\${SHELL} '$am_aux_dir/missing'" 721fi 722# Use eval to expand $SHELL 723if eval "$MISSING --is-lightweight"; then 724 am_missing_run="$MISSING " 725else 726 am_missing_run= 727 AC_MSG_WARN(['missing' script is too old or missing]) 728fi 729]) 730 731# Helper functions for option handling. -*- Autoconf -*- 732 733# Copyright (C) 2001-2021 Free Software Foundation, Inc. 734# 735# This file is free software; the Free Software Foundation 736# gives unlimited permission to copy and/or distribute it, 737# with or without modifications, as long as this notice is preserved. 738 739# _AM_MANGLE_OPTION(NAME) 740# ----------------------- 741AC_DEFUN([_AM_MANGLE_OPTION], 742[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 743 744# _AM_SET_OPTION(NAME) 745# -------------------- 746# Set option NAME. Presently that only means defining a flag for this option. 747AC_DEFUN([_AM_SET_OPTION], 748[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) 749 750# _AM_SET_OPTIONS(OPTIONS) 751# ------------------------ 752# OPTIONS is a space-separated list of Automake options. 753AC_DEFUN([_AM_SET_OPTIONS], 754[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 755 756# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 757# ------------------------------------------- 758# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 759AC_DEFUN([_AM_IF_OPTION], 760[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 761 762# Copyright (C) 1999-2021 Free Software Foundation, Inc. 763# 764# This file is free software; the Free Software Foundation 765# gives unlimited permission to copy and/or distribute it, 766# with or without modifications, as long as this notice is preserved. 767 768# _AM_PROG_CC_C_O 769# --------------- 770# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC 771# to automatically call this. 772AC_DEFUN([_AM_PROG_CC_C_O], 773[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 774AC_REQUIRE_AUX_FILE([compile])dnl 775AC_LANG_PUSH([C])dnl 776AC_CACHE_CHECK( 777 [whether $CC understands -c and -o together], 778 [am_cv_prog_cc_c_o], 779 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) 780 # Make sure it works both with $CC and with simple cc. 781 # Following AC_PROG_CC_C_O, we do the test twice because some 782 # compilers refuse to overwrite an existing .o file with -o, 783 # though they will create one. 784 am_cv_prog_cc_c_o=yes 785 for am_i in 1 2; do 786 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ 787 && test -f conftest2.$ac_objext; then 788 : OK 789 else 790 am_cv_prog_cc_c_o=no 791 break 792 fi 793 done 794 rm -f core conftest* 795 unset am_i]) 796if test "$am_cv_prog_cc_c_o" != yes; then 797 # Losing compiler, so override with the script. 798 # FIXME: It is wrong to rewrite CC. 799 # But if we don't then we get into trouble of one sort or another. 800 # A longer-term fix would be to have automake use am__CC in this case, 801 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 802 CC="$am_aux_dir/compile $CC" 803fi 804AC_LANG_POP([C])]) 805 806# For backward compatibility. 807AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) 808 809# Copyright (C) 2001-2021 Free Software Foundation, Inc. 810# 811# This file is free software; the Free Software Foundation 812# gives unlimited permission to copy and/or distribute it, 813# with or without modifications, as long as this notice is preserved. 814 815# AM_RUN_LOG(COMMAND) 816# ------------------- 817# Run COMMAND, save the exit status in ac_status, and log it. 818# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) 819AC_DEFUN([AM_RUN_LOG], 820[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD 821 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD 822 ac_status=$? 823 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 824 (exit $ac_status); }]) 825 826# Check to make sure that the build environment is sane. -*- Autoconf -*- 827 828# Copyright (C) 1996-2021 Free Software Foundation, Inc. 829# 830# This file is free software; the Free Software Foundation 831# gives unlimited permission to copy and/or distribute it, 832# with or without modifications, as long as this notice is preserved. 833 834# AM_SANITY_CHECK 835# --------------- 836AC_DEFUN([AM_SANITY_CHECK], 837[AC_MSG_CHECKING([whether build environment is sane]) 838# Reject unsafe characters in $srcdir or the absolute working directory 839# name. Accept space and tab only in the latter. 840am_lf=' 841' 842case `pwd` in 843 *[[\\\"\#\$\&\'\`$am_lf]]*) 844 AC_MSG_ERROR([unsafe absolute working directory name]);; 845esac 846case $srcdir in 847 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 848 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; 849esac 850 851# Do 'set' in a subshell so we don't clobber the current shell's 852# arguments. Must try -L first in case configure is actually a 853# symlink; some systems play weird games with the mod time of symlinks 854# (eg FreeBSD returns the mod time of the symlink's containing 855# directory). 856if ( 857 am_has_slept=no 858 for am_try in 1 2; do 859 echo "timestamp, slept: $am_has_slept" > conftest.file 860 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 861 if test "$[*]" = "X"; then 862 # -L didn't work. 863 set X `ls -t "$srcdir/configure" conftest.file` 864 fi 865 if test "$[*]" != "X $srcdir/configure conftest.file" \ 866 && test "$[*]" != "X conftest.file $srcdir/configure"; then 867 868 # If neither matched, then we have a broken ls. This can happen 869 # if, for instance, CONFIG_SHELL is bash and it inherits a 870 # broken ls alias from the environment. This has actually 871 # happened. Such a system could not be considered "sane". 872 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 873 alias in your environment]) 874 fi 875 if test "$[2]" = conftest.file || test $am_try -eq 2; then 876 break 877 fi 878 # Just in case. 879 sleep 1 880 am_has_slept=yes 881 done 882 test "$[2]" = conftest.file 883 ) 884then 885 # Ok. 886 : 887else 888 AC_MSG_ERROR([newly created file is older than distributed files! 889Check your system clock]) 890fi 891AC_MSG_RESULT([yes]) 892# If we didn't sleep, we still need to ensure time stamps of config.status and 893# generated files are strictly newer. 894am_sleep_pid= 895if grep 'slept: no' conftest.file >/dev/null 2>&1; then 896 ( sleep 1 ) & 897 am_sleep_pid=$! 898fi 899AC_CONFIG_COMMANDS_PRE( 900 [AC_MSG_CHECKING([that generated files are newer than configure]) 901 if test -n "$am_sleep_pid"; then 902 # Hide warnings about reused PIDs. 903 wait $am_sleep_pid 2>/dev/null 904 fi 905 AC_MSG_RESULT([done])]) 906rm -f conftest.file 907]) 908 909# Copyright (C) 2009-2021 Free Software Foundation, Inc. 910# 911# This file is free software; the Free Software Foundation 912# gives unlimited permission to copy and/or distribute it, 913# with or without modifications, as long as this notice is preserved. 914 915# AM_SILENT_RULES([DEFAULT]) 916# -------------------------- 917# Enable less verbose build rules; with the default set to DEFAULT 918# ("yes" being less verbose, "no" or empty being verbose). 919AC_DEFUN([AM_SILENT_RULES], 920[AC_ARG_ENABLE([silent-rules], [dnl 921AS_HELP_STRING( 922 [--enable-silent-rules], 923 [less verbose build output (undo: "make V=1")]) 924AS_HELP_STRING( 925 [--disable-silent-rules], 926 [verbose build output (undo: "make V=0")])dnl 927]) 928case $enable_silent_rules in @%:@ ((( 929 yes) AM_DEFAULT_VERBOSITY=0;; 930 no) AM_DEFAULT_VERBOSITY=1;; 931 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 932esac 933dnl 934dnl A few 'make' implementations (e.g., NonStop OS and NextStep) 935dnl do not support nested variable expansions. 936dnl See automake bug#9928 and bug#10237. 937am_make=${MAKE-make} 938AC_CACHE_CHECK([whether $am_make supports nested variables], 939 [am_cv_make_support_nested_variables], 940 [if AS_ECHO([['TRUE=$(BAR$(V)) 941BAR0=false 942BAR1=true 943V=1 944am__doit: 945 @$(TRUE) 946.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then 947 am_cv_make_support_nested_variables=yes 948else 949 am_cv_make_support_nested_variables=no 950fi]) 951if test $am_cv_make_support_nested_variables = yes; then 952 dnl Using '$V' instead of '$(V)' breaks IRIX make. 953 AM_V='$(V)' 954 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 955else 956 AM_V=$AM_DEFAULT_VERBOSITY 957 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 958fi 959AC_SUBST([AM_V])dnl 960AM_SUBST_NOTMAKE([AM_V])dnl 961AC_SUBST([AM_DEFAULT_V])dnl 962AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl 963AC_SUBST([AM_DEFAULT_VERBOSITY])dnl 964AM_BACKSLASH='\' 965AC_SUBST([AM_BACKSLASH])dnl 966_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 967]) 968 969# Copyright (C) 2001-2021 Free Software Foundation, Inc. 970# 971# This file is free software; the Free Software Foundation 972# gives unlimited permission to copy and/or distribute it, 973# with or without modifications, as long as this notice is preserved. 974 975# AM_PROG_INSTALL_STRIP 976# --------------------- 977# One issue with vendor 'install' (even GNU) is that you can't 978# specify the program used to strip binaries. This is especially 979# annoying in cross-compiling environments, where the build's strip 980# is unlikely to handle the host's binaries. 981# Fortunately install-sh will honor a STRIPPROG variable, so we 982# always use install-sh in "make install-strip", and initialize 983# STRIPPROG with the value of the STRIP variable (set by the user). 984AC_DEFUN([AM_PROG_INSTALL_STRIP], 985[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 986# Installed binaries are usually stripped using 'strip' when the user 987# run "make install-strip". However 'strip' might not be the right 988# tool to use in cross-compilation environments, therefore Automake 989# will honor the 'STRIP' environment variable to overrule this program. 990dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. 991if test "$cross_compiling" != no; then 992 AC_CHECK_TOOL([STRIP], [strip], :) 993fi 994INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 995AC_SUBST([INSTALL_STRIP_PROGRAM])]) 996 997# Copyright (C) 2006-2021 Free Software Foundation, Inc. 998# 999# This file is free software; the Free Software Foundation 1000# gives unlimited permission to copy and/or distribute it, 1001# with or without modifications, as long as this notice is preserved. 1002 1003# _AM_SUBST_NOTMAKE(VARIABLE) 1004# --------------------------- 1005# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 1006# This macro is traced by Automake. 1007AC_DEFUN([_AM_SUBST_NOTMAKE]) 1008 1009# AM_SUBST_NOTMAKE(VARIABLE) 1010# -------------------------- 1011# Public sister of _AM_SUBST_NOTMAKE. 1012AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 1013 1014# Check how to create a tarball. -*- Autoconf -*- 1015 1016# Copyright (C) 2004-2021 Free Software Foundation, Inc. 1017# 1018# This file is free software; the Free Software Foundation 1019# gives unlimited permission to copy and/or distribute it, 1020# with or without modifications, as long as this notice is preserved. 1021 1022# _AM_PROG_TAR(FORMAT) 1023# -------------------- 1024# Check how to create a tarball in format FORMAT. 1025# FORMAT should be one of 'v7', 'ustar', or 'pax'. 1026# 1027# Substitute a variable $(am__tar) that is a command 1028# writing to stdout a FORMAT-tarball containing the directory 1029# $tardir. 1030# tardir=directory && $(am__tar) > result.tar 1031# 1032# Substitute a variable $(am__untar) that extract such 1033# a tarball read from stdin. 1034# $(am__untar) < result.tar 1035# 1036AC_DEFUN([_AM_PROG_TAR], 1037[# Always define AMTAR for backward compatibility. Yes, it's still used 1038# in the wild :-( We should find a proper way to deprecate it ... 1039AC_SUBST([AMTAR], ['$${TAR-tar}']) 1040 1041# We'll loop over all known methods to create a tar archive until one works. 1042_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 1043 1044m4_if([$1], [v7], 1045 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 1046 1047 [m4_case([$1], 1048 [ustar], 1049 [# The POSIX 1988 'ustar' format is defined with fixed-size fields. 1050 # There is notably a 21 bits limit for the UID and the GID. In fact, 1051 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 1052 # and bug#13588). 1053 am_max_uid=2097151 # 2^21 - 1 1054 am_max_gid=$am_max_uid 1055 # The $UID and $GID variables are not portable, so we need to resort 1056 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 1057 # below are definitely unexpected, so allow the users to see them 1058 # (that is, avoid stderr redirection). 1059 am_uid=`id -u || echo unknown` 1060 am_gid=`id -g || echo unknown` 1061 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) 1062 if test $am_uid -le $am_max_uid; then 1063 AC_MSG_RESULT([yes]) 1064 else 1065 AC_MSG_RESULT([no]) 1066 _am_tools=none 1067 fi 1068 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) 1069 if test $am_gid -le $am_max_gid; then 1070 AC_MSG_RESULT([yes]) 1071 else 1072 AC_MSG_RESULT([no]) 1073 _am_tools=none 1074 fi], 1075 1076 [pax], 1077 [], 1078 1079 [m4_fatal([Unknown tar format])]) 1080 1081 AC_MSG_CHECKING([how to create a $1 tar archive]) 1082 1083 # Go ahead even if we have the value already cached. We do so because we 1084 # need to set the values for the 'am__tar' and 'am__untar' variables. 1085 _am_tools=${am_cv_prog_tar_$1-$_am_tools} 1086 1087 for _am_tool in $_am_tools; do 1088 case $_am_tool in 1089 gnutar) 1090 for _am_tar in tar gnutar gtar; do 1091 AM_RUN_LOG([$_am_tar --version]) && break 1092 done 1093 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 1094 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 1095 am__untar="$_am_tar -xf -" 1096 ;; 1097 plaintar) 1098 # Must skip GNU tar: if it does not support --format= it doesn't create 1099 # ustar tarball either. 1100 (tar --version) >/dev/null 2>&1 && continue 1101 am__tar='tar chf - "$$tardir"' 1102 am__tar_='tar chf - "$tardir"' 1103 am__untar='tar xf -' 1104 ;; 1105 pax) 1106 am__tar='pax -L -x $1 -w "$$tardir"' 1107 am__tar_='pax -L -x $1 -w "$tardir"' 1108 am__untar='pax -r' 1109 ;; 1110 cpio) 1111 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 1112 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 1113 am__untar='cpio -i -H $1 -d' 1114 ;; 1115 none) 1116 am__tar=false 1117 am__tar_=false 1118 am__untar=false 1119 ;; 1120 esac 1121 1122 # If the value was cached, stop now. We just wanted to have am__tar 1123 # and am__untar set. 1124 test -n "${am_cv_prog_tar_$1}" && break 1125 1126 # tar/untar a dummy directory, and stop if the command works. 1127 rm -rf conftest.dir 1128 mkdir conftest.dir 1129 echo GrepMe > conftest.dir/file 1130 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 1131 rm -rf conftest.dir 1132 if test -s conftest.tar; then 1133 AM_RUN_LOG([$am__untar <conftest.tar]) 1134 AM_RUN_LOG([cat conftest.dir/file]) 1135 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 1136 fi 1137 done 1138 rm -rf conftest.dir 1139 1140 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 1141 AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 1142 1143AC_SUBST([am__tar]) 1144AC_SUBST([am__untar]) 1145]) # _AM_PROG_TAR 1146 1147dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 1148dnl serial 11 (pkg-config-0.29) 1149dnl 1150dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 1151dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com> 1152dnl 1153dnl This program is free software; you can redistribute it and/or modify 1154dnl it under the terms of the GNU General Public License as published by 1155dnl the Free Software Foundation; either version 2 of the License, or 1156dnl (at your option) any later version. 1157dnl 1158dnl This program is distributed in the hope that it will be useful, but 1159dnl WITHOUT ANY WARRANTY; without even the implied warranty of 1160dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1161dnl General Public License for more details. 1162dnl 1163dnl You should have received a copy of the GNU General Public License 1164dnl along with this program; if not, write to the Free Software 1165dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 1166dnl 02111-1307, USA. 1167dnl 1168dnl As a special exception to the GNU General Public License, if you 1169dnl distribute this file as part of a program that contains a 1170dnl configuration script generated by Autoconf, you may include it under 1171dnl the same distribution terms that you use for the rest of that 1172dnl program. 1173 1174dnl PKG_PREREQ(MIN-VERSION) 1175dnl ----------------------- 1176dnl Since: 0.29 1177dnl 1178dnl Verify that the version of the pkg-config macros are at least 1179dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's 1180dnl installed version of pkg-config, this checks the developer's version 1181dnl of pkg.m4 when generating configure. 1182dnl 1183dnl To ensure that this macro is defined, also add: 1184dnl m4_ifndef([PKG_PREREQ], 1185dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])]) 1186dnl 1187dnl See the "Since" comment for each macro you use to see what version 1188dnl of the macros you require. 1189m4_defun([PKG_PREREQ], 1190[m4_define([PKG_MACROS_VERSION], [0.29]) 1191m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, 1192 [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) 1193])dnl PKG_PREREQ 1194 1195dnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) 1196dnl ---------------------------------- 1197dnl Since: 0.16 1198dnl 1199dnl Search for the pkg-config tool and set the PKG_CONFIG variable to 1200dnl first found in the path. Checks that the version of pkg-config found 1201dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is 1202dnl used since that's the first version where most current features of 1203dnl pkg-config existed. 1204AC_DEFUN([PKG_PROG_PKG_CONFIG], 1205[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) 1206m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) 1207m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) 1208AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) 1209AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) 1210AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) 1211 1212if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 1213 AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) 1214fi 1215if test -n "$PKG_CONFIG"; then 1216 _pkg_min_version=m4_default([$1], [0.9.0]) 1217 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) 1218 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 1219 AC_MSG_RESULT([yes]) 1220 else 1221 AC_MSG_RESULT([no]) 1222 PKG_CONFIG="" 1223 fi 1224fi[]dnl 1225])dnl PKG_PROG_PKG_CONFIG 1226 1227dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 1228dnl ------------------------------------------------------------------- 1229dnl Since: 0.18 1230dnl 1231dnl Check to see whether a particular set of modules exists. Similar to 1232dnl PKG_CHECK_MODULES(), but does not set variables or print errors. 1233dnl 1234dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 1235dnl only at the first occurence in configure.ac, so if the first place 1236dnl it's called might be skipped (such as if it is within an "if", you 1237dnl have to call PKG_CHECK_EXISTS manually 1238AC_DEFUN([PKG_CHECK_EXISTS], 1239[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 1240if test -n "$PKG_CONFIG" && \ 1241 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then 1242 m4_default([$2], [:]) 1243m4_ifvaln([$3], [else 1244 $3])dnl 1245fi]) 1246 1247dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 1248dnl --------------------------------------------- 1249dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting 1250dnl pkg_failed based on the result. 1251m4_define([_PKG_CONFIG], 1252[if test -n "$$1"; then 1253 pkg_cv_[]$1="$$1" 1254 elif test -n "$PKG_CONFIG"; then 1255 PKG_CHECK_EXISTS([$3], 1256 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` 1257 test "x$?" != "x0" && pkg_failed=yes ], 1258 [pkg_failed=yes]) 1259 else 1260 pkg_failed=untried 1261fi[]dnl 1262])dnl _PKG_CONFIG 1263 1264dnl _PKG_SHORT_ERRORS_SUPPORTED 1265dnl --------------------------- 1266dnl Internal check to see if pkg-config supports short errors. 1267AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], 1268[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 1269if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 1270 _pkg_short_errors_supported=yes 1271else 1272 _pkg_short_errors_supported=no 1273fi[]dnl 1274])dnl _PKG_SHORT_ERRORS_SUPPORTED 1275 1276 1277dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 1278dnl [ACTION-IF-NOT-FOUND]) 1279dnl -------------------------------------------------------------- 1280dnl Since: 0.4.0 1281dnl 1282dnl Note that if there is a possibility the first call to 1283dnl PKG_CHECK_MODULES might not happen, you should be sure to include an 1284dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 1285AC_DEFUN([PKG_CHECK_MODULES], 1286[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 1287AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl 1288AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl 1289 1290pkg_failed=no 1291AC_MSG_CHECKING([for $1]) 1292 1293_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) 1294_PKG_CONFIG([$1][_LIBS], [libs], [$2]) 1295 1296m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS 1297and $1[]_LIBS to avoid the need to call pkg-config. 1298See the pkg-config man page for more details.]) 1299 1300if test $pkg_failed = yes; then 1301 AC_MSG_RESULT([no]) 1302 _PKG_SHORT_ERRORS_SUPPORTED 1303 if test $_pkg_short_errors_supported = yes; then 1304 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` 1305 else 1306 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` 1307 fi 1308 # Put the nasty error message in config.log where it belongs 1309 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD 1310 1311 m4_default([$4], [AC_MSG_ERROR( 1312[Package requirements ($2) were not met: 1313 1314$$1_PKG_ERRORS 1315 1316Consider adjusting the PKG_CONFIG_PATH environment variable if you 1317installed software in a non-standard prefix. 1318 1319_PKG_TEXT])[]dnl 1320 ]) 1321elif test $pkg_failed = untried; then 1322 AC_MSG_RESULT([no]) 1323 m4_default([$4], [AC_MSG_FAILURE( 1324[The pkg-config script could not be found or is too old. Make sure it 1325is in your PATH or set the PKG_CONFIG environment variable to the full 1326path to pkg-config. 1327 1328_PKG_TEXT 1329 1330To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl 1331 ]) 1332else 1333 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS 1334 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS 1335 AC_MSG_RESULT([yes]) 1336 $3 1337fi[]dnl 1338])dnl PKG_CHECK_MODULES 1339 1340 1341dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 1342dnl [ACTION-IF-NOT-FOUND]) 1343dnl --------------------------------------------------------------------- 1344dnl Since: 0.29 1345dnl 1346dnl Checks for existence of MODULES and gathers its build flags with 1347dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags 1348dnl and VARIABLE-PREFIX_LIBS from --libs. 1349dnl 1350dnl Note that if there is a possibility the first call to 1351dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to 1352dnl include an explicit call to PKG_PROG_PKG_CONFIG in your 1353dnl configure.ac. 1354AC_DEFUN([PKG_CHECK_MODULES_STATIC], 1355[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 1356_save_PKG_CONFIG=$PKG_CONFIG 1357PKG_CONFIG="$PKG_CONFIG --static" 1358PKG_CHECK_MODULES($@) 1359PKG_CONFIG=$_save_PKG_CONFIG[]dnl 1360])dnl PKG_CHECK_MODULES_STATIC 1361 1362 1363dnl PKG_INSTALLDIR([DIRECTORY]) 1364dnl ------------------------- 1365dnl Since: 0.27 1366dnl 1367dnl Substitutes the variable pkgconfigdir as the location where a module 1368dnl should install pkg-config .pc files. By default the directory is 1369dnl $libdir/pkgconfig, but the default can be changed by passing 1370dnl DIRECTORY. The user can override through the --with-pkgconfigdir 1371dnl parameter. 1372AC_DEFUN([PKG_INSTALLDIR], 1373[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) 1374m4_pushdef([pkg_description], 1375 [pkg-config installation directory @<:@]pkg_default[@:>@]) 1376AC_ARG_WITH([pkgconfigdir], 1377 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, 1378 [with_pkgconfigdir=]pkg_default) 1379AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) 1380m4_popdef([pkg_default]) 1381m4_popdef([pkg_description]) 1382])dnl PKG_INSTALLDIR 1383 1384 1385dnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) 1386dnl -------------------------------- 1387dnl Since: 0.27 1388dnl 1389dnl Substitutes the variable noarch_pkgconfigdir as the location where a 1390dnl module should install arch-independent pkg-config .pc files. By 1391dnl default the directory is $datadir/pkgconfig, but the default can be 1392dnl changed by passing DIRECTORY. The user can override through the 1393dnl --with-noarch-pkgconfigdir parameter. 1394AC_DEFUN([PKG_NOARCH_INSTALLDIR], 1395[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) 1396m4_pushdef([pkg_description], 1397 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) 1398AC_ARG_WITH([noarch-pkgconfigdir], 1399 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, 1400 [with_noarch_pkgconfigdir=]pkg_default) 1401AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) 1402m4_popdef([pkg_default]) 1403m4_popdef([pkg_description]) 1404])dnl PKG_NOARCH_INSTALLDIR 1405 1406 1407dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, 1408dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 1409dnl ------------------------------------------- 1410dnl Since: 0.28 1411dnl 1412dnl Retrieves the value of the pkg-config variable for the given module. 1413AC_DEFUN([PKG_CHECK_VAR], 1414[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 1415AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl 1416 1417_PKG_CONFIG([$1], [variable="][$3]["], [$2]) 1418AS_VAR_COPY([$1], [pkg_cv_][$1]) 1419 1420AS_VAR_IF([$1], [""], [$5], [$4])dnl 1421])dnl PKG_CHECK_VAR 1422 1423dnl xorg-macros.m4. Generated from xorg-macros.m4.in xorgversion.m4 by configure. 1424dnl 1425dnl Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. 1426dnl 1427dnl Permission is hereby granted, free of charge, to any person obtaining a 1428dnl copy of this software and associated documentation files (the "Software"), 1429dnl to deal in the Software without restriction, including without limitation 1430dnl the rights to use, copy, modify, merge, publish, distribute, sublicense, 1431dnl and/or sell copies of the Software, and to permit persons to whom the 1432dnl Software is furnished to do so, subject to the following conditions: 1433dnl 1434dnl The above copyright notice and this permission notice (including the next 1435dnl paragraph) shall be included in all copies or substantial portions of the 1436dnl Software. 1437dnl 1438dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1439dnl IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1440dnl FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 1441dnl THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1442dnl LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 1443dnl FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 1444dnl DEALINGS IN THE SOFTWARE. 1445 1446# XORG_MACROS_VERSION(required-version) 1447# ------------------------------------- 1448# Minimum version: 1.1.0 1449# 1450# If you're using a macro added in Version 1.1 or newer, include this in 1451# your configure.ac with the minimum required version, such as: 1452# XORG_MACROS_VERSION(1.1) 1453# 1454# To ensure that this macro is defined, also add: 1455# m4_ifndef([XORG_MACROS_VERSION], 1456# [m4_fatal([must install xorg-macros 1.1 or later before running autoconf/autogen])]) 1457# 1458# 1459# See the "minimum version" comment for each macro you use to see what 1460# version you require. 1461m4_defun([XORG_MACROS_VERSION],[ 1462m4_define([vers_have], [1.19.3]) 1463m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.]))) 1464m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.]))) 1465m4_if(m4_cmp(maj_have, maj_needed), 0,, 1466 [m4_fatal([xorg-macros major version ]maj_needed[ is required but ]vers_have[ found])]) 1467m4_if(m4_version_compare(vers_have, [$1]), -1, 1468 [m4_fatal([xorg-macros version $1 or higher is required but ]vers_have[ found])]) 1469m4_undefine([vers_have]) 1470m4_undefine([maj_have]) 1471m4_undefine([maj_needed]) 1472]) # XORG_MACROS_VERSION 1473 1474# XORG_PROG_RAWCPP() 1475# ------------------ 1476# Minimum version: 1.0.0 1477# 1478# Find cpp program and necessary flags for use in pre-processing text files 1479# such as man pages and config files 1480AC_DEFUN([XORG_PROG_RAWCPP],[ 1481AC_REQUIRE([AC_PROG_CPP]) 1482AC_PATH_TOOL(RAWCPP, [cpp], [${CPP}], 1483 [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib]) 1484 1485# Check for flag to avoid builtin definitions - assumes unix is predefined, 1486# which is not the best choice for supporting other OS'es, but covers most 1487# of the ones we need for now. 1488AC_MSG_CHECKING([if $RAWCPP requires -undef]) 1489AC_LANG_CONFTEST([AC_LANG_SOURCE([[Does cpp redefine unix ?]])]) 1490if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 1491 AC_MSG_RESULT([no]) 1492else 1493 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 1494 RAWCPPFLAGS=-undef 1495 AC_MSG_RESULT([yes]) 1496 # under Cygwin unix is still defined even with -undef 1497 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 1498 RAWCPPFLAGS="-undef -ansi" 1499 AC_MSG_RESULT([yes, with -ansi]) 1500 else 1501 AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef. I don't know what to do.]) 1502 fi 1503fi 1504rm -f conftest.$ac_ext 1505 1506AC_MSG_CHECKING([if $RAWCPP requires -traditional]) 1507AC_LANG_CONFTEST([AC_LANG_SOURCE([[Does cpp preserve "whitespace"?]])]) 1508if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 1509 AC_MSG_RESULT([no]) 1510else 1511 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 1512 TRADITIONALCPPFLAGS="-traditional" 1513 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 1514 AC_MSG_RESULT([yes]) 1515 else 1516 AC_MSG_ERROR([${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do.]) 1517 fi 1518fi 1519rm -f conftest.$ac_ext 1520AC_SUBST(RAWCPPFLAGS) 1521AC_SUBST(TRADITIONALCPPFLAGS) 1522]) # XORG_PROG_RAWCPP 1523 1524# XORG_MANPAGE_SECTIONS() 1525# ----------------------- 1526# Minimum version: 1.0.0 1527# 1528# Determine which sections man pages go in for the different man page types 1529# on this OS - replaces *ManSuffix settings in old Imake *.cf per-os files. 1530# Not sure if there's any better way than just hardcoding by OS name. 1531# Override default settings by setting environment variables 1532# Added MAN_SUBSTS in version 1.8 1533# Added AC_PROG_SED in version 1.8 1534 1535AC_DEFUN([XORG_MANPAGE_SECTIONS],[ 1536AC_REQUIRE([AC_CANONICAL_HOST]) 1537AC_REQUIRE([AC_PROG_SED]) 1538 1539case $host_os in 1540 solaris*) 1541 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 1542 # check for a man page file found in later versions that use 1543 # traditional section numbers instead 1544 AC_CHECK_FILE([/usr/share/man/man7/attributes.7], 1545 [SYSV_MAN_SECTIONS=false], [SYSV_MAN_SECTIONS=true]) 1546 ;; 1547 *) SYSV_MAN_SECTIONS=false ;; 1548esac 1549 1550if test x$APP_MAN_SUFFIX = x ; then 1551 APP_MAN_SUFFIX=1 1552fi 1553if test x$APP_MAN_DIR = x ; then 1554 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 1555fi 1556 1557if test x$LIB_MAN_SUFFIX = x ; then 1558 LIB_MAN_SUFFIX=3 1559fi 1560if test x$LIB_MAN_DIR = x ; then 1561 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 1562fi 1563 1564if test x$FILE_MAN_SUFFIX = x ; then 1565 case $SYSV_MAN_SECTIONS in 1566 true) FILE_MAN_SUFFIX=4 ;; 1567 *) FILE_MAN_SUFFIX=5 ;; 1568 esac 1569fi 1570if test x$FILE_MAN_DIR = x ; then 1571 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 1572fi 1573 1574if test x$MISC_MAN_SUFFIX = x ; then 1575 case $SYSV_MAN_SECTIONS in 1576 true) MISC_MAN_SUFFIX=5 ;; 1577 *) MISC_MAN_SUFFIX=7 ;; 1578 esac 1579fi 1580if test x$MISC_MAN_DIR = x ; then 1581 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 1582fi 1583 1584if test x$DRIVER_MAN_SUFFIX = x ; then 1585 case $SYSV_MAN_SECTIONS in 1586 true) DRIVER_MAN_SUFFIX=7 ;; 1587 *) DRIVER_MAN_SUFFIX=4 ;; 1588 esac 1589fi 1590if test x$DRIVER_MAN_DIR = x ; then 1591 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 1592fi 1593 1594if test x$ADMIN_MAN_SUFFIX = x ; then 1595 case $SYSV_MAN_SECTIONS in 1596 true) ADMIN_MAN_SUFFIX=1m ;; 1597 *) ADMIN_MAN_SUFFIX=8 ;; 1598 esac 1599fi 1600if test x$ADMIN_MAN_DIR = x ; then 1601 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 1602fi 1603 1604 1605AC_SUBST([APP_MAN_SUFFIX]) 1606AC_SUBST([LIB_MAN_SUFFIX]) 1607AC_SUBST([FILE_MAN_SUFFIX]) 1608AC_SUBST([MISC_MAN_SUFFIX]) 1609AC_SUBST([DRIVER_MAN_SUFFIX]) 1610AC_SUBST([ADMIN_MAN_SUFFIX]) 1611AC_SUBST([APP_MAN_DIR]) 1612AC_SUBST([LIB_MAN_DIR]) 1613AC_SUBST([FILE_MAN_DIR]) 1614AC_SUBST([MISC_MAN_DIR]) 1615AC_SUBST([DRIVER_MAN_DIR]) 1616AC_SUBST([ADMIN_MAN_DIR]) 1617 1618XORG_MAN_PAGE="X Version 11" 1619AC_SUBST([XORG_MAN_PAGE]) 1620MAN_SUBSTS="\ 1621 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1622 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1623 -e 's|__xservername__|Xorg|g' \ 1624 -e 's|__xconfigfile__|xorg.conf|g' \ 1625 -e 's|__projectroot__|\$(prefix)|g' \ 1626 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 1627 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 1628 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 1629 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 1630 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 1631 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 1632 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 1633AC_SUBST([MAN_SUBSTS]) 1634 1635]) # XORG_MANPAGE_SECTIONS 1636 1637# XORG_CHECK_SGML_DOCTOOLS([MIN-VERSION]) 1638# ------------------------ 1639# Minimum version: 1.7.0 1640# 1641# Defines the variable XORG_SGML_PATH containing the location of X11/defs.ent 1642# provided by xorg-sgml-doctools, if installed. 1643AC_DEFUN([XORG_CHECK_SGML_DOCTOOLS],[ 1644AC_MSG_CHECKING([for X.Org SGML entities m4_ifval([$1],[>= $1])]) 1645XORG_SGML_PATH= 1646PKG_CHECK_EXISTS([xorg-sgml-doctools m4_ifval([$1],[>= $1])], 1647 [XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`], 1648 [m4_ifval([$1],[:], 1649 [if test x"$cross_compiling" != x"yes" ; then 1650 AC_CHECK_FILE([$prefix/share/sgml/X11/defs.ent], 1651 [XORG_SGML_PATH=$prefix/share/sgml]) 1652 fi]) 1653 ]) 1654 1655# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 1656# the path and the name of the doc stylesheet 1657if test "x$XORG_SGML_PATH" != "x" ; then 1658 AC_MSG_RESULT([$XORG_SGML_PATH]) 1659 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 1660 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 1661else 1662 AC_MSG_RESULT([no]) 1663fi 1664 1665AC_SUBST(XORG_SGML_PATH) 1666AC_SUBST(STYLESHEET_SRCDIR) 1667AC_SUBST(XSL_STYLESHEET) 1668AM_CONDITIONAL([HAVE_STYLESHEETS], [test "x$XSL_STYLESHEET" != "x"]) 1669]) # XORG_CHECK_SGML_DOCTOOLS 1670 1671# XORG_CHECK_LINUXDOC 1672# ------------------- 1673# Minimum version: 1.0.0 1674# 1675# Defines the variable MAKE_TEXT if the necessary tools and 1676# files are found. $(MAKE_TEXT) blah.sgml will then produce blah.txt. 1677# Whether or not the necessary tools and files are found can be checked 1678# with the AM_CONDITIONAL "BUILD_LINUXDOC" 1679AC_DEFUN([XORG_CHECK_LINUXDOC],[ 1680AC_REQUIRE([XORG_CHECK_SGML_DOCTOOLS]) 1681AC_REQUIRE([XORG_WITH_PS2PDF]) 1682 1683AC_PATH_PROG(LINUXDOC, linuxdoc) 1684 1685AC_MSG_CHECKING([whether to build documentation]) 1686 1687if test x$XORG_SGML_PATH != x && test x$LINUXDOC != x ; then 1688 BUILDDOC=yes 1689else 1690 BUILDDOC=no 1691fi 1692 1693AM_CONDITIONAL(BUILD_LINUXDOC, [test x$BUILDDOC = xyes]) 1694 1695AC_MSG_RESULT([$BUILDDOC]) 1696 1697AC_MSG_CHECKING([whether to build pdf documentation]) 1698 1699if test x$have_ps2pdf != xno && test x$BUILD_PDFDOC != xno; then 1700 BUILDPDFDOC=yes 1701else 1702 BUILDPDFDOC=no 1703fi 1704 1705AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) 1706 1707AC_MSG_RESULT([$BUILDPDFDOC]) 1708 1709MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt -f" 1710MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps" 1711MAKE_PDF="$PS2PDF" 1712MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0" 1713 1714AC_SUBST(MAKE_TEXT) 1715AC_SUBST(MAKE_PS) 1716AC_SUBST(MAKE_PDF) 1717AC_SUBST(MAKE_HTML) 1718]) # XORG_CHECK_LINUXDOC 1719 1720# XORG_CHECK_DOCBOOK 1721# ------------------- 1722# Minimum version: 1.0.0 1723# 1724# Checks for the ability to build output formats from SGML DocBook source. 1725# For XXX in {TXT, PDF, PS, HTML}, the AM_CONDITIONAL "BUILD_XXXDOC" 1726# indicates whether the necessary tools and files are found and, if set, 1727# $(MAKE_XXX) blah.sgml will produce blah.xxx. 1728AC_DEFUN([XORG_CHECK_DOCBOOK],[ 1729AC_REQUIRE([XORG_CHECK_SGML_DOCTOOLS]) 1730 1731BUILDTXTDOC=no 1732BUILDPDFDOC=no 1733BUILDPSDOC=no 1734BUILDHTMLDOC=no 1735 1736AC_PATH_PROG(DOCBOOKPS, docbook2ps) 1737AC_PATH_PROG(DOCBOOKPDF, docbook2pdf) 1738AC_PATH_PROG(DOCBOOKHTML, docbook2html) 1739AC_PATH_PROG(DOCBOOKTXT, docbook2txt) 1740 1741AC_MSG_CHECKING([whether to build text documentation]) 1742if test x$XORG_SGML_PATH != x && test x$DOCBOOKTXT != x && 1743 test x$BUILD_TXTDOC != xno; then 1744 BUILDTXTDOC=yes 1745fi 1746AM_CONDITIONAL(BUILD_TXTDOC, [test x$BUILDTXTDOC = xyes]) 1747AC_MSG_RESULT([$BUILDTXTDOC]) 1748 1749AC_MSG_CHECKING([whether to build PDF documentation]) 1750if test x$XORG_SGML_PATH != x && test x$DOCBOOKPDF != x && 1751 test x$BUILD_PDFDOC != xno; then 1752 BUILDPDFDOC=yes 1753fi 1754AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) 1755AC_MSG_RESULT([$BUILDPDFDOC]) 1756 1757AC_MSG_CHECKING([whether to build PostScript documentation]) 1758if test x$XORG_SGML_PATH != x && test x$DOCBOOKPS != x && 1759 test x$BUILD_PSDOC != xno; then 1760 BUILDPSDOC=yes 1761fi 1762AM_CONDITIONAL(BUILD_PSDOC, [test x$BUILDPSDOC = xyes]) 1763AC_MSG_RESULT([$BUILDPSDOC]) 1764 1765AC_MSG_CHECKING([whether to build HTML documentation]) 1766if test x$XORG_SGML_PATH != x && test x$DOCBOOKHTML != x && 1767 test x$BUILD_HTMLDOC != xno; then 1768 BUILDHTMLDOC=yes 1769fi 1770AM_CONDITIONAL(BUILD_HTMLDOC, [test x$BUILDHTMLDOC = xyes]) 1771AC_MSG_RESULT([$BUILDHTMLDOC]) 1772 1773MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKTXT" 1774MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPS" 1775MAKE_PDF="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPDF" 1776MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKHTML" 1777 1778AC_SUBST(MAKE_TEXT) 1779AC_SUBST(MAKE_PS) 1780AC_SUBST(MAKE_PDF) 1781AC_SUBST(MAKE_HTML) 1782]) # XORG_CHECK_DOCBOOK 1783 1784# XORG_WITH_XMLTO([MIN-VERSION], [DEFAULT]) 1785# ---------------- 1786# Minimum version: 1.5.0 1787# Minimum version for optional DEFAULT argument: 1.11.0 1788# 1789# Documentation tools are not always available on all platforms and sometimes 1790# not at the appropriate level. This macro enables a module to test for the 1791# presence of the tool and obtain it's path in separate variables. Coupled with 1792# the --with-xmlto option, it allows maximum flexibilty in making decisions 1793# as whether or not to use the xmlto package. When DEFAULT is not specified, 1794# --with-xmlto assumes 'auto'. 1795# 1796# Interface to module: 1797# HAVE_XMLTO: used in makefiles to conditionally generate documentation 1798# XMLTO: returns the path of the xmlto program found 1799# returns the path set by the user in the environment 1800# --with-xmlto: 'yes' user instructs the module to use xmlto 1801# 'no' user instructs the module not to use xmlto 1802# 1803# Added in version 1.10.0 1804# HAVE_XMLTO_TEXT: used in makefiles to conditionally generate text documentation 1805# xmlto for text output requires either lynx, links, or w3m browsers 1806# 1807# If the user sets the value of XMLTO, AC_PATH_PROG skips testing the path. 1808# 1809AC_DEFUN([XORG_WITH_XMLTO],[ 1810AC_ARG_VAR([XMLTO], [Path to xmlto command]) 1811m4_define([_defopt], m4_default([$2], [auto])) 1812AC_ARG_WITH(xmlto, 1813 AS_HELP_STRING([--with-xmlto], 1814 [Use xmlto to regenerate documentation (default: ]_defopt[)]), 1815 [use_xmlto=$withval], [use_xmlto=]_defopt) 1816m4_undefine([_defopt]) 1817 1818if test "x$use_xmlto" = x"auto"; then 1819 AC_PATH_PROG([XMLTO], [xmlto]) 1820 if test "x$XMLTO" = "x"; then 1821 AC_MSG_WARN([xmlto not found - documentation targets will be skipped]) 1822 have_xmlto=no 1823 else 1824 have_xmlto=yes 1825 fi 1826elif test "x$use_xmlto" = x"yes" ; then 1827 AC_PATH_PROG([XMLTO], [xmlto]) 1828 if test "x$XMLTO" = "x"; then 1829 AC_MSG_ERROR([--with-xmlto=yes specified but xmlto not found in PATH]) 1830 fi 1831 have_xmlto=yes 1832elif test "x$use_xmlto" = x"no" ; then 1833 if test "x$XMLTO" != "x"; then 1834 AC_MSG_WARN([ignoring XMLTO environment variable since --with-xmlto=no was specified]) 1835 fi 1836 have_xmlto=no 1837else 1838 AC_MSG_ERROR([--with-xmlto expects 'yes' or 'no']) 1839fi 1840 1841# Test for a minimum version of xmlto, if provided. 1842m4_ifval([$1], 1843[if test "$have_xmlto" = yes; then 1844 # scrape the xmlto version 1845 AC_MSG_CHECKING([the xmlto version]) 1846 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 1847 AC_MSG_RESULT([$xmlto_version]) 1848 AS_VERSION_COMPARE([$xmlto_version], [$1], 1849 [if test "x$use_xmlto" = xauto; then 1850 AC_MSG_WARN([xmlto version $xmlto_version found, but $1 needed]) 1851 have_xmlto=no 1852 else 1853 AC_MSG_ERROR([xmlto version $xmlto_version found, but $1 needed]) 1854 fi]) 1855fi]) 1856 1857# Test for the ability of xmlto to generate a text target 1858# 1859# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 1860# following test for empty XML docbook files. 1861# For compatibility reasons use the following empty XML docbook file and if 1862# it fails try it again with a non-empty XML file. 1863have_xmlto_text=no 1864cat > conftest.xml << "EOF" 1865EOF 1866AS_IF([test "$have_xmlto" = yes], 1867 [AS_IF([$XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1], 1868 [have_xmlto_text=yes], 1869 [# Try it again with a non-empty XML file. 1870 cat > conftest.xml << "EOF" 1871<x></x> 1872EOF 1873 AS_IF([$XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1], 1874 [have_xmlto_text=yes], 1875 [AC_MSG_WARN([xmlto cannot generate text format, this format skipped])])])]) 1876rm -f conftest.xml 1877AM_CONDITIONAL([HAVE_XMLTO_TEXT], [test $have_xmlto_text = yes]) 1878AM_CONDITIONAL([HAVE_XMLTO], [test "$have_xmlto" = yes]) 1879]) # XORG_WITH_XMLTO 1880 1881# XORG_WITH_XSLTPROC([MIN-VERSION], [DEFAULT]) 1882# -------------------------------------------- 1883# Minimum version: 1.12.0 1884# Minimum version for optional DEFAULT argument: 1.12.0 1885# 1886# XSLT (Extensible Stylesheet Language Transformations) is a declarative, 1887# XML-based language used for the transformation of XML documents. 1888# The xsltproc command line tool is for applying XSLT stylesheets to XML documents. 1889# It is used under the cover by xmlto to generate html files from DocBook/XML. 1890# The XSLT processor is often used as a standalone tool for transformations. 1891# It should not be assumed that this tool is used only to work with documnetation. 1892# When DEFAULT is not specified, --with-xsltproc assumes 'auto'. 1893# 1894# Interface to module: 1895# HAVE_XSLTPROC: used in makefiles to conditionally generate documentation 1896# XSLTPROC: returns the path of the xsltproc program found 1897# returns the path set by the user in the environment 1898# --with-xsltproc: 'yes' user instructs the module to use xsltproc 1899# 'no' user instructs the module not to use xsltproc 1900# have_xsltproc: returns yes if xsltproc found in PATH or no 1901# 1902# If the user sets the value of XSLTPROC, AC_PATH_PROG skips testing the path. 1903# 1904AC_DEFUN([XORG_WITH_XSLTPROC],[ 1905AC_ARG_VAR([XSLTPROC], [Path to xsltproc command]) 1906# Preserves the interface, should it be implemented later 1907m4_ifval([$1], [m4_warn([syntax], [Checking for xsltproc MIN-VERSION is not implemented])]) 1908m4_define([_defopt], m4_default([$2], [auto])) 1909AC_ARG_WITH(xsltproc, 1910 AS_HELP_STRING([--with-xsltproc], 1911 [Use xsltproc for the transformation of XML documents (default: ]_defopt[)]), 1912 [use_xsltproc=$withval], [use_xsltproc=]_defopt) 1913m4_undefine([_defopt]) 1914 1915if test "x$use_xsltproc" = x"auto"; then 1916 AC_PATH_PROG([XSLTPROC], [xsltproc]) 1917 if test "x$XSLTPROC" = "x"; then 1918 AC_MSG_WARN([xsltproc not found - cannot transform XML documents]) 1919 have_xsltproc=no 1920 else 1921 have_xsltproc=yes 1922 fi 1923elif test "x$use_xsltproc" = x"yes" ; then 1924 AC_PATH_PROG([XSLTPROC], [xsltproc]) 1925 if test "x$XSLTPROC" = "x"; then 1926 AC_MSG_ERROR([--with-xsltproc=yes specified but xsltproc not found in PATH]) 1927 fi 1928 have_xsltproc=yes 1929elif test "x$use_xsltproc" = x"no" ; then 1930 if test "x$XSLTPROC" != "x"; then 1931 AC_MSG_WARN([ignoring XSLTPROC environment variable since --with-xsltproc=no was specified]) 1932 fi 1933 have_xsltproc=no 1934else 1935 AC_MSG_ERROR([--with-xsltproc expects 'yes' or 'no']) 1936fi 1937 1938AM_CONDITIONAL([HAVE_XSLTPROC], [test "$have_xsltproc" = yes]) 1939]) # XORG_WITH_XSLTPROC 1940 1941# XORG_WITH_PERL([MIN-VERSION], [DEFAULT]) 1942# ---------------------------------------- 1943# Minimum version: 1.15.0 1944# 1945# PERL (Practical Extraction and Report Language) is a language optimized for 1946# scanning arbitrary text files, extracting information from those text files, 1947# and printing reports based on that information. 1948# 1949# When DEFAULT is not specified, --with-perl assumes 'auto'. 1950# 1951# Interface to module: 1952# HAVE_PERL: used in makefiles to conditionally scan text files 1953# PERL: returns the path of the perl program found 1954# returns the path set by the user in the environment 1955# --with-perl: 'yes' user instructs the module to use perl 1956# 'no' user instructs the module not to use perl 1957# have_perl: returns yes if perl found in PATH or no 1958# 1959# If the user sets the value of PERL, AC_PATH_PROG skips testing the path. 1960# 1961AC_DEFUN([XORG_WITH_PERL],[ 1962AC_ARG_VAR([PERL], [Path to perl command]) 1963# Preserves the interface, should it be implemented later 1964m4_ifval([$1], [m4_warn([syntax], [Checking for perl MIN-VERSION is not implemented])]) 1965m4_define([_defopt], m4_default([$2], [auto])) 1966AC_ARG_WITH(perl, 1967 AS_HELP_STRING([--with-perl], 1968 [Use perl for extracting information from files (default: ]_defopt[)]), 1969 [use_perl=$withval], [use_perl=]_defopt) 1970m4_undefine([_defopt]) 1971 1972if test "x$use_perl" = x"auto"; then 1973 AC_PATH_PROG([PERL], [perl]) 1974 if test "x$PERL" = "x"; then 1975 AC_MSG_WARN([perl not found - cannot extract information and report]) 1976 have_perl=no 1977 else 1978 have_perl=yes 1979 fi 1980elif test "x$use_perl" = x"yes" ; then 1981 AC_PATH_PROG([PERL], [perl]) 1982 if test "x$PERL" = "x"; then 1983 AC_MSG_ERROR([--with-perl=yes specified but perl not found in PATH]) 1984 fi 1985 have_perl=yes 1986elif test "x$use_perl" = x"no" ; then 1987 if test "x$PERL" != "x"; then 1988 AC_MSG_WARN([ignoring PERL environment variable since --with-perl=no was specified]) 1989 fi 1990 have_perl=no 1991else 1992 AC_MSG_ERROR([--with-perl expects 'yes' or 'no']) 1993fi 1994 1995AM_CONDITIONAL([HAVE_PERL], [test "$have_perl" = yes]) 1996]) # XORG_WITH_PERL 1997 1998# XORG_WITH_ASCIIDOC([MIN-VERSION], [DEFAULT]) 1999# ---------------- 2000# Minimum version: 1.5.0 2001# Minimum version for optional DEFAULT argument: 1.11.0 2002# 2003# Documentation tools are not always available on all platforms and sometimes 2004# not at the appropriate level. This macro enables a module to test for the 2005# presence of the tool and obtain it's path in separate variables. Coupled with 2006# the --with-asciidoc option, it allows maximum flexibilty in making decisions 2007# as whether or not to use the asciidoc package. When DEFAULT is not specified, 2008# --with-asciidoc assumes 'auto'. 2009# 2010# Interface to module: 2011# HAVE_ASCIIDOC: used in makefiles to conditionally generate documentation 2012# ASCIIDOC: returns the path of the asciidoc program found 2013# returns the path set by the user in the environment 2014# --with-asciidoc: 'yes' user instructs the module to use asciidoc 2015# 'no' user instructs the module not to use asciidoc 2016# 2017# If the user sets the value of ASCIIDOC, AC_PATH_PROG skips testing the path. 2018# 2019AC_DEFUN([XORG_WITH_ASCIIDOC],[ 2020AC_ARG_VAR([ASCIIDOC], [Path to asciidoc command]) 2021m4_define([_defopt], m4_default([$2], [auto])) 2022AC_ARG_WITH(asciidoc, 2023 AS_HELP_STRING([--with-asciidoc], 2024 [Use asciidoc to regenerate documentation (default: ]_defopt[)]), 2025 [use_asciidoc=$withval], [use_asciidoc=]_defopt) 2026m4_undefine([_defopt]) 2027 2028if test "x$use_asciidoc" = x"auto"; then 2029 AC_PATH_PROG([ASCIIDOC], [asciidoc]) 2030 if test "x$ASCIIDOC" = "x"; then 2031 AC_MSG_WARN([asciidoc not found - documentation targets will be skipped]) 2032 have_asciidoc=no 2033 else 2034 have_asciidoc=yes 2035 fi 2036elif test "x$use_asciidoc" = x"yes" ; then 2037 AC_PATH_PROG([ASCIIDOC], [asciidoc]) 2038 if test "x$ASCIIDOC" = "x"; then 2039 AC_MSG_ERROR([--with-asciidoc=yes specified but asciidoc not found in PATH]) 2040 fi 2041 have_asciidoc=yes 2042elif test "x$use_asciidoc" = x"no" ; then 2043 if test "x$ASCIIDOC" != "x"; then 2044 AC_MSG_WARN([ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified]) 2045 fi 2046 have_asciidoc=no 2047else 2048 AC_MSG_ERROR([--with-asciidoc expects 'yes' or 'no']) 2049fi 2050m4_ifval([$1], 2051[if test "$have_asciidoc" = yes; then 2052 # scrape the asciidoc version 2053 AC_MSG_CHECKING([the asciidoc version]) 2054 asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2` 2055 AC_MSG_RESULT([$asciidoc_version]) 2056 AS_VERSION_COMPARE([$asciidoc_version], [$1], 2057 [if test "x$use_asciidoc" = xauto; then 2058 AC_MSG_WARN([asciidoc version $asciidoc_version found, but $1 needed]) 2059 have_asciidoc=no 2060 else 2061 AC_MSG_ERROR([asciidoc version $asciidoc_version found, but $1 needed]) 2062 fi]) 2063fi]) 2064AM_CONDITIONAL([HAVE_ASCIIDOC], [test "$have_asciidoc" = yes]) 2065]) # XORG_WITH_ASCIIDOC 2066 2067# XORG_WITH_DOXYGEN([MIN-VERSION], [DEFAULT]) 2068# ------------------------------------------- 2069# Minimum version: 1.5.0 2070# Minimum version for optional DEFAULT argument: 1.11.0 2071# Minimum version for optional DOT checking: 1.18.0 2072# 2073# Documentation tools are not always available on all platforms and sometimes 2074# not at the appropriate level. This macro enables a module to test for the 2075# presence of the tool and obtain it's path in separate variables. Coupled with 2076# the --with-doxygen option, it allows maximum flexibilty in making decisions 2077# as whether or not to use the doxygen package. When DEFAULT is not specified, 2078# --with-doxygen assumes 'auto'. 2079# 2080# Interface to module: 2081# HAVE_DOXYGEN: used in makefiles to conditionally generate documentation 2082# DOXYGEN: returns the path of the doxygen program found 2083# returns the path set by the user in the environment 2084# --with-doxygen: 'yes' user instructs the module to use doxygen 2085# 'no' user instructs the module not to use doxygen 2086# 2087# If the user sets the value of DOXYGEN, AC_PATH_PROG skips testing the path. 2088# 2089AC_DEFUN([XORG_WITH_DOXYGEN],[ 2090AC_ARG_VAR([DOXYGEN], [Path to doxygen command]) 2091AC_ARG_VAR([DOT], [Path to the dot graphics utility]) 2092m4_define([_defopt], m4_default([$2], [auto])) 2093AC_ARG_WITH(doxygen, 2094 AS_HELP_STRING([--with-doxygen], 2095 [Use doxygen to regenerate documentation (default: ]_defopt[)]), 2096 [use_doxygen=$withval], [use_doxygen=]_defopt) 2097m4_undefine([_defopt]) 2098 2099if test "x$use_doxygen" = x"auto"; then 2100 AC_PATH_PROG([DOXYGEN], [doxygen]) 2101 if test "x$DOXYGEN" = "x"; then 2102 AC_MSG_WARN([doxygen not found - documentation targets will be skipped]) 2103 have_doxygen=no 2104 else 2105 have_doxygen=yes 2106 fi 2107elif test "x$use_doxygen" = x"yes" ; then 2108 AC_PATH_PROG([DOXYGEN], [doxygen]) 2109 if test "x$DOXYGEN" = "x"; then 2110 AC_MSG_ERROR([--with-doxygen=yes specified but doxygen not found in PATH]) 2111 fi 2112 have_doxygen=yes 2113elif test "x$use_doxygen" = x"no" ; then 2114 if test "x$DOXYGEN" != "x"; then 2115 AC_MSG_WARN([ignoring DOXYGEN environment variable since --with-doxygen=no was specified]) 2116 fi 2117 have_doxygen=no 2118else 2119 AC_MSG_ERROR([--with-doxygen expects 'yes' or 'no']) 2120fi 2121m4_ifval([$1], 2122[if test "$have_doxygen" = yes; then 2123 # scrape the doxygen version 2124 AC_MSG_CHECKING([the doxygen version]) 2125 doxygen_version=`$DOXYGEN --version 2>/dev/null` 2126 AC_MSG_RESULT([$doxygen_version]) 2127 AS_VERSION_COMPARE([$doxygen_version], [$1], 2128 [if test "x$use_doxygen" = xauto; then 2129 AC_MSG_WARN([doxygen version $doxygen_version found, but $1 needed]) 2130 have_doxygen=no 2131 else 2132 AC_MSG_ERROR([doxygen version $doxygen_version found, but $1 needed]) 2133 fi]) 2134fi]) 2135 2136dnl Check for DOT if we have doxygen. The caller decides if it is mandatory 2137dnl HAVE_DOT is a variable that can be used in your doxygen.in config file: 2138dnl HAVE_DOT = @HAVE_DOT@ 2139HAVE_DOT=no 2140if test "x$have_doxygen" = "xyes"; then 2141 AC_PATH_PROG([DOT], [dot]) 2142 if test "x$DOT" != "x"; then 2143 HAVE_DOT=yes 2144 fi 2145fi 2146 2147AC_SUBST([HAVE_DOT]) 2148AM_CONDITIONAL([HAVE_DOT], [test "$HAVE_DOT" = "yes"]) 2149AM_CONDITIONAL([HAVE_DOXYGEN], [test "$have_doxygen" = yes]) 2150]) # XORG_WITH_DOXYGEN 2151 2152# XORG_WITH_GROFF([DEFAULT]) 2153# ---------------- 2154# Minimum version: 1.6.0 2155# Minimum version for optional DEFAULT argument: 1.11.0 2156# 2157# Documentation tools are not always available on all platforms and sometimes 2158# not at the appropriate level. This macro enables a module to test for the 2159# presence of the tool and obtain it's path in separate variables. Coupled with 2160# the --with-groff option, it allows maximum flexibilty in making decisions 2161# as whether or not to use the groff package. When DEFAULT is not specified, 2162# --with-groff assumes 'auto'. 2163# 2164# Interface to module: 2165# HAVE_GROFF: used in makefiles to conditionally generate documentation 2166# HAVE_GROFF_MM: the memorandum macros (-mm) package 2167# HAVE_GROFF_MS: the -ms macros package 2168# GROFF: returns the path of the groff program found 2169# returns the path set by the user in the environment 2170# --with-groff: 'yes' user instructs the module to use groff 2171# 'no' user instructs the module not to use groff 2172# 2173# Added in version 1.9.0: 2174# HAVE_GROFF_HTML: groff has dependencies to output HTML format: 2175# pnmcut pnmcrop pnmtopng pnmtops from the netpbm package. 2176# psselect from the psutils package. 2177# the ghostcript package. Refer to the grohtml man pages 2178# 2179# If the user sets the value of GROFF, AC_PATH_PROG skips testing the path. 2180# 2181# OS and distros often splits groff in a basic and full package, the former 2182# having the groff program and the later having devices, fonts and macros 2183# Checking for the groff executable is not enough. 2184# 2185# If macros are missing, we cannot assume that groff is useless, so we don't 2186# unset HAVE_GROFF or GROFF env variables. 2187# HAVE_GROFF_?? can never be true while HAVE_GROFF is false. 2188# 2189AC_DEFUN([XORG_WITH_GROFF],[ 2190AC_ARG_VAR([GROFF], [Path to groff command]) 2191m4_define([_defopt], m4_default([$1], [auto])) 2192AC_ARG_WITH(groff, 2193 AS_HELP_STRING([--with-groff], 2194 [Use groff to regenerate documentation (default: ]_defopt[)]), 2195 [use_groff=$withval], [use_groff=]_defopt) 2196m4_undefine([_defopt]) 2197 2198if test "x$use_groff" = x"auto"; then 2199 AC_PATH_PROG([GROFF], [groff]) 2200 if test "x$GROFF" = "x"; then 2201 AC_MSG_WARN([groff not found - documentation targets will be skipped]) 2202 have_groff=no 2203 else 2204 have_groff=yes 2205 fi 2206elif test "x$use_groff" = x"yes" ; then 2207 AC_PATH_PROG([GROFF], [groff]) 2208 if test "x$GROFF" = "x"; then 2209 AC_MSG_ERROR([--with-groff=yes specified but groff not found in PATH]) 2210 fi 2211 have_groff=yes 2212elif test "x$use_groff" = x"no" ; then 2213 if test "x$GROFF" != "x"; then 2214 AC_MSG_WARN([ignoring GROFF environment variable since --with-groff=no was specified]) 2215 fi 2216 have_groff=no 2217else 2218 AC_MSG_ERROR([--with-groff expects 'yes' or 'no']) 2219fi 2220 2221# We have groff, test for the presence of the macro packages 2222if test "x$have_groff" = x"yes"; then 2223 AC_MSG_CHECKING([for ${GROFF} -ms macros]) 2224 if ${GROFF} -ms -I. /dev/null >/dev/null 2>&1 ; then 2225 groff_ms_works=yes 2226 else 2227 groff_ms_works=no 2228 fi 2229 AC_MSG_RESULT([$groff_ms_works]) 2230 AC_MSG_CHECKING([for ${GROFF} -mm macros]) 2231 if ${GROFF} -mm -I. /dev/null >/dev/null 2>&1 ; then 2232 groff_mm_works=yes 2233 else 2234 groff_mm_works=no 2235 fi 2236 AC_MSG_RESULT([$groff_mm_works]) 2237fi 2238 2239# We have groff, test for HTML dependencies, one command per package 2240if test "x$have_groff" = x"yes"; then 2241 AC_PATH_PROGS(GS_PATH, [gs gswin32c]) 2242 AC_PATH_PROG(PNMTOPNG_PATH, [pnmtopng]) 2243 AC_PATH_PROG(PSSELECT_PATH, [psselect]) 2244 if test "x$GS_PATH" != "x" -a "x$PNMTOPNG_PATH" != "x" -a "x$PSSELECT_PATH" != "x"; then 2245 have_groff_html=yes 2246 else 2247 have_groff_html=no 2248 AC_MSG_WARN([grohtml dependencies not found - HTML Documentation skipped. Refer to grohtml man pages]) 2249 fi 2250fi 2251 2252# Set Automake conditionals for Makefiles 2253AM_CONDITIONAL([HAVE_GROFF], [test "$have_groff" = yes]) 2254AM_CONDITIONAL([HAVE_GROFF_MS], [test "$groff_ms_works" = yes]) 2255AM_CONDITIONAL([HAVE_GROFF_MM], [test "$groff_mm_works" = yes]) 2256AM_CONDITIONAL([HAVE_GROFF_HTML], [test "$have_groff_html" = yes]) 2257]) # XORG_WITH_GROFF 2258 2259# XORG_WITH_FOP([MIN-VERSION], [DEFAULT]) 2260# --------------------------------------- 2261# Minimum version: 1.6.0 2262# Minimum version for optional DEFAULT argument: 1.11.0 2263# Minimum version for optional MIN-VERSION argument: 1.15.0 2264# 2265# Documentation tools are not always available on all platforms and sometimes 2266# not at the appropriate level. This macro enables a module to test for the 2267# presence of the tool and obtain it's path in separate variables. Coupled with 2268# the --with-fop option, it allows maximum flexibilty in making decisions 2269# as whether or not to use the fop package. When DEFAULT is not specified, 2270# --with-fop assumes 'auto'. 2271# 2272# Interface to module: 2273# HAVE_FOP: used in makefiles to conditionally generate documentation 2274# FOP: returns the path of the fop program found 2275# returns the path set by the user in the environment 2276# --with-fop: 'yes' user instructs the module to use fop 2277# 'no' user instructs the module not to use fop 2278# 2279# If the user sets the value of FOP, AC_PATH_PROG skips testing the path. 2280# 2281AC_DEFUN([XORG_WITH_FOP],[ 2282AC_ARG_VAR([FOP], [Path to fop command]) 2283m4_define([_defopt], m4_default([$2], [auto])) 2284AC_ARG_WITH(fop, 2285 AS_HELP_STRING([--with-fop], 2286 [Use fop to regenerate documentation (default: ]_defopt[)]), 2287 [use_fop=$withval], [use_fop=]_defopt) 2288m4_undefine([_defopt]) 2289 2290if test "x$use_fop" = x"auto"; then 2291 AC_PATH_PROG([FOP], [fop]) 2292 if test "x$FOP" = "x"; then 2293 AC_MSG_WARN([fop not found - documentation targets will be skipped]) 2294 have_fop=no 2295 else 2296 have_fop=yes 2297 fi 2298elif test "x$use_fop" = x"yes" ; then 2299 AC_PATH_PROG([FOP], [fop]) 2300 if test "x$FOP" = "x"; then 2301 AC_MSG_ERROR([--with-fop=yes specified but fop not found in PATH]) 2302 fi 2303 have_fop=yes 2304elif test "x$use_fop" = x"no" ; then 2305 if test "x$FOP" != "x"; then 2306 AC_MSG_WARN([ignoring FOP environment variable since --with-fop=no was specified]) 2307 fi 2308 have_fop=no 2309else 2310 AC_MSG_ERROR([--with-fop expects 'yes' or 'no']) 2311fi 2312 2313# Test for a minimum version of fop, if provided. 2314m4_ifval([$1], 2315[if test "$have_fop" = yes; then 2316 # scrape the fop version 2317 AC_MSG_CHECKING([for fop minimum version]) 2318 fop_version=`$FOP -version 2>/dev/null | cut -d' ' -f3` 2319 AC_MSG_RESULT([$fop_version]) 2320 AS_VERSION_COMPARE([$fop_version], [$1], 2321 [if test "x$use_fop" = xauto; then 2322 AC_MSG_WARN([fop version $fop_version found, but $1 needed]) 2323 have_fop=no 2324 else 2325 AC_MSG_ERROR([fop version $fop_version found, but $1 needed]) 2326 fi]) 2327fi]) 2328AM_CONDITIONAL([HAVE_FOP], [test "$have_fop" = yes]) 2329]) # XORG_WITH_FOP 2330 2331# XORG_WITH_M4([MIN-VERSION]) 2332# --------------------------- 2333# Minimum version: 1.19.0 2334# 2335# This macro attempts to locate an m4 macro processor which supports 2336# -I option and is only useful for modules relying on M4 in order to 2337# expand macros in source code files. 2338# 2339# Interface to module: 2340# M4: returns the path of the m4 program found 2341# returns the path set by the user in the environment 2342# 2343AC_DEFUN([XORG_WITH_M4], [ 2344AC_CACHE_CHECK([for m4 that supports -I option], [ac_cv_path_M4], 2345 [AC_PATH_PROGS_FEATURE_CHECK([M4], [m4 gm4], 2346 [[$ac_path_M4 -I. /dev/null > /dev/null 2>&1 && \ 2347 ac_cv_path_M4=$ac_path_M4 ac_path_M4_found=:]], 2348 [AC_MSG_ERROR([could not find m4 that supports -I option])], 2349 [$PATH:/usr/gnu/bin])]) 2350 2351AC_SUBST([M4], [$ac_cv_path_M4]) 2352]) # XORG_WITH_M4 2353 2354# XORG_WITH_PS2PDF([DEFAULT]) 2355# ---------------- 2356# Minimum version: 1.6.0 2357# Minimum version for optional DEFAULT argument: 1.11.0 2358# 2359# Documentation tools are not always available on all platforms and sometimes 2360# not at the appropriate level. This macro enables a module to test for the 2361# presence of the tool and obtain it's path in separate variables. Coupled with 2362# the --with-ps2pdf option, it allows maximum flexibilty in making decisions 2363# as whether or not to use the ps2pdf package. When DEFAULT is not specified, 2364# --with-ps2pdf assumes 'auto'. 2365# 2366# Interface to module: 2367# HAVE_PS2PDF: used in makefiles to conditionally generate documentation 2368# PS2PDF: returns the path of the ps2pdf program found 2369# returns the path set by the user in the environment 2370# --with-ps2pdf: 'yes' user instructs the module to use ps2pdf 2371# 'no' user instructs the module not to use ps2pdf 2372# 2373# If the user sets the value of PS2PDF, AC_PATH_PROG skips testing the path. 2374# 2375AC_DEFUN([XORG_WITH_PS2PDF],[ 2376AC_ARG_VAR([PS2PDF], [Path to ps2pdf command]) 2377m4_define([_defopt], m4_default([$1], [auto])) 2378AC_ARG_WITH(ps2pdf, 2379 AS_HELP_STRING([--with-ps2pdf], 2380 [Use ps2pdf to regenerate documentation (default: ]_defopt[)]), 2381 [use_ps2pdf=$withval], [use_ps2pdf=]_defopt) 2382m4_undefine([_defopt]) 2383 2384if test "x$use_ps2pdf" = x"auto"; then 2385 AC_PATH_PROG([PS2PDF], [ps2pdf]) 2386 if test "x$PS2PDF" = "x"; then 2387 AC_MSG_WARN([ps2pdf not found - documentation targets will be skipped]) 2388 have_ps2pdf=no 2389 else 2390 have_ps2pdf=yes 2391 fi 2392elif test "x$use_ps2pdf" = x"yes" ; then 2393 AC_PATH_PROG([PS2PDF], [ps2pdf]) 2394 if test "x$PS2PDF" = "x"; then 2395 AC_MSG_ERROR([--with-ps2pdf=yes specified but ps2pdf not found in PATH]) 2396 fi 2397 have_ps2pdf=yes 2398elif test "x$use_ps2pdf" = x"no" ; then 2399 if test "x$PS2PDF" != "x"; then 2400 AC_MSG_WARN([ignoring PS2PDF environment variable since --with-ps2pdf=no was specified]) 2401 fi 2402 have_ps2pdf=no 2403else 2404 AC_MSG_ERROR([--with-ps2pdf expects 'yes' or 'no']) 2405fi 2406AM_CONDITIONAL([HAVE_PS2PDF], [test "$have_ps2pdf" = yes]) 2407]) # XORG_WITH_PS2PDF 2408 2409# XORG_ENABLE_DOCS (enable_docs=yes) 2410# ---------------- 2411# Minimum version: 1.6.0 2412# 2413# Documentation tools are not always available on all platforms and sometimes 2414# not at the appropriate level. This macro enables a builder to skip all 2415# documentation targets except traditional man pages. 2416# Combined with the specific tool checking macros XORG_WITH_*, it provides 2417# maximum flexibilty in controlling documentation building. 2418# Refer to: 2419# XORG_WITH_XMLTO --with-xmlto 2420# XORG_WITH_ASCIIDOC --with-asciidoc 2421# XORG_WITH_DOXYGEN --with-doxygen 2422# XORG_WITH_FOP --with-fop 2423# XORG_WITH_GROFF --with-groff 2424# XORG_WITH_PS2PDF --with-ps2pdf 2425# 2426# Interface to module: 2427# ENABLE_DOCS: used in makefiles to conditionally generate documentation 2428# --enable-docs: 'yes' user instructs the module to generate docs 2429# 'no' user instructs the module not to generate docs 2430# parm1: specify the default value, yes or no. 2431# 2432AC_DEFUN([XORG_ENABLE_DOCS],[ 2433m4_define([docs_default], m4_default([$1], [yes])) 2434AC_ARG_ENABLE(docs, 2435 AS_HELP_STRING([--enable-docs], 2436 [Enable building the documentation (default: ]docs_default[)]), 2437 [build_docs=$enableval], [build_docs=]docs_default) 2438m4_undefine([docs_default]) 2439AM_CONDITIONAL(ENABLE_DOCS, [test x$build_docs = xyes]) 2440AC_MSG_CHECKING([whether to build documentation]) 2441AC_MSG_RESULT([$build_docs]) 2442]) # XORG_ENABLE_DOCS 2443 2444# XORG_ENABLE_DEVEL_DOCS (enable_devel_docs=yes) 2445# ---------------- 2446# Minimum version: 1.6.0 2447# 2448# This macro enables a builder to skip all developer documentation. 2449# Combined with the specific tool checking macros XORG_WITH_*, it provides 2450# maximum flexibilty in controlling documentation building. 2451# Refer to: 2452# XORG_WITH_XMLTO --with-xmlto 2453# XORG_WITH_ASCIIDOC --with-asciidoc 2454# XORG_WITH_DOXYGEN --with-doxygen 2455# XORG_WITH_FOP --with-fop 2456# XORG_WITH_GROFF --with-groff 2457# XORG_WITH_PS2PDF --with-ps2pdf 2458# 2459# Interface to module: 2460# ENABLE_DEVEL_DOCS: used in makefiles to conditionally generate developer docs 2461# --enable-devel-docs: 'yes' user instructs the module to generate developer docs 2462# 'no' user instructs the module not to generate developer docs 2463# parm1: specify the default value, yes or no. 2464# 2465AC_DEFUN([XORG_ENABLE_DEVEL_DOCS],[ 2466m4_define([devel_default], m4_default([$1], [yes])) 2467AC_ARG_ENABLE(devel-docs, 2468 AS_HELP_STRING([--enable-devel-docs], 2469 [Enable building the developer documentation (default: ]devel_default[)]), 2470 [build_devel_docs=$enableval], [build_devel_docs=]devel_default) 2471m4_undefine([devel_default]) 2472AM_CONDITIONAL(ENABLE_DEVEL_DOCS, [test x$build_devel_docs = xyes]) 2473AC_MSG_CHECKING([whether to build developer documentation]) 2474AC_MSG_RESULT([$build_devel_docs]) 2475]) # XORG_ENABLE_DEVEL_DOCS 2476 2477# XORG_ENABLE_SPECS (enable_specs=yes) 2478# ---------------- 2479# Minimum version: 1.6.0 2480# 2481# This macro enables a builder to skip all functional specification targets. 2482# Combined with the specific tool checking macros XORG_WITH_*, it provides 2483# maximum flexibilty in controlling documentation building. 2484# Refer to: 2485# XORG_WITH_XMLTO --with-xmlto 2486# XORG_WITH_ASCIIDOC --with-asciidoc 2487# XORG_WITH_DOXYGEN --with-doxygen 2488# XORG_WITH_FOP --with-fop 2489# XORG_WITH_GROFF --with-groff 2490# XORG_WITH_PS2PDF --with-ps2pdf 2491# 2492# Interface to module: 2493# ENABLE_SPECS: used in makefiles to conditionally generate specs 2494# --enable-specs: 'yes' user instructs the module to generate specs 2495# 'no' user instructs the module not to generate specs 2496# parm1: specify the default value, yes or no. 2497# 2498AC_DEFUN([XORG_ENABLE_SPECS],[ 2499m4_define([spec_default], m4_default([$1], [yes])) 2500AC_ARG_ENABLE(specs, 2501 AS_HELP_STRING([--enable-specs], 2502 [Enable building the specs (default: ]spec_default[)]), 2503 [build_specs=$enableval], [build_specs=]spec_default) 2504m4_undefine([spec_default]) 2505AM_CONDITIONAL(ENABLE_SPECS, [test x$build_specs = xyes]) 2506AC_MSG_CHECKING([whether to build functional specifications]) 2507AC_MSG_RESULT([$build_specs]) 2508]) # XORG_ENABLE_SPECS 2509 2510# XORG_ENABLE_UNIT_TESTS (enable_unit_tests=auto) 2511# ---------------------------------------------- 2512# Minimum version: 1.13.0 2513# 2514# This macro enables a builder to enable/disable unit testing 2515# It makes no assumption about the test cases implementation 2516# Test cases may or may not use Automake "Support for test suites" 2517# They may or may not use the software utility library GLib 2518# 2519# When used in conjunction with XORG_WITH_GLIB, use both AM_CONDITIONAL 2520# ENABLE_UNIT_TESTS and HAVE_GLIB. Not all unit tests may use glib. 2521# The variable enable_unit_tests is used by other macros in this file. 2522# 2523# Interface to module: 2524# ENABLE_UNIT_TESTS: used in makefiles to conditionally build tests 2525# enable_unit_tests: used in configure.ac for additional configuration 2526# --enable-unit-tests: 'yes' user instructs the module to build tests 2527# 'no' user instructs the module not to build tests 2528# parm1: specify the default value, yes or no. 2529# 2530AC_DEFUN([XORG_ENABLE_UNIT_TESTS],[ 2531AC_BEFORE([$0], [XORG_WITH_GLIB]) 2532AC_BEFORE([$0], [XORG_LD_WRAP]) 2533AC_REQUIRE([XORG_MEMORY_CHECK_FLAGS]) 2534m4_define([_defopt], m4_default([$1], [auto])) 2535AC_ARG_ENABLE(unit-tests, AS_HELP_STRING([--enable-unit-tests], 2536 [Enable building unit test cases (default: ]_defopt[)]), 2537 [enable_unit_tests=$enableval], [enable_unit_tests=]_defopt) 2538m4_undefine([_defopt]) 2539AM_CONDITIONAL(ENABLE_UNIT_TESTS, [test "x$enable_unit_tests" != xno]) 2540AC_MSG_CHECKING([whether to build unit test cases]) 2541AC_MSG_RESULT([$enable_unit_tests]) 2542]) # XORG_ENABLE_UNIT_TESTS 2543 2544# XORG_ENABLE_INTEGRATION_TESTS (enable_unit_tests=auto) 2545# ------------------------------------------------------ 2546# Minimum version: 1.17.0 2547# 2548# This macro enables a builder to enable/disable integration testing 2549# It makes no assumption about the test cases' implementation 2550# Test cases may or may not use Automake "Support for test suites" 2551# 2552# Please see XORG_ENABLE_UNIT_TESTS for unit test support. Unit test support 2553# usually requires less dependencies and may be built and run under less 2554# stringent environments than integration tests. 2555# 2556# Interface to module: 2557# ENABLE_INTEGRATION_TESTS: used in makefiles to conditionally build tests 2558# enable_integration_tests: used in configure.ac for additional configuration 2559# --enable-integration-tests: 'yes' user instructs the module to build tests 2560# 'no' user instructs the module not to build tests 2561# parm1: specify the default value, yes or no. 2562# 2563AC_DEFUN([XORG_ENABLE_INTEGRATION_TESTS],[ 2564AC_REQUIRE([XORG_MEMORY_CHECK_FLAGS]) 2565m4_define([_defopt], m4_default([$1], [auto])) 2566AC_ARG_ENABLE(integration-tests, AS_HELP_STRING([--enable-integration-tests], 2567 [Enable building integration test cases (default: ]_defopt[)]), 2568 [enable_integration_tests=$enableval], 2569 [enable_integration_tests=]_defopt) 2570m4_undefine([_defopt]) 2571AM_CONDITIONAL([ENABLE_INTEGRATION_TESTS], 2572 [test "x$enable_integration_tests" != xno]) 2573AC_MSG_CHECKING([whether to build unit test cases]) 2574AC_MSG_RESULT([$enable_integration_tests]) 2575]) # XORG_ENABLE_INTEGRATION_TESTS 2576 2577# XORG_WITH_GLIB([MIN-VERSION], [DEFAULT]) 2578# ---------------------------------------- 2579# Minimum version: 1.13.0 2580# 2581# GLib is a library which provides advanced data structures and functions. 2582# This macro enables a module to test for the presence of Glib. 2583# 2584# When used with ENABLE_UNIT_TESTS, it is assumed GLib is used for unit testing. 2585# Otherwise the value of $enable_unit_tests is blank. 2586# 2587# Please see XORG_ENABLE_INTEGRATION_TESTS for integration test support. Unit 2588# test support usually requires less dependencies and may be built and run under 2589# less stringent environments than integration tests. 2590# 2591# Interface to module: 2592# HAVE_GLIB: used in makefiles to conditionally build targets 2593# with_glib: used in configure.ac to know if GLib has been found 2594# --with-glib: 'yes' user instructs the module to use glib 2595# 'no' user instructs the module not to use glib 2596# 2597AC_DEFUN([XORG_WITH_GLIB],[ 2598AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 2599m4_define([_defopt], m4_default([$2], [auto])) 2600AC_ARG_WITH(glib, AS_HELP_STRING([--with-glib], 2601 [Use GLib library for unit testing (default: ]_defopt[)]), 2602 [with_glib=$withval], [with_glib=]_defopt) 2603m4_undefine([_defopt]) 2604 2605have_glib=no 2606# Do not probe GLib if user explicitly disabled unit testing 2607if test "x$enable_unit_tests" != x"no"; then 2608 # Do not probe GLib if user explicitly disabled it 2609 if test "x$with_glib" != x"no"; then 2610 m4_ifval( 2611 [$1], 2612 [PKG_CHECK_MODULES([GLIB], [glib-2.0 >= $1], [have_glib=yes], [have_glib=no])], 2613 [PKG_CHECK_MODULES([GLIB], [glib-2.0], [have_glib=yes], [have_glib=no])] 2614 ) 2615 fi 2616fi 2617 2618# Not having GLib when unit testing has been explicitly requested is an error 2619if test "x$enable_unit_tests" = x"yes"; then 2620 if test "x$have_glib" = x"no"; then 2621 AC_MSG_ERROR([--enable-unit-tests=yes specified but glib-2.0 not found]) 2622 fi 2623fi 2624 2625# Having unit testing disabled when GLib has been explicitly requested is an error 2626if test "x$enable_unit_tests" = x"no"; then 2627 if test "x$with_glib" = x"yes"; then 2628 AC_MSG_ERROR([--enable-unit-tests=yes specified but glib-2.0 not found]) 2629 fi 2630fi 2631 2632# Not having GLib when it has been explicitly requested is an error 2633if test "x$with_glib" = x"yes"; then 2634 if test "x$have_glib" = x"no"; then 2635 AC_MSG_ERROR([--with-glib=yes specified but glib-2.0 not found]) 2636 fi 2637fi 2638 2639AM_CONDITIONAL([HAVE_GLIB], [test "$have_glib" = yes]) 2640]) # XORG_WITH_GLIB 2641 2642# XORG_LD_WRAP([required|optional]) 2643# --------------------------------- 2644# Minimum version: 1.13.0 2645# 2646# Check if linker supports -wrap, passed via compiler flags 2647# 2648# When used with ENABLE_UNIT_TESTS, it is assumed -wrap is used for unit testing. 2649# Otherwise the value of $enable_unit_tests is blank. 2650# 2651# Argument added in 1.16.0 - default is "required", to match existing behavior 2652# of returning an error if enable_unit_tests is yes, and ld -wrap is not 2653# available, an argument of "optional" allows use when some unit tests require 2654# ld -wrap and others do not. 2655# 2656AC_DEFUN([XORG_LD_WRAP],[ 2657XORG_CHECK_LINKER_FLAGS([-Wl,-wrap,exit],[have_ld_wrap=yes],[have_ld_wrap=no], 2658 [AC_LANG_PROGRAM([#include <stdlib.h> 2659 void __wrap_exit(int status) { return; }], 2660 [exit(0);])]) 2661# Not having ld wrap when unit testing has been explicitly requested is an error 2662if test "x$enable_unit_tests" = x"yes" -a "x$1" != "xoptional"; then 2663 if test "x$have_ld_wrap" = x"no"; then 2664 AC_MSG_ERROR([--enable-unit-tests=yes specified but ld -wrap support is not available]) 2665 fi 2666fi 2667AM_CONDITIONAL([HAVE_LD_WRAP], [test "$have_ld_wrap" = yes]) 2668# 2669]) # XORG_LD_WRAP 2670 2671# XORG_CHECK_LINKER_FLAGS 2672# ----------------------- 2673# SYNOPSIS 2674# 2675# XORG_CHECK_LINKER_FLAGS(FLAGS, [ACTION-SUCCESS], [ACTION-FAILURE], [PROGRAM-SOURCE]) 2676# 2677# DESCRIPTION 2678# 2679# Check whether the given linker FLAGS work with the current language's 2680# linker, or whether they give an error. 2681# 2682# ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on 2683# success/failure. 2684# 2685# PROGRAM-SOURCE is the program source to link with, if needed 2686# 2687# NOTE: Based on AX_CHECK_COMPILER_FLAGS. 2688# 2689# LICENSE 2690# 2691# Copyright (c) 2009 Mike Frysinger <vapier@gentoo.org> 2692# Copyright (c) 2009 Steven G. Johnson <stevenj@alum.mit.edu> 2693# Copyright (c) 2009 Matteo Frigo 2694# 2695# This program is free software: you can redistribute it and/or modify it 2696# under the terms of the GNU General Public License as published by the 2697# Free Software Foundation, either version 3 of the License, or (at your 2698# option) any later version. 2699# 2700# This program is distributed in the hope that it will be useful, but 2701# WITHOUT ANY WARRANTY; without even the implied warranty of 2702# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 2703# Public License for more details. 2704# 2705# You should have received a copy of the GNU General Public License along 2706# with this program. If not, see <http://www.gnu.org/licenses/>. 2707# 2708# As a special exception, the respective Autoconf Macro's copyright owner 2709# gives unlimited permission to copy, distribute and modify the configure 2710# scripts that are the output of Autoconf when processing the Macro. You 2711# need not follow the terms of the GNU General Public License when using 2712# or distributing such scripts, even though portions of the text of the 2713# Macro appear in them. The GNU General Public License (GPL) does govern 2714# all other use of the material that constitutes the Autoconf Macro. 2715# 2716# This special exception to the GPL applies to versions of the Autoconf 2717# Macro released by the Autoconf Archive. When you make and distribute a 2718# modified version of the Autoconf Macro, you may extend this special 2719# exception to the GPL to apply to your modified version as well.# 2720AC_DEFUN([XORG_CHECK_LINKER_FLAGS], 2721[AC_MSG_CHECKING([whether the linker accepts $1]) 2722dnl Some hackery here since AC_CACHE_VAL can't handle a non-literal varname: 2723AS_LITERAL_IF([$1], 2724 [AC_CACHE_VAL(AS_TR_SH(xorg_cv_linker_flags_[$1]), [ 2725 ax_save_FLAGS=$LDFLAGS 2726 LDFLAGS="$1" 2727 AC_LINK_IFELSE([m4_default([$4],[AC_LANG_PROGRAM()])], 2728 AS_TR_SH(xorg_cv_linker_flags_[$1])=yes, 2729 AS_TR_SH(xorg_cv_linker_flags_[$1])=no) 2730 LDFLAGS=$ax_save_FLAGS])], 2731 [ax_save_FLAGS=$LDFLAGS 2732 LDFLAGS="$1" 2733 AC_LINK_IFELSE([AC_LANG_PROGRAM()], 2734 eval AS_TR_SH(xorg_cv_linker_flags_[$1])=yes, 2735 eval AS_TR_SH(xorg_cv_linker_flags_[$1])=no) 2736 LDFLAGS=$ax_save_FLAGS]) 2737eval xorg_check_linker_flags=$AS_TR_SH(xorg_cv_linker_flags_[$1]) 2738AC_MSG_RESULT($xorg_check_linker_flags) 2739if test "x$xorg_check_linker_flags" = xyes; then 2740 m4_default([$2], :) 2741else 2742 m4_default([$3], :) 2743fi 2744]) # XORG_CHECK_LINKER_FLAGS 2745 2746# XORG_MEMORY_CHECK_FLAGS 2747# ----------------------- 2748# Minimum version: 1.16.0 2749# 2750# This macro attempts to find appropriate memory checking functionality 2751# for various platforms which unit testing code may use to catch various 2752# forms of memory allocation and access errors in testing. 2753# 2754# Interface to module: 2755# XORG_MALLOC_DEBUG_ENV - environment variables to set to enable debugging 2756# Usually added to TESTS_ENVIRONMENT in Makefile.am 2757# 2758# If the user sets the value of XORG_MALLOC_DEBUG_ENV, it is used verbatim. 2759# 2760AC_DEFUN([XORG_MEMORY_CHECK_FLAGS],[ 2761 2762AC_REQUIRE([AC_CANONICAL_HOST]) 2763AC_ARG_VAR([XORG_MALLOC_DEBUG_ENV], 2764 [Environment variables to enable memory checking in tests]) 2765 2766# Check for different types of support on different platforms 2767case $host_os in 2768 solaris*) 2769 AC_CHECK_LIB([umem], [umem_alloc], 2770 [malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default']) 2771 ;; 2772 *-gnu*) # GNU libc - Value is used as a single byte bit pattern, 2773 # both directly and inverted, so should not be 0 or 255. 2774 malloc_debug_env='MALLOC_PERTURB_=15' 2775 ;; 2776 darwin*) 2777 malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib' 2778 ;; 2779 *bsd*) 2780 malloc_debug_env='MallocPreScribble=1 MallocScribble=1' 2781 ;; 2782esac 2783 2784# User supplied flags override default flags 2785if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then 2786 malloc_debug_env="$XORG_MALLOC_DEBUG_ENV" 2787fi 2788 2789AC_SUBST([XORG_MALLOC_DEBUG_ENV],[$malloc_debug_env]) 2790]) # XORG_WITH_LINT 2791 2792# XORG_CHECK_MALLOC_ZERO 2793# ---------------------- 2794# Minimum version: 1.0.0 2795# 2796# Defines {MALLOC,XMALLOC,XTMALLOC}_ZERO_CFLAGS appropriately if 2797# malloc(0) returns NULL. Packages should add one of these cflags to 2798# their AM_CFLAGS (or other appropriate *_CFLAGS) to use them. 2799AC_DEFUN([XORG_CHECK_MALLOC_ZERO],[ 2800AC_ARG_ENABLE(malloc0returnsnull, 2801 AS_HELP_STRING([--enable-malloc0returnsnull], 2802 [malloc(0) returns NULL (default: auto)]), 2803 [MALLOC_ZERO_RETURNS_NULL=$enableval], 2804 [MALLOC_ZERO_RETURNS_NULL=auto]) 2805 2806AC_MSG_CHECKING([whether malloc(0) returns NULL]) 2807if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 2808AC_CACHE_VAL([xorg_cv_malloc0_returns_null], 2809 [AC_RUN_IFELSE([AC_LANG_PROGRAM([ 2810#include <stdlib.h> 2811],[ 2812 char *m0, *r0, *c0, *p; 2813 m0 = malloc(0); 2814 p = malloc(10); 2815 r0 = realloc(p,0); 2816 c0 = calloc(0,10); 2817 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 2818])], 2819 [xorg_cv_malloc0_returns_null=yes], 2820 [xorg_cv_malloc0_returns_null=no])]) 2821MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null 2822fi 2823AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL]) 2824 2825if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 2826 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 2827 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 2828 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 2829else 2830 MALLOC_ZERO_CFLAGS="" 2831 XMALLOC_ZERO_CFLAGS="" 2832 XTMALLOC_ZERO_CFLAGS="" 2833fi 2834 2835AC_SUBST([MALLOC_ZERO_CFLAGS]) 2836AC_SUBST([XMALLOC_ZERO_CFLAGS]) 2837AC_SUBST([XTMALLOC_ZERO_CFLAGS]) 2838]) # XORG_CHECK_MALLOC_ZERO 2839 2840# XORG_WITH_LINT() 2841# ---------------- 2842# Minimum version: 1.1.0 2843# 2844# This macro enables the use of a tool that flags some suspicious and 2845# non-portable constructs (likely to be bugs) in C language source code. 2846# It will attempt to locate the tool and use appropriate options. 2847# There are various lint type tools on different platforms. 2848# 2849# Interface to module: 2850# LINT: returns the path to the tool found on the platform 2851# or the value set to LINT on the configure cmd line 2852# also an Automake conditional 2853# LINT_FLAGS: an Automake variable with appropriate flags 2854# 2855# --with-lint: 'yes' user instructs the module to use lint 2856# 'no' user instructs the module not to use lint (default) 2857# 2858# If the user sets the value of LINT, AC_PATH_PROG skips testing the path. 2859# If the user sets the value of LINT_FLAGS, they are used verbatim. 2860# 2861AC_DEFUN([XORG_WITH_LINT],[ 2862 2863AC_ARG_VAR([LINT], [Path to a lint-style command]) 2864AC_ARG_VAR([LINT_FLAGS], [Flags for the lint-style command]) 2865AC_ARG_WITH(lint, [AS_HELP_STRING([--with-lint], 2866 [Use a lint-style source code checker (default: disabled)])], 2867 [use_lint=$withval], [use_lint=no]) 2868 2869# Obtain platform specific info like program name and options 2870# The lint program on FreeBSD and NetBSD is different from the one on Solaris 2871case $host_os in 2872 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 2873 lint_name=splint 2874 lint_options="-badflag" 2875 ;; 2876 *freebsd* | *netbsd*) 2877 lint_name=lint 2878 lint_options="-u -b" 2879 ;; 2880 *solaris*) 2881 lint_name=lint 2882 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 2883 ;; 2884esac 2885 2886# Test for the presence of the program (either guessed by the code or spelled out by the user) 2887if test "x$use_lint" = x"yes" ; then 2888 AC_PATH_PROG([LINT], [$lint_name]) 2889 if test "x$LINT" = "x"; then 2890 AC_MSG_ERROR([--with-lint=yes specified but lint-style tool not found in PATH]) 2891 fi 2892elif test "x$use_lint" = x"no" ; then 2893 if test "x$LINT" != "x"; then 2894 AC_MSG_WARN([ignoring LINT environment variable since --with-lint=no was specified]) 2895 fi 2896else 2897 AC_MSG_ERROR([--with-lint expects 'yes' or 'no'. Use LINT variable to specify path.]) 2898fi 2899 2900# User supplied flags override default flags 2901if test "x$LINT_FLAGS" != "x"; then 2902 lint_options=$LINT_FLAGS 2903fi 2904 2905AC_SUBST([LINT_FLAGS],[$lint_options]) 2906AM_CONDITIONAL(LINT, [test "x$LINT" != x]) 2907 2908]) # XORG_WITH_LINT 2909 2910# XORG_LINT_LIBRARY(LIBNAME) 2911# -------------------------- 2912# Minimum version: 1.1.0 2913# 2914# Sets up flags for building lint libraries for checking programs that call 2915# functions in the library. 2916# 2917# Interface to module: 2918# LINTLIB - Automake variable with the name of lint library file to make 2919# MAKE_LINT_LIB - Automake conditional 2920# 2921# --enable-lint-library: - 'yes' user instructs the module to created a lint library 2922# - 'no' user instructs the module not to create a lint library (default) 2923 2924AC_DEFUN([XORG_LINT_LIBRARY],[ 2925AC_REQUIRE([XORG_WITH_LINT]) 2926AC_ARG_ENABLE(lint-library, [AS_HELP_STRING([--enable-lint-library], 2927 [Create lint library (default: disabled)])], 2928 [make_lint_lib=$enableval], [make_lint_lib=no]) 2929 2930if test "x$make_lint_lib" = x"yes" ; then 2931 LINTLIB=llib-l$1.ln 2932 if test "x$LINT" = "x"; then 2933 AC_MSG_ERROR([Cannot make lint library without --with-lint]) 2934 fi 2935elif test "x$make_lint_lib" != x"no" ; then 2936 AC_MSG_ERROR([--enable-lint-library expects 'yes' or 'no'.]) 2937fi 2938 2939AC_SUBST(LINTLIB) 2940AM_CONDITIONAL(MAKE_LINT_LIB, [test x$make_lint_lib != xno]) 2941 2942]) # XORG_LINT_LIBRARY 2943 2944# XORG_COMPILER_BRAND 2945# ------------------- 2946# Minimum version: 1.14.0 2947# 2948# Checks for various brands of compilers and sets flags as appropriate: 2949# GNU gcc - relies on AC_PROG_CC (via AC_PROG_CC_C99) to set GCC to "yes" 2950# GNU g++ - relies on AC_PROG_CXX to set GXX to "yes" 2951# clang compiler - sets CLANGCC to "yes" 2952# Intel compiler - sets INTELCC to "yes" 2953# Sun/Oracle Solaris Studio cc - sets SUNCC to "yes" 2954# 2955AC_DEFUN([XORG_COMPILER_BRAND], [ 2956AC_LANG_CASE( 2957 [C], [ 2958 AC_REQUIRE([AC_PROG_CC_C99]) 2959 ], 2960 [C++], [ 2961 AC_REQUIRE([AC_PROG_CXX]) 2962 ] 2963) 2964AC_CHECK_DECL([__clang__], [CLANGCC="yes"], [CLANGCC="no"]) 2965AC_CHECK_DECL([__INTEL_COMPILER], [INTELCC="yes"], [INTELCC="no"]) 2966AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) 2967]) # XORG_COMPILER_BRAND 2968 2969# XORG_TESTSET_CFLAG(<variable>, <flag>, [<alternative flag>, ...]) 2970# --------------- 2971# Minimum version: 1.16.0 2972# 2973# Test if the compiler works when passed the given flag as a command line argument. 2974# If it succeeds, the flag is appeneded to the given variable. If not, it tries the 2975# next flag in the list until there are no more options. 2976# 2977# Note that this does not guarantee that the compiler supports the flag as some 2978# compilers will simply ignore arguments that they do not understand, but we do 2979# attempt to weed out false positives by using -Werror=unknown-warning-option and 2980# -Werror=unused-command-line-argument 2981# 2982AC_DEFUN([XORG_TESTSET_CFLAG], [ 2983m4_if([$#], 0, [m4_fatal([XORG_TESTSET_CFLAG was given with an unsupported number of arguments])]) 2984m4_if([$#], 1, [m4_fatal([XORG_TESTSET_CFLAG was given with an unsupported number of arguments])]) 2985 2986AC_LANG_COMPILER_REQUIRE 2987 2988AC_LANG_CASE( 2989 [C], [ 2990 AC_REQUIRE([AC_PROG_CC_C99]) 2991 define([PREFIX], [C]) 2992 define([CACHE_PREFIX], [cc]) 2993 define([COMPILER], [$CC]) 2994 ], 2995 [C++], [ 2996 define([PREFIX], [CXX]) 2997 define([CACHE_PREFIX], [cxx]) 2998 define([COMPILER], [$CXX]) 2999 ] 3000) 3001 3002[xorg_testset_save_]PREFIX[FLAGS]="$PREFIX[FLAGS]" 3003 3004if test "x$[xorg_testset_]CACHE_PREFIX[_unknown_warning_option]" = "x" ; then 3005 PREFIX[FLAGS]="$PREFIX[FLAGS] -Werror=unknown-warning-option" 3006 AC_CACHE_CHECK([if ]COMPILER[ supports -Werror=unknown-warning-option], 3007 [xorg_cv_]CACHE_PREFIX[_flag_unknown_warning_option], 3008 AC_COMPILE_IFELSE([AC_LANG_SOURCE([int i;])], 3009 [xorg_cv_]CACHE_PREFIX[_flag_unknown_warning_option=yes], 3010 [xorg_cv_]CACHE_PREFIX[_flag_unknown_warning_option=no])) 3011 [xorg_testset_]CACHE_PREFIX[_unknown_warning_option]=$[xorg_cv_]CACHE_PREFIX[_flag_unknown_warning_option] 3012 PREFIX[FLAGS]="$[xorg_testset_save_]PREFIX[FLAGS]" 3013fi 3014 3015if test "x$[xorg_testset_]CACHE_PREFIX[_unused_command_line_argument]" = "x" ; then 3016 if test "x$[xorg_testset_]CACHE_PREFIX[_unknown_warning_option]" = "xyes" ; then 3017 PREFIX[FLAGS]="$PREFIX[FLAGS] -Werror=unknown-warning-option" 3018 fi 3019 PREFIX[FLAGS]="$PREFIX[FLAGS] -Werror=unused-command-line-argument" 3020 AC_CACHE_CHECK([if ]COMPILER[ supports -Werror=unused-command-line-argument], 3021 [xorg_cv_]CACHE_PREFIX[_flag_unused_command_line_argument], 3022 AC_COMPILE_IFELSE([AC_LANG_SOURCE([int i;])], 3023 [xorg_cv_]CACHE_PREFIX[_flag_unused_command_line_argument=yes], 3024 [xorg_cv_]CACHE_PREFIX[_flag_unused_command_line_argument=no])) 3025 [xorg_testset_]CACHE_PREFIX[_unused_command_line_argument]=$[xorg_cv_]CACHE_PREFIX[_flag_unused_command_line_argument] 3026 PREFIX[FLAGS]="$[xorg_testset_save_]PREFIX[FLAGS]" 3027fi 3028 3029found="no" 3030m4_foreach([flag], m4_cdr($@), [ 3031 if test $found = "no" ; then 3032 if test "x$xorg_testset_]CACHE_PREFIX[_unknown_warning_option" = "xyes" ; then 3033 PREFIX[FLAGS]="$PREFIX[FLAGS] -Werror=unknown-warning-option" 3034 fi 3035 3036 if test "x$xorg_testset_]CACHE_PREFIX[_unused_command_line_argument" = "xyes" ; then 3037 PREFIX[FLAGS]="$PREFIX[FLAGS] -Werror=unused-command-line-argument" 3038 fi 3039 3040 PREFIX[FLAGS]="$PREFIX[FLAGS] ]flag[" 3041 3042dnl Some hackery here since AC_CACHE_VAL can't handle a non-literal varname 3043 AC_MSG_CHECKING([if ]COMPILER[ supports ]flag[]) 3044 cacheid=AS_TR_SH([xorg_cv_]CACHE_PREFIX[_flag_]flag[]) 3045 AC_CACHE_VAL($cacheid, 3046 [AC_LINK_IFELSE([AC_LANG_PROGRAM([int i;])], 3047 [eval $cacheid=yes], 3048 [eval $cacheid=no])]) 3049 3050 PREFIX[FLAGS]="$[xorg_testset_save_]PREFIX[FLAGS]" 3051 3052 eval supported=\$$cacheid 3053 AC_MSG_RESULT([$supported]) 3054 if test "$supported" = "yes" ; then 3055 $1="$$1 ]flag[" 3056 found="yes" 3057 fi 3058 fi 3059]) 3060]) # XORG_TESTSET_CFLAG 3061 3062# XORG_COMPILER_FLAGS 3063# --------------- 3064# Minimum version: 1.16.0 3065# 3066# Defines BASE_CFLAGS or BASE_CXXFLAGS to contain a set of command line 3067# arguments supported by the selected compiler which do NOT alter the generated 3068# code. These arguments will cause the compiler to print various warnings 3069# during compilation AND turn a conservative set of warnings into errors. 3070# 3071# The set of flags supported by BASE_CFLAGS and BASE_CXXFLAGS will grow in 3072# future versions of util-macros as options are added to new compilers. 3073# 3074AC_DEFUN([XORG_COMPILER_FLAGS], [ 3075AC_REQUIRE([XORG_COMPILER_BRAND]) 3076 3077AC_ARG_ENABLE(selective-werror, 3078 AS_HELP_STRING([--disable-selective-werror], 3079 [Turn off selective compiler errors. (default: enabled)]), 3080 [SELECTIVE_WERROR=$enableval], 3081 [SELECTIVE_WERROR=yes]) 3082 3083AC_LANG_CASE( 3084 [C], [ 3085 define([PREFIX], [C]) 3086 ], 3087 [C++], [ 3088 define([PREFIX], [CXX]) 3089 ] 3090) 3091# -v is too short to test reliably with XORG_TESTSET_CFLAG 3092if test "x$SUNCC" = "xyes"; then 3093 [BASE_]PREFIX[FLAGS]="-v" 3094else 3095 [BASE_]PREFIX[FLAGS]="" 3096fi 3097 3098# This chunk of warnings were those that existed in the legacy CWARNFLAGS 3099XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wall]) 3100XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wpointer-arith]) 3101XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-declarations]) 3102XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wformat=2], [-Wformat]) 3103 3104AC_LANG_CASE( 3105 [C], [ 3106 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wstrict-prototypes]) 3107 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-prototypes]) 3108 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wnested-externs]) 3109 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wbad-function-cast]) 3110 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wold-style-definition], [-fd]) 3111 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wdeclaration-after-statement]) 3112 ] 3113) 3114 3115# This chunk adds additional warnings that could catch undesired effects. 3116XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wunused]) 3117XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wuninitialized]) 3118XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wshadow]) 3119XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-noreturn]) 3120XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-format-attribute]) 3121XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wredundant-decls]) 3122XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 3123 3124# These are currently disabled because they are noisy. They will be enabled 3125# in the future once the codebase is sufficiently modernized to silence 3126# them. For now, I don't want them to drown out the other warnings. 3127# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 3128# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 3129# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 3130 3131# Turn some warnings into errors, so we don't accidently get successful builds 3132# when there are problems that should be fixed. 3133 3134if test "x$SELECTIVE_WERROR" = "xyes" ; then 3135XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=implicit], [-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED]) 3136XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=nonnull]) 3137XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=init-self]) 3138XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=main]) 3139XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=missing-braces]) 3140XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=sequence-point]) 3141XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=return-type], [-errwarn=E_FUNC_HAS_NO_RETURN_STMT]) 3142XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=trigraphs]) 3143XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=array-bounds]) 3144XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=write-strings]) 3145XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=address]) 3146XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=int-to-pointer-cast], [-errwarn=E_BAD_PTR_INT_COMBINATION]) 3147XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=pointer-to-int-cast]) # Also -errwarn=E_BAD_PTR_INT_COMBINATION 3148else 3149AC_MSG_WARN([You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT]) 3150XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wimplicit]) 3151XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wnonnull]) 3152XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Winit-self]) 3153XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmain]) 3154XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-braces]) 3155XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wsequence-point]) 3156XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wreturn-type]) 3157XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wtrigraphs]) 3158XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Warray-bounds]) 3159XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wwrite-strings]) 3160XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Waddress]) 3161XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wint-to-pointer-cast]) 3162XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wpointer-to-int-cast]) 3163fi 3164 3165AC_SUBST([BASE_]PREFIX[FLAGS]) 3166]) # XORG_COMPILER_FLAGS 3167 3168# XORG_CWARNFLAGS 3169# --------------- 3170# Minimum version: 1.2.0 3171# Deprecated since: 1.16.0 (Use XORG_COMPILER_FLAGS instead) 3172# 3173# Defines CWARNFLAGS to enable C compiler warnings. 3174# 3175# This function is deprecated because it defines -fno-strict-aliasing 3176# which alters the code generated by the compiler. If -fno-strict-aliasing 3177# is needed, then it should be added explicitly in the module when 3178# it is updated to use BASE_CFLAGS. 3179# 3180AC_DEFUN([XORG_CWARNFLAGS], [ 3181AC_REQUIRE([XORG_COMPILER_FLAGS]) 3182AC_REQUIRE([XORG_COMPILER_BRAND]) 3183AC_LANG_CASE( 3184 [C], [ 3185 CWARNFLAGS="$BASE_CFLAGS" 3186 if test "x$GCC" = xyes ; then 3187 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 3188 fi 3189 AC_SUBST(CWARNFLAGS) 3190 ] 3191) 3192]) # XORG_CWARNFLAGS 3193 3194# XORG_STRICT_OPTION 3195# ----------------------- 3196# Minimum version: 1.3.0 3197# 3198# Add configure option to enable strict compilation flags, such as treating 3199# warnings as fatal errors. 3200# If --enable-strict-compilation is passed to configure, adds strict flags to 3201# $BASE_CFLAGS or $BASE_CXXFLAGS and the deprecated $CWARNFLAGS. 3202# 3203# Starting in 1.14.0 also exports $STRICT_CFLAGS for use in other tests or 3204# when strict compilation is unconditionally desired. 3205AC_DEFUN([XORG_STRICT_OPTION], [ 3206AC_REQUIRE([XORG_CWARNFLAGS]) 3207AC_REQUIRE([XORG_COMPILER_FLAGS]) 3208 3209AC_ARG_ENABLE(strict-compilation, 3210 AS_HELP_STRING([--enable-strict-compilation], 3211 [Enable all warnings from compiler and make them errors (default: disabled)]), 3212 [STRICT_COMPILE=$enableval], [STRICT_COMPILE=no]) 3213 3214AC_LANG_CASE( 3215 [C], [ 3216 define([PREFIX], [C]) 3217 ], 3218 [C++], [ 3219 define([PREFIX], [CXX]) 3220 ] 3221) 3222 3223[STRICT_]PREFIX[FLAGS]="" 3224XORG_TESTSET_CFLAG([[STRICT_]PREFIX[FLAGS]], [-pedantic]) 3225XORG_TESTSET_CFLAG([[STRICT_]PREFIX[FLAGS]], [-Werror], [-errwarn]) 3226 3227# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 3228# activate it with -Werror, so we add it here explicitly. 3229XORG_TESTSET_CFLAG([[STRICT_]PREFIX[FLAGS]], [-Werror=attributes]) 3230 3231if test "x$STRICT_COMPILE" = "xyes"; then 3232 [BASE_]PREFIX[FLAGS]="$[BASE_]PREFIX[FLAGS] $[STRICT_]PREFIX[FLAGS]" 3233 AC_LANG_CASE([C], [CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"]) 3234fi 3235AC_SUBST([STRICT_]PREFIX[FLAGS]) 3236AC_SUBST([BASE_]PREFIX[FLAGS]) 3237AC_LANG_CASE([C], AC_SUBST([CWARNFLAGS])) 3238]) # XORG_STRICT_OPTION 3239 3240# XORG_DEFAULT_OPTIONS 3241# -------------------- 3242# Minimum version: 1.3.0 3243# 3244# Defines default options for X.Org modules. 3245# 3246AC_DEFUN([XORG_DEFAULT_OPTIONS], [ 3247AC_REQUIRE([AC_PROG_INSTALL]) 3248XORG_COMPILER_FLAGS 3249XORG_CWARNFLAGS 3250XORG_STRICT_OPTION 3251XORG_RELEASE_VERSION 3252XORG_CHANGELOG 3253XORG_INSTALL 3254XORG_MANPAGE_SECTIONS 3255m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])], 3256 [AC_SUBST([AM_DEFAULT_VERBOSITY], [1])]) 3257]) # XORG_DEFAULT_OPTIONS 3258 3259# XORG_INSTALL() 3260# ---------------- 3261# Minimum version: 1.4.0 3262# 3263# Defines the variable INSTALL_CMD as the command to copy 3264# INSTALL from $prefix/share/util-macros. 3265# 3266AC_DEFUN([XORG_INSTALL], [ 3267AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 3268macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 3269INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 3270mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 3271|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 3272touch \$(top_srcdir)/INSTALL; \ 3273echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 3274AC_SUBST([INSTALL_CMD]) 3275]) # XORG_INSTALL 3276dnl Copyright 2005 Red Hat, Inc 3277dnl 3278dnl Permission to use, copy, modify, distribute, and sell this software and its 3279dnl documentation for any purpose is hereby granted without fee, provided that 3280dnl the above copyright notice appear in all copies and that both that 3281dnl copyright notice and this permission notice appear in supporting 3282dnl documentation. 3283dnl 3284dnl The above copyright notice and this permission notice shall be included 3285dnl in all copies or substantial portions of the Software. 3286dnl 3287dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 3288dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 3289dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 3290dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 3291dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 3292dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 3293dnl OTHER DEALINGS IN THE SOFTWARE. 3294dnl 3295dnl Except as contained in this notice, the name of the copyright holders shall 3296dnl not be used in advertising or otherwise to promote the sale, use or 3297dnl other dealings in this Software without prior written authorization 3298dnl from the copyright holders. 3299dnl 3300 3301# XORG_RELEASE_VERSION 3302# -------------------- 3303# Defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use. 3304 3305AC_DEFUN([XORG_RELEASE_VERSION],[ 3306 AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR], 3307 [`echo $PACKAGE_VERSION | cut -d . -f 1`], 3308 [Major version of this package]) 3309 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 3310 if test "x$PVM" = "x"; then 3311 PVM="0" 3312 fi 3313 AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR], 3314 [$PVM], 3315 [Minor version of this package]) 3316 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 3317 if test "x$PVP" = "x"; then 3318 PVP="0" 3319 fi 3320 AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL], 3321 [$PVP], 3322 [Patch version of this package]) 3323]) 3324 3325# XORG_CHANGELOG() 3326# ---------------- 3327# Minimum version: 1.2.0 3328# 3329# Defines the variable CHANGELOG_CMD as the command to generate 3330# ChangeLog from git. 3331# 3332# 3333AC_DEFUN([XORG_CHANGELOG], [ 3334CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 3335mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 3336|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 3337touch \$(top_srcdir)/ChangeLog; \ 3338echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 3339AC_SUBST([CHANGELOG_CMD]) 3340]) # XORG_CHANGELOG 3341 3342# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 3343# 3344# Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc. 3345# Written by Gordon Matzigkeit, 1996 3346# 3347# This file is free software; the Free Software Foundation gives 3348# unlimited permission to copy and/or distribute it, with or without 3349# modifications, as long as this notice is preserved. 3350 3351m4_define([_LT_COPYING], [dnl 3352# Copyright (C) 2014 Free Software Foundation, Inc. 3353# This is free software; see the source for copying conditions. There is NO 3354# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 3355 3356# GNU Libtool is free software; you can redistribute it and/or modify 3357# it under the terms of the GNU General Public License as published by 3358# the Free Software Foundation; either version 2 of of the License, or 3359# (at your option) any later version. 3360# 3361# As a special exception to the GNU General Public License, if you 3362# distribute this file as part of a program or library that is built 3363# using GNU Libtool, you may include this file under the same 3364# distribution terms that you use for the rest of that program. 3365# 3366# GNU Libtool is distributed in the hope that it will be useful, but 3367# WITHOUT ANY WARRANTY; without even the implied warranty of 3368# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 3369# GNU General Public License for more details. 3370# 3371# You should have received a copy of the GNU General Public License 3372# along with this program. If not, see <http://www.gnu.org/licenses/>. 3373]) 3374 3375# serial 58 LT_INIT 3376 3377 3378# LT_PREREQ(VERSION) 3379# ------------------ 3380# Complain and exit if this libtool version is less that VERSION. 3381m4_defun([LT_PREREQ], 3382[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, 3383 [m4_default([$3], 3384 [m4_fatal([Libtool version $1 or higher is required], 3385 63)])], 3386 [$2])]) 3387 3388 3389# _LT_CHECK_BUILDDIR 3390# ------------------ 3391# Complain if the absolute build directory name contains unusual characters 3392m4_defun([_LT_CHECK_BUILDDIR], 3393[case `pwd` in 3394 *\ * | *\ *) 3395 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; 3396esac 3397]) 3398 3399 3400# LT_INIT([OPTIONS]) 3401# ------------------ 3402AC_DEFUN([LT_INIT], 3403[AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK 3404AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 3405AC_BEFORE([$0], [LT_LANG])dnl 3406AC_BEFORE([$0], [LT_OUTPUT])dnl 3407AC_BEFORE([$0], [LTDL_INIT])dnl 3408m4_require([_LT_CHECK_BUILDDIR])dnl 3409 3410dnl Autoconf doesn't catch unexpanded LT_ macros by default: 3411m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl 3412m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl 3413dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 3414dnl unless we require an AC_DEFUNed macro: 3415AC_REQUIRE([LTOPTIONS_VERSION])dnl 3416AC_REQUIRE([LTSUGAR_VERSION])dnl 3417AC_REQUIRE([LTVERSION_VERSION])dnl 3418AC_REQUIRE([LTOBSOLETE_VERSION])dnl 3419m4_require([_LT_PROG_LTMAIN])dnl 3420 3421_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) 3422 3423dnl Parse OPTIONS 3424_LT_SET_OPTIONS([$0], [$1]) 3425 3426# This can be used to rebuild libtool when needed 3427LIBTOOL_DEPS=$ltmain 3428 3429# Always use our own libtool. 3430LIBTOOL='$(SHELL) $(top_builddir)/libtool' 3431AC_SUBST(LIBTOOL)dnl 3432 3433_LT_SETUP 3434 3435# Only expand once: 3436m4_define([LT_INIT]) 3437])# LT_INIT 3438 3439# Old names: 3440AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) 3441AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) 3442dnl aclocal-1.4 backwards compatibility: 3443dnl AC_DEFUN([AC_PROG_LIBTOOL], []) 3444dnl AC_DEFUN([AM_PROG_LIBTOOL], []) 3445 3446 3447# _LT_PREPARE_CC_BASENAME 3448# ----------------------- 3449m4_defun([_LT_PREPARE_CC_BASENAME], [ 3450# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 3451func_cc_basename () 3452{ 3453 for cc_temp in @S|@*""; do 3454 case $cc_temp in 3455 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 3456 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 3457 \-*) ;; 3458 *) break;; 3459 esac 3460 done 3461 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 3462} 3463])# _LT_PREPARE_CC_BASENAME 3464 3465 3466# _LT_CC_BASENAME(CC) 3467# ------------------- 3468# It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME, 3469# but that macro is also expanded into generated libtool script, which 3470# arranges for $SED and $ECHO to be set by different means. 3471m4_defun([_LT_CC_BASENAME], 3472[m4_require([_LT_PREPARE_CC_BASENAME])dnl 3473AC_REQUIRE([_LT_DECL_SED])dnl 3474AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 3475func_cc_basename $1 3476cc_basename=$func_cc_basename_result 3477]) 3478 3479 3480# _LT_FILEUTILS_DEFAULTS 3481# ---------------------- 3482# It is okay to use these file commands and assume they have been set 3483# sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'. 3484m4_defun([_LT_FILEUTILS_DEFAULTS], 3485[: ${CP="cp -f"} 3486: ${MV="mv -f"} 3487: ${RM="rm -f"} 3488])# _LT_FILEUTILS_DEFAULTS 3489 3490 3491# _LT_SETUP 3492# --------- 3493m4_defun([_LT_SETUP], 3494[AC_REQUIRE([AC_CANONICAL_HOST])dnl 3495AC_REQUIRE([AC_CANONICAL_BUILD])dnl 3496AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl 3497AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 3498 3499_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl 3500dnl 3501_LT_DECL([], [host_alias], [0], [The host system])dnl 3502_LT_DECL([], [host], [0])dnl 3503_LT_DECL([], [host_os], [0])dnl 3504dnl 3505_LT_DECL([], [build_alias], [0], [The build system])dnl 3506_LT_DECL([], [build], [0])dnl 3507_LT_DECL([], [build_os], [0])dnl 3508dnl 3509AC_REQUIRE([AC_PROG_CC])dnl 3510AC_REQUIRE([LT_PATH_LD])dnl 3511AC_REQUIRE([LT_PATH_NM])dnl 3512dnl 3513AC_REQUIRE([AC_PROG_LN_S])dnl 3514test -z "$LN_S" && LN_S="ln -s" 3515_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl 3516dnl 3517AC_REQUIRE([LT_CMD_MAX_LEN])dnl 3518_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl 3519_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl 3520dnl 3521m4_require([_LT_FILEUTILS_DEFAULTS])dnl 3522m4_require([_LT_CHECK_SHELL_FEATURES])dnl 3523m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl 3524m4_require([_LT_CMD_RELOAD])dnl 3525m4_require([_LT_CHECK_MAGIC_METHOD])dnl 3526m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl 3527m4_require([_LT_CMD_OLD_ARCHIVE])dnl 3528m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 3529m4_require([_LT_WITH_SYSROOT])dnl 3530m4_require([_LT_CMD_TRUNCATE])dnl 3531 3532_LT_CONFIG_LIBTOOL_INIT([ 3533# See if we are running on zsh, and set the options that allow our 3534# commands through without removal of \ escapes INIT. 3535if test -n "\${ZSH_VERSION+set}"; then 3536 setopt NO_GLOB_SUBST 3537fi 3538]) 3539if test -n "${ZSH_VERSION+set}"; then 3540 setopt NO_GLOB_SUBST 3541fi 3542 3543_LT_CHECK_OBJDIR 3544 3545m4_require([_LT_TAG_COMPILER])dnl 3546 3547case $host_os in 3548aix3*) 3549 # AIX sometimes has problems with the GCC collect2 program. For some 3550 # reason, if we set the COLLECT_NAMES environment variable, the problems 3551 # vanish in a puff of smoke. 3552 if test set != "${COLLECT_NAMES+set}"; then 3553 COLLECT_NAMES= 3554 export COLLECT_NAMES 3555 fi 3556 ;; 3557esac 3558 3559# Global variables: 3560ofile=libtool 3561can_build_shared=yes 3562 3563# All known linkers require a '.a' archive for static linking (except MSVC, 3564# which needs '.lib'). 3565libext=a 3566 3567with_gnu_ld=$lt_cv_prog_gnu_ld 3568 3569old_CC=$CC 3570old_CFLAGS=$CFLAGS 3571 3572# Set sane defaults for various variables 3573test -z "$CC" && CC=cc 3574test -z "$LTCC" && LTCC=$CC 3575test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 3576test -z "$LD" && LD=ld 3577test -z "$ac_objext" && ac_objext=o 3578 3579_LT_CC_BASENAME([$compiler]) 3580 3581# Only perform the check for file, if the check method requires it 3582test -z "$MAGIC_CMD" && MAGIC_CMD=file 3583case $deplibs_check_method in 3584file_magic*) 3585 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 3586 _LT_PATH_MAGIC 3587 fi 3588 ;; 3589esac 3590 3591# Use C for the default configuration in the libtool script 3592LT_SUPPORTED_TAG([CC]) 3593_LT_LANG_C_CONFIG 3594_LT_LANG_DEFAULT_CONFIG 3595_LT_CONFIG_COMMANDS 3596])# _LT_SETUP 3597 3598 3599# _LT_PREPARE_SED_QUOTE_VARS 3600# -------------------------- 3601# Define a few sed substitution that help us do robust quoting. 3602m4_defun([_LT_PREPARE_SED_QUOTE_VARS], 3603[# Backslashify metacharacters that are still active within 3604# double-quoted strings. 3605sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' 3606 3607# Same as above, but do not quote variable references. 3608double_quote_subst='s/\([["`\\]]\)/\\\1/g' 3609 3610# Sed substitution to delay expansion of an escaped shell variable in a 3611# double_quote_subst'ed string. 3612delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3613 3614# Sed substitution to delay expansion of an escaped single quote. 3615delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3616 3617# Sed substitution to avoid accidental globbing in evaled expressions 3618no_glob_subst='s/\*/\\\*/g' 3619]) 3620 3621# _LT_PROG_LTMAIN 3622# --------------- 3623# Note that this code is called both from 'configure', and 'config.status' 3624# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 3625# 'config.status' has no value for ac_aux_dir unless we are using Automake, 3626# so we pass a copy along to make sure it has a sensible value anyway. 3627m4_defun([_LT_PROG_LTMAIN], 3628[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 3629_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) 3630ltmain=$ac_aux_dir/ltmain.sh 3631])# _LT_PROG_LTMAIN 3632 3633 3634 3635# So that we can recreate a full libtool script including additional 3636# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 3637# in macros and then make a single call at the end using the 'libtool' 3638# label. 3639 3640 3641# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 3642# ---------------------------------------- 3643# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 3644m4_define([_LT_CONFIG_LIBTOOL_INIT], 3645[m4_ifval([$1], 3646 [m4_append([_LT_OUTPUT_LIBTOOL_INIT], 3647 [$1 3648])])]) 3649 3650# Initialize. 3651m4_define([_LT_OUTPUT_LIBTOOL_INIT]) 3652 3653 3654# _LT_CONFIG_LIBTOOL([COMMANDS]) 3655# ------------------------------ 3656# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. 3657m4_define([_LT_CONFIG_LIBTOOL], 3658[m4_ifval([$1], 3659 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], 3660 [$1 3661])])]) 3662 3663# Initialize. 3664m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) 3665 3666 3667# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) 3668# ----------------------------------------------------- 3669m4_defun([_LT_CONFIG_SAVE_COMMANDS], 3670[_LT_CONFIG_LIBTOOL([$1]) 3671_LT_CONFIG_LIBTOOL_INIT([$2]) 3672]) 3673 3674 3675# _LT_FORMAT_COMMENT([COMMENT]) 3676# ----------------------------- 3677# Add leading comment marks to the start of each line, and a trailing 3678# full-stop to the whole comment if one is not present already. 3679m4_define([_LT_FORMAT_COMMENT], 3680[m4_ifval([$1], [ 3681m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], 3682 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) 3683)]) 3684 3685 3686 3687 3688 3689# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) 3690# ------------------------------------------------------------------- 3691# CONFIGNAME is the name given to the value in the libtool script. 3692# VARNAME is the (base) name used in the configure script. 3693# VALUE may be 0, 1 or 2 for a computed quote escaped value based on 3694# VARNAME. Any other value will be used directly. 3695m4_define([_LT_DECL], 3696[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], 3697 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], 3698 [m4_ifval([$1], [$1], [$2])]) 3699 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) 3700 m4_ifval([$4], 3701 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) 3702 lt_dict_add_subkey([lt_decl_dict], [$2], 3703 [tagged?], [m4_ifval([$5], [yes], [no])])]) 3704]) 3705 3706 3707# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) 3708# -------------------------------------------------------- 3709m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) 3710 3711 3712# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) 3713# ------------------------------------------------ 3714m4_define([lt_decl_tag_varnames], 3715[_lt_decl_filter([tagged?], [yes], $@)]) 3716 3717 3718# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) 3719# --------------------------------------------------------- 3720m4_define([_lt_decl_filter], 3721[m4_case([$#], 3722 [0], [m4_fatal([$0: too few arguments: $#])], 3723 [1], [m4_fatal([$0: too few arguments: $#: $1])], 3724 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], 3725 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], 3726 [lt_dict_filter([lt_decl_dict], $@)])[]dnl 3727]) 3728 3729 3730# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) 3731# -------------------------------------------------- 3732m4_define([lt_decl_quote_varnames], 3733[_lt_decl_filter([value], [1], $@)]) 3734 3735 3736# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) 3737# --------------------------------------------------- 3738m4_define([lt_decl_dquote_varnames], 3739[_lt_decl_filter([value], [2], $@)]) 3740 3741 3742# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) 3743# --------------------------------------------------- 3744m4_define([lt_decl_varnames_tagged], 3745[m4_assert([$# <= 2])dnl 3746_$0(m4_quote(m4_default([$1], [[, ]])), 3747 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), 3748 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) 3749m4_define([_lt_decl_varnames_tagged], 3750[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) 3751 3752 3753# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) 3754# ------------------------------------------------ 3755m4_define([lt_decl_all_varnames], 3756[_$0(m4_quote(m4_default([$1], [[, ]])), 3757 m4_if([$2], [], 3758 m4_quote(lt_decl_varnames), 3759 m4_quote(m4_shift($@))))[]dnl 3760]) 3761m4_define([_lt_decl_all_varnames], 3762[lt_join($@, lt_decl_varnames_tagged([$1], 3763 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl 3764]) 3765 3766 3767# _LT_CONFIG_STATUS_DECLARE([VARNAME]) 3768# ------------------------------------ 3769# Quote a variable value, and forward it to 'config.status' so that its 3770# declaration there will have the same value as in 'configure'. VARNAME 3771# must have a single quote delimited value for this to work. 3772m4_define([_LT_CONFIG_STATUS_DECLARE], 3773[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) 3774 3775 3776# _LT_CONFIG_STATUS_DECLARATIONS 3777# ------------------------------ 3778# We delimit libtool config variables with single quotes, so when 3779# we write them to config.status, we have to be sure to quote all 3780# embedded single quotes properly. In configure, this macro expands 3781# each variable declared with _LT_DECL (and _LT_TAGDECL) into: 3782# 3783# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' 3784m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], 3785[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), 3786 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) 3787 3788 3789# _LT_LIBTOOL_TAGS 3790# ---------------- 3791# Output comment and list of tags supported by the script 3792m4_defun([_LT_LIBTOOL_TAGS], 3793[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl 3794available_tags='_LT_TAGS'dnl 3795]) 3796 3797 3798# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 3799# ----------------------------------- 3800# Extract the dictionary values for VARNAME (optionally with TAG) and 3801# expand to a commented shell variable setting: 3802# 3803# # Some comment about what VAR is for. 3804# visible_name=$lt_internal_name 3805m4_define([_LT_LIBTOOL_DECLARE], 3806[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], 3807 [description])))[]dnl 3808m4_pushdef([_libtool_name], 3809 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl 3810m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), 3811 [0], [_libtool_name=[$]$1], 3812 [1], [_libtool_name=$lt_[]$1], 3813 [2], [_libtool_name=$lt_[]$1], 3814 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl 3815m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl 3816]) 3817 3818 3819# _LT_LIBTOOL_CONFIG_VARS 3820# ----------------------- 3821# Produce commented declarations of non-tagged libtool config variables 3822# suitable for insertion in the LIBTOOL CONFIG section of the 'libtool' 3823# script. Tagged libtool config variables (even for the LIBTOOL CONFIG 3824# section) are produced by _LT_LIBTOOL_TAG_VARS. 3825m4_defun([_LT_LIBTOOL_CONFIG_VARS], 3826[m4_foreach([_lt_var], 3827 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), 3828 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) 3829 3830 3831# _LT_LIBTOOL_TAG_VARS(TAG) 3832# ------------------------- 3833m4_define([_LT_LIBTOOL_TAG_VARS], 3834[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), 3835 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) 3836 3837 3838# _LT_TAGVAR(VARNAME, [TAGNAME]) 3839# ------------------------------ 3840m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) 3841 3842 3843# _LT_CONFIG_COMMANDS 3844# ------------------- 3845# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 3846# variables for single and double quote escaping we saved from calls 3847# to _LT_DECL, we can put quote escaped variables declarations 3848# into 'config.status', and then the shell code to quote escape them in 3849# for loops in 'config.status'. Finally, any additional code accumulated 3850# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 3851m4_defun([_LT_CONFIG_COMMANDS], 3852[AC_PROVIDE_IFELSE([LT_OUTPUT], 3853 dnl If the libtool generation code has been placed in $CONFIG_LT, 3854 dnl instead of duplicating it all over again into config.status, 3855 dnl then we will have config.status run $CONFIG_LT later, so it 3856 dnl needs to know what name is stored there: 3857 [AC_CONFIG_COMMANDS([libtool], 3858 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], 3859 dnl If the libtool generation code is destined for config.status, 3860 dnl expand the accumulated commands and init code now: 3861 [AC_CONFIG_COMMANDS([libtool], 3862 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) 3863])#_LT_CONFIG_COMMANDS 3864 3865 3866# Initialize. 3867m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], 3868[ 3869 3870# The HP-UX ksh and POSIX shell print the target directory to stdout 3871# if CDPATH is set. 3872(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 3873 3874sed_quote_subst='$sed_quote_subst' 3875double_quote_subst='$double_quote_subst' 3876delay_variable_subst='$delay_variable_subst' 3877_LT_CONFIG_STATUS_DECLARATIONS 3878LTCC='$LTCC' 3879LTCFLAGS='$LTCFLAGS' 3880compiler='$compiler_DEFAULT' 3881 3882# A function that is used when there is no print builtin or printf. 3883func_fallback_echo () 3884{ 3885 eval 'cat <<_LTECHO_EOF 3886\$[]1 3887_LTECHO_EOF' 3888} 3889 3890# Quote evaled strings. 3891for var in lt_decl_all_varnames([[ \ 3892]], lt_decl_quote_varnames); do 3893 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 3894 *[[\\\\\\\`\\"\\\$]]*) 3895 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 3896 ;; 3897 *) 3898 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 3899 ;; 3900 esac 3901done 3902 3903# Double-quote double-evaled strings. 3904for var in lt_decl_all_varnames([[ \ 3905]], lt_decl_dquote_varnames); do 3906 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 3907 *[[\\\\\\\`\\"\\\$]]*) 3908 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 3909 ;; 3910 *) 3911 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 3912 ;; 3913 esac 3914done 3915 3916_LT_OUTPUT_LIBTOOL_INIT 3917]) 3918 3919# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) 3920# ------------------------------------ 3921# Generate a child script FILE with all initialization necessary to 3922# reuse the environment learned by the parent script, and make the 3923# file executable. If COMMENT is supplied, it is inserted after the 3924# '#!' sequence but before initialization text begins. After this 3925# macro, additional text can be appended to FILE to form the body of 3926# the child script. The macro ends with non-zero status if the 3927# file could not be fully written (such as if the disk is full). 3928m4_ifdef([AS_INIT_GENERATED], 3929[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], 3930[m4_defun([_LT_GENERATED_FILE_INIT], 3931[m4_require([AS_PREPARE])]dnl 3932[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl 3933[lt_write_fail=0 3934cat >$1 <<_ASEOF || lt_write_fail=1 3935#! $SHELL 3936# Generated by $as_me. 3937$2 3938SHELL=\${CONFIG_SHELL-$SHELL} 3939export SHELL 3940_ASEOF 3941cat >>$1 <<\_ASEOF || lt_write_fail=1 3942AS_SHELL_SANITIZE 3943_AS_PREPARE 3944exec AS_MESSAGE_FD>&1 3945_ASEOF 3946test 0 = "$lt_write_fail" && chmod +x $1[]dnl 3947m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT 3948 3949# LT_OUTPUT 3950# --------- 3951# This macro allows early generation of the libtool script (before 3952# AC_OUTPUT is called), incase it is used in configure for compilation 3953# tests. 3954AC_DEFUN([LT_OUTPUT], 3955[: ${CONFIG_LT=./config.lt} 3956AC_MSG_NOTICE([creating $CONFIG_LT]) 3957_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], 3958[# Run this file to recreate a libtool stub with the current configuration.]) 3959 3960cat >>"$CONFIG_LT" <<\_LTEOF 3961lt_cl_silent=false 3962exec AS_MESSAGE_LOG_FD>>config.log 3963{ 3964 echo 3965 AS_BOX([Running $as_me.]) 3966} >&AS_MESSAGE_LOG_FD 3967 3968lt_cl_help="\ 3969'$as_me' creates a local libtool stub from the current configuration, 3970for use in further configure time tests before the real libtool is 3971generated. 3972 3973Usage: $[0] [[OPTIONS]] 3974 3975 -h, --help print this help, then exit 3976 -V, --version print version number, then exit 3977 -q, --quiet do not print progress messages 3978 -d, --debug don't remove temporary files 3979 3980Report bugs to <bug-libtool@gnu.org>." 3981 3982lt_cl_version="\ 3983m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl 3984m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) 3985configured by $[0], generated by m4_PACKAGE_STRING. 3986 3987Copyright (C) 2011 Free Software Foundation, Inc. 3988This config.lt script is free software; the Free Software Foundation 3989gives unlimited permision to copy, distribute and modify it." 3990 3991while test 0 != $[#] 3992do 3993 case $[1] in 3994 --version | --v* | -V ) 3995 echo "$lt_cl_version"; exit 0 ;; 3996 --help | --h* | -h ) 3997 echo "$lt_cl_help"; exit 0 ;; 3998 --debug | --d* | -d ) 3999 debug=: ;; 4000 --quiet | --q* | --silent | --s* | -q ) 4001 lt_cl_silent=: ;; 4002 4003 -*) AC_MSG_ERROR([unrecognized option: $[1] 4004Try '$[0] --help' for more information.]) ;; 4005 4006 *) AC_MSG_ERROR([unrecognized argument: $[1] 4007Try '$[0] --help' for more information.]) ;; 4008 esac 4009 shift 4010done 4011 4012if $lt_cl_silent; then 4013 exec AS_MESSAGE_FD>/dev/null 4014fi 4015_LTEOF 4016 4017cat >>"$CONFIG_LT" <<_LTEOF 4018_LT_OUTPUT_LIBTOOL_COMMANDS_INIT 4019_LTEOF 4020 4021cat >>"$CONFIG_LT" <<\_LTEOF 4022AC_MSG_NOTICE([creating $ofile]) 4023_LT_OUTPUT_LIBTOOL_COMMANDS 4024AS_EXIT(0) 4025_LTEOF 4026chmod +x "$CONFIG_LT" 4027 4028# configure is writing to config.log, but config.lt does its own redirection, 4029# appending to config.log, which fails on DOS, as config.log is still kept 4030# open by configure. Here we exec the FD to /dev/null, effectively closing 4031# config.log, so it can be properly (re)opened and appended to by config.lt. 4032lt_cl_success=: 4033test yes = "$silent" && 4034 lt_config_lt_args="$lt_config_lt_args --quiet" 4035exec AS_MESSAGE_LOG_FD>/dev/null 4036$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 4037exec AS_MESSAGE_LOG_FD>>config.log 4038$lt_cl_success || AS_EXIT(1) 4039])# LT_OUTPUT 4040 4041 4042# _LT_CONFIG(TAG) 4043# --------------- 4044# If TAG is the built-in tag, create an initial libtool script with a 4045# default configuration from the untagged config vars. Otherwise add code 4046# to config.status for appending the configuration named by TAG from the 4047# matching tagged config vars. 4048m4_defun([_LT_CONFIG], 4049[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 4050_LT_CONFIG_SAVE_COMMANDS([ 4051 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 4052 m4_if(_LT_TAG, [C], [ 4053 # See if we are running on zsh, and set the options that allow our 4054 # commands through without removal of \ escapes. 4055 if test -n "${ZSH_VERSION+set}"; then 4056 setopt NO_GLOB_SUBST 4057 fi 4058 4059 cfgfile=${ofile}T 4060 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 4061 $RM "$cfgfile" 4062 4063 cat <<_LT_EOF >> "$cfgfile" 4064#! $SHELL 4065# Generated automatically by $as_me ($PACKAGE) $VERSION 4066# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 4067# NOTE: Changes made to this file will be lost: look at ltmain.sh. 4068 4069# Provide generalized library-building support services. 4070# Written by Gordon Matzigkeit, 1996 4071 4072_LT_COPYING 4073_LT_LIBTOOL_TAGS 4074 4075# Configured defaults for sys_lib_dlsearch_path munging. 4076: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 4077 4078# ### BEGIN LIBTOOL CONFIG 4079_LT_LIBTOOL_CONFIG_VARS 4080_LT_LIBTOOL_TAG_VARS 4081# ### END LIBTOOL CONFIG 4082 4083_LT_EOF 4084 4085 cat <<'_LT_EOF' >> "$cfgfile" 4086 4087# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 4088 4089_LT_PREPARE_MUNGE_PATH_LIST 4090_LT_PREPARE_CC_BASENAME 4091 4092# ### END FUNCTIONS SHARED WITH CONFIGURE 4093 4094_LT_EOF 4095 4096 case $host_os in 4097 aix3*) 4098 cat <<\_LT_EOF >> "$cfgfile" 4099# AIX sometimes has problems with the GCC collect2 program. For some 4100# reason, if we set the COLLECT_NAMES environment variable, the problems 4101# vanish in a puff of smoke. 4102if test set != "${COLLECT_NAMES+set}"; then 4103 COLLECT_NAMES= 4104 export COLLECT_NAMES 4105fi 4106_LT_EOF 4107 ;; 4108 esac 4109 4110 _LT_PROG_LTMAIN 4111 4112 # We use sed instead of cat because bash on DJGPP gets confused if 4113 # if finds mixed CR/LF and LF-only lines. Since sed operates in 4114 # text mode, it properly converts lines to CR/LF. This bash problem 4115 # is reportedly fixed, but why not run on old versions too? 4116 sed '$q' "$ltmain" >> "$cfgfile" \ 4117 || (rm -f "$cfgfile"; exit 1) 4118 4119 mv -f "$cfgfile" "$ofile" || 4120 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 4121 chmod +x "$ofile" 4122], 4123[cat <<_LT_EOF >> "$ofile" 4124 4125dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded 4126dnl in a comment (ie after a #). 4127# ### BEGIN LIBTOOL TAG CONFIG: $1 4128_LT_LIBTOOL_TAG_VARS(_LT_TAG) 4129# ### END LIBTOOL TAG CONFIG: $1 4130_LT_EOF 4131])dnl /m4_if 4132], 4133[m4_if([$1], [], [ 4134 PACKAGE='$PACKAGE' 4135 VERSION='$VERSION' 4136 RM='$RM' 4137 ofile='$ofile'], []) 4138])dnl /_LT_CONFIG_SAVE_COMMANDS 4139])# _LT_CONFIG 4140 4141 4142# LT_SUPPORTED_TAG(TAG) 4143# --------------------- 4144# Trace this macro to discover what tags are supported by the libtool 4145# --tag option, using: 4146# autoconf --trace 'LT_SUPPORTED_TAG:$1' 4147AC_DEFUN([LT_SUPPORTED_TAG], []) 4148 4149 4150# C support is built-in for now 4151m4_define([_LT_LANG_C_enabled], []) 4152m4_define([_LT_TAGS], []) 4153 4154 4155# LT_LANG(LANG) 4156# ------------- 4157# Enable libtool support for the given language if not already enabled. 4158AC_DEFUN([LT_LANG], 4159[AC_BEFORE([$0], [LT_OUTPUT])dnl 4160m4_case([$1], 4161 [C], [_LT_LANG(C)], 4162 [C++], [_LT_LANG(CXX)], 4163 [Go], [_LT_LANG(GO)], 4164 [Java], [_LT_LANG(GCJ)], 4165 [Fortran 77], [_LT_LANG(F77)], 4166 [Fortran], [_LT_LANG(FC)], 4167 [Windows Resource], [_LT_LANG(RC)], 4168 [m4_ifdef([_LT_LANG_]$1[_CONFIG], 4169 [_LT_LANG($1)], 4170 [m4_fatal([$0: unsupported language: "$1"])])])dnl 4171])# LT_LANG 4172 4173 4174# _LT_LANG(LANGNAME) 4175# ------------------ 4176m4_defun([_LT_LANG], 4177[m4_ifdef([_LT_LANG_]$1[_enabled], [], 4178 [LT_SUPPORTED_TAG([$1])dnl 4179 m4_append([_LT_TAGS], [$1 ])dnl 4180 m4_define([_LT_LANG_]$1[_enabled], [])dnl 4181 _LT_LANG_$1_CONFIG($1)])dnl 4182])# _LT_LANG 4183 4184 4185m4_ifndef([AC_PROG_GO], [ 4186# NOTE: This macro has been submitted for inclusion into # 4187# GNU Autoconf as AC_PROG_GO. When it is available in # 4188# a released version of Autoconf we should remove this # 4189# macro and use it instead. # 4190m4_defun([AC_PROG_GO], 4191[AC_LANG_PUSH(Go)dnl 4192AC_ARG_VAR([GOC], [Go compiler command])dnl 4193AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl 4194_AC_ARG_VAR_LDFLAGS()dnl 4195AC_CHECK_TOOL(GOC, gccgo) 4196if test -z "$GOC"; then 4197 if test -n "$ac_tool_prefix"; then 4198 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) 4199 fi 4200fi 4201if test -z "$GOC"; then 4202 AC_CHECK_PROG(GOC, gccgo, gccgo, false) 4203fi 4204])#m4_defun 4205])#m4_ifndef 4206 4207 4208# _LT_LANG_DEFAULT_CONFIG 4209# ----------------------- 4210m4_defun([_LT_LANG_DEFAULT_CONFIG], 4211[AC_PROVIDE_IFELSE([AC_PROG_CXX], 4212 [LT_LANG(CXX)], 4213 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) 4214 4215AC_PROVIDE_IFELSE([AC_PROG_F77], 4216 [LT_LANG(F77)], 4217 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) 4218 4219AC_PROVIDE_IFELSE([AC_PROG_FC], 4220 [LT_LANG(FC)], 4221 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) 4222 4223dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal 4224dnl pulling things in needlessly. 4225AC_PROVIDE_IFELSE([AC_PROG_GCJ], 4226 [LT_LANG(GCJ)], 4227 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 4228 [LT_LANG(GCJ)], 4229 [AC_PROVIDE_IFELSE([LT_PROG_GCJ], 4230 [LT_LANG(GCJ)], 4231 [m4_ifdef([AC_PROG_GCJ], 4232 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) 4233 m4_ifdef([A][M_PROG_GCJ], 4234 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) 4235 m4_ifdef([LT_PROG_GCJ], 4236 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) 4237 4238AC_PROVIDE_IFELSE([AC_PROG_GO], 4239 [LT_LANG(GO)], 4240 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) 4241 4242AC_PROVIDE_IFELSE([LT_PROG_RC], 4243 [LT_LANG(RC)], 4244 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) 4245])# _LT_LANG_DEFAULT_CONFIG 4246 4247# Obsolete macros: 4248AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) 4249AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) 4250AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) 4251AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) 4252AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) 4253dnl aclocal-1.4 backwards compatibility: 4254dnl AC_DEFUN([AC_LIBTOOL_CXX], []) 4255dnl AC_DEFUN([AC_LIBTOOL_F77], []) 4256dnl AC_DEFUN([AC_LIBTOOL_FC], []) 4257dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) 4258dnl AC_DEFUN([AC_LIBTOOL_RC], []) 4259 4260 4261# _LT_TAG_COMPILER 4262# ---------------- 4263m4_defun([_LT_TAG_COMPILER], 4264[AC_REQUIRE([AC_PROG_CC])dnl 4265 4266_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl 4267_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl 4268_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl 4269_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl 4270 4271# If no C compiler was specified, use CC. 4272LTCC=${LTCC-"$CC"} 4273 4274# If no C compiler flags were specified, use CFLAGS. 4275LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4276 4277# Allow CC to be a program name with arguments. 4278compiler=$CC 4279])# _LT_TAG_COMPILER 4280 4281 4282# _LT_COMPILER_BOILERPLATE 4283# ------------------------ 4284# Check for compiler boilerplate output or warnings with 4285# the simple compiler test code. 4286m4_defun([_LT_COMPILER_BOILERPLATE], 4287[m4_require([_LT_DECL_SED])dnl 4288ac_outfile=conftest.$ac_objext 4289echo "$lt_simple_compile_test_code" >conftest.$ac_ext 4290eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 4291_lt_compiler_boilerplate=`cat conftest.err` 4292$RM conftest* 4293])# _LT_COMPILER_BOILERPLATE 4294 4295 4296# _LT_LINKER_BOILERPLATE 4297# ---------------------- 4298# Check for linker boilerplate output or warnings with 4299# the simple link test code. 4300m4_defun([_LT_LINKER_BOILERPLATE], 4301[m4_require([_LT_DECL_SED])dnl 4302ac_outfile=conftest.$ac_objext 4303echo "$lt_simple_link_test_code" >conftest.$ac_ext 4304eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 4305_lt_linker_boilerplate=`cat conftest.err` 4306$RM -r conftest* 4307])# _LT_LINKER_BOILERPLATE 4308 4309# _LT_REQUIRED_DARWIN_CHECKS 4310# ------------------------- 4311m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ 4312 case $host_os in 4313 rhapsody* | darwin*) 4314 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) 4315 AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 4316 AC_CHECK_TOOL([LIPO], [lipo], [:]) 4317 AC_CHECK_TOOL([OTOOL], [otool], [:]) 4318 AC_CHECK_TOOL([OTOOL64], [otool64], [:]) 4319 _LT_DECL([], [DSYMUTIL], [1], 4320 [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) 4321 _LT_DECL([], [NMEDIT], [1], 4322 [Tool to change global to local symbols on Mac OS X]) 4323 _LT_DECL([], [LIPO], [1], 4324 [Tool to manipulate fat objects and archives on Mac OS X]) 4325 _LT_DECL([], [OTOOL], [1], 4326 [ldd/readelf like tool for Mach-O binaries on Mac OS X]) 4327 _LT_DECL([], [OTOOL64], [1], 4328 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) 4329 4330 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 4331 [lt_cv_apple_cc_single_mod=no 4332 if test -z "$LT_MULTI_MODULE"; then 4333 # By default we will add the -single_module flag. You can override 4334 # by either setting the environment variable LT_MULTI_MODULE 4335 # non-empty at configure time, or by adding -multi_module to the 4336 # link flags. 4337 rm -rf libconftest.dylib* 4338 echo "int foo(void){return 1;}" > conftest.c 4339 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 4340-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD 4341 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 4342 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 4343 _lt_result=$? 4344 # If there is a non-empty error log, and "single_module" 4345 # appears in it, assume the flag caused a linker warning 4346 if test -s conftest.err && $GREP single_module conftest.err; then 4347 cat conftest.err >&AS_MESSAGE_LOG_FD 4348 # Otherwise, if the output was created with a 0 exit code from 4349 # the compiler, it worked. 4350 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 4351 lt_cv_apple_cc_single_mod=yes 4352 else 4353 cat conftest.err >&AS_MESSAGE_LOG_FD 4354 fi 4355 rm -rf libconftest.dylib* 4356 rm -f conftest.* 4357 fi]) 4358 4359 AC_CACHE_CHECK([for -exported_symbols_list linker flag], 4360 [lt_cv_ld_exported_symbols_list], 4361 [lt_cv_ld_exported_symbols_list=no 4362 save_LDFLAGS=$LDFLAGS 4363 echo "_main" > conftest.sym 4364 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 4365 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 4366 [lt_cv_ld_exported_symbols_list=yes], 4367 [lt_cv_ld_exported_symbols_list=no]) 4368 LDFLAGS=$save_LDFLAGS 4369 ]) 4370 4371 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], 4372 [lt_cv_ld_force_load=no 4373 cat > conftest.c << _LT_EOF 4374int forced_loaded() { return 2;} 4375_LT_EOF 4376 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD 4377 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD 4378 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD 4379 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD 4380 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD 4381 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD 4382 cat > conftest.c << _LT_EOF 4383int main() { return 0;} 4384_LT_EOF 4385 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD 4386 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 4387 _lt_result=$? 4388 if test -s conftest.err && $GREP force_load conftest.err; then 4389 cat conftest.err >&AS_MESSAGE_LOG_FD 4390 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 4391 lt_cv_ld_force_load=yes 4392 else 4393 cat conftest.err >&AS_MESSAGE_LOG_FD 4394 fi 4395 rm -f conftest.err libconftest.a conftest conftest.c 4396 rm -rf conftest.dSYM 4397 ]) 4398 case $host_os in 4399 rhapsody* | darwin1.[[012]]) 4400 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 4401 darwin1.*) 4402 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 4403 darwin*) # darwin 5.x on 4404 # if running on 10.5 or later, the deployment target defaults 4405 # to the OS version, if on x86, and 10.4, the deployment 4406 # target defaults to 10.4. Don't you love it? 4407 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 4408 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 4409 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 4410 10.[[012]][[,.]]*) 4411 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 4412 10.*) 4413 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 4414 esac 4415 ;; 4416 esac 4417 if test yes = "$lt_cv_apple_cc_single_mod"; then 4418 _lt_dar_single_mod='$single_module' 4419 fi 4420 if test yes = "$lt_cv_ld_exported_symbols_list"; then 4421 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 4422 else 4423 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 4424 fi 4425 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 4426 _lt_dsymutil='~$DSYMUTIL $lib || :' 4427 else 4428 _lt_dsymutil= 4429 fi 4430 ;; 4431 esac 4432]) 4433 4434 4435# _LT_DARWIN_LINKER_FEATURES([TAG]) 4436# --------------------------------- 4437# Checks for linker and compiler features on darwin 4438m4_defun([_LT_DARWIN_LINKER_FEATURES], 4439[ 4440 m4_require([_LT_REQUIRED_DARWIN_CHECKS]) 4441 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 4442 _LT_TAGVAR(hardcode_direct, $1)=no 4443 _LT_TAGVAR(hardcode_automatic, $1)=yes 4444 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 4445 if test yes = "$lt_cv_ld_force_load"; then 4446 _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\"`' 4447 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], 4448 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) 4449 else 4450 _LT_TAGVAR(whole_archive_flag_spec, $1)='' 4451 fi 4452 _LT_TAGVAR(link_all_deplibs, $1)=yes 4453 _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined 4454 case $cc_basename in 4455 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 4456 *) _lt_dar_can_shared=$GCC ;; 4457 esac 4458 if test yes = "$_lt_dar_can_shared"; then 4459 output_verbose_link_cmd=func_echo_all 4460 _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" 4461 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 4462 _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" 4463 _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" 4464 m4_if([$1], [CXX], 4465[ if test yes != "$lt_cv_apple_cc_single_mod"; then 4466 _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" 4467 _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" 4468 fi 4469],[]) 4470 else 4471 _LT_TAGVAR(ld_shlibs, $1)=no 4472 fi 4473]) 4474 4475# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) 4476# ---------------------------------- 4477# Links a minimal program and checks the executable 4478# for the system default hardcoded library path. In most cases, 4479# this is /usr/lib:/lib, but when the MPI compilers are used 4480# the location of the communication and MPI libs are included too. 4481# If we don't find anything, use the default library path according 4482# to the aix ld manual. 4483# Store the results from the different compilers for each TAGNAME. 4484# Allow to override them for all tags through lt_cv_aix_libpath. 4485m4_defun([_LT_SYS_MODULE_PATH_AIX], 4486[m4_require([_LT_DECL_SED])dnl 4487if test set = "${lt_cv_aix_libpath+set}"; then 4488 aix_libpath=$lt_cv_aix_libpath 4489else 4490 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], 4491 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ 4492 lt_aix_libpath_sed='[ 4493 /Import File Strings/,/^$/ { 4494 /^0/ { 4495 s/^0 *\([^ ]*\) *$/\1/ 4496 p 4497 } 4498 }]' 4499 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 4500 # Check for a 64-bit object if we didn't find anything. 4501 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 4502 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 4503 fi],[]) 4504 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 4505 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib 4506 fi 4507 ]) 4508 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) 4509fi 4510])# _LT_SYS_MODULE_PATH_AIX 4511 4512 4513# _LT_SHELL_INIT(ARG) 4514# ------------------- 4515m4_define([_LT_SHELL_INIT], 4516[m4_divert_text([M4SH-INIT], [$1 4517])])# _LT_SHELL_INIT 4518 4519 4520 4521# _LT_PROG_ECHO_BACKSLASH 4522# ----------------------- 4523# Find how we can fake an echo command that does not interpret backslash. 4524# In particular, with Autoconf 2.60 or later we add some code to the start 4525# of the generated configure script that will find a shell with a builtin 4526# printf (that we can use as an echo command). 4527m4_defun([_LT_PROG_ECHO_BACKSLASH], 4528[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4529ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4530ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4531 4532AC_MSG_CHECKING([how to print strings]) 4533# Test print first, because it will be a builtin if present. 4534if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4535 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4536 ECHO='print -r --' 4537elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4538 ECHO='printf %s\n' 4539else 4540 # Use this function as a fallback that always works. 4541 func_fallback_echo () 4542 { 4543 eval 'cat <<_LTECHO_EOF 4544$[]1 4545_LTECHO_EOF' 4546 } 4547 ECHO='func_fallback_echo' 4548fi 4549 4550# func_echo_all arg... 4551# Invoke $ECHO with all args, space-separated. 4552func_echo_all () 4553{ 4554 $ECHO "$*" 4555} 4556 4557case $ECHO in 4558 printf*) AC_MSG_RESULT([printf]) ;; 4559 print*) AC_MSG_RESULT([print -r]) ;; 4560 *) AC_MSG_RESULT([cat]) ;; 4561esac 4562 4563m4_ifdef([_AS_DETECT_SUGGESTED], 4564[_AS_DETECT_SUGGESTED([ 4565 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( 4566 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4567 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4568 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4569 PATH=/empty FPATH=/empty; export PATH FPATH 4570 test "X`printf %s $ECHO`" = "X$ECHO" \ 4571 || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) 4572 4573_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) 4574_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) 4575])# _LT_PROG_ECHO_BACKSLASH 4576 4577 4578# _LT_WITH_SYSROOT 4579# ---------------- 4580AC_DEFUN([_LT_WITH_SYSROOT], 4581[AC_MSG_CHECKING([for sysroot]) 4582AC_ARG_WITH([sysroot], 4583[AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], 4584 [Search for dependent libraries within DIR (or the compiler's sysroot 4585 if not specified).])], 4586[], [with_sysroot=no]) 4587 4588dnl lt_sysroot will always be passed unquoted. We quote it here 4589dnl in case the user passed a directory name. 4590lt_sysroot= 4591case $with_sysroot in #( 4592 yes) 4593 if test yes = "$GCC"; then 4594 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 4595 fi 4596 ;; #( 4597 /*) 4598 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 4599 ;; #( 4600 no|'') 4601 ;; #( 4602 *) 4603 AC_MSG_RESULT([$with_sysroot]) 4604 AC_MSG_ERROR([The sysroot must be an absolute path.]) 4605 ;; 4606esac 4607 4608 AC_MSG_RESULT([${lt_sysroot:-no}]) 4609_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl 4610[dependent libraries, and where our libraries should be installed.])]) 4611 4612# _LT_ENABLE_LOCK 4613# --------------- 4614m4_defun([_LT_ENABLE_LOCK], 4615[AC_ARG_ENABLE([libtool-lock], 4616 [AS_HELP_STRING([--disable-libtool-lock], 4617 [avoid locking (might break parallel builds)])]) 4618test no = "$enable_libtool_lock" || enable_libtool_lock=yes 4619 4620# Some flags need to be propagated to the compiler or linker for good 4621# libtool support. 4622case $host in 4623ia64-*-hpux*) 4624 # Find out what ABI is being produced by ac_compile, and set mode 4625 # options accordingly. 4626 echo 'int i;' > conftest.$ac_ext 4627 if AC_TRY_EVAL(ac_compile); then 4628 case `/usr/bin/file conftest.$ac_objext` in 4629 *ELF-32*) 4630 HPUX_IA64_MODE=32 4631 ;; 4632 *ELF-64*) 4633 HPUX_IA64_MODE=64 4634 ;; 4635 esac 4636 fi 4637 rm -rf conftest* 4638 ;; 4639*-*-irix6*) 4640 # Find out what ABI is being produced by ac_compile, and set linker 4641 # options accordingly. 4642 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 4643 if AC_TRY_EVAL(ac_compile); then 4644 if test yes = "$lt_cv_prog_gnu_ld"; then 4645 case `/usr/bin/file conftest.$ac_objext` in 4646 *32-bit*) 4647 LD="${LD-ld} -melf32bsmip" 4648 ;; 4649 *N32*) 4650 LD="${LD-ld} -melf32bmipn32" 4651 ;; 4652 *64-bit*) 4653 LD="${LD-ld} -melf64bmip" 4654 ;; 4655 esac 4656 else 4657 case `/usr/bin/file conftest.$ac_objext` in 4658 *32-bit*) 4659 LD="${LD-ld} -32" 4660 ;; 4661 *N32*) 4662 LD="${LD-ld} -n32" 4663 ;; 4664 *64-bit*) 4665 LD="${LD-ld} -64" 4666 ;; 4667 esac 4668 fi 4669 fi 4670 rm -rf conftest* 4671 ;; 4672 4673mips64*-*linux*) 4674 # Find out what ABI is being produced by ac_compile, and set linker 4675 # options accordingly. 4676 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 4677 if AC_TRY_EVAL(ac_compile); then 4678 emul=elf 4679 case `/usr/bin/file conftest.$ac_objext` in 4680 *32-bit*) 4681 emul="${emul}32" 4682 ;; 4683 *64-bit*) 4684 emul="${emul}64" 4685 ;; 4686 esac 4687 case `/usr/bin/file conftest.$ac_objext` in 4688 *MSB*) 4689 emul="${emul}btsmip" 4690 ;; 4691 *LSB*) 4692 emul="${emul}ltsmip" 4693 ;; 4694 esac 4695 case `/usr/bin/file conftest.$ac_objext` in 4696 *N32*) 4697 emul="${emul}n32" 4698 ;; 4699 esac 4700 LD="${LD-ld} -m $emul" 4701 fi 4702 rm -rf conftest* 4703 ;; 4704 4705x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 4706s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 4707 # Find out what ABI is being produced by ac_compile, and set linker 4708 # options accordingly. Note that the listed cases only cover the 4709 # situations where additional linker options are needed (such as when 4710 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 4711 # vice versa); the common cases where no linker options are needed do 4712 # not appear in the list. 4713 echo 'int i;' > conftest.$ac_ext 4714 if AC_TRY_EVAL(ac_compile); then 4715 case `/usr/bin/file conftest.o` in 4716 *32-bit*) 4717 case $host in 4718 x86_64-*kfreebsd*-gnu) 4719 LD="${LD-ld} -m elf_i386_fbsd" 4720 ;; 4721 x86_64-*linux*) 4722 case `/usr/bin/file conftest.o` in 4723 *x86-64*) 4724 LD="${LD-ld} -m elf32_x86_64" 4725 ;; 4726 *) 4727 LD="${LD-ld} -m elf_i386" 4728 ;; 4729 esac 4730 ;; 4731 powerpc64le-*linux*) 4732 LD="${LD-ld} -m elf32lppclinux" 4733 ;; 4734 powerpc64-*linux*) 4735 LD="${LD-ld} -m elf32ppclinux" 4736 ;; 4737 s390x-*linux*) 4738 LD="${LD-ld} -m elf_s390" 4739 ;; 4740 sparc64-*linux*) 4741 LD="${LD-ld} -m elf32_sparc" 4742 ;; 4743 esac 4744 ;; 4745 *64-bit*) 4746 case $host in 4747 x86_64-*kfreebsd*-gnu) 4748 LD="${LD-ld} -m elf_x86_64_fbsd" 4749 ;; 4750 x86_64-*linux*) 4751 LD="${LD-ld} -m elf_x86_64" 4752 ;; 4753 powerpcle-*linux*) 4754 LD="${LD-ld} -m elf64lppc" 4755 ;; 4756 powerpc-*linux*) 4757 LD="${LD-ld} -m elf64ppc" 4758 ;; 4759 s390*-*linux*|s390*-*tpf*) 4760 LD="${LD-ld} -m elf64_s390" 4761 ;; 4762 sparc*-*linux*) 4763 LD="${LD-ld} -m elf64_sparc" 4764 ;; 4765 esac 4766 ;; 4767 esac 4768 fi 4769 rm -rf conftest* 4770 ;; 4771 4772*-*-sco3.2v5*) 4773 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4774 SAVE_CFLAGS=$CFLAGS 4775 CFLAGS="$CFLAGS -belf" 4776 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 4777 [AC_LANG_PUSH(C) 4778 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 4779 AC_LANG_POP]) 4780 if test yes != "$lt_cv_cc_needs_belf"; then 4781 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4782 CFLAGS=$SAVE_CFLAGS 4783 fi 4784 ;; 4785*-*solaris*) 4786 # Find out what ABI is being produced by ac_compile, and set linker 4787 # options accordingly. 4788 echo 'int i;' > conftest.$ac_ext 4789 if AC_TRY_EVAL(ac_compile); then 4790 case `/usr/bin/file conftest.o` in 4791 *64-bit*) 4792 case $lt_cv_prog_gnu_ld in 4793 yes*) 4794 case $host in 4795 i?86-*-solaris*|x86_64-*-solaris*) 4796 LD="${LD-ld} -m elf_x86_64" 4797 ;; 4798 sparc*-*-solaris*) 4799 LD="${LD-ld} -m elf64_sparc" 4800 ;; 4801 esac 4802 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 4803 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 4804 LD=${LD-ld}_sol2 4805 fi 4806 ;; 4807 *) 4808 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 4809 LD="${LD-ld} -64" 4810 fi 4811 ;; 4812 esac 4813 ;; 4814 esac 4815 fi 4816 rm -rf conftest* 4817 ;; 4818esac 4819 4820need_locks=$enable_libtool_lock 4821])# _LT_ENABLE_LOCK 4822 4823 4824# _LT_PROG_AR 4825# ----------- 4826m4_defun([_LT_PROG_AR], 4827[AC_CHECK_TOOLS(AR, [ar], false) 4828: ${AR=ar} 4829: ${AR_FLAGS=cru} 4830_LT_DECL([], [AR], [1], [The archiver]) 4831_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) 4832 4833AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], 4834 [lt_cv_ar_at_file=no 4835 AC_COMPILE_IFELSE([AC_LANG_PROGRAM], 4836 [echo conftest.$ac_objext > conftest.lst 4837 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' 4838 AC_TRY_EVAL([lt_ar_try]) 4839 if test 0 -eq "$ac_status"; then 4840 # Ensure the archiver fails upon bogus file names. 4841 rm -f conftest.$ac_objext libconftest.a 4842 AC_TRY_EVAL([lt_ar_try]) 4843 if test 0 -ne "$ac_status"; then 4844 lt_cv_ar_at_file=@ 4845 fi 4846 fi 4847 rm -f conftest.* libconftest.a 4848 ]) 4849 ]) 4850 4851if test no = "$lt_cv_ar_at_file"; then 4852 archiver_list_spec= 4853else 4854 archiver_list_spec=$lt_cv_ar_at_file 4855fi 4856_LT_DECL([], [archiver_list_spec], [1], 4857 [How to feed a file listing to the archiver]) 4858])# _LT_PROG_AR 4859 4860 4861# _LT_CMD_OLD_ARCHIVE 4862# ------------------- 4863m4_defun([_LT_CMD_OLD_ARCHIVE], 4864[_LT_PROG_AR 4865 4866AC_CHECK_TOOL(STRIP, strip, :) 4867test -z "$STRIP" && STRIP=: 4868_LT_DECL([], [STRIP], [1], [A symbol stripping program]) 4869 4870AC_CHECK_TOOL(RANLIB, ranlib, :) 4871test -z "$RANLIB" && RANLIB=: 4872_LT_DECL([], [RANLIB], [1], 4873 [Commands used to install an old-style archive]) 4874 4875# Determine commands to create old-style static archives. 4876old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 4877old_postinstall_cmds='chmod 644 $oldlib' 4878old_postuninstall_cmds= 4879 4880if test -n "$RANLIB"; then 4881 case $host_os in 4882 bitrig* | openbsd*) 4883 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 4884 ;; 4885 *) 4886 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 4887 ;; 4888 esac 4889 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 4890fi 4891 4892case $host_os in 4893 darwin*) 4894 lock_old_archive_extraction=yes ;; 4895 *) 4896 lock_old_archive_extraction=no ;; 4897esac 4898_LT_DECL([], [old_postinstall_cmds], [2]) 4899_LT_DECL([], [old_postuninstall_cmds], [2]) 4900_LT_TAGDECL([], [old_archive_cmds], [2], 4901 [Commands used to build an old-style archive]) 4902_LT_DECL([], [lock_old_archive_extraction], [0], 4903 [Whether to use a lock for old archive extraction]) 4904])# _LT_CMD_OLD_ARCHIVE 4905 4906 4907# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 4908# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 4909# ---------------------------------------------------------------- 4910# Check whether the given compiler option works 4911AC_DEFUN([_LT_COMPILER_OPTION], 4912[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 4913m4_require([_LT_DECL_SED])dnl 4914AC_CACHE_CHECK([$1], [$2], 4915 [$2=no 4916 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 4917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 4918 lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment 4919 # Insert the option either (1) after the last *FLAGS variable, or 4920 # (2) before a word containing "conftest.", or (3) at the end. 4921 # Note that $ac_compile itself does not contain backslashes and begins 4922 # with a dollar sign (not a hyphen), so the echo should work correctly. 4923 # The option is referenced via a variable to avoid confusing sed. 4924 lt_compile=`echo "$ac_compile" | $SED \ 4925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 4926 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 4927 -e 's:$: $lt_compiler_flag:'` 4928 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 4929 (eval "$lt_compile" 2>conftest.err) 4930 ac_status=$? 4931 cat conftest.err >&AS_MESSAGE_LOG_FD 4932 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 4933 if (exit $ac_status) && test -s "$ac_outfile"; then 4934 # The compiler can only warn and ignore the option if not recognized 4935 # So say no if there are warnings other than the usual output. 4936 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 4937 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 4938 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 4939 $2=yes 4940 fi 4941 fi 4942 $RM conftest* 4943]) 4944 4945if test yes = "[$]$2"; then 4946 m4_if([$5], , :, [$5]) 4947else 4948 m4_if([$6], , :, [$6]) 4949fi 4950])# _LT_COMPILER_OPTION 4951 4952# Old name: 4953AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) 4954dnl aclocal-1.4 backwards compatibility: 4955dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) 4956 4957 4958# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 4959# [ACTION-SUCCESS], [ACTION-FAILURE]) 4960# ---------------------------------------------------- 4961# Check whether the given linker option works 4962AC_DEFUN([_LT_LINKER_OPTION], 4963[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 4964m4_require([_LT_DECL_SED])dnl 4965AC_CACHE_CHECK([$1], [$2], 4966 [$2=no 4967 save_LDFLAGS=$LDFLAGS 4968 LDFLAGS="$LDFLAGS $3" 4969 echo "$lt_simple_link_test_code" > conftest.$ac_ext 4970 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 4971 # The linker can only warn and ignore the option if not recognized 4972 # So say no if there are warnings 4973 if test -s conftest.err; then 4974 # Append any errors to the config.log. 4975 cat conftest.err 1>&AS_MESSAGE_LOG_FD 4976 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 4977 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 4978 if diff conftest.exp conftest.er2 >/dev/null; then 4979 $2=yes 4980 fi 4981 else 4982 $2=yes 4983 fi 4984 fi 4985 $RM -r conftest* 4986 LDFLAGS=$save_LDFLAGS 4987]) 4988 4989if test yes = "[$]$2"; then 4990 m4_if([$4], , :, [$4]) 4991else 4992 m4_if([$5], , :, [$5]) 4993fi 4994])# _LT_LINKER_OPTION 4995 4996# Old name: 4997AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) 4998dnl aclocal-1.4 backwards compatibility: 4999dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) 5000 5001 5002# LT_CMD_MAX_LEN 5003#--------------- 5004AC_DEFUN([LT_CMD_MAX_LEN], 5005[AC_REQUIRE([AC_CANONICAL_HOST])dnl 5006# find the maximum length of command line arguments 5007AC_MSG_CHECKING([the maximum length of command line arguments]) 5008AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 5009 i=0 5010 teststring=ABCD 5011 5012 case $build_os in 5013 msdosdjgpp*) 5014 # On DJGPP, this test can blow up pretty badly due to problems in libc 5015 # (any single argument exceeding 2000 bytes causes a buffer overrun 5016 # during glob expansion). Even if it were fixed, the result of this 5017 # check would be larger than it should be. 5018 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5019 ;; 5020 5021 gnu*) 5022 # Under GNU Hurd, this test is not required because there is 5023 # no limit to the length of command line arguments. 5024 # Libtool will interpret -1 as no limit whatsoever 5025 lt_cv_sys_max_cmd_len=-1; 5026 ;; 5027 5028 cygwin* | mingw* | cegcc*) 5029 # On Win9x/ME, this test blows up -- it succeeds, but takes 5030 # about 5 minutes as the teststring grows exponentially. 5031 # Worse, since 9x/ME are not pre-emptively multitasking, 5032 # you end up with a "frozen" computer, even though with patience 5033 # the test eventually succeeds (with a max line length of 256k). 5034 # Instead, let's just punt: use the minimum linelength reported by 5035 # all of the supported platforms: 8192 (on NT/2K/XP). 5036 lt_cv_sys_max_cmd_len=8192; 5037 ;; 5038 5039 mint*) 5040 # On MiNT this can take a long time and run out of memory. 5041 lt_cv_sys_max_cmd_len=8192; 5042 ;; 5043 5044 amigaos*) 5045 # On AmigaOS with pdksh, this test takes hours, literally. 5046 # So we just punt and use a minimum line length of 8192. 5047 lt_cv_sys_max_cmd_len=8192; 5048 ;; 5049 5050 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5051 # This has been around since 386BSD, at least. Likely further. 5052 if test -x /sbin/sysctl; then 5053 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5054 elif test -x /usr/sbin/sysctl; then 5055 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5056 else 5057 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5058 fi 5059 # And add a safety zone 5060 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5061 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5062 ;; 5063 5064 interix*) 5065 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5066 lt_cv_sys_max_cmd_len=196608 5067 ;; 5068 5069 os2*) 5070 # The test takes a long time on OS/2. 5071 lt_cv_sys_max_cmd_len=8192 5072 ;; 5073 5074 osf*) 5075 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5076 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5077 # nice to cause kernel panics so lets avoid the loop below. 5078 # First set a reasonable default. 5079 lt_cv_sys_max_cmd_len=16384 5080 # 5081 if test -x /sbin/sysconfig; then 5082 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5083 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5084 esac 5085 fi 5086 ;; 5087 sco3.2v5*) 5088 lt_cv_sys_max_cmd_len=102400 5089 ;; 5090 sysv5* | sco5v6* | sysv4.2uw2*) 5091 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5092 if test -n "$kargmax"; then 5093 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 5094 else 5095 lt_cv_sys_max_cmd_len=32768 5096 fi 5097 ;; 5098 *) 5099 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5100 if test -n "$lt_cv_sys_max_cmd_len" && \ 5101 test undefined != "$lt_cv_sys_max_cmd_len"; then 5102 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5103 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5104 else 5105 # Make teststring a little bigger before we do anything with it. 5106 # a 1K string should be a reasonable start. 5107 for i in 1 2 3 4 5 6 7 8; do 5108 teststring=$teststring$teststring 5109 done 5110 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5111 # If test is not a shell built-in, we'll probably end up computing a 5112 # maximum length that is only half of the actual maximum length, but 5113 # we can't tell. 5114 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5115 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5116 test 17 != "$i" # 1/2 MB should be enough 5117 do 5118 i=`expr $i + 1` 5119 teststring=$teststring$teststring 5120 done 5121 # Only check the string length outside the loop. 5122 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5123 teststring= 5124 # Add a significant safety factor because C++ compilers can tack on 5125 # massive amounts of additional arguments before passing them to the 5126 # linker. It appears as though 1/2 is a usable value. 5127 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5128 fi 5129 ;; 5130 esac 5131]) 5132if test -n "$lt_cv_sys_max_cmd_len"; then 5133 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 5134else 5135 AC_MSG_RESULT(none) 5136fi 5137max_cmd_len=$lt_cv_sys_max_cmd_len 5138_LT_DECL([], [max_cmd_len], [0], 5139 [What is the maximum length of a command?]) 5140])# LT_CMD_MAX_LEN 5141 5142# Old name: 5143AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) 5144dnl aclocal-1.4 backwards compatibility: 5145dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) 5146 5147 5148# _LT_HEADER_DLFCN 5149# ---------------- 5150m4_defun([_LT_HEADER_DLFCN], 5151[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl 5152])# _LT_HEADER_DLFCN 5153 5154 5155# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 5156# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 5157# ---------------------------------------------------------------- 5158m4_defun([_LT_TRY_DLOPEN_SELF], 5159[m4_require([_LT_HEADER_DLFCN])dnl 5160if test yes = "$cross_compiling"; then : 5161 [$4] 5162else 5163 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 5164 lt_status=$lt_dlunknown 5165 cat > conftest.$ac_ext <<_LT_EOF 5166[#line $LINENO "configure" 5167#include "confdefs.h" 5168 5169#if HAVE_DLFCN_H 5170#include <dlfcn.h> 5171#endif 5172 5173#include <stdio.h> 5174 5175#ifdef RTLD_GLOBAL 5176# define LT_DLGLOBAL RTLD_GLOBAL 5177#else 5178# ifdef DL_GLOBAL 5179# define LT_DLGLOBAL DL_GLOBAL 5180# else 5181# define LT_DLGLOBAL 0 5182# endif 5183#endif 5184 5185/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 5186 find out it does not work in some platform. */ 5187#ifndef LT_DLLAZY_OR_NOW 5188# ifdef RTLD_LAZY 5189# define LT_DLLAZY_OR_NOW RTLD_LAZY 5190# else 5191# ifdef DL_LAZY 5192# define LT_DLLAZY_OR_NOW DL_LAZY 5193# else 5194# ifdef RTLD_NOW 5195# define LT_DLLAZY_OR_NOW RTLD_NOW 5196# else 5197# ifdef DL_NOW 5198# define LT_DLLAZY_OR_NOW DL_NOW 5199# else 5200# define LT_DLLAZY_OR_NOW 0 5201# endif 5202# endif 5203# endif 5204# endif 5205#endif 5206 5207/* When -fvisibility=hidden is used, assume the code has been annotated 5208 correspondingly for the symbols needed. */ 5209#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 5210int fnord () __attribute__((visibility("default"))); 5211#endif 5212 5213int fnord () { return 42; } 5214int main () 5215{ 5216 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 5217 int status = $lt_dlunknown; 5218 5219 if (self) 5220 { 5221 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 5222 else 5223 { 5224 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 5225 else puts (dlerror ()); 5226 } 5227 /* dlclose (self); */ 5228 } 5229 else 5230 puts (dlerror ()); 5231 5232 return status; 5233}] 5234_LT_EOF 5235 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then 5236 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 5237 lt_status=$? 5238 case x$lt_status in 5239 x$lt_dlno_uscore) $1 ;; 5240 x$lt_dlneed_uscore) $2 ;; 5241 x$lt_dlunknown|x*) $3 ;; 5242 esac 5243 else : 5244 # compilation failed 5245 $3 5246 fi 5247fi 5248rm -fr conftest* 5249])# _LT_TRY_DLOPEN_SELF 5250 5251 5252# LT_SYS_DLOPEN_SELF 5253# ------------------ 5254AC_DEFUN([LT_SYS_DLOPEN_SELF], 5255[m4_require([_LT_HEADER_DLFCN])dnl 5256if test yes != "$enable_dlopen"; then 5257 enable_dlopen=unknown 5258 enable_dlopen_self=unknown 5259 enable_dlopen_self_static=unknown 5260else 5261 lt_cv_dlopen=no 5262 lt_cv_dlopen_libs= 5263 5264 case $host_os in 5265 beos*) 5266 lt_cv_dlopen=load_add_on 5267 lt_cv_dlopen_libs= 5268 lt_cv_dlopen_self=yes 5269 ;; 5270 5271 mingw* | pw32* | cegcc*) 5272 lt_cv_dlopen=LoadLibrary 5273 lt_cv_dlopen_libs= 5274 ;; 5275 5276 cygwin*) 5277 lt_cv_dlopen=dlopen 5278 lt_cv_dlopen_libs= 5279 ;; 5280 5281 darwin*) 5282 # if libdl is installed we need to link against it 5283 AC_CHECK_LIB([dl], [dlopen], 5284 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[ 5285 lt_cv_dlopen=dyld 5286 lt_cv_dlopen_libs= 5287 lt_cv_dlopen_self=yes 5288 ]) 5289 ;; 5290 5291 tpf*) 5292 # Don't try to run any link tests for TPF. We know it's impossible 5293 # because TPF is a cross-compiler, and we know how we open DSOs. 5294 lt_cv_dlopen=dlopen 5295 lt_cv_dlopen_libs= 5296 lt_cv_dlopen_self=no 5297 ;; 5298 5299 *) 5300 AC_CHECK_FUNC([shl_load], 5301 [lt_cv_dlopen=shl_load], 5302 [AC_CHECK_LIB([dld], [shl_load], 5303 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld], 5304 [AC_CHECK_FUNC([dlopen], 5305 [lt_cv_dlopen=dlopen], 5306 [AC_CHECK_LIB([dl], [dlopen], 5307 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl], 5308 [AC_CHECK_LIB([svld], [dlopen], 5309 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld], 5310 [AC_CHECK_LIB([dld], [dld_link], 5311 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld]) 5312 ]) 5313 ]) 5314 ]) 5315 ]) 5316 ]) 5317 ;; 5318 esac 5319 5320 if test no = "$lt_cv_dlopen"; then 5321 enable_dlopen=no 5322 else 5323 enable_dlopen=yes 5324 fi 5325 5326 case $lt_cv_dlopen in 5327 dlopen) 5328 save_CPPFLAGS=$CPPFLAGS 5329 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 5330 5331 save_LDFLAGS=$LDFLAGS 5332 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 5333 5334 save_LIBS=$LIBS 5335 LIBS="$lt_cv_dlopen_libs $LIBS" 5336 5337 AC_CACHE_CHECK([whether a program can dlopen itself], 5338 lt_cv_dlopen_self, [dnl 5339 _LT_TRY_DLOPEN_SELF( 5340 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 5341 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 5342 ]) 5343 5344 if test yes = "$lt_cv_dlopen_self"; then 5345 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 5346 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 5347 lt_cv_dlopen_self_static, [dnl 5348 _LT_TRY_DLOPEN_SELF( 5349 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 5350 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 5351 ]) 5352 fi 5353 5354 CPPFLAGS=$save_CPPFLAGS 5355 LDFLAGS=$save_LDFLAGS 5356 LIBS=$save_LIBS 5357 ;; 5358 esac 5359 5360 case $lt_cv_dlopen_self in 5361 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 5362 *) enable_dlopen_self=unknown ;; 5363 esac 5364 5365 case $lt_cv_dlopen_self_static in 5366 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 5367 *) enable_dlopen_self_static=unknown ;; 5368 esac 5369fi 5370_LT_DECL([dlopen_support], [enable_dlopen], [0], 5371 [Whether dlopen is supported]) 5372_LT_DECL([dlopen_self], [enable_dlopen_self], [0], 5373 [Whether dlopen of programs is supported]) 5374_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], 5375 [Whether dlopen of statically linked programs is supported]) 5376])# LT_SYS_DLOPEN_SELF 5377 5378# Old name: 5379AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) 5380dnl aclocal-1.4 backwards compatibility: 5381dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) 5382 5383 5384# _LT_COMPILER_C_O([TAGNAME]) 5385# --------------------------- 5386# Check to see if options -c and -o are simultaneously supported by compiler. 5387# This macro does not hard code the compiler like AC_PROG_CC_C_O. 5388m4_defun([_LT_COMPILER_C_O], 5389[m4_require([_LT_DECL_SED])dnl 5390m4_require([_LT_FILEUTILS_DEFAULTS])dnl 5391m4_require([_LT_TAG_COMPILER])dnl 5392AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 5393 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 5394 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 5395 $RM -r conftest 2>/dev/null 5396 mkdir conftest 5397 cd conftest 5398 mkdir out 5399 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 5400 5401 lt_compiler_flag="-o out/conftest2.$ac_objext" 5402 # Insert the option either (1) after the last *FLAGS variable, or 5403 # (2) before a word containing "conftest.", or (3) at the end. 5404 # Note that $ac_compile itself does not contain backslashes and begins 5405 # with a dollar sign (not a hyphen), so the echo should work correctly. 5406 lt_compile=`echo "$ac_compile" | $SED \ 5407 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 5408 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 5409 -e 's:$: $lt_compiler_flag:'` 5410 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 5411 (eval "$lt_compile" 2>out/conftest.err) 5412 ac_status=$? 5413 cat out/conftest.err >&AS_MESSAGE_LOG_FD 5414 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 5415 if (exit $ac_status) && test -s out/conftest2.$ac_objext 5416 then 5417 # The compiler can only warn and ignore the option if not recognized 5418 # So say no if there are warnings 5419 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 5420 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 5421 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 5422 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 5423 fi 5424 fi 5425 chmod u+w . 2>&AS_MESSAGE_LOG_FD 5426 $RM conftest* 5427 # SGI C++ compiler will create directory out/ii_files/ for 5428 # template instantiation 5429 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 5430 $RM out/* && rmdir out 5431 cd .. 5432 $RM -r conftest 5433 $RM conftest* 5434]) 5435_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], 5436 [Does compiler simultaneously support -c and -o options?]) 5437])# _LT_COMPILER_C_O 5438 5439 5440# _LT_COMPILER_FILE_LOCKS([TAGNAME]) 5441# ---------------------------------- 5442# Check to see if we can do hard links to lock some files if needed 5443m4_defun([_LT_COMPILER_FILE_LOCKS], 5444[m4_require([_LT_ENABLE_LOCK])dnl 5445m4_require([_LT_FILEUTILS_DEFAULTS])dnl 5446_LT_COMPILER_C_O([$1]) 5447 5448hard_links=nottested 5449if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then 5450 # do not overwrite the value of need_locks provided by the user 5451 AC_MSG_CHECKING([if we can lock with hard links]) 5452 hard_links=yes 5453 $RM conftest* 5454 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5455 touch conftest.a 5456 ln conftest.a conftest.b 2>&5 || hard_links=no 5457 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5458 AC_MSG_RESULT([$hard_links]) 5459 if test no = "$hard_links"; then 5460 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe]) 5461 need_locks=warn 5462 fi 5463else 5464 need_locks=no 5465fi 5466_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) 5467])# _LT_COMPILER_FILE_LOCKS 5468 5469 5470# _LT_CHECK_OBJDIR 5471# ---------------- 5472m4_defun([_LT_CHECK_OBJDIR], 5473[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 5474[rm -f .libs 2>/dev/null 5475mkdir .libs 2>/dev/null 5476if test -d .libs; then 5477 lt_cv_objdir=.libs 5478else 5479 # MS-DOS does not allow filenames that begin with a dot. 5480 lt_cv_objdir=_libs 5481fi 5482rmdir .libs 2>/dev/null]) 5483objdir=$lt_cv_objdir 5484_LT_DECL([], [objdir], [0], 5485 [The name of the directory that contains temporary libtool files])dnl 5486m4_pattern_allow([LT_OBJDIR])dnl 5487AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/", 5488 [Define to the sub-directory where libtool stores uninstalled libraries.]) 5489])# _LT_CHECK_OBJDIR 5490 5491 5492# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 5493# -------------------------------------- 5494# Check hardcoding attributes. 5495m4_defun([_LT_LINKER_HARDCODE_LIBPATH], 5496[AC_MSG_CHECKING([how to hardcode library paths into programs]) 5497_LT_TAGVAR(hardcode_action, $1)= 5498if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 5499 test -n "$_LT_TAGVAR(runpath_var, $1)" || 5500 test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then 5501 5502 # We can hardcode non-existent directories. 5503 if test no != "$_LT_TAGVAR(hardcode_direct, $1)" && 5504 # If the only mechanism to avoid hardcoding is shlibpath_var, we 5505 # have to relink, otherwise we might link with an installed library 5506 # when we should be linking with a yet-to-be-installed one 5507 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" && 5508 test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then 5509 # Linking always hardcodes the temporary library directory. 5510 _LT_TAGVAR(hardcode_action, $1)=relink 5511 else 5512 # We can link without hardcoding, and we can hardcode nonexisting dirs. 5513 _LT_TAGVAR(hardcode_action, $1)=immediate 5514 fi 5515else 5516 # We cannot hardcode anything, or else we can only hardcode existing 5517 # directories. 5518 _LT_TAGVAR(hardcode_action, $1)=unsupported 5519fi 5520AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 5521 5522if test relink = "$_LT_TAGVAR(hardcode_action, $1)" || 5523 test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then 5524 # Fast installation is not supported 5525 enable_fast_install=no 5526elif test yes = "$shlibpath_overrides_runpath" || 5527 test no = "$enable_shared"; then 5528 # Fast installation is not necessary 5529 enable_fast_install=needless 5530fi 5531_LT_TAGDECL([], [hardcode_action], [0], 5532 [How to hardcode a shared library path into an executable]) 5533])# _LT_LINKER_HARDCODE_LIBPATH 5534 5535 5536# _LT_CMD_STRIPLIB 5537# ---------------- 5538m4_defun([_LT_CMD_STRIPLIB], 5539[m4_require([_LT_DECL_EGREP]) 5540striplib= 5541old_striplib= 5542AC_MSG_CHECKING([whether stripping libraries is possible]) 5543if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 5544 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 5545 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 5546 AC_MSG_RESULT([yes]) 5547else 5548# FIXME - insert some real tests, host_os isn't really good enough 5549 case $host_os in 5550 darwin*) 5551 if test -n "$STRIP"; then 5552 striplib="$STRIP -x" 5553 old_striplib="$STRIP -S" 5554 AC_MSG_RESULT([yes]) 5555 else 5556 AC_MSG_RESULT([no]) 5557 fi 5558 ;; 5559 *) 5560 AC_MSG_RESULT([no]) 5561 ;; 5562 esac 5563fi 5564_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) 5565_LT_DECL([], [striplib], [1]) 5566])# _LT_CMD_STRIPLIB 5567 5568 5569# _LT_PREPARE_MUNGE_PATH_LIST 5570# --------------------------- 5571# Make sure func_munge_path_list() is defined correctly. 5572m4_defun([_LT_PREPARE_MUNGE_PATH_LIST], 5573[[# func_munge_path_list VARIABLE PATH 5574# ----------------------------------- 5575# VARIABLE is name of variable containing _space_ separated list of 5576# directories to be munged by the contents of PATH, which is string 5577# having a format: 5578# "DIR[:DIR]:" 5579# string "DIR[ DIR]" will be prepended to VARIABLE 5580# ":DIR[:DIR]" 5581# string "DIR[ DIR]" will be appended to VARIABLE 5582# "DIRP[:DIRP]::[DIRA:]DIRA" 5583# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 5584# "DIRA[ DIRA]" will be appended to VARIABLE 5585# "DIR[:DIR]" 5586# VARIABLE will be replaced by "DIR[ DIR]" 5587func_munge_path_list () 5588{ 5589 case x@S|@2 in 5590 x) 5591 ;; 5592 *:) 5593 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" 5594 ;; 5595 x:*) 5596 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" 5597 ;; 5598 *::*) 5599 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 5600 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" 5601 ;; 5602 *) 5603 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" 5604 ;; 5605 esac 5606} 5607]])# _LT_PREPARE_PATH_LIST 5608 5609 5610# _LT_SYS_DYNAMIC_LINKER([TAG]) 5611# ----------------------------- 5612# PORTME Fill in your ld.so characteristics 5613m4_defun([_LT_SYS_DYNAMIC_LINKER], 5614[AC_REQUIRE([AC_CANONICAL_HOST])dnl 5615m4_require([_LT_DECL_EGREP])dnl 5616m4_require([_LT_FILEUTILS_DEFAULTS])dnl 5617m4_require([_LT_DECL_OBJDUMP])dnl 5618m4_require([_LT_DECL_SED])dnl 5619m4_require([_LT_CHECK_SHELL_FEATURES])dnl 5620m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl 5621AC_MSG_CHECKING([dynamic linker characteristics]) 5622m4_if([$1], 5623 [], [ 5624if test yes = "$GCC"; then 5625 case $host_os in 5626 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 5627 *) lt_awk_arg='/^libraries:/' ;; 5628 esac 5629 case $host_os in 5630 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;; 5631 *) lt_sed_strip_eq='s|=/|/|g' ;; 5632 esac 5633 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 5634 case $lt_search_path_spec in 5635 *\;*) 5636 # if the path contains ";" then we assume it to be the separator 5637 # otherwise default to the standard path separator (i.e. ":") - it is 5638 # assumed that no part of a normal pathname contains ";" but that should 5639 # okay in the real world where ";" in dirpaths is itself problematic. 5640 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 5641 ;; 5642 *) 5643 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 5644 ;; 5645 esac 5646 # Ok, now we have the path, separated by spaces, we can step through it 5647 # and add multilib dir if necessary... 5648 lt_tmp_lt_search_path_spec= 5649 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 5650 # ...but if some path component already ends with the multilib dir we assume 5651 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 5652 case "$lt_multi_os_dir; $lt_search_path_spec " in 5653 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 5654 lt_multi_os_dir= 5655 ;; 5656 esac 5657 for lt_sys_path in $lt_search_path_spec; do 5658 if test -d "$lt_sys_path$lt_multi_os_dir"; then 5659 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 5660 elif test -n "$lt_multi_os_dir"; then 5661 test -d "$lt_sys_path" && \ 5662 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 5663 fi 5664 done 5665 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 5666BEGIN {RS = " "; FS = "/|\n";} { 5667 lt_foo = ""; 5668 lt_count = 0; 5669 for (lt_i = NF; lt_i > 0; lt_i--) { 5670 if ($lt_i != "" && $lt_i != ".") { 5671 if ($lt_i == "..") { 5672 lt_count++; 5673 } else { 5674 if (lt_count == 0) { 5675 lt_foo = "/" $lt_i lt_foo; 5676 } else { 5677 lt_count--; 5678 } 5679 } 5680 } 5681 } 5682 if (lt_foo != "") { lt_freq[[lt_foo]]++; } 5683 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 5684}'` 5685 # AWK program above erroneously prepends '/' to C:/dos/paths 5686 # for these hosts. 5687 case $host_os in 5688 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 5689 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;; 5690 esac 5691 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 5692else 5693 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 5694fi]) 5695library_names_spec= 5696libname_spec='lib$name' 5697soname_spec= 5698shrext_cmds=.so 5699postinstall_cmds= 5700postuninstall_cmds= 5701finish_cmds= 5702finish_eval= 5703shlibpath_var= 5704shlibpath_overrides_runpath=unknown 5705version_type=none 5706dynamic_linker="$host_os ld.so" 5707sys_lib_dlsearch_path_spec="/lib /usr/lib" 5708need_lib_prefix=unknown 5709hardcode_into_libs=no 5710 5711# when you set need_version to no, make sure it does not cause -set_version 5712# flags to be left without arguments 5713need_version=unknown 5714 5715AC_ARG_VAR([LT_SYS_LIBRARY_PATH], 5716[User-defined run-time library search path.]) 5717 5718case $host_os in 5719aix3*) 5720 version_type=linux # correct to gnu/linux during the next big refactor 5721 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 5722 shlibpath_var=LIBPATH 5723 5724 # AIX 3 has no versioning support, so we append a major version to the name. 5725 soname_spec='$libname$release$shared_ext$major' 5726 ;; 5727 5728aix[[4-9]]*) 5729 version_type=linux # correct to gnu/linux during the next big refactor 5730 need_lib_prefix=no 5731 need_version=no 5732 hardcode_into_libs=yes 5733 if test ia64 = "$host_cpu"; then 5734 # AIX 5 supports IA64 5735 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 5736 shlibpath_var=LD_LIBRARY_PATH 5737 else 5738 # With GCC up to 2.95.x, collect2 would create an import file 5739 # for dependence libraries. The import file would start with 5740 # the line '#! .'. This would cause the generated library to 5741 # depend on '.', always an invalid library. This was fixed in 5742 # development snapshots of GCC prior to 3.0. 5743 case $host_os in 5744 aix4 | aix4.[[01]] | aix4.[[01]].*) 5745 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 5746 echo ' yes ' 5747 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 5748 : 5749 else 5750 can_build_shared=no 5751 fi 5752 ;; 5753 esac 5754 # Using Import Files as archive members, it is possible to support 5755 # filename-based versioning of shared library archives on AIX. While 5756 # this would work for both with and without runtime linking, it will 5757 # prevent static linking of such archives. So we do filename-based 5758 # shared library versioning with .so extension only, which is used 5759 # when both runtime linking and shared linking is enabled. 5760 # Unfortunately, runtime linking may impact performance, so we do 5761 # not want this to be the default eventually. Also, we use the 5762 # versioned .so libs for executables only if there is the -brtl 5763 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 5764 # To allow for filename-based versioning support, we need to create 5765 # libNAME.so.V as an archive file, containing: 5766 # *) an Import File, referring to the versioned filename of the 5767 # archive as well as the shared archive member, telling the 5768 # bitwidth (32 or 64) of that shared object, and providing the 5769 # list of exported symbols of that shared object, eventually 5770 # decorated with the 'weak' keyword 5771 # *) the shared object with the F_LOADONLY flag set, to really avoid 5772 # it being seen by the linker. 5773 # At run time we better use the real file rather than another symlink, 5774 # but for link time we create the symlink libNAME.so -> libNAME.so.V 5775 5776 case $with_aix_soname,$aix_use_runtimelinking in 5777 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 5778 # soname into executable. Probably we can add versioning support to 5779 # collect2, so additional links can be useful in future. 5780 aix,yes) # traditional libtool 5781 dynamic_linker='AIX unversionable lib.so' 5782 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 5783 # instead of lib<name>.a to let people know that these are not 5784 # typical AIX shared libraries. 5785 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 5786 ;; 5787 aix,no) # traditional AIX only 5788 dynamic_linker='AIX lib.a[(]lib.so.V[)]' 5789 # We preserve .a as extension for shared libraries through AIX4.2 5790 # and later when we are not doing run time linking. 5791 library_names_spec='$libname$release.a $libname.a' 5792 soname_spec='$libname$release$shared_ext$major' 5793 ;; 5794 svr4,*) # full svr4 only 5795 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]" 5796 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 5797 # We do not specify a path in Import Files, so LIBPATH fires. 5798 shlibpath_overrides_runpath=yes 5799 ;; 5800 *,yes) # both, prefer svr4 5801 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]" 5802 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 5803 # unpreferred sharedlib libNAME.a needs extra handling 5804 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"' 5805 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"' 5806 # We do not specify a path in Import Files, so LIBPATH fires. 5807 shlibpath_overrides_runpath=yes 5808 ;; 5809 *,no) # both, prefer aix 5810 dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]" 5811 library_names_spec='$libname$release.a $libname.a' 5812 soname_spec='$libname$release$shared_ext$major' 5813 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 5814 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)' 5815 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"' 5816 ;; 5817 esac 5818 shlibpath_var=LIBPATH 5819 fi 5820 ;; 5821 5822amigaos*) 5823 case $host_cpu in 5824 powerpc) 5825 # Since July 2007 AmigaOS4 officially supports .so libraries. 5826 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 5827 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 5828 ;; 5829 m68k) 5830 library_names_spec='$libname.ixlibrary $libname.a' 5831 # Create ${libname}_ixlibrary.a entries in /sys/libs. 5832 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' 5833 ;; 5834 esac 5835 ;; 5836 5837beos*) 5838 library_names_spec='$libname$shared_ext' 5839 dynamic_linker="$host_os ld.so" 5840 shlibpath_var=LIBRARY_PATH 5841 ;; 5842 5843bsdi[[45]]*) 5844 version_type=linux # correct to gnu/linux during the next big refactor 5845 need_version=no 5846 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 5847 soname_spec='$libname$release$shared_ext$major' 5848 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 5849 shlibpath_var=LD_LIBRARY_PATH 5850 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 5851 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 5852 # the default ld.so.conf also contains /usr/contrib/lib and 5853 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 5854 # libtool to hard-code these into programs 5855 ;; 5856 5857cygwin* | mingw* | pw32* | cegcc*) 5858 version_type=windows 5859 shrext_cmds=.dll 5860 need_version=no 5861 need_lib_prefix=no 5862 5863 case $GCC,$cc_basename in 5864 yes,*) 5865 # gcc 5866 library_names_spec='$libname.dll.a' 5867 # DLL is installed to $(libdir)/../bin by postinstall_cmds 5868 postinstall_cmds='base_file=`basename \$file`~ 5869 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 5870 dldir=$destdir/`dirname \$dlpath`~ 5871 test -d \$dldir || mkdir -p \$dldir~ 5872 $install_prog $dir/$dlname \$dldir/$dlname~ 5873 chmod a+x \$dldir/$dlname~ 5874 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 5875 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 5876 fi' 5877 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 5878 dlpath=$dir/\$dldll~ 5879 $RM \$dlpath' 5880 shlibpath_overrides_runpath=yes 5881 5882 case $host_os in 5883 cygwin*) 5884 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 5885 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 5886m4_if([$1], [],[ 5887 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) 5888 ;; 5889 mingw* | cegcc*) 5890 # MinGW DLLs use traditional 'lib' prefix 5891 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 5892 ;; 5893 pw32*) 5894 # pw32 DLLs use 'pw' prefix rather than 'lib' 5895 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 5896 ;; 5897 esac 5898 dynamic_linker='Win32 ld.exe' 5899 ;; 5900 5901 *,cl*) 5902 # Native MSVC 5903 libname_spec='$name' 5904 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 5905 library_names_spec='$libname.dll.lib' 5906 5907 case $build_os in 5908 mingw*) 5909 sys_lib_search_path_spec= 5910 lt_save_ifs=$IFS 5911 IFS=';' 5912 for lt_path in $LIB 5913 do 5914 IFS=$lt_save_ifs 5915 # Let DOS variable expansion print the short 8.3 style file name. 5916 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 5917 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 5918 done 5919 IFS=$lt_save_ifs 5920 # Convert to MSYS style. 5921 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` 5922 ;; 5923 cygwin*) 5924 # Convert to unix form, then to dos form, then back to unix form 5925 # but this time dos style (no spaces!) so that the unix form looks 5926 # like /cygdrive/c/PROGRA~1:/cygdr... 5927 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 5928 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 5929 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 5930 ;; 5931 *) 5932 sys_lib_search_path_spec=$LIB 5933 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then 5934 # It is most probably a Windows format PATH. 5935 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 5936 else 5937 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 5938 fi 5939 # FIXME: find the short name or the path components, as spaces are 5940 # common. (e.g. "Program Files" -> "PROGRA~1") 5941 ;; 5942 esac 5943 5944 # DLL is installed to $(libdir)/../bin by postinstall_cmds 5945 postinstall_cmds='base_file=`basename \$file`~ 5946 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 5947 dldir=$destdir/`dirname \$dlpath`~ 5948 test -d \$dldir || mkdir -p \$dldir~ 5949 $install_prog $dir/$dlname \$dldir/$dlname' 5950 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 5951 dlpath=$dir/\$dldll~ 5952 $RM \$dlpath' 5953 shlibpath_overrides_runpath=yes 5954 dynamic_linker='Win32 link.exe' 5955 ;; 5956 5957 *) 5958 # Assume MSVC wrapper 5959 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib' 5960 dynamic_linker='Win32 ld.exe' 5961 ;; 5962 esac 5963 # FIXME: first we should search . and the directory the executable is in 5964 shlibpath_var=PATH 5965 ;; 5966 5967darwin* | rhapsody*) 5968 dynamic_linker="$host_os dyld" 5969 version_type=darwin 5970 need_lib_prefix=no 5971 need_version=no 5972 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 5973 soname_spec='$libname$release$major$shared_ext' 5974 shlibpath_overrides_runpath=yes 5975 shlibpath_var=DYLD_LIBRARY_PATH 5976 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 5977m4_if([$1], [],[ 5978 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 5979 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 5980 ;; 5981 5982dgux*) 5983 version_type=linux # correct to gnu/linux during the next big refactor 5984 need_lib_prefix=no 5985 need_version=no 5986 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 5987 soname_spec='$libname$release$shared_ext$major' 5988 shlibpath_var=LD_LIBRARY_PATH 5989 ;; 5990 5991freebsd* | dragonfly*) 5992 # DragonFly does not have aout. When/if they implement a new 5993 # versioning mechanism, adjust this. 5994 if test -x /usr/bin/objformat; then 5995 objformat=`/usr/bin/objformat` 5996 else 5997 case $host_os in 5998 freebsd[[23]].*) objformat=aout ;; 5999 *) objformat=elf ;; 6000 esac 6001 fi 6002 version_type=freebsd-$objformat 6003 case $version_type in 6004 freebsd-elf*) 6005 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 6006 soname_spec='$libname$release$shared_ext$major' 6007 need_version=no 6008 need_lib_prefix=no 6009 ;; 6010 freebsd-*) 6011 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 6012 need_version=yes 6013 ;; 6014 esac 6015 shlibpath_var=LD_LIBRARY_PATH 6016 case $host_os in 6017 freebsd2.*) 6018 shlibpath_overrides_runpath=yes 6019 ;; 6020 freebsd3.[[01]]* | freebsdelf3.[[01]]*) 6021 shlibpath_overrides_runpath=yes 6022 hardcode_into_libs=yes 6023 ;; 6024 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 6025 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 6026 shlibpath_overrides_runpath=no 6027 hardcode_into_libs=yes 6028 ;; 6029 *) # from 4.6 on, and DragonFly 6030 shlibpath_overrides_runpath=yes 6031 hardcode_into_libs=yes 6032 ;; 6033 esac 6034 ;; 6035 6036haiku*) 6037 version_type=linux # correct to gnu/linux during the next big refactor 6038 need_lib_prefix=no 6039 need_version=no 6040 dynamic_linker="$host_os runtime_loader" 6041 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 6042 soname_spec='$libname$release$shared_ext$major' 6043 shlibpath_var=LIBRARY_PATH 6044 shlibpath_overrides_runpath=no 6045 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 6046 hardcode_into_libs=yes 6047 ;; 6048 6049hpux9* | hpux10* | hpux11*) 6050 # Give a soname corresponding to the major version so that dld.sl refuses to 6051 # link against other versions. 6052 version_type=sunos 6053 need_lib_prefix=no 6054 need_version=no 6055 case $host_cpu in 6056 ia64*) 6057 shrext_cmds='.so' 6058 hardcode_into_libs=yes 6059 dynamic_linker="$host_os dld.so" 6060 shlibpath_var=LD_LIBRARY_PATH 6061 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 6062 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 6063 soname_spec='$libname$release$shared_ext$major' 6064 if test 32 = "$HPUX_IA64_MODE"; then 6065 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 6066 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 6067 else 6068 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 6069 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 6070 fi 6071 ;; 6072 hppa*64*) 6073 shrext_cmds='.sl' 6074 hardcode_into_libs=yes 6075 dynamic_linker="$host_os dld.sl" 6076 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 6077 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 6078 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 6079 soname_spec='$libname$release$shared_ext$major' 6080 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 6081 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 6082 ;; 6083 *) 6084 shrext_cmds='.sl' 6085 dynamic_linker="$host_os dld.sl" 6086 shlibpath_var=SHLIB_PATH 6087 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 6088 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 6089 soname_spec='$libname$release$shared_ext$major' 6090 ;; 6091 esac 6092 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 6093 postinstall_cmds='chmod 555 $lib' 6094 # or fails outright, so override atomically: 6095 install_override_mode=555 6096 ;; 6097 6098interix[[3-9]]*) 6099 version_type=linux # correct to gnu/linux during the next big refactor 6100 need_lib_prefix=no 6101 need_version=no 6102 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 6103 soname_spec='$libname$release$shared_ext$major' 6104 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 6105 shlibpath_var=LD_LIBRARY_PATH 6106 shlibpath_overrides_runpath=no 6107 hardcode_into_libs=yes 6108 ;; 6109 6110irix5* | irix6* | nonstopux*) 6111 case $host_os in 6112 nonstopux*) version_type=nonstopux ;; 6113 *) 6114 if test yes = "$lt_cv_prog_gnu_ld"; then 6115 version_type=linux # correct to gnu/linux during the next big refactor 6116 else 6117 version_type=irix 6118 fi ;; 6119 esac 6120 need_lib_prefix=no 6121 need_version=no 6122 soname_spec='$libname$release$shared_ext$major' 6123 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 6124 case $host_os in 6125 irix5* | nonstopux*) 6126 libsuff= shlibsuff= 6127 ;; 6128 *) 6129 case $LD in # libtool.m4 will add one of these switches to LD 6130 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 6131 libsuff= shlibsuff= libmagic=32-bit;; 6132 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 6133 libsuff=32 shlibsuff=N32 libmagic=N32;; 6134 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 6135 libsuff=64 shlibsuff=64 libmagic=64-bit;; 6136 *) libsuff= shlibsuff= libmagic=never-match;; 6137 esac 6138 ;; 6139 esac 6140 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 6141 shlibpath_overrides_runpath=no 6142 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 6143 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 6144 hardcode_into_libs=yes 6145 ;; 6146 6147# No shared lib support for Linux oldld, aout, or coff. 6148linux*oldld* | linux*aout* | linux*coff*) 6149 dynamic_linker=no 6150 ;; 6151 6152linux*android*) 6153 version_type=none # Android doesn't support versioned libraries. 6154 need_lib_prefix=no 6155 need_version=no 6156 library_names_spec='$libname$release$shared_ext' 6157 soname_spec='$libname$release$shared_ext' 6158 finish_cmds= 6159 shlibpath_var=LD_LIBRARY_PATH 6160 shlibpath_overrides_runpath=yes 6161 6162 # This implies no fast_install, which is unacceptable. 6163 # Some rework will be needed to allow for fast_install 6164 # before this can be enabled. 6165 hardcode_into_libs=yes 6166 6167 dynamic_linker='Android linker' 6168 # Don't embed -rpath directories since the linker doesn't support them. 6169 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6170 ;; 6171 6172# This must be glibc/ELF. 6173linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6174 version_type=linux # correct to gnu/linux during the next big refactor 6175 need_lib_prefix=no 6176 need_version=no 6177 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 6178 soname_spec='$libname$release$shared_ext$major' 6179 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 6180 shlibpath_var=LD_LIBRARY_PATH 6181 shlibpath_overrides_runpath=no 6182 6183 # Some binutils ld are patched to set DT_RUNPATH 6184 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], 6185 [lt_cv_shlibpath_overrides_runpath=no 6186 save_LDFLAGS=$LDFLAGS 6187 save_libdir=$libdir 6188 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 6189 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 6190 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 6191 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], 6192 [lt_cv_shlibpath_overrides_runpath=yes])]) 6193 LDFLAGS=$save_LDFLAGS 6194 libdir=$save_libdir 6195 ]) 6196 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 6197 6198 # This implies no fast_install, which is unacceptable. 6199 # Some rework will be needed to allow for fast_install 6200 # before this can be enabled. 6201 hardcode_into_libs=yes 6202 6203 # Ideally, we could use ldconfig to report *all* directores which are 6204 # searched for libraries, however this is still not possible. Aside from not 6205 # being certain /sbin/ldconfig is available, command 6206 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 6207 # even though it is searched at run-time. Try to do the best guess by 6208 # appending ld.so.conf contents (and includes) to the search path. 6209 if test -f /etc/ld.so.conf; then 6210 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' ' '` 6211 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 6212 fi 6213 6214 # We used to test for /lib/ld.so.1 and disable shared libraries on 6215 # powerpc, because MkLinux only supported shared libraries with the 6216 # GNU dynamic linker. Since this was broken with cross compilers, 6217 # most powerpc-linux boxes support dynamic linking these days and 6218 # people can always --disable-shared, the test was removed, and we 6219 # assume the GNU/Linux dynamic linker is in use. 6220 dynamic_linker='GNU/Linux ld.so' 6221 ;; 6222 6223netbsd*) 6224 version_type=sunos 6225 need_lib_prefix=no 6226 need_version=no 6227 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 6228 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 6229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 6230 dynamic_linker='NetBSD (a.out) ld.so' 6231 else 6232 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 6233 soname_spec='$libname$release$shared_ext$major' 6234 dynamic_linker='NetBSD ld.elf_so' 6235 fi 6236 shlibpath_var=LD_LIBRARY_PATH 6237 shlibpath_overrides_runpath=yes 6238 hardcode_into_libs=yes 6239 ;; 6240 6241newsos6) 6242 version_type=linux # correct to gnu/linux during the next big refactor 6243 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 6244 shlibpath_var=LD_LIBRARY_PATH 6245 shlibpath_overrides_runpath=yes 6246 ;; 6247 6248*nto* | *qnx*) 6249 version_type=qnx 6250 need_lib_prefix=no 6251 need_version=no 6252 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 6253 soname_spec='$libname$release$shared_ext$major' 6254 shlibpath_var=LD_LIBRARY_PATH 6255 shlibpath_overrides_runpath=no 6256 hardcode_into_libs=yes 6257 dynamic_linker='ldqnx.so' 6258 ;; 6259 6260openbsd* | bitrig*) 6261 version_type=sunos 6262 sys_lib_dlsearch_path_spec=/usr/lib 6263 need_lib_prefix=no 6264 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6265 need_version=no 6266 else 6267 need_version=yes 6268 fi 6269 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 6270 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 6271 shlibpath_var=LD_LIBRARY_PATH 6272 shlibpath_overrides_runpath=yes 6273 ;; 6274 6275os2*) 6276 libname_spec='$name' 6277 version_type=windows 6278 shrext_cmds=.dll 6279 need_version=no 6280 need_lib_prefix=no 6281 # OS/2 can only load a DLL with a base name of 8 characters or less. 6282 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 6283 v=$($ECHO $release$versuffix | tr -d .-); 6284 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 6285 $ECHO $n$v`$shared_ext' 6286 library_names_spec='${libname}_dll.$libext' 6287 dynamic_linker='OS/2 ld.exe' 6288 shlibpath_var=BEGINLIBPATH 6289 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 6290 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 6291 postinstall_cmds='base_file=`basename \$file`~ 6292 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 6293 dldir=$destdir/`dirname \$dlpath`~ 6294 test -d \$dldir || mkdir -p \$dldir~ 6295 $install_prog $dir/$dlname \$dldir/$dlname~ 6296 chmod a+x \$dldir/$dlname~ 6297 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 6298 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 6299 fi' 6300 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 6301 dlpath=$dir/\$dldll~ 6302 $RM \$dlpath' 6303 ;; 6304 6305osf3* | osf4* | osf5*) 6306 version_type=osf 6307 need_lib_prefix=no 6308 need_version=no 6309 soname_spec='$libname$release$shared_ext$major' 6310 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 6311 shlibpath_var=LD_LIBRARY_PATH 6312 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 6313 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 6314 ;; 6315 6316rdos*) 6317 dynamic_linker=no 6318 ;; 6319 6320solaris*) 6321 version_type=linux # correct to gnu/linux during the next big refactor 6322 need_lib_prefix=no 6323 need_version=no 6324 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 6325 soname_spec='$libname$release$shared_ext$major' 6326 shlibpath_var=LD_LIBRARY_PATH 6327 shlibpath_overrides_runpath=yes 6328 hardcode_into_libs=yes 6329 # ldd complains unless libraries are executable 6330 postinstall_cmds='chmod +x $lib' 6331 ;; 6332 6333sunos4*) 6334 version_type=sunos 6335 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 6336 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 6337 shlibpath_var=LD_LIBRARY_PATH 6338 shlibpath_overrides_runpath=yes 6339 if test yes = "$with_gnu_ld"; then 6340 need_lib_prefix=no 6341 fi 6342 need_version=yes 6343 ;; 6344 6345sysv4 | sysv4.3*) 6346 version_type=linux # correct to gnu/linux during the next big refactor 6347 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 6348 soname_spec='$libname$release$shared_ext$major' 6349 shlibpath_var=LD_LIBRARY_PATH 6350 case $host_vendor in 6351 sni) 6352 shlibpath_overrides_runpath=no 6353 need_lib_prefix=no 6354 runpath_var=LD_RUN_PATH 6355 ;; 6356 siemens) 6357 need_lib_prefix=no 6358 ;; 6359 motorola) 6360 need_lib_prefix=no 6361 need_version=no 6362 shlibpath_overrides_runpath=no 6363 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 6364 ;; 6365 esac 6366 ;; 6367 6368sysv4*MP*) 6369 if test -d /usr/nec; then 6370 version_type=linux # correct to gnu/linux during the next big refactor 6371 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 6372 soname_spec='$libname$shared_ext.$major' 6373 shlibpath_var=LD_LIBRARY_PATH 6374 fi 6375 ;; 6376 6377sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6378 version_type=sco 6379 need_lib_prefix=no 6380 need_version=no 6381 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 6382 soname_spec='$libname$release$shared_ext$major' 6383 shlibpath_var=LD_LIBRARY_PATH 6384 shlibpath_overrides_runpath=yes 6385 hardcode_into_libs=yes 6386 if test yes = "$with_gnu_ld"; then 6387 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 6388 else 6389 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 6390 case $host_os in 6391 sco3.2v5*) 6392 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 6393 ;; 6394 esac 6395 fi 6396 sys_lib_dlsearch_path_spec='/usr/lib' 6397 ;; 6398 6399tpf*) 6400 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 6401 version_type=linux # correct to gnu/linux during the next big refactor 6402 need_lib_prefix=no 6403 need_version=no 6404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 6405 shlibpath_var=LD_LIBRARY_PATH 6406 shlibpath_overrides_runpath=no 6407 hardcode_into_libs=yes 6408 ;; 6409 6410uts4*) 6411 version_type=linux # correct to gnu/linux during the next big refactor 6412 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 6413 soname_spec='$libname$release$shared_ext$major' 6414 shlibpath_var=LD_LIBRARY_PATH 6415 ;; 6416 6417*) 6418 dynamic_linker=no 6419 ;; 6420esac 6421AC_MSG_RESULT([$dynamic_linker]) 6422test no = "$dynamic_linker" && can_build_shared=no 6423 6424variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 6425if test yes = "$GCC"; then 6426 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 6427fi 6428 6429if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 6430 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 6431fi 6432 6433if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 6434 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 6435fi 6436 6437# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 6438configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 6439 6440# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 6441func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 6442 6443# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 6444configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 6445 6446_LT_DECL([], [variables_saved_for_relink], [1], 6447 [Variables whose values should be saved in libtool wrapper scripts and 6448 restored at link time]) 6449_LT_DECL([], [need_lib_prefix], [0], 6450 [Do we need the "lib" prefix for modules?]) 6451_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) 6452_LT_DECL([], [version_type], [0], [Library versioning type]) 6453_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) 6454_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) 6455_LT_DECL([], [shlibpath_overrides_runpath], [0], 6456 [Is shlibpath searched before the hard-coded library search path?]) 6457_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) 6458_LT_DECL([], [library_names_spec], [1], 6459 [[List of archive names. First name is the real one, the rest are links. 6460 The last name is the one that the linker finds with -lNAME]]) 6461_LT_DECL([], [soname_spec], [1], 6462 [[The coded name of the library, if different from the real name]]) 6463_LT_DECL([], [install_override_mode], [1], 6464 [Permission mode override for installation of shared libraries]) 6465_LT_DECL([], [postinstall_cmds], [2], 6466 [Command to use after installation of a shared archive]) 6467_LT_DECL([], [postuninstall_cmds], [2], 6468 [Command to use after uninstallation of a shared archive]) 6469_LT_DECL([], [finish_cmds], [2], 6470 [Commands used to finish a libtool library installation in a directory]) 6471_LT_DECL([], [finish_eval], [1], 6472 [[As "finish_cmds", except a single script fragment to be evaled but 6473 not shown]]) 6474_LT_DECL([], [hardcode_into_libs], [0], 6475 [Whether we should hardcode library paths into libraries]) 6476_LT_DECL([], [sys_lib_search_path_spec], [2], 6477 [Compile-time system search path for libraries]) 6478_LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2], 6479 [Detected run-time system search path for libraries]) 6480_LT_DECL([], [configure_time_lt_sys_library_path], [2], 6481 [Explicit LT_SYS_LIBRARY_PATH set during ./configure time]) 6482])# _LT_SYS_DYNAMIC_LINKER 6483 6484 6485# _LT_PATH_TOOL_PREFIX(TOOL) 6486# -------------------------- 6487# find a file program that can recognize shared library 6488AC_DEFUN([_LT_PATH_TOOL_PREFIX], 6489[m4_require([_LT_DECL_EGREP])dnl 6490AC_MSG_CHECKING([for $1]) 6491AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 6492[case $MAGIC_CMD in 6493[[\\/*] | ?:[\\/]*]) 6494 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 6495 ;; 6496*) 6497 lt_save_MAGIC_CMD=$MAGIC_CMD 6498 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6499dnl $ac_dummy forces splitting on constant user-supplied paths. 6500dnl POSIX.2 word splitting is done only on the output of word expansions, 6501dnl not every word. This closes a longstanding sh security hole. 6502 ac_dummy="m4_if([$2], , $PATH, [$2])" 6503 for ac_dir in $ac_dummy; do 6504 IFS=$lt_save_ifs 6505 test -z "$ac_dir" && ac_dir=. 6506 if test -f "$ac_dir/$1"; then 6507 lt_cv_path_MAGIC_CMD=$ac_dir/"$1" 6508 if test -n "$file_magic_test_file"; then 6509 case $deplibs_check_method in 6510 "file_magic "*) 6511 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6512 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 6513 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6514 $EGREP "$file_magic_regex" > /dev/null; then 6515 : 6516 else 6517 cat <<_LT_EOF 1>&2 6518 6519*** Warning: the command libtool uses to detect shared libraries, 6520*** $file_magic_cmd, produces output that libtool cannot recognize. 6521*** The result is that libtool may fail to recognize shared libraries 6522*** as such. This will affect the creation of libtool libraries that 6523*** depend on shared libraries, but programs linked with such libtool 6524*** libraries will work regardless of this problem. Nevertheless, you 6525*** may want to report the problem to your system manager and/or to 6526*** bug-libtool@gnu.org 6527 6528_LT_EOF 6529 fi ;; 6530 esac 6531 fi 6532 break 6533 fi 6534 done 6535 IFS=$lt_save_ifs 6536 MAGIC_CMD=$lt_save_MAGIC_CMD 6537 ;; 6538esac]) 6539MAGIC_CMD=$lt_cv_path_MAGIC_CMD 6540if test -n "$MAGIC_CMD"; then 6541 AC_MSG_RESULT($MAGIC_CMD) 6542else 6543 AC_MSG_RESULT(no) 6544fi 6545_LT_DECL([], [MAGIC_CMD], [0], 6546 [Used to examine libraries when file_magic_cmd begins with "file"])dnl 6547])# _LT_PATH_TOOL_PREFIX 6548 6549# Old name: 6550AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) 6551dnl aclocal-1.4 backwards compatibility: 6552dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) 6553 6554 6555# _LT_PATH_MAGIC 6556# -------------- 6557# find a file program that can recognize a shared library 6558m4_defun([_LT_PATH_MAGIC], 6559[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 6560if test -z "$lt_cv_path_MAGIC_CMD"; then 6561 if test -n "$ac_tool_prefix"; then 6562 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 6563 else 6564 MAGIC_CMD=: 6565 fi 6566fi 6567])# _LT_PATH_MAGIC 6568 6569 6570# LT_PATH_LD 6571# ---------- 6572# find the pathname to the GNU or non-GNU linker 6573AC_DEFUN([LT_PATH_LD], 6574[AC_REQUIRE([AC_PROG_CC])dnl 6575AC_REQUIRE([AC_CANONICAL_HOST])dnl 6576AC_REQUIRE([AC_CANONICAL_BUILD])dnl 6577m4_require([_LT_DECL_SED])dnl 6578m4_require([_LT_DECL_EGREP])dnl 6579m4_require([_LT_PROG_ECHO_BACKSLASH])dnl 6580 6581AC_ARG_WITH([gnu-ld], 6582 [AS_HELP_STRING([--with-gnu-ld], 6583 [assume the C compiler uses GNU ld @<:@default=no@:>@])], 6584 [test no = "$withval" || with_gnu_ld=yes], 6585 [with_gnu_ld=no])dnl 6586 6587ac_prog=ld 6588if test yes = "$GCC"; then 6589 # Check if gcc -print-prog-name=ld gives a path. 6590 AC_MSG_CHECKING([for ld used by $CC]) 6591 case $host in 6592 *-*-mingw*) 6593 # gcc leaves a trailing carriage return, which upsets mingw 6594 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6595 *) 6596 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6597 esac 6598 case $ac_prog in 6599 # Accept absolute paths. 6600 [[\\/]]* | ?:[[\\/]]*) 6601 re_direlt='/[[^/]][[^/]]*/\.\./' 6602 # Canonicalize the pathname of ld 6603 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6604 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6605 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6606 done 6607 test -z "$LD" && LD=$ac_prog 6608 ;; 6609 "") 6610 # If it fails, then pretend we aren't using GCC. 6611 ac_prog=ld 6612 ;; 6613 *) 6614 # If it is relative, then search for the first ld in PATH. 6615 with_gnu_ld=unknown 6616 ;; 6617 esac 6618elif test yes = "$with_gnu_ld"; then 6619 AC_MSG_CHECKING([for GNU ld]) 6620else 6621 AC_MSG_CHECKING([for non-GNU ld]) 6622fi 6623AC_CACHE_VAL(lt_cv_path_LD, 6624[if test -z "$LD"; then 6625 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6626 for ac_dir in $PATH; do 6627 IFS=$lt_save_ifs 6628 test -z "$ac_dir" && ac_dir=. 6629 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6630 lt_cv_path_LD=$ac_dir/$ac_prog 6631 # Check to see if the program is GNU ld. I'd rather use --version, 6632 # but apparently some variants of GNU ld only accept -v. 6633 # Break only if it was the GNU/non-GNU ld that we prefer. 6634 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6635 *GNU* | *'with BFD'*) 6636 test no != "$with_gnu_ld" && break 6637 ;; 6638 *) 6639 test yes != "$with_gnu_ld" && break 6640 ;; 6641 esac 6642 fi 6643 done 6644 IFS=$lt_save_ifs 6645else 6646 lt_cv_path_LD=$LD # Let the user override the test with a path. 6647fi]) 6648LD=$lt_cv_path_LD 6649if test -n "$LD"; then 6650 AC_MSG_RESULT($LD) 6651else 6652 AC_MSG_RESULT(no) 6653fi 6654test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 6655_LT_PATH_LD_GNU 6656AC_SUBST([LD]) 6657 6658_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) 6659])# LT_PATH_LD 6660 6661# Old names: 6662AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) 6663AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) 6664dnl aclocal-1.4 backwards compatibility: 6665dnl AC_DEFUN([AM_PROG_LD], []) 6666dnl AC_DEFUN([AC_PROG_LD], []) 6667 6668 6669# _LT_PATH_LD_GNU 6670#- -------------- 6671m4_defun([_LT_PATH_LD_GNU], 6672[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 6673[# I'd rather use --version here, but apparently some GNU lds only accept -v. 6674case `$LD -v 2>&1 </dev/null` in 6675*GNU* | *'with BFD'*) 6676 lt_cv_prog_gnu_ld=yes 6677 ;; 6678*) 6679 lt_cv_prog_gnu_ld=no 6680 ;; 6681esac]) 6682with_gnu_ld=$lt_cv_prog_gnu_ld 6683])# _LT_PATH_LD_GNU 6684 6685 6686# _LT_CMD_RELOAD 6687# -------------- 6688# find reload flag for linker 6689# -- PORTME Some linkers may need a different reload flag. 6690m4_defun([_LT_CMD_RELOAD], 6691[AC_CACHE_CHECK([for $LD option to reload object files], 6692 lt_cv_ld_reload_flag, 6693 [lt_cv_ld_reload_flag='-r']) 6694reload_flag=$lt_cv_ld_reload_flag 6695case $reload_flag in 6696"" | " "*) ;; 6697*) reload_flag=" $reload_flag" ;; 6698esac 6699reload_cmds='$LD$reload_flag -o $output$reload_objs' 6700case $host_os in 6701 cygwin* | mingw* | pw32* | cegcc*) 6702 if test yes != "$GCC"; then 6703 reload_cmds=false 6704 fi 6705 ;; 6706 darwin*) 6707 if test yes = "$GCC"; then 6708 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6709 else 6710 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6711 fi 6712 ;; 6713esac 6714_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl 6715_LT_TAGDECL([], [reload_cmds], [2])dnl 6716])# _LT_CMD_RELOAD 6717 6718 6719# _LT_PATH_DD 6720# ----------- 6721# find a working dd 6722m4_defun([_LT_PATH_DD], 6723[AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD], 6724[printf 0123456789abcdef0123456789abcdef >conftest.i 6725cat conftest.i conftest.i >conftest2.i 6726: ${lt_DD:=$DD} 6727AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd], 6728[if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6729 cmp -s conftest.i conftest.out \ 6730 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6731fi]) 6732rm -f conftest.i conftest2.i conftest.out]) 6733])# _LT_PATH_DD 6734 6735 6736# _LT_CMD_TRUNCATE 6737# ---------------- 6738# find command to truncate a binary pipe 6739m4_defun([_LT_CMD_TRUNCATE], 6740[m4_require([_LT_PATH_DD]) 6741AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin], 6742[printf 0123456789abcdef0123456789abcdef >conftest.i 6743cat conftest.i conftest.i >conftest2.i 6744lt_cv_truncate_bin= 6745if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6746 cmp -s conftest.i conftest.out \ 6747 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6748fi 6749rm -f conftest.i conftest2.i conftest.out 6750test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"]) 6751_LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1], 6752 [Command to truncate a binary pipe]) 6753])# _LT_CMD_TRUNCATE 6754 6755 6756# _LT_CHECK_MAGIC_METHOD 6757# ---------------------- 6758# how to check for library dependencies 6759# -- PORTME fill in with the dynamic library characteristics 6760m4_defun([_LT_CHECK_MAGIC_METHOD], 6761[m4_require([_LT_DECL_EGREP]) 6762m4_require([_LT_DECL_OBJDUMP]) 6763AC_CACHE_CHECK([how to recognize dependent libraries], 6764lt_cv_deplibs_check_method, 6765[lt_cv_file_magic_cmd='$MAGIC_CMD' 6766lt_cv_file_magic_test_file= 6767lt_cv_deplibs_check_method='unknown' 6768# Need to set the preceding variable on all platforms that support 6769# interlibrary dependencies. 6770# 'none' -- dependencies not supported. 6771# 'unknown' -- same as none, but documents that we really don't know. 6772# 'pass_all' -- all dependencies passed with no checks. 6773# 'test_compile' -- check by making test program. 6774# 'file_magic [[regex]]' -- check by looking for files in library path 6775# that responds to the $file_magic_cmd with a given extended regex. 6776# If you have 'file' or equivalent on your system and you're not sure 6777# whether 'pass_all' will *always* work, you probably want this one. 6778 6779case $host_os in 6780aix[[4-9]]*) 6781 lt_cv_deplibs_check_method=pass_all 6782 ;; 6783 6784beos*) 6785 lt_cv_deplibs_check_method=pass_all 6786 ;; 6787 6788bsdi[[45]]*) 6789 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 6790 lt_cv_file_magic_cmd='/usr/bin/file -L' 6791 lt_cv_file_magic_test_file=/shlib/libc.so 6792 ;; 6793 6794cygwin*) 6795 # func_win32_libid is a shell function defined in ltmain.sh 6796 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6797 lt_cv_file_magic_cmd='func_win32_libid' 6798 ;; 6799 6800mingw* | pw32*) 6801 # Base MSYS/MinGW do not provide the 'file' command needed by 6802 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6803 # unless we find 'file', for example because we are cross-compiling. 6804 if ( file / ) >/dev/null 2>&1; then 6805 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6806 lt_cv_file_magic_cmd='func_win32_libid' 6807 else 6808 # Keep this pattern in sync with the one in func_win32_libid. 6809 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6810 lt_cv_file_magic_cmd='$OBJDUMP -f' 6811 fi 6812 ;; 6813 6814cegcc*) 6815 # use the weaker test based on 'objdump'. See mingw*. 6816 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6817 lt_cv_file_magic_cmd='$OBJDUMP -f' 6818 ;; 6819 6820darwin* | rhapsody*) 6821 lt_cv_deplibs_check_method=pass_all 6822 ;; 6823 6824freebsd* | dragonfly*) 6825 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6826 case $host_cpu in 6827 i*86 ) 6828 # Not sure whether the presence of OpenBSD here was a mistake. 6829 # Let's accept both of them until this is cleared up. 6830 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 6831 lt_cv_file_magic_cmd=/usr/bin/file 6832 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6833 ;; 6834 esac 6835 else 6836 lt_cv_deplibs_check_method=pass_all 6837 fi 6838 ;; 6839 6840haiku*) 6841 lt_cv_deplibs_check_method=pass_all 6842 ;; 6843 6844hpux10.20* | hpux11*) 6845 lt_cv_file_magic_cmd=/usr/bin/file 6846 case $host_cpu in 6847 ia64*) 6848 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 6849 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6850 ;; 6851 hppa*64*) 6852 [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]'] 6853 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6854 ;; 6855 *) 6856 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' 6857 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6858 ;; 6859 esac 6860 ;; 6861 6862interix[[3-9]]*) 6863 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6864 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 6865 ;; 6866 6867irix5* | irix6* | nonstopux*) 6868 case $LD in 6869 *-32|*"-32 ") libmagic=32-bit;; 6870 *-n32|*"-n32 ") libmagic=N32;; 6871 *-64|*"-64 ") libmagic=64-bit;; 6872 *) libmagic=never-match;; 6873 esac 6874 lt_cv_deplibs_check_method=pass_all 6875 ;; 6876 6877# This must be glibc/ELF. 6878linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6879 lt_cv_deplibs_check_method=pass_all 6880 ;; 6881 6882netbsd*) 6883 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6884 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 6885 else 6886 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 6887 fi 6888 ;; 6889 6890newos6*) 6891 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 6892 lt_cv_file_magic_cmd=/usr/bin/file 6893 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6894 ;; 6895 6896*nto* | *qnx*) 6897 lt_cv_deplibs_check_method=pass_all 6898 ;; 6899 6900openbsd* | bitrig*) 6901 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6902 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 6903 else 6904 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 6905 fi 6906 ;; 6907 6908osf3* | osf4* | osf5*) 6909 lt_cv_deplibs_check_method=pass_all 6910 ;; 6911 6912rdos*) 6913 lt_cv_deplibs_check_method=pass_all 6914 ;; 6915 6916solaris*) 6917 lt_cv_deplibs_check_method=pass_all 6918 ;; 6919 6920sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6921 lt_cv_deplibs_check_method=pass_all 6922 ;; 6923 6924sysv4 | sysv4.3*) 6925 case $host_vendor in 6926 motorola) 6927 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]]' 6928 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6929 ;; 6930 ncr) 6931 lt_cv_deplibs_check_method=pass_all 6932 ;; 6933 sequent) 6934 lt_cv_file_magic_cmd='/bin/file' 6935 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 6936 ;; 6937 sni) 6938 lt_cv_file_magic_cmd='/bin/file' 6939 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 6940 lt_cv_file_magic_test_file=/lib/libc.so 6941 ;; 6942 siemens) 6943 lt_cv_deplibs_check_method=pass_all 6944 ;; 6945 pc) 6946 lt_cv_deplibs_check_method=pass_all 6947 ;; 6948 esac 6949 ;; 6950 6951tpf*) 6952 lt_cv_deplibs_check_method=pass_all 6953 ;; 6954os2*) 6955 lt_cv_deplibs_check_method=pass_all 6956 ;; 6957esac 6958]) 6959 6960file_magic_glob= 6961want_nocaseglob=no 6962if test "$build" = "$host"; then 6963 case $host_os in 6964 mingw* | pw32*) 6965 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6966 want_nocaseglob=yes 6967 else 6968 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` 6969 fi 6970 ;; 6971 esac 6972fi 6973 6974file_magic_cmd=$lt_cv_file_magic_cmd 6975deplibs_check_method=$lt_cv_deplibs_check_method 6976test -z "$deplibs_check_method" && deplibs_check_method=unknown 6977 6978_LT_DECL([], [deplibs_check_method], [1], 6979 [Method to check whether dependent libraries are shared objects]) 6980_LT_DECL([], [file_magic_cmd], [1], 6981 [Command to use when deplibs_check_method = "file_magic"]) 6982_LT_DECL([], [file_magic_glob], [1], 6983 [How to find potential files when deplibs_check_method = "file_magic"]) 6984_LT_DECL([], [want_nocaseglob], [1], 6985 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) 6986])# _LT_CHECK_MAGIC_METHOD 6987 6988 6989# LT_PATH_NM 6990# ---------- 6991# find the pathname to a BSD- or MS-compatible name lister 6992AC_DEFUN([LT_PATH_NM], 6993[AC_REQUIRE([AC_PROG_CC])dnl 6994AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, 6995[if test -n "$NM"; then 6996 # Let the user override the test. 6997 lt_cv_path_NM=$NM 6998else 6999 lt_nm_to_check=${ac_tool_prefix}nm 7000 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7001 lt_nm_to_check="$lt_nm_to_check nm" 7002 fi 7003 for lt_tmp_nm in $lt_nm_to_check; do 7004 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7005 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7006 IFS=$lt_save_ifs 7007 test -z "$ac_dir" && ac_dir=. 7008 tmp_nm=$ac_dir/$lt_tmp_nm 7009 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 7010 # Check to see if the nm accepts a BSD-compat flag. 7011 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 7012 # nm: unknown option "B" ignored 7013 # Tru64's nm complains that /dev/null is an invalid object file 7014 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 7015 case $build_os in 7016 mingw*) lt_bad_file=conftest.nm/nofile ;; 7017 *) lt_bad_file=/dev/null ;; 7018 esac 7019 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 7020 *$lt_bad_file* | *'Invalid file or object type'*) 7021 lt_cv_path_NM="$tmp_nm -B" 7022 break 2 7023 ;; 7024 *) 7025 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7026 */dev/null*) 7027 lt_cv_path_NM="$tmp_nm -p" 7028 break 2 7029 ;; 7030 *) 7031 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7032 continue # so that we can try to find one that supports BSD flags 7033 ;; 7034 esac 7035 ;; 7036 esac 7037 fi 7038 done 7039 IFS=$lt_save_ifs 7040 done 7041 : ${lt_cv_path_NM=no} 7042fi]) 7043if test no != "$lt_cv_path_NM"; then 7044 NM=$lt_cv_path_NM 7045else 7046 # Didn't find any BSD compatible name lister, look for dumpbin. 7047 if test -n "$DUMPBIN"; then : 7048 # Let the user override the test. 7049 else 7050 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) 7051 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 7052 *COFF*) 7053 DUMPBIN="$DUMPBIN -symbols -headers" 7054 ;; 7055 *) 7056 DUMPBIN=: 7057 ;; 7058 esac 7059 fi 7060 AC_SUBST([DUMPBIN]) 7061 if test : != "$DUMPBIN"; then 7062 NM=$DUMPBIN 7063 fi 7064fi 7065test -z "$NM" && NM=nm 7066AC_SUBST([NM]) 7067_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl 7068 7069AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], 7070 [lt_cv_nm_interface="BSD nm" 7071 echo "int some_variable = 0;" > conftest.$ac_ext 7072 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) 7073 (eval "$ac_compile" 2>conftest.err) 7074 cat conftest.err >&AS_MESSAGE_LOG_FD 7075 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) 7076 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7077 cat conftest.err >&AS_MESSAGE_LOG_FD 7078 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) 7079 cat conftest.out >&AS_MESSAGE_LOG_FD 7080 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7081 lt_cv_nm_interface="MS dumpbin" 7082 fi 7083 rm -f conftest*]) 7084])# LT_PATH_NM 7085 7086# Old names: 7087AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) 7088AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) 7089dnl aclocal-1.4 backwards compatibility: 7090dnl AC_DEFUN([AM_PROG_NM], []) 7091dnl AC_DEFUN([AC_PROG_NM], []) 7092 7093# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 7094# -------------------------------- 7095# how to determine the name of the shared library 7096# associated with a specific link library. 7097# -- PORTME fill in with the dynamic library characteristics 7098m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], 7099[m4_require([_LT_DECL_EGREP]) 7100m4_require([_LT_DECL_OBJDUMP]) 7101m4_require([_LT_DECL_DLLTOOL]) 7102AC_CACHE_CHECK([how to associate runtime and link libraries], 7103lt_cv_sharedlib_from_linklib_cmd, 7104[lt_cv_sharedlib_from_linklib_cmd='unknown' 7105 7106case $host_os in 7107cygwin* | mingw* | pw32* | cegcc*) 7108 # two different shell functions defined in ltmain.sh; 7109 # decide which one to use based on capabilities of $DLLTOOL 7110 case `$DLLTOOL --help 2>&1` in 7111 *--identify-strict*) 7112 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7113 ;; 7114 *) 7115 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7116 ;; 7117 esac 7118 ;; 7119*) 7120 # fallback: assume linklib IS sharedlib 7121 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7122 ;; 7123esac 7124]) 7125sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7126test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7127 7128_LT_DECL([], [sharedlib_from_linklib_cmd], [1], 7129 [Command to associate shared and link libraries]) 7130])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 7131 7132 7133# _LT_PATH_MANIFEST_TOOL 7134# ---------------------- 7135# locate the manifest tool 7136m4_defun([_LT_PATH_MANIFEST_TOOL], 7137[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) 7138test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7139AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], 7140 [lt_cv_path_mainfest_tool=no 7141 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD 7142 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7143 cat conftest.err >&AS_MESSAGE_LOG_FD 7144 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7145 lt_cv_path_mainfest_tool=yes 7146 fi 7147 rm -f conftest*]) 7148if test yes != "$lt_cv_path_mainfest_tool"; then 7149 MANIFEST_TOOL=: 7150fi 7151_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl 7152])# _LT_PATH_MANIFEST_TOOL 7153 7154 7155# _LT_DLL_DEF_P([FILE]) 7156# --------------------- 7157# True iff FILE is a Windows DLL '.def' file. 7158# Keep in sync with func_dll_def_p in the libtool script 7159AC_DEFUN([_LT_DLL_DEF_P], 7160[dnl 7161 test DEF = "`$SED -n dnl 7162 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace 7163 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments 7164 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl 7165 -e q dnl Only consider the first "real" line 7166 $1`" dnl 7167])# _LT_DLL_DEF_P 7168 7169 7170# LT_LIB_M 7171# -------- 7172# check for math library 7173AC_DEFUN([LT_LIB_M], 7174[AC_REQUIRE([AC_CANONICAL_HOST])dnl 7175LIBM= 7176case $host in 7177*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 7178 # These system don't have libm, or don't need it 7179 ;; 7180*-ncr-sysv4.3*) 7181 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw) 7182 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 7183 ;; 7184*) 7185 AC_CHECK_LIB(m, cos, LIBM=-lm) 7186 ;; 7187esac 7188AC_SUBST([LIBM]) 7189])# LT_LIB_M 7190 7191# Old name: 7192AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) 7193dnl aclocal-1.4 backwards compatibility: 7194dnl AC_DEFUN([AC_CHECK_LIBM], []) 7195 7196 7197# _LT_COMPILER_NO_RTTI([TAGNAME]) 7198# ------------------------------- 7199m4_defun([_LT_COMPILER_NO_RTTI], 7200[m4_require([_LT_TAG_COMPILER])dnl 7201 7202_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 7203 7204if test yes = "$GCC"; then 7205 case $cc_basename in 7206 nvcc*) 7207 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; 7208 *) 7209 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; 7210 esac 7211 7212 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 7213 lt_cv_prog_compiler_rtti_exceptions, 7214 [-fno-rtti -fno-exceptions], [], 7215 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 7216fi 7217_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], 7218 [Compiler flag to turn off builtin functions]) 7219])# _LT_COMPILER_NO_RTTI 7220 7221 7222# _LT_CMD_GLOBAL_SYMBOLS 7223# ---------------------- 7224m4_defun([_LT_CMD_GLOBAL_SYMBOLS], 7225[AC_REQUIRE([AC_CANONICAL_HOST])dnl 7226AC_REQUIRE([AC_PROG_CC])dnl 7227AC_REQUIRE([AC_PROG_AWK])dnl 7228AC_REQUIRE([LT_PATH_NM])dnl 7229AC_REQUIRE([LT_PATH_LD])dnl 7230m4_require([_LT_DECL_SED])dnl 7231m4_require([_LT_DECL_EGREP])dnl 7232m4_require([_LT_TAG_COMPILER])dnl 7233 7234# Check for command to grab the raw symbol name followed by C symbol from nm. 7235AC_MSG_CHECKING([command to parse $NM output from $compiler object]) 7236AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 7237[ 7238# These are sane defaults that work on at least a few old systems. 7239# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7240 7241# Character class describing NM global symbol codes. 7242symcode='[[BCDEGRST]]' 7243 7244# Regexp to match symbols that can be accessed directly from C. 7245sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 7246 7247# Define system-specific variables. 7248case $host_os in 7249aix*) 7250 symcode='[[BCDT]]' 7251 ;; 7252cygwin* | mingw* | pw32* | cegcc*) 7253 symcode='[[ABCDGISTW]]' 7254 ;; 7255hpux*) 7256 if test ia64 = "$host_cpu"; then 7257 symcode='[[ABCDEGRST]]' 7258 fi 7259 ;; 7260irix* | nonstopux*) 7261 symcode='[[BCDEGRST]]' 7262 ;; 7263osf*) 7264 symcode='[[BCDEGQRST]]' 7265 ;; 7266solaris*) 7267 symcode='[[BDRT]]' 7268 ;; 7269sco3.2v5*) 7270 symcode='[[DT]]' 7271 ;; 7272sysv4.2uw2*) 7273 symcode='[[DT]]' 7274 ;; 7275sysv5* | sco5v6* | unixware* | OpenUNIX*) 7276 symcode='[[ABDT]]' 7277 ;; 7278sysv4) 7279 symcode='[[DFNSTU]]' 7280 ;; 7281esac 7282 7283# If we're using GNU nm, then use its standard symbol codes. 7284case `$NM -V 2>&1` in 7285*GNU* | *'with BFD'*) 7286 symcode='[[ABCDGIRSTW]]' ;; 7287esac 7288 7289if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7290 # Gets list of data symbols to import. 7291 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7292 # Adjust the below global symbol transforms to fixup imported variables. 7293 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7294 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7295 lt_c_name_lib_hook="\ 7296 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7297 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7298else 7299 # Disable hooks by default. 7300 lt_cv_sys_global_symbol_to_import= 7301 lt_cdecl_hook= 7302 lt_c_name_hook= 7303 lt_c_name_lib_hook= 7304fi 7305 7306# Transform an extracted symbol line into a proper C declaration. 7307# Some systems (esp. on ia64) link data and code symbols differently, 7308# so use this general approach. 7309lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7310$lt_cdecl_hook\ 7311" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7312" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7313 7314# Transform an extracted symbol line into symbol name and symbol address 7315lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7316$lt_c_name_hook\ 7317" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7318" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7319 7320# Transform an extracted symbol line into symbol name with lib prefix and 7321# symbol address. 7322lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7323$lt_c_name_lib_hook\ 7324" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7325" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7326" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7327 7328# Handle CRLF in mingw tool chain 7329opt_cr= 7330case $build_os in 7331mingw*) 7332 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7333 ;; 7334esac 7335 7336# Try without a prefix underscore, then with it. 7337for ac_symprfx in "" "_"; do 7338 7339 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7340 symxfrm="\\1 $ac_symprfx\\2 \\2" 7341 7342 # Write the raw and C identifiers. 7343 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7344 # Fake it for dumpbin and say T for any non-static function, 7345 # D for any global variable and I for any imported variable. 7346 # Also find C++ and __fastcall symbols from MSVC++, 7347 # which start with @ or ?. 7348 lt_cv_sys_global_symbol_pipe="$AWK ['"\ 7349" {last_section=section; section=\$ 3};"\ 7350" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7351" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7352" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7353" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7354" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7355" \$ 0!~/External *\|/{next};"\ 7356" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7357" {if(hide[section]) next};"\ 7358" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7359" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7360" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7361" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7362" ' prfx=^$ac_symprfx]" 7363 else 7364 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7365 fi 7366 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7367 7368 # Check to see that the pipe works correctly. 7369 pipe_works=no 7370 7371 rm -f conftest* 7372 cat > conftest.$ac_ext <<_LT_EOF 7373#ifdef __cplusplus 7374extern "C" { 7375#endif 7376char nm_test_var; 7377void nm_test_func(void); 7378void nm_test_func(void){} 7379#ifdef __cplusplus 7380} 7381#endif 7382int main(){nm_test_var='a';nm_test_func();return(0);} 7383_LT_EOF 7384 7385 if AC_TRY_EVAL(ac_compile); then 7386 # Now try to grab the symbols. 7387 nlist=conftest.nm 7388 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then 7389 # Try sorting and uniquifying the output. 7390 if sort "$nlist" | uniq > "$nlist"T; then 7391 mv -f "$nlist"T "$nlist" 7392 else 7393 rm -f "$nlist"T 7394 fi 7395 7396 # Make sure that we snagged all the symbols we need. 7397 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7398 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7399 cat <<_LT_EOF > conftest.$ac_ext 7400/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7401#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7402/* DATA imports from DLLs on WIN32 can't be const, because runtime 7403 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7404# define LT@&t@_DLSYM_CONST 7405#elif defined __osf__ 7406/* This system does not cope well with relocations in const data. */ 7407# define LT@&t@_DLSYM_CONST 7408#else 7409# define LT@&t@_DLSYM_CONST const 7410#endif 7411 7412#ifdef __cplusplus 7413extern "C" { 7414#endif 7415 7416_LT_EOF 7417 # Now generate the symbol file. 7418 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7419 7420 cat <<_LT_EOF >> conftest.$ac_ext 7421 7422/* The mapping between symbol names and symbols. */ 7423LT@&t@_DLSYM_CONST struct { 7424 const char *name; 7425 void *address; 7426} 7427lt__PROGRAM__LTX_preloaded_symbols[[]] = 7428{ 7429 { "@PROGRAM@", (void *) 0 }, 7430_LT_EOF 7431 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7432 cat <<\_LT_EOF >> conftest.$ac_ext 7433 {0, (void *) 0} 7434}; 7435 7436/* This works around a problem in FreeBSD linker */ 7437#ifdef FREEBSD_WORKAROUND 7438static const void *lt_preloaded_setup() { 7439 return lt__PROGRAM__LTX_preloaded_symbols; 7440} 7441#endif 7442 7443#ifdef __cplusplus 7444} 7445#endif 7446_LT_EOF 7447 # Now try linking the two files. 7448 mv conftest.$ac_objext conftstm.$ac_objext 7449 lt_globsym_save_LIBS=$LIBS 7450 lt_globsym_save_CFLAGS=$CFLAGS 7451 LIBS=conftstm.$ac_objext 7452 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 7453 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then 7454 pipe_works=yes 7455 fi 7456 LIBS=$lt_globsym_save_LIBS 7457 CFLAGS=$lt_globsym_save_CFLAGS 7458 else 7459 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 7460 fi 7461 else 7462 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 7463 fi 7464 else 7465 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 7466 fi 7467 else 7468 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 7469 cat conftest.$ac_ext >&5 7470 fi 7471 rm -rf conftest* conftst* 7472 7473 # Do not use the global_symbol_pipe unless it works. 7474 if test yes = "$pipe_works"; then 7475 break 7476 else 7477 lt_cv_sys_global_symbol_pipe= 7478 fi 7479done 7480]) 7481if test -z "$lt_cv_sys_global_symbol_pipe"; then 7482 lt_cv_sys_global_symbol_to_cdecl= 7483fi 7484if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7485 AC_MSG_RESULT(failed) 7486else 7487 AC_MSG_RESULT(ok) 7488fi 7489 7490# Response file support. 7491if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7492 nm_file_list_spec='@' 7493elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then 7494 nm_file_list_spec='@' 7495fi 7496 7497_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], 7498 [Take the output of nm and produce a listing of raw symbols and C names]) 7499_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 7500 [Transform the output of nm in a proper C declaration]) 7501_LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1], 7502 [Transform the output of nm into a list of symbols to manually relocate]) 7503_LT_DECL([global_symbol_to_c_name_address], 7504 [lt_cv_sys_global_symbol_to_c_name_address], [1], 7505 [Transform the output of nm in a C name address pair]) 7506_LT_DECL([global_symbol_to_c_name_address_lib_prefix], 7507 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 7508 [Transform the output of nm in a C name address pair when lib prefix is needed]) 7509_LT_DECL([nm_interface], [lt_cv_nm_interface], [1], 7510 [The name lister interface]) 7511_LT_DECL([], [nm_file_list_spec], [1], 7512 [Specify filename containing input files for $NM]) 7513]) # _LT_CMD_GLOBAL_SYMBOLS 7514 7515 7516# _LT_COMPILER_PIC([TAGNAME]) 7517# --------------------------- 7518m4_defun([_LT_COMPILER_PIC], 7519[m4_require([_LT_TAG_COMPILER])dnl 7520_LT_TAGVAR(lt_prog_compiler_wl, $1)= 7521_LT_TAGVAR(lt_prog_compiler_pic, $1)= 7522_LT_TAGVAR(lt_prog_compiler_static, $1)= 7523 7524m4_if([$1], [CXX], [ 7525 # C++ specific cases for pic, static, wl, etc. 7526 if test yes = "$GXX"; then 7527 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7528 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 7529 7530 case $host_os in 7531 aix*) 7532 # All AIX code is PIC. 7533 if test ia64 = "$host_cpu"; then 7534 # AIX 5 now supports IA64 processor 7535 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 7536 fi 7537 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 7538 ;; 7539 7540 amigaos*) 7541 case $host_cpu in 7542 powerpc) 7543 # see comment about AmigaOS4 .so support 7544 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 7545 ;; 7546 m68k) 7547 # FIXME: we need at least 68020 code to build shared libraries, but 7548 # adding the '-m68020' flag to GCC prevents building anything better, 7549 # like '-m68040'. 7550 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 7551 ;; 7552 esac 7553 ;; 7554 7555 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7556 # PIC is the default for these OSes. 7557 ;; 7558 mingw* | cygwin* | os2* | pw32* | cegcc*) 7559 # This hack is so that the source file can tell whether it is being 7560 # built for inclusion in a dll (and should export symbols for example). 7561 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7562 # (--disable-auto-import) libraries 7563 m4_if([$1], [GCJ], [], 7564 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 7565 case $host_os in 7566 os2*) 7567 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 7568 ;; 7569 esac 7570 ;; 7571 darwin* | rhapsody*) 7572 # PIC is the default on this platform 7573 # Common symbols not allowed in MH_DYLIB files 7574 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 7575 ;; 7576 *djgpp*) 7577 # DJGPP does not support shared libraries at all 7578 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 7579 ;; 7580 haiku*) 7581 # PIC is the default for Haiku. 7582 # The "-static" flag exists, but is broken. 7583 _LT_TAGVAR(lt_prog_compiler_static, $1)= 7584 ;; 7585 interix[[3-9]]*) 7586 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7587 # Instead, we relocate shared libraries at runtime. 7588 ;; 7589 sysv4*MP*) 7590 if test -d /usr/nec; then 7591 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 7592 fi 7593 ;; 7594 hpux*) 7595 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7596 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7597 # sets the default TLS model and affects inlining. 7598 case $host_cpu in 7599 hppa*64*) 7600 ;; 7601 *) 7602 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 7603 ;; 7604 esac 7605 ;; 7606 *qnx* | *nto*) 7607 # QNX uses GNU C++, but need to define -shared option too, otherwise 7608 # it will coredump. 7609 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 7610 ;; 7611 *) 7612 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 7613 ;; 7614 esac 7615 else 7616 case $host_os in 7617 aix[[4-9]]*) 7618 # All AIX code is PIC. 7619 if test ia64 = "$host_cpu"; then 7620 # AIX 5 now supports IA64 processor 7621 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 7622 else 7623 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 7624 fi 7625 ;; 7626 chorus*) 7627 case $cc_basename in 7628 cxch68*) 7629 # Green Hills C++ Compiler 7630 # _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" 7631 ;; 7632 esac 7633 ;; 7634 mingw* | cygwin* | os2* | pw32* | cegcc*) 7635 # This hack is so that the source file can tell whether it is being 7636 # built for inclusion in a dll (and should export symbols for example). 7637 m4_if([$1], [GCJ], [], 7638 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 7639 ;; 7640 dgux*) 7641 case $cc_basename in 7642 ec++*) 7643 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 7644 ;; 7645 ghcx*) 7646 # Green Hills C++ Compiler 7647 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 7648 ;; 7649 *) 7650 ;; 7651 esac 7652 ;; 7653 freebsd* | dragonfly*) 7654 # FreeBSD uses GNU C++ 7655 ;; 7656 hpux9* | hpux10* | hpux11*) 7657 case $cc_basename in 7658 CC*) 7659 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7660 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 7661 if test ia64 != "$host_cpu"; then 7662 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 7663 fi 7664 ;; 7665 aCC*) 7666 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7667 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 7668 case $host_cpu in 7669 hppa*64*|ia64*) 7670 # +Z the default 7671 ;; 7672 *) 7673 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 7674 ;; 7675 esac 7676 ;; 7677 *) 7678 ;; 7679 esac 7680 ;; 7681 interix*) 7682 # This is c89, which is MS Visual C++ (no shared libs) 7683 # Anyone wants to do a port? 7684 ;; 7685 irix5* | irix6* | nonstopux*) 7686 case $cc_basename in 7687 CC*) 7688 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7689 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 7690 # CC pic flag -KPIC is the default. 7691 ;; 7692 *) 7693 ;; 7694 esac 7695 ;; 7696 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 7697 case $cc_basename in 7698 KCC*) 7699 # KAI C++ Compiler 7700 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 7701 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 7702 ;; 7703 ecpc* ) 7704 # old Intel C++ for x86_64, which still supported -KPIC. 7705 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7706 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 7707 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 7708 ;; 7709 icpc* ) 7710 # Intel C++, used to be incompatible with GCC. 7711 # ICC 10 doesn't accept -KPIC any more. 7712 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7713 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 7714 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 7715 ;; 7716 pgCC* | pgcpp*) 7717 # Portland Group C++ compiler 7718 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7719 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 7720 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 7721 ;; 7722 cxx*) 7723 # Compaq C++ 7724 # Make sure the PIC flag is empty. It appears that all Alpha 7725 # Linux and Compaq Tru64 Unix objects are PIC. 7726 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 7727 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 7728 ;; 7729 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) 7730 # IBM XL 8.0, 9.0 on PPC and BlueGene 7731 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7732 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 7733 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 7734 ;; 7735 *) 7736 case `$CC -V 2>&1 | sed 5q` in 7737 *Sun\ C*) 7738 # Sun C++ 5.9 7739 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 7740 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 7741 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 7742 ;; 7743 esac 7744 ;; 7745 esac 7746 ;; 7747 lynxos*) 7748 ;; 7749 m88k*) 7750 ;; 7751 mvs*) 7752 case $cc_basename in 7753 cxx*) 7754 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 7755 ;; 7756 *) 7757 ;; 7758 esac 7759 ;; 7760 netbsd*) 7761 ;; 7762 *qnx* | *nto*) 7763 # QNX uses GNU C++, but need to define -shared option too, otherwise 7764 # it will coredump. 7765 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 7766 ;; 7767 osf3* | osf4* | osf5*) 7768 case $cc_basename in 7769 KCC*) 7770 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 7771 ;; 7772 RCC*) 7773 # Rational C++ 2.4.1 7774 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 7775 ;; 7776 cxx*) 7777 # Digital/Compaq C++ 7778 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7779 # Make sure the PIC flag is empty. It appears that all Alpha 7780 # Linux and Compaq Tru64 Unix objects are PIC. 7781 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 7782 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 7783 ;; 7784 *) 7785 ;; 7786 esac 7787 ;; 7788 psos*) 7789 ;; 7790 solaris*) 7791 case $cc_basename in 7792 CC* | sunCC*) 7793 # Sun C++ 4.2, 5.x and Centerline C++ 7794 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 7795 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 7796 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 7797 ;; 7798 gcx*) 7799 # Green Hills C++ Compiler 7800 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 7801 ;; 7802 *) 7803 ;; 7804 esac 7805 ;; 7806 sunos4*) 7807 case $cc_basename in 7808 CC*) 7809 # Sun C++ 4.x 7810 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 7811 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 7812 ;; 7813 lcc*) 7814 # Lucid 7815 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 7816 ;; 7817 *) 7818 ;; 7819 esac 7820 ;; 7821 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7822 case $cc_basename in 7823 CC*) 7824 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7825 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 7826 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 7827 ;; 7828 esac 7829 ;; 7830 tandem*) 7831 case $cc_basename in 7832 NCC*) 7833 # NonStop-UX NCC 3.20 7834 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 7835 ;; 7836 *) 7837 ;; 7838 esac 7839 ;; 7840 vxworks*) 7841 ;; 7842 *) 7843 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 7844 ;; 7845 esac 7846 fi 7847], 7848[ 7849 if test yes = "$GCC"; then 7850 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7851 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 7852 7853 case $host_os in 7854 aix*) 7855 # All AIX code is PIC. 7856 if test ia64 = "$host_cpu"; then 7857 # AIX 5 now supports IA64 processor 7858 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 7859 fi 7860 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 7861 ;; 7862 7863 amigaos*) 7864 case $host_cpu in 7865 powerpc) 7866 # see comment about AmigaOS4 .so support 7867 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 7868 ;; 7869 m68k) 7870 # FIXME: we need at least 68020 code to build shared libraries, but 7871 # adding the '-m68020' flag to GCC prevents building anything better, 7872 # like '-m68040'. 7873 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 7874 ;; 7875 esac 7876 ;; 7877 7878 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7879 # PIC is the default for these OSes. 7880 ;; 7881 7882 mingw* | cygwin* | pw32* | os2* | cegcc*) 7883 # This hack is so that the source file can tell whether it is being 7884 # built for inclusion in a dll (and should export symbols for example). 7885 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7886 # (--disable-auto-import) libraries 7887 m4_if([$1], [GCJ], [], 7888 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 7889 case $host_os in 7890 os2*) 7891 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 7892 ;; 7893 esac 7894 ;; 7895 7896 darwin* | rhapsody*) 7897 # PIC is the default on this platform 7898 # Common symbols not allowed in MH_DYLIB files 7899 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 7900 ;; 7901 7902 haiku*) 7903 # PIC is the default for Haiku. 7904 # The "-static" flag exists, but is broken. 7905 _LT_TAGVAR(lt_prog_compiler_static, $1)= 7906 ;; 7907 7908 hpux*) 7909 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7910 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7911 # sets the default TLS model and affects inlining. 7912 case $host_cpu in 7913 hppa*64*) 7914 # +Z the default 7915 ;; 7916 *) 7917 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 7918 ;; 7919 esac 7920 ;; 7921 7922 interix[[3-9]]*) 7923 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7924 # Instead, we relocate shared libraries at runtime. 7925 ;; 7926 7927 msdosdjgpp*) 7928 # Just because we use GCC doesn't mean we suddenly get shared libraries 7929 # on systems that don't support them. 7930 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 7931 enable_shared=no 7932 ;; 7933 7934 *nto* | *qnx*) 7935 # QNX uses GNU C++, but need to define -shared option too, otherwise 7936 # it will coredump. 7937 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 7938 ;; 7939 7940 sysv4*MP*) 7941 if test -d /usr/nec; then 7942 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 7943 fi 7944 ;; 7945 7946 *) 7947 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 7948 ;; 7949 esac 7950 7951 case $cc_basename in 7952 nvcc*) # Cuda Compiler Driver 2.2 7953 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' 7954 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 7955 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" 7956 fi 7957 ;; 7958 esac 7959 else 7960 # PORTME Check for flag to pass linker flags through the system compiler. 7961 case $host_os in 7962 aix*) 7963 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7964 if test ia64 = "$host_cpu"; then 7965 # AIX 5 now supports IA64 processor 7966 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 7967 else 7968 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 7969 fi 7970 ;; 7971 7972 darwin* | rhapsody*) 7973 # PIC is the default on this platform 7974 # Common symbols not allowed in MH_DYLIB files 7975 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 7976 case $cc_basename in 7977 nagfor*) 7978 # NAG Fortran compiler 7979 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' 7980 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 7981 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 7982 ;; 7983 esac 7984 ;; 7985 7986 mingw* | cygwin* | pw32* | os2* | cegcc*) 7987 # This hack is so that the source file can tell whether it is being 7988 # built for inclusion in a dll (and should export symbols for example). 7989 m4_if([$1], [GCJ], [], 7990 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 7991 case $host_os in 7992 os2*) 7993 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 7994 ;; 7995 esac 7996 ;; 7997 7998 hpux9* | hpux10* | hpux11*) 7999 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 8000 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8001 # not for PA HP-UX. 8002 case $host_cpu in 8003 hppa*64*|ia64*) 8004 # +Z the default 8005 ;; 8006 *) 8007 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 8008 ;; 8009 esac 8010 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8011 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 8012 ;; 8013 8014 irix5* | irix6* | nonstopux*) 8015 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 8016 # PIC (with -KPIC) is the default. 8017 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 8018 ;; 8019 8020 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8021 case $cc_basename in 8022 # old Intel for x86_64, which still supported -KPIC. 8023 ecc*) 8024 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 8025 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 8026 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 8027 ;; 8028 # icc used to be incompatible with GCC. 8029 # ICC 10 doesn't accept -KPIC any more. 8030 icc* | ifort*) 8031 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 8032 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 8033 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 8034 ;; 8035 # Lahey Fortran 8.1. 8036 lf95*) 8037 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 8038 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' 8039 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 8040 ;; 8041 nagfor*) 8042 # NAG Fortran compiler 8043 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' 8044 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 8045 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 8046 ;; 8047 tcc*) 8048 # Fabrice Bellard et al's Tiny C Compiler 8049 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 8050 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 8051 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 8052 ;; 8053 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8054 # Portland Group compilers (*not* the Pentium gcc compiler, 8055 # which looks to be a dead project) 8056 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 8057 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 8058 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 8059 ;; 8060 ccc*) 8061 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 8062 # All Alpha code is PIC. 8063 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 8064 ;; 8065 xl* | bgxl* | bgf* | mpixl*) 8066 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8067 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 8068 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 8069 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 8070 ;; 8071 *) 8072 case `$CC -V 2>&1 | sed 5q` in 8073 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) 8074 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8075 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 8076 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 8077 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' 8078 ;; 8079 *Sun\ F* | *Sun*Fortran*) 8080 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 8081 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 8082 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 8083 ;; 8084 *Sun\ C*) 8085 # Sun C 5.9 8086 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 8087 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 8088 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 8089 ;; 8090 *Intel*\ [[CF]]*Compiler*) 8091 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 8092 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 8093 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 8094 ;; 8095 *Portland\ Group*) 8096 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 8097 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 8098 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 8099 ;; 8100 esac 8101 ;; 8102 esac 8103 ;; 8104 8105 newsos6) 8106 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 8107 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 8108 ;; 8109 8110 *nto* | *qnx*) 8111 # QNX uses GNU C++, but need to define -shared option too, otherwise 8112 # it will coredump. 8113 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 8114 ;; 8115 8116 osf3* | osf4* | osf5*) 8117 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 8118 # All OSF/1 code is PIC. 8119 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 8120 ;; 8121 8122 rdos*) 8123 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 8124 ;; 8125 8126 solaris*) 8127 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 8128 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 8129 case $cc_basename in 8130 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8131 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 8132 *) 8133 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 8134 esac 8135 ;; 8136 8137 sunos4*) 8138 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 8139 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 8140 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 8141 ;; 8142 8143 sysv4 | sysv4.2uw2* | sysv4.3*) 8144 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 8145 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 8146 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 8147 ;; 8148 8149 sysv4*MP*) 8150 if test -d /usr/nec; then 8151 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 8152 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 8153 fi 8154 ;; 8155 8156 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8157 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 8158 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 8159 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 8160 ;; 8161 8162 unicos*) 8163 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 8164 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 8165 ;; 8166 8167 uts4*) 8168 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 8169 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 8170 ;; 8171 8172 *) 8173 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 8174 ;; 8175 esac 8176 fi 8177]) 8178case $host_os in 8179 # For platforms that do not support PIC, -DPIC is meaningless: 8180 *djgpp*) 8181 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 8182 ;; 8183 *) 8184 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" 8185 ;; 8186esac 8187 8188AC_CACHE_CHECK([for $compiler option to produce PIC], 8189 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], 8190 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) 8191_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) 8192 8193# 8194# Check to make sure the PIC flag actually works. 8195# 8196if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 8197 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], 8198 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], 8199 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], 8200 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in 8201 "" | " "*) ;; 8202 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; 8203 esac], 8204 [_LT_TAGVAR(lt_prog_compiler_pic, $1)= 8205 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 8206fi 8207_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], 8208 [Additional compiler flags for building library objects]) 8209 8210_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], 8211 [How to pass a linker flag through the compiler]) 8212# 8213# Check to make sure the static flag actually works. 8214# 8215wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" 8216_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 8217 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), 8218 $lt_tmp_static_flag, 8219 [], 8220 [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) 8221_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], 8222 [Compiler flag to prevent dynamic linking]) 8223])# _LT_COMPILER_PIC 8224 8225 8226# _LT_LINKER_SHLIBS([TAGNAME]) 8227# ---------------------------- 8228# See if the linker supports building shared libraries. 8229m4_defun([_LT_LINKER_SHLIBS], 8230[AC_REQUIRE([LT_PATH_LD])dnl 8231AC_REQUIRE([LT_PATH_NM])dnl 8232m4_require([_LT_PATH_MANIFEST_TOOL])dnl 8233m4_require([_LT_FILEUTILS_DEFAULTS])dnl 8234m4_require([_LT_DECL_EGREP])dnl 8235m4_require([_LT_DECL_SED])dnl 8236m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 8237m4_require([_LT_TAG_COMPILER])dnl 8238AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 8239m4_if([$1], [CXX], [ 8240 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8241 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 8242 case $host_os in 8243 aix[[4-9]]*) 8244 # If we're using GNU nm, then we don't want the "-C" option. 8245 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 8246 # Without the "-l" option, or with the "-B" option, AIX nm treats 8247 # weak defined symbols like other global defined symbols, whereas 8248 # GNU nm marks them as "W". 8249 # While the 'weak' keyword is ignored in the Export File, we need 8250 # it in the Import File for the 'aix-soname' feature, so we have 8251 # to replace the "-B" option with "-P" for AIX nm. 8252 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8253 _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' 8254 else 8255 _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' 8256 fi 8257 ;; 8258 pw32*) 8259 _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds 8260 ;; 8261 cygwin* | mingw* | cegcc*) 8262 case $cc_basename in 8263 cl*) 8264 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 8265 ;; 8266 *) 8267 _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' 8268 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 8269 ;; 8270 esac 8271 ;; 8272 *) 8273 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8274 ;; 8275 esac 8276], [ 8277 runpath_var= 8278 _LT_TAGVAR(allow_undefined_flag, $1)= 8279 _LT_TAGVAR(always_export_symbols, $1)=no 8280 _LT_TAGVAR(archive_cmds, $1)= 8281 _LT_TAGVAR(archive_expsym_cmds, $1)= 8282 _LT_TAGVAR(compiler_needs_object, $1)=no 8283 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 8284 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 8285 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8286 _LT_TAGVAR(hardcode_automatic, $1)=no 8287 _LT_TAGVAR(hardcode_direct, $1)=no 8288 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 8289 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 8290 _LT_TAGVAR(hardcode_libdir_separator, $1)= 8291 _LT_TAGVAR(hardcode_minus_L, $1)=no 8292 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 8293 _LT_TAGVAR(inherit_rpath, $1)=no 8294 _LT_TAGVAR(link_all_deplibs, $1)=unknown 8295 _LT_TAGVAR(module_cmds, $1)= 8296 _LT_TAGVAR(module_expsym_cmds, $1)= 8297 _LT_TAGVAR(old_archive_from_new_cmds, $1)= 8298 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= 8299 _LT_TAGVAR(thread_safe_flag_spec, $1)= 8300 _LT_TAGVAR(whole_archive_flag_spec, $1)= 8301 # include_expsyms should be a list of space-separated symbols to be *always* 8302 # included in the symbol list 8303 _LT_TAGVAR(include_expsyms, $1)= 8304 # exclude_expsyms can be an extended regexp of symbols to exclude 8305 # it will be wrapped by ' (' and ')$', so one must not match beginning or 8306 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 8307 # as well as any symbol that contains 'd'. 8308 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 8309 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8310 # platforms (ab)use it in PIC code, but their linkers get confused if 8311 # the symbol is explicitly referenced. Since portable code cannot 8312 # rely on this symbol name, it's probably fine to never include it in 8313 # preloaded symbol tables. 8314 # Exclude shared library initialization/finalization symbols. 8315dnl Note also adjust exclude_expsyms for C++ above. 8316 extract_expsyms_cmds= 8317 8318 case $host_os in 8319 cygwin* | mingw* | pw32* | cegcc*) 8320 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8321 # When not using gcc, we currently assume that we are using 8322 # Microsoft Visual C++. 8323 if test yes != "$GCC"; then 8324 with_gnu_ld=no 8325 fi 8326 ;; 8327 interix*) 8328 # we just hope/assume this is gcc and not c89 (= MSVC++) 8329 with_gnu_ld=yes 8330 ;; 8331 openbsd* | bitrig*) 8332 with_gnu_ld=no 8333 ;; 8334 esac 8335 8336 _LT_TAGVAR(ld_shlibs, $1)=yes 8337 8338 # On some targets, GNU ld is compatible enough with the native linker 8339 # that we're better off using the native interface for both. 8340 lt_use_gnu_ld_interface=no 8341 if test yes = "$with_gnu_ld"; then 8342 case $host_os in 8343 aix*) 8344 # The AIX port of GNU ld has always aspired to compatibility 8345 # with the native linker. However, as the warning in the GNU ld 8346 # block says, versions before 2.19.5* couldn't really create working 8347 # shared libraries, regardless of the interface used. 8348 case `$LD -v 2>&1` in 8349 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8350 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; 8351 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; 8352 *) 8353 lt_use_gnu_ld_interface=yes 8354 ;; 8355 esac 8356 ;; 8357 *) 8358 lt_use_gnu_ld_interface=yes 8359 ;; 8360 esac 8361 fi 8362 8363 if test yes = "$lt_use_gnu_ld_interface"; then 8364 # If archive_cmds runs LD, not CC, wlarc should be empty 8365 wlarc='$wl' 8366 8367 # Set some defaults for GNU ld with shared library support. These 8368 # are reset later if shared libraries are not supported. Putting them 8369 # here allows them to be overridden if necessary. 8370 runpath_var=LD_RUN_PATH 8371 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 8372 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 8373 # ancient GNU ld didn't support --whole-archive et. al. 8374 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8375 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 8376 else 8377 _LT_TAGVAR(whole_archive_flag_spec, $1)= 8378 fi 8379 supports_anon_versioning=no 8380 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 8381 *GNU\ gold*) supports_anon_versioning=yes ;; 8382 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 8383 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8384 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8385 *\ 2.11.*) ;; # other 2.11 versions 8386 *) supports_anon_versioning=yes ;; 8387 esac 8388 8389 # See if GNU ld supports shared libraries. 8390 case $host_os in 8391 aix[[3-9]]*) 8392 # On AIX/PPC, the GNU linker is very broken 8393 if test ia64 != "$host_cpu"; then 8394 _LT_TAGVAR(ld_shlibs, $1)=no 8395 cat <<_LT_EOF 1>&2 8396 8397*** Warning: the GNU linker, at least up to release 2.19, is reported 8398*** to be unable to reliably create shared libraries on AIX. 8399*** Therefore, libtool is disabling shared libraries support. If you 8400*** really care for shared libraries, you may want to install binutils 8401*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8402*** You will then need to restart the configuration process. 8403 8404_LT_EOF 8405 fi 8406 ;; 8407 8408 amigaos*) 8409 case $host_cpu in 8410 powerpc) 8411 # see comment about AmigaOS4 .so support 8412 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8413 _LT_TAGVAR(archive_expsym_cmds, $1)='' 8414 ;; 8415 m68k) 8416 _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)' 8417 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 8418 _LT_TAGVAR(hardcode_minus_L, $1)=yes 8419 ;; 8420 esac 8421 ;; 8422 8423 beos*) 8424 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8425 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 8426 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8427 # support --undefined. This deserves some investigation. FIXME 8428 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8429 else 8430 _LT_TAGVAR(ld_shlibs, $1)=no 8431 fi 8432 ;; 8433 8434 cygwin* | mingw* | pw32* | cegcc*) 8435 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 8436 # as there is no search path for DLLs. 8437 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 8438 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' 8439 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 8440 _LT_TAGVAR(always_export_symbols, $1)=no 8441 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 8442 _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' 8443 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 8444 8445 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8446 _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' 8447 # If the export-symbols file already is a .def file, use it as 8448 # is; otherwise, prepend EXPORTS... 8449 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 8450 cp $export_symbols $output_objdir/$soname.def; 8451 else 8452 echo EXPORTS > $output_objdir/$soname.def; 8453 cat $export_symbols >> $output_objdir/$soname.def; 8454 fi~ 8455 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8456 else 8457 _LT_TAGVAR(ld_shlibs, $1)=no 8458 fi 8459 ;; 8460 8461 haiku*) 8462 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8463 _LT_TAGVAR(link_all_deplibs, $1)=yes 8464 ;; 8465 8466 os2*) 8467 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 8468 _LT_TAGVAR(hardcode_minus_L, $1)=yes 8469 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 8470 shrext_cmds=.dll 8471 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 8472 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 8473 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 8474 $ECHO EXPORTS >> $output_objdir/$libname.def~ 8475 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 8476 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 8477 emximp -o $lib $output_objdir/$libname.def' 8478 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 8479 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 8480 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 8481 $ECHO EXPORTS >> $output_objdir/$libname.def~ 8482 prefix_cmds="$SED"~ 8483 if test EXPORTS = "`$SED 1q $export_symbols`"; then 8484 prefix_cmds="$prefix_cmds -e 1d"; 8485 fi~ 8486 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 8487 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 8488 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 8489 emximp -o $lib $output_objdir/$libname.def' 8490 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 8491 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 8492 ;; 8493 8494 interix[[3-9]]*) 8495 _LT_TAGVAR(hardcode_direct, $1)=no 8496 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8497 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 8498 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 8499 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8500 # Instead, shared libraries are loaded at an image base (0x10000000 by 8501 # default) and relocated if they conflict, which is a slow very memory 8502 # consuming and fragmenting process. To avoid this, we pick a random, 8503 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8504 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8505 _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' 8506 _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' 8507 ;; 8508 8509 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8510 tmp_diet=no 8511 if test linux-dietlibc = "$host_os"; then 8512 case $cc_basename in 8513 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8514 esac 8515 fi 8516 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8517 && test no = "$tmp_diet" 8518 then 8519 tmp_addflag=' $pic_flag' 8520 tmp_sharedflag='-shared' 8521 case $cc_basename,$host_cpu in 8522 pgcc*) # Portland Group C compiler 8523 _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' 8524 tmp_addflag=' $pic_flag' 8525 ;; 8526 pgf77* | pgf90* | pgf95* | pgfortran*) 8527 # Portland Group f77 and f90 compilers 8528 _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' 8529 tmp_addflag=' $pic_flag -Mnomain' ;; 8530 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8531 tmp_addflag=' -i_dynamic' ;; 8532 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8533 tmp_addflag=' -i_dynamic -nofor_main' ;; 8534 ifc* | ifort*) # Intel Fortran compiler 8535 tmp_addflag=' -nofor_main' ;; 8536 lf95*) # Lahey Fortran 8.1 8537 _LT_TAGVAR(whole_archive_flag_spec, $1)= 8538 tmp_sharedflag='--shared' ;; 8539 nagfor*) # NAGFOR 5.3 8540 tmp_sharedflag='-Wl,-shared' ;; 8541 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8542 tmp_sharedflag='-qmkshrobj' 8543 tmp_addflag= ;; 8544 nvcc*) # Cuda Compiler Driver 2.2 8545 _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' 8546 _LT_TAGVAR(compiler_needs_object, $1)=yes 8547 ;; 8548 esac 8549 case `$CC -V 2>&1 | sed 5q` in 8550 *Sun\ C*) # Sun C 5.9 8551 _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' 8552 _LT_TAGVAR(compiler_needs_object, $1)=yes 8553 tmp_sharedflag='-G' ;; 8554 *Sun\ F*) # Sun Fortran 8.3 8555 tmp_sharedflag='-G' ;; 8556 esac 8557 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8558 8559 if test yes = "$supports_anon_versioning"; then 8560 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 8561 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8562 echo "local: *; };" >> $output_objdir/$libname.ver~ 8563 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 8564 fi 8565 8566 case $cc_basename in 8567 tcc*) 8568 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic' 8569 ;; 8570 xlf* | bgf* | bgxlf* | mpixlf*) 8571 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8572 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' 8573 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 8574 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8575 if test yes = "$supports_anon_versioning"; then 8576 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 8577 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8578 echo "local: *; };" >> $output_objdir/$libname.ver~ 8579 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8580 fi 8581 ;; 8582 esac 8583 else 8584 _LT_TAGVAR(ld_shlibs, $1)=no 8585 fi 8586 ;; 8587 8588 netbsd*) 8589 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8590 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8591 wlarc= 8592 else 8593 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8594 _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' 8595 fi 8596 ;; 8597 8598 solaris*) 8599 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8600 _LT_TAGVAR(ld_shlibs, $1)=no 8601 cat <<_LT_EOF 1>&2 8602 8603*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8604*** create shared libraries on Solaris systems. Therefore, libtool 8605*** is disabling shared libraries support. We urge you to upgrade GNU 8606*** binutils to release 2.9.1 or newer. Another option is to modify 8607*** your PATH or compiler configuration so that the native linker is 8608*** used, and then restart. 8609 8610_LT_EOF 8611 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8612 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8613 _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' 8614 else 8615 _LT_TAGVAR(ld_shlibs, $1)=no 8616 fi 8617 ;; 8618 8619 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8620 case `$LD -v 2>&1` in 8621 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 8622 _LT_TAGVAR(ld_shlibs, $1)=no 8623 cat <<_LT_EOF 1>&2 8624 8625*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 8626*** reliably create shared libraries on SCO systems. Therefore, libtool 8627*** is disabling shared libraries support. We urge you to upgrade GNU 8628*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8629*** your PATH or compiler configuration so that the native linker is 8630*** used, and then restart. 8631 8632_LT_EOF 8633 ;; 8634 *) 8635 # For security reasons, it is highly recommended that you always 8636 # use absolute paths for naming shared libraries, and exclude the 8637 # DT_RUNPATH tag from executables and libraries. But doing so 8638 # requires that you compile everything twice, which is a pain. 8639 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8640 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 8641 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8642 _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' 8643 else 8644 _LT_TAGVAR(ld_shlibs, $1)=no 8645 fi 8646 ;; 8647 esac 8648 ;; 8649 8650 sunos4*) 8651 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8652 wlarc= 8653 _LT_TAGVAR(hardcode_direct, $1)=yes 8654 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8655 ;; 8656 8657 *) 8658 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8659 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8660 _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' 8661 else 8662 _LT_TAGVAR(ld_shlibs, $1)=no 8663 fi 8664 ;; 8665 esac 8666 8667 if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then 8668 runpath_var= 8669 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 8670 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 8671 _LT_TAGVAR(whole_archive_flag_spec, $1)= 8672 fi 8673 else 8674 # PORTME fill in a description of your system's linker (not GNU ld) 8675 case $host_os in 8676 aix3*) 8677 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 8678 _LT_TAGVAR(always_export_symbols, $1)=yes 8679 _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' 8680 # Note: this linker hardcodes the directories in LIBPATH if there 8681 # are no directories specified by -L. 8682 _LT_TAGVAR(hardcode_minus_L, $1)=yes 8683 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 8684 # Neither direct hardcoding nor static linking is supported with a 8685 # broken collect2. 8686 _LT_TAGVAR(hardcode_direct, $1)=unsupported 8687 fi 8688 ;; 8689 8690 aix[[4-9]]*) 8691 if test ia64 = "$host_cpu"; then 8692 # On IA64, the linker does run time linking by default, so we don't 8693 # have to do anything special. 8694 aix_use_runtimelinking=no 8695 exp_sym_flag='-Bexport' 8696 no_entry_flag= 8697 else 8698 # If we're using GNU nm, then we don't want the "-C" option. 8699 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 8700 # Without the "-l" option, or with the "-B" option, AIX nm treats 8701 # weak defined symbols like other global defined symbols, whereas 8702 # GNU nm marks them as "W". 8703 # While the 'weak' keyword is ignored in the Export File, we need 8704 # it in the Import File for the 'aix-soname' feature, so we have 8705 # to replace the "-B" option with "-P" for AIX nm. 8706 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8707 _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' 8708 else 8709 _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' 8710 fi 8711 aix_use_runtimelinking=no 8712 8713 # Test if we are trying to use run time linking or normal 8714 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8715 # have runtime linking enabled, and use it for executables. 8716 # For shared libraries, we enable/disable runtime linking 8717 # depending on the kind of the shared library created - 8718 # when "with_aix_soname,aix_use_runtimelinking" is: 8719 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 8720 # "aix,yes" lib.so shared, rtl:yes, for executables 8721 # lib.a static archive 8722 # "both,no" lib.so.V(shr.o) shared, rtl:yes 8723 # lib.a(lib.so.V) shared, rtl:no, for executables 8724 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 8725 # lib.a(lib.so.V) shared, rtl:no 8726 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 8727 # lib.a static archive 8728 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 8729 for ld_flag in $LDFLAGS; do 8730 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 8731 aix_use_runtimelinking=yes 8732 break 8733 fi 8734 done 8735 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 8736 # With aix-soname=svr4, we create the lib.so.V shared archives only, 8737 # so we don't have lib.a shared libs to link our executables. 8738 # We have to force runtime linking in this case. 8739 aix_use_runtimelinking=yes 8740 LDFLAGS="$LDFLAGS -Wl,-brtl" 8741 fi 8742 ;; 8743 esac 8744 8745 exp_sym_flag='-bexport' 8746 no_entry_flag='-bnoentry' 8747 fi 8748 8749 # When large executables or shared objects are built, AIX ld can 8750 # have problems creating the table of contents. If linking a library 8751 # or program results in "error TOC overflow" add -mminimal-toc to 8752 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8753 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8754 8755 _LT_TAGVAR(archive_cmds, $1)='' 8756 _LT_TAGVAR(hardcode_direct, $1)=yes 8757 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 8758 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 8759 _LT_TAGVAR(link_all_deplibs, $1)=yes 8760 _LT_TAGVAR(file_list_spec, $1)='$wl-f,' 8761 case $with_aix_soname,$aix_use_runtimelinking in 8762 aix,*) ;; # traditional, no import file 8763 svr4,* | *,yes) # use import file 8764 # The Import File defines what to hardcode. 8765 _LT_TAGVAR(hardcode_direct, $1)=no 8766 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 8767 ;; 8768 esac 8769 8770 if test yes = "$GCC"; then 8771 case $host_os in aix4.[[012]]|aix4.[[012]].*) 8772 # We only want to do this on AIX 4.2 and lower, the check 8773 # below for broken collect2 doesn't work under 4.3+ 8774 collect2name=`$CC -print-prog-name=collect2` 8775 if test -f "$collect2name" && 8776 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8777 then 8778 # We have reworked collect2 8779 : 8780 else 8781 # We have old collect2 8782 _LT_TAGVAR(hardcode_direct, $1)=unsupported 8783 # It fails to find uninstalled libraries when the uninstalled 8784 # path is not listed in the libpath. Setting hardcode_minus_L 8785 # to unsupported forces relinking 8786 _LT_TAGVAR(hardcode_minus_L, $1)=yes 8787 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 8788 _LT_TAGVAR(hardcode_libdir_separator, $1)= 8789 fi 8790 ;; 8791 esac 8792 shared_flag='-shared' 8793 if test yes = "$aix_use_runtimelinking"; then 8794 shared_flag="$shared_flag "'$wl-G' 8795 fi 8796 # Need to ensure runtime linking is disabled for the traditional 8797 # shared library, or the linker may eventually find shared libraries 8798 # /with/ Import File - we do not want to mix them. 8799 shared_flag_aix='-shared' 8800 shared_flag_svr4='-shared $wl-G' 8801 else 8802 # not using gcc 8803 if test ia64 = "$host_cpu"; then 8804 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8805 # chokes on -Wl,-G. The following line is correct: 8806 shared_flag='-G' 8807 else 8808 if test yes = "$aix_use_runtimelinking"; then 8809 shared_flag='$wl-G' 8810 else 8811 shared_flag='$wl-bM:SRE' 8812 fi 8813 shared_flag_aix='$wl-bM:SRE' 8814 shared_flag_svr4='$wl-G' 8815 fi 8816 fi 8817 8818 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' 8819 # It seems that -bexpall does not export symbols beginning with 8820 # underscore (_), so it is better to generate a list of symbols to export. 8821 _LT_TAGVAR(always_export_symbols, $1)=yes 8822 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 8823 # Warning - without using the other runtime loading flags (-brtl), 8824 # -berok will link without error, but may produce a broken library. 8825 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 8826 # Determine the default libpath from the value encoded in an 8827 # empty executable. 8828 _LT_SYS_MODULE_PATH_AIX([$1]) 8829 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 8830 _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 8831 else 8832 if test ia64 = "$host_cpu"; then 8833 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' 8834 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 8835 _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" 8836 else 8837 # Determine the default libpath from the value encoded in an 8838 # empty executable. 8839 _LT_SYS_MODULE_PATH_AIX([$1]) 8840 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 8841 # Warning - without using the other run time loading flags, 8842 # -berok will link without error, but may produce a broken library. 8843 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' 8844 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' 8845 if test yes = "$with_gnu_ld"; then 8846 # We only use this code for GNU lds that support --whole-archive. 8847 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 8848 else 8849 # Exported symbols can be pulled into shared objects from archives 8850 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 8851 fi 8852 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 8853 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 8854 # -brtl affects multiple linker settings, -berok does not and is overridden later 8855 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' 8856 if test svr4 != "$with_aix_soname"; then 8857 # This is similar to how AIX traditionally builds its shared libraries. 8858 _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' 8859 fi 8860 if test aix != "$with_aix_soname"; then 8861 _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' 8862 else 8863 # used by -dlpreopen to get the symbols 8864 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 8865 fi 8866 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' 8867 fi 8868 fi 8869 ;; 8870 8871 amigaos*) 8872 case $host_cpu in 8873 powerpc) 8874 # see comment about AmigaOS4 .so support 8875 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8876 _LT_TAGVAR(archive_expsym_cmds, $1)='' 8877 ;; 8878 m68k) 8879 _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)' 8880 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 8881 _LT_TAGVAR(hardcode_minus_L, $1)=yes 8882 ;; 8883 esac 8884 ;; 8885 8886 bsdi[[45]]*) 8887 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 8888 ;; 8889 8890 cygwin* | mingw* | pw32* | cegcc*) 8891 # When not using gcc, we currently assume that we are using 8892 # Microsoft Visual C++. 8893 # hardcode_libdir_flag_spec is actually meaningless, as there is 8894 # no search path for DLLs. 8895 case $cc_basename in 8896 cl*) 8897 # Native MSVC 8898 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 8899 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 8900 _LT_TAGVAR(always_export_symbols, $1)=yes 8901 _LT_TAGVAR(file_list_spec, $1)='@' 8902 # Tell ltmain to make .lib files, not .a files. 8903 libext=lib 8904 # Tell ltmain to make .dll files, not .so files. 8905 shrext_cmds=.dll 8906 # FIXME: Setting linknames here is a bad hack. 8907 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 8908 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 8909 cp "$export_symbols" "$output_objdir/$soname.def"; 8910 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 8911 else 8912 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 8913 fi~ 8914 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 8915 linknames=' 8916 # The linker will not automatically build a static lib if we build a DLL. 8917 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 8918 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 8919 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 8920 _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' 8921 # Don't use ranlib 8922 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 8923 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 8924 lt_tool_outputfile="@TOOL_OUTPUT@"~ 8925 case $lt_outputfile in 8926 *.exe|*.EXE) ;; 8927 *) 8928 lt_outputfile=$lt_outputfile.exe 8929 lt_tool_outputfile=$lt_tool_outputfile.exe 8930 ;; 8931 esac~ 8932 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 8933 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 8934 $RM "$lt_outputfile.manifest"; 8935 fi' 8936 ;; 8937 *) 8938 # Assume MSVC wrapper 8939 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 8940 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 8941 # Tell ltmain to make .lib files, not .a files. 8942 libext=lib 8943 # Tell ltmain to make .dll files, not .so files. 8944 shrext_cmds=.dll 8945 # FIXME: Setting linknames here is a bad hack. 8946 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 8947 # The linker will automatically build a .lib file if we build a DLL. 8948 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 8949 # FIXME: Should let the user specify the lib program. 8950 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 8951 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 8952 ;; 8953 esac 8954 ;; 8955 8956 darwin* | rhapsody*) 8957 _LT_DARWIN_LINKER_FEATURES($1) 8958 ;; 8959 8960 dgux*) 8961 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8962 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 8963 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8964 ;; 8965 8966 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8967 # support. Future versions do this automatically, but an explicit c++rt0.o 8968 # does not break anything, and helps significantly (at the cost of a little 8969 # extra space). 8970 freebsd2.2*) 8971 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8972 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 8973 _LT_TAGVAR(hardcode_direct, $1)=yes 8974 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8975 ;; 8976 8977 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8978 freebsd2.*) 8979 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8980 _LT_TAGVAR(hardcode_direct, $1)=yes 8981 _LT_TAGVAR(hardcode_minus_L, $1)=yes 8982 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8983 ;; 8984 8985 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8986 freebsd* | dragonfly*) 8987 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8988 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 8989 _LT_TAGVAR(hardcode_direct, $1)=yes 8990 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8991 ;; 8992 8993 hpux9*) 8994 if test yes = "$GCC"; then 8995 _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' 8996 else 8997 _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' 8998 fi 8999 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 9000 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 9001 _LT_TAGVAR(hardcode_direct, $1)=yes 9002 9003 # hardcode_minus_L: Not really in the search PATH, 9004 # but as the default location of the library. 9005 _LT_TAGVAR(hardcode_minus_L, $1)=yes 9006 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 9007 ;; 9008 9009 hpux10*) 9010 if test yes,no = "$GCC,$with_gnu_ld"; then 9011 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9012 else 9013 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9014 fi 9015 if test no = "$with_gnu_ld"; then 9016 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 9017 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 9018 _LT_TAGVAR(hardcode_direct, $1)=yes 9019 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 9020 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 9021 # hardcode_minus_L: Not really in the search PATH, 9022 # but as the default location of the library. 9023 _LT_TAGVAR(hardcode_minus_L, $1)=yes 9024 fi 9025 ;; 9026 9027 hpux11*) 9028 if test yes,no = "$GCC,$with_gnu_ld"; then 9029 case $host_cpu in 9030 hppa*64*) 9031 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9032 ;; 9033 ia64*) 9034 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9035 ;; 9036 *) 9037 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9038 ;; 9039 esac 9040 else 9041 case $host_cpu in 9042 hppa*64*) 9043 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9044 ;; 9045 ia64*) 9046 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9047 ;; 9048 *) 9049 m4_if($1, [], [ 9050 # Older versions of the 11.00 compiler do not understand -b yet 9051 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9052 _LT_LINKER_OPTION([if $CC understands -b], 9053 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], 9054 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], 9055 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], 9056 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) 9057 ;; 9058 esac 9059 fi 9060 if test no = "$with_gnu_ld"; then 9061 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 9062 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 9063 9064 case $host_cpu in 9065 hppa*64*|ia64*) 9066 _LT_TAGVAR(hardcode_direct, $1)=no 9067 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9068 ;; 9069 *) 9070 _LT_TAGVAR(hardcode_direct, $1)=yes 9071 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 9072 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 9073 9074 # hardcode_minus_L: Not really in the search PATH, 9075 # but as the default location of the library. 9076 _LT_TAGVAR(hardcode_minus_L, $1)=yes 9077 ;; 9078 esac 9079 fi 9080 ;; 9081 9082 irix5* | irix6* | nonstopux*) 9083 if test yes = "$GCC"; then 9084 _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' 9085 # Try to use the -exported_symbol ld option, if it does not 9086 # work, assume that -exports_file does not work either and 9087 # implicitly export all symbols. 9088 # This should be the same for all languages, so no per-tag cache variable. 9089 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], 9090 [lt_cv_irix_exported_symbol], 9091 [save_LDFLAGS=$LDFLAGS 9092 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 9093 AC_LINK_IFELSE( 9094 [AC_LANG_SOURCE( 9095 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], 9096 [C++], [[int foo (void) { return 0; }]], 9097 [Fortran 77], [[ 9098 subroutine foo 9099 end]], 9100 [Fortran], [[ 9101 subroutine foo 9102 end]])])], 9103 [lt_cv_irix_exported_symbol=yes], 9104 [lt_cv_irix_exported_symbol=no]) 9105 LDFLAGS=$save_LDFLAGS]) 9106 if test yes = "$lt_cv_irix_exported_symbol"; then 9107 _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' 9108 fi 9109 else 9110 _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' 9111 _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' 9112 fi 9113 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 9114 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 9115 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 9116 _LT_TAGVAR(inherit_rpath, $1)=yes 9117 _LT_TAGVAR(link_all_deplibs, $1)=yes 9118 ;; 9119 9120 linux*) 9121 case $cc_basename in 9122 tcc*) 9123 # Fabrice Bellard et al's Tiny C Compiler 9124 _LT_TAGVAR(ld_shlibs, $1)=yes 9125 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9126 ;; 9127 esac 9128 ;; 9129 9130 netbsd*) 9131 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9132 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9133 else 9134 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9135 fi 9136 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 9137 _LT_TAGVAR(hardcode_direct, $1)=yes 9138 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9139 ;; 9140 9141 newsos6) 9142 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9143 _LT_TAGVAR(hardcode_direct, $1)=yes 9144 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 9145 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 9146 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9147 ;; 9148 9149 *nto* | *qnx*) 9150 ;; 9151 9152 openbsd* | bitrig*) 9153 if test -f /usr/libexec/ld.so; then 9154 _LT_TAGVAR(hardcode_direct, $1)=yes 9155 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9156 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 9157 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 9158 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9159 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 9160 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 9161 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 9162 else 9163 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9164 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 9165 fi 9166 else 9167 _LT_TAGVAR(ld_shlibs, $1)=no 9168 fi 9169 ;; 9170 9171 os2*) 9172 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 9173 _LT_TAGVAR(hardcode_minus_L, $1)=yes 9174 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 9175 shrext_cmds=.dll 9176 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9177 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9178 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9179 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9180 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9181 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9182 emximp -o $lib $output_objdir/$libname.def' 9183 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9184 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9185 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9186 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9187 prefix_cmds="$SED"~ 9188 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9189 prefix_cmds="$prefix_cmds -e 1d"; 9190 fi~ 9191 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9192 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9193 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9194 emximp -o $lib $output_objdir/$libname.def' 9195 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9196 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 9197 ;; 9198 9199 osf3*) 9200 if test yes = "$GCC"; then 9201 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 9202 _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' 9203 else 9204 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 9205 _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' 9206 fi 9207 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 9208 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 9209 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 9210 ;; 9211 9212 osf4* | osf5*) # as osf3* with the addition of -msym flag 9213 if test yes = "$GCC"; then 9214 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 9215 _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' 9216 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 9217 else 9218 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 9219 _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' 9220 _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~ 9221 $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' 9222 9223 # Both c and cxx compiler support -rpath directly 9224 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 9225 fi 9226 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 9227 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 9228 ;; 9229 9230 solaris*) 9231 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' 9232 if test yes = "$GCC"; then 9233 wlarc='$wl' 9234 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9235 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9236 $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' 9237 else 9238 case `$CC -V 2>&1` in 9239 *"Compilers 5.0"*) 9240 wlarc='' 9241 _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 9242 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9243 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9244 ;; 9245 *) 9246 wlarc='$wl' 9247 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9248 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9249 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9250 ;; 9251 esac 9252 fi 9253 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 9254 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9255 case $host_os in 9256 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 9257 *) 9258 # The compiler driver will combine and reorder linker options, 9259 # but understands '-z linker_flag'. GCC discards it without '$wl', 9260 # but is careful enough not to reorder. 9261 # Supported since Solaris 2.6 (maybe 2.5.1?) 9262 if test yes = "$GCC"; then 9263 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 9264 else 9265 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 9266 fi 9267 ;; 9268 esac 9269 _LT_TAGVAR(link_all_deplibs, $1)=yes 9270 ;; 9271 9272 sunos4*) 9273 if test sequent = "$host_vendor"; then 9274 # Use $CC to link under sequent, because it throws in some extra .o 9275 # files that make .init and .fini sections work. 9276 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9277 else 9278 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9279 fi 9280 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 9281 _LT_TAGVAR(hardcode_direct, $1)=yes 9282 _LT_TAGVAR(hardcode_minus_L, $1)=yes 9283 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9284 ;; 9285 9286 sysv4) 9287 case $host_vendor in 9288 sni) 9289 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9290 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 9291 ;; 9292 siemens) 9293 ## LD is ld it makes a PLAMLIB 9294 ## CC just makes a GrossModule. 9295 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9296 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 9297 _LT_TAGVAR(hardcode_direct, $1)=no 9298 ;; 9299 motorola) 9300 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9301 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 9302 ;; 9303 esac 9304 runpath_var='LD_RUN_PATH' 9305 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9306 ;; 9307 9308 sysv4.3*) 9309 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9310 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9311 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 9312 ;; 9313 9314 sysv4*MP*) 9315 if test -d /usr/nec; then 9316 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9317 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9318 runpath_var=LD_RUN_PATH 9319 hardcode_runpath_var=yes 9320 _LT_TAGVAR(ld_shlibs, $1)=yes 9321 fi 9322 ;; 9323 9324 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 9325 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 9326 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 9327 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9328 runpath_var='LD_RUN_PATH' 9329 9330 if test yes = "$GCC"; then 9331 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9332 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9333 else 9334 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9335 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9336 fi 9337 ;; 9338 9339 sysv5* | sco3.2v5* | sco5v6*) 9340 # Note: We CANNOT use -z defs as we might desire, because we do not 9341 # link with -lc, and that would cause any symbols used from libc to 9342 # always be unresolved, which means just about no library would 9343 # ever link correctly. If we're not using GNU ld we use -z text 9344 # though, which does catch some bad symbols but isn't as heavy-handed 9345 # as -z defs. 9346 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 9347 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' 9348 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 9349 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9350 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' 9351 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 9352 _LT_TAGVAR(link_all_deplibs, $1)=yes 9353 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' 9354 runpath_var='LD_RUN_PATH' 9355 9356 if test yes = "$GCC"; then 9357 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9358 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9359 else 9360 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9361 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9362 fi 9363 ;; 9364 9365 uts4*) 9366 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9367 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 9368 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9369 ;; 9370 9371 *) 9372 _LT_TAGVAR(ld_shlibs, $1)=no 9373 ;; 9374 esac 9375 9376 if test sni = "$host_vendor"; then 9377 case $host in 9378 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9379 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym' 9380 ;; 9381 esac 9382 fi 9383 fi 9384]) 9385AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 9386test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no 9387 9388_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld 9389 9390_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl 9391_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl 9392_LT_DECL([], [extract_expsyms_cmds], [2], 9393 [The commands to extract the exported symbol list from a shared archive]) 9394 9395# 9396# Do we need to explicitly link libc? 9397# 9398case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in 9399x|xyes) 9400 # Assume -lc should be added 9401 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 9402 9403 if test yes,yes = "$GCC,$enable_shared"; then 9404 case $_LT_TAGVAR(archive_cmds, $1) in 9405 *'~'*) 9406 # FIXME: we may have to deal with multi-command sequences. 9407 ;; 9408 '$CC '*) 9409 # Test whether the compiler implicitly links with -lc since on some 9410 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9411 # to ld, don't add -lc before -lgcc. 9412 AC_CACHE_CHECK([whether -lc should be explicitly linked in], 9413 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), 9414 [$RM conftest* 9415 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9416 9417 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 9418 soname=conftest 9419 lib=conftest 9420 libobjs=conftest.$ac_objext 9421 deplibs= 9422 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) 9423 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) 9424 compiler_flags=-v 9425 linker_flags=-v 9426 verstring= 9427 output_objdir=. 9428 libname=conftest 9429 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) 9430 _LT_TAGVAR(allow_undefined_flag, $1)= 9431 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 9432 then 9433 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no 9434 else 9435 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes 9436 fi 9437 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 9438 else 9439 cat conftest.err 1>&5 9440 fi 9441 $RM conftest* 9442 ]) 9443 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) 9444 ;; 9445 esac 9446 fi 9447 ;; 9448esac 9449 9450_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], 9451 [Whether or not to add -lc for building shared libraries]) 9452_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], 9453 [enable_shared_with_static_runtimes], [0], 9454 [Whether or not to disallow shared libs when runtime libs are static]) 9455_LT_TAGDECL([], [export_dynamic_flag_spec], [1], 9456 [Compiler flag to allow reflexive dlopens]) 9457_LT_TAGDECL([], [whole_archive_flag_spec], [1], 9458 [Compiler flag to generate shared objects directly from archives]) 9459_LT_TAGDECL([], [compiler_needs_object], [1], 9460 [Whether the compiler copes with passing no objects directly]) 9461_LT_TAGDECL([], [old_archive_from_new_cmds], [2], 9462 [Create an old-style archive from a shared archive]) 9463_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], 9464 [Create a temporary old-style archive to link instead of a shared archive]) 9465_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) 9466_LT_TAGDECL([], [archive_expsym_cmds], [2]) 9467_LT_TAGDECL([], [module_cmds], [2], 9468 [Commands used to build a loadable module if different from building 9469 a shared archive.]) 9470_LT_TAGDECL([], [module_expsym_cmds], [2]) 9471_LT_TAGDECL([], [with_gnu_ld], [1], 9472 [Whether we are building with GNU ld or not]) 9473_LT_TAGDECL([], [allow_undefined_flag], [1], 9474 [Flag that allows shared libraries with undefined symbols to be built]) 9475_LT_TAGDECL([], [no_undefined_flag], [1], 9476 [Flag that enforces no undefined symbols]) 9477_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], 9478 [Flag to hardcode $libdir into a binary during linking. 9479 This must work even if $libdir does not exist]) 9480_LT_TAGDECL([], [hardcode_libdir_separator], [1], 9481 [Whether we need a single "-rpath" flag with a separated argument]) 9482_LT_TAGDECL([], [hardcode_direct], [0], 9483 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes 9484 DIR into the resulting binary]) 9485_LT_TAGDECL([], [hardcode_direct_absolute], [0], 9486 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes 9487 DIR into the resulting binary and the resulting library dependency is 9488 "absolute", i.e impossible to change by setting $shlibpath_var if the 9489 library is relocated]) 9490_LT_TAGDECL([], [hardcode_minus_L], [0], 9491 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR 9492 into the resulting binary]) 9493_LT_TAGDECL([], [hardcode_shlibpath_var], [0], 9494 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 9495 into the resulting binary]) 9496_LT_TAGDECL([], [hardcode_automatic], [0], 9497 [Set to "yes" if building a shared library automatically hardcodes DIR 9498 into the library and all subsequent libraries and executables linked 9499 against it]) 9500_LT_TAGDECL([], [inherit_rpath], [0], 9501 [Set to yes if linker adds runtime paths of dependent libraries 9502 to runtime path list]) 9503_LT_TAGDECL([], [link_all_deplibs], [0], 9504 [Whether libtool must link a program against all its dependency libraries]) 9505_LT_TAGDECL([], [always_export_symbols], [0], 9506 [Set to "yes" if exported symbols are required]) 9507_LT_TAGDECL([], [export_symbols_cmds], [2], 9508 [The commands to list exported symbols]) 9509_LT_TAGDECL([], [exclude_expsyms], [1], 9510 [Symbols that should not be listed in the preloaded symbols]) 9511_LT_TAGDECL([], [include_expsyms], [1], 9512 [Symbols that must always be exported]) 9513_LT_TAGDECL([], [prelink_cmds], [2], 9514 [Commands necessary for linking programs (against libraries) with templates]) 9515_LT_TAGDECL([], [postlink_cmds], [2], 9516 [Commands necessary for finishing linking programs]) 9517_LT_TAGDECL([], [file_list_spec], [1], 9518 [Specify filename containing input files]) 9519dnl FIXME: Not yet implemented 9520dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], 9521dnl [Compiler flag to generate thread safe objects]) 9522])# _LT_LINKER_SHLIBS 9523 9524 9525# _LT_LANG_C_CONFIG([TAG]) 9526# ------------------------ 9527# Ensure that the configuration variables for a C compiler are suitably 9528# defined. These variables are subsequently used by _LT_CONFIG to write 9529# the compiler configuration to 'libtool'. 9530m4_defun([_LT_LANG_C_CONFIG], 9531[m4_require([_LT_DECL_EGREP])dnl 9532lt_save_CC=$CC 9533AC_LANG_PUSH(C) 9534 9535# Source file extension for C test sources. 9536ac_ext=c 9537 9538# Object file extension for compiled C test sources. 9539objext=o 9540_LT_TAGVAR(objext, $1)=$objext 9541 9542# Code to be used in simple compile tests 9543lt_simple_compile_test_code="int some_variable = 0;" 9544 9545# Code to be used in simple link tests 9546lt_simple_link_test_code='int main(){return(0);}' 9547 9548_LT_TAG_COMPILER 9549# Save the default compiler, since it gets overwritten when the other 9550# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9551compiler_DEFAULT=$CC 9552 9553# save warnings/boilerplate of simple test code 9554_LT_COMPILER_BOILERPLATE 9555_LT_LINKER_BOILERPLATE 9556 9557if test -n "$compiler"; then 9558 _LT_COMPILER_NO_RTTI($1) 9559 _LT_COMPILER_PIC($1) 9560 _LT_COMPILER_C_O($1) 9561 _LT_COMPILER_FILE_LOCKS($1) 9562 _LT_LINKER_SHLIBS($1) 9563 _LT_SYS_DYNAMIC_LINKER($1) 9564 _LT_LINKER_HARDCODE_LIBPATH($1) 9565 LT_SYS_DLOPEN_SELF 9566 _LT_CMD_STRIPLIB 9567 9568 # Report what library types will actually be built 9569 AC_MSG_CHECKING([if libtool supports shared libraries]) 9570 AC_MSG_RESULT([$can_build_shared]) 9571 9572 AC_MSG_CHECKING([whether to build shared libraries]) 9573 test no = "$can_build_shared" && enable_shared=no 9574 9575 # On AIX, shared libraries and static libraries use the same namespace, and 9576 # are all built from PIC. 9577 case $host_os in 9578 aix3*) 9579 test yes = "$enable_shared" && enable_static=no 9580 if test -n "$RANLIB"; then 9581 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9582 postinstall_cmds='$RANLIB $lib' 9583 fi 9584 ;; 9585 9586 aix[[4-9]]*) 9587 if test ia64 != "$host_cpu"; then 9588 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 9589 yes,aix,yes) ;; # shared object as lib.so file only 9590 yes,svr4,*) ;; # shared object as lib.so archive member only 9591 yes,*) enable_static=no ;; # shared object in lib.a archive as well 9592 esac 9593 fi 9594 ;; 9595 esac 9596 AC_MSG_RESULT([$enable_shared]) 9597 9598 AC_MSG_CHECKING([whether to build static libraries]) 9599 # Make sure either enable_shared or enable_static is yes. 9600 test yes = "$enable_shared" || enable_static=yes 9601 AC_MSG_RESULT([$enable_static]) 9602 9603 _LT_CONFIG($1) 9604fi 9605AC_LANG_POP 9606CC=$lt_save_CC 9607])# _LT_LANG_C_CONFIG 9608 9609 9610# _LT_LANG_CXX_CONFIG([TAG]) 9611# -------------------------- 9612# Ensure that the configuration variables for a C++ compiler are suitably 9613# defined. These variables are subsequently used by _LT_CONFIG to write 9614# the compiler configuration to 'libtool'. 9615m4_defun([_LT_LANG_CXX_CONFIG], 9616[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 9617m4_require([_LT_DECL_EGREP])dnl 9618m4_require([_LT_PATH_MANIFEST_TOOL])dnl 9619if test -n "$CXX" && ( test no != "$CXX" && 9620 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 9621 (test g++ != "$CXX"))); then 9622 AC_PROG_CXXCPP 9623else 9624 _lt_caught_CXX_error=yes 9625fi 9626 9627AC_LANG_PUSH(C++) 9628_LT_TAGVAR(archive_cmds_need_lc, $1)=no 9629_LT_TAGVAR(allow_undefined_flag, $1)= 9630_LT_TAGVAR(always_export_symbols, $1)=no 9631_LT_TAGVAR(archive_expsym_cmds, $1)= 9632_LT_TAGVAR(compiler_needs_object, $1)=no 9633_LT_TAGVAR(export_dynamic_flag_spec, $1)= 9634_LT_TAGVAR(hardcode_direct, $1)=no 9635_LT_TAGVAR(hardcode_direct_absolute, $1)=no 9636_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 9637_LT_TAGVAR(hardcode_libdir_separator, $1)= 9638_LT_TAGVAR(hardcode_minus_L, $1)=no 9639_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 9640_LT_TAGVAR(hardcode_automatic, $1)=no 9641_LT_TAGVAR(inherit_rpath, $1)=no 9642_LT_TAGVAR(module_cmds, $1)= 9643_LT_TAGVAR(module_expsym_cmds, $1)= 9644_LT_TAGVAR(link_all_deplibs, $1)=unknown 9645_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 9646_LT_TAGVAR(reload_flag, $1)=$reload_flag 9647_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 9648_LT_TAGVAR(no_undefined_flag, $1)= 9649_LT_TAGVAR(whole_archive_flag_spec, $1)= 9650_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 9651 9652# Source file extension for C++ test sources. 9653ac_ext=cpp 9654 9655# Object file extension for compiled C++ test sources. 9656objext=o 9657_LT_TAGVAR(objext, $1)=$objext 9658 9659# No sense in running all these tests if we already determined that 9660# the CXX compiler isn't working. Some variables (like enable_shared) 9661# are currently assumed to apply to all compilers on this platform, 9662# and will be corrupted by setting them based on a non-working compiler. 9663if test yes != "$_lt_caught_CXX_error"; then 9664 # Code to be used in simple compile tests 9665 lt_simple_compile_test_code="int some_variable = 0;" 9666 9667 # Code to be used in simple link tests 9668 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 9669 9670 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 9671 _LT_TAG_COMPILER 9672 9673 # save warnings/boilerplate of simple test code 9674 _LT_COMPILER_BOILERPLATE 9675 _LT_LINKER_BOILERPLATE 9676 9677 # Allow CC to be a program name with arguments. 9678 lt_save_CC=$CC 9679 lt_save_CFLAGS=$CFLAGS 9680 lt_save_LD=$LD 9681 lt_save_GCC=$GCC 9682 GCC=$GXX 9683 lt_save_with_gnu_ld=$with_gnu_ld 9684 lt_save_path_LD=$lt_cv_path_LD 9685 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 9686 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 9687 else 9688 $as_unset lt_cv_prog_gnu_ld 9689 fi 9690 if test -n "${lt_cv_path_LDCXX+set}"; then 9691 lt_cv_path_LD=$lt_cv_path_LDCXX 9692 else 9693 $as_unset lt_cv_path_LD 9694 fi 9695 test -z "${LDCXX+set}" || LD=$LDCXX 9696 CC=${CXX-"c++"} 9697 CFLAGS=$CXXFLAGS 9698 compiler=$CC 9699 _LT_TAGVAR(compiler, $1)=$CC 9700 _LT_CC_BASENAME([$compiler]) 9701 9702 if test -n "$compiler"; then 9703 # We don't want -fno-exception when compiling C++ code, so set the 9704 # no_builtin_flag separately 9705 if test yes = "$GXX"; then 9706 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 9707 else 9708 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 9709 fi 9710 9711 if test yes = "$GXX"; then 9712 # Set up default GNU C++ configuration 9713 9714 LT_PATH_LD 9715 9716 # Check if GNU C++ uses GNU ld as the underlying linker, since the 9717 # archiving commands below assume that GNU ld is being used. 9718 if test yes = "$with_gnu_ld"; then 9719 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 9720 _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' 9721 9722 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 9723 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 9724 9725 # If archive_cmds runs LD, not CC, wlarc should be empty 9726 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 9727 # investigate it a little bit more. (MM) 9728 wlarc='$wl' 9729 9730 # ancient GNU ld didn't support --whole-archive et. al. 9731 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 9732 $GREP 'no-whole-archive' > /dev/null; then 9733 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9734 else 9735 _LT_TAGVAR(whole_archive_flag_spec, $1)= 9736 fi 9737 else 9738 with_gnu_ld=no 9739 wlarc= 9740 9741 # A generic and very simple default shared library creation 9742 # command for GNU C++ for the case where it uses the native 9743 # linker, instead of GNU ld. If possible, this setting should 9744 # overridden to take advantage of the native linker features on 9745 # the platform it is being used on. 9746 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 9747 fi 9748 9749 # Commands to make compiler produce verbose output that lists 9750 # what "hidden" libraries, object files and flags are used when 9751 # linking a shared library. 9752 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 9753 9754 else 9755 GXX=no 9756 with_gnu_ld=no 9757 wlarc= 9758 fi 9759 9760 # PORTME: fill in a description of your system's C++ link characteristics 9761 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 9762 _LT_TAGVAR(ld_shlibs, $1)=yes 9763 case $host_os in 9764 aix3*) 9765 # FIXME: insert proper C++ library support 9766 _LT_TAGVAR(ld_shlibs, $1)=no 9767 ;; 9768 aix[[4-9]]*) 9769 if test ia64 = "$host_cpu"; then 9770 # On IA64, the linker does run time linking by default, so we don't 9771 # have to do anything special. 9772 aix_use_runtimelinking=no 9773 exp_sym_flag='-Bexport' 9774 no_entry_flag= 9775 else 9776 aix_use_runtimelinking=no 9777 9778 # Test if we are trying to use run time linking or normal 9779 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9780 # have runtime linking enabled, and use it for executables. 9781 # For shared libraries, we enable/disable runtime linking 9782 # depending on the kind of the shared library created - 9783 # when "with_aix_soname,aix_use_runtimelinking" is: 9784 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9785 # "aix,yes" lib.so shared, rtl:yes, for executables 9786 # lib.a static archive 9787 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9788 # lib.a(lib.so.V) shared, rtl:no, for executables 9789 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9790 # lib.a(lib.so.V) shared, rtl:no 9791 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9792 # lib.a static archive 9793 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 9794 for ld_flag in $LDFLAGS; do 9795 case $ld_flag in 9796 *-brtl*) 9797 aix_use_runtimelinking=yes 9798 break 9799 ;; 9800 esac 9801 done 9802 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9803 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9804 # so we don't have lib.a shared libs to link our executables. 9805 # We have to force runtime linking in this case. 9806 aix_use_runtimelinking=yes 9807 LDFLAGS="$LDFLAGS -Wl,-brtl" 9808 fi 9809 ;; 9810 esac 9811 9812 exp_sym_flag='-bexport' 9813 no_entry_flag='-bnoentry' 9814 fi 9815 9816 # When large executables or shared objects are built, AIX ld can 9817 # have problems creating the table of contents. If linking a library 9818 # or program results in "error TOC overflow" add -mminimal-toc to 9819 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9820 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9821 9822 _LT_TAGVAR(archive_cmds, $1)='' 9823 _LT_TAGVAR(hardcode_direct, $1)=yes 9824 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 9825 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 9826 _LT_TAGVAR(link_all_deplibs, $1)=yes 9827 _LT_TAGVAR(file_list_spec, $1)='$wl-f,' 9828 case $with_aix_soname,$aix_use_runtimelinking in 9829 aix,*) ;; # no import file 9830 svr4,* | *,yes) # use import file 9831 # The Import File defines what to hardcode. 9832 _LT_TAGVAR(hardcode_direct, $1)=no 9833 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 9834 ;; 9835 esac 9836 9837 if test yes = "$GXX"; then 9838 case $host_os in aix4.[[012]]|aix4.[[012]].*) 9839 # We only want to do this on AIX 4.2 and lower, the check 9840 # below for broken collect2 doesn't work under 4.3+ 9841 collect2name=`$CC -print-prog-name=collect2` 9842 if test -f "$collect2name" && 9843 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9844 then 9845 # We have reworked collect2 9846 : 9847 else 9848 # We have old collect2 9849 _LT_TAGVAR(hardcode_direct, $1)=unsupported 9850 # It fails to find uninstalled libraries when the uninstalled 9851 # path is not listed in the libpath. Setting hardcode_minus_L 9852 # to unsupported forces relinking 9853 _LT_TAGVAR(hardcode_minus_L, $1)=yes 9854 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 9855 _LT_TAGVAR(hardcode_libdir_separator, $1)= 9856 fi 9857 esac 9858 shared_flag='-shared' 9859 if test yes = "$aix_use_runtimelinking"; then 9860 shared_flag=$shared_flag' $wl-G' 9861 fi 9862 # Need to ensure runtime linking is disabled for the traditional 9863 # shared library, or the linker may eventually find shared libraries 9864 # /with/ Import File - we do not want to mix them. 9865 shared_flag_aix='-shared' 9866 shared_flag_svr4='-shared $wl-G' 9867 else 9868 # not using gcc 9869 if test ia64 = "$host_cpu"; then 9870 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9871 # chokes on -Wl,-G. The following line is correct: 9872 shared_flag='-G' 9873 else 9874 if test yes = "$aix_use_runtimelinking"; then 9875 shared_flag='$wl-G' 9876 else 9877 shared_flag='$wl-bM:SRE' 9878 fi 9879 shared_flag_aix='$wl-bM:SRE' 9880 shared_flag_svr4='$wl-G' 9881 fi 9882 fi 9883 9884 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' 9885 # It seems that -bexpall does not export symbols beginning with 9886 # underscore (_), so it is better to generate a list of symbols to 9887 # export. 9888 _LT_TAGVAR(always_export_symbols, $1)=yes 9889 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9890 # Warning - without using the other runtime loading flags (-brtl), 9891 # -berok will link without error, but may produce a broken library. 9892 # The "-G" linker flag allows undefined symbols. 9893 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok' 9894 # Determine the default libpath from the value encoded in an empty 9895 # executable. 9896 _LT_SYS_MODULE_PATH_AIX([$1]) 9897 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 9898 9899 _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 9900 else 9901 if test ia64 = "$host_cpu"; then 9902 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' 9903 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 9904 _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" 9905 else 9906 # Determine the default libpath from the value encoded in an 9907 # empty executable. 9908 _LT_SYS_MODULE_PATH_AIX([$1]) 9909 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 9910 # Warning - without using the other run time loading flags, 9911 # -berok will link without error, but may produce a broken library. 9912 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' 9913 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' 9914 if test yes = "$with_gnu_ld"; then 9915 # We only use this code for GNU lds that support --whole-archive. 9916 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 9917 else 9918 # Exported symbols can be pulled into shared objects from archives 9919 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 9920 fi 9921 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 9922 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9923 # -brtl affects multiple linker settings, -berok does not and is overridden later 9924 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' 9925 if test svr4 != "$with_aix_soname"; then 9926 # This is similar to how AIX traditionally builds its shared 9927 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 9928 _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' 9929 fi 9930 if test aix != "$with_aix_soname"; then 9931 _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' 9932 else 9933 # used by -dlpreopen to get the symbols 9934 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9935 fi 9936 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' 9937 fi 9938 fi 9939 ;; 9940 9941 beos*) 9942 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9943 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 9944 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9945 # support --undefined. This deserves some investigation. FIXME 9946 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9947 else 9948 _LT_TAGVAR(ld_shlibs, $1)=no 9949 fi 9950 ;; 9951 9952 chorus*) 9953 case $cc_basename in 9954 *) 9955 # FIXME: insert proper C++ library support 9956 _LT_TAGVAR(ld_shlibs, $1)=no 9957 ;; 9958 esac 9959 ;; 9960 9961 cygwin* | mingw* | pw32* | cegcc*) 9962 case $GXX,$cc_basename in 9963 ,cl* | no,cl*) 9964 # Native MSVC 9965 # hardcode_libdir_flag_spec is actually meaningless, as there is 9966 # no search path for DLLs. 9967 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 9968 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 9969 _LT_TAGVAR(always_export_symbols, $1)=yes 9970 _LT_TAGVAR(file_list_spec, $1)='@' 9971 # Tell ltmain to make .lib files, not .a files. 9972 libext=lib 9973 # Tell ltmain to make .dll files, not .so files. 9974 shrext_cmds=.dll 9975 # FIXME: Setting linknames here is a bad hack. 9976 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9977 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 9978 cp "$export_symbols" "$output_objdir/$soname.def"; 9979 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9980 else 9981 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9982 fi~ 9983 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9984 linknames=' 9985 # The linker will not automatically build a static lib if we build a DLL. 9986 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 9987 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 9988 # Don't use ranlib 9989 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 9990 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 9991 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9992 case $lt_outputfile in 9993 *.exe|*.EXE) ;; 9994 *) 9995 lt_outputfile=$lt_outputfile.exe 9996 lt_tool_outputfile=$lt_tool_outputfile.exe 9997 ;; 9998 esac~ 9999 func_to_tool_file "$lt_outputfile"~ 10000 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10001 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10002 $RM "$lt_outputfile.manifest"; 10003 fi' 10004 ;; 10005 *) 10006 # g++ 10007 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 10008 # as there is no search path for DLLs. 10009 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 10010 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' 10011 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 10012 _LT_TAGVAR(always_export_symbols, $1)=no 10013 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 10014 10015 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10016 _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' 10017 # If the export-symbols file already is a .def file, use it as 10018 # is; otherwise, prepend EXPORTS... 10019 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 10020 cp $export_symbols $output_objdir/$soname.def; 10021 else 10022 echo EXPORTS > $output_objdir/$soname.def; 10023 cat $export_symbols >> $output_objdir/$soname.def; 10024 fi~ 10025 $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' 10026 else 10027 _LT_TAGVAR(ld_shlibs, $1)=no 10028 fi 10029 ;; 10030 esac 10031 ;; 10032 darwin* | rhapsody*) 10033 _LT_DARWIN_LINKER_FEATURES($1) 10034 ;; 10035 10036 os2*) 10037 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 10038 _LT_TAGVAR(hardcode_minus_L, $1)=yes 10039 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 10040 shrext_cmds=.dll 10041 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10042 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10043 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10044 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10045 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10046 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10047 emximp -o $lib $output_objdir/$libname.def' 10048 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10049 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10050 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10051 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10052 prefix_cmds="$SED"~ 10053 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10054 prefix_cmds="$prefix_cmds -e 1d"; 10055 fi~ 10056 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10057 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10058 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10059 emximp -o $lib $output_objdir/$libname.def' 10060 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10061 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 10062 ;; 10063 10064 dgux*) 10065 case $cc_basename in 10066 ec++*) 10067 # FIXME: insert proper C++ library support 10068 _LT_TAGVAR(ld_shlibs, $1)=no 10069 ;; 10070 ghcx*) 10071 # Green Hills C++ Compiler 10072 # FIXME: insert proper C++ library support 10073 _LT_TAGVAR(ld_shlibs, $1)=no 10074 ;; 10075 *) 10076 # FIXME: insert proper C++ library support 10077 _LT_TAGVAR(ld_shlibs, $1)=no 10078 ;; 10079 esac 10080 ;; 10081 10082 freebsd2.*) 10083 # C++ shared libraries reported to be fairly broken before 10084 # switch to ELF 10085 _LT_TAGVAR(ld_shlibs, $1)=no 10086 ;; 10087 10088 freebsd-elf*) 10089 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 10090 ;; 10091 10092 freebsd* | dragonfly*) 10093 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10094 # conventions 10095 _LT_TAGVAR(ld_shlibs, $1)=yes 10096 ;; 10097 10098 haiku*) 10099 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10100 _LT_TAGVAR(link_all_deplibs, $1)=yes 10101 ;; 10102 10103 hpux9*) 10104 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 10105 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 10106 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 10107 _LT_TAGVAR(hardcode_direct, $1)=yes 10108 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 10109 # but as the default 10110 # location of the library. 10111 10112 case $cc_basename in 10113 CC*) 10114 # FIXME: insert proper C++ library support 10115 _LT_TAGVAR(ld_shlibs, $1)=no 10116 ;; 10117 aCC*) 10118 _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' 10119 # Commands to make compiler produce verbose output that lists 10120 # what "hidden" libraries, object files and flags are used when 10121 # linking a shared library. 10122 # 10123 # There doesn't appear to be a way to prevent this compiler from 10124 # explicitly linking system object files so we need to strip them 10125 # from the output so that they don't get included in the library 10126 # dependencies. 10127 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"' 10128 ;; 10129 *) 10130 if test yes = "$GXX"; then 10131 _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' 10132 else 10133 # FIXME: insert proper C++ library support 10134 _LT_TAGVAR(ld_shlibs, $1)=no 10135 fi 10136 ;; 10137 esac 10138 ;; 10139 10140 hpux10*|hpux11*) 10141 if test no = "$with_gnu_ld"; then 10142 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 10143 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 10144 10145 case $host_cpu in 10146 hppa*64*|ia64*) 10147 ;; 10148 *) 10149 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 10150 ;; 10151 esac 10152 fi 10153 case $host_cpu in 10154 hppa*64*|ia64*) 10155 _LT_TAGVAR(hardcode_direct, $1)=no 10156 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 10157 ;; 10158 *) 10159 _LT_TAGVAR(hardcode_direct, $1)=yes 10160 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 10161 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 10162 # but as the default 10163 # location of the library. 10164 ;; 10165 esac 10166 10167 case $cc_basename in 10168 CC*) 10169 # FIXME: insert proper C++ library support 10170 _LT_TAGVAR(ld_shlibs, $1)=no 10171 ;; 10172 aCC*) 10173 case $host_cpu in 10174 hppa*64*) 10175 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10176 ;; 10177 ia64*) 10178 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10179 ;; 10180 *) 10181 _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' 10182 ;; 10183 esac 10184 # Commands to make compiler produce verbose output that lists 10185 # what "hidden" libraries, object files and flags are used when 10186 # linking a shared library. 10187 # 10188 # There doesn't appear to be a way to prevent this compiler from 10189 # explicitly linking system object files so we need to strip them 10190 # from the output so that they don't get included in the library 10191 # dependencies. 10192 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"' 10193 ;; 10194 *) 10195 if test yes = "$GXX"; then 10196 if test no = "$with_gnu_ld"; then 10197 case $host_cpu in 10198 hppa*64*) 10199 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10200 ;; 10201 ia64*) 10202 _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' 10203 ;; 10204 *) 10205 _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' 10206 ;; 10207 esac 10208 fi 10209 else 10210 # FIXME: insert proper C++ library support 10211 _LT_TAGVAR(ld_shlibs, $1)=no 10212 fi 10213 ;; 10214 esac 10215 ;; 10216 10217 interix[[3-9]]*) 10218 _LT_TAGVAR(hardcode_direct, $1)=no 10219 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 10220 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 10221 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 10222 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10223 # Instead, shared libraries are loaded at an image base (0x10000000 by 10224 # default) and relocated if they conflict, which is a slow very memory 10225 # consuming and fragmenting process. To avoid this, we pick a random, 10226 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10227 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10228 _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' 10229 _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' 10230 ;; 10231 irix5* | irix6*) 10232 case $cc_basename in 10233 CC*) 10234 # SGI C++ 10235 _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' 10236 10237 # Archives containing C++ object files must be created using 10238 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10239 # necessary to make sure instantiated templates are included 10240 # in the archive. 10241 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 10242 ;; 10243 *) 10244 if test yes = "$GXX"; then 10245 if test no = "$with_gnu_ld"; then 10246 _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' 10247 else 10248 _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' 10249 fi 10250 fi 10251 _LT_TAGVAR(link_all_deplibs, $1)=yes 10252 ;; 10253 esac 10254 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 10255 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 10256 _LT_TAGVAR(inherit_rpath, $1)=yes 10257 ;; 10258 10259 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10260 case $cc_basename in 10261 KCC*) 10262 # Kuck and Associates, Inc. (KAI) C++ Compiler 10263 10264 # KCC will only create a shared library if the output file 10265 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10266 # to its proper name (with version) after linking. 10267 _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' 10268 _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' 10269 # Commands to make compiler produce verbose output that lists 10270 # what "hidden" libraries, object files and flags are used when 10271 # linking a shared library. 10272 # 10273 # There doesn't appear to be a way to prevent this compiler from 10274 # explicitly linking system object files so we need to strip them 10275 # from the output so that they don't get included in the library 10276 # dependencies. 10277 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"' 10278 10279 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 10280 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 10281 10282 # Archives containing C++ object files must be created using 10283 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10284 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 10285 ;; 10286 icpc* | ecpc* ) 10287 # Intel C++ 10288 with_gnu_ld=yes 10289 # version 8.0 and above of icpc choke on multiply defined symbols 10290 # if we add $predep_objects and $postdep_objects, however 7.1 and 10291 # earlier do not add the objects themselves. 10292 case `$CC -V 2>&1` in 10293 *"Version 7."*) 10294 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 10295 _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' 10296 ;; 10297 *) # Version 8.0 or newer 10298 tmp_idyn= 10299 case $host_cpu in 10300 ia64*) tmp_idyn=' -i_dynamic';; 10301 esac 10302 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10303 _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' 10304 ;; 10305 esac 10306 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 10307 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 10308 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 10309 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 10310 ;; 10311 pgCC* | pgcpp*) 10312 # Portland Group C++ compiler 10313 case `$CC -V` in 10314 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) 10315 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 10316 rm -rf $tpldir~ 10317 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 10318 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 10319 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 10320 rm -rf $tpldir~ 10321 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 10322 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 10323 $RANLIB $oldlib' 10324 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 10325 rm -rf $tpldir~ 10326 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 10327 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 10328 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 10329 rm -rf $tpldir~ 10330 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 10331 $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' 10332 ;; 10333 *) # Version 6 and above use weak symbols 10334 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 10335 _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' 10336 ;; 10337 esac 10338 10339 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir' 10340 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 10341 _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' 10342 ;; 10343 cxx*) 10344 # Compaq C++ 10345 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 10346 _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' 10347 10348 runpath_var=LD_RUN_PATH 10349 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 10350 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 10351 10352 # Commands to make compiler produce verbose output that lists 10353 # what "hidden" libraries, object files and flags are used when 10354 # linking a shared library. 10355 # 10356 # There doesn't appear to be a way to prevent this compiler from 10357 # explicitly linking system object files so we need to strip them 10358 # from the output so that they don't get included in the library 10359 # dependencies. 10360 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' 10361 ;; 10362 xl* | mpixl* | bgxl*) 10363 # IBM XL 8.0 on PPC, with GNU ld 10364 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 10365 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 10366 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10367 if test yes = "$supports_anon_versioning"; then 10368 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 10369 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10370 echo "local: *; };" >> $output_objdir/$libname.ver~ 10371 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10372 fi 10373 ;; 10374 *) 10375 case `$CC -V 2>&1 | sed 5q` in 10376 *Sun\ C*) 10377 # Sun C++ 5.9 10378 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 10379 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10380 _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' 10381 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 10382 _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' 10383 _LT_TAGVAR(compiler_needs_object, $1)=yes 10384 10385 # Not sure whether something based on 10386 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 10387 # would be better. 10388 output_verbose_link_cmd='func_echo_all' 10389 10390 # Archives containing C++ object files must be created using 10391 # "CC -xar", where "CC" is the Sun C++ compiler. This is 10392 # necessary to make sure instantiated templates are included 10393 # in the archive. 10394 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 10395 ;; 10396 esac 10397 ;; 10398 esac 10399 ;; 10400 10401 lynxos*) 10402 # FIXME: insert proper C++ library support 10403 _LT_TAGVAR(ld_shlibs, $1)=no 10404 ;; 10405 10406 m88k*) 10407 # FIXME: insert proper C++ library support 10408 _LT_TAGVAR(ld_shlibs, $1)=no 10409 ;; 10410 10411 mvs*) 10412 case $cc_basename in 10413 cxx*) 10414 # FIXME: insert proper C++ library support 10415 _LT_TAGVAR(ld_shlibs, $1)=no 10416 ;; 10417 *) 10418 # FIXME: insert proper C++ library support 10419 _LT_TAGVAR(ld_shlibs, $1)=no 10420 ;; 10421 esac 10422 ;; 10423 10424 netbsd*) 10425 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10426 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10427 wlarc= 10428 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 10429 _LT_TAGVAR(hardcode_direct, $1)=yes 10430 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 10431 fi 10432 # Workaround some broken pre-1.5 toolchains 10433 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10434 ;; 10435 10436 *nto* | *qnx*) 10437 _LT_TAGVAR(ld_shlibs, $1)=yes 10438 ;; 10439 10440 openbsd* | bitrig*) 10441 if test -f /usr/libexec/ld.so; then 10442 _LT_TAGVAR(hardcode_direct, $1)=yes 10443 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 10444 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 10445 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10446 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 10447 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 10448 _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' 10449 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 10450 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10451 fi 10452 output_verbose_link_cmd=func_echo_all 10453 else 10454 _LT_TAGVAR(ld_shlibs, $1)=no 10455 fi 10456 ;; 10457 10458 osf3* | osf4* | osf5*) 10459 case $cc_basename in 10460 KCC*) 10461 # Kuck and Associates, Inc. (KAI) C++ Compiler 10462 10463 # KCC will only create a shared library if the output file 10464 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10465 # to its proper name (with version) after linking. 10466 _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' 10467 10468 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 10469 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 10470 10471 # Archives containing C++ object files must be created using 10472 # the KAI C++ compiler. 10473 case $host in 10474 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; 10475 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; 10476 esac 10477 ;; 10478 RCC*) 10479 # Rational C++ 2.4.1 10480 # FIXME: insert proper C++ library support 10481 _LT_TAGVAR(ld_shlibs, $1)=no 10482 ;; 10483 cxx*) 10484 case $host in 10485 osf3*) 10486 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 10487 _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' 10488 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 10489 ;; 10490 *) 10491 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 10492 _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' 10493 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10494 echo "-hidden">> $lib.exp~ 10495 $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~ 10496 $RM $lib.exp' 10497 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 10498 ;; 10499 esac 10500 10501 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 10502 10503 # Commands to make compiler produce verbose output that lists 10504 # what "hidden" libraries, object files and flags are used when 10505 # linking a shared library. 10506 # 10507 # There doesn't appear to be a way to prevent this compiler from 10508 # explicitly linking system object files so we need to strip them 10509 # from the output so that they don't get included in the library 10510 # dependencies. 10511 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"' 10512 ;; 10513 *) 10514 if test yes,no = "$GXX,$with_gnu_ld"; then 10515 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 10516 case $host in 10517 osf3*) 10518 _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' 10519 ;; 10520 *) 10521 _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' 10522 ;; 10523 esac 10524 10525 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 10526 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 10527 10528 # Commands to make compiler produce verbose output that lists 10529 # what "hidden" libraries, object files and flags are used when 10530 # linking a shared library. 10531 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 10532 10533 else 10534 # FIXME: insert proper C++ library support 10535 _LT_TAGVAR(ld_shlibs, $1)=no 10536 fi 10537 ;; 10538 esac 10539 ;; 10540 10541 psos*) 10542 # FIXME: insert proper C++ library support 10543 _LT_TAGVAR(ld_shlibs, $1)=no 10544 ;; 10545 10546 sunos4*) 10547 case $cc_basename in 10548 CC*) 10549 # Sun C++ 4.x 10550 # FIXME: insert proper C++ library support 10551 _LT_TAGVAR(ld_shlibs, $1)=no 10552 ;; 10553 lcc*) 10554 # Lucid 10555 # FIXME: insert proper C++ library support 10556 _LT_TAGVAR(ld_shlibs, $1)=no 10557 ;; 10558 *) 10559 # FIXME: insert proper C++ library support 10560 _LT_TAGVAR(ld_shlibs, $1)=no 10561 ;; 10562 esac 10563 ;; 10564 10565 solaris*) 10566 case $cc_basename in 10567 CC* | sunCC*) 10568 # Sun C++ 4.2, 5.x and Centerline C++ 10569 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 10570 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 10571 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10572 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10573 $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' 10574 10575 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 10576 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 10577 case $host_os in 10578 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 10579 *) 10580 # The compiler driver will combine and reorder linker options, 10581 # but understands '-z linker_flag'. 10582 # Supported since Solaris 2.6 (maybe 2.5.1?) 10583 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 10584 ;; 10585 esac 10586 _LT_TAGVAR(link_all_deplibs, $1)=yes 10587 10588 output_verbose_link_cmd='func_echo_all' 10589 10590 # Archives containing C++ object files must be created using 10591 # "CC -xar", where "CC" is the Sun C++ compiler. This is 10592 # necessary to make sure instantiated templates are included 10593 # in the archive. 10594 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 10595 ;; 10596 gcx*) 10597 # Green Hills C++ Compiler 10598 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 10599 10600 # The C++ compiler must be used to create the archive. 10601 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 10602 ;; 10603 *) 10604 # GNU C++ compiler with Solaris linker 10605 if test yes,no = "$GXX,$with_gnu_ld"; then 10606 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs' 10607 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 10608 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 10609 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10610 $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' 10611 10612 # Commands to make compiler produce verbose output that lists 10613 # what "hidden" libraries, object files and flags are used when 10614 # linking a shared library. 10615 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 10616 else 10617 # g++ 2.7 appears to require '-G' NOT '-shared' on this 10618 # platform. 10619 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 10620 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10621 $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' 10622 10623 # Commands to make compiler produce verbose output that lists 10624 # what "hidden" libraries, object files and flags are used when 10625 # linking a shared library. 10626 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 10627 fi 10628 10629 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' 10630 case $host_os in 10631 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 10632 *) 10633 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10634 ;; 10635 esac 10636 fi 10637 ;; 10638 esac 10639 ;; 10640 10641 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 10642 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 10643 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 10644 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 10645 runpath_var='LD_RUN_PATH' 10646 10647 case $cc_basename in 10648 CC*) 10649 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10650 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10651 ;; 10652 *) 10653 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10654 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10655 ;; 10656 esac 10657 ;; 10658 10659 sysv5* | sco3.2v5* | sco5v6*) 10660 # Note: We CANNOT use -z defs as we might desire, because we do not 10661 # link with -lc, and that would cause any symbols used from libc to 10662 # always be unresolved, which means just about no library would 10663 # ever link correctly. If we're not using GNU ld we use -z text 10664 # though, which does catch some bad symbols but isn't as heavy-handed 10665 # as -z defs. 10666 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 10667 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' 10668 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 10669 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 10670 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' 10671 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 10672 _LT_TAGVAR(link_all_deplibs, $1)=yes 10673 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' 10674 runpath_var='LD_RUN_PATH' 10675 10676 case $cc_basename in 10677 CC*) 10678 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10679 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10680 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ 10681 '"$_LT_TAGVAR(old_archive_cmds, $1)" 10682 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ 10683 '"$_LT_TAGVAR(reload_cmds, $1)" 10684 ;; 10685 *) 10686 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10687 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10688 ;; 10689 esac 10690 ;; 10691 10692 tandem*) 10693 case $cc_basename in 10694 NCC*) 10695 # NonStop-UX NCC 3.20 10696 # FIXME: insert proper C++ library support 10697 _LT_TAGVAR(ld_shlibs, $1)=no 10698 ;; 10699 *) 10700 # FIXME: insert proper C++ library support 10701 _LT_TAGVAR(ld_shlibs, $1)=no 10702 ;; 10703 esac 10704 ;; 10705 10706 vxworks*) 10707 # FIXME: insert proper C++ library support 10708 _LT_TAGVAR(ld_shlibs, $1)=no 10709 ;; 10710 10711 *) 10712 # FIXME: insert proper C++ library support 10713 _LT_TAGVAR(ld_shlibs, $1)=no 10714 ;; 10715 esac 10716 10717 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 10718 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no 10719 10720 _LT_TAGVAR(GCC, $1)=$GXX 10721 _LT_TAGVAR(LD, $1)=$LD 10722 10723 ## CAVEAT EMPTOR: 10724 ## There is no encapsulation within the following macros, do not change 10725 ## the running order or otherwise move them around unless you know exactly 10726 ## what you are doing... 10727 _LT_SYS_HIDDEN_LIBDEPS($1) 10728 _LT_COMPILER_PIC($1) 10729 _LT_COMPILER_C_O($1) 10730 _LT_COMPILER_FILE_LOCKS($1) 10731 _LT_LINKER_SHLIBS($1) 10732 _LT_SYS_DYNAMIC_LINKER($1) 10733 _LT_LINKER_HARDCODE_LIBPATH($1) 10734 10735 _LT_CONFIG($1) 10736 fi # test -n "$compiler" 10737 10738 CC=$lt_save_CC 10739 CFLAGS=$lt_save_CFLAGS 10740 LDCXX=$LD 10741 LD=$lt_save_LD 10742 GCC=$lt_save_GCC 10743 with_gnu_ld=$lt_save_with_gnu_ld 10744 lt_cv_path_LDCXX=$lt_cv_path_LD 10745 lt_cv_path_LD=$lt_save_path_LD 10746 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 10747 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 10748fi # test yes != "$_lt_caught_CXX_error" 10749 10750AC_LANG_POP 10751])# _LT_LANG_CXX_CONFIG 10752 10753 10754# _LT_FUNC_STRIPNAME_CNF 10755# ---------------------- 10756# func_stripname_cnf prefix suffix name 10757# strip PREFIX and SUFFIX off of NAME. 10758# PREFIX and SUFFIX must not contain globbing or regex special 10759# characters, hashes, percent signs, but SUFFIX may contain a leading 10760# dot (in which case that matches only a dot). 10761# 10762# This function is identical to the (non-XSI) version of func_stripname, 10763# except this one can be used by m4 code that may be executed by configure, 10764# rather than the libtool script. 10765m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl 10766AC_REQUIRE([_LT_DECL_SED]) 10767AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) 10768func_stripname_cnf () 10769{ 10770 case @S|@2 in 10771 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; 10772 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; 10773 esac 10774} # func_stripname_cnf 10775])# _LT_FUNC_STRIPNAME_CNF 10776 10777 10778# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 10779# --------------------------------- 10780# Figure out "hidden" library dependencies from verbose 10781# compiler output when linking a shared library. 10782# Parse the compiler output and extract the necessary 10783# objects, libraries and library flags. 10784m4_defun([_LT_SYS_HIDDEN_LIBDEPS], 10785[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 10786AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl 10787# Dependencies to place before and after the object being linked: 10788_LT_TAGVAR(predep_objects, $1)= 10789_LT_TAGVAR(postdep_objects, $1)= 10790_LT_TAGVAR(predeps, $1)= 10791_LT_TAGVAR(postdeps, $1)= 10792_LT_TAGVAR(compiler_lib_search_path, $1)= 10793 10794dnl we can't use the lt_simple_compile_test_code here, 10795dnl because it contains code intended for an executable, 10796dnl not a library. It's possible we should let each 10797dnl tag define a new lt_????_link_test_code variable, 10798dnl but it's only used here... 10799m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF 10800int a; 10801void foo (void) { a = 0; } 10802_LT_EOF 10803], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF 10804class Foo 10805{ 10806public: 10807 Foo (void) { a = 0; } 10808private: 10809 int a; 10810}; 10811_LT_EOF 10812], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF 10813 subroutine foo 10814 implicit none 10815 integer*4 a 10816 a=0 10817 return 10818 end 10819_LT_EOF 10820], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF 10821 subroutine foo 10822 implicit none 10823 integer a 10824 a=0 10825 return 10826 end 10827_LT_EOF 10828], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF 10829public class foo { 10830 private int a; 10831 public void bar (void) { 10832 a = 0; 10833 } 10834}; 10835_LT_EOF 10836], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF 10837package foo 10838func foo() { 10839} 10840_LT_EOF 10841]) 10842 10843_lt_libdeps_save_CFLAGS=$CFLAGS 10844case "$CC $CFLAGS " in #( 10845*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 10846*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 10847*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 10848esac 10849 10850dnl Parse the compiler output and extract the necessary 10851dnl objects, libraries and library flags. 10852if AC_TRY_EVAL(ac_compile); then 10853 # Parse the compiler output and extract the necessary 10854 # objects, libraries and library flags. 10855 10856 # Sentinel used to keep track of whether or not we are before 10857 # the conftest object file. 10858 pre_test_object_deps_done=no 10859 10860 for p in `eval "$output_verbose_link_cmd"`; do 10861 case $prev$p in 10862 10863 -L* | -R* | -l*) 10864 # Some compilers place space between "-{L,R}" and the path. 10865 # Remove the space. 10866 if test x-L = "$p" || 10867 test x-R = "$p"; then 10868 prev=$p 10869 continue 10870 fi 10871 10872 # Expand the sysroot to ease extracting the directories later. 10873 if test -z "$prev"; then 10874 case $p in 10875 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 10876 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 10877 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 10878 esac 10879 fi 10880 case $p in 10881 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 10882 esac 10883 if test no = "$pre_test_object_deps_done"; then 10884 case $prev in 10885 -L | -R) 10886 # Internal compiler library paths should come after those 10887 # provided the user. The postdeps already come after the 10888 # user supplied libs so there is no need to process them. 10889 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then 10890 _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p 10891 else 10892 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p" 10893 fi 10894 ;; 10895 # The "-l" case would never come before the object being 10896 # linked, so don't bother handling this case. 10897 esac 10898 else 10899 if test -z "$_LT_TAGVAR(postdeps, $1)"; then 10900 _LT_TAGVAR(postdeps, $1)=$prev$p 10901 else 10902 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p" 10903 fi 10904 fi 10905 prev= 10906 ;; 10907 10908 *.lto.$objext) ;; # Ignore GCC LTO objects 10909 *.$objext) 10910 # This assumes that the test object file only shows up 10911 # once in the compiler output. 10912 if test "$p" = "conftest.$objext"; then 10913 pre_test_object_deps_done=yes 10914 continue 10915 fi 10916 10917 if test no = "$pre_test_object_deps_done"; then 10918 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then 10919 _LT_TAGVAR(predep_objects, $1)=$p 10920 else 10921 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" 10922 fi 10923 else 10924 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then 10925 _LT_TAGVAR(postdep_objects, $1)=$p 10926 else 10927 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" 10928 fi 10929 fi 10930 ;; 10931 10932 *) ;; # Ignore the rest. 10933 10934 esac 10935 done 10936 10937 # Clean up. 10938 rm -f a.out a.exe 10939else 10940 echo "libtool.m4: error: problem compiling $1 test program" 10941fi 10942 10943$RM -f confest.$objext 10944CFLAGS=$_lt_libdeps_save_CFLAGS 10945 10946# PORTME: override above test on systems where it is broken 10947m4_if([$1], [CXX], 10948[case $host_os in 10949interix[[3-9]]*) 10950 # Interix 3.5 installs completely hosed .la files for C++, so rather than 10951 # hack all around it, let's just trust "g++" to DTRT. 10952 _LT_TAGVAR(predep_objects,$1)= 10953 _LT_TAGVAR(postdep_objects,$1)= 10954 _LT_TAGVAR(postdeps,$1)= 10955 ;; 10956esac 10957]) 10958 10959case " $_LT_TAGVAR(postdeps, $1) " in 10960*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; 10961esac 10962 _LT_TAGVAR(compiler_lib_search_dirs, $1)= 10963if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then 10964 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'` 10965fi 10966_LT_TAGDECL([], [compiler_lib_search_dirs], [1], 10967 [The directories searched by this compiler when creating a shared library]) 10968_LT_TAGDECL([], [predep_objects], [1], 10969 [Dependencies to place before and after the objects being linked to 10970 create a shared library]) 10971_LT_TAGDECL([], [postdep_objects], [1]) 10972_LT_TAGDECL([], [predeps], [1]) 10973_LT_TAGDECL([], [postdeps], [1]) 10974_LT_TAGDECL([], [compiler_lib_search_path], [1], 10975 [The library search path used internally by the compiler when linking 10976 a shared library]) 10977])# _LT_SYS_HIDDEN_LIBDEPS 10978 10979 10980# _LT_LANG_F77_CONFIG([TAG]) 10981# -------------------------- 10982# Ensure that the configuration variables for a Fortran 77 compiler are 10983# suitably defined. These variables are subsequently used by _LT_CONFIG 10984# to write the compiler configuration to 'libtool'. 10985m4_defun([_LT_LANG_F77_CONFIG], 10986[AC_LANG_PUSH(Fortran 77) 10987if test -z "$F77" || test no = "$F77"; then 10988 _lt_disable_F77=yes 10989fi 10990 10991_LT_TAGVAR(archive_cmds_need_lc, $1)=no 10992_LT_TAGVAR(allow_undefined_flag, $1)= 10993_LT_TAGVAR(always_export_symbols, $1)=no 10994_LT_TAGVAR(archive_expsym_cmds, $1)= 10995_LT_TAGVAR(export_dynamic_flag_spec, $1)= 10996_LT_TAGVAR(hardcode_direct, $1)=no 10997_LT_TAGVAR(hardcode_direct_absolute, $1)=no 10998_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 10999_LT_TAGVAR(hardcode_libdir_separator, $1)= 11000_LT_TAGVAR(hardcode_minus_L, $1)=no 11001_LT_TAGVAR(hardcode_automatic, $1)=no 11002_LT_TAGVAR(inherit_rpath, $1)=no 11003_LT_TAGVAR(module_cmds, $1)= 11004_LT_TAGVAR(module_expsym_cmds, $1)= 11005_LT_TAGVAR(link_all_deplibs, $1)=unknown 11006_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 11007_LT_TAGVAR(reload_flag, $1)=$reload_flag 11008_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 11009_LT_TAGVAR(no_undefined_flag, $1)= 11010_LT_TAGVAR(whole_archive_flag_spec, $1)= 11011_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 11012 11013# Source file extension for f77 test sources. 11014ac_ext=f 11015 11016# Object file extension for compiled f77 test sources. 11017objext=o 11018_LT_TAGVAR(objext, $1)=$objext 11019 11020# No sense in running all these tests if we already determined that 11021# the F77 compiler isn't working. Some variables (like enable_shared) 11022# are currently assumed to apply to all compilers on this platform, 11023# and will be corrupted by setting them based on a non-working compiler. 11024if test yes != "$_lt_disable_F77"; then 11025 # Code to be used in simple compile tests 11026 lt_simple_compile_test_code="\ 11027 subroutine t 11028 return 11029 end 11030" 11031 11032 # Code to be used in simple link tests 11033 lt_simple_link_test_code="\ 11034 program t 11035 end 11036" 11037 11038 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 11039 _LT_TAG_COMPILER 11040 11041 # save warnings/boilerplate of simple test code 11042 _LT_COMPILER_BOILERPLATE 11043 _LT_LINKER_BOILERPLATE 11044 11045 # Allow CC to be a program name with arguments. 11046 lt_save_CC=$CC 11047 lt_save_GCC=$GCC 11048 lt_save_CFLAGS=$CFLAGS 11049 CC=${F77-"f77"} 11050 CFLAGS=$FFLAGS 11051 compiler=$CC 11052 _LT_TAGVAR(compiler, $1)=$CC 11053 _LT_CC_BASENAME([$compiler]) 11054 GCC=$G77 11055 if test -n "$compiler"; then 11056 AC_MSG_CHECKING([if libtool supports shared libraries]) 11057 AC_MSG_RESULT([$can_build_shared]) 11058 11059 AC_MSG_CHECKING([whether to build shared libraries]) 11060 test no = "$can_build_shared" && enable_shared=no 11061 11062 # On AIX, shared libraries and static libraries use the same namespace, and 11063 # are all built from PIC. 11064 case $host_os in 11065 aix3*) 11066 test yes = "$enable_shared" && enable_static=no 11067 if test -n "$RANLIB"; then 11068 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11069 postinstall_cmds='$RANLIB $lib' 11070 fi 11071 ;; 11072 aix[[4-9]]*) 11073 if test ia64 != "$host_cpu"; then 11074 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 11075 yes,aix,yes) ;; # shared object as lib.so file only 11076 yes,svr4,*) ;; # shared object as lib.so archive member only 11077 yes,*) enable_static=no ;; # shared object in lib.a archive as well 11078 esac 11079 fi 11080 ;; 11081 esac 11082 AC_MSG_RESULT([$enable_shared]) 11083 11084 AC_MSG_CHECKING([whether to build static libraries]) 11085 # Make sure either enable_shared or enable_static is yes. 11086 test yes = "$enable_shared" || enable_static=yes 11087 AC_MSG_RESULT([$enable_static]) 11088 11089 _LT_TAGVAR(GCC, $1)=$G77 11090 _LT_TAGVAR(LD, $1)=$LD 11091 11092 ## CAVEAT EMPTOR: 11093 ## There is no encapsulation within the following macros, do not change 11094 ## the running order or otherwise move them around unless you know exactly 11095 ## what you are doing... 11096 _LT_COMPILER_PIC($1) 11097 _LT_COMPILER_C_O($1) 11098 _LT_COMPILER_FILE_LOCKS($1) 11099 _LT_LINKER_SHLIBS($1) 11100 _LT_SYS_DYNAMIC_LINKER($1) 11101 _LT_LINKER_HARDCODE_LIBPATH($1) 11102 11103 _LT_CONFIG($1) 11104 fi # test -n "$compiler" 11105 11106 GCC=$lt_save_GCC 11107 CC=$lt_save_CC 11108 CFLAGS=$lt_save_CFLAGS 11109fi # test yes != "$_lt_disable_F77" 11110 11111AC_LANG_POP 11112])# _LT_LANG_F77_CONFIG 11113 11114 11115# _LT_LANG_FC_CONFIG([TAG]) 11116# ------------------------- 11117# Ensure that the configuration variables for a Fortran compiler are 11118# suitably defined. These variables are subsequently used by _LT_CONFIG 11119# to write the compiler configuration to 'libtool'. 11120m4_defun([_LT_LANG_FC_CONFIG], 11121[AC_LANG_PUSH(Fortran) 11122 11123if test -z "$FC" || test no = "$FC"; then 11124 _lt_disable_FC=yes 11125fi 11126 11127_LT_TAGVAR(archive_cmds_need_lc, $1)=no 11128_LT_TAGVAR(allow_undefined_flag, $1)= 11129_LT_TAGVAR(always_export_symbols, $1)=no 11130_LT_TAGVAR(archive_expsym_cmds, $1)= 11131_LT_TAGVAR(export_dynamic_flag_spec, $1)= 11132_LT_TAGVAR(hardcode_direct, $1)=no 11133_LT_TAGVAR(hardcode_direct_absolute, $1)=no 11134_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 11135_LT_TAGVAR(hardcode_libdir_separator, $1)= 11136_LT_TAGVAR(hardcode_minus_L, $1)=no 11137_LT_TAGVAR(hardcode_automatic, $1)=no 11138_LT_TAGVAR(inherit_rpath, $1)=no 11139_LT_TAGVAR(module_cmds, $1)= 11140_LT_TAGVAR(module_expsym_cmds, $1)= 11141_LT_TAGVAR(link_all_deplibs, $1)=unknown 11142_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 11143_LT_TAGVAR(reload_flag, $1)=$reload_flag 11144_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 11145_LT_TAGVAR(no_undefined_flag, $1)= 11146_LT_TAGVAR(whole_archive_flag_spec, $1)= 11147_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 11148 11149# Source file extension for fc test sources. 11150ac_ext=${ac_fc_srcext-f} 11151 11152# Object file extension for compiled fc test sources. 11153objext=o 11154_LT_TAGVAR(objext, $1)=$objext 11155 11156# No sense in running all these tests if we already determined that 11157# the FC compiler isn't working. Some variables (like enable_shared) 11158# are currently assumed to apply to all compilers on this platform, 11159# and will be corrupted by setting them based on a non-working compiler. 11160if test yes != "$_lt_disable_FC"; then 11161 # Code to be used in simple compile tests 11162 lt_simple_compile_test_code="\ 11163 subroutine t 11164 return 11165 end 11166" 11167 11168 # Code to be used in simple link tests 11169 lt_simple_link_test_code="\ 11170 program t 11171 end 11172" 11173 11174 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 11175 _LT_TAG_COMPILER 11176 11177 # save warnings/boilerplate of simple test code 11178 _LT_COMPILER_BOILERPLATE 11179 _LT_LINKER_BOILERPLATE 11180 11181 # Allow CC to be a program name with arguments. 11182 lt_save_CC=$CC 11183 lt_save_GCC=$GCC 11184 lt_save_CFLAGS=$CFLAGS 11185 CC=${FC-"f95"} 11186 CFLAGS=$FCFLAGS 11187 compiler=$CC 11188 GCC=$ac_cv_fc_compiler_gnu 11189 11190 _LT_TAGVAR(compiler, $1)=$CC 11191 _LT_CC_BASENAME([$compiler]) 11192 11193 if test -n "$compiler"; then 11194 AC_MSG_CHECKING([if libtool supports shared libraries]) 11195 AC_MSG_RESULT([$can_build_shared]) 11196 11197 AC_MSG_CHECKING([whether to build shared libraries]) 11198 test no = "$can_build_shared" && enable_shared=no 11199 11200 # On AIX, shared libraries and static libraries use the same namespace, and 11201 # are all built from PIC. 11202 case $host_os in 11203 aix3*) 11204 test yes = "$enable_shared" && enable_static=no 11205 if test -n "$RANLIB"; then 11206 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11207 postinstall_cmds='$RANLIB $lib' 11208 fi 11209 ;; 11210 aix[[4-9]]*) 11211 if test ia64 != "$host_cpu"; then 11212 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 11213 yes,aix,yes) ;; # shared object as lib.so file only 11214 yes,svr4,*) ;; # shared object as lib.so archive member only 11215 yes,*) enable_static=no ;; # shared object in lib.a archive as well 11216 esac 11217 fi 11218 ;; 11219 esac 11220 AC_MSG_RESULT([$enable_shared]) 11221 11222 AC_MSG_CHECKING([whether to build static libraries]) 11223 # Make sure either enable_shared or enable_static is yes. 11224 test yes = "$enable_shared" || enable_static=yes 11225 AC_MSG_RESULT([$enable_static]) 11226 11227 _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu 11228 _LT_TAGVAR(LD, $1)=$LD 11229 11230 ## CAVEAT EMPTOR: 11231 ## There is no encapsulation within the following macros, do not change 11232 ## the running order or otherwise move them around unless you know exactly 11233 ## what you are doing... 11234 _LT_SYS_HIDDEN_LIBDEPS($1) 11235 _LT_COMPILER_PIC($1) 11236 _LT_COMPILER_C_O($1) 11237 _LT_COMPILER_FILE_LOCKS($1) 11238 _LT_LINKER_SHLIBS($1) 11239 _LT_SYS_DYNAMIC_LINKER($1) 11240 _LT_LINKER_HARDCODE_LIBPATH($1) 11241 11242 _LT_CONFIG($1) 11243 fi # test -n "$compiler" 11244 11245 GCC=$lt_save_GCC 11246 CC=$lt_save_CC 11247 CFLAGS=$lt_save_CFLAGS 11248fi # test yes != "$_lt_disable_FC" 11249 11250AC_LANG_POP 11251])# _LT_LANG_FC_CONFIG 11252 11253 11254# _LT_LANG_GCJ_CONFIG([TAG]) 11255# -------------------------- 11256# Ensure that the configuration variables for the GNU Java Compiler compiler 11257# are suitably defined. These variables are subsequently used by _LT_CONFIG 11258# to write the compiler configuration to 'libtool'. 11259m4_defun([_LT_LANG_GCJ_CONFIG], 11260[AC_REQUIRE([LT_PROG_GCJ])dnl 11261AC_LANG_SAVE 11262 11263# Source file extension for Java test sources. 11264ac_ext=java 11265 11266# Object file extension for compiled Java test sources. 11267objext=o 11268_LT_TAGVAR(objext, $1)=$objext 11269 11270# Code to be used in simple compile tests 11271lt_simple_compile_test_code="class foo {}" 11272 11273# Code to be used in simple link tests 11274lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 11275 11276# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11277_LT_TAG_COMPILER 11278 11279# save warnings/boilerplate of simple test code 11280_LT_COMPILER_BOILERPLATE 11281_LT_LINKER_BOILERPLATE 11282 11283# Allow CC to be a program name with arguments. 11284lt_save_CC=$CC 11285lt_save_CFLAGS=$CFLAGS 11286lt_save_GCC=$GCC 11287GCC=yes 11288CC=${GCJ-"gcj"} 11289CFLAGS=$GCJFLAGS 11290compiler=$CC 11291_LT_TAGVAR(compiler, $1)=$CC 11292_LT_TAGVAR(LD, $1)=$LD 11293_LT_CC_BASENAME([$compiler]) 11294 11295# GCJ did not exist at the time GCC didn't implicitly link libc in. 11296_LT_TAGVAR(archive_cmds_need_lc, $1)=no 11297 11298_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 11299_LT_TAGVAR(reload_flag, $1)=$reload_flag 11300_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 11301 11302if test -n "$compiler"; then 11303 _LT_COMPILER_NO_RTTI($1) 11304 _LT_COMPILER_PIC($1) 11305 _LT_COMPILER_C_O($1) 11306 _LT_COMPILER_FILE_LOCKS($1) 11307 _LT_LINKER_SHLIBS($1) 11308 _LT_LINKER_HARDCODE_LIBPATH($1) 11309 11310 _LT_CONFIG($1) 11311fi 11312 11313AC_LANG_RESTORE 11314 11315GCC=$lt_save_GCC 11316CC=$lt_save_CC 11317CFLAGS=$lt_save_CFLAGS 11318])# _LT_LANG_GCJ_CONFIG 11319 11320 11321# _LT_LANG_GO_CONFIG([TAG]) 11322# -------------------------- 11323# Ensure that the configuration variables for the GNU Go compiler 11324# are suitably defined. These variables are subsequently used by _LT_CONFIG 11325# to write the compiler configuration to 'libtool'. 11326m4_defun([_LT_LANG_GO_CONFIG], 11327[AC_REQUIRE([LT_PROG_GO])dnl 11328AC_LANG_SAVE 11329 11330# Source file extension for Go test sources. 11331ac_ext=go 11332 11333# Object file extension for compiled Go test sources. 11334objext=o 11335_LT_TAGVAR(objext, $1)=$objext 11336 11337# Code to be used in simple compile tests 11338lt_simple_compile_test_code="package main; func main() { }" 11339 11340# Code to be used in simple link tests 11341lt_simple_link_test_code='package main; func main() { }' 11342 11343# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11344_LT_TAG_COMPILER 11345 11346# save warnings/boilerplate of simple test code 11347_LT_COMPILER_BOILERPLATE 11348_LT_LINKER_BOILERPLATE 11349 11350# Allow CC to be a program name with arguments. 11351lt_save_CC=$CC 11352lt_save_CFLAGS=$CFLAGS 11353lt_save_GCC=$GCC 11354GCC=yes 11355CC=${GOC-"gccgo"} 11356CFLAGS=$GOFLAGS 11357compiler=$CC 11358_LT_TAGVAR(compiler, $1)=$CC 11359_LT_TAGVAR(LD, $1)=$LD 11360_LT_CC_BASENAME([$compiler]) 11361 11362# Go did not exist at the time GCC didn't implicitly link libc in. 11363_LT_TAGVAR(archive_cmds_need_lc, $1)=no 11364 11365_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 11366_LT_TAGVAR(reload_flag, $1)=$reload_flag 11367_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 11368 11369if test -n "$compiler"; then 11370 _LT_COMPILER_NO_RTTI($1) 11371 _LT_COMPILER_PIC($1) 11372 _LT_COMPILER_C_O($1) 11373 _LT_COMPILER_FILE_LOCKS($1) 11374 _LT_LINKER_SHLIBS($1) 11375 _LT_LINKER_HARDCODE_LIBPATH($1) 11376 11377 _LT_CONFIG($1) 11378fi 11379 11380AC_LANG_RESTORE 11381 11382GCC=$lt_save_GCC 11383CC=$lt_save_CC 11384CFLAGS=$lt_save_CFLAGS 11385])# _LT_LANG_GO_CONFIG 11386 11387 11388# _LT_LANG_RC_CONFIG([TAG]) 11389# ------------------------- 11390# Ensure that the configuration variables for the Windows resource compiler 11391# are suitably defined. These variables are subsequently used by _LT_CONFIG 11392# to write the compiler configuration to 'libtool'. 11393m4_defun([_LT_LANG_RC_CONFIG], 11394[AC_REQUIRE([LT_PROG_RC])dnl 11395AC_LANG_SAVE 11396 11397# Source file extension for RC test sources. 11398ac_ext=rc 11399 11400# Object file extension for compiled RC test sources. 11401objext=o 11402_LT_TAGVAR(objext, $1)=$objext 11403 11404# Code to be used in simple compile tests 11405lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 11406 11407# Code to be used in simple link tests 11408lt_simple_link_test_code=$lt_simple_compile_test_code 11409 11410# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11411_LT_TAG_COMPILER 11412 11413# save warnings/boilerplate of simple test code 11414_LT_COMPILER_BOILERPLATE 11415_LT_LINKER_BOILERPLATE 11416 11417# Allow CC to be a program name with arguments. 11418lt_save_CC=$CC 11419lt_save_CFLAGS=$CFLAGS 11420lt_save_GCC=$GCC 11421GCC= 11422CC=${RC-"windres"} 11423CFLAGS= 11424compiler=$CC 11425_LT_TAGVAR(compiler, $1)=$CC 11426_LT_CC_BASENAME([$compiler]) 11427_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 11428 11429if test -n "$compiler"; then 11430 : 11431 _LT_CONFIG($1) 11432fi 11433 11434GCC=$lt_save_GCC 11435AC_LANG_RESTORE 11436CC=$lt_save_CC 11437CFLAGS=$lt_save_CFLAGS 11438])# _LT_LANG_RC_CONFIG 11439 11440 11441# LT_PROG_GCJ 11442# ----------- 11443AC_DEFUN([LT_PROG_GCJ], 11444[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], 11445 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 11446 [AC_CHECK_TOOL(GCJ, gcj,) 11447 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2" 11448 AC_SUBST(GCJFLAGS)])])[]dnl 11449]) 11450 11451# Old name: 11452AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) 11453dnl aclocal-1.4 backwards compatibility: 11454dnl AC_DEFUN([LT_AC_PROG_GCJ], []) 11455 11456 11457# LT_PROG_GO 11458# ---------- 11459AC_DEFUN([LT_PROG_GO], 11460[AC_CHECK_TOOL(GOC, gccgo,) 11461]) 11462 11463 11464# LT_PROG_RC 11465# ---------- 11466AC_DEFUN([LT_PROG_RC], 11467[AC_CHECK_TOOL(RC, windres,) 11468]) 11469 11470# Old name: 11471AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) 11472dnl aclocal-1.4 backwards compatibility: 11473dnl AC_DEFUN([LT_AC_PROG_RC], []) 11474 11475 11476# _LT_DECL_EGREP 11477# -------------- 11478# If we don't have a new enough Autoconf to choose the best grep 11479# available, choose the one first in the user's PATH. 11480m4_defun([_LT_DECL_EGREP], 11481[AC_REQUIRE([AC_PROG_EGREP])dnl 11482AC_REQUIRE([AC_PROG_FGREP])dnl 11483test -z "$GREP" && GREP=grep 11484_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) 11485_LT_DECL([], [EGREP], [1], [An ERE matcher]) 11486_LT_DECL([], [FGREP], [1], [A literal string matcher]) 11487dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too 11488AC_SUBST([GREP]) 11489]) 11490 11491 11492# _LT_DECL_OBJDUMP 11493# -------------- 11494# If we don't have a new enough Autoconf to choose the best objdump 11495# available, choose the one first in the user's PATH. 11496m4_defun([_LT_DECL_OBJDUMP], 11497[AC_CHECK_TOOL(OBJDUMP, objdump, false) 11498test -z "$OBJDUMP" && OBJDUMP=objdump 11499_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) 11500AC_SUBST([OBJDUMP]) 11501]) 11502 11503# _LT_DECL_DLLTOOL 11504# ---------------- 11505# Ensure DLLTOOL variable is set. 11506m4_defun([_LT_DECL_DLLTOOL], 11507[AC_CHECK_TOOL(DLLTOOL, dlltool, false) 11508test -z "$DLLTOOL" && DLLTOOL=dlltool 11509_LT_DECL([], [DLLTOOL], [1], [DLL creation program]) 11510AC_SUBST([DLLTOOL]) 11511]) 11512 11513# _LT_DECL_SED 11514# ------------ 11515# Check for a fully-functional sed program, that truncates 11516# as few characters as possible. Prefer GNU sed if found. 11517m4_defun([_LT_DECL_SED], 11518[AC_PROG_SED 11519test -z "$SED" && SED=sed 11520Xsed="$SED -e 1s/^X//" 11521_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) 11522_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], 11523 [Sed that helps us avoid accidentally triggering echo(1) options like -n]) 11524])# _LT_DECL_SED 11525 11526m4_ifndef([AC_PROG_SED], [ 11527# NOTE: This macro has been submitted for inclusion into # 11528# GNU Autoconf as AC_PROG_SED. When it is available in # 11529# a released version of Autoconf we should remove this # 11530# macro and use it instead. # 11531 11532m4_defun([AC_PROG_SED], 11533[AC_MSG_CHECKING([for a sed that does not truncate output]) 11534AC_CACHE_VAL(lt_cv_path_SED, 11535[# Loop through the user's path and test for sed and gsed. 11536# Then use that list of sed's as ones to test for truncation. 11537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11538for as_dir in $PATH 11539do 11540 IFS=$as_save_IFS 11541 test -z "$as_dir" && as_dir=. 11542 for lt_ac_prog in sed gsed; do 11543 for ac_exec_ext in '' $ac_executable_extensions; do 11544 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 11545 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 11546 fi 11547 done 11548 done 11549done 11550IFS=$as_save_IFS 11551lt_ac_max=0 11552lt_ac_count=0 11553# Add /usr/xpg4/bin/sed as it is typically found on Solaris 11554# along with /bin/sed that truncates output. 11555for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 11556 test ! -f "$lt_ac_sed" && continue 11557 cat /dev/null > conftest.in 11558 lt_ac_count=0 11559 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 11560 # Check for GNU sed and select it if it is found. 11561 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 11562 lt_cv_path_SED=$lt_ac_sed 11563 break 11564 fi 11565 while true; do 11566 cat conftest.in conftest.in >conftest.tmp 11567 mv conftest.tmp conftest.in 11568 cp conftest.in conftest.nl 11569 echo >>conftest.nl 11570 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 11571 cmp -s conftest.out conftest.nl || break 11572 # 10000 chars as input seems more than enough 11573 test 10 -lt "$lt_ac_count" && break 11574 lt_ac_count=`expr $lt_ac_count + 1` 11575 if test "$lt_ac_count" -gt "$lt_ac_max"; then 11576 lt_ac_max=$lt_ac_count 11577 lt_cv_path_SED=$lt_ac_sed 11578 fi 11579 done 11580done 11581]) 11582SED=$lt_cv_path_SED 11583AC_SUBST([SED]) 11584AC_MSG_RESULT([$SED]) 11585])#AC_PROG_SED 11586])#m4_ifndef 11587 11588# Old name: 11589AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) 11590dnl aclocal-1.4 backwards compatibility: 11591dnl AC_DEFUN([LT_AC_PROG_SED], []) 11592 11593 11594# _LT_CHECK_SHELL_FEATURES 11595# ------------------------ 11596# Find out whether the shell is Bourne or XSI compatible, 11597# or has some other useful features. 11598m4_defun([_LT_CHECK_SHELL_FEATURES], 11599[if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11600 lt_unset=unset 11601else 11602 lt_unset=false 11603fi 11604_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl 11605 11606# test EBCDIC or ASCII 11607case `echo X|tr X '\101'` in 11608 A) # ASCII based system 11609 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11610 lt_SP2NL='tr \040 \012' 11611 lt_NL2SP='tr \015\012 \040\040' 11612 ;; 11613 *) # EBCDIC based system 11614 lt_SP2NL='tr \100 \n' 11615 lt_NL2SP='tr \r\n \100\100' 11616 ;; 11617esac 11618_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl 11619_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl 11620])# _LT_CHECK_SHELL_FEATURES 11621 11622 11623# _LT_PATH_CONVERSION_FUNCTIONS 11624# ----------------------------- 11625# Determine what file name conversion functions should be used by 11626# func_to_host_file (and, implicitly, by func_to_host_path). These are needed 11627# for certain cross-compile configurations and native mingw. 11628m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], 11629[AC_REQUIRE([AC_CANONICAL_HOST])dnl 11630AC_REQUIRE([AC_CANONICAL_BUILD])dnl 11631AC_MSG_CHECKING([how to convert $build file names to $host format]) 11632AC_CACHE_VAL(lt_cv_to_host_file_cmd, 11633[case $host in 11634 *-*-mingw* ) 11635 case $build in 11636 *-*-mingw* ) # actually msys 11637 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11638 ;; 11639 *-*-cygwin* ) 11640 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11641 ;; 11642 * ) # otherwise, assume *nix 11643 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11644 ;; 11645 esac 11646 ;; 11647 *-*-cygwin* ) 11648 case $build in 11649 *-*-mingw* ) # actually msys 11650 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11651 ;; 11652 *-*-cygwin* ) 11653 lt_cv_to_host_file_cmd=func_convert_file_noop 11654 ;; 11655 * ) # otherwise, assume *nix 11656 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11657 ;; 11658 esac 11659 ;; 11660 * ) # unhandled hosts (and "normal" native builds) 11661 lt_cv_to_host_file_cmd=func_convert_file_noop 11662 ;; 11663esac 11664]) 11665to_host_file_cmd=$lt_cv_to_host_file_cmd 11666AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) 11667_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], 11668 [0], [convert $build file names to $host format])dnl 11669 11670AC_MSG_CHECKING([how to convert $build file names to toolchain format]) 11671AC_CACHE_VAL(lt_cv_to_tool_file_cmd, 11672[#assume ordinary cross tools, or native build. 11673lt_cv_to_tool_file_cmd=func_convert_file_noop 11674case $host in 11675 *-*-mingw* ) 11676 case $build in 11677 *-*-mingw* ) # actually msys 11678 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11679 ;; 11680 esac 11681 ;; 11682esac 11683]) 11684to_tool_file_cmd=$lt_cv_to_tool_file_cmd 11685AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) 11686_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], 11687 [0], [convert $build files to toolchain format])dnl 11688])# _LT_PATH_CONVERSION_FUNCTIONS 11689 11690# Helper functions for option handling. -*- Autoconf -*- 11691# 11692# Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software 11693# Foundation, Inc. 11694# Written by Gary V. Vaughan, 2004 11695# 11696# This file is free software; the Free Software Foundation gives 11697# unlimited permission to copy and/or distribute it, with or without 11698# modifications, as long as this notice is preserved. 11699 11700# serial 8 ltoptions.m4 11701 11702# This is to help aclocal find these macros, as it can't see m4_define. 11703AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) 11704 11705 11706# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) 11707# ------------------------------------------ 11708m4_define([_LT_MANGLE_OPTION], 11709[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) 11710 11711 11712# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) 11713# --------------------------------------- 11714# Set option OPTION-NAME for macro MACRO-NAME, and if there is a 11715# matching handler defined, dispatch to it. Other OPTION-NAMEs are 11716# saved as a flag. 11717m4_define([_LT_SET_OPTION], 11718[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl 11719m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), 11720 _LT_MANGLE_DEFUN([$1], [$2]), 11721 [m4_warning([Unknown $1 option '$2'])])[]dnl 11722]) 11723 11724 11725# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) 11726# ------------------------------------------------------------ 11727# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 11728m4_define([_LT_IF_OPTION], 11729[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) 11730 11731 11732# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) 11733# ------------------------------------------------------- 11734# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME 11735# are set. 11736m4_define([_LT_UNLESS_OPTIONS], 11737[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 11738 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), 11739 [m4_define([$0_found])])])[]dnl 11740m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 11741])[]dnl 11742]) 11743 11744 11745# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) 11746# ---------------------------------------- 11747# OPTION-LIST is a space-separated list of Libtool options associated 11748# with MACRO-NAME. If any OPTION has a matching handler declared with 11749# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about 11750# the unknown option and exit. 11751m4_defun([_LT_SET_OPTIONS], 11752[# Set options 11753m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 11754 [_LT_SET_OPTION([$1], _LT_Option)]) 11755 11756m4_if([$1],[LT_INIT],[ 11757 dnl 11758 dnl Simply set some default values (i.e off) if boolean options were not 11759 dnl specified: 11760 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no 11761 ]) 11762 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no 11763 ]) 11764 dnl 11765 dnl If no reference was made to various pairs of opposing options, then 11766 dnl we run the default mode handler for the pair. For example, if neither 11767 dnl 'shared' nor 'disable-shared' was passed, we enable building of shared 11768 dnl archives by default: 11769 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) 11770 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) 11771 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) 11772 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], 11773 [_LT_ENABLE_FAST_INSTALL]) 11774 _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4], 11775 [_LT_WITH_AIX_SONAME([aix])]) 11776 ]) 11777])# _LT_SET_OPTIONS 11778 11779 11780 11781# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) 11782# ----------------------------------------- 11783m4_define([_LT_MANGLE_DEFUN], 11784[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) 11785 11786 11787# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) 11788# ----------------------------------------------- 11789m4_define([LT_OPTION_DEFINE], 11790[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl 11791])# LT_OPTION_DEFINE 11792 11793 11794# dlopen 11795# ------ 11796LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes 11797]) 11798 11799AU_DEFUN([AC_LIBTOOL_DLOPEN], 11800[_LT_SET_OPTION([LT_INIT], [dlopen]) 11801AC_DIAGNOSE([obsolete], 11802[$0: Remove this warning and the call to _LT_SET_OPTION when you 11803put the 'dlopen' option into LT_INIT's first parameter.]) 11804]) 11805 11806dnl aclocal-1.4 backwards compatibility: 11807dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) 11808 11809 11810# win32-dll 11811# --------- 11812# Declare package support for building win32 dll's. 11813LT_OPTION_DEFINE([LT_INIT], [win32-dll], 11814[enable_win32_dll=yes 11815 11816case $host in 11817*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 11818 AC_CHECK_TOOL(AS, as, false) 11819 AC_CHECK_TOOL(DLLTOOL, dlltool, false) 11820 AC_CHECK_TOOL(OBJDUMP, objdump, false) 11821 ;; 11822esac 11823 11824test -z "$AS" && AS=as 11825_LT_DECL([], [AS], [1], [Assembler program])dnl 11826 11827test -z "$DLLTOOL" && DLLTOOL=dlltool 11828_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl 11829 11830test -z "$OBJDUMP" && OBJDUMP=objdump 11831_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl 11832])# win32-dll 11833 11834AU_DEFUN([AC_LIBTOOL_WIN32_DLL], 11835[AC_REQUIRE([AC_CANONICAL_HOST])dnl 11836_LT_SET_OPTION([LT_INIT], [win32-dll]) 11837AC_DIAGNOSE([obsolete], 11838[$0: Remove this warning and the call to _LT_SET_OPTION when you 11839put the 'win32-dll' option into LT_INIT's first parameter.]) 11840]) 11841 11842dnl aclocal-1.4 backwards compatibility: 11843dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) 11844 11845 11846# _LT_ENABLE_SHARED([DEFAULT]) 11847# ---------------------------- 11848# implement the --enable-shared flag, and supports the 'shared' and 11849# 'disable-shared' LT_INIT options. 11850# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 11851m4_define([_LT_ENABLE_SHARED], 11852[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl 11853AC_ARG_ENABLE([shared], 11854 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 11855 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], 11856 [p=${PACKAGE-default} 11857 case $enableval in 11858 yes) enable_shared=yes ;; 11859 no) enable_shared=no ;; 11860 *) 11861 enable_shared=no 11862 # Look at the argument we got. We use all the common list separators. 11863 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11864 for pkg in $enableval; do 11865 IFS=$lt_save_ifs 11866 if test "X$pkg" = "X$p"; then 11867 enable_shared=yes 11868 fi 11869 done 11870 IFS=$lt_save_ifs 11871 ;; 11872 esac], 11873 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) 11874 11875 _LT_DECL([build_libtool_libs], [enable_shared], [0], 11876 [Whether or not to build shared libraries]) 11877])# _LT_ENABLE_SHARED 11878 11879LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) 11880LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) 11881 11882# Old names: 11883AC_DEFUN([AC_ENABLE_SHARED], 11884[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) 11885]) 11886 11887AC_DEFUN([AC_DISABLE_SHARED], 11888[_LT_SET_OPTION([LT_INIT], [disable-shared]) 11889]) 11890 11891AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 11892AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 11893 11894dnl aclocal-1.4 backwards compatibility: 11895dnl AC_DEFUN([AM_ENABLE_SHARED], []) 11896dnl AC_DEFUN([AM_DISABLE_SHARED], []) 11897 11898 11899 11900# _LT_ENABLE_STATIC([DEFAULT]) 11901# ---------------------------- 11902# implement the --enable-static flag, and support the 'static' and 11903# 'disable-static' LT_INIT options. 11904# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 11905m4_define([_LT_ENABLE_STATIC], 11906[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl 11907AC_ARG_ENABLE([static], 11908 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], 11909 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], 11910 [p=${PACKAGE-default} 11911 case $enableval in 11912 yes) enable_static=yes ;; 11913 no) enable_static=no ;; 11914 *) 11915 enable_static=no 11916 # Look at the argument we got. We use all the common list separators. 11917 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11918 for pkg in $enableval; do 11919 IFS=$lt_save_ifs 11920 if test "X$pkg" = "X$p"; then 11921 enable_static=yes 11922 fi 11923 done 11924 IFS=$lt_save_ifs 11925 ;; 11926 esac], 11927 [enable_static=]_LT_ENABLE_STATIC_DEFAULT) 11928 11929 _LT_DECL([build_old_libs], [enable_static], [0], 11930 [Whether or not to build static libraries]) 11931])# _LT_ENABLE_STATIC 11932 11933LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) 11934LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) 11935 11936# Old names: 11937AC_DEFUN([AC_ENABLE_STATIC], 11938[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) 11939]) 11940 11941AC_DEFUN([AC_DISABLE_STATIC], 11942[_LT_SET_OPTION([LT_INIT], [disable-static]) 11943]) 11944 11945AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 11946AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 11947 11948dnl aclocal-1.4 backwards compatibility: 11949dnl AC_DEFUN([AM_ENABLE_STATIC], []) 11950dnl AC_DEFUN([AM_DISABLE_STATIC], []) 11951 11952 11953 11954# _LT_ENABLE_FAST_INSTALL([DEFAULT]) 11955# ---------------------------------- 11956# implement the --enable-fast-install flag, and support the 'fast-install' 11957# and 'disable-fast-install' LT_INIT options. 11958# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 11959m4_define([_LT_ENABLE_FAST_INSTALL], 11960[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl 11961AC_ARG_ENABLE([fast-install], 11962 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 11963 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 11964 [p=${PACKAGE-default} 11965 case $enableval in 11966 yes) enable_fast_install=yes ;; 11967 no) enable_fast_install=no ;; 11968 *) 11969 enable_fast_install=no 11970 # Look at the argument we got. We use all the common list separators. 11971 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11972 for pkg in $enableval; do 11973 IFS=$lt_save_ifs 11974 if test "X$pkg" = "X$p"; then 11975 enable_fast_install=yes 11976 fi 11977 done 11978 IFS=$lt_save_ifs 11979 ;; 11980 esac], 11981 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) 11982 11983_LT_DECL([fast_install], [enable_fast_install], [0], 11984 [Whether or not to optimize for fast installation])dnl 11985])# _LT_ENABLE_FAST_INSTALL 11986 11987LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) 11988LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) 11989 11990# Old names: 11991AU_DEFUN([AC_ENABLE_FAST_INSTALL], 11992[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) 11993AC_DIAGNOSE([obsolete], 11994[$0: Remove this warning and the call to _LT_SET_OPTION when you put 11995the 'fast-install' option into LT_INIT's first parameter.]) 11996]) 11997 11998AU_DEFUN([AC_DISABLE_FAST_INSTALL], 11999[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) 12000AC_DIAGNOSE([obsolete], 12001[$0: Remove this warning and the call to _LT_SET_OPTION when you put 12002the 'disable-fast-install' option into LT_INIT's first parameter.]) 12003]) 12004 12005dnl aclocal-1.4 backwards compatibility: 12006dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) 12007dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) 12008 12009 12010# _LT_WITH_AIX_SONAME([DEFAULT]) 12011# ---------------------------------- 12012# implement the --with-aix-soname flag, and support the `aix-soname=aix' 12013# and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT 12014# is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'. 12015m4_define([_LT_WITH_AIX_SONAME], 12016[m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl 12017shared_archive_member_spec= 12018case $host,$enable_shared in 12019power*-*-aix[[5-9]]*,yes) 12020 AC_MSG_CHECKING([which variant of shared library versioning to provide]) 12021 AC_ARG_WITH([aix-soname], 12022 [AS_HELP_STRING([--with-aix-soname=aix|svr4|both], 12023 [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])], 12024 [case $withval in 12025 aix|svr4|both) 12026 ;; 12027 *) 12028 AC_MSG_ERROR([Unknown argument to --with-aix-soname]) 12029 ;; 12030 esac 12031 lt_cv_with_aix_soname=$with_aix_soname], 12032 [AC_CACHE_VAL([lt_cv_with_aix_soname], 12033 [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT) 12034 with_aix_soname=$lt_cv_with_aix_soname]) 12035 AC_MSG_RESULT([$with_aix_soname]) 12036 if test aix != "$with_aix_soname"; then 12037 # For the AIX way of multilib, we name the shared archive member 12038 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 12039 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 12040 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 12041 # the AIX toolchain works better with OBJECT_MODE set (default 32). 12042 if test 64 = "${OBJECT_MODE-32}"; then 12043 shared_archive_member_spec=shr_64 12044 else 12045 shared_archive_member_spec=shr 12046 fi 12047 fi 12048 ;; 12049*) 12050 with_aix_soname=aix 12051 ;; 12052esac 12053 12054_LT_DECL([], [shared_archive_member_spec], [0], 12055 [Shared archive member basename, for filename based shared library versioning on AIX])dnl 12056])# _LT_WITH_AIX_SONAME 12057 12058LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])]) 12059LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])]) 12060LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])]) 12061 12062 12063# _LT_WITH_PIC([MODE]) 12064# -------------------- 12065# implement the --with-pic flag, and support the 'pic-only' and 'no-pic' 12066# LT_INIT options. 12067# MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'. 12068m4_define([_LT_WITH_PIC], 12069[AC_ARG_WITH([pic], 12070 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], 12071 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 12072 [lt_p=${PACKAGE-default} 12073 case $withval in 12074 yes|no) pic_mode=$withval ;; 12075 *) 12076 pic_mode=default 12077 # Look at the argument we got. We use all the common list separators. 12078 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 12079 for lt_pkg in $withval; do 12080 IFS=$lt_save_ifs 12081 if test "X$lt_pkg" = "X$lt_p"; then 12082 pic_mode=yes 12083 fi 12084 done 12085 IFS=$lt_save_ifs 12086 ;; 12087 esac], 12088 [pic_mode=m4_default([$1], [default])]) 12089 12090_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl 12091])# _LT_WITH_PIC 12092 12093LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) 12094LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) 12095 12096# Old name: 12097AU_DEFUN([AC_LIBTOOL_PICMODE], 12098[_LT_SET_OPTION([LT_INIT], [pic-only]) 12099AC_DIAGNOSE([obsolete], 12100[$0: Remove this warning and the call to _LT_SET_OPTION when you 12101put the 'pic-only' option into LT_INIT's first parameter.]) 12102]) 12103 12104dnl aclocal-1.4 backwards compatibility: 12105dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) 12106 12107 12108m4_define([_LTDL_MODE], []) 12109LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], 12110 [m4_define([_LTDL_MODE], [nonrecursive])]) 12111LT_OPTION_DEFINE([LTDL_INIT], [recursive], 12112 [m4_define([_LTDL_MODE], [recursive])]) 12113LT_OPTION_DEFINE([LTDL_INIT], [subproject], 12114 [m4_define([_LTDL_MODE], [subproject])]) 12115 12116m4_define([_LTDL_TYPE], []) 12117LT_OPTION_DEFINE([LTDL_INIT], [installable], 12118 [m4_define([_LTDL_TYPE], [installable])]) 12119LT_OPTION_DEFINE([LTDL_INIT], [convenience], 12120 [m4_define([_LTDL_TYPE], [convenience])]) 12121 12122# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- 12123# 12124# Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software 12125# Foundation, Inc. 12126# Written by Gary V. Vaughan, 2004 12127# 12128# This file is free software; the Free Software Foundation gives 12129# unlimited permission to copy and/or distribute it, with or without 12130# modifications, as long as this notice is preserved. 12131 12132# serial 6 ltsugar.m4 12133 12134# This is to help aclocal find these macros, as it can't see m4_define. 12135AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) 12136 12137 12138# lt_join(SEP, ARG1, [ARG2...]) 12139# ----------------------------- 12140# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their 12141# associated separator. 12142# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier 12143# versions in m4sugar had bugs. 12144m4_define([lt_join], 12145[m4_if([$#], [1], [], 12146 [$#], [2], [[$2]], 12147 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) 12148m4_define([_lt_join], 12149[m4_if([$#$2], [2], [], 12150 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) 12151 12152 12153# lt_car(LIST) 12154# lt_cdr(LIST) 12155# ------------ 12156# Manipulate m4 lists. 12157# These macros are necessary as long as will still need to support 12158# Autoconf-2.59, which quotes differently. 12159m4_define([lt_car], [[$1]]) 12160m4_define([lt_cdr], 12161[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], 12162 [$#], 1, [], 12163 [m4_dquote(m4_shift($@))])]) 12164m4_define([lt_unquote], $1) 12165 12166 12167# lt_append(MACRO-NAME, STRING, [SEPARATOR]) 12168# ------------------------------------------ 12169# Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'. 12170# Note that neither SEPARATOR nor STRING are expanded; they are appended 12171# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). 12172# No SEPARATOR is output if MACRO-NAME was previously undefined (different 12173# than defined and empty). 12174# 12175# This macro is needed until we can rely on Autoconf 2.62, since earlier 12176# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. 12177m4_define([lt_append], 12178[m4_define([$1], 12179 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) 12180 12181 12182 12183# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) 12184# ---------------------------------------------------------- 12185# Produce a SEP delimited list of all paired combinations of elements of 12186# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list 12187# has the form PREFIXmINFIXSUFFIXn. 12188# Needed until we can rely on m4_combine added in Autoconf 2.62. 12189m4_define([lt_combine], 12190[m4_if(m4_eval([$# > 3]), [1], 12191 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl 12192[[m4_foreach([_Lt_prefix], [$2], 12193 [m4_foreach([_Lt_suffix], 12194 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, 12195 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) 12196 12197 12198# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) 12199# ----------------------------------------------------------------------- 12200# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited 12201# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. 12202m4_define([lt_if_append_uniq], 12203[m4_ifdef([$1], 12204 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], 12205 [lt_append([$1], [$2], [$3])$4], 12206 [$5])], 12207 [lt_append([$1], [$2], [$3])$4])]) 12208 12209 12210# lt_dict_add(DICT, KEY, VALUE) 12211# ----------------------------- 12212m4_define([lt_dict_add], 12213[m4_define([$1($2)], [$3])]) 12214 12215 12216# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) 12217# -------------------------------------------- 12218m4_define([lt_dict_add_subkey], 12219[m4_define([$1($2:$3)], [$4])]) 12220 12221 12222# lt_dict_fetch(DICT, KEY, [SUBKEY]) 12223# ---------------------------------- 12224m4_define([lt_dict_fetch], 12225[m4_ifval([$3], 12226 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), 12227 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) 12228 12229 12230# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) 12231# ----------------------------------------------------------------- 12232m4_define([lt_if_dict_fetch], 12233[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], 12234 [$5], 12235 [$6])]) 12236 12237 12238# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) 12239# -------------------------------------------------------------- 12240m4_define([lt_dict_filter], 12241[m4_if([$5], [], [], 12242 [lt_join(m4_quote(m4_default([$4], [[, ]])), 12243 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), 12244 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl 12245]) 12246 12247# ltversion.m4 -- version numbers -*- Autoconf -*- 12248# 12249# Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc. 12250# Written by Scott James Remnant, 2004 12251# 12252# This file is free software; the Free Software Foundation gives 12253# unlimited permission to copy and/or distribute it, with or without 12254# modifications, as long as this notice is preserved. 12255 12256# @configure_input@ 12257 12258# serial 4179 ltversion.m4 12259# This file is part of GNU Libtool 12260 12261m4_define([LT_PACKAGE_VERSION], [2.4.6]) 12262m4_define([LT_PACKAGE_REVISION], [2.4.6]) 12263 12264AC_DEFUN([LTVERSION_VERSION], 12265[macro_version='2.4.6' 12266macro_revision='2.4.6' 12267_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 12268_LT_DECL(, macro_revision, 0) 12269]) 12270 12271# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- 12272# 12273# Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software 12274# Foundation, Inc. 12275# Written by Scott James Remnant, 2004. 12276# 12277# This file is free software; the Free Software Foundation gives 12278# unlimited permission to copy and/or distribute it, with or without 12279# modifications, as long as this notice is preserved. 12280 12281# serial 5 lt~obsolete.m4 12282 12283# These exist entirely to fool aclocal when bootstrapping libtool. 12284# 12285# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN), 12286# which have later been changed to m4_define as they aren't part of the 12287# exported API, or moved to Autoconf or Automake where they belong. 12288# 12289# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN 12290# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us 12291# using a macro with the same name in our local m4/libtool.m4 it'll 12292# pull the old libtool.m4 in (it doesn't see our shiny new m4_define 12293# and doesn't know about Autoconf macros at all.) 12294# 12295# So we provide this file, which has a silly filename so it's always 12296# included after everything else. This provides aclocal with the 12297# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything 12298# because those macros already exist, or will be overwritten later. 12299# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 12300# 12301# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. 12302# Yes, that means every name once taken will need to remain here until 12303# we give up compatibility with versions before 1.7, at which point 12304# we need to keep only those names which we still refer to. 12305 12306# This is to help aclocal find these macros, as it can't see m4_define. 12307AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) 12308 12309m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) 12310m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) 12311m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) 12312m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) 12313m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) 12314m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) 12315m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) 12316m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) 12317m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) 12318m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) 12319m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) 12320m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) 12321m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) 12322m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) 12323m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) 12324m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) 12325m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) 12326m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) 12327m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) 12328m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) 12329m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) 12330m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) 12331m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) 12332m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) 12333m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) 12334m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) 12335m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) 12336m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) 12337m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) 12338m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) 12339m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) 12340m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) 12341m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) 12342m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) 12343m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) 12344m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) 12345m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) 12346m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) 12347m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) 12348m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) 12349m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) 12350m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) 12351m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) 12352m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) 12353m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) 12354m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) 12355m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) 12356m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) 12357m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) 12358m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) 12359m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) 12360m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) 12361m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) 12362m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) 12363m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) 12364m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) 12365m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) 12366m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) 12367m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) 12368m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) 12369m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) 12370 12371