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