aclocal.m4 revision 49dc963f
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.65],, 17[m4_warning([this file was generated for autoconf 2.65. 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 2005-2006 Sun Microsystems, Inc. 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.8.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|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 1222 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 1223 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 1224 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 1225 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 1226 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 1227AC_SUBST([MAN_SUBSTS]) 1228 1229]) # XORG_MANPAGE_SECTIONS 1230 1231# XORG_CHECK_SGML_DOCTOOLS([MIN-VERSION]) 1232# ------------------------ 1233# Minimum version: 1.7.0 1234# 1235# Defines the variable XORG_SGML_PATH containing the location of X11/defs.ent 1236# provided by xorg-sgml-doctools, if installed. 1237AC_DEFUN([XORG_CHECK_SGML_DOCTOOLS],[ 1238AC_MSG_CHECKING([for X.Org SGML entities m4_ifval([$1],[>= $1])]) 1239XORG_SGML_PATH= 1240PKG_CHECK_EXISTS([xorg-sgml-doctools m4_ifval([$1],[>= $1])], 1241 [XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`], 1242 [m4_ifval([$1],[:], 1243 [if test x"$cross_compiling" != x"yes" ; then 1244 AC_CHECK_FILE([$prefix/share/sgml/X11/defs.ent], 1245 [XORG_SGML_PATH=$prefix/share/sgml]) 1246 fi]) 1247 ]) 1248 1249if test "x$XORG_SGML_PATH" != "x" ; then 1250 AC_MSG_RESULT([$XORG_SGML_PATH]) 1251else 1252 AC_MSG_RESULT([no]) 1253fi 1254 1255AC_SUBST(XORG_SGML_PATH) 1256]) # XORG_CHECK_SGML_DOCTOOLS 1257 1258# XORG_CHECK_LINUXDOC 1259# ------------------- 1260# Minimum version: 1.0.0 1261# 1262# Defines the variable MAKE_TEXT if the necessary tools and 1263# files are found. $(MAKE_TEXT) blah.sgml will then produce blah.txt. 1264# Whether or not the necessary tools and files are found can be checked 1265# with the AM_CONDITIONAL "BUILD_LINUXDOC" 1266AC_DEFUN([XORG_CHECK_LINUXDOC],[ 1267AC_REQUIRE([XORG_CHECK_SGML_DOCTOOLS]) 1268AC_REQUIRE([XORG_WITH_PS2PDF]) 1269 1270AC_PATH_PROG(LINUXDOC, linuxdoc) 1271 1272AC_MSG_CHECKING([whether to build documentation]) 1273 1274if test x$XORG_SGML_PATH != x && test x$LINUXDOC != x ; then 1275 BUILDDOC=yes 1276else 1277 BUILDDOC=no 1278fi 1279 1280AM_CONDITIONAL(BUILD_LINUXDOC, [test x$BUILDDOC = xyes]) 1281 1282AC_MSG_RESULT([$BUILDDOC]) 1283 1284AC_MSG_CHECKING([whether to build pdf documentation]) 1285 1286if test x$have_ps2pdf != xno && test x$BUILD_PDFDOC != xno; then 1287 BUILDPDFDOC=yes 1288else 1289 BUILDPDFDOC=no 1290fi 1291 1292AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) 1293 1294AC_MSG_RESULT([$BUILDPDFDOC]) 1295 1296MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt -f" 1297MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps" 1298MAKE_PDF="$PS2PDF" 1299MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0" 1300 1301AC_SUBST(MAKE_TEXT) 1302AC_SUBST(MAKE_PS) 1303AC_SUBST(MAKE_PDF) 1304AC_SUBST(MAKE_HTML) 1305]) # XORG_CHECK_LINUXDOC 1306 1307# XORG_CHECK_DOCBOOK 1308# ------------------- 1309# Minimum version: 1.0.0 1310# 1311# Checks for the ability to build output formats from SGML DocBook source. 1312# For XXX in {TXT, PDF, PS, HTML}, the AM_CONDITIONAL "BUILD_XXXDOC" 1313# indicates whether the necessary tools and files are found and, if set, 1314# $(MAKE_XXX) blah.sgml will produce blah.xxx. 1315AC_DEFUN([XORG_CHECK_DOCBOOK],[ 1316AC_REQUIRE([XORG_CHECK_SGML_DOCTOOLS]) 1317 1318BUILDTXTDOC=no 1319BUILDPDFDOC=no 1320BUILDPSDOC=no 1321BUILDHTMLDOC=no 1322 1323AC_PATH_PROG(DOCBOOKPS, docbook2ps) 1324AC_PATH_PROG(DOCBOOKPDF, docbook2pdf) 1325AC_PATH_PROG(DOCBOOKHTML, docbook2html) 1326AC_PATH_PROG(DOCBOOKTXT, docbook2txt) 1327 1328AC_MSG_CHECKING([whether to build text documentation]) 1329if test x$XORG_SGML_PATH != x && test x$DOCBOOKTXT != x && 1330 test x$BUILD_TXTDOC != xno; then 1331 BUILDTXTDOC=yes 1332fi 1333AM_CONDITIONAL(BUILD_TXTDOC, [test x$BUILDTXTDOC = xyes]) 1334AC_MSG_RESULT([$BUILDTXTDOC]) 1335 1336AC_MSG_CHECKING([whether to build PDF documentation]) 1337if test x$XORG_SGML_PATH != x && test x$DOCBOOKPDF != x && 1338 test x$BUILD_PDFDOC != xno; then 1339 BUILDPDFDOC=yes 1340fi 1341AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) 1342AC_MSG_RESULT([$BUILDPDFDOC]) 1343 1344AC_MSG_CHECKING([whether to build PostScript documentation]) 1345if test x$XORG_SGML_PATH != x && test x$DOCBOOKPS != x && 1346 test x$BUILD_PSDOC != xno; then 1347 BUILDPSDOC=yes 1348fi 1349AM_CONDITIONAL(BUILD_PSDOC, [test x$BUILDPSDOC = xyes]) 1350AC_MSG_RESULT([$BUILDPSDOC]) 1351 1352AC_MSG_CHECKING([whether to build HTML documentation]) 1353if test x$XORG_SGML_PATH != x && test x$DOCBOOKHTML != x && 1354 test x$BUILD_HTMLDOC != xno; then 1355 BUILDHTMLDOC=yes 1356fi 1357AM_CONDITIONAL(BUILD_HTMLDOC, [test x$BUILDHTMLDOC = xyes]) 1358AC_MSG_RESULT([$BUILDHTMLDOC]) 1359 1360MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKTXT" 1361MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPS" 1362MAKE_PDF="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPDF" 1363MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKHTML" 1364 1365AC_SUBST(MAKE_TEXT) 1366AC_SUBST(MAKE_PS) 1367AC_SUBST(MAKE_PDF) 1368AC_SUBST(MAKE_HTML) 1369]) # XORG_CHECK_DOCBOOK 1370 1371# XORG_WITH_XMLTO([MIN-VERSION]) 1372# ---------------- 1373# Minimum version: 1.5.0 1374# 1375# Documentation tools are not always available on all platforms and sometimes 1376# not at the appropriate level. This macro enables a module to test for the 1377# presence of the tool and obtain it's path in separate variables. Coupled with 1378# the --with-xmlto option, it allows maximum flexibilty in making decisions 1379# as whether or not to use the xmlto package. 1380# 1381# Interface to module: 1382# HAVE_XMLTO: used in makefiles to conditionally generate documentation 1383# XMLTO: returns the path of the xmlto program found 1384# returns the path set by the user in the environment 1385# --with-xmlto: 'yes' user instructs the module to use xmlto 1386# 'no' user instructs the module not to use xmlto 1387# 1388# If the user sets the value of XMLTO, AC_PATH_PROG skips testing the path. 1389# 1390AC_DEFUN([XORG_WITH_XMLTO],[ 1391AC_ARG_VAR([XMLTO], [Path to xmlto command]) 1392AC_ARG_WITH(xmlto, 1393 AS_HELP_STRING([--with-xmlto], 1394 [Use xmlto to regenerate documentation (default: yes, if installed)]), 1395 [use_xmlto=$withval], [use_xmlto=auto]) 1396 1397if test "x$use_xmlto" = x"auto"; then 1398 AC_PATH_PROG([XMLTO], [xmlto]) 1399 if test "x$XMLTO" = "x"; then 1400 AC_MSG_WARN([xmlto not found - documentation targets will be skipped]) 1401 have_xmlto=no 1402 else 1403 have_xmlto=yes 1404 fi 1405elif test "x$use_xmlto" = x"yes" ; then 1406 AC_PATH_PROG([XMLTO], [xmlto]) 1407 if test "x$XMLTO" = "x"; then 1408 AC_MSG_ERROR([--with-xmlto=yes specified but xmlto not found in PATH]) 1409 fi 1410 have_xmlto=yes 1411elif test "x$use_xmlto" = x"no" ; then 1412 if test "x$XMLTO" != "x"; then 1413 AC_MSG_WARN([ignoring XMLTO environment variable since --with-xmlto=no was specified]) 1414 fi 1415 have_xmlto=no 1416else 1417 AC_MSG_ERROR([--with-xmlto expects 'yes' or 'no']) 1418fi 1419m4_ifval([$1], 1420[if test "$have_xmlto" = yes; then 1421 # scrape the xmlto version 1422 AC_MSG_CHECKING([the xmlto version]) 1423 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 1424 AC_MSG_RESULT([$xmlto_version]) 1425 AS_VERSION_COMPARE([$xmlto_version], [$1], 1426 [if test "x$use_xmlto" = xauto; then 1427 AC_MSG_WARN([xmlto version $xmlto_version found, but $1 needed]) 1428 have_xmlto=no 1429 else 1430 AC_MSG_ERROR([xmlto version $xmlto_version found, but $1 needed]) 1431 fi]) 1432fi]) 1433AM_CONDITIONAL([HAVE_XMLTO], [test "$have_xmlto" = yes]) 1434]) # XORG_WITH_XMLTO 1435 1436# XORG_WITH_ASCIIDOC([MIN-VERSION]) 1437# ---------------- 1438# Minimum version: 1.5.0 1439# 1440# Documentation tools are not always available on all platforms and sometimes 1441# not at the appropriate level. This macro enables a module to test for the 1442# presence of the tool and obtain it's path in separate variables. Coupled with 1443# the --with-asciidoc option, it allows maximum flexibilty in making decisions 1444# as whether or not to use the asciidoc package. 1445# 1446# Interface to module: 1447# HAVE_ASCIIDOC: used in makefiles to conditionally generate documentation 1448# ASCIIDOC: returns the path of the asciidoc program found 1449# returns the path set by the user in the environment 1450# --with-asciidoc: 'yes' user instructs the module to use asciidoc 1451# 'no' user instructs the module not to use asciidoc 1452# 1453# If the user sets the value of ASCIIDOC, AC_PATH_PROG skips testing the path. 1454# 1455AC_DEFUN([XORG_WITH_ASCIIDOC],[ 1456AC_ARG_VAR([ASCIIDOC], [Path to asciidoc command]) 1457AC_ARG_WITH(asciidoc, 1458 AS_HELP_STRING([--with-asciidoc], 1459 [Use asciidoc to regenerate documentation (default: yes, if installed)]), 1460 [use_asciidoc=$withval], [use_asciidoc=auto]) 1461 1462if test "x$use_asciidoc" = x"auto"; then 1463 AC_PATH_PROG([ASCIIDOC], [asciidoc]) 1464 if test "x$ASCIIDOC" = "x"; then 1465 AC_MSG_WARN([asciidoc not found - documentation targets will be skipped]) 1466 have_asciidoc=no 1467 else 1468 have_asciidoc=yes 1469 fi 1470elif test "x$use_asciidoc" = x"yes" ; then 1471 AC_PATH_PROG([ASCIIDOC], [asciidoc]) 1472 if test "x$ASCIIDOC" = "x"; then 1473 AC_MSG_ERROR([--with-asciidoc=yes specified but asciidoc not found in PATH]) 1474 fi 1475 have_asciidoc=yes 1476elif test "x$use_asciidoc" = x"no" ; then 1477 if test "x$ASCIIDOC" != "x"; then 1478 AC_MSG_WARN([ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified]) 1479 fi 1480 have_asciidoc=no 1481else 1482 AC_MSG_ERROR([--with-asciidoc expects 'yes' or 'no']) 1483fi 1484m4_ifval([$1], 1485[if test "$have_asciidoc" = yes; then 1486 # scrape the asciidoc version 1487 AC_MSG_CHECKING([the asciidoc version]) 1488 asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2` 1489 AC_MSG_RESULT([$asciidoc_version]) 1490 AS_VERSION_COMPARE([$asciidoc_version], [$1], 1491 [if test "x$use_asciidoc" = xauto; then 1492 AC_MSG_WARN([asciidoc version $asciidoc_version found, but $1 needed]) 1493 have_asciidoc=no 1494 else 1495 AC_MSG_ERROR([asciidoc version $asciidoc_version found, but $1 needed]) 1496 fi]) 1497fi]) 1498AM_CONDITIONAL([HAVE_ASCIIDOC], [test "$have_asciidoc" = yes]) 1499]) # XORG_WITH_ASCIIDOC 1500 1501# XORG_WITH_DOXYGEN([MIN-VERSION]) 1502# -------------------------------- 1503# Minimum version: 1.5.0 1504# 1505# Documentation tools are not always available on all platforms and sometimes 1506# not at the appropriate level. This macro enables a module to test for the 1507# presence of the tool and obtain it's path in separate variables. Coupled with 1508# the --with-doxygen option, it allows maximum flexibilty in making decisions 1509# as whether or not to use the doxygen package. 1510# 1511# Interface to module: 1512# HAVE_DOXYGEN: used in makefiles to conditionally generate documentation 1513# DOXYGEN: returns the path of the doxygen program found 1514# returns the path set by the user in the environment 1515# --with-doxygen: 'yes' user instructs the module to use doxygen 1516# 'no' user instructs the module not to use doxygen 1517# 1518# If the user sets the value of DOXYGEN, AC_PATH_PROG skips testing the path. 1519# 1520AC_DEFUN([XORG_WITH_DOXYGEN],[ 1521AC_ARG_VAR([DOXYGEN], [Path to doxygen command]) 1522AC_ARG_WITH(doxygen, 1523 AS_HELP_STRING([--with-doxygen], 1524 [Use doxygen to regenerate documentation (default: yes, if installed)]), 1525 [use_doxygen=$withval], [use_doxygen=auto]) 1526 1527if test "x$use_doxygen" = x"auto"; then 1528 AC_PATH_PROG([DOXYGEN], [doxygen]) 1529 if test "x$DOXYGEN" = "x"; then 1530 AC_MSG_WARN([doxygen not found - documentation targets will be skipped]) 1531 have_doxygen=no 1532 else 1533 have_doxygen=yes 1534 fi 1535elif test "x$use_doxygen" = x"yes" ; then 1536 AC_PATH_PROG([DOXYGEN], [doxygen]) 1537 if test "x$DOXYGEN" = "x"; then 1538 AC_MSG_ERROR([--with-doxygen=yes specified but doxygen not found in PATH]) 1539 fi 1540 have_doxygen=yes 1541elif test "x$use_doxygen" = x"no" ; then 1542 if test "x$DOXYGEN" != "x"; then 1543 AC_MSG_WARN([ignoring DOXYGEN environment variable since --with-doxygen=no was specified]) 1544 fi 1545 have_doxygen=no 1546else 1547 AC_MSG_ERROR([--with-doxygen expects 'yes' or 'no']) 1548fi 1549m4_ifval([$1], 1550[if test "$have_doxygen" = yes; then 1551 # scrape the doxygen version 1552 AC_MSG_CHECKING([the doxygen version]) 1553 doxygen_version=`$DOXYGEN --version 2>/dev/null` 1554 AC_MSG_RESULT([$doxygen_version]) 1555 AS_VERSION_COMPARE([$doxygen_version], [$1], 1556 [if test "x$use_doxygen" = xauto; then 1557 AC_MSG_WARN([doxygen version $doxygen_version found, but $1 needed]) 1558 have_doxygen=no 1559 else 1560 AC_MSG_ERROR([doxygen version $doxygen_version found, but $1 needed]) 1561 fi]) 1562fi]) 1563AM_CONDITIONAL([HAVE_DOXYGEN], [test "$have_doxygen" = yes]) 1564]) # XORG_WITH_DOXYGEN 1565 1566# XORG_WITH_GROFF 1567# ---------------- 1568# Minimum version: 1.6.0 1569# 1570# Documentation tools are not always available on all platforms and sometimes 1571# not at the appropriate level. This macro enables a module to test for the 1572# presence of the tool and obtain it's path in separate variables. Coupled with 1573# the --with-groff option, it allows maximum flexibilty in making decisions 1574# as whether or not to use the groff package. 1575# 1576# Interface to module: 1577# HAVE_GROFF: used in makefiles to conditionally generate documentation 1578# HAVE_GROFF_MM: the memorandum macros (-mm) package 1579# HAVE_GROFF_MS: the -ms macros package 1580# GROFF: returns the path of the groff program found 1581# returns the path set by the user in the environment 1582# --with-groff: 'yes' user instructs the module to use groff 1583# 'no' user instructs the module not to use groff 1584# 1585# If the user sets the value of GROFF, AC_PATH_PROG skips testing the path. 1586# 1587# OS and distros often splits groff in a basic and full package, the former 1588# having the groff program and the later having devices, fonts and macros 1589# Checking for the groff executable is not enough. 1590# 1591# If macros are missing, we cannot assume that groff is useless, so we don't 1592# unset HAVE_GROFF or GROFF env variables. 1593# HAVE_GROFF_?? can never be true while HAVE_GROFF is false. 1594# 1595AC_DEFUN([XORG_WITH_GROFF],[ 1596AC_ARG_VAR([GROFF], [Path to groff command]) 1597AC_ARG_WITH(groff, 1598 AS_HELP_STRING([--with-groff], 1599 [Use groff to regenerate documentation (default: yes, if installed)]), 1600 [use_groff=$withval], [use_groff=auto]) 1601 1602if test "x$use_groff" = x"auto"; then 1603 AC_PATH_PROG([GROFF], [groff]) 1604 if test "x$GROFF" = "x"; then 1605 AC_MSG_WARN([groff not found - documentation targets will be skipped]) 1606 have_groff=no 1607 else 1608 have_groff=yes 1609 fi 1610elif test "x$use_groff" = x"yes" ; then 1611 AC_PATH_PROG([GROFF], [groff]) 1612 if test "x$GROFF" = "x"; then 1613 AC_MSG_ERROR([--with-groff=yes specified but groff not found in PATH]) 1614 fi 1615 have_groff=yes 1616elif test "x$use_groff" = x"no" ; then 1617 if test "x$GROFF" != "x"; then 1618 AC_MSG_WARN([ignoring GROFF environment variable since --with-groff=no was specified]) 1619 fi 1620 have_groff=no 1621else 1622 AC_MSG_ERROR([--with-groff expects 'yes' or 'no']) 1623fi 1624# We have groff, test for the presence of the macro packages 1625if test "x$have_groff" = x"yes"; then 1626 AC_MSG_CHECKING([for ${GROFF} -ms macros]) 1627 if ${GROFF} -ms -I. /dev/null >/dev/null 2>&1 ; then 1628 groff_ms_works=yes 1629 else 1630 groff_ms_works=no 1631 fi 1632 AC_MSG_RESULT([$groff_ms_works]) 1633 AC_MSG_CHECKING([for ${GROFF} -mm macros]) 1634 if ${GROFF} -mm -I. /dev/null >/dev/null 2>&1 ; then 1635 groff_mm_works=yes 1636 else 1637 groff_mm_works=no 1638 fi 1639 AC_MSG_RESULT([$groff_mm_works]) 1640fi 1641AM_CONDITIONAL([HAVE_GROFF], [test "$have_groff" = yes]) 1642AM_CONDITIONAL([HAVE_GROFF_MS], [test "$groff_ms_works" = yes]) 1643AM_CONDITIONAL([HAVE_GROFF_MM], [test "$groff_mm_works" = yes]) 1644]) # XORG_WITH_GROFF 1645 1646# XORG_WITH_FOP 1647# ---------------- 1648# Minimum version: 1.6.0 1649# 1650# Documentation tools are not always available on all platforms and sometimes 1651# not at the appropriate level. This macro enables a module to test for the 1652# presence of the tool and obtain it's path in separate variables. Coupled with 1653# the --with-fop option, it allows maximum flexibilty in making decisions 1654# as whether or not to use the fop package. 1655# 1656# Interface to module: 1657# HAVE_FOP: used in makefiles to conditionally generate documentation 1658# FOP: returns the path of the fop program found 1659# returns the path set by the user in the environment 1660# --with-fop: 'yes' user instructs the module to use fop 1661# 'no' user instructs the module not to use fop 1662# 1663# If the user sets the value of FOP, AC_PATH_PROG skips testing the path. 1664# 1665AC_DEFUN([XORG_WITH_FOP],[ 1666AC_ARG_VAR([FOP], [Path to fop command]) 1667AC_ARG_WITH(fop, 1668 AS_HELP_STRING([--with-fop], 1669 [Use fop to regenerate documentation (default: yes, if installed)]), 1670 [use_fop=$withval], [use_fop=auto]) 1671 1672if test "x$use_fop" = x"auto"; then 1673 AC_PATH_PROG([FOP], [fop]) 1674 if test "x$FOP" = "x"; then 1675 AC_MSG_WARN([fop not found - documentation targets will be skipped]) 1676 have_fop=no 1677 else 1678 have_fop=yes 1679 fi 1680elif test "x$use_fop" = x"yes" ; then 1681 AC_PATH_PROG([FOP], [fop]) 1682 if test "x$FOP" = "x"; then 1683 AC_MSG_ERROR([--with-fop=yes specified but fop not found in PATH]) 1684 fi 1685 have_fop=yes 1686elif test "x$use_fop" = x"no" ; then 1687 if test "x$FOP" != "x"; then 1688 AC_MSG_WARN([ignoring FOP environment variable since --with-fop=no was specified]) 1689 fi 1690 have_fop=no 1691else 1692 AC_MSG_ERROR([--with-fop expects 'yes' or 'no']) 1693fi 1694AM_CONDITIONAL([HAVE_FOP], [test "$have_fop" = yes]) 1695]) # XORG_WITH_FOP 1696 1697# XORG_WITH_PS2PDF 1698# ---------------- 1699# Minimum version: 1.6.0 1700# 1701# Documentation tools are not always available on all platforms and sometimes 1702# not at the appropriate level. This macro enables a module to test for the 1703# presence of the tool and obtain it's path in separate variables. Coupled with 1704# the --with-ps2pdf option, it allows maximum flexibilty in making decisions 1705# as whether or not to use the ps2pdf package. 1706# 1707# Interface to module: 1708# HAVE_PS2PDF: used in makefiles to conditionally generate documentation 1709# PS2PDF: returns the path of the ps2pdf program found 1710# returns the path set by the user in the environment 1711# --with-ps2pdf: 'yes' user instructs the module to use ps2pdf 1712# 'no' user instructs the module not to use ps2pdf 1713# 1714# If the user sets the value of PS2PDF, AC_PATH_PROG skips testing the path. 1715# 1716AC_DEFUN([XORG_WITH_PS2PDF],[ 1717AC_ARG_VAR([PS2PDF], [Path to ps2pdf command]) 1718AC_ARG_WITH(ps2pdf, 1719 AS_HELP_STRING([--with-ps2pdf], 1720 [Use ps2pdf to regenerate documentation (default: yes, if installed)]), 1721 [use_ps2pdf=$withval], [use_ps2pdf=auto]) 1722 1723if test "x$use_ps2pdf" = x"auto"; then 1724 AC_PATH_PROG([PS2PDF], [ps2pdf]) 1725 if test "x$PS2PDF" = "x"; then 1726 AC_MSG_WARN([ps2pdf not found - documentation targets will be skipped]) 1727 have_ps2pdf=no 1728 else 1729 have_ps2pdf=yes 1730 fi 1731elif test "x$use_ps2pdf" = x"yes" ; then 1732 AC_PATH_PROG([PS2PDF], [ps2pdf]) 1733 if test "x$PS2PDF" = "x"; then 1734 AC_MSG_ERROR([--with-ps2pdf=yes specified but ps2pdf not found in PATH]) 1735 fi 1736 have_ps2pdf=yes 1737elif test "x$use_ps2pdf" = x"no" ; then 1738 if test "x$PS2PDF" != "x"; then 1739 AC_MSG_WARN([ignoring PS2PDF environment variable since --with-ps2pdf=no was specified]) 1740 fi 1741 have_ps2pdf=no 1742else 1743 AC_MSG_ERROR([--with-ps2pdf expects 'yes' or 'no']) 1744fi 1745AM_CONDITIONAL([HAVE_PS2PDF], [test "$have_ps2pdf" = yes]) 1746]) # XORG_WITH_PS2PDF 1747 1748# XORG_ENABLE_DOCS (enable_docs=yes) 1749# ---------------- 1750# Minimum version: 1.6.0 1751# 1752# Documentation tools are not always available on all platforms and sometimes 1753# not at the appropriate level. This macro enables a builder to skip all 1754# documentation targets except traditional man pages. 1755# Combined with the specific tool checking macros XORG_WITH_*, it provides 1756# maximum flexibilty in controlling documentation building. 1757# Refer to: 1758# XORG_WITH_XMLTO --with-xmlto 1759# XORG_WITH_ASCIIDOC --with-asciidoc 1760# XORG_WITH_DOXYGEN --with-doxygen 1761# XORG_WITH_FOP --with-fop 1762# XORG_WITH_GROFF --with-groff 1763# XORG_WITH_PS2PDF --with-ps2pdf 1764# 1765# Interface to module: 1766# ENABLE_DOCS: used in makefiles to conditionally generate documentation 1767# --enable-docs: 'yes' user instructs the module to generate docs 1768# 'no' user instructs the module not to generate docs 1769# parm1: specify the default value, yes or no. 1770# 1771AC_DEFUN([XORG_ENABLE_DOCS],[ 1772default=$1 1773if test "x$default" = x ; then 1774 default="yes" 1775fi 1776AC_ARG_ENABLE(docs, 1777 AS_HELP_STRING([--enable-docs], 1778 [Enable building the documentation (default: yes)]), 1779 [build_docs=$enableval], [build_docs=$default]) 1780AM_CONDITIONAL(ENABLE_DOCS, [test x$build_docs = xyes]) 1781AC_MSG_CHECKING([whether to build documentation]) 1782AC_MSG_RESULT([$build_docs]) 1783]) # XORG_ENABLE_DOCS 1784 1785# XORG_ENABLE_DEVEL_DOCS (enable_devel_docs=yes) 1786# ---------------- 1787# Minimum version: 1.6.0 1788# 1789# This macro enables a builder to skip all developer documentation. 1790# Combined with the specific tool checking macros XORG_WITH_*, it provides 1791# maximum flexibilty in controlling documentation building. 1792# Refer to: 1793# XORG_WITH_XMLTO --with-xmlto 1794# XORG_WITH_ASCIIDOC --with-asciidoc 1795# XORG_WITH_DOXYGEN --with-doxygen 1796# XORG_WITH_FOP --with-fop 1797# XORG_WITH_GROFF --with-groff 1798# XORG_WITH_PS2PDF --with-ps2pdf 1799# 1800# Interface to module: 1801# ENABLE_DEVEL_DOCS: used in makefiles to conditionally generate developer docs 1802# --enable-devel-docs: 'yes' user instructs the module to generate developer docs 1803# 'no' user instructs the module not to generate developer docs 1804# parm1: specify the default value, yes or no. 1805# 1806AC_DEFUN([XORG_ENABLE_DEVEL_DOCS],[ 1807devel_default=$1 1808if test "x$devel_default" = x ; then 1809 devel_default="yes" 1810fi 1811AC_ARG_ENABLE(devel-docs, 1812 AS_HELP_STRING([--enable-devel-docs], 1813 [Enable building the developer documentation (default: yes)]), 1814 [build_devel_docs=$enableval], [build_devel_docs=$devel_default]) 1815AM_CONDITIONAL(ENABLE_DEVEL_DOCS, [test x$build_devel_docs = xyes]) 1816AC_MSG_CHECKING([whether to build developer documentation]) 1817AC_MSG_RESULT([$build_devel_docs]) 1818]) # XORG_ENABLE_DEVEL_DOCS 1819 1820# XORG_ENABLE_SPECS (enable_specs=yes) 1821# ---------------- 1822# Minimum version: 1.6.0 1823# 1824# This macro enables a builder to skip all functional specification targets. 1825# Combined with the specific tool checking macros XORG_WITH_*, it provides 1826# maximum flexibilty in controlling documentation building. 1827# Refer to: 1828# XORG_WITH_XMLTO --with-xmlto 1829# XORG_WITH_ASCIIDOC --with-asciidoc 1830# XORG_WITH_DOXYGEN --with-doxygen 1831# XORG_WITH_FOP --with-fop 1832# XORG_WITH_GROFF --with-groff 1833# XORG_WITH_PS2PDF --with-ps2pdf 1834# 1835# Interface to module: 1836# ENABLE_SPECS: used in makefiles to conditionally generate specs 1837# --enable-specs: 'yes' user instructs the module to generate specs 1838# 'no' user instructs the module not to generate specs 1839# parm1: specify the default value, yes or no. 1840# 1841AC_DEFUN([XORG_ENABLE_SPECS],[ 1842spec_default=$1 1843if test "x$spec_default" = x ; then 1844 spec_default="yes" 1845fi 1846AC_ARG_ENABLE(specs, 1847 AS_HELP_STRING([--enable-specs], 1848 [Enable building the specs (default: yes)]), 1849 [build_specs=$enableval], [build_specs=$spec_default]) 1850AM_CONDITIONAL(ENABLE_SPECS, [test x$build_specs = xyes]) 1851AC_MSG_CHECKING([whether to build functional specifications]) 1852AC_MSG_RESULT([$build_specs]) 1853]) # XORG_ENABLE_SPECS 1854 1855# XORG_CHECK_MALLOC_ZERO 1856# ---------------------- 1857# Minimum version: 1.0.0 1858# 1859# Defines {MALLOC,XMALLOC,XTMALLOC}_ZERO_CFLAGS appropriately if 1860# malloc(0) returns NULL. Packages should add one of these cflags to 1861# their AM_CFLAGS (or other appropriate *_CFLAGS) to use them. 1862AC_DEFUN([XORG_CHECK_MALLOC_ZERO],[ 1863AC_ARG_ENABLE(malloc0returnsnull, 1864 AS_HELP_STRING([--enable-malloc0returnsnull], 1865 [malloc(0) returns NULL (default: auto)]), 1866 [MALLOC_ZERO_RETURNS_NULL=$enableval], 1867 [MALLOC_ZERO_RETURNS_NULL=auto]) 1868 1869AC_MSG_CHECKING([whether malloc(0) returns NULL]) 1870if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 1871 AC_RUN_IFELSE([ 1872char *malloc(); 1873char *realloc(); 1874char *calloc(); 1875main() { 1876 char *m0, *r0, *c0, *p; 1877 m0 = malloc(0); 1878 p = malloc(10); 1879 r0 = realloc(p,0); 1880 c0 = calloc(0); 1881 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1); 1882}], 1883 [MALLOC_ZERO_RETURNS_NULL=yes], 1884 [MALLOC_ZERO_RETURNS_NULL=no], 1885 [MALLOC_ZERO_RETURNS_NULL=yes]) 1886fi 1887AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL]) 1888 1889if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 1890 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 1891 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 1892 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 1893else 1894 MALLOC_ZERO_CFLAGS="" 1895 XMALLOC_ZERO_CFLAGS="" 1896 XTMALLOC_ZERO_CFLAGS="" 1897fi 1898 1899AC_SUBST([MALLOC_ZERO_CFLAGS]) 1900AC_SUBST([XMALLOC_ZERO_CFLAGS]) 1901AC_SUBST([XTMALLOC_ZERO_CFLAGS]) 1902]) # XORG_CHECK_MALLOC_ZERO 1903 1904# XORG_WITH_LINT() 1905# ---------------- 1906# Minimum version: 1.1.0 1907# 1908# This macro enables the use of a tool that flags some suspicious and 1909# non-portable constructs (likely to be bugs) in C language source code. 1910# It will attempt to locate the tool and use appropriate options. 1911# There are various lint type tools on different platforms. 1912# 1913# Interface to module: 1914# LINT: returns the path to the tool found on the platform 1915# or the value set to LINT on the configure cmd line 1916# also an Automake conditional 1917# LINT_FLAGS: an Automake variable with appropriate flags 1918# 1919# --with-lint: 'yes' user instructs the module to use lint 1920# 'no' user instructs the module not to use lint (default) 1921# 1922# If the user sets the value of LINT, AC_PATH_PROG skips testing the path. 1923# If the user sets the value of LINT_FLAGS, they are used verbatim. 1924# 1925AC_DEFUN([XORG_WITH_LINT],[ 1926 1927AC_ARG_VAR([LINT], [Path to a lint-style command]) 1928AC_ARG_VAR([LINT_FLAGS], [Flags for the lint-style command]) 1929AC_ARG_WITH(lint, [AS_HELP_STRING([--with-lint], 1930 [Use a lint-style source code checker (default: disabled)])], 1931 [use_lint=$withval], [use_lint=no]) 1932 1933# Obtain platform specific info like program name and options 1934# The lint program on FreeBSD and NetBSD is different from the one on Solaris 1935case $host_os in 1936 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 1937 lint_name=splint 1938 lint_options="-badflag" 1939 ;; 1940 *freebsd* | *netbsd*) 1941 lint_name=lint 1942 lint_options="-u -b" 1943 ;; 1944 *solaris*) 1945 lint_name=lint 1946 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 1947 ;; 1948esac 1949 1950# Test for the presence of the program (either guessed by the code or spelled out by the user) 1951if test "x$use_lint" = x"yes" ; then 1952 AC_PATH_PROG([LINT], [$lint_name]) 1953 if test "x$LINT" = "x"; then 1954 AC_MSG_ERROR([--with-lint=yes specified but lint-style tool not found in PATH]) 1955 fi 1956elif test "x$use_lint" = x"no" ; then 1957 if test "x$LINT" != "x"; then 1958 AC_MSG_WARN([ignoring LINT environment variable since --with-lint=no was specified]) 1959 fi 1960else 1961 AC_MSG_ERROR([--with-lint expects 'yes' or 'no'. Use LINT variable to specify path.]) 1962fi 1963 1964# User supplied flags override default flags 1965if test "x$LINT_FLAGS" != "x"; then 1966 lint_options=$LINT_FLAGS 1967fi 1968 1969AC_SUBST([LINT_FLAGS],[$lint_options]) 1970AM_CONDITIONAL(LINT, [test "x$LINT" != x]) 1971 1972]) # XORG_WITH_LINT 1973 1974# XORG_LINT_LIBRARY(LIBNAME) 1975# -------------------------- 1976# Minimum version: 1.1.0 1977# 1978# Sets up flags for building lint libraries for checking programs that call 1979# functions in the library. 1980# 1981# Interface to module: 1982# LINTLIB - Automake variable with the name of lint library file to make 1983# MAKE_LINT_LIB - Automake conditional 1984# 1985# --enable-lint-library: - 'yes' user instructs the module to created a lint library 1986# - 'no' user instructs the module not to create a lint library (default) 1987 1988AC_DEFUN([XORG_LINT_LIBRARY],[ 1989AC_REQUIRE([XORG_WITH_LINT]) 1990AC_ARG_ENABLE(lint-library, [AS_HELP_STRING([--enable-lint-library], 1991 [Create lint library (default: disabled)])], 1992 [make_lint_lib=$enableval], [make_lint_lib=no]) 1993 1994if test "x$make_lint_lib" = x"yes" ; then 1995 LINTLIB=llib-l$1.ln 1996 if test "x$LINT" = "x"; then 1997 AC_MSG_ERROR([Cannot make lint library without --with-lint]) 1998 fi 1999elif test "x$make_lint_lib" != x"no" ; then 2000 AC_MSG_ERROR([--enable-lint-library expects 'yes' or 'no'.]) 2001fi 2002 2003AC_SUBST(LINTLIB) 2004AM_CONDITIONAL(MAKE_LINT_LIB, [test x$make_lint_lib != xno]) 2005 2006]) # XORG_LINT_LIBRARY 2007 2008# XORG_CWARNFLAGS 2009# --------------- 2010# Minimum version: 1.2.0 2011# 2012# Defines CWARNFLAGS to enable C compiler warnings. 2013# 2014AC_DEFUN([XORG_CWARNFLAGS], [ 2015AC_REQUIRE([AC_PROG_CC_C99]) 2016if test "x$GCC" = xyes ; then 2017 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 2018-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 2019-Wbad-function-cast -Wformat=2" 2020 case `$CC -dumpversion` in 2021 3.4.* | 4.*) 2022 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 2023 ;; 2024 esac 2025else 2026 AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) 2027 if test "x$SUNCC" = "xyes"; then 2028 CWARNFLAGS="-v" 2029 fi 2030fi 2031AC_SUBST(CWARNFLAGS) 2032]) # XORG_CWARNFLAGS 2033 2034# XORG_STRICT_OPTION 2035# ----------------------- 2036# Minimum version: 1.3.0 2037# 2038# Add configure option to enable strict compilation 2039AC_DEFUN([XORG_STRICT_OPTION], [ 2040# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 2041AC_REQUIRE([AC_PROG_CC_C99]) 2042AC_REQUIRE([XORG_CWARNFLAGS]) 2043 2044AC_ARG_ENABLE(strict-compilation, 2045 AS_HELP_STRING([--enable-strict-compilation], 2046 [Enable all warnings from compiler and make them errors (default: disabled)]), 2047 [STRICT_COMPILE=$enableval], [STRICT_COMPILE=no]) 2048if test "x$STRICT_COMPILE" = "xyes"; then 2049 AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) 2050 AC_CHECK_DECL([__INTEL_COMPILER], [INTELCC="yes"], [INTELCC="no"]) 2051 if test "x$GCC" = xyes ; then 2052 STRICT_CFLAGS="-pedantic -Werror" 2053 elif test "x$SUNCC" = "xyes"; then 2054 STRICT_CFLAGS="-errwarn" 2055 elif test "x$INTELCC" = "xyes"; then 2056 STRICT_CFLAGS="-Werror" 2057 fi 2058fi 2059CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 2060AC_SUBST([CWARNFLAGS]) 2061]) # XORG_STRICT_OPTION 2062 2063# XORG_DEFAULT_OPTIONS 2064# -------------------- 2065# Minimum version: 1.3.0 2066# 2067# Defines default options for X.Org modules. 2068# 2069AC_DEFUN([XORG_DEFAULT_OPTIONS], [ 2070AC_REQUIRE([AC_PROG_INSTALL]) 2071XORG_CWARNFLAGS 2072XORG_STRICT_OPTION 2073XORG_RELEASE_VERSION 2074XORG_CHANGELOG 2075XORG_INSTALL 2076XORG_MANPAGE_SECTIONS 2077m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])], 2078 [AC_SUBST([AM_DEFAULT_VERBOSITY], [1])]) 2079]) # XORG_DEFAULT_OPTIONS 2080 2081# XORG_INSTALL() 2082# ---------------- 2083# Minimum version: 1.4.0 2084# 2085# Defines the variable INSTALL_CMD as the command to copy 2086# INSTALL from $prefix/share/util-macros. 2087# 2088AC_DEFUN([XORG_INSTALL], [ 2089AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 2090macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 2091INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 2092mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 2093|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 2094echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 2095AC_SUBST([INSTALL_CMD]) 2096]) # XORG_INSTALL 2097dnl Copyright 2005 Red Hat, Inc 2098dnl 2099dnl Permission to use, copy, modify, distribute, and sell this software and its 2100dnl documentation for any purpose is hereby granted without fee, provided that 2101dnl the above copyright notice appear in all copies and that both that 2102dnl copyright notice and this permission notice appear in supporting 2103dnl documentation. 2104dnl 2105dnl The above copyright notice and this permission notice shall be included 2106dnl in all copies or substantial portions of the Software. 2107dnl 2108dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 2109dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 2110dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 2111dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 2112dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 2113dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 2114dnl OTHER DEALINGS IN THE SOFTWARE. 2115dnl 2116dnl Except as contained in this notice, the name of the copyright holders shall 2117dnl not be used in advertising or otherwise to promote the sale, use or 2118dnl other dealings in this Software without prior written authorization 2119dnl from the copyright holders. 2120dnl 2121 2122# XORG_RELEASE_VERSION 2123# -------------------- 2124# Defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use. 2125 2126AC_DEFUN([XORG_RELEASE_VERSION],[ 2127 AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR], 2128 [`echo $PACKAGE_VERSION | cut -d . -f 1`], 2129 [Major version of this package]) 2130 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 2131 if test "x$PVM" = "x"; then 2132 PVM="0" 2133 fi 2134 AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR], 2135 [$PVM], 2136 [Minor version of this package]) 2137 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 2138 if test "x$PVP" = "x"; then 2139 PVP="0" 2140 fi 2141 AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL], 2142 [$PVP], 2143 [Patch version of this package]) 2144]) 2145 2146# XORG_CHANGELOG() 2147# ---------------- 2148# Minimum version: 1.2.0 2149# 2150# Defines the variable CHANGELOG_CMD as the command to generate 2151# ChangeLog from git. 2152# 2153# 2154AC_DEFUN([XORG_CHANGELOG], [ 2155CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 2156mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 2157|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 2158echo 'git directory not found: installing possibly empty changelog.' >&2)" 2159AC_SUBST([CHANGELOG_CMD]) 2160]) # XORG_CHANGELOG 2161 2162# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 2163# 2164# Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 2165# 2166# This program is free software; you can redistribute it and/or modify 2167# it under the terms of the GNU General Public License as published by 2168# the Free Software Foundation; either version 2 of the License, or 2169# (at your option) any later version. 2170# 2171# This program is distributed in the hope that it will be useful, but 2172# WITHOUT ANY WARRANTY; without even the implied warranty of 2173# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 2174# General Public License for more details. 2175# 2176# You should have received a copy of the GNU General Public License 2177# along with this program; if not, write to the Free Software 2178# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 2179# 2180# As a special exception to the GNU General Public License, if you 2181# distribute this file as part of a program that contains a 2182# configuration script generated by Autoconf, you may include it under 2183# the same distribution terms that you use for the rest of that program. 2184 2185# PKG_PROG_PKG_CONFIG([MIN-VERSION]) 2186# ---------------------------------- 2187AC_DEFUN([PKG_PROG_PKG_CONFIG], 2188[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) 2189m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) 2190AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl 2191if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 2192 AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) 2193fi 2194if test -n "$PKG_CONFIG"; then 2195 _pkg_min_version=m4_default([$1], [0.9.0]) 2196 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) 2197 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 2198 AC_MSG_RESULT([yes]) 2199 else 2200 AC_MSG_RESULT([no]) 2201 PKG_CONFIG="" 2202 fi 2203 2204fi[]dnl 2205])# PKG_PROG_PKG_CONFIG 2206 2207# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 2208# 2209# Check to see whether a particular set of modules exists. Similar 2210# to PKG_CHECK_MODULES(), but does not set variables or print errors. 2211# 2212# 2213# Similar to PKG_CHECK_MODULES, make sure that the first instance of 2214# this or PKG_CHECK_MODULES is called, or make sure to call 2215# PKG_CHECK_EXISTS manually 2216# -------------------------------------------------------------- 2217AC_DEFUN([PKG_CHECK_EXISTS], 2218[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 2219if test -n "$PKG_CONFIG" && \ 2220 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then 2221 m4_ifval([$2], [$2], [:]) 2222m4_ifvaln([$3], [else 2223 $3])dnl 2224fi]) 2225 2226 2227# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 2228# --------------------------------------------- 2229m4_define([_PKG_CONFIG], 2230[if test -n "$$1"; then 2231 pkg_cv_[]$1="$$1" 2232 elif test -n "$PKG_CONFIG"; then 2233 PKG_CHECK_EXISTS([$3], 2234 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], 2235 [pkg_failed=yes]) 2236 else 2237 pkg_failed=untried 2238fi[]dnl 2239])# _PKG_CONFIG 2240 2241# _PKG_SHORT_ERRORS_SUPPORTED 2242# ----------------------------- 2243AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], 2244[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 2245if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 2246 _pkg_short_errors_supported=yes 2247else 2248 _pkg_short_errors_supported=no 2249fi[]dnl 2250])# _PKG_SHORT_ERRORS_SUPPORTED 2251 2252 2253# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 2254# [ACTION-IF-NOT-FOUND]) 2255# 2256# 2257# Note that if there is a possibility the first call to 2258# PKG_CHECK_MODULES might not happen, you should be sure to include an 2259# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 2260# 2261# 2262# -------------------------------------------------------------- 2263AC_DEFUN([PKG_CHECK_MODULES], 2264[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 2265AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl 2266AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl 2267 2268pkg_failed=no 2269AC_MSG_CHECKING([for $1]) 2270 2271_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) 2272_PKG_CONFIG([$1][_LIBS], [libs], [$2]) 2273 2274m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS 2275and $1[]_LIBS to avoid the need to call pkg-config. 2276See the pkg-config man page for more details.]) 2277 2278if test $pkg_failed = yes; then 2279 _PKG_SHORT_ERRORS_SUPPORTED 2280 if test $_pkg_short_errors_supported = yes; then 2281 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` 2282 else 2283 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1` 2284 fi 2285 # Put the nasty error message in config.log where it belongs 2286 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD 2287 2288 ifelse([$4], , [AC_MSG_ERROR(dnl 2289[Package requirements ($2) were not met: 2290 2291$$1_PKG_ERRORS 2292 2293Consider adjusting the PKG_CONFIG_PATH environment variable if you 2294installed software in a non-standard prefix. 2295 2296_PKG_TEXT 2297])], 2298 [AC_MSG_RESULT([no]) 2299 $4]) 2300elif test $pkg_failed = untried; then 2301 ifelse([$4], , [AC_MSG_FAILURE(dnl 2302[The pkg-config script could not be found or is too old. Make sure it 2303is in your PATH or set the PKG_CONFIG environment variable to the full 2304path to pkg-config. 2305 2306_PKG_TEXT 2307 2308To get pkg-config, see <http://pkg-config.freedesktop.org/>.])], 2309 [$4]) 2310else 2311 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS 2312 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS 2313 AC_MSG_RESULT([yes]) 2314 ifelse([$3], , :, [$3]) 2315fi[]dnl 2316])# PKG_CHECK_MODULES 2317 2318# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 2319# 2320# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2321# 2006, 2007, 2008 Free Software Foundation, Inc. 2322# Written by Gordon Matzigkeit, 1996 2323# 2324# This file is free software; the Free Software Foundation gives 2325# unlimited permission to copy and/or distribute it, with or without 2326# modifications, as long as this notice is preserved. 2327 2328m4_define([_LT_COPYING], [dnl 2329# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2330# 2006, 2007, 2008 Free Software Foundation, Inc. 2331# Written by Gordon Matzigkeit, 1996 2332# 2333# This file is part of GNU Libtool. 2334# 2335# GNU Libtool is free software; you can redistribute it and/or 2336# modify it under the terms of the GNU General Public License as 2337# published by the Free Software Foundation; either version 2 of 2338# the License, or (at your option) any later version. 2339# 2340# As a special exception to the GNU General Public License, 2341# if you distribute this file as part of a program or library that 2342# is built using GNU Libtool, you may include this file under the 2343# same distribution terms that you use for the rest of that program. 2344# 2345# GNU Libtool is distributed in the hope that it will be useful, 2346# but WITHOUT ANY WARRANTY; without even the implied warranty of 2347# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 2348# GNU General Public License for more details. 2349# 2350# You should have received a copy of the GNU General Public License 2351# along with GNU Libtool; see the file COPYING. If not, a copy 2352# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 2353# obtained by writing to the Free Software Foundation, Inc., 2354# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 2355]) 2356 2357# serial 56 LT_INIT 2358 2359 2360# LT_PREREQ(VERSION) 2361# ------------------ 2362# Complain and exit if this libtool version is less that VERSION. 2363m4_defun([LT_PREREQ], 2364[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, 2365 [m4_default([$3], 2366 [m4_fatal([Libtool version $1 or higher is required], 2367 63)])], 2368 [$2])]) 2369 2370 2371# _LT_CHECK_BUILDDIR 2372# ------------------ 2373# Complain if the absolute build directory name contains unusual characters 2374m4_defun([_LT_CHECK_BUILDDIR], 2375[case `pwd` in 2376 *\ * | *\ *) 2377 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; 2378esac 2379]) 2380 2381 2382# LT_INIT([OPTIONS]) 2383# ------------------ 2384AC_DEFUN([LT_INIT], 2385[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT 2386AC_BEFORE([$0], [LT_LANG])dnl 2387AC_BEFORE([$0], [LT_OUTPUT])dnl 2388AC_BEFORE([$0], [LTDL_INIT])dnl 2389m4_require([_LT_CHECK_BUILDDIR])dnl 2390 2391dnl Autoconf doesn't catch unexpanded LT_ macros by default: 2392m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl 2393m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl 2394dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 2395dnl unless we require an AC_DEFUNed macro: 2396AC_REQUIRE([LTOPTIONS_VERSION])dnl 2397AC_REQUIRE([LTSUGAR_VERSION])dnl 2398AC_REQUIRE([LTVERSION_VERSION])dnl 2399AC_REQUIRE([LTOBSOLETE_VERSION])dnl 2400m4_require([_LT_PROG_LTMAIN])dnl 2401 2402dnl Parse OPTIONS 2403_LT_SET_OPTIONS([$0], [$1]) 2404 2405# This can be used to rebuild libtool when needed 2406LIBTOOL_DEPS="$ltmain" 2407 2408# Always use our own libtool. 2409LIBTOOL='$(SHELL) $(top_builddir)/libtool' 2410AC_SUBST(LIBTOOL)dnl 2411 2412_LT_SETUP 2413 2414# Only expand once: 2415m4_define([LT_INIT]) 2416])# LT_INIT 2417 2418# Old names: 2419AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) 2420AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) 2421dnl aclocal-1.4 backwards compatibility: 2422dnl AC_DEFUN([AC_PROG_LIBTOOL], []) 2423dnl AC_DEFUN([AM_PROG_LIBTOOL], []) 2424 2425 2426# _LT_CC_BASENAME(CC) 2427# ------------------- 2428# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 2429m4_defun([_LT_CC_BASENAME], 2430[for cc_temp in $1""; do 2431 case $cc_temp in 2432 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 2433 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 2434 \-*) ;; 2435 *) break;; 2436 esac 2437done 2438cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 2439]) 2440 2441 2442# _LT_FILEUTILS_DEFAULTS 2443# ---------------------- 2444# It is okay to use these file commands and assume they have been set 2445# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. 2446m4_defun([_LT_FILEUTILS_DEFAULTS], 2447[: ${CP="cp -f"} 2448: ${MV="mv -f"} 2449: ${RM="rm -f"} 2450])# _LT_FILEUTILS_DEFAULTS 2451 2452 2453# _LT_SETUP 2454# --------- 2455m4_defun([_LT_SETUP], 2456[AC_REQUIRE([AC_CANONICAL_HOST])dnl 2457AC_REQUIRE([AC_CANONICAL_BUILD])dnl 2458_LT_DECL([], [host_alias], [0], [The host system])dnl 2459_LT_DECL([], [host], [0])dnl 2460_LT_DECL([], [host_os], [0])dnl 2461dnl 2462_LT_DECL([], [build_alias], [0], [The build system])dnl 2463_LT_DECL([], [build], [0])dnl 2464_LT_DECL([], [build_os], [0])dnl 2465dnl 2466AC_REQUIRE([AC_PROG_CC])dnl 2467AC_REQUIRE([LT_PATH_LD])dnl 2468AC_REQUIRE([LT_PATH_NM])dnl 2469dnl 2470AC_REQUIRE([AC_PROG_LN_S])dnl 2471test -z "$LN_S" && LN_S="ln -s" 2472_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl 2473dnl 2474AC_REQUIRE([LT_CMD_MAX_LEN])dnl 2475_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl 2476_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl 2477dnl 2478m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2479m4_require([_LT_CHECK_SHELL_FEATURES])dnl 2480m4_require([_LT_CMD_RELOAD])dnl 2481m4_require([_LT_CHECK_MAGIC_METHOD])dnl 2482m4_require([_LT_CMD_OLD_ARCHIVE])dnl 2483m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 2484 2485_LT_CONFIG_LIBTOOL_INIT([ 2486# See if we are running on zsh, and set the options which allow our 2487# commands through without removal of \ escapes INIT. 2488if test -n "\${ZSH_VERSION+set}" ; then 2489 setopt NO_GLOB_SUBST 2490fi 2491]) 2492if test -n "${ZSH_VERSION+set}" ; then 2493 setopt NO_GLOB_SUBST 2494fi 2495 2496_LT_CHECK_OBJDIR 2497 2498m4_require([_LT_TAG_COMPILER])dnl 2499_LT_PROG_ECHO_BACKSLASH 2500 2501case $host_os in 2502aix3*) 2503 # AIX sometimes has problems with the GCC collect2 program. For some 2504 # reason, if we set the COLLECT_NAMES environment variable, the problems 2505 # vanish in a puff of smoke. 2506 if test "X${COLLECT_NAMES+set}" != Xset; then 2507 COLLECT_NAMES= 2508 export COLLECT_NAMES 2509 fi 2510 ;; 2511esac 2512 2513# Sed substitution that helps us do robust quoting. It backslashifies 2514# metacharacters that are still active within double-quoted strings. 2515sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' 2516 2517# Same as above, but do not quote variable references. 2518double_quote_subst='s/\([["`\\]]\)/\\\1/g' 2519 2520# Sed substitution to delay expansion of an escaped shell variable in a 2521# double_quote_subst'ed string. 2522delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2523 2524# Sed substitution to delay expansion of an escaped single quote. 2525delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2526 2527# Sed substitution to avoid accidental globbing in evaled expressions 2528no_glob_subst='s/\*/\\\*/g' 2529 2530# Global variables: 2531ofile=libtool 2532can_build_shared=yes 2533 2534# All known linkers require a `.a' archive for static linking (except MSVC, 2535# which needs '.lib'). 2536libext=a 2537 2538with_gnu_ld="$lt_cv_prog_gnu_ld" 2539 2540old_CC="$CC" 2541old_CFLAGS="$CFLAGS" 2542 2543# Set sane defaults for various variables 2544test -z "$CC" && CC=cc 2545test -z "$LTCC" && LTCC=$CC 2546test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 2547test -z "$LD" && LD=ld 2548test -z "$ac_objext" && ac_objext=o 2549 2550_LT_CC_BASENAME([$compiler]) 2551 2552# Only perform the check for file, if the check method requires it 2553test -z "$MAGIC_CMD" && MAGIC_CMD=file 2554case $deplibs_check_method in 2555file_magic*) 2556 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 2557 _LT_PATH_MAGIC 2558 fi 2559 ;; 2560esac 2561 2562# Use C for the default configuration in the libtool script 2563LT_SUPPORTED_TAG([CC]) 2564_LT_LANG_C_CONFIG 2565_LT_LANG_DEFAULT_CONFIG 2566_LT_CONFIG_COMMANDS 2567])# _LT_SETUP 2568 2569 2570# _LT_PROG_LTMAIN 2571# --------------- 2572# Note that this code is called both from `configure', and `config.status' 2573# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 2574# `config.status' has no value for ac_aux_dir unless we are using Automake, 2575# so we pass a copy along to make sure it has a sensible value anyway. 2576m4_defun([_LT_PROG_LTMAIN], 2577[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 2578_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) 2579ltmain="$ac_aux_dir/ltmain.sh" 2580])# _LT_PROG_LTMAIN 2581 2582 2583 2584# So that we can recreate a full libtool script including additional 2585# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 2586# in macros and then make a single call at the end using the `libtool' 2587# label. 2588 2589 2590# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 2591# ---------------------------------------- 2592# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 2593m4_define([_LT_CONFIG_LIBTOOL_INIT], 2594[m4_ifval([$1], 2595 [m4_append([_LT_OUTPUT_LIBTOOL_INIT], 2596 [$1 2597])])]) 2598 2599# Initialize. 2600m4_define([_LT_OUTPUT_LIBTOOL_INIT]) 2601 2602 2603# _LT_CONFIG_LIBTOOL([COMMANDS]) 2604# ------------------------------ 2605# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. 2606m4_define([_LT_CONFIG_LIBTOOL], 2607[m4_ifval([$1], 2608 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], 2609 [$1 2610])])]) 2611 2612# Initialize. 2613m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) 2614 2615 2616# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) 2617# ----------------------------------------------------- 2618m4_defun([_LT_CONFIG_SAVE_COMMANDS], 2619[_LT_CONFIG_LIBTOOL([$1]) 2620_LT_CONFIG_LIBTOOL_INIT([$2]) 2621]) 2622 2623 2624# _LT_FORMAT_COMMENT([COMMENT]) 2625# ----------------------------- 2626# Add leading comment marks to the start of each line, and a trailing 2627# full-stop to the whole comment if one is not present already. 2628m4_define([_LT_FORMAT_COMMENT], 2629[m4_ifval([$1], [ 2630m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], 2631 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) 2632)]) 2633 2634 2635 2636 2637 2638# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) 2639# ------------------------------------------------------------------- 2640# CONFIGNAME is the name given to the value in the libtool script. 2641# VARNAME is the (base) name used in the configure script. 2642# VALUE may be 0, 1 or 2 for a computed quote escaped value based on 2643# VARNAME. Any other value will be used directly. 2644m4_define([_LT_DECL], 2645[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], 2646 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], 2647 [m4_ifval([$1], [$1], [$2])]) 2648 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) 2649 m4_ifval([$4], 2650 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) 2651 lt_dict_add_subkey([lt_decl_dict], [$2], 2652 [tagged?], [m4_ifval([$5], [yes], [no])])]) 2653]) 2654 2655 2656# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) 2657# -------------------------------------------------------- 2658m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) 2659 2660 2661# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) 2662# ------------------------------------------------ 2663m4_define([lt_decl_tag_varnames], 2664[_lt_decl_filter([tagged?], [yes], $@)]) 2665 2666 2667# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) 2668# --------------------------------------------------------- 2669m4_define([_lt_decl_filter], 2670[m4_case([$#], 2671 [0], [m4_fatal([$0: too few arguments: $#])], 2672 [1], [m4_fatal([$0: too few arguments: $#: $1])], 2673 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], 2674 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], 2675 [lt_dict_filter([lt_decl_dict], $@)])[]dnl 2676]) 2677 2678 2679# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) 2680# -------------------------------------------------- 2681m4_define([lt_decl_quote_varnames], 2682[_lt_decl_filter([value], [1], $@)]) 2683 2684 2685# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) 2686# --------------------------------------------------- 2687m4_define([lt_decl_dquote_varnames], 2688[_lt_decl_filter([value], [2], $@)]) 2689 2690 2691# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) 2692# --------------------------------------------------- 2693m4_define([lt_decl_varnames_tagged], 2694[m4_assert([$# <= 2])dnl 2695_$0(m4_quote(m4_default([$1], [[, ]])), 2696 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), 2697 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) 2698m4_define([_lt_decl_varnames_tagged], 2699[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) 2700 2701 2702# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) 2703# ------------------------------------------------ 2704m4_define([lt_decl_all_varnames], 2705[_$0(m4_quote(m4_default([$1], [[, ]])), 2706 m4_if([$2], [], 2707 m4_quote(lt_decl_varnames), 2708 m4_quote(m4_shift($@))))[]dnl 2709]) 2710m4_define([_lt_decl_all_varnames], 2711[lt_join($@, lt_decl_varnames_tagged([$1], 2712 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl 2713]) 2714 2715 2716# _LT_CONFIG_STATUS_DECLARE([VARNAME]) 2717# ------------------------------------ 2718# Quote a variable value, and forward it to `config.status' so that its 2719# declaration there will have the same value as in `configure'. VARNAME 2720# must have a single quote delimited value for this to work. 2721m4_define([_LT_CONFIG_STATUS_DECLARE], 2722[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) 2723 2724 2725# _LT_CONFIG_STATUS_DECLARATIONS 2726# ------------------------------ 2727# We delimit libtool config variables with single quotes, so when 2728# we write them to config.status, we have to be sure to quote all 2729# embedded single quotes properly. In configure, this macro expands 2730# each variable declared with _LT_DECL (and _LT_TAGDECL) into: 2731# 2732# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`' 2733m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], 2734[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), 2735 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) 2736 2737 2738# _LT_LIBTOOL_TAGS 2739# ---------------- 2740# Output comment and list of tags supported by the script 2741m4_defun([_LT_LIBTOOL_TAGS], 2742[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl 2743available_tags="_LT_TAGS"dnl 2744]) 2745 2746 2747# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 2748# ----------------------------------- 2749# Extract the dictionary values for VARNAME (optionally with TAG) and 2750# expand to a commented shell variable setting: 2751# 2752# # Some comment about what VAR is for. 2753# visible_name=$lt_internal_name 2754m4_define([_LT_LIBTOOL_DECLARE], 2755[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], 2756 [description])))[]dnl 2757m4_pushdef([_libtool_name], 2758 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl 2759m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), 2760 [0], [_libtool_name=[$]$1], 2761 [1], [_libtool_name=$lt_[]$1], 2762 [2], [_libtool_name=$lt_[]$1], 2763 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl 2764m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl 2765]) 2766 2767 2768# _LT_LIBTOOL_CONFIG_VARS 2769# ----------------------- 2770# Produce commented declarations of non-tagged libtool config variables 2771# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' 2772# script. Tagged libtool config variables (even for the LIBTOOL CONFIG 2773# section) are produced by _LT_LIBTOOL_TAG_VARS. 2774m4_defun([_LT_LIBTOOL_CONFIG_VARS], 2775[m4_foreach([_lt_var], 2776 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), 2777 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) 2778 2779 2780# _LT_LIBTOOL_TAG_VARS(TAG) 2781# ------------------------- 2782m4_define([_LT_LIBTOOL_TAG_VARS], 2783[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), 2784 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) 2785 2786 2787# _LT_TAGVAR(VARNAME, [TAGNAME]) 2788# ------------------------------ 2789m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) 2790 2791 2792# _LT_CONFIG_COMMANDS 2793# ------------------- 2794# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 2795# variables for single and double quote escaping we saved from calls 2796# to _LT_DECL, we can put quote escaped variables declarations 2797# into `config.status', and then the shell code to quote escape them in 2798# for loops in `config.status'. Finally, any additional code accumulated 2799# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 2800m4_defun([_LT_CONFIG_COMMANDS], 2801[AC_PROVIDE_IFELSE([LT_OUTPUT], 2802 dnl If the libtool generation code has been placed in $CONFIG_LT, 2803 dnl instead of duplicating it all over again into config.status, 2804 dnl then we will have config.status run $CONFIG_LT later, so it 2805 dnl needs to know what name is stored there: 2806 [AC_CONFIG_COMMANDS([libtool], 2807 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], 2808 dnl If the libtool generation code is destined for config.status, 2809 dnl expand the accumulated commands and init code now: 2810 [AC_CONFIG_COMMANDS([libtool], 2811 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) 2812])#_LT_CONFIG_COMMANDS 2813 2814 2815# Initialize. 2816m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], 2817[ 2818 2819# The HP-UX ksh and POSIX shell print the target directory to stdout 2820# if CDPATH is set. 2821(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 2822 2823sed_quote_subst='$sed_quote_subst' 2824double_quote_subst='$double_quote_subst' 2825delay_variable_subst='$delay_variable_subst' 2826_LT_CONFIG_STATUS_DECLARATIONS 2827LTCC='$LTCC' 2828LTCFLAGS='$LTCFLAGS' 2829compiler='$compiler_DEFAULT' 2830 2831# Quote evaled strings. 2832for var in lt_decl_all_varnames([[ \ 2833]], lt_decl_quote_varnames); do 2834 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 2835 *[[\\\\\\\`\\"\\\$]]*) 2836 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 2837 ;; 2838 *) 2839 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 2840 ;; 2841 esac 2842done 2843 2844# Double-quote double-evaled strings. 2845for var in lt_decl_all_varnames([[ \ 2846]], lt_decl_dquote_varnames); do 2847 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 2848 *[[\\\\\\\`\\"\\\$]]*) 2849 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 2850 ;; 2851 *) 2852 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 2853 ;; 2854 esac 2855done 2856 2857# Fix-up fallback echo if it was mangled by the above quoting rules. 2858case \$lt_ECHO in 2859*'\\\[$]0 --fallback-echo"')dnl " 2860 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` 2861 ;; 2862esac 2863 2864_LT_OUTPUT_LIBTOOL_INIT 2865]) 2866 2867 2868# LT_OUTPUT 2869# --------- 2870# This macro allows early generation of the libtool script (before 2871# AC_OUTPUT is called), incase it is used in configure for compilation 2872# tests. 2873AC_DEFUN([LT_OUTPUT], 2874[: ${CONFIG_LT=./config.lt} 2875AC_MSG_NOTICE([creating $CONFIG_LT]) 2876cat >"$CONFIG_LT" <<_LTEOF 2877#! $SHELL 2878# Generated by $as_me. 2879# Run this file to recreate a libtool stub with the current configuration. 2880 2881lt_cl_silent=false 2882SHELL=\${CONFIG_SHELL-$SHELL} 2883_LTEOF 2884 2885cat >>"$CONFIG_LT" <<\_LTEOF 2886AS_SHELL_SANITIZE 2887_AS_PREPARE 2888 2889exec AS_MESSAGE_FD>&1 2890exec AS_MESSAGE_LOG_FD>>config.log 2891{ 2892 echo 2893 AS_BOX([Running $as_me.]) 2894} >&AS_MESSAGE_LOG_FD 2895 2896lt_cl_help="\ 2897\`$as_me' creates a local libtool stub from the current configuration, 2898for use in further configure time tests before the real libtool is 2899generated. 2900 2901Usage: $[0] [[OPTIONS]] 2902 2903 -h, --help print this help, then exit 2904 -V, --version print version number, then exit 2905 -q, --quiet do not print progress messages 2906 -d, --debug don't remove temporary files 2907 2908Report bugs to <bug-libtool@gnu.org>." 2909 2910lt_cl_version="\ 2911m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl 2912m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) 2913configured by $[0], generated by m4_PACKAGE_STRING. 2914 2915Copyright (C) 2008 Free Software Foundation, Inc. 2916This config.lt script is free software; the Free Software Foundation 2917gives unlimited permision to copy, distribute and modify it." 2918 2919while test $[#] != 0 2920do 2921 case $[1] in 2922 --version | --v* | -V ) 2923 echo "$lt_cl_version"; exit 0 ;; 2924 --help | --h* | -h ) 2925 echo "$lt_cl_help"; exit 0 ;; 2926 --debug | --d* | -d ) 2927 debug=: ;; 2928 --quiet | --q* | --silent | --s* | -q ) 2929 lt_cl_silent=: ;; 2930 2931 -*) AC_MSG_ERROR([unrecognized option: $[1] 2932Try \`$[0] --help' for more information.]) ;; 2933 2934 *) AC_MSG_ERROR([unrecognized argument: $[1] 2935Try \`$[0] --help' for more information.]) ;; 2936 esac 2937 shift 2938done 2939 2940if $lt_cl_silent; then 2941 exec AS_MESSAGE_FD>/dev/null 2942fi 2943_LTEOF 2944 2945cat >>"$CONFIG_LT" <<_LTEOF 2946_LT_OUTPUT_LIBTOOL_COMMANDS_INIT 2947_LTEOF 2948 2949cat >>"$CONFIG_LT" <<\_LTEOF 2950AC_MSG_NOTICE([creating $ofile]) 2951_LT_OUTPUT_LIBTOOL_COMMANDS 2952AS_EXIT(0) 2953_LTEOF 2954chmod +x "$CONFIG_LT" 2955 2956# configure is writing to config.log, but config.lt does its own redirection, 2957# appending to config.log, which fails on DOS, as config.log is still kept 2958# open by configure. Here we exec the FD to /dev/null, effectively closing 2959# config.log, so it can be properly (re)opened and appended to by config.lt. 2960if test "$no_create" != yes; then 2961 lt_cl_success=: 2962 test "$silent" = yes && 2963 lt_config_lt_args="$lt_config_lt_args --quiet" 2964 exec AS_MESSAGE_LOG_FD>/dev/null 2965 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 2966 exec AS_MESSAGE_LOG_FD>>config.log 2967 $lt_cl_success || AS_EXIT(1) 2968fi 2969])# LT_OUTPUT 2970 2971 2972# _LT_CONFIG(TAG) 2973# --------------- 2974# If TAG is the built-in tag, create an initial libtool script with a 2975# default configuration from the untagged config vars. Otherwise add code 2976# to config.status for appending the configuration named by TAG from the 2977# matching tagged config vars. 2978m4_defun([_LT_CONFIG], 2979[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2980_LT_CONFIG_SAVE_COMMANDS([ 2981 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 2982 m4_if(_LT_TAG, [C], [ 2983 # See if we are running on zsh, and set the options which allow our 2984 # commands through without removal of \ escapes. 2985 if test -n "${ZSH_VERSION+set}" ; then 2986 setopt NO_GLOB_SUBST 2987 fi 2988 2989 cfgfile="${ofile}T" 2990 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 2991 $RM "$cfgfile" 2992 2993 cat <<_LT_EOF >> "$cfgfile" 2994#! $SHELL 2995 2996# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 2997# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 2998# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 2999# NOTE: Changes made to this file will be lost: look at ltmain.sh. 3000# 3001_LT_COPYING 3002_LT_LIBTOOL_TAGS 3003 3004# ### BEGIN LIBTOOL CONFIG 3005_LT_LIBTOOL_CONFIG_VARS 3006_LT_LIBTOOL_TAG_VARS 3007# ### END LIBTOOL CONFIG 3008 3009_LT_EOF 3010 3011 case $host_os in 3012 aix3*) 3013 cat <<\_LT_EOF >> "$cfgfile" 3014# AIX sometimes has problems with the GCC collect2 program. For some 3015# reason, if we set the COLLECT_NAMES environment variable, the problems 3016# vanish in a puff of smoke. 3017if test "X${COLLECT_NAMES+set}" != Xset; then 3018 COLLECT_NAMES= 3019 export COLLECT_NAMES 3020fi 3021_LT_EOF 3022 ;; 3023 esac 3024 3025 _LT_PROG_LTMAIN 3026 3027 # We use sed instead of cat because bash on DJGPP gets confused if 3028 # if finds mixed CR/LF and LF-only lines. Since sed operates in 3029 # text mode, it properly converts lines to CR/LF. This bash problem 3030 # is reportedly fixed, but why not run on old versions too? 3031 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 3032 || (rm -f "$cfgfile"; exit 1) 3033 3034 _LT_PROG_XSI_SHELLFNS 3035 3036 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 3037 || (rm -f "$cfgfile"; exit 1) 3038 3039 mv -f "$cfgfile" "$ofile" || 3040 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 3041 chmod +x "$ofile" 3042], 3043[cat <<_LT_EOF >> "$ofile" 3044 3045dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded 3046dnl in a comment (ie after a #). 3047# ### BEGIN LIBTOOL TAG CONFIG: $1 3048_LT_LIBTOOL_TAG_VARS(_LT_TAG) 3049# ### END LIBTOOL TAG CONFIG: $1 3050_LT_EOF 3051])dnl /m4_if 3052], 3053[m4_if([$1], [], [ 3054 PACKAGE='$PACKAGE' 3055 VERSION='$VERSION' 3056 TIMESTAMP='$TIMESTAMP' 3057 RM='$RM' 3058 ofile='$ofile'], []) 3059])dnl /_LT_CONFIG_SAVE_COMMANDS 3060])# _LT_CONFIG 3061 3062 3063# LT_SUPPORTED_TAG(TAG) 3064# --------------------- 3065# Trace this macro to discover what tags are supported by the libtool 3066# --tag option, using: 3067# autoconf --trace 'LT_SUPPORTED_TAG:$1' 3068AC_DEFUN([LT_SUPPORTED_TAG], []) 3069 3070 3071# C support is built-in for now 3072m4_define([_LT_LANG_C_enabled], []) 3073m4_define([_LT_TAGS], []) 3074 3075 3076# LT_LANG(LANG) 3077# ------------- 3078# Enable libtool support for the given language if not already enabled. 3079AC_DEFUN([LT_LANG], 3080[AC_BEFORE([$0], [LT_OUTPUT])dnl 3081m4_case([$1], 3082 [C], [_LT_LANG(C)], 3083 [C++], [_LT_LANG(CXX)], 3084 [Java], [_LT_LANG(GCJ)], 3085 [Fortran 77], [_LT_LANG(F77)], 3086 [Fortran], [_LT_LANG(FC)], 3087 [Windows Resource], [_LT_LANG(RC)], 3088 [m4_ifdef([_LT_LANG_]$1[_CONFIG], 3089 [_LT_LANG($1)], 3090 [m4_fatal([$0: unsupported language: "$1"])])])dnl 3091])# LT_LANG 3092 3093 3094# _LT_LANG(LANGNAME) 3095# ------------------ 3096m4_defun([_LT_LANG], 3097[m4_ifdef([_LT_LANG_]$1[_enabled], [], 3098 [LT_SUPPORTED_TAG([$1])dnl 3099 m4_append([_LT_TAGS], [$1 ])dnl 3100 m4_define([_LT_LANG_]$1[_enabled], [])dnl 3101 _LT_LANG_$1_CONFIG($1)])dnl 3102])# _LT_LANG 3103 3104 3105# _LT_LANG_DEFAULT_CONFIG 3106# ----------------------- 3107m4_defun([_LT_LANG_DEFAULT_CONFIG], 3108[AC_PROVIDE_IFELSE([AC_PROG_CXX], 3109 [LT_LANG(CXX)], 3110 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) 3111 3112AC_PROVIDE_IFELSE([AC_PROG_F77], 3113 [LT_LANG(F77)], 3114 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) 3115 3116AC_PROVIDE_IFELSE([AC_PROG_FC], 3117 [LT_LANG(FC)], 3118 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) 3119 3120dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal 3121dnl pulling things in needlessly. 3122AC_PROVIDE_IFELSE([AC_PROG_GCJ], 3123 [LT_LANG(GCJ)], 3124 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 3125 [LT_LANG(GCJ)], 3126 [AC_PROVIDE_IFELSE([LT_PROG_GCJ], 3127 [LT_LANG(GCJ)], 3128 [m4_ifdef([AC_PROG_GCJ], 3129 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) 3130 m4_ifdef([A][M_PROG_GCJ], 3131 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) 3132 m4_ifdef([LT_PROG_GCJ], 3133 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) 3134 3135AC_PROVIDE_IFELSE([LT_PROG_RC], 3136 [LT_LANG(RC)], 3137 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) 3138])# _LT_LANG_DEFAULT_CONFIG 3139 3140# Obsolete macros: 3141AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) 3142AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) 3143AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) 3144AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) 3145dnl aclocal-1.4 backwards compatibility: 3146dnl AC_DEFUN([AC_LIBTOOL_CXX], []) 3147dnl AC_DEFUN([AC_LIBTOOL_F77], []) 3148dnl AC_DEFUN([AC_LIBTOOL_FC], []) 3149dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) 3150 3151 3152# _LT_TAG_COMPILER 3153# ---------------- 3154m4_defun([_LT_TAG_COMPILER], 3155[AC_REQUIRE([AC_PROG_CC])dnl 3156 3157_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl 3158_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl 3159_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl 3160_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl 3161 3162# If no C compiler was specified, use CC. 3163LTCC=${LTCC-"$CC"} 3164 3165# If no C compiler flags were specified, use CFLAGS. 3166LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 3167 3168# Allow CC to be a program name with arguments. 3169compiler=$CC 3170])# _LT_TAG_COMPILER 3171 3172 3173# _LT_COMPILER_BOILERPLATE 3174# ------------------------ 3175# Check for compiler boilerplate output or warnings with 3176# the simple compiler test code. 3177m4_defun([_LT_COMPILER_BOILERPLATE], 3178[m4_require([_LT_DECL_SED])dnl 3179ac_outfile=conftest.$ac_objext 3180echo "$lt_simple_compile_test_code" >conftest.$ac_ext 3181eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 3182_lt_compiler_boilerplate=`cat conftest.err` 3183$RM conftest* 3184])# _LT_COMPILER_BOILERPLATE 3185 3186 3187# _LT_LINKER_BOILERPLATE 3188# ---------------------- 3189# Check for linker boilerplate output or warnings with 3190# the simple link test code. 3191m4_defun([_LT_LINKER_BOILERPLATE], 3192[m4_require([_LT_DECL_SED])dnl 3193ac_outfile=conftest.$ac_objext 3194echo "$lt_simple_link_test_code" >conftest.$ac_ext 3195eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 3196_lt_linker_boilerplate=`cat conftest.err` 3197$RM -r conftest* 3198])# _LT_LINKER_BOILERPLATE 3199 3200# _LT_REQUIRED_DARWIN_CHECKS 3201# ------------------------- 3202m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ 3203 case $host_os in 3204 rhapsody* | darwin*) 3205 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) 3206 AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 3207 AC_CHECK_TOOL([LIPO], [lipo], [:]) 3208 AC_CHECK_TOOL([OTOOL], [otool], [:]) 3209 AC_CHECK_TOOL([OTOOL64], [otool64], [:]) 3210 _LT_DECL([], [DSYMUTIL], [1], 3211 [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) 3212 _LT_DECL([], [NMEDIT], [1], 3213 [Tool to change global to local symbols on Mac OS X]) 3214 _LT_DECL([], [LIPO], [1], 3215 [Tool to manipulate fat objects and archives on Mac OS X]) 3216 _LT_DECL([], [OTOOL], [1], 3217 [ldd/readelf like tool for Mach-O binaries on Mac OS X]) 3218 _LT_DECL([], [OTOOL64], [1], 3219 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) 3220 3221 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 3222 [lt_cv_apple_cc_single_mod=no 3223 if test -z "${LT_MULTI_MODULE}"; then 3224 # By default we will add the -single_module flag. You can override 3225 # by either setting the environment variable LT_MULTI_MODULE 3226 # non-empty at configure time, or by adding -multi_module to the 3227 # link flags. 3228 rm -rf libconftest.dylib* 3229 echo "int foo(void){return 1;}" > conftest.c 3230 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 3231-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD 3232 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 3233 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 3234 _lt_result=$? 3235 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 3236 lt_cv_apple_cc_single_mod=yes 3237 else 3238 cat conftest.err >&AS_MESSAGE_LOG_FD 3239 fi 3240 rm -rf libconftest.dylib* 3241 rm -f conftest.* 3242 fi]) 3243 AC_CACHE_CHECK([for -exported_symbols_list linker flag], 3244 [lt_cv_ld_exported_symbols_list], 3245 [lt_cv_ld_exported_symbols_list=no 3246 save_LDFLAGS=$LDFLAGS 3247 echo "_main" > conftest.sym 3248 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 3249 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 3250 [lt_cv_ld_exported_symbols_list=yes], 3251 [lt_cv_ld_exported_symbols_list=no]) 3252 LDFLAGS="$save_LDFLAGS" 3253 ]) 3254 case $host_os in 3255 rhapsody* | darwin1.[[012]]) 3256 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 3257 darwin1.*) 3258 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 3259 darwin*) # darwin 5.x on 3260 # if running on 10.5 or later, the deployment target defaults 3261 # to the OS version, if on x86, and 10.4, the deployment 3262 # target defaults to 10.4. Don't you love it? 3263 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 3264 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 3265 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 3266 10.[[012]]*) 3267 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 3268 10.*) 3269 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 3270 esac 3271 ;; 3272 esac 3273 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 3274 _lt_dar_single_mod='$single_module' 3275 fi 3276 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 3277 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 3278 else 3279 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 3280 fi 3281 if test "$DSYMUTIL" != ":"; then 3282 _lt_dsymutil='~$DSYMUTIL $lib || :' 3283 else 3284 _lt_dsymutil= 3285 fi 3286 ;; 3287 esac 3288]) 3289 3290 3291# _LT_DARWIN_LINKER_FEATURES 3292# -------------------------- 3293# Checks for linker and compiler features on darwin 3294m4_defun([_LT_DARWIN_LINKER_FEATURES], 3295[ 3296 m4_require([_LT_REQUIRED_DARWIN_CHECKS]) 3297 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 3298 _LT_TAGVAR(hardcode_direct, $1)=no 3299 _LT_TAGVAR(hardcode_automatic, $1)=yes 3300 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 3301 _LT_TAGVAR(whole_archive_flag_spec, $1)='' 3302 _LT_TAGVAR(link_all_deplibs, $1)=yes 3303 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" 3304 case $cc_basename in 3305 ifort*) _lt_dar_can_shared=yes ;; 3306 *) _lt_dar_can_shared=$GCC ;; 3307 esac 3308 if test "$_lt_dar_can_shared" = "yes"; then 3309 output_verbose_link_cmd=echo 3310 _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}" 3311 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 3312 _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}" 3313 _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}" 3314 m4_if([$1], [CXX], 3315[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then 3316 _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}" 3317 _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}" 3318 fi 3319],[]) 3320 else 3321 _LT_TAGVAR(ld_shlibs, $1)=no 3322 fi 3323]) 3324 3325# _LT_SYS_MODULE_PATH_AIX 3326# ----------------------- 3327# Links a minimal program and checks the executable 3328# for the system default hardcoded library path. In most cases, 3329# this is /usr/lib:/lib, but when the MPI compilers are used 3330# the location of the communication and MPI libs are included too. 3331# If we don't find anything, use the default library path according 3332# to the aix ld manual. 3333m4_defun([_LT_SYS_MODULE_PATH_AIX], 3334[m4_require([_LT_DECL_SED])dnl 3335AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 3336lt_aix_libpath_sed=' 3337 /Import File Strings/,/^$/ { 3338 /^0/ { 3339 s/^0 *\(.*\)$/\1/ 3340 p 3341 } 3342 }' 3343aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 3344# Check for a 64-bit object if we didn't find anything. 3345if test -z "$aix_libpath"; then 3346 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 3347fi],[]) 3348if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 3349])# _LT_SYS_MODULE_PATH_AIX 3350 3351 3352# _LT_SHELL_INIT(ARG) 3353# ------------------- 3354m4_define([_LT_SHELL_INIT], 3355[ifdef([AC_DIVERSION_NOTICE], 3356 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 3357 [AC_DIVERT_PUSH(NOTICE)]) 3358$1 3359AC_DIVERT_POP 3360])# _LT_SHELL_INIT 3361 3362 3363# _LT_PROG_ECHO_BACKSLASH 3364# ----------------------- 3365# Add some code to the start of the generated configure script which 3366# will find an echo command which doesn't interpret backslashes. 3367m4_defun([_LT_PROG_ECHO_BACKSLASH], 3368[_LT_SHELL_INIT([ 3369# Check that we are running under the correct shell. 3370SHELL=${CONFIG_SHELL-/bin/sh} 3371 3372case X$lt_ECHO in 3373X*--fallback-echo) 3374 # Remove one level of quotation (which was required for Make). 3375 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` 3376 ;; 3377esac 3378 3379ECHO=${lt_ECHO-echo} 3380if test "X[$]1" = X--no-reexec; then 3381 # Discard the --no-reexec flag, and continue. 3382 shift 3383elif test "X[$]1" = X--fallback-echo; then 3384 # Avoid inline document here, it may be left over 3385 : 3386elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 3387 # Yippee, $ECHO works! 3388 : 3389else 3390 # Restart under the correct shell. 3391 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} 3392fi 3393 3394if test "X[$]1" = X--fallback-echo; then 3395 # used as fallback echo 3396 shift 3397 cat <<_LT_EOF 3398[$]* 3399_LT_EOF 3400 exit 0 3401fi 3402 3403# The HP-UX ksh and POSIX shell print the target directory to stdout 3404# if CDPATH is set. 3405(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 3406 3407if test -z "$lt_ECHO"; then 3408 if test "X${echo_test_string+set}" != Xset; then 3409 # find a string as large as possible, as long as the shell can cope with it 3410 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 3411 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 3412 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 3413 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 3414 then 3415 break 3416 fi 3417 done 3418 fi 3419 3420 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 3421 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 3422 test "X$echo_testing_string" = "X$echo_test_string"; then 3423 : 3424 else 3425 # The Solaris, AIX, and Digital Unix default echo programs unquote 3426 # backslashes. This makes it impossible to quote backslashes using 3427 # echo "$something" | sed 's/\\/\\\\/g' 3428 # 3429 # So, first we look for a working echo in the user's PATH. 3430 3431 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3432 for dir in $PATH /usr/ucb; do 3433 IFS="$lt_save_ifs" 3434 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 3435 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 3436 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 3437 test "X$echo_testing_string" = "X$echo_test_string"; then 3438 ECHO="$dir/echo" 3439 break 3440 fi 3441 done 3442 IFS="$lt_save_ifs" 3443 3444 if test "X$ECHO" = Xecho; then 3445 # We didn't find a better echo, so look for alternatives. 3446 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 3447 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 3448 test "X$echo_testing_string" = "X$echo_test_string"; then 3449 # This shell has a builtin print -r that does the trick. 3450 ECHO='print -r' 3451 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 3452 test "X$CONFIG_SHELL" != X/bin/ksh; then 3453 # If we have ksh, try running configure again with it. 3454 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 3455 export ORIGINAL_CONFIG_SHELL 3456 CONFIG_SHELL=/bin/ksh 3457 export CONFIG_SHELL 3458 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 3459 else 3460 # Try using printf. 3461 ECHO='printf %s\n' 3462 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 3463 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 3464 test "X$echo_testing_string" = "X$echo_test_string"; then 3465 # Cool, printf works 3466 : 3467 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 3468 test "X$echo_testing_string" = 'X\t' && 3469 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 3470 test "X$echo_testing_string" = "X$echo_test_string"; then 3471 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 3472 export CONFIG_SHELL 3473 SHELL="$CONFIG_SHELL" 3474 export SHELL 3475 ECHO="$CONFIG_SHELL [$]0 --fallback-echo" 3476 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 3477 test "X$echo_testing_string" = 'X\t' && 3478 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 3479 test "X$echo_testing_string" = "X$echo_test_string"; then 3480 ECHO="$CONFIG_SHELL [$]0 --fallback-echo" 3481 else 3482 # maybe with a smaller string... 3483 prev=: 3484 3485 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 3486 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 3487 then 3488 break 3489 fi 3490 prev="$cmd" 3491 done 3492 3493 if test "$prev" != 'sed 50q "[$]0"'; then 3494 echo_test_string=`eval $prev` 3495 export echo_test_string 3496 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 3497 else 3498 # Oops. We lost completely, so just stick with echo. 3499 ECHO=echo 3500 fi 3501 fi 3502 fi 3503 fi 3504 fi 3505fi 3506 3507# Copy echo and quote the copy suitably for passing to libtool from 3508# the Makefile, instead of quoting the original, which is used later. 3509lt_ECHO=$ECHO 3510if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then 3511 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" 3512fi 3513 3514AC_SUBST(lt_ECHO) 3515]) 3516_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) 3517_LT_DECL([], [ECHO], [1], 3518 [An echo program that does not interpret backslashes]) 3519])# _LT_PROG_ECHO_BACKSLASH 3520 3521 3522# _LT_ENABLE_LOCK 3523# --------------- 3524m4_defun([_LT_ENABLE_LOCK], 3525[AC_ARG_ENABLE([libtool-lock], 3526 [AS_HELP_STRING([--disable-libtool-lock], 3527 [avoid locking (might break parallel builds)])]) 3528test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3529 3530# Some flags need to be propagated to the compiler or linker for good 3531# libtool support. 3532case $host in 3533ia64-*-hpux*) 3534 # Find out which ABI we are using. 3535 echo 'int i;' > conftest.$ac_ext 3536 if AC_TRY_EVAL(ac_compile); then 3537 case `/usr/bin/file conftest.$ac_objext` in 3538 *ELF-32*) 3539 HPUX_IA64_MODE="32" 3540 ;; 3541 *ELF-64*) 3542 HPUX_IA64_MODE="64" 3543 ;; 3544 esac 3545 fi 3546 rm -rf conftest* 3547 ;; 3548*-*-irix6*) 3549 # Find out which ABI we are using. 3550 echo '[#]line __oline__ "configure"' > conftest.$ac_ext 3551 if AC_TRY_EVAL(ac_compile); then 3552 if test "$lt_cv_prog_gnu_ld" = yes; then 3553 case `/usr/bin/file conftest.$ac_objext` in 3554 *32-bit*) 3555 LD="${LD-ld} -melf32bsmip" 3556 ;; 3557 *N32*) 3558 LD="${LD-ld} -melf32bmipn32" 3559 ;; 3560 *64-bit*) 3561 LD="${LD-ld} -melf64bmip" 3562 ;; 3563 esac 3564 else 3565 case `/usr/bin/file conftest.$ac_objext` in 3566 *32-bit*) 3567 LD="${LD-ld} -32" 3568 ;; 3569 *N32*) 3570 LD="${LD-ld} -n32" 3571 ;; 3572 *64-bit*) 3573 LD="${LD-ld} -64" 3574 ;; 3575 esac 3576 fi 3577 fi 3578 rm -rf conftest* 3579 ;; 3580 3581x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 3582s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 3583 # Find out which ABI we are using. 3584 echo 'int i;' > conftest.$ac_ext 3585 if AC_TRY_EVAL(ac_compile); then 3586 case `/usr/bin/file conftest.o` in 3587 *32-bit*) 3588 case $host in 3589 x86_64-*kfreebsd*-gnu) 3590 LD="${LD-ld} -m elf_i386_fbsd" 3591 ;; 3592 x86_64-*linux*) 3593 LD="${LD-ld} -m elf_i386" 3594 ;; 3595 ppc64-*linux*|powerpc64-*linux*) 3596 LD="${LD-ld} -m elf32ppclinux" 3597 ;; 3598 s390x-*linux*) 3599 LD="${LD-ld} -m elf_s390" 3600 ;; 3601 sparc64-*linux*) 3602 LD="${LD-ld} -m elf32_sparc" 3603 ;; 3604 esac 3605 ;; 3606 *64-bit*) 3607 case $host in 3608 x86_64-*kfreebsd*-gnu) 3609 LD="${LD-ld} -m elf_x86_64_fbsd" 3610 ;; 3611 x86_64-*linux*) 3612 LD="${LD-ld} -m elf_x86_64" 3613 ;; 3614 ppc*-*linux*|powerpc*-*linux*) 3615 LD="${LD-ld} -m elf64ppc" 3616 ;; 3617 s390*-*linux*|s390*-*tpf*) 3618 LD="${LD-ld} -m elf64_s390" 3619 ;; 3620 sparc*-*linux*) 3621 LD="${LD-ld} -m elf64_sparc" 3622 ;; 3623 esac 3624 ;; 3625 esac 3626 fi 3627 rm -rf conftest* 3628 ;; 3629 3630*-*-sco3.2v5*) 3631 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3632 SAVE_CFLAGS="$CFLAGS" 3633 CFLAGS="$CFLAGS -belf" 3634 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 3635 [AC_LANG_PUSH(C) 3636 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 3637 AC_LANG_POP]) 3638 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3639 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3640 CFLAGS="$SAVE_CFLAGS" 3641 fi 3642 ;; 3643sparc*-*solaris*) 3644 # Find out which ABI we are using. 3645 echo 'int i;' > conftest.$ac_ext 3646 if AC_TRY_EVAL(ac_compile); then 3647 case `/usr/bin/file conftest.o` in 3648 *64-bit*) 3649 case $lt_cv_prog_gnu_ld in 3650 yes*) LD="${LD-ld} -m elf64_sparc" ;; 3651 *) 3652 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 3653 LD="${LD-ld} -64" 3654 fi 3655 ;; 3656 esac 3657 ;; 3658 esac 3659 fi 3660 rm -rf conftest* 3661 ;; 3662esac 3663 3664need_locks="$enable_libtool_lock" 3665])# _LT_ENABLE_LOCK 3666 3667 3668# _LT_CMD_OLD_ARCHIVE 3669# ------------------- 3670m4_defun([_LT_CMD_OLD_ARCHIVE], 3671[AC_CHECK_TOOL(AR, ar, false) 3672test -z "$AR" && AR=ar 3673test -z "$AR_FLAGS" && AR_FLAGS=cru 3674_LT_DECL([], [AR], [1], [The archiver]) 3675_LT_DECL([], [AR_FLAGS], [1]) 3676 3677AC_CHECK_TOOL(STRIP, strip, :) 3678test -z "$STRIP" && STRIP=: 3679_LT_DECL([], [STRIP], [1], [A symbol stripping program]) 3680 3681AC_CHECK_TOOL(RANLIB, ranlib, :) 3682test -z "$RANLIB" && RANLIB=: 3683_LT_DECL([], [RANLIB], [1], 3684 [Commands used to install an old-style archive]) 3685 3686# Determine commands to create old-style static archives. 3687old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 3688old_postinstall_cmds='chmod 644 $oldlib' 3689old_postuninstall_cmds= 3690 3691if test -n "$RANLIB"; then 3692 case $host_os in 3693 openbsd*) 3694 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 3695 ;; 3696 *) 3697 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 3698 ;; 3699 esac 3700 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 3701fi 3702_LT_DECL([], [old_postinstall_cmds], [2]) 3703_LT_DECL([], [old_postuninstall_cmds], [2]) 3704_LT_TAGDECL([], [old_archive_cmds], [2], 3705 [Commands used to build an old-style archive]) 3706])# _LT_CMD_OLD_ARCHIVE 3707 3708 3709# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 3710# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 3711# ---------------------------------------------------------------- 3712# Check whether the given compiler option works 3713AC_DEFUN([_LT_COMPILER_OPTION], 3714[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 3715m4_require([_LT_DECL_SED])dnl 3716AC_CACHE_CHECK([$1], [$2], 3717 [$2=no 3718 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 3719 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 3720 lt_compiler_flag="$3" 3721 # Insert the option either (1) after the last *FLAGS variable, or 3722 # (2) before a word containing "conftest.", or (3) at the end. 3723 # Note that $ac_compile itself does not contain backslashes and begins 3724 # with a dollar sign (not a hyphen), so the echo should work correctly. 3725 # The option is referenced via a variable to avoid confusing sed. 3726 lt_compile=`echo "$ac_compile" | $SED \ 3727 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 3728 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 3729 -e 's:$: $lt_compiler_flag:'` 3730 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 3731 (eval "$lt_compile" 2>conftest.err) 3732 ac_status=$? 3733 cat conftest.err >&AS_MESSAGE_LOG_FD 3734 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 3735 if (exit $ac_status) && test -s "$ac_outfile"; then 3736 # The compiler can only warn and ignore the option if not recognized 3737 # So say no if there are warnings other than the usual output. 3738 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 3739 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 3740 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 3741 $2=yes 3742 fi 3743 fi 3744 $RM conftest* 3745]) 3746 3747if test x"[$]$2" = xyes; then 3748 m4_if([$5], , :, [$5]) 3749else 3750 m4_if([$6], , :, [$6]) 3751fi 3752])# _LT_COMPILER_OPTION 3753 3754# Old name: 3755AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) 3756dnl aclocal-1.4 backwards compatibility: 3757dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) 3758 3759 3760# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 3761# [ACTION-SUCCESS], [ACTION-FAILURE]) 3762# ---------------------------------------------------- 3763# Check whether the given linker option works 3764AC_DEFUN([_LT_LINKER_OPTION], 3765[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 3766m4_require([_LT_DECL_SED])dnl 3767AC_CACHE_CHECK([$1], [$2], 3768 [$2=no 3769 save_LDFLAGS="$LDFLAGS" 3770 LDFLAGS="$LDFLAGS $3" 3771 echo "$lt_simple_link_test_code" > conftest.$ac_ext 3772 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 3773 # The linker can only warn and ignore the option if not recognized 3774 # So say no if there are warnings 3775 if test -s conftest.err; then 3776 # Append any errors to the config.log. 3777 cat conftest.err 1>&AS_MESSAGE_LOG_FD 3778 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 3779 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 3780 if diff conftest.exp conftest.er2 >/dev/null; then 3781 $2=yes 3782 fi 3783 else 3784 $2=yes 3785 fi 3786 fi 3787 $RM -r conftest* 3788 LDFLAGS="$save_LDFLAGS" 3789]) 3790 3791if test x"[$]$2" = xyes; then 3792 m4_if([$4], , :, [$4]) 3793else 3794 m4_if([$5], , :, [$5]) 3795fi 3796])# _LT_LINKER_OPTION 3797 3798# Old name: 3799AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) 3800dnl aclocal-1.4 backwards compatibility: 3801dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) 3802 3803 3804# LT_CMD_MAX_LEN 3805#--------------- 3806AC_DEFUN([LT_CMD_MAX_LEN], 3807[AC_REQUIRE([AC_CANONICAL_HOST])dnl 3808# find the maximum length of command line arguments 3809AC_MSG_CHECKING([the maximum length of command line arguments]) 3810AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 3811 i=0 3812 teststring="ABCD" 3813 3814 case $build_os in 3815 msdosdjgpp*) 3816 # On DJGPP, this test can blow up pretty badly due to problems in libc 3817 # (any single argument exceeding 2000 bytes causes a buffer overrun 3818 # during glob expansion). Even if it were fixed, the result of this 3819 # check would be larger than it should be. 3820 lt_cv_sys_max_cmd_len=12288; # 12K is about right 3821 ;; 3822 3823 gnu*) 3824 # Under GNU Hurd, this test is not required because there is 3825 # no limit to the length of command line arguments. 3826 # Libtool will interpret -1 as no limit whatsoever 3827 lt_cv_sys_max_cmd_len=-1; 3828 ;; 3829 3830 cygwin* | mingw* | cegcc*) 3831 # On Win9x/ME, this test blows up -- it succeeds, but takes 3832 # about 5 minutes as the teststring grows exponentially. 3833 # Worse, since 9x/ME are not pre-emptively multitasking, 3834 # you end up with a "frozen" computer, even though with patience 3835 # the test eventually succeeds (with a max line length of 256k). 3836 # Instead, let's just punt: use the minimum linelength reported by 3837 # all of the supported platforms: 8192 (on NT/2K/XP). 3838 lt_cv_sys_max_cmd_len=8192; 3839 ;; 3840 3841 amigaos*) 3842 # On AmigaOS with pdksh, this test takes hours, literally. 3843 # So we just punt and use a minimum line length of 8192. 3844 lt_cv_sys_max_cmd_len=8192; 3845 ;; 3846 3847 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 3848 # This has been around since 386BSD, at least. Likely further. 3849 if test -x /sbin/sysctl; then 3850 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 3851 elif test -x /usr/sbin/sysctl; then 3852 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 3853 else 3854 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 3855 fi 3856 # And add a safety zone 3857 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 3858 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 3859 ;; 3860 3861 interix*) 3862 # We know the value 262144 and hardcode it with a safety zone (like BSD) 3863 lt_cv_sys_max_cmd_len=196608 3864 ;; 3865 3866 osf*) 3867 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 3868 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 3869 # nice to cause kernel panics so lets avoid the loop below. 3870 # First set a reasonable default. 3871 lt_cv_sys_max_cmd_len=16384 3872 # 3873 if test -x /sbin/sysconfig; then 3874 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 3875 *1*) lt_cv_sys_max_cmd_len=-1 ;; 3876 esac 3877 fi 3878 ;; 3879 sco3.2v5*) 3880 lt_cv_sys_max_cmd_len=102400 3881 ;; 3882 sysv5* | sco5v6* | sysv4.2uw2*) 3883 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 3884 if test -n "$kargmax"; then 3885 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 3886 else 3887 lt_cv_sys_max_cmd_len=32768 3888 fi 3889 ;; 3890 *) 3891 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 3892 if test -n "$lt_cv_sys_max_cmd_len"; then 3893 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 3894 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 3895 else 3896 # Make teststring a little bigger before we do anything with it. 3897 # a 1K string should be a reasonable start. 3898 for i in 1 2 3 4 5 6 7 8 ; do 3899 teststring=$teststring$teststring 3900 done 3901 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 3902 # If test is not a shell built-in, we'll probably end up computing a 3903 # maximum length that is only half of the actual maximum length, but 3904 # we can't tell. 3905 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 3906 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 3907 test $i != 17 # 1/2 MB should be enough 3908 do 3909 i=`expr $i + 1` 3910 teststring=$teststring$teststring 3911 done 3912 # Only check the string length outside the loop. 3913 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 3914 teststring= 3915 # Add a significant safety factor because C++ compilers can tack on 3916 # massive amounts of additional arguments before passing them to the 3917 # linker. It appears as though 1/2 is a usable value. 3918 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 3919 fi 3920 ;; 3921 esac 3922]) 3923if test -n $lt_cv_sys_max_cmd_len ; then 3924 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 3925else 3926 AC_MSG_RESULT(none) 3927fi 3928max_cmd_len=$lt_cv_sys_max_cmd_len 3929_LT_DECL([], [max_cmd_len], [0], 3930 [What is the maximum length of a command?]) 3931])# LT_CMD_MAX_LEN 3932 3933# Old name: 3934AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) 3935dnl aclocal-1.4 backwards compatibility: 3936dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) 3937 3938 3939# _LT_HEADER_DLFCN 3940# ---------------- 3941m4_defun([_LT_HEADER_DLFCN], 3942[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl 3943])# _LT_HEADER_DLFCN 3944 3945 3946# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 3947# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 3948# ---------------------------------------------------------------- 3949m4_defun([_LT_TRY_DLOPEN_SELF], 3950[m4_require([_LT_HEADER_DLFCN])dnl 3951if test "$cross_compiling" = yes; then : 3952 [$4] 3953else 3954 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 3955 lt_status=$lt_dlunknown 3956 cat > conftest.$ac_ext <<_LT_EOF 3957[#line __oline__ "configure" 3958#include "confdefs.h" 3959 3960#if HAVE_DLFCN_H 3961#include <dlfcn.h> 3962#endif 3963 3964#include <stdio.h> 3965 3966#ifdef RTLD_GLOBAL 3967# define LT_DLGLOBAL RTLD_GLOBAL 3968#else 3969# ifdef DL_GLOBAL 3970# define LT_DLGLOBAL DL_GLOBAL 3971# else 3972# define LT_DLGLOBAL 0 3973# endif 3974#endif 3975 3976/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 3977 find out it does not work in some platform. */ 3978#ifndef LT_DLLAZY_OR_NOW 3979# ifdef RTLD_LAZY 3980# define LT_DLLAZY_OR_NOW RTLD_LAZY 3981# else 3982# ifdef DL_LAZY 3983# define LT_DLLAZY_OR_NOW DL_LAZY 3984# else 3985# ifdef RTLD_NOW 3986# define LT_DLLAZY_OR_NOW RTLD_NOW 3987# else 3988# ifdef DL_NOW 3989# define LT_DLLAZY_OR_NOW DL_NOW 3990# else 3991# define LT_DLLAZY_OR_NOW 0 3992# endif 3993# endif 3994# endif 3995# endif 3996#endif 3997 3998void fnord() { int i=42;} 3999int main () 4000{ 4001 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 4002 int status = $lt_dlunknown; 4003 4004 if (self) 4005 { 4006 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 4007 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 4008 /* dlclose (self); */ 4009 } 4010 else 4011 puts (dlerror ()); 4012 4013 return status; 4014}] 4015_LT_EOF 4016 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 4017 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 4018 lt_status=$? 4019 case x$lt_status in 4020 x$lt_dlno_uscore) $1 ;; 4021 x$lt_dlneed_uscore) $2 ;; 4022 x$lt_dlunknown|x*) $3 ;; 4023 esac 4024 else : 4025 # compilation failed 4026 $3 4027 fi 4028fi 4029rm -fr conftest* 4030])# _LT_TRY_DLOPEN_SELF 4031 4032 4033# LT_SYS_DLOPEN_SELF 4034# ------------------ 4035AC_DEFUN([LT_SYS_DLOPEN_SELF], 4036[m4_require([_LT_HEADER_DLFCN])dnl 4037if test "x$enable_dlopen" != xyes; then 4038 enable_dlopen=unknown 4039 enable_dlopen_self=unknown 4040 enable_dlopen_self_static=unknown 4041else 4042 lt_cv_dlopen=no 4043 lt_cv_dlopen_libs= 4044 4045 case $host_os in 4046 beos*) 4047 lt_cv_dlopen="load_add_on" 4048 lt_cv_dlopen_libs= 4049 lt_cv_dlopen_self=yes 4050 ;; 4051 4052 mingw* | pw32* | cegcc*) 4053 lt_cv_dlopen="LoadLibrary" 4054 lt_cv_dlopen_libs= 4055 ;; 4056 4057 cygwin*) 4058 lt_cv_dlopen="dlopen" 4059 lt_cv_dlopen_libs= 4060 ;; 4061 4062 darwin*) 4063 # if libdl is installed we need to link against it 4064 AC_CHECK_LIB([dl], [dlopen], 4065 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 4066 lt_cv_dlopen="dyld" 4067 lt_cv_dlopen_libs= 4068 lt_cv_dlopen_self=yes 4069 ]) 4070 ;; 4071 4072 *) 4073 AC_CHECK_FUNC([shl_load], 4074 [lt_cv_dlopen="shl_load"], 4075 [AC_CHECK_LIB([dld], [shl_load], 4076 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], 4077 [AC_CHECK_FUNC([dlopen], 4078 [lt_cv_dlopen="dlopen"], 4079 [AC_CHECK_LIB([dl], [dlopen], 4080 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 4081 [AC_CHECK_LIB([svld], [dlopen], 4082 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 4083 [AC_CHECK_LIB([dld], [dld_link], 4084 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) 4085 ]) 4086 ]) 4087 ]) 4088 ]) 4089 ]) 4090 ;; 4091 esac 4092 4093 if test "x$lt_cv_dlopen" != xno; then 4094 enable_dlopen=yes 4095 else 4096 enable_dlopen=no 4097 fi 4098 4099 case $lt_cv_dlopen in 4100 dlopen) 4101 save_CPPFLAGS="$CPPFLAGS" 4102 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 4103 4104 save_LDFLAGS="$LDFLAGS" 4105 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 4106 4107 save_LIBS="$LIBS" 4108 LIBS="$lt_cv_dlopen_libs $LIBS" 4109 4110 AC_CACHE_CHECK([whether a program can dlopen itself], 4111 lt_cv_dlopen_self, [dnl 4112 _LT_TRY_DLOPEN_SELF( 4113 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 4114 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 4115 ]) 4116 4117 if test "x$lt_cv_dlopen_self" = xyes; then 4118 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 4119 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 4120 lt_cv_dlopen_self_static, [dnl 4121 _LT_TRY_DLOPEN_SELF( 4122 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 4123 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 4124 ]) 4125 fi 4126 4127 CPPFLAGS="$save_CPPFLAGS" 4128 LDFLAGS="$save_LDFLAGS" 4129 LIBS="$save_LIBS" 4130 ;; 4131 esac 4132 4133 case $lt_cv_dlopen_self in 4134 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 4135 *) enable_dlopen_self=unknown ;; 4136 esac 4137 4138 case $lt_cv_dlopen_self_static in 4139 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 4140 *) enable_dlopen_self_static=unknown ;; 4141 esac 4142fi 4143_LT_DECL([dlopen_support], [enable_dlopen], [0], 4144 [Whether dlopen is supported]) 4145_LT_DECL([dlopen_self], [enable_dlopen_self], [0], 4146 [Whether dlopen of programs is supported]) 4147_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], 4148 [Whether dlopen of statically linked programs is supported]) 4149])# LT_SYS_DLOPEN_SELF 4150 4151# Old name: 4152AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) 4153dnl aclocal-1.4 backwards compatibility: 4154dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) 4155 4156 4157# _LT_COMPILER_C_O([TAGNAME]) 4158# --------------------------- 4159# Check to see if options -c and -o are simultaneously supported by compiler. 4160# This macro does not hard code the compiler like AC_PROG_CC_C_O. 4161m4_defun([_LT_COMPILER_C_O], 4162[m4_require([_LT_DECL_SED])dnl 4163m4_require([_LT_FILEUTILS_DEFAULTS])dnl 4164m4_require([_LT_TAG_COMPILER])dnl 4165AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 4166 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 4167 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 4168 $RM -r conftest 2>/dev/null 4169 mkdir conftest 4170 cd conftest 4171 mkdir out 4172 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 4173 4174 lt_compiler_flag="-o out/conftest2.$ac_objext" 4175 # Insert the option either (1) after the last *FLAGS variable, or 4176 # (2) before a word containing "conftest.", or (3) at the end. 4177 # Note that $ac_compile itself does not contain backslashes and begins 4178 # with a dollar sign (not a hyphen), so the echo should work correctly. 4179 lt_compile=`echo "$ac_compile" | $SED \ 4180 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 4181 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 4182 -e 's:$: $lt_compiler_flag:'` 4183 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 4184 (eval "$lt_compile" 2>out/conftest.err) 4185 ac_status=$? 4186 cat out/conftest.err >&AS_MESSAGE_LOG_FD 4187 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 4188 if (exit $ac_status) && test -s out/conftest2.$ac_objext 4189 then 4190 # The compiler can only warn and ignore the option if not recognized 4191 # So say no if there are warnings 4192 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 4193 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 4194 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 4195 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 4196 fi 4197 fi 4198 chmod u+w . 2>&AS_MESSAGE_LOG_FD 4199 $RM conftest* 4200 # SGI C++ compiler will create directory out/ii_files/ for 4201 # template instantiation 4202 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 4203 $RM out/* && rmdir out 4204 cd .. 4205 $RM -r conftest 4206 $RM conftest* 4207]) 4208_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], 4209 [Does compiler simultaneously support -c and -o options?]) 4210])# _LT_COMPILER_C_O 4211 4212 4213# _LT_COMPILER_FILE_LOCKS([TAGNAME]) 4214# ---------------------------------- 4215# Check to see if we can do hard links to lock some files if needed 4216m4_defun([_LT_COMPILER_FILE_LOCKS], 4217[m4_require([_LT_ENABLE_LOCK])dnl 4218m4_require([_LT_FILEUTILS_DEFAULTS])dnl 4219_LT_COMPILER_C_O([$1]) 4220 4221hard_links="nottested" 4222if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 4223 # do not overwrite the value of need_locks provided by the user 4224 AC_MSG_CHECKING([if we can lock with hard links]) 4225 hard_links=yes 4226 $RM conftest* 4227 ln conftest.a conftest.b 2>/dev/null && hard_links=no 4228 touch conftest.a 4229 ln conftest.a conftest.b 2>&5 || hard_links=no 4230 ln conftest.a conftest.b 2>/dev/null && hard_links=no 4231 AC_MSG_RESULT([$hard_links]) 4232 if test "$hard_links" = no; then 4233 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) 4234 need_locks=warn 4235 fi 4236else 4237 need_locks=no 4238fi 4239_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) 4240])# _LT_COMPILER_FILE_LOCKS 4241 4242 4243# _LT_CHECK_OBJDIR 4244# ---------------- 4245m4_defun([_LT_CHECK_OBJDIR], 4246[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 4247[rm -f .libs 2>/dev/null 4248mkdir .libs 2>/dev/null 4249if test -d .libs; then 4250 lt_cv_objdir=.libs 4251else 4252 # MS-DOS does not allow filenames that begin with a dot. 4253 lt_cv_objdir=_libs 4254fi 4255rmdir .libs 2>/dev/null]) 4256objdir=$lt_cv_objdir 4257_LT_DECL([], [objdir], [0], 4258 [The name of the directory that contains temporary libtool files])dnl 4259m4_pattern_allow([LT_OBJDIR])dnl 4260AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", 4261 [Define to the sub-directory in which libtool stores uninstalled libraries.]) 4262])# _LT_CHECK_OBJDIR 4263 4264 4265# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 4266# -------------------------------------- 4267# Check hardcoding attributes. 4268m4_defun([_LT_LINKER_HARDCODE_LIBPATH], 4269[AC_MSG_CHECKING([how to hardcode library paths into programs]) 4270_LT_TAGVAR(hardcode_action, $1)= 4271if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 4272 test -n "$_LT_TAGVAR(runpath_var, $1)" || 4273 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 4274 4275 # We can hardcode non-existent directories. 4276 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && 4277 # If the only mechanism to avoid hardcoding is shlibpath_var, we 4278 # have to relink, otherwise we might link with an installed library 4279 # when we should be linking with a yet-to-be-installed one 4280 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && 4281 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then 4282 # Linking always hardcodes the temporary library directory. 4283 _LT_TAGVAR(hardcode_action, $1)=relink 4284 else 4285 # We can link without hardcoding, and we can hardcode nonexisting dirs. 4286 _LT_TAGVAR(hardcode_action, $1)=immediate 4287 fi 4288else 4289 # We cannot hardcode anything, or else we can only hardcode existing 4290 # directories. 4291 _LT_TAGVAR(hardcode_action, $1)=unsupported 4292fi 4293AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 4294 4295if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || 4296 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then 4297 # Fast installation is not supported 4298 enable_fast_install=no 4299elif test "$shlibpath_overrides_runpath" = yes || 4300 test "$enable_shared" = no; then 4301 # Fast installation is not necessary 4302 enable_fast_install=needless 4303fi 4304_LT_TAGDECL([], [hardcode_action], [0], 4305 [How to hardcode a shared library path into an executable]) 4306])# _LT_LINKER_HARDCODE_LIBPATH 4307 4308 4309# _LT_CMD_STRIPLIB 4310# ---------------- 4311m4_defun([_LT_CMD_STRIPLIB], 4312[m4_require([_LT_DECL_EGREP]) 4313striplib= 4314old_striplib= 4315AC_MSG_CHECKING([whether stripping libraries is possible]) 4316if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 4317 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 4318 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 4319 AC_MSG_RESULT([yes]) 4320else 4321# FIXME - insert some real tests, host_os isn't really good enough 4322 case $host_os in 4323 darwin*) 4324 if test -n "$STRIP" ; then 4325 striplib="$STRIP -x" 4326 old_striplib="$STRIP -S" 4327 AC_MSG_RESULT([yes]) 4328 else 4329 AC_MSG_RESULT([no]) 4330 fi 4331 ;; 4332 *) 4333 AC_MSG_RESULT([no]) 4334 ;; 4335 esac 4336fi 4337_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) 4338_LT_DECL([], [striplib], [1]) 4339])# _LT_CMD_STRIPLIB 4340 4341 4342# _LT_SYS_DYNAMIC_LINKER([TAG]) 4343# ----------------------------- 4344# PORTME Fill in your ld.so characteristics 4345m4_defun([_LT_SYS_DYNAMIC_LINKER], 4346[AC_REQUIRE([AC_CANONICAL_HOST])dnl 4347m4_require([_LT_DECL_EGREP])dnl 4348m4_require([_LT_FILEUTILS_DEFAULTS])dnl 4349m4_require([_LT_DECL_OBJDUMP])dnl 4350m4_require([_LT_DECL_SED])dnl 4351AC_MSG_CHECKING([dynamic linker characteristics]) 4352m4_if([$1], 4353 [], [ 4354if test "$GCC" = yes; then 4355 case $host_os in 4356 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 4357 *) lt_awk_arg="/^libraries:/" ;; 4358 esac 4359 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 4360 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 4361 # if the path contains ";" then we assume it to be the separator 4362 # otherwise default to the standard path separator (i.e. ":") - it is 4363 # assumed that no part of a normal pathname contains ";" but that should 4364 # okay in the real world where ";" in dirpaths is itself problematic. 4365 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 4366 else 4367 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 4368 fi 4369 # Ok, now we have the path, separated by spaces, we can step through it 4370 # and add multilib dir if necessary. 4371 lt_tmp_lt_search_path_spec= 4372 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 4373 for lt_sys_path in $lt_search_path_spec; do 4374 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 4375 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 4376 else 4377 test -d "$lt_sys_path" && \ 4378 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 4379 fi 4380 done 4381 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 4382BEGIN {RS=" "; FS="/|\n";} { 4383 lt_foo=""; 4384 lt_count=0; 4385 for (lt_i = NF; lt_i > 0; lt_i--) { 4386 if ($lt_i != "" && $lt_i != ".") { 4387 if ($lt_i == "..") { 4388 lt_count++; 4389 } else { 4390 if (lt_count == 0) { 4391 lt_foo="/" $lt_i lt_foo; 4392 } else { 4393 lt_count--; 4394 } 4395 } 4396 } 4397 } 4398 if (lt_foo != "") { lt_freq[[lt_foo]]++; } 4399 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 4400}'` 4401 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 4402else 4403 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 4404fi]) 4405library_names_spec= 4406libname_spec='lib$name' 4407soname_spec= 4408shrext_cmds=".so" 4409postinstall_cmds= 4410postuninstall_cmds= 4411finish_cmds= 4412finish_eval= 4413shlibpath_var= 4414shlibpath_overrides_runpath=unknown 4415version_type=none 4416dynamic_linker="$host_os ld.so" 4417sys_lib_dlsearch_path_spec="/lib /usr/lib" 4418need_lib_prefix=unknown 4419hardcode_into_libs=no 4420 4421# when you set need_version to no, make sure it does not cause -set_version 4422# flags to be left without arguments 4423need_version=unknown 4424 4425case $host_os in 4426aix3*) 4427 version_type=linux 4428 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 4429 shlibpath_var=LIBPATH 4430 4431 # AIX 3 has no versioning support, so we append a major version to the name. 4432 soname_spec='${libname}${release}${shared_ext}$major' 4433 ;; 4434 4435aix[[4-9]]*) 4436 version_type=linux 4437 need_lib_prefix=no 4438 need_version=no 4439 hardcode_into_libs=yes 4440 if test "$host_cpu" = ia64; then 4441 # AIX 5 supports IA64 4442 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 4443 shlibpath_var=LD_LIBRARY_PATH 4444 else 4445 # With GCC up to 2.95.x, collect2 would create an import file 4446 # for dependence libraries. The import file would start with 4447 # the line `#! .'. This would cause the generated library to 4448 # depend on `.', always an invalid library. This was fixed in 4449 # development snapshots of GCC prior to 3.0. 4450 case $host_os in 4451 aix4 | aix4.[[01]] | aix4.[[01]].*) 4452 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 4453 echo ' yes ' 4454 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 4455 : 4456 else 4457 can_build_shared=no 4458 fi 4459 ;; 4460 esac 4461 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 4462 # soname into executable. Probably we can add versioning support to 4463 # collect2, so additional links can be useful in future. 4464 if test "$aix_use_runtimelinking" = yes; then 4465 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 4466 # instead of lib<name>.a to let people know that these are not 4467 # typical AIX shared libraries. 4468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4469 else 4470 # We preserve .a as extension for shared libraries through AIX4.2 4471 # and later when we are not doing run time linking. 4472 library_names_spec='${libname}${release}.a $libname.a' 4473 soname_spec='${libname}${release}${shared_ext}$major' 4474 fi 4475 shlibpath_var=LIBPATH 4476 fi 4477 ;; 4478 4479amigaos*) 4480 case $host_cpu in 4481 powerpc) 4482 # Since July 2007 AmigaOS4 officially supports .so libraries. 4483 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 4484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4485 ;; 4486 m68k) 4487 library_names_spec='$libname.ixlibrary $libname.a' 4488 # Create ${libname}_ixlibrary.a entries in /sys/libs. 4489 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 4490 ;; 4491 esac 4492 ;; 4493 4494beos*) 4495 library_names_spec='${libname}${shared_ext}' 4496 dynamic_linker="$host_os ld.so" 4497 shlibpath_var=LIBRARY_PATH 4498 ;; 4499 4500bsdi[[45]]*) 4501 version_type=linux 4502 need_version=no 4503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4504 soname_spec='${libname}${release}${shared_ext}$major' 4505 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 4506 shlibpath_var=LD_LIBRARY_PATH 4507 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 4508 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 4509 # the default ld.so.conf also contains /usr/contrib/lib and 4510 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 4511 # libtool to hard-code these into programs 4512 ;; 4513 4514cygwin* | mingw* | pw32* | cegcc*) 4515 version_type=windows 4516 shrext_cmds=".dll" 4517 need_version=no 4518 need_lib_prefix=no 4519 4520 case $GCC,$host_os in 4521 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 4522 library_names_spec='$libname.dll.a' 4523 # DLL is installed to $(libdir)/../bin by postinstall_cmds 4524 postinstall_cmds='base_file=`basename \${file}`~ 4525 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 4526 dldir=$destdir/`dirname \$dlpath`~ 4527 test -d \$dldir || mkdir -p \$dldir~ 4528 $install_prog $dir/$dlname \$dldir/$dlname~ 4529 chmod a+x \$dldir/$dlname~ 4530 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 4531 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 4532 fi' 4533 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 4534 dlpath=$dir/\$dldll~ 4535 $RM \$dlpath' 4536 shlibpath_overrides_runpath=yes 4537 4538 case $host_os in 4539 cygwin*) 4540 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 4541 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 4542 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 4543 ;; 4544 mingw* | cegcc*) 4545 # MinGW DLLs use traditional 'lib' prefix 4546 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 4547 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 4548 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then 4549 # It is most probably a Windows format PATH printed by 4550 # mingw gcc, but we are running on Cygwin. Gcc prints its search 4551 # path with ; separators, and with drive letters. We can handle the 4552 # drive letters (cygwin fileutils understands them), so leave them, 4553 # especially as we might pass files found there to a mingw objdump, 4554 # which wouldn't understand a cygwinified path. Ahh. 4555 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 4556 else 4557 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 4558 fi 4559 ;; 4560 pw32*) 4561 # pw32 DLLs use 'pw' prefix rather than 'lib' 4562 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 4563 ;; 4564 esac 4565 ;; 4566 4567 *) 4568 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 4569 ;; 4570 esac 4571 dynamic_linker='Win32 ld.exe' 4572 # FIXME: first we should search . and the directory the executable is in 4573 shlibpath_var=PATH 4574 ;; 4575 4576darwin* | rhapsody*) 4577 dynamic_linker="$host_os dyld" 4578 version_type=darwin 4579 need_lib_prefix=no 4580 need_version=no 4581 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 4582 soname_spec='${libname}${release}${major}$shared_ext' 4583 shlibpath_overrides_runpath=yes 4584 shlibpath_var=DYLD_LIBRARY_PATH 4585 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 4586m4_if([$1], [],[ 4587 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 4588 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 4589 ;; 4590 4591dgux*) 4592 version_type=linux 4593 need_lib_prefix=no 4594 need_version=no 4595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 4596 soname_spec='${libname}${release}${shared_ext}$major' 4597 shlibpath_var=LD_LIBRARY_PATH 4598 ;; 4599 4600freebsd1*) 4601 dynamic_linker=no 4602 ;; 4603 4604freebsd* | dragonfly*) 4605 # DragonFly does not have aout. When/if they implement a new 4606 # versioning mechanism, adjust this. 4607 if test -x /usr/bin/objformat; then 4608 objformat=`/usr/bin/objformat` 4609 else 4610 case $host_os in 4611 freebsd[[123]]*) objformat=aout ;; 4612 *) objformat=elf ;; 4613 esac 4614 fi 4615 version_type=freebsd-$objformat 4616 case $version_type in 4617 freebsd-elf*) 4618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 4619 need_version=no 4620 need_lib_prefix=no 4621 ;; 4622 freebsd-*) 4623 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 4624 need_version=yes 4625 ;; 4626 esac 4627 shlibpath_var=LD_LIBRARY_PATH 4628 case $host_os in 4629 freebsd2*) 4630 shlibpath_overrides_runpath=yes 4631 ;; 4632 freebsd3.[[01]]* | freebsdelf3.[[01]]*) 4633 shlibpath_overrides_runpath=yes 4634 hardcode_into_libs=yes 4635 ;; 4636 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 4637 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 4638 shlibpath_overrides_runpath=no 4639 hardcode_into_libs=yes 4640 ;; 4641 *) # from 4.6 on, and DragonFly 4642 shlibpath_overrides_runpath=yes 4643 hardcode_into_libs=yes 4644 ;; 4645 esac 4646 ;; 4647 4648gnu*) 4649 version_type=linux 4650 need_lib_prefix=no 4651 need_version=no 4652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 4653 soname_spec='${libname}${release}${shared_ext}$major' 4654 shlibpath_var=LD_LIBRARY_PATH 4655 hardcode_into_libs=yes 4656 ;; 4657 4658hpux9* | hpux10* | hpux11*) 4659 # Give a soname corresponding to the major version so that dld.sl refuses to 4660 # link against other versions. 4661 version_type=sunos 4662 need_lib_prefix=no 4663 need_version=no 4664 case $host_cpu in 4665 ia64*) 4666 shrext_cmds='.so' 4667 hardcode_into_libs=yes 4668 dynamic_linker="$host_os dld.so" 4669 shlibpath_var=LD_LIBRARY_PATH 4670 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 4671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4672 soname_spec='${libname}${release}${shared_ext}$major' 4673 if test "X$HPUX_IA64_MODE" = X32; then 4674 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 4675 else 4676 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 4677 fi 4678 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 4679 ;; 4680 hppa*64*) 4681 shrext_cmds='.sl' 4682 hardcode_into_libs=yes 4683 dynamic_linker="$host_os dld.sl" 4684 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 4685 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 4686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4687 soname_spec='${libname}${release}${shared_ext}$major' 4688 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 4689 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 4690 ;; 4691 *) 4692 shrext_cmds='.sl' 4693 dynamic_linker="$host_os dld.sl" 4694 shlibpath_var=SHLIB_PATH 4695 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 4696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4697 soname_spec='${libname}${release}${shared_ext}$major' 4698 ;; 4699 esac 4700 # HP-UX runs *really* slowly unless shared libraries are mode 555. 4701 postinstall_cmds='chmod 555 $lib' 4702 ;; 4703 4704interix[[3-9]]*) 4705 version_type=linux 4706 need_lib_prefix=no 4707 need_version=no 4708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 4709 soname_spec='${libname}${release}${shared_ext}$major' 4710 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 4711 shlibpath_var=LD_LIBRARY_PATH 4712 shlibpath_overrides_runpath=no 4713 hardcode_into_libs=yes 4714 ;; 4715 4716irix5* | irix6* | nonstopux*) 4717 case $host_os in 4718 nonstopux*) version_type=nonstopux ;; 4719 *) 4720 if test "$lt_cv_prog_gnu_ld" = yes; then 4721 version_type=linux 4722 else 4723 version_type=irix 4724 fi ;; 4725 esac 4726 need_lib_prefix=no 4727 need_version=no 4728 soname_spec='${libname}${release}${shared_ext}$major' 4729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 4730 case $host_os in 4731 irix5* | nonstopux*) 4732 libsuff= shlibsuff= 4733 ;; 4734 *) 4735 case $LD in # libtool.m4 will add one of these switches to LD 4736 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 4737 libsuff= shlibsuff= libmagic=32-bit;; 4738 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 4739 libsuff=32 shlibsuff=N32 libmagic=N32;; 4740 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 4741 libsuff=64 shlibsuff=64 libmagic=64-bit;; 4742 *) libsuff= shlibsuff= libmagic=never-match;; 4743 esac 4744 ;; 4745 esac 4746 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 4747 shlibpath_overrides_runpath=no 4748 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 4749 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 4750 hardcode_into_libs=yes 4751 ;; 4752 4753# No shared lib support for Linux oldld, aout, or coff. 4754linux*oldld* | linux*aout* | linux*coff*) 4755 dynamic_linker=no 4756 ;; 4757 4758# This must be Linux ELF. 4759linux* | k*bsd*-gnu) 4760 version_type=linux 4761 need_lib_prefix=no 4762 need_version=no 4763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4764 soname_spec='${libname}${release}${shared_ext}$major' 4765 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 4766 shlibpath_var=LD_LIBRARY_PATH 4767 shlibpath_overrides_runpath=no 4768 # Some binutils ld are patched to set DT_RUNPATH 4769 save_LDFLAGS=$LDFLAGS 4770 save_libdir=$libdir 4771 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 4772 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 4773 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 4774 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], 4775 [shlibpath_overrides_runpath=yes])]) 4776 LDFLAGS=$save_LDFLAGS 4777 libdir=$save_libdir 4778 4779 # This implies no fast_install, which is unacceptable. 4780 # Some rework will be needed to allow for fast_install 4781 # before this can be enabled. 4782 hardcode_into_libs=yes 4783 4784 # Append ld.so.conf contents to the search path 4785 if test -f /etc/ld.so.conf; then 4786 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;/^$/d' | tr '\n' ' '` 4787 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 4788 fi 4789 4790 # We used to test for /lib/ld.so.1 and disable shared libraries on 4791 # powerpc, because MkLinux only supported shared libraries with the 4792 # GNU dynamic linker. Since this was broken with cross compilers, 4793 # most powerpc-linux boxes support dynamic linking these days and 4794 # people can always --disable-shared, the test was removed, and we 4795 # assume the GNU/Linux dynamic linker is in use. 4796 dynamic_linker='GNU/Linux ld.so' 4797 ;; 4798 4799netbsd*) 4800 version_type=sunos 4801 need_lib_prefix=no 4802 need_version=no 4803 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 4804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 4805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 4806 dynamic_linker='NetBSD (a.out) ld.so' 4807 else 4808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 4809 soname_spec='${libname}${release}${shared_ext}$major' 4810 dynamic_linker='NetBSD ld.elf_so' 4811 fi 4812 shlibpath_var=LD_LIBRARY_PATH 4813 shlibpath_overrides_runpath=yes 4814 hardcode_into_libs=yes 4815 ;; 4816 4817newsos6) 4818 version_type=linux 4819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4820 shlibpath_var=LD_LIBRARY_PATH 4821 shlibpath_overrides_runpath=yes 4822 ;; 4823 4824*nto* | *qnx*) 4825 version_type=qnx 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 shlibpath_var=LD_LIBRARY_PATH 4831 shlibpath_overrides_runpath=no 4832 hardcode_into_libs=yes 4833 dynamic_linker='ldqnx.so' 4834 ;; 4835 4836openbsd*) 4837 version_type=sunos 4838 sys_lib_dlsearch_path_spec="/usr/lib" 4839 need_lib_prefix=no 4840 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 4841 case $host_os in 4842 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 4843 *) need_version=no ;; 4844 esac 4845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 4846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 4847 shlibpath_var=LD_LIBRARY_PATH 4848 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4849 case $host_os in 4850 openbsd2.[[89]] | openbsd2.[[89]].*) 4851 shlibpath_overrides_runpath=no 4852 ;; 4853 *) 4854 shlibpath_overrides_runpath=yes 4855 ;; 4856 esac 4857 else 4858 shlibpath_overrides_runpath=yes 4859 fi 4860 ;; 4861 4862os2*) 4863 libname_spec='$name' 4864 shrext_cmds=".dll" 4865 need_lib_prefix=no 4866 library_names_spec='$libname${shared_ext} $libname.a' 4867 dynamic_linker='OS/2 ld.exe' 4868 shlibpath_var=LIBPATH 4869 ;; 4870 4871osf3* | osf4* | osf5*) 4872 version_type=osf 4873 need_lib_prefix=no 4874 need_version=no 4875 soname_spec='${libname}${release}${shared_ext}$major' 4876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4877 shlibpath_var=LD_LIBRARY_PATH 4878 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 4879 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 4880 ;; 4881 4882rdos*) 4883 dynamic_linker=no 4884 ;; 4885 4886solaris*) 4887 version_type=linux 4888 need_lib_prefix=no 4889 need_version=no 4890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4891 soname_spec='${libname}${release}${shared_ext}$major' 4892 shlibpath_var=LD_LIBRARY_PATH 4893 shlibpath_overrides_runpath=yes 4894 hardcode_into_libs=yes 4895 # ldd complains unless libraries are executable 4896 postinstall_cmds='chmod +x $lib' 4897 ;; 4898 4899sunos4*) 4900 version_type=sunos 4901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 4902 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 4903 shlibpath_var=LD_LIBRARY_PATH 4904 shlibpath_overrides_runpath=yes 4905 if test "$with_gnu_ld" = yes; then 4906 need_lib_prefix=no 4907 fi 4908 need_version=yes 4909 ;; 4910 4911sysv4 | sysv4.3*) 4912 version_type=linux 4913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4914 soname_spec='${libname}${release}${shared_ext}$major' 4915 shlibpath_var=LD_LIBRARY_PATH 4916 case $host_vendor in 4917 sni) 4918 shlibpath_overrides_runpath=no 4919 need_lib_prefix=no 4920 runpath_var=LD_RUN_PATH 4921 ;; 4922 siemens) 4923 need_lib_prefix=no 4924 ;; 4925 motorola) 4926 need_lib_prefix=no 4927 need_version=no 4928 shlibpath_overrides_runpath=no 4929 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 4930 ;; 4931 esac 4932 ;; 4933 4934sysv4*MP*) 4935 if test -d /usr/nec ;then 4936 version_type=linux 4937 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 4938 soname_spec='$libname${shared_ext}.$major' 4939 shlibpath_var=LD_LIBRARY_PATH 4940 fi 4941 ;; 4942 4943sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4944 version_type=freebsd-elf 4945 need_lib_prefix=no 4946 need_version=no 4947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 4948 soname_spec='${libname}${release}${shared_ext}$major' 4949 shlibpath_var=LD_LIBRARY_PATH 4950 shlibpath_overrides_runpath=yes 4951 hardcode_into_libs=yes 4952 if test "$with_gnu_ld" = yes; then 4953 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 4954 else 4955 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 4956 case $host_os in 4957 sco3.2v5*) 4958 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 4959 ;; 4960 esac 4961 fi 4962 sys_lib_dlsearch_path_spec='/usr/lib' 4963 ;; 4964 4965tpf*) 4966 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 4967 version_type=linux 4968 need_lib_prefix=no 4969 need_version=no 4970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4971 shlibpath_var=LD_LIBRARY_PATH 4972 shlibpath_overrides_runpath=no 4973 hardcode_into_libs=yes 4974 ;; 4975 4976uts4*) 4977 version_type=linux 4978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4979 soname_spec='${libname}${release}${shared_ext}$major' 4980 shlibpath_var=LD_LIBRARY_PATH 4981 ;; 4982 4983*) 4984 dynamic_linker=no 4985 ;; 4986esac 4987AC_MSG_RESULT([$dynamic_linker]) 4988test "$dynamic_linker" = no && can_build_shared=no 4989 4990variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 4991if test "$GCC" = yes; then 4992 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 4993fi 4994 4995if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 4996 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 4997fi 4998if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 4999 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 5000fi 5001 5002_LT_DECL([], [variables_saved_for_relink], [1], 5003 [Variables whose values should be saved in libtool wrapper scripts and 5004 restored at link time]) 5005_LT_DECL([], [need_lib_prefix], [0], 5006 [Do we need the "lib" prefix for modules?]) 5007_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) 5008_LT_DECL([], [version_type], [0], [Library versioning type]) 5009_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) 5010_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) 5011_LT_DECL([], [shlibpath_overrides_runpath], [0], 5012 [Is shlibpath searched before the hard-coded library search path?]) 5013_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) 5014_LT_DECL([], [library_names_spec], [1], 5015 [[List of archive names. First name is the real one, the rest are links. 5016 The last name is the one that the linker finds with -lNAME]]) 5017_LT_DECL([], [soname_spec], [1], 5018 [[The coded name of the library, if different from the real name]]) 5019_LT_DECL([], [postinstall_cmds], [2], 5020 [Command to use after installation of a shared archive]) 5021_LT_DECL([], [postuninstall_cmds], [2], 5022 [Command to use after uninstallation of a shared archive]) 5023_LT_DECL([], [finish_cmds], [2], 5024 [Commands used to finish a libtool library installation in a directory]) 5025_LT_DECL([], [finish_eval], [1], 5026 [[As "finish_cmds", except a single script fragment to be evaled but 5027 not shown]]) 5028_LT_DECL([], [hardcode_into_libs], [0], 5029 [Whether we should hardcode library paths into libraries]) 5030_LT_DECL([], [sys_lib_search_path_spec], [2], 5031 [Compile-time system search path for libraries]) 5032_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], 5033 [Run-time system search path for libraries]) 5034])# _LT_SYS_DYNAMIC_LINKER 5035 5036 5037# _LT_PATH_TOOL_PREFIX(TOOL) 5038# -------------------------- 5039# find a file program which can recognize shared library 5040AC_DEFUN([_LT_PATH_TOOL_PREFIX], 5041[m4_require([_LT_DECL_EGREP])dnl 5042AC_MSG_CHECKING([for $1]) 5043AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 5044[case $MAGIC_CMD in 5045[[\\/*] | ?:[\\/]*]) 5046 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5047 ;; 5048*) 5049 lt_save_MAGIC_CMD="$MAGIC_CMD" 5050 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5051dnl $ac_dummy forces splitting on constant user-supplied paths. 5052dnl POSIX.2 word splitting is done only on the output of word expansions, 5053dnl not every word. This closes a longstanding sh security hole. 5054 ac_dummy="m4_if([$2], , $PATH, [$2])" 5055 for ac_dir in $ac_dummy; do 5056 IFS="$lt_save_ifs" 5057 test -z "$ac_dir" && ac_dir=. 5058 if test -f $ac_dir/$1; then 5059 lt_cv_path_MAGIC_CMD="$ac_dir/$1" 5060 if test -n "$file_magic_test_file"; then 5061 case $deplibs_check_method in 5062 "file_magic "*) 5063 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 5064 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5065 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5066 $EGREP "$file_magic_regex" > /dev/null; then 5067 : 5068 else 5069 cat <<_LT_EOF 1>&2 5070 5071*** Warning: the command libtool uses to detect shared libraries, 5072*** $file_magic_cmd, produces output that libtool cannot recognize. 5073*** The result is that libtool may fail to recognize shared libraries 5074*** as such. This will affect the creation of libtool libraries that 5075*** depend on shared libraries, but programs linked with such libtool 5076*** libraries will work regardless of this problem. Nevertheless, you 5077*** may want to report the problem to your system manager and/or to 5078*** bug-libtool@gnu.org 5079 5080_LT_EOF 5081 fi ;; 5082 esac 5083 fi 5084 break 5085 fi 5086 done 5087 IFS="$lt_save_ifs" 5088 MAGIC_CMD="$lt_save_MAGIC_CMD" 5089 ;; 5090esac]) 5091MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5092if test -n "$MAGIC_CMD"; then 5093 AC_MSG_RESULT($MAGIC_CMD) 5094else 5095 AC_MSG_RESULT(no) 5096fi 5097_LT_DECL([], [MAGIC_CMD], [0], 5098 [Used to examine libraries when file_magic_cmd begins with "file"])dnl 5099])# _LT_PATH_TOOL_PREFIX 5100 5101# Old name: 5102AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) 5103dnl aclocal-1.4 backwards compatibility: 5104dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) 5105 5106 5107# _LT_PATH_MAGIC 5108# -------------- 5109# find a file program which can recognize a shared library 5110m4_defun([_LT_PATH_MAGIC], 5111[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 5112if test -z "$lt_cv_path_MAGIC_CMD"; then 5113 if test -n "$ac_tool_prefix"; then 5114 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 5115 else 5116 MAGIC_CMD=: 5117 fi 5118fi 5119])# _LT_PATH_MAGIC 5120 5121 5122# LT_PATH_LD 5123# ---------- 5124# find the pathname to the GNU or non-GNU linker 5125AC_DEFUN([LT_PATH_LD], 5126[AC_REQUIRE([AC_PROG_CC])dnl 5127AC_REQUIRE([AC_CANONICAL_HOST])dnl 5128AC_REQUIRE([AC_CANONICAL_BUILD])dnl 5129m4_require([_LT_DECL_SED])dnl 5130m4_require([_LT_DECL_EGREP])dnl 5131 5132AC_ARG_WITH([gnu-ld], 5133 [AS_HELP_STRING([--with-gnu-ld], 5134 [assume the C compiler uses GNU ld @<:@default=no@:>@])], 5135 [test "$withval" = no || with_gnu_ld=yes], 5136 [with_gnu_ld=no])dnl 5137 5138ac_prog=ld 5139if test "$GCC" = yes; then 5140 # Check if gcc -print-prog-name=ld gives a path. 5141 AC_MSG_CHECKING([for ld used by $CC]) 5142 case $host in 5143 *-*-mingw*) 5144 # gcc leaves a trailing carriage return which upsets mingw 5145 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5146 *) 5147 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5148 esac 5149 case $ac_prog in 5150 # Accept absolute paths. 5151 [[\\/]]* | ?:[[\\/]]*) 5152 re_direlt='/[[^/]][[^/]]*/\.\./' 5153 # Canonicalize the pathname of ld 5154 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5155 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5156 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5157 done 5158 test -z "$LD" && LD="$ac_prog" 5159 ;; 5160 "") 5161 # If it fails, then pretend we aren't using GCC. 5162 ac_prog=ld 5163 ;; 5164 *) 5165 # If it is relative, then search for the first ld in PATH. 5166 with_gnu_ld=unknown 5167 ;; 5168 esac 5169elif test "$with_gnu_ld" = yes; then 5170 AC_MSG_CHECKING([for GNU ld]) 5171else 5172 AC_MSG_CHECKING([for non-GNU ld]) 5173fi 5174AC_CACHE_VAL(lt_cv_path_LD, 5175[if test -z "$LD"; then 5176 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5177 for ac_dir in $PATH; do 5178 IFS="$lt_save_ifs" 5179 test -z "$ac_dir" && ac_dir=. 5180 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5181 lt_cv_path_LD="$ac_dir/$ac_prog" 5182 # Check to see if the program is GNU ld. I'd rather use --version, 5183 # but apparently some variants of GNU ld only accept -v. 5184 # Break only if it was the GNU/non-GNU ld that we prefer. 5185 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5186 *GNU* | *'with BFD'*) 5187 test "$with_gnu_ld" != no && break 5188 ;; 5189 *) 5190 test "$with_gnu_ld" != yes && break 5191 ;; 5192 esac 5193 fi 5194 done 5195 IFS="$lt_save_ifs" 5196else 5197 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5198fi]) 5199LD="$lt_cv_path_LD" 5200if test -n "$LD"; then 5201 AC_MSG_RESULT($LD) 5202else 5203 AC_MSG_RESULT(no) 5204fi 5205test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 5206_LT_PATH_LD_GNU 5207AC_SUBST([LD]) 5208 5209_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) 5210])# LT_PATH_LD 5211 5212# Old names: 5213AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) 5214AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) 5215dnl aclocal-1.4 backwards compatibility: 5216dnl AC_DEFUN([AM_PROG_LD], []) 5217dnl AC_DEFUN([AC_PROG_LD], []) 5218 5219 5220# _LT_PATH_LD_GNU 5221#- -------------- 5222m4_defun([_LT_PATH_LD_GNU], 5223[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 5224[# I'd rather use --version here, but apparently some GNU lds only accept -v. 5225case `$LD -v 2>&1 </dev/null` in 5226*GNU* | *'with BFD'*) 5227 lt_cv_prog_gnu_ld=yes 5228 ;; 5229*) 5230 lt_cv_prog_gnu_ld=no 5231 ;; 5232esac]) 5233with_gnu_ld=$lt_cv_prog_gnu_ld 5234])# _LT_PATH_LD_GNU 5235 5236 5237# _LT_CMD_RELOAD 5238# -------------- 5239# find reload flag for linker 5240# -- PORTME Some linkers may need a different reload flag. 5241m4_defun([_LT_CMD_RELOAD], 5242[AC_CACHE_CHECK([for $LD option to reload object files], 5243 lt_cv_ld_reload_flag, 5244 [lt_cv_ld_reload_flag='-r']) 5245reload_flag=$lt_cv_ld_reload_flag 5246case $reload_flag in 5247"" | " "*) ;; 5248*) reload_flag=" $reload_flag" ;; 5249esac 5250reload_cmds='$LD$reload_flag -o $output$reload_objs' 5251case $host_os in 5252 darwin*) 5253 if test "$GCC" = yes; then 5254 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5255 else 5256 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5257 fi 5258 ;; 5259esac 5260_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl 5261_LT_DECL([], [reload_cmds], [2])dnl 5262])# _LT_CMD_RELOAD 5263 5264 5265# _LT_CHECK_MAGIC_METHOD 5266# ---------------------- 5267# how to check for library dependencies 5268# -- PORTME fill in with the dynamic library characteristics 5269m4_defun([_LT_CHECK_MAGIC_METHOD], 5270[m4_require([_LT_DECL_EGREP]) 5271m4_require([_LT_DECL_OBJDUMP]) 5272AC_CACHE_CHECK([how to recognize dependent libraries], 5273lt_cv_deplibs_check_method, 5274[lt_cv_file_magic_cmd='$MAGIC_CMD' 5275lt_cv_file_magic_test_file= 5276lt_cv_deplibs_check_method='unknown' 5277# Need to set the preceding variable on all platforms that support 5278# interlibrary dependencies. 5279# 'none' -- dependencies not supported. 5280# `unknown' -- same as none, but documents that we really don't know. 5281# 'pass_all' -- all dependencies passed with no checks. 5282# 'test_compile' -- check by making test program. 5283# 'file_magic [[regex]]' -- check by looking for files in library path 5284# which responds to the $file_magic_cmd with a given extended regex. 5285# If you have `file' or equivalent on your system and you're not sure 5286# whether `pass_all' will *always* work, you probably want this one. 5287 5288case $host_os in 5289aix[[4-9]]*) 5290 lt_cv_deplibs_check_method=pass_all 5291 ;; 5292 5293beos*) 5294 lt_cv_deplibs_check_method=pass_all 5295 ;; 5296 5297bsdi[[45]]*) 5298 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 5299 lt_cv_file_magic_cmd='/usr/bin/file -L' 5300 lt_cv_file_magic_test_file=/shlib/libc.so 5301 ;; 5302 5303cygwin*) 5304 # func_win32_libid is a shell function defined in ltmain.sh 5305 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5306 lt_cv_file_magic_cmd='func_win32_libid' 5307 ;; 5308 5309mingw* | pw32*) 5310 # Base MSYS/MinGW do not provide the 'file' command needed by 5311 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5312 # unless we find 'file', for example because we are cross-compiling. 5313 if ( file / ) >/dev/null 2>&1; then 5314 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5315 lt_cv_file_magic_cmd='func_win32_libid' 5316 else 5317 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5318 lt_cv_file_magic_cmd='$OBJDUMP -f' 5319 fi 5320 ;; 5321 5322cegcc) 5323 # use the weaker test based on 'objdump'. See mingw*. 5324 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5325 lt_cv_file_magic_cmd='$OBJDUMP -f' 5326 ;; 5327 5328darwin* | rhapsody*) 5329 lt_cv_deplibs_check_method=pass_all 5330 ;; 5331 5332freebsd* | dragonfly*) 5333 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5334 case $host_cpu in 5335 i*86 ) 5336 # Not sure whether the presence of OpenBSD here was a mistake. 5337 # Let's accept both of them until this is cleared up. 5338 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 5339 lt_cv_file_magic_cmd=/usr/bin/file 5340 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5341 ;; 5342 esac 5343 else 5344 lt_cv_deplibs_check_method=pass_all 5345 fi 5346 ;; 5347 5348gnu*) 5349 lt_cv_deplibs_check_method=pass_all 5350 ;; 5351 5352hpux10.20* | hpux11*) 5353 lt_cv_file_magic_cmd=/usr/bin/file 5354 case $host_cpu in 5355 ia64*) 5356 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 5357 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5358 ;; 5359 hppa*64*) 5360 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] 5361 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5362 ;; 5363 *) 5364 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' 5365 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5366 ;; 5367 esac 5368 ;; 5369 5370interix[[3-9]]*) 5371 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5372 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 5373 ;; 5374 5375irix5* | irix6* | nonstopux*) 5376 case $LD in 5377 *-32|*"-32 ") libmagic=32-bit;; 5378 *-n32|*"-n32 ") libmagic=N32;; 5379 *-64|*"-64 ") libmagic=64-bit;; 5380 *) libmagic=never-match;; 5381 esac 5382 lt_cv_deplibs_check_method=pass_all 5383 ;; 5384 5385# This must be Linux ELF. 5386linux* | k*bsd*-gnu) 5387 lt_cv_deplibs_check_method=pass_all 5388 ;; 5389 5390netbsd*) 5391 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5392 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 5393 else 5394 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 5395 fi 5396 ;; 5397 5398newos6*) 5399 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 5400 lt_cv_file_magic_cmd=/usr/bin/file 5401 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5402 ;; 5403 5404*nto* | *qnx*) 5405 lt_cv_deplibs_check_method=pass_all 5406 ;; 5407 5408openbsd*) 5409 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5410 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 5411 else 5412 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 5413 fi 5414 ;; 5415 5416osf3* | osf4* | osf5*) 5417 lt_cv_deplibs_check_method=pass_all 5418 ;; 5419 5420rdos*) 5421 lt_cv_deplibs_check_method=pass_all 5422 ;; 5423 5424solaris*) 5425 lt_cv_deplibs_check_method=pass_all 5426 ;; 5427 5428sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5429 lt_cv_deplibs_check_method=pass_all 5430 ;; 5431 5432sysv4 | sysv4.3*) 5433 case $host_vendor in 5434 motorola) 5435 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]]' 5436 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5437 ;; 5438 ncr) 5439 lt_cv_deplibs_check_method=pass_all 5440 ;; 5441 sequent) 5442 lt_cv_file_magic_cmd='/bin/file' 5443 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 5444 ;; 5445 sni) 5446 lt_cv_file_magic_cmd='/bin/file' 5447 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 5448 lt_cv_file_magic_test_file=/lib/libc.so 5449 ;; 5450 siemens) 5451 lt_cv_deplibs_check_method=pass_all 5452 ;; 5453 pc) 5454 lt_cv_deplibs_check_method=pass_all 5455 ;; 5456 esac 5457 ;; 5458 5459tpf*) 5460 lt_cv_deplibs_check_method=pass_all 5461 ;; 5462esac 5463]) 5464file_magic_cmd=$lt_cv_file_magic_cmd 5465deplibs_check_method=$lt_cv_deplibs_check_method 5466test -z "$deplibs_check_method" && deplibs_check_method=unknown 5467 5468_LT_DECL([], [deplibs_check_method], [1], 5469 [Method to check whether dependent libraries are shared objects]) 5470_LT_DECL([], [file_magic_cmd], [1], 5471 [Command to use when deplibs_check_method == "file_magic"]) 5472])# _LT_CHECK_MAGIC_METHOD 5473 5474 5475# LT_PATH_NM 5476# ---------- 5477# find the pathname to a BSD- or MS-compatible name lister 5478AC_DEFUN([LT_PATH_NM], 5479[AC_REQUIRE([AC_PROG_CC])dnl 5480AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, 5481[if test -n "$NM"; then 5482 # Let the user override the test. 5483 lt_cv_path_NM="$NM" 5484else 5485 lt_nm_to_check="${ac_tool_prefix}nm" 5486 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5487 lt_nm_to_check="$lt_nm_to_check nm" 5488 fi 5489 for lt_tmp_nm in $lt_nm_to_check; do 5490 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5491 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5492 IFS="$lt_save_ifs" 5493 test -z "$ac_dir" && ac_dir=. 5494 tmp_nm="$ac_dir/$lt_tmp_nm" 5495 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5496 # Check to see if the nm accepts a BSD-compat flag. 5497 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5498 # nm: unknown option "B" ignored 5499 # Tru64's nm complains that /dev/null is an invalid object file 5500 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5501 */dev/null* | *'Invalid file or object type'*) 5502 lt_cv_path_NM="$tmp_nm -B" 5503 break 5504 ;; 5505 *) 5506 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5507 */dev/null*) 5508 lt_cv_path_NM="$tmp_nm -p" 5509 break 5510 ;; 5511 *) 5512 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5513 continue # so that we can try to find one that supports BSD flags 5514 ;; 5515 esac 5516 ;; 5517 esac 5518 fi 5519 done 5520 IFS="$lt_save_ifs" 5521 done 5522 : ${lt_cv_path_NM=no} 5523fi]) 5524if test "$lt_cv_path_NM" != "no"; then 5525 NM="$lt_cv_path_NM" 5526else 5527 # Didn't find any BSD compatible name lister, look for dumpbin. 5528 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) 5529 AC_SUBST([DUMPBIN]) 5530 if test "$DUMPBIN" != ":"; then 5531 NM="$DUMPBIN" 5532 fi 5533fi 5534test -z "$NM" && NM=nm 5535AC_SUBST([NM]) 5536_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl 5537 5538AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], 5539 [lt_cv_nm_interface="BSD nm" 5540 echo "int some_variable = 0;" > conftest.$ac_ext 5541 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) 5542 (eval "$ac_compile" 2>conftest.err) 5543 cat conftest.err >&AS_MESSAGE_LOG_FD 5544 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) 5545 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5546 cat conftest.err >&AS_MESSAGE_LOG_FD 5547 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) 5548 cat conftest.out >&AS_MESSAGE_LOG_FD 5549 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5550 lt_cv_nm_interface="MS dumpbin" 5551 fi 5552 rm -f conftest*]) 5553])# LT_PATH_NM 5554 5555# Old names: 5556AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) 5557AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) 5558dnl aclocal-1.4 backwards compatibility: 5559dnl AC_DEFUN([AM_PROG_NM], []) 5560dnl AC_DEFUN([AC_PROG_NM], []) 5561 5562 5563# LT_LIB_M 5564# -------- 5565# check for math library 5566AC_DEFUN([LT_LIB_M], 5567[AC_REQUIRE([AC_CANONICAL_HOST])dnl 5568LIBM= 5569case $host in 5570*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) 5571 # These system don't have libm, or don't need it 5572 ;; 5573*-ncr-sysv4.3*) 5574 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") 5575 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 5576 ;; 5577*) 5578 AC_CHECK_LIB(m, cos, LIBM="-lm") 5579 ;; 5580esac 5581AC_SUBST([LIBM]) 5582])# LT_LIB_M 5583 5584# Old name: 5585AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) 5586dnl aclocal-1.4 backwards compatibility: 5587dnl AC_DEFUN([AC_CHECK_LIBM], []) 5588 5589 5590# _LT_COMPILER_NO_RTTI([TAGNAME]) 5591# ------------------------------- 5592m4_defun([_LT_COMPILER_NO_RTTI], 5593[m4_require([_LT_TAG_COMPILER])dnl 5594 5595_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 5596 5597if test "$GCC" = yes; then 5598 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 5599 5600 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 5601 lt_cv_prog_compiler_rtti_exceptions, 5602 [-fno-rtti -fno-exceptions], [], 5603 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 5604fi 5605_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], 5606 [Compiler flag to turn off builtin functions]) 5607])# _LT_COMPILER_NO_RTTI 5608 5609 5610# _LT_CMD_GLOBAL_SYMBOLS 5611# ---------------------- 5612m4_defun([_LT_CMD_GLOBAL_SYMBOLS], 5613[AC_REQUIRE([AC_CANONICAL_HOST])dnl 5614AC_REQUIRE([AC_PROG_CC])dnl 5615AC_REQUIRE([LT_PATH_NM])dnl 5616AC_REQUIRE([LT_PATH_LD])dnl 5617m4_require([_LT_DECL_SED])dnl 5618m4_require([_LT_DECL_EGREP])dnl 5619m4_require([_LT_TAG_COMPILER])dnl 5620 5621# Check for command to grab the raw symbol name followed by C symbol from nm. 5622AC_MSG_CHECKING([command to parse $NM output from $compiler object]) 5623AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 5624[ 5625# These are sane defaults that work on at least a few old systems. 5626# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5627 5628# Character class describing NM global symbol codes. 5629symcode='[[BCDEGRST]]' 5630 5631# Regexp to match symbols that can be accessed directly from C. 5632sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 5633 5634# Define system-specific variables. 5635case $host_os in 5636aix*) 5637 symcode='[[BCDT]]' 5638 ;; 5639cygwin* | mingw* | pw32* | cegcc*) 5640 symcode='[[ABCDGISTW]]' 5641 ;; 5642hpux*) 5643 if test "$host_cpu" = ia64; then 5644 symcode='[[ABCDEGRST]]' 5645 fi 5646 ;; 5647irix* | nonstopux*) 5648 symcode='[[BCDEGRST]]' 5649 ;; 5650osf*) 5651 symcode='[[BCDEGQRST]]' 5652 ;; 5653solaris*) 5654 symcode='[[BDRT]]' 5655 ;; 5656sco3.2v5*) 5657 symcode='[[DT]]' 5658 ;; 5659sysv4.2uw2*) 5660 symcode='[[DT]]' 5661 ;; 5662sysv5* | sco5v6* | unixware* | OpenUNIX*) 5663 symcode='[[ABDT]]' 5664 ;; 5665sysv4) 5666 symcode='[[DFNSTU]]' 5667 ;; 5668esac 5669 5670# If we're using GNU nm, then use its standard symbol codes. 5671case `$NM -V 2>&1` in 5672*GNU* | *'with BFD'*) 5673 symcode='[[ABCDGIRSTW]]' ;; 5674esac 5675 5676# Transform an extracted symbol line into a proper C declaration. 5677# Some systems (esp. on ia64) link data and code symbols differently, 5678# so use this general approach. 5679lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5680 5681# Transform an extracted symbol line into symbol name and symbol address 5682lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" 5683lt_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'" 5684 5685# Handle CRLF in mingw tool chain 5686opt_cr= 5687case $build_os in 5688mingw*) 5689 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5690 ;; 5691esac 5692 5693# Try without a prefix underscore, then with it. 5694for ac_symprfx in "" "_"; do 5695 5696 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5697 symxfrm="\\1 $ac_symprfx\\2 \\2" 5698 5699 # Write the raw and C identifiers. 5700 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5701 # Fake it for dumpbin and say T for any non-static function 5702 # and D for any global variable. 5703 # Also find C++ and __fastcall symbols from MSVC++, 5704 # which start with @ or ?. 5705 lt_cv_sys_global_symbol_pipe="$AWK ['"\ 5706" {last_section=section; section=\$ 3};"\ 5707" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5708" \$ 0!~/External *\|/{next};"\ 5709" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5710" {if(hide[section]) next};"\ 5711" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5712" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5713" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5714" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5715" ' prfx=^$ac_symprfx]" 5716 else 5717 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5718 fi 5719 5720 # Check to see that the pipe works correctly. 5721 pipe_works=no 5722 5723 rm -f conftest* 5724 cat > conftest.$ac_ext <<_LT_EOF 5725#ifdef __cplusplus 5726extern "C" { 5727#endif 5728char nm_test_var; 5729void nm_test_func(void); 5730void nm_test_func(void){} 5731#ifdef __cplusplus 5732} 5733#endif 5734int main(){nm_test_var='a';nm_test_func();return(0);} 5735_LT_EOF 5736 5737 if AC_TRY_EVAL(ac_compile); then 5738 # Now try to grab the symbols. 5739 nlist=conftest.nm 5740 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then 5741 # Try sorting and uniquifying the output. 5742 if sort "$nlist" | uniq > "$nlist"T; then 5743 mv -f "$nlist"T "$nlist" 5744 else 5745 rm -f "$nlist"T 5746 fi 5747 5748 # Make sure that we snagged all the symbols we need. 5749 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5750 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5751 cat <<_LT_EOF > conftest.$ac_ext 5752#ifdef __cplusplus 5753extern "C" { 5754#endif 5755 5756_LT_EOF 5757 # Now generate the symbol file. 5758 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5759 5760 cat <<_LT_EOF >> conftest.$ac_ext 5761 5762/* The mapping between symbol names and symbols. */ 5763const struct { 5764 const char *name; 5765 void *address; 5766} 5767lt__PROGRAM__LTX_preloaded_symbols[[]] = 5768{ 5769 { "@PROGRAM@", (void *) 0 }, 5770_LT_EOF 5771 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5772 cat <<\_LT_EOF >> conftest.$ac_ext 5773 {0, (void *) 0} 5774}; 5775 5776/* This works around a problem in FreeBSD linker */ 5777#ifdef FREEBSD_WORKAROUND 5778static const void *lt_preloaded_setup() { 5779 return lt__PROGRAM__LTX_preloaded_symbols; 5780} 5781#endif 5782 5783#ifdef __cplusplus 5784} 5785#endif 5786_LT_EOF 5787 # Now try linking the two files. 5788 mv conftest.$ac_objext conftstm.$ac_objext 5789 lt_save_LIBS="$LIBS" 5790 lt_save_CFLAGS="$CFLAGS" 5791 LIBS="conftstm.$ac_objext" 5792 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 5793 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then 5794 pipe_works=yes 5795 fi 5796 LIBS="$lt_save_LIBS" 5797 CFLAGS="$lt_save_CFLAGS" 5798 else 5799 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 5800 fi 5801 else 5802 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 5803 fi 5804 else 5805 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 5806 fi 5807 else 5808 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 5809 cat conftest.$ac_ext >&5 5810 fi 5811 rm -rf conftest* conftst* 5812 5813 # Do not use the global_symbol_pipe unless it works. 5814 if test "$pipe_works" = yes; then 5815 break 5816 else 5817 lt_cv_sys_global_symbol_pipe= 5818 fi 5819done 5820]) 5821if test -z "$lt_cv_sys_global_symbol_pipe"; then 5822 lt_cv_sys_global_symbol_to_cdecl= 5823fi 5824if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5825 AC_MSG_RESULT(failed) 5826else 5827 AC_MSG_RESULT(ok) 5828fi 5829 5830_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], 5831 [Take the output of nm and produce a listing of raw symbols and C names]) 5832_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 5833 [Transform the output of nm in a proper C declaration]) 5834_LT_DECL([global_symbol_to_c_name_address], 5835 [lt_cv_sys_global_symbol_to_c_name_address], [1], 5836 [Transform the output of nm in a C name address pair]) 5837_LT_DECL([global_symbol_to_c_name_address_lib_prefix], 5838 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 5839 [Transform the output of nm in a C name address pair when lib prefix is needed]) 5840]) # _LT_CMD_GLOBAL_SYMBOLS 5841 5842 5843# _LT_COMPILER_PIC([TAGNAME]) 5844# --------------------------- 5845m4_defun([_LT_COMPILER_PIC], 5846[m4_require([_LT_TAG_COMPILER])dnl 5847_LT_TAGVAR(lt_prog_compiler_wl, $1)= 5848_LT_TAGVAR(lt_prog_compiler_pic, $1)= 5849_LT_TAGVAR(lt_prog_compiler_static, $1)= 5850 5851AC_MSG_CHECKING([for $compiler option to produce PIC]) 5852m4_if([$1], [CXX], [ 5853 # C++ specific cases for pic, static, wl, etc. 5854 if test "$GXX" = yes; then 5855 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5856 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5857 5858 case $host_os in 5859 aix*) 5860 # All AIX code is PIC. 5861 if test "$host_cpu" = ia64; then 5862 # AIX 5 now supports IA64 processor 5863 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5864 fi 5865 ;; 5866 5867 amigaos*) 5868 case $host_cpu in 5869 powerpc) 5870 # see comment about AmigaOS4 .so support 5871 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5872 ;; 5873 m68k) 5874 # FIXME: we need at least 68020 code to build shared libraries, but 5875 # adding the `-m68020' flag to GCC prevents building anything better, 5876 # like `-m68040'. 5877 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 5878 ;; 5879 esac 5880 ;; 5881 5882 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 5883 # PIC is the default for these OSes. 5884 ;; 5885 mingw* | cygwin* | os2* | pw32* | cegcc*) 5886 # This hack is so that the source file can tell whether it is being 5887 # built for inclusion in a dll (and should export symbols for example). 5888 # Although the cygwin gcc ignores -fPIC, still need this for old-style 5889 # (--disable-auto-import) libraries 5890 m4_if([$1], [GCJ], [], 5891 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 5892 ;; 5893 darwin* | rhapsody*) 5894 # PIC is the default on this platform 5895 # Common symbols not allowed in MH_DYLIB files 5896 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 5897 ;; 5898 *djgpp*) 5899 # DJGPP does not support shared libraries at all 5900 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 5901 ;; 5902 interix[[3-9]]*) 5903 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 5904 # Instead, we relocate shared libraries at runtime. 5905 ;; 5906 sysv4*MP*) 5907 if test -d /usr/nec; then 5908 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 5909 fi 5910 ;; 5911 hpux*) 5912 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 5913 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 5914 # sets the default TLS model and affects inlining. 5915 case $host_cpu in 5916 hppa*64*) 5917 ;; 5918 *) 5919 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5920 ;; 5921 esac 5922 ;; 5923 *qnx* | *nto*) 5924 # QNX uses GNU C++, but need to define -shared option too, otherwise 5925 # it will coredump. 5926 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 5927 ;; 5928 *) 5929 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5930 ;; 5931 esac 5932 else 5933 case $host_os in 5934 aix[[4-9]]*) 5935 # All AIX code is PIC. 5936 if test "$host_cpu" = ia64; then 5937 # AIX 5 now supports IA64 processor 5938 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5939 else 5940 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 5941 fi 5942 ;; 5943 chorus*) 5944 case $cc_basename in 5945 cxch68*) 5946 # Green Hills C++ Compiler 5947 # _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" 5948 ;; 5949 esac 5950 ;; 5951 dgux*) 5952 case $cc_basename in 5953 ec++*) 5954 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5955 ;; 5956 ghcx*) 5957 # Green Hills C++ Compiler 5958 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5959 ;; 5960 *) 5961 ;; 5962 esac 5963 ;; 5964 freebsd* | dragonfly*) 5965 # FreeBSD uses GNU C++ 5966 ;; 5967 hpux9* | hpux10* | hpux11*) 5968 case $cc_basename in 5969 CC*) 5970 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5971 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 5972 if test "$host_cpu" != ia64; then 5973 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5974 fi 5975 ;; 5976 aCC*) 5977 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5978 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 5979 case $host_cpu in 5980 hppa*64*|ia64*) 5981 # +Z the default 5982 ;; 5983 *) 5984 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5985 ;; 5986 esac 5987 ;; 5988 *) 5989 ;; 5990 esac 5991 ;; 5992 interix*) 5993 # This is c89, which is MS Visual C++ (no shared libs) 5994 # Anyone wants to do a port? 5995 ;; 5996 irix5* | irix6* | nonstopux*) 5997 case $cc_basename in 5998 CC*) 5999 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6000 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6001 # CC pic flag -KPIC is the default. 6002 ;; 6003 *) 6004 ;; 6005 esac 6006 ;; 6007 linux* | k*bsd*-gnu) 6008 case $cc_basename in 6009 KCC*) 6010 # KAI C++ Compiler 6011 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 6012 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6013 ;; 6014 ecpc* ) 6015 # old Intel C++ for x86_64 which still supported -KPIC. 6016 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6017 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6018 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6019 ;; 6020 icpc* ) 6021 # Intel C++, used to be incompatible with GCC. 6022 # ICC 10 doesn't accept -KPIC any more. 6023 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6024 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6025 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6026 ;; 6027 pgCC* | pgcpp*) 6028 # Portland Group C++ compiler 6029 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6030 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 6031 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6032 ;; 6033 cxx*) 6034 # Compaq C++ 6035 # Make sure the PIC flag is empty. It appears that all Alpha 6036 # Linux and Compaq Tru64 Unix objects are PIC. 6037 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 6038 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6039 ;; 6040 xlc* | xlC*) 6041 # IBM XL 8.0 on PPC 6042 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6043 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 6044 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 6045 ;; 6046 *) 6047 case `$CC -V 2>&1 | sed 5q` in 6048 *Sun\ C*) 6049 # Sun C++ 5.9 6050 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6051 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6052 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 6053 ;; 6054 esac 6055 ;; 6056 esac 6057 ;; 6058 lynxos*) 6059 ;; 6060 m88k*) 6061 ;; 6062 mvs*) 6063 case $cc_basename in 6064 cxx*) 6065 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 6066 ;; 6067 *) 6068 ;; 6069 esac 6070 ;; 6071 netbsd*) 6072 ;; 6073 *qnx* | *nto*) 6074 # QNX uses GNU C++, but need to define -shared option too, otherwise 6075 # it will coredump. 6076 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 6077 ;; 6078 osf3* | osf4* | osf5*) 6079 case $cc_basename in 6080 KCC*) 6081 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 6082 ;; 6083 RCC*) 6084 # Rational C++ 2.4.1 6085 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6086 ;; 6087 cxx*) 6088 # Digital/Compaq C++ 6089 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6090 # Make sure the PIC flag is empty. It appears that all Alpha 6091 # Linux and Compaq Tru64 Unix objects are PIC. 6092 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 6093 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6094 ;; 6095 *) 6096 ;; 6097 esac 6098 ;; 6099 psos*) 6100 ;; 6101 solaris*) 6102 case $cc_basename in 6103 CC*) 6104 # Sun C++ 4.2, 5.x and Centerline C++ 6105 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6106 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6107 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 6108 ;; 6109 gcx*) 6110 # Green Hills C++ Compiler 6111 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 6112 ;; 6113 *) 6114 ;; 6115 esac 6116 ;; 6117 sunos4*) 6118 case $cc_basename in 6119 CC*) 6120 # Sun C++ 4.x 6121 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6122 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6123 ;; 6124 lcc*) 6125 # Lucid 6126 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6127 ;; 6128 *) 6129 ;; 6130 esac 6131 ;; 6132 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6133 case $cc_basename in 6134 CC*) 6135 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6136 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6137 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6138 ;; 6139 esac 6140 ;; 6141 tandem*) 6142 case $cc_basename in 6143 NCC*) 6144 # NonStop-UX NCC 3.20 6145 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6146 ;; 6147 *) 6148 ;; 6149 esac 6150 ;; 6151 vxworks*) 6152 ;; 6153 *) 6154 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6155 ;; 6156 esac 6157 fi 6158], 6159[ 6160 if test "$GCC" = yes; then 6161 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6162 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6163 6164 case $host_os in 6165 aix*) 6166 # All AIX code is PIC. 6167 if test "$host_cpu" = ia64; then 6168 # AIX 5 now supports IA64 processor 6169 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6170 fi 6171 ;; 6172 6173 amigaos*) 6174 case $host_cpu in 6175 powerpc) 6176 # see comment about AmigaOS4 .so support 6177 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6178 ;; 6179 m68k) 6180 # FIXME: we need at least 68020 code to build shared libraries, but 6181 # adding the `-m68020' flag to GCC prevents building anything better, 6182 # like `-m68040'. 6183 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 6184 ;; 6185 esac 6186 ;; 6187 6188 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6189 # PIC is the default for these OSes. 6190 ;; 6191 6192 mingw* | cygwin* | pw32* | os2* | cegcc*) 6193 # This hack is so that the source file can tell whether it is being 6194 # built for inclusion in a dll (and should export symbols for example). 6195 # Although the cygwin gcc ignores -fPIC, still need this for old-style 6196 # (--disable-auto-import) libraries 6197 m4_if([$1], [GCJ], [], 6198 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 6199 ;; 6200 6201 darwin* | rhapsody*) 6202 # PIC is the default on this platform 6203 # Common symbols not allowed in MH_DYLIB files 6204 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 6205 ;; 6206 6207 hpux*) 6208 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 6209 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 6210 # sets the default TLS model and affects inlining. 6211 case $host_cpu in 6212 hppa*64*) 6213 # +Z the default 6214 ;; 6215 *) 6216 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6217 ;; 6218 esac 6219 ;; 6220 6221 interix[[3-9]]*) 6222 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6223 # Instead, we relocate shared libraries at runtime. 6224 ;; 6225 6226 msdosdjgpp*) 6227 # Just because we use GCC doesn't mean we suddenly get shared libraries 6228 # on systems that don't support them. 6229 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6230 enable_shared=no 6231 ;; 6232 6233 *nto* | *qnx*) 6234 # QNX uses GNU C++, but need to define -shared option too, otherwise 6235 # it will coredump. 6236 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 6237 ;; 6238 6239 sysv4*MP*) 6240 if test -d /usr/nec; then 6241 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 6242 fi 6243 ;; 6244 6245 *) 6246 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6247 ;; 6248 esac 6249 else 6250 # PORTME Check for flag to pass linker flags through the system compiler. 6251 case $host_os in 6252 aix*) 6253 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6254 if test "$host_cpu" = ia64; then 6255 # AIX 5 now supports IA64 processor 6256 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6257 else 6258 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 6259 fi 6260 ;; 6261 6262 mingw* | cygwin* | pw32* | os2* | cegcc*) 6263 # This hack is so that the source file can tell whether it is being 6264 # built for inclusion in a dll (and should export symbols for example). 6265 m4_if([$1], [GCJ], [], 6266 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 6267 ;; 6268 6269 hpux9* | hpux10* | hpux11*) 6270 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6271 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6272 # not for PA HP-UX. 6273 case $host_cpu in 6274 hppa*64*|ia64*) 6275 # +Z the default 6276 ;; 6277 *) 6278 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 6279 ;; 6280 esac 6281 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6282 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 6283 ;; 6284 6285 irix5* | irix6* | nonstopux*) 6286 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6287 # PIC (with -KPIC) is the default. 6288 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6289 ;; 6290 6291 linux* | k*bsd*-gnu) 6292 case $cc_basename in 6293 # old Intel for x86_64 which still supported -KPIC. 6294 ecc*) 6295 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6296 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6297 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6298 ;; 6299 # icc used to be incompatible with GCC. 6300 # ICC 10 doesn't accept -KPIC any more. 6301 icc* | ifort*) 6302 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6303 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6304 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6305 ;; 6306 # Lahey Fortran 8.1. 6307 lf95*) 6308 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6309 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' 6310 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 6311 ;; 6312 pgcc* | pgf77* | pgf90* | pgf95*) 6313 # Portland Group compilers (*not* the Pentium gcc compiler, 6314 # which looks to be a dead project) 6315 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6316 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 6317 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6318 ;; 6319 ccc*) 6320 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6321 # All Alpha code is PIC. 6322 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6323 ;; 6324 xl*) 6325 # IBM XL C 8.0/Fortran 10.1 on PPC 6326 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6327 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 6328 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 6329 ;; 6330 *) 6331 case `$CC -V 2>&1 | sed 5q` in 6332 *Sun\ C*) 6333 # Sun C 5.9 6334 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6335 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6336 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6337 ;; 6338 *Sun\ F*) 6339 # Sun Fortran 8.3 passes all unrecognized flags to the linker 6340 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6341 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6342 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' 6343 ;; 6344 esac 6345 ;; 6346 esac 6347 ;; 6348 6349 newsos6) 6350 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6351 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6352 ;; 6353 6354 *nto* | *qnx*) 6355 # QNX uses GNU C++, but need to define -shared option too, otherwise 6356 # it will coredump. 6357 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 6358 ;; 6359 6360 osf3* | osf4* | osf5*) 6361 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6362 # All OSF/1 code is PIC. 6363 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6364 ;; 6365 6366 rdos*) 6367 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6368 ;; 6369 6370 solaris*) 6371 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6372 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6373 case $cc_basename in 6374 f77* | f90* | f95*) 6375 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 6376 *) 6377 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 6378 esac 6379 ;; 6380 6381 sunos4*) 6382 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 6383 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 6384 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6385 ;; 6386 6387 sysv4 | sysv4.2uw2* | sysv4.3*) 6388 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6389 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6390 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6391 ;; 6392 6393 sysv4*MP*) 6394 if test -d /usr/nec ;then 6395 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 6396 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6397 fi 6398 ;; 6399 6400 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6401 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6402 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6403 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6404 ;; 6405 6406 unicos*) 6407 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6408 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6409 ;; 6410 6411 uts4*) 6412 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6413 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6414 ;; 6415 6416 *) 6417 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6418 ;; 6419 esac 6420 fi 6421]) 6422case $host_os in 6423 # For platforms which do not support PIC, -DPIC is meaningless: 6424 *djgpp*) 6425 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 6426 ;; 6427 *) 6428 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" 6429 ;; 6430esac 6431AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) 6432_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], 6433 [How to pass a linker flag through the compiler]) 6434 6435# 6436# Check to make sure the PIC flag actually works. 6437# 6438if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 6439 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], 6440 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], 6441 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], 6442 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in 6443 "" | " "*) ;; 6444 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; 6445 esac], 6446 [_LT_TAGVAR(lt_prog_compiler_pic, $1)= 6447 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 6448fi 6449_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], 6450 [Additional compiler flags for building library objects]) 6451 6452# 6453# Check to make sure the static flag actually works. 6454# 6455wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" 6456_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 6457 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), 6458 $lt_tmp_static_flag, 6459 [], 6460 [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) 6461_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], 6462 [Compiler flag to prevent dynamic linking]) 6463])# _LT_COMPILER_PIC 6464 6465 6466# _LT_LINKER_SHLIBS([TAGNAME]) 6467# ---------------------------- 6468# See if the linker supports building shared libraries. 6469m4_defun([_LT_LINKER_SHLIBS], 6470[AC_REQUIRE([LT_PATH_LD])dnl 6471AC_REQUIRE([LT_PATH_NM])dnl 6472m4_require([_LT_FILEUTILS_DEFAULTS])dnl 6473m4_require([_LT_DECL_EGREP])dnl 6474m4_require([_LT_DECL_SED])dnl 6475m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 6476m4_require([_LT_TAG_COMPILER])dnl 6477AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 6478m4_if([$1], [CXX], [ 6479 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6480 case $host_os in 6481 aix[[4-9]]*) 6482 # If we're using GNU nm, then we don't want the "-C" option. 6483 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6484 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 6485 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 6486 else 6487 _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' 6488 fi 6489 ;; 6490 pw32*) 6491 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 6492 ;; 6493 cygwin* | mingw* | cegcc*) 6494 _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' 6495 ;; 6496 *) 6497 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6498 ;; 6499 esac 6500 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 6501], [ 6502 runpath_var= 6503 _LT_TAGVAR(allow_undefined_flag, $1)= 6504 _LT_TAGVAR(always_export_symbols, $1)=no 6505 _LT_TAGVAR(archive_cmds, $1)= 6506 _LT_TAGVAR(archive_expsym_cmds, $1)= 6507 _LT_TAGVAR(compiler_needs_object, $1)=no 6508 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 6509 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 6510 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6511 _LT_TAGVAR(hardcode_automatic, $1)=no 6512 _LT_TAGVAR(hardcode_direct, $1)=no 6513 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 6514 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 6515 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 6516 _LT_TAGVAR(hardcode_libdir_separator, $1)= 6517 _LT_TAGVAR(hardcode_minus_L, $1)=no 6518 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 6519 _LT_TAGVAR(inherit_rpath, $1)=no 6520 _LT_TAGVAR(link_all_deplibs, $1)=unknown 6521 _LT_TAGVAR(module_cmds, $1)= 6522 _LT_TAGVAR(module_expsym_cmds, $1)= 6523 _LT_TAGVAR(old_archive_from_new_cmds, $1)= 6524 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= 6525 _LT_TAGVAR(thread_safe_flag_spec, $1)= 6526 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6527 # include_expsyms should be a list of space-separated symbols to be *always* 6528 # included in the symbol list 6529 _LT_TAGVAR(include_expsyms, $1)= 6530 # exclude_expsyms can be an extended regexp of symbols to exclude 6531 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6532 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6533 # as well as any symbol that contains `d'. 6534 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 6535 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6536 # platforms (ab)use it in PIC code, but their linkers get confused if 6537 # the symbol is explicitly referenced. Since portable code cannot 6538 # rely on this symbol name, it's probably fine to never include it in 6539 # preloaded symbol tables. 6540 # Exclude shared library initialization/finalization symbols. 6541dnl Note also adjust exclude_expsyms for C++ above. 6542 extract_expsyms_cmds= 6543 6544 case $host_os in 6545 cygwin* | mingw* | pw32* | cegcc*) 6546 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6547 # When not using gcc, we currently assume that we are using 6548 # Microsoft Visual C++. 6549 if test "$GCC" != yes; then 6550 with_gnu_ld=no 6551 fi 6552 ;; 6553 interix*) 6554 # we just hope/assume this is gcc and not c89 (= MSVC++) 6555 with_gnu_ld=yes 6556 ;; 6557 openbsd*) 6558 with_gnu_ld=no 6559 ;; 6560 esac 6561 6562 _LT_TAGVAR(ld_shlibs, $1)=yes 6563 if test "$with_gnu_ld" = yes; then 6564 # If archive_cmds runs LD, not CC, wlarc should be empty 6565 wlarc='${wl}' 6566 6567 # Set some defaults for GNU ld with shared library support. These 6568 # are reset later if shared libraries are not supported. Putting them 6569 # here allows them to be overridden if necessary. 6570 runpath_var=LD_RUN_PATH 6571 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6572 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 6573 # ancient GNU ld didn't support --whole-archive et. al. 6574 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 6575 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6576 else 6577 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6578 fi 6579 supports_anon_versioning=no 6580 case `$LD -v 2>&1` in 6581 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 6582 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6583 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6584 *\ 2.11.*) ;; # other 2.11 versions 6585 *) supports_anon_versioning=yes ;; 6586 esac 6587 6588 # See if GNU ld supports shared libraries. 6589 case $host_os in 6590 aix[[3-9]]*) 6591 # On AIX/PPC, the GNU linker is very broken 6592 if test "$host_cpu" != ia64; then 6593 _LT_TAGVAR(ld_shlibs, $1)=no 6594 cat <<_LT_EOF 1>&2 6595 6596*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6597*** to be unable to reliably create shared libraries on AIX. 6598*** Therefore, libtool is disabling shared libraries support. If you 6599*** really care for shared libraries, you may want to modify your PATH 6600*** so that a non-GNU linker is found, and then restart. 6601 6602_LT_EOF 6603 fi 6604 ;; 6605 6606 amigaos*) 6607 case $host_cpu in 6608 powerpc) 6609 # see comment about AmigaOS4 .so support 6610 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6611 _LT_TAGVAR(archive_expsym_cmds, $1)='' 6612 ;; 6613 m68k) 6614 _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)' 6615 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6616 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6617 ;; 6618 esac 6619 ;; 6620 6621 beos*) 6622 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6623 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6624 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6625 # support --undefined. This deserves some investigation. FIXME 6626 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6627 else 6628 _LT_TAGVAR(ld_shlibs, $1)=no 6629 fi 6630 ;; 6631 6632 cygwin* | mingw* | pw32* | cegcc*) 6633 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 6634 # as there is no search path for DLLs. 6635 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6636 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6637 _LT_TAGVAR(always_export_symbols, $1)=no 6638 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6639 _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' 6640 6641 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 6642 _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' 6643 # If the export-symbols file already is a .def file (1st line 6644 # is EXPORTS), use it as is; otherwise, prepend... 6645 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6646 cp $export_symbols $output_objdir/$soname.def; 6647 else 6648 echo EXPORTS > $output_objdir/$soname.def; 6649 cat $export_symbols >> $output_objdir/$soname.def; 6650 fi~ 6651 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6652 else 6653 _LT_TAGVAR(ld_shlibs, $1)=no 6654 fi 6655 ;; 6656 6657 interix[[3-9]]*) 6658 _LT_TAGVAR(hardcode_direct, $1)=no 6659 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6660 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6661 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6662 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 6663 # Instead, shared libraries are loaded at an image base (0x10000000 by 6664 # default) and relocated if they conflict, which is a slow very memory 6665 # consuming and fragmenting process. To avoid this, we pick a random, 6666 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 6667 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 6668 _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' 6669 _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' 6670 ;; 6671 6672 gnu* | linux* | tpf* | k*bsd*-gnu) 6673 tmp_diet=no 6674 if test "$host_os" = linux-dietlibc; then 6675 case $cc_basename in 6676 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 6677 esac 6678 fi 6679 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 6680 && test "$tmp_diet" = no 6681 then 6682 tmp_addflag= 6683 tmp_sharedflag='-shared' 6684 case $cc_basename,$host_cpu in 6685 pgcc*) # Portland Group C compiler 6686 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 6687 tmp_addflag=' $pic_flag' 6688 ;; 6689 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 6690 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 6691 tmp_addflag=' $pic_flag -Mnomain' ;; 6692 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 6693 tmp_addflag=' -i_dynamic' ;; 6694 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 6695 tmp_addflag=' -i_dynamic -nofor_main' ;; 6696 ifc* | ifort*) # Intel Fortran compiler 6697 tmp_addflag=' -nofor_main' ;; 6698 lf95*) # Lahey Fortran 8.1 6699 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6700 tmp_sharedflag='--shared' ;; 6701 xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 6702 tmp_sharedflag='-qmkshrobj' 6703 tmp_addflag= ;; 6704 esac 6705 case `$CC -V 2>&1 | sed 5q` in 6706 *Sun\ C*) # Sun C 5.9 6707 _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; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 6708 _LT_TAGVAR(compiler_needs_object, $1)=yes 6709 tmp_sharedflag='-G' ;; 6710 *Sun\ F*) # Sun Fortran 8.3 6711 tmp_sharedflag='-G' ;; 6712 esac 6713 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6714 6715 if test "x$supports_anon_versioning" = xyes; then 6716 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 6717 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6718 echo "local: *; };" >> $output_objdir/$libname.ver~ 6719 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6720 fi 6721 6722 case $cc_basename in 6723 xlf*) 6724 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 6725 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' 6726 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 6727 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' 6728 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 6729 if test "x$supports_anon_versioning" = xyes; then 6730 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 6731 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6732 echo "local: *; };" >> $output_objdir/$libname.ver~ 6733 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 6734 fi 6735 ;; 6736 esac 6737 else 6738 _LT_TAGVAR(ld_shlibs, $1)=no 6739 fi 6740 ;; 6741 6742 netbsd*) 6743 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 6744 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6745 wlarc= 6746 else 6747 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6748 _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' 6749 fi 6750 ;; 6751 6752 solaris*) 6753 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 6754 _LT_TAGVAR(ld_shlibs, $1)=no 6755 cat <<_LT_EOF 1>&2 6756 6757*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6758*** create shared libraries on Solaris systems. Therefore, libtool 6759*** is disabling shared libraries support. We urge you to upgrade GNU 6760*** binutils to release 2.9.1 or newer. Another option is to modify 6761*** your PATH or compiler configuration so that the native linker is 6762*** used, and then restart. 6763 6764_LT_EOF 6765 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6766 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6767 _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' 6768 else 6769 _LT_TAGVAR(ld_shlibs, $1)=no 6770 fi 6771 ;; 6772 6773 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 6774 case `$LD -v 2>&1` in 6775 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 6776 _LT_TAGVAR(ld_shlibs, $1)=no 6777 cat <<_LT_EOF 1>&2 6778 6779*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 6780*** reliably create shared libraries on SCO systems. Therefore, libtool 6781*** is disabling shared libraries support. We urge you to upgrade GNU 6782*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 6783*** your PATH or compiler configuration so that the native linker is 6784*** used, and then restart. 6785 6786_LT_EOF 6787 ;; 6788 *) 6789 # For security reasons, it is highly recommended that you always 6790 # use absolute paths for naming shared libraries, and exclude the 6791 # DT_RUNPATH tag from executables and libraries. But doing so 6792 # requires that you compile everything twice, which is a pain. 6793 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6794 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6795 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6796 _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' 6797 else 6798 _LT_TAGVAR(ld_shlibs, $1)=no 6799 fi 6800 ;; 6801 esac 6802 ;; 6803 6804 sunos4*) 6805 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6806 wlarc= 6807 _LT_TAGVAR(hardcode_direct, $1)=yes 6808 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6809 ;; 6810 6811 *) 6812 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6813 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6814 _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' 6815 else 6816 _LT_TAGVAR(ld_shlibs, $1)=no 6817 fi 6818 ;; 6819 esac 6820 6821 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then 6822 runpath_var= 6823 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 6824 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 6825 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6826 fi 6827 else 6828 # PORTME fill in a description of your system's linker (not GNU ld) 6829 case $host_os in 6830 aix3*) 6831 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6832 _LT_TAGVAR(always_export_symbols, $1)=yes 6833 _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' 6834 # Note: this linker hardcodes the directories in LIBPATH if there 6835 # are no directories specified by -L. 6836 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6837 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 6838 # Neither direct hardcoding nor static linking is supported with a 6839 # broken collect2. 6840 _LT_TAGVAR(hardcode_direct, $1)=unsupported 6841 fi 6842 ;; 6843 6844 aix[[4-9]]*) 6845 if test "$host_cpu" = ia64; then 6846 # On IA64, the linker does run time linking by default, so we don't 6847 # have to do anything special. 6848 aix_use_runtimelinking=no 6849 exp_sym_flag='-Bexport' 6850 no_entry_flag="" 6851 else 6852 # If we're using GNU nm, then we don't want the "-C" option. 6853 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6854 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 6855 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 6856 else 6857 _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' 6858 fi 6859 aix_use_runtimelinking=no 6860 6861 # Test if we are trying to use run time linking or normal 6862 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6863 # need to do runtime linking. 6864 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 6865 for ld_flag in $LDFLAGS; do 6866 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6867 aix_use_runtimelinking=yes 6868 break 6869 fi 6870 done 6871 ;; 6872 esac 6873 6874 exp_sym_flag='-bexport' 6875 no_entry_flag='-bnoentry' 6876 fi 6877 6878 # When large executables or shared objects are built, AIX ld can 6879 # have problems creating the table of contents. If linking a library 6880 # or program results in "error TOC overflow" add -mminimal-toc to 6881 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6882 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6883 6884 _LT_TAGVAR(archive_cmds, $1)='' 6885 _LT_TAGVAR(hardcode_direct, $1)=yes 6886 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6887 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 6888 _LT_TAGVAR(link_all_deplibs, $1)=yes 6889 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 6890 6891 if test "$GCC" = yes; then 6892 case $host_os in aix4.[[012]]|aix4.[[012]].*) 6893 # We only want to do this on AIX 4.2 and lower, the check 6894 # below for broken collect2 doesn't work under 4.3+ 6895 collect2name=`${CC} -print-prog-name=collect2` 6896 if test -f "$collect2name" && 6897 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 6898 then 6899 # We have reworked collect2 6900 : 6901 else 6902 # We have old collect2 6903 _LT_TAGVAR(hardcode_direct, $1)=unsupported 6904 # It fails to find uninstalled libraries when the uninstalled 6905 # path is not listed in the libpath. Setting hardcode_minus_L 6906 # to unsupported forces relinking 6907 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6908 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6909 _LT_TAGVAR(hardcode_libdir_separator, $1)= 6910 fi 6911 ;; 6912 esac 6913 shared_flag='-shared' 6914 if test "$aix_use_runtimelinking" = yes; then 6915 shared_flag="$shared_flag "'${wl}-G' 6916 fi 6917 else 6918 # not using gcc 6919 if test "$host_cpu" = ia64; then 6920 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6921 # chokes on -Wl,-G. The following line is correct: 6922 shared_flag='-G' 6923 else 6924 if test "$aix_use_runtimelinking" = yes; then 6925 shared_flag='${wl}-G' 6926 else 6927 shared_flag='${wl}-bM:SRE' 6928 fi 6929 fi 6930 fi 6931 6932 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 6933 # It seems that -bexpall does not export symbols beginning with 6934 # underscore (_), so it is better to generate a list of symbols to export. 6935 _LT_TAGVAR(always_export_symbols, $1)=yes 6936 if test "$aix_use_runtimelinking" = yes; then 6937 # Warning - without using the other runtime loading flags (-brtl), 6938 # -berok will link without error, but may produce a broken library. 6939 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 6940 # Determine the default libpath from the value encoded in an 6941 # empty executable. 6942 _LT_SYS_MODULE_PATH_AIX 6943 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 6944 _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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 6945 else 6946 if test "$host_cpu" = ia64; then 6947 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 6948 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 6949 _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" 6950 else 6951 # Determine the default libpath from the value encoded in an 6952 # empty executable. 6953 _LT_SYS_MODULE_PATH_AIX 6954 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 6955 # Warning - without using the other run time loading flags, 6956 # -berok will link without error, but may produce a broken library. 6957 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 6958 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 6959 # Exported symbols can be pulled into shared objects from archives 6960 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 6961 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6962 # This is similar to how AIX traditionally builds its shared libraries. 6963 _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' 6964 fi 6965 fi 6966 ;; 6967 6968 amigaos*) 6969 case $host_cpu in 6970 powerpc) 6971 # see comment about AmigaOS4 .so support 6972 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6973 _LT_TAGVAR(archive_expsym_cmds, $1)='' 6974 ;; 6975 m68k) 6976 _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)' 6977 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6978 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6979 ;; 6980 esac 6981 ;; 6982 6983 bsdi[[45]]*) 6984 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 6985 ;; 6986 6987 cygwin* | mingw* | pw32* | cegcc*) 6988 # When not using gcc, we currently assume that we are using 6989 # Microsoft Visual C++. 6990 # hardcode_libdir_flag_spec is actually meaningless, as there is 6991 # no search path for DLLs. 6992 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 6993 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6994 # Tell ltmain to make .lib files, not .a files. 6995 libext=lib 6996 # Tell ltmain to make .dll files, not .so files. 6997 shrext_cmds=".dll" 6998 # FIXME: Setting linknames here is a bad hack. 6999 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7000 # The linker will automatically build a .lib file if we build a DLL. 7001 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 7002 # FIXME: Should let the user specify the lib program. 7003 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 7004 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' 7005 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 7006 ;; 7007 7008 darwin* | rhapsody*) 7009 _LT_DARWIN_LINKER_FEATURES($1) 7010 ;; 7011 7012 dgux*) 7013 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7014 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7015 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7016 ;; 7017 7018 freebsd1*) 7019 _LT_TAGVAR(ld_shlibs, $1)=no 7020 ;; 7021 7022 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7023 # support. Future versions do this automatically, but an explicit c++rt0.o 7024 # does not break anything, and helps significantly (at the cost of a little 7025 # extra space). 7026 freebsd2.2*) 7027 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7028 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7029 _LT_TAGVAR(hardcode_direct, $1)=yes 7030 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7031 ;; 7032 7033 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7034 freebsd2*) 7035 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7036 _LT_TAGVAR(hardcode_direct, $1)=yes 7037 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7038 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7039 ;; 7040 7041 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7042 freebsd* | dragonfly*) 7043 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7044 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7045 _LT_TAGVAR(hardcode_direct, $1)=yes 7046 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7047 ;; 7048 7049 hpux9*) 7050 if test "$GCC" = yes; then 7051 _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' 7052 else 7053 _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' 7054 fi 7055 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 7056 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7057 _LT_TAGVAR(hardcode_direct, $1)=yes 7058 7059 # hardcode_minus_L: Not really in the search PATH, 7060 # but as the default location of the library. 7061 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7062 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7063 ;; 7064 7065 hpux10*) 7066 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7067 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7068 else 7069 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7070 fi 7071 if test "$with_gnu_ld" = no; then 7072 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 7073 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 7074 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7075 _LT_TAGVAR(hardcode_direct, $1)=yes 7076 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7077 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7078 # hardcode_minus_L: Not really in the search PATH, 7079 # but as the default location of the library. 7080 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7081 fi 7082 ;; 7083 7084 hpux11*) 7085 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7086 case $host_cpu in 7087 hppa*64*) 7088 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7089 ;; 7090 ia64*) 7091 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7092 ;; 7093 *) 7094 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7095 ;; 7096 esac 7097 else 7098 case $host_cpu in 7099 hppa*64*) 7100 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7101 ;; 7102 ia64*) 7103 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7104 ;; 7105 *) 7106 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7107 ;; 7108 esac 7109 fi 7110 if test "$with_gnu_ld" = no; then 7111 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 7112 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7113 7114 case $host_cpu in 7115 hppa*64*|ia64*) 7116 _LT_TAGVAR(hardcode_direct, $1)=no 7117 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7118 ;; 7119 *) 7120 _LT_TAGVAR(hardcode_direct, $1)=yes 7121 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7122 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7123 7124 # hardcode_minus_L: Not really in the search PATH, 7125 # but as the default location of the library. 7126 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7127 ;; 7128 esac 7129 fi 7130 ;; 7131 7132 irix5* | irix6* | nonstopux*) 7133 if test "$GCC" = yes; then 7134 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7135 # Try to use the -exported_symbol ld option, if it does not 7136 # work, assume that -exports_file does not work either and 7137 # implicitly export all symbols. 7138 save_LDFLAGS="$LDFLAGS" 7139 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 7140 AC_LINK_IFELSE(int foo(void) {}, 7141 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 7142 ) 7143 LDFLAGS="$save_LDFLAGS" 7144 else 7145 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 7146 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 7147 fi 7148 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 7149 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7150 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7151 _LT_TAGVAR(inherit_rpath, $1)=yes 7152 _LT_TAGVAR(link_all_deplibs, $1)=yes 7153 ;; 7154 7155 netbsd*) 7156 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7157 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7158 else 7159 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7160 fi 7161 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7162 _LT_TAGVAR(hardcode_direct, $1)=yes 7163 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7164 ;; 7165 7166 newsos6) 7167 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7168 _LT_TAGVAR(hardcode_direct, $1)=yes 7169 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7170 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7171 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7172 ;; 7173 7174 *nto* | *qnx*) 7175 ;; 7176 7177 openbsd*) 7178 if test -f /usr/libexec/ld.so; then 7179 _LT_TAGVAR(hardcode_direct, $1)=yes 7180 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7181 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7182 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7183 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7184 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7185 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 7186 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7187 else 7188 case $host_os in 7189 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 7190 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7191 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7192 ;; 7193 *) 7194 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7195 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 7196 ;; 7197 esac 7198 fi 7199 else 7200 _LT_TAGVAR(ld_shlibs, $1)=no 7201 fi 7202 ;; 7203 7204 os2*) 7205 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7206 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7207 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7208 _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' 7209 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7210 ;; 7211 7212 osf3*) 7213 if test "$GCC" = yes; then 7214 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 7215 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7216 else 7217 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 7218 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 7219 fi 7220 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 7221 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7222 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7223 ;; 7224 7225 osf4* | osf5*) # as osf3* with the addition of -msym flag 7226 if test "$GCC" = yes; then 7227 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 7228 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7229 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7230 else 7231 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 7232 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 7233 _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~ 7234 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 7235 7236 # Both c and cxx compiler support -rpath directly 7237 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 7238 fi 7239 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 7240 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7241 ;; 7242 7243 solaris*) 7244 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' 7245 if test "$GCC" = yes; then 7246 wlarc='${wl}' 7247 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7248 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7249 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 7250 else 7251 case `$CC -V 2>&1` in 7252 *"Compilers 5.0"*) 7253 wlarc='' 7254 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7255 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7256 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 7257 ;; 7258 *) 7259 wlarc='${wl}' 7260 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 7261 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7262 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 7263 ;; 7264 esac 7265 fi 7266 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7267 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7268 case $host_os in 7269 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 7270 *) 7271 # The compiler driver will combine and reorder linker options, 7272 # but understands `-z linker_flag'. GCC discards it without `$wl', 7273 # but is careful enough not to reorder. 7274 # Supported since Solaris 2.6 (maybe 2.5.1?) 7275 if test "$GCC" = yes; then 7276 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 7277 else 7278 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 7279 fi 7280 ;; 7281 esac 7282 _LT_TAGVAR(link_all_deplibs, $1)=yes 7283 ;; 7284 7285 sunos4*) 7286 if test "x$host_vendor" = xsequent; then 7287 # Use $CC to link under sequent, because it throws in some extra .o 7288 # files that make .init and .fini sections work. 7289 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7290 else 7291 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7292 fi 7293 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7294 _LT_TAGVAR(hardcode_direct, $1)=yes 7295 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7296 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7297 ;; 7298 7299 sysv4) 7300 case $host_vendor in 7301 sni) 7302 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7303 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 7304 ;; 7305 siemens) 7306 ## LD is ld it makes a PLAMLIB 7307 ## CC just makes a GrossModule. 7308 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7309 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 7310 _LT_TAGVAR(hardcode_direct, $1)=no 7311 ;; 7312 motorola) 7313 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7314 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 7315 ;; 7316 esac 7317 runpath_var='LD_RUN_PATH' 7318 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7319 ;; 7320 7321 sysv4.3*) 7322 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7323 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7324 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 7325 ;; 7326 7327 sysv4*MP*) 7328 if test -d /usr/nec; then 7329 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7330 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7331 runpath_var=LD_RUN_PATH 7332 hardcode_runpath_var=yes 7333 _LT_TAGVAR(ld_shlibs, $1)=yes 7334 fi 7335 ;; 7336 7337 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 7338 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 7339 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7340 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7341 runpath_var='LD_RUN_PATH' 7342 7343 if test "$GCC" = yes; then 7344 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7345 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7346 else 7347 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7348 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7349 fi 7350 ;; 7351 7352 sysv5* | sco3.2v5* | sco5v6*) 7353 # Note: We can NOT use -z defs as we might desire, because we do not 7354 # link with -lc, and that would cause any symbols used from libc to 7355 # always be unresolved, which means just about no library would 7356 # ever link correctly. If we're not using GNU ld we use -z text 7357 # though, which does catch some bad symbols but isn't as heavy-handed 7358 # as -z defs. 7359 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 7360 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 7361 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7362 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7363 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 7364 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 7365 _LT_TAGVAR(link_all_deplibs, $1)=yes 7366 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 7367 runpath_var='LD_RUN_PATH' 7368 7369 if test "$GCC" = yes; then 7370 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7371 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7372 else 7373 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7374 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7375 fi 7376 ;; 7377 7378 uts4*) 7379 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7380 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7381 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7382 ;; 7383 7384 *) 7385 _LT_TAGVAR(ld_shlibs, $1)=no 7386 ;; 7387 esac 7388 7389 if test x$host_vendor = xsni; then 7390 case $host in 7391 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 7392 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' 7393 ;; 7394 esac 7395 fi 7396 fi 7397]) 7398AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 7399test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 7400 7401_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld 7402 7403_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl 7404_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl 7405_LT_DECL([], [extract_expsyms_cmds], [2], 7406 [The commands to extract the exported symbol list from a shared archive]) 7407 7408# 7409# Do we need to explicitly link libc? 7410# 7411case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in 7412x|xyes) 7413 # Assume -lc should be added 7414 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 7415 7416 if test "$enable_shared" = yes && test "$GCC" = yes; then 7417 case $_LT_TAGVAR(archive_cmds, $1) in 7418 *'~'*) 7419 # FIXME: we may have to deal with multi-command sequences. 7420 ;; 7421 '$CC '*) 7422 # Test whether the compiler implicitly links with -lc since on some 7423 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7424 # to ld, don't add -lc before -lgcc. 7425 AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 7426 $RM conftest* 7427 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7428 7429 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 7430 soname=conftest 7431 lib=conftest 7432 libobjs=conftest.$ac_objext 7433 deplibs= 7434 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) 7435 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) 7436 compiler_flags=-v 7437 linker_flags=-v 7438 verstring= 7439 output_objdir=. 7440 libname=conftest 7441 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) 7442 _LT_TAGVAR(allow_undefined_flag, $1)= 7443 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 7444 then 7445 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7446 else 7447 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 7448 fi 7449 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 7450 else 7451 cat conftest.err 1>&5 7452 fi 7453 $RM conftest* 7454 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) 7455 ;; 7456 esac 7457 fi 7458 ;; 7459esac 7460 7461_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], 7462 [Whether or not to add -lc for building shared libraries]) 7463_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], 7464 [enable_shared_with_static_runtimes], [0], 7465 [Whether or not to disallow shared libs when runtime libs are static]) 7466_LT_TAGDECL([], [export_dynamic_flag_spec], [1], 7467 [Compiler flag to allow reflexive dlopens]) 7468_LT_TAGDECL([], [whole_archive_flag_spec], [1], 7469 [Compiler flag to generate shared objects directly from archives]) 7470_LT_TAGDECL([], [compiler_needs_object], [1], 7471 [Whether the compiler copes with passing no objects directly]) 7472_LT_TAGDECL([], [old_archive_from_new_cmds], [2], 7473 [Create an old-style archive from a shared archive]) 7474_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], 7475 [Create a temporary old-style archive to link instead of a shared archive]) 7476_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) 7477_LT_TAGDECL([], [archive_expsym_cmds], [2]) 7478_LT_TAGDECL([], [module_cmds], [2], 7479 [Commands used to build a loadable module if different from building 7480 a shared archive.]) 7481_LT_TAGDECL([], [module_expsym_cmds], [2]) 7482_LT_TAGDECL([], [with_gnu_ld], [1], 7483 [Whether we are building with GNU ld or not]) 7484_LT_TAGDECL([], [allow_undefined_flag], [1], 7485 [Flag that allows shared libraries with undefined symbols to be built]) 7486_LT_TAGDECL([], [no_undefined_flag], [1], 7487 [Flag that enforces no undefined symbols]) 7488_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], 7489 [Flag to hardcode $libdir into a binary during linking. 7490 This must work even if $libdir does not exist]) 7491_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], 7492 [[If ld is used when linking, flag to hardcode $libdir into a binary 7493 during linking. This must work even if $libdir does not exist]]) 7494_LT_TAGDECL([], [hardcode_libdir_separator], [1], 7495 [Whether we need a single "-rpath" flag with a separated argument]) 7496_LT_TAGDECL([], [hardcode_direct], [0], 7497 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 7498 DIR into the resulting binary]) 7499_LT_TAGDECL([], [hardcode_direct_absolute], [0], 7500 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 7501 DIR into the resulting binary and the resulting library dependency is 7502 "absolute", i.e impossible to change by setting ${shlibpath_var} if the 7503 library is relocated]) 7504_LT_TAGDECL([], [hardcode_minus_L], [0], 7505 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR 7506 into the resulting binary]) 7507_LT_TAGDECL([], [hardcode_shlibpath_var], [0], 7508 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 7509 into the resulting binary]) 7510_LT_TAGDECL([], [hardcode_automatic], [0], 7511 [Set to "yes" if building a shared library automatically hardcodes DIR 7512 into the library and all subsequent libraries and executables linked 7513 against it]) 7514_LT_TAGDECL([], [inherit_rpath], [0], 7515 [Set to yes if linker adds runtime paths of dependent libraries 7516 to runtime path list]) 7517_LT_TAGDECL([], [link_all_deplibs], [0], 7518 [Whether libtool must link a program against all its dependency libraries]) 7519_LT_TAGDECL([], [fix_srcfile_path], [1], 7520 [Fix the shell variable $srcfile for the compiler]) 7521_LT_TAGDECL([], [always_export_symbols], [0], 7522 [Set to "yes" if exported symbols are required]) 7523_LT_TAGDECL([], [export_symbols_cmds], [2], 7524 [The commands to list exported symbols]) 7525_LT_TAGDECL([], [exclude_expsyms], [1], 7526 [Symbols that should not be listed in the preloaded symbols]) 7527_LT_TAGDECL([], [include_expsyms], [1], 7528 [Symbols that must always be exported]) 7529_LT_TAGDECL([], [prelink_cmds], [2], 7530 [Commands necessary for linking programs (against libraries) with templates]) 7531_LT_TAGDECL([], [file_list_spec], [1], 7532 [Specify filename containing input files]) 7533dnl FIXME: Not yet implemented 7534dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], 7535dnl [Compiler flag to generate thread safe objects]) 7536])# _LT_LINKER_SHLIBS 7537 7538 7539# _LT_LANG_C_CONFIG([TAG]) 7540# ------------------------ 7541# Ensure that the configuration variables for a C compiler are suitably 7542# defined. These variables are subsequently used by _LT_CONFIG to write 7543# the compiler configuration to `libtool'. 7544m4_defun([_LT_LANG_C_CONFIG], 7545[m4_require([_LT_DECL_EGREP])dnl 7546lt_save_CC="$CC" 7547AC_LANG_PUSH(C) 7548 7549# Source file extension for C test sources. 7550ac_ext=c 7551 7552# Object file extension for compiled C test sources. 7553objext=o 7554_LT_TAGVAR(objext, $1)=$objext 7555 7556# Code to be used in simple compile tests 7557lt_simple_compile_test_code="int some_variable = 0;" 7558 7559# Code to be used in simple link tests 7560lt_simple_link_test_code='int main(){return(0);}' 7561 7562_LT_TAG_COMPILER 7563# Save the default compiler, since it gets overwritten when the other 7564# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7565compiler_DEFAULT=$CC 7566 7567# save warnings/boilerplate of simple test code 7568_LT_COMPILER_BOILERPLATE 7569_LT_LINKER_BOILERPLATE 7570 7571if test -n "$compiler"; then 7572 _LT_COMPILER_NO_RTTI($1) 7573 _LT_COMPILER_PIC($1) 7574 _LT_COMPILER_C_O($1) 7575 _LT_COMPILER_FILE_LOCKS($1) 7576 _LT_LINKER_SHLIBS($1) 7577 _LT_SYS_DYNAMIC_LINKER($1) 7578 _LT_LINKER_HARDCODE_LIBPATH($1) 7579 LT_SYS_DLOPEN_SELF 7580 _LT_CMD_STRIPLIB 7581 7582 # Report which library types will actually be built 7583 AC_MSG_CHECKING([if libtool supports shared libraries]) 7584 AC_MSG_RESULT([$can_build_shared]) 7585 7586 AC_MSG_CHECKING([whether to build shared libraries]) 7587 test "$can_build_shared" = "no" && enable_shared=no 7588 7589 # On AIX, shared libraries and static libraries use the same namespace, and 7590 # are all built from PIC. 7591 case $host_os in 7592 aix3*) 7593 test "$enable_shared" = yes && enable_static=no 7594 if test -n "$RANLIB"; then 7595 archive_cmds="$archive_cmds~\$RANLIB \$lib" 7596 postinstall_cmds='$RANLIB $lib' 7597 fi 7598 ;; 7599 7600 aix[[4-9]]*) 7601 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 7602 test "$enable_shared" = yes && enable_static=no 7603 fi 7604 ;; 7605 esac 7606 AC_MSG_RESULT([$enable_shared]) 7607 7608 AC_MSG_CHECKING([whether to build static libraries]) 7609 # Make sure either enable_shared or enable_static is yes. 7610 test "$enable_shared" = yes || enable_static=yes 7611 AC_MSG_RESULT([$enable_static]) 7612 7613 _LT_CONFIG($1) 7614fi 7615AC_LANG_POP 7616CC="$lt_save_CC" 7617])# _LT_LANG_C_CONFIG 7618 7619 7620# _LT_PROG_CXX 7621# ------------ 7622# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++ 7623# compiler, we have our own version here. 7624m4_defun([_LT_PROG_CXX], 7625[ 7626pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) 7627AC_PROG_CXX 7628if test -n "$CXX" && ( test "X$CXX" != "Xno" && 7629 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 7630 (test "X$CXX" != "Xg++"))) ; then 7631 AC_PROG_CXXCPP 7632else 7633 _lt_caught_CXX_error=yes 7634fi 7635popdef([AC_MSG_ERROR]) 7636])# _LT_PROG_CXX 7637 7638dnl aclocal-1.4 backwards compatibility: 7639dnl AC_DEFUN([_LT_PROG_CXX], []) 7640 7641 7642# _LT_LANG_CXX_CONFIG([TAG]) 7643# -------------------------- 7644# Ensure that the configuration variables for a C++ compiler are suitably 7645# defined. These variables are subsequently used by _LT_CONFIG to write 7646# the compiler configuration to `libtool'. 7647m4_defun([_LT_LANG_CXX_CONFIG], 7648[AC_REQUIRE([_LT_PROG_CXX])dnl 7649m4_require([_LT_FILEUTILS_DEFAULTS])dnl 7650m4_require([_LT_DECL_EGREP])dnl 7651 7652AC_LANG_PUSH(C++) 7653_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7654_LT_TAGVAR(allow_undefined_flag, $1)= 7655_LT_TAGVAR(always_export_symbols, $1)=no 7656_LT_TAGVAR(archive_expsym_cmds, $1)= 7657_LT_TAGVAR(compiler_needs_object, $1)=no 7658_LT_TAGVAR(export_dynamic_flag_spec, $1)= 7659_LT_TAGVAR(hardcode_direct, $1)=no 7660_LT_TAGVAR(hardcode_direct_absolute, $1)=no 7661_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 7662_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 7663_LT_TAGVAR(hardcode_libdir_separator, $1)= 7664_LT_TAGVAR(hardcode_minus_L, $1)=no 7665_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 7666_LT_TAGVAR(hardcode_automatic, $1)=no 7667_LT_TAGVAR(inherit_rpath, $1)=no 7668_LT_TAGVAR(module_cmds, $1)= 7669_LT_TAGVAR(module_expsym_cmds, $1)= 7670_LT_TAGVAR(link_all_deplibs, $1)=unknown 7671_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7672_LT_TAGVAR(no_undefined_flag, $1)= 7673_LT_TAGVAR(whole_archive_flag_spec, $1)= 7674_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 7675 7676# Source file extension for C++ test sources. 7677ac_ext=cpp 7678 7679# Object file extension for compiled C++ test sources. 7680objext=o 7681_LT_TAGVAR(objext, $1)=$objext 7682 7683# No sense in running all these tests if we already determined that 7684# the CXX compiler isn't working. Some variables (like enable_shared) 7685# are currently assumed to apply to all compilers on this platform, 7686# and will be corrupted by setting them based on a non-working compiler. 7687if test "$_lt_caught_CXX_error" != yes; then 7688 # Code to be used in simple compile tests 7689 lt_simple_compile_test_code="int some_variable = 0;" 7690 7691 # Code to be used in simple link tests 7692 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 7693 7694 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 7695 _LT_TAG_COMPILER 7696 7697 # save warnings/boilerplate of simple test code 7698 _LT_COMPILER_BOILERPLATE 7699 _LT_LINKER_BOILERPLATE 7700 7701 # Allow CC to be a program name with arguments. 7702 lt_save_CC=$CC 7703 lt_save_LD=$LD 7704 lt_save_GCC=$GCC 7705 GCC=$GXX 7706 lt_save_with_gnu_ld=$with_gnu_ld 7707 lt_save_path_LD=$lt_cv_path_LD 7708 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 7709 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 7710 else 7711 $as_unset lt_cv_prog_gnu_ld 7712 fi 7713 if test -n "${lt_cv_path_LDCXX+set}"; then 7714 lt_cv_path_LD=$lt_cv_path_LDCXX 7715 else 7716 $as_unset lt_cv_path_LD 7717 fi 7718 test -z "${LDCXX+set}" || LD=$LDCXX 7719 CC=${CXX-"c++"} 7720 compiler=$CC 7721 _LT_TAGVAR(compiler, $1)=$CC 7722 _LT_CC_BASENAME([$compiler]) 7723 7724 if test -n "$compiler"; then 7725 # We don't want -fno-exception when compiling C++ code, so set the 7726 # no_builtin_flag separately 7727 if test "$GXX" = yes; then 7728 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 7729 else 7730 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 7731 fi 7732 7733 if test "$GXX" = yes; then 7734 # Set up default GNU C++ configuration 7735 7736 LT_PATH_LD 7737 7738 # Check if GNU C++ uses GNU ld as the underlying linker, since the 7739 # archiving commands below assume that GNU ld is being used. 7740 if test "$with_gnu_ld" = yes; then 7741 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 7742 _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' 7743 7744 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7745 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 7746 7747 # If archive_cmds runs LD, not CC, wlarc should be empty 7748 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 7749 # investigate it a little bit more. (MM) 7750 wlarc='${wl}' 7751 7752 # ancient GNU ld didn't support --whole-archive et. al. 7753 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 7754 $GREP 'no-whole-archive' > /dev/null; then 7755 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7756 else 7757 _LT_TAGVAR(whole_archive_flag_spec, $1)= 7758 fi 7759 else 7760 with_gnu_ld=no 7761 wlarc= 7762 7763 # A generic and very simple default shared library creation 7764 # command for GNU C++ for the case where it uses the native 7765 # linker, instead of GNU ld. If possible, this setting should 7766 # overridden to take advantage of the native linker features on 7767 # the platform it is being used on. 7768 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 7769 fi 7770 7771 # Commands to make compiler produce verbose output that lists 7772 # what "hidden" libraries, object files and flags are used when 7773 # linking a shared library. 7774 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 7775 7776 else 7777 GXX=no 7778 with_gnu_ld=no 7779 wlarc= 7780 fi 7781 7782 # PORTME: fill in a description of your system's C++ link characteristics 7783 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 7784 _LT_TAGVAR(ld_shlibs, $1)=yes 7785 case $host_os in 7786 aix3*) 7787 # FIXME: insert proper C++ library support 7788 _LT_TAGVAR(ld_shlibs, $1)=no 7789 ;; 7790 aix[[4-9]]*) 7791 if test "$host_cpu" = ia64; then 7792 # On IA64, the linker does run time linking by default, so we don't 7793 # have to do anything special. 7794 aix_use_runtimelinking=no 7795 exp_sym_flag='-Bexport' 7796 no_entry_flag="" 7797 else 7798 aix_use_runtimelinking=no 7799 7800 # Test if we are trying to use run time linking or normal 7801 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7802 # need to do runtime linking. 7803 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 7804 for ld_flag in $LDFLAGS; do 7805 case $ld_flag in 7806 *-brtl*) 7807 aix_use_runtimelinking=yes 7808 break 7809 ;; 7810 esac 7811 done 7812 ;; 7813 esac 7814 7815 exp_sym_flag='-bexport' 7816 no_entry_flag='-bnoentry' 7817 fi 7818 7819 # When large executables or shared objects are built, AIX ld can 7820 # have problems creating the table of contents. If linking a library 7821 # or program results in "error TOC overflow" add -mminimal-toc to 7822 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7823 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7824 7825 _LT_TAGVAR(archive_cmds, $1)='' 7826 _LT_TAGVAR(hardcode_direct, $1)=yes 7827 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7828 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 7829 _LT_TAGVAR(link_all_deplibs, $1)=yes 7830 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 7831 7832 if test "$GXX" = yes; then 7833 case $host_os in aix4.[[012]]|aix4.[[012]].*) 7834 # We only want to do this on AIX 4.2 and lower, the check 7835 # below for broken collect2 doesn't work under 4.3+ 7836 collect2name=`${CC} -print-prog-name=collect2` 7837 if test -f "$collect2name" && 7838 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 7839 then 7840 # We have reworked collect2 7841 : 7842 else 7843 # We have old collect2 7844 _LT_TAGVAR(hardcode_direct, $1)=unsupported 7845 # It fails to find uninstalled libraries when the uninstalled 7846 # path is not listed in the libpath. Setting hardcode_minus_L 7847 # to unsupported forces relinking 7848 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7849 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7850 _LT_TAGVAR(hardcode_libdir_separator, $1)= 7851 fi 7852 esac 7853 shared_flag='-shared' 7854 if test "$aix_use_runtimelinking" = yes; then 7855 shared_flag="$shared_flag "'${wl}-G' 7856 fi 7857 else 7858 # not using gcc 7859 if test "$host_cpu" = ia64; then 7860 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7861 # chokes on -Wl,-G. The following line is correct: 7862 shared_flag='-G' 7863 else 7864 if test "$aix_use_runtimelinking" = yes; then 7865 shared_flag='${wl}-G' 7866 else 7867 shared_flag='${wl}-bM:SRE' 7868 fi 7869 fi 7870 fi 7871 7872 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 7873 # It seems that -bexpall does not export symbols beginning with 7874 # underscore (_), so it is better to generate a list of symbols to 7875 # export. 7876 _LT_TAGVAR(always_export_symbols, $1)=yes 7877 if test "$aix_use_runtimelinking" = yes; then 7878 # Warning - without using the other runtime loading flags (-brtl), 7879 # -berok will link without error, but may produce a broken library. 7880 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 7881 # Determine the default libpath from the value encoded in an empty 7882 # executable. 7883 _LT_SYS_MODULE_PATH_AIX 7884 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 7885 7886 _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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 7887 else 7888 if test "$host_cpu" = ia64; then 7889 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 7890 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 7891 _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" 7892 else 7893 # Determine the default libpath from the value encoded in an 7894 # empty executable. 7895 _LT_SYS_MODULE_PATH_AIX 7896 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 7897 # Warning - without using the other run time loading flags, 7898 # -berok will link without error, but may produce a broken library. 7899 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 7900 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 7901 # Exported symbols can be pulled into shared objects from archives 7902 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 7903 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 7904 # This is similar to how AIX traditionally builds its shared 7905 # libraries. 7906 _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' 7907 fi 7908 fi 7909 ;; 7910 7911 beos*) 7912 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7913 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7914 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7915 # support --undefined. This deserves some investigation. FIXME 7916 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7917 else 7918 _LT_TAGVAR(ld_shlibs, $1)=no 7919 fi 7920 ;; 7921 7922 chorus*) 7923 case $cc_basename in 7924 *) 7925 # FIXME: insert proper C++ library support 7926 _LT_TAGVAR(ld_shlibs, $1)=no 7927 ;; 7928 esac 7929 ;; 7930 7931 cygwin* | mingw* | pw32* | cegcc*) 7932 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 7933 # as there is no search path for DLLs. 7934 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7935 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7936 _LT_TAGVAR(always_export_symbols, $1)=no 7937 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 7938 7939 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 7940 _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' 7941 # If the export-symbols file already is a .def file (1st line 7942 # is EXPORTS), use it as is; otherwise, prepend... 7943 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7944 cp $export_symbols $output_objdir/$soname.def; 7945 else 7946 echo EXPORTS > $output_objdir/$soname.def; 7947 cat $export_symbols >> $output_objdir/$soname.def; 7948 fi~ 7949 $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' 7950 else 7951 _LT_TAGVAR(ld_shlibs, $1)=no 7952 fi 7953 ;; 7954 darwin* | rhapsody*) 7955 _LT_DARWIN_LINKER_FEATURES($1) 7956 ;; 7957 7958 dgux*) 7959 case $cc_basename in 7960 ec++*) 7961 # FIXME: insert proper C++ library support 7962 _LT_TAGVAR(ld_shlibs, $1)=no 7963 ;; 7964 ghcx*) 7965 # Green Hills C++ Compiler 7966 # FIXME: insert proper C++ library support 7967 _LT_TAGVAR(ld_shlibs, $1)=no 7968 ;; 7969 *) 7970 # FIXME: insert proper C++ library support 7971 _LT_TAGVAR(ld_shlibs, $1)=no 7972 ;; 7973 esac 7974 ;; 7975 7976 freebsd[[12]]*) 7977 # C++ shared libraries reported to be fairly broken before 7978 # switch to ELF 7979 _LT_TAGVAR(ld_shlibs, $1)=no 7980 ;; 7981 7982 freebsd-elf*) 7983 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7984 ;; 7985 7986 freebsd* | dragonfly*) 7987 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 7988 # conventions 7989 _LT_TAGVAR(ld_shlibs, $1)=yes 7990 ;; 7991 7992 gnu*) 7993 ;; 7994 7995 hpux9*) 7996 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 7997 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7998 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7999 _LT_TAGVAR(hardcode_direct, $1)=yes 8000 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 8001 # but as the default 8002 # location of the library. 8003 8004 case $cc_basename in 8005 CC*) 8006 # FIXME: insert proper C++ library support 8007 _LT_TAGVAR(ld_shlibs, $1)=no 8008 ;; 8009 aCC*) 8010 _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' 8011 # Commands to make compiler produce verbose output that lists 8012 # what "hidden" libraries, object files and flags are used when 8013 # linking a shared library. 8014 # 8015 # There doesn't appear to be a way to prevent this compiler from 8016 # explicitly linking system object files so we need to strip them 8017 # from the output so that they don't get included in the library 8018 # dependencies. 8019 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; $ECHO "X$list" | $Xsed' 8020 ;; 8021 *) 8022 if test "$GXX" = yes; then 8023 _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' 8024 else 8025 # FIXME: insert proper C++ library support 8026 _LT_TAGVAR(ld_shlibs, $1)=no 8027 fi 8028 ;; 8029 esac 8030 ;; 8031 8032 hpux10*|hpux11*) 8033 if test $with_gnu_ld = no; then 8034 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 8035 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8036 8037 case $host_cpu in 8038 hppa*64*|ia64*) 8039 ;; 8040 *) 8041 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 8042 ;; 8043 esac 8044 fi 8045 case $host_cpu in 8046 hppa*64*|ia64*) 8047 _LT_TAGVAR(hardcode_direct, $1)=no 8048 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8049 ;; 8050 *) 8051 _LT_TAGVAR(hardcode_direct, $1)=yes 8052 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 8053 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 8054 # but as the default 8055 # location of the library. 8056 ;; 8057 esac 8058 8059 case $cc_basename in 8060 CC*) 8061 # FIXME: insert proper C++ library support 8062 _LT_TAGVAR(ld_shlibs, $1)=no 8063 ;; 8064 aCC*) 8065 case $host_cpu in 8066 hppa*64*) 8067 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8068 ;; 8069 ia64*) 8070 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8071 ;; 8072 *) 8073 _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' 8074 ;; 8075 esac 8076 # Commands to make compiler produce verbose output that lists 8077 # what "hidden" libraries, object files and flags are used when 8078 # linking a shared library. 8079 # 8080 # There doesn't appear to be a way to prevent this compiler from 8081 # explicitly linking system object files so we need to strip them 8082 # from the output so that they don't get included in the library 8083 # dependencies. 8084 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 8085 ;; 8086 *) 8087 if test "$GXX" = yes; then 8088 if test $with_gnu_ld = no; then 8089 case $host_cpu in 8090 hppa*64*) 8091 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8092 ;; 8093 ia64*) 8094 _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' 8095 ;; 8096 *) 8097 _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' 8098 ;; 8099 esac 8100 fi 8101 else 8102 # FIXME: insert proper C++ library support 8103 _LT_TAGVAR(ld_shlibs, $1)=no 8104 fi 8105 ;; 8106 esac 8107 ;; 8108 8109 interix[[3-9]]*) 8110 _LT_TAGVAR(hardcode_direct, $1)=no 8111 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8112 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 8113 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 8114 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8115 # Instead, shared libraries are loaded at an image base (0x10000000 by 8116 # default) and relocated if they conflict, which is a slow very memory 8117 # consuming and fragmenting process. To avoid this, we pick a random, 8118 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8119 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8120 _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' 8121 _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' 8122 ;; 8123 irix5* | irix6*) 8124 case $cc_basename in 8125 CC*) 8126 # SGI C++ 8127 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8128 8129 # Archives containing C++ object files must be created using 8130 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 8131 # necessary to make sure instantiated templates are included 8132 # in the archive. 8133 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 8134 ;; 8135 *) 8136 if test "$GXX" = yes; then 8137 if test "$with_gnu_ld" = no; then 8138 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8139 else 8140 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' 8141 fi 8142 fi 8143 _LT_TAGVAR(link_all_deplibs, $1)=yes 8144 ;; 8145 esac 8146 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 8147 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8148 _LT_TAGVAR(inherit_rpath, $1)=yes 8149 ;; 8150 8151 linux* | k*bsd*-gnu) 8152 case $cc_basename in 8153 KCC*) 8154 # Kuck and Associates, Inc. (KAI) C++ Compiler 8155 8156 # KCC will only create a shared library if the output file 8157 # ends with ".so" (or ".sl" for HP-UX), so rename the library 8158 # to its proper name (with version) after linking. 8159 _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' 8160 _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' 8161 # Commands to make compiler produce verbose output that lists 8162 # what "hidden" libraries, object files and flags are used when 8163 # linking a shared library. 8164 # 8165 # There doesn't appear to be a way to prevent this compiler from 8166 # explicitly linking system object files so we need to strip them 8167 # from the output so that they don't get included in the library 8168 # dependencies. 8169 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 8170 8171 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 8172 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 8173 8174 # Archives containing C++ object files must be created using 8175 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 8176 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 8177 ;; 8178 icpc* | ecpc* ) 8179 # Intel C++ 8180 with_gnu_ld=yes 8181 # version 8.0 and above of icpc choke on multiply defined symbols 8182 # if we add $predep_objects and $postdep_objects, however 7.1 and 8183 # earlier do not add the objects themselves. 8184 case `$CC -V 2>&1` in 8185 *"Version 7."*) 8186 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 8187 _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' 8188 ;; 8189 *) # Version 8.0 or newer 8190 tmp_idyn= 8191 case $host_cpu in 8192 ia64*) tmp_idyn=' -i_dynamic';; 8193 esac 8194 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8195 _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' 8196 ;; 8197 esac 8198 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 8199 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 8200 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 8201 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 8202 ;; 8203 pgCC* | pgcpp*) 8204 # Portland Group C++ compiler 8205 case `$CC -V` in 8206 *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) 8207 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 8208 rm -rf $tpldir~ 8209 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 8210 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 8211 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 8212 rm -rf $tpldir~ 8213 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 8214 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 8215 $RANLIB $oldlib' 8216 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 8217 rm -rf $tpldir~ 8218 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 8219 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 8220 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 8221 rm -rf $tpldir~ 8222 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 8223 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 8224 ;; 8225 *) # Version 6 will use weak symbols 8226 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 8227 _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' 8228 ;; 8229 esac 8230 8231 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 8232 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 8233 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 8234 ;; 8235 cxx*) 8236 # Compaq C++ 8237 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 8238 _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' 8239 8240 runpath_var=LD_RUN_PATH 8241 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 8242 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8243 8244 # Commands to make compiler produce verbose output that lists 8245 # what "hidden" libraries, object files and flags are used when 8246 # linking a shared library. 8247 # 8248 # There doesn't appear to be a way to prevent this compiler from 8249 # explicitly linking system object files so we need to strip them 8250 # from the output so that they don't get included in the library 8251 # dependencies. 8252 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 8253 ;; 8254 xl*) 8255 # IBM XL 8.0 on PPC, with GNU ld 8256 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 8257 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 8258 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8259 if test "x$supports_anon_versioning" = xyes; then 8260 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 8261 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8262 echo "local: *; };" >> $output_objdir/$libname.ver~ 8263 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8264 fi 8265 ;; 8266 *) 8267 case `$CC -V 2>&1 | sed 5q` in 8268 *Sun\ C*) 8269 # Sun C++ 5.9 8270 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 8271 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8272 _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' 8273 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 8274 _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; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 8275 _LT_TAGVAR(compiler_needs_object, $1)=yes 8276 8277 # Not sure whether something based on 8278 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 8279 # would be better. 8280 output_verbose_link_cmd='echo' 8281 8282 # Archives containing C++ object files must be created using 8283 # "CC -xar", where "CC" is the Sun C++ compiler. This is 8284 # necessary to make sure instantiated templates are included 8285 # in the archive. 8286 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 8287 ;; 8288 esac 8289 ;; 8290 esac 8291 ;; 8292 8293 lynxos*) 8294 # FIXME: insert proper C++ library support 8295 _LT_TAGVAR(ld_shlibs, $1)=no 8296 ;; 8297 8298 m88k*) 8299 # FIXME: insert proper C++ library support 8300 _LT_TAGVAR(ld_shlibs, $1)=no 8301 ;; 8302 8303 mvs*) 8304 case $cc_basename in 8305 cxx*) 8306 # FIXME: insert proper C++ library support 8307 _LT_TAGVAR(ld_shlibs, $1)=no 8308 ;; 8309 *) 8310 # FIXME: insert proper C++ library support 8311 _LT_TAGVAR(ld_shlibs, $1)=no 8312 ;; 8313 esac 8314 ;; 8315 8316 netbsd*) 8317 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8318 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 8319 wlarc= 8320 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 8321 _LT_TAGVAR(hardcode_direct, $1)=yes 8322 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8323 fi 8324 # Workaround some broken pre-1.5 toolchains 8325 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 8326 ;; 8327 8328 *nto* | *qnx*) 8329 _LT_TAGVAR(ld_shlibs, $1)=yes 8330 ;; 8331 8332 openbsd2*) 8333 # C++ shared libraries are fairly broken 8334 _LT_TAGVAR(ld_shlibs, $1)=no 8335 ;; 8336 8337 openbsd*) 8338 if test -f /usr/libexec/ld.so; then 8339 _LT_TAGVAR(hardcode_direct, $1)=yes 8340 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8341 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 8342 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 8343 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 8344 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8345 _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' 8346 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 8347 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8348 fi 8349 output_verbose_link_cmd=echo 8350 else 8351 _LT_TAGVAR(ld_shlibs, $1)=no 8352 fi 8353 ;; 8354 8355 osf3* | osf4* | osf5*) 8356 case $cc_basename in 8357 KCC*) 8358 # Kuck and Associates, Inc. (KAI) C++ Compiler 8359 8360 # KCC will only create a shared library if the output file 8361 # ends with ".so" (or ".sl" for HP-UX), so rename the library 8362 # to its proper name (with version) after linking. 8363 _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' 8364 8365 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 8366 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8367 8368 # Archives containing C++ object files must be created using 8369 # the KAI C++ compiler. 8370 case $host in 8371 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; 8372 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; 8373 esac 8374 ;; 8375 RCC*) 8376 # Rational C++ 2.4.1 8377 # FIXME: insert proper C++ library support 8378 _LT_TAGVAR(ld_shlibs, $1)=no 8379 ;; 8380 cxx*) 8381 case $host in 8382 osf3*) 8383 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 8384 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8385 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 8386 ;; 8387 *) 8388 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 8389 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8390 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 8391 echo "-hidden">> $lib.exp~ 8392 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ 8393 $RM $lib.exp' 8394 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 8395 ;; 8396 esac 8397 8398 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8399 8400 # Commands to make compiler produce verbose output that lists 8401 # what "hidden" libraries, object files and flags are used when 8402 # linking a shared library. 8403 # 8404 # There doesn't appear to be a way to prevent this compiler from 8405 # explicitly linking system object files so we need to strip them 8406 # from the output so that they don't get included in the library 8407 # dependencies. 8408 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 8409 ;; 8410 *) 8411 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 8412 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 8413 case $host in 8414 osf3*) 8415 _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" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8416 ;; 8417 *) 8418 _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" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8419 ;; 8420 esac 8421 8422 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 8423 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8424 8425 # Commands to make compiler produce verbose output that lists 8426 # what "hidden" libraries, object files and flags are used when 8427 # linking a shared library. 8428 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 8429 8430 else 8431 # FIXME: insert proper C++ library support 8432 _LT_TAGVAR(ld_shlibs, $1)=no 8433 fi 8434 ;; 8435 esac 8436 ;; 8437 8438 psos*) 8439 # FIXME: insert proper C++ library support 8440 _LT_TAGVAR(ld_shlibs, $1)=no 8441 ;; 8442 8443 sunos4*) 8444 case $cc_basename in 8445 CC*) 8446 # Sun C++ 4.x 8447 # FIXME: insert proper C++ library support 8448 _LT_TAGVAR(ld_shlibs, $1)=no 8449 ;; 8450 lcc*) 8451 # Lucid 8452 # FIXME: insert proper C++ library support 8453 _LT_TAGVAR(ld_shlibs, $1)=no 8454 ;; 8455 *) 8456 # FIXME: insert proper C++ library support 8457 _LT_TAGVAR(ld_shlibs, $1)=no 8458 ;; 8459 esac 8460 ;; 8461 8462 solaris*) 8463 case $cc_basename in 8464 CC*) 8465 # Sun C++ 4.2, 5.x and Centerline C++ 8466 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 8467 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 8468 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8469 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8470 $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' 8471 8472 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 8473 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8474 case $host_os in 8475 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 8476 *) 8477 # The compiler driver will combine and reorder linker options, 8478 # but understands `-z linker_flag'. 8479 # Supported since Solaris 2.6 (maybe 2.5.1?) 8480 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 8481 ;; 8482 esac 8483 _LT_TAGVAR(link_all_deplibs, $1)=yes 8484 8485 output_verbose_link_cmd='echo' 8486 8487 # Archives containing C++ object files must be created using 8488 # "CC -xar", where "CC" is the Sun C++ compiler. This is 8489 # necessary to make sure instantiated templates are included 8490 # in the archive. 8491 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 8492 ;; 8493 gcx*) 8494 # Green Hills C++ Compiler 8495 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 8496 8497 # The C++ compiler must be used to create the archive. 8498 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 8499 ;; 8500 *) 8501 # GNU C++ compiler with Solaris linker 8502 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 8503 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 8504 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 8505 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 8506 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8507 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 8508 8509 # Commands to make compiler produce verbose output that lists 8510 # what "hidden" libraries, object files and flags are used when 8511 # linking a shared library. 8512 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 8513 else 8514 # g++ 2.7 appears to require `-G' NOT `-shared' on this 8515 # platform. 8516 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 8517 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8518 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 8519 8520 # Commands to make compiler produce verbose output that lists 8521 # what "hidden" libraries, object files and flags are used when 8522 # linking a shared library. 8523 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 8524 fi 8525 8526 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 8527 case $host_os in 8528 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 8529 *) 8530 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8531 ;; 8532 esac 8533 fi 8534 ;; 8535 esac 8536 ;; 8537 8538 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 8539 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 8540 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 8541 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8542 runpath_var='LD_RUN_PATH' 8543 8544 case $cc_basename in 8545 CC*) 8546 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8547 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8548 ;; 8549 *) 8550 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8551 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8552 ;; 8553 esac 8554 ;; 8555 8556 sysv5* | sco3.2v5* | sco5v6*) 8557 # Note: We can NOT use -z defs as we might desire, because we do not 8558 # link with -lc, and that would cause any symbols used from libc to 8559 # always be unresolved, which means just about no library would 8560 # ever link correctly. If we're not using GNU ld we use -z text 8561 # though, which does catch some bad symbols but isn't as heavy-handed 8562 # as -z defs. 8563 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 8564 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 8565 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 8566 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8567 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 8568 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 8569 _LT_TAGVAR(link_all_deplibs, $1)=yes 8570 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 8571 runpath_var='LD_RUN_PATH' 8572 8573 case $cc_basename in 8574 CC*) 8575 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8576 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8577 ;; 8578 *) 8579 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8580 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8581 ;; 8582 esac 8583 ;; 8584 8585 tandem*) 8586 case $cc_basename in 8587 NCC*) 8588 # NonStop-UX NCC 3.20 8589 # FIXME: insert proper C++ library support 8590 _LT_TAGVAR(ld_shlibs, $1)=no 8591 ;; 8592 *) 8593 # FIXME: insert proper C++ library support 8594 _LT_TAGVAR(ld_shlibs, $1)=no 8595 ;; 8596 esac 8597 ;; 8598 8599 vxworks*) 8600 # FIXME: insert proper C++ library support 8601 _LT_TAGVAR(ld_shlibs, $1)=no 8602 ;; 8603 8604 *) 8605 # FIXME: insert proper C++ library support 8606 _LT_TAGVAR(ld_shlibs, $1)=no 8607 ;; 8608 esac 8609 8610 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 8611 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 8612 8613 _LT_TAGVAR(GCC, $1)="$GXX" 8614 _LT_TAGVAR(LD, $1)="$LD" 8615 8616 ## CAVEAT EMPTOR: 8617 ## There is no encapsulation within the following macros, do not change 8618 ## the running order or otherwise move them around unless you know exactly 8619 ## what you are doing... 8620 _LT_SYS_HIDDEN_LIBDEPS($1) 8621 _LT_COMPILER_PIC($1) 8622 _LT_COMPILER_C_O($1) 8623 _LT_COMPILER_FILE_LOCKS($1) 8624 _LT_LINKER_SHLIBS($1) 8625 _LT_SYS_DYNAMIC_LINKER($1) 8626 _LT_LINKER_HARDCODE_LIBPATH($1) 8627 8628 _LT_CONFIG($1) 8629 fi # test -n "$compiler" 8630 8631 CC=$lt_save_CC 8632 LDCXX=$LD 8633 LD=$lt_save_LD 8634 GCC=$lt_save_GCC 8635 with_gnu_ld=$lt_save_with_gnu_ld 8636 lt_cv_path_LDCXX=$lt_cv_path_LD 8637 lt_cv_path_LD=$lt_save_path_LD 8638 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 8639 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 8640fi # test "$_lt_caught_CXX_error" != yes 8641 8642AC_LANG_POP 8643])# _LT_LANG_CXX_CONFIG 8644 8645 8646# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 8647# --------------------------------- 8648# Figure out "hidden" library dependencies from verbose 8649# compiler output when linking a shared library. 8650# Parse the compiler output and extract the necessary 8651# objects, libraries and library flags. 8652m4_defun([_LT_SYS_HIDDEN_LIBDEPS], 8653[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 8654# Dependencies to place before and after the object being linked: 8655_LT_TAGVAR(predep_objects, $1)= 8656_LT_TAGVAR(postdep_objects, $1)= 8657_LT_TAGVAR(predeps, $1)= 8658_LT_TAGVAR(postdeps, $1)= 8659_LT_TAGVAR(compiler_lib_search_path, $1)= 8660 8661dnl we can't use the lt_simple_compile_test_code here, 8662dnl because it contains code intended for an executable, 8663dnl not a library. It's possible we should let each 8664dnl tag define a new lt_????_link_test_code variable, 8665dnl but it's only used here... 8666m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF 8667int a; 8668void foo (void) { a = 0; } 8669_LT_EOF 8670], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF 8671class Foo 8672{ 8673public: 8674 Foo (void) { a = 0; } 8675private: 8676 int a; 8677}; 8678_LT_EOF 8679], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF 8680 subroutine foo 8681 implicit none 8682 integer*4 a 8683 a=0 8684 return 8685 end 8686_LT_EOF 8687], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF 8688 subroutine foo 8689 implicit none 8690 integer a 8691 a=0 8692 return 8693 end 8694_LT_EOF 8695], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF 8696public class foo { 8697 private int a; 8698 public void bar (void) { 8699 a = 0; 8700 } 8701}; 8702_LT_EOF 8703]) 8704dnl Parse the compiler output and extract the necessary 8705dnl objects, libraries and library flags. 8706if AC_TRY_EVAL(ac_compile); then 8707 # Parse the compiler output and extract the necessary 8708 # objects, libraries and library flags. 8709 8710 # Sentinel used to keep track of whether or not we are before 8711 # the conftest object file. 8712 pre_test_object_deps_done=no 8713 8714 for p in `eval "$output_verbose_link_cmd"`; do 8715 case $p in 8716 8717 -L* | -R* | -l*) 8718 # Some compilers place space between "-{L,R}" and the path. 8719 # Remove the space. 8720 if test $p = "-L" || 8721 test $p = "-R"; then 8722 prev=$p 8723 continue 8724 else 8725 prev= 8726 fi 8727 8728 if test "$pre_test_object_deps_done" = no; then 8729 case $p in 8730 -L* | -R*) 8731 # Internal compiler library paths should come after those 8732 # provided the user. The postdeps already come after the 8733 # user supplied libs so there is no need to process them. 8734 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then 8735 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" 8736 else 8737 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" 8738 fi 8739 ;; 8740 # The "-l" case would never come before the object being 8741 # linked, so don't bother handling this case. 8742 esac 8743 else 8744 if test -z "$_LT_TAGVAR(postdeps, $1)"; then 8745 _LT_TAGVAR(postdeps, $1)="${prev}${p}" 8746 else 8747 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" 8748 fi 8749 fi 8750 ;; 8751 8752 *.$objext) 8753 # This assumes that the test object file only shows up 8754 # once in the compiler output. 8755 if test "$p" = "conftest.$objext"; then 8756 pre_test_object_deps_done=yes 8757 continue 8758 fi 8759 8760 if test "$pre_test_object_deps_done" = no; then 8761 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then 8762 _LT_TAGVAR(predep_objects, $1)="$p" 8763 else 8764 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" 8765 fi 8766 else 8767 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then 8768 _LT_TAGVAR(postdep_objects, $1)="$p" 8769 else 8770 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" 8771 fi 8772 fi 8773 ;; 8774 8775 *) ;; # Ignore the rest. 8776 8777 esac 8778 done 8779 8780 # Clean up. 8781 rm -f a.out a.exe 8782else 8783 echo "libtool.m4: error: problem compiling $1 test program" 8784fi 8785 8786$RM -f confest.$objext 8787 8788# PORTME: override above test on systems where it is broken 8789m4_if([$1], [CXX], 8790[case $host_os in 8791interix[[3-9]]*) 8792 # Interix 3.5 installs completely hosed .la files for C++, so rather than 8793 # hack all around it, let's just trust "g++" to DTRT. 8794 _LT_TAGVAR(predep_objects,$1)= 8795 _LT_TAGVAR(postdep_objects,$1)= 8796 _LT_TAGVAR(postdeps,$1)= 8797 ;; 8798 8799linux*) 8800 case `$CC -V 2>&1 | sed 5q` in 8801 *Sun\ C*) 8802 # Sun C++ 5.9 8803 8804 # The more standards-conforming stlport4 library is 8805 # incompatible with the Cstd library. Avoid specifying 8806 # it if it's in CXXFLAGS. Ignore libCrun as 8807 # -library=stlport4 depends on it. 8808 case " $CXX $CXXFLAGS " in 8809 *" -library=stlport4 "*) 8810 solaris_use_stlport4=yes 8811 ;; 8812 esac 8813 8814 if test "$solaris_use_stlport4" != yes; then 8815 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 8816 fi 8817 ;; 8818 esac 8819 ;; 8820 8821solaris*) 8822 case $cc_basename in 8823 CC*) 8824 # The more standards-conforming stlport4 library is 8825 # incompatible with the Cstd library. Avoid specifying 8826 # it if it's in CXXFLAGS. Ignore libCrun as 8827 # -library=stlport4 depends on it. 8828 case " $CXX $CXXFLAGS " in 8829 *" -library=stlport4 "*) 8830 solaris_use_stlport4=yes 8831 ;; 8832 esac 8833 8834 # Adding this requires a known-good setup of shared libraries for 8835 # Sun compiler versions before 5.6, else PIC objects from an old 8836 # archive will be linked into the output, leading to subtle bugs. 8837 if test "$solaris_use_stlport4" != yes; then 8838 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 8839 fi 8840 ;; 8841 esac 8842 ;; 8843esac 8844]) 8845 8846case " $_LT_TAGVAR(postdeps, $1) " in 8847*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; 8848esac 8849 _LT_TAGVAR(compiler_lib_search_dirs, $1)= 8850if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then 8851 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 8852fi 8853_LT_TAGDECL([], [compiler_lib_search_dirs], [1], 8854 [The directories searched by this compiler when creating a shared library]) 8855_LT_TAGDECL([], [predep_objects], [1], 8856 [Dependencies to place before and after the objects being linked to 8857 create a shared library]) 8858_LT_TAGDECL([], [postdep_objects], [1]) 8859_LT_TAGDECL([], [predeps], [1]) 8860_LT_TAGDECL([], [postdeps], [1]) 8861_LT_TAGDECL([], [compiler_lib_search_path], [1], 8862 [The library search path used internally by the compiler when linking 8863 a shared library]) 8864])# _LT_SYS_HIDDEN_LIBDEPS 8865 8866 8867# _LT_PROG_F77 8868# ------------ 8869# Since AC_PROG_F77 is broken, in that it returns the empty string 8870# if there is no fortran compiler, we have our own version here. 8871m4_defun([_LT_PROG_F77], 8872[ 8873pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes]) 8874AC_PROG_F77 8875if test -z "$F77" || test "X$F77" = "Xno"; then 8876 _lt_disable_F77=yes 8877fi 8878popdef([AC_MSG_ERROR]) 8879])# _LT_PROG_F77 8880 8881dnl aclocal-1.4 backwards compatibility: 8882dnl AC_DEFUN([_LT_PROG_F77], []) 8883 8884 8885# _LT_LANG_F77_CONFIG([TAG]) 8886# -------------------------- 8887# Ensure that the configuration variables for a Fortran 77 compiler are 8888# suitably defined. These variables are subsequently used by _LT_CONFIG 8889# to write the compiler configuration to `libtool'. 8890m4_defun([_LT_LANG_F77_CONFIG], 8891[AC_REQUIRE([_LT_PROG_F77])dnl 8892AC_LANG_PUSH(Fortran 77) 8893 8894_LT_TAGVAR(archive_cmds_need_lc, $1)=no 8895_LT_TAGVAR(allow_undefined_flag, $1)= 8896_LT_TAGVAR(always_export_symbols, $1)=no 8897_LT_TAGVAR(archive_expsym_cmds, $1)= 8898_LT_TAGVAR(export_dynamic_flag_spec, $1)= 8899_LT_TAGVAR(hardcode_direct, $1)=no 8900_LT_TAGVAR(hardcode_direct_absolute, $1)=no 8901_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 8902_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 8903_LT_TAGVAR(hardcode_libdir_separator, $1)= 8904_LT_TAGVAR(hardcode_minus_L, $1)=no 8905_LT_TAGVAR(hardcode_automatic, $1)=no 8906_LT_TAGVAR(inherit_rpath, $1)=no 8907_LT_TAGVAR(module_cmds, $1)= 8908_LT_TAGVAR(module_expsym_cmds, $1)= 8909_LT_TAGVAR(link_all_deplibs, $1)=unknown 8910_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 8911_LT_TAGVAR(no_undefined_flag, $1)= 8912_LT_TAGVAR(whole_archive_flag_spec, $1)= 8913_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 8914 8915# Source file extension for f77 test sources. 8916ac_ext=f 8917 8918# Object file extension for compiled f77 test sources. 8919objext=o 8920_LT_TAGVAR(objext, $1)=$objext 8921 8922# No sense in running all these tests if we already determined that 8923# the F77 compiler isn't working. Some variables (like enable_shared) 8924# are currently assumed to apply to all compilers on this platform, 8925# and will be corrupted by setting them based on a non-working compiler. 8926if test "$_lt_disable_F77" != yes; then 8927 # Code to be used in simple compile tests 8928 lt_simple_compile_test_code="\ 8929 subroutine t 8930 return 8931 end 8932" 8933 8934 # Code to be used in simple link tests 8935 lt_simple_link_test_code="\ 8936 program t 8937 end 8938" 8939 8940 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 8941 _LT_TAG_COMPILER 8942 8943 # save warnings/boilerplate of simple test code 8944 _LT_COMPILER_BOILERPLATE 8945 _LT_LINKER_BOILERPLATE 8946 8947 # Allow CC to be a program name with arguments. 8948 lt_save_CC="$CC" 8949 lt_save_GCC=$GCC 8950 CC=${F77-"f77"} 8951 compiler=$CC 8952 _LT_TAGVAR(compiler, $1)=$CC 8953 _LT_CC_BASENAME([$compiler]) 8954 GCC=$G77 8955 if test -n "$compiler"; then 8956 AC_MSG_CHECKING([if libtool supports shared libraries]) 8957 AC_MSG_RESULT([$can_build_shared]) 8958 8959 AC_MSG_CHECKING([whether to build shared libraries]) 8960 test "$can_build_shared" = "no" && enable_shared=no 8961 8962 # On AIX, shared libraries and static libraries use the same namespace, and 8963 # are all built from PIC. 8964 case $host_os in 8965 aix3*) 8966 test "$enable_shared" = yes && enable_static=no 8967 if test -n "$RANLIB"; then 8968 archive_cmds="$archive_cmds~\$RANLIB \$lib" 8969 postinstall_cmds='$RANLIB $lib' 8970 fi 8971 ;; 8972 aix[[4-9]]*) 8973 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 8974 test "$enable_shared" = yes && enable_static=no 8975 fi 8976 ;; 8977 esac 8978 AC_MSG_RESULT([$enable_shared]) 8979 8980 AC_MSG_CHECKING([whether to build static libraries]) 8981 # Make sure either enable_shared or enable_static is yes. 8982 test "$enable_shared" = yes || enable_static=yes 8983 AC_MSG_RESULT([$enable_static]) 8984 8985 _LT_TAGVAR(GCC, $1)="$G77" 8986 _LT_TAGVAR(LD, $1)="$LD" 8987 8988 ## CAVEAT EMPTOR: 8989 ## There is no encapsulation within the following macros, do not change 8990 ## the running order or otherwise move them around unless you know exactly 8991 ## what you are doing... 8992 _LT_COMPILER_PIC($1) 8993 _LT_COMPILER_C_O($1) 8994 _LT_COMPILER_FILE_LOCKS($1) 8995 _LT_LINKER_SHLIBS($1) 8996 _LT_SYS_DYNAMIC_LINKER($1) 8997 _LT_LINKER_HARDCODE_LIBPATH($1) 8998 8999 _LT_CONFIG($1) 9000 fi # test -n "$compiler" 9001 9002 GCC=$lt_save_GCC 9003 CC="$lt_save_CC" 9004fi # test "$_lt_disable_F77" != yes 9005 9006AC_LANG_POP 9007])# _LT_LANG_F77_CONFIG 9008 9009 9010# _LT_PROG_FC 9011# ----------- 9012# Since AC_PROG_FC is broken, in that it returns the empty string 9013# if there is no fortran compiler, we have our own version here. 9014m4_defun([_LT_PROG_FC], 9015[ 9016pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes]) 9017AC_PROG_FC 9018if test -z "$FC" || test "X$FC" = "Xno"; then 9019 _lt_disable_FC=yes 9020fi 9021popdef([AC_MSG_ERROR]) 9022])# _LT_PROG_FC 9023 9024dnl aclocal-1.4 backwards compatibility: 9025dnl AC_DEFUN([_LT_PROG_FC], []) 9026 9027 9028# _LT_LANG_FC_CONFIG([TAG]) 9029# ------------------------- 9030# Ensure that the configuration variables for a Fortran compiler are 9031# suitably defined. These variables are subsequently used by _LT_CONFIG 9032# to write the compiler configuration to `libtool'. 9033m4_defun([_LT_LANG_FC_CONFIG], 9034[AC_REQUIRE([_LT_PROG_FC])dnl 9035AC_LANG_PUSH(Fortran) 9036 9037_LT_TAGVAR(archive_cmds_need_lc, $1)=no 9038_LT_TAGVAR(allow_undefined_flag, $1)= 9039_LT_TAGVAR(always_export_symbols, $1)=no 9040_LT_TAGVAR(archive_expsym_cmds, $1)= 9041_LT_TAGVAR(export_dynamic_flag_spec, $1)= 9042_LT_TAGVAR(hardcode_direct, $1)=no 9043_LT_TAGVAR(hardcode_direct_absolute, $1)=no 9044_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 9045_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 9046_LT_TAGVAR(hardcode_libdir_separator, $1)= 9047_LT_TAGVAR(hardcode_minus_L, $1)=no 9048_LT_TAGVAR(hardcode_automatic, $1)=no 9049_LT_TAGVAR(inherit_rpath, $1)=no 9050_LT_TAGVAR(module_cmds, $1)= 9051_LT_TAGVAR(module_expsym_cmds, $1)= 9052_LT_TAGVAR(link_all_deplibs, $1)=unknown 9053_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 9054_LT_TAGVAR(no_undefined_flag, $1)= 9055_LT_TAGVAR(whole_archive_flag_spec, $1)= 9056_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 9057 9058# Source file extension for fc test sources. 9059ac_ext=${ac_fc_srcext-f} 9060 9061# Object file extension for compiled fc test sources. 9062objext=o 9063_LT_TAGVAR(objext, $1)=$objext 9064 9065# No sense in running all these tests if we already determined that 9066# the FC compiler isn't working. Some variables (like enable_shared) 9067# are currently assumed to apply to all compilers on this platform, 9068# and will be corrupted by setting them based on a non-working compiler. 9069if test "$_lt_disable_FC" != yes; then 9070 # Code to be used in simple compile tests 9071 lt_simple_compile_test_code="\ 9072 subroutine t 9073 return 9074 end 9075" 9076 9077 # Code to be used in simple link tests 9078 lt_simple_link_test_code="\ 9079 program t 9080 end 9081" 9082 9083 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 9084 _LT_TAG_COMPILER 9085 9086 # save warnings/boilerplate of simple test code 9087 _LT_COMPILER_BOILERPLATE 9088 _LT_LINKER_BOILERPLATE 9089 9090 # Allow CC to be a program name with arguments. 9091 lt_save_CC="$CC" 9092 lt_save_GCC=$GCC 9093 CC=${FC-"f95"} 9094 compiler=$CC 9095 GCC=$ac_cv_fc_compiler_gnu 9096 9097 _LT_TAGVAR(compiler, $1)=$CC 9098 _LT_CC_BASENAME([$compiler]) 9099 9100 if test -n "$compiler"; then 9101 AC_MSG_CHECKING([if libtool supports shared libraries]) 9102 AC_MSG_RESULT([$can_build_shared]) 9103 9104 AC_MSG_CHECKING([whether to build shared libraries]) 9105 test "$can_build_shared" = "no" && enable_shared=no 9106 9107 # On AIX, shared libraries and static libraries use the same namespace, and 9108 # are all built from PIC. 9109 case $host_os in 9110 aix3*) 9111 test "$enable_shared" = yes && enable_static=no 9112 if test -n "$RANLIB"; then 9113 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9114 postinstall_cmds='$RANLIB $lib' 9115 fi 9116 ;; 9117 aix[[4-9]]*) 9118 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9119 test "$enable_shared" = yes && enable_static=no 9120 fi 9121 ;; 9122 esac 9123 AC_MSG_RESULT([$enable_shared]) 9124 9125 AC_MSG_CHECKING([whether to build static libraries]) 9126 # Make sure either enable_shared or enable_static is yes. 9127 test "$enable_shared" = yes || enable_static=yes 9128 AC_MSG_RESULT([$enable_static]) 9129 9130 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" 9131 _LT_TAGVAR(LD, $1)="$LD" 9132 9133 ## CAVEAT EMPTOR: 9134 ## There is no encapsulation within the following macros, do not change 9135 ## the running order or otherwise move them around unless you know exactly 9136 ## what you are doing... 9137 _LT_SYS_HIDDEN_LIBDEPS($1) 9138 _LT_COMPILER_PIC($1) 9139 _LT_COMPILER_C_O($1) 9140 _LT_COMPILER_FILE_LOCKS($1) 9141 _LT_LINKER_SHLIBS($1) 9142 _LT_SYS_DYNAMIC_LINKER($1) 9143 _LT_LINKER_HARDCODE_LIBPATH($1) 9144 9145 _LT_CONFIG($1) 9146 fi # test -n "$compiler" 9147 9148 GCC=$lt_save_GCC 9149 CC="$lt_save_CC" 9150fi # test "$_lt_disable_FC" != yes 9151 9152AC_LANG_POP 9153])# _LT_LANG_FC_CONFIG 9154 9155 9156# _LT_LANG_GCJ_CONFIG([TAG]) 9157# -------------------------- 9158# Ensure that the configuration variables for the GNU Java Compiler compiler 9159# are suitably defined. These variables are subsequently used by _LT_CONFIG 9160# to write the compiler configuration to `libtool'. 9161m4_defun([_LT_LANG_GCJ_CONFIG], 9162[AC_REQUIRE([LT_PROG_GCJ])dnl 9163AC_LANG_SAVE 9164 9165# Source file extension for Java test sources. 9166ac_ext=java 9167 9168# Object file extension for compiled Java test sources. 9169objext=o 9170_LT_TAGVAR(objext, $1)=$objext 9171 9172# Code to be used in simple compile tests 9173lt_simple_compile_test_code="class foo {}" 9174 9175# Code to be used in simple link tests 9176lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 9177 9178# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9179_LT_TAG_COMPILER 9180 9181# save warnings/boilerplate of simple test code 9182_LT_COMPILER_BOILERPLATE 9183_LT_LINKER_BOILERPLATE 9184 9185# Allow CC to be a program name with arguments. 9186lt_save_CC="$CC" 9187lt_save_GCC=$GCC 9188GCC=yes 9189CC=${GCJ-"gcj"} 9190compiler=$CC 9191_LT_TAGVAR(compiler, $1)=$CC 9192_LT_TAGVAR(LD, $1)="$LD" 9193_LT_CC_BASENAME([$compiler]) 9194 9195# GCJ did not exist at the time GCC didn't implicitly link libc in. 9196_LT_TAGVAR(archive_cmds_need_lc, $1)=no 9197 9198_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 9199 9200if test -n "$compiler"; then 9201 _LT_COMPILER_NO_RTTI($1) 9202 _LT_COMPILER_PIC($1) 9203 _LT_COMPILER_C_O($1) 9204 _LT_COMPILER_FILE_LOCKS($1) 9205 _LT_LINKER_SHLIBS($1) 9206 _LT_LINKER_HARDCODE_LIBPATH($1) 9207 9208 _LT_CONFIG($1) 9209fi 9210 9211AC_LANG_RESTORE 9212 9213GCC=$lt_save_GCC 9214CC="$lt_save_CC" 9215])# _LT_LANG_GCJ_CONFIG 9216 9217 9218# _LT_LANG_RC_CONFIG([TAG]) 9219# ------------------------- 9220# Ensure that the configuration variables for the Windows resource compiler 9221# are suitably defined. These variables are subsequently used by _LT_CONFIG 9222# to write the compiler configuration to `libtool'. 9223m4_defun([_LT_LANG_RC_CONFIG], 9224[AC_REQUIRE([LT_PROG_RC])dnl 9225AC_LANG_SAVE 9226 9227# Source file extension for RC test sources. 9228ac_ext=rc 9229 9230# Object file extension for compiled RC test sources. 9231objext=o 9232_LT_TAGVAR(objext, $1)=$objext 9233 9234# Code to be used in simple compile tests 9235lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 9236 9237# Code to be used in simple link tests 9238lt_simple_link_test_code="$lt_simple_compile_test_code" 9239 9240# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9241_LT_TAG_COMPILER 9242 9243# save warnings/boilerplate of simple test code 9244_LT_COMPILER_BOILERPLATE 9245_LT_LINKER_BOILERPLATE 9246 9247# Allow CC to be a program name with arguments. 9248lt_save_CC="$CC" 9249lt_save_GCC=$GCC 9250GCC= 9251CC=${RC-"windres"} 9252compiler=$CC 9253_LT_TAGVAR(compiler, $1)=$CC 9254_LT_CC_BASENAME([$compiler]) 9255_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 9256 9257if test -n "$compiler"; then 9258 : 9259 _LT_CONFIG($1) 9260fi 9261 9262GCC=$lt_save_GCC 9263AC_LANG_RESTORE 9264CC="$lt_save_CC" 9265])# _LT_LANG_RC_CONFIG 9266 9267 9268# LT_PROG_GCJ 9269# ----------- 9270AC_DEFUN([LT_PROG_GCJ], 9271[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], 9272 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 9273 [AC_CHECK_TOOL(GCJ, gcj,) 9274 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 9275 AC_SUBST(GCJFLAGS)])])[]dnl 9276]) 9277 9278# Old name: 9279AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) 9280dnl aclocal-1.4 backwards compatibility: 9281dnl AC_DEFUN([LT_AC_PROG_GCJ], []) 9282 9283 9284# LT_PROG_RC 9285# ---------- 9286AC_DEFUN([LT_PROG_RC], 9287[AC_CHECK_TOOL(RC, windres,) 9288]) 9289 9290# Old name: 9291AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) 9292dnl aclocal-1.4 backwards compatibility: 9293dnl AC_DEFUN([LT_AC_PROG_RC], []) 9294 9295 9296# _LT_DECL_EGREP 9297# -------------- 9298# If we don't have a new enough Autoconf to choose the best grep 9299# available, choose the one first in the user's PATH. 9300m4_defun([_LT_DECL_EGREP], 9301[AC_REQUIRE([AC_PROG_EGREP])dnl 9302AC_REQUIRE([AC_PROG_FGREP])dnl 9303test -z "$GREP" && GREP=grep 9304_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) 9305_LT_DECL([], [EGREP], [1], [An ERE matcher]) 9306_LT_DECL([], [FGREP], [1], [A literal string matcher]) 9307dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too 9308AC_SUBST([GREP]) 9309]) 9310 9311 9312# _LT_DECL_OBJDUMP 9313# -------------- 9314# If we don't have a new enough Autoconf to choose the best objdump 9315# available, choose the one first in the user's PATH. 9316m4_defun([_LT_DECL_OBJDUMP], 9317[AC_CHECK_TOOL(OBJDUMP, objdump, false) 9318test -z "$OBJDUMP" && OBJDUMP=objdump 9319_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) 9320AC_SUBST([OBJDUMP]) 9321]) 9322 9323 9324# _LT_DECL_SED 9325# ------------ 9326# Check for a fully-functional sed program, that truncates 9327# as few characters as possible. Prefer GNU sed if found. 9328m4_defun([_LT_DECL_SED], 9329[AC_PROG_SED 9330test -z "$SED" && SED=sed 9331Xsed="$SED -e 1s/^X//" 9332_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) 9333_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], 9334 [Sed that helps us avoid accidentally triggering echo(1) options like -n]) 9335])# _LT_DECL_SED 9336 9337m4_ifndef([AC_PROG_SED], [ 9338# NOTE: This macro has been submitted for inclusion into # 9339# GNU Autoconf as AC_PROG_SED. When it is available in # 9340# a released version of Autoconf we should remove this # 9341# macro and use it instead. # 9342 9343m4_defun([AC_PROG_SED], 9344[AC_MSG_CHECKING([for a sed that does not truncate output]) 9345AC_CACHE_VAL(lt_cv_path_SED, 9346[# Loop through the user's path and test for sed and gsed. 9347# Then use that list of sed's as ones to test for truncation. 9348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9349for as_dir in $PATH 9350do 9351 IFS=$as_save_IFS 9352 test -z "$as_dir" && as_dir=. 9353 for lt_ac_prog in sed gsed; do 9354 for ac_exec_ext in '' $ac_executable_extensions; do 9355 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 9356 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 9357 fi 9358 done 9359 done 9360done 9361IFS=$as_save_IFS 9362lt_ac_max=0 9363lt_ac_count=0 9364# Add /usr/xpg4/bin/sed as it is typically found on Solaris 9365# along with /bin/sed that truncates output. 9366for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 9367 test ! -f $lt_ac_sed && continue 9368 cat /dev/null > conftest.in 9369 lt_ac_count=0 9370 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 9371 # Check for GNU sed and select it if it is found. 9372 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 9373 lt_cv_path_SED=$lt_ac_sed 9374 break 9375 fi 9376 while true; do 9377 cat conftest.in conftest.in >conftest.tmp 9378 mv conftest.tmp conftest.in 9379 cp conftest.in conftest.nl 9380 echo >>conftest.nl 9381 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 9382 cmp -s conftest.out conftest.nl || break 9383 # 10000 chars as input seems more than enough 9384 test $lt_ac_count -gt 10 && break 9385 lt_ac_count=`expr $lt_ac_count + 1` 9386 if test $lt_ac_count -gt $lt_ac_max; then 9387 lt_ac_max=$lt_ac_count 9388 lt_cv_path_SED=$lt_ac_sed 9389 fi 9390 done 9391done 9392]) 9393SED=$lt_cv_path_SED 9394AC_SUBST([SED]) 9395AC_MSG_RESULT([$SED]) 9396])#AC_PROG_SED 9397])#m4_ifndef 9398 9399# Old name: 9400AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) 9401dnl aclocal-1.4 backwards compatibility: 9402dnl AC_DEFUN([LT_AC_PROG_SED], []) 9403 9404 9405# _LT_CHECK_SHELL_FEATURES 9406# ------------------------ 9407# Find out whether the shell is Bourne or XSI compatible, 9408# or has some other useful features. 9409m4_defun([_LT_CHECK_SHELL_FEATURES], 9410[AC_MSG_CHECKING([whether the shell understands some XSI constructs]) 9411# Try some XSI features 9412xsi_shell=no 9413( _lt_dummy="a/b/c" 9414 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 9415 = c,a/b,, \ 9416 && eval 'test $(( 1 + 1 )) -eq 2 \ 9417 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 9418 && xsi_shell=yes 9419AC_MSG_RESULT([$xsi_shell]) 9420_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) 9421 9422AC_MSG_CHECKING([whether the shell understands "+="]) 9423lt_shell_append=no 9424( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ 9425 >/dev/null 2>&1 \ 9426 && lt_shell_append=yes 9427AC_MSG_RESULT([$lt_shell_append]) 9428_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) 9429 9430if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 9431 lt_unset=unset 9432else 9433 lt_unset=false 9434fi 9435_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl 9436 9437# test EBCDIC or ASCII 9438case `echo X|tr X '\101'` in 9439 A) # ASCII based system 9440 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 9441 lt_SP2NL='tr \040 \012' 9442 lt_NL2SP='tr \015\012 \040\040' 9443 ;; 9444 *) # EBCDIC based system 9445 lt_SP2NL='tr \100 \n' 9446 lt_NL2SP='tr \r\n \100\100' 9447 ;; 9448esac 9449_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl 9450_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl 9451])# _LT_CHECK_SHELL_FEATURES 9452 9453 9454# _LT_PROG_XSI_SHELLFNS 9455# --------------------- 9456# Bourne and XSI compatible variants of some useful shell functions. 9457m4_defun([_LT_PROG_XSI_SHELLFNS], 9458[case $xsi_shell in 9459 yes) 9460 cat << \_LT_EOF >> "$cfgfile" 9461 9462# func_dirname file append nondir_replacement 9463# Compute the dirname of FILE. If nonempty, add APPEND to the result, 9464# otherwise set result to NONDIR_REPLACEMENT. 9465func_dirname () 9466{ 9467 case ${1} in 9468 */*) func_dirname_result="${1%/*}${2}" ;; 9469 * ) func_dirname_result="${3}" ;; 9470 esac 9471} 9472 9473# func_basename file 9474func_basename () 9475{ 9476 func_basename_result="${1##*/}" 9477} 9478 9479# func_dirname_and_basename file append nondir_replacement 9480# perform func_basename and func_dirname in a single function 9481# call: 9482# dirname: Compute the dirname of FILE. If nonempty, 9483# add APPEND to the result, otherwise set result 9484# to NONDIR_REPLACEMENT. 9485# value returned in "$func_dirname_result" 9486# basename: Compute filename of FILE. 9487# value retuned in "$func_basename_result" 9488# Implementation must be kept synchronized with func_dirname 9489# and func_basename. For efficiency, we do not delegate to 9490# those functions but instead duplicate the functionality here. 9491func_dirname_and_basename () 9492{ 9493 case ${1} in 9494 */*) func_dirname_result="${1%/*}${2}" ;; 9495 * ) func_dirname_result="${3}" ;; 9496 esac 9497 func_basename_result="${1##*/}" 9498} 9499 9500# func_stripname prefix suffix name 9501# strip PREFIX and SUFFIX off of NAME. 9502# PREFIX and SUFFIX must not contain globbing or regex special 9503# characters, hashes, percent signs, but SUFFIX may contain a leading 9504# dot (in which case that matches only a dot). 9505func_stripname () 9506{ 9507 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 9508 # positional parameters, so assign one to ordinary parameter first. 9509 func_stripname_result=${3} 9510 func_stripname_result=${func_stripname_result#"${1}"} 9511 func_stripname_result=${func_stripname_result%"${2}"} 9512} 9513 9514# func_opt_split 9515func_opt_split () 9516{ 9517 func_opt_split_opt=${1%%=*} 9518 func_opt_split_arg=${1#*=} 9519} 9520 9521# func_lo2o object 9522func_lo2o () 9523{ 9524 case ${1} in 9525 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 9526 *) func_lo2o_result=${1} ;; 9527 esac 9528} 9529 9530# func_xform libobj-or-source 9531func_xform () 9532{ 9533 func_xform_result=${1%.*}.lo 9534} 9535 9536# func_arith arithmetic-term... 9537func_arith () 9538{ 9539 func_arith_result=$(( $[*] )) 9540} 9541 9542# func_len string 9543# STRING may not start with a hyphen. 9544func_len () 9545{ 9546 func_len_result=${#1} 9547} 9548 9549_LT_EOF 9550 ;; 9551 *) # Bourne compatible functions. 9552 cat << \_LT_EOF >> "$cfgfile" 9553 9554# func_dirname file append nondir_replacement 9555# Compute the dirname of FILE. If nonempty, add APPEND to the result, 9556# otherwise set result to NONDIR_REPLACEMENT. 9557func_dirname () 9558{ 9559 # Extract subdirectory from the argument. 9560 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 9561 if test "X$func_dirname_result" = "X${1}"; then 9562 func_dirname_result="${3}" 9563 else 9564 func_dirname_result="$func_dirname_result${2}" 9565 fi 9566} 9567 9568# func_basename file 9569func_basename () 9570{ 9571 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 9572} 9573 9574dnl func_dirname_and_basename 9575dnl A portable version of this function is already defined in general.m4sh 9576dnl so there is no need for it here. 9577 9578# func_stripname prefix suffix name 9579# strip PREFIX and SUFFIX off of NAME. 9580# PREFIX and SUFFIX must not contain globbing or regex special 9581# characters, hashes, percent signs, but SUFFIX may contain a leading 9582# dot (in which case that matches only a dot). 9583# func_strip_suffix prefix name 9584func_stripname () 9585{ 9586 case ${2} in 9587 .*) func_stripname_result=`$ECHO "X${3}" \ 9588 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 9589 *) func_stripname_result=`$ECHO "X${3}" \ 9590 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 9591 esac 9592} 9593 9594# sed scripts: 9595my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' 9596my_sed_long_arg='1s/^-[[^=]]*=//' 9597 9598# func_opt_split 9599func_opt_split () 9600{ 9601 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 9602 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 9603} 9604 9605# func_lo2o object 9606func_lo2o () 9607{ 9608 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 9609} 9610 9611# func_xform libobj-or-source 9612func_xform () 9613{ 9614 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'` 9615} 9616 9617# func_arith arithmetic-term... 9618func_arith () 9619{ 9620 func_arith_result=`expr "$[@]"` 9621} 9622 9623# func_len string 9624# STRING may not start with a hyphen. 9625func_len () 9626{ 9627 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` 9628} 9629 9630_LT_EOF 9631esac 9632 9633case $lt_shell_append in 9634 yes) 9635 cat << \_LT_EOF >> "$cfgfile" 9636 9637# func_append var value 9638# Append VALUE to the end of shell variable VAR. 9639func_append () 9640{ 9641 eval "$[1]+=\$[2]" 9642} 9643_LT_EOF 9644 ;; 9645 *) 9646 cat << \_LT_EOF >> "$cfgfile" 9647 9648# func_append var value 9649# Append VALUE to the end of shell variable VAR. 9650func_append () 9651{ 9652 eval "$[1]=\$$[1]\$[2]" 9653} 9654 9655_LT_EOF 9656 ;; 9657 esac 9658]) 9659 9660# Helper functions for option handling. -*- Autoconf -*- 9661# 9662# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 9663# Written by Gary V. Vaughan, 2004 9664# 9665# This file is free software; the Free Software Foundation gives 9666# unlimited permission to copy and/or distribute it, with or without 9667# modifications, as long as this notice is preserved. 9668 9669# serial 6 ltoptions.m4 9670 9671# This is to help aclocal find these macros, as it can't see m4_define. 9672AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) 9673 9674 9675# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) 9676# ------------------------------------------ 9677m4_define([_LT_MANGLE_OPTION], 9678[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) 9679 9680 9681# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) 9682# --------------------------------------- 9683# Set option OPTION-NAME for macro MACRO-NAME, and if there is a 9684# matching handler defined, dispatch to it. Other OPTION-NAMEs are 9685# saved as a flag. 9686m4_define([_LT_SET_OPTION], 9687[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl 9688m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), 9689 _LT_MANGLE_DEFUN([$1], [$2]), 9690 [m4_warning([Unknown $1 option `$2'])])[]dnl 9691]) 9692 9693 9694# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) 9695# ------------------------------------------------------------ 9696# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 9697m4_define([_LT_IF_OPTION], 9698[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) 9699 9700 9701# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) 9702# ------------------------------------------------------- 9703# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME 9704# are set. 9705m4_define([_LT_UNLESS_OPTIONS], 9706[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 9707 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), 9708 [m4_define([$0_found])])])[]dnl 9709m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 9710])[]dnl 9711]) 9712 9713 9714# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) 9715# ---------------------------------------- 9716# OPTION-LIST is a space-separated list of Libtool options associated 9717# with MACRO-NAME. If any OPTION has a matching handler declared with 9718# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about 9719# the unknown option and exit. 9720m4_defun([_LT_SET_OPTIONS], 9721[# Set options 9722m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 9723 [_LT_SET_OPTION([$1], _LT_Option)]) 9724 9725m4_if([$1],[LT_INIT],[ 9726 dnl 9727 dnl Simply set some default values (i.e off) if boolean options were not 9728 dnl specified: 9729 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no 9730 ]) 9731 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no 9732 ]) 9733 dnl 9734 dnl If no reference was made to various pairs of opposing options, then 9735 dnl we run the default mode handler for the pair. For example, if neither 9736 dnl `shared' nor `disable-shared' was passed, we enable building of shared 9737 dnl archives by default: 9738 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) 9739 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) 9740 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) 9741 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], 9742 [_LT_ENABLE_FAST_INSTALL]) 9743 ]) 9744])# _LT_SET_OPTIONS 9745 9746 9747 9748# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) 9749# ----------------------------------------- 9750m4_define([_LT_MANGLE_DEFUN], 9751[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) 9752 9753 9754# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) 9755# ----------------------------------------------- 9756m4_define([LT_OPTION_DEFINE], 9757[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl 9758])# LT_OPTION_DEFINE 9759 9760 9761# dlopen 9762# ------ 9763LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes 9764]) 9765 9766AU_DEFUN([AC_LIBTOOL_DLOPEN], 9767[_LT_SET_OPTION([LT_INIT], [dlopen]) 9768AC_DIAGNOSE([obsolete], 9769[$0: Remove this warning and the call to _LT_SET_OPTION when you 9770put the `dlopen' option into LT_INIT's first parameter.]) 9771]) 9772 9773dnl aclocal-1.4 backwards compatibility: 9774dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) 9775 9776 9777# win32-dll 9778# --------- 9779# Declare package support for building win32 dll's. 9780LT_OPTION_DEFINE([LT_INIT], [win32-dll], 9781[enable_win32_dll=yes 9782 9783case $host in 9784*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) 9785 AC_CHECK_TOOL(AS, as, false) 9786 AC_CHECK_TOOL(DLLTOOL, dlltool, false) 9787 AC_CHECK_TOOL(OBJDUMP, objdump, false) 9788 ;; 9789esac 9790 9791test -z "$AS" && AS=as 9792_LT_DECL([], [AS], [0], [Assembler program])dnl 9793 9794test -z "$DLLTOOL" && DLLTOOL=dlltool 9795_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl 9796 9797test -z "$OBJDUMP" && OBJDUMP=objdump 9798_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl 9799])# win32-dll 9800 9801AU_DEFUN([AC_LIBTOOL_WIN32_DLL], 9802[AC_REQUIRE([AC_CANONICAL_HOST])dnl 9803_LT_SET_OPTION([LT_INIT], [win32-dll]) 9804AC_DIAGNOSE([obsolete], 9805[$0: Remove this warning and the call to _LT_SET_OPTION when you 9806put the `win32-dll' option into LT_INIT's first parameter.]) 9807]) 9808 9809dnl aclocal-1.4 backwards compatibility: 9810dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) 9811 9812 9813# _LT_ENABLE_SHARED([DEFAULT]) 9814# ---------------------------- 9815# implement the --enable-shared flag, and supports the `shared' and 9816# `disable-shared' LT_INIT options. 9817# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 9818m4_define([_LT_ENABLE_SHARED], 9819[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl 9820AC_ARG_ENABLE([shared], 9821 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 9822 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], 9823 [p=${PACKAGE-default} 9824 case $enableval in 9825 yes) enable_shared=yes ;; 9826 no) enable_shared=no ;; 9827 *) 9828 enable_shared=no 9829 # Look at the argument we got. We use all the common list separators. 9830 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9831 for pkg in $enableval; do 9832 IFS="$lt_save_ifs" 9833 if test "X$pkg" = "X$p"; then 9834 enable_shared=yes 9835 fi 9836 done 9837 IFS="$lt_save_ifs" 9838 ;; 9839 esac], 9840 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) 9841 9842 _LT_DECL([build_libtool_libs], [enable_shared], [0], 9843 [Whether or not to build shared libraries]) 9844])# _LT_ENABLE_SHARED 9845 9846LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) 9847LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) 9848 9849# Old names: 9850AC_DEFUN([AC_ENABLE_SHARED], 9851[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) 9852]) 9853 9854AC_DEFUN([AC_DISABLE_SHARED], 9855[_LT_SET_OPTION([LT_INIT], [disable-shared]) 9856]) 9857 9858AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 9859AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 9860 9861dnl aclocal-1.4 backwards compatibility: 9862dnl AC_DEFUN([AM_ENABLE_SHARED], []) 9863dnl AC_DEFUN([AM_DISABLE_SHARED], []) 9864 9865 9866 9867# _LT_ENABLE_STATIC([DEFAULT]) 9868# ---------------------------- 9869# implement the --enable-static flag, and support the `static' and 9870# `disable-static' LT_INIT options. 9871# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 9872m4_define([_LT_ENABLE_STATIC], 9873[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl 9874AC_ARG_ENABLE([static], 9875 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], 9876 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], 9877 [p=${PACKAGE-default} 9878 case $enableval in 9879 yes) enable_static=yes ;; 9880 no) enable_static=no ;; 9881 *) 9882 enable_static=no 9883 # Look at the argument we got. We use all the common list separators. 9884 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9885 for pkg in $enableval; do 9886 IFS="$lt_save_ifs" 9887 if test "X$pkg" = "X$p"; then 9888 enable_static=yes 9889 fi 9890 done 9891 IFS="$lt_save_ifs" 9892 ;; 9893 esac], 9894 [enable_static=]_LT_ENABLE_STATIC_DEFAULT) 9895 9896 _LT_DECL([build_old_libs], [enable_static], [0], 9897 [Whether or not to build static libraries]) 9898])# _LT_ENABLE_STATIC 9899 9900LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) 9901LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) 9902 9903# Old names: 9904AC_DEFUN([AC_ENABLE_STATIC], 9905[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) 9906]) 9907 9908AC_DEFUN([AC_DISABLE_STATIC], 9909[_LT_SET_OPTION([LT_INIT], [disable-static]) 9910]) 9911 9912AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 9913AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 9914 9915dnl aclocal-1.4 backwards compatibility: 9916dnl AC_DEFUN([AM_ENABLE_STATIC], []) 9917dnl AC_DEFUN([AM_DISABLE_STATIC], []) 9918 9919 9920 9921# _LT_ENABLE_FAST_INSTALL([DEFAULT]) 9922# ---------------------------------- 9923# implement the --enable-fast-install flag, and support the `fast-install' 9924# and `disable-fast-install' LT_INIT options. 9925# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 9926m4_define([_LT_ENABLE_FAST_INSTALL], 9927[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl 9928AC_ARG_ENABLE([fast-install], 9929 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 9930 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 9931 [p=${PACKAGE-default} 9932 case $enableval in 9933 yes) enable_fast_install=yes ;; 9934 no) enable_fast_install=no ;; 9935 *) 9936 enable_fast_install=no 9937 # Look at the argument we got. We use all the common list separators. 9938 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9939 for pkg in $enableval; do 9940 IFS="$lt_save_ifs" 9941 if test "X$pkg" = "X$p"; then 9942 enable_fast_install=yes 9943 fi 9944 done 9945 IFS="$lt_save_ifs" 9946 ;; 9947 esac], 9948 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) 9949 9950_LT_DECL([fast_install], [enable_fast_install], [0], 9951 [Whether or not to optimize for fast installation])dnl 9952])# _LT_ENABLE_FAST_INSTALL 9953 9954LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) 9955LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) 9956 9957# Old names: 9958AU_DEFUN([AC_ENABLE_FAST_INSTALL], 9959[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) 9960AC_DIAGNOSE([obsolete], 9961[$0: Remove this warning and the call to _LT_SET_OPTION when you put 9962the `fast-install' option into LT_INIT's first parameter.]) 9963]) 9964 9965AU_DEFUN([AC_DISABLE_FAST_INSTALL], 9966[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) 9967AC_DIAGNOSE([obsolete], 9968[$0: Remove this warning and the call to _LT_SET_OPTION when you put 9969the `disable-fast-install' option into LT_INIT's first parameter.]) 9970]) 9971 9972dnl aclocal-1.4 backwards compatibility: 9973dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) 9974dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) 9975 9976 9977# _LT_WITH_PIC([MODE]) 9978# -------------------- 9979# implement the --with-pic flag, and support the `pic-only' and `no-pic' 9980# LT_INIT options. 9981# MODE is either `yes' or `no'. If omitted, it defaults to `both'. 9982m4_define([_LT_WITH_PIC], 9983[AC_ARG_WITH([pic], 9984 [AS_HELP_STRING([--with-pic], 9985 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 9986 [pic_mode="$withval"], 9987 [pic_mode=default]) 9988 9989test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) 9990 9991_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl 9992])# _LT_WITH_PIC 9993 9994LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) 9995LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) 9996 9997# Old name: 9998AU_DEFUN([AC_LIBTOOL_PICMODE], 9999[_LT_SET_OPTION([LT_INIT], [pic-only]) 10000AC_DIAGNOSE([obsolete], 10001[$0: Remove this warning and the call to _LT_SET_OPTION when you 10002put the `pic-only' option into LT_INIT's first parameter.]) 10003]) 10004 10005dnl aclocal-1.4 backwards compatibility: 10006dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) 10007 10008 10009m4_define([_LTDL_MODE], []) 10010LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], 10011 [m4_define([_LTDL_MODE], [nonrecursive])]) 10012LT_OPTION_DEFINE([LTDL_INIT], [recursive], 10013 [m4_define([_LTDL_MODE], [recursive])]) 10014LT_OPTION_DEFINE([LTDL_INIT], [subproject], 10015 [m4_define([_LTDL_MODE], [subproject])]) 10016 10017m4_define([_LTDL_TYPE], []) 10018LT_OPTION_DEFINE([LTDL_INIT], [installable], 10019 [m4_define([_LTDL_TYPE], [installable])]) 10020LT_OPTION_DEFINE([LTDL_INIT], [convenience], 10021 [m4_define([_LTDL_TYPE], [convenience])]) 10022 10023# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- 10024# 10025# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 10026# Written by Gary V. Vaughan, 2004 10027# 10028# This file is free software; the Free Software Foundation gives 10029# unlimited permission to copy and/or distribute it, with or without 10030# modifications, as long as this notice is preserved. 10031 10032# serial 6 ltsugar.m4 10033 10034# This is to help aclocal find these macros, as it can't see m4_define. 10035AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) 10036 10037 10038# lt_join(SEP, ARG1, [ARG2...]) 10039# ----------------------------- 10040# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their 10041# associated separator. 10042# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier 10043# versions in m4sugar had bugs. 10044m4_define([lt_join], 10045[m4_if([$#], [1], [], 10046 [$#], [2], [[$2]], 10047 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) 10048m4_define([_lt_join], 10049[m4_if([$#$2], [2], [], 10050 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) 10051 10052 10053# lt_car(LIST) 10054# lt_cdr(LIST) 10055# ------------ 10056# Manipulate m4 lists. 10057# These macros are necessary as long as will still need to support 10058# Autoconf-2.59 which quotes differently. 10059m4_define([lt_car], [[$1]]) 10060m4_define([lt_cdr], 10061[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], 10062 [$#], 1, [], 10063 [m4_dquote(m4_shift($@))])]) 10064m4_define([lt_unquote], $1) 10065 10066 10067# lt_append(MACRO-NAME, STRING, [SEPARATOR]) 10068# ------------------------------------------ 10069# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. 10070# Note that neither SEPARATOR nor STRING are expanded; they are appended 10071# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). 10072# No SEPARATOR is output if MACRO-NAME was previously undefined (different 10073# than defined and empty). 10074# 10075# This macro is needed until we can rely on Autoconf 2.62, since earlier 10076# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. 10077m4_define([lt_append], 10078[m4_define([$1], 10079 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) 10080 10081 10082 10083# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) 10084# ---------------------------------------------------------- 10085# Produce a SEP delimited list of all paired combinations of elements of 10086# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list 10087# has the form PREFIXmINFIXSUFFIXn. 10088# Needed until we can rely on m4_combine added in Autoconf 2.62. 10089m4_define([lt_combine], 10090[m4_if(m4_eval([$# > 3]), [1], 10091 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl 10092[[m4_foreach([_Lt_prefix], [$2], 10093 [m4_foreach([_Lt_suffix], 10094 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, 10095 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) 10096 10097 10098# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) 10099# ----------------------------------------------------------------------- 10100# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited 10101# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. 10102m4_define([lt_if_append_uniq], 10103[m4_ifdef([$1], 10104 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], 10105 [lt_append([$1], [$2], [$3])$4], 10106 [$5])], 10107 [lt_append([$1], [$2], [$3])$4])]) 10108 10109 10110# lt_dict_add(DICT, KEY, VALUE) 10111# ----------------------------- 10112m4_define([lt_dict_add], 10113[m4_define([$1($2)], [$3])]) 10114 10115 10116# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) 10117# -------------------------------------------- 10118m4_define([lt_dict_add_subkey], 10119[m4_define([$1($2:$3)], [$4])]) 10120 10121 10122# lt_dict_fetch(DICT, KEY, [SUBKEY]) 10123# ---------------------------------- 10124m4_define([lt_dict_fetch], 10125[m4_ifval([$3], 10126 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), 10127 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) 10128 10129 10130# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) 10131# ----------------------------------------------------------------- 10132m4_define([lt_if_dict_fetch], 10133[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], 10134 [$5], 10135 [$6])]) 10136 10137 10138# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) 10139# -------------------------------------------------------------- 10140m4_define([lt_dict_filter], 10141[m4_if([$5], [], [], 10142 [lt_join(m4_quote(m4_default([$4], [[, ]])), 10143 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), 10144 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl 10145]) 10146 10147# ltversion.m4 -- version numbers -*- Autoconf -*- 10148# 10149# Copyright (C) 2004 Free Software Foundation, Inc. 10150# Written by Scott James Remnant, 2004 10151# 10152# This file is free software; the Free Software Foundation gives 10153# unlimited permission to copy and/or distribute it, with or without 10154# modifications, as long as this notice is preserved. 10155 10156# Generated from ltversion.in. 10157 10158# serial 3017 ltversion.m4 10159# This file is part of GNU Libtool 10160 10161m4_define([LT_PACKAGE_VERSION], [2.2.6b]) 10162m4_define([LT_PACKAGE_REVISION], [1.3017]) 10163 10164AC_DEFUN([LTVERSION_VERSION], 10165[macro_version='2.2.6b' 10166macro_revision='1.3017' 10167_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 10168_LT_DECL(, macro_revision, 0) 10169]) 10170 10171# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- 10172# 10173# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. 10174# Written by Scott James Remnant, 2004. 10175# 10176# This file is free software; the Free Software Foundation gives 10177# unlimited permission to copy and/or distribute it, with or without 10178# modifications, as long as this notice is preserved. 10179 10180# serial 4 lt~obsolete.m4 10181 10182# These exist entirely to fool aclocal when bootstrapping libtool. 10183# 10184# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) 10185# which have later been changed to m4_define as they aren't part of the 10186# exported API, or moved to Autoconf or Automake where they belong. 10187# 10188# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN 10189# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us 10190# using a macro with the same name in our local m4/libtool.m4 it'll 10191# pull the old libtool.m4 in (it doesn't see our shiny new m4_define 10192# and doesn't know about Autoconf macros at all.) 10193# 10194# So we provide this file, which has a silly filename so it's always 10195# included after everything else. This provides aclocal with the 10196# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything 10197# because those macros already exist, or will be overwritten later. 10198# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 10199# 10200# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. 10201# Yes, that means every name once taken will need to remain here until 10202# we give up compatibility with versions before 1.7, at which point 10203# we need to keep only those names which we still refer to. 10204 10205# This is to help aclocal find these macros, as it can't see m4_define. 10206AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) 10207 10208m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) 10209m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) 10210m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) 10211m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) 10212m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) 10213m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) 10214m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) 10215m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) 10216m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) 10217m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) 10218m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) 10219m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) 10220m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) 10221m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) 10222m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) 10223m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) 10224m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) 10225m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) 10226m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) 10227m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) 10228m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) 10229m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) 10230m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) 10231m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) 10232m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) 10233m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) 10234m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) 10235m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) 10236m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) 10237m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) 10238m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) 10239m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) 10240m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) 10241m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) 10242m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) 10243m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) 10244m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) 10245m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) 10246m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) 10247m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) 10248m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) 10249m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) 10250m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])]) 10251m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) 10252m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) 10253m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) 10254m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) 10255m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) 10256m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) 10257m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) 10258m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) 10259m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) 10260m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) 10261m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) 10262m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) 10263 10264