1# generated automatically by aclocal 1.11.1 -*- Autoconf -*- 2 3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4# 2005, 2006, 2007, 2008, 2009 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_ifndef([AC_AUTOCONF_VERSION], 15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 16m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],, 17[m4_warning([this file was generated for autoconf 2.68. 18You have another version of autoconf. It may work, but is not guaranteed to. 19If you have problems, you may need to regenerate the build system entirely. 20To do so, use the procedure documented by the package, typically `autoreconf'.])]) 21 22# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 23# 24# This file is free software; the Free Software Foundation 25# gives unlimited permission to copy and/or distribute it, 26# with or without modifications, as long as this notice is preserved. 27 28# AM_AUTOMAKE_VERSION(VERSION) 29# ---------------------------- 30# Automake X.Y traces this macro to ensure aclocal.m4 has been 31# generated from the m4 files accompanying Automake X.Y. 32# (This private macro should not be called outside this file.) 33AC_DEFUN([AM_AUTOMAKE_VERSION], 34[am__api_version='1.11' 35dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 36dnl require some minimum version. Point them to the right macro. 37m4_if([$1], [1.11.1], [], 38 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 39]) 40 41# _AM_AUTOCONF_VERSION(VERSION) 42# ----------------------------- 43# aclocal traces this macro to find the Autoconf version. 44# This is a private macro too. Using m4_define simplifies 45# the logic in aclocal, which can simply ignore this definition. 46m4_define([_AM_AUTOCONF_VERSION], []) 47 48# AM_SET_CURRENT_AUTOMAKE_VERSION 49# ------------------------------- 50# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 51# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 52AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 53[AM_AUTOMAKE_VERSION([1.11.1])dnl 54m4_ifndef([AC_AUTOCONF_VERSION], 55 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 56_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 57 58# AM_AUX_DIR_EXPAND -*- Autoconf -*- 59 60# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 61# 62# This file is free software; the Free Software Foundation 63# gives unlimited permission to copy and/or distribute it, 64# with or without modifications, as long as this notice is preserved. 65 66# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 67# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 68# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 69# 70# Of course, Automake must honor this variable whenever it calls a 71# tool from the auxiliary directory. The problem is that $srcdir (and 72# therefore $ac_aux_dir as well) can be either absolute or relative, 73# depending on how configure is run. This is pretty annoying, since 74# it makes $ac_aux_dir quite unusable in subdirectories: in the top 75# source directory, any form will work fine, but in subdirectories a 76# relative path needs to be adjusted first. 77# 78# $ac_aux_dir/missing 79# fails when called from a subdirectory if $ac_aux_dir is relative 80# $top_srcdir/$ac_aux_dir/missing 81# fails if $ac_aux_dir is absolute, 82# fails when called from a subdirectory in a VPATH build with 83# a relative $ac_aux_dir 84# 85# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 86# are both prefixed by $srcdir. In an in-source build this is usually 87# harmless because $srcdir is `.', but things will broke when you 88# start a VPATH build or use an absolute $srcdir. 89# 90# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 91# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 92# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 93# and then we would define $MISSING as 94# MISSING="\${SHELL} $am_aux_dir/missing" 95# This will work as long as MISSING is not called from configure, because 96# unfortunately $(top_srcdir) has no meaning in configure. 97# However there are other variables, like CC, which are often used in 98# configure, and could therefore not use this "fixed" $ac_aux_dir. 99# 100# Another solution, used here, is to always expand $ac_aux_dir to an 101# absolute PATH. The drawback is that using absolute paths prevent a 102# configured tree to be moved without reconfiguration. 103 104AC_DEFUN([AM_AUX_DIR_EXPAND], 105[dnl Rely on autoconf to set up CDPATH properly. 106AC_PREREQ([2.50])dnl 107# expand $ac_aux_dir to an absolute path 108am_aux_dir=`cd $ac_aux_dir && pwd` 109]) 110 111# AM_CONDITIONAL -*- Autoconf -*- 112 113# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 114# Free Software Foundation, Inc. 115# 116# This file is free software; the Free Software Foundation 117# gives unlimited permission to copy and/or distribute it, 118# with or without modifications, as long as this notice is preserved. 119 120# serial 9 121 122# AM_CONDITIONAL(NAME, SHELL-CONDITION) 123# ------------------------------------- 124# Define a conditional. 125AC_DEFUN([AM_CONDITIONAL], 126[AC_PREREQ(2.52)dnl 127 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 128 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 129AC_SUBST([$1_TRUE])dnl 130AC_SUBST([$1_FALSE])dnl 131_AM_SUBST_NOTMAKE([$1_TRUE])dnl 132_AM_SUBST_NOTMAKE([$1_FALSE])dnl 133m4_define([_AM_COND_VALUE_$1], [$2])dnl 134if $2; then 135 $1_TRUE= 136 $1_FALSE='#' 137else 138 $1_TRUE='#' 139 $1_FALSE= 140fi 141AC_CONFIG_COMMANDS_PRE( 142[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 143 AC_MSG_ERROR([[conditional "$1" was never defined. 144Usually this means the macro was only invoked conditionally.]]) 145fi])]) 146 147# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 148# Free Software Foundation, Inc. 149# 150# This file is free software; the Free Software Foundation 151# gives unlimited permission to copy and/or distribute it, 152# with or without modifications, as long as this notice is preserved. 153 154# serial 10 155 156# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 157# written in clear, in which case automake, when reading aclocal.m4, 158# will think it sees a *use*, and therefore will trigger all it's 159# C support machinery. Also note that it means that autoscan, seeing 160# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 161 162 163# _AM_DEPENDENCIES(NAME) 164# ---------------------- 165# See how the compiler implements dependency checking. 166# NAME is "CC", "CXX", "GCJ", or "OBJC". 167# We try a few techniques and use that to set a single cache variable. 168# 169# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 170# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 171# dependency, and given that the user is not expected to run this macro, 172# just rely on AC_PROG_CC. 173AC_DEFUN([_AM_DEPENDENCIES], 174[AC_REQUIRE([AM_SET_DEPDIR])dnl 175AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 176AC_REQUIRE([AM_MAKE_INCLUDE])dnl 177AC_REQUIRE([AM_DEP_TRACK])dnl 178 179ifelse([$1], CC, [depcc="$CC" am_compiler_list=], 180 [$1], CXX, [depcc="$CXX" am_compiler_list=], 181 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 182 [$1], UPC, [depcc="$UPC" am_compiler_list=], 183 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 184 [depcc="$$1" am_compiler_list=]) 185 186AC_CACHE_CHECK([dependency style of $depcc], 187 [am_cv_$1_dependencies_compiler_type], 188[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 189 # We make a subdir and do the tests there. Otherwise we can end up 190 # making bogus files that we don't know about and never remove. For 191 # instance it was reported that on HP-UX the gcc test will end up 192 # making a dummy file named `D' -- because `-MD' means `put the output 193 # in D'. 194 mkdir conftest.dir 195 # Copy depcomp to subdir because otherwise we won't find it if we're 196 # using a relative directory. 197 cp "$am_depcomp" conftest.dir 198 cd conftest.dir 199 # We will build objects and dependencies in a subdirectory because 200 # it helps to detect inapplicable dependency modes. For instance 201 # both Tru64's cc and ICC support -MD to output dependencies as a 202 # side effect of compilation, but ICC will put the dependencies in 203 # the current directory while Tru64 will put them in the object 204 # directory. 205 mkdir sub 206 207 am_cv_$1_dependencies_compiler_type=none 208 if test "$am_compiler_list" = ""; then 209 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 210 fi 211 am__universal=false 212 m4_case([$1], [CC], 213 [case " $depcc " in #( 214 *\ -arch\ *\ -arch\ *) am__universal=true ;; 215 esac], 216 [CXX], 217 [case " $depcc " in #( 218 *\ -arch\ *\ -arch\ *) am__universal=true ;; 219 esac]) 220 221 for depmode in $am_compiler_list; do 222 # Setup a source with many dependencies, because some compilers 223 # like to wrap large dependency lists on column 80 (with \), and 224 # we should not choose a depcomp mode which is confused by this. 225 # 226 # We need to recreate these files for each test, as the compiler may 227 # overwrite some of them when testing with obscure command lines. 228 # This happens at least with the AIX C compiler. 229 : > sub/conftest.c 230 for i in 1 2 3 4 5 6; do 231 echo '#include "conftst'$i'.h"' >> sub/conftest.c 232 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 233 # Solaris 8's {/usr,}/bin/sh. 234 touch sub/conftst$i.h 235 done 236 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 237 238 # We check with `-c' and `-o' for the sake of the "dashmstdout" 239 # mode. It turns out that the SunPro C++ compiler does not properly 240 # handle `-M -o', and we need to detect this. Also, some Intel 241 # versions had trouble with output in subdirs 242 am__obj=sub/conftest.${OBJEXT-o} 243 am__minus_obj="-o $am__obj" 244 case $depmode in 245 gcc) 246 # This depmode causes a compiler race in universal mode. 247 test "$am__universal" = false || continue 248 ;; 249 nosideeffect) 250 # after this tag, mechanisms are not by side-effect, so they'll 251 # only be used when explicitly requested 252 if test "x$enable_dependency_tracking" = xyes; then 253 continue 254 else 255 break 256 fi 257 ;; 258 msvisualcpp | msvcmsys) 259 # This compiler won't grok `-c -o', but also, the minuso test has 260 # not run yet. These depmodes are late enough in the game, and 261 # so weak that their functioning should not be impacted. 262 am__obj=conftest.${OBJEXT-o} 263 am__minus_obj= 264 ;; 265 none) break ;; 266 esac 267 if depmode=$depmode \ 268 source=sub/conftest.c object=$am__obj \ 269 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 270 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 271 >/dev/null 2>conftest.err && 272 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 273 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 274 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 275 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 276 # icc doesn't choke on unknown options, it will just issue warnings 277 # or remarks (even with -Werror). So we grep stderr for any message 278 # that says an option was ignored or not supported. 279 # When given -MP, icc 7.0 and 7.1 complain thusly: 280 # icc: Command line warning: ignoring option '-M'; no argument required 281 # The diagnosis changed in icc 8.0: 282 # icc: Command line remark: option '-MP' not supported 283 if (grep 'ignoring option' conftest.err || 284 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 285 am_cv_$1_dependencies_compiler_type=$depmode 286 break 287 fi 288 fi 289 done 290 291 cd .. 292 rm -rf conftest.dir 293else 294 am_cv_$1_dependencies_compiler_type=none 295fi 296]) 297AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 298AM_CONDITIONAL([am__fastdep$1], [ 299 test "x$enable_dependency_tracking" != xno \ 300 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 301]) 302 303 304# AM_SET_DEPDIR 305# ------------- 306# Choose a directory name for dependency files. 307# This macro is AC_REQUIREd in _AM_DEPENDENCIES 308AC_DEFUN([AM_SET_DEPDIR], 309[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 310AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 311]) 312 313 314# AM_DEP_TRACK 315# ------------ 316AC_DEFUN([AM_DEP_TRACK], 317[AC_ARG_ENABLE(dependency-tracking, 318[ --disable-dependency-tracking speeds up one-time build 319 --enable-dependency-tracking do not reject slow dependency extractors]) 320if test "x$enable_dependency_tracking" != xno; then 321 am_depcomp="$ac_aux_dir/depcomp" 322 AMDEPBACKSLASH='\' 323fi 324AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 325AC_SUBST([AMDEPBACKSLASH])dnl 326_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 327]) 328 329# Generate code to set up dependency tracking. -*- Autoconf -*- 330 331# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 332# Free Software Foundation, Inc. 333# 334# This file is free software; the Free Software Foundation 335# gives unlimited permission to copy and/or distribute it, 336# with or without modifications, as long as this notice is preserved. 337 338#serial 5 339 340# _AM_OUTPUT_DEPENDENCY_COMMANDS 341# ------------------------------ 342AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 343[{ 344 # Autoconf 2.62 quotes --file arguments for eval, but not when files 345 # are listed without --file. Let's play safe and only enable the eval 346 # if we detect the quoting. 347 case $CONFIG_FILES in 348 *\'*) eval set x "$CONFIG_FILES" ;; 349 *) set x $CONFIG_FILES ;; 350 esac 351 shift 352 for mf 353 do 354 # Strip MF so we end up with the name of the file. 355 mf=`echo "$mf" | sed -e 's/:.*$//'` 356 # Check whether this is an Automake generated Makefile or not. 357 # We used to match only the files named `Makefile.in', but 358 # some people rename them; so instead we look at the file content. 359 # Grep'ing the first line is not enough: some people post-process 360 # each Makefile.in and add a new line on top of each file to say so. 361 # Grep'ing the whole file is not good either: AIX grep has a line 362 # limit of 2048, but all sed's we know have understand at least 4000. 363 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 364 dirpart=`AS_DIRNAME("$mf")` 365 else 366 continue 367 fi 368 # Extract the definition of DEPDIR, am__include, and am__quote 369 # from the Makefile without running `make'. 370 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 371 test -z "$DEPDIR" && continue 372 am__include=`sed -n 's/^am__include = //p' < "$mf"` 373 test -z "am__include" && continue 374 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 375 # When using ansi2knr, U may be empty or an underscore; expand it 376 U=`sed -n 's/^U = //p' < "$mf"` 377 # Find all dependency output files, they are included files with 378 # $(DEPDIR) in their names. We invoke sed twice because it is the 379 # simplest approach to changing $(DEPDIR) to its actual value in the 380 # expansion. 381 for file in `sed -n " 382 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 383 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 384 # Make sure the directory exists. 385 test -f "$dirpart/$file" && continue 386 fdir=`AS_DIRNAME(["$file"])` 387 AS_MKDIR_P([$dirpart/$fdir]) 388 # echo "creating $dirpart/$file" 389 echo '# dummy' > "$dirpart/$file" 390 done 391 done 392} 393])# _AM_OUTPUT_DEPENDENCY_COMMANDS 394 395 396# AM_OUTPUT_DEPENDENCY_COMMANDS 397# ----------------------------- 398# This macro should only be invoked once -- use via AC_REQUIRE. 399# 400# This code is only required when automatic dependency tracking 401# is enabled. FIXME. This creates each `.P' file that we will 402# need in order to bootstrap the dependency handling code. 403AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 404[AC_CONFIG_COMMANDS([depfiles], 405 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 406 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 407]) 408 409# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 410# Free Software Foundation, Inc. 411# 412# This file is free software; the Free Software Foundation 413# gives unlimited permission to copy and/or distribute it, 414# with or without modifications, as long as this notice is preserved. 415 416# serial 8 417 418# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. 419AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) 420 421# Do all the work for Automake. -*- Autoconf -*- 422 423# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 424# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. 425# 426# This file is free software; the Free Software Foundation 427# gives unlimited permission to copy and/or distribute it, 428# with or without modifications, as long as this notice is preserved. 429 430# serial 16 431 432# This macro actually does too much. Some checks are only needed if 433# your package does certain things. But this isn't really a big deal. 434 435# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 436# AM_INIT_AUTOMAKE([OPTIONS]) 437# ----------------------------------------------- 438# The call with PACKAGE and VERSION arguments is the old style 439# call (pre autoconf-2.50), which is being phased out. PACKAGE 440# and VERSION should now be passed to AC_INIT and removed from 441# the call to AM_INIT_AUTOMAKE. 442# We support both call styles for the transition. After 443# the next Automake release, Autoconf can make the AC_INIT 444# arguments mandatory, and then we can depend on a new Autoconf 445# release and drop the old call support. 446AC_DEFUN([AM_INIT_AUTOMAKE], 447[AC_PREREQ([2.62])dnl 448dnl Autoconf wants to disallow AM_ names. We explicitly allow 449dnl the ones we care about. 450m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 451AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 452AC_REQUIRE([AC_PROG_INSTALL])dnl 453if test "`cd $srcdir && pwd`" != "`pwd`"; then 454 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 455 # is not polluted with repeated "-I." 456 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 457 # test to see if srcdir already configured 458 if test -f $srcdir/config.status; then 459 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 460 fi 461fi 462 463# test whether we have cygpath 464if test -z "$CYGPATH_W"; then 465 if (cygpath --version) >/dev/null 2>/dev/null; then 466 CYGPATH_W='cygpath -w' 467 else 468 CYGPATH_W=echo 469 fi 470fi 471AC_SUBST([CYGPATH_W]) 472 473# Define the identity of the package. 474dnl Distinguish between old-style and new-style calls. 475m4_ifval([$2], 476[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 477 AC_SUBST([PACKAGE], [$1])dnl 478 AC_SUBST([VERSION], [$2])], 479[_AM_SET_OPTIONS([$1])dnl 480dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 481m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 482 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 483 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 484 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 485 486_AM_IF_OPTION([no-define],, 487[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 488 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 489 490# Some tools Automake needs. 491AC_REQUIRE([AM_SANITY_CHECK])dnl 492AC_REQUIRE([AC_ARG_PROGRAM])dnl 493AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 494AM_MISSING_PROG(AUTOCONF, autoconf) 495AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 496AM_MISSING_PROG(AUTOHEADER, autoheader) 497AM_MISSING_PROG(MAKEINFO, makeinfo) 498AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 499AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 500AC_REQUIRE([AM_PROG_MKDIR_P])dnl 501# We need awk for the "check" target. The system "awk" is bad on 502# some platforms. 503AC_REQUIRE([AC_PROG_AWK])dnl 504AC_REQUIRE([AC_PROG_MAKE_SET])dnl 505AC_REQUIRE([AM_SET_LEADING_DOT])dnl 506_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 507 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 508 [_AM_PROG_TAR([v7])])]) 509_AM_IF_OPTION([no-dependencies],, 510[AC_PROVIDE_IFELSE([AC_PROG_CC], 511 [_AM_DEPENDENCIES(CC)], 512 [define([AC_PROG_CC], 513 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 514AC_PROVIDE_IFELSE([AC_PROG_CXX], 515 [_AM_DEPENDENCIES(CXX)], 516 [define([AC_PROG_CXX], 517 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 518AC_PROVIDE_IFELSE([AC_PROG_OBJC], 519 [_AM_DEPENDENCIES(OBJC)], 520 [define([AC_PROG_OBJC], 521 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 522]) 523_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl 524dnl The `parallel-tests' driver may need to know about EXEEXT, so add the 525dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro 526dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. 527AC_CONFIG_COMMANDS_PRE(dnl 528[m4_provide_if([_AM_COMPILER_EXEEXT], 529 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 530]) 531 532dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 533dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 534dnl mangled by Autoconf and run in a shell conditional statement. 535m4_define([_AC_COMPILER_EXEEXT], 536m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 537 538 539# When config.status generates a header, we must update the stamp-h file. 540# This file resides in the same directory as the config header 541# that is generated. The stamp files are numbered to have different names. 542 543# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 544# loop where config.status creates the headers, so we can generate 545# our stamp files there. 546AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 547[# Compute $1's index in $config_headers. 548_am_arg=$1 549_am_stamp_count=1 550for _am_header in $config_headers :; do 551 case $_am_header in 552 $_am_arg | $_am_arg:* ) 553 break ;; 554 * ) 555 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 556 esac 557done 558echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 559 560# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. 561# 562# This file is free software; the Free Software Foundation 563# gives unlimited permission to copy and/or distribute it, 564# with or without modifications, as long as this notice is preserved. 565 566# AM_PROG_INSTALL_SH 567# ------------------ 568# Define $install_sh. 569AC_DEFUN([AM_PROG_INSTALL_SH], 570[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 571if test x"${install_sh}" != xset; then 572 case $am_aux_dir in 573 *\ * | *\ *) 574 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 575 *) 576 install_sh="\${SHELL} $am_aux_dir/install-sh" 577 esac 578fi 579AC_SUBST(install_sh)]) 580 581# Copyright (C) 2003, 2005 Free Software Foundation, Inc. 582# 583# This file is free software; the Free Software Foundation 584# gives unlimited permission to copy and/or distribute it, 585# with or without modifications, as long as this notice is preserved. 586 587# serial 2 588 589# Check whether the underlying file-system supports filenames 590# with a leading dot. For instance MS-DOS doesn't. 591AC_DEFUN([AM_SET_LEADING_DOT], 592[rm -rf .tst 2>/dev/null 593mkdir .tst 2>/dev/null 594if test -d .tst; then 595 am__leading_dot=. 596else 597 am__leading_dot=_ 598fi 599rmdir .tst 2>/dev/null 600AC_SUBST([am__leading_dot])]) 601 602# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 603# From Jim Meyering 604 605# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008 606# Free Software Foundation, Inc. 607# 608# This file is free software; the Free Software Foundation 609# gives unlimited permission to copy and/or distribute it, 610# with or without modifications, as long as this notice is preserved. 611 612# serial 5 613 614# AM_MAINTAINER_MODE([DEFAULT-MODE]) 615# ---------------------------------- 616# Control maintainer-specific portions of Makefiles. 617# Default is to disable them, unless `enable' is passed literally. 618# For symmetry, `disable' may be passed as well. Anyway, the user 619# can override the default with the --enable/--disable switch. 620AC_DEFUN([AM_MAINTAINER_MODE], 621[m4_case(m4_default([$1], [disable]), 622 [enable], [m4_define([am_maintainer_other], [disable])], 623 [disable], [m4_define([am_maintainer_other], [enable])], 624 [m4_define([am_maintainer_other], [enable]) 625 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) 626AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles]) 627 dnl maintainer-mode's default is 'disable' unless 'enable' is passed 628 AC_ARG_ENABLE([maintainer-mode], 629[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful 630 (and sometimes confusing) to the casual installer], 631 [USE_MAINTAINER_MODE=$enableval], 632 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) 633 AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 634 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) 635 MAINT=$MAINTAINER_MODE_TRUE 636 AC_SUBST([MAINT])dnl 637] 638) 639 640AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) 641 642# Check to see how 'make' treats includes. -*- Autoconf -*- 643 644# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. 645# 646# This file is free software; the Free Software Foundation 647# gives unlimited permission to copy and/or distribute it, 648# with or without modifications, as long as this notice is preserved. 649 650# serial 4 651 652# AM_MAKE_INCLUDE() 653# ----------------- 654# Check to see how make treats includes. 655AC_DEFUN([AM_MAKE_INCLUDE], 656[am_make=${MAKE-make} 657cat > confinc << 'END' 658am__doit: 659 @echo this is the am__doit target 660.PHONY: am__doit 661END 662# If we don't find an include directive, just comment out the code. 663AC_MSG_CHECKING([for style of include used by $am_make]) 664am__include="#" 665am__quote= 666_am_result=none 667# First try GNU make style include. 668echo "include confinc" > confmf 669# Ignore all kinds of additional output from `make'. 670case `$am_make -s -f confmf 2> /dev/null` in #( 671*the\ am__doit\ target*) 672 am__include=include 673 am__quote= 674 _am_result=GNU 675 ;; 676esac 677# Now try BSD make style include. 678if test "$am__include" = "#"; then 679 echo '.include "confinc"' > confmf 680 case `$am_make -s -f confmf 2> /dev/null` in #( 681 *the\ am__doit\ target*) 682 am__include=.include 683 am__quote="\"" 684 _am_result=BSD 685 ;; 686 esac 687fi 688AC_SUBST([am__include]) 689AC_SUBST([am__quote]) 690AC_MSG_RESULT([$_am_result]) 691rm -f confinc confmf 692]) 693 694# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 695 696# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 697# Free Software Foundation, Inc. 698# 699# This file is free software; the Free Software Foundation 700# gives unlimited permission to copy and/or distribute it, 701# with or without modifications, as long as this notice is preserved. 702 703# serial 6 704 705# AM_MISSING_PROG(NAME, PROGRAM) 706# ------------------------------ 707AC_DEFUN([AM_MISSING_PROG], 708[AC_REQUIRE([AM_MISSING_HAS_RUN]) 709$1=${$1-"${am_missing_run}$2"} 710AC_SUBST($1)]) 711 712 713# AM_MISSING_HAS_RUN 714# ------------------ 715# Define MISSING if not defined so far and test if it supports --run. 716# If it does, set am_missing_run to use it, otherwise, to nothing. 717AC_DEFUN([AM_MISSING_HAS_RUN], 718[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 719AC_REQUIRE_AUX_FILE([missing])dnl 720if test x"${MISSING+set}" != xset; then 721 case $am_aux_dir in 722 *\ * | *\ *) 723 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 724 *) 725 MISSING="\${SHELL} $am_aux_dir/missing" ;; 726 esac 727fi 728# Use eval to expand $SHELL 729if eval "$MISSING --run true"; then 730 am_missing_run="$MISSING --run " 731else 732 am_missing_run= 733 AC_MSG_WARN([`missing' script is too old or missing]) 734fi 735]) 736 737# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 738# 739# This file is free software; the Free Software Foundation 740# gives unlimited permission to copy and/or distribute it, 741# with or without modifications, as long as this notice is preserved. 742 743# AM_PROG_MKDIR_P 744# --------------- 745# Check for `mkdir -p'. 746AC_DEFUN([AM_PROG_MKDIR_P], 747[AC_PREREQ([2.60])dnl 748AC_REQUIRE([AC_PROG_MKDIR_P])dnl 749dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, 750dnl while keeping a definition of mkdir_p for backward compatibility. 751dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. 752dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of 753dnl Makefile.ins that do not define MKDIR_P, so we do our own 754dnl adjustment using top_builddir (which is defined more often than 755dnl MKDIR_P). 756AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl 757case $mkdir_p in 758 [[\\/$]]* | ?:[[\\/]]*) ;; 759 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 760esac 761]) 762 763# Helper functions for option handling. -*- Autoconf -*- 764 765# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. 766# 767# This file is free software; the Free Software Foundation 768# gives unlimited permission to copy and/or distribute it, 769# with or without modifications, as long as this notice is preserved. 770 771# serial 4 772 773# _AM_MANGLE_OPTION(NAME) 774# ----------------------- 775AC_DEFUN([_AM_MANGLE_OPTION], 776[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 777 778# _AM_SET_OPTION(NAME) 779# ------------------------------ 780# Set option NAME. Presently that only means defining a flag for this option. 781AC_DEFUN([_AM_SET_OPTION], 782[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 783 784# _AM_SET_OPTIONS(OPTIONS) 785# ---------------------------------- 786# OPTIONS is a space-separated list of Automake options. 787AC_DEFUN([_AM_SET_OPTIONS], 788[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 789 790# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 791# ------------------------------------------- 792# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 793AC_DEFUN([_AM_IF_OPTION], 794[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 795 796# Check to make sure that the build environment is sane. -*- Autoconf -*- 797 798# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 799# Free Software Foundation, Inc. 800# 801# This file is free software; the Free Software Foundation 802# gives unlimited permission to copy and/or distribute it, 803# with or without modifications, as long as this notice is preserved. 804 805# serial 5 806 807# AM_SANITY_CHECK 808# --------------- 809AC_DEFUN([AM_SANITY_CHECK], 810[AC_MSG_CHECKING([whether build environment is sane]) 811# Just in case 812sleep 1 813echo timestamp > conftest.file 814# Reject unsafe characters in $srcdir or the absolute working directory 815# name. Accept space and tab only in the latter. 816am_lf=' 817' 818case `pwd` in 819 *[[\\\"\#\$\&\'\`$am_lf]]*) 820 AC_MSG_ERROR([unsafe absolute working directory name]);; 821esac 822case $srcdir in 823 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 824 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; 825esac 826 827# Do `set' in a subshell so we don't clobber the current shell's 828# arguments. Must try -L first in case configure is actually a 829# symlink; some systems play weird games with the mod time of symlinks 830# (eg FreeBSD returns the mod time of the symlink's containing 831# directory). 832if ( 833 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 834 if test "$[*]" = "X"; then 835 # -L didn't work. 836 set X `ls -t "$srcdir/configure" conftest.file` 837 fi 838 rm -f conftest.file 839 if test "$[*]" != "X $srcdir/configure conftest.file" \ 840 && test "$[*]" != "X conftest.file $srcdir/configure"; then 841 842 # If neither matched, then we have a broken ls. This can happen 843 # if, for instance, CONFIG_SHELL is bash and it inherits a 844 # broken ls alias from the environment. This has actually 845 # happened. Such a system could not be considered "sane". 846 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 847alias in your environment]) 848 fi 849 850 test "$[2]" = conftest.file 851 ) 852then 853 # Ok. 854 : 855else 856 AC_MSG_ERROR([newly created file is older than distributed files! 857Check your system clock]) 858fi 859AC_MSG_RESULT(yes)]) 860 861# Copyright (C) 2009 Free Software Foundation, Inc. 862# 863# This file is free software; the Free Software Foundation 864# gives unlimited permission to copy and/or distribute it, 865# with or without modifications, as long as this notice is preserved. 866 867# serial 1 868 869# AM_SILENT_RULES([DEFAULT]) 870# -------------------------- 871# Enable less verbose build rules; with the default set to DEFAULT 872# (`yes' being less verbose, `no' or empty being verbose). 873AC_DEFUN([AM_SILENT_RULES], 874[AC_ARG_ENABLE([silent-rules], 875[ --enable-silent-rules less verbose build output (undo: `make V=1') 876 --disable-silent-rules verbose build output (undo: `make V=0')]) 877case $enable_silent_rules in 878yes) AM_DEFAULT_VERBOSITY=0;; 879no) AM_DEFAULT_VERBOSITY=1;; 880*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 881esac 882AC_SUBST([AM_DEFAULT_VERBOSITY])dnl 883AM_BACKSLASH='\' 884AC_SUBST([AM_BACKSLASH])dnl 885_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 886]) 887 888# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 889# 890# This file is free software; the Free Software Foundation 891# gives unlimited permission to copy and/or distribute it, 892# with or without modifications, as long as this notice is preserved. 893 894# AM_PROG_INSTALL_STRIP 895# --------------------- 896# One issue with vendor `install' (even GNU) is that you can't 897# specify the program used to strip binaries. This is especially 898# annoying in cross-compiling environments, where the build's strip 899# is unlikely to handle the host's binaries. 900# Fortunately install-sh will honor a STRIPPROG variable, so we 901# always use install-sh in `make install-strip', and initialize 902# STRIPPROG with the value of the STRIP variable (set by the user). 903AC_DEFUN([AM_PROG_INSTALL_STRIP], 904[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 905# Installed binaries are usually stripped using `strip' when the user 906# run `make install-strip'. However `strip' might not be the right 907# tool to use in cross-compilation environments, therefore Automake 908# will honor the `STRIP' environment variable to overrule this program. 909dnl Don't test for $cross_compiling = yes, because it might be `maybe'. 910if test "$cross_compiling" != no; then 911 AC_CHECK_TOOL([STRIP], [strip], :) 912fi 913INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 914AC_SUBST([INSTALL_STRIP_PROGRAM])]) 915 916# Copyright (C) 2006, 2008 Free Software Foundation, Inc. 917# 918# This file is free software; the Free Software Foundation 919# gives unlimited permission to copy and/or distribute it, 920# with or without modifications, as long as this notice is preserved. 921 922# serial 2 923 924# _AM_SUBST_NOTMAKE(VARIABLE) 925# --------------------------- 926# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 927# This macro is traced by Automake. 928AC_DEFUN([_AM_SUBST_NOTMAKE]) 929 930# AM_SUBST_NOTMAKE(VARIABLE) 931# --------------------------- 932# Public sister of _AM_SUBST_NOTMAKE. 933AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 934 935# Check how to create a tarball. -*- Autoconf -*- 936 937# Copyright (C) 2004, 2005 Free Software Foundation, Inc. 938# 939# This file is free software; the Free Software Foundation 940# gives unlimited permission to copy and/or distribute it, 941# with or without modifications, as long as this notice is preserved. 942 943# serial 2 944 945# _AM_PROG_TAR(FORMAT) 946# -------------------- 947# Check how to create a tarball in format FORMAT. 948# FORMAT should be one of `v7', `ustar', or `pax'. 949# 950# Substitute a variable $(am__tar) that is a command 951# writing to stdout a FORMAT-tarball containing the directory 952# $tardir. 953# tardir=directory && $(am__tar) > result.tar 954# 955# Substitute a variable $(am__untar) that extract such 956# a tarball read from stdin. 957# $(am__untar) < result.tar 958AC_DEFUN([_AM_PROG_TAR], 959[# Always define AMTAR for backward compatibility. 960AM_MISSING_PROG([AMTAR], [tar]) 961m4_if([$1], [v7], 962 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 963 [m4_case([$1], [ustar],, [pax],, 964 [m4_fatal([Unknown tar format])]) 965AC_MSG_CHECKING([how to create a $1 tar archive]) 966# Loop over all known methods to create a tar archive until one works. 967_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 968_am_tools=${am_cv_prog_tar_$1-$_am_tools} 969# Do not fold the above two line into one, because Tru64 sh and 970# Solaris sh will not grok spaces in the rhs of `-'. 971for _am_tool in $_am_tools 972do 973 case $_am_tool in 974 gnutar) 975 for _am_tar in tar gnutar gtar; 976 do 977 AM_RUN_LOG([$_am_tar --version]) && break 978 done 979 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 980 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 981 am__untar="$_am_tar -xf -" 982 ;; 983 plaintar) 984 # Must skip GNU tar: if it does not support --format= it doesn't create 985 # ustar tarball either. 986 (tar --version) >/dev/null 2>&1 && continue 987 am__tar='tar chf - "$$tardir"' 988 am__tar_='tar chf - "$tardir"' 989 am__untar='tar xf -' 990 ;; 991 pax) 992 am__tar='pax -L -x $1 -w "$$tardir"' 993 am__tar_='pax -L -x $1 -w "$tardir"' 994 am__untar='pax -r' 995 ;; 996 cpio) 997 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 998 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 999 am__untar='cpio -i -H $1 -d' 1000 ;; 1001 none) 1002 am__tar=false 1003 am__tar_=false 1004 am__untar=false 1005 ;; 1006 esac 1007 1008 # If the value was cached, stop now. We just wanted to have am__tar 1009 # and am__untar set. 1010 test -n "${am_cv_prog_tar_$1}" && break 1011 1012 # tar/untar a dummy directory, and stop if the command works 1013 rm -rf conftest.dir 1014 mkdir conftest.dir 1015 echo GrepMe > conftest.dir/file 1016 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 1017 rm -rf conftest.dir 1018 if test -s conftest.tar; then 1019 AM_RUN_LOG([$am__untar <conftest.tar]) 1020 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 1021 fi 1022done 1023rm -rf conftest.dir 1024 1025AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 1026AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 1027AC_SUBST([am__tar]) 1028AC_SUBST([am__untar]) 1029]) # _AM_PROG_TAR 1030 1031dnl xorg-macros.m4. Generated from xorg-macros.m4.in xorgversion.m4 by configure. 1032dnl 1033dnl Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. 1034dnl 1035dnl Permission is hereby granted, free of charge, to any person obtaining a 1036dnl copy of this software and associated documentation files (the "Software"), 1037dnl to deal in the Software without restriction, including without limitation 1038dnl the rights to use, copy, modify, merge, publish, distribute, sublicense, 1039dnl and/or sell copies of the Software, and to permit persons to whom the 1040dnl Software is furnished to do so, subject to the following conditions: 1041dnl 1042dnl The above copyright notice and this permission notice (including the next 1043dnl paragraph) shall be included in all copies or substantial portions of the 1044dnl Software. 1045dnl 1046dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1047dnl IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1048dnl FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 1049dnl THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1050dnl LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 1051dnl FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 1052dnl DEALINGS IN THE SOFTWARE. 1053 1054# XORG_MACROS_VERSION(required-version) 1055# ------------------------------------- 1056# Minimum version: 1.1.0 1057# 1058# If you're using a macro added in Version 1.1 or newer, include this in 1059# your configure.ac with the minimum required version, such as: 1060# XORG_MACROS_VERSION(1.1) 1061# 1062# To ensure that this macro is defined, also add: 1063# m4_ifndef([XORG_MACROS_VERSION], 1064# [m4_fatal([must install xorg-macros 1.1 or later before running autoconf/autogen])]) 1065# 1066# 1067# See the "minimum version" comment for each macro you use to see what 1068# version you require. 1069m4_defun([XORG_MACROS_VERSION],[ 1070m4_define([vers_have], [1.11.0]) 1071m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.]))) 1072m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.]))) 1073m4_if(m4_cmp(maj_have, maj_needed), 0,, 1074 [m4_fatal([xorg-macros major version ]maj_needed[ is required but ]vers_have[ found])]) 1075m4_if(m4_version_compare(vers_have, [$1]), -1, 1076 [m4_fatal([xorg-macros version $1 or higher is required but ]vers_have[ found])]) 1077m4_undefine([vers_have]) 1078m4_undefine([maj_have]) 1079m4_undefine([maj_needed]) 1080]) # XORG_MACROS_VERSION 1081 1082# XORG_PROG_RAWCPP() 1083# ------------------ 1084# Minimum version: 1.0.0 1085# 1086# Find cpp program and necessary flags for use in pre-processing text files 1087# such as man pages and config files 1088AC_DEFUN([XORG_PROG_RAWCPP],[ 1089AC_REQUIRE([AC_PROG_CPP]) 1090AC_PATH_PROGS(RAWCPP, [cpp], [${CPP}], 1091 [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib]) 1092 1093# Check for flag to avoid builtin definitions - assumes unix is predefined, 1094# which is not the best choice for supporting other OS'es, but covers most 1095# of the ones we need for now. 1096AC_MSG_CHECKING([if $RAWCPP requires -undef]) 1097AC_LANG_CONFTEST([Does cpp redefine unix ?]) 1098if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 1099 AC_MSG_RESULT([no]) 1100else 1101 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 1102 RAWCPPFLAGS=-undef 1103 AC_MSG_RESULT([yes]) 1104 # under Cygwin unix is still defined even with -undef 1105 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 1106 RAWCPPFLAGS="-undef -ansi" 1107 AC_MSG_RESULT([yes, with -ansi]) 1108 else 1109 AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef. I don't know what to do.]) 1110 fi 1111fi 1112rm -f conftest.$ac_ext 1113 1114AC_MSG_CHECKING([if $RAWCPP requires -traditional]) 1115AC_LANG_CONFTEST([Does cpp preserve "whitespace"?]) 1116if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 1117 AC_MSG_RESULT([no]) 1118else 1119 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 1120 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 1121 AC_MSG_RESULT([yes]) 1122 else 1123 AC_MSG_ERROR([${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do.]) 1124 fi 1125fi 1126rm -f conftest.$ac_ext 1127AC_SUBST(RAWCPPFLAGS) 1128]) # XORG_PROG_RAWCPP 1129 1130# XORG_MANPAGE_SECTIONS() 1131# ----------------------- 1132# Minimum version: 1.0.0 1133# 1134# Determine which sections man pages go in for the different man page types 1135# on this OS - replaces *ManSuffix settings in old Imake *.cf per-os files. 1136# Not sure if there's any better way than just hardcoding by OS name. 1137# Override default settings by setting environment variables 1138# Added MAN_SUBSTS in version 1.8 1139# Added AC_PROG_SED in version 1.8 1140 1141AC_DEFUN([XORG_MANPAGE_SECTIONS],[ 1142AC_REQUIRE([AC_CANONICAL_HOST]) 1143AC_REQUIRE([AC_PROG_SED]) 1144 1145if test x$APP_MAN_SUFFIX = x ; then 1146 APP_MAN_SUFFIX=1 1147fi 1148if test x$APP_MAN_DIR = x ; then 1149 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 1150fi 1151 1152if test x$LIB_MAN_SUFFIX = x ; then 1153 LIB_MAN_SUFFIX=3 1154fi 1155if test x$LIB_MAN_DIR = x ; then 1156 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 1157fi 1158 1159if test x$FILE_MAN_SUFFIX = x ; then 1160 case $host_os in 1161 solaris*) FILE_MAN_SUFFIX=4 ;; 1162 *) FILE_MAN_SUFFIX=5 ;; 1163 esac 1164fi 1165if test x$FILE_MAN_DIR = x ; then 1166 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 1167fi 1168 1169if test x$MISC_MAN_SUFFIX = x ; then 1170 case $host_os in 1171 solaris*) MISC_MAN_SUFFIX=5 ;; 1172 *) MISC_MAN_SUFFIX=7 ;; 1173 esac 1174fi 1175if test x$MISC_MAN_DIR = x ; then 1176 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 1177fi 1178 1179if test x$DRIVER_MAN_SUFFIX = x ; then 1180 case $host_os in 1181 solaris*) DRIVER_MAN_SUFFIX=7 ;; 1182 *) DRIVER_MAN_SUFFIX=4 ;; 1183 esac 1184fi 1185if test x$DRIVER_MAN_DIR = x ; then 1186 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 1187fi 1188 1189if test x$ADMIN_MAN_SUFFIX = x ; then 1190 case $host_os in 1191 solaris*) ADMIN_MAN_SUFFIX=1m ;; 1192 *) ADMIN_MAN_SUFFIX=8 ;; 1193 esac 1194fi 1195if test x$ADMIN_MAN_DIR = x ; then 1196 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 1197fi 1198 1199 1200AC_SUBST([APP_MAN_SUFFIX]) 1201AC_SUBST([LIB_MAN_SUFFIX]) 1202AC_SUBST([FILE_MAN_SUFFIX]) 1203AC_SUBST([MISC_MAN_SUFFIX]) 1204AC_SUBST([DRIVER_MAN_SUFFIX]) 1205AC_SUBST([ADMIN_MAN_SUFFIX]) 1206AC_SUBST([APP_MAN_DIR]) 1207AC_SUBST([LIB_MAN_DIR]) 1208AC_SUBST([FILE_MAN_DIR]) 1209AC_SUBST([MISC_MAN_DIR]) 1210AC_SUBST([DRIVER_MAN_DIR]) 1211AC_SUBST([ADMIN_MAN_DIR]) 1212 1213XORG_MAN_PAGE="X Version 11" 1214AC_SUBST([XORG_MAN_PAGE]) 1215MAN_SUBSTS="\ 1216 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1217 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1218 -e 's|__xservername__|Xorg|g' \ 1219 -e 's|__xconfigfile__|xorg.conf|g' \ 1220 -e 's|__projectroot__|\$(prefix)|g' \ 1221 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 1222 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 1223 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 1224 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 1225 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 1226 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 1227 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 1228AC_SUBST([MAN_SUBSTS]) 1229 1230]) # XORG_MANPAGE_SECTIONS 1231 1232# XORG_CHECK_SGML_DOCTOOLS([MIN-VERSION]) 1233# ------------------------ 1234# Minimum version: 1.7.0 1235# 1236# Defines the variable XORG_SGML_PATH containing the location of X11/defs.ent 1237# provided by xorg-sgml-doctools, if installed. 1238AC_DEFUN([XORG_CHECK_SGML_DOCTOOLS],[ 1239AC_MSG_CHECKING([for X.Org SGML entities m4_ifval([$1],[>= $1])]) 1240XORG_SGML_PATH= 1241PKG_CHECK_EXISTS([xorg-sgml-doctools m4_ifval([$1],[>= $1])], 1242 [XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`], 1243 [m4_ifval([$1],[:], 1244 [if test x"$cross_compiling" != x"yes" ; then 1245 AC_CHECK_FILE([$prefix/share/sgml/X11/defs.ent], 1246 [XORG_SGML_PATH=$prefix/share/sgml]) 1247 fi]) 1248 ]) 1249 1250# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 1251# the path and the name of the doc stylesheet 1252if test "x$XORG_SGML_PATH" != "x" ; then 1253 AC_MSG_RESULT([$XORG_SGML_PATH]) 1254 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 1255 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 1256else 1257 AC_MSG_RESULT([no]) 1258fi 1259 1260AC_SUBST(XORG_SGML_PATH) 1261AC_SUBST(STYLESHEET_SRCDIR) 1262AC_SUBST(XSL_STYLESHEET) 1263AM_CONDITIONAL([HAVE_STYLESHEETS], [test "x$XSL_STYLESHEET" != "x"]) 1264]) # XORG_CHECK_SGML_DOCTOOLS 1265 1266# XORG_CHECK_LINUXDOC 1267# ------------------- 1268# Minimum version: 1.0.0 1269# 1270# Defines the variable MAKE_TEXT if the necessary tools and 1271# files are found. $(MAKE_TEXT) blah.sgml will then produce blah.txt. 1272# Whether or not the necessary tools and files are found can be checked 1273# with the AM_CONDITIONAL "BUILD_LINUXDOC" 1274AC_DEFUN([XORG_CHECK_LINUXDOC],[ 1275AC_REQUIRE([XORG_CHECK_SGML_DOCTOOLS]) 1276AC_REQUIRE([XORG_WITH_PS2PDF]) 1277 1278AC_PATH_PROG(LINUXDOC, linuxdoc) 1279 1280AC_MSG_CHECKING([whether to build documentation]) 1281 1282if test x$XORG_SGML_PATH != x && test x$LINUXDOC != x ; then 1283 BUILDDOC=yes 1284else 1285 BUILDDOC=no 1286fi 1287 1288AM_CONDITIONAL(BUILD_LINUXDOC, [test x$BUILDDOC = xyes]) 1289 1290AC_MSG_RESULT([$BUILDDOC]) 1291 1292AC_MSG_CHECKING([whether to build pdf documentation]) 1293 1294if test x$have_ps2pdf != xno && test x$BUILD_PDFDOC != xno; then 1295 BUILDPDFDOC=yes 1296else 1297 BUILDPDFDOC=no 1298fi 1299 1300AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) 1301 1302AC_MSG_RESULT([$BUILDPDFDOC]) 1303 1304MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt -f" 1305MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps" 1306MAKE_PDF="$PS2PDF" 1307MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0" 1308 1309AC_SUBST(MAKE_TEXT) 1310AC_SUBST(MAKE_PS) 1311AC_SUBST(MAKE_PDF) 1312AC_SUBST(MAKE_HTML) 1313]) # XORG_CHECK_LINUXDOC 1314 1315# XORG_CHECK_DOCBOOK 1316# ------------------- 1317# Minimum version: 1.0.0 1318# 1319# Checks for the ability to build output formats from SGML DocBook source. 1320# For XXX in {TXT, PDF, PS, HTML}, the AM_CONDITIONAL "BUILD_XXXDOC" 1321# indicates whether the necessary tools and files are found and, if set, 1322# $(MAKE_XXX) blah.sgml will produce blah.xxx. 1323AC_DEFUN([XORG_CHECK_DOCBOOK],[ 1324AC_REQUIRE([XORG_CHECK_SGML_DOCTOOLS]) 1325 1326BUILDTXTDOC=no 1327BUILDPDFDOC=no 1328BUILDPSDOC=no 1329BUILDHTMLDOC=no 1330 1331AC_PATH_PROG(DOCBOOKPS, docbook2ps) 1332AC_PATH_PROG(DOCBOOKPDF, docbook2pdf) 1333AC_PATH_PROG(DOCBOOKHTML, docbook2html) 1334AC_PATH_PROG(DOCBOOKTXT, docbook2txt) 1335 1336AC_MSG_CHECKING([whether to build text documentation]) 1337if test x$XORG_SGML_PATH != x && test x$DOCBOOKTXT != x && 1338 test x$BUILD_TXTDOC != xno; then 1339 BUILDTXTDOC=yes 1340fi 1341AM_CONDITIONAL(BUILD_TXTDOC, [test x$BUILDTXTDOC = xyes]) 1342AC_MSG_RESULT([$BUILDTXTDOC]) 1343 1344AC_MSG_CHECKING([whether to build PDF documentation]) 1345if test x$XORG_SGML_PATH != x && test x$DOCBOOKPDF != x && 1346 test x$BUILD_PDFDOC != xno; then 1347 BUILDPDFDOC=yes 1348fi 1349AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) 1350AC_MSG_RESULT([$BUILDPDFDOC]) 1351 1352AC_MSG_CHECKING([whether to build PostScript documentation]) 1353if test x$XORG_SGML_PATH != x && test x$DOCBOOKPS != x && 1354 test x$BUILD_PSDOC != xno; then 1355 BUILDPSDOC=yes 1356fi 1357AM_CONDITIONAL(BUILD_PSDOC, [test x$BUILDPSDOC = xyes]) 1358AC_MSG_RESULT([$BUILDPSDOC]) 1359 1360AC_MSG_CHECKING([whether to build HTML documentation]) 1361if test x$XORG_SGML_PATH != x && test x$DOCBOOKHTML != x && 1362 test x$BUILD_HTMLDOC != xno; then 1363 BUILDHTMLDOC=yes 1364fi 1365AM_CONDITIONAL(BUILD_HTMLDOC, [test x$BUILDHTMLDOC = xyes]) 1366AC_MSG_RESULT([$BUILDHTMLDOC]) 1367 1368MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKTXT" 1369MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPS" 1370MAKE_PDF="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPDF" 1371MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKHTML" 1372 1373AC_SUBST(MAKE_TEXT) 1374AC_SUBST(MAKE_PS) 1375AC_SUBST(MAKE_PDF) 1376AC_SUBST(MAKE_HTML) 1377]) # XORG_CHECK_DOCBOOK 1378 1379# XORG_WITH_XMLTO([MIN-VERSION], [DEFAULT]) 1380# ---------------- 1381# Minimum version: 1.5.0 1382# Minimum version for optional DEFAULT argument: 1.11.0 1383# 1384# Documentation tools are not always available on all platforms and sometimes 1385# not at the appropriate level. This macro enables a module to test for the 1386# presence of the tool and obtain it's path in separate variables. Coupled with 1387# the --with-xmlto option, it allows maximum flexibilty in making decisions 1388# as whether or not to use the xmlto package. When DEFAULT is not specified, 1389# --with-xmlto assumes 'auto'. 1390# 1391# Interface to module: 1392# HAVE_XMLTO: used in makefiles to conditionally generate documentation 1393# XMLTO: returns the path of the xmlto program found 1394# returns the path set by the user in the environment 1395# --with-xmlto: 'yes' user instructs the module to use xmlto 1396# 'no' user instructs the module not to use xmlto 1397# 1398# Added in version 1.10.0 1399# HAVE_XMLTO_TEXT: used in makefiles to conditionally generate text documentation 1400# xmlto for text output requires either lynx, links, or w3m browsers 1401# 1402# If the user sets the value of XMLTO, AC_PATH_PROG skips testing the path. 1403# 1404AC_DEFUN([XORG_WITH_XMLTO],[ 1405AC_ARG_VAR([XMLTO], [Path to xmlto command]) 1406m4_define([_defopt], m4_default([$2], [auto])) 1407AC_ARG_WITH(xmlto, 1408 AS_HELP_STRING([--with-xmlto], 1409 [Use xmlto to regenerate documentation (default: ]_defopt[)]), 1410 [use_xmlto=$withval], [use_xmlto=]_defopt) 1411m4_undefine([_defopt]) 1412 1413if test "x$use_xmlto" = x"auto"; then 1414 AC_PATH_PROG([XMLTO], [xmlto]) 1415 if test "x$XMLTO" = "x"; then 1416 AC_MSG_WARN([xmlto not found - documentation targets will be skipped]) 1417 have_xmlto=no 1418 else 1419 have_xmlto=yes 1420 fi 1421elif test "x$use_xmlto" = x"yes" ; then 1422 AC_PATH_PROG([XMLTO], [xmlto]) 1423 if test "x$XMLTO" = "x"; then 1424 AC_MSG_ERROR([--with-xmlto=yes specified but xmlto not found in PATH]) 1425 fi 1426 have_xmlto=yes 1427elif test "x$use_xmlto" = x"no" ; then 1428 if test "x$XMLTO" != "x"; then 1429 AC_MSG_WARN([ignoring XMLTO environment variable since --with-xmlto=no was specified]) 1430 fi 1431 have_xmlto=no 1432else 1433 AC_MSG_ERROR([--with-xmlto expects 'yes' or 'no']) 1434fi 1435 1436# Test for a minimum version of xmlto, if provided. 1437m4_ifval([$1], 1438[if test "$have_xmlto" = yes; then 1439 # scrape the xmlto version 1440 AC_MSG_CHECKING([the xmlto version]) 1441 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 1442 AC_MSG_RESULT([$xmlto_version]) 1443 AS_VERSION_COMPARE([$xmlto_version], [$1], 1444 [if test "x$use_xmlto" = xauto; then 1445 AC_MSG_WARN([xmlto version $xmlto_version found, but $1 needed]) 1446 have_xmlto=no 1447 else 1448 AC_MSG_ERROR([xmlto version $xmlto_version found, but $1 needed]) 1449 fi]) 1450fi]) 1451 1452# Test for the ability of xmlto to generate a text target 1453have_xmlto_text=no 1454cat > conftest.xml << "EOF" 1455EOF 1456AS_IF([test "$have_xmlto" = yes], 1457 [AS_IF([$XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1], 1458 [have_xmlto_text=yes], 1459 [AC_MSG_WARN([xmlto cannot generate text format, this format skipped])])]) 1460rm -f conftest.xml 1461AM_CONDITIONAL([HAVE_XMLTO_TEXT], [test $have_xmlto_text = yes]) 1462AM_CONDITIONAL([HAVE_XMLTO], [test "$have_xmlto" = yes]) 1463]) # XORG_WITH_XMLTO 1464 1465# XORG_WITH_ASCIIDOC([MIN-VERSION], [DEFAULT]) 1466# ---------------- 1467# Minimum version: 1.5.0 1468# Minimum version for optional DEFAULT argument: 1.11.0 1469# 1470# Documentation tools are not always available on all platforms and sometimes 1471# not at the appropriate level. This macro enables a module to test for the 1472# presence of the tool and obtain it's path in separate variables. Coupled with 1473# the --with-asciidoc option, it allows maximum flexibilty in making decisions 1474# as whether or not to use the asciidoc package. When DEFAULT is not specified, 1475# --with-asciidoc assumes 'auto'. 1476# 1477# Interface to module: 1478# HAVE_ASCIIDOC: used in makefiles to conditionally generate documentation 1479# ASCIIDOC: returns the path of the asciidoc program found 1480# returns the path set by the user in the environment 1481# --with-asciidoc: 'yes' user instructs the module to use asciidoc 1482# 'no' user instructs the module not to use asciidoc 1483# 1484# If the user sets the value of ASCIIDOC, AC_PATH_PROG skips testing the path. 1485# 1486AC_DEFUN([XORG_WITH_ASCIIDOC],[ 1487AC_ARG_VAR([ASCIIDOC], [Path to asciidoc command]) 1488m4_define([_defopt], m4_default([$2], [auto])) 1489AC_ARG_WITH(asciidoc, 1490 AS_HELP_STRING([--with-asciidoc], 1491 [Use asciidoc to regenerate documentation (default: ]_defopt[)]), 1492 [use_asciidoc=$withval], [use_asciidoc=]_defopt) 1493m4_undefine([_defopt]) 1494 1495if test "x$use_asciidoc" = x"auto"; then 1496 AC_PATH_PROG([ASCIIDOC], [asciidoc]) 1497 if test "x$ASCIIDOC" = "x"; then 1498 AC_MSG_WARN([asciidoc not found - documentation targets will be skipped]) 1499 have_asciidoc=no 1500 else 1501 have_asciidoc=yes 1502 fi 1503elif test "x$use_asciidoc" = x"yes" ; then 1504 AC_PATH_PROG([ASCIIDOC], [asciidoc]) 1505 if test "x$ASCIIDOC" = "x"; then 1506 AC_MSG_ERROR([--with-asciidoc=yes specified but asciidoc not found in PATH]) 1507 fi 1508 have_asciidoc=yes 1509elif test "x$use_asciidoc" = x"no" ; then 1510 if test "x$ASCIIDOC" != "x"; then 1511 AC_MSG_WARN([ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified]) 1512 fi 1513 have_asciidoc=no 1514else 1515 AC_MSG_ERROR([--with-asciidoc expects 'yes' or 'no']) 1516fi 1517m4_ifval([$1], 1518[if test "$have_asciidoc" = yes; then 1519 # scrape the asciidoc version 1520 AC_MSG_CHECKING([the asciidoc version]) 1521 asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2` 1522 AC_MSG_RESULT([$asciidoc_version]) 1523 AS_VERSION_COMPARE([$asciidoc_version], [$1], 1524 [if test "x$use_asciidoc" = xauto; then 1525 AC_MSG_WARN([asciidoc version $asciidoc_version found, but $1 needed]) 1526 have_asciidoc=no 1527 else 1528 AC_MSG_ERROR([asciidoc version $asciidoc_version found, but $1 needed]) 1529 fi]) 1530fi]) 1531AM_CONDITIONAL([HAVE_ASCIIDOC], [test "$have_asciidoc" = yes]) 1532]) # XORG_WITH_ASCIIDOC 1533 1534# XORG_WITH_DOXYGEN([MIN-VERSION], [DEFAULT]) 1535# -------------------------------- 1536# Minimum version: 1.5.0 1537# Minimum version for optional DEFAULT argument: 1.11.0 1538# 1539# Documentation tools are not always available on all platforms and sometimes 1540# not at the appropriate level. This macro enables a module to test for the 1541# presence of the tool and obtain it's path in separate variables. Coupled with 1542# the --with-doxygen option, it allows maximum flexibilty in making decisions 1543# as whether or not to use the doxygen package. When DEFAULT is not specified, 1544# --with-doxygen assumes 'auto'. 1545# 1546# Interface to module: 1547# HAVE_DOXYGEN: used in makefiles to conditionally generate documentation 1548# DOXYGEN: returns the path of the doxygen program found 1549# returns the path set by the user in the environment 1550# --with-doxygen: 'yes' user instructs the module to use doxygen 1551# 'no' user instructs the module not to use doxygen 1552# 1553# If the user sets the value of DOXYGEN, AC_PATH_PROG skips testing the path. 1554# 1555AC_DEFUN([XORG_WITH_DOXYGEN],[ 1556AC_ARG_VAR([DOXYGEN], [Path to doxygen command]) 1557m4_define([_defopt], m4_default([$2], [auto])) 1558AC_ARG_WITH(doxygen, 1559 AS_HELP_STRING([--with-doxygen], 1560 [Use doxygen to regenerate documentation (default: ]_defopt[)]), 1561 [use_doxygen=$withval], [use_doxygen=]_defopt) 1562m4_undefine([_defopt]) 1563 1564if test "x$use_doxygen" = x"auto"; then 1565 AC_PATH_PROG([DOXYGEN], [doxygen]) 1566 if test "x$DOXYGEN" = "x"; then 1567 AC_MSG_WARN([doxygen not found - documentation targets will be skipped]) 1568 have_doxygen=no 1569 else 1570 have_doxygen=yes 1571 fi 1572elif test "x$use_doxygen" = x"yes" ; then 1573 AC_PATH_PROG([DOXYGEN], [doxygen]) 1574 if test "x$DOXYGEN" = "x"; then 1575 AC_MSG_ERROR([--with-doxygen=yes specified but doxygen not found in PATH]) 1576 fi 1577 have_doxygen=yes 1578elif test "x$use_doxygen" = x"no" ; then 1579 if test "x$DOXYGEN" != "x"; then 1580 AC_MSG_WARN([ignoring DOXYGEN environment variable since --with-doxygen=no was specified]) 1581 fi 1582 have_doxygen=no 1583else 1584 AC_MSG_ERROR([--with-doxygen expects 'yes' or 'no']) 1585fi 1586m4_ifval([$1], 1587[if test "$have_doxygen" = yes; then 1588 # scrape the doxygen version 1589 AC_MSG_CHECKING([the doxygen version]) 1590 doxygen_version=`$DOXYGEN --version 2>/dev/null` 1591 AC_MSG_RESULT([$doxygen_version]) 1592 AS_VERSION_COMPARE([$doxygen_version], [$1], 1593 [if test "x$use_doxygen" = xauto; then 1594 AC_MSG_WARN([doxygen version $doxygen_version found, but $1 needed]) 1595 have_doxygen=no 1596 else 1597 AC_MSG_ERROR([doxygen version $doxygen_version found, but $1 needed]) 1598 fi]) 1599fi]) 1600AM_CONDITIONAL([HAVE_DOXYGEN], [test "$have_doxygen" = yes]) 1601]) # XORG_WITH_DOXYGEN 1602 1603# XORG_WITH_GROFF([DEFAULT]) 1604# ---------------- 1605# Minimum version: 1.6.0 1606# Minimum version for optional DEFAULT argument: 1.11.0 1607# 1608# Documentation tools are not always available on all platforms and sometimes 1609# not at the appropriate level. This macro enables a module to test for the 1610# presence of the tool and obtain it's path in separate variables. Coupled with 1611# the --with-groff option, it allows maximum flexibilty in making decisions 1612# as whether or not to use the groff package. When DEFAULT is not specified, 1613# --with-groff assumes 'auto'. 1614# 1615# Interface to module: 1616# HAVE_GROFF: used in makefiles to conditionally generate documentation 1617# HAVE_GROFF_MM: the memorandum macros (-mm) package 1618# HAVE_GROFF_MS: the -ms macros package 1619# GROFF: returns the path of the groff program found 1620# returns the path set by the user in the environment 1621# --with-groff: 'yes' user instructs the module to use groff 1622# 'no' user instructs the module not to use groff 1623# 1624# Added in version 1.9.0: 1625# HAVE_GROFF_HTML: groff has dependencies to output HTML format: 1626# pnmcut pnmcrop pnmtopng pnmtops from the netpbm package. 1627# psselect from the psutils package. 1628# the ghostcript package. Refer to the grohtml man pages 1629# 1630# If the user sets the value of GROFF, AC_PATH_PROG skips testing the path. 1631# 1632# OS and distros often splits groff in a basic and full package, the former 1633# having the groff program and the later having devices, fonts and macros 1634# Checking for the groff executable is not enough. 1635# 1636# If macros are missing, we cannot assume that groff is useless, so we don't 1637# unset HAVE_GROFF or GROFF env variables. 1638# HAVE_GROFF_?? can never be true while HAVE_GROFF is false. 1639# 1640AC_DEFUN([XORG_WITH_GROFF],[ 1641AC_ARG_VAR([GROFF], [Path to groff command]) 1642m4_define([_defopt], m4_default([$1], [auto])) 1643AC_ARG_WITH(groff, 1644 AS_HELP_STRING([--with-groff], 1645 [Use groff to regenerate documentation (default: ]_defopt[)]), 1646 [use_groff=$withval], [use_groff=]_defopt) 1647m4_undefine([_defopt]) 1648 1649if test "x$use_groff" = x"auto"; then 1650 AC_PATH_PROG([GROFF], [groff]) 1651 if test "x$GROFF" = "x"; then 1652 AC_MSG_WARN([groff not found - documentation targets will be skipped]) 1653 have_groff=no 1654 else 1655 have_groff=yes 1656 fi 1657elif test "x$use_groff" = x"yes" ; then 1658 AC_PATH_PROG([GROFF], [groff]) 1659 if test "x$GROFF" = "x"; then 1660 AC_MSG_ERROR([--with-groff=yes specified but groff not found in PATH]) 1661 fi 1662 have_groff=yes 1663elif test "x$use_groff" = x"no" ; then 1664 if test "x$GROFF" != "x"; then 1665 AC_MSG_WARN([ignoring GROFF environment variable since --with-groff=no was specified]) 1666 fi 1667 have_groff=no 1668else 1669 AC_MSG_ERROR([--with-groff expects 'yes' or 'no']) 1670fi 1671 1672# We have groff, test for the presence of the macro packages 1673if test "x$have_groff" = x"yes"; then 1674 AC_MSG_CHECKING([for ${GROFF} -ms macros]) 1675 if ${GROFF} -ms -I. /dev/null >/dev/null 2>&1 ; then 1676 groff_ms_works=yes 1677 else 1678 groff_ms_works=no 1679 fi 1680 AC_MSG_RESULT([$groff_ms_works]) 1681 AC_MSG_CHECKING([for ${GROFF} -mm macros]) 1682 if ${GROFF} -mm -I. /dev/null >/dev/null 2>&1 ; then 1683 groff_mm_works=yes 1684 else 1685 groff_mm_works=no 1686 fi 1687 AC_MSG_RESULT([$groff_mm_works]) 1688fi 1689 1690# We have groff, test for HTML dependencies, one command per package 1691if test "x$have_groff" = x"yes"; then 1692 AC_PATH_PROGS(GS_PATH, [gs gswin32c]) 1693 AC_PATH_PROG(PNMTOPNG_PATH, [pnmtopng]) 1694 AC_PATH_PROG(PSSELECT_PATH, [psselect]) 1695 if test "x$GS_PATH" != "x" -a "x$PNMTOPNG_PATH" != "x" -a "x$PSSELECT_PATH" != "x"; then 1696 have_groff_html=yes 1697 else 1698 have_groff_html=no 1699 AC_MSG_WARN([grohtml dependencies not found - HTML Documentation skipped. Refer to grohtml man pages]) 1700 fi 1701fi 1702 1703# Set Automake conditionals for Makefiles 1704AM_CONDITIONAL([HAVE_GROFF], [test "$have_groff" = yes]) 1705AM_CONDITIONAL([HAVE_GROFF_MS], [test "$groff_ms_works" = yes]) 1706AM_CONDITIONAL([HAVE_GROFF_MM], [test "$groff_mm_works" = yes]) 1707AM_CONDITIONAL([HAVE_GROFF_HTML], [test "$have_groff_html" = yes]) 1708]) # XORG_WITH_GROFF 1709 1710# XORG_WITH_FOP([DEFAULT]) 1711# ---------------- 1712# Minimum version: 1.6.0 1713# Minimum version for optional DEFAULT argument: 1.11.0 1714# 1715# Documentation tools are not always available on all platforms and sometimes 1716# not at the appropriate level. This macro enables a module to test for the 1717# presence of the tool and obtain it's path in separate variables. Coupled with 1718# the --with-fop option, it allows maximum flexibilty in making decisions 1719# as whether or not to use the fop package. When DEFAULT is not specified, 1720# --with-fop assumes 'auto'. 1721# 1722# Interface to module: 1723# HAVE_FOP: used in makefiles to conditionally generate documentation 1724# FOP: returns the path of the fop program found 1725# returns the path set by the user in the environment 1726# --with-fop: 'yes' user instructs the module to use fop 1727# 'no' user instructs the module not to use fop 1728# 1729# If the user sets the value of FOP, AC_PATH_PROG skips testing the path. 1730# 1731AC_DEFUN([XORG_WITH_FOP],[ 1732AC_ARG_VAR([FOP], [Path to fop command]) 1733m4_define([_defopt], m4_default([$1], [auto])) 1734AC_ARG_WITH(fop, 1735 AS_HELP_STRING([--with-fop], 1736 [Use fop to regenerate documentation (default: ]_defopt[)]), 1737 [use_fop=$withval], [use_fop=]_defopt) 1738m4_undefine([_defopt]) 1739 1740if test "x$use_fop" = x"auto"; then 1741 AC_PATH_PROG([FOP], [fop]) 1742 if test "x$FOP" = "x"; then 1743 AC_MSG_WARN([fop not found - documentation targets will be skipped]) 1744 have_fop=no 1745 else 1746 have_fop=yes 1747 fi 1748elif test "x$use_fop" = x"yes" ; then 1749 AC_PATH_PROG([FOP], [fop]) 1750 if test "x$FOP" = "x"; then 1751 AC_MSG_ERROR([--with-fop=yes specified but fop not found in PATH]) 1752 fi 1753 have_fop=yes 1754elif test "x$use_fop" = x"no" ; then 1755 if test "x$FOP" != "x"; then 1756 AC_MSG_WARN([ignoring FOP environment variable since --with-fop=no was specified]) 1757 fi 1758 have_fop=no 1759else 1760 AC_MSG_ERROR([--with-fop expects 'yes' or 'no']) 1761fi 1762AM_CONDITIONAL([HAVE_FOP], [test "$have_fop" = yes]) 1763]) # XORG_WITH_FOP 1764 1765# XORG_WITH_PS2PDF([DEFAULT]) 1766# ---------------- 1767# Minimum version: 1.6.0 1768# Minimum version for optional DEFAULT argument: 1.11.0 1769# 1770# Documentation tools are not always available on all platforms and sometimes 1771# not at the appropriate level. This macro enables a module to test for the 1772# presence of the tool and obtain it's path in separate variables. Coupled with 1773# the --with-ps2pdf option, it allows maximum flexibilty in making decisions 1774# as whether or not to use the ps2pdf package. When DEFAULT is not specified, 1775# --with-ps2pdf assumes 'auto'. 1776# 1777# Interface to module: 1778# HAVE_PS2PDF: used in makefiles to conditionally generate documentation 1779# PS2PDF: returns the path of the ps2pdf program found 1780# returns the path set by the user in the environment 1781# --with-ps2pdf: 'yes' user instructs the module to use ps2pdf 1782# 'no' user instructs the module not to use ps2pdf 1783# 1784# If the user sets the value of PS2PDF, AC_PATH_PROG skips testing the path. 1785# 1786AC_DEFUN([XORG_WITH_PS2PDF],[ 1787AC_ARG_VAR([PS2PDF], [Path to ps2pdf command]) 1788m4_define([_defopt], m4_default([$1], [auto])) 1789AC_ARG_WITH(ps2pdf, 1790 AS_HELP_STRING([--with-ps2pdf], 1791 [Use ps2pdf to regenerate documentation (default: ]_defopt[)]), 1792 [use_ps2pdf=$withval], [use_ps2pdf=]_defopt) 1793m4_undefine([_defopt]) 1794 1795if test "x$use_ps2pdf" = x"auto"; then 1796 AC_PATH_PROG([PS2PDF], [ps2pdf]) 1797 if test "x$PS2PDF" = "x"; then 1798 AC_MSG_WARN([ps2pdf not found - documentation targets will be skipped]) 1799 have_ps2pdf=no 1800 else 1801 have_ps2pdf=yes 1802 fi 1803elif test "x$use_ps2pdf" = x"yes" ; then 1804 AC_PATH_PROG([PS2PDF], [ps2pdf]) 1805 if test "x$PS2PDF" = "x"; then 1806 AC_MSG_ERROR([--with-ps2pdf=yes specified but ps2pdf not found in PATH]) 1807 fi 1808 have_ps2pdf=yes 1809elif test "x$use_ps2pdf" = x"no" ; then 1810 if test "x$PS2PDF" != "x"; then 1811 AC_MSG_WARN([ignoring PS2PDF environment variable since --with-ps2pdf=no was specified]) 1812 fi 1813 have_ps2pdf=no 1814else 1815 AC_MSG_ERROR([--with-ps2pdf expects 'yes' or 'no']) 1816fi 1817AM_CONDITIONAL([HAVE_PS2PDF], [test "$have_ps2pdf" = yes]) 1818]) # XORG_WITH_PS2PDF 1819 1820# XORG_ENABLE_DOCS (enable_docs=yes) 1821# ---------------- 1822# Minimum version: 1.6.0 1823# 1824# Documentation tools are not always available on all platforms and sometimes 1825# not at the appropriate level. This macro enables a builder to skip all 1826# documentation targets except traditional man pages. 1827# Combined with the specific tool checking macros XORG_WITH_*, it provides 1828# maximum flexibilty in controlling documentation building. 1829# Refer to: 1830# XORG_WITH_XMLTO --with-xmlto 1831# XORG_WITH_ASCIIDOC --with-asciidoc 1832# XORG_WITH_DOXYGEN --with-doxygen 1833# XORG_WITH_FOP --with-fop 1834# XORG_WITH_GROFF --with-groff 1835# XORG_WITH_PS2PDF --with-ps2pdf 1836# 1837# Interface to module: 1838# ENABLE_DOCS: used in makefiles to conditionally generate documentation 1839# --enable-docs: 'yes' user instructs the module to generate docs 1840# 'no' user instructs the module not to generate docs 1841# parm1: specify the default value, yes or no. 1842# 1843AC_DEFUN([XORG_ENABLE_DOCS],[ 1844m4_define([default], m4_default([$1], [yes])) 1845AC_ARG_ENABLE(docs, 1846 AS_HELP_STRING([--enable-docs], 1847 [Enable building the documentation (default: ]default[)]), 1848 [build_docs=$enableval], [build_docs=]default) 1849m4_undefine([default]) 1850AM_CONDITIONAL(ENABLE_DOCS, [test x$build_docs = xyes]) 1851AC_MSG_CHECKING([whether to build documentation]) 1852AC_MSG_RESULT([$build_docs]) 1853]) # XORG_ENABLE_DOCS 1854 1855# XORG_ENABLE_DEVEL_DOCS (enable_devel_docs=yes) 1856# ---------------- 1857# Minimum version: 1.6.0 1858# 1859# This macro enables a builder to skip all developer documentation. 1860# Combined with the specific tool checking macros XORG_WITH_*, it provides 1861# maximum flexibilty in controlling documentation building. 1862# Refer to: 1863# XORG_WITH_XMLTO --with-xmlto 1864# XORG_WITH_ASCIIDOC --with-asciidoc 1865# XORG_WITH_DOXYGEN --with-doxygen 1866# XORG_WITH_FOP --with-fop 1867# XORG_WITH_GROFF --with-groff 1868# XORG_WITH_PS2PDF --with-ps2pdf 1869# 1870# Interface to module: 1871# ENABLE_DEVEL_DOCS: used in makefiles to conditionally generate developer docs 1872# --enable-devel-docs: 'yes' user instructs the module to generate developer docs 1873# 'no' user instructs the module not to generate developer docs 1874# parm1: specify the default value, yes or no. 1875# 1876AC_DEFUN([XORG_ENABLE_DEVEL_DOCS],[ 1877m4_define([devel_default], m4_default([$1], [yes])) 1878AC_ARG_ENABLE(devel-docs, 1879 AS_HELP_STRING([--enable-devel-docs], 1880 [Enable building the developer documentation (default: ]devel_default[)]), 1881 [build_devel_docs=$enableval], [build_devel_docs=]devel_default) 1882m4_undefine([devel_default]) 1883AM_CONDITIONAL(ENABLE_DEVEL_DOCS, [test x$build_devel_docs = xyes]) 1884AC_MSG_CHECKING([whether to build developer documentation]) 1885AC_MSG_RESULT([$build_devel_docs]) 1886]) # XORG_ENABLE_DEVEL_DOCS 1887 1888# XORG_ENABLE_SPECS (enable_specs=yes) 1889# ---------------- 1890# Minimum version: 1.6.0 1891# 1892# This macro enables a builder to skip all functional specification targets. 1893# Combined with the specific tool checking macros XORG_WITH_*, it provides 1894# maximum flexibilty in controlling documentation building. 1895# Refer to: 1896# XORG_WITH_XMLTO --with-xmlto 1897# XORG_WITH_ASCIIDOC --with-asciidoc 1898# XORG_WITH_DOXYGEN --with-doxygen 1899# XORG_WITH_FOP --with-fop 1900# XORG_WITH_GROFF --with-groff 1901# XORG_WITH_PS2PDF --with-ps2pdf 1902# 1903# Interface to module: 1904# ENABLE_SPECS: used in makefiles to conditionally generate specs 1905# --enable-specs: 'yes' user instructs the module to generate specs 1906# 'no' user instructs the module not to generate specs 1907# parm1: specify the default value, yes or no. 1908# 1909AC_DEFUN([XORG_ENABLE_SPECS],[ 1910m4_define([spec_default], m4_default([$1], [yes])) 1911AC_ARG_ENABLE(specs, 1912 AS_HELP_STRING([--enable-specs], 1913 [Enable building the specs (default: ]spec_default[)]), 1914 [build_specs=$enableval], [build_specs=]spec_default) 1915m4_undefine([spec_default]) 1916AM_CONDITIONAL(ENABLE_SPECS, [test x$build_specs = xyes]) 1917AC_MSG_CHECKING([whether to build functional specifications]) 1918AC_MSG_RESULT([$build_specs]) 1919]) # XORG_ENABLE_SPECS 1920 1921# XORG_CHECK_MALLOC_ZERO 1922# ---------------------- 1923# Minimum version: 1.0.0 1924# 1925# Defines {MALLOC,XMALLOC,XTMALLOC}_ZERO_CFLAGS appropriately if 1926# malloc(0) returns NULL. Packages should add one of these cflags to 1927# their AM_CFLAGS (or other appropriate *_CFLAGS) to use them. 1928AC_DEFUN([XORG_CHECK_MALLOC_ZERO],[ 1929AC_ARG_ENABLE(malloc0returnsnull, 1930 AS_HELP_STRING([--enable-malloc0returnsnull], 1931 [malloc(0) returns NULL (default: auto)]), 1932 [MALLOC_ZERO_RETURNS_NULL=$enableval], 1933 [MALLOC_ZERO_RETURNS_NULL=auto]) 1934 1935AC_MSG_CHECKING([whether malloc(0) returns NULL]) 1936if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 1937 AC_RUN_IFELSE([ 1938char *malloc(); 1939char *realloc(); 1940char *calloc(); 1941main() { 1942 char *m0, *r0, *c0, *p; 1943 m0 = malloc(0); 1944 p = malloc(10); 1945 r0 = realloc(p,0); 1946 c0 = calloc(0); 1947 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1); 1948}], 1949 [MALLOC_ZERO_RETURNS_NULL=yes], 1950 [MALLOC_ZERO_RETURNS_NULL=no], 1951 [MALLOC_ZERO_RETURNS_NULL=yes]) 1952fi 1953AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL]) 1954 1955if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 1956 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 1957 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 1958 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 1959else 1960 MALLOC_ZERO_CFLAGS="" 1961 XMALLOC_ZERO_CFLAGS="" 1962 XTMALLOC_ZERO_CFLAGS="" 1963fi 1964 1965AC_SUBST([MALLOC_ZERO_CFLAGS]) 1966AC_SUBST([XMALLOC_ZERO_CFLAGS]) 1967AC_SUBST([XTMALLOC_ZERO_CFLAGS]) 1968]) # XORG_CHECK_MALLOC_ZERO 1969 1970# XORG_WITH_LINT() 1971# ---------------- 1972# Minimum version: 1.1.0 1973# 1974# This macro enables the use of a tool that flags some suspicious and 1975# non-portable constructs (likely to be bugs) in C language source code. 1976# It will attempt to locate the tool and use appropriate options. 1977# There are various lint type tools on different platforms. 1978# 1979# Interface to module: 1980# LINT: returns the path to the tool found on the platform 1981# or the value set to LINT on the configure cmd line 1982# also an Automake conditional 1983# LINT_FLAGS: an Automake variable with appropriate flags 1984# 1985# --with-lint: 'yes' user instructs the module to use lint 1986# 'no' user instructs the module not to use lint (default) 1987# 1988# If the user sets the value of LINT, AC_PATH_PROG skips testing the path. 1989# If the user sets the value of LINT_FLAGS, they are used verbatim. 1990# 1991AC_DEFUN([XORG_WITH_LINT],[ 1992 1993AC_ARG_VAR([LINT], [Path to a lint-style command]) 1994AC_ARG_VAR([LINT_FLAGS], [Flags for the lint-style command]) 1995AC_ARG_WITH(lint, [AS_HELP_STRING([--with-lint], 1996 [Use a lint-style source code checker (default: disabled)])], 1997 [use_lint=$withval], [use_lint=no]) 1998 1999# Obtain platform specific info like program name and options 2000# The lint program on FreeBSD and NetBSD is different from the one on Solaris 2001case $host_os in 2002 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 2003 lint_name=splint 2004 lint_options="-badflag" 2005 ;; 2006 *freebsd* | *netbsd*) 2007 lint_name=lint 2008 lint_options="-u -b" 2009 ;; 2010 *solaris*) 2011 lint_name=lint 2012 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 2013 ;; 2014esac 2015 2016# Test for the presence of the program (either guessed by the code or spelled out by the user) 2017if test "x$use_lint" = x"yes" ; then 2018 AC_PATH_PROG([LINT], [$lint_name]) 2019 if test "x$LINT" = "x"; then 2020 AC_MSG_ERROR([--with-lint=yes specified but lint-style tool not found in PATH]) 2021 fi 2022elif test "x$use_lint" = x"no" ; then 2023 if test "x$LINT" != "x"; then 2024 AC_MSG_WARN([ignoring LINT environment variable since --with-lint=no was specified]) 2025 fi 2026else 2027 AC_MSG_ERROR([--with-lint expects 'yes' or 'no'. Use LINT variable to specify path.]) 2028fi 2029 2030# User supplied flags override default flags 2031if test "x$LINT_FLAGS" != "x"; then 2032 lint_options=$LINT_FLAGS 2033fi 2034 2035AC_SUBST([LINT_FLAGS],[$lint_options]) 2036AM_CONDITIONAL(LINT, [test "x$LINT" != x]) 2037 2038]) # XORG_WITH_LINT 2039 2040# XORG_LINT_LIBRARY(LIBNAME) 2041# -------------------------- 2042# Minimum version: 1.1.0 2043# 2044# Sets up flags for building lint libraries for checking programs that call 2045# functions in the library. 2046# 2047# Interface to module: 2048# LINTLIB - Automake variable with the name of lint library file to make 2049# MAKE_LINT_LIB - Automake conditional 2050# 2051# --enable-lint-library: - 'yes' user instructs the module to created a lint library 2052# - 'no' user instructs the module not to create a lint library (default) 2053 2054AC_DEFUN([XORG_LINT_LIBRARY],[ 2055AC_REQUIRE([XORG_WITH_LINT]) 2056AC_ARG_ENABLE(lint-library, [AS_HELP_STRING([--enable-lint-library], 2057 [Create lint library (default: disabled)])], 2058 [make_lint_lib=$enableval], [make_lint_lib=no]) 2059 2060if test "x$make_lint_lib" = x"yes" ; then 2061 LINTLIB=llib-l$1.ln 2062 if test "x$LINT" = "x"; then 2063 AC_MSG_ERROR([Cannot make lint library without --with-lint]) 2064 fi 2065elif test "x$make_lint_lib" != x"no" ; then 2066 AC_MSG_ERROR([--enable-lint-library expects 'yes' or 'no'.]) 2067fi 2068 2069AC_SUBST(LINTLIB) 2070AM_CONDITIONAL(MAKE_LINT_LIB, [test x$make_lint_lib != xno]) 2071 2072]) # XORG_LINT_LIBRARY 2073 2074# XORG_CWARNFLAGS 2075# --------------- 2076# Minimum version: 1.2.0 2077# 2078# Defines CWARNFLAGS to enable C compiler warnings. 2079# 2080AC_DEFUN([XORG_CWARNFLAGS], [ 2081AC_REQUIRE([AC_PROG_CC_C99]) 2082if test "x$GCC" = xyes ; then 2083 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 2084-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 2085-Wbad-function-cast -Wformat=2" 2086 case `$CC -dumpversion` in 2087 3.4.* | 4.*) 2088 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 2089 ;; 2090 esac 2091else 2092 AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) 2093 if test "x$SUNCC" = "xyes"; then 2094 CWARNFLAGS="-v" 2095 fi 2096fi 2097AC_SUBST(CWARNFLAGS) 2098]) # XORG_CWARNFLAGS 2099 2100# XORG_STRICT_OPTION 2101# ----------------------- 2102# Minimum version: 1.3.0 2103# 2104# Add configure option to enable strict compilation 2105AC_DEFUN([XORG_STRICT_OPTION], [ 2106# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 2107AC_REQUIRE([AC_PROG_CC_C99]) 2108AC_REQUIRE([XORG_CWARNFLAGS]) 2109 2110AC_ARG_ENABLE(strict-compilation, 2111 AS_HELP_STRING([--enable-strict-compilation], 2112 [Enable all warnings from compiler and make them errors (default: disabled)]), 2113 [STRICT_COMPILE=$enableval], [STRICT_COMPILE=no]) 2114if test "x$STRICT_COMPILE" = "xyes"; then 2115 AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) 2116 AC_CHECK_DECL([__INTEL_COMPILER], [INTELCC="yes"], [INTELCC="no"]) 2117 if test "x$GCC" = xyes ; then 2118 STRICT_CFLAGS="-pedantic -Werror" 2119 elif test "x$SUNCC" = "xyes"; then 2120 STRICT_CFLAGS="-errwarn" 2121 elif test "x$INTELCC" = "xyes"; then 2122 STRICT_CFLAGS="-Werror" 2123 fi 2124fi 2125CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 2126AC_SUBST([CWARNFLAGS]) 2127]) # XORG_STRICT_OPTION 2128 2129# XORG_DEFAULT_OPTIONS 2130# -------------------- 2131# Minimum version: 1.3.0 2132# 2133# Defines default options for X.Org modules. 2134# 2135AC_DEFUN([XORG_DEFAULT_OPTIONS], [ 2136AC_REQUIRE([AC_PROG_INSTALL]) 2137XORG_CWARNFLAGS 2138XORG_STRICT_OPTION 2139XORG_RELEASE_VERSION 2140XORG_CHANGELOG 2141XORG_INSTALL 2142XORG_MANPAGE_SECTIONS 2143m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])], 2144 [AC_SUBST([AM_DEFAULT_VERBOSITY], [1])]) 2145]) # XORG_DEFAULT_OPTIONS 2146 2147# XORG_INSTALL() 2148# ---------------- 2149# Minimum version: 1.4.0 2150# 2151# Defines the variable INSTALL_CMD as the command to copy 2152# INSTALL from $prefix/share/util-macros. 2153# 2154AC_DEFUN([XORG_INSTALL], [ 2155AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 2156macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 2157INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 2158mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 2159|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 2160echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 2161AC_SUBST([INSTALL_CMD]) 2162]) # XORG_INSTALL 2163dnl Copyright 2005 Red Hat, Inc 2164dnl 2165dnl Permission to use, copy, modify, distribute, and sell this software and its 2166dnl documentation for any purpose is hereby granted without fee, provided that 2167dnl the above copyright notice appear in all copies and that both that 2168dnl copyright notice and this permission notice appear in supporting 2169dnl documentation. 2170dnl 2171dnl The above copyright notice and this permission notice shall be included 2172dnl in all copies or substantial portions of the Software. 2173dnl 2174dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 2175dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 2176dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 2177dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 2178dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 2179dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 2180dnl OTHER DEALINGS IN THE SOFTWARE. 2181dnl 2182dnl Except as contained in this notice, the name of the copyright holders shall 2183dnl not be used in advertising or otherwise to promote the sale, use or 2184dnl other dealings in this Software without prior written authorization 2185dnl from the copyright holders. 2186dnl 2187 2188# XORG_RELEASE_VERSION 2189# -------------------- 2190# Defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use. 2191 2192AC_DEFUN([XORG_RELEASE_VERSION],[ 2193 AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR], 2194 [`echo $PACKAGE_VERSION | cut -d . -f 1`], 2195 [Major version of this package]) 2196 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 2197 if test "x$PVM" = "x"; then 2198 PVM="0" 2199 fi 2200 AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR], 2201 [$PVM], 2202 [Minor version of this package]) 2203 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 2204 if test "x$PVP" = "x"; then 2205 PVP="0" 2206 fi 2207 AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL], 2208 [$PVP], 2209 [Patch version of this package]) 2210]) 2211 2212# XORG_CHANGELOG() 2213# ---------------- 2214# Minimum version: 1.2.0 2215# 2216# Defines the variable CHANGELOG_CMD as the command to generate 2217# ChangeLog from git. 2218# 2219# 2220AC_DEFUN([XORG_CHANGELOG], [ 2221CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 2222mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 2223|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 2224echo 'git directory not found: installing possibly empty changelog.' >&2)" 2225AC_SUBST([CHANGELOG_CMD]) 2226]) # XORG_CHANGELOG 2227 2228# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 2229# 2230# Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 2231# 2232# This program is free software; you can redistribute it and/or modify 2233# it under the terms of the GNU General Public License as published by 2234# the Free Software Foundation; either version 2 of the License, or 2235# (at your option) any later version. 2236# 2237# This program is distributed in the hope that it will be useful, but 2238# WITHOUT ANY WARRANTY; without even the implied warranty of 2239# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 2240# General Public License for more details. 2241# 2242# You should have received a copy of the GNU General Public License 2243# along with this program; if not, write to the Free Software 2244# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 2245# 2246# As a special exception to the GNU General Public License, if you 2247# distribute this file as part of a program that contains a 2248# configuration script generated by Autoconf, you may include it under 2249# the same distribution terms that you use for the rest of that program. 2250 2251# PKG_PROG_PKG_CONFIG([MIN-VERSION]) 2252# ---------------------------------- 2253AC_DEFUN([PKG_PROG_PKG_CONFIG], 2254[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) 2255m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) 2256AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl 2257if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 2258 AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) 2259fi 2260if test -n "$PKG_CONFIG"; then 2261 _pkg_min_version=m4_default([$1], [0.9.0]) 2262 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) 2263 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 2264 AC_MSG_RESULT([yes]) 2265 else 2266 AC_MSG_RESULT([no]) 2267 PKG_CONFIG="" 2268 fi 2269 2270fi[]dnl 2271])# PKG_PROG_PKG_CONFIG 2272 2273# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 2274# 2275# Check to see whether a particular set of modules exists. Similar 2276# to PKG_CHECK_MODULES(), but does not set variables or print errors. 2277# 2278# 2279# Similar to PKG_CHECK_MODULES, make sure that the first instance of 2280# this or PKG_CHECK_MODULES is called, or make sure to call 2281# PKG_CHECK_EXISTS manually 2282# -------------------------------------------------------------- 2283AC_DEFUN([PKG_CHECK_EXISTS], 2284[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 2285if test -n "$PKG_CONFIG" && \ 2286 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then 2287 m4_ifval([$2], [$2], [:]) 2288m4_ifvaln([$3], [else 2289 $3])dnl 2290fi]) 2291 2292 2293# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 2294# --------------------------------------------- 2295m4_define([_PKG_CONFIG], 2296[if test -n "$$1"; then 2297 pkg_cv_[]$1="$$1" 2298 elif test -n "$PKG_CONFIG"; then 2299 PKG_CHECK_EXISTS([$3], 2300 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], 2301 [pkg_failed=yes]) 2302 else 2303 pkg_failed=untried 2304fi[]dnl 2305])# _PKG_CONFIG 2306 2307# _PKG_SHORT_ERRORS_SUPPORTED 2308# ----------------------------- 2309AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], 2310[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 2311if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 2312 _pkg_short_errors_supported=yes 2313else 2314 _pkg_short_errors_supported=no 2315fi[]dnl 2316])# _PKG_SHORT_ERRORS_SUPPORTED 2317 2318 2319# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 2320# [ACTION-IF-NOT-FOUND]) 2321# 2322# 2323# Note that if there is a possibility the first call to 2324# PKG_CHECK_MODULES might not happen, you should be sure to include an 2325# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 2326# 2327# 2328# -------------------------------------------------------------- 2329AC_DEFUN([PKG_CHECK_MODULES], 2330[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 2331AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl 2332AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl 2333 2334pkg_failed=no 2335AC_MSG_CHECKING([for $1]) 2336 2337_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) 2338_PKG_CONFIG([$1][_LIBS], [libs], [$2]) 2339 2340m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS 2341and $1[]_LIBS to avoid the need to call pkg-config. 2342See the pkg-config man page for more details.]) 2343 2344if test $pkg_failed = yes; then 2345 _PKG_SHORT_ERRORS_SUPPORTED 2346 if test $_pkg_short_errors_supported = yes; then 2347 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` 2348 else 2349 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1` 2350 fi 2351 # Put the nasty error message in config.log where it belongs 2352 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD 2353 2354 ifelse([$4], , [AC_MSG_ERROR(dnl 2355[Package requirements ($2) were not met: 2356 2357$$1_PKG_ERRORS 2358 2359Consider adjusting the PKG_CONFIG_PATH environment variable if you 2360installed software in a non-standard prefix. 2361 2362_PKG_TEXT 2363])], 2364 [AC_MSG_RESULT([no]) 2365 $4]) 2366elif test $pkg_failed = untried; then 2367 ifelse([$4], , [AC_MSG_FAILURE(dnl 2368[The pkg-config script could not be found or is too old. Make sure it 2369is in your PATH or set the PKG_CONFIG environment variable to the full 2370path to pkg-config. 2371 2372_PKG_TEXT 2373 2374To get pkg-config, see <http://pkg-config.freedesktop.org/>.])], 2375 [$4]) 2376else 2377 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS 2378 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS 2379 AC_MSG_RESULT([yes]) 2380 ifelse([$3], , :, [$3]) 2381fi[]dnl 2382])# PKG_CHECK_MODULES 2383 2384# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 2385# 2386# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2387# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 2388# Inc. 2389# Written by Gordon Matzigkeit, 1996 2390# 2391# This file is free software; the Free Software Foundation gives 2392# unlimited permission to copy and/or distribute it, with or without 2393# modifications, as long as this notice is preserved. 2394 2395m4_define([_LT_COPYING], [dnl 2396# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2397# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 2398# Inc. 2399# Written by Gordon Matzigkeit, 1996 2400# 2401# This file is part of GNU Libtool. 2402# 2403# GNU Libtool is free software; you can redistribute it and/or 2404# modify it under the terms of the GNU General Public License as 2405# published by the Free Software Foundation; either version 2 of 2406# the License, or (at your option) any later version. 2407# 2408# As a special exception to the GNU General Public License, 2409# if you distribute this file as part of a program or library that 2410# is built using GNU Libtool, you may include this file under the 2411# same distribution terms that you use for the rest of that program. 2412# 2413# GNU Libtool is distributed in the hope that it will be useful, 2414# but WITHOUT ANY WARRANTY; without even the implied warranty of 2415# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 2416# GNU General Public License for more details. 2417# 2418# You should have received a copy of the GNU General Public License 2419# along with GNU Libtool; see the file COPYING. If not, a copy 2420# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 2421# obtained by writing to the Free Software Foundation, Inc., 2422# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 2423]) 2424 2425# serial 57 LT_INIT 2426 2427 2428# LT_PREREQ(VERSION) 2429# ------------------ 2430# Complain and exit if this libtool version is less that VERSION. 2431m4_defun([LT_PREREQ], 2432[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, 2433 [m4_default([$3], 2434 [m4_fatal([Libtool version $1 or higher is required], 2435 63)])], 2436 [$2])]) 2437 2438 2439# _LT_CHECK_BUILDDIR 2440# ------------------ 2441# Complain if the absolute build directory name contains unusual characters 2442m4_defun([_LT_CHECK_BUILDDIR], 2443[case `pwd` in 2444 *\ * | *\ *) 2445 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; 2446esac 2447]) 2448 2449 2450# LT_INIT([OPTIONS]) 2451# ------------------ 2452AC_DEFUN([LT_INIT], 2453[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT 2454AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 2455AC_BEFORE([$0], [LT_LANG])dnl 2456AC_BEFORE([$0], [LT_OUTPUT])dnl 2457AC_BEFORE([$0], [LTDL_INIT])dnl 2458m4_require([_LT_CHECK_BUILDDIR])dnl 2459 2460dnl Autoconf doesn't catch unexpanded LT_ macros by default: 2461m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl 2462m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl 2463dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 2464dnl unless we require an AC_DEFUNed macro: 2465AC_REQUIRE([LTOPTIONS_VERSION])dnl 2466AC_REQUIRE([LTSUGAR_VERSION])dnl 2467AC_REQUIRE([LTVERSION_VERSION])dnl 2468AC_REQUIRE([LTOBSOLETE_VERSION])dnl 2469m4_require([_LT_PROG_LTMAIN])dnl 2470 2471_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) 2472 2473dnl Parse OPTIONS 2474_LT_SET_OPTIONS([$0], [$1]) 2475 2476# This can be used to rebuild libtool when needed 2477LIBTOOL_DEPS="$ltmain" 2478 2479# Always use our own libtool. 2480LIBTOOL='$(SHELL) $(top_builddir)/libtool' 2481AC_SUBST(LIBTOOL)dnl 2482 2483_LT_SETUP 2484 2485# Only expand once: 2486m4_define([LT_INIT]) 2487])# LT_INIT 2488 2489# Old names: 2490AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) 2491AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) 2492dnl aclocal-1.4 backwards compatibility: 2493dnl AC_DEFUN([AC_PROG_LIBTOOL], []) 2494dnl AC_DEFUN([AM_PROG_LIBTOOL], []) 2495 2496 2497# _LT_CC_BASENAME(CC) 2498# ------------------- 2499# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 2500m4_defun([_LT_CC_BASENAME], 2501[for cc_temp in $1""; do 2502 case $cc_temp in 2503 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 2504 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 2505 \-*) ;; 2506 *) break;; 2507 esac 2508done 2509cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 2510]) 2511 2512 2513# _LT_FILEUTILS_DEFAULTS 2514# ---------------------- 2515# It is okay to use these file commands and assume they have been set 2516# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. 2517m4_defun([_LT_FILEUTILS_DEFAULTS], 2518[: ${CP="cp -f"} 2519: ${MV="mv -f"} 2520: ${RM="rm -f"} 2521])# _LT_FILEUTILS_DEFAULTS 2522 2523 2524# _LT_SETUP 2525# --------- 2526m4_defun([_LT_SETUP], 2527[AC_REQUIRE([AC_CANONICAL_HOST])dnl 2528AC_REQUIRE([AC_CANONICAL_BUILD])dnl 2529AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl 2530AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 2531 2532_LT_DECL([], [host_alias], [0], [The host system])dnl 2533_LT_DECL([], [host], [0])dnl 2534_LT_DECL([], [host_os], [0])dnl 2535dnl 2536_LT_DECL([], [build_alias], [0], [The build system])dnl 2537_LT_DECL([], [build], [0])dnl 2538_LT_DECL([], [build_os], [0])dnl 2539dnl 2540AC_REQUIRE([AC_PROG_CC])dnl 2541AC_REQUIRE([LT_PATH_LD])dnl 2542AC_REQUIRE([LT_PATH_NM])dnl 2543dnl 2544AC_REQUIRE([AC_PROG_LN_S])dnl 2545test -z "$LN_S" && LN_S="ln -s" 2546_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl 2547dnl 2548AC_REQUIRE([LT_CMD_MAX_LEN])dnl 2549_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl 2550_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl 2551dnl 2552m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2553m4_require([_LT_CHECK_SHELL_FEATURES])dnl 2554m4_require([_LT_CMD_RELOAD])dnl 2555m4_require([_LT_CHECK_MAGIC_METHOD])dnl 2556m4_require([_LT_CMD_OLD_ARCHIVE])dnl 2557m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 2558 2559_LT_CONFIG_LIBTOOL_INIT([ 2560# See if we are running on zsh, and set the options which allow our 2561# commands through without removal of \ escapes INIT. 2562if test -n "\${ZSH_VERSION+set}" ; then 2563 setopt NO_GLOB_SUBST 2564fi 2565]) 2566if test -n "${ZSH_VERSION+set}" ; then 2567 setopt NO_GLOB_SUBST 2568fi 2569 2570_LT_CHECK_OBJDIR 2571 2572m4_require([_LT_TAG_COMPILER])dnl 2573 2574case $host_os in 2575aix3*) 2576 # AIX sometimes has problems with the GCC collect2 program. For some 2577 # reason, if we set the COLLECT_NAMES environment variable, the problems 2578 # vanish in a puff of smoke. 2579 if test "X${COLLECT_NAMES+set}" != Xset; then 2580 COLLECT_NAMES= 2581 export COLLECT_NAMES 2582 fi 2583 ;; 2584esac 2585 2586# Global variables: 2587ofile=libtool 2588can_build_shared=yes 2589 2590# All known linkers require a `.a' archive for static linking (except MSVC, 2591# which needs '.lib'). 2592libext=a 2593 2594with_gnu_ld="$lt_cv_prog_gnu_ld" 2595 2596old_CC="$CC" 2597old_CFLAGS="$CFLAGS" 2598 2599# Set sane defaults for various variables 2600test -z "$CC" && CC=cc 2601test -z "$LTCC" && LTCC=$CC 2602test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 2603test -z "$LD" && LD=ld 2604test -z "$ac_objext" && ac_objext=o 2605 2606_LT_CC_BASENAME([$compiler]) 2607 2608# Only perform the check for file, if the check method requires it 2609test -z "$MAGIC_CMD" && MAGIC_CMD=file 2610case $deplibs_check_method in 2611file_magic*) 2612 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 2613 _LT_PATH_MAGIC 2614 fi 2615 ;; 2616esac 2617 2618# Use C for the default configuration in the libtool script 2619LT_SUPPORTED_TAG([CC]) 2620_LT_LANG_C_CONFIG 2621_LT_LANG_DEFAULT_CONFIG 2622_LT_CONFIG_COMMANDS 2623])# _LT_SETUP 2624 2625 2626# _LT_PREPARE_SED_QUOTE_VARS 2627# -------------------------- 2628# Define a few sed substitution that help us do robust quoting. 2629m4_defun([_LT_PREPARE_SED_QUOTE_VARS], 2630[# Backslashify metacharacters that are still active within 2631# double-quoted strings. 2632sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' 2633 2634# Same as above, but do not quote variable references. 2635double_quote_subst='s/\([["`\\]]\)/\\\1/g' 2636 2637# Sed substitution to delay expansion of an escaped shell variable in a 2638# double_quote_subst'ed string. 2639delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2640 2641# Sed substitution to delay expansion of an escaped single quote. 2642delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2643 2644# Sed substitution to avoid accidental globbing in evaled expressions 2645no_glob_subst='s/\*/\\\*/g' 2646]) 2647 2648# _LT_PROG_LTMAIN 2649# --------------- 2650# Note that this code is called both from `configure', and `config.status' 2651# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 2652# `config.status' has no value for ac_aux_dir unless we are using Automake, 2653# so we pass a copy along to make sure it has a sensible value anyway. 2654m4_defun([_LT_PROG_LTMAIN], 2655[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 2656_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) 2657ltmain="$ac_aux_dir/ltmain.sh" 2658])# _LT_PROG_LTMAIN 2659 2660 2661 2662# So that we can recreate a full libtool script including additional 2663# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 2664# in macros and then make a single call at the end using the `libtool' 2665# label. 2666 2667 2668# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 2669# ---------------------------------------- 2670# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 2671m4_define([_LT_CONFIG_LIBTOOL_INIT], 2672[m4_ifval([$1], 2673 [m4_append([_LT_OUTPUT_LIBTOOL_INIT], 2674 [$1 2675])])]) 2676 2677# Initialize. 2678m4_define([_LT_OUTPUT_LIBTOOL_INIT]) 2679 2680 2681# _LT_CONFIG_LIBTOOL([COMMANDS]) 2682# ------------------------------ 2683# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. 2684m4_define([_LT_CONFIG_LIBTOOL], 2685[m4_ifval([$1], 2686 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], 2687 [$1 2688])])]) 2689 2690# Initialize. 2691m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) 2692 2693 2694# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) 2695# ----------------------------------------------------- 2696m4_defun([_LT_CONFIG_SAVE_COMMANDS], 2697[_LT_CONFIG_LIBTOOL([$1]) 2698_LT_CONFIG_LIBTOOL_INIT([$2]) 2699]) 2700 2701 2702# _LT_FORMAT_COMMENT([COMMENT]) 2703# ----------------------------- 2704# Add leading comment marks to the start of each line, and a trailing 2705# full-stop to the whole comment if one is not present already. 2706m4_define([_LT_FORMAT_COMMENT], 2707[m4_ifval([$1], [ 2708m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], 2709 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) 2710)]) 2711 2712 2713 2714 2715 2716# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) 2717# ------------------------------------------------------------------- 2718# CONFIGNAME is the name given to the value in the libtool script. 2719# VARNAME is the (base) name used in the configure script. 2720# VALUE may be 0, 1 or 2 for a computed quote escaped value based on 2721# VARNAME. Any other value will be used directly. 2722m4_define([_LT_DECL], 2723[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], 2724 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], 2725 [m4_ifval([$1], [$1], [$2])]) 2726 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) 2727 m4_ifval([$4], 2728 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) 2729 lt_dict_add_subkey([lt_decl_dict], [$2], 2730 [tagged?], [m4_ifval([$5], [yes], [no])])]) 2731]) 2732 2733 2734# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) 2735# -------------------------------------------------------- 2736m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) 2737 2738 2739# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) 2740# ------------------------------------------------ 2741m4_define([lt_decl_tag_varnames], 2742[_lt_decl_filter([tagged?], [yes], $@)]) 2743 2744 2745# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) 2746# --------------------------------------------------------- 2747m4_define([_lt_decl_filter], 2748[m4_case([$#], 2749 [0], [m4_fatal([$0: too few arguments: $#])], 2750 [1], [m4_fatal([$0: too few arguments: $#: $1])], 2751 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], 2752 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], 2753 [lt_dict_filter([lt_decl_dict], $@)])[]dnl 2754]) 2755 2756 2757# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) 2758# -------------------------------------------------- 2759m4_define([lt_decl_quote_varnames], 2760[_lt_decl_filter([value], [1], $@)]) 2761 2762 2763# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) 2764# --------------------------------------------------- 2765m4_define([lt_decl_dquote_varnames], 2766[_lt_decl_filter([value], [2], $@)]) 2767 2768 2769# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) 2770# --------------------------------------------------- 2771m4_define([lt_decl_varnames_tagged], 2772[m4_assert([$# <= 2])dnl 2773_$0(m4_quote(m4_default([$1], [[, ]])), 2774 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), 2775 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) 2776m4_define([_lt_decl_varnames_tagged], 2777[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) 2778 2779 2780# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) 2781# ------------------------------------------------ 2782m4_define([lt_decl_all_varnames], 2783[_$0(m4_quote(m4_default([$1], [[, ]])), 2784 m4_if([$2], [], 2785 m4_quote(lt_decl_varnames), 2786 m4_quote(m4_shift($@))))[]dnl 2787]) 2788m4_define([_lt_decl_all_varnames], 2789[lt_join($@, lt_decl_varnames_tagged([$1], 2790 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl 2791]) 2792 2793 2794# _LT_CONFIG_STATUS_DECLARE([VARNAME]) 2795# ------------------------------------ 2796# Quote a variable value, and forward it to `config.status' so that its 2797# declaration there will have the same value as in `configure'. VARNAME 2798# must have a single quote delimited value for this to work. 2799m4_define([_LT_CONFIG_STATUS_DECLARE], 2800[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) 2801 2802 2803# _LT_CONFIG_STATUS_DECLARATIONS 2804# ------------------------------ 2805# We delimit libtool config variables with single quotes, so when 2806# we write them to config.status, we have to be sure to quote all 2807# embedded single quotes properly. In configure, this macro expands 2808# each variable declared with _LT_DECL (and _LT_TAGDECL) into: 2809# 2810# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' 2811m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], 2812[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), 2813 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) 2814 2815 2816# _LT_LIBTOOL_TAGS 2817# ---------------- 2818# Output comment and list of tags supported by the script 2819m4_defun([_LT_LIBTOOL_TAGS], 2820[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl 2821available_tags="_LT_TAGS"dnl 2822]) 2823 2824 2825# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 2826# ----------------------------------- 2827# Extract the dictionary values for VARNAME (optionally with TAG) and 2828# expand to a commented shell variable setting: 2829# 2830# # Some comment about what VAR is for. 2831# visible_name=$lt_internal_name 2832m4_define([_LT_LIBTOOL_DECLARE], 2833[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], 2834 [description])))[]dnl 2835m4_pushdef([_libtool_name], 2836 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl 2837m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), 2838 [0], [_libtool_name=[$]$1], 2839 [1], [_libtool_name=$lt_[]$1], 2840 [2], [_libtool_name=$lt_[]$1], 2841 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl 2842m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl 2843]) 2844 2845 2846# _LT_LIBTOOL_CONFIG_VARS 2847# ----------------------- 2848# Produce commented declarations of non-tagged libtool config variables 2849# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' 2850# script. Tagged libtool config variables (even for the LIBTOOL CONFIG 2851# section) are produced by _LT_LIBTOOL_TAG_VARS. 2852m4_defun([_LT_LIBTOOL_CONFIG_VARS], 2853[m4_foreach([_lt_var], 2854 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), 2855 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) 2856 2857 2858# _LT_LIBTOOL_TAG_VARS(TAG) 2859# ------------------------- 2860m4_define([_LT_LIBTOOL_TAG_VARS], 2861[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), 2862 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) 2863 2864 2865# _LT_TAGVAR(VARNAME, [TAGNAME]) 2866# ------------------------------ 2867m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) 2868 2869 2870# _LT_CONFIG_COMMANDS 2871# ------------------- 2872# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 2873# variables for single and double quote escaping we saved from calls 2874# to _LT_DECL, we can put quote escaped variables declarations 2875# into `config.status', and then the shell code to quote escape them in 2876# for loops in `config.status'. Finally, any additional code accumulated 2877# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 2878m4_defun([_LT_CONFIG_COMMANDS], 2879[AC_PROVIDE_IFELSE([LT_OUTPUT], 2880 dnl If the libtool generation code has been placed in $CONFIG_LT, 2881 dnl instead of duplicating it all over again into config.status, 2882 dnl then we will have config.status run $CONFIG_LT later, so it 2883 dnl needs to know what name is stored there: 2884 [AC_CONFIG_COMMANDS([libtool], 2885 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], 2886 dnl If the libtool generation code is destined for config.status, 2887 dnl expand the accumulated commands and init code now: 2888 [AC_CONFIG_COMMANDS([libtool], 2889 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) 2890])#_LT_CONFIG_COMMANDS 2891 2892 2893# Initialize. 2894m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], 2895[ 2896 2897# The HP-UX ksh and POSIX shell print the target directory to stdout 2898# if CDPATH is set. 2899(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 2900 2901sed_quote_subst='$sed_quote_subst' 2902double_quote_subst='$double_quote_subst' 2903delay_variable_subst='$delay_variable_subst' 2904_LT_CONFIG_STATUS_DECLARATIONS 2905LTCC='$LTCC' 2906LTCFLAGS='$LTCFLAGS' 2907compiler='$compiler_DEFAULT' 2908 2909# A function that is used when there is no print builtin or printf. 2910func_fallback_echo () 2911{ 2912 eval 'cat <<_LTECHO_EOF 2913\$[]1 2914_LTECHO_EOF' 2915} 2916 2917# Quote evaled strings. 2918for var in lt_decl_all_varnames([[ \ 2919]], lt_decl_quote_varnames); do 2920 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 2921 *[[\\\\\\\`\\"\\\$]]*) 2922 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 2923 ;; 2924 *) 2925 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 2926 ;; 2927 esac 2928done 2929 2930# Double-quote double-evaled strings. 2931for var in lt_decl_all_varnames([[ \ 2932]], lt_decl_dquote_varnames); do 2933 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 2934 *[[\\\\\\\`\\"\\\$]]*) 2935 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 2936 ;; 2937 *) 2938 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 2939 ;; 2940 esac 2941done 2942 2943_LT_OUTPUT_LIBTOOL_INIT 2944]) 2945 2946# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) 2947# ------------------------------------ 2948# Generate a child script FILE with all initialization necessary to 2949# reuse the environment learned by the parent script, and make the 2950# file executable. If COMMENT is supplied, it is inserted after the 2951# `#!' sequence but before initialization text begins. After this 2952# macro, additional text can be appended to FILE to form the body of 2953# the child script. The macro ends with non-zero status if the 2954# file could not be fully written (such as if the disk is full). 2955m4_ifdef([AS_INIT_GENERATED], 2956[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], 2957[m4_defun([_LT_GENERATED_FILE_INIT], 2958[m4_require([AS_PREPARE])]dnl 2959[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl 2960[lt_write_fail=0 2961cat >$1 <<_ASEOF || lt_write_fail=1 2962#! $SHELL 2963# Generated by $as_me. 2964$2 2965SHELL=\${CONFIG_SHELL-$SHELL} 2966export SHELL 2967_ASEOF 2968cat >>$1 <<\_ASEOF || lt_write_fail=1 2969AS_SHELL_SANITIZE 2970_AS_PREPARE 2971exec AS_MESSAGE_FD>&1 2972_ASEOF 2973test $lt_write_fail = 0 && chmod +x $1[]dnl 2974m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT 2975 2976# LT_OUTPUT 2977# --------- 2978# This macro allows early generation of the libtool script (before 2979# AC_OUTPUT is called), incase it is used in configure for compilation 2980# tests. 2981AC_DEFUN([LT_OUTPUT], 2982[: ${CONFIG_LT=./config.lt} 2983AC_MSG_NOTICE([creating $CONFIG_LT]) 2984_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], 2985[# Run this file to recreate a libtool stub with the current configuration.]) 2986 2987cat >>"$CONFIG_LT" <<\_LTEOF 2988lt_cl_silent=false 2989exec AS_MESSAGE_LOG_FD>>config.log 2990{ 2991 echo 2992 AS_BOX([Running $as_me.]) 2993} >&AS_MESSAGE_LOG_FD 2994 2995lt_cl_help="\ 2996\`$as_me' creates a local libtool stub from the current configuration, 2997for use in further configure time tests before the real libtool is 2998generated. 2999 3000Usage: $[0] [[OPTIONS]] 3001 3002 -h, --help print this help, then exit 3003 -V, --version print version number, then exit 3004 -q, --quiet do not print progress messages 3005 -d, --debug don't remove temporary files 3006 3007Report bugs to <bug-libtool@gnu.org>." 3008 3009lt_cl_version="\ 3010m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl 3011m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) 3012configured by $[0], generated by m4_PACKAGE_STRING. 3013 3014Copyright (C) 2010 Free Software Foundation, Inc. 3015This config.lt script is free software; the Free Software Foundation 3016gives unlimited permision to copy, distribute and modify it." 3017 3018while test $[#] != 0 3019do 3020 case $[1] in 3021 --version | --v* | -V ) 3022 echo "$lt_cl_version"; exit 0 ;; 3023 --help | --h* | -h ) 3024 echo "$lt_cl_help"; exit 0 ;; 3025 --debug | --d* | -d ) 3026 debug=: ;; 3027 --quiet | --q* | --silent | --s* | -q ) 3028 lt_cl_silent=: ;; 3029 3030 -*) AC_MSG_ERROR([unrecognized option: $[1] 3031Try \`$[0] --help' for more information.]) ;; 3032 3033 *) AC_MSG_ERROR([unrecognized argument: $[1] 3034Try \`$[0] --help' for more information.]) ;; 3035 esac 3036 shift 3037done 3038 3039if $lt_cl_silent; then 3040 exec AS_MESSAGE_FD>/dev/null 3041fi 3042_LTEOF 3043 3044cat >>"$CONFIG_LT" <<_LTEOF 3045_LT_OUTPUT_LIBTOOL_COMMANDS_INIT 3046_LTEOF 3047 3048cat >>"$CONFIG_LT" <<\_LTEOF 3049AC_MSG_NOTICE([creating $ofile]) 3050_LT_OUTPUT_LIBTOOL_COMMANDS 3051AS_EXIT(0) 3052_LTEOF 3053chmod +x "$CONFIG_LT" 3054 3055# configure is writing to config.log, but config.lt does its own redirection, 3056# appending to config.log, which fails on DOS, as config.log is still kept 3057# open by configure. Here we exec the FD to /dev/null, effectively closing 3058# config.log, so it can be properly (re)opened and appended to by config.lt. 3059lt_cl_success=: 3060test "$silent" = yes && 3061 lt_config_lt_args="$lt_config_lt_args --quiet" 3062exec AS_MESSAGE_LOG_FD>/dev/null 3063$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 3064exec AS_MESSAGE_LOG_FD>>config.log 3065$lt_cl_success || AS_EXIT(1) 3066])# LT_OUTPUT 3067 3068 3069# _LT_CONFIG(TAG) 3070# --------------- 3071# If TAG is the built-in tag, create an initial libtool script with a 3072# default configuration from the untagged config vars. Otherwise add code 3073# to config.status for appending the configuration named by TAG from the 3074# matching tagged config vars. 3075m4_defun([_LT_CONFIG], 3076[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 3077_LT_CONFIG_SAVE_COMMANDS([ 3078 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 3079 m4_if(_LT_TAG, [C], [ 3080 # See if we are running on zsh, and set the options which allow our 3081 # commands through without removal of \ escapes. 3082 if test -n "${ZSH_VERSION+set}" ; then 3083 setopt NO_GLOB_SUBST 3084 fi 3085 3086 cfgfile="${ofile}T" 3087 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 3088 $RM "$cfgfile" 3089 3090 cat <<_LT_EOF >> "$cfgfile" 3091#! $SHELL 3092 3093# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 3094# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 3095# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 3096# NOTE: Changes made to this file will be lost: look at ltmain.sh. 3097# 3098_LT_COPYING 3099_LT_LIBTOOL_TAGS 3100 3101# ### BEGIN LIBTOOL CONFIG 3102_LT_LIBTOOL_CONFIG_VARS 3103_LT_LIBTOOL_TAG_VARS 3104# ### END LIBTOOL CONFIG 3105 3106_LT_EOF 3107 3108 case $host_os in 3109 aix3*) 3110 cat <<\_LT_EOF >> "$cfgfile" 3111# AIX sometimes has problems with the GCC collect2 program. For some 3112# reason, if we set the COLLECT_NAMES environment variable, the problems 3113# vanish in a puff of smoke. 3114if test "X${COLLECT_NAMES+set}" != Xset; then 3115 COLLECT_NAMES= 3116 export COLLECT_NAMES 3117fi 3118_LT_EOF 3119 ;; 3120 esac 3121 3122 _LT_PROG_LTMAIN 3123 3124 # We use sed instead of cat because bash on DJGPP gets confused if 3125 # if finds mixed CR/LF and LF-only lines. Since sed operates in 3126 # text mode, it properly converts lines to CR/LF. This bash problem 3127 # is reportedly fixed, but why not run on old versions too? 3128 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 3129 || (rm -f "$cfgfile"; exit 1) 3130 3131 _LT_PROG_XSI_SHELLFNS 3132 3133 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 3134 || (rm -f "$cfgfile"; exit 1) 3135 3136 mv -f "$cfgfile" "$ofile" || 3137 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 3138 chmod +x "$ofile" 3139], 3140[cat <<_LT_EOF >> "$ofile" 3141 3142dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded 3143dnl in a comment (ie after a #). 3144# ### BEGIN LIBTOOL TAG CONFIG: $1 3145_LT_LIBTOOL_TAG_VARS(_LT_TAG) 3146# ### END LIBTOOL TAG CONFIG: $1 3147_LT_EOF 3148])dnl /m4_if 3149], 3150[m4_if([$1], [], [ 3151 PACKAGE='$PACKAGE' 3152 VERSION='$VERSION' 3153 TIMESTAMP='$TIMESTAMP' 3154 RM='$RM' 3155 ofile='$ofile'], []) 3156])dnl /_LT_CONFIG_SAVE_COMMANDS 3157])# _LT_CONFIG 3158 3159 3160# LT_SUPPORTED_TAG(TAG) 3161# --------------------- 3162# Trace this macro to discover what tags are supported by the libtool 3163# --tag option, using: 3164# autoconf --trace 'LT_SUPPORTED_TAG:$1' 3165AC_DEFUN([LT_SUPPORTED_TAG], []) 3166 3167 3168# C support is built-in for now 3169m4_define([_LT_LANG_C_enabled], []) 3170m4_define([_LT_TAGS], []) 3171 3172 3173# LT_LANG(LANG) 3174# ------------- 3175# Enable libtool support for the given language if not already enabled. 3176AC_DEFUN([LT_LANG], 3177[AC_BEFORE([$0], [LT_OUTPUT])dnl 3178m4_case([$1], 3179 [C], [_LT_LANG(C)], 3180 [C++], [_LT_LANG(CXX)], 3181 [Java], [_LT_LANG(GCJ)], 3182 [Fortran 77], [_LT_LANG(F77)], 3183 [Fortran], [_LT_LANG(FC)], 3184 [Windows Resource], [_LT_LANG(RC)], 3185 [m4_ifdef([_LT_LANG_]$1[_CONFIG], 3186 [_LT_LANG($1)], 3187 [m4_fatal([$0: unsupported language: "$1"])])])dnl 3188])# LT_LANG 3189 3190 3191# _LT_LANG(LANGNAME) 3192# ------------------ 3193m4_defun([_LT_LANG], 3194[m4_ifdef([_LT_LANG_]$1[_enabled], [], 3195 [LT_SUPPORTED_TAG([$1])dnl 3196 m4_append([_LT_TAGS], [$1 ])dnl 3197 m4_define([_LT_LANG_]$1[_enabled], [])dnl 3198 _LT_LANG_$1_CONFIG($1)])dnl 3199])# _LT_LANG 3200 3201 3202# _LT_LANG_DEFAULT_CONFIG 3203# ----------------------- 3204m4_defun([_LT_LANG_DEFAULT_CONFIG], 3205[AC_PROVIDE_IFELSE([AC_PROG_CXX], 3206 [LT_LANG(CXX)], 3207 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) 3208 3209AC_PROVIDE_IFELSE([AC_PROG_F77], 3210 [LT_LANG(F77)], 3211 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) 3212 3213AC_PROVIDE_IFELSE([AC_PROG_FC], 3214 [LT_LANG(FC)], 3215 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) 3216 3217dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal 3218dnl pulling things in needlessly. 3219AC_PROVIDE_IFELSE([AC_PROG_GCJ], 3220 [LT_LANG(GCJ)], 3221 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 3222 [LT_LANG(GCJ)], 3223 [AC_PROVIDE_IFELSE([LT_PROG_GCJ], 3224 [LT_LANG(GCJ)], 3225 [m4_ifdef([AC_PROG_GCJ], 3226 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) 3227 m4_ifdef([A][M_PROG_GCJ], 3228 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) 3229 m4_ifdef([LT_PROG_GCJ], 3230 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) 3231 3232AC_PROVIDE_IFELSE([LT_PROG_RC], 3233 [LT_LANG(RC)], 3234 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) 3235])# _LT_LANG_DEFAULT_CONFIG 3236 3237# Obsolete macros: 3238AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) 3239AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) 3240AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) 3241AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) 3242AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) 3243dnl aclocal-1.4 backwards compatibility: 3244dnl AC_DEFUN([AC_LIBTOOL_CXX], []) 3245dnl AC_DEFUN([AC_LIBTOOL_F77], []) 3246dnl AC_DEFUN([AC_LIBTOOL_FC], []) 3247dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) 3248dnl AC_DEFUN([AC_LIBTOOL_RC], []) 3249 3250 3251# _LT_TAG_COMPILER 3252# ---------------- 3253m4_defun([_LT_TAG_COMPILER], 3254[AC_REQUIRE([AC_PROG_CC])dnl 3255 3256_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl 3257_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl 3258_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl 3259_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl 3260 3261# If no C compiler was specified, use CC. 3262LTCC=${LTCC-"$CC"} 3263 3264# If no C compiler flags were specified, use CFLAGS. 3265LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 3266 3267# Allow CC to be a program name with arguments. 3268compiler=$CC 3269])# _LT_TAG_COMPILER 3270 3271 3272# _LT_COMPILER_BOILERPLATE 3273# ------------------------ 3274# Check for compiler boilerplate output or warnings with 3275# the simple compiler test code. 3276m4_defun([_LT_COMPILER_BOILERPLATE], 3277[m4_require([_LT_DECL_SED])dnl 3278ac_outfile=conftest.$ac_objext 3279echo "$lt_simple_compile_test_code" >conftest.$ac_ext 3280eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 3281_lt_compiler_boilerplate=`cat conftest.err` 3282$RM conftest* 3283])# _LT_COMPILER_BOILERPLATE 3284 3285 3286# _LT_LINKER_BOILERPLATE 3287# ---------------------- 3288# Check for linker boilerplate output or warnings with 3289# the simple link test code. 3290m4_defun([_LT_LINKER_BOILERPLATE], 3291[m4_require([_LT_DECL_SED])dnl 3292ac_outfile=conftest.$ac_objext 3293echo "$lt_simple_link_test_code" >conftest.$ac_ext 3294eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 3295_lt_linker_boilerplate=`cat conftest.err` 3296$RM -r conftest* 3297])# _LT_LINKER_BOILERPLATE 3298 3299# _LT_REQUIRED_DARWIN_CHECKS 3300# ------------------------- 3301m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ 3302 case $host_os in 3303 rhapsody* | darwin*) 3304 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) 3305 AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 3306 AC_CHECK_TOOL([LIPO], [lipo], [:]) 3307 AC_CHECK_TOOL([OTOOL], [otool], [:]) 3308 AC_CHECK_TOOL([OTOOL64], [otool64], [:]) 3309 _LT_DECL([], [DSYMUTIL], [1], 3310 [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) 3311 _LT_DECL([], [NMEDIT], [1], 3312 [Tool to change global to local symbols on Mac OS X]) 3313 _LT_DECL([], [LIPO], [1], 3314 [Tool to manipulate fat objects and archives on Mac OS X]) 3315 _LT_DECL([], [OTOOL], [1], 3316 [ldd/readelf like tool for Mach-O binaries on Mac OS X]) 3317 _LT_DECL([], [OTOOL64], [1], 3318 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) 3319 3320 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 3321 [lt_cv_apple_cc_single_mod=no 3322 if test -z "${LT_MULTI_MODULE}"; then 3323 # By default we will add the -single_module flag. You can override 3324 # by either setting the environment variable LT_MULTI_MODULE 3325 # non-empty at configure time, or by adding -multi_module to the 3326 # link flags. 3327 rm -rf libconftest.dylib* 3328 echo "int foo(void){return 1;}" > conftest.c 3329 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 3330-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD 3331 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 3332 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 3333 _lt_result=$? 3334 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 3335 lt_cv_apple_cc_single_mod=yes 3336 else 3337 cat conftest.err >&AS_MESSAGE_LOG_FD 3338 fi 3339 rm -rf libconftest.dylib* 3340 rm -f conftest.* 3341 fi]) 3342 AC_CACHE_CHECK([for -exported_symbols_list linker flag], 3343 [lt_cv_ld_exported_symbols_list], 3344 [lt_cv_ld_exported_symbols_list=no 3345 save_LDFLAGS=$LDFLAGS 3346 echo "_main" > conftest.sym 3347 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 3348 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 3349 [lt_cv_ld_exported_symbols_list=yes], 3350 [lt_cv_ld_exported_symbols_list=no]) 3351 LDFLAGS="$save_LDFLAGS" 3352 ]) 3353 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], 3354 [lt_cv_ld_force_load=no 3355 cat > conftest.c << _LT_EOF 3356int forced_loaded() { return 2;} 3357_LT_EOF 3358 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD 3359 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD 3360 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD 3361 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD 3362 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD 3363 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD 3364 cat > conftest.c << _LT_EOF 3365int main() { return 0;} 3366_LT_EOF 3367 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD 3368 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 3369 _lt_result=$? 3370 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 3371 lt_cv_ld_force_load=yes 3372 else 3373 cat conftest.err >&AS_MESSAGE_LOG_FD 3374 fi 3375 rm -f conftest.err libconftest.a conftest conftest.c 3376 rm -rf conftest.dSYM 3377 ]) 3378 case $host_os in 3379 rhapsody* | darwin1.[[012]]) 3380 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 3381 darwin1.*) 3382 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 3383 darwin*) # darwin 5.x on 3384 # if running on 10.5 or later, the deployment target defaults 3385 # to the OS version, if on x86, and 10.4, the deployment 3386 # target defaults to 10.4. Don't you love it? 3387 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 3388 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 3389 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 3390 10.[[012]]*) 3391 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 3392 10.*) 3393 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 3394 esac 3395 ;; 3396 esac 3397 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 3398 _lt_dar_single_mod='$single_module' 3399 fi 3400 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 3401 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 3402 else 3403 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 3404 fi 3405 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 3406 _lt_dsymutil='~$DSYMUTIL $lib || :' 3407 else 3408 _lt_dsymutil= 3409 fi 3410 ;; 3411 esac 3412]) 3413 3414 3415# _LT_DARWIN_LINKER_FEATURES 3416# -------------------------- 3417# Checks for linker and compiler features on darwin 3418m4_defun([_LT_DARWIN_LINKER_FEATURES], 3419[ 3420 m4_require([_LT_REQUIRED_DARWIN_CHECKS]) 3421 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 3422 _LT_TAGVAR(hardcode_direct, $1)=no 3423 _LT_TAGVAR(hardcode_automatic, $1)=yes 3424 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 3425 if test "$lt_cv_ld_force_load" = "yes"; then 3426 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 3427 else 3428 _LT_TAGVAR(whole_archive_flag_spec, $1)='' 3429 fi 3430 _LT_TAGVAR(link_all_deplibs, $1)=yes 3431 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" 3432 case $cc_basename in 3433 ifort*) _lt_dar_can_shared=yes ;; 3434 *) _lt_dar_can_shared=$GCC ;; 3435 esac 3436 if test "$_lt_dar_can_shared" = "yes"; then 3437 output_verbose_link_cmd=func_echo_all 3438 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 3439 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 3440 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 3441 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 3442 m4_if([$1], [CXX], 3443[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then 3444 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 3445 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 3446 fi 3447],[]) 3448 else 3449 _LT_TAGVAR(ld_shlibs, $1)=no 3450 fi 3451]) 3452 3453# _LT_SYS_MODULE_PATH_AIX 3454# ----------------------- 3455# Links a minimal program and checks the executable 3456# for the system default hardcoded library path. In most cases, 3457# this is /usr/lib:/lib, but when the MPI compilers are used 3458# the location of the communication and MPI libs are included too. 3459# If we don't find anything, use the default library path according 3460# to the aix ld manual. 3461m4_defun([_LT_SYS_MODULE_PATH_AIX], 3462[m4_require([_LT_DECL_SED])dnl 3463AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 3464lt_aix_libpath_sed=' 3465 /Import File Strings/,/^$/ { 3466 /^0/ { 3467 s/^0 *\(.*\)$/\1/ 3468 p 3469 } 3470 }' 3471aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 3472# Check for a 64-bit object if we didn't find anything. 3473if test -z "$aix_libpath"; then 3474 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 3475fi],[]) 3476if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 3477])# _LT_SYS_MODULE_PATH_AIX 3478 3479 3480# _LT_SHELL_INIT(ARG) 3481# ------------------- 3482m4_define([_LT_SHELL_INIT], 3483[m4_divert_text([M4SH-INIT], [$1 3484])])# _LT_SHELL_INIT 3485 3486 3487 3488# _LT_PROG_ECHO_BACKSLASH 3489# ----------------------- 3490# Find how we can fake an echo command that does not interpret backslash. 3491# In particular, with Autoconf 2.60 or later we add some code to the start 3492# of the generated configure script which will find a shell with a builtin 3493# printf (which we can use as an echo command). 3494m4_defun([_LT_PROG_ECHO_BACKSLASH], 3495[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3496ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3497ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3498 3499AC_MSG_CHECKING([how to print strings]) 3500# Test print first, because it will be a builtin if present. 3501if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 3502 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3503 ECHO='print -r --' 3504elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3505 ECHO='printf %s\n' 3506else 3507 # Use this function as a fallback that always works. 3508 func_fallback_echo () 3509 { 3510 eval 'cat <<_LTECHO_EOF 3511$[]1 3512_LTECHO_EOF' 3513 } 3514 ECHO='func_fallback_echo' 3515fi 3516 3517# func_echo_all arg... 3518# Invoke $ECHO with all args, space-separated. 3519func_echo_all () 3520{ 3521 $ECHO "$*" 3522} 3523 3524case "$ECHO" in 3525 printf*) AC_MSG_RESULT([printf]) ;; 3526 print*) AC_MSG_RESULT([print -r]) ;; 3527 *) AC_MSG_RESULT([cat]) ;; 3528esac 3529 3530m4_ifdef([_AS_DETECT_SUGGESTED], 3531[_AS_DETECT_SUGGESTED([ 3532 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( 3533 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3534 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3535 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3536 PATH=/empty FPATH=/empty; export PATH FPATH 3537 test "X`printf %s $ECHO`" = "X$ECHO" \ 3538 || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) 3539 3540_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) 3541_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) 3542])# _LT_PROG_ECHO_BACKSLASH 3543 3544 3545# _LT_ENABLE_LOCK 3546# --------------- 3547m4_defun([_LT_ENABLE_LOCK], 3548[AC_ARG_ENABLE([libtool-lock], 3549 [AS_HELP_STRING([--disable-libtool-lock], 3550 [avoid locking (might break parallel builds)])]) 3551test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3552 3553# Some flags need to be propagated to the compiler or linker for good 3554# libtool support. 3555case $host in 3556ia64-*-hpux*) 3557 # Find out which ABI we are using. 3558 echo 'int i;' > conftest.$ac_ext 3559 if AC_TRY_EVAL(ac_compile); then 3560 case `/usr/bin/file conftest.$ac_objext` in 3561 *ELF-32*) 3562 HPUX_IA64_MODE="32" 3563 ;; 3564 *ELF-64*) 3565 HPUX_IA64_MODE="64" 3566 ;; 3567 esac 3568 fi 3569 rm -rf conftest* 3570 ;; 3571*-*-irix6*) 3572 # Find out which ABI we are using. 3573 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 3574 if AC_TRY_EVAL(ac_compile); then 3575 if test "$lt_cv_prog_gnu_ld" = yes; then 3576 case `/usr/bin/file conftest.$ac_objext` in 3577 *32-bit*) 3578 LD="${LD-ld} -melf32bsmip" 3579 ;; 3580 *N32*) 3581 LD="${LD-ld} -melf32bmipn32" 3582 ;; 3583 *64-bit*) 3584 LD="${LD-ld} -melf64bmip" 3585 ;; 3586 esac 3587 else 3588 case `/usr/bin/file conftest.$ac_objext` in 3589 *32-bit*) 3590 LD="${LD-ld} -32" 3591 ;; 3592 *N32*) 3593 LD="${LD-ld} -n32" 3594 ;; 3595 *64-bit*) 3596 LD="${LD-ld} -64" 3597 ;; 3598 esac 3599 fi 3600 fi 3601 rm -rf conftest* 3602 ;; 3603 3604x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 3605s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 3606 # Find out which ABI we are using. 3607 echo 'int i;' > conftest.$ac_ext 3608 if AC_TRY_EVAL(ac_compile); then 3609 case `/usr/bin/file conftest.o` in 3610 *32-bit*) 3611 case $host in 3612 x86_64-*kfreebsd*-gnu) 3613 LD="${LD-ld} -m elf_i386_fbsd" 3614 ;; 3615 x86_64-*linux*) 3616 LD="${LD-ld} -m elf_i386" 3617 ;; 3618 ppc64-*linux*|powerpc64-*linux*) 3619 LD="${LD-ld} -m elf32ppclinux" 3620 ;; 3621 s390x-*linux*) 3622 LD="${LD-ld} -m elf_s390" 3623 ;; 3624 sparc64-*linux*) 3625 LD="${LD-ld} -m elf32_sparc" 3626 ;; 3627 esac 3628 ;; 3629 *64-bit*) 3630 case $host in 3631 x86_64-*kfreebsd*-gnu) 3632 LD="${LD-ld} -m elf_x86_64_fbsd" 3633 ;; 3634 x86_64-*linux*) 3635 LD="${LD-ld} -m elf_x86_64" 3636 ;; 3637 ppc*-*linux*|powerpc*-*linux*) 3638 LD="${LD-ld} -m elf64ppc" 3639 ;; 3640 s390*-*linux*|s390*-*tpf*) 3641 LD="${LD-ld} -m elf64_s390" 3642 ;; 3643 sparc*-*linux*) 3644 LD="${LD-ld} -m elf64_sparc" 3645 ;; 3646 esac 3647 ;; 3648 esac 3649 fi 3650 rm -rf conftest* 3651 ;; 3652 3653*-*-sco3.2v5*) 3654 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3655 SAVE_CFLAGS="$CFLAGS" 3656 CFLAGS="$CFLAGS -belf" 3657 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 3658 [AC_LANG_PUSH(C) 3659 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 3660 AC_LANG_POP]) 3661 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3662 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3663 CFLAGS="$SAVE_CFLAGS" 3664 fi 3665 ;; 3666sparc*-*solaris*) 3667 # Find out which ABI we are using. 3668 echo 'int i;' > conftest.$ac_ext 3669 if AC_TRY_EVAL(ac_compile); then 3670 case `/usr/bin/file conftest.o` in 3671 *64-bit*) 3672 case $lt_cv_prog_gnu_ld in 3673 yes*) LD="${LD-ld} -m elf64_sparc" ;; 3674 *) 3675 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 3676 LD="${LD-ld} -64" 3677 fi 3678 ;; 3679 esac 3680 ;; 3681 esac 3682 fi 3683 rm -rf conftest* 3684 ;; 3685esac 3686 3687need_locks="$enable_libtool_lock" 3688])# _LT_ENABLE_LOCK 3689 3690 3691# _LT_CMD_OLD_ARCHIVE 3692# ------------------- 3693m4_defun([_LT_CMD_OLD_ARCHIVE], 3694[AC_CHECK_TOOL(AR, ar, false) 3695test -z "$AR" && AR=ar 3696test -z "$AR_FLAGS" && AR_FLAGS=cru 3697_LT_DECL([], [AR], [1], [The archiver]) 3698_LT_DECL([], [AR_FLAGS], [1]) 3699 3700AC_CHECK_TOOL(STRIP, strip, :) 3701test -z "$STRIP" && STRIP=: 3702_LT_DECL([], [STRIP], [1], [A symbol stripping program]) 3703 3704AC_CHECK_TOOL(RANLIB, ranlib, :) 3705test -z "$RANLIB" && RANLIB=: 3706_LT_DECL([], [RANLIB], [1], 3707 [Commands used to install an old-style archive]) 3708 3709# Determine commands to create old-style static archives. 3710old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 3711old_postinstall_cmds='chmod 644 $oldlib' 3712old_postuninstall_cmds= 3713 3714if test -n "$RANLIB"; then 3715 case $host_os in 3716 openbsd*) 3717 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 3718 ;; 3719 *) 3720 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 3721 ;; 3722 esac 3723 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 3724fi 3725 3726case $host_os in 3727 darwin*) 3728 lock_old_archive_extraction=yes ;; 3729 *) 3730 lock_old_archive_extraction=no ;; 3731esac 3732_LT_DECL([], [old_postinstall_cmds], [2]) 3733_LT_DECL([], [old_postuninstall_cmds], [2]) 3734_LT_TAGDECL([], [old_archive_cmds], [2], 3735 [Commands used to build an old-style archive]) 3736_LT_DECL([], [lock_old_archive_extraction], [0], 3737 [Whether to use a lock for old archive extraction]) 3738])# _LT_CMD_OLD_ARCHIVE 3739 3740 3741# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 3742# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 3743# ---------------------------------------------------------------- 3744# Check whether the given compiler option works 3745AC_DEFUN([_LT_COMPILER_OPTION], 3746[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 3747m4_require([_LT_DECL_SED])dnl 3748AC_CACHE_CHECK([$1], [$2], 3749 [$2=no 3750 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 3751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 3752 lt_compiler_flag="$3" 3753 # Insert the option either (1) after the last *FLAGS variable, or 3754 # (2) before a word containing "conftest.", or (3) at the end. 3755 # Note that $ac_compile itself does not contain backslashes and begins 3756 # with a dollar sign (not a hyphen), so the echo should work correctly. 3757 # The option is referenced via a variable to avoid confusing sed. 3758 lt_compile=`echo "$ac_compile" | $SED \ 3759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 3760 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 3761 -e 's:$: $lt_compiler_flag:'` 3762 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 3763 (eval "$lt_compile" 2>conftest.err) 3764 ac_status=$? 3765 cat conftest.err >&AS_MESSAGE_LOG_FD 3766 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 3767 if (exit $ac_status) && test -s "$ac_outfile"; then 3768 # The compiler can only warn and ignore the option if not recognized 3769 # So say no if there are warnings other than the usual output. 3770 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 3771 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 3772 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 3773 $2=yes 3774 fi 3775 fi 3776 $RM conftest* 3777]) 3778 3779if test x"[$]$2" = xyes; then 3780 m4_if([$5], , :, [$5]) 3781else 3782 m4_if([$6], , :, [$6]) 3783fi 3784])# _LT_COMPILER_OPTION 3785 3786# Old name: 3787AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) 3788dnl aclocal-1.4 backwards compatibility: 3789dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) 3790 3791 3792# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 3793# [ACTION-SUCCESS], [ACTION-FAILURE]) 3794# ---------------------------------------------------- 3795# Check whether the given linker option works 3796AC_DEFUN([_LT_LINKER_OPTION], 3797[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 3798m4_require([_LT_DECL_SED])dnl 3799AC_CACHE_CHECK([$1], [$2], 3800 [$2=no 3801 save_LDFLAGS="$LDFLAGS" 3802 LDFLAGS="$LDFLAGS $3" 3803 echo "$lt_simple_link_test_code" > conftest.$ac_ext 3804 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 3805 # The linker can only warn and ignore the option if not recognized 3806 # So say no if there are warnings 3807 if test -s conftest.err; then 3808 # Append any errors to the config.log. 3809 cat conftest.err 1>&AS_MESSAGE_LOG_FD 3810 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 3811 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 3812 if diff conftest.exp conftest.er2 >/dev/null; then 3813 $2=yes 3814 fi 3815 else 3816 $2=yes 3817 fi 3818 fi 3819 $RM -r conftest* 3820 LDFLAGS="$save_LDFLAGS" 3821]) 3822 3823if test x"[$]$2" = xyes; then 3824 m4_if([$4], , :, [$4]) 3825else 3826 m4_if([$5], , :, [$5]) 3827fi 3828])# _LT_LINKER_OPTION 3829 3830# Old name: 3831AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) 3832dnl aclocal-1.4 backwards compatibility: 3833dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) 3834 3835 3836# LT_CMD_MAX_LEN 3837#--------------- 3838AC_DEFUN([LT_CMD_MAX_LEN], 3839[AC_REQUIRE([AC_CANONICAL_HOST])dnl 3840# find the maximum length of command line arguments 3841AC_MSG_CHECKING([the maximum length of command line arguments]) 3842AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 3843 i=0 3844 teststring="ABCD" 3845 3846 case $build_os in 3847 msdosdjgpp*) 3848 # On DJGPP, this test can blow up pretty badly due to problems in libc 3849 # (any single argument exceeding 2000 bytes causes a buffer overrun 3850 # during glob expansion). Even if it were fixed, the result of this 3851 # check would be larger than it should be. 3852 lt_cv_sys_max_cmd_len=12288; # 12K is about right 3853 ;; 3854 3855 gnu*) 3856 # Under GNU Hurd, this test is not required because there is 3857 # no limit to the length of command line arguments. 3858 # Libtool will interpret -1 as no limit whatsoever 3859 lt_cv_sys_max_cmd_len=-1; 3860 ;; 3861 3862 cygwin* | mingw* | cegcc*) 3863 # On Win9x/ME, this test blows up -- it succeeds, but takes 3864 # about 5 minutes as the teststring grows exponentially. 3865 # Worse, since 9x/ME are not pre-emptively multitasking, 3866 # you end up with a "frozen" computer, even though with patience 3867 # the test eventually succeeds (with a max line length of 256k). 3868 # Instead, let's just punt: use the minimum linelength reported by 3869 # all of the supported platforms: 8192 (on NT/2K/XP). 3870 lt_cv_sys_max_cmd_len=8192; 3871 ;; 3872 3873 mint*) 3874 # On MiNT this can take a long time and run out of memory. 3875 lt_cv_sys_max_cmd_len=8192; 3876 ;; 3877 3878 amigaos*) 3879 # On AmigaOS with pdksh, this test takes hours, literally. 3880 # So we just punt and use a minimum line length of 8192. 3881 lt_cv_sys_max_cmd_len=8192; 3882 ;; 3883 3884 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 3885 # This has been around since 386BSD, at least. Likely further. 3886 if test -x /sbin/sysctl; then 3887 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 3888 elif test -x /usr/sbin/sysctl; then 3889 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 3890 else 3891 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 3892 fi 3893 # And add a safety zone 3894 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 3895 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 3896 ;; 3897 3898 interix*) 3899 # We know the value 262144 and hardcode it with a safety zone (like BSD) 3900 lt_cv_sys_max_cmd_len=196608 3901 ;; 3902 3903 osf*) 3904 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 3905 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 3906 # nice to cause kernel panics so lets avoid the loop below. 3907 # First set a reasonable default. 3908 lt_cv_sys_max_cmd_len=16384 3909 # 3910 if test -x /sbin/sysconfig; then 3911 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 3912 *1*) lt_cv_sys_max_cmd_len=-1 ;; 3913 esac 3914 fi 3915 ;; 3916 sco3.2v5*) 3917 lt_cv_sys_max_cmd_len=102400 3918 ;; 3919 sysv5* | sco5v6* | sysv4.2uw2*) 3920 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 3921 if test -n "$kargmax"; then 3922 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 3923 else 3924 lt_cv_sys_max_cmd_len=32768 3925 fi 3926 ;; 3927 *) 3928 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 3929 if test -n "$lt_cv_sys_max_cmd_len"; then 3930 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 3931 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 3932 else 3933 # Make teststring a little bigger before we do anything with it. 3934 # a 1K string should be a reasonable start. 3935 for i in 1 2 3 4 5 6 7 8 ; do 3936 teststring=$teststring$teststring 3937 done 3938 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 3939 # If test is not a shell built-in, we'll probably end up computing a 3940 # maximum length that is only half of the actual maximum length, but 3941 # we can't tell. 3942 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 3943 = "X$teststring$teststring"; } >/dev/null 2>&1 && 3944 test $i != 17 # 1/2 MB should be enough 3945 do 3946 i=`expr $i + 1` 3947 teststring=$teststring$teststring 3948 done 3949 # Only check the string length outside the loop. 3950 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 3951 teststring= 3952 # Add a significant safety factor because C++ compilers can tack on 3953 # massive amounts of additional arguments before passing them to the 3954 # linker. It appears as though 1/2 is a usable value. 3955 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 3956 fi 3957 ;; 3958 esac 3959]) 3960if test -n $lt_cv_sys_max_cmd_len ; then 3961 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 3962else 3963 AC_MSG_RESULT(none) 3964fi 3965max_cmd_len=$lt_cv_sys_max_cmd_len 3966_LT_DECL([], [max_cmd_len], [0], 3967 [What is the maximum length of a command?]) 3968])# LT_CMD_MAX_LEN 3969 3970# Old name: 3971AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) 3972dnl aclocal-1.4 backwards compatibility: 3973dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) 3974 3975 3976# _LT_HEADER_DLFCN 3977# ---------------- 3978m4_defun([_LT_HEADER_DLFCN], 3979[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl 3980])# _LT_HEADER_DLFCN 3981 3982 3983# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 3984# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 3985# ---------------------------------------------------------------- 3986m4_defun([_LT_TRY_DLOPEN_SELF], 3987[m4_require([_LT_HEADER_DLFCN])dnl 3988if test "$cross_compiling" = yes; then : 3989 [$4] 3990else 3991 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 3992 lt_status=$lt_dlunknown 3993 cat > conftest.$ac_ext <<_LT_EOF 3994[#line $LINENO "configure" 3995#include "confdefs.h" 3996 3997#if HAVE_DLFCN_H 3998#include <dlfcn.h> 3999#endif 4000 4001#include <stdio.h> 4002 4003#ifdef RTLD_GLOBAL 4004# define LT_DLGLOBAL RTLD_GLOBAL 4005#else 4006# ifdef DL_GLOBAL 4007# define LT_DLGLOBAL DL_GLOBAL 4008# else 4009# define LT_DLGLOBAL 0 4010# endif 4011#endif 4012 4013/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 4014 find out it does not work in some platform. */ 4015#ifndef LT_DLLAZY_OR_NOW 4016# ifdef RTLD_LAZY 4017# define LT_DLLAZY_OR_NOW RTLD_LAZY 4018# else 4019# ifdef DL_LAZY 4020# define LT_DLLAZY_OR_NOW DL_LAZY 4021# else 4022# ifdef RTLD_NOW 4023# define LT_DLLAZY_OR_NOW RTLD_NOW 4024# else 4025# ifdef DL_NOW 4026# define LT_DLLAZY_OR_NOW DL_NOW 4027# else 4028# define LT_DLLAZY_OR_NOW 0 4029# endif 4030# endif 4031# endif 4032# endif 4033#endif 4034 4035/* When -fvisbility=hidden is used, assume the code has been annotated 4036 correspondingly for the symbols needed. */ 4037#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 4038void fnord () __attribute__((visibility("default"))); 4039#endif 4040 4041void fnord () { int i=42; } 4042int main () 4043{ 4044 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 4045 int status = $lt_dlunknown; 4046 4047 if (self) 4048 { 4049 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 4050 else 4051 { 4052 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 4053 else puts (dlerror ()); 4054 } 4055 /* dlclose (self); */ 4056 } 4057 else 4058 puts (dlerror ()); 4059 4060 return status; 4061}] 4062_LT_EOF 4063 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 4064 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 4065 lt_status=$? 4066 case x$lt_status in 4067 x$lt_dlno_uscore) $1 ;; 4068 x$lt_dlneed_uscore) $2 ;; 4069 x$lt_dlunknown|x*) $3 ;; 4070 esac 4071 else : 4072 # compilation failed 4073 $3 4074 fi 4075fi 4076rm -fr conftest* 4077])# _LT_TRY_DLOPEN_SELF 4078 4079 4080# LT_SYS_DLOPEN_SELF 4081# ------------------ 4082AC_DEFUN([LT_SYS_DLOPEN_SELF], 4083[m4_require([_LT_HEADER_DLFCN])dnl 4084if test "x$enable_dlopen" != xyes; then 4085 enable_dlopen=unknown 4086 enable_dlopen_self=unknown 4087 enable_dlopen_self_static=unknown 4088else 4089 lt_cv_dlopen=no 4090 lt_cv_dlopen_libs= 4091 4092 case $host_os in 4093 beos*) 4094 lt_cv_dlopen="load_add_on" 4095 lt_cv_dlopen_libs= 4096 lt_cv_dlopen_self=yes 4097 ;; 4098 4099 mingw* | pw32* | cegcc*) 4100 lt_cv_dlopen="LoadLibrary" 4101 lt_cv_dlopen_libs= 4102 ;; 4103 4104 cygwin*) 4105 lt_cv_dlopen="dlopen" 4106 lt_cv_dlopen_libs= 4107 ;; 4108 4109 darwin*) 4110 # if libdl is installed we need to link against it 4111 AC_CHECK_LIB([dl], [dlopen], 4112 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 4113 lt_cv_dlopen="dyld" 4114 lt_cv_dlopen_libs= 4115 lt_cv_dlopen_self=yes 4116 ]) 4117 ;; 4118 4119 *) 4120 AC_CHECK_FUNC([shl_load], 4121 [lt_cv_dlopen="shl_load"], 4122 [AC_CHECK_LIB([dld], [shl_load], 4123 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], 4124 [AC_CHECK_FUNC([dlopen], 4125 [lt_cv_dlopen="dlopen"], 4126 [AC_CHECK_LIB([dl], [dlopen], 4127 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 4128 [AC_CHECK_LIB([svld], [dlopen], 4129 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 4130 [AC_CHECK_LIB([dld], [dld_link], 4131 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) 4132 ]) 4133 ]) 4134 ]) 4135 ]) 4136 ]) 4137 ;; 4138 esac 4139 4140 if test "x$lt_cv_dlopen" != xno; then 4141 enable_dlopen=yes 4142 else 4143 enable_dlopen=no 4144 fi 4145 4146 case $lt_cv_dlopen in 4147 dlopen) 4148 save_CPPFLAGS="$CPPFLAGS" 4149 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 4150 4151 save_LDFLAGS="$LDFLAGS" 4152 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 4153 4154 save_LIBS="$LIBS" 4155 LIBS="$lt_cv_dlopen_libs $LIBS" 4156 4157 AC_CACHE_CHECK([whether a program can dlopen itself], 4158 lt_cv_dlopen_self, [dnl 4159 _LT_TRY_DLOPEN_SELF( 4160 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 4161 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 4162 ]) 4163 4164 if test "x$lt_cv_dlopen_self" = xyes; then 4165 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 4166 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 4167 lt_cv_dlopen_self_static, [dnl 4168 _LT_TRY_DLOPEN_SELF( 4169 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 4170 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 4171 ]) 4172 fi 4173 4174 CPPFLAGS="$save_CPPFLAGS" 4175 LDFLAGS="$save_LDFLAGS" 4176 LIBS="$save_LIBS" 4177 ;; 4178 esac 4179 4180 case $lt_cv_dlopen_self in 4181 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 4182 *) enable_dlopen_self=unknown ;; 4183 esac 4184 4185 case $lt_cv_dlopen_self_static in 4186 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 4187 *) enable_dlopen_self_static=unknown ;; 4188 esac 4189fi 4190_LT_DECL([dlopen_support], [enable_dlopen], [0], 4191 [Whether dlopen is supported]) 4192_LT_DECL([dlopen_self], [enable_dlopen_self], [0], 4193 [Whether dlopen of programs is supported]) 4194_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], 4195 [Whether dlopen of statically linked programs is supported]) 4196])# LT_SYS_DLOPEN_SELF 4197 4198# Old name: 4199AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) 4200dnl aclocal-1.4 backwards compatibility: 4201dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) 4202 4203 4204# _LT_COMPILER_C_O([TAGNAME]) 4205# --------------------------- 4206# Check to see if options -c and -o are simultaneously supported by compiler. 4207# This macro does not hard code the compiler like AC_PROG_CC_C_O. 4208m4_defun([_LT_COMPILER_C_O], 4209[m4_require([_LT_DECL_SED])dnl 4210m4_require([_LT_FILEUTILS_DEFAULTS])dnl 4211m4_require([_LT_TAG_COMPILER])dnl 4212AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 4213 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 4214 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 4215 $RM -r conftest 2>/dev/null 4216 mkdir conftest 4217 cd conftest 4218 mkdir out 4219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 4220 4221 lt_compiler_flag="-o out/conftest2.$ac_objext" 4222 # Insert the option either (1) after the last *FLAGS variable, or 4223 # (2) before a word containing "conftest.", or (3) at the end. 4224 # Note that $ac_compile itself does not contain backslashes and begins 4225 # with a dollar sign (not a hyphen), so the echo should work correctly. 4226 lt_compile=`echo "$ac_compile" | $SED \ 4227 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 4228 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 4229 -e 's:$: $lt_compiler_flag:'` 4230 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 4231 (eval "$lt_compile" 2>out/conftest.err) 4232 ac_status=$? 4233 cat out/conftest.err >&AS_MESSAGE_LOG_FD 4234 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 4235 if (exit $ac_status) && test -s out/conftest2.$ac_objext 4236 then 4237 # The compiler can only warn and ignore the option if not recognized 4238 # So say no if there are warnings 4239 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 4240 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 4241 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 4242 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 4243 fi 4244 fi 4245 chmod u+w . 2>&AS_MESSAGE_LOG_FD 4246 $RM conftest* 4247 # SGI C++ compiler will create directory out/ii_files/ for 4248 # template instantiation 4249 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 4250 $RM out/* && rmdir out 4251 cd .. 4252 $RM -r conftest 4253 $RM conftest* 4254]) 4255_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], 4256 [Does compiler simultaneously support -c and -o options?]) 4257])# _LT_COMPILER_C_O 4258 4259 4260# _LT_COMPILER_FILE_LOCKS([TAGNAME]) 4261# ---------------------------------- 4262# Check to see if we can do hard links to lock some files if needed 4263m4_defun([_LT_COMPILER_FILE_LOCKS], 4264[m4_require([_LT_ENABLE_LOCK])dnl 4265m4_require([_LT_FILEUTILS_DEFAULTS])dnl 4266_LT_COMPILER_C_O([$1]) 4267 4268hard_links="nottested" 4269if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 4270 # do not overwrite the value of need_locks provided by the user 4271 AC_MSG_CHECKING([if we can lock with hard links]) 4272 hard_links=yes 4273 $RM conftest* 4274 ln conftest.a conftest.b 2>/dev/null && hard_links=no 4275 touch conftest.a 4276 ln conftest.a conftest.b 2>&5 || hard_links=no 4277 ln conftest.a conftest.b 2>/dev/null && hard_links=no 4278 AC_MSG_RESULT([$hard_links]) 4279 if test "$hard_links" = no; then 4280 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) 4281 need_locks=warn 4282 fi 4283else 4284 need_locks=no 4285fi 4286_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) 4287])# _LT_COMPILER_FILE_LOCKS 4288 4289 4290# _LT_CHECK_OBJDIR 4291# ---------------- 4292m4_defun([_LT_CHECK_OBJDIR], 4293[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 4294[rm -f .libs 2>/dev/null 4295mkdir .libs 2>/dev/null 4296if test -d .libs; then 4297 lt_cv_objdir=.libs 4298else 4299 # MS-DOS does not allow filenames that begin with a dot. 4300 lt_cv_objdir=_libs 4301fi 4302rmdir .libs 2>/dev/null]) 4303objdir=$lt_cv_objdir 4304_LT_DECL([], [objdir], [0], 4305 [The name of the directory that contains temporary libtool files])dnl 4306m4_pattern_allow([LT_OBJDIR])dnl 4307AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", 4308 [Define to the sub-directory in which libtool stores uninstalled libraries.]) 4309])# _LT_CHECK_OBJDIR 4310 4311 4312# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 4313# -------------------------------------- 4314# Check hardcoding attributes. 4315m4_defun([_LT_LINKER_HARDCODE_LIBPATH], 4316[AC_MSG_CHECKING([how to hardcode library paths into programs]) 4317_LT_TAGVAR(hardcode_action, $1)= 4318if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 4319 test -n "$_LT_TAGVAR(runpath_var, $1)" || 4320 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 4321 4322 # We can hardcode non-existent directories. 4323 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && 4324 # If the only mechanism to avoid hardcoding is shlibpath_var, we 4325 # have to relink, otherwise we might link with an installed library 4326 # when we should be linking with a yet-to-be-installed one 4327 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && 4328 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then 4329 # Linking always hardcodes the temporary library directory. 4330 _LT_TAGVAR(hardcode_action, $1)=relink 4331 else 4332 # We can link without hardcoding, and we can hardcode nonexisting dirs. 4333 _LT_TAGVAR(hardcode_action, $1)=immediate 4334 fi 4335else 4336 # We cannot hardcode anything, or else we can only hardcode existing 4337 # directories. 4338 _LT_TAGVAR(hardcode_action, $1)=unsupported 4339fi 4340AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 4341 4342if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || 4343 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then 4344 # Fast installation is not supported 4345 enable_fast_install=no 4346elif test "$shlibpath_overrides_runpath" = yes || 4347 test "$enable_shared" = no; then 4348 # Fast installation is not necessary 4349 enable_fast_install=needless 4350fi 4351_LT_TAGDECL([], [hardcode_action], [0], 4352 [How to hardcode a shared library path into an executable]) 4353])# _LT_LINKER_HARDCODE_LIBPATH 4354 4355 4356# _LT_CMD_STRIPLIB 4357# ---------------- 4358m4_defun([_LT_CMD_STRIPLIB], 4359[m4_require([_LT_DECL_EGREP]) 4360striplib= 4361old_striplib= 4362AC_MSG_CHECKING([whether stripping libraries is possible]) 4363if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 4364 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 4365 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 4366 AC_MSG_RESULT([yes]) 4367else 4368# FIXME - insert some real tests, host_os isn't really good enough 4369 case $host_os in 4370 darwin*) 4371 if test -n "$STRIP" ; then 4372 striplib="$STRIP -x" 4373 old_striplib="$STRIP -S" 4374 AC_MSG_RESULT([yes]) 4375 else 4376 AC_MSG_RESULT([no]) 4377 fi 4378 ;; 4379 *) 4380 AC_MSG_RESULT([no]) 4381 ;; 4382 esac 4383fi 4384_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) 4385_LT_DECL([], [striplib], [1]) 4386])# _LT_CMD_STRIPLIB 4387 4388 4389# _LT_SYS_DYNAMIC_LINKER([TAG]) 4390# ----------------------------- 4391# PORTME Fill in your ld.so characteristics 4392m4_defun([_LT_SYS_DYNAMIC_LINKER], 4393[AC_REQUIRE([AC_CANONICAL_HOST])dnl 4394m4_require([_LT_DECL_EGREP])dnl 4395m4_require([_LT_FILEUTILS_DEFAULTS])dnl 4396m4_require([_LT_DECL_OBJDUMP])dnl 4397m4_require([_LT_DECL_SED])dnl 4398m4_require([_LT_CHECK_SHELL_FEATURES])dnl 4399AC_MSG_CHECKING([dynamic linker characteristics]) 4400m4_if([$1], 4401 [], [ 4402if test "$GCC" = yes; then 4403 case $host_os in 4404 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 4405 *) lt_awk_arg="/^libraries:/" ;; 4406 esac 4407 case $host_os in 4408 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; 4409 *) lt_sed_strip_eq="s,=/,/,g" ;; 4410 esac 4411 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 4412 case $lt_search_path_spec in 4413 *\;*) 4414 # if the path contains ";" then we assume it to be the separator 4415 # otherwise default to the standard path separator (i.e. ":") - it is 4416 # assumed that no part of a normal pathname contains ";" but that should 4417 # okay in the real world where ";" in dirpaths is itself problematic. 4418 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 4419 ;; 4420 *) 4421 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 4422 ;; 4423 esac 4424 # Ok, now we have the path, separated by spaces, we can step through it 4425 # and add multilib dir if necessary. 4426 lt_tmp_lt_search_path_spec= 4427 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 4428 for lt_sys_path in $lt_search_path_spec; do 4429 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 4430 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 4431 else 4432 test -d "$lt_sys_path" && \ 4433 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 4434 fi 4435 done 4436 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 4437BEGIN {RS=" "; FS="/|\n";} { 4438 lt_foo=""; 4439 lt_count=0; 4440 for (lt_i = NF; lt_i > 0; lt_i--) { 4441 if ($lt_i != "" && $lt_i != ".") { 4442 if ($lt_i == "..") { 4443 lt_count++; 4444 } else { 4445 if (lt_count == 0) { 4446 lt_foo="/" $lt_i lt_foo; 4447 } else { 4448 lt_count--; 4449 } 4450 } 4451 } 4452 } 4453 if (lt_foo != "") { lt_freq[[lt_foo]]++; } 4454 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 4455}'` 4456 # AWK program above erroneously prepends '/' to C:/dos/paths 4457 # for these hosts. 4458 case $host_os in 4459 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 4460 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; 4461 esac 4462 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 4463else 4464 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 4465fi]) 4466library_names_spec= 4467libname_spec='lib$name' 4468soname_spec= 4469shrext_cmds=".so" 4470postinstall_cmds= 4471postuninstall_cmds= 4472finish_cmds= 4473finish_eval= 4474shlibpath_var= 4475shlibpath_overrides_runpath=unknown 4476version_type=none 4477dynamic_linker="$host_os ld.so" 4478sys_lib_dlsearch_path_spec="/lib /usr/lib" 4479need_lib_prefix=unknown 4480hardcode_into_libs=no 4481 4482# when you set need_version to no, make sure it does not cause -set_version 4483# flags to be left without arguments 4484need_version=unknown 4485 4486case $host_os in 4487aix3*) 4488 version_type=linux 4489 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 4490 shlibpath_var=LIBPATH 4491 4492 # AIX 3 has no versioning support, so we append a major version to the name. 4493 soname_spec='${libname}${release}${shared_ext}$major' 4494 ;; 4495 4496aix[[4-9]]*) 4497 version_type=linux 4498 need_lib_prefix=no 4499 need_version=no 4500 hardcode_into_libs=yes 4501 if test "$host_cpu" = ia64; then 4502 # AIX 5 supports IA64 4503 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 4504 shlibpath_var=LD_LIBRARY_PATH 4505 else 4506 # With GCC up to 2.95.x, collect2 would create an import file 4507 # for dependence libraries. The import file would start with 4508 # the line `#! .'. This would cause the generated library to 4509 # depend on `.', always an invalid library. This was fixed in 4510 # development snapshots of GCC prior to 3.0. 4511 case $host_os in 4512 aix4 | aix4.[[01]] | aix4.[[01]].*) 4513 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 4514 echo ' yes ' 4515 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 4516 : 4517 else 4518 can_build_shared=no 4519 fi 4520 ;; 4521 esac 4522 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 4523 # soname into executable. Probably we can add versioning support to 4524 # collect2, so additional links can be useful in future. 4525 if test "$aix_use_runtimelinking" = yes; then 4526 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 4527 # instead of lib<name>.a to let people know that these are not 4528 # typical AIX shared libraries. 4529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4530 else 4531 # We preserve .a as extension for shared libraries through AIX4.2 4532 # and later when we are not doing run time linking. 4533 library_names_spec='${libname}${release}.a $libname.a' 4534 soname_spec='${libname}${release}${shared_ext}$major' 4535 fi 4536 shlibpath_var=LIBPATH 4537 fi 4538 ;; 4539 4540amigaos*) 4541 case $host_cpu in 4542 powerpc) 4543 # Since July 2007 AmigaOS4 officially supports .so libraries. 4544 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 4545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4546 ;; 4547 m68k) 4548 library_names_spec='$libname.ixlibrary $libname.a' 4549 # Create ${libname}_ixlibrary.a entries in /sys/libs. 4550 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 4551 ;; 4552 esac 4553 ;; 4554 4555beos*) 4556 library_names_spec='${libname}${shared_ext}' 4557 dynamic_linker="$host_os ld.so" 4558 shlibpath_var=LIBRARY_PATH 4559 ;; 4560 4561bsdi[[45]]*) 4562 version_type=linux 4563 need_version=no 4564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4565 soname_spec='${libname}${release}${shared_ext}$major' 4566 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 4567 shlibpath_var=LD_LIBRARY_PATH 4568 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 4569 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 4570 # the default ld.so.conf also contains /usr/contrib/lib and 4571 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 4572 # libtool to hard-code these into programs 4573 ;; 4574 4575cygwin* | mingw* | pw32* | cegcc*) 4576 version_type=windows 4577 shrext_cmds=".dll" 4578 need_version=no 4579 need_lib_prefix=no 4580 4581 case $GCC,$host_os in 4582 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 4583 library_names_spec='$libname.dll.a' 4584 # DLL is installed to $(libdir)/../bin by postinstall_cmds 4585 postinstall_cmds='base_file=`basename \${file}`~ 4586 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 4587 dldir=$destdir/`dirname \$dlpath`~ 4588 test -d \$dldir || mkdir -p \$dldir~ 4589 $install_prog $dir/$dlname \$dldir/$dlname~ 4590 chmod a+x \$dldir/$dlname~ 4591 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 4592 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 4593 fi' 4594 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 4595 dlpath=$dir/\$dldll~ 4596 $RM \$dlpath' 4597 shlibpath_overrides_runpath=yes 4598 4599 case $host_os in 4600 cygwin*) 4601 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 4602 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 4603m4_if([$1], [],[ 4604 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) 4605 ;; 4606 mingw* | cegcc*) 4607 # MinGW DLLs use traditional 'lib' prefix 4608 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 4609 ;; 4610 pw32*) 4611 # pw32 DLLs use 'pw' prefix rather than 'lib' 4612 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 4613 ;; 4614 esac 4615 ;; 4616 4617 *) 4618 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 4619 ;; 4620 esac 4621 dynamic_linker='Win32 ld.exe' 4622 # FIXME: first we should search . and the directory the executable is in 4623 shlibpath_var=PATH 4624 ;; 4625 4626darwin* | rhapsody*) 4627 dynamic_linker="$host_os dyld" 4628 version_type=darwin 4629 need_lib_prefix=no 4630 need_version=no 4631 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 4632 soname_spec='${libname}${release}${major}$shared_ext' 4633 shlibpath_overrides_runpath=yes 4634 shlibpath_var=DYLD_LIBRARY_PATH 4635 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 4636m4_if([$1], [],[ 4637 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 4638 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 4639 ;; 4640 4641dgux*) 4642 version_type=linux 4643 need_lib_prefix=no 4644 need_version=no 4645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 4646 soname_spec='${libname}${release}${shared_ext}$major' 4647 shlibpath_var=LD_LIBRARY_PATH 4648 ;; 4649 4650freebsd1*) 4651 dynamic_linker=no 4652 ;; 4653 4654freebsd* | dragonfly*) 4655 # DragonFly does not have aout. When/if they implement a new 4656 # versioning mechanism, adjust this. 4657 if test -x /usr/bin/objformat; then 4658 objformat=`/usr/bin/objformat` 4659 else 4660 case $host_os in 4661 freebsd[[123]]*) objformat=aout ;; 4662 *) objformat=elf ;; 4663 esac 4664 fi 4665 version_type=freebsd-$objformat 4666 case $version_type in 4667 freebsd-elf*) 4668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 4669 need_version=no 4670 need_lib_prefix=no 4671 ;; 4672 freebsd-*) 4673 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 4674 need_version=yes 4675 ;; 4676 esac 4677 shlibpath_var=LD_LIBRARY_PATH 4678 case $host_os in 4679 freebsd2*) 4680 shlibpath_overrides_runpath=yes 4681 ;; 4682 freebsd3.[[01]]* | freebsdelf3.[[01]]*) 4683 shlibpath_overrides_runpath=yes 4684 hardcode_into_libs=yes 4685 ;; 4686 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 4687 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 4688 shlibpath_overrides_runpath=no 4689 hardcode_into_libs=yes 4690 ;; 4691 *) # from 4.6 on, and DragonFly 4692 shlibpath_overrides_runpath=yes 4693 hardcode_into_libs=yes 4694 ;; 4695 esac 4696 ;; 4697 4698gnu*) 4699 version_type=linux 4700 need_lib_prefix=no 4701 need_version=no 4702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 4703 soname_spec='${libname}${release}${shared_ext}$major' 4704 shlibpath_var=LD_LIBRARY_PATH 4705 hardcode_into_libs=yes 4706 ;; 4707 4708haiku*) 4709 version_type=linux 4710 need_lib_prefix=no 4711 need_version=no 4712 dynamic_linker="$host_os runtime_loader" 4713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 4714 soname_spec='${libname}${release}${shared_ext}$major' 4715 shlibpath_var=LIBRARY_PATH 4716 shlibpath_overrides_runpath=yes 4717 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 4718 hardcode_into_libs=yes 4719 ;; 4720 4721hpux9* | hpux10* | hpux11*) 4722 # Give a soname corresponding to the major version so that dld.sl refuses to 4723 # link against other versions. 4724 version_type=sunos 4725 need_lib_prefix=no 4726 need_version=no 4727 case $host_cpu in 4728 ia64*) 4729 shrext_cmds='.so' 4730 hardcode_into_libs=yes 4731 dynamic_linker="$host_os dld.so" 4732 shlibpath_var=LD_LIBRARY_PATH 4733 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 4734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4735 soname_spec='${libname}${release}${shared_ext}$major' 4736 if test "X$HPUX_IA64_MODE" = X32; then 4737 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 4738 else 4739 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 4740 fi 4741 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 4742 ;; 4743 hppa*64*) 4744 shrext_cmds='.sl' 4745 hardcode_into_libs=yes 4746 dynamic_linker="$host_os dld.sl" 4747 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 4748 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 4749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4750 soname_spec='${libname}${release}${shared_ext}$major' 4751 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 4752 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 4753 ;; 4754 *) 4755 shrext_cmds='.sl' 4756 dynamic_linker="$host_os dld.sl" 4757 shlibpath_var=SHLIB_PATH 4758 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 4759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4760 soname_spec='${libname}${release}${shared_ext}$major' 4761 ;; 4762 esac 4763 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 4764 postinstall_cmds='chmod 555 $lib' 4765 # or fails outright, so override atomically: 4766 install_override_mode=555 4767 ;; 4768 4769interix[[3-9]]*) 4770 version_type=linux 4771 need_lib_prefix=no 4772 need_version=no 4773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 4774 soname_spec='${libname}${release}${shared_ext}$major' 4775 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 4776 shlibpath_var=LD_LIBRARY_PATH 4777 shlibpath_overrides_runpath=no 4778 hardcode_into_libs=yes 4779 ;; 4780 4781irix5* | irix6* | nonstopux*) 4782 case $host_os in 4783 nonstopux*) version_type=nonstopux ;; 4784 *) 4785 if test "$lt_cv_prog_gnu_ld" = yes; then 4786 version_type=linux 4787 else 4788 version_type=irix 4789 fi ;; 4790 esac 4791 need_lib_prefix=no 4792 need_version=no 4793 soname_spec='${libname}${release}${shared_ext}$major' 4794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 4795 case $host_os in 4796 irix5* | nonstopux*) 4797 libsuff= shlibsuff= 4798 ;; 4799 *) 4800 case $LD in # libtool.m4 will add one of these switches to LD 4801 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 4802 libsuff= shlibsuff= libmagic=32-bit;; 4803 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 4804 libsuff=32 shlibsuff=N32 libmagic=N32;; 4805 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 4806 libsuff=64 shlibsuff=64 libmagic=64-bit;; 4807 *) libsuff= shlibsuff= libmagic=never-match;; 4808 esac 4809 ;; 4810 esac 4811 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 4812 shlibpath_overrides_runpath=no 4813 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 4814 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 4815 hardcode_into_libs=yes 4816 ;; 4817 4818# No shared lib support for Linux oldld, aout, or coff. 4819linux*oldld* | linux*aout* | linux*coff*) 4820 dynamic_linker=no 4821 ;; 4822 4823# This must be Linux ELF. 4824linux* | k*bsd*-gnu | kopensolaris*-gnu) 4825 version_type=linux 4826 need_lib_prefix=no 4827 need_version=no 4828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4829 soname_spec='${libname}${release}${shared_ext}$major' 4830 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 4831 shlibpath_var=LD_LIBRARY_PATH 4832 shlibpath_overrides_runpath=no 4833 4834 # Some binutils ld are patched to set DT_RUNPATH 4835 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], 4836 [lt_cv_shlibpath_overrides_runpath=no 4837 save_LDFLAGS=$LDFLAGS 4838 save_libdir=$libdir 4839 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 4840 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 4841 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 4842 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], 4843 [lt_cv_shlibpath_overrides_runpath=yes])]) 4844 LDFLAGS=$save_LDFLAGS 4845 libdir=$save_libdir 4846 ]) 4847 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 4848 4849 # This implies no fast_install, which is unacceptable. 4850 # Some rework will be needed to allow for fast_install 4851 # before this can be enabled. 4852 hardcode_into_libs=yes 4853 4854 # Append ld.so.conf contents to the search path 4855 if test -f /etc/ld.so.conf; then 4856 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 4857 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 4858 fi 4859 4860 # We used to test for /lib/ld.so.1 and disable shared libraries on 4861 # powerpc, because MkLinux only supported shared libraries with the 4862 # GNU dynamic linker. Since this was broken with cross compilers, 4863 # most powerpc-linux boxes support dynamic linking these days and 4864 # people can always --disable-shared, the test was removed, and we 4865 # assume the GNU/Linux dynamic linker is in use. 4866 dynamic_linker='GNU/Linux ld.so' 4867 ;; 4868 4869netbsd*) 4870 version_type=sunos 4871 need_lib_prefix=no 4872 need_version=no 4873 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 4874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 4875 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 4876 dynamic_linker='NetBSD (a.out) ld.so' 4877 else 4878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 4879 soname_spec='${libname}${release}${shared_ext}$major' 4880 dynamic_linker='NetBSD ld.elf_so' 4881 fi 4882 shlibpath_var=LD_LIBRARY_PATH 4883 shlibpath_overrides_runpath=yes 4884 hardcode_into_libs=yes 4885 ;; 4886 4887newsos6) 4888 version_type=linux 4889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4890 shlibpath_var=LD_LIBRARY_PATH 4891 shlibpath_overrides_runpath=yes 4892 ;; 4893 4894*nto* | *qnx*) 4895 version_type=qnx 4896 need_lib_prefix=no 4897 need_version=no 4898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4899 soname_spec='${libname}${release}${shared_ext}$major' 4900 shlibpath_var=LD_LIBRARY_PATH 4901 shlibpath_overrides_runpath=no 4902 hardcode_into_libs=yes 4903 dynamic_linker='ldqnx.so' 4904 ;; 4905 4906openbsd*) 4907 version_type=sunos 4908 sys_lib_dlsearch_path_spec="/usr/lib" 4909 need_lib_prefix=no 4910 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 4911 case $host_os in 4912 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 4913 *) need_version=no ;; 4914 esac 4915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 4916 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 4917 shlibpath_var=LD_LIBRARY_PATH 4918 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4919 case $host_os in 4920 openbsd2.[[89]] | openbsd2.[[89]].*) 4921 shlibpath_overrides_runpath=no 4922 ;; 4923 *) 4924 shlibpath_overrides_runpath=yes 4925 ;; 4926 esac 4927 else 4928 shlibpath_overrides_runpath=yes 4929 fi 4930 ;; 4931 4932os2*) 4933 libname_spec='$name' 4934 shrext_cmds=".dll" 4935 need_lib_prefix=no 4936 library_names_spec='$libname${shared_ext} $libname.a' 4937 dynamic_linker='OS/2 ld.exe' 4938 shlibpath_var=LIBPATH 4939 ;; 4940 4941osf3* | osf4* | osf5*) 4942 version_type=osf 4943 need_lib_prefix=no 4944 need_version=no 4945 soname_spec='${libname}${release}${shared_ext}$major' 4946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4947 shlibpath_var=LD_LIBRARY_PATH 4948 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 4949 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 4950 ;; 4951 4952rdos*) 4953 dynamic_linker=no 4954 ;; 4955 4956solaris*) 4957 version_type=linux 4958 need_lib_prefix=no 4959 need_version=no 4960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4961 soname_spec='${libname}${release}${shared_ext}$major' 4962 shlibpath_var=LD_LIBRARY_PATH 4963 shlibpath_overrides_runpath=yes 4964 hardcode_into_libs=yes 4965 # ldd complains unless libraries are executable 4966 postinstall_cmds='chmod +x $lib' 4967 ;; 4968 4969sunos4*) 4970 version_type=sunos 4971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 4972 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 4973 shlibpath_var=LD_LIBRARY_PATH 4974 shlibpath_overrides_runpath=yes 4975 if test "$with_gnu_ld" = yes; then 4976 need_lib_prefix=no 4977 fi 4978 need_version=yes 4979 ;; 4980 4981sysv4 | sysv4.3*) 4982 version_type=linux 4983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4984 soname_spec='${libname}${release}${shared_ext}$major' 4985 shlibpath_var=LD_LIBRARY_PATH 4986 case $host_vendor in 4987 sni) 4988 shlibpath_overrides_runpath=no 4989 need_lib_prefix=no 4990 runpath_var=LD_RUN_PATH 4991 ;; 4992 siemens) 4993 need_lib_prefix=no 4994 ;; 4995 motorola) 4996 need_lib_prefix=no 4997 need_version=no 4998 shlibpath_overrides_runpath=no 4999 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 5000 ;; 5001 esac 5002 ;; 5003 5004sysv4*MP*) 5005 if test -d /usr/nec ;then 5006 version_type=linux 5007 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 5008 soname_spec='$libname${shared_ext}.$major' 5009 shlibpath_var=LD_LIBRARY_PATH 5010 fi 5011 ;; 5012 5013sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5014 version_type=freebsd-elf 5015 need_lib_prefix=no 5016 need_version=no 5017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 5018 soname_spec='${libname}${release}${shared_ext}$major' 5019 shlibpath_var=LD_LIBRARY_PATH 5020 shlibpath_overrides_runpath=yes 5021 hardcode_into_libs=yes 5022 if test "$with_gnu_ld" = yes; then 5023 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 5024 else 5025 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 5026 case $host_os in 5027 sco3.2v5*) 5028 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 5029 ;; 5030 esac 5031 fi 5032 sys_lib_dlsearch_path_spec='/usr/lib' 5033 ;; 5034 5035tpf*) 5036 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 5037 version_type=linux 5038 need_lib_prefix=no 5039 need_version=no 5040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 5041 shlibpath_var=LD_LIBRARY_PATH 5042 shlibpath_overrides_runpath=no 5043 hardcode_into_libs=yes 5044 ;; 5045 5046uts4*) 5047 version_type=linux 5048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 5049 soname_spec='${libname}${release}${shared_ext}$major' 5050 shlibpath_var=LD_LIBRARY_PATH 5051 ;; 5052 5053*) 5054 dynamic_linker=no 5055 ;; 5056esac 5057AC_MSG_RESULT([$dynamic_linker]) 5058test "$dynamic_linker" = no && can_build_shared=no 5059 5060variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 5061if test "$GCC" = yes; then 5062 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 5063fi 5064 5065if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 5066 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 5067fi 5068if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 5069 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 5070fi 5071 5072_LT_DECL([], [variables_saved_for_relink], [1], 5073 [Variables whose values should be saved in libtool wrapper scripts and 5074 restored at link time]) 5075_LT_DECL([], [need_lib_prefix], [0], 5076 [Do we need the "lib" prefix for modules?]) 5077_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) 5078_LT_DECL([], [version_type], [0], [Library versioning type]) 5079_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) 5080_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) 5081_LT_DECL([], [shlibpath_overrides_runpath], [0], 5082 [Is shlibpath searched before the hard-coded library search path?]) 5083_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) 5084_LT_DECL([], [library_names_spec], [1], 5085 [[List of archive names. First name is the real one, the rest are links. 5086 The last name is the one that the linker finds with -lNAME]]) 5087_LT_DECL([], [soname_spec], [1], 5088 [[The coded name of the library, if different from the real name]]) 5089_LT_DECL([], [install_override_mode], [1], 5090 [Permission mode override for installation of shared libraries]) 5091_LT_DECL([], [postinstall_cmds], [2], 5092 [Command to use after installation of a shared archive]) 5093_LT_DECL([], [postuninstall_cmds], [2], 5094 [Command to use after uninstallation of a shared archive]) 5095_LT_DECL([], [finish_cmds], [2], 5096 [Commands used to finish a libtool library installation in a directory]) 5097_LT_DECL([], [finish_eval], [1], 5098 [[As "finish_cmds", except a single script fragment to be evaled but 5099 not shown]]) 5100_LT_DECL([], [hardcode_into_libs], [0], 5101 [Whether we should hardcode library paths into libraries]) 5102_LT_DECL([], [sys_lib_search_path_spec], [2], 5103 [Compile-time system search path for libraries]) 5104_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], 5105 [Run-time system search path for libraries]) 5106])# _LT_SYS_DYNAMIC_LINKER 5107 5108 5109# _LT_PATH_TOOL_PREFIX(TOOL) 5110# -------------------------- 5111# find a file program which can recognize shared library 5112AC_DEFUN([_LT_PATH_TOOL_PREFIX], 5113[m4_require([_LT_DECL_EGREP])dnl 5114AC_MSG_CHECKING([for $1]) 5115AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 5116[case $MAGIC_CMD in 5117[[\\/*] | ?:[\\/]*]) 5118 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5119 ;; 5120*) 5121 lt_save_MAGIC_CMD="$MAGIC_CMD" 5122 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5123dnl $ac_dummy forces splitting on constant user-supplied paths. 5124dnl POSIX.2 word splitting is done only on the output of word expansions, 5125dnl not every word. This closes a longstanding sh security hole. 5126 ac_dummy="m4_if([$2], , $PATH, [$2])" 5127 for ac_dir in $ac_dummy; do 5128 IFS="$lt_save_ifs" 5129 test -z "$ac_dir" && ac_dir=. 5130 if test -f $ac_dir/$1; then 5131 lt_cv_path_MAGIC_CMD="$ac_dir/$1" 5132 if test -n "$file_magic_test_file"; then 5133 case $deplibs_check_method in 5134 "file_magic "*) 5135 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 5136 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5137 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5138 $EGREP "$file_magic_regex" > /dev/null; then 5139 : 5140 else 5141 cat <<_LT_EOF 1>&2 5142 5143*** Warning: the command libtool uses to detect shared libraries, 5144*** $file_magic_cmd, produces output that libtool cannot recognize. 5145*** The result is that libtool may fail to recognize shared libraries 5146*** as such. This will affect the creation of libtool libraries that 5147*** depend on shared libraries, but programs linked with such libtool 5148*** libraries will work regardless of this problem. Nevertheless, you 5149*** may want to report the problem to your system manager and/or to 5150*** bug-libtool@gnu.org 5151 5152_LT_EOF 5153 fi ;; 5154 esac 5155 fi 5156 break 5157 fi 5158 done 5159 IFS="$lt_save_ifs" 5160 MAGIC_CMD="$lt_save_MAGIC_CMD" 5161 ;; 5162esac]) 5163MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5164if test -n "$MAGIC_CMD"; then 5165 AC_MSG_RESULT($MAGIC_CMD) 5166else 5167 AC_MSG_RESULT(no) 5168fi 5169_LT_DECL([], [MAGIC_CMD], [0], 5170 [Used to examine libraries when file_magic_cmd begins with "file"])dnl 5171])# _LT_PATH_TOOL_PREFIX 5172 5173# Old name: 5174AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) 5175dnl aclocal-1.4 backwards compatibility: 5176dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) 5177 5178 5179# _LT_PATH_MAGIC 5180# -------------- 5181# find a file program which can recognize a shared library 5182m4_defun([_LT_PATH_MAGIC], 5183[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 5184if test -z "$lt_cv_path_MAGIC_CMD"; then 5185 if test -n "$ac_tool_prefix"; then 5186 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 5187 else 5188 MAGIC_CMD=: 5189 fi 5190fi 5191])# _LT_PATH_MAGIC 5192 5193 5194# LT_PATH_LD 5195# ---------- 5196# find the pathname to the GNU or non-GNU linker 5197AC_DEFUN([LT_PATH_LD], 5198[AC_REQUIRE([AC_PROG_CC])dnl 5199AC_REQUIRE([AC_CANONICAL_HOST])dnl 5200AC_REQUIRE([AC_CANONICAL_BUILD])dnl 5201m4_require([_LT_DECL_SED])dnl 5202m4_require([_LT_DECL_EGREP])dnl 5203m4_require([_LT_PROG_ECHO_BACKSLASH])dnl 5204 5205AC_ARG_WITH([gnu-ld], 5206 [AS_HELP_STRING([--with-gnu-ld], 5207 [assume the C compiler uses GNU ld @<:@default=no@:>@])], 5208 [test "$withval" = no || with_gnu_ld=yes], 5209 [with_gnu_ld=no])dnl 5210 5211ac_prog=ld 5212if test "$GCC" = yes; then 5213 # Check if gcc -print-prog-name=ld gives a path. 5214 AC_MSG_CHECKING([for ld used by $CC]) 5215 case $host in 5216 *-*-mingw*) 5217 # gcc leaves a trailing carriage return which upsets mingw 5218 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5219 *) 5220 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5221 esac 5222 case $ac_prog in 5223 # Accept absolute paths. 5224 [[\\/]]* | ?:[[\\/]]*) 5225 re_direlt='/[[^/]][[^/]]*/\.\./' 5226 # Canonicalize the pathname of ld 5227 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5228 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5229 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5230 done 5231 test -z "$LD" && LD="$ac_prog" 5232 ;; 5233 "") 5234 # If it fails, then pretend we aren't using GCC. 5235 ac_prog=ld 5236 ;; 5237 *) 5238 # If it is relative, then search for the first ld in PATH. 5239 with_gnu_ld=unknown 5240 ;; 5241 esac 5242elif test "$with_gnu_ld" = yes; then 5243 AC_MSG_CHECKING([for GNU ld]) 5244else 5245 AC_MSG_CHECKING([for non-GNU ld]) 5246fi 5247AC_CACHE_VAL(lt_cv_path_LD, 5248[if test -z "$LD"; then 5249 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5250 for ac_dir in $PATH; do 5251 IFS="$lt_save_ifs" 5252 test -z "$ac_dir" && ac_dir=. 5253 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5254 lt_cv_path_LD="$ac_dir/$ac_prog" 5255 # Check to see if the program is GNU ld. I'd rather use --version, 5256 # but apparently some variants of GNU ld only accept -v. 5257 # Break only if it was the GNU/non-GNU ld that we prefer. 5258 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5259 *GNU* | *'with BFD'*) 5260 test "$with_gnu_ld" != no && break 5261 ;; 5262 *) 5263 test "$with_gnu_ld" != yes && break 5264 ;; 5265 esac 5266 fi 5267 done 5268 IFS="$lt_save_ifs" 5269else 5270 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5271fi]) 5272LD="$lt_cv_path_LD" 5273if test -n "$LD"; then 5274 AC_MSG_RESULT($LD) 5275else 5276 AC_MSG_RESULT(no) 5277fi 5278test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 5279_LT_PATH_LD_GNU 5280AC_SUBST([LD]) 5281 5282_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) 5283])# LT_PATH_LD 5284 5285# Old names: 5286AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) 5287AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) 5288dnl aclocal-1.4 backwards compatibility: 5289dnl AC_DEFUN([AM_PROG_LD], []) 5290dnl AC_DEFUN([AC_PROG_LD], []) 5291 5292 5293# _LT_PATH_LD_GNU 5294#- -------------- 5295m4_defun([_LT_PATH_LD_GNU], 5296[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 5297[# I'd rather use --version here, but apparently some GNU lds only accept -v. 5298case `$LD -v 2>&1 </dev/null` in 5299*GNU* | *'with BFD'*) 5300 lt_cv_prog_gnu_ld=yes 5301 ;; 5302*) 5303 lt_cv_prog_gnu_ld=no 5304 ;; 5305esac]) 5306with_gnu_ld=$lt_cv_prog_gnu_ld 5307])# _LT_PATH_LD_GNU 5308 5309 5310# _LT_CMD_RELOAD 5311# -------------- 5312# find reload flag for linker 5313# -- PORTME Some linkers may need a different reload flag. 5314m4_defun([_LT_CMD_RELOAD], 5315[AC_CACHE_CHECK([for $LD option to reload object files], 5316 lt_cv_ld_reload_flag, 5317 [lt_cv_ld_reload_flag='-r']) 5318reload_flag=$lt_cv_ld_reload_flag 5319case $reload_flag in 5320"" | " "*) ;; 5321*) reload_flag=" $reload_flag" ;; 5322esac 5323reload_cmds='$LD$reload_flag -o $output$reload_objs' 5324case $host_os in 5325 darwin*) 5326 if test "$GCC" = yes; then 5327 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5328 else 5329 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5330 fi 5331 ;; 5332esac 5333_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl 5334_LT_TAGDECL([], [reload_cmds], [2])dnl 5335])# _LT_CMD_RELOAD 5336 5337 5338# _LT_CHECK_MAGIC_METHOD 5339# ---------------------- 5340# how to check for library dependencies 5341# -- PORTME fill in with the dynamic library characteristics 5342m4_defun([_LT_CHECK_MAGIC_METHOD], 5343[m4_require([_LT_DECL_EGREP]) 5344m4_require([_LT_DECL_OBJDUMP]) 5345AC_CACHE_CHECK([how to recognize dependent libraries], 5346lt_cv_deplibs_check_method, 5347[lt_cv_file_magic_cmd='$MAGIC_CMD' 5348lt_cv_file_magic_test_file= 5349lt_cv_deplibs_check_method='unknown' 5350# Need to set the preceding variable on all platforms that support 5351# interlibrary dependencies. 5352# 'none' -- dependencies not supported. 5353# `unknown' -- same as none, but documents that we really don't know. 5354# 'pass_all' -- all dependencies passed with no checks. 5355# 'test_compile' -- check by making test program. 5356# 'file_magic [[regex]]' -- check by looking for files in library path 5357# which responds to the $file_magic_cmd with a given extended regex. 5358# If you have `file' or equivalent on your system and you're not sure 5359# whether `pass_all' will *always* work, you probably want this one. 5360 5361case $host_os in 5362aix[[4-9]]*) 5363 lt_cv_deplibs_check_method=pass_all 5364 ;; 5365 5366beos*) 5367 lt_cv_deplibs_check_method=pass_all 5368 ;; 5369 5370bsdi[[45]]*) 5371 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 5372 lt_cv_file_magic_cmd='/usr/bin/file -L' 5373 lt_cv_file_magic_test_file=/shlib/libc.so 5374 ;; 5375 5376cygwin*) 5377 # func_win32_libid is a shell function defined in ltmain.sh 5378 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5379 lt_cv_file_magic_cmd='func_win32_libid' 5380 ;; 5381 5382mingw* | pw32*) 5383 # Base MSYS/MinGW do not provide the 'file' command needed by 5384 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5385 # unless we find 'file', for example because we are cross-compiling. 5386 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5387 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5388 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5389 lt_cv_file_magic_cmd='func_win32_libid' 5390 else 5391 # Keep this pattern in sync with the one in func_win32_libid. 5392 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5393 lt_cv_file_magic_cmd='$OBJDUMP -f' 5394 fi 5395 ;; 5396 5397cegcc*) 5398 # use the weaker test based on 'objdump'. See mingw*. 5399 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5400 lt_cv_file_magic_cmd='$OBJDUMP -f' 5401 ;; 5402 5403darwin* | rhapsody*) 5404 lt_cv_deplibs_check_method=pass_all 5405 ;; 5406 5407freebsd* | dragonfly*) 5408 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5409 case $host_cpu in 5410 i*86 ) 5411 # Not sure whether the presence of OpenBSD here was a mistake. 5412 # Let's accept both of them until this is cleared up. 5413 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 5414 lt_cv_file_magic_cmd=/usr/bin/file 5415 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5416 ;; 5417 esac 5418 else 5419 lt_cv_deplibs_check_method=pass_all 5420 fi 5421 ;; 5422 5423gnu*) 5424 lt_cv_deplibs_check_method=pass_all 5425 ;; 5426 5427haiku*) 5428 lt_cv_deplibs_check_method=pass_all 5429 ;; 5430 5431hpux10.20* | hpux11*) 5432 lt_cv_file_magic_cmd=/usr/bin/file 5433 case $host_cpu in 5434 ia64*) 5435 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 5436 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5437 ;; 5438 hppa*64*) 5439 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] 5440 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5441 ;; 5442 *) 5443 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' 5444 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5445 ;; 5446 esac 5447 ;; 5448 5449interix[[3-9]]*) 5450 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5451 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 5452 ;; 5453 5454irix5* | irix6* | nonstopux*) 5455 case $LD in 5456 *-32|*"-32 ") libmagic=32-bit;; 5457 *-n32|*"-n32 ") libmagic=N32;; 5458 *-64|*"-64 ") libmagic=64-bit;; 5459 *) libmagic=never-match;; 5460 esac 5461 lt_cv_deplibs_check_method=pass_all 5462 ;; 5463 5464# This must be Linux ELF. 5465linux* | k*bsd*-gnu | kopensolaris*-gnu) 5466 lt_cv_deplibs_check_method=pass_all 5467 ;; 5468 5469netbsd*) 5470 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5471 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 5472 else 5473 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 5474 fi 5475 ;; 5476 5477newos6*) 5478 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 5479 lt_cv_file_magic_cmd=/usr/bin/file 5480 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5481 ;; 5482 5483*nto* | *qnx*) 5484 lt_cv_deplibs_check_method=pass_all 5485 ;; 5486 5487openbsd*) 5488 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5489 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 5490 else 5491 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 5492 fi 5493 ;; 5494 5495osf3* | osf4* | osf5*) 5496 lt_cv_deplibs_check_method=pass_all 5497 ;; 5498 5499rdos*) 5500 lt_cv_deplibs_check_method=pass_all 5501 ;; 5502 5503solaris*) 5504 lt_cv_deplibs_check_method=pass_all 5505 ;; 5506 5507sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5508 lt_cv_deplibs_check_method=pass_all 5509 ;; 5510 5511sysv4 | sysv4.3*) 5512 case $host_vendor in 5513 motorola) 5514 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]]' 5515 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5516 ;; 5517 ncr) 5518 lt_cv_deplibs_check_method=pass_all 5519 ;; 5520 sequent) 5521 lt_cv_file_magic_cmd='/bin/file' 5522 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 5523 ;; 5524 sni) 5525 lt_cv_file_magic_cmd='/bin/file' 5526 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 5527 lt_cv_file_magic_test_file=/lib/libc.so 5528 ;; 5529 siemens) 5530 lt_cv_deplibs_check_method=pass_all 5531 ;; 5532 pc) 5533 lt_cv_deplibs_check_method=pass_all 5534 ;; 5535 esac 5536 ;; 5537 5538tpf*) 5539 lt_cv_deplibs_check_method=pass_all 5540 ;; 5541esac 5542]) 5543file_magic_cmd=$lt_cv_file_magic_cmd 5544deplibs_check_method=$lt_cv_deplibs_check_method 5545test -z "$deplibs_check_method" && deplibs_check_method=unknown 5546 5547_LT_DECL([], [deplibs_check_method], [1], 5548 [Method to check whether dependent libraries are shared objects]) 5549_LT_DECL([], [file_magic_cmd], [1], 5550 [Command to use when deplibs_check_method == "file_magic"]) 5551])# _LT_CHECK_MAGIC_METHOD 5552 5553 5554# LT_PATH_NM 5555# ---------- 5556# find the pathname to a BSD- or MS-compatible name lister 5557AC_DEFUN([LT_PATH_NM], 5558[AC_REQUIRE([AC_PROG_CC])dnl 5559AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, 5560[if test -n "$NM"; then 5561 # Let the user override the test. 5562 lt_cv_path_NM="$NM" 5563else 5564 lt_nm_to_check="${ac_tool_prefix}nm" 5565 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5566 lt_nm_to_check="$lt_nm_to_check nm" 5567 fi 5568 for lt_tmp_nm in $lt_nm_to_check; do 5569 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5570 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5571 IFS="$lt_save_ifs" 5572 test -z "$ac_dir" && ac_dir=. 5573 tmp_nm="$ac_dir/$lt_tmp_nm" 5574 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5575 # Check to see if the nm accepts a BSD-compat flag. 5576 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5577 # nm: unknown option "B" ignored 5578 # Tru64's nm complains that /dev/null is an invalid object file 5579 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5580 */dev/null* | *'Invalid file or object type'*) 5581 lt_cv_path_NM="$tmp_nm -B" 5582 break 5583 ;; 5584 *) 5585 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5586 */dev/null*) 5587 lt_cv_path_NM="$tmp_nm -p" 5588 break 5589 ;; 5590 *) 5591 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5592 continue # so that we can try to find one that supports BSD flags 5593 ;; 5594 esac 5595 ;; 5596 esac 5597 fi 5598 done 5599 IFS="$lt_save_ifs" 5600 done 5601 : ${lt_cv_path_NM=no} 5602fi]) 5603if test "$lt_cv_path_NM" != "no"; then 5604 NM="$lt_cv_path_NM" 5605else 5606 # Didn't find any BSD compatible name lister, look for dumpbin. 5607 if test -n "$DUMPBIN"; then : 5608 # Let the user override the test. 5609 else 5610 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) 5611 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5612 *COFF*) 5613 DUMPBIN="$DUMPBIN -symbols" 5614 ;; 5615 *) 5616 DUMPBIN=: 5617 ;; 5618 esac 5619 fi 5620 AC_SUBST([DUMPBIN]) 5621 if test "$DUMPBIN" != ":"; then 5622 NM="$DUMPBIN" 5623 fi 5624fi 5625test -z "$NM" && NM=nm 5626AC_SUBST([NM]) 5627_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl 5628 5629AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], 5630 [lt_cv_nm_interface="BSD nm" 5631 echo "int some_variable = 0;" > conftest.$ac_ext 5632 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) 5633 (eval "$ac_compile" 2>conftest.err) 5634 cat conftest.err >&AS_MESSAGE_LOG_FD 5635 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) 5636 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5637 cat conftest.err >&AS_MESSAGE_LOG_FD 5638 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) 5639 cat conftest.out >&AS_MESSAGE_LOG_FD 5640 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5641 lt_cv_nm_interface="MS dumpbin" 5642 fi 5643 rm -f conftest*]) 5644])# LT_PATH_NM 5645 5646# Old names: 5647AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) 5648AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) 5649dnl aclocal-1.4 backwards compatibility: 5650dnl AC_DEFUN([AM_PROG_NM], []) 5651dnl AC_DEFUN([AC_PROG_NM], []) 5652 5653 5654# LT_LIB_M 5655# -------- 5656# check for math library 5657AC_DEFUN([LT_LIB_M], 5658[AC_REQUIRE([AC_CANONICAL_HOST])dnl 5659LIBM= 5660case $host in 5661*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 5662 # These system don't have libm, or don't need it 5663 ;; 5664*-ncr-sysv4.3*) 5665 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") 5666 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 5667 ;; 5668*) 5669 AC_CHECK_LIB(m, cos, LIBM="-lm") 5670 ;; 5671esac 5672AC_SUBST([LIBM]) 5673])# LT_LIB_M 5674 5675# Old name: 5676AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) 5677dnl aclocal-1.4 backwards compatibility: 5678dnl AC_DEFUN([AC_CHECK_LIBM], []) 5679 5680 5681# _LT_COMPILER_NO_RTTI([TAGNAME]) 5682# ------------------------------- 5683m4_defun([_LT_COMPILER_NO_RTTI], 5684[m4_require([_LT_TAG_COMPILER])dnl 5685 5686_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 5687 5688if test "$GCC" = yes; then 5689 case $cc_basename in 5690 nvcc*) 5691 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; 5692 *) 5693 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; 5694 esac 5695 5696 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 5697 lt_cv_prog_compiler_rtti_exceptions, 5698 [-fno-rtti -fno-exceptions], [], 5699 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 5700fi 5701_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], 5702 [Compiler flag to turn off builtin functions]) 5703])# _LT_COMPILER_NO_RTTI 5704 5705 5706# _LT_CMD_GLOBAL_SYMBOLS 5707# ---------------------- 5708m4_defun([_LT_CMD_GLOBAL_SYMBOLS], 5709[AC_REQUIRE([AC_CANONICAL_HOST])dnl 5710AC_REQUIRE([AC_PROG_CC])dnl 5711AC_REQUIRE([AC_PROG_AWK])dnl 5712AC_REQUIRE([LT_PATH_NM])dnl 5713AC_REQUIRE([LT_PATH_LD])dnl 5714m4_require([_LT_DECL_SED])dnl 5715m4_require([_LT_DECL_EGREP])dnl 5716m4_require([_LT_TAG_COMPILER])dnl 5717 5718# Check for command to grab the raw symbol name followed by C symbol from nm. 5719AC_MSG_CHECKING([command to parse $NM output from $compiler object]) 5720AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 5721[ 5722# These are sane defaults that work on at least a few old systems. 5723# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5724 5725# Character class describing NM global symbol codes. 5726symcode='[[BCDEGRST]]' 5727 5728# Regexp to match symbols that can be accessed directly from C. 5729sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 5730 5731# Define system-specific variables. 5732case $host_os in 5733aix*) 5734 symcode='[[BCDT]]' 5735 ;; 5736cygwin* | mingw* | pw32* | cegcc*) 5737 symcode='[[ABCDGISTW]]' 5738 ;; 5739hpux*) 5740 if test "$host_cpu" = ia64; then 5741 symcode='[[ABCDEGRST]]' 5742 fi 5743 ;; 5744irix* | nonstopux*) 5745 symcode='[[BCDEGRST]]' 5746 ;; 5747osf*) 5748 symcode='[[BCDEGQRST]]' 5749 ;; 5750solaris*) 5751 symcode='[[BDRT]]' 5752 ;; 5753sco3.2v5*) 5754 symcode='[[DT]]' 5755 ;; 5756sysv4.2uw2*) 5757 symcode='[[DT]]' 5758 ;; 5759sysv5* | sco5v6* | unixware* | OpenUNIX*) 5760 symcode='[[ABDT]]' 5761 ;; 5762sysv4) 5763 symcode='[[DFNSTU]]' 5764 ;; 5765esac 5766 5767# If we're using GNU nm, then use its standard symbol codes. 5768case `$NM -V 2>&1` in 5769*GNU* | *'with BFD'*) 5770 symcode='[[ABCDGIRSTW]]' ;; 5771esac 5772 5773# Transform an extracted symbol line into a proper C declaration. 5774# Some systems (esp. on ia64) link data and code symbols differently, 5775# so use this general approach. 5776lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5777 5778# Transform an extracted symbol line into symbol name and symbol address 5779lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" 5780lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 5781 5782# Handle CRLF in mingw tool chain 5783opt_cr= 5784case $build_os in 5785mingw*) 5786 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5787 ;; 5788esac 5789 5790# Try without a prefix underscore, then with it. 5791for ac_symprfx in "" "_"; do 5792 5793 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5794 symxfrm="\\1 $ac_symprfx\\2 \\2" 5795 5796 # Write the raw and C identifiers. 5797 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5798 # Fake it for dumpbin and say T for any non-static function 5799 # and D for any global variable. 5800 # Also find C++ and __fastcall symbols from MSVC++, 5801 # which start with @ or ?. 5802 lt_cv_sys_global_symbol_pipe="$AWK ['"\ 5803" {last_section=section; section=\$ 3};"\ 5804" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5805" \$ 0!~/External *\|/{next};"\ 5806" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5807" {if(hide[section]) next};"\ 5808" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5809" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5810" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5811" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5812" ' prfx=^$ac_symprfx]" 5813 else 5814 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5815 fi 5816 5817 # Check to see that the pipe works correctly. 5818 pipe_works=no 5819 5820 rm -f conftest* 5821 cat > conftest.$ac_ext <<_LT_EOF 5822#ifdef __cplusplus 5823extern "C" { 5824#endif 5825char nm_test_var; 5826void nm_test_func(void); 5827void nm_test_func(void){} 5828#ifdef __cplusplus 5829} 5830#endif 5831int main(){nm_test_var='a';nm_test_func();return(0);} 5832_LT_EOF 5833 5834 if AC_TRY_EVAL(ac_compile); then 5835 # Now try to grab the symbols. 5836 nlist=conftest.nm 5837 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then 5838 # Try sorting and uniquifying the output. 5839 if sort "$nlist" | uniq > "$nlist"T; then 5840 mv -f "$nlist"T "$nlist" 5841 else 5842 rm -f "$nlist"T 5843 fi 5844 5845 # Make sure that we snagged all the symbols we need. 5846 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5847 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5848 cat <<_LT_EOF > conftest.$ac_ext 5849#ifdef __cplusplus 5850extern "C" { 5851#endif 5852 5853_LT_EOF 5854 # Now generate the symbol file. 5855 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5856 5857 cat <<_LT_EOF >> conftest.$ac_ext 5858 5859/* The mapping between symbol names and symbols. */ 5860const struct { 5861 const char *name; 5862 void *address; 5863} 5864lt__PROGRAM__LTX_preloaded_symbols[[]] = 5865{ 5866 { "@PROGRAM@", (void *) 0 }, 5867_LT_EOF 5868 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5869 cat <<\_LT_EOF >> conftest.$ac_ext 5870 {0, (void *) 0} 5871}; 5872 5873/* This works around a problem in FreeBSD linker */ 5874#ifdef FREEBSD_WORKAROUND 5875static const void *lt_preloaded_setup() { 5876 return lt__PROGRAM__LTX_preloaded_symbols; 5877} 5878#endif 5879 5880#ifdef __cplusplus 5881} 5882#endif 5883_LT_EOF 5884 # Now try linking the two files. 5885 mv conftest.$ac_objext conftstm.$ac_objext 5886 lt_save_LIBS="$LIBS" 5887 lt_save_CFLAGS="$CFLAGS" 5888 LIBS="conftstm.$ac_objext" 5889 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 5890 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then 5891 pipe_works=yes 5892 fi 5893 LIBS="$lt_save_LIBS" 5894 CFLAGS="$lt_save_CFLAGS" 5895 else 5896 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 5897 fi 5898 else 5899 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 5900 fi 5901 else 5902 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 5903 fi 5904 else 5905 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 5906 cat conftest.$ac_ext >&5 5907 fi 5908 rm -rf conftest* conftst* 5909 5910 # Do not use the global_symbol_pipe unless it works. 5911 if test "$pipe_works" = yes; then 5912 break 5913 else 5914 lt_cv_sys_global_symbol_pipe= 5915 fi 5916done 5917]) 5918if test -z "$lt_cv_sys_global_symbol_pipe"; then 5919 lt_cv_sys_global_symbol_to_cdecl= 5920fi 5921if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5922 AC_MSG_RESULT(failed) 5923else 5924 AC_MSG_RESULT(ok) 5925fi 5926 5927_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], 5928 [Take the output of nm and produce a listing of raw symbols and C names]) 5929_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 5930 [Transform the output of nm in a proper C declaration]) 5931_LT_DECL([global_symbol_to_c_name_address], 5932 [lt_cv_sys_global_symbol_to_c_name_address], [1], 5933 [Transform the output of nm in a C name address pair]) 5934_LT_DECL([global_symbol_to_c_name_address_lib_prefix], 5935 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 5936 [Transform the output of nm in a C name address pair when lib prefix is needed]) 5937]) # _LT_CMD_GLOBAL_SYMBOLS 5938 5939 5940# _LT_COMPILER_PIC([TAGNAME]) 5941# --------------------------- 5942m4_defun([_LT_COMPILER_PIC], 5943[m4_require([_LT_TAG_COMPILER])dnl 5944_LT_TAGVAR(lt_prog_compiler_wl, $1)= 5945_LT_TAGVAR(lt_prog_compiler_pic, $1)= 5946_LT_TAGVAR(lt_prog_compiler_static, $1)= 5947 5948AC_MSG_CHECKING([for $compiler option to produce PIC]) 5949m4_if([$1], [CXX], [ 5950 # C++ specific cases for pic, static, wl, etc. 5951 if test "$GXX" = yes; then 5952 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5953 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5954 5955 case $host_os in 5956 aix*) 5957 # All AIX code is PIC. 5958 if test "$host_cpu" = ia64; then 5959 # AIX 5 now supports IA64 processor 5960 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5961 fi 5962 ;; 5963 5964 amigaos*) 5965 case $host_cpu in 5966 powerpc) 5967 # see comment about AmigaOS4 .so support 5968 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5969 ;; 5970 m68k) 5971 # FIXME: we need at least 68020 code to build shared libraries, but 5972 # adding the `-m68020' flag to GCC prevents building anything better, 5973 # like `-m68040'. 5974 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 5975 ;; 5976 esac 5977 ;; 5978 5979 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 5980 # PIC is the default for these OSes. 5981 ;; 5982 mingw* | cygwin* | os2* | pw32* | cegcc*) 5983 # This hack is so that the source file can tell whether it is being 5984 # built for inclusion in a dll (and should export symbols for example). 5985 # Although the cygwin gcc ignores -fPIC, still need this for old-style 5986 # (--disable-auto-import) libraries 5987 m4_if([$1], [GCJ], [], 5988 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 5989 ;; 5990 darwin* | rhapsody*) 5991 # PIC is the default on this platform 5992 # Common symbols not allowed in MH_DYLIB files 5993 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 5994 ;; 5995 *djgpp*) 5996 # DJGPP does not support shared libraries at all 5997 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 5998 ;; 5999 haiku*) 6000 # PIC is the default for Haiku. 6001 # The "-static" flag exists, but is broken. 6002 _LT_TAGVAR(lt_prog_compiler_static, $1)= 6003 ;; 6004 interix[[3-9]]*) 6005 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6006 # Instead, we relocate shared libraries at runtime. 6007 ;; 6008 sysv4*MP*) 6009 if test -d /usr/nec; then 6010 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 6011 fi 6012 ;; 6013 hpux*) 6014 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 6015 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 6016 # sets the default TLS model and affects inlining. 6017 case $host_cpu in 6018 hppa*64*) 6019 ;; 6020 *) 6021 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6022 ;; 6023 esac 6024 ;; 6025 *qnx* | *nto*) 6026 # QNX uses GNU C++, but need to define -shared option too, otherwise 6027 # it will coredump. 6028 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 6029 ;; 6030 *) 6031 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6032 ;; 6033 esac 6034 else 6035 case $host_os in 6036 aix[[4-9]]*) 6037 # All AIX code is PIC. 6038 if test "$host_cpu" = ia64; then 6039 # AIX 5 now supports IA64 processor 6040 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6041 else 6042 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 6043 fi 6044 ;; 6045 chorus*) 6046 case $cc_basename in 6047 cxch68*) 6048 # Green Hills C++ Compiler 6049 # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 6050 ;; 6051 esac 6052 ;; 6053 dgux*) 6054 case $cc_basename in 6055 ec++*) 6056 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6057 ;; 6058 ghcx*) 6059 # Green Hills C++ Compiler 6060 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6061 ;; 6062 *) 6063 ;; 6064 esac 6065 ;; 6066 freebsd* | dragonfly*) 6067 # FreeBSD uses GNU C++ 6068 ;; 6069 hpux9* | hpux10* | hpux11*) 6070 case $cc_basename in 6071 CC*) 6072 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6073 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 6074 if test "$host_cpu" != ia64; then 6075 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 6076 fi 6077 ;; 6078 aCC*) 6079 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6080 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 6081 case $host_cpu in 6082 hppa*64*|ia64*) 6083 # +Z the default 6084 ;; 6085 *) 6086 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 6087 ;; 6088 esac 6089 ;; 6090 *) 6091 ;; 6092 esac 6093 ;; 6094 interix*) 6095 # This is c89, which is MS Visual C++ (no shared libs) 6096 # Anyone wants to do a port? 6097 ;; 6098 irix5* | irix6* | nonstopux*) 6099 case $cc_basename in 6100 CC*) 6101 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6102 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6103 # CC pic flag -KPIC is the default. 6104 ;; 6105 *) 6106 ;; 6107 esac 6108 ;; 6109 linux* | k*bsd*-gnu | kopensolaris*-gnu) 6110 case $cc_basename in 6111 KCC*) 6112 # KAI C++ Compiler 6113 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 6114 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6115 ;; 6116 ecpc* ) 6117 # old Intel C++ for x86_64 which still supported -KPIC. 6118 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6119 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6120 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6121 ;; 6122 icpc* ) 6123 # Intel C++, used to be incompatible with GCC. 6124 # ICC 10 doesn't accept -KPIC any more. 6125 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6126 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6127 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6128 ;; 6129 pgCC* | pgcpp*) 6130 # Portland Group C++ compiler 6131 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6132 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 6133 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6134 ;; 6135 cxx*) 6136 # Compaq C++ 6137 # Make sure the PIC flag is empty. It appears that all Alpha 6138 # Linux and Compaq Tru64 Unix objects are PIC. 6139 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 6140 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6141 ;; 6142 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) 6143 # IBM XL 8.0, 9.0 on PPC and BlueGene 6144 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6145 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 6146 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 6147 ;; 6148 *) 6149 case `$CC -V 2>&1 | sed 5q` in 6150 *Sun\ C*) 6151 # Sun C++ 5.9 6152 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6153 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6154 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 6155 ;; 6156 esac 6157 ;; 6158 esac 6159 ;; 6160 lynxos*) 6161 ;; 6162 m88k*) 6163 ;; 6164 mvs*) 6165 case $cc_basename in 6166 cxx*) 6167 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 6168 ;; 6169 *) 6170 ;; 6171 esac 6172 ;; 6173 netbsd*) 6174 ;; 6175 *qnx* | *nto*) 6176 # QNX uses GNU C++, but need to define -shared option too, otherwise 6177 # it will coredump. 6178 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 6179 ;; 6180 osf3* | osf4* | osf5*) 6181 case $cc_basename in 6182 KCC*) 6183 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 6184 ;; 6185 RCC*) 6186 # Rational C++ 2.4.1 6187 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6188 ;; 6189 cxx*) 6190 # Digital/Compaq C++ 6191 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6192 # Make sure the PIC flag is empty. It appears that all Alpha 6193 # Linux and Compaq Tru64 Unix objects are PIC. 6194 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 6195 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6196 ;; 6197 *) 6198 ;; 6199 esac 6200 ;; 6201 psos*) 6202 ;; 6203 solaris*) 6204 case $cc_basename in 6205 CC* | sunCC*) 6206 # Sun C++ 4.2, 5.x and Centerline C++ 6207 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6208 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6209 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 6210 ;; 6211 gcx*) 6212 # Green Hills C++ Compiler 6213 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 6214 ;; 6215 *) 6216 ;; 6217 esac 6218 ;; 6219 sunos4*) 6220 case $cc_basename in 6221 CC*) 6222 # Sun C++ 4.x 6223 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6224 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6225 ;; 6226 lcc*) 6227 # Lucid 6228 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6229 ;; 6230 *) 6231 ;; 6232 esac 6233 ;; 6234 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6235 case $cc_basename in 6236 CC*) 6237 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6238 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6239 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6240 ;; 6241 esac 6242 ;; 6243 tandem*) 6244 case $cc_basename in 6245 NCC*) 6246 # NonStop-UX NCC 3.20 6247 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6248 ;; 6249 *) 6250 ;; 6251 esac 6252 ;; 6253 vxworks*) 6254 ;; 6255 *) 6256 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6257 ;; 6258 esac 6259 fi 6260], 6261[ 6262 if test "$GCC" = yes; then 6263 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6264 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6265 6266 case $host_os in 6267 aix*) 6268 # All AIX code is PIC. 6269 if test "$host_cpu" = ia64; then 6270 # AIX 5 now supports IA64 processor 6271 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6272 fi 6273 ;; 6274 6275 amigaos*) 6276 case $host_cpu in 6277 powerpc) 6278 # see comment about AmigaOS4 .so support 6279 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6280 ;; 6281 m68k) 6282 # FIXME: we need at least 68020 code to build shared libraries, but 6283 # adding the `-m68020' flag to GCC prevents building anything better, 6284 # like `-m68040'. 6285 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 6286 ;; 6287 esac 6288 ;; 6289 6290 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6291 # PIC is the default for these OSes. 6292 ;; 6293 6294 mingw* | cygwin* | pw32* | os2* | cegcc*) 6295 # This hack is so that the source file can tell whether it is being 6296 # built for inclusion in a dll (and should export symbols for example). 6297 # Although the cygwin gcc ignores -fPIC, still need this for old-style 6298 # (--disable-auto-import) libraries 6299 m4_if([$1], [GCJ], [], 6300 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 6301 ;; 6302 6303 darwin* | rhapsody*) 6304 # PIC is the default on this platform 6305 # Common symbols not allowed in MH_DYLIB files 6306 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 6307 ;; 6308 6309 haiku*) 6310 # PIC is the default for Haiku. 6311 # The "-static" flag exists, but is broken. 6312 _LT_TAGVAR(lt_prog_compiler_static, $1)= 6313 ;; 6314 6315 hpux*) 6316 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 6317 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 6318 # sets the default TLS model and affects inlining. 6319 case $host_cpu in 6320 hppa*64*) 6321 # +Z the default 6322 ;; 6323 *) 6324 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6325 ;; 6326 esac 6327 ;; 6328 6329 interix[[3-9]]*) 6330 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6331 # Instead, we relocate shared libraries at runtime. 6332 ;; 6333 6334 msdosdjgpp*) 6335 # Just because we use GCC doesn't mean we suddenly get shared libraries 6336 # on systems that don't support them. 6337 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6338 enable_shared=no 6339 ;; 6340 6341 *nto* | *qnx*) 6342 # QNX uses GNU C++, but need to define -shared option too, otherwise 6343 # it will coredump. 6344 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 6345 ;; 6346 6347 sysv4*MP*) 6348 if test -d /usr/nec; then 6349 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 6350 fi 6351 ;; 6352 6353 *) 6354 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6355 ;; 6356 esac 6357 6358 case $cc_basename in 6359 nvcc*) # Cuda Compiler Driver 2.2 6360 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' 6361 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC' 6362 ;; 6363 esac 6364 else 6365 # PORTME Check for flag to pass linker flags through the system compiler. 6366 case $host_os in 6367 aix*) 6368 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6369 if test "$host_cpu" = ia64; then 6370 # AIX 5 now supports IA64 processor 6371 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6372 else 6373 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 6374 fi 6375 ;; 6376 6377 mingw* | cygwin* | pw32* | os2* | cegcc*) 6378 # This hack is so that the source file can tell whether it is being 6379 # built for inclusion in a dll (and should export symbols for example). 6380 m4_if([$1], [GCJ], [], 6381 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 6382 ;; 6383 6384 hpux9* | hpux10* | hpux11*) 6385 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6386 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6387 # not for PA HP-UX. 6388 case $host_cpu in 6389 hppa*64*|ia64*) 6390 # +Z the default 6391 ;; 6392 *) 6393 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 6394 ;; 6395 esac 6396 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6397 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 6398 ;; 6399 6400 irix5* | irix6* | nonstopux*) 6401 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6402 # PIC (with -KPIC) is the default. 6403 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6404 ;; 6405 6406 linux* | k*bsd*-gnu | kopensolaris*-gnu) 6407 case $cc_basename in 6408 # old Intel for x86_64 which still supported -KPIC. 6409 ecc*) 6410 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6411 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6412 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6413 ;; 6414 # icc used to be incompatible with GCC. 6415 # ICC 10 doesn't accept -KPIC any more. 6416 icc* | ifort*) 6417 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6418 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6419 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6420 ;; 6421 # Lahey Fortran 8.1. 6422 lf95*) 6423 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6424 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' 6425 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 6426 ;; 6427 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 6428 # Portland Group compilers (*not* the Pentium gcc compiler, 6429 # which looks to be a dead project) 6430 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6431 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 6432 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6433 ;; 6434 ccc*) 6435 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6436 # All Alpha code is PIC. 6437 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6438 ;; 6439 xl* | bgxl* | bgf* | mpixl*) 6440 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 6441 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6442 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 6443 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 6444 ;; 6445 *) 6446 case `$CC -V 2>&1 | sed 5q` in 6447 *Sun\ F* | *Sun*Fortran*) 6448 # Sun Fortran 8.3 passes all unrecognized flags to the linker 6449 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6450 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6451 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' 6452 ;; 6453 *Sun\ C*) 6454 # Sun C 5.9 6455 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6456 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6457 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6458 ;; 6459 esac 6460 ;; 6461 esac 6462 ;; 6463 6464 newsos6) 6465 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6466 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6467 ;; 6468 6469 *nto* | *qnx*) 6470 # QNX uses GNU C++, but need to define -shared option too, otherwise 6471 # it will coredump. 6472 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 6473 ;; 6474 6475 osf3* | osf4* | osf5*) 6476 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6477 # All OSF/1 code is PIC. 6478 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6479 ;; 6480 6481 rdos*) 6482 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6483 ;; 6484 6485 solaris*) 6486 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6487 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6488 case $cc_basename in 6489 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 6490 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 6491 *) 6492 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 6493 esac 6494 ;; 6495 6496 sunos4*) 6497 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 6498 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 6499 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6500 ;; 6501 6502 sysv4 | sysv4.2uw2* | sysv4.3*) 6503 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6504 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6505 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6506 ;; 6507 6508 sysv4*MP*) 6509 if test -d /usr/nec ;then 6510 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 6511 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6512 fi 6513 ;; 6514 6515 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6516 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6517 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6518 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6519 ;; 6520 6521 unicos*) 6522 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6523 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6524 ;; 6525 6526 uts4*) 6527 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6528 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6529 ;; 6530 6531 *) 6532 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6533 ;; 6534 esac 6535 fi 6536]) 6537case $host_os in 6538 # For platforms which do not support PIC, -DPIC is meaningless: 6539 *djgpp*) 6540 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 6541 ;; 6542 *) 6543 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" 6544 ;; 6545esac 6546AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) 6547_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], 6548 [How to pass a linker flag through the compiler]) 6549 6550# 6551# Check to make sure the PIC flag actually works. 6552# 6553if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 6554 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], 6555 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], 6556 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], 6557 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in 6558 "" | " "*) ;; 6559 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; 6560 esac], 6561 [_LT_TAGVAR(lt_prog_compiler_pic, $1)= 6562 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 6563fi 6564_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], 6565 [Additional compiler flags for building library objects]) 6566 6567# 6568# Check to make sure the static flag actually works. 6569# 6570wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" 6571_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 6572 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), 6573 $lt_tmp_static_flag, 6574 [], 6575 [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) 6576_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], 6577 [Compiler flag to prevent dynamic linking]) 6578])# _LT_COMPILER_PIC 6579 6580 6581# _LT_LINKER_SHLIBS([TAGNAME]) 6582# ---------------------------- 6583# See if the linker supports building shared libraries. 6584m4_defun([_LT_LINKER_SHLIBS], 6585[AC_REQUIRE([LT_PATH_LD])dnl 6586AC_REQUIRE([LT_PATH_NM])dnl 6587m4_require([_LT_FILEUTILS_DEFAULTS])dnl 6588m4_require([_LT_DECL_EGREP])dnl 6589m4_require([_LT_DECL_SED])dnl 6590m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 6591m4_require([_LT_TAG_COMPILER])dnl 6592AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 6593m4_if([$1], [CXX], [ 6594 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6595 case $host_os in 6596 aix[[4-9]]*) 6597 # If we're using GNU nm, then we don't want the "-C" option. 6598 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6599 # Also, AIX nm treats weak defined symbols like other global defined 6600 # symbols, whereas GNU nm marks them as "W". 6601 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 6602 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 6603 else 6604 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 6605 fi 6606 ;; 6607 pw32*) 6608 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 6609 ;; 6610 cygwin* | mingw* | cegcc*) 6611 _LT_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' 6612 ;; 6613 *) 6614 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6615 ;; 6616 esac 6617 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 6618], [ 6619 runpath_var= 6620 _LT_TAGVAR(allow_undefined_flag, $1)= 6621 _LT_TAGVAR(always_export_symbols, $1)=no 6622 _LT_TAGVAR(archive_cmds, $1)= 6623 _LT_TAGVAR(archive_expsym_cmds, $1)= 6624 _LT_TAGVAR(compiler_needs_object, $1)=no 6625 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 6626 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 6627 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6628 _LT_TAGVAR(hardcode_automatic, $1)=no 6629 _LT_TAGVAR(hardcode_direct, $1)=no 6630 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 6631 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 6632 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 6633 _LT_TAGVAR(hardcode_libdir_separator, $1)= 6634 _LT_TAGVAR(hardcode_minus_L, $1)=no 6635 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 6636 _LT_TAGVAR(inherit_rpath, $1)=no 6637 _LT_TAGVAR(link_all_deplibs, $1)=unknown 6638 _LT_TAGVAR(module_cmds, $1)= 6639 _LT_TAGVAR(module_expsym_cmds, $1)= 6640 _LT_TAGVAR(old_archive_from_new_cmds, $1)= 6641 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= 6642 _LT_TAGVAR(thread_safe_flag_spec, $1)= 6643 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6644 # include_expsyms should be a list of space-separated symbols to be *always* 6645 # included in the symbol list 6646 _LT_TAGVAR(include_expsyms, $1)= 6647 # exclude_expsyms can be an extended regexp of symbols to exclude 6648 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6649 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6650 # as well as any symbol that contains `d'. 6651 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 6652 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6653 # platforms (ab)use it in PIC code, but their linkers get confused if 6654 # the symbol is explicitly referenced. Since portable code cannot 6655 # rely on this symbol name, it's probably fine to never include it in 6656 # preloaded symbol tables. 6657 # Exclude shared library initialization/finalization symbols. 6658dnl Note also adjust exclude_expsyms for C++ above. 6659 extract_expsyms_cmds= 6660 6661 case $host_os in 6662 cygwin* | mingw* | pw32* | cegcc*) 6663 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6664 # When not using gcc, we currently assume that we are using 6665 # Microsoft Visual C++. 6666 if test "$GCC" != yes; then 6667 with_gnu_ld=no 6668 fi 6669 ;; 6670 interix*) 6671 # we just hope/assume this is gcc and not c89 (= MSVC++) 6672 with_gnu_ld=yes 6673 ;; 6674 openbsd*) 6675 with_gnu_ld=no 6676 ;; 6677 esac 6678 6679 _LT_TAGVAR(ld_shlibs, $1)=yes 6680 6681 # On some targets, GNU ld is compatible enough with the native linker 6682 # that we're better off using the native interface for both. 6683 lt_use_gnu_ld_interface=no 6684 if test "$with_gnu_ld" = yes; then 6685 case $host_os in 6686 aix*) 6687 # The AIX port of GNU ld has always aspired to compatibility 6688 # with the native linker. However, as the warning in the GNU ld 6689 # block says, versions before 2.19.5* couldn't really create working 6690 # shared libraries, regardless of the interface used. 6691 case `$LD -v 2>&1` in 6692 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 6693 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; 6694 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; 6695 *) 6696 lt_use_gnu_ld_interface=yes 6697 ;; 6698 esac 6699 ;; 6700 *) 6701 lt_use_gnu_ld_interface=yes 6702 ;; 6703 esac 6704 fi 6705 6706 if test "$lt_use_gnu_ld_interface" = yes; then 6707 # If archive_cmds runs LD, not CC, wlarc should be empty 6708 wlarc='${wl}' 6709 6710 # Set some defaults for GNU ld with shared library support. These 6711 # are reset later if shared libraries are not supported. Putting them 6712 # here allows them to be overridden if necessary. 6713 runpath_var=LD_RUN_PATH 6714 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6715 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 6716 # ancient GNU ld didn't support --whole-archive et. al. 6717 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 6718 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6719 else 6720 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6721 fi 6722 supports_anon_versioning=no 6723 case `$LD -v 2>&1` in 6724 *GNU\ gold*) supports_anon_versioning=yes ;; 6725 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 6726 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6727 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6728 *\ 2.11.*) ;; # other 2.11 versions 6729 *) supports_anon_versioning=yes ;; 6730 esac 6731 6732 # See if GNU ld supports shared libraries. 6733 case $host_os in 6734 aix[[3-9]]*) 6735 # On AIX/PPC, the GNU linker is very broken 6736 if test "$host_cpu" != ia64; then 6737 _LT_TAGVAR(ld_shlibs, $1)=no 6738 cat <<_LT_EOF 1>&2 6739 6740*** Warning: the GNU linker, at least up to release 2.19, is reported 6741*** to be unable to reliably create shared libraries on AIX. 6742*** Therefore, libtool is disabling shared libraries support. If you 6743*** really care for shared libraries, you may want to install binutils 6744*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 6745*** You will then need to restart the configuration process. 6746 6747_LT_EOF 6748 fi 6749 ;; 6750 6751 amigaos*) 6752 case $host_cpu in 6753 powerpc) 6754 # see comment about AmigaOS4 .so support 6755 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6756 _LT_TAGVAR(archive_expsym_cmds, $1)='' 6757 ;; 6758 m68k) 6759 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 6760 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6761 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6762 ;; 6763 esac 6764 ;; 6765 6766 beos*) 6767 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6768 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6769 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6770 # support --undefined. This deserves some investigation. FIXME 6771 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6772 else 6773 _LT_TAGVAR(ld_shlibs, $1)=no 6774 fi 6775 ;; 6776 6777 cygwin* | mingw* | pw32* | cegcc*) 6778 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 6779 # as there is no search path for DLLs. 6780 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6781 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' 6782 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6783 _LT_TAGVAR(always_export_symbols, $1)=no 6784 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6785 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' 6786 6787 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 6788 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6789 # If the export-symbols file already is a .def file (1st line 6790 # is EXPORTS), use it as is; otherwise, prepend... 6791 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6792 cp $export_symbols $output_objdir/$soname.def; 6793 else 6794 echo EXPORTS > $output_objdir/$soname.def; 6795 cat $export_symbols >> $output_objdir/$soname.def; 6796 fi~ 6797 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6798 else 6799 _LT_TAGVAR(ld_shlibs, $1)=no 6800 fi 6801 ;; 6802 6803 haiku*) 6804 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6805 _LT_TAGVAR(link_all_deplibs, $1)=yes 6806 ;; 6807 6808 interix[[3-9]]*) 6809 _LT_TAGVAR(hardcode_direct, $1)=no 6810 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6811 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6812 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6813 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 6814 # Instead, shared libraries are loaded at an image base (0x10000000 by 6815 # default) and relocated if they conflict, which is a slow very memory 6816 # consuming and fragmenting process. To avoid this, we pick a random, 6817 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 6818 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 6819 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6820 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6821 ;; 6822 6823 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 6824 tmp_diet=no 6825 if test "$host_os" = linux-dietlibc; then 6826 case $cc_basename in 6827 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 6828 esac 6829 fi 6830 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 6831 && test "$tmp_diet" = no 6832 then 6833 tmp_addflag= 6834 tmp_sharedflag='-shared' 6835 case $cc_basename,$host_cpu in 6836 pgcc*) # Portland Group C compiler 6837 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 6838 tmp_addflag=' $pic_flag' 6839 ;; 6840 pgf77* | pgf90* | pgf95* | pgfortran*) 6841 # Portland Group f77 and f90 compilers 6842 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 6843 tmp_addflag=' $pic_flag -Mnomain' ;; 6844 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 6845 tmp_addflag=' -i_dynamic' ;; 6846 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 6847 tmp_addflag=' -i_dynamic -nofor_main' ;; 6848 ifc* | ifort*) # Intel Fortran compiler 6849 tmp_addflag=' -nofor_main' ;; 6850 lf95*) # Lahey Fortran 8.1 6851 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6852 tmp_sharedflag='--shared' ;; 6853 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 6854 tmp_sharedflag='-qmkshrobj' 6855 tmp_addflag= ;; 6856 nvcc*) # Cuda Compiler Driver 2.2 6857 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 6858 _LT_TAGVAR(compiler_needs_object, $1)=yes 6859 ;; 6860 esac 6861 case `$CC -V 2>&1 | sed 5q` in 6862 *Sun\ C*) # Sun C 5.9 6863 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 6864 _LT_TAGVAR(compiler_needs_object, $1)=yes 6865 tmp_sharedflag='-G' ;; 6866 *Sun\ F*) # Sun Fortran 8.3 6867 tmp_sharedflag='-G' ;; 6868 esac 6869 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6870 6871 if test "x$supports_anon_versioning" = xyes; then 6872 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 6873 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6874 echo "local: *; };" >> $output_objdir/$libname.ver~ 6875 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6876 fi 6877 6878 case $cc_basename in 6879 xlf* | bgf* | bgxlf* | mpixlf*) 6880 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 6881 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' 6882 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 6883 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' 6884 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 6885 if test "x$supports_anon_versioning" = xyes; then 6886 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 6887 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6888 echo "local: *; };" >> $output_objdir/$libname.ver~ 6889 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 6890 fi 6891 ;; 6892 esac 6893 else 6894 _LT_TAGVAR(ld_shlibs, $1)=no 6895 fi 6896 ;; 6897 6898 netbsd*) 6899 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 6900 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6901 wlarc= 6902 else 6903 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6904 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6905 fi 6906 ;; 6907 6908 solaris*) 6909 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 6910 _LT_TAGVAR(ld_shlibs, $1)=no 6911 cat <<_LT_EOF 1>&2 6912 6913*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6914*** create shared libraries on Solaris systems. Therefore, libtool 6915*** is disabling shared libraries support. We urge you to upgrade GNU 6916*** binutils to release 2.9.1 or newer. Another option is to modify 6917*** your PATH or compiler configuration so that the native linker is 6918*** used, and then restart. 6919 6920_LT_EOF 6921 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6922 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6923 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6924 else 6925 _LT_TAGVAR(ld_shlibs, $1)=no 6926 fi 6927 ;; 6928 6929 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 6930 case `$LD -v 2>&1` in 6931 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 6932 _LT_TAGVAR(ld_shlibs, $1)=no 6933 cat <<_LT_EOF 1>&2 6934 6935*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 6936*** reliably create shared libraries on SCO systems. Therefore, libtool 6937*** is disabling shared libraries support. We urge you to upgrade GNU 6938*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 6939*** your PATH or compiler configuration so that the native linker is 6940*** used, and then restart. 6941 6942_LT_EOF 6943 ;; 6944 *) 6945 # For security reasons, it is highly recommended that you always 6946 # use absolute paths for naming shared libraries, and exclude the 6947 # DT_RUNPATH tag from executables and libraries. But doing so 6948 # requires that you compile everything twice, which is a pain. 6949 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6950 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6951 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6952 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6953 else 6954 _LT_TAGVAR(ld_shlibs, $1)=no 6955 fi 6956 ;; 6957 esac 6958 ;; 6959 6960 sunos4*) 6961 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6962 wlarc= 6963 _LT_TAGVAR(hardcode_direct, $1)=yes 6964 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6965 ;; 6966 6967 *) 6968 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6969 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6970 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6971 else 6972 _LT_TAGVAR(ld_shlibs, $1)=no 6973 fi 6974 ;; 6975 esac 6976 6977 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then 6978 runpath_var= 6979 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 6980 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 6981 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6982 fi 6983 else 6984 # PORTME fill in a description of your system's linker (not GNU ld) 6985 case $host_os in 6986 aix3*) 6987 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6988 _LT_TAGVAR(always_export_symbols, $1)=yes 6989 _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 6990 # Note: this linker hardcodes the directories in LIBPATH if there 6991 # are no directories specified by -L. 6992 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6993 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 6994 # Neither direct hardcoding nor static linking is supported with a 6995 # broken collect2. 6996 _LT_TAGVAR(hardcode_direct, $1)=unsupported 6997 fi 6998 ;; 6999 7000 aix[[4-9]]*) 7001 if test "$host_cpu" = ia64; then 7002 # On IA64, the linker does run time linking by default, so we don't 7003 # have to do anything special. 7004 aix_use_runtimelinking=no 7005 exp_sym_flag='-Bexport' 7006 no_entry_flag="" 7007 else 7008 # If we're using GNU nm, then we don't want the "-C" option. 7009 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7010 # Also, AIX nm treats weak defined symbols like other global 7011 # defined symbols, whereas GNU nm marks them as "W". 7012 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 7013 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 7014 else 7015 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 7016 fi 7017 aix_use_runtimelinking=no 7018 7019 # Test if we are trying to use run time linking or normal 7020 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7021 # need to do runtime linking. 7022 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 7023 for ld_flag in $LDFLAGS; do 7024 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7025 aix_use_runtimelinking=yes 7026 break 7027 fi 7028 done 7029 ;; 7030 esac 7031 7032 exp_sym_flag='-bexport' 7033 no_entry_flag='-bnoentry' 7034 fi 7035 7036 # When large executables or shared objects are built, AIX ld can 7037 # have problems creating the table of contents. If linking a library 7038 # or program results in "error TOC overflow" add -mminimal-toc to 7039 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7040 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7041 7042 _LT_TAGVAR(archive_cmds, $1)='' 7043 _LT_TAGVAR(hardcode_direct, $1)=yes 7044 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7045 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 7046 _LT_TAGVAR(link_all_deplibs, $1)=yes 7047 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 7048 7049 if test "$GCC" = yes; then 7050 case $host_os in aix4.[[012]]|aix4.[[012]].*) 7051 # We only want to do this on AIX 4.2 and lower, the check 7052 # below for broken collect2 doesn't work under 4.3+ 7053 collect2name=`${CC} -print-prog-name=collect2` 7054 if test -f "$collect2name" && 7055 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 7056 then 7057 # We have reworked collect2 7058 : 7059 else 7060 # We have old collect2 7061 _LT_TAGVAR(hardcode_direct, $1)=unsupported 7062 # It fails to find uninstalled libraries when the uninstalled 7063 # path is not listed in the libpath. Setting hardcode_minus_L 7064 # to unsupported forces relinking 7065 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7066 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7067 _LT_TAGVAR(hardcode_libdir_separator, $1)= 7068 fi 7069 ;; 7070 esac 7071 shared_flag='-shared' 7072 if test "$aix_use_runtimelinking" = yes; then 7073 shared_flag="$shared_flag "'${wl}-G' 7074 fi 7075 else 7076 # not using gcc 7077 if test "$host_cpu" = ia64; then 7078 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7079 # chokes on -Wl,-G. The following line is correct: 7080 shared_flag='-G' 7081 else 7082 if test "$aix_use_runtimelinking" = yes; then 7083 shared_flag='${wl}-G' 7084 else 7085 shared_flag='${wl}-bM:SRE' 7086 fi 7087 fi 7088 fi 7089 7090 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 7091 # It seems that -bexpall does not export symbols beginning with 7092 # underscore (_), so it is better to generate a list of symbols to export. 7093 _LT_TAGVAR(always_export_symbols, $1)=yes 7094 if test "$aix_use_runtimelinking" = yes; then 7095 # Warning - without using the other runtime loading flags (-brtl), 7096 # -berok will link without error, but may produce a broken library. 7097 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 7098 # Determine the default libpath from the value encoded in an 7099 # empty executable. 7100 _LT_SYS_MODULE_PATH_AIX 7101 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 7102 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 7103 else 7104 if test "$host_cpu" = ia64; then 7105 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 7106 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 7107 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 7108 else 7109 # Determine the default libpath from the value encoded in an 7110 # empty executable. 7111 _LT_SYS_MODULE_PATH_AIX 7112 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 7113 # Warning - without using the other run time loading flags, 7114 # -berok will link without error, but may produce a broken library. 7115 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 7116 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 7117 if test "$with_gnu_ld" = yes; then 7118 # We only use this code for GNU lds that support --whole-archive. 7119 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 7120 else 7121 # Exported symbols can be pulled into shared objects from archives 7122 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 7123 fi 7124 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 7125 # This is similar to how AIX traditionally builds its shared libraries. 7126 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 7127 fi 7128 fi 7129 ;; 7130 7131 amigaos*) 7132 case $host_cpu in 7133 powerpc) 7134 # see comment about AmigaOS4 .so support 7135 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7136 _LT_TAGVAR(archive_expsym_cmds, $1)='' 7137 ;; 7138 m68k) 7139 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 7140 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7141 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7142 ;; 7143 esac 7144 ;; 7145 7146 bsdi[[45]]*) 7147 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 7148 ;; 7149 7150 cygwin* | mingw* | pw32* | cegcc*) 7151 # When not using gcc, we currently assume that we are using 7152 # Microsoft Visual C++. 7153 # hardcode_libdir_flag_spec is actually meaningless, as there is 7154 # no search path for DLLs. 7155 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 7156 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7157 # Tell ltmain to make .lib files, not .a files. 7158 libext=lib 7159 # Tell ltmain to make .dll files, not .so files. 7160 shrext_cmds=".dll" 7161 # FIXME: Setting linknames here is a bad hack. 7162 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 7163 # The linker will automatically build a .lib file if we build a DLL. 7164 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 7165 # FIXME: Should let the user specify the lib program. 7166 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 7167 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' 7168 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 7169 ;; 7170 7171 darwin* | rhapsody*) 7172 _LT_DARWIN_LINKER_FEATURES($1) 7173 ;; 7174 7175 dgux*) 7176 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7177 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7178 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7179 ;; 7180 7181 freebsd1*) 7182 _LT_TAGVAR(ld_shlibs, $1)=no 7183 ;; 7184 7185 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7186 # support. Future versions do this automatically, but an explicit c++rt0.o 7187 # does not break anything, and helps significantly (at the cost of a little 7188 # extra space). 7189 freebsd2.2*) 7190 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7191 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7192 _LT_TAGVAR(hardcode_direct, $1)=yes 7193 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7194 ;; 7195 7196 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7197 freebsd2*) 7198 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7199 _LT_TAGVAR(hardcode_direct, $1)=yes 7200 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7201 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7202 ;; 7203 7204 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7205 freebsd* | dragonfly*) 7206 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7207 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7208 _LT_TAGVAR(hardcode_direct, $1)=yes 7209 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7210 ;; 7211 7212 hpux9*) 7213 if test "$GCC" = yes; then 7214 _LT_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' 7215 else 7216 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 7217 fi 7218 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 7219 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7220 _LT_TAGVAR(hardcode_direct, $1)=yes 7221 7222 # hardcode_minus_L: Not really in the search PATH, 7223 # but as the default location of the library. 7224 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7225 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7226 ;; 7227 7228 hpux10*) 7229 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 7230 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7231 else 7232 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7233 fi 7234 if test "$with_gnu_ld" = no; then 7235 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 7236 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 7237 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7238 _LT_TAGVAR(hardcode_direct, $1)=yes 7239 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7240 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7241 # hardcode_minus_L: Not really in the search PATH, 7242 # but as the default location of the library. 7243 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7244 fi 7245 ;; 7246 7247 hpux11*) 7248 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 7249 case $host_cpu in 7250 hppa*64*) 7251 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7252 ;; 7253 ia64*) 7254 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7255 ;; 7256 *) 7257 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7258 ;; 7259 esac 7260 else 7261 case $host_cpu in 7262 hppa*64*) 7263 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7264 ;; 7265 ia64*) 7266 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7267 ;; 7268 *) 7269 m4_if($1, [], [ 7270 # Older versions of the 11.00 compiler do not understand -b yet 7271 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 7272 _LT_LINKER_OPTION([if $CC understands -b], 7273 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], 7274 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], 7275 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], 7276 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) 7277 ;; 7278 esac 7279 fi 7280 if test "$with_gnu_ld" = no; then 7281 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 7282 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7283 7284 case $host_cpu in 7285 hppa*64*|ia64*) 7286 _LT_TAGVAR(hardcode_direct, $1)=no 7287 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7288 ;; 7289 *) 7290 _LT_TAGVAR(hardcode_direct, $1)=yes 7291 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7292 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7293 7294 # hardcode_minus_L: Not really in the search PATH, 7295 # but as the default location of the library. 7296 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7297 ;; 7298 esac 7299 fi 7300 ;; 7301 7302 irix5* | irix6* | nonstopux*) 7303 if test "$GCC" = yes; then 7304 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7305 # Try to use the -exported_symbol ld option, if it does not 7306 # work, assume that -exports_file does not work either and 7307 # implicitly export all symbols. 7308 save_LDFLAGS="$LDFLAGS" 7309 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 7310 AC_LINK_IFELSE(int foo(void) {}, 7311 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 7312 ) 7313 LDFLAGS="$save_LDFLAGS" 7314 else 7315 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 7316 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 7317 fi 7318 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 7319 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7320 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7321 _LT_TAGVAR(inherit_rpath, $1)=yes 7322 _LT_TAGVAR(link_all_deplibs, $1)=yes 7323 ;; 7324 7325 netbsd*) 7326 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7327 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7328 else 7329 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7330 fi 7331 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7332 _LT_TAGVAR(hardcode_direct, $1)=yes 7333 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7334 ;; 7335 7336 newsos6) 7337 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7338 _LT_TAGVAR(hardcode_direct, $1)=yes 7339 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7340 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7341 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7342 ;; 7343 7344 *nto* | *qnx*) 7345 ;; 7346 7347 openbsd*) 7348 if test -f /usr/libexec/ld.so; then 7349 _LT_TAGVAR(hardcode_direct, $1)=yes 7350 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7351 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7352 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7353 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7354 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7355 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 7356 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7357 else 7358 case $host_os in 7359 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 7360 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7361 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7362 ;; 7363 *) 7364 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7365 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 7366 ;; 7367 esac 7368 fi 7369 else 7370 _LT_TAGVAR(ld_shlibs, $1)=no 7371 fi 7372 ;; 7373 7374 os2*) 7375 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7376 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7377 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7378 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 7379 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7380 ;; 7381 7382 osf3*) 7383 if test "$GCC" = yes; then 7384 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 7385 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7386 else 7387 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 7388 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 7389 fi 7390 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 7391 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7392 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7393 ;; 7394 7395 osf4* | osf5*) # as osf3* with the addition of -msym flag 7396 if test "$GCC" = yes; then 7397 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 7398 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7399 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7400 else 7401 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 7402 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 7403 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 7404 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 7405 7406 # Both c and cxx compiler support -rpath directly 7407 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 7408 fi 7409 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 7410 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7411 ;; 7412 7413 solaris*) 7414 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' 7415 if test "$GCC" = yes; then 7416 wlarc='${wl}' 7417 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7418 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7419 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 7420 else 7421 case `$CC -V 2>&1` in 7422 *"Compilers 5.0"*) 7423 wlarc='' 7424 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7425 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7426 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 7427 ;; 7428 *) 7429 wlarc='${wl}' 7430 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 7431 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7432 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 7433 ;; 7434 esac 7435 fi 7436 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7437 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7438 case $host_os in 7439 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 7440 *) 7441 # The compiler driver will combine and reorder linker options, 7442 # but understands `-z linker_flag'. GCC discards it without `$wl', 7443 # but is careful enough not to reorder. 7444 # Supported since Solaris 2.6 (maybe 2.5.1?) 7445 if test "$GCC" = yes; then 7446 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 7447 else 7448 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 7449 fi 7450 ;; 7451 esac 7452 _LT_TAGVAR(link_all_deplibs, $1)=yes 7453 ;; 7454 7455 sunos4*) 7456 if test "x$host_vendor" = xsequent; then 7457 # Use $CC to link under sequent, because it throws in some extra .o 7458 # files that make .init and .fini sections work. 7459 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7460 else 7461 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7462 fi 7463 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7464 _LT_TAGVAR(hardcode_direct, $1)=yes 7465 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7466 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7467 ;; 7468 7469 sysv4) 7470 case $host_vendor in 7471 sni) 7472 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7473 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 7474 ;; 7475 siemens) 7476 ## LD is ld it makes a PLAMLIB 7477 ## CC just makes a GrossModule. 7478 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7479 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 7480 _LT_TAGVAR(hardcode_direct, $1)=no 7481 ;; 7482 motorola) 7483 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7484 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 7485 ;; 7486 esac 7487 runpath_var='LD_RUN_PATH' 7488 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7489 ;; 7490 7491 sysv4.3*) 7492 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7493 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7494 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 7495 ;; 7496 7497 sysv4*MP*) 7498 if test -d /usr/nec; then 7499 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7500 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7501 runpath_var=LD_RUN_PATH 7502 hardcode_runpath_var=yes 7503 _LT_TAGVAR(ld_shlibs, $1)=yes 7504 fi 7505 ;; 7506 7507 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 7508 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 7509 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7510 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7511 runpath_var='LD_RUN_PATH' 7512 7513 if test "$GCC" = yes; then 7514 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7515 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7516 else 7517 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7518 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7519 fi 7520 ;; 7521 7522 sysv5* | sco3.2v5* | sco5v6*) 7523 # Note: We can NOT use -z defs as we might desire, because we do not 7524 # link with -lc, and that would cause any symbols used from libc to 7525 # always be unresolved, which means just about no library would 7526 # ever link correctly. If we're not using GNU ld we use -z text 7527 # though, which does catch some bad symbols but isn't as heavy-handed 7528 # as -z defs. 7529 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 7530 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 7531 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7532 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7533 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 7534 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 7535 _LT_TAGVAR(link_all_deplibs, $1)=yes 7536 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 7537 runpath_var='LD_RUN_PATH' 7538 7539 if test "$GCC" = yes; then 7540 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7541 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7542 else 7543 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7544 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7545 fi 7546 ;; 7547 7548 uts4*) 7549 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7550 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7551 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7552 ;; 7553 7554 *) 7555 _LT_TAGVAR(ld_shlibs, $1)=no 7556 ;; 7557 esac 7558 7559 if test x$host_vendor = xsni; then 7560 case $host in 7561 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 7562 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' 7563 ;; 7564 esac 7565 fi 7566 fi 7567]) 7568AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 7569test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 7570 7571_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld 7572 7573_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl 7574_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl 7575_LT_DECL([], [extract_expsyms_cmds], [2], 7576 [The commands to extract the exported symbol list from a shared archive]) 7577 7578# 7579# Do we need to explicitly link libc? 7580# 7581case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in 7582x|xyes) 7583 # Assume -lc should be added 7584 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 7585 7586 if test "$enable_shared" = yes && test "$GCC" = yes; then 7587 case $_LT_TAGVAR(archive_cmds, $1) in 7588 *'~'*) 7589 # FIXME: we may have to deal with multi-command sequences. 7590 ;; 7591 '$CC '*) 7592 # Test whether the compiler implicitly links with -lc since on some 7593 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7594 # to ld, don't add -lc before -lgcc. 7595 AC_CACHE_CHECK([whether -lc should be explicitly linked in], 7596 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), 7597 [$RM conftest* 7598 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7599 7600 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 7601 soname=conftest 7602 lib=conftest 7603 libobjs=conftest.$ac_objext 7604 deplibs= 7605 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) 7606 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) 7607 compiler_flags=-v 7608 linker_flags=-v 7609 verstring= 7610 output_objdir=. 7611 libname=conftest 7612 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) 7613 _LT_TAGVAR(allow_undefined_flag, $1)= 7614 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 7615 then 7616 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7617 else 7618 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes 7619 fi 7620 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 7621 else 7622 cat conftest.err 1>&5 7623 fi 7624 $RM conftest* 7625 ]) 7626 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) 7627 ;; 7628 esac 7629 fi 7630 ;; 7631esac 7632 7633_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], 7634 [Whether or not to add -lc for building shared libraries]) 7635_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], 7636 [enable_shared_with_static_runtimes], [0], 7637 [Whether or not to disallow shared libs when runtime libs are static]) 7638_LT_TAGDECL([], [export_dynamic_flag_spec], [1], 7639 [Compiler flag to allow reflexive dlopens]) 7640_LT_TAGDECL([], [whole_archive_flag_spec], [1], 7641 [Compiler flag to generate shared objects directly from archives]) 7642_LT_TAGDECL([], [compiler_needs_object], [1], 7643 [Whether the compiler copes with passing no objects directly]) 7644_LT_TAGDECL([], [old_archive_from_new_cmds], [2], 7645 [Create an old-style archive from a shared archive]) 7646_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], 7647 [Create a temporary old-style archive to link instead of a shared archive]) 7648_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) 7649_LT_TAGDECL([], [archive_expsym_cmds], [2]) 7650_LT_TAGDECL([], [module_cmds], [2], 7651 [Commands used to build a loadable module if different from building 7652 a shared archive.]) 7653_LT_TAGDECL([], [module_expsym_cmds], [2]) 7654_LT_TAGDECL([], [with_gnu_ld], [1], 7655 [Whether we are building with GNU ld or not]) 7656_LT_TAGDECL([], [allow_undefined_flag], [1], 7657 [Flag that allows shared libraries with undefined symbols to be built]) 7658_LT_TAGDECL([], [no_undefined_flag], [1], 7659 [Flag that enforces no undefined symbols]) 7660_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], 7661 [Flag to hardcode $libdir into a binary during linking. 7662 This must work even if $libdir does not exist]) 7663_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], 7664 [[If ld is used when linking, flag to hardcode $libdir into a binary 7665 during linking. This must work even if $libdir does not exist]]) 7666_LT_TAGDECL([], [hardcode_libdir_separator], [1], 7667 [Whether we need a single "-rpath" flag with a separated argument]) 7668_LT_TAGDECL([], [hardcode_direct], [0], 7669 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 7670 DIR into the resulting binary]) 7671_LT_TAGDECL([], [hardcode_direct_absolute], [0], 7672 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 7673 DIR into the resulting binary and the resulting library dependency is 7674 "absolute", i.e impossible to change by setting ${shlibpath_var} if the 7675 library is relocated]) 7676_LT_TAGDECL([], [hardcode_minus_L], [0], 7677 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR 7678 into the resulting binary]) 7679_LT_TAGDECL([], [hardcode_shlibpath_var], [0], 7680 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 7681 into the resulting binary]) 7682_LT_TAGDECL([], [hardcode_automatic], [0], 7683 [Set to "yes" if building a shared library automatically hardcodes DIR 7684 into the library and all subsequent libraries and executables linked 7685 against it]) 7686_LT_TAGDECL([], [inherit_rpath], [0], 7687 [Set to yes if linker adds runtime paths of dependent libraries 7688 to runtime path list]) 7689_LT_TAGDECL([], [link_all_deplibs], [0], 7690 [Whether libtool must link a program against all its dependency libraries]) 7691_LT_TAGDECL([], [fix_srcfile_path], [1], 7692 [Fix the shell variable $srcfile for the compiler]) 7693_LT_TAGDECL([], [always_export_symbols], [0], 7694 [Set to "yes" if exported symbols are required]) 7695_LT_TAGDECL([], [export_symbols_cmds], [2], 7696 [The commands to list exported symbols]) 7697_LT_TAGDECL([], [exclude_expsyms], [1], 7698 [Symbols that should not be listed in the preloaded symbols]) 7699_LT_TAGDECL([], [include_expsyms], [1], 7700 [Symbols that must always be exported]) 7701_LT_TAGDECL([], [prelink_cmds], [2], 7702 [Commands necessary for linking programs (against libraries) with templates]) 7703_LT_TAGDECL([], [file_list_spec], [1], 7704 [Specify filename containing input files]) 7705dnl FIXME: Not yet implemented 7706dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], 7707dnl [Compiler flag to generate thread safe objects]) 7708])# _LT_LINKER_SHLIBS 7709 7710 7711# _LT_LANG_C_CONFIG([TAG]) 7712# ------------------------ 7713# Ensure that the configuration variables for a C compiler are suitably 7714# defined. These variables are subsequently used by _LT_CONFIG to write 7715# the compiler configuration to `libtool'. 7716m4_defun([_LT_LANG_C_CONFIG], 7717[m4_require([_LT_DECL_EGREP])dnl 7718lt_save_CC="$CC" 7719AC_LANG_PUSH(C) 7720 7721# Source file extension for C test sources. 7722ac_ext=c 7723 7724# Object file extension for compiled C test sources. 7725objext=o 7726_LT_TAGVAR(objext, $1)=$objext 7727 7728# Code to be used in simple compile tests 7729lt_simple_compile_test_code="int some_variable = 0;" 7730 7731# Code to be used in simple link tests 7732lt_simple_link_test_code='int main(){return(0);}' 7733 7734_LT_TAG_COMPILER 7735# Save the default compiler, since it gets overwritten when the other 7736# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7737compiler_DEFAULT=$CC 7738 7739# save warnings/boilerplate of simple test code 7740_LT_COMPILER_BOILERPLATE 7741_LT_LINKER_BOILERPLATE 7742 7743if test -n "$compiler"; then 7744 _LT_COMPILER_NO_RTTI($1) 7745 _LT_COMPILER_PIC($1) 7746 _LT_COMPILER_C_O($1) 7747 _LT_COMPILER_FILE_LOCKS($1) 7748 _LT_LINKER_SHLIBS($1) 7749 _LT_SYS_DYNAMIC_LINKER($1) 7750 _LT_LINKER_HARDCODE_LIBPATH($1) 7751 LT_SYS_DLOPEN_SELF 7752 _LT_CMD_STRIPLIB 7753 7754 # Report which library types will actually be built 7755 AC_MSG_CHECKING([if libtool supports shared libraries]) 7756 AC_MSG_RESULT([$can_build_shared]) 7757 7758 AC_MSG_CHECKING([whether to build shared libraries]) 7759 test "$can_build_shared" = "no" && enable_shared=no 7760 7761 # On AIX, shared libraries and static libraries use the same namespace, and 7762 # are all built from PIC. 7763 case $host_os in 7764 aix3*) 7765 test "$enable_shared" = yes && enable_static=no 7766 if test -n "$RANLIB"; then 7767 archive_cmds="$archive_cmds~\$RANLIB \$lib" 7768 postinstall_cmds='$RANLIB $lib' 7769 fi 7770 ;; 7771 7772 aix[[4-9]]*) 7773 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 7774 test "$enable_shared" = yes && enable_static=no 7775 fi 7776 ;; 7777 esac 7778 AC_MSG_RESULT([$enable_shared]) 7779 7780 AC_MSG_CHECKING([whether to build static libraries]) 7781 # Make sure either enable_shared or enable_static is yes. 7782 test "$enable_shared" = yes || enable_static=yes 7783 AC_MSG_RESULT([$enable_static]) 7784 7785 _LT_CONFIG($1) 7786fi 7787AC_LANG_POP 7788CC="$lt_save_CC" 7789])# _LT_LANG_C_CONFIG 7790 7791 7792# _LT_LANG_CXX_CONFIG([TAG]) 7793# -------------------------- 7794# Ensure that the configuration variables for a C++ compiler are suitably 7795# defined. These variables are subsequently used by _LT_CONFIG to write 7796# the compiler configuration to `libtool'. 7797m4_defun([_LT_LANG_CXX_CONFIG], 7798[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 7799m4_require([_LT_DECL_EGREP])dnl 7800if test -n "$CXX" && ( test "X$CXX" != "Xno" && 7801 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 7802 (test "X$CXX" != "Xg++"))) ; then 7803 AC_PROG_CXXCPP 7804else 7805 _lt_caught_CXX_error=yes 7806fi 7807 7808AC_LANG_PUSH(C++) 7809_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7810_LT_TAGVAR(allow_undefined_flag, $1)= 7811_LT_TAGVAR(always_export_symbols, $1)=no 7812_LT_TAGVAR(archive_expsym_cmds, $1)= 7813_LT_TAGVAR(compiler_needs_object, $1)=no 7814_LT_TAGVAR(export_dynamic_flag_spec, $1)= 7815_LT_TAGVAR(hardcode_direct, $1)=no 7816_LT_TAGVAR(hardcode_direct_absolute, $1)=no 7817_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 7818_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 7819_LT_TAGVAR(hardcode_libdir_separator, $1)= 7820_LT_TAGVAR(hardcode_minus_L, $1)=no 7821_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 7822_LT_TAGVAR(hardcode_automatic, $1)=no 7823_LT_TAGVAR(inherit_rpath, $1)=no 7824_LT_TAGVAR(module_cmds, $1)= 7825_LT_TAGVAR(module_expsym_cmds, $1)= 7826_LT_TAGVAR(link_all_deplibs, $1)=unknown 7827_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7828_LT_TAGVAR(reload_flag, $1)=$reload_flag 7829_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 7830_LT_TAGVAR(no_undefined_flag, $1)= 7831_LT_TAGVAR(whole_archive_flag_spec, $1)= 7832_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 7833 7834# Source file extension for C++ test sources. 7835ac_ext=cpp 7836 7837# Object file extension for compiled C++ test sources. 7838objext=o 7839_LT_TAGVAR(objext, $1)=$objext 7840 7841# No sense in running all these tests if we already determined that 7842# the CXX compiler isn't working. Some variables (like enable_shared) 7843# are currently assumed to apply to all compilers on this platform, 7844# and will be corrupted by setting them based on a non-working compiler. 7845if test "$_lt_caught_CXX_error" != yes; then 7846 # Code to be used in simple compile tests 7847 lt_simple_compile_test_code="int some_variable = 0;" 7848 7849 # Code to be used in simple link tests 7850 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 7851 7852 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 7853 _LT_TAG_COMPILER 7854 7855 # save warnings/boilerplate of simple test code 7856 _LT_COMPILER_BOILERPLATE 7857 _LT_LINKER_BOILERPLATE 7858 7859 # Allow CC to be a program name with arguments. 7860 lt_save_CC=$CC 7861 lt_save_LD=$LD 7862 lt_save_GCC=$GCC 7863 GCC=$GXX 7864 lt_save_with_gnu_ld=$with_gnu_ld 7865 lt_save_path_LD=$lt_cv_path_LD 7866 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 7867 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 7868 else 7869 $as_unset lt_cv_prog_gnu_ld 7870 fi 7871 if test -n "${lt_cv_path_LDCXX+set}"; then 7872 lt_cv_path_LD=$lt_cv_path_LDCXX 7873 else 7874 $as_unset lt_cv_path_LD 7875 fi 7876 test -z "${LDCXX+set}" || LD=$LDCXX 7877 CC=${CXX-"c++"} 7878 compiler=$CC 7879 _LT_TAGVAR(compiler, $1)=$CC 7880 _LT_CC_BASENAME([$compiler]) 7881 7882 if test -n "$compiler"; then 7883 # We don't want -fno-exception when compiling C++ code, so set the 7884 # no_builtin_flag separately 7885 if test "$GXX" = yes; then 7886 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 7887 else 7888 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 7889 fi 7890 7891 if test "$GXX" = yes; then 7892 # Set up default GNU C++ configuration 7893 7894 LT_PATH_LD 7895 7896 # Check if GNU C++ uses GNU ld as the underlying linker, since the 7897 # archiving commands below assume that GNU ld is being used. 7898 if test "$with_gnu_ld" = yes; then 7899 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 7900 _LT_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' 7901 7902 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7903 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 7904 7905 # If archive_cmds runs LD, not CC, wlarc should be empty 7906 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 7907 # investigate it a little bit more. (MM) 7908 wlarc='${wl}' 7909 7910 # ancient GNU ld didn't support --whole-archive et. al. 7911 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 7912 $GREP 'no-whole-archive' > /dev/null; then 7913 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7914 else 7915 _LT_TAGVAR(whole_archive_flag_spec, $1)= 7916 fi 7917 else 7918 with_gnu_ld=no 7919 wlarc= 7920 7921 # A generic and very simple default shared library creation 7922 # command for GNU C++ for the case where it uses the native 7923 # linker, instead of GNU ld. If possible, this setting should 7924 # overridden to take advantage of the native linker features on 7925 # the platform it is being used on. 7926 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 7927 fi 7928 7929 # Commands to make compiler produce verbose output that lists 7930 # what "hidden" libraries, object files and flags are used when 7931 # linking a shared library. 7932 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 7933 7934 else 7935 GXX=no 7936 with_gnu_ld=no 7937 wlarc= 7938 fi 7939 7940 # PORTME: fill in a description of your system's C++ link characteristics 7941 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 7942 _LT_TAGVAR(ld_shlibs, $1)=yes 7943 case $host_os in 7944 aix3*) 7945 # FIXME: insert proper C++ library support 7946 _LT_TAGVAR(ld_shlibs, $1)=no 7947 ;; 7948 aix[[4-9]]*) 7949 if test "$host_cpu" = ia64; then 7950 # On IA64, the linker does run time linking by default, so we don't 7951 # have to do anything special. 7952 aix_use_runtimelinking=no 7953 exp_sym_flag='-Bexport' 7954 no_entry_flag="" 7955 else 7956 aix_use_runtimelinking=no 7957 7958 # Test if we are trying to use run time linking or normal 7959 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7960 # need to do runtime linking. 7961 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 7962 for ld_flag in $LDFLAGS; do 7963 case $ld_flag in 7964 *-brtl*) 7965 aix_use_runtimelinking=yes 7966 break 7967 ;; 7968 esac 7969 done 7970 ;; 7971 esac 7972 7973 exp_sym_flag='-bexport' 7974 no_entry_flag='-bnoentry' 7975 fi 7976 7977 # When large executables or shared objects are built, AIX ld can 7978 # have problems creating the table of contents. If linking a library 7979 # or program results in "error TOC overflow" add -mminimal-toc to 7980 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7981 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7982 7983 _LT_TAGVAR(archive_cmds, $1)='' 7984 _LT_TAGVAR(hardcode_direct, $1)=yes 7985 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7986 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 7987 _LT_TAGVAR(link_all_deplibs, $1)=yes 7988 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 7989 7990 if test "$GXX" = yes; then 7991 case $host_os in aix4.[[012]]|aix4.[[012]].*) 7992 # We only want to do this on AIX 4.2 and lower, the check 7993 # below for broken collect2 doesn't work under 4.3+ 7994 collect2name=`${CC} -print-prog-name=collect2` 7995 if test -f "$collect2name" && 7996 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 7997 then 7998 # We have reworked collect2 7999 : 8000 else 8001 # We have old collect2 8002 _LT_TAGVAR(hardcode_direct, $1)=unsupported 8003 # It fails to find uninstalled libraries when the uninstalled 8004 # path is not listed in the libpath. Setting hardcode_minus_L 8005 # to unsupported forces relinking 8006 _LT_TAGVAR(hardcode_minus_L, $1)=yes 8007 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 8008 _LT_TAGVAR(hardcode_libdir_separator, $1)= 8009 fi 8010 esac 8011 shared_flag='-shared' 8012 if test "$aix_use_runtimelinking" = yes; then 8013 shared_flag="$shared_flag "'${wl}-G' 8014 fi 8015 else 8016 # not using gcc 8017 if test "$host_cpu" = ia64; then 8018 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8019 # chokes on -Wl,-G. The following line is correct: 8020 shared_flag='-G' 8021 else 8022 if test "$aix_use_runtimelinking" = yes; then 8023 shared_flag='${wl}-G' 8024 else 8025 shared_flag='${wl}-bM:SRE' 8026 fi 8027 fi 8028 fi 8029 8030 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 8031 # It seems that -bexpall does not export symbols beginning with 8032 # underscore (_), so it is better to generate a list of symbols to 8033 # export. 8034 _LT_TAGVAR(always_export_symbols, $1)=yes 8035 if test "$aix_use_runtimelinking" = yes; then 8036 # Warning - without using the other runtime loading flags (-brtl), 8037 # -berok will link without error, but may produce a broken library. 8038 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 8039 # Determine the default libpath from the value encoded in an empty 8040 # executable. 8041 _LT_SYS_MODULE_PATH_AIX 8042 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 8043 8044 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8045 else 8046 if test "$host_cpu" = ia64; then 8047 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 8048 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 8049 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 8050 else 8051 # Determine the default libpath from the value encoded in an 8052 # empty executable. 8053 _LT_SYS_MODULE_PATH_AIX 8054 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 8055 # Warning - without using the other run time loading flags, 8056 # -berok will link without error, but may produce a broken library. 8057 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 8058 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 8059 if test "$with_gnu_ld" = yes; then 8060 # We only use this code for GNU lds that support --whole-archive. 8061 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 8062 else 8063 # Exported symbols can be pulled into shared objects from archives 8064 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 8065 fi 8066 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 8067 # This is similar to how AIX traditionally builds its shared 8068 # libraries. 8069 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 8070 fi 8071 fi 8072 ;; 8073 8074 beos*) 8075 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8076 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 8077 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8078 # support --undefined. This deserves some investigation. FIXME 8079 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8080 else 8081 _LT_TAGVAR(ld_shlibs, $1)=no 8082 fi 8083 ;; 8084 8085 chorus*) 8086 case $cc_basename in 8087 *) 8088 # FIXME: insert proper C++ library support 8089 _LT_TAGVAR(ld_shlibs, $1)=no 8090 ;; 8091 esac 8092 ;; 8093 8094 cygwin* | mingw* | pw32* | cegcc*) 8095 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 8096 # as there is no search path for DLLs. 8097 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 8098 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' 8099 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 8100 _LT_TAGVAR(always_export_symbols, $1)=no 8101 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 8102 8103 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8104 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8105 # If the export-symbols file already is a .def file (1st line 8106 # is EXPORTS), use it as is; otherwise, prepend... 8107 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8108 cp $export_symbols $output_objdir/$soname.def; 8109 else 8110 echo EXPORTS > $output_objdir/$soname.def; 8111 cat $export_symbols >> $output_objdir/$soname.def; 8112 fi~ 8113 $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' 8114 else 8115 _LT_TAGVAR(ld_shlibs, $1)=no 8116 fi 8117 ;; 8118 darwin* | rhapsody*) 8119 _LT_DARWIN_LINKER_FEATURES($1) 8120 ;; 8121 8122 dgux*) 8123 case $cc_basename in 8124 ec++*) 8125 # FIXME: insert proper C++ library support 8126 _LT_TAGVAR(ld_shlibs, $1)=no 8127 ;; 8128 ghcx*) 8129 # Green Hills C++ Compiler 8130 # FIXME: insert proper C++ library support 8131 _LT_TAGVAR(ld_shlibs, $1)=no 8132 ;; 8133 *) 8134 # FIXME: insert proper C++ library support 8135 _LT_TAGVAR(ld_shlibs, $1)=no 8136 ;; 8137 esac 8138 ;; 8139 8140 freebsd[[12]]*) 8141 # C++ shared libraries reported to be fairly broken before 8142 # switch to ELF 8143 _LT_TAGVAR(ld_shlibs, $1)=no 8144 ;; 8145 8146 freebsd-elf*) 8147 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 8148 ;; 8149 8150 freebsd* | dragonfly*) 8151 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 8152 # conventions 8153 _LT_TAGVAR(ld_shlibs, $1)=yes 8154 ;; 8155 8156 gnu*) 8157 ;; 8158 8159 haiku*) 8160 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8161 _LT_TAGVAR(link_all_deplibs, $1)=yes 8162 ;; 8163 8164 hpux9*) 8165 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 8166 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8167 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 8168 _LT_TAGVAR(hardcode_direct, $1)=yes 8169 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 8170 # but as the default 8171 # location of the library. 8172 8173 case $cc_basename in 8174 CC*) 8175 # FIXME: insert proper C++ library support 8176 _LT_TAGVAR(ld_shlibs, $1)=no 8177 ;; 8178 aCC*) 8179 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 8180 # Commands to make compiler produce verbose output that lists 8181 # what "hidden" libraries, object files and flags are used when 8182 # linking a shared library. 8183 # 8184 # There doesn't appear to be a way to prevent this compiler from 8185 # explicitly linking system object files so we need to strip them 8186 # from the output so that they don't get included in the library 8187 # dependencies. 8188 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 8189 ;; 8190 *) 8191 if test "$GXX" = yes; then 8192 _LT_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' 8193 else 8194 # FIXME: insert proper C++ library support 8195 _LT_TAGVAR(ld_shlibs, $1)=no 8196 fi 8197 ;; 8198 esac 8199 ;; 8200 8201 hpux10*|hpux11*) 8202 if test $with_gnu_ld = no; then 8203 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 8204 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8205 8206 case $host_cpu in 8207 hppa*64*|ia64*) 8208 ;; 8209 *) 8210 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 8211 ;; 8212 esac 8213 fi 8214 case $host_cpu in 8215 hppa*64*|ia64*) 8216 _LT_TAGVAR(hardcode_direct, $1)=no 8217 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8218 ;; 8219 *) 8220 _LT_TAGVAR(hardcode_direct, $1)=yes 8221 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 8222 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 8223 # but as the default 8224 # location of the library. 8225 ;; 8226 esac 8227 8228 case $cc_basename in 8229 CC*) 8230 # FIXME: insert proper C++ library support 8231 _LT_TAGVAR(ld_shlibs, $1)=no 8232 ;; 8233 aCC*) 8234 case $host_cpu in 8235 hppa*64*) 8236 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8237 ;; 8238 ia64*) 8239 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8240 ;; 8241 *) 8242 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8243 ;; 8244 esac 8245 # Commands to make compiler produce verbose output that lists 8246 # what "hidden" libraries, object files and flags are used when 8247 # linking a shared library. 8248 # 8249 # There doesn't appear to be a way to prevent this compiler from 8250 # explicitly linking system object files so we need to strip them 8251 # from the output so that they don't get included in the library 8252 # dependencies. 8253 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 8254 ;; 8255 *) 8256 if test "$GXX" = yes; then 8257 if test $with_gnu_ld = no; then 8258 case $host_cpu in 8259 hppa*64*) 8260 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8261 ;; 8262 ia64*) 8263 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8264 ;; 8265 *) 8266 _LT_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' 8267 ;; 8268 esac 8269 fi 8270 else 8271 # FIXME: insert proper C++ library support 8272 _LT_TAGVAR(ld_shlibs, $1)=no 8273 fi 8274 ;; 8275 esac 8276 ;; 8277 8278 interix[[3-9]]*) 8279 _LT_TAGVAR(hardcode_direct, $1)=no 8280 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8281 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 8282 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 8283 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8284 # Instead, shared libraries are loaded at an image base (0x10000000 by 8285 # default) and relocated if they conflict, which is a slow very memory 8286 # consuming and fragmenting process. To avoid this, we pick a random, 8287 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8288 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8289 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8290 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8291 ;; 8292 irix5* | irix6*) 8293 case $cc_basename in 8294 CC*) 8295 # SGI C++ 8296 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 8297 8298 # Archives containing C++ object files must be created using 8299 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 8300 # necessary to make sure instantiated templates are included 8301 # in the archive. 8302 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 8303 ;; 8304 *) 8305 if test "$GXX" = yes; then 8306 if test "$with_gnu_ld" = no; then 8307 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8308 else 8309 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 8310 fi 8311 fi 8312 _LT_TAGVAR(link_all_deplibs, $1)=yes 8313 ;; 8314 esac 8315 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 8316 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8317 _LT_TAGVAR(inherit_rpath, $1)=yes 8318 ;; 8319 8320 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8321 case $cc_basename in 8322 KCC*) 8323 # Kuck and Associates, Inc. (KAI) C++ Compiler 8324 8325 # KCC will only create a shared library if the output file 8326 # ends with ".so" (or ".sl" for HP-UX), so rename the library 8327 # to its proper name (with version) after linking. 8328 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 8329 _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 8330 # Commands to make compiler produce verbose output that lists 8331 # what "hidden" libraries, object files and flags are used when 8332 # linking a shared library. 8333 # 8334 # There doesn't appear to be a way to prevent this compiler from 8335 # explicitly linking system object files so we need to strip them 8336 # from the output so that they don't get included in the library 8337 # dependencies. 8338 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 8339 8340 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 8341 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 8342 8343 # Archives containing C++ object files must be created using 8344 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 8345 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 8346 ;; 8347 icpc* | ecpc* ) 8348 # Intel C++ 8349 with_gnu_ld=yes 8350 # version 8.0 and above of icpc choke on multiply defined symbols 8351 # if we add $predep_objects and $postdep_objects, however 7.1 and 8352 # earlier do not add the objects themselves. 8353 case `$CC -V 2>&1` in 8354 *"Version 7."*) 8355 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 8356 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8357 ;; 8358 *) # Version 8.0 or newer 8359 tmp_idyn= 8360 case $host_cpu in 8361 ia64*) tmp_idyn=' -i_dynamic';; 8362 esac 8363 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8364 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8365 ;; 8366 esac 8367 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 8368 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 8369 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 8370 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 8371 ;; 8372 pgCC* | pgcpp*) 8373 # Portland Group C++ compiler 8374 case `$CC -V` in 8375 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) 8376 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 8377 rm -rf $tpldir~ 8378 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 8379 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 8380 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 8381 rm -rf $tpldir~ 8382 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 8383 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 8384 $RANLIB $oldlib' 8385 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 8386 rm -rf $tpldir~ 8387 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 8388 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 8389 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 8390 rm -rf $tpldir~ 8391 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 8392 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 8393 ;; 8394 *) # Version 6 and above use weak symbols 8395 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 8396 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 8397 ;; 8398 esac 8399 8400 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 8401 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 8402 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8403 ;; 8404 cxx*) 8405 # Compaq C++ 8406 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 8407 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 8408 8409 runpath_var=LD_RUN_PATH 8410 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 8411 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8412 8413 # Commands to make compiler produce verbose output that lists 8414 # what "hidden" libraries, object files and flags are used when 8415 # linking a shared library. 8416 # 8417 # There doesn't appear to be a way to prevent this compiler from 8418 # explicitly linking system object files so we need to strip them 8419 # from the output so that they don't get included in the library 8420 # dependencies. 8421 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 8422 ;; 8423 xl* | mpixl* | bgxl*) 8424 # IBM XL 8.0 on PPC, with GNU ld 8425 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 8426 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 8427 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8428 if test "x$supports_anon_versioning" = xyes; then 8429 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 8430 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8431 echo "local: *; };" >> $output_objdir/$libname.ver~ 8432 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8433 fi 8434 ;; 8435 *) 8436 case `$CC -V 2>&1 | sed 5q` in 8437 *Sun\ C*) 8438 # Sun C++ 5.9 8439 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 8440 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8441 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 8442 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 8443 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8444 _LT_TAGVAR(compiler_needs_object, $1)=yes 8445 8446 # Not sure whether something based on 8447 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 8448 # would be better. 8449 output_verbose_link_cmd='func_echo_all' 8450 8451 # Archives containing C++ object files must be created using 8452 # "CC -xar", where "CC" is the Sun C++ compiler. This is 8453 # necessary to make sure instantiated templates are included 8454 # in the archive. 8455 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 8456 ;; 8457 esac 8458 ;; 8459 esac 8460 ;; 8461 8462 lynxos*) 8463 # FIXME: insert proper C++ library support 8464 _LT_TAGVAR(ld_shlibs, $1)=no 8465 ;; 8466 8467 m88k*) 8468 # FIXME: insert proper C++ library support 8469 _LT_TAGVAR(ld_shlibs, $1)=no 8470 ;; 8471 8472 mvs*) 8473 case $cc_basename in 8474 cxx*) 8475 # FIXME: insert proper C++ library support 8476 _LT_TAGVAR(ld_shlibs, $1)=no 8477 ;; 8478 *) 8479 # FIXME: insert proper C++ library support 8480 _LT_TAGVAR(ld_shlibs, $1)=no 8481 ;; 8482 esac 8483 ;; 8484 8485 netbsd*) 8486 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8487 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 8488 wlarc= 8489 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 8490 _LT_TAGVAR(hardcode_direct, $1)=yes 8491 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8492 fi 8493 # Workaround some broken pre-1.5 toolchains 8494 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 8495 ;; 8496 8497 *nto* | *qnx*) 8498 _LT_TAGVAR(ld_shlibs, $1)=yes 8499 ;; 8500 8501 openbsd2*) 8502 # C++ shared libraries are fairly broken 8503 _LT_TAGVAR(ld_shlibs, $1)=no 8504 ;; 8505 8506 openbsd*) 8507 if test -f /usr/libexec/ld.so; then 8508 _LT_TAGVAR(hardcode_direct, $1)=yes 8509 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8510 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 8511 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 8512 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 8513 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8514 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 8515 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 8516 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8517 fi 8518 output_verbose_link_cmd=func_echo_all 8519 else 8520 _LT_TAGVAR(ld_shlibs, $1)=no 8521 fi 8522 ;; 8523 8524 osf3* | osf4* | osf5*) 8525 case $cc_basename in 8526 KCC*) 8527 # Kuck and Associates, Inc. (KAI) C++ Compiler 8528 8529 # KCC will only create a shared library if the output file 8530 # ends with ".so" (or ".sl" for HP-UX), so rename the library 8531 # to its proper name (with version) after linking. 8532 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 8533 8534 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 8535 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8536 8537 # Archives containing C++ object files must be created using 8538 # the KAI C++ compiler. 8539 case $host in 8540 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; 8541 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; 8542 esac 8543 ;; 8544 RCC*) 8545 # Rational C++ 2.4.1 8546 # FIXME: insert proper C++ library support 8547 _LT_TAGVAR(ld_shlibs, $1)=no 8548 ;; 8549 cxx*) 8550 case $host in 8551 osf3*) 8552 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 8553 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 8554 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 8555 ;; 8556 *) 8557 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 8558 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 8559 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 8560 echo "-hidden">> $lib.exp~ 8561 $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~ 8562 $RM $lib.exp' 8563 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 8564 ;; 8565 esac 8566 8567 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8568 8569 # Commands to make compiler produce verbose output that lists 8570 # what "hidden" libraries, object files and flags are used when 8571 # linking a shared library. 8572 # 8573 # There doesn't appear to be a way to prevent this compiler from 8574 # explicitly linking system object files so we need to strip them 8575 # from the output so that they don't get included in the library 8576 # dependencies. 8577 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 8578 ;; 8579 *) 8580 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 8581 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 8582 case $host in 8583 osf3*) 8584 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8585 ;; 8586 *) 8587 _LT_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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8588 ;; 8589 esac 8590 8591 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 8592 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8593 8594 # Commands to make compiler produce verbose output that lists 8595 # what "hidden" libraries, object files and flags are used when 8596 # linking a shared library. 8597 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 8598 8599 else 8600 # FIXME: insert proper C++ library support 8601 _LT_TAGVAR(ld_shlibs, $1)=no 8602 fi 8603 ;; 8604 esac 8605 ;; 8606 8607 psos*) 8608 # FIXME: insert proper C++ library support 8609 _LT_TAGVAR(ld_shlibs, $1)=no 8610 ;; 8611 8612 sunos4*) 8613 case $cc_basename in 8614 CC*) 8615 # Sun C++ 4.x 8616 # FIXME: insert proper C++ library support 8617 _LT_TAGVAR(ld_shlibs, $1)=no 8618 ;; 8619 lcc*) 8620 # Lucid 8621 # FIXME: insert proper C++ library support 8622 _LT_TAGVAR(ld_shlibs, $1)=no 8623 ;; 8624 *) 8625 # FIXME: insert proper C++ library support 8626 _LT_TAGVAR(ld_shlibs, $1)=no 8627 ;; 8628 esac 8629 ;; 8630 8631 solaris*) 8632 case $cc_basename in 8633 CC* | sunCC*) 8634 # Sun C++ 4.2, 5.x and Centerline C++ 8635 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 8636 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 8637 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8638 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8639 $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' 8640 8641 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 8642 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8643 case $host_os in 8644 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 8645 *) 8646 # The compiler driver will combine and reorder linker options, 8647 # but understands `-z linker_flag'. 8648 # Supported since Solaris 2.6 (maybe 2.5.1?) 8649 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 8650 ;; 8651 esac 8652 _LT_TAGVAR(link_all_deplibs, $1)=yes 8653 8654 output_verbose_link_cmd='func_echo_all' 8655 8656 # Archives containing C++ object files must be created using 8657 # "CC -xar", where "CC" is the Sun C++ compiler. This is 8658 # necessary to make sure instantiated templates are included 8659 # in the archive. 8660 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 8661 ;; 8662 gcx*) 8663 # Green Hills C++ Compiler 8664 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 8665 8666 # The C++ compiler must be used to create the archive. 8667 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 8668 ;; 8669 *) 8670 # GNU C++ compiler with Solaris linker 8671 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 8672 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 8673 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 8674 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 8675 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8676 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 8677 8678 # Commands to make compiler produce verbose output that lists 8679 # what "hidden" libraries, object files and flags are used when 8680 # linking a shared library. 8681 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 8682 else 8683 # g++ 2.7 appears to require `-G' NOT `-shared' on this 8684 # platform. 8685 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 8686 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8687 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 8688 8689 # Commands to make compiler produce verbose output that lists 8690 # what "hidden" libraries, object files and flags are used when 8691 # linking a shared library. 8692 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 8693 fi 8694 8695 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 8696 case $host_os in 8697 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 8698 *) 8699 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8700 ;; 8701 esac 8702 fi 8703 ;; 8704 esac 8705 ;; 8706 8707 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 8708 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 8709 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 8710 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8711 runpath_var='LD_RUN_PATH' 8712 8713 case $cc_basename in 8714 CC*) 8715 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8716 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8717 ;; 8718 *) 8719 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8720 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8721 ;; 8722 esac 8723 ;; 8724 8725 sysv5* | sco3.2v5* | sco5v6*) 8726 # Note: We can NOT use -z defs as we might desire, because we do not 8727 # link with -lc, and that would cause any symbols used from libc to 8728 # always be unresolved, which means just about no library would 8729 # ever link correctly. If we're not using GNU ld we use -z text 8730 # though, which does catch some bad symbols but isn't as heavy-handed 8731 # as -z defs. 8732 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 8733 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 8734 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 8735 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8736 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 8737 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 8738 _LT_TAGVAR(link_all_deplibs, $1)=yes 8739 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 8740 runpath_var='LD_RUN_PATH' 8741 8742 case $cc_basename in 8743 CC*) 8744 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8745 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8746 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ 8747 '"$_LT_TAGVAR(old_archive_cmds, $1)" 8748 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ 8749 '"$_LT_TAGVAR(reload_cmds, $1)" 8750 ;; 8751 *) 8752 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8753 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8754 ;; 8755 esac 8756 ;; 8757 8758 tandem*) 8759 case $cc_basename in 8760 NCC*) 8761 # NonStop-UX NCC 3.20 8762 # FIXME: insert proper C++ library support 8763 _LT_TAGVAR(ld_shlibs, $1)=no 8764 ;; 8765 *) 8766 # FIXME: insert proper C++ library support 8767 _LT_TAGVAR(ld_shlibs, $1)=no 8768 ;; 8769 esac 8770 ;; 8771 8772 vxworks*) 8773 # FIXME: insert proper C++ library support 8774 _LT_TAGVAR(ld_shlibs, $1)=no 8775 ;; 8776 8777 *) 8778 # FIXME: insert proper C++ library support 8779 _LT_TAGVAR(ld_shlibs, $1)=no 8780 ;; 8781 esac 8782 8783 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 8784 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 8785 8786 _LT_TAGVAR(GCC, $1)="$GXX" 8787 _LT_TAGVAR(LD, $1)="$LD" 8788 8789 ## CAVEAT EMPTOR: 8790 ## There is no encapsulation within the following macros, do not change 8791 ## the running order or otherwise move them around unless you know exactly 8792 ## what you are doing... 8793 _LT_SYS_HIDDEN_LIBDEPS($1) 8794 _LT_COMPILER_PIC($1) 8795 _LT_COMPILER_C_O($1) 8796 _LT_COMPILER_FILE_LOCKS($1) 8797 _LT_LINKER_SHLIBS($1) 8798 _LT_SYS_DYNAMIC_LINKER($1) 8799 _LT_LINKER_HARDCODE_LIBPATH($1) 8800 8801 _LT_CONFIG($1) 8802 fi # test -n "$compiler" 8803 8804 CC=$lt_save_CC 8805 LDCXX=$LD 8806 LD=$lt_save_LD 8807 GCC=$lt_save_GCC 8808 with_gnu_ld=$lt_save_with_gnu_ld 8809 lt_cv_path_LDCXX=$lt_cv_path_LD 8810 lt_cv_path_LD=$lt_save_path_LD 8811 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 8812 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 8813fi # test "$_lt_caught_CXX_error" != yes 8814 8815AC_LANG_POP 8816])# _LT_LANG_CXX_CONFIG 8817 8818 8819# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 8820# --------------------------------- 8821# Figure out "hidden" library dependencies from verbose 8822# compiler output when linking a shared library. 8823# Parse the compiler output and extract the necessary 8824# objects, libraries and library flags. 8825m4_defun([_LT_SYS_HIDDEN_LIBDEPS], 8826[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 8827# Dependencies to place before and after the object being linked: 8828_LT_TAGVAR(predep_objects, $1)= 8829_LT_TAGVAR(postdep_objects, $1)= 8830_LT_TAGVAR(predeps, $1)= 8831_LT_TAGVAR(postdeps, $1)= 8832_LT_TAGVAR(compiler_lib_search_path, $1)= 8833 8834dnl we can't use the lt_simple_compile_test_code here, 8835dnl because it contains code intended for an executable, 8836dnl not a library. It's possible we should let each 8837dnl tag define a new lt_????_link_test_code variable, 8838dnl but it's only used here... 8839m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF 8840int a; 8841void foo (void) { a = 0; } 8842_LT_EOF 8843], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF 8844class Foo 8845{ 8846public: 8847 Foo (void) { a = 0; } 8848private: 8849 int a; 8850}; 8851_LT_EOF 8852], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF 8853 subroutine foo 8854 implicit none 8855 integer*4 a 8856 a=0 8857 return 8858 end 8859_LT_EOF 8860], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF 8861 subroutine foo 8862 implicit none 8863 integer a 8864 a=0 8865 return 8866 end 8867_LT_EOF 8868], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF 8869public class foo { 8870 private int a; 8871 public void bar (void) { 8872 a = 0; 8873 } 8874}; 8875_LT_EOF 8876]) 8877dnl Parse the compiler output and extract the necessary 8878dnl objects, libraries and library flags. 8879if AC_TRY_EVAL(ac_compile); then 8880 # Parse the compiler output and extract the necessary 8881 # objects, libraries and library flags. 8882 8883 # Sentinel used to keep track of whether or not we are before 8884 # the conftest object file. 8885 pre_test_object_deps_done=no 8886 8887 for p in `eval "$output_verbose_link_cmd"`; do 8888 case $p in 8889 8890 -L* | -R* | -l*) 8891 # Some compilers place space between "-{L,R}" and the path. 8892 # Remove the space. 8893 if test $p = "-L" || 8894 test $p = "-R"; then 8895 prev=$p 8896 continue 8897 else 8898 prev= 8899 fi 8900 8901 if test "$pre_test_object_deps_done" = no; then 8902 case $p in 8903 -L* | -R*) 8904 # Internal compiler library paths should come after those 8905 # provided the user. The postdeps already come after the 8906 # user supplied libs so there is no need to process them. 8907 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then 8908 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" 8909 else 8910 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" 8911 fi 8912 ;; 8913 # The "-l" case would never come before the object being 8914 # linked, so don't bother handling this case. 8915 esac 8916 else 8917 if test -z "$_LT_TAGVAR(postdeps, $1)"; then 8918 _LT_TAGVAR(postdeps, $1)="${prev}${p}" 8919 else 8920 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" 8921 fi 8922 fi 8923 ;; 8924 8925 *.$objext) 8926 # This assumes that the test object file only shows up 8927 # once in the compiler output. 8928 if test "$p" = "conftest.$objext"; then 8929 pre_test_object_deps_done=yes 8930 continue 8931 fi 8932 8933 if test "$pre_test_object_deps_done" = no; then 8934 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then 8935 _LT_TAGVAR(predep_objects, $1)="$p" 8936 else 8937 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" 8938 fi 8939 else 8940 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then 8941 _LT_TAGVAR(postdep_objects, $1)="$p" 8942 else 8943 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" 8944 fi 8945 fi 8946 ;; 8947 8948 *) ;; # Ignore the rest. 8949 8950 esac 8951 done 8952 8953 # Clean up. 8954 rm -f a.out a.exe 8955else 8956 echo "libtool.m4: error: problem compiling $1 test program" 8957fi 8958 8959$RM -f confest.$objext 8960 8961# PORTME: override above test on systems where it is broken 8962m4_if([$1], [CXX], 8963[case $host_os in 8964interix[[3-9]]*) 8965 # Interix 3.5 installs completely hosed .la files for C++, so rather than 8966 # hack all around it, let's just trust "g++" to DTRT. 8967 _LT_TAGVAR(predep_objects,$1)= 8968 _LT_TAGVAR(postdep_objects,$1)= 8969 _LT_TAGVAR(postdeps,$1)= 8970 ;; 8971 8972linux*) 8973 case `$CC -V 2>&1 | sed 5q` in 8974 *Sun\ C*) 8975 # Sun C++ 5.9 8976 8977 # The more standards-conforming stlport4 library is 8978 # incompatible with the Cstd library. Avoid specifying 8979 # it if it's in CXXFLAGS. Ignore libCrun as 8980 # -library=stlport4 depends on it. 8981 case " $CXX $CXXFLAGS " in 8982 *" -library=stlport4 "*) 8983 solaris_use_stlport4=yes 8984 ;; 8985 esac 8986 8987 if test "$solaris_use_stlport4" != yes; then 8988 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 8989 fi 8990 ;; 8991 esac 8992 ;; 8993 8994solaris*) 8995 case $cc_basename in 8996 CC* | sunCC*) 8997 # The more standards-conforming stlport4 library is 8998 # incompatible with the Cstd library. Avoid specifying 8999 # it if it's in CXXFLAGS. Ignore libCrun as 9000 # -library=stlport4 depends on it. 9001 case " $CXX $CXXFLAGS " in 9002 *" -library=stlport4 "*) 9003 solaris_use_stlport4=yes 9004 ;; 9005 esac 9006 9007 # Adding this requires a known-good setup of shared libraries for 9008 # Sun compiler versions before 5.6, else PIC objects from an old 9009 # archive will be linked into the output, leading to subtle bugs. 9010 if test "$solaris_use_stlport4" != yes; then 9011 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 9012 fi 9013 ;; 9014 esac 9015 ;; 9016esac 9017]) 9018 9019case " $_LT_TAGVAR(postdeps, $1) " in 9020*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; 9021esac 9022 _LT_TAGVAR(compiler_lib_search_dirs, $1)= 9023if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then 9024 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 9025fi 9026_LT_TAGDECL([], [compiler_lib_search_dirs], [1], 9027 [The directories searched by this compiler when creating a shared library]) 9028_LT_TAGDECL([], [predep_objects], [1], 9029 [Dependencies to place before and after the objects being linked to 9030 create a shared library]) 9031_LT_TAGDECL([], [postdep_objects], [1]) 9032_LT_TAGDECL([], [predeps], [1]) 9033_LT_TAGDECL([], [postdeps], [1]) 9034_LT_TAGDECL([], [compiler_lib_search_path], [1], 9035 [The library search path used internally by the compiler when linking 9036 a shared library]) 9037])# _LT_SYS_HIDDEN_LIBDEPS 9038 9039 9040# _LT_LANG_F77_CONFIG([TAG]) 9041# -------------------------- 9042# Ensure that the configuration variables for a Fortran 77 compiler are 9043# suitably defined. These variables are subsequently used by _LT_CONFIG 9044# to write the compiler configuration to `libtool'. 9045m4_defun([_LT_LANG_F77_CONFIG], 9046[AC_LANG_PUSH(Fortran 77) 9047if test -z "$F77" || test "X$F77" = "Xno"; then 9048 _lt_disable_F77=yes 9049fi 9050 9051_LT_TAGVAR(archive_cmds_need_lc, $1)=no 9052_LT_TAGVAR(allow_undefined_flag, $1)= 9053_LT_TAGVAR(always_export_symbols, $1)=no 9054_LT_TAGVAR(archive_expsym_cmds, $1)= 9055_LT_TAGVAR(export_dynamic_flag_spec, $1)= 9056_LT_TAGVAR(hardcode_direct, $1)=no 9057_LT_TAGVAR(hardcode_direct_absolute, $1)=no 9058_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 9059_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 9060_LT_TAGVAR(hardcode_libdir_separator, $1)= 9061_LT_TAGVAR(hardcode_minus_L, $1)=no 9062_LT_TAGVAR(hardcode_automatic, $1)=no 9063_LT_TAGVAR(inherit_rpath, $1)=no 9064_LT_TAGVAR(module_cmds, $1)= 9065_LT_TAGVAR(module_expsym_cmds, $1)= 9066_LT_TAGVAR(link_all_deplibs, $1)=unknown 9067_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 9068_LT_TAGVAR(reload_flag, $1)=$reload_flag 9069_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 9070_LT_TAGVAR(no_undefined_flag, $1)= 9071_LT_TAGVAR(whole_archive_flag_spec, $1)= 9072_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 9073 9074# Source file extension for f77 test sources. 9075ac_ext=f 9076 9077# Object file extension for compiled f77 test sources. 9078objext=o 9079_LT_TAGVAR(objext, $1)=$objext 9080 9081# No sense in running all these tests if we already determined that 9082# the F77 compiler isn't working. Some variables (like enable_shared) 9083# are currently assumed to apply to all compilers on this platform, 9084# and will be corrupted by setting them based on a non-working compiler. 9085if test "$_lt_disable_F77" != yes; then 9086 # Code to be used in simple compile tests 9087 lt_simple_compile_test_code="\ 9088 subroutine t 9089 return 9090 end 9091" 9092 9093 # Code to be used in simple link tests 9094 lt_simple_link_test_code="\ 9095 program t 9096 end 9097" 9098 9099 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 9100 _LT_TAG_COMPILER 9101 9102 # save warnings/boilerplate of simple test code 9103 _LT_COMPILER_BOILERPLATE 9104 _LT_LINKER_BOILERPLATE 9105 9106 # Allow CC to be a program name with arguments. 9107 lt_save_CC="$CC" 9108 lt_save_GCC=$GCC 9109 CC=${F77-"f77"} 9110 compiler=$CC 9111 _LT_TAGVAR(compiler, $1)=$CC 9112 _LT_CC_BASENAME([$compiler]) 9113 GCC=$G77 9114 if test -n "$compiler"; then 9115 AC_MSG_CHECKING([if libtool supports shared libraries]) 9116 AC_MSG_RESULT([$can_build_shared]) 9117 9118 AC_MSG_CHECKING([whether to build shared libraries]) 9119 test "$can_build_shared" = "no" && enable_shared=no 9120 9121 # On AIX, shared libraries and static libraries use the same namespace, and 9122 # are all built from PIC. 9123 case $host_os in 9124 aix3*) 9125 test "$enable_shared" = yes && enable_static=no 9126 if test -n "$RANLIB"; then 9127 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9128 postinstall_cmds='$RANLIB $lib' 9129 fi 9130 ;; 9131 aix[[4-9]]*) 9132 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9133 test "$enable_shared" = yes && enable_static=no 9134 fi 9135 ;; 9136 esac 9137 AC_MSG_RESULT([$enable_shared]) 9138 9139 AC_MSG_CHECKING([whether to build static libraries]) 9140 # Make sure either enable_shared or enable_static is yes. 9141 test "$enable_shared" = yes || enable_static=yes 9142 AC_MSG_RESULT([$enable_static]) 9143 9144 _LT_TAGVAR(GCC, $1)="$G77" 9145 _LT_TAGVAR(LD, $1)="$LD" 9146 9147 ## CAVEAT EMPTOR: 9148 ## There is no encapsulation within the following macros, do not change 9149 ## the running order or otherwise move them around unless you know exactly 9150 ## what you are doing... 9151 _LT_COMPILER_PIC($1) 9152 _LT_COMPILER_C_O($1) 9153 _LT_COMPILER_FILE_LOCKS($1) 9154 _LT_LINKER_SHLIBS($1) 9155 _LT_SYS_DYNAMIC_LINKER($1) 9156 _LT_LINKER_HARDCODE_LIBPATH($1) 9157 9158 _LT_CONFIG($1) 9159 fi # test -n "$compiler" 9160 9161 GCC=$lt_save_GCC 9162 CC="$lt_save_CC" 9163fi # test "$_lt_disable_F77" != yes 9164 9165AC_LANG_POP 9166])# _LT_LANG_F77_CONFIG 9167 9168 9169# _LT_LANG_FC_CONFIG([TAG]) 9170# ------------------------- 9171# Ensure that the configuration variables for a Fortran compiler are 9172# suitably defined. These variables are subsequently used by _LT_CONFIG 9173# to write the compiler configuration to `libtool'. 9174m4_defun([_LT_LANG_FC_CONFIG], 9175[AC_LANG_PUSH(Fortran) 9176 9177if test -z "$FC" || test "X$FC" = "Xno"; then 9178 _lt_disable_FC=yes 9179fi 9180 9181_LT_TAGVAR(archive_cmds_need_lc, $1)=no 9182_LT_TAGVAR(allow_undefined_flag, $1)= 9183_LT_TAGVAR(always_export_symbols, $1)=no 9184_LT_TAGVAR(archive_expsym_cmds, $1)= 9185_LT_TAGVAR(export_dynamic_flag_spec, $1)= 9186_LT_TAGVAR(hardcode_direct, $1)=no 9187_LT_TAGVAR(hardcode_direct_absolute, $1)=no 9188_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 9189_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 9190_LT_TAGVAR(hardcode_libdir_separator, $1)= 9191_LT_TAGVAR(hardcode_minus_L, $1)=no 9192_LT_TAGVAR(hardcode_automatic, $1)=no 9193_LT_TAGVAR(inherit_rpath, $1)=no 9194_LT_TAGVAR(module_cmds, $1)= 9195_LT_TAGVAR(module_expsym_cmds, $1)= 9196_LT_TAGVAR(link_all_deplibs, $1)=unknown 9197_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 9198_LT_TAGVAR(reload_flag, $1)=$reload_flag 9199_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 9200_LT_TAGVAR(no_undefined_flag, $1)= 9201_LT_TAGVAR(whole_archive_flag_spec, $1)= 9202_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 9203 9204# Source file extension for fc test sources. 9205ac_ext=${ac_fc_srcext-f} 9206 9207# Object file extension for compiled fc test sources. 9208objext=o 9209_LT_TAGVAR(objext, $1)=$objext 9210 9211# No sense in running all these tests if we already determined that 9212# the FC compiler isn't working. Some variables (like enable_shared) 9213# are currently assumed to apply to all compilers on this platform, 9214# and will be corrupted by setting them based on a non-working compiler. 9215if test "$_lt_disable_FC" != yes; then 9216 # Code to be used in simple compile tests 9217 lt_simple_compile_test_code="\ 9218 subroutine t 9219 return 9220 end 9221" 9222 9223 # Code to be used in simple link tests 9224 lt_simple_link_test_code="\ 9225 program t 9226 end 9227" 9228 9229 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 9230 _LT_TAG_COMPILER 9231 9232 # save warnings/boilerplate of simple test code 9233 _LT_COMPILER_BOILERPLATE 9234 _LT_LINKER_BOILERPLATE 9235 9236 # Allow CC to be a program name with arguments. 9237 lt_save_CC="$CC" 9238 lt_save_GCC=$GCC 9239 CC=${FC-"f95"} 9240 compiler=$CC 9241 GCC=$ac_cv_fc_compiler_gnu 9242 9243 _LT_TAGVAR(compiler, $1)=$CC 9244 _LT_CC_BASENAME([$compiler]) 9245 9246 if test -n "$compiler"; then 9247 AC_MSG_CHECKING([if libtool supports shared libraries]) 9248 AC_MSG_RESULT([$can_build_shared]) 9249 9250 AC_MSG_CHECKING([whether to build shared libraries]) 9251 test "$can_build_shared" = "no" && enable_shared=no 9252 9253 # On AIX, shared libraries and static libraries use the same namespace, and 9254 # are all built from PIC. 9255 case $host_os in 9256 aix3*) 9257 test "$enable_shared" = yes && enable_static=no 9258 if test -n "$RANLIB"; then 9259 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9260 postinstall_cmds='$RANLIB $lib' 9261 fi 9262 ;; 9263 aix[[4-9]]*) 9264 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9265 test "$enable_shared" = yes && enable_static=no 9266 fi 9267 ;; 9268 esac 9269 AC_MSG_RESULT([$enable_shared]) 9270 9271 AC_MSG_CHECKING([whether to build static libraries]) 9272 # Make sure either enable_shared or enable_static is yes. 9273 test "$enable_shared" = yes || enable_static=yes 9274 AC_MSG_RESULT([$enable_static]) 9275 9276 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" 9277 _LT_TAGVAR(LD, $1)="$LD" 9278 9279 ## CAVEAT EMPTOR: 9280 ## There is no encapsulation within the following macros, do not change 9281 ## the running order or otherwise move them around unless you know exactly 9282 ## what you are doing... 9283 _LT_SYS_HIDDEN_LIBDEPS($1) 9284 _LT_COMPILER_PIC($1) 9285 _LT_COMPILER_C_O($1) 9286 _LT_COMPILER_FILE_LOCKS($1) 9287 _LT_LINKER_SHLIBS($1) 9288 _LT_SYS_DYNAMIC_LINKER($1) 9289 _LT_LINKER_HARDCODE_LIBPATH($1) 9290 9291 _LT_CONFIG($1) 9292 fi # test -n "$compiler" 9293 9294 GCC=$lt_save_GCC 9295 CC="$lt_save_CC" 9296fi # test "$_lt_disable_FC" != yes 9297 9298AC_LANG_POP 9299])# _LT_LANG_FC_CONFIG 9300 9301 9302# _LT_LANG_GCJ_CONFIG([TAG]) 9303# -------------------------- 9304# Ensure that the configuration variables for the GNU Java Compiler compiler 9305# are suitably defined. These variables are subsequently used by _LT_CONFIG 9306# to write the compiler configuration to `libtool'. 9307m4_defun([_LT_LANG_GCJ_CONFIG], 9308[AC_REQUIRE([LT_PROG_GCJ])dnl 9309AC_LANG_SAVE 9310 9311# Source file extension for Java test sources. 9312ac_ext=java 9313 9314# Object file extension for compiled Java test sources. 9315objext=o 9316_LT_TAGVAR(objext, $1)=$objext 9317 9318# Code to be used in simple compile tests 9319lt_simple_compile_test_code="class foo {}" 9320 9321# Code to be used in simple link tests 9322lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 9323 9324# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9325_LT_TAG_COMPILER 9326 9327# save warnings/boilerplate of simple test code 9328_LT_COMPILER_BOILERPLATE 9329_LT_LINKER_BOILERPLATE 9330 9331# Allow CC to be a program name with arguments. 9332lt_save_CC="$CC" 9333lt_save_GCC=$GCC 9334GCC=yes 9335CC=${GCJ-"gcj"} 9336compiler=$CC 9337_LT_TAGVAR(compiler, $1)=$CC 9338_LT_TAGVAR(LD, $1)="$LD" 9339_LT_CC_BASENAME([$compiler]) 9340 9341# GCJ did not exist at the time GCC didn't implicitly link libc in. 9342_LT_TAGVAR(archive_cmds_need_lc, $1)=no 9343 9344_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 9345_LT_TAGVAR(reload_flag, $1)=$reload_flag 9346_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 9347 9348if test -n "$compiler"; then 9349 _LT_COMPILER_NO_RTTI($1) 9350 _LT_COMPILER_PIC($1) 9351 _LT_COMPILER_C_O($1) 9352 _LT_COMPILER_FILE_LOCKS($1) 9353 _LT_LINKER_SHLIBS($1) 9354 _LT_LINKER_HARDCODE_LIBPATH($1) 9355 9356 _LT_CONFIG($1) 9357fi 9358 9359AC_LANG_RESTORE 9360 9361GCC=$lt_save_GCC 9362CC="$lt_save_CC" 9363])# _LT_LANG_GCJ_CONFIG 9364 9365 9366# _LT_LANG_RC_CONFIG([TAG]) 9367# ------------------------- 9368# Ensure that the configuration variables for the Windows resource compiler 9369# are suitably defined. These variables are subsequently used by _LT_CONFIG 9370# to write the compiler configuration to `libtool'. 9371m4_defun([_LT_LANG_RC_CONFIG], 9372[AC_REQUIRE([LT_PROG_RC])dnl 9373AC_LANG_SAVE 9374 9375# Source file extension for RC test sources. 9376ac_ext=rc 9377 9378# Object file extension for compiled RC test sources. 9379objext=o 9380_LT_TAGVAR(objext, $1)=$objext 9381 9382# Code to be used in simple compile tests 9383lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 9384 9385# Code to be used in simple link tests 9386lt_simple_link_test_code="$lt_simple_compile_test_code" 9387 9388# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9389_LT_TAG_COMPILER 9390 9391# save warnings/boilerplate of simple test code 9392_LT_COMPILER_BOILERPLATE 9393_LT_LINKER_BOILERPLATE 9394 9395# Allow CC to be a program name with arguments. 9396lt_save_CC="$CC" 9397lt_save_GCC=$GCC 9398GCC= 9399CC=${RC-"windres"} 9400compiler=$CC 9401_LT_TAGVAR(compiler, $1)=$CC 9402_LT_CC_BASENAME([$compiler]) 9403_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 9404 9405if test -n "$compiler"; then 9406 : 9407 _LT_CONFIG($1) 9408fi 9409 9410GCC=$lt_save_GCC 9411AC_LANG_RESTORE 9412CC="$lt_save_CC" 9413])# _LT_LANG_RC_CONFIG 9414 9415 9416# LT_PROG_GCJ 9417# ----------- 9418AC_DEFUN([LT_PROG_GCJ], 9419[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], 9420 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 9421 [AC_CHECK_TOOL(GCJ, gcj,) 9422 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 9423 AC_SUBST(GCJFLAGS)])])[]dnl 9424]) 9425 9426# Old name: 9427AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) 9428dnl aclocal-1.4 backwards compatibility: 9429dnl AC_DEFUN([LT_AC_PROG_GCJ], []) 9430 9431 9432# LT_PROG_RC 9433# ---------- 9434AC_DEFUN([LT_PROG_RC], 9435[AC_CHECK_TOOL(RC, windres,) 9436]) 9437 9438# Old name: 9439AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) 9440dnl aclocal-1.4 backwards compatibility: 9441dnl AC_DEFUN([LT_AC_PROG_RC], []) 9442 9443 9444# _LT_DECL_EGREP 9445# -------------- 9446# If we don't have a new enough Autoconf to choose the best grep 9447# available, choose the one first in the user's PATH. 9448m4_defun([_LT_DECL_EGREP], 9449[AC_REQUIRE([AC_PROG_EGREP])dnl 9450AC_REQUIRE([AC_PROG_FGREP])dnl 9451test -z "$GREP" && GREP=grep 9452_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) 9453_LT_DECL([], [EGREP], [1], [An ERE matcher]) 9454_LT_DECL([], [FGREP], [1], [A literal string matcher]) 9455dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too 9456AC_SUBST([GREP]) 9457]) 9458 9459 9460# _LT_DECL_OBJDUMP 9461# -------------- 9462# If we don't have a new enough Autoconf to choose the best objdump 9463# available, choose the one first in the user's PATH. 9464m4_defun([_LT_DECL_OBJDUMP], 9465[AC_CHECK_TOOL(OBJDUMP, objdump, false) 9466test -z "$OBJDUMP" && OBJDUMP=objdump 9467_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) 9468AC_SUBST([OBJDUMP]) 9469]) 9470 9471 9472# _LT_DECL_SED 9473# ------------ 9474# Check for a fully-functional sed program, that truncates 9475# as few characters as possible. Prefer GNU sed if found. 9476m4_defun([_LT_DECL_SED], 9477[AC_PROG_SED 9478test -z "$SED" && SED=sed 9479Xsed="$SED -e 1s/^X//" 9480_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) 9481_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], 9482 [Sed that helps us avoid accidentally triggering echo(1) options like -n]) 9483])# _LT_DECL_SED 9484 9485m4_ifndef([AC_PROG_SED], [ 9486# NOTE: This macro has been submitted for inclusion into # 9487# GNU Autoconf as AC_PROG_SED. When it is available in # 9488# a released version of Autoconf we should remove this # 9489# macro and use it instead. # 9490 9491m4_defun([AC_PROG_SED], 9492[AC_MSG_CHECKING([for a sed that does not truncate output]) 9493AC_CACHE_VAL(lt_cv_path_SED, 9494[# Loop through the user's path and test for sed and gsed. 9495# Then use that list of sed's as ones to test for truncation. 9496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9497for as_dir in $PATH 9498do 9499 IFS=$as_save_IFS 9500 test -z "$as_dir" && as_dir=. 9501 for lt_ac_prog in sed gsed; do 9502 for ac_exec_ext in '' $ac_executable_extensions; do 9503 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 9504 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 9505 fi 9506 done 9507 done 9508done 9509IFS=$as_save_IFS 9510lt_ac_max=0 9511lt_ac_count=0 9512# Add /usr/xpg4/bin/sed as it is typically found on Solaris 9513# along with /bin/sed that truncates output. 9514for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 9515 test ! -f $lt_ac_sed && continue 9516 cat /dev/null > conftest.in 9517 lt_ac_count=0 9518 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 9519 # Check for GNU sed and select it if it is found. 9520 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 9521 lt_cv_path_SED=$lt_ac_sed 9522 break 9523 fi 9524 while true; do 9525 cat conftest.in conftest.in >conftest.tmp 9526 mv conftest.tmp conftest.in 9527 cp conftest.in conftest.nl 9528 echo >>conftest.nl 9529 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 9530 cmp -s conftest.out conftest.nl || break 9531 # 10000 chars as input seems more than enough 9532 test $lt_ac_count -gt 10 && break 9533 lt_ac_count=`expr $lt_ac_count + 1` 9534 if test $lt_ac_count -gt $lt_ac_max; then 9535 lt_ac_max=$lt_ac_count 9536 lt_cv_path_SED=$lt_ac_sed 9537 fi 9538 done 9539done 9540]) 9541SED=$lt_cv_path_SED 9542AC_SUBST([SED]) 9543AC_MSG_RESULT([$SED]) 9544])#AC_PROG_SED 9545])#m4_ifndef 9546 9547# Old name: 9548AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) 9549dnl aclocal-1.4 backwards compatibility: 9550dnl AC_DEFUN([LT_AC_PROG_SED], []) 9551 9552 9553# _LT_CHECK_SHELL_FEATURES 9554# ------------------------ 9555# Find out whether the shell is Bourne or XSI compatible, 9556# or has some other useful features. 9557m4_defun([_LT_CHECK_SHELL_FEATURES], 9558[AC_MSG_CHECKING([whether the shell understands some XSI constructs]) 9559# Try some XSI features 9560xsi_shell=no 9561( _lt_dummy="a/b/c" 9562 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 9563 = c,a/b,, \ 9564 && eval 'test $(( 1 + 1 )) -eq 2 \ 9565 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 9566 && xsi_shell=yes 9567AC_MSG_RESULT([$xsi_shell]) 9568_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) 9569 9570AC_MSG_CHECKING([whether the shell understands "+="]) 9571lt_shell_append=no 9572( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ 9573 >/dev/null 2>&1 \ 9574 && lt_shell_append=yes 9575AC_MSG_RESULT([$lt_shell_append]) 9576_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) 9577 9578if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 9579 lt_unset=unset 9580else 9581 lt_unset=false 9582fi 9583_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl 9584 9585# test EBCDIC or ASCII 9586case `echo X|tr X '\101'` in 9587 A) # ASCII based system 9588 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 9589 lt_SP2NL='tr \040 \012' 9590 lt_NL2SP='tr \015\012 \040\040' 9591 ;; 9592 *) # EBCDIC based system 9593 lt_SP2NL='tr \100 \n' 9594 lt_NL2SP='tr \r\n \100\100' 9595 ;; 9596esac 9597_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl 9598_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl 9599])# _LT_CHECK_SHELL_FEATURES 9600 9601 9602# _LT_PROG_XSI_SHELLFNS 9603# --------------------- 9604# Bourne and XSI compatible variants of some useful shell functions. 9605m4_defun([_LT_PROG_XSI_SHELLFNS], 9606[case $xsi_shell in 9607 yes) 9608 cat << \_LT_EOF >> "$cfgfile" 9609 9610# func_dirname file append nondir_replacement 9611# Compute the dirname of FILE. If nonempty, add APPEND to the result, 9612# otherwise set result to NONDIR_REPLACEMENT. 9613func_dirname () 9614{ 9615 case ${1} in 9616 */*) func_dirname_result="${1%/*}${2}" ;; 9617 * ) func_dirname_result="${3}" ;; 9618 esac 9619} 9620 9621# func_basename file 9622func_basename () 9623{ 9624 func_basename_result="${1##*/}" 9625} 9626 9627# func_dirname_and_basename file append nondir_replacement 9628# perform func_basename and func_dirname in a single function 9629# call: 9630# dirname: Compute the dirname of FILE. If nonempty, 9631# add APPEND to the result, otherwise set result 9632# to NONDIR_REPLACEMENT. 9633# value returned in "$func_dirname_result" 9634# basename: Compute filename of FILE. 9635# value retuned in "$func_basename_result" 9636# Implementation must be kept synchronized with func_dirname 9637# and func_basename. For efficiency, we do not delegate to 9638# those functions but instead duplicate the functionality here. 9639func_dirname_and_basename () 9640{ 9641 case ${1} in 9642 */*) func_dirname_result="${1%/*}${2}" ;; 9643 * ) func_dirname_result="${3}" ;; 9644 esac 9645 func_basename_result="${1##*/}" 9646} 9647 9648# func_stripname prefix suffix name 9649# strip PREFIX and SUFFIX off of NAME. 9650# PREFIX and SUFFIX must not contain globbing or regex special 9651# characters, hashes, percent signs, but SUFFIX may contain a leading 9652# dot (in which case that matches only a dot). 9653func_stripname () 9654{ 9655 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 9656 # positional parameters, so assign one to ordinary parameter first. 9657 func_stripname_result=${3} 9658 func_stripname_result=${func_stripname_result#"${1}"} 9659 func_stripname_result=${func_stripname_result%"${2}"} 9660} 9661 9662# func_opt_split 9663func_opt_split () 9664{ 9665 func_opt_split_opt=${1%%=*} 9666 func_opt_split_arg=${1#*=} 9667} 9668 9669# func_lo2o object 9670func_lo2o () 9671{ 9672 case ${1} in 9673 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 9674 *) func_lo2o_result=${1} ;; 9675 esac 9676} 9677 9678# func_xform libobj-or-source 9679func_xform () 9680{ 9681 func_xform_result=${1%.*}.lo 9682} 9683 9684# func_arith arithmetic-term... 9685func_arith () 9686{ 9687 func_arith_result=$(( $[*] )) 9688} 9689 9690# func_len string 9691# STRING may not start with a hyphen. 9692func_len () 9693{ 9694 func_len_result=${#1} 9695} 9696 9697_LT_EOF 9698 ;; 9699 *) # Bourne compatible functions. 9700 cat << \_LT_EOF >> "$cfgfile" 9701 9702# func_dirname file append nondir_replacement 9703# Compute the dirname of FILE. If nonempty, add APPEND to the result, 9704# otherwise set result to NONDIR_REPLACEMENT. 9705func_dirname () 9706{ 9707 # Extract subdirectory from the argument. 9708 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 9709 if test "X$func_dirname_result" = "X${1}"; then 9710 func_dirname_result="${3}" 9711 else 9712 func_dirname_result="$func_dirname_result${2}" 9713 fi 9714} 9715 9716# func_basename file 9717func_basename () 9718{ 9719 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 9720} 9721 9722dnl func_dirname_and_basename 9723dnl A portable version of this function is already defined in general.m4sh 9724dnl so there is no need for it here. 9725 9726# func_stripname prefix suffix name 9727# strip PREFIX and SUFFIX off of NAME. 9728# PREFIX and SUFFIX must not contain globbing or regex special 9729# characters, hashes, percent signs, but SUFFIX may contain a leading 9730# dot (in which case that matches only a dot). 9731# func_strip_suffix prefix name 9732func_stripname () 9733{ 9734 case ${2} in 9735 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 9736 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 9737 esac 9738} 9739 9740# sed scripts: 9741my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' 9742my_sed_long_arg='1s/^-[[^=]]*=//' 9743 9744# func_opt_split 9745func_opt_split () 9746{ 9747 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 9748 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 9749} 9750 9751# func_lo2o object 9752func_lo2o () 9753{ 9754 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 9755} 9756 9757# func_xform libobj-or-source 9758func_xform () 9759{ 9760 func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'` 9761} 9762 9763# func_arith arithmetic-term... 9764func_arith () 9765{ 9766 func_arith_result=`expr "$[@]"` 9767} 9768 9769# func_len string 9770# STRING may not start with a hyphen. 9771func_len () 9772{ 9773 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` 9774} 9775 9776_LT_EOF 9777esac 9778 9779case $lt_shell_append in 9780 yes) 9781 cat << \_LT_EOF >> "$cfgfile" 9782 9783# func_append var value 9784# Append VALUE to the end of shell variable VAR. 9785func_append () 9786{ 9787 eval "$[1]+=\$[2]" 9788} 9789_LT_EOF 9790 ;; 9791 *) 9792 cat << \_LT_EOF >> "$cfgfile" 9793 9794# func_append var value 9795# Append VALUE to the end of shell variable VAR. 9796func_append () 9797{ 9798 eval "$[1]=\$$[1]\$[2]" 9799} 9800 9801_LT_EOF 9802 ;; 9803 esac 9804]) 9805 9806# Helper functions for option handling. -*- Autoconf -*- 9807# 9808# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, 9809# Inc. 9810# Written by Gary V. Vaughan, 2004 9811# 9812# This file is free software; the Free Software Foundation gives 9813# unlimited permission to copy and/or distribute it, with or without 9814# modifications, as long as this notice is preserved. 9815 9816# serial 7 ltoptions.m4 9817 9818# This is to help aclocal find these macros, as it can't see m4_define. 9819AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) 9820 9821 9822# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) 9823# ------------------------------------------ 9824m4_define([_LT_MANGLE_OPTION], 9825[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) 9826 9827 9828# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) 9829# --------------------------------------- 9830# Set option OPTION-NAME for macro MACRO-NAME, and if there is a 9831# matching handler defined, dispatch to it. Other OPTION-NAMEs are 9832# saved as a flag. 9833m4_define([_LT_SET_OPTION], 9834[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl 9835m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), 9836 _LT_MANGLE_DEFUN([$1], [$2]), 9837 [m4_warning([Unknown $1 option `$2'])])[]dnl 9838]) 9839 9840 9841# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) 9842# ------------------------------------------------------------ 9843# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 9844m4_define([_LT_IF_OPTION], 9845[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) 9846 9847 9848# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) 9849# ------------------------------------------------------- 9850# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME 9851# are set. 9852m4_define([_LT_UNLESS_OPTIONS], 9853[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 9854 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), 9855 [m4_define([$0_found])])])[]dnl 9856m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 9857])[]dnl 9858]) 9859 9860 9861# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) 9862# ---------------------------------------- 9863# OPTION-LIST is a space-separated list of Libtool options associated 9864# with MACRO-NAME. If any OPTION has a matching handler declared with 9865# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about 9866# the unknown option and exit. 9867m4_defun([_LT_SET_OPTIONS], 9868[# Set options 9869m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 9870 [_LT_SET_OPTION([$1], _LT_Option)]) 9871 9872m4_if([$1],[LT_INIT],[ 9873 dnl 9874 dnl Simply set some default values (i.e off) if boolean options were not 9875 dnl specified: 9876 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no 9877 ]) 9878 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no 9879 ]) 9880 dnl 9881 dnl If no reference was made to various pairs of opposing options, then 9882 dnl we run the default mode handler for the pair. For example, if neither 9883 dnl `shared' nor `disable-shared' was passed, we enable building of shared 9884 dnl archives by default: 9885 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) 9886 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) 9887 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) 9888 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], 9889 [_LT_ENABLE_FAST_INSTALL]) 9890 ]) 9891])# _LT_SET_OPTIONS 9892 9893 9894 9895# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) 9896# ----------------------------------------- 9897m4_define([_LT_MANGLE_DEFUN], 9898[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) 9899 9900 9901# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) 9902# ----------------------------------------------- 9903m4_define([LT_OPTION_DEFINE], 9904[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl 9905])# LT_OPTION_DEFINE 9906 9907 9908# dlopen 9909# ------ 9910LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes 9911]) 9912 9913AU_DEFUN([AC_LIBTOOL_DLOPEN], 9914[_LT_SET_OPTION([LT_INIT], [dlopen]) 9915AC_DIAGNOSE([obsolete], 9916[$0: Remove this warning and the call to _LT_SET_OPTION when you 9917put the `dlopen' option into LT_INIT's first parameter.]) 9918]) 9919 9920dnl aclocal-1.4 backwards compatibility: 9921dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) 9922 9923 9924# win32-dll 9925# --------- 9926# Declare package support for building win32 dll's. 9927LT_OPTION_DEFINE([LT_INIT], [win32-dll], 9928[enable_win32_dll=yes 9929 9930case $host in 9931*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 9932 AC_CHECK_TOOL(AS, as, false) 9933 AC_CHECK_TOOL(DLLTOOL, dlltool, false) 9934 AC_CHECK_TOOL(OBJDUMP, objdump, false) 9935 ;; 9936esac 9937 9938test -z "$AS" && AS=as 9939_LT_DECL([], [AS], [1], [Assembler program])dnl 9940 9941test -z "$DLLTOOL" && DLLTOOL=dlltool 9942_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl 9943 9944test -z "$OBJDUMP" && OBJDUMP=objdump 9945_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl 9946])# win32-dll 9947 9948AU_DEFUN([AC_LIBTOOL_WIN32_DLL], 9949[AC_REQUIRE([AC_CANONICAL_HOST])dnl 9950_LT_SET_OPTION([LT_INIT], [win32-dll]) 9951AC_DIAGNOSE([obsolete], 9952[$0: Remove this warning and the call to _LT_SET_OPTION when you 9953put the `win32-dll' option into LT_INIT's first parameter.]) 9954]) 9955 9956dnl aclocal-1.4 backwards compatibility: 9957dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) 9958 9959 9960# _LT_ENABLE_SHARED([DEFAULT]) 9961# ---------------------------- 9962# implement the --enable-shared flag, and supports the `shared' and 9963# `disable-shared' LT_INIT options. 9964# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 9965m4_define([_LT_ENABLE_SHARED], 9966[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl 9967AC_ARG_ENABLE([shared], 9968 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 9969 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], 9970 [p=${PACKAGE-default} 9971 case $enableval in 9972 yes) enable_shared=yes ;; 9973 no) enable_shared=no ;; 9974 *) 9975 enable_shared=no 9976 # Look at the argument we got. We use all the common list separators. 9977 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9978 for pkg in $enableval; do 9979 IFS="$lt_save_ifs" 9980 if test "X$pkg" = "X$p"; then 9981 enable_shared=yes 9982 fi 9983 done 9984 IFS="$lt_save_ifs" 9985 ;; 9986 esac], 9987 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) 9988 9989 _LT_DECL([build_libtool_libs], [enable_shared], [0], 9990 [Whether or not to build shared libraries]) 9991])# _LT_ENABLE_SHARED 9992 9993LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) 9994LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) 9995 9996# Old names: 9997AC_DEFUN([AC_ENABLE_SHARED], 9998[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) 9999]) 10000 10001AC_DEFUN([AC_DISABLE_SHARED], 10002[_LT_SET_OPTION([LT_INIT], [disable-shared]) 10003]) 10004 10005AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 10006AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 10007 10008dnl aclocal-1.4 backwards compatibility: 10009dnl AC_DEFUN([AM_ENABLE_SHARED], []) 10010dnl AC_DEFUN([AM_DISABLE_SHARED], []) 10011 10012 10013 10014# _LT_ENABLE_STATIC([DEFAULT]) 10015# ---------------------------- 10016# implement the --enable-static flag, and support the `static' and 10017# `disable-static' LT_INIT options. 10018# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 10019m4_define([_LT_ENABLE_STATIC], 10020[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl 10021AC_ARG_ENABLE([static], 10022 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], 10023 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], 10024 [p=${PACKAGE-default} 10025 case $enableval in 10026 yes) enable_static=yes ;; 10027 no) enable_static=no ;; 10028 *) 10029 enable_static=no 10030 # Look at the argument we got. We use all the common list separators. 10031 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10032 for pkg in $enableval; do 10033 IFS="$lt_save_ifs" 10034 if test "X$pkg" = "X$p"; then 10035 enable_static=yes 10036 fi 10037 done 10038 IFS="$lt_save_ifs" 10039 ;; 10040 esac], 10041 [enable_static=]_LT_ENABLE_STATIC_DEFAULT) 10042 10043 _LT_DECL([build_old_libs], [enable_static], [0], 10044 [Whether or not to build static libraries]) 10045])# _LT_ENABLE_STATIC 10046 10047LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) 10048LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) 10049 10050# Old names: 10051AC_DEFUN([AC_ENABLE_STATIC], 10052[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) 10053]) 10054 10055AC_DEFUN([AC_DISABLE_STATIC], 10056[_LT_SET_OPTION([LT_INIT], [disable-static]) 10057]) 10058 10059AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 10060AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 10061 10062dnl aclocal-1.4 backwards compatibility: 10063dnl AC_DEFUN([AM_ENABLE_STATIC], []) 10064dnl AC_DEFUN([AM_DISABLE_STATIC], []) 10065 10066 10067 10068# _LT_ENABLE_FAST_INSTALL([DEFAULT]) 10069# ---------------------------------- 10070# implement the --enable-fast-install flag, and support the `fast-install' 10071# and `disable-fast-install' LT_INIT options. 10072# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 10073m4_define([_LT_ENABLE_FAST_INSTALL], 10074[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl 10075AC_ARG_ENABLE([fast-install], 10076 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 10077 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 10078 [p=${PACKAGE-default} 10079 case $enableval in 10080 yes) enable_fast_install=yes ;; 10081 no) enable_fast_install=no ;; 10082 *) 10083 enable_fast_install=no 10084 # Look at the argument we got. We use all the common list separators. 10085 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10086 for pkg in $enableval; do 10087 IFS="$lt_save_ifs" 10088 if test "X$pkg" = "X$p"; then 10089 enable_fast_install=yes 10090 fi 10091 done 10092 IFS="$lt_save_ifs" 10093 ;; 10094 esac], 10095 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) 10096 10097_LT_DECL([fast_install], [enable_fast_install], [0], 10098 [Whether or not to optimize for fast installation])dnl 10099])# _LT_ENABLE_FAST_INSTALL 10100 10101LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) 10102LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) 10103 10104# Old names: 10105AU_DEFUN([AC_ENABLE_FAST_INSTALL], 10106[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) 10107AC_DIAGNOSE([obsolete], 10108[$0: Remove this warning and the call to _LT_SET_OPTION when you put 10109the `fast-install' option into LT_INIT's first parameter.]) 10110]) 10111 10112AU_DEFUN([AC_DISABLE_FAST_INSTALL], 10113[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) 10114AC_DIAGNOSE([obsolete], 10115[$0: Remove this warning and the call to _LT_SET_OPTION when you put 10116the `disable-fast-install' option into LT_INIT's first parameter.]) 10117]) 10118 10119dnl aclocal-1.4 backwards compatibility: 10120dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) 10121dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) 10122 10123 10124# _LT_WITH_PIC([MODE]) 10125# -------------------- 10126# implement the --with-pic flag, and support the `pic-only' and `no-pic' 10127# LT_INIT options. 10128# MODE is either `yes' or `no'. If omitted, it defaults to `both'. 10129m4_define([_LT_WITH_PIC], 10130[AC_ARG_WITH([pic], 10131 [AS_HELP_STRING([--with-pic], 10132 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 10133 [pic_mode="$withval"], 10134 [pic_mode=default]) 10135 10136test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) 10137 10138_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl 10139])# _LT_WITH_PIC 10140 10141LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) 10142LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) 10143 10144# Old name: 10145AU_DEFUN([AC_LIBTOOL_PICMODE], 10146[_LT_SET_OPTION([LT_INIT], [pic-only]) 10147AC_DIAGNOSE([obsolete], 10148[$0: Remove this warning and the call to _LT_SET_OPTION when you 10149put the `pic-only' option into LT_INIT's first parameter.]) 10150]) 10151 10152dnl aclocal-1.4 backwards compatibility: 10153dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) 10154 10155 10156m4_define([_LTDL_MODE], []) 10157LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], 10158 [m4_define([_LTDL_MODE], [nonrecursive])]) 10159LT_OPTION_DEFINE([LTDL_INIT], [recursive], 10160 [m4_define([_LTDL_MODE], [recursive])]) 10161LT_OPTION_DEFINE([LTDL_INIT], [subproject], 10162 [m4_define([_LTDL_MODE], [subproject])]) 10163 10164m4_define([_LTDL_TYPE], []) 10165LT_OPTION_DEFINE([LTDL_INIT], [installable], 10166 [m4_define([_LTDL_TYPE], [installable])]) 10167LT_OPTION_DEFINE([LTDL_INIT], [convenience], 10168 [m4_define([_LTDL_TYPE], [convenience])]) 10169 10170# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- 10171# 10172# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 10173# Written by Gary V. Vaughan, 2004 10174# 10175# This file is free software; the Free Software Foundation gives 10176# unlimited permission to copy and/or distribute it, with or without 10177# modifications, as long as this notice is preserved. 10178 10179# serial 6 ltsugar.m4 10180 10181# This is to help aclocal find these macros, as it can't see m4_define. 10182AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) 10183 10184 10185# lt_join(SEP, ARG1, [ARG2...]) 10186# ----------------------------- 10187# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their 10188# associated separator. 10189# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier 10190# versions in m4sugar had bugs. 10191m4_define([lt_join], 10192[m4_if([$#], [1], [], 10193 [$#], [2], [[$2]], 10194 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) 10195m4_define([_lt_join], 10196[m4_if([$#$2], [2], [], 10197 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) 10198 10199 10200# lt_car(LIST) 10201# lt_cdr(LIST) 10202# ------------ 10203# Manipulate m4 lists. 10204# These macros are necessary as long as will still need to support 10205# Autoconf-2.59 which quotes differently. 10206m4_define([lt_car], [[$1]]) 10207m4_define([lt_cdr], 10208[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], 10209 [$#], 1, [], 10210 [m4_dquote(m4_shift($@))])]) 10211m4_define([lt_unquote], $1) 10212 10213 10214# lt_append(MACRO-NAME, STRING, [SEPARATOR]) 10215# ------------------------------------------ 10216# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. 10217# Note that neither SEPARATOR nor STRING are expanded; they are appended 10218# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). 10219# No SEPARATOR is output if MACRO-NAME was previously undefined (different 10220# than defined and empty). 10221# 10222# This macro is needed until we can rely on Autoconf 2.62, since earlier 10223# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. 10224m4_define([lt_append], 10225[m4_define([$1], 10226 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) 10227 10228 10229 10230# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) 10231# ---------------------------------------------------------- 10232# Produce a SEP delimited list of all paired combinations of elements of 10233# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list 10234# has the form PREFIXmINFIXSUFFIXn. 10235# Needed until we can rely on m4_combine added in Autoconf 2.62. 10236m4_define([lt_combine], 10237[m4_if(m4_eval([$# > 3]), [1], 10238 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl 10239[[m4_foreach([_Lt_prefix], [$2], 10240 [m4_foreach([_Lt_suffix], 10241 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, 10242 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) 10243 10244 10245# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) 10246# ----------------------------------------------------------------------- 10247# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited 10248# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. 10249m4_define([lt_if_append_uniq], 10250[m4_ifdef([$1], 10251 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], 10252 [lt_append([$1], [$2], [$3])$4], 10253 [$5])], 10254 [lt_append([$1], [$2], [$3])$4])]) 10255 10256 10257# lt_dict_add(DICT, KEY, VALUE) 10258# ----------------------------- 10259m4_define([lt_dict_add], 10260[m4_define([$1($2)], [$3])]) 10261 10262 10263# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) 10264# -------------------------------------------- 10265m4_define([lt_dict_add_subkey], 10266[m4_define([$1($2:$3)], [$4])]) 10267 10268 10269# lt_dict_fetch(DICT, KEY, [SUBKEY]) 10270# ---------------------------------- 10271m4_define([lt_dict_fetch], 10272[m4_ifval([$3], 10273 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), 10274 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) 10275 10276 10277# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) 10278# ----------------------------------------------------------------- 10279m4_define([lt_if_dict_fetch], 10280[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], 10281 [$5], 10282 [$6])]) 10283 10284 10285# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) 10286# -------------------------------------------------------------- 10287m4_define([lt_dict_filter], 10288[m4_if([$5], [], [], 10289 [lt_join(m4_quote(m4_default([$4], [[, ]])), 10290 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), 10291 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl 10292]) 10293 10294# ltversion.m4 -- version numbers -*- Autoconf -*- 10295# 10296# Copyright (C) 2004 Free Software Foundation, Inc. 10297# Written by Scott James Remnant, 2004 10298# 10299# This file is free software; the Free Software Foundation gives 10300# unlimited permission to copy and/or distribute it, with or without 10301# modifications, as long as this notice is preserved. 10302 10303# Generated from ltversion.in. 10304 10305# serial 3175 ltversion.m4 10306# This file is part of GNU Libtool 10307 10308m4_define([LT_PACKAGE_VERSION], [2.2.10]) 10309m4_define([LT_PACKAGE_REVISION], [1.3175]) 10310 10311AC_DEFUN([LTVERSION_VERSION], 10312[macro_version='2.2.10' 10313macro_revision='1.3175' 10314_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 10315_LT_DECL(, macro_revision, 0) 10316]) 10317 10318# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- 10319# 10320# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. 10321# Written by Scott James Remnant, 2004. 10322# 10323# This file is free software; the Free Software Foundation gives 10324# unlimited permission to copy and/or distribute it, with or without 10325# modifications, as long as this notice is preserved. 10326 10327# serial 5 lt~obsolete.m4 10328 10329# These exist entirely to fool aclocal when bootstrapping libtool. 10330# 10331# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) 10332# which have later been changed to m4_define as they aren't part of the 10333# exported API, or moved to Autoconf or Automake where they belong. 10334# 10335# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN 10336# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us 10337# using a macro with the same name in our local m4/libtool.m4 it'll 10338# pull the old libtool.m4 in (it doesn't see our shiny new m4_define 10339# and doesn't know about Autoconf macros at all.) 10340# 10341# So we provide this file, which has a silly filename so it's always 10342# included after everything else. This provides aclocal with the 10343# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything 10344# because those macros already exist, or will be overwritten later. 10345# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 10346# 10347# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. 10348# Yes, that means every name once taken will need to remain here until 10349# we give up compatibility with versions before 1.7, at which point 10350# we need to keep only those names which we still refer to. 10351 10352# This is to help aclocal find these macros, as it can't see m4_define. 10353AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) 10354 10355m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) 10356m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) 10357m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) 10358m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) 10359m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) 10360m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) 10361m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) 10362m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) 10363m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) 10364m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) 10365m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) 10366m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) 10367m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) 10368m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) 10369m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) 10370m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) 10371m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) 10372m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) 10373m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) 10374m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) 10375m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) 10376m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) 10377m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) 10378m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) 10379m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) 10380m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) 10381m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) 10382m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) 10383m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) 10384m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) 10385m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) 10386m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) 10387m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) 10388m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) 10389m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) 10390m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) 10391m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) 10392m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) 10393m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) 10394m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) 10395m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) 10396m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) 10397m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) 10398m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) 10399m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) 10400m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) 10401m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) 10402m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) 10403m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) 10404m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) 10405m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) 10406m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) 10407m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) 10408m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) 10409m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) 10410m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) 10411m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) 10412m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) 10413m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) 10414m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) 10415m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) 10416 10417