aclocal.m4 revision 55acc8fc
1# generated automatically by aclocal 1.11.1 -*- Autoconf -*- 2 3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 5# This file is free software; the Free Software Foundation 6# gives unlimited permission to copy and/or distribute it, 7# with or without modifications, as long as this notice is preserved. 8 9# This program is distributed in the hope that it will be useful, 10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12# PARTICULAR PURPOSE. 13 14m4_ifndef([AC_AUTOCONF_VERSION], 15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 16m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],, 17[m4_warning([this file was generated for autoconf 2.68. 18You have another version of autoconf. It may work, but is not guaranteed to. 19If you have problems, you may need to regenerate the build system entirely. 20To do so, use the procedure documented by the package, typically `autoreconf'.])]) 21 22# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 23# 24# This file is free software; the Free Software Foundation 25# gives unlimited permission to copy and/or distribute it, 26# with or without modifications, as long as this notice is preserved. 27 28# AM_AUTOMAKE_VERSION(VERSION) 29# ---------------------------- 30# Automake X.Y traces this macro to ensure aclocal.m4 has been 31# generated from the m4 files accompanying Automake X.Y. 32# (This private macro should not be called outside this file.) 33AC_DEFUN([AM_AUTOMAKE_VERSION], 34[am__api_version='1.11' 35dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 36dnl require some minimum version. Point them to the right macro. 37m4_if([$1], [1.11.1], [], 38 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 39]) 40 41# _AM_AUTOCONF_VERSION(VERSION) 42# ----------------------------- 43# aclocal traces this macro to find the Autoconf version. 44# This is a private macro too. Using m4_define simplifies 45# the logic in aclocal, which can simply ignore this definition. 46m4_define([_AM_AUTOCONF_VERSION], []) 47 48# AM_SET_CURRENT_AUTOMAKE_VERSION 49# ------------------------------- 50# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 51# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 52AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 53[AM_AUTOMAKE_VERSION([1.11.1])dnl 54m4_ifndef([AC_AUTOCONF_VERSION], 55 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 56_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 57 58# AM_AUX_DIR_EXPAND -*- Autoconf -*- 59 60# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 61# 62# This file is free software; the Free Software Foundation 63# gives unlimited permission to copy and/or distribute it, 64# with or without modifications, as long as this notice is preserved. 65 66# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 67# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 68# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 69# 70# Of course, Automake must honor this variable whenever it calls a 71# tool from the auxiliary directory. The problem is that $srcdir (and 72# therefore $ac_aux_dir as well) can be either absolute or relative, 73# depending on how configure is run. This is pretty annoying, since 74# it makes $ac_aux_dir quite unusable in subdirectories: in the top 75# source directory, any form will work fine, but in subdirectories a 76# relative path needs to be adjusted first. 77# 78# $ac_aux_dir/missing 79# fails when called from a subdirectory if $ac_aux_dir is relative 80# $top_srcdir/$ac_aux_dir/missing 81# fails if $ac_aux_dir is absolute, 82# fails when called from a subdirectory in a VPATH build with 83# a relative $ac_aux_dir 84# 85# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 86# are both prefixed by $srcdir. In an in-source build this is usually 87# harmless because $srcdir is `.', but things will broke when you 88# start a VPATH build or use an absolute $srcdir. 89# 90# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 91# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 92# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 93# and then we would define $MISSING as 94# MISSING="\${SHELL} $am_aux_dir/missing" 95# This will work as long as MISSING is not called from configure, because 96# unfortunately $(top_srcdir) has no meaning in configure. 97# However there are other variables, like CC, which are often used in 98# configure, and could therefore not use this "fixed" $ac_aux_dir. 99# 100# Another solution, used here, is to always expand $ac_aux_dir to an 101# absolute PATH. The drawback is that using absolute paths prevent a 102# configured tree to be moved without reconfiguration. 103 104AC_DEFUN([AM_AUX_DIR_EXPAND], 105[dnl Rely on autoconf to set up CDPATH properly. 106AC_PREREQ([2.50])dnl 107# expand $ac_aux_dir to an absolute path 108am_aux_dir=`cd $ac_aux_dir && pwd` 109]) 110 111# AM_CONDITIONAL -*- Autoconf -*- 112 113# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 114# Free Software Foundation, Inc. 115# 116# This file is free software; the Free Software Foundation 117# gives unlimited permission to copy and/or distribute it, 118# with or without modifications, as long as this notice is preserved. 119 120# serial 9 121 122# AM_CONDITIONAL(NAME, SHELL-CONDITION) 123# ------------------------------------- 124# Define a conditional. 125AC_DEFUN([AM_CONDITIONAL], 126[AC_PREREQ(2.52)dnl 127 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 128 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 129AC_SUBST([$1_TRUE])dnl 130AC_SUBST([$1_FALSE])dnl 131_AM_SUBST_NOTMAKE([$1_TRUE])dnl 132_AM_SUBST_NOTMAKE([$1_FALSE])dnl 133m4_define([_AM_COND_VALUE_$1], [$2])dnl 134if $2; then 135 $1_TRUE= 136 $1_FALSE='#' 137else 138 $1_TRUE='#' 139 $1_FALSE= 140fi 141AC_CONFIG_COMMANDS_PRE( 142[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 143 AC_MSG_ERROR([[conditional "$1" was never defined. 144Usually this means the macro was only invoked conditionally.]]) 145fi])]) 146 147# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 148# Free Software Foundation, Inc. 149# 150# This file is free software; the Free Software Foundation 151# gives unlimited permission to copy and/or distribute it, 152# with or without modifications, as long as this notice is preserved. 153 154# serial 10 155 156# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 157# written in clear, in which case automake, when reading aclocal.m4, 158# will think it sees a *use*, and therefore will trigger all it's 159# C support machinery. Also note that it means that autoscan, seeing 160# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 161 162 163# _AM_DEPENDENCIES(NAME) 164# ---------------------- 165# See how the compiler implements dependency checking. 166# NAME is "CC", "CXX", "GCJ", or "OBJC". 167# We try a few techniques and use that to set a single cache variable. 168# 169# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 170# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 171# dependency, and given that the user is not expected to run this macro, 172# just rely on AC_PROG_CC. 173AC_DEFUN([_AM_DEPENDENCIES], 174[AC_REQUIRE([AM_SET_DEPDIR])dnl 175AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 176AC_REQUIRE([AM_MAKE_INCLUDE])dnl 177AC_REQUIRE([AM_DEP_TRACK])dnl 178 179ifelse([$1], CC, [depcc="$CC" am_compiler_list=], 180 [$1], CXX, [depcc="$CXX" am_compiler_list=], 181 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 182 [$1], UPC, [depcc="$UPC" am_compiler_list=], 183 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 184 [depcc="$$1" am_compiler_list=]) 185 186AC_CACHE_CHECK([dependency style of $depcc], 187 [am_cv_$1_dependencies_compiler_type], 188[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 189 # We make a subdir and do the tests there. Otherwise we can end up 190 # making bogus files that we don't know about and never remove. For 191 # instance it was reported that on HP-UX the gcc test will end up 192 # making a dummy file named `D' -- because `-MD' means `put the output 193 # in D'. 194 mkdir conftest.dir 195 # Copy depcomp to subdir because otherwise we won't find it if we're 196 # using a relative directory. 197 cp "$am_depcomp" conftest.dir 198 cd conftest.dir 199 # We will build objects and dependencies in a subdirectory because 200 # it helps to detect inapplicable dependency modes. For instance 201 # both Tru64's cc and ICC support -MD to output dependencies as a 202 # side effect of compilation, but ICC will put the dependencies in 203 # the current directory while Tru64 will put them in the object 204 # directory. 205 mkdir sub 206 207 am_cv_$1_dependencies_compiler_type=none 208 if test "$am_compiler_list" = ""; then 209 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 210 fi 211 am__universal=false 212 m4_case([$1], [CC], 213 [case " $depcc " in #( 214 *\ -arch\ *\ -arch\ *) am__universal=true ;; 215 esac], 216 [CXX], 217 [case " $depcc " in #( 218 *\ -arch\ *\ -arch\ *) am__universal=true ;; 219 esac]) 220 221 for depmode in $am_compiler_list; do 222 # Setup a source with many dependencies, because some compilers 223 # like to wrap large dependency lists on column 80 (with \), and 224 # we should not choose a depcomp mode which is confused by this. 225 # 226 # We need to recreate these files for each test, as the compiler may 227 # overwrite some of them when testing with obscure command lines. 228 # This happens at least with the AIX C compiler. 229 : > sub/conftest.c 230 for i in 1 2 3 4 5 6; do 231 echo '#include "conftst'$i'.h"' >> sub/conftest.c 232 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 233 # Solaris 8's {/usr,}/bin/sh. 234 touch sub/conftst$i.h 235 done 236 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 237 238 # We check with `-c' and `-o' for the sake of the "dashmstdout" 239 # mode. It turns out that the SunPro C++ compiler does not properly 240 # handle `-M -o', and we need to detect this. Also, some Intel 241 # versions had trouble with output in subdirs 242 am__obj=sub/conftest.${OBJEXT-o} 243 am__minus_obj="-o $am__obj" 244 case $depmode in 245 gcc) 246 # This depmode causes a compiler race in universal mode. 247 test "$am__universal" = false || continue 248 ;; 249 nosideeffect) 250 # after this tag, mechanisms are not by side-effect, so they'll 251 # only be used when explicitly requested 252 if test "x$enable_dependency_tracking" = xyes; then 253 continue 254 else 255 break 256 fi 257 ;; 258 msvisualcpp | msvcmsys) 259 # This compiler won't grok `-c -o', but also, the minuso test has 260 # not run yet. These depmodes are late enough in the game, and 261 # so weak that their functioning should not be impacted. 262 am__obj=conftest.${OBJEXT-o} 263 am__minus_obj= 264 ;; 265 none) break ;; 266 esac 267 if depmode=$depmode \ 268 source=sub/conftest.c object=$am__obj \ 269 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 270 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 271 >/dev/null 2>conftest.err && 272 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 273 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 274 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 275 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 276 # icc doesn't choke on unknown options, it will just issue warnings 277 # or remarks (even with -Werror). So we grep stderr for any message 278 # that says an option was ignored or not supported. 279 # When given -MP, icc 7.0 and 7.1 complain thusly: 280 # icc: Command line warning: ignoring option '-M'; no argument required 281 # The diagnosis changed in icc 8.0: 282 # icc: Command line remark: option '-MP' not supported 283 if (grep 'ignoring option' conftest.err || 284 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 285 am_cv_$1_dependencies_compiler_type=$depmode 286 break 287 fi 288 fi 289 done 290 291 cd .. 292 rm -rf conftest.dir 293else 294 am_cv_$1_dependencies_compiler_type=none 295fi 296]) 297AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 298AM_CONDITIONAL([am__fastdep$1], [ 299 test "x$enable_dependency_tracking" != xno \ 300 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 301]) 302 303 304# AM_SET_DEPDIR 305# ------------- 306# Choose a directory name for dependency files. 307# This macro is AC_REQUIREd in _AM_DEPENDENCIES 308AC_DEFUN([AM_SET_DEPDIR], 309[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 310AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 311]) 312 313 314# AM_DEP_TRACK 315# ------------ 316AC_DEFUN([AM_DEP_TRACK], 317[AC_ARG_ENABLE(dependency-tracking, 318[ --disable-dependency-tracking speeds up one-time build 319 --enable-dependency-tracking do not reject slow dependency extractors]) 320if test "x$enable_dependency_tracking" != xno; then 321 am_depcomp="$ac_aux_dir/depcomp" 322 AMDEPBACKSLASH='\' 323fi 324AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 325AC_SUBST([AMDEPBACKSLASH])dnl 326_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 327]) 328 329# Generate code to set up dependency tracking. -*- Autoconf -*- 330 331# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 332# Free Software Foundation, Inc. 333# 334# This file is free software; the Free Software Foundation 335# gives unlimited permission to copy and/or distribute it, 336# with or without modifications, as long as this notice is preserved. 337 338#serial 5 339 340# _AM_OUTPUT_DEPENDENCY_COMMANDS 341# ------------------------------ 342AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 343[{ 344 # Autoconf 2.62 quotes --file arguments for eval, but not when files 345 # are listed without --file. Let's play safe and only enable the eval 346 # if we detect the quoting. 347 case $CONFIG_FILES in 348 *\'*) eval set x "$CONFIG_FILES" ;; 349 *) set x $CONFIG_FILES ;; 350 esac 351 shift 352 for mf 353 do 354 # Strip MF so we end up with the name of the file. 355 mf=`echo "$mf" | sed -e 's/:.*$//'` 356 # Check whether this is an Automake generated Makefile or not. 357 # We used to match only the files named `Makefile.in', but 358 # some people rename them; so instead we look at the file content. 359 # Grep'ing the first line is not enough: some people post-process 360 # each Makefile.in and add a new line on top of each file to say so. 361 # Grep'ing the whole file is not good either: AIX grep has a line 362 # limit of 2048, but all sed's we know have understand at least 4000. 363 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 364 dirpart=`AS_DIRNAME("$mf")` 365 else 366 continue 367 fi 368 # Extract the definition of DEPDIR, am__include, and am__quote 369 # from the Makefile without running `make'. 370 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 371 test -z "$DEPDIR" && continue 372 am__include=`sed -n 's/^am__include = //p' < "$mf"` 373 test -z "am__include" && continue 374 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 375 # When using ansi2knr, U may be empty or an underscore; expand it 376 U=`sed -n 's/^U = //p' < "$mf"` 377 # Find all dependency output files, they are included files with 378 # $(DEPDIR) in their names. We invoke sed twice because it is the 379 # simplest approach to changing $(DEPDIR) to its actual value in the 380 # expansion. 381 for file in `sed -n " 382 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 383 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 384 # Make sure the directory exists. 385 test -f "$dirpart/$file" && continue 386 fdir=`AS_DIRNAME(["$file"])` 387 AS_MKDIR_P([$dirpart/$fdir]) 388 # echo "creating $dirpart/$file" 389 echo '# dummy' > "$dirpart/$file" 390 done 391 done 392} 393])# _AM_OUTPUT_DEPENDENCY_COMMANDS 394 395 396# AM_OUTPUT_DEPENDENCY_COMMANDS 397# ----------------------------- 398# This macro should only be invoked once -- use via AC_REQUIRE. 399# 400# This code is only required when automatic dependency tracking 401# is enabled. FIXME. This creates each `.P' file that we will 402# need in order to bootstrap the dependency handling code. 403AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 404[AC_CONFIG_COMMANDS([depfiles], 405 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 406 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 407]) 408 409# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 410# Free Software Foundation, Inc. 411# 412# This file is free software; the Free Software Foundation 413# gives unlimited permission to copy and/or distribute it, 414# with or without modifications, as long as this notice is preserved. 415 416# serial 8 417 418# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. 419AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) 420 421# Do all the work for Automake. -*- Autoconf -*- 422 423# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 424# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. 425# 426# This file is free software; the Free Software Foundation 427# gives unlimited permission to copy and/or distribute it, 428# with or without modifications, as long as this notice is preserved. 429 430# serial 16 431 432# This macro actually does too much. Some checks are only needed if 433# your package does certain things. But this isn't really a big deal. 434 435# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 436# AM_INIT_AUTOMAKE([OPTIONS]) 437# ----------------------------------------------- 438# The call with PACKAGE and VERSION arguments is the old style 439# call (pre autoconf-2.50), which is being phased out. PACKAGE 440# and VERSION should now be passed to AC_INIT and removed from 441# the call to AM_INIT_AUTOMAKE. 442# We support both call styles for the transition. After 443# the next Automake release, Autoconf can make the AC_INIT 444# arguments mandatory, and then we can depend on a new Autoconf 445# release and drop the old call support. 446AC_DEFUN([AM_INIT_AUTOMAKE], 447[AC_PREREQ([2.62])dnl 448dnl Autoconf wants to disallow AM_ names. We explicitly allow 449dnl the ones we care about. 450m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 451AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 452AC_REQUIRE([AC_PROG_INSTALL])dnl 453if test "`cd $srcdir && pwd`" != "`pwd`"; then 454 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 455 # is not polluted with repeated "-I." 456 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 457 # test to see if srcdir already configured 458 if test -f $srcdir/config.status; then 459 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 460 fi 461fi 462 463# test whether we have cygpath 464if test -z "$CYGPATH_W"; then 465 if (cygpath --version) >/dev/null 2>/dev/null; then 466 CYGPATH_W='cygpath -w' 467 else 468 CYGPATH_W=echo 469 fi 470fi 471AC_SUBST([CYGPATH_W]) 472 473# Define the identity of the package. 474dnl Distinguish between old-style and new-style calls. 475m4_ifval([$2], 476[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 477 AC_SUBST([PACKAGE], [$1])dnl 478 AC_SUBST([VERSION], [$2])], 479[_AM_SET_OPTIONS([$1])dnl 480dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 481m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 482 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 483 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 484 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 485 486_AM_IF_OPTION([no-define],, 487[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 488 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 489 490# Some tools Automake needs. 491AC_REQUIRE([AM_SANITY_CHECK])dnl 492AC_REQUIRE([AC_ARG_PROGRAM])dnl 493AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 494AM_MISSING_PROG(AUTOCONF, autoconf) 495AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 496AM_MISSING_PROG(AUTOHEADER, autoheader) 497AM_MISSING_PROG(MAKEINFO, makeinfo) 498AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 499AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 500AC_REQUIRE([AM_PROG_MKDIR_P])dnl 501# We need awk for the "check" target. The system "awk" is bad on 502# some platforms. 503AC_REQUIRE([AC_PROG_AWK])dnl 504AC_REQUIRE([AC_PROG_MAKE_SET])dnl 505AC_REQUIRE([AM_SET_LEADING_DOT])dnl 506_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 507 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 508 [_AM_PROG_TAR([v7])])]) 509_AM_IF_OPTION([no-dependencies],, 510[AC_PROVIDE_IFELSE([AC_PROG_CC], 511 [_AM_DEPENDENCIES(CC)], 512 [define([AC_PROG_CC], 513 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 514AC_PROVIDE_IFELSE([AC_PROG_CXX], 515 [_AM_DEPENDENCIES(CXX)], 516 [define([AC_PROG_CXX], 517 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 518AC_PROVIDE_IFELSE([AC_PROG_OBJC], 519 [_AM_DEPENDENCIES(OBJC)], 520 [define([AC_PROG_OBJC], 521 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 522]) 523_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl 524dnl The `parallel-tests' driver may need to know about EXEEXT, so add the 525dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro 526dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. 527AC_CONFIG_COMMANDS_PRE(dnl 528[m4_provide_if([_AM_COMPILER_EXEEXT], 529 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 530]) 531 532dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 533dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 534dnl mangled by Autoconf and run in a shell conditional statement. 535m4_define([_AC_COMPILER_EXEEXT], 536m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 537 538 539# When config.status generates a header, we must update the stamp-h file. 540# This file resides in the same directory as the config header 541# that is generated. The stamp files are numbered to have different names. 542 543# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 544# loop where config.status creates the headers, so we can generate 545# our stamp files there. 546AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 547[# Compute $1's index in $config_headers. 548_am_arg=$1 549_am_stamp_count=1 550for _am_header in $config_headers :; do 551 case $_am_header in 552 $_am_arg | $_am_arg:* ) 553 break ;; 554 * ) 555 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 556 esac 557done 558echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 559 560# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. 561# 562# This file is free software; the Free Software Foundation 563# gives unlimited permission to copy and/or distribute it, 564# with or without modifications, as long as this notice is preserved. 565 566# AM_PROG_INSTALL_SH 567# ------------------ 568# Define $install_sh. 569AC_DEFUN([AM_PROG_INSTALL_SH], 570[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 571if test x"${install_sh}" != xset; then 572 case $am_aux_dir in 573 *\ * | *\ *) 574 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 575 *) 576 install_sh="\${SHELL} $am_aux_dir/install-sh" 577 esac 578fi 579AC_SUBST(install_sh)]) 580 581# Copyright (C) 2003, 2005 Free Software Foundation, Inc. 582# 583# This file is free software; the Free Software Foundation 584# gives unlimited permission to copy and/or distribute it, 585# with or without modifications, as long as this notice is preserved. 586 587# serial 2 588 589# Check whether the underlying file-system supports filenames 590# with a leading dot. For instance MS-DOS doesn't. 591AC_DEFUN([AM_SET_LEADING_DOT], 592[rm -rf .tst 2>/dev/null 593mkdir .tst 2>/dev/null 594if test -d .tst; then 595 am__leading_dot=. 596else 597 am__leading_dot=_ 598fi 599rmdir .tst 2>/dev/null 600AC_SUBST([am__leading_dot])]) 601 602# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 603# From Jim Meyering 604 605# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008 606# Free Software Foundation, Inc. 607# 608# This file is free software; the Free Software Foundation 609# gives unlimited permission to copy and/or distribute it, 610# with or without modifications, as long as this notice is preserved. 611 612# serial 5 613 614# AM_MAINTAINER_MODE([DEFAULT-MODE]) 615# ---------------------------------- 616# Control maintainer-specific portions of Makefiles. 617# Default is to disable them, unless `enable' is passed literally. 618# For symmetry, `disable' may be passed as well. Anyway, the user 619# can override the default with the --enable/--disable switch. 620AC_DEFUN([AM_MAINTAINER_MODE], 621[m4_case(m4_default([$1], [disable]), 622 [enable], [m4_define([am_maintainer_other], [disable])], 623 [disable], [m4_define([am_maintainer_other], [enable])], 624 [m4_define([am_maintainer_other], [enable]) 625 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) 626AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles]) 627 dnl maintainer-mode's default is 'disable' unless 'enable' is passed 628 AC_ARG_ENABLE([maintainer-mode], 629[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful 630 (and sometimes confusing) to the casual installer], 631 [USE_MAINTAINER_MODE=$enableval], 632 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) 633 AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 634 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) 635 MAINT=$MAINTAINER_MODE_TRUE 636 AC_SUBST([MAINT])dnl 637] 638) 639 640AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) 641 642# Check to see how 'make' treats includes. -*- Autoconf -*- 643 644# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. 645# 646# This file is free software; the Free Software Foundation 647# gives unlimited permission to copy and/or distribute it, 648# with or without modifications, as long as this notice is preserved. 649 650# serial 4 651 652# AM_MAKE_INCLUDE() 653# ----------------- 654# Check to see how make treats includes. 655AC_DEFUN([AM_MAKE_INCLUDE], 656[am_make=${MAKE-make} 657cat > confinc << 'END' 658am__doit: 659 @echo this is the am__doit target 660.PHONY: am__doit 661END 662# If we don't find an include directive, just comment out the code. 663AC_MSG_CHECKING([for style of include used by $am_make]) 664am__include="#" 665am__quote= 666_am_result=none 667# First try GNU make style include. 668echo "include confinc" > confmf 669# Ignore all kinds of additional output from `make'. 670case `$am_make -s -f confmf 2> /dev/null` in #( 671*the\ am__doit\ target*) 672 am__include=include 673 am__quote= 674 _am_result=GNU 675 ;; 676esac 677# Now try BSD make style include. 678if test "$am__include" = "#"; then 679 echo '.include "confinc"' > confmf 680 case `$am_make -s -f confmf 2> /dev/null` in #( 681 *the\ am__doit\ target*) 682 am__include=.include 683 am__quote="\"" 684 _am_result=BSD 685 ;; 686 esac 687fi 688AC_SUBST([am__include]) 689AC_SUBST([am__quote]) 690AC_MSG_RESULT([$_am_result]) 691rm -f confinc confmf 692]) 693 694# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 695 696# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 697# Free Software Foundation, Inc. 698# 699# This file is free software; the Free Software Foundation 700# gives unlimited permission to copy and/or distribute it, 701# with or without modifications, as long as this notice is preserved. 702 703# serial 6 704 705# AM_MISSING_PROG(NAME, PROGRAM) 706# ------------------------------ 707AC_DEFUN([AM_MISSING_PROG], 708[AC_REQUIRE([AM_MISSING_HAS_RUN]) 709$1=${$1-"${am_missing_run}$2"} 710AC_SUBST($1)]) 711 712 713# AM_MISSING_HAS_RUN 714# ------------------ 715# Define MISSING if not defined so far and test if it supports --run. 716# If it does, set am_missing_run to use it, otherwise, to nothing. 717AC_DEFUN([AM_MISSING_HAS_RUN], 718[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 719AC_REQUIRE_AUX_FILE([missing])dnl 720if test x"${MISSING+set}" != xset; then 721 case $am_aux_dir in 722 *\ * | *\ *) 723 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 724 *) 725 MISSING="\${SHELL} $am_aux_dir/missing" ;; 726 esac 727fi 728# Use eval to expand $SHELL 729if eval "$MISSING --run true"; then 730 am_missing_run="$MISSING --run " 731else 732 am_missing_run= 733 AC_MSG_WARN([`missing' script is too old or missing]) 734fi 735]) 736 737# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 738# 739# This file is free software; the Free Software Foundation 740# gives unlimited permission to copy and/or distribute it, 741# with or without modifications, as long as this notice is preserved. 742 743# AM_PROG_MKDIR_P 744# --------------- 745# Check for `mkdir -p'. 746AC_DEFUN([AM_PROG_MKDIR_P], 747[AC_PREREQ([2.60])dnl 748AC_REQUIRE([AC_PROG_MKDIR_P])dnl 749dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, 750dnl while keeping a definition of mkdir_p for backward compatibility. 751dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. 752dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of 753dnl Makefile.ins that do not define MKDIR_P, so we do our own 754dnl adjustment using top_builddir (which is defined more often than 755dnl MKDIR_P). 756AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl 757case $mkdir_p in 758 [[\\/$]]* | ?:[[\\/]]*) ;; 759 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 760esac 761]) 762 763# Helper functions for option handling. -*- Autoconf -*- 764 765# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. 766# 767# This file is free software; the Free Software Foundation 768# gives unlimited permission to copy and/or distribute it, 769# with or without modifications, as long as this notice is preserved. 770 771# serial 4 772 773# _AM_MANGLE_OPTION(NAME) 774# ----------------------- 775AC_DEFUN([_AM_MANGLE_OPTION], 776[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 777 778# _AM_SET_OPTION(NAME) 779# ------------------------------ 780# Set option NAME. Presently that only means defining a flag for this option. 781AC_DEFUN([_AM_SET_OPTION], 782[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 783 784# _AM_SET_OPTIONS(OPTIONS) 785# ---------------------------------- 786# OPTIONS is a space-separated list of Automake options. 787AC_DEFUN([_AM_SET_OPTIONS], 788[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 789 790# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 791# ------------------------------------------- 792# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 793AC_DEFUN([_AM_IF_OPTION], 794[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 795 796# Check to make sure that the build environment is sane. -*- Autoconf -*- 797 798# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 799# Free Software Foundation, Inc. 800# 801# This file is free software; the Free Software Foundation 802# gives unlimited permission to copy and/or distribute it, 803# with or without modifications, as long as this notice is preserved. 804 805# serial 5 806 807# AM_SANITY_CHECK 808# --------------- 809AC_DEFUN([AM_SANITY_CHECK], 810[AC_MSG_CHECKING([whether build environment is sane]) 811# Just in case 812sleep 1 813echo timestamp > conftest.file 814# Reject unsafe characters in $srcdir or the absolute working directory 815# name. Accept space and tab only in the latter. 816am_lf=' 817' 818case `pwd` in 819 *[[\\\"\#\$\&\'\`$am_lf]]*) 820 AC_MSG_ERROR([unsafe absolute working directory name]);; 821esac 822case $srcdir in 823 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 824 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; 825esac 826 827# Do `set' in a subshell so we don't clobber the current shell's 828# arguments. Must try -L first in case configure is actually a 829# symlink; some systems play weird games with the mod time of symlinks 830# (eg FreeBSD returns the mod time of the symlink's containing 831# directory). 832if ( 833 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 834 if test "$[*]" = "X"; then 835 # -L didn't work. 836 set X `ls -t "$srcdir/configure" conftest.file` 837 fi 838 rm -f conftest.file 839 if test "$[*]" != "X $srcdir/configure conftest.file" \ 840 && test "$[*]" != "X conftest.file $srcdir/configure"; then 841 842 # If neither matched, then we have a broken ls. This can happen 843 # if, for instance, CONFIG_SHELL is bash and it inherits a 844 # broken ls alias from the environment. This has actually 845 # happened. Such a system could not be considered "sane". 846 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 847alias in your environment]) 848 fi 849 850 test "$[2]" = conftest.file 851 ) 852then 853 # Ok. 854 : 855else 856 AC_MSG_ERROR([newly created file is older than distributed files! 857Check your system clock]) 858fi 859AC_MSG_RESULT(yes)]) 860 861# Copyright (C) 2009 Free Software Foundation, Inc. 862# 863# This file is free software; the Free Software Foundation 864# gives unlimited permission to copy and/or distribute it, 865# with or without modifications, as long as this notice is preserved. 866 867# serial 1 868 869# AM_SILENT_RULES([DEFAULT]) 870# -------------------------- 871# Enable less verbose build rules; with the default set to DEFAULT 872# (`yes' being less verbose, `no' or empty being verbose). 873AC_DEFUN([AM_SILENT_RULES], 874[AC_ARG_ENABLE([silent-rules], 875[ --enable-silent-rules less verbose build output (undo: `make V=1') 876 --disable-silent-rules verbose build output (undo: `make V=0')]) 877case $enable_silent_rules in 878yes) AM_DEFAULT_VERBOSITY=0;; 879no) AM_DEFAULT_VERBOSITY=1;; 880*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 881esac 882AC_SUBST([AM_DEFAULT_VERBOSITY])dnl 883AM_BACKSLASH='\' 884AC_SUBST([AM_BACKSLASH])dnl 885_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 886]) 887 888# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 889# 890# This file is free software; the Free Software Foundation 891# gives unlimited permission to copy and/or distribute it, 892# with or without modifications, as long as this notice is preserved. 893 894# AM_PROG_INSTALL_STRIP 895# --------------------- 896# One issue with vendor `install' (even GNU) is that you can't 897# specify the program used to strip binaries. This is especially 898# annoying in cross-compiling environments, where the build's strip 899# is unlikely to handle the host's binaries. 900# Fortunately install-sh will honor a STRIPPROG variable, so we 901# always use install-sh in `make install-strip', and initialize 902# STRIPPROG with the value of the STRIP variable (set by the user). 903AC_DEFUN([AM_PROG_INSTALL_STRIP], 904[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 905# Installed binaries are usually stripped using `strip' when the user 906# run `make install-strip'. However `strip' might not be the right 907# tool to use in cross-compilation environments, therefore Automake 908# will honor the `STRIP' environment variable to overrule this program. 909dnl Don't test for $cross_compiling = yes, because it might be `maybe'. 910if test "$cross_compiling" != no; then 911 AC_CHECK_TOOL([STRIP], [strip], :) 912fi 913INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 914AC_SUBST([INSTALL_STRIP_PROGRAM])]) 915 916# Copyright (C) 2006, 2008 Free Software Foundation, Inc. 917# 918# This file is free software; the Free Software Foundation 919# gives unlimited permission to copy and/or distribute it, 920# with or without modifications, as long as this notice is preserved. 921 922# serial 2 923 924# _AM_SUBST_NOTMAKE(VARIABLE) 925# --------------------------- 926# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 927# This macro is traced by Automake. 928AC_DEFUN([_AM_SUBST_NOTMAKE]) 929 930# AM_SUBST_NOTMAKE(VARIABLE) 931# --------------------------- 932# Public sister of _AM_SUBST_NOTMAKE. 933AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 934 935# Check how to create a tarball. -*- Autoconf -*- 936 937# Copyright (C) 2004, 2005 Free Software Foundation, Inc. 938# 939# This file is free software; the Free Software Foundation 940# gives unlimited permission to copy and/or distribute it, 941# with or without modifications, as long as this notice is preserved. 942 943# serial 2 944 945# _AM_PROG_TAR(FORMAT) 946# -------------------- 947# Check how to create a tarball in format FORMAT. 948# FORMAT should be one of `v7', `ustar', or `pax'. 949# 950# Substitute a variable $(am__tar) that is a command 951# writing to stdout a FORMAT-tarball containing the directory 952# $tardir. 953# tardir=directory && $(am__tar) > result.tar 954# 955# Substitute a variable $(am__untar) that extract such 956# a tarball read from stdin. 957# $(am__untar) < result.tar 958AC_DEFUN([_AM_PROG_TAR], 959[# Always define AMTAR for backward compatibility. 960AM_MISSING_PROG([AMTAR], [tar]) 961m4_if([$1], [v7], 962 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 963 [m4_case([$1], [ustar],, [pax],, 964 [m4_fatal([Unknown tar format])]) 965AC_MSG_CHECKING([how to create a $1 tar archive]) 966# Loop over all known methods to create a tar archive until one works. 967_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 968_am_tools=${am_cv_prog_tar_$1-$_am_tools} 969# Do not fold the above two line into one, because Tru64 sh and 970# Solaris sh will not grok spaces in the rhs of `-'. 971for _am_tool in $_am_tools 972do 973 case $_am_tool in 974 gnutar) 975 for _am_tar in tar gnutar gtar; 976 do 977 AM_RUN_LOG([$_am_tar --version]) && break 978 done 979 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 980 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 981 am__untar="$_am_tar -xf -" 982 ;; 983 plaintar) 984 # Must skip GNU tar: if it does not support --format= it doesn't create 985 # ustar tarball either. 986 (tar --version) >/dev/null 2>&1 && continue 987 am__tar='tar chf - "$$tardir"' 988 am__tar_='tar chf - "$tardir"' 989 am__untar='tar xf -' 990 ;; 991 pax) 992 am__tar='pax -L -x $1 -w "$$tardir"' 993 am__tar_='pax -L -x $1 -w "$tardir"' 994 am__untar='pax -r' 995 ;; 996 cpio) 997 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 998 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 999 am__untar='cpio -i -H $1 -d' 1000 ;; 1001 none) 1002 am__tar=false 1003 am__tar_=false 1004 am__untar=false 1005 ;; 1006 esac 1007 1008 # If the value was cached, stop now. We just wanted to have am__tar 1009 # and am__untar set. 1010 test -n "${am_cv_prog_tar_$1}" && break 1011 1012 # tar/untar a dummy directory, and stop if the command works 1013 rm -rf conftest.dir 1014 mkdir conftest.dir 1015 echo GrepMe > conftest.dir/file 1016 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 1017 rm -rf conftest.dir 1018 if test -s conftest.tar; then 1019 AM_RUN_LOG([$am__untar <conftest.tar]) 1020 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 1021 fi 1022done 1023rm -rf conftest.dir 1024 1025AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 1026AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 1027AC_SUBST([am__tar]) 1028AC_SUBST([am__untar]) 1029]) # _AM_PROG_TAR 1030 1031dnl fontutil.m4. Generated from fontutil.m4.in by configure. 1032dnl 1033dnl This file comes from X.Org's font-util 1.2.0 1034dnl 1035dnl Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. 1036dnl 1037dnl Permission is hereby granted, free of charge, to any person obtaining a 1038dnl copy of this software and associated documentation files (the "Software"), 1039dnl to deal in the Software without restriction, including without limitation 1040dnl the rights to use, copy, modify, merge, publish, distribute, sublicense, 1041dnl and/or sell copies of the Software, and to permit persons to whom the 1042dnl Software is furnished to do so, subject to the following conditions: 1043dnl 1044dnl The above copyright notice and this permission notice (including the next 1045dnl paragraph) shall be included in all copies or substantial portions of the 1046dnl Software. 1047dnl 1048dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1049dnl IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1050dnl FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 1051dnl THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1052dnl LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 1053dnl FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 1054dnl DEALINGS IN THE SOFTWARE. 1055dnl 1056dnl -------------------------------------------------------------------- 1057dnl 1058dnl Copyright 2005 Red Hat, Inc 1059dnl 1060dnl Permission to use, copy, modify, distribute, and sell this software and its 1061dnl documentation for any purpose is hereby granted without fee, provided that 1062dnl the above copyright notice appear in all copies and that both that 1063dnl copyright notice and this permission notice appear in supporting 1064dnl documentation. 1065dnl 1066dnl The above copyright notice and this permission notice shall be included 1067dnl in all copies or substantial portions of the Software. 1068dnl 1069dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 1070dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 1071dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 1072dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 1073dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 1074dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 1075dnl OTHER DEALINGS IN THE SOFTWARE. 1076dnl 1077dnl Except as contained in this notice, the name of the copyright holders shall 1078dnl not be used in advertising or otherwise to promote the sale, use or 1079dnl other dealings in this Software without prior written authorization 1080dnl from the copyright holders. 1081 1082# XORG_FONT_MACROS_VERSION(required-version) 1083# ------------------------------------------ 1084# Minimum version: 1.1.0 1085# 1086# If you're using a macro added in Version 1.1 or newer, include this in 1087# your configure.ac with the minimum required version, such as: 1088# XORG_FONT_MACROS_VERSION(1.1) 1089# 1090# To ensure that this macro is defined, also add: 1091# m4_ifndef([XORG_FONT_MACROS_VERSION], 1092# [m4_fatal([must install X.Org font-util 1.1 or later before running autoconf/autogen])]) 1093# 1094# 1095# See the "minimum version" comment for each macro you use to see what 1096# version you require. 1097m4_defun([XORG_FONT_MACROS_VERSION],[ 1098m4_define([vers_have], [1.2.0]) 1099m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.]))) 1100m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.]))) 1101m4_if(m4_cmp(maj_have, maj_needed), 0,, 1102 [m4_fatal([font-util major version ]maj_needed[ is required but ]vers_have[ found])]) 1103m4_if(m4_version_compare(vers_have, [$1]), -1, 1104 [m4_fatal([font-util version $1 or higher is required but ]vers_have[ found])]) 1105m4_undefine([vers_have]) 1106m4_undefine([maj_have]) 1107m4_undefine([maj_needed]) 1108]) # XORG_FONT_MACROS_VERSION 1109 1110# XORG_FONT_CHECK_{maps}() 1111# ------------------------ 1112# Minimum version: 1.0.0 1113# These macros add --enable/disable-{maps} where {maps} are ISO8859-*, 1114# JISX0201 or KOI8_R. By default, they are all enabled. 1115 1116AC_DEFUN([XORG_FONT_CHECK_ISO8859_1], [XORG_FONT_CHECK_ENCODING(ISO8859-1)]) 1117AC_DEFUN([XORG_FONT_CHECK_ISO8859_2], [XORG_FONT_CHECK_ENCODING(ISO8859-2)]) 1118AC_DEFUN([XORG_FONT_CHECK_ISO8859_3], [XORG_FONT_CHECK_ENCODING(ISO8859-3)]) 1119AC_DEFUN([XORG_FONT_CHECK_ISO8859_4], [XORG_FONT_CHECK_ENCODING(ISO8859-4)]) 1120AC_DEFUN([XORG_FONT_CHECK_ISO8859_5], [XORG_FONT_CHECK_ENCODING(ISO8859-5)]) 1121AC_DEFUN([XORG_FONT_CHECK_ISO8859_6], [XORG_FONT_CHECK_ENCODING(ISO8859-6)]) 1122AC_DEFUN([XORG_FONT_CHECK_ISO8859_7], [XORG_FONT_CHECK_ENCODING(ISO8859-7)]) 1123AC_DEFUN([XORG_FONT_CHECK_ISO8859_8], [XORG_FONT_CHECK_ENCODING(ISO8859-8)]) 1124AC_DEFUN([XORG_FONT_CHECK_ISO8859_9], [XORG_FONT_CHECK_ENCODING(ISO8859-9)]) 1125AC_DEFUN([XORG_FONT_CHECK_ISO8859_10],[XORG_FONT_CHECK_ENCODING(ISO8859-10)]) 1126AC_DEFUN([XORG_FONT_CHECK_ISO8859_11],[XORG_FONT_CHECK_ENCODING(ISO8859-11)]) 1127AC_DEFUN([XORG_FONT_CHECK_ISO8859_12],[XORG_FONT_CHECK_ENCODING(ISO8859-12)]) 1128AC_DEFUN([XORG_FONT_CHECK_ISO8859_13],[XORG_FONT_CHECK_ENCODING(ISO8859-13)]) 1129AC_DEFUN([XORG_FONT_CHECK_ISO8859_14],[XORG_FONT_CHECK_ENCODING(ISO8859-14)]) 1130AC_DEFUN([XORG_FONT_CHECK_ISO8859_15],[XORG_FONT_CHECK_ENCODING(ISO8859-15)]) 1131AC_DEFUN([XORG_FONT_CHECK_ISO8859_16],[XORG_FONT_CHECK_ENCODING(ISO8859-16)]) 1132AC_DEFUN([XORG_FONT_CHECK_JISX0201], [XORG_FONT_CHECK_ENCODING(JISX0201)]) 1133AC_DEFUN([XORG_FONT_CHECK_KOI8_R], [XORG_FONT_CHECK_ENCODING(KOI8-R)]) 1134 1135# XORG_FONT_CHECK_ENCODING(encoding) 1136# ---------------------------------- 1137# Minimum version: 1.1.0 1138# This macro adds --enable/disable-<encoding>, enabled by default. 1139# It replaced individual copies of this code in the above macros in 1.1. 1140# Currently assumes encoding names will be all upper-case - add m4_toupper 1141# calls if this is not true in the future. 1142 1143AC_DEFUN([XORG_FONT_CHECK_ENCODING],[ 1144 AC_ARG_ENABLE(m4_tolower($1), 1145 AS_HELP_STRING(m4_join([-], [--disable], m4_tolower($1)), 1146 [Build $1 fonts (default: yes)]), 1147 [AS_TR_SH($1)=$enableval]) 1148 AC_MSG_CHECKING([whether to build $1 fonts]) 1149 AC_MSG_RESULT($[AS_TR_SH($1)]) 1150 AM_CONDITIONAL(AS_TR_SH($1), [test "x$AS_TR_SH($1)" = xyes]) 1151]) # XORG_FONT_CHECK_ENCODING 1152 1153# XORG_FONT_CHECK_ENCODING_LIST(encoding1 encoding2....) 1154# ----------------------------------------------------- 1155# Minimum version: 1.1.0 1156# Call XORG_FONT_CHECK_ENCODING for multiple encodings at once. 1157# Add a shorthand --enable/disable-all-encodings option. 1158 1159AC_DEFUN([XORG_FONT_CHECK_ENCODING_LIST],[ 1160 AC_ARG_ENABLE([all-encodings], 1161 AS_HELP_STRING([--disable-all-encodings], 1162 [Disable building of all font encodings]), 1163 [m4_foreach_w([enc], [$1], [ 1164 AS_TR_SH(enc)=$enableval 1165 ])], 1166 [m4_foreach_w([enc], [$1], [ 1167 AS_TR_SH(enc)=yes 1168 ])]) 1169 m4_foreach_w([enc], [$1], [XORG_FONT_CHECK_ENCODING(enc)]) 1170]) # XORG_FONT_CHECK_ENCODING_LIST 1171 1172# XORG_FONT_REQUIRED_PROG(VARNAME, progname) 1173# ------------------------------------------ 1174# Minimum version: 1.1.0 1175# 1176# Simple wrapper around AC_PATH_PROG that errors if not found 1177# 1178 1179AC_DEFUN([XORG_FONT_REQUIRED_PROG],[ 1180 AC_PATH_PROG($1, $2) 1181 if test x"$$1" = x; then 1182 AC_MSG_ERROR([$2 is required to build $PACKAGE_NAME.]) 1183 fi 1184]) 1185 1186 1187# XORG_FONT_FCCACHE() 1188# ------------------- 1189# Minimum version: 1.1.0 1190# 1191# Set FCCACHE to path to fc-cache (fontconfig cache builder) if found 1192# Set RUN_FCCACHE to a rule suitable for substituting into a makefile 1193# to run fc-cache if found and not installing to $DESTDIR 1194# 1195# fc-cache is optional, not required, and should be skipped when making 1196# packages (installing to $DESTDIR). 1197# 1198AC_DEFUN([XORG_FONT_FCCACHE],[ 1199 AC_PATH_PROG(FCCACHE, fc-cache) 1200 FCCACHE_WARN='echo "** Warning: fonts.cache not built" ; echo "** Generate this file manually on host system using fc-cache"' 1201 if test x"$FCCACHE" = x ; then 1202 RUN_FCCACHE="${FCCACHE_WARN}" 1203 else 1204 RUN_FCCACHE='@(if test -z "$(DESTDIR)"; then echo $(FCCACHE) $(fontdir); $(FCCACHE) $(fontdir); else' 1205 RUN_FCCACHE="${RUN_FCCACHE} ${FCCACHE_WARN} ; fi)" 1206 fi 1207 AC_SUBST([RUN_FCCACHE]) 1208]) 1209 1210 1211# XORG_FONT_COMMON_UTILS() 1212# ------------------------ 1213# Minimum version: 1.1.0 1214# 1215# Call XORG_FONT_REQUIRED_PROG for programs needed for all font types 1216 1217AC_DEFUN([XORG_FONT_COMMON_UTILS],[ 1218 XORG_FONT_FCCACHE 1219 XORG_FONT_REQUIRED_PROG(MKFONTDIR, mkfontdir) 1220]) 1221 1222# XORG_FONT_SCALED_UTILS() 1223# ------------------------ 1224# Minimum version: 1.1.0 1225# 1226# Call XORG_FONT_REQUIRED_PROG for programs needed for scalable fonts 1227# (TrueType, OpenType, Type1) 1228 1229AC_DEFUN([XORG_FONT_SCALED_UTILS],[ 1230 XORG_FONT_COMMON_UTILS 1231 XORG_FONT_REQUIRED_PROG(MKFONTSCALE, mkfontscale) 1232]) 1233 1234# XORG_FONT_BDF_UTILS() 1235# --------------------- 1236# Minimum version: 1.1.0 1237# 1238# Call XORG_FONT_REQUIRED_PROG for programs needed for BDF format bitmap fonts 1239# Also call XORG_FONT_CHECK_COMPRESSION to determine how to compress the 1240# PCF output files created by bdftopcf 1241 1242AC_DEFUN([XORG_FONT_BDF_UTILS],[ 1243 XORG_FONT_COMMON_UTILS 1244 XORG_FONT_REQUIRED_PROG(BDFTOPCF, bdftopcf) 1245 XORG_FONT_CHECK_COMPRESSION 1246]) 1247 1248# XORG_FONT_CHECK_COMPRESSION() 1249# ----------------------------- 1250# Minimum version: 1.1.0 1251# 1252# Offer a --with-compression flag to control what compression method is 1253# used for pcf font files. Offers all the methods currently supported 1254# by libXfont, including no compression. 1255 1256AC_DEFUN([XORG_FONT_CHECK_COMPRESSION],[ 1257 AC_MSG_CHECKING([font compression method]) 1258 AC_ARG_WITH(compression, 1259 [AS_HELP_STRING([--with-compression=<no|compress|gzip|bzip2>], 1260 [compression method to use on pcf fonts])], 1261 [compression="$withval"], [compression="yes"]) 1262 if test x"$compression" = "xyes" ; then 1263 compression="gzip" 1264 fi 1265 AC_MSG_RESULT([${compression}]) 1266 case ${compression} in 1267 *compress) COMPRESS_SUFFIX=".Z" ;; 1268 *gzip) COMPRESS_SUFFIX=".gz" ;; 1269 *bzip2) COMPRESS_SUFFIX=".bz2" ;; 1270 no|none) COMPRESS_SUFFIX="" ; COMPRESS="cat" ;; 1271 *) AC_MSG_ERROR([${compression} is not a supported compression method]) ;; 1272 esac 1273 if test x"$COMPRESS_SUFFIX" != "x" ; then 1274 XORG_FONT_REQUIRED_PROG(COMPRESS, ${compression}) 1275 fi 1276 AC_SUBST([COMPRESS_SUFFIX]) 1277]) 1278 1279# XORG_FONT_UCS2ANY() 1280# ------------------- 1281# Minimum version: 1.1.0 1282# 1283# Call XORG_FONT_REQUIRED_PROG for ucs2any program needed for splitting 1284# Unicode-encoded BDF format bitmap fonts into subsets for older encodings. 1285# Also call pkg-config to find the directory with the encoding files needed 1286# by ucs2any, and export it as MAPFILES_PATH to the Makefiles 1287 1288AC_DEFUN([XORG_FONT_UCS2ANY],[ 1289 XORG_FONT_REQUIRED_PROG(UCS2ANY, ucs2any) 1290 PKG_CHECK_MODULES(MAPS, [fontutil]) 1291 AC_MSG_CHECKING([for ucs2any encoding data files]) 1292 MAPFILES_PATH=`pkg-config --variable=mapdir fontutil` 1293 AC_SUBST(MAPFILES_PATH) 1294 AC_MSG_RESULT([${MAPFILES_PATH}]) 1295]) 1296 1297 1298 1299# XORG_FONT_FC_CONFDIR() 1300# -------------------- 1301# Minimum version: 1.2.0 1302# 1303# Sets FC_CONFDIR to the fontconfig config directory 1304# (which should be --with-confdir=... when building fontconfig) 1305# found from: 1306# --with-fc-confdir=... 1307# pkg-config --variable=confdir fontconfig 1308# ${sysconfdir}/fonts 1309 1310AC_DEFUN([XORG_FONT_FC_CONFDIR],[ 1311 dnl Ensure $PKG_CONFIG is set first 1312 AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 1313 1314 AC_MSG_CHECKING([for fontconfig's configuration directory]) 1315 AC_ARG_WITH(fc-confdir, 1316 AS_HELP_STRING([--with-fc-confdir=DIR], 1317 [Path to fontconfig's configuration directory]), 1318 [FC_CONFDIR="$withval"]) 1319 # if --with-fc-confdir was not specified 1320 if test "x${FC_CONFDIR}" = "x"; then 1321 FC_CONFDIR=`$PKG_CONFIG --variable=confdir fontconfig` 1322 fi 1323 # ...and if pkg-config didn't find confdir in fontconfig.pc... 1324 if test "x${FC_CONFDIR}" = "x"; then 1325 FC_CONFDIR="${sysconfdir}/fonts" 1326 fi 1327 AC_SUBST(FC_CONFDIR) 1328 AC_MSG_RESULT([${FC_CONFDIR}]) 1329]) 1330 1331 1332 1333# XORG_FONTROOTDIR() 1334# -------------------- 1335# Minimum version: 1.1.0 1336# 1337# Sets FONTROOTDIR to the root directory for font files. Uses the first 1338# found from: 1339# --with-fontrootdir 1340# pkg-config --variable=fontrootdir fontutil 1341# ${datadir}/fonts/X11 1342 1343AC_DEFUN([XORG_FONTROOTDIR],[ 1344 dnl Ensure $PKG_CONFIG is set first 1345 AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 1346 1347 AC_MSG_CHECKING([for root directory for font files]) 1348 AC_ARG_WITH(fontrootdir, 1349 AS_HELP_STRING([--with-fontrootdir=DIR], 1350 [Path to root directory for font files]), 1351 [FONTROOTDIR="$withval"]) 1352 # if --with-fontrootdir not specified... 1353 if test "x${FONTROOTDIR}" = "x"; then 1354 FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil` 1355 fi 1356 # ...and if pkg-config didn't find fontdir in fontutil.pc... 1357 if test "x${FONTROOTDIR}" = "x"; then 1358 FONTROOTDIR="${datadir}/fonts/X11" 1359 fi 1360 AC_SUBST(FONTROOTDIR) 1361 AC_MSG_RESULT([${FONTROOTDIR}]) 1362]) 1363 1364# XORG_FONTSUBDIR(variable, flag, subdir) 1365# --------------------------------------- 1366# Minimum version: 1.1.0 1367# 1368# Offer a --with-<flag> flag to control directory for font installation 1369# Default is the specified <subdir> of the font root directory. 1370# Sets <variable> to the selected directory 1371 1372AC_DEFUN([XORG_FONTSUBDIR],[ 1373 AC_REQUIRE([XORG_FONTROOTDIR]) 1374 1375 AC_MSG_CHECKING([for directory for $3 files]) 1376 AC_ARG_WITH($2, 1377 [AS_HELP_STRING([--with-$2=DIR], 1378 [Path to $3 files [FONTROOTDIR/$3]])], 1379 [$1="${withval}"], [$1='${FONTROOTDIR}/$3']) 1380 AC_SUBST($1) 1381 AC_MSG_RESULT([${$1}]) 1382]) # XORG_FONTSUBDIR 1383 1384# XORG_FONTDIR(subdir) 1385# -------------------- 1386# Minimum version: 1.1.0 1387# 1388# Offer a --with-fontdir flag to control directory for font installation 1389# Default is the specified subdir of the font root directory. 1390# Sets FONTDIR to the selected directory 1391 1392AC_DEFUN([XORG_FONTDIR],[XORG_FONTSUBDIR([FONTDIR], [fontdir], [$1])]) 1393 1394dnl xorg-macros.m4. Generated from xorg-macros.m4.in xorgversion.m4 by configure. 1395dnl 1396dnl Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. 1397dnl 1398dnl Permission is hereby granted, free of charge, to any person obtaining a 1399dnl copy of this software and associated documentation files (the "Software"), 1400dnl to deal in the Software without restriction, including without limitation 1401dnl the rights to use, copy, modify, merge, publish, distribute, sublicense, 1402dnl and/or sell copies of the Software, and to permit persons to whom the 1403dnl Software is furnished to do so, subject to the following conditions: 1404dnl 1405dnl The above copyright notice and this permission notice (including the next 1406dnl paragraph) shall be included in all copies or substantial portions of the 1407dnl Software. 1408dnl 1409dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1410dnl IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1411dnl FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 1412dnl THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1413dnl LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 1414dnl FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 1415dnl DEALINGS IN THE SOFTWARE. 1416 1417# XORG_MACROS_VERSION(required-version) 1418# ------------------------------------- 1419# Minimum version: 1.1.0 1420# 1421# If you're using a macro added in Version 1.1 or newer, include this in 1422# your configure.ac with the minimum required version, such as: 1423# XORG_MACROS_VERSION(1.1) 1424# 1425# To ensure that this macro is defined, also add: 1426# m4_ifndef([XORG_MACROS_VERSION], 1427# [m4_fatal([must install xorg-macros 1.1 or later before running autoconf/autogen])]) 1428# 1429# 1430# See the "minimum version" comment for each macro you use to see what 1431# version you require. 1432m4_defun([XORG_MACROS_VERSION],[ 1433m4_define([vers_have], [1.10.1]) 1434m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.]))) 1435m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.]))) 1436m4_if(m4_cmp(maj_have, maj_needed), 0,, 1437 [m4_fatal([xorg-macros major version ]maj_needed[ is required but ]vers_have[ found])]) 1438m4_if(m4_version_compare(vers_have, [$1]), -1, 1439 [m4_fatal([xorg-macros version $1 or higher is required but ]vers_have[ found])]) 1440m4_undefine([vers_have]) 1441m4_undefine([maj_have]) 1442m4_undefine([maj_needed]) 1443]) # XORG_MACROS_VERSION 1444 1445# XORG_PROG_RAWCPP() 1446# ------------------ 1447# Minimum version: 1.0.0 1448# 1449# Find cpp program and necessary flags for use in pre-processing text files 1450# such as man pages and config files 1451AC_DEFUN([XORG_PROG_RAWCPP],[ 1452AC_REQUIRE([AC_PROG_CPP]) 1453AC_PATH_PROGS(RAWCPP, [cpp], [${CPP}], 1454 [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib]) 1455 1456# Check for flag to avoid builtin definitions - assumes unix is predefined, 1457# which is not the best choice for supporting other OS'es, but covers most 1458# of the ones we need for now. 1459AC_MSG_CHECKING([if $RAWCPP requires -undef]) 1460AC_LANG_CONFTEST([Does cpp redefine unix ?]) 1461if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 1462 AC_MSG_RESULT([no]) 1463else 1464 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 1465 RAWCPPFLAGS=-undef 1466 AC_MSG_RESULT([yes]) 1467 # under Cygwin unix is still defined even with -undef 1468 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 1469 RAWCPPFLAGS="-undef -ansi" 1470 AC_MSG_RESULT([yes, with -ansi]) 1471 else 1472 AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef. I don't know what to do.]) 1473 fi 1474fi 1475rm -f conftest.$ac_ext 1476 1477AC_MSG_CHECKING([if $RAWCPP requires -traditional]) 1478AC_LANG_CONFTEST([Does cpp preserve "whitespace"?]) 1479if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 1480 AC_MSG_RESULT([no]) 1481else 1482 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 1483 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 1484 AC_MSG_RESULT([yes]) 1485 else 1486 AC_MSG_ERROR([${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do.]) 1487 fi 1488fi 1489rm -f conftest.$ac_ext 1490AC_SUBST(RAWCPPFLAGS) 1491]) # XORG_PROG_RAWCPP 1492 1493# XORG_MANPAGE_SECTIONS() 1494# ----------------------- 1495# Minimum version: 1.0.0 1496# 1497# Determine which sections man pages go in for the different man page types 1498# on this OS - replaces *ManSuffix settings in old Imake *.cf per-os files. 1499# Not sure if there's any better way than just hardcoding by OS name. 1500# Override default settings by setting environment variables 1501# Added MAN_SUBSTS in version 1.8 1502# Added AC_PROG_SED in version 1.8 1503 1504AC_DEFUN([XORG_MANPAGE_SECTIONS],[ 1505AC_REQUIRE([AC_CANONICAL_HOST]) 1506AC_REQUIRE([AC_PROG_SED]) 1507 1508if test x$APP_MAN_SUFFIX = x ; then 1509 APP_MAN_SUFFIX=1 1510fi 1511if test x$APP_MAN_DIR = x ; then 1512 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 1513fi 1514 1515if test x$LIB_MAN_SUFFIX = x ; then 1516 LIB_MAN_SUFFIX=3 1517fi 1518if test x$LIB_MAN_DIR = x ; then 1519 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 1520fi 1521 1522if test x$FILE_MAN_SUFFIX = x ; then 1523 case $host_os in 1524 solaris*) FILE_MAN_SUFFIX=4 ;; 1525 *) FILE_MAN_SUFFIX=5 ;; 1526 esac 1527fi 1528if test x$FILE_MAN_DIR = x ; then 1529 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 1530fi 1531 1532if test x$MISC_MAN_SUFFIX = x ; then 1533 case $host_os in 1534 solaris*) MISC_MAN_SUFFIX=5 ;; 1535 *) MISC_MAN_SUFFIX=7 ;; 1536 esac 1537fi 1538if test x$MISC_MAN_DIR = x ; then 1539 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 1540fi 1541 1542if test x$DRIVER_MAN_SUFFIX = x ; then 1543 case $host_os in 1544 solaris*) DRIVER_MAN_SUFFIX=7 ;; 1545 *) DRIVER_MAN_SUFFIX=4 ;; 1546 esac 1547fi 1548if test x$DRIVER_MAN_DIR = x ; then 1549 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 1550fi 1551 1552if test x$ADMIN_MAN_SUFFIX = x ; then 1553 case $host_os in 1554 solaris*) ADMIN_MAN_SUFFIX=1m ;; 1555 *) ADMIN_MAN_SUFFIX=8 ;; 1556 esac 1557fi 1558if test x$ADMIN_MAN_DIR = x ; then 1559 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 1560fi 1561 1562 1563AC_SUBST([APP_MAN_SUFFIX]) 1564AC_SUBST([LIB_MAN_SUFFIX]) 1565AC_SUBST([FILE_MAN_SUFFIX]) 1566AC_SUBST([MISC_MAN_SUFFIX]) 1567AC_SUBST([DRIVER_MAN_SUFFIX]) 1568AC_SUBST([ADMIN_MAN_SUFFIX]) 1569AC_SUBST([APP_MAN_DIR]) 1570AC_SUBST([LIB_MAN_DIR]) 1571AC_SUBST([FILE_MAN_DIR]) 1572AC_SUBST([MISC_MAN_DIR]) 1573AC_SUBST([DRIVER_MAN_DIR]) 1574AC_SUBST([ADMIN_MAN_DIR]) 1575 1576XORG_MAN_PAGE="X Version 11" 1577AC_SUBST([XORG_MAN_PAGE]) 1578MAN_SUBSTS="\ 1579 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1580 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1581 -e 's|__xservername__|Xorg|g' \ 1582 -e 's|__xconfigfile__|xorg.conf|g' \ 1583 -e 's|__projectroot__|\$(prefix)|g' \ 1584 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 1585 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 1586 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 1587 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 1588 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 1589 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 1590 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 1591AC_SUBST([MAN_SUBSTS]) 1592 1593]) # XORG_MANPAGE_SECTIONS 1594 1595# XORG_CHECK_SGML_DOCTOOLS([MIN-VERSION]) 1596# ------------------------ 1597# Minimum version: 1.7.0 1598# 1599# Defines the variable XORG_SGML_PATH containing the location of X11/defs.ent 1600# provided by xorg-sgml-doctools, if installed. 1601AC_DEFUN([XORG_CHECK_SGML_DOCTOOLS],[ 1602AC_MSG_CHECKING([for X.Org SGML entities m4_ifval([$1],[>= $1])]) 1603XORG_SGML_PATH= 1604PKG_CHECK_EXISTS([xorg-sgml-doctools m4_ifval([$1],[>= $1])], 1605 [XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`], 1606 [m4_ifval([$1],[:], 1607 [if test x"$cross_compiling" != x"yes" ; then 1608 AC_CHECK_FILE([$prefix/share/sgml/X11/defs.ent], 1609 [XORG_SGML_PATH=$prefix/share/sgml]) 1610 fi]) 1611 ]) 1612 1613# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 1614# the path and the name of the doc stylesheet 1615if test "x$XORG_SGML_PATH" != "x" ; then 1616 AC_MSG_RESULT([$XORG_SGML_PATH]) 1617 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 1618 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 1619else 1620 AC_MSG_RESULT([no]) 1621fi 1622 1623AC_SUBST(XORG_SGML_PATH) 1624AC_SUBST(STYLESHEET_SRCDIR) 1625AC_SUBST(XSL_STYLESHEET) 1626AM_CONDITIONAL([HAVE_STYLESHEETS], [test "x$XSL_STYLESHEET" != "x"]) 1627]) # XORG_CHECK_SGML_DOCTOOLS 1628 1629# XORG_CHECK_LINUXDOC 1630# ------------------- 1631# Minimum version: 1.0.0 1632# 1633# Defines the variable MAKE_TEXT if the necessary tools and 1634# files are found. $(MAKE_TEXT) blah.sgml will then produce blah.txt. 1635# Whether or not the necessary tools and files are found can be checked 1636# with the AM_CONDITIONAL "BUILD_LINUXDOC" 1637AC_DEFUN([XORG_CHECK_LINUXDOC],[ 1638AC_REQUIRE([XORG_CHECK_SGML_DOCTOOLS]) 1639AC_REQUIRE([XORG_WITH_PS2PDF]) 1640 1641AC_PATH_PROG(LINUXDOC, linuxdoc) 1642 1643AC_MSG_CHECKING([whether to build documentation]) 1644 1645if test x$XORG_SGML_PATH != x && test x$LINUXDOC != x ; then 1646 BUILDDOC=yes 1647else 1648 BUILDDOC=no 1649fi 1650 1651AM_CONDITIONAL(BUILD_LINUXDOC, [test x$BUILDDOC = xyes]) 1652 1653AC_MSG_RESULT([$BUILDDOC]) 1654 1655AC_MSG_CHECKING([whether to build pdf documentation]) 1656 1657if test x$have_ps2pdf != xno && test x$BUILD_PDFDOC != xno; then 1658 BUILDPDFDOC=yes 1659else 1660 BUILDPDFDOC=no 1661fi 1662 1663AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) 1664 1665AC_MSG_RESULT([$BUILDPDFDOC]) 1666 1667MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt -f" 1668MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps" 1669MAKE_PDF="$PS2PDF" 1670MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0" 1671 1672AC_SUBST(MAKE_TEXT) 1673AC_SUBST(MAKE_PS) 1674AC_SUBST(MAKE_PDF) 1675AC_SUBST(MAKE_HTML) 1676]) # XORG_CHECK_LINUXDOC 1677 1678# XORG_CHECK_DOCBOOK 1679# ------------------- 1680# Minimum version: 1.0.0 1681# 1682# Checks for the ability to build output formats from SGML DocBook source. 1683# For XXX in {TXT, PDF, PS, HTML}, the AM_CONDITIONAL "BUILD_XXXDOC" 1684# indicates whether the necessary tools and files are found and, if set, 1685# $(MAKE_XXX) blah.sgml will produce blah.xxx. 1686AC_DEFUN([XORG_CHECK_DOCBOOK],[ 1687AC_REQUIRE([XORG_CHECK_SGML_DOCTOOLS]) 1688 1689BUILDTXTDOC=no 1690BUILDPDFDOC=no 1691BUILDPSDOC=no 1692BUILDHTMLDOC=no 1693 1694AC_PATH_PROG(DOCBOOKPS, docbook2ps) 1695AC_PATH_PROG(DOCBOOKPDF, docbook2pdf) 1696AC_PATH_PROG(DOCBOOKHTML, docbook2html) 1697AC_PATH_PROG(DOCBOOKTXT, docbook2txt) 1698 1699AC_MSG_CHECKING([whether to build text documentation]) 1700if test x$XORG_SGML_PATH != x && test x$DOCBOOKTXT != x && 1701 test x$BUILD_TXTDOC != xno; then 1702 BUILDTXTDOC=yes 1703fi 1704AM_CONDITIONAL(BUILD_TXTDOC, [test x$BUILDTXTDOC = xyes]) 1705AC_MSG_RESULT([$BUILDTXTDOC]) 1706 1707AC_MSG_CHECKING([whether to build PDF documentation]) 1708if test x$XORG_SGML_PATH != x && test x$DOCBOOKPDF != x && 1709 test x$BUILD_PDFDOC != xno; then 1710 BUILDPDFDOC=yes 1711fi 1712AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) 1713AC_MSG_RESULT([$BUILDPDFDOC]) 1714 1715AC_MSG_CHECKING([whether to build PostScript documentation]) 1716if test x$XORG_SGML_PATH != x && test x$DOCBOOKPS != x && 1717 test x$BUILD_PSDOC != xno; then 1718 BUILDPSDOC=yes 1719fi 1720AM_CONDITIONAL(BUILD_PSDOC, [test x$BUILDPSDOC = xyes]) 1721AC_MSG_RESULT([$BUILDPSDOC]) 1722 1723AC_MSG_CHECKING([whether to build HTML documentation]) 1724if test x$XORG_SGML_PATH != x && test x$DOCBOOKHTML != x && 1725 test x$BUILD_HTMLDOC != xno; then 1726 BUILDHTMLDOC=yes 1727fi 1728AM_CONDITIONAL(BUILD_HTMLDOC, [test x$BUILDHTMLDOC = xyes]) 1729AC_MSG_RESULT([$BUILDHTMLDOC]) 1730 1731MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKTXT" 1732MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPS" 1733MAKE_PDF="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPDF" 1734MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKHTML" 1735 1736AC_SUBST(MAKE_TEXT) 1737AC_SUBST(MAKE_PS) 1738AC_SUBST(MAKE_PDF) 1739AC_SUBST(MAKE_HTML) 1740]) # XORG_CHECK_DOCBOOK 1741 1742# XORG_WITH_XMLTO([MIN-VERSION]) 1743# ---------------- 1744# Minimum version: 1.5.0 1745# 1746# Documentation tools are not always available on all platforms and sometimes 1747# not at the appropriate level. This macro enables a module to test for the 1748# presence of the tool and obtain it's path in separate variables. Coupled with 1749# the --with-xmlto option, it allows maximum flexibilty in making decisions 1750# as whether or not to use the xmlto package. 1751# 1752# Interface to module: 1753# HAVE_XMLTO: used in makefiles to conditionally generate documentation 1754# XMLTO: returns the path of the xmlto program found 1755# returns the path set by the user in the environment 1756# --with-xmlto: 'yes' user instructs the module to use xmlto 1757# 'no' user instructs the module not to use xmlto 1758# 1759# Added in version 1.10.0 1760# HAVE_XMLTO_TEXT: used in makefiles to conditionally generate text documentation 1761# xmlto for text output requires either lynx, links, or w3m browsers 1762# 1763# If the user sets the value of XMLTO, AC_PATH_PROG skips testing the path. 1764# 1765AC_DEFUN([XORG_WITH_XMLTO],[ 1766AC_ARG_VAR([XMLTO], [Path to xmlto command]) 1767AC_ARG_WITH(xmlto, 1768 AS_HELP_STRING([--with-xmlto], 1769 [Use xmlto to regenerate documentation (default: yes, if installed)]), 1770 [use_xmlto=$withval], [use_xmlto=auto]) 1771 1772if test "x$use_xmlto" = x"auto"; then 1773 AC_PATH_PROG([XMLTO], [xmlto]) 1774 if test "x$XMLTO" = "x"; then 1775 AC_MSG_WARN([xmlto not found - documentation targets will be skipped]) 1776 have_xmlto=no 1777 else 1778 have_xmlto=yes 1779 fi 1780elif test "x$use_xmlto" = x"yes" ; then 1781 AC_PATH_PROG([XMLTO], [xmlto]) 1782 if test "x$XMLTO" = "x"; then 1783 AC_MSG_ERROR([--with-xmlto=yes specified but xmlto not found in PATH]) 1784 fi 1785 have_xmlto=yes 1786elif test "x$use_xmlto" = x"no" ; then 1787 if test "x$XMLTO" != "x"; then 1788 AC_MSG_WARN([ignoring XMLTO environment variable since --with-xmlto=no was specified]) 1789 fi 1790 have_xmlto=no 1791else 1792 AC_MSG_ERROR([--with-xmlto expects 'yes' or 'no']) 1793fi 1794 1795# Test for a minimum version of xmlto, if provided. 1796m4_ifval([$1], 1797[if test "$have_xmlto" = yes; then 1798 # scrape the xmlto version 1799 AC_MSG_CHECKING([the xmlto version]) 1800 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 1801 AC_MSG_RESULT([$xmlto_version]) 1802 AS_VERSION_COMPARE([$xmlto_version], [$1], 1803 [if test "x$use_xmlto" = xauto; then 1804 AC_MSG_WARN([xmlto version $xmlto_version found, but $1 needed]) 1805 have_xmlto=no 1806 else 1807 AC_MSG_ERROR([xmlto version $xmlto_version found, but $1 needed]) 1808 fi]) 1809fi]) 1810 1811# Test for the ability of xmlto to generate a text target 1812have_xmlto_text=no 1813cat > conftest.xml << "EOF" 1814EOF 1815AS_IF([test "$have_xmlto" = yes], 1816 [AS_IF([$XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1], 1817 [have_xmlto_text=yes], 1818 [AC_MSG_WARN([xmlto cannot generate text format, this format skipped])])]) 1819rm -f conftest.xml 1820AM_CONDITIONAL([HAVE_XMLTO_TEXT], [test $have_xmlto_text = yes]) 1821AM_CONDITIONAL([HAVE_XMLTO], [test "$have_xmlto" = yes]) 1822]) # XORG_WITH_XMLTO 1823 1824# XORG_WITH_ASCIIDOC([MIN-VERSION]) 1825# ---------------- 1826# Minimum version: 1.5.0 1827# 1828# Documentation tools are not always available on all platforms and sometimes 1829# not at the appropriate level. This macro enables a module to test for the 1830# presence of the tool and obtain it's path in separate variables. Coupled with 1831# the --with-asciidoc option, it allows maximum flexibilty in making decisions 1832# as whether or not to use the asciidoc package. 1833# 1834# Interface to module: 1835# HAVE_ASCIIDOC: used in makefiles to conditionally generate documentation 1836# ASCIIDOC: returns the path of the asciidoc program found 1837# returns the path set by the user in the environment 1838# --with-asciidoc: 'yes' user instructs the module to use asciidoc 1839# 'no' user instructs the module not to use asciidoc 1840# 1841# If the user sets the value of ASCIIDOC, AC_PATH_PROG skips testing the path. 1842# 1843AC_DEFUN([XORG_WITH_ASCIIDOC],[ 1844AC_ARG_VAR([ASCIIDOC], [Path to asciidoc command]) 1845AC_ARG_WITH(asciidoc, 1846 AS_HELP_STRING([--with-asciidoc], 1847 [Use asciidoc to regenerate documentation (default: yes, if installed)]), 1848 [use_asciidoc=$withval], [use_asciidoc=auto]) 1849 1850if test "x$use_asciidoc" = x"auto"; then 1851 AC_PATH_PROG([ASCIIDOC], [asciidoc]) 1852 if test "x$ASCIIDOC" = "x"; then 1853 AC_MSG_WARN([asciidoc not found - documentation targets will be skipped]) 1854 have_asciidoc=no 1855 else 1856 have_asciidoc=yes 1857 fi 1858elif test "x$use_asciidoc" = x"yes" ; then 1859 AC_PATH_PROG([ASCIIDOC], [asciidoc]) 1860 if test "x$ASCIIDOC" = "x"; then 1861 AC_MSG_ERROR([--with-asciidoc=yes specified but asciidoc not found in PATH]) 1862 fi 1863 have_asciidoc=yes 1864elif test "x$use_asciidoc" = x"no" ; then 1865 if test "x$ASCIIDOC" != "x"; then 1866 AC_MSG_WARN([ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified]) 1867 fi 1868 have_asciidoc=no 1869else 1870 AC_MSG_ERROR([--with-asciidoc expects 'yes' or 'no']) 1871fi 1872m4_ifval([$1], 1873[if test "$have_asciidoc" = yes; then 1874 # scrape the asciidoc version 1875 AC_MSG_CHECKING([the asciidoc version]) 1876 asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2` 1877 AC_MSG_RESULT([$asciidoc_version]) 1878 AS_VERSION_COMPARE([$asciidoc_version], [$1], 1879 [if test "x$use_asciidoc" = xauto; then 1880 AC_MSG_WARN([asciidoc version $asciidoc_version found, but $1 needed]) 1881 have_asciidoc=no 1882 else 1883 AC_MSG_ERROR([asciidoc version $asciidoc_version found, but $1 needed]) 1884 fi]) 1885fi]) 1886AM_CONDITIONAL([HAVE_ASCIIDOC], [test "$have_asciidoc" = yes]) 1887]) # XORG_WITH_ASCIIDOC 1888 1889# XORG_WITH_DOXYGEN([MIN-VERSION]) 1890# -------------------------------- 1891# Minimum version: 1.5.0 1892# 1893# Documentation tools are not always available on all platforms and sometimes 1894# not at the appropriate level. This macro enables a module to test for the 1895# presence of the tool and obtain it's path in separate variables. Coupled with 1896# the --with-doxygen option, it allows maximum flexibilty in making decisions 1897# as whether or not to use the doxygen package. 1898# 1899# Interface to module: 1900# HAVE_DOXYGEN: used in makefiles to conditionally generate documentation 1901# DOXYGEN: returns the path of the doxygen program found 1902# returns the path set by the user in the environment 1903# --with-doxygen: 'yes' user instructs the module to use doxygen 1904# 'no' user instructs the module not to use doxygen 1905# 1906# If the user sets the value of DOXYGEN, AC_PATH_PROG skips testing the path. 1907# 1908AC_DEFUN([XORG_WITH_DOXYGEN],[ 1909AC_ARG_VAR([DOXYGEN], [Path to doxygen command]) 1910AC_ARG_WITH(doxygen, 1911 AS_HELP_STRING([--with-doxygen], 1912 [Use doxygen to regenerate documentation (default: yes, if installed)]), 1913 [use_doxygen=$withval], [use_doxygen=auto]) 1914 1915if test "x$use_doxygen" = x"auto"; then 1916 AC_PATH_PROG([DOXYGEN], [doxygen]) 1917 if test "x$DOXYGEN" = "x"; then 1918 AC_MSG_WARN([doxygen not found - documentation targets will be skipped]) 1919 have_doxygen=no 1920 else 1921 have_doxygen=yes 1922 fi 1923elif test "x$use_doxygen" = x"yes" ; then 1924 AC_PATH_PROG([DOXYGEN], [doxygen]) 1925 if test "x$DOXYGEN" = "x"; then 1926 AC_MSG_ERROR([--with-doxygen=yes specified but doxygen not found in PATH]) 1927 fi 1928 have_doxygen=yes 1929elif test "x$use_doxygen" = x"no" ; then 1930 if test "x$DOXYGEN" != "x"; then 1931 AC_MSG_WARN([ignoring DOXYGEN environment variable since --with-doxygen=no was specified]) 1932 fi 1933 have_doxygen=no 1934else 1935 AC_MSG_ERROR([--with-doxygen expects 'yes' or 'no']) 1936fi 1937m4_ifval([$1], 1938[if test "$have_doxygen" = yes; then 1939 # scrape the doxygen version 1940 AC_MSG_CHECKING([the doxygen version]) 1941 doxygen_version=`$DOXYGEN --version 2>/dev/null` 1942 AC_MSG_RESULT([$doxygen_version]) 1943 AS_VERSION_COMPARE([$doxygen_version], [$1], 1944 [if test "x$use_doxygen" = xauto; then 1945 AC_MSG_WARN([doxygen version $doxygen_version found, but $1 needed]) 1946 have_doxygen=no 1947 else 1948 AC_MSG_ERROR([doxygen version $doxygen_version found, but $1 needed]) 1949 fi]) 1950fi]) 1951AM_CONDITIONAL([HAVE_DOXYGEN], [test "$have_doxygen" = yes]) 1952]) # XORG_WITH_DOXYGEN 1953 1954# XORG_WITH_GROFF 1955# ---------------- 1956# Minimum version: 1.6.0 1957# 1958# Documentation tools are not always available on all platforms and sometimes 1959# not at the appropriate level. This macro enables a module to test for the 1960# presence of the tool and obtain it's path in separate variables. Coupled with 1961# the --with-groff option, it allows maximum flexibilty in making decisions 1962# as whether or not to use the groff package. 1963# 1964# Interface to module: 1965# HAVE_GROFF: used in makefiles to conditionally generate documentation 1966# HAVE_GROFF_MM: the memorandum macros (-mm) package 1967# HAVE_GROFF_MS: the -ms macros package 1968# GROFF: returns the path of the groff program found 1969# returns the path set by the user in the environment 1970# --with-groff: 'yes' user instructs the module to use groff 1971# 'no' user instructs the module not to use groff 1972# 1973# Added in version 1.9.0: 1974# HAVE_GROFF_HTML: groff has dependencies to output HTML format: 1975# pnmcut pnmcrop pnmtopng pnmtops from the netpbm package. 1976# psselect from the psutils package. 1977# the ghostcript package. Refer to the grohtml man pages 1978# 1979# If the user sets the value of GROFF, AC_PATH_PROG skips testing the path. 1980# 1981# OS and distros often splits groff in a basic and full package, the former 1982# having the groff program and the later having devices, fonts and macros 1983# Checking for the groff executable is not enough. 1984# 1985# If macros are missing, we cannot assume that groff is useless, so we don't 1986# unset HAVE_GROFF or GROFF env variables. 1987# HAVE_GROFF_?? can never be true while HAVE_GROFF is false. 1988# 1989AC_DEFUN([XORG_WITH_GROFF],[ 1990AC_ARG_VAR([GROFF], [Path to groff command]) 1991AC_ARG_WITH(groff, 1992 AS_HELP_STRING([--with-groff], 1993 [Use groff to regenerate documentation (default: yes, if installed)]), 1994 [use_groff=$withval], [use_groff=auto]) 1995 1996if test "x$use_groff" = x"auto"; then 1997 AC_PATH_PROG([GROFF], [groff]) 1998 if test "x$GROFF" = "x"; then 1999 AC_MSG_WARN([groff not found - documentation targets will be skipped]) 2000 have_groff=no 2001 else 2002 have_groff=yes 2003 fi 2004elif test "x$use_groff" = x"yes" ; then 2005 AC_PATH_PROG([GROFF], [groff]) 2006 if test "x$GROFF" = "x"; then 2007 AC_MSG_ERROR([--with-groff=yes specified but groff not found in PATH]) 2008 fi 2009 have_groff=yes 2010elif test "x$use_groff" = x"no" ; then 2011 if test "x$GROFF" != "x"; then 2012 AC_MSG_WARN([ignoring GROFF environment variable since --with-groff=no was specified]) 2013 fi 2014 have_groff=no 2015else 2016 AC_MSG_ERROR([--with-groff expects 'yes' or 'no']) 2017fi 2018 2019# We have groff, test for the presence of the macro packages 2020if test "x$have_groff" = x"yes"; then 2021 AC_MSG_CHECKING([for ${GROFF} -ms macros]) 2022 if ${GROFF} -ms -I. /dev/null >/dev/null 2>&1 ; then 2023 groff_ms_works=yes 2024 else 2025 groff_ms_works=no 2026 fi 2027 AC_MSG_RESULT([$groff_ms_works]) 2028 AC_MSG_CHECKING([for ${GROFF} -mm macros]) 2029 if ${GROFF} -mm -I. /dev/null >/dev/null 2>&1 ; then 2030 groff_mm_works=yes 2031 else 2032 groff_mm_works=no 2033 fi 2034 AC_MSG_RESULT([$groff_mm_works]) 2035fi 2036 2037# We have groff, test for HTML dependencies, one command per package 2038if test "x$have_groff" = x"yes"; then 2039 AC_PATH_PROGS(GS_PATH, [gs gswin32c]) 2040 AC_PATH_PROG(PNMTOPNG_PATH, [pnmtopng]) 2041 AC_PATH_PROG(PSSELECT_PATH, [psselect]) 2042 if test "x$GS_PATH" != "x" -a "x$PNMTOPNG_PATH" != "x" -a "x$PSSELECT_PATH" != "x"; then 2043 have_groff_html=yes 2044 else 2045 have_groff_html=no 2046 AC_MSG_WARN([grohtml dependencies not found - HTML Documentation skipped. Refer to grohtml man pages]) 2047 fi 2048fi 2049 2050# Set Automake conditionals for Makefiles 2051AM_CONDITIONAL([HAVE_GROFF], [test "$have_groff" = yes]) 2052AM_CONDITIONAL([HAVE_GROFF_MS], [test "$groff_ms_works" = yes]) 2053AM_CONDITIONAL([HAVE_GROFF_MM], [test "$groff_mm_works" = yes]) 2054AM_CONDITIONAL([HAVE_GROFF_HTML], [test "$have_groff_html" = yes]) 2055]) # XORG_WITH_GROFF 2056 2057# XORG_WITH_FOP 2058# ---------------- 2059# Minimum version: 1.6.0 2060# 2061# Documentation tools are not always available on all platforms and sometimes 2062# not at the appropriate level. This macro enables a module to test for the 2063# presence of the tool and obtain it's path in separate variables. Coupled with 2064# the --with-fop option, it allows maximum flexibilty in making decisions 2065# as whether or not to use the fop package. 2066# 2067# Interface to module: 2068# HAVE_FOP: used in makefiles to conditionally generate documentation 2069# FOP: returns the path of the fop program found 2070# returns the path set by the user in the environment 2071# --with-fop: 'yes' user instructs the module to use fop 2072# 'no' user instructs the module not to use fop 2073# 2074# If the user sets the value of FOP, AC_PATH_PROG skips testing the path. 2075# 2076AC_DEFUN([XORG_WITH_FOP],[ 2077AC_ARG_VAR([FOP], [Path to fop command]) 2078AC_ARG_WITH(fop, 2079 AS_HELP_STRING([--with-fop], 2080 [Use fop to regenerate documentation (default: yes, if installed)]), 2081 [use_fop=$withval], [use_fop=auto]) 2082 2083if test "x$use_fop" = x"auto"; then 2084 AC_PATH_PROG([FOP], [fop]) 2085 if test "x$FOP" = "x"; then 2086 AC_MSG_WARN([fop not found - documentation targets will be skipped]) 2087 have_fop=no 2088 else 2089 have_fop=yes 2090 fi 2091elif test "x$use_fop" = x"yes" ; then 2092 AC_PATH_PROG([FOP], [fop]) 2093 if test "x$FOP" = "x"; then 2094 AC_MSG_ERROR([--with-fop=yes specified but fop not found in PATH]) 2095 fi 2096 have_fop=yes 2097elif test "x$use_fop" = x"no" ; then 2098 if test "x$FOP" != "x"; then 2099 AC_MSG_WARN([ignoring FOP environment variable since --with-fop=no was specified]) 2100 fi 2101 have_fop=no 2102else 2103 AC_MSG_ERROR([--with-fop expects 'yes' or 'no']) 2104fi 2105AM_CONDITIONAL([HAVE_FOP], [test "$have_fop" = yes]) 2106]) # XORG_WITH_FOP 2107 2108# XORG_WITH_PS2PDF 2109# ---------------- 2110# Minimum version: 1.6.0 2111# 2112# Documentation tools are not always available on all platforms and sometimes 2113# not at the appropriate level. This macro enables a module to test for the 2114# presence of the tool and obtain it's path in separate variables. Coupled with 2115# the --with-ps2pdf option, it allows maximum flexibilty in making decisions 2116# as whether or not to use the ps2pdf package. 2117# 2118# Interface to module: 2119# HAVE_PS2PDF: used in makefiles to conditionally generate documentation 2120# PS2PDF: returns the path of the ps2pdf program found 2121# returns the path set by the user in the environment 2122# --with-ps2pdf: 'yes' user instructs the module to use ps2pdf 2123# 'no' user instructs the module not to use ps2pdf 2124# 2125# If the user sets the value of PS2PDF, AC_PATH_PROG skips testing the path. 2126# 2127AC_DEFUN([XORG_WITH_PS2PDF],[ 2128AC_ARG_VAR([PS2PDF], [Path to ps2pdf command]) 2129AC_ARG_WITH(ps2pdf, 2130 AS_HELP_STRING([--with-ps2pdf], 2131 [Use ps2pdf to regenerate documentation (default: yes, if installed)]), 2132 [use_ps2pdf=$withval], [use_ps2pdf=auto]) 2133 2134if test "x$use_ps2pdf" = x"auto"; then 2135 AC_PATH_PROG([PS2PDF], [ps2pdf]) 2136 if test "x$PS2PDF" = "x"; then 2137 AC_MSG_WARN([ps2pdf not found - documentation targets will be skipped]) 2138 have_ps2pdf=no 2139 else 2140 have_ps2pdf=yes 2141 fi 2142elif test "x$use_ps2pdf" = x"yes" ; then 2143 AC_PATH_PROG([PS2PDF], [ps2pdf]) 2144 if test "x$PS2PDF" = "x"; then 2145 AC_MSG_ERROR([--with-ps2pdf=yes specified but ps2pdf not found in PATH]) 2146 fi 2147 have_ps2pdf=yes 2148elif test "x$use_ps2pdf" = x"no" ; then 2149 if test "x$PS2PDF" != "x"; then 2150 AC_MSG_WARN([ignoring PS2PDF environment variable since --with-ps2pdf=no was specified]) 2151 fi 2152 have_ps2pdf=no 2153else 2154 AC_MSG_ERROR([--with-ps2pdf expects 'yes' or 'no']) 2155fi 2156AM_CONDITIONAL([HAVE_PS2PDF], [test "$have_ps2pdf" = yes]) 2157]) # XORG_WITH_PS2PDF 2158 2159# XORG_ENABLE_DOCS (enable_docs=yes) 2160# ---------------- 2161# Minimum version: 1.6.0 2162# 2163# Documentation tools are not always available on all platforms and sometimes 2164# not at the appropriate level. This macro enables a builder to skip all 2165# documentation targets except traditional man pages. 2166# Combined with the specific tool checking macros XORG_WITH_*, it provides 2167# maximum flexibilty in controlling documentation building. 2168# Refer to: 2169# XORG_WITH_XMLTO --with-xmlto 2170# XORG_WITH_ASCIIDOC --with-asciidoc 2171# XORG_WITH_DOXYGEN --with-doxygen 2172# XORG_WITH_FOP --with-fop 2173# XORG_WITH_GROFF --with-groff 2174# XORG_WITH_PS2PDF --with-ps2pdf 2175# 2176# Interface to module: 2177# ENABLE_DOCS: used in makefiles to conditionally generate documentation 2178# --enable-docs: 'yes' user instructs the module to generate docs 2179# 'no' user instructs the module not to generate docs 2180# parm1: specify the default value, yes or no. 2181# 2182AC_DEFUN([XORG_ENABLE_DOCS],[ 2183default=$1 2184if test "x$default" = x ; then 2185 default="yes" 2186fi 2187AC_ARG_ENABLE(docs, 2188 AS_HELP_STRING([--enable-docs], 2189 [Enable building the documentation (default: yes)]), 2190 [build_docs=$enableval], [build_docs=$default]) 2191AM_CONDITIONAL(ENABLE_DOCS, [test x$build_docs = xyes]) 2192AC_MSG_CHECKING([whether to build documentation]) 2193AC_MSG_RESULT([$build_docs]) 2194]) # XORG_ENABLE_DOCS 2195 2196# XORG_ENABLE_DEVEL_DOCS (enable_devel_docs=yes) 2197# ---------------- 2198# Minimum version: 1.6.0 2199# 2200# This macro enables a builder to skip all developer documentation. 2201# Combined with the specific tool checking macros XORG_WITH_*, it provides 2202# maximum flexibilty in controlling documentation building. 2203# Refer to: 2204# XORG_WITH_XMLTO --with-xmlto 2205# XORG_WITH_ASCIIDOC --with-asciidoc 2206# XORG_WITH_DOXYGEN --with-doxygen 2207# XORG_WITH_FOP --with-fop 2208# XORG_WITH_GROFF --with-groff 2209# XORG_WITH_PS2PDF --with-ps2pdf 2210# 2211# Interface to module: 2212# ENABLE_DEVEL_DOCS: used in makefiles to conditionally generate developer docs 2213# --enable-devel-docs: 'yes' user instructs the module to generate developer docs 2214# 'no' user instructs the module not to generate developer docs 2215# parm1: specify the default value, yes or no. 2216# 2217AC_DEFUN([XORG_ENABLE_DEVEL_DOCS],[ 2218devel_default=$1 2219if test "x$devel_default" = x ; then 2220 devel_default="yes" 2221fi 2222AC_ARG_ENABLE(devel-docs, 2223 AS_HELP_STRING([--enable-devel-docs], 2224 [Enable building the developer documentation (default: yes)]), 2225 [build_devel_docs=$enableval], [build_devel_docs=$devel_default]) 2226AM_CONDITIONAL(ENABLE_DEVEL_DOCS, [test x$build_devel_docs = xyes]) 2227AC_MSG_CHECKING([whether to build developer documentation]) 2228AC_MSG_RESULT([$build_devel_docs]) 2229]) # XORG_ENABLE_DEVEL_DOCS 2230 2231# XORG_ENABLE_SPECS (enable_specs=yes) 2232# ---------------- 2233# Minimum version: 1.6.0 2234# 2235# This macro enables a builder to skip all functional specification targets. 2236# Combined with the specific tool checking macros XORG_WITH_*, it provides 2237# maximum flexibilty in controlling documentation building. 2238# Refer to: 2239# XORG_WITH_XMLTO --with-xmlto 2240# XORG_WITH_ASCIIDOC --with-asciidoc 2241# XORG_WITH_DOXYGEN --with-doxygen 2242# XORG_WITH_FOP --with-fop 2243# XORG_WITH_GROFF --with-groff 2244# XORG_WITH_PS2PDF --with-ps2pdf 2245# 2246# Interface to module: 2247# ENABLE_SPECS: used in makefiles to conditionally generate specs 2248# --enable-specs: 'yes' user instructs the module to generate specs 2249# 'no' user instructs the module not to generate specs 2250# parm1: specify the default value, yes or no. 2251# 2252AC_DEFUN([XORG_ENABLE_SPECS],[ 2253spec_default=$1 2254if test "x$spec_default" = x ; then 2255 spec_default="yes" 2256fi 2257AC_ARG_ENABLE(specs, 2258 AS_HELP_STRING([--enable-specs], 2259 [Enable building the specs (default: yes)]), 2260 [build_specs=$enableval], [build_specs=$spec_default]) 2261AM_CONDITIONAL(ENABLE_SPECS, [test x$build_specs = xyes]) 2262AC_MSG_CHECKING([whether to build functional specifications]) 2263AC_MSG_RESULT([$build_specs]) 2264]) # XORG_ENABLE_SPECS 2265 2266# XORG_CHECK_MALLOC_ZERO 2267# ---------------------- 2268# Minimum version: 1.0.0 2269# 2270# Defines {MALLOC,XMALLOC,XTMALLOC}_ZERO_CFLAGS appropriately if 2271# malloc(0) returns NULL. Packages should add one of these cflags to 2272# their AM_CFLAGS (or other appropriate *_CFLAGS) to use them. 2273AC_DEFUN([XORG_CHECK_MALLOC_ZERO],[ 2274AC_ARG_ENABLE(malloc0returnsnull, 2275 AS_HELP_STRING([--enable-malloc0returnsnull], 2276 [malloc(0) returns NULL (default: auto)]), 2277 [MALLOC_ZERO_RETURNS_NULL=$enableval], 2278 [MALLOC_ZERO_RETURNS_NULL=auto]) 2279 2280AC_MSG_CHECKING([whether malloc(0) returns NULL]) 2281if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 2282 AC_RUN_IFELSE([ 2283char *malloc(); 2284char *realloc(); 2285char *calloc(); 2286main() { 2287 char *m0, *r0, *c0, *p; 2288 m0 = malloc(0); 2289 p = malloc(10); 2290 r0 = realloc(p,0); 2291 c0 = calloc(0); 2292 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1); 2293}], 2294 [MALLOC_ZERO_RETURNS_NULL=yes], 2295 [MALLOC_ZERO_RETURNS_NULL=no], 2296 [MALLOC_ZERO_RETURNS_NULL=yes]) 2297fi 2298AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL]) 2299 2300if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 2301 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 2302 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 2303 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 2304else 2305 MALLOC_ZERO_CFLAGS="" 2306 XMALLOC_ZERO_CFLAGS="" 2307 XTMALLOC_ZERO_CFLAGS="" 2308fi 2309 2310AC_SUBST([MALLOC_ZERO_CFLAGS]) 2311AC_SUBST([XMALLOC_ZERO_CFLAGS]) 2312AC_SUBST([XTMALLOC_ZERO_CFLAGS]) 2313]) # XORG_CHECK_MALLOC_ZERO 2314 2315# XORG_WITH_LINT() 2316# ---------------- 2317# Minimum version: 1.1.0 2318# 2319# This macro enables the use of a tool that flags some suspicious and 2320# non-portable constructs (likely to be bugs) in C language source code. 2321# It will attempt to locate the tool and use appropriate options. 2322# There are various lint type tools on different platforms. 2323# 2324# Interface to module: 2325# LINT: returns the path to the tool found on the platform 2326# or the value set to LINT on the configure cmd line 2327# also an Automake conditional 2328# LINT_FLAGS: an Automake variable with appropriate flags 2329# 2330# --with-lint: 'yes' user instructs the module to use lint 2331# 'no' user instructs the module not to use lint (default) 2332# 2333# If the user sets the value of LINT, AC_PATH_PROG skips testing the path. 2334# If the user sets the value of LINT_FLAGS, they are used verbatim. 2335# 2336AC_DEFUN([XORG_WITH_LINT],[ 2337 2338AC_ARG_VAR([LINT], [Path to a lint-style command]) 2339AC_ARG_VAR([LINT_FLAGS], [Flags for the lint-style command]) 2340AC_ARG_WITH(lint, [AS_HELP_STRING([--with-lint], 2341 [Use a lint-style source code checker (default: disabled)])], 2342 [use_lint=$withval], [use_lint=no]) 2343 2344# Obtain platform specific info like program name and options 2345# The lint program on FreeBSD and NetBSD is different from the one on Solaris 2346case $host_os in 2347 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 2348 lint_name=splint 2349 lint_options="-badflag" 2350 ;; 2351 *freebsd* | *netbsd*) 2352 lint_name=lint 2353 lint_options="-u -b" 2354 ;; 2355 *solaris*) 2356 lint_name=lint 2357 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 2358 ;; 2359esac 2360 2361# Test for the presence of the program (either guessed by the code or spelled out by the user) 2362if test "x$use_lint" = x"yes" ; then 2363 AC_PATH_PROG([LINT], [$lint_name]) 2364 if test "x$LINT" = "x"; then 2365 AC_MSG_ERROR([--with-lint=yes specified but lint-style tool not found in PATH]) 2366 fi 2367elif test "x$use_lint" = x"no" ; then 2368 if test "x$LINT" != "x"; then 2369 AC_MSG_WARN([ignoring LINT environment variable since --with-lint=no was specified]) 2370 fi 2371else 2372 AC_MSG_ERROR([--with-lint expects 'yes' or 'no'. Use LINT variable to specify path.]) 2373fi 2374 2375# User supplied flags override default flags 2376if test "x$LINT_FLAGS" != "x"; then 2377 lint_options=$LINT_FLAGS 2378fi 2379 2380AC_SUBST([LINT_FLAGS],[$lint_options]) 2381AM_CONDITIONAL(LINT, [test "x$LINT" != x]) 2382 2383]) # XORG_WITH_LINT 2384 2385# XORG_LINT_LIBRARY(LIBNAME) 2386# -------------------------- 2387# Minimum version: 1.1.0 2388# 2389# Sets up flags for building lint libraries for checking programs that call 2390# functions in the library. 2391# 2392# Interface to module: 2393# LINTLIB - Automake variable with the name of lint library file to make 2394# MAKE_LINT_LIB - Automake conditional 2395# 2396# --enable-lint-library: - 'yes' user instructs the module to created a lint library 2397# - 'no' user instructs the module not to create a lint library (default) 2398 2399AC_DEFUN([XORG_LINT_LIBRARY],[ 2400AC_REQUIRE([XORG_WITH_LINT]) 2401AC_ARG_ENABLE(lint-library, [AS_HELP_STRING([--enable-lint-library], 2402 [Create lint library (default: disabled)])], 2403 [make_lint_lib=$enableval], [make_lint_lib=no]) 2404 2405if test "x$make_lint_lib" = x"yes" ; then 2406 LINTLIB=llib-l$1.ln 2407 if test "x$LINT" = "x"; then 2408 AC_MSG_ERROR([Cannot make lint library without --with-lint]) 2409 fi 2410elif test "x$make_lint_lib" != x"no" ; then 2411 AC_MSG_ERROR([--enable-lint-library expects 'yes' or 'no'.]) 2412fi 2413 2414AC_SUBST(LINTLIB) 2415AM_CONDITIONAL(MAKE_LINT_LIB, [test x$make_lint_lib != xno]) 2416 2417]) # XORG_LINT_LIBRARY 2418 2419# XORG_CWARNFLAGS 2420# --------------- 2421# Minimum version: 1.2.0 2422# 2423# Defines CWARNFLAGS to enable C compiler warnings. 2424# 2425AC_DEFUN([XORG_CWARNFLAGS], [ 2426AC_REQUIRE([AC_PROG_CC_C99]) 2427if test "x$GCC" = xyes ; then 2428 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 2429-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 2430-Wbad-function-cast -Wformat=2" 2431 case `$CC -dumpversion` in 2432 3.4.* | 4.*) 2433 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 2434 ;; 2435 esac 2436else 2437 AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) 2438 if test "x$SUNCC" = "xyes"; then 2439 CWARNFLAGS="-v" 2440 fi 2441fi 2442AC_SUBST(CWARNFLAGS) 2443]) # XORG_CWARNFLAGS 2444 2445# XORG_STRICT_OPTION 2446# ----------------------- 2447# Minimum version: 1.3.0 2448# 2449# Add configure option to enable strict compilation 2450AC_DEFUN([XORG_STRICT_OPTION], [ 2451# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 2452AC_REQUIRE([AC_PROG_CC_C99]) 2453AC_REQUIRE([XORG_CWARNFLAGS]) 2454 2455AC_ARG_ENABLE(strict-compilation, 2456 AS_HELP_STRING([--enable-strict-compilation], 2457 [Enable all warnings from compiler and make them errors (default: disabled)]), 2458 [STRICT_COMPILE=$enableval], [STRICT_COMPILE=no]) 2459if test "x$STRICT_COMPILE" = "xyes"; then 2460 AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) 2461 AC_CHECK_DECL([__INTEL_COMPILER], [INTELCC="yes"], [INTELCC="no"]) 2462 if test "x$GCC" = xyes ; then 2463 STRICT_CFLAGS="-pedantic -Werror" 2464 elif test "x$SUNCC" = "xyes"; then 2465 STRICT_CFLAGS="-errwarn" 2466 elif test "x$INTELCC" = "xyes"; then 2467 STRICT_CFLAGS="-Werror" 2468 fi 2469fi 2470CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 2471AC_SUBST([CWARNFLAGS]) 2472]) # XORG_STRICT_OPTION 2473 2474# XORG_DEFAULT_OPTIONS 2475# -------------------- 2476# Minimum version: 1.3.0 2477# 2478# Defines default options for X.Org modules. 2479# 2480AC_DEFUN([XORG_DEFAULT_OPTIONS], [ 2481AC_REQUIRE([AC_PROG_INSTALL]) 2482XORG_CWARNFLAGS 2483XORG_STRICT_OPTION 2484XORG_RELEASE_VERSION 2485XORG_CHANGELOG 2486XORG_INSTALL 2487XORG_MANPAGE_SECTIONS 2488m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])], 2489 [AC_SUBST([AM_DEFAULT_VERBOSITY], [1])]) 2490]) # XORG_DEFAULT_OPTIONS 2491 2492# XORG_INSTALL() 2493# ---------------- 2494# Minimum version: 1.4.0 2495# 2496# Defines the variable INSTALL_CMD as the command to copy 2497# INSTALL from $prefix/share/util-macros. 2498# 2499AC_DEFUN([XORG_INSTALL], [ 2500AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 2501macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 2502INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 2503mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 2504|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 2505echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 2506AC_SUBST([INSTALL_CMD]) 2507]) # XORG_INSTALL 2508dnl Copyright 2005 Red Hat, Inc 2509dnl 2510dnl Permission to use, copy, modify, distribute, and sell this software and its 2511dnl documentation for any purpose is hereby granted without fee, provided that 2512dnl the above copyright notice appear in all copies and that both that 2513dnl copyright notice and this permission notice appear in supporting 2514dnl documentation. 2515dnl 2516dnl The above copyright notice and this permission notice shall be included 2517dnl in all copies or substantial portions of the Software. 2518dnl 2519dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 2520dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 2521dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 2522dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 2523dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 2524dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 2525dnl OTHER DEALINGS IN THE SOFTWARE. 2526dnl 2527dnl Except as contained in this notice, the name of the copyright holders shall 2528dnl not be used in advertising or otherwise to promote the sale, use or 2529dnl other dealings in this Software without prior written authorization 2530dnl from the copyright holders. 2531dnl 2532 2533# XORG_RELEASE_VERSION 2534# -------------------- 2535# Defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use. 2536 2537AC_DEFUN([XORG_RELEASE_VERSION],[ 2538 AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR], 2539 [`echo $PACKAGE_VERSION | cut -d . -f 1`], 2540 [Major version of this package]) 2541 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 2542 if test "x$PVM" = "x"; then 2543 PVM="0" 2544 fi 2545 AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR], 2546 [$PVM], 2547 [Minor version of this package]) 2548 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 2549 if test "x$PVP" = "x"; then 2550 PVP="0" 2551 fi 2552 AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL], 2553 [$PVP], 2554 [Patch version of this package]) 2555]) 2556 2557# XORG_CHANGELOG() 2558# ---------------- 2559# Minimum version: 1.2.0 2560# 2561# Defines the variable CHANGELOG_CMD as the command to generate 2562# ChangeLog from git. 2563# 2564# 2565AC_DEFUN([XORG_CHANGELOG], [ 2566CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 2567mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 2568|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 2569echo 'git directory not found: installing possibly empty changelog.' >&2)" 2570AC_SUBST([CHANGELOG_CMD]) 2571]) # XORG_CHANGELOG 2572 2573# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 2574# 2575# Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 2576# 2577# This program is free software; you can redistribute it and/or modify 2578# it under the terms of the GNU General Public License as published by 2579# the Free Software Foundation; either version 2 of the License, or 2580# (at your option) any later version. 2581# 2582# This program is distributed in the hope that it will be useful, but 2583# WITHOUT ANY WARRANTY; without even the implied warranty of 2584# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 2585# General Public License for more details. 2586# 2587# You should have received a copy of the GNU General Public License 2588# along with this program; if not, write to the Free Software 2589# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 2590# 2591# As a special exception to the GNU General Public License, if you 2592# distribute this file as part of a program that contains a 2593# configuration script generated by Autoconf, you may include it under 2594# the same distribution terms that you use for the rest of that program. 2595 2596# PKG_PROG_PKG_CONFIG([MIN-VERSION]) 2597# ---------------------------------- 2598AC_DEFUN([PKG_PROG_PKG_CONFIG], 2599[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) 2600m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) 2601AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl 2602if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 2603 AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) 2604fi 2605if test -n "$PKG_CONFIG"; then 2606 _pkg_min_version=m4_default([$1], [0.9.0]) 2607 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) 2608 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 2609 AC_MSG_RESULT([yes]) 2610 else 2611 AC_MSG_RESULT([no]) 2612 PKG_CONFIG="" 2613 fi 2614 2615fi[]dnl 2616])# PKG_PROG_PKG_CONFIG 2617 2618# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 2619# 2620# Check to see whether a particular set of modules exists. Similar 2621# to PKG_CHECK_MODULES(), but does not set variables or print errors. 2622# 2623# 2624# Similar to PKG_CHECK_MODULES, make sure that the first instance of 2625# this or PKG_CHECK_MODULES is called, or make sure to call 2626# PKG_CHECK_EXISTS manually 2627# -------------------------------------------------------------- 2628AC_DEFUN([PKG_CHECK_EXISTS], 2629[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 2630if test -n "$PKG_CONFIG" && \ 2631 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then 2632 m4_ifval([$2], [$2], [:]) 2633m4_ifvaln([$3], [else 2634 $3])dnl 2635fi]) 2636 2637 2638# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 2639# --------------------------------------------- 2640m4_define([_PKG_CONFIG], 2641[if test -n "$$1"; then 2642 pkg_cv_[]$1="$$1" 2643 elif test -n "$PKG_CONFIG"; then 2644 PKG_CHECK_EXISTS([$3], 2645 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], 2646 [pkg_failed=yes]) 2647 else 2648 pkg_failed=untried 2649fi[]dnl 2650])# _PKG_CONFIG 2651 2652# _PKG_SHORT_ERRORS_SUPPORTED 2653# ----------------------------- 2654AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], 2655[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 2656if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 2657 _pkg_short_errors_supported=yes 2658else 2659 _pkg_short_errors_supported=no 2660fi[]dnl 2661])# _PKG_SHORT_ERRORS_SUPPORTED 2662 2663 2664# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 2665# [ACTION-IF-NOT-FOUND]) 2666# 2667# 2668# Note that if there is a possibility the first call to 2669# PKG_CHECK_MODULES might not happen, you should be sure to include an 2670# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 2671# 2672# 2673# -------------------------------------------------------------- 2674AC_DEFUN([PKG_CHECK_MODULES], 2675[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 2676AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl 2677AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl 2678 2679pkg_failed=no 2680AC_MSG_CHECKING([for $1]) 2681 2682_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) 2683_PKG_CONFIG([$1][_LIBS], [libs], [$2]) 2684 2685m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS 2686and $1[]_LIBS to avoid the need to call pkg-config. 2687See the pkg-config man page for more details.]) 2688 2689if test $pkg_failed = yes; then 2690 _PKG_SHORT_ERRORS_SUPPORTED 2691 if test $_pkg_short_errors_supported = yes; then 2692 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` 2693 else 2694 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1` 2695 fi 2696 # Put the nasty error message in config.log where it belongs 2697 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD 2698 2699 ifelse([$4], , [AC_MSG_ERROR(dnl 2700[Package requirements ($2) were not met: 2701 2702$$1_PKG_ERRORS 2703 2704Consider adjusting the PKG_CONFIG_PATH environment variable if you 2705installed software in a non-standard prefix. 2706 2707_PKG_TEXT 2708])], 2709 [AC_MSG_RESULT([no]) 2710 $4]) 2711elif test $pkg_failed = untried; then 2712 ifelse([$4], , [AC_MSG_FAILURE(dnl 2713[The pkg-config script could not be found or is too old. Make sure it 2714is in your PATH or set the PKG_CONFIG environment variable to the full 2715path to pkg-config. 2716 2717_PKG_TEXT 2718 2719To get pkg-config, see <http://pkg-config.freedesktop.org/>.])], 2720 [$4]) 2721else 2722 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS 2723 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS 2724 AC_MSG_RESULT([yes]) 2725 ifelse([$3], , :, [$3]) 2726fi[]dnl 2727])# PKG_CHECK_MODULES 2728 2729# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 2730# 2731# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2732# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 2733# Inc. 2734# Written by Gordon Matzigkeit, 1996 2735# 2736# This file is free software; the Free Software Foundation gives 2737# unlimited permission to copy and/or distribute it, with or without 2738# modifications, as long as this notice is preserved. 2739 2740m4_define([_LT_COPYING], [dnl 2741# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2742# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 2743# Inc. 2744# Written by Gordon Matzigkeit, 1996 2745# 2746# This file is part of GNU Libtool. 2747# 2748# GNU Libtool is free software; you can redistribute it and/or 2749# modify it under the terms of the GNU General Public License as 2750# published by the Free Software Foundation; either version 2 of 2751# the License, or (at your option) any later version. 2752# 2753# As a special exception to the GNU General Public License, 2754# if you distribute this file as part of a program or library that 2755# is built using GNU Libtool, you may include this file under the 2756# same distribution terms that you use for the rest of that program. 2757# 2758# GNU Libtool is distributed in the hope that it will be useful, 2759# but WITHOUT ANY WARRANTY; without even the implied warranty of 2760# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 2761# GNU General Public License for more details. 2762# 2763# You should have received a copy of the GNU General Public License 2764# along with GNU Libtool; see the file COPYING. If not, a copy 2765# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 2766# obtained by writing to the Free Software Foundation, Inc., 2767# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 2768]) 2769 2770# serial 57 LT_INIT 2771 2772 2773# LT_PREREQ(VERSION) 2774# ------------------ 2775# Complain and exit if this libtool version is less that VERSION. 2776m4_defun([LT_PREREQ], 2777[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, 2778 [m4_default([$3], 2779 [m4_fatal([Libtool version $1 or higher is required], 2780 63)])], 2781 [$2])]) 2782 2783 2784# _LT_CHECK_BUILDDIR 2785# ------------------ 2786# Complain if the absolute build directory name contains unusual characters 2787m4_defun([_LT_CHECK_BUILDDIR], 2788[case `pwd` in 2789 *\ * | *\ *) 2790 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; 2791esac 2792]) 2793 2794 2795# LT_INIT([OPTIONS]) 2796# ------------------ 2797AC_DEFUN([LT_INIT], 2798[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT 2799AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 2800AC_BEFORE([$0], [LT_LANG])dnl 2801AC_BEFORE([$0], [LT_OUTPUT])dnl 2802AC_BEFORE([$0], [LTDL_INIT])dnl 2803m4_require([_LT_CHECK_BUILDDIR])dnl 2804 2805dnl Autoconf doesn't catch unexpanded LT_ macros by default: 2806m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl 2807m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl 2808dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 2809dnl unless we require an AC_DEFUNed macro: 2810AC_REQUIRE([LTOPTIONS_VERSION])dnl 2811AC_REQUIRE([LTSUGAR_VERSION])dnl 2812AC_REQUIRE([LTVERSION_VERSION])dnl 2813AC_REQUIRE([LTOBSOLETE_VERSION])dnl 2814m4_require([_LT_PROG_LTMAIN])dnl 2815 2816_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) 2817 2818dnl Parse OPTIONS 2819_LT_SET_OPTIONS([$0], [$1]) 2820 2821# This can be used to rebuild libtool when needed 2822LIBTOOL_DEPS="$ltmain" 2823 2824# Always use our own libtool. 2825LIBTOOL='$(SHELL) $(top_builddir)/libtool' 2826AC_SUBST(LIBTOOL)dnl 2827 2828_LT_SETUP 2829 2830# Only expand once: 2831m4_define([LT_INIT]) 2832])# LT_INIT 2833 2834# Old names: 2835AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) 2836AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) 2837dnl aclocal-1.4 backwards compatibility: 2838dnl AC_DEFUN([AC_PROG_LIBTOOL], []) 2839dnl AC_DEFUN([AM_PROG_LIBTOOL], []) 2840 2841 2842# _LT_CC_BASENAME(CC) 2843# ------------------- 2844# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 2845m4_defun([_LT_CC_BASENAME], 2846[for cc_temp in $1""; do 2847 case $cc_temp in 2848 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 2849 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 2850 \-*) ;; 2851 *) break;; 2852 esac 2853done 2854cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 2855]) 2856 2857 2858# _LT_FILEUTILS_DEFAULTS 2859# ---------------------- 2860# It is okay to use these file commands and assume they have been set 2861# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. 2862m4_defun([_LT_FILEUTILS_DEFAULTS], 2863[: ${CP="cp -f"} 2864: ${MV="mv -f"} 2865: ${RM="rm -f"} 2866])# _LT_FILEUTILS_DEFAULTS 2867 2868 2869# _LT_SETUP 2870# --------- 2871m4_defun([_LT_SETUP], 2872[AC_REQUIRE([AC_CANONICAL_HOST])dnl 2873AC_REQUIRE([AC_CANONICAL_BUILD])dnl 2874AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl 2875AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 2876 2877_LT_DECL([], [host_alias], [0], [The host system])dnl 2878_LT_DECL([], [host], [0])dnl 2879_LT_DECL([], [host_os], [0])dnl 2880dnl 2881_LT_DECL([], [build_alias], [0], [The build system])dnl 2882_LT_DECL([], [build], [0])dnl 2883_LT_DECL([], [build_os], [0])dnl 2884dnl 2885AC_REQUIRE([AC_PROG_CC])dnl 2886AC_REQUIRE([LT_PATH_LD])dnl 2887AC_REQUIRE([LT_PATH_NM])dnl 2888dnl 2889AC_REQUIRE([AC_PROG_LN_S])dnl 2890test -z "$LN_S" && LN_S="ln -s" 2891_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl 2892dnl 2893AC_REQUIRE([LT_CMD_MAX_LEN])dnl 2894_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl 2895_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl 2896dnl 2897m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2898m4_require([_LT_CHECK_SHELL_FEATURES])dnl 2899m4_require([_LT_CMD_RELOAD])dnl 2900m4_require([_LT_CHECK_MAGIC_METHOD])dnl 2901m4_require([_LT_CMD_OLD_ARCHIVE])dnl 2902m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 2903 2904_LT_CONFIG_LIBTOOL_INIT([ 2905# See if we are running on zsh, and set the options which allow our 2906# commands through without removal of \ escapes INIT. 2907if test -n "\${ZSH_VERSION+set}" ; then 2908 setopt NO_GLOB_SUBST 2909fi 2910]) 2911if test -n "${ZSH_VERSION+set}" ; then 2912 setopt NO_GLOB_SUBST 2913fi 2914 2915_LT_CHECK_OBJDIR 2916 2917m4_require([_LT_TAG_COMPILER])dnl 2918 2919case $host_os in 2920aix3*) 2921 # AIX sometimes has problems with the GCC collect2 program. For some 2922 # reason, if we set the COLLECT_NAMES environment variable, the problems 2923 # vanish in a puff of smoke. 2924 if test "X${COLLECT_NAMES+set}" != Xset; then 2925 COLLECT_NAMES= 2926 export COLLECT_NAMES 2927 fi 2928 ;; 2929esac 2930 2931# Global variables: 2932ofile=libtool 2933can_build_shared=yes 2934 2935# All known linkers require a `.a' archive for static linking (except MSVC, 2936# which needs '.lib'). 2937libext=a 2938 2939with_gnu_ld="$lt_cv_prog_gnu_ld" 2940 2941old_CC="$CC" 2942old_CFLAGS="$CFLAGS" 2943 2944# Set sane defaults for various variables 2945test -z "$CC" && CC=cc 2946test -z "$LTCC" && LTCC=$CC 2947test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 2948test -z "$LD" && LD=ld 2949test -z "$ac_objext" && ac_objext=o 2950 2951_LT_CC_BASENAME([$compiler]) 2952 2953# Only perform the check for file, if the check method requires it 2954test -z "$MAGIC_CMD" && MAGIC_CMD=file 2955case $deplibs_check_method in 2956file_magic*) 2957 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 2958 _LT_PATH_MAGIC 2959 fi 2960 ;; 2961esac 2962 2963# Use C for the default configuration in the libtool script 2964LT_SUPPORTED_TAG([CC]) 2965_LT_LANG_C_CONFIG 2966_LT_LANG_DEFAULT_CONFIG 2967_LT_CONFIG_COMMANDS 2968])# _LT_SETUP 2969 2970 2971# _LT_PREPARE_SED_QUOTE_VARS 2972# -------------------------- 2973# Define a few sed substitution that help us do robust quoting. 2974m4_defun([_LT_PREPARE_SED_QUOTE_VARS], 2975[# Backslashify metacharacters that are still active within 2976# double-quoted strings. 2977sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' 2978 2979# Same as above, but do not quote variable references. 2980double_quote_subst='s/\([["`\\]]\)/\\\1/g' 2981 2982# Sed substitution to delay expansion of an escaped shell variable in a 2983# double_quote_subst'ed string. 2984delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2985 2986# Sed substitution to delay expansion of an escaped single quote. 2987delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2988 2989# Sed substitution to avoid accidental globbing in evaled expressions 2990no_glob_subst='s/\*/\\\*/g' 2991]) 2992 2993# _LT_PROG_LTMAIN 2994# --------------- 2995# Note that this code is called both from `configure', and `config.status' 2996# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 2997# `config.status' has no value for ac_aux_dir unless we are using Automake, 2998# so we pass a copy along to make sure it has a sensible value anyway. 2999m4_defun([_LT_PROG_LTMAIN], 3000[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 3001_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) 3002ltmain="$ac_aux_dir/ltmain.sh" 3003])# _LT_PROG_LTMAIN 3004 3005 3006 3007# So that we can recreate a full libtool script including additional 3008# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 3009# in macros and then make a single call at the end using the `libtool' 3010# label. 3011 3012 3013# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 3014# ---------------------------------------- 3015# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 3016m4_define([_LT_CONFIG_LIBTOOL_INIT], 3017[m4_ifval([$1], 3018 [m4_append([_LT_OUTPUT_LIBTOOL_INIT], 3019 [$1 3020])])]) 3021 3022# Initialize. 3023m4_define([_LT_OUTPUT_LIBTOOL_INIT]) 3024 3025 3026# _LT_CONFIG_LIBTOOL([COMMANDS]) 3027# ------------------------------ 3028# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. 3029m4_define([_LT_CONFIG_LIBTOOL], 3030[m4_ifval([$1], 3031 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], 3032 [$1 3033])])]) 3034 3035# Initialize. 3036m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) 3037 3038 3039# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) 3040# ----------------------------------------------------- 3041m4_defun([_LT_CONFIG_SAVE_COMMANDS], 3042[_LT_CONFIG_LIBTOOL([$1]) 3043_LT_CONFIG_LIBTOOL_INIT([$2]) 3044]) 3045 3046 3047# _LT_FORMAT_COMMENT([COMMENT]) 3048# ----------------------------- 3049# Add leading comment marks to the start of each line, and a trailing 3050# full-stop to the whole comment if one is not present already. 3051m4_define([_LT_FORMAT_COMMENT], 3052[m4_ifval([$1], [ 3053m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], 3054 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) 3055)]) 3056 3057 3058 3059 3060 3061# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) 3062# ------------------------------------------------------------------- 3063# CONFIGNAME is the name given to the value in the libtool script. 3064# VARNAME is the (base) name used in the configure script. 3065# VALUE may be 0, 1 or 2 for a computed quote escaped value based on 3066# VARNAME. Any other value will be used directly. 3067m4_define([_LT_DECL], 3068[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], 3069 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], 3070 [m4_ifval([$1], [$1], [$2])]) 3071 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) 3072 m4_ifval([$4], 3073 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) 3074 lt_dict_add_subkey([lt_decl_dict], [$2], 3075 [tagged?], [m4_ifval([$5], [yes], [no])])]) 3076]) 3077 3078 3079# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) 3080# -------------------------------------------------------- 3081m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) 3082 3083 3084# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) 3085# ------------------------------------------------ 3086m4_define([lt_decl_tag_varnames], 3087[_lt_decl_filter([tagged?], [yes], $@)]) 3088 3089 3090# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) 3091# --------------------------------------------------------- 3092m4_define([_lt_decl_filter], 3093[m4_case([$#], 3094 [0], [m4_fatal([$0: too few arguments: $#])], 3095 [1], [m4_fatal([$0: too few arguments: $#: $1])], 3096 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], 3097 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], 3098 [lt_dict_filter([lt_decl_dict], $@)])[]dnl 3099]) 3100 3101 3102# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) 3103# -------------------------------------------------- 3104m4_define([lt_decl_quote_varnames], 3105[_lt_decl_filter([value], [1], $@)]) 3106 3107 3108# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) 3109# --------------------------------------------------- 3110m4_define([lt_decl_dquote_varnames], 3111[_lt_decl_filter([value], [2], $@)]) 3112 3113 3114# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) 3115# --------------------------------------------------- 3116m4_define([lt_decl_varnames_tagged], 3117[m4_assert([$# <= 2])dnl 3118_$0(m4_quote(m4_default([$1], [[, ]])), 3119 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), 3120 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) 3121m4_define([_lt_decl_varnames_tagged], 3122[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) 3123 3124 3125# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) 3126# ------------------------------------------------ 3127m4_define([lt_decl_all_varnames], 3128[_$0(m4_quote(m4_default([$1], [[, ]])), 3129 m4_if([$2], [], 3130 m4_quote(lt_decl_varnames), 3131 m4_quote(m4_shift($@))))[]dnl 3132]) 3133m4_define([_lt_decl_all_varnames], 3134[lt_join($@, lt_decl_varnames_tagged([$1], 3135 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl 3136]) 3137 3138 3139# _LT_CONFIG_STATUS_DECLARE([VARNAME]) 3140# ------------------------------------ 3141# Quote a variable value, and forward it to `config.status' so that its 3142# declaration there will have the same value as in `configure'. VARNAME 3143# must have a single quote delimited value for this to work. 3144m4_define([_LT_CONFIG_STATUS_DECLARE], 3145[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) 3146 3147 3148# _LT_CONFIG_STATUS_DECLARATIONS 3149# ------------------------------ 3150# We delimit libtool config variables with single quotes, so when 3151# we write them to config.status, we have to be sure to quote all 3152# embedded single quotes properly. In configure, this macro expands 3153# each variable declared with _LT_DECL (and _LT_TAGDECL) into: 3154# 3155# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' 3156m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], 3157[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), 3158 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) 3159 3160 3161# _LT_LIBTOOL_TAGS 3162# ---------------- 3163# Output comment and list of tags supported by the script 3164m4_defun([_LT_LIBTOOL_TAGS], 3165[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl 3166available_tags="_LT_TAGS"dnl 3167]) 3168 3169 3170# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 3171# ----------------------------------- 3172# Extract the dictionary values for VARNAME (optionally with TAG) and 3173# expand to a commented shell variable setting: 3174# 3175# # Some comment about what VAR is for. 3176# visible_name=$lt_internal_name 3177m4_define([_LT_LIBTOOL_DECLARE], 3178[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], 3179 [description])))[]dnl 3180m4_pushdef([_libtool_name], 3181 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl 3182m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), 3183 [0], [_libtool_name=[$]$1], 3184 [1], [_libtool_name=$lt_[]$1], 3185 [2], [_libtool_name=$lt_[]$1], 3186 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl 3187m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl 3188]) 3189 3190 3191# _LT_LIBTOOL_CONFIG_VARS 3192# ----------------------- 3193# Produce commented declarations of non-tagged libtool config variables 3194# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' 3195# script. Tagged libtool config variables (even for the LIBTOOL CONFIG 3196# section) are produced by _LT_LIBTOOL_TAG_VARS. 3197m4_defun([_LT_LIBTOOL_CONFIG_VARS], 3198[m4_foreach([_lt_var], 3199 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), 3200 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) 3201 3202 3203# _LT_LIBTOOL_TAG_VARS(TAG) 3204# ------------------------- 3205m4_define([_LT_LIBTOOL_TAG_VARS], 3206[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), 3207 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) 3208 3209 3210# _LT_TAGVAR(VARNAME, [TAGNAME]) 3211# ------------------------------ 3212m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) 3213 3214 3215# _LT_CONFIG_COMMANDS 3216# ------------------- 3217# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 3218# variables for single and double quote escaping we saved from calls 3219# to _LT_DECL, we can put quote escaped variables declarations 3220# into `config.status', and then the shell code to quote escape them in 3221# for loops in `config.status'. Finally, any additional code accumulated 3222# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 3223m4_defun([_LT_CONFIG_COMMANDS], 3224[AC_PROVIDE_IFELSE([LT_OUTPUT], 3225 dnl If the libtool generation code has been placed in $CONFIG_LT, 3226 dnl instead of duplicating it all over again into config.status, 3227 dnl then we will have config.status run $CONFIG_LT later, so it 3228 dnl needs to know what name is stored there: 3229 [AC_CONFIG_COMMANDS([libtool], 3230 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], 3231 dnl If the libtool generation code is destined for config.status, 3232 dnl expand the accumulated commands and init code now: 3233 [AC_CONFIG_COMMANDS([libtool], 3234 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) 3235])#_LT_CONFIG_COMMANDS 3236 3237 3238# Initialize. 3239m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], 3240[ 3241 3242# The HP-UX ksh and POSIX shell print the target directory to stdout 3243# if CDPATH is set. 3244(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 3245 3246sed_quote_subst='$sed_quote_subst' 3247double_quote_subst='$double_quote_subst' 3248delay_variable_subst='$delay_variable_subst' 3249_LT_CONFIG_STATUS_DECLARATIONS 3250LTCC='$LTCC' 3251LTCFLAGS='$LTCFLAGS' 3252compiler='$compiler_DEFAULT' 3253 3254# A function that is used when there is no print builtin or printf. 3255func_fallback_echo () 3256{ 3257 eval 'cat <<_LTECHO_EOF 3258\$[]1 3259_LTECHO_EOF' 3260} 3261 3262# Quote evaled strings. 3263for var in lt_decl_all_varnames([[ \ 3264]], lt_decl_quote_varnames); do 3265 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 3266 *[[\\\\\\\`\\"\\\$]]*) 3267 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 3268 ;; 3269 *) 3270 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 3271 ;; 3272 esac 3273done 3274 3275# Double-quote double-evaled strings. 3276for var in lt_decl_all_varnames([[ \ 3277]], lt_decl_dquote_varnames); do 3278 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 3279 *[[\\\\\\\`\\"\\\$]]*) 3280 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 3281 ;; 3282 *) 3283 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 3284 ;; 3285 esac 3286done 3287 3288_LT_OUTPUT_LIBTOOL_INIT 3289]) 3290 3291# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) 3292# ------------------------------------ 3293# Generate a child script FILE with all initialization necessary to 3294# reuse the environment learned by the parent script, and make the 3295# file executable. If COMMENT is supplied, it is inserted after the 3296# `#!' sequence but before initialization text begins. After this 3297# macro, additional text can be appended to FILE to form the body of 3298# the child script. The macro ends with non-zero status if the 3299# file could not be fully written (such as if the disk is full). 3300m4_ifdef([AS_INIT_GENERATED], 3301[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], 3302[m4_defun([_LT_GENERATED_FILE_INIT], 3303[m4_require([AS_PREPARE])]dnl 3304[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl 3305[lt_write_fail=0 3306cat >$1 <<_ASEOF || lt_write_fail=1 3307#! $SHELL 3308# Generated by $as_me. 3309$2 3310SHELL=\${CONFIG_SHELL-$SHELL} 3311export SHELL 3312_ASEOF 3313cat >>$1 <<\_ASEOF || lt_write_fail=1 3314AS_SHELL_SANITIZE 3315_AS_PREPARE 3316exec AS_MESSAGE_FD>&1 3317_ASEOF 3318test $lt_write_fail = 0 && chmod +x $1[]dnl 3319m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT 3320 3321# LT_OUTPUT 3322# --------- 3323# This macro allows early generation of the libtool script (before 3324# AC_OUTPUT is called), incase it is used in configure for compilation 3325# tests. 3326AC_DEFUN([LT_OUTPUT], 3327[: ${CONFIG_LT=./config.lt} 3328AC_MSG_NOTICE([creating $CONFIG_LT]) 3329_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], 3330[# Run this file to recreate a libtool stub with the current configuration.]) 3331 3332cat >>"$CONFIG_LT" <<\_LTEOF 3333lt_cl_silent=false 3334exec AS_MESSAGE_LOG_FD>>config.log 3335{ 3336 echo 3337 AS_BOX([Running $as_me.]) 3338} >&AS_MESSAGE_LOG_FD 3339 3340lt_cl_help="\ 3341\`$as_me' creates a local libtool stub from the current configuration, 3342for use in further configure time tests before the real libtool is 3343generated. 3344 3345Usage: $[0] [[OPTIONS]] 3346 3347 -h, --help print this help, then exit 3348 -V, --version print version number, then exit 3349 -q, --quiet do not print progress messages 3350 -d, --debug don't remove temporary files 3351 3352Report bugs to <bug-libtool@gnu.org>." 3353 3354lt_cl_version="\ 3355m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl 3356m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) 3357configured by $[0], generated by m4_PACKAGE_STRING. 3358 3359Copyright (C) 2010 Free Software Foundation, Inc. 3360This config.lt script is free software; the Free Software Foundation 3361gives unlimited permision to copy, distribute and modify it." 3362 3363while test $[#] != 0 3364do 3365 case $[1] in 3366 --version | --v* | -V ) 3367 echo "$lt_cl_version"; exit 0 ;; 3368 --help | --h* | -h ) 3369 echo "$lt_cl_help"; exit 0 ;; 3370 --debug | --d* | -d ) 3371 debug=: ;; 3372 --quiet | --q* | --silent | --s* | -q ) 3373 lt_cl_silent=: ;; 3374 3375 -*) AC_MSG_ERROR([unrecognized option: $[1] 3376Try \`$[0] --help' for more information.]) ;; 3377 3378 *) AC_MSG_ERROR([unrecognized argument: $[1] 3379Try \`$[0] --help' for more information.]) ;; 3380 esac 3381 shift 3382done 3383 3384if $lt_cl_silent; then 3385 exec AS_MESSAGE_FD>/dev/null 3386fi 3387_LTEOF 3388 3389cat >>"$CONFIG_LT" <<_LTEOF 3390_LT_OUTPUT_LIBTOOL_COMMANDS_INIT 3391_LTEOF 3392 3393cat >>"$CONFIG_LT" <<\_LTEOF 3394AC_MSG_NOTICE([creating $ofile]) 3395_LT_OUTPUT_LIBTOOL_COMMANDS 3396AS_EXIT(0) 3397_LTEOF 3398chmod +x "$CONFIG_LT" 3399 3400# configure is writing to config.log, but config.lt does its own redirection, 3401# appending to config.log, which fails on DOS, as config.log is still kept 3402# open by configure. Here we exec the FD to /dev/null, effectively closing 3403# config.log, so it can be properly (re)opened and appended to by config.lt. 3404lt_cl_success=: 3405test "$silent" = yes && 3406 lt_config_lt_args="$lt_config_lt_args --quiet" 3407exec AS_MESSAGE_LOG_FD>/dev/null 3408$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 3409exec AS_MESSAGE_LOG_FD>>config.log 3410$lt_cl_success || AS_EXIT(1) 3411])# LT_OUTPUT 3412 3413 3414# _LT_CONFIG(TAG) 3415# --------------- 3416# If TAG is the built-in tag, create an initial libtool script with a 3417# default configuration from the untagged config vars. Otherwise add code 3418# to config.status for appending the configuration named by TAG from the 3419# matching tagged config vars. 3420m4_defun([_LT_CONFIG], 3421[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 3422_LT_CONFIG_SAVE_COMMANDS([ 3423 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 3424 m4_if(_LT_TAG, [C], [ 3425 # See if we are running on zsh, and set the options which allow our 3426 # commands through without removal of \ escapes. 3427 if test -n "${ZSH_VERSION+set}" ; then 3428 setopt NO_GLOB_SUBST 3429 fi 3430 3431 cfgfile="${ofile}T" 3432 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 3433 $RM "$cfgfile" 3434 3435 cat <<_LT_EOF >> "$cfgfile" 3436#! $SHELL 3437 3438# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 3439# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 3440# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 3441# NOTE: Changes made to this file will be lost: look at ltmain.sh. 3442# 3443_LT_COPYING 3444_LT_LIBTOOL_TAGS 3445 3446# ### BEGIN LIBTOOL CONFIG 3447_LT_LIBTOOL_CONFIG_VARS 3448_LT_LIBTOOL_TAG_VARS 3449# ### END LIBTOOL CONFIG 3450 3451_LT_EOF 3452 3453 case $host_os in 3454 aix3*) 3455 cat <<\_LT_EOF >> "$cfgfile" 3456# AIX sometimes has problems with the GCC collect2 program. For some 3457# reason, if we set the COLLECT_NAMES environment variable, the problems 3458# vanish in a puff of smoke. 3459if test "X${COLLECT_NAMES+set}" != Xset; then 3460 COLLECT_NAMES= 3461 export COLLECT_NAMES 3462fi 3463_LT_EOF 3464 ;; 3465 esac 3466 3467 _LT_PROG_LTMAIN 3468 3469 # We use sed instead of cat because bash on DJGPP gets confused if 3470 # if finds mixed CR/LF and LF-only lines. Since sed operates in 3471 # text mode, it properly converts lines to CR/LF. This bash problem 3472 # is reportedly fixed, but why not run on old versions too? 3473 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 3474 || (rm -f "$cfgfile"; exit 1) 3475 3476 _LT_PROG_XSI_SHELLFNS 3477 3478 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 3479 || (rm -f "$cfgfile"; exit 1) 3480 3481 mv -f "$cfgfile" "$ofile" || 3482 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 3483 chmod +x "$ofile" 3484], 3485[cat <<_LT_EOF >> "$ofile" 3486 3487dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded 3488dnl in a comment (ie after a #). 3489# ### BEGIN LIBTOOL TAG CONFIG: $1 3490_LT_LIBTOOL_TAG_VARS(_LT_TAG) 3491# ### END LIBTOOL TAG CONFIG: $1 3492_LT_EOF 3493])dnl /m4_if 3494], 3495[m4_if([$1], [], [ 3496 PACKAGE='$PACKAGE' 3497 VERSION='$VERSION' 3498 TIMESTAMP='$TIMESTAMP' 3499 RM='$RM' 3500 ofile='$ofile'], []) 3501])dnl /_LT_CONFIG_SAVE_COMMANDS 3502])# _LT_CONFIG 3503 3504 3505# LT_SUPPORTED_TAG(TAG) 3506# --------------------- 3507# Trace this macro to discover what tags are supported by the libtool 3508# --tag option, using: 3509# autoconf --trace 'LT_SUPPORTED_TAG:$1' 3510AC_DEFUN([LT_SUPPORTED_TAG], []) 3511 3512 3513# C support is built-in for now 3514m4_define([_LT_LANG_C_enabled], []) 3515m4_define([_LT_TAGS], []) 3516 3517 3518# LT_LANG(LANG) 3519# ------------- 3520# Enable libtool support for the given language if not already enabled. 3521AC_DEFUN([LT_LANG], 3522[AC_BEFORE([$0], [LT_OUTPUT])dnl 3523m4_case([$1], 3524 [C], [_LT_LANG(C)], 3525 [C++], [_LT_LANG(CXX)], 3526 [Java], [_LT_LANG(GCJ)], 3527 [Fortran 77], [_LT_LANG(F77)], 3528 [Fortran], [_LT_LANG(FC)], 3529 [Windows Resource], [_LT_LANG(RC)], 3530 [m4_ifdef([_LT_LANG_]$1[_CONFIG], 3531 [_LT_LANG($1)], 3532 [m4_fatal([$0: unsupported language: "$1"])])])dnl 3533])# LT_LANG 3534 3535 3536# _LT_LANG(LANGNAME) 3537# ------------------ 3538m4_defun([_LT_LANG], 3539[m4_ifdef([_LT_LANG_]$1[_enabled], [], 3540 [LT_SUPPORTED_TAG([$1])dnl 3541 m4_append([_LT_TAGS], [$1 ])dnl 3542 m4_define([_LT_LANG_]$1[_enabled], [])dnl 3543 _LT_LANG_$1_CONFIG($1)])dnl 3544])# _LT_LANG 3545 3546 3547# _LT_LANG_DEFAULT_CONFIG 3548# ----------------------- 3549m4_defun([_LT_LANG_DEFAULT_CONFIG], 3550[AC_PROVIDE_IFELSE([AC_PROG_CXX], 3551 [LT_LANG(CXX)], 3552 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) 3553 3554AC_PROVIDE_IFELSE([AC_PROG_F77], 3555 [LT_LANG(F77)], 3556 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) 3557 3558AC_PROVIDE_IFELSE([AC_PROG_FC], 3559 [LT_LANG(FC)], 3560 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) 3561 3562dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal 3563dnl pulling things in needlessly. 3564AC_PROVIDE_IFELSE([AC_PROG_GCJ], 3565 [LT_LANG(GCJ)], 3566 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 3567 [LT_LANG(GCJ)], 3568 [AC_PROVIDE_IFELSE([LT_PROG_GCJ], 3569 [LT_LANG(GCJ)], 3570 [m4_ifdef([AC_PROG_GCJ], 3571 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) 3572 m4_ifdef([A][M_PROG_GCJ], 3573 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) 3574 m4_ifdef([LT_PROG_GCJ], 3575 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) 3576 3577AC_PROVIDE_IFELSE([LT_PROG_RC], 3578 [LT_LANG(RC)], 3579 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) 3580])# _LT_LANG_DEFAULT_CONFIG 3581 3582# Obsolete macros: 3583AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) 3584AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) 3585AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) 3586AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) 3587AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) 3588dnl aclocal-1.4 backwards compatibility: 3589dnl AC_DEFUN([AC_LIBTOOL_CXX], []) 3590dnl AC_DEFUN([AC_LIBTOOL_F77], []) 3591dnl AC_DEFUN([AC_LIBTOOL_FC], []) 3592dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) 3593dnl AC_DEFUN([AC_LIBTOOL_RC], []) 3594 3595 3596# _LT_TAG_COMPILER 3597# ---------------- 3598m4_defun([_LT_TAG_COMPILER], 3599[AC_REQUIRE([AC_PROG_CC])dnl 3600 3601_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl 3602_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl 3603_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl 3604_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl 3605 3606# If no C compiler was specified, use CC. 3607LTCC=${LTCC-"$CC"} 3608 3609# If no C compiler flags were specified, use CFLAGS. 3610LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 3611 3612# Allow CC to be a program name with arguments. 3613compiler=$CC 3614])# _LT_TAG_COMPILER 3615 3616 3617# _LT_COMPILER_BOILERPLATE 3618# ------------------------ 3619# Check for compiler boilerplate output or warnings with 3620# the simple compiler test code. 3621m4_defun([_LT_COMPILER_BOILERPLATE], 3622[m4_require([_LT_DECL_SED])dnl 3623ac_outfile=conftest.$ac_objext 3624echo "$lt_simple_compile_test_code" >conftest.$ac_ext 3625eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 3626_lt_compiler_boilerplate=`cat conftest.err` 3627$RM conftest* 3628])# _LT_COMPILER_BOILERPLATE 3629 3630 3631# _LT_LINKER_BOILERPLATE 3632# ---------------------- 3633# Check for linker boilerplate output or warnings with 3634# the simple link test code. 3635m4_defun([_LT_LINKER_BOILERPLATE], 3636[m4_require([_LT_DECL_SED])dnl 3637ac_outfile=conftest.$ac_objext 3638echo "$lt_simple_link_test_code" >conftest.$ac_ext 3639eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 3640_lt_linker_boilerplate=`cat conftest.err` 3641$RM -r conftest* 3642])# _LT_LINKER_BOILERPLATE 3643 3644# _LT_REQUIRED_DARWIN_CHECKS 3645# ------------------------- 3646m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ 3647 case $host_os in 3648 rhapsody* | darwin*) 3649 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) 3650 AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 3651 AC_CHECK_TOOL([LIPO], [lipo], [:]) 3652 AC_CHECK_TOOL([OTOOL], [otool], [:]) 3653 AC_CHECK_TOOL([OTOOL64], [otool64], [:]) 3654 _LT_DECL([], [DSYMUTIL], [1], 3655 [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) 3656 _LT_DECL([], [NMEDIT], [1], 3657 [Tool to change global to local symbols on Mac OS X]) 3658 _LT_DECL([], [LIPO], [1], 3659 [Tool to manipulate fat objects and archives on Mac OS X]) 3660 _LT_DECL([], [OTOOL], [1], 3661 [ldd/readelf like tool for Mach-O binaries on Mac OS X]) 3662 _LT_DECL([], [OTOOL64], [1], 3663 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) 3664 3665 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 3666 [lt_cv_apple_cc_single_mod=no 3667 if test -z "${LT_MULTI_MODULE}"; then 3668 # By default we will add the -single_module flag. You can override 3669 # by either setting the environment variable LT_MULTI_MODULE 3670 # non-empty at configure time, or by adding -multi_module to the 3671 # link flags. 3672 rm -rf libconftest.dylib* 3673 echo "int foo(void){return 1;}" > conftest.c 3674 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 3675-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD 3676 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 3677 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 3678 _lt_result=$? 3679 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 3680 lt_cv_apple_cc_single_mod=yes 3681 else 3682 cat conftest.err >&AS_MESSAGE_LOG_FD 3683 fi 3684 rm -rf libconftest.dylib* 3685 rm -f conftest.* 3686 fi]) 3687 AC_CACHE_CHECK([for -exported_symbols_list linker flag], 3688 [lt_cv_ld_exported_symbols_list], 3689 [lt_cv_ld_exported_symbols_list=no 3690 save_LDFLAGS=$LDFLAGS 3691 echo "_main" > conftest.sym 3692 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 3693 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 3694 [lt_cv_ld_exported_symbols_list=yes], 3695 [lt_cv_ld_exported_symbols_list=no]) 3696 LDFLAGS="$save_LDFLAGS" 3697 ]) 3698 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], 3699 [lt_cv_ld_force_load=no 3700 cat > conftest.c << _LT_EOF 3701int forced_loaded() { return 2;} 3702_LT_EOF 3703 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD 3704 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD 3705 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD 3706 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD 3707 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD 3708 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD 3709 cat > conftest.c << _LT_EOF 3710int main() { return 0;} 3711_LT_EOF 3712 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD 3713 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 3714 _lt_result=$? 3715 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 3716 lt_cv_ld_force_load=yes 3717 else 3718 cat conftest.err >&AS_MESSAGE_LOG_FD 3719 fi 3720 rm -f conftest.err libconftest.a conftest conftest.c 3721 rm -rf conftest.dSYM 3722 ]) 3723 case $host_os in 3724 rhapsody* | darwin1.[[012]]) 3725 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 3726 darwin1.*) 3727 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 3728 darwin*) # darwin 5.x on 3729 # if running on 10.5 or later, the deployment target defaults 3730 # to the OS version, if on x86, and 10.4, the deployment 3731 # target defaults to 10.4. Don't you love it? 3732 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 3733 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 3734 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 3735 10.[[012]]*) 3736 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 3737 10.*) 3738 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 3739 esac 3740 ;; 3741 esac 3742 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 3743 _lt_dar_single_mod='$single_module' 3744 fi 3745 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 3746 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 3747 else 3748 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 3749 fi 3750 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 3751 _lt_dsymutil='~$DSYMUTIL $lib || :' 3752 else 3753 _lt_dsymutil= 3754 fi 3755 ;; 3756 esac 3757]) 3758 3759 3760# _LT_DARWIN_LINKER_FEATURES 3761# -------------------------- 3762# Checks for linker and compiler features on darwin 3763m4_defun([_LT_DARWIN_LINKER_FEATURES], 3764[ 3765 m4_require([_LT_REQUIRED_DARWIN_CHECKS]) 3766 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 3767 _LT_TAGVAR(hardcode_direct, $1)=no 3768 _LT_TAGVAR(hardcode_automatic, $1)=yes 3769 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 3770 if test "$lt_cv_ld_force_load" = "yes"; then 3771 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 3772 else 3773 _LT_TAGVAR(whole_archive_flag_spec, $1)='' 3774 fi 3775 _LT_TAGVAR(link_all_deplibs, $1)=yes 3776 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" 3777 case $cc_basename in 3778 ifort*) _lt_dar_can_shared=yes ;; 3779 *) _lt_dar_can_shared=$GCC ;; 3780 esac 3781 if test "$_lt_dar_can_shared" = "yes"; then 3782 output_verbose_link_cmd=func_echo_all 3783 _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}" 3784 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 3785 _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}" 3786 _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}" 3787 m4_if([$1], [CXX], 3788[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then 3789 _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}" 3790 _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}" 3791 fi 3792],[]) 3793 else 3794 _LT_TAGVAR(ld_shlibs, $1)=no 3795 fi 3796]) 3797 3798# _LT_SYS_MODULE_PATH_AIX 3799# ----------------------- 3800# Links a minimal program and checks the executable 3801# for the system default hardcoded library path. In most cases, 3802# this is /usr/lib:/lib, but when the MPI compilers are used 3803# the location of the communication and MPI libs are included too. 3804# If we don't find anything, use the default library path according 3805# to the aix ld manual. 3806m4_defun([_LT_SYS_MODULE_PATH_AIX], 3807[m4_require([_LT_DECL_SED])dnl 3808AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 3809lt_aix_libpath_sed=' 3810 /Import File Strings/,/^$/ { 3811 /^0/ { 3812 s/^0 *\(.*\)$/\1/ 3813 p 3814 } 3815 }' 3816aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 3817# Check for a 64-bit object if we didn't find anything. 3818if test -z "$aix_libpath"; then 3819 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 3820fi],[]) 3821if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 3822])# _LT_SYS_MODULE_PATH_AIX 3823 3824 3825# _LT_SHELL_INIT(ARG) 3826# ------------------- 3827m4_define([_LT_SHELL_INIT], 3828[m4_divert_text([M4SH-INIT], [$1 3829])])# _LT_SHELL_INIT 3830 3831 3832 3833# _LT_PROG_ECHO_BACKSLASH 3834# ----------------------- 3835# Find how we can fake an echo command that does not interpret backslash. 3836# In particular, with Autoconf 2.60 or later we add some code to the start 3837# of the generated configure script which will find a shell with a builtin 3838# printf (which we can use as an echo command). 3839m4_defun([_LT_PROG_ECHO_BACKSLASH], 3840[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3841ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3842ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3843 3844AC_MSG_CHECKING([how to print strings]) 3845# Test print first, because it will be a builtin if present. 3846if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 3847 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3848 ECHO='print -r --' 3849elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3850 ECHO='printf %s\n' 3851else 3852 # Use this function as a fallback that always works. 3853 func_fallback_echo () 3854 { 3855 eval 'cat <<_LTECHO_EOF 3856$[]1 3857_LTECHO_EOF' 3858 } 3859 ECHO='func_fallback_echo' 3860fi 3861 3862# func_echo_all arg... 3863# Invoke $ECHO with all args, space-separated. 3864func_echo_all () 3865{ 3866 $ECHO "$*" 3867} 3868 3869case "$ECHO" in 3870 printf*) AC_MSG_RESULT([printf]) ;; 3871 print*) AC_MSG_RESULT([print -r]) ;; 3872 *) AC_MSG_RESULT([cat]) ;; 3873esac 3874 3875m4_ifdef([_AS_DETECT_SUGGESTED], 3876[_AS_DETECT_SUGGESTED([ 3877 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( 3878 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3879 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3880 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3881 PATH=/empty FPATH=/empty; export PATH FPATH 3882 test "X`printf %s $ECHO`" = "X$ECHO" \ 3883 || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) 3884 3885_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) 3886_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) 3887])# _LT_PROG_ECHO_BACKSLASH 3888 3889 3890# _LT_ENABLE_LOCK 3891# --------------- 3892m4_defun([_LT_ENABLE_LOCK], 3893[AC_ARG_ENABLE([libtool-lock], 3894 [AS_HELP_STRING([--disable-libtool-lock], 3895 [avoid locking (might break parallel builds)])]) 3896test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3897 3898# Some flags need to be propagated to the compiler or linker for good 3899# libtool support. 3900case $host in 3901ia64-*-hpux*) 3902 # Find out which ABI we are using. 3903 echo 'int i;' > conftest.$ac_ext 3904 if AC_TRY_EVAL(ac_compile); then 3905 case `/usr/bin/file conftest.$ac_objext` in 3906 *ELF-32*) 3907 HPUX_IA64_MODE="32" 3908 ;; 3909 *ELF-64*) 3910 HPUX_IA64_MODE="64" 3911 ;; 3912 esac 3913 fi 3914 rm -rf conftest* 3915 ;; 3916*-*-irix6*) 3917 # Find out which ABI we are using. 3918 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 3919 if AC_TRY_EVAL(ac_compile); then 3920 if test "$lt_cv_prog_gnu_ld" = yes; then 3921 case `/usr/bin/file conftest.$ac_objext` in 3922 *32-bit*) 3923 LD="${LD-ld} -melf32bsmip" 3924 ;; 3925 *N32*) 3926 LD="${LD-ld} -melf32bmipn32" 3927 ;; 3928 *64-bit*) 3929 LD="${LD-ld} -melf64bmip" 3930 ;; 3931 esac 3932 else 3933 case `/usr/bin/file conftest.$ac_objext` in 3934 *32-bit*) 3935 LD="${LD-ld} -32" 3936 ;; 3937 *N32*) 3938 LD="${LD-ld} -n32" 3939 ;; 3940 *64-bit*) 3941 LD="${LD-ld} -64" 3942 ;; 3943 esac 3944 fi 3945 fi 3946 rm -rf conftest* 3947 ;; 3948 3949x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 3950s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 3951 # Find out which ABI we are using. 3952 echo 'int i;' > conftest.$ac_ext 3953 if AC_TRY_EVAL(ac_compile); then 3954 case `/usr/bin/file conftest.o` in 3955 *32-bit*) 3956 case $host in 3957 x86_64-*kfreebsd*-gnu) 3958 LD="${LD-ld} -m elf_i386_fbsd" 3959 ;; 3960 x86_64-*linux*) 3961 LD="${LD-ld} -m elf_i386" 3962 ;; 3963 ppc64-*linux*|powerpc64-*linux*) 3964 LD="${LD-ld} -m elf32ppclinux" 3965 ;; 3966 s390x-*linux*) 3967 LD="${LD-ld} -m elf_s390" 3968 ;; 3969 sparc64-*linux*) 3970 LD="${LD-ld} -m elf32_sparc" 3971 ;; 3972 esac 3973 ;; 3974 *64-bit*) 3975 case $host in 3976 x86_64-*kfreebsd*-gnu) 3977 LD="${LD-ld} -m elf_x86_64_fbsd" 3978 ;; 3979 x86_64-*linux*) 3980 LD="${LD-ld} -m elf_x86_64" 3981 ;; 3982 ppc*-*linux*|powerpc*-*linux*) 3983 LD="${LD-ld} -m elf64ppc" 3984 ;; 3985 s390*-*linux*|s390*-*tpf*) 3986 LD="${LD-ld} -m elf64_s390" 3987 ;; 3988 sparc*-*linux*) 3989 LD="${LD-ld} -m elf64_sparc" 3990 ;; 3991 esac 3992 ;; 3993 esac 3994 fi 3995 rm -rf conftest* 3996 ;; 3997 3998*-*-sco3.2v5*) 3999 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4000 SAVE_CFLAGS="$CFLAGS" 4001 CFLAGS="$CFLAGS -belf" 4002 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 4003 [AC_LANG_PUSH(C) 4004 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 4005 AC_LANG_POP]) 4006 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4007 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4008 CFLAGS="$SAVE_CFLAGS" 4009 fi 4010 ;; 4011sparc*-*solaris*) 4012 # Find out which ABI we are using. 4013 echo 'int i;' > conftest.$ac_ext 4014 if AC_TRY_EVAL(ac_compile); then 4015 case `/usr/bin/file conftest.o` in 4016 *64-bit*) 4017 case $lt_cv_prog_gnu_ld in 4018 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4019 *) 4020 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 4021 LD="${LD-ld} -64" 4022 fi 4023 ;; 4024 esac 4025 ;; 4026 esac 4027 fi 4028 rm -rf conftest* 4029 ;; 4030esac 4031 4032need_locks="$enable_libtool_lock" 4033])# _LT_ENABLE_LOCK 4034 4035 4036# _LT_CMD_OLD_ARCHIVE 4037# ------------------- 4038m4_defun([_LT_CMD_OLD_ARCHIVE], 4039[AC_CHECK_TOOL(AR, ar, false) 4040test -z "$AR" && AR=ar 4041test -z "$AR_FLAGS" && AR_FLAGS=cru 4042_LT_DECL([], [AR], [1], [The archiver]) 4043_LT_DECL([], [AR_FLAGS], [1]) 4044 4045AC_CHECK_TOOL(STRIP, strip, :) 4046test -z "$STRIP" && STRIP=: 4047_LT_DECL([], [STRIP], [1], [A symbol stripping program]) 4048 4049AC_CHECK_TOOL(RANLIB, ranlib, :) 4050test -z "$RANLIB" && RANLIB=: 4051_LT_DECL([], [RANLIB], [1], 4052 [Commands used to install an old-style archive]) 4053 4054# Determine commands to create old-style static archives. 4055old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 4056old_postinstall_cmds='chmod 644 $oldlib' 4057old_postuninstall_cmds= 4058 4059if test -n "$RANLIB"; then 4060 case $host_os in 4061 openbsd*) 4062 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 4063 ;; 4064 *) 4065 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 4066 ;; 4067 esac 4068 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 4069fi 4070 4071case $host_os in 4072 darwin*) 4073 lock_old_archive_extraction=yes ;; 4074 *) 4075 lock_old_archive_extraction=no ;; 4076esac 4077_LT_DECL([], [old_postinstall_cmds], [2]) 4078_LT_DECL([], [old_postuninstall_cmds], [2]) 4079_LT_TAGDECL([], [old_archive_cmds], [2], 4080 [Commands used to build an old-style archive]) 4081_LT_DECL([], [lock_old_archive_extraction], [0], 4082 [Whether to use a lock for old archive extraction]) 4083])# _LT_CMD_OLD_ARCHIVE 4084 4085 4086# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 4087# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 4088# ---------------------------------------------------------------- 4089# Check whether the given compiler option works 4090AC_DEFUN([_LT_COMPILER_OPTION], 4091[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 4092m4_require([_LT_DECL_SED])dnl 4093AC_CACHE_CHECK([$1], [$2], 4094 [$2=no 4095 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 4096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 4097 lt_compiler_flag="$3" 4098 # Insert the option either (1) after the last *FLAGS variable, or 4099 # (2) before a word containing "conftest.", or (3) at the end. 4100 # Note that $ac_compile itself does not contain backslashes and begins 4101 # with a dollar sign (not a hyphen), so the echo should work correctly. 4102 # The option is referenced via a variable to avoid confusing sed. 4103 lt_compile=`echo "$ac_compile" | $SED \ 4104 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 4105 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 4106 -e 's:$: $lt_compiler_flag:'` 4107 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 4108 (eval "$lt_compile" 2>conftest.err) 4109 ac_status=$? 4110 cat conftest.err >&AS_MESSAGE_LOG_FD 4111 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 4112 if (exit $ac_status) && test -s "$ac_outfile"; then 4113 # The compiler can only warn and ignore the option if not recognized 4114 # So say no if there are warnings other than the usual output. 4115 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 4116 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 4117 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 4118 $2=yes 4119 fi 4120 fi 4121 $RM conftest* 4122]) 4123 4124if test x"[$]$2" = xyes; then 4125 m4_if([$5], , :, [$5]) 4126else 4127 m4_if([$6], , :, [$6]) 4128fi 4129])# _LT_COMPILER_OPTION 4130 4131# Old name: 4132AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) 4133dnl aclocal-1.4 backwards compatibility: 4134dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) 4135 4136 4137# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 4138# [ACTION-SUCCESS], [ACTION-FAILURE]) 4139# ---------------------------------------------------- 4140# Check whether the given linker option works 4141AC_DEFUN([_LT_LINKER_OPTION], 4142[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 4143m4_require([_LT_DECL_SED])dnl 4144AC_CACHE_CHECK([$1], [$2], 4145 [$2=no 4146 save_LDFLAGS="$LDFLAGS" 4147 LDFLAGS="$LDFLAGS $3" 4148 echo "$lt_simple_link_test_code" > conftest.$ac_ext 4149 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 4150 # The linker can only warn and ignore the option if not recognized 4151 # So say no if there are warnings 4152 if test -s conftest.err; then 4153 # Append any errors to the config.log. 4154 cat conftest.err 1>&AS_MESSAGE_LOG_FD 4155 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 4156 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 4157 if diff conftest.exp conftest.er2 >/dev/null; then 4158 $2=yes 4159 fi 4160 else 4161 $2=yes 4162 fi 4163 fi 4164 $RM -r conftest* 4165 LDFLAGS="$save_LDFLAGS" 4166]) 4167 4168if test x"[$]$2" = xyes; then 4169 m4_if([$4], , :, [$4]) 4170else 4171 m4_if([$5], , :, [$5]) 4172fi 4173])# _LT_LINKER_OPTION 4174 4175# Old name: 4176AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) 4177dnl aclocal-1.4 backwards compatibility: 4178dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) 4179 4180 4181# LT_CMD_MAX_LEN 4182#--------------- 4183AC_DEFUN([LT_CMD_MAX_LEN], 4184[AC_REQUIRE([AC_CANONICAL_HOST])dnl 4185# find the maximum length of command line arguments 4186AC_MSG_CHECKING([the maximum length of command line arguments]) 4187AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 4188 i=0 4189 teststring="ABCD" 4190 4191 case $build_os in 4192 msdosdjgpp*) 4193 # On DJGPP, this test can blow up pretty badly due to problems in libc 4194 # (any single argument exceeding 2000 bytes causes a buffer overrun 4195 # during glob expansion). Even if it were fixed, the result of this 4196 # check would be larger than it should be. 4197 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4198 ;; 4199 4200 gnu*) 4201 # Under GNU Hurd, this test is not required because there is 4202 # no limit to the length of command line arguments. 4203 # Libtool will interpret -1 as no limit whatsoever 4204 lt_cv_sys_max_cmd_len=-1; 4205 ;; 4206 4207 cygwin* | mingw* | cegcc*) 4208 # On Win9x/ME, this test blows up -- it succeeds, but takes 4209 # about 5 minutes as the teststring grows exponentially. 4210 # Worse, since 9x/ME are not pre-emptively multitasking, 4211 # you end up with a "frozen" computer, even though with patience 4212 # the test eventually succeeds (with a max line length of 256k). 4213 # Instead, let's just punt: use the minimum linelength reported by 4214 # all of the supported platforms: 8192 (on NT/2K/XP). 4215 lt_cv_sys_max_cmd_len=8192; 4216 ;; 4217 4218 mint*) 4219 # On MiNT this can take a long time and run out of memory. 4220 lt_cv_sys_max_cmd_len=8192; 4221 ;; 4222 4223 amigaos*) 4224 # On AmigaOS with pdksh, this test takes hours, literally. 4225 # So we just punt and use a minimum line length of 8192. 4226 lt_cv_sys_max_cmd_len=8192; 4227 ;; 4228 4229 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4230 # This has been around since 386BSD, at least. Likely further. 4231 if test -x /sbin/sysctl; then 4232 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4233 elif test -x /usr/sbin/sysctl; then 4234 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4235 else 4236 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4237 fi 4238 # And add a safety zone 4239 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4240 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4241 ;; 4242 4243 interix*) 4244 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4245 lt_cv_sys_max_cmd_len=196608 4246 ;; 4247 4248 osf*) 4249 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4250 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4251 # nice to cause kernel panics so lets avoid the loop below. 4252 # First set a reasonable default. 4253 lt_cv_sys_max_cmd_len=16384 4254 # 4255 if test -x /sbin/sysconfig; then 4256 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4257 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4258 esac 4259 fi 4260 ;; 4261 sco3.2v5*) 4262 lt_cv_sys_max_cmd_len=102400 4263 ;; 4264 sysv5* | sco5v6* | sysv4.2uw2*) 4265 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4266 if test -n "$kargmax"; then 4267 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 4268 else 4269 lt_cv_sys_max_cmd_len=32768 4270 fi 4271 ;; 4272 *) 4273 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4274 if test -n "$lt_cv_sys_max_cmd_len"; then 4275 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4276 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4277 else 4278 # Make teststring a little bigger before we do anything with it. 4279 # a 1K string should be a reasonable start. 4280 for i in 1 2 3 4 5 6 7 8 ; do 4281 teststring=$teststring$teststring 4282 done 4283 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4284 # If test is not a shell built-in, we'll probably end up computing a 4285 # maximum length that is only half of the actual maximum length, but 4286 # we can't tell. 4287 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 4288 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4289 test $i != 17 # 1/2 MB should be enough 4290 do 4291 i=`expr $i + 1` 4292 teststring=$teststring$teststring 4293 done 4294 # Only check the string length outside the loop. 4295 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4296 teststring= 4297 # Add a significant safety factor because C++ compilers can tack on 4298 # massive amounts of additional arguments before passing them to the 4299 # linker. It appears as though 1/2 is a usable value. 4300 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4301 fi 4302 ;; 4303 esac 4304]) 4305if test -n $lt_cv_sys_max_cmd_len ; then 4306 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 4307else 4308 AC_MSG_RESULT(none) 4309fi 4310max_cmd_len=$lt_cv_sys_max_cmd_len 4311_LT_DECL([], [max_cmd_len], [0], 4312 [What is the maximum length of a command?]) 4313])# LT_CMD_MAX_LEN 4314 4315# Old name: 4316AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) 4317dnl aclocal-1.4 backwards compatibility: 4318dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) 4319 4320 4321# _LT_HEADER_DLFCN 4322# ---------------- 4323m4_defun([_LT_HEADER_DLFCN], 4324[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl 4325])# _LT_HEADER_DLFCN 4326 4327 4328# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 4329# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 4330# ---------------------------------------------------------------- 4331m4_defun([_LT_TRY_DLOPEN_SELF], 4332[m4_require([_LT_HEADER_DLFCN])dnl 4333if test "$cross_compiling" = yes; then : 4334 [$4] 4335else 4336 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 4337 lt_status=$lt_dlunknown 4338 cat > conftest.$ac_ext <<_LT_EOF 4339[#line $LINENO "configure" 4340#include "confdefs.h" 4341 4342#if HAVE_DLFCN_H 4343#include <dlfcn.h> 4344#endif 4345 4346#include <stdio.h> 4347 4348#ifdef RTLD_GLOBAL 4349# define LT_DLGLOBAL RTLD_GLOBAL 4350#else 4351# ifdef DL_GLOBAL 4352# define LT_DLGLOBAL DL_GLOBAL 4353# else 4354# define LT_DLGLOBAL 0 4355# endif 4356#endif 4357 4358/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 4359 find out it does not work in some platform. */ 4360#ifndef LT_DLLAZY_OR_NOW 4361# ifdef RTLD_LAZY 4362# define LT_DLLAZY_OR_NOW RTLD_LAZY 4363# else 4364# ifdef DL_LAZY 4365# define LT_DLLAZY_OR_NOW DL_LAZY 4366# else 4367# ifdef RTLD_NOW 4368# define LT_DLLAZY_OR_NOW RTLD_NOW 4369# else 4370# ifdef DL_NOW 4371# define LT_DLLAZY_OR_NOW DL_NOW 4372# else 4373# define LT_DLLAZY_OR_NOW 0 4374# endif 4375# endif 4376# endif 4377# endif 4378#endif 4379 4380/* When -fvisbility=hidden is used, assume the code has been annotated 4381 correspondingly for the symbols needed. */ 4382#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 4383void fnord () __attribute__((visibility("default"))); 4384#endif 4385 4386void fnord () { int i=42; } 4387int main () 4388{ 4389 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 4390 int status = $lt_dlunknown; 4391 4392 if (self) 4393 { 4394 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 4395 else 4396 { 4397 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 4398 else puts (dlerror ()); 4399 } 4400 /* dlclose (self); */ 4401 } 4402 else 4403 puts (dlerror ()); 4404 4405 return status; 4406}] 4407_LT_EOF 4408 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 4409 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 4410 lt_status=$? 4411 case x$lt_status in 4412 x$lt_dlno_uscore) $1 ;; 4413 x$lt_dlneed_uscore) $2 ;; 4414 x$lt_dlunknown|x*) $3 ;; 4415 esac 4416 else : 4417 # compilation failed 4418 $3 4419 fi 4420fi 4421rm -fr conftest* 4422])# _LT_TRY_DLOPEN_SELF 4423 4424 4425# LT_SYS_DLOPEN_SELF 4426# ------------------ 4427AC_DEFUN([LT_SYS_DLOPEN_SELF], 4428[m4_require([_LT_HEADER_DLFCN])dnl 4429if test "x$enable_dlopen" != xyes; then 4430 enable_dlopen=unknown 4431 enable_dlopen_self=unknown 4432 enable_dlopen_self_static=unknown 4433else 4434 lt_cv_dlopen=no 4435 lt_cv_dlopen_libs= 4436 4437 case $host_os in 4438 beos*) 4439 lt_cv_dlopen="load_add_on" 4440 lt_cv_dlopen_libs= 4441 lt_cv_dlopen_self=yes 4442 ;; 4443 4444 mingw* | pw32* | cegcc*) 4445 lt_cv_dlopen="LoadLibrary" 4446 lt_cv_dlopen_libs= 4447 ;; 4448 4449 cygwin*) 4450 lt_cv_dlopen="dlopen" 4451 lt_cv_dlopen_libs= 4452 ;; 4453 4454 darwin*) 4455 # if libdl is installed we need to link against it 4456 AC_CHECK_LIB([dl], [dlopen], 4457 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 4458 lt_cv_dlopen="dyld" 4459 lt_cv_dlopen_libs= 4460 lt_cv_dlopen_self=yes 4461 ]) 4462 ;; 4463 4464 *) 4465 AC_CHECK_FUNC([shl_load], 4466 [lt_cv_dlopen="shl_load"], 4467 [AC_CHECK_LIB([dld], [shl_load], 4468 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], 4469 [AC_CHECK_FUNC([dlopen], 4470 [lt_cv_dlopen="dlopen"], 4471 [AC_CHECK_LIB([dl], [dlopen], 4472 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 4473 [AC_CHECK_LIB([svld], [dlopen], 4474 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 4475 [AC_CHECK_LIB([dld], [dld_link], 4476 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) 4477 ]) 4478 ]) 4479 ]) 4480 ]) 4481 ]) 4482 ;; 4483 esac 4484 4485 if test "x$lt_cv_dlopen" != xno; then 4486 enable_dlopen=yes 4487 else 4488 enable_dlopen=no 4489 fi 4490 4491 case $lt_cv_dlopen in 4492 dlopen) 4493 save_CPPFLAGS="$CPPFLAGS" 4494 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 4495 4496 save_LDFLAGS="$LDFLAGS" 4497 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 4498 4499 save_LIBS="$LIBS" 4500 LIBS="$lt_cv_dlopen_libs $LIBS" 4501 4502 AC_CACHE_CHECK([whether a program can dlopen itself], 4503 lt_cv_dlopen_self, [dnl 4504 _LT_TRY_DLOPEN_SELF( 4505 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 4506 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 4507 ]) 4508 4509 if test "x$lt_cv_dlopen_self" = xyes; then 4510 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 4511 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 4512 lt_cv_dlopen_self_static, [dnl 4513 _LT_TRY_DLOPEN_SELF( 4514 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 4515 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 4516 ]) 4517 fi 4518 4519 CPPFLAGS="$save_CPPFLAGS" 4520 LDFLAGS="$save_LDFLAGS" 4521 LIBS="$save_LIBS" 4522 ;; 4523 esac 4524 4525 case $lt_cv_dlopen_self in 4526 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 4527 *) enable_dlopen_self=unknown ;; 4528 esac 4529 4530 case $lt_cv_dlopen_self_static in 4531 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 4532 *) enable_dlopen_self_static=unknown ;; 4533 esac 4534fi 4535_LT_DECL([dlopen_support], [enable_dlopen], [0], 4536 [Whether dlopen is supported]) 4537_LT_DECL([dlopen_self], [enable_dlopen_self], [0], 4538 [Whether dlopen of programs is supported]) 4539_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], 4540 [Whether dlopen of statically linked programs is supported]) 4541])# LT_SYS_DLOPEN_SELF 4542 4543# Old name: 4544AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) 4545dnl aclocal-1.4 backwards compatibility: 4546dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) 4547 4548 4549# _LT_COMPILER_C_O([TAGNAME]) 4550# --------------------------- 4551# Check to see if options -c and -o are simultaneously supported by compiler. 4552# This macro does not hard code the compiler like AC_PROG_CC_C_O. 4553m4_defun([_LT_COMPILER_C_O], 4554[m4_require([_LT_DECL_SED])dnl 4555m4_require([_LT_FILEUTILS_DEFAULTS])dnl 4556m4_require([_LT_TAG_COMPILER])dnl 4557AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 4558 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 4559 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 4560 $RM -r conftest 2>/dev/null 4561 mkdir conftest 4562 cd conftest 4563 mkdir out 4564 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 4565 4566 lt_compiler_flag="-o out/conftest2.$ac_objext" 4567 # Insert the option either (1) after the last *FLAGS variable, or 4568 # (2) before a word containing "conftest.", or (3) at the end. 4569 # Note that $ac_compile itself does not contain backslashes and begins 4570 # with a dollar sign (not a hyphen), so the echo should work correctly. 4571 lt_compile=`echo "$ac_compile" | $SED \ 4572 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 4573 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 4574 -e 's:$: $lt_compiler_flag:'` 4575 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 4576 (eval "$lt_compile" 2>out/conftest.err) 4577 ac_status=$? 4578 cat out/conftest.err >&AS_MESSAGE_LOG_FD 4579 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 4580 if (exit $ac_status) && test -s out/conftest2.$ac_objext 4581 then 4582 # The compiler can only warn and ignore the option if not recognized 4583 # So say no if there are warnings 4584 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 4585 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 4586 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 4587 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 4588 fi 4589 fi 4590 chmod u+w . 2>&AS_MESSAGE_LOG_FD 4591 $RM conftest* 4592 # SGI C++ compiler will create directory out/ii_files/ for 4593 # template instantiation 4594 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 4595 $RM out/* && rmdir out 4596 cd .. 4597 $RM -r conftest 4598 $RM conftest* 4599]) 4600_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], 4601 [Does compiler simultaneously support -c and -o options?]) 4602])# _LT_COMPILER_C_O 4603 4604 4605# _LT_COMPILER_FILE_LOCKS([TAGNAME]) 4606# ---------------------------------- 4607# Check to see if we can do hard links to lock some files if needed 4608m4_defun([_LT_COMPILER_FILE_LOCKS], 4609[m4_require([_LT_ENABLE_LOCK])dnl 4610m4_require([_LT_FILEUTILS_DEFAULTS])dnl 4611_LT_COMPILER_C_O([$1]) 4612 4613hard_links="nottested" 4614if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 4615 # do not overwrite the value of need_locks provided by the user 4616 AC_MSG_CHECKING([if we can lock with hard links]) 4617 hard_links=yes 4618 $RM conftest* 4619 ln conftest.a conftest.b 2>/dev/null && hard_links=no 4620 touch conftest.a 4621 ln conftest.a conftest.b 2>&5 || hard_links=no 4622 ln conftest.a conftest.b 2>/dev/null && hard_links=no 4623 AC_MSG_RESULT([$hard_links]) 4624 if test "$hard_links" = no; then 4625 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) 4626 need_locks=warn 4627 fi 4628else 4629 need_locks=no 4630fi 4631_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) 4632])# _LT_COMPILER_FILE_LOCKS 4633 4634 4635# _LT_CHECK_OBJDIR 4636# ---------------- 4637m4_defun([_LT_CHECK_OBJDIR], 4638[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 4639[rm -f .libs 2>/dev/null 4640mkdir .libs 2>/dev/null 4641if test -d .libs; then 4642 lt_cv_objdir=.libs 4643else 4644 # MS-DOS does not allow filenames that begin with a dot. 4645 lt_cv_objdir=_libs 4646fi 4647rmdir .libs 2>/dev/null]) 4648objdir=$lt_cv_objdir 4649_LT_DECL([], [objdir], [0], 4650 [The name of the directory that contains temporary libtool files])dnl 4651m4_pattern_allow([LT_OBJDIR])dnl 4652AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", 4653 [Define to the sub-directory in which libtool stores uninstalled libraries.]) 4654])# _LT_CHECK_OBJDIR 4655 4656 4657# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 4658# -------------------------------------- 4659# Check hardcoding attributes. 4660m4_defun([_LT_LINKER_HARDCODE_LIBPATH], 4661[AC_MSG_CHECKING([how to hardcode library paths into programs]) 4662_LT_TAGVAR(hardcode_action, $1)= 4663if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 4664 test -n "$_LT_TAGVAR(runpath_var, $1)" || 4665 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 4666 4667 # We can hardcode non-existent directories. 4668 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && 4669 # If the only mechanism to avoid hardcoding is shlibpath_var, we 4670 # have to relink, otherwise we might link with an installed library 4671 # when we should be linking with a yet-to-be-installed one 4672 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && 4673 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then 4674 # Linking always hardcodes the temporary library directory. 4675 _LT_TAGVAR(hardcode_action, $1)=relink 4676 else 4677 # We can link without hardcoding, and we can hardcode nonexisting dirs. 4678 _LT_TAGVAR(hardcode_action, $1)=immediate 4679 fi 4680else 4681 # We cannot hardcode anything, or else we can only hardcode existing 4682 # directories. 4683 _LT_TAGVAR(hardcode_action, $1)=unsupported 4684fi 4685AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 4686 4687if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || 4688 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then 4689 # Fast installation is not supported 4690 enable_fast_install=no 4691elif test "$shlibpath_overrides_runpath" = yes || 4692 test "$enable_shared" = no; then 4693 # Fast installation is not necessary 4694 enable_fast_install=needless 4695fi 4696_LT_TAGDECL([], [hardcode_action], [0], 4697 [How to hardcode a shared library path into an executable]) 4698])# _LT_LINKER_HARDCODE_LIBPATH 4699 4700 4701# _LT_CMD_STRIPLIB 4702# ---------------- 4703m4_defun([_LT_CMD_STRIPLIB], 4704[m4_require([_LT_DECL_EGREP]) 4705striplib= 4706old_striplib= 4707AC_MSG_CHECKING([whether stripping libraries is possible]) 4708if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 4709 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 4710 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 4711 AC_MSG_RESULT([yes]) 4712else 4713# FIXME - insert some real tests, host_os isn't really good enough 4714 case $host_os in 4715 darwin*) 4716 if test -n "$STRIP" ; then 4717 striplib="$STRIP -x" 4718 old_striplib="$STRIP -S" 4719 AC_MSG_RESULT([yes]) 4720 else 4721 AC_MSG_RESULT([no]) 4722 fi 4723 ;; 4724 *) 4725 AC_MSG_RESULT([no]) 4726 ;; 4727 esac 4728fi 4729_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) 4730_LT_DECL([], [striplib], [1]) 4731])# _LT_CMD_STRIPLIB 4732 4733 4734# _LT_SYS_DYNAMIC_LINKER([TAG]) 4735# ----------------------------- 4736# PORTME Fill in your ld.so characteristics 4737m4_defun([_LT_SYS_DYNAMIC_LINKER], 4738[AC_REQUIRE([AC_CANONICAL_HOST])dnl 4739m4_require([_LT_DECL_EGREP])dnl 4740m4_require([_LT_FILEUTILS_DEFAULTS])dnl 4741m4_require([_LT_DECL_OBJDUMP])dnl 4742m4_require([_LT_DECL_SED])dnl 4743m4_require([_LT_CHECK_SHELL_FEATURES])dnl 4744AC_MSG_CHECKING([dynamic linker characteristics]) 4745m4_if([$1], 4746 [], [ 4747if test "$GCC" = yes; then 4748 case $host_os in 4749 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 4750 *) lt_awk_arg="/^libraries:/" ;; 4751 esac 4752 case $host_os in 4753 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; 4754 *) lt_sed_strip_eq="s,=/,/,g" ;; 4755 esac 4756 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 4757 case $lt_search_path_spec in 4758 *\;*) 4759 # if the path contains ";" then we assume it to be the separator 4760 # otherwise default to the standard path separator (i.e. ":") - it is 4761 # assumed that no part of a normal pathname contains ";" but that should 4762 # okay in the real world where ";" in dirpaths is itself problematic. 4763 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 4764 ;; 4765 *) 4766 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 4767 ;; 4768 esac 4769 # Ok, now we have the path, separated by spaces, we can step through it 4770 # and add multilib dir if necessary. 4771 lt_tmp_lt_search_path_spec= 4772 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 4773 for lt_sys_path in $lt_search_path_spec; do 4774 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 4775 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 4776 else 4777 test -d "$lt_sys_path" && \ 4778 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 4779 fi 4780 done 4781 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 4782BEGIN {RS=" "; FS="/|\n";} { 4783 lt_foo=""; 4784 lt_count=0; 4785 for (lt_i = NF; lt_i > 0; lt_i--) { 4786 if ($lt_i != "" && $lt_i != ".") { 4787 if ($lt_i == "..") { 4788 lt_count++; 4789 } else { 4790 if (lt_count == 0) { 4791 lt_foo="/" $lt_i lt_foo; 4792 } else { 4793 lt_count--; 4794 } 4795 } 4796 } 4797 } 4798 if (lt_foo != "") { lt_freq[[lt_foo]]++; } 4799 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 4800}'` 4801 # AWK program above erroneously prepends '/' to C:/dos/paths 4802 # for these hosts. 4803 case $host_os in 4804 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 4805 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; 4806 esac 4807 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 4808else 4809 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 4810fi]) 4811library_names_spec= 4812libname_spec='lib$name' 4813soname_spec= 4814shrext_cmds=".so" 4815postinstall_cmds= 4816postuninstall_cmds= 4817finish_cmds= 4818finish_eval= 4819shlibpath_var= 4820shlibpath_overrides_runpath=unknown 4821version_type=none 4822dynamic_linker="$host_os ld.so" 4823sys_lib_dlsearch_path_spec="/lib /usr/lib" 4824need_lib_prefix=unknown 4825hardcode_into_libs=no 4826 4827# when you set need_version to no, make sure it does not cause -set_version 4828# flags to be left without arguments 4829need_version=unknown 4830 4831case $host_os in 4832aix3*) 4833 version_type=linux 4834 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 4835 shlibpath_var=LIBPATH 4836 4837 # AIX 3 has no versioning support, so we append a major version to the name. 4838 soname_spec='${libname}${release}${shared_ext}$major' 4839 ;; 4840 4841aix[[4-9]]*) 4842 version_type=linux 4843 need_lib_prefix=no 4844 need_version=no 4845 hardcode_into_libs=yes 4846 if test "$host_cpu" = ia64; then 4847 # AIX 5 supports IA64 4848 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 4849 shlibpath_var=LD_LIBRARY_PATH 4850 else 4851 # With GCC up to 2.95.x, collect2 would create an import file 4852 # for dependence libraries. The import file would start with 4853 # the line `#! .'. This would cause the generated library to 4854 # depend on `.', always an invalid library. This was fixed in 4855 # development snapshots of GCC prior to 3.0. 4856 case $host_os in 4857 aix4 | aix4.[[01]] | aix4.[[01]].*) 4858 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 4859 echo ' yes ' 4860 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 4861 : 4862 else 4863 can_build_shared=no 4864 fi 4865 ;; 4866 esac 4867 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 4868 # soname into executable. Probably we can add versioning support to 4869 # collect2, so additional links can be useful in future. 4870 if test "$aix_use_runtimelinking" = yes; then 4871 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 4872 # instead of lib<name>.a to let people know that these are not 4873 # typical AIX shared libraries. 4874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4875 else 4876 # We preserve .a as extension for shared libraries through AIX4.2 4877 # and later when we are not doing run time linking. 4878 library_names_spec='${libname}${release}.a $libname.a' 4879 soname_spec='${libname}${release}${shared_ext}$major' 4880 fi 4881 shlibpath_var=LIBPATH 4882 fi 4883 ;; 4884 4885amigaos*) 4886 case $host_cpu in 4887 powerpc) 4888 # Since July 2007 AmigaOS4 officially supports .so libraries. 4889 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 4890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4891 ;; 4892 m68k) 4893 library_names_spec='$libname.ixlibrary $libname.a' 4894 # Create ${libname}_ixlibrary.a entries in /sys/libs. 4895 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 4896 ;; 4897 esac 4898 ;; 4899 4900beos*) 4901 library_names_spec='${libname}${shared_ext}' 4902 dynamic_linker="$host_os ld.so" 4903 shlibpath_var=LIBRARY_PATH 4904 ;; 4905 4906bsdi[[45]]*) 4907 version_type=linux 4908 need_version=no 4909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4910 soname_spec='${libname}${release}${shared_ext}$major' 4911 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 4912 shlibpath_var=LD_LIBRARY_PATH 4913 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 4914 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 4915 # the default ld.so.conf also contains /usr/contrib/lib and 4916 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 4917 # libtool to hard-code these into programs 4918 ;; 4919 4920cygwin* | mingw* | pw32* | cegcc*) 4921 version_type=windows 4922 shrext_cmds=".dll" 4923 need_version=no 4924 need_lib_prefix=no 4925 4926 case $GCC,$host_os in 4927 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 4928 library_names_spec='$libname.dll.a' 4929 # DLL is installed to $(libdir)/../bin by postinstall_cmds 4930 postinstall_cmds='base_file=`basename \${file}`~ 4931 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 4932 dldir=$destdir/`dirname \$dlpath`~ 4933 test -d \$dldir || mkdir -p \$dldir~ 4934 $install_prog $dir/$dlname \$dldir/$dlname~ 4935 chmod a+x \$dldir/$dlname~ 4936 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 4937 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 4938 fi' 4939 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 4940 dlpath=$dir/\$dldll~ 4941 $RM \$dlpath' 4942 shlibpath_overrides_runpath=yes 4943 4944 case $host_os in 4945 cygwin*) 4946 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 4947 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 4948m4_if([$1], [],[ 4949 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) 4950 ;; 4951 mingw* | cegcc*) 4952 # MinGW DLLs use traditional 'lib' prefix 4953 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 4954 ;; 4955 pw32*) 4956 # pw32 DLLs use 'pw' prefix rather than 'lib' 4957 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 4958 ;; 4959 esac 4960 ;; 4961 4962 *) 4963 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 4964 ;; 4965 esac 4966 dynamic_linker='Win32 ld.exe' 4967 # FIXME: first we should search . and the directory the executable is in 4968 shlibpath_var=PATH 4969 ;; 4970 4971darwin* | rhapsody*) 4972 dynamic_linker="$host_os dyld" 4973 version_type=darwin 4974 need_lib_prefix=no 4975 need_version=no 4976 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 4977 soname_spec='${libname}${release}${major}$shared_ext' 4978 shlibpath_overrides_runpath=yes 4979 shlibpath_var=DYLD_LIBRARY_PATH 4980 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 4981m4_if([$1], [],[ 4982 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 4983 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 4984 ;; 4985 4986dgux*) 4987 version_type=linux 4988 need_lib_prefix=no 4989 need_version=no 4990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 4991 soname_spec='${libname}${release}${shared_ext}$major' 4992 shlibpath_var=LD_LIBRARY_PATH 4993 ;; 4994 4995freebsd1*) 4996 dynamic_linker=no 4997 ;; 4998 4999freebsd* | dragonfly*) 5000 # DragonFly does not have aout. When/if they implement a new 5001 # versioning mechanism, adjust this. 5002 if test -x /usr/bin/objformat; then 5003 objformat=`/usr/bin/objformat` 5004 else 5005 case $host_os in 5006 freebsd[[123]]*) objformat=aout ;; 5007 *) objformat=elf ;; 5008 esac 5009 fi 5010 version_type=freebsd-$objformat 5011 case $version_type in 5012 freebsd-elf*) 5013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 5014 need_version=no 5015 need_lib_prefix=no 5016 ;; 5017 freebsd-*) 5018 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 5019 need_version=yes 5020 ;; 5021 esac 5022 shlibpath_var=LD_LIBRARY_PATH 5023 case $host_os in 5024 freebsd2*) 5025 shlibpath_overrides_runpath=yes 5026 ;; 5027 freebsd3.[[01]]* | freebsdelf3.[[01]]*) 5028 shlibpath_overrides_runpath=yes 5029 hardcode_into_libs=yes 5030 ;; 5031 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 5032 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 5033 shlibpath_overrides_runpath=no 5034 hardcode_into_libs=yes 5035 ;; 5036 *) # from 4.6 on, and DragonFly 5037 shlibpath_overrides_runpath=yes 5038 hardcode_into_libs=yes 5039 ;; 5040 esac 5041 ;; 5042 5043gnu*) 5044 version_type=linux 5045 need_lib_prefix=no 5046 need_version=no 5047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 5048 soname_spec='${libname}${release}${shared_ext}$major' 5049 shlibpath_var=LD_LIBRARY_PATH 5050 hardcode_into_libs=yes 5051 ;; 5052 5053haiku*) 5054 version_type=linux 5055 need_lib_prefix=no 5056 need_version=no 5057 dynamic_linker="$host_os runtime_loader" 5058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 5059 soname_spec='${libname}${release}${shared_ext}$major' 5060 shlibpath_var=LIBRARY_PATH 5061 shlibpath_overrides_runpath=yes 5062 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 5063 hardcode_into_libs=yes 5064 ;; 5065 5066hpux9* | hpux10* | hpux11*) 5067 # Give a soname corresponding to the major version so that dld.sl refuses to 5068 # link against other versions. 5069 version_type=sunos 5070 need_lib_prefix=no 5071 need_version=no 5072 case $host_cpu in 5073 ia64*) 5074 shrext_cmds='.so' 5075 hardcode_into_libs=yes 5076 dynamic_linker="$host_os dld.so" 5077 shlibpath_var=LD_LIBRARY_PATH 5078 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 5079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 5080 soname_spec='${libname}${release}${shared_ext}$major' 5081 if test "X$HPUX_IA64_MODE" = X32; then 5082 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 5083 else 5084 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 5085 fi 5086 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 5087 ;; 5088 hppa*64*) 5089 shrext_cmds='.sl' 5090 hardcode_into_libs=yes 5091 dynamic_linker="$host_os dld.sl" 5092 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 5093 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 5094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 5095 soname_spec='${libname}${release}${shared_ext}$major' 5096 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 5097 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 5098 ;; 5099 *) 5100 shrext_cmds='.sl' 5101 dynamic_linker="$host_os dld.sl" 5102 shlibpath_var=SHLIB_PATH 5103 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 5104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 5105 soname_spec='${libname}${release}${shared_ext}$major' 5106 ;; 5107 esac 5108 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 5109 postinstall_cmds='chmod 555 $lib' 5110 # or fails outright, so override atomically: 5111 install_override_mode=555 5112 ;; 5113 5114interix[[3-9]]*) 5115 version_type=linux 5116 need_lib_prefix=no 5117 need_version=no 5118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 5119 soname_spec='${libname}${release}${shared_ext}$major' 5120 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 5121 shlibpath_var=LD_LIBRARY_PATH 5122 shlibpath_overrides_runpath=no 5123 hardcode_into_libs=yes 5124 ;; 5125 5126irix5* | irix6* | nonstopux*) 5127 case $host_os in 5128 nonstopux*) version_type=nonstopux ;; 5129 *) 5130 if test "$lt_cv_prog_gnu_ld" = yes; then 5131 version_type=linux 5132 else 5133 version_type=irix 5134 fi ;; 5135 esac 5136 need_lib_prefix=no 5137 need_version=no 5138 soname_spec='${libname}${release}${shared_ext}$major' 5139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 5140 case $host_os in 5141 irix5* | nonstopux*) 5142 libsuff= shlibsuff= 5143 ;; 5144 *) 5145 case $LD in # libtool.m4 will add one of these switches to LD 5146 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 5147 libsuff= shlibsuff= libmagic=32-bit;; 5148 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 5149 libsuff=32 shlibsuff=N32 libmagic=N32;; 5150 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 5151 libsuff=64 shlibsuff=64 libmagic=64-bit;; 5152 *) libsuff= shlibsuff= libmagic=never-match;; 5153 esac 5154 ;; 5155 esac 5156 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 5157 shlibpath_overrides_runpath=no 5158 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 5159 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 5160 hardcode_into_libs=yes 5161 ;; 5162 5163# No shared lib support for Linux oldld, aout, or coff. 5164linux*oldld* | linux*aout* | linux*coff*) 5165 dynamic_linker=no 5166 ;; 5167 5168# This must be Linux ELF. 5169linux* | k*bsd*-gnu | kopensolaris*-gnu) 5170 version_type=linux 5171 need_lib_prefix=no 5172 need_version=no 5173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 5174 soname_spec='${libname}${release}${shared_ext}$major' 5175 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 5176 shlibpath_var=LD_LIBRARY_PATH 5177 shlibpath_overrides_runpath=no 5178 5179 # Some binutils ld are patched to set DT_RUNPATH 5180 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], 5181 [lt_cv_shlibpath_overrides_runpath=no 5182 save_LDFLAGS=$LDFLAGS 5183 save_libdir=$libdir 5184 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 5185 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 5186 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 5187 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], 5188 [lt_cv_shlibpath_overrides_runpath=yes])]) 5189 LDFLAGS=$save_LDFLAGS 5190 libdir=$save_libdir 5191 ]) 5192 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 5193 5194 # This implies no fast_install, which is unacceptable. 5195 # Some rework will be needed to allow for fast_install 5196 # before this can be enabled. 5197 hardcode_into_libs=yes 5198 5199 # Append ld.so.conf contents to the search path 5200 if test -f /etc/ld.so.conf; then 5201 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 5202 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 5203 fi 5204 5205 # We used to test for /lib/ld.so.1 and disable shared libraries on 5206 # powerpc, because MkLinux only supported shared libraries with the 5207 # GNU dynamic linker. Since this was broken with cross compilers, 5208 # most powerpc-linux boxes support dynamic linking these days and 5209 # people can always --disable-shared, the test was removed, and we 5210 # assume the GNU/Linux dynamic linker is in use. 5211 dynamic_linker='GNU/Linux ld.so' 5212 ;; 5213 5214netbsd*) 5215 version_type=sunos 5216 need_lib_prefix=no 5217 need_version=no 5218 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 5219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 5220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 5221 dynamic_linker='NetBSD (a.out) ld.so' 5222 else 5223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 5224 soname_spec='${libname}${release}${shared_ext}$major' 5225 dynamic_linker='NetBSD ld.elf_so' 5226 fi 5227 shlibpath_var=LD_LIBRARY_PATH 5228 shlibpath_overrides_runpath=yes 5229 hardcode_into_libs=yes 5230 ;; 5231 5232newsos6) 5233 version_type=linux 5234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 5235 shlibpath_var=LD_LIBRARY_PATH 5236 shlibpath_overrides_runpath=yes 5237 ;; 5238 5239*nto* | *qnx*) 5240 version_type=qnx 5241 need_lib_prefix=no 5242 need_version=no 5243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 5244 soname_spec='${libname}${release}${shared_ext}$major' 5245 shlibpath_var=LD_LIBRARY_PATH 5246 shlibpath_overrides_runpath=no 5247 hardcode_into_libs=yes 5248 dynamic_linker='ldqnx.so' 5249 ;; 5250 5251openbsd*) 5252 version_type=sunos 5253 sys_lib_dlsearch_path_spec="/usr/lib" 5254 need_lib_prefix=no 5255 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 5256 case $host_os in 5257 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 5258 *) need_version=no ;; 5259 esac 5260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 5261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 5262 shlibpath_var=LD_LIBRARY_PATH 5263 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5264 case $host_os in 5265 openbsd2.[[89]] | openbsd2.[[89]].*) 5266 shlibpath_overrides_runpath=no 5267 ;; 5268 *) 5269 shlibpath_overrides_runpath=yes 5270 ;; 5271 esac 5272 else 5273 shlibpath_overrides_runpath=yes 5274 fi 5275 ;; 5276 5277os2*) 5278 libname_spec='$name' 5279 shrext_cmds=".dll" 5280 need_lib_prefix=no 5281 library_names_spec='$libname${shared_ext} $libname.a' 5282 dynamic_linker='OS/2 ld.exe' 5283 shlibpath_var=LIBPATH 5284 ;; 5285 5286osf3* | osf4* | osf5*) 5287 version_type=osf 5288 need_lib_prefix=no 5289 need_version=no 5290 soname_spec='${libname}${release}${shared_ext}$major' 5291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 5292 shlibpath_var=LD_LIBRARY_PATH 5293 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 5294 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 5295 ;; 5296 5297rdos*) 5298 dynamic_linker=no 5299 ;; 5300 5301solaris*) 5302 version_type=linux 5303 need_lib_prefix=no 5304 need_version=no 5305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 5306 soname_spec='${libname}${release}${shared_ext}$major' 5307 shlibpath_var=LD_LIBRARY_PATH 5308 shlibpath_overrides_runpath=yes 5309 hardcode_into_libs=yes 5310 # ldd complains unless libraries are executable 5311 postinstall_cmds='chmod +x $lib' 5312 ;; 5313 5314sunos4*) 5315 version_type=sunos 5316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 5317 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 5318 shlibpath_var=LD_LIBRARY_PATH 5319 shlibpath_overrides_runpath=yes 5320 if test "$with_gnu_ld" = yes; then 5321 need_lib_prefix=no 5322 fi 5323 need_version=yes 5324 ;; 5325 5326sysv4 | sysv4.3*) 5327 version_type=linux 5328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 5329 soname_spec='${libname}${release}${shared_ext}$major' 5330 shlibpath_var=LD_LIBRARY_PATH 5331 case $host_vendor in 5332 sni) 5333 shlibpath_overrides_runpath=no 5334 need_lib_prefix=no 5335 runpath_var=LD_RUN_PATH 5336 ;; 5337 siemens) 5338 need_lib_prefix=no 5339 ;; 5340 motorola) 5341 need_lib_prefix=no 5342 need_version=no 5343 shlibpath_overrides_runpath=no 5344 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 5345 ;; 5346 esac 5347 ;; 5348 5349sysv4*MP*) 5350 if test -d /usr/nec ;then 5351 version_type=linux 5352 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 5353 soname_spec='$libname${shared_ext}.$major' 5354 shlibpath_var=LD_LIBRARY_PATH 5355 fi 5356 ;; 5357 5358sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5359 version_type=freebsd-elf 5360 need_lib_prefix=no 5361 need_version=no 5362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 5363 soname_spec='${libname}${release}${shared_ext}$major' 5364 shlibpath_var=LD_LIBRARY_PATH 5365 shlibpath_overrides_runpath=yes 5366 hardcode_into_libs=yes 5367 if test "$with_gnu_ld" = yes; then 5368 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 5369 else 5370 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 5371 case $host_os in 5372 sco3.2v5*) 5373 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 5374 ;; 5375 esac 5376 fi 5377 sys_lib_dlsearch_path_spec='/usr/lib' 5378 ;; 5379 5380tpf*) 5381 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 5382 version_type=linux 5383 need_lib_prefix=no 5384 need_version=no 5385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 5386 shlibpath_var=LD_LIBRARY_PATH 5387 shlibpath_overrides_runpath=no 5388 hardcode_into_libs=yes 5389 ;; 5390 5391uts4*) 5392 version_type=linux 5393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 5394 soname_spec='${libname}${release}${shared_ext}$major' 5395 shlibpath_var=LD_LIBRARY_PATH 5396 ;; 5397 5398*) 5399 dynamic_linker=no 5400 ;; 5401esac 5402AC_MSG_RESULT([$dynamic_linker]) 5403test "$dynamic_linker" = no && can_build_shared=no 5404 5405variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 5406if test "$GCC" = yes; then 5407 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 5408fi 5409 5410if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 5411 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 5412fi 5413if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 5414 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 5415fi 5416 5417_LT_DECL([], [variables_saved_for_relink], [1], 5418 [Variables whose values should be saved in libtool wrapper scripts and 5419 restored at link time]) 5420_LT_DECL([], [need_lib_prefix], [0], 5421 [Do we need the "lib" prefix for modules?]) 5422_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) 5423_LT_DECL([], [version_type], [0], [Library versioning type]) 5424_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) 5425_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) 5426_LT_DECL([], [shlibpath_overrides_runpath], [0], 5427 [Is shlibpath searched before the hard-coded library search path?]) 5428_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) 5429_LT_DECL([], [library_names_spec], [1], 5430 [[List of archive names. First name is the real one, the rest are links. 5431 The last name is the one that the linker finds with -lNAME]]) 5432_LT_DECL([], [soname_spec], [1], 5433 [[The coded name of the library, if different from the real name]]) 5434_LT_DECL([], [install_override_mode], [1], 5435 [Permission mode override for installation of shared libraries]) 5436_LT_DECL([], [postinstall_cmds], [2], 5437 [Command to use after installation of a shared archive]) 5438_LT_DECL([], [postuninstall_cmds], [2], 5439 [Command to use after uninstallation of a shared archive]) 5440_LT_DECL([], [finish_cmds], [2], 5441 [Commands used to finish a libtool library installation in a directory]) 5442_LT_DECL([], [finish_eval], [1], 5443 [[As "finish_cmds", except a single script fragment to be evaled but 5444 not shown]]) 5445_LT_DECL([], [hardcode_into_libs], [0], 5446 [Whether we should hardcode library paths into libraries]) 5447_LT_DECL([], [sys_lib_search_path_spec], [2], 5448 [Compile-time system search path for libraries]) 5449_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], 5450 [Run-time system search path for libraries]) 5451])# _LT_SYS_DYNAMIC_LINKER 5452 5453 5454# _LT_PATH_TOOL_PREFIX(TOOL) 5455# -------------------------- 5456# find a file program which can recognize shared library 5457AC_DEFUN([_LT_PATH_TOOL_PREFIX], 5458[m4_require([_LT_DECL_EGREP])dnl 5459AC_MSG_CHECKING([for $1]) 5460AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 5461[case $MAGIC_CMD in 5462[[\\/*] | ?:[\\/]*]) 5463 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5464 ;; 5465*) 5466 lt_save_MAGIC_CMD="$MAGIC_CMD" 5467 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5468dnl $ac_dummy forces splitting on constant user-supplied paths. 5469dnl POSIX.2 word splitting is done only on the output of word expansions, 5470dnl not every word. This closes a longstanding sh security hole. 5471 ac_dummy="m4_if([$2], , $PATH, [$2])" 5472 for ac_dir in $ac_dummy; do 5473 IFS="$lt_save_ifs" 5474 test -z "$ac_dir" && ac_dir=. 5475 if test -f $ac_dir/$1; then 5476 lt_cv_path_MAGIC_CMD="$ac_dir/$1" 5477 if test -n "$file_magic_test_file"; then 5478 case $deplibs_check_method in 5479 "file_magic "*) 5480 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 5481 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5482 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5483 $EGREP "$file_magic_regex" > /dev/null; then 5484 : 5485 else 5486 cat <<_LT_EOF 1>&2 5487 5488*** Warning: the command libtool uses to detect shared libraries, 5489*** $file_magic_cmd, produces output that libtool cannot recognize. 5490*** The result is that libtool may fail to recognize shared libraries 5491*** as such. This will affect the creation of libtool libraries that 5492*** depend on shared libraries, but programs linked with such libtool 5493*** libraries will work regardless of this problem. Nevertheless, you 5494*** may want to report the problem to your system manager and/or to 5495*** bug-libtool@gnu.org 5496 5497_LT_EOF 5498 fi ;; 5499 esac 5500 fi 5501 break 5502 fi 5503 done 5504 IFS="$lt_save_ifs" 5505 MAGIC_CMD="$lt_save_MAGIC_CMD" 5506 ;; 5507esac]) 5508MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5509if test -n "$MAGIC_CMD"; then 5510 AC_MSG_RESULT($MAGIC_CMD) 5511else 5512 AC_MSG_RESULT(no) 5513fi 5514_LT_DECL([], [MAGIC_CMD], [0], 5515 [Used to examine libraries when file_magic_cmd begins with "file"])dnl 5516])# _LT_PATH_TOOL_PREFIX 5517 5518# Old name: 5519AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) 5520dnl aclocal-1.4 backwards compatibility: 5521dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) 5522 5523 5524# _LT_PATH_MAGIC 5525# -------------- 5526# find a file program which can recognize a shared library 5527m4_defun([_LT_PATH_MAGIC], 5528[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 5529if test -z "$lt_cv_path_MAGIC_CMD"; then 5530 if test -n "$ac_tool_prefix"; then 5531 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 5532 else 5533 MAGIC_CMD=: 5534 fi 5535fi 5536])# _LT_PATH_MAGIC 5537 5538 5539# LT_PATH_LD 5540# ---------- 5541# find the pathname to the GNU or non-GNU linker 5542AC_DEFUN([LT_PATH_LD], 5543[AC_REQUIRE([AC_PROG_CC])dnl 5544AC_REQUIRE([AC_CANONICAL_HOST])dnl 5545AC_REQUIRE([AC_CANONICAL_BUILD])dnl 5546m4_require([_LT_DECL_SED])dnl 5547m4_require([_LT_DECL_EGREP])dnl 5548m4_require([_LT_PROG_ECHO_BACKSLASH])dnl 5549 5550AC_ARG_WITH([gnu-ld], 5551 [AS_HELP_STRING([--with-gnu-ld], 5552 [assume the C compiler uses GNU ld @<:@default=no@:>@])], 5553 [test "$withval" = no || with_gnu_ld=yes], 5554 [with_gnu_ld=no])dnl 5555 5556ac_prog=ld 5557if test "$GCC" = yes; then 5558 # Check if gcc -print-prog-name=ld gives a path. 5559 AC_MSG_CHECKING([for ld used by $CC]) 5560 case $host in 5561 *-*-mingw*) 5562 # gcc leaves a trailing carriage return which upsets mingw 5563 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5564 *) 5565 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5566 esac 5567 case $ac_prog in 5568 # Accept absolute paths. 5569 [[\\/]]* | ?:[[\\/]]*) 5570 re_direlt='/[[^/]][[^/]]*/\.\./' 5571 # Canonicalize the pathname of ld 5572 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5573 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5574 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5575 done 5576 test -z "$LD" && LD="$ac_prog" 5577 ;; 5578 "") 5579 # If it fails, then pretend we aren't using GCC. 5580 ac_prog=ld 5581 ;; 5582 *) 5583 # If it is relative, then search for the first ld in PATH. 5584 with_gnu_ld=unknown 5585 ;; 5586 esac 5587elif test "$with_gnu_ld" = yes; then 5588 AC_MSG_CHECKING([for GNU ld]) 5589else 5590 AC_MSG_CHECKING([for non-GNU ld]) 5591fi 5592AC_CACHE_VAL(lt_cv_path_LD, 5593[if test -z "$LD"; then 5594 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5595 for ac_dir in $PATH; do 5596 IFS="$lt_save_ifs" 5597 test -z "$ac_dir" && ac_dir=. 5598 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5599 lt_cv_path_LD="$ac_dir/$ac_prog" 5600 # Check to see if the program is GNU ld. I'd rather use --version, 5601 # but apparently some variants of GNU ld only accept -v. 5602 # Break only if it was the GNU/non-GNU ld that we prefer. 5603 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5604 *GNU* | *'with BFD'*) 5605 test "$with_gnu_ld" != no && break 5606 ;; 5607 *) 5608 test "$with_gnu_ld" != yes && break 5609 ;; 5610 esac 5611 fi 5612 done 5613 IFS="$lt_save_ifs" 5614else 5615 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5616fi]) 5617LD="$lt_cv_path_LD" 5618if test -n "$LD"; then 5619 AC_MSG_RESULT($LD) 5620else 5621 AC_MSG_RESULT(no) 5622fi 5623test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 5624_LT_PATH_LD_GNU 5625AC_SUBST([LD]) 5626 5627_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) 5628])# LT_PATH_LD 5629 5630# Old names: 5631AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) 5632AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) 5633dnl aclocal-1.4 backwards compatibility: 5634dnl AC_DEFUN([AM_PROG_LD], []) 5635dnl AC_DEFUN([AC_PROG_LD], []) 5636 5637 5638# _LT_PATH_LD_GNU 5639#- -------------- 5640m4_defun([_LT_PATH_LD_GNU], 5641[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 5642[# I'd rather use --version here, but apparently some GNU lds only accept -v. 5643case `$LD -v 2>&1 </dev/null` in 5644*GNU* | *'with BFD'*) 5645 lt_cv_prog_gnu_ld=yes 5646 ;; 5647*) 5648 lt_cv_prog_gnu_ld=no 5649 ;; 5650esac]) 5651with_gnu_ld=$lt_cv_prog_gnu_ld 5652])# _LT_PATH_LD_GNU 5653 5654 5655# _LT_CMD_RELOAD 5656# -------------- 5657# find reload flag for linker 5658# -- PORTME Some linkers may need a different reload flag. 5659m4_defun([_LT_CMD_RELOAD], 5660[AC_CACHE_CHECK([for $LD option to reload object files], 5661 lt_cv_ld_reload_flag, 5662 [lt_cv_ld_reload_flag='-r']) 5663reload_flag=$lt_cv_ld_reload_flag 5664case $reload_flag in 5665"" | " "*) ;; 5666*) reload_flag=" $reload_flag" ;; 5667esac 5668reload_cmds='$LD$reload_flag -o $output$reload_objs' 5669case $host_os in 5670 darwin*) 5671 if test "$GCC" = yes; then 5672 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5673 else 5674 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5675 fi 5676 ;; 5677esac 5678_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl 5679_LT_TAGDECL([], [reload_cmds], [2])dnl 5680])# _LT_CMD_RELOAD 5681 5682 5683# _LT_CHECK_MAGIC_METHOD 5684# ---------------------- 5685# how to check for library dependencies 5686# -- PORTME fill in with the dynamic library characteristics 5687m4_defun([_LT_CHECK_MAGIC_METHOD], 5688[m4_require([_LT_DECL_EGREP]) 5689m4_require([_LT_DECL_OBJDUMP]) 5690AC_CACHE_CHECK([how to recognize dependent libraries], 5691lt_cv_deplibs_check_method, 5692[lt_cv_file_magic_cmd='$MAGIC_CMD' 5693lt_cv_file_magic_test_file= 5694lt_cv_deplibs_check_method='unknown' 5695# Need to set the preceding variable on all platforms that support 5696# interlibrary dependencies. 5697# 'none' -- dependencies not supported. 5698# `unknown' -- same as none, but documents that we really don't know. 5699# 'pass_all' -- all dependencies passed with no checks. 5700# 'test_compile' -- check by making test program. 5701# 'file_magic [[regex]]' -- check by looking for files in library path 5702# which responds to the $file_magic_cmd with a given extended regex. 5703# If you have `file' or equivalent on your system and you're not sure 5704# whether `pass_all' will *always* work, you probably want this one. 5705 5706case $host_os in 5707aix[[4-9]]*) 5708 lt_cv_deplibs_check_method=pass_all 5709 ;; 5710 5711beos*) 5712 lt_cv_deplibs_check_method=pass_all 5713 ;; 5714 5715bsdi[[45]]*) 5716 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 5717 lt_cv_file_magic_cmd='/usr/bin/file -L' 5718 lt_cv_file_magic_test_file=/shlib/libc.so 5719 ;; 5720 5721cygwin*) 5722 # func_win32_libid is a shell function defined in ltmain.sh 5723 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5724 lt_cv_file_magic_cmd='func_win32_libid' 5725 ;; 5726 5727mingw* | pw32*) 5728 # Base MSYS/MinGW do not provide the 'file' command needed by 5729 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5730 # unless we find 'file', for example because we are cross-compiling. 5731 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5732 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5733 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5734 lt_cv_file_magic_cmd='func_win32_libid' 5735 else 5736 # Keep this pattern in sync with the one in func_win32_libid. 5737 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5738 lt_cv_file_magic_cmd='$OBJDUMP -f' 5739 fi 5740 ;; 5741 5742cegcc*) 5743 # use the weaker test based on 'objdump'. See mingw*. 5744 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5745 lt_cv_file_magic_cmd='$OBJDUMP -f' 5746 ;; 5747 5748darwin* | rhapsody*) 5749 lt_cv_deplibs_check_method=pass_all 5750 ;; 5751 5752freebsd* | dragonfly*) 5753 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5754 case $host_cpu in 5755 i*86 ) 5756 # Not sure whether the presence of OpenBSD here was a mistake. 5757 # Let's accept both of them until this is cleared up. 5758 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 5759 lt_cv_file_magic_cmd=/usr/bin/file 5760 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5761 ;; 5762 esac 5763 else 5764 lt_cv_deplibs_check_method=pass_all 5765 fi 5766 ;; 5767 5768gnu*) 5769 lt_cv_deplibs_check_method=pass_all 5770 ;; 5771 5772haiku*) 5773 lt_cv_deplibs_check_method=pass_all 5774 ;; 5775 5776hpux10.20* | hpux11*) 5777 lt_cv_file_magic_cmd=/usr/bin/file 5778 case $host_cpu in 5779 ia64*) 5780 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 5781 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5782 ;; 5783 hppa*64*) 5784 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] 5785 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5786 ;; 5787 *) 5788 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' 5789 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5790 ;; 5791 esac 5792 ;; 5793 5794interix[[3-9]]*) 5795 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5796 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 5797 ;; 5798 5799irix5* | irix6* | nonstopux*) 5800 case $LD in 5801 *-32|*"-32 ") libmagic=32-bit;; 5802 *-n32|*"-n32 ") libmagic=N32;; 5803 *-64|*"-64 ") libmagic=64-bit;; 5804 *) libmagic=never-match;; 5805 esac 5806 lt_cv_deplibs_check_method=pass_all 5807 ;; 5808 5809# This must be Linux ELF. 5810linux* | k*bsd*-gnu | kopensolaris*-gnu) 5811 lt_cv_deplibs_check_method=pass_all 5812 ;; 5813 5814netbsd*) 5815 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5816 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 5817 else 5818 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 5819 fi 5820 ;; 5821 5822newos6*) 5823 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 5824 lt_cv_file_magic_cmd=/usr/bin/file 5825 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5826 ;; 5827 5828*nto* | *qnx*) 5829 lt_cv_deplibs_check_method=pass_all 5830 ;; 5831 5832openbsd*) 5833 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5834 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 5835 else 5836 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 5837 fi 5838 ;; 5839 5840osf3* | osf4* | osf5*) 5841 lt_cv_deplibs_check_method=pass_all 5842 ;; 5843 5844rdos*) 5845 lt_cv_deplibs_check_method=pass_all 5846 ;; 5847 5848solaris*) 5849 lt_cv_deplibs_check_method=pass_all 5850 ;; 5851 5852sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5853 lt_cv_deplibs_check_method=pass_all 5854 ;; 5855 5856sysv4 | sysv4.3*) 5857 case $host_vendor in 5858 motorola) 5859 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]]' 5860 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5861 ;; 5862 ncr) 5863 lt_cv_deplibs_check_method=pass_all 5864 ;; 5865 sequent) 5866 lt_cv_file_magic_cmd='/bin/file' 5867 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 5868 ;; 5869 sni) 5870 lt_cv_file_magic_cmd='/bin/file' 5871 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 5872 lt_cv_file_magic_test_file=/lib/libc.so 5873 ;; 5874 siemens) 5875 lt_cv_deplibs_check_method=pass_all 5876 ;; 5877 pc) 5878 lt_cv_deplibs_check_method=pass_all 5879 ;; 5880 esac 5881 ;; 5882 5883tpf*) 5884 lt_cv_deplibs_check_method=pass_all 5885 ;; 5886esac 5887]) 5888file_magic_cmd=$lt_cv_file_magic_cmd 5889deplibs_check_method=$lt_cv_deplibs_check_method 5890test -z "$deplibs_check_method" && deplibs_check_method=unknown 5891 5892_LT_DECL([], [deplibs_check_method], [1], 5893 [Method to check whether dependent libraries are shared objects]) 5894_LT_DECL([], [file_magic_cmd], [1], 5895 [Command to use when deplibs_check_method == "file_magic"]) 5896])# _LT_CHECK_MAGIC_METHOD 5897 5898 5899# LT_PATH_NM 5900# ---------- 5901# find the pathname to a BSD- or MS-compatible name lister 5902AC_DEFUN([LT_PATH_NM], 5903[AC_REQUIRE([AC_PROG_CC])dnl 5904AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, 5905[if test -n "$NM"; then 5906 # Let the user override the test. 5907 lt_cv_path_NM="$NM" 5908else 5909 lt_nm_to_check="${ac_tool_prefix}nm" 5910 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5911 lt_nm_to_check="$lt_nm_to_check nm" 5912 fi 5913 for lt_tmp_nm in $lt_nm_to_check; do 5914 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5915 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5916 IFS="$lt_save_ifs" 5917 test -z "$ac_dir" && ac_dir=. 5918 tmp_nm="$ac_dir/$lt_tmp_nm" 5919 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5920 # Check to see if the nm accepts a BSD-compat flag. 5921 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5922 # nm: unknown option "B" ignored 5923 # Tru64's nm complains that /dev/null is an invalid object file 5924 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5925 */dev/null* | *'Invalid file or object type'*) 5926 lt_cv_path_NM="$tmp_nm -B" 5927 break 5928 ;; 5929 *) 5930 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5931 */dev/null*) 5932 lt_cv_path_NM="$tmp_nm -p" 5933 break 5934 ;; 5935 *) 5936 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5937 continue # so that we can try to find one that supports BSD flags 5938 ;; 5939 esac 5940 ;; 5941 esac 5942 fi 5943 done 5944 IFS="$lt_save_ifs" 5945 done 5946 : ${lt_cv_path_NM=no} 5947fi]) 5948if test "$lt_cv_path_NM" != "no"; then 5949 NM="$lt_cv_path_NM" 5950else 5951 # Didn't find any BSD compatible name lister, look for dumpbin. 5952 if test -n "$DUMPBIN"; then : 5953 # Let the user override the test. 5954 else 5955 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) 5956 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5957 *COFF*) 5958 DUMPBIN="$DUMPBIN -symbols" 5959 ;; 5960 *) 5961 DUMPBIN=: 5962 ;; 5963 esac 5964 fi 5965 AC_SUBST([DUMPBIN]) 5966 if test "$DUMPBIN" != ":"; then 5967 NM="$DUMPBIN" 5968 fi 5969fi 5970test -z "$NM" && NM=nm 5971AC_SUBST([NM]) 5972_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl 5973 5974AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], 5975 [lt_cv_nm_interface="BSD nm" 5976 echo "int some_variable = 0;" > conftest.$ac_ext 5977 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) 5978 (eval "$ac_compile" 2>conftest.err) 5979 cat conftest.err >&AS_MESSAGE_LOG_FD 5980 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) 5981 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5982 cat conftest.err >&AS_MESSAGE_LOG_FD 5983 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) 5984 cat conftest.out >&AS_MESSAGE_LOG_FD 5985 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5986 lt_cv_nm_interface="MS dumpbin" 5987 fi 5988 rm -f conftest*]) 5989])# LT_PATH_NM 5990 5991# Old names: 5992AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) 5993AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) 5994dnl aclocal-1.4 backwards compatibility: 5995dnl AC_DEFUN([AM_PROG_NM], []) 5996dnl AC_DEFUN([AC_PROG_NM], []) 5997 5998 5999# LT_LIB_M 6000# -------- 6001# check for math library 6002AC_DEFUN([LT_LIB_M], 6003[AC_REQUIRE([AC_CANONICAL_HOST])dnl 6004LIBM= 6005case $host in 6006*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 6007 # These system don't have libm, or don't need it 6008 ;; 6009*-ncr-sysv4.3*) 6010 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") 6011 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 6012 ;; 6013*) 6014 AC_CHECK_LIB(m, cos, LIBM="-lm") 6015 ;; 6016esac 6017AC_SUBST([LIBM]) 6018])# LT_LIB_M 6019 6020# Old name: 6021AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) 6022dnl aclocal-1.4 backwards compatibility: 6023dnl AC_DEFUN([AC_CHECK_LIBM], []) 6024 6025 6026# _LT_COMPILER_NO_RTTI([TAGNAME]) 6027# ------------------------------- 6028m4_defun([_LT_COMPILER_NO_RTTI], 6029[m4_require([_LT_TAG_COMPILER])dnl 6030 6031_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 6032 6033if test "$GCC" = yes; then 6034 case $cc_basename in 6035 nvcc*) 6036 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; 6037 *) 6038 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; 6039 esac 6040 6041 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 6042 lt_cv_prog_compiler_rtti_exceptions, 6043 [-fno-rtti -fno-exceptions], [], 6044 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 6045fi 6046_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], 6047 [Compiler flag to turn off builtin functions]) 6048])# _LT_COMPILER_NO_RTTI 6049 6050 6051# _LT_CMD_GLOBAL_SYMBOLS 6052# ---------------------- 6053m4_defun([_LT_CMD_GLOBAL_SYMBOLS], 6054[AC_REQUIRE([AC_CANONICAL_HOST])dnl 6055AC_REQUIRE([AC_PROG_CC])dnl 6056AC_REQUIRE([AC_PROG_AWK])dnl 6057AC_REQUIRE([LT_PATH_NM])dnl 6058AC_REQUIRE([LT_PATH_LD])dnl 6059m4_require([_LT_DECL_SED])dnl 6060m4_require([_LT_DECL_EGREP])dnl 6061m4_require([_LT_TAG_COMPILER])dnl 6062 6063# Check for command to grab the raw symbol name followed by C symbol from nm. 6064AC_MSG_CHECKING([command to parse $NM output from $compiler object]) 6065AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 6066[ 6067# These are sane defaults that work on at least a few old systems. 6068# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6069 6070# Character class describing NM global symbol codes. 6071symcode='[[BCDEGRST]]' 6072 6073# Regexp to match symbols that can be accessed directly from C. 6074sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 6075 6076# Define system-specific variables. 6077case $host_os in 6078aix*) 6079 symcode='[[BCDT]]' 6080 ;; 6081cygwin* | mingw* | pw32* | cegcc*) 6082 symcode='[[ABCDGISTW]]' 6083 ;; 6084hpux*) 6085 if test "$host_cpu" = ia64; then 6086 symcode='[[ABCDEGRST]]' 6087 fi 6088 ;; 6089irix* | nonstopux*) 6090 symcode='[[BCDEGRST]]' 6091 ;; 6092osf*) 6093 symcode='[[BCDEGQRST]]' 6094 ;; 6095solaris*) 6096 symcode='[[BDRT]]' 6097 ;; 6098sco3.2v5*) 6099 symcode='[[DT]]' 6100 ;; 6101sysv4.2uw2*) 6102 symcode='[[DT]]' 6103 ;; 6104sysv5* | sco5v6* | unixware* | OpenUNIX*) 6105 symcode='[[ABDT]]' 6106 ;; 6107sysv4) 6108 symcode='[[DFNSTU]]' 6109 ;; 6110esac 6111 6112# If we're using GNU nm, then use its standard symbol codes. 6113case `$NM -V 2>&1` in 6114*GNU* | *'with BFD'*) 6115 symcode='[[ABCDGIRSTW]]' ;; 6116esac 6117 6118# Transform an extracted symbol line into a proper C declaration. 6119# Some systems (esp. on ia64) link data and code symbols differently, 6120# so use this general approach. 6121lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6122 6123# Transform an extracted symbol line into symbol name and symbol address 6124lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" 6125lt_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'" 6126 6127# Handle CRLF in mingw tool chain 6128opt_cr= 6129case $build_os in 6130mingw*) 6131 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6132 ;; 6133esac 6134 6135# Try without a prefix underscore, then with it. 6136for ac_symprfx in "" "_"; do 6137 6138 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6139 symxfrm="\\1 $ac_symprfx\\2 \\2" 6140 6141 # Write the raw and C identifiers. 6142 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6143 # Fake it for dumpbin and say T for any non-static function 6144 # and D for any global variable. 6145 # Also find C++ and __fastcall symbols from MSVC++, 6146 # which start with @ or ?. 6147 lt_cv_sys_global_symbol_pipe="$AWK ['"\ 6148" {last_section=section; section=\$ 3};"\ 6149" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6150" \$ 0!~/External *\|/{next};"\ 6151" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6152" {if(hide[section]) next};"\ 6153" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6154" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6155" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6156" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6157" ' prfx=^$ac_symprfx]" 6158 else 6159 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6160 fi 6161 6162 # Check to see that the pipe works correctly. 6163 pipe_works=no 6164 6165 rm -f conftest* 6166 cat > conftest.$ac_ext <<_LT_EOF 6167#ifdef __cplusplus 6168extern "C" { 6169#endif 6170char nm_test_var; 6171void nm_test_func(void); 6172void nm_test_func(void){} 6173#ifdef __cplusplus 6174} 6175#endif 6176int main(){nm_test_var='a';nm_test_func();return(0);} 6177_LT_EOF 6178 6179 if AC_TRY_EVAL(ac_compile); then 6180 # Now try to grab the symbols. 6181 nlist=conftest.nm 6182 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then 6183 # Try sorting and uniquifying the output. 6184 if sort "$nlist" | uniq > "$nlist"T; then 6185 mv -f "$nlist"T "$nlist" 6186 else 6187 rm -f "$nlist"T 6188 fi 6189 6190 # Make sure that we snagged all the symbols we need. 6191 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6192 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6193 cat <<_LT_EOF > conftest.$ac_ext 6194#ifdef __cplusplus 6195extern "C" { 6196#endif 6197 6198_LT_EOF 6199 # Now generate the symbol file. 6200 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6201 6202 cat <<_LT_EOF >> conftest.$ac_ext 6203 6204/* The mapping between symbol names and symbols. */ 6205const struct { 6206 const char *name; 6207 void *address; 6208} 6209lt__PROGRAM__LTX_preloaded_symbols[[]] = 6210{ 6211 { "@PROGRAM@", (void *) 0 }, 6212_LT_EOF 6213 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6214 cat <<\_LT_EOF >> conftest.$ac_ext 6215 {0, (void *) 0} 6216}; 6217 6218/* This works around a problem in FreeBSD linker */ 6219#ifdef FREEBSD_WORKAROUND 6220static const void *lt_preloaded_setup() { 6221 return lt__PROGRAM__LTX_preloaded_symbols; 6222} 6223#endif 6224 6225#ifdef __cplusplus 6226} 6227#endif 6228_LT_EOF 6229 # Now try linking the two files. 6230 mv conftest.$ac_objext conftstm.$ac_objext 6231 lt_save_LIBS="$LIBS" 6232 lt_save_CFLAGS="$CFLAGS" 6233 LIBS="conftstm.$ac_objext" 6234 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 6235 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then 6236 pipe_works=yes 6237 fi 6238 LIBS="$lt_save_LIBS" 6239 CFLAGS="$lt_save_CFLAGS" 6240 else 6241 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 6242 fi 6243 else 6244 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 6245 fi 6246 else 6247 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 6248 fi 6249 else 6250 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 6251 cat conftest.$ac_ext >&5 6252 fi 6253 rm -rf conftest* conftst* 6254 6255 # Do not use the global_symbol_pipe unless it works. 6256 if test "$pipe_works" = yes; then 6257 break 6258 else 6259 lt_cv_sys_global_symbol_pipe= 6260 fi 6261done 6262]) 6263if test -z "$lt_cv_sys_global_symbol_pipe"; then 6264 lt_cv_sys_global_symbol_to_cdecl= 6265fi 6266if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6267 AC_MSG_RESULT(failed) 6268else 6269 AC_MSG_RESULT(ok) 6270fi 6271 6272_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], 6273 [Take the output of nm and produce a listing of raw symbols and C names]) 6274_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 6275 [Transform the output of nm in a proper C declaration]) 6276_LT_DECL([global_symbol_to_c_name_address], 6277 [lt_cv_sys_global_symbol_to_c_name_address], [1], 6278 [Transform the output of nm in a C name address pair]) 6279_LT_DECL([global_symbol_to_c_name_address_lib_prefix], 6280 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 6281 [Transform the output of nm in a C name address pair when lib prefix is needed]) 6282]) # _LT_CMD_GLOBAL_SYMBOLS 6283 6284 6285# _LT_COMPILER_PIC([TAGNAME]) 6286# --------------------------- 6287m4_defun([_LT_COMPILER_PIC], 6288[m4_require([_LT_TAG_COMPILER])dnl 6289_LT_TAGVAR(lt_prog_compiler_wl, $1)= 6290_LT_TAGVAR(lt_prog_compiler_pic, $1)= 6291_LT_TAGVAR(lt_prog_compiler_static, $1)= 6292 6293AC_MSG_CHECKING([for $compiler option to produce PIC]) 6294m4_if([$1], [CXX], [ 6295 # C++ specific cases for pic, static, wl, etc. 6296 if test "$GXX" = yes; then 6297 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6298 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6299 6300 case $host_os in 6301 aix*) 6302 # All AIX code is PIC. 6303 if test "$host_cpu" = ia64; then 6304 # AIX 5 now supports IA64 processor 6305 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6306 fi 6307 ;; 6308 6309 amigaos*) 6310 case $host_cpu in 6311 powerpc) 6312 # see comment about AmigaOS4 .so support 6313 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6314 ;; 6315 m68k) 6316 # FIXME: we need at least 68020 code to build shared libraries, but 6317 # adding the `-m68020' flag to GCC prevents building anything better, 6318 # like `-m68040'. 6319 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 6320 ;; 6321 esac 6322 ;; 6323 6324 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6325 # PIC is the default for these OSes. 6326 ;; 6327 mingw* | cygwin* | os2* | pw32* | cegcc*) 6328 # This hack is so that the source file can tell whether it is being 6329 # built for inclusion in a dll (and should export symbols for example). 6330 # Although the cygwin gcc ignores -fPIC, still need this for old-style 6331 # (--disable-auto-import) libraries 6332 m4_if([$1], [GCJ], [], 6333 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 6334 ;; 6335 darwin* | rhapsody*) 6336 # PIC is the default on this platform 6337 # Common symbols not allowed in MH_DYLIB files 6338 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 6339 ;; 6340 *djgpp*) 6341 # DJGPP does not support shared libraries at all 6342 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 6343 ;; 6344 haiku*) 6345 # PIC is the default for Haiku. 6346 # The "-static" flag exists, but is broken. 6347 _LT_TAGVAR(lt_prog_compiler_static, $1)= 6348 ;; 6349 interix[[3-9]]*) 6350 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6351 # Instead, we relocate shared libraries at runtime. 6352 ;; 6353 sysv4*MP*) 6354 if test -d /usr/nec; then 6355 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 6356 fi 6357 ;; 6358 hpux*) 6359 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 6360 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 6361 # sets the default TLS model and affects inlining. 6362 case $host_cpu in 6363 hppa*64*) 6364 ;; 6365 *) 6366 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6367 ;; 6368 esac 6369 ;; 6370 *qnx* | *nto*) 6371 # QNX uses GNU C++, but need to define -shared option too, otherwise 6372 # it will coredump. 6373 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 6374 ;; 6375 *) 6376 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6377 ;; 6378 esac 6379 else 6380 case $host_os in 6381 aix[[4-9]]*) 6382 # All AIX code is PIC. 6383 if test "$host_cpu" = ia64; then 6384 # AIX 5 now supports IA64 processor 6385 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6386 else 6387 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 6388 fi 6389 ;; 6390 chorus*) 6391 case $cc_basename in 6392 cxch68*) 6393 # Green Hills C++ Compiler 6394 # _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" 6395 ;; 6396 esac 6397 ;; 6398 dgux*) 6399 case $cc_basename in 6400 ec++*) 6401 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6402 ;; 6403 ghcx*) 6404 # Green Hills C++ Compiler 6405 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6406 ;; 6407 *) 6408 ;; 6409 esac 6410 ;; 6411 freebsd* | dragonfly*) 6412 # FreeBSD uses GNU C++ 6413 ;; 6414 hpux9* | hpux10* | hpux11*) 6415 case $cc_basename in 6416 CC*) 6417 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6418 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 6419 if test "$host_cpu" != ia64; then 6420 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 6421 fi 6422 ;; 6423 aCC*) 6424 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6425 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 6426 case $host_cpu in 6427 hppa*64*|ia64*) 6428 # +Z the default 6429 ;; 6430 *) 6431 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 6432 ;; 6433 esac 6434 ;; 6435 *) 6436 ;; 6437 esac 6438 ;; 6439 interix*) 6440 # This is c89, which is MS Visual C++ (no shared libs) 6441 # Anyone wants to do a port? 6442 ;; 6443 irix5* | irix6* | nonstopux*) 6444 case $cc_basename in 6445 CC*) 6446 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6447 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6448 # CC pic flag -KPIC is the default. 6449 ;; 6450 *) 6451 ;; 6452 esac 6453 ;; 6454 linux* | k*bsd*-gnu | kopensolaris*-gnu) 6455 case $cc_basename in 6456 KCC*) 6457 # KAI C++ Compiler 6458 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 6459 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6460 ;; 6461 ecpc* ) 6462 # old Intel C++ for x86_64 which still supported -KPIC. 6463 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6464 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6465 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6466 ;; 6467 icpc* ) 6468 # Intel C++, used to be incompatible with GCC. 6469 # ICC 10 doesn't accept -KPIC any more. 6470 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6471 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6472 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6473 ;; 6474 pgCC* | pgcpp*) 6475 # Portland Group C++ compiler 6476 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6477 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 6478 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6479 ;; 6480 cxx*) 6481 # Compaq C++ 6482 # Make sure the PIC flag is empty. It appears that all Alpha 6483 # Linux and Compaq Tru64 Unix objects are PIC. 6484 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 6485 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6486 ;; 6487 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) 6488 # IBM XL 8.0, 9.0 on PPC and BlueGene 6489 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6490 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 6491 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 6492 ;; 6493 *) 6494 case `$CC -V 2>&1 | sed 5q` in 6495 *Sun\ C*) 6496 # Sun C++ 5.9 6497 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6498 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6499 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 6500 ;; 6501 esac 6502 ;; 6503 esac 6504 ;; 6505 lynxos*) 6506 ;; 6507 m88k*) 6508 ;; 6509 mvs*) 6510 case $cc_basename in 6511 cxx*) 6512 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 6513 ;; 6514 *) 6515 ;; 6516 esac 6517 ;; 6518 netbsd*) 6519 ;; 6520 *qnx* | *nto*) 6521 # QNX uses GNU C++, but need to define -shared option too, otherwise 6522 # it will coredump. 6523 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 6524 ;; 6525 osf3* | osf4* | osf5*) 6526 case $cc_basename in 6527 KCC*) 6528 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 6529 ;; 6530 RCC*) 6531 # Rational C++ 2.4.1 6532 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6533 ;; 6534 cxx*) 6535 # Digital/Compaq C++ 6536 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6537 # Make sure the PIC flag is empty. It appears that all Alpha 6538 # Linux and Compaq Tru64 Unix objects are PIC. 6539 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 6540 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6541 ;; 6542 *) 6543 ;; 6544 esac 6545 ;; 6546 psos*) 6547 ;; 6548 solaris*) 6549 case $cc_basename in 6550 CC* | sunCC*) 6551 # Sun C++ 4.2, 5.x and Centerline C++ 6552 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6553 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6554 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 6555 ;; 6556 gcx*) 6557 # Green Hills C++ Compiler 6558 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 6559 ;; 6560 *) 6561 ;; 6562 esac 6563 ;; 6564 sunos4*) 6565 case $cc_basename in 6566 CC*) 6567 # Sun C++ 4.x 6568 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6569 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6570 ;; 6571 lcc*) 6572 # Lucid 6573 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6574 ;; 6575 *) 6576 ;; 6577 esac 6578 ;; 6579 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6580 case $cc_basename in 6581 CC*) 6582 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6583 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6584 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6585 ;; 6586 esac 6587 ;; 6588 tandem*) 6589 case $cc_basename in 6590 NCC*) 6591 # NonStop-UX NCC 3.20 6592 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6593 ;; 6594 *) 6595 ;; 6596 esac 6597 ;; 6598 vxworks*) 6599 ;; 6600 *) 6601 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6602 ;; 6603 esac 6604 fi 6605], 6606[ 6607 if test "$GCC" = yes; then 6608 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6609 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6610 6611 case $host_os in 6612 aix*) 6613 # All AIX code is PIC. 6614 if test "$host_cpu" = ia64; then 6615 # AIX 5 now supports IA64 processor 6616 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6617 fi 6618 ;; 6619 6620 amigaos*) 6621 case $host_cpu in 6622 powerpc) 6623 # see comment about AmigaOS4 .so support 6624 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6625 ;; 6626 m68k) 6627 # FIXME: we need at least 68020 code to build shared libraries, but 6628 # adding the `-m68020' flag to GCC prevents building anything better, 6629 # like `-m68040'. 6630 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 6631 ;; 6632 esac 6633 ;; 6634 6635 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6636 # PIC is the default for these OSes. 6637 ;; 6638 6639 mingw* | cygwin* | pw32* | os2* | cegcc*) 6640 # This hack is so that the source file can tell whether it is being 6641 # built for inclusion in a dll (and should export symbols for example). 6642 # Although the cygwin gcc ignores -fPIC, still need this for old-style 6643 # (--disable-auto-import) libraries 6644 m4_if([$1], [GCJ], [], 6645 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 6646 ;; 6647 6648 darwin* | rhapsody*) 6649 # PIC is the default on this platform 6650 # Common symbols not allowed in MH_DYLIB files 6651 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 6652 ;; 6653 6654 haiku*) 6655 # PIC is the default for Haiku. 6656 # The "-static" flag exists, but is broken. 6657 _LT_TAGVAR(lt_prog_compiler_static, $1)= 6658 ;; 6659 6660 hpux*) 6661 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 6662 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 6663 # sets the default TLS model and affects inlining. 6664 case $host_cpu in 6665 hppa*64*) 6666 # +Z the default 6667 ;; 6668 *) 6669 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6670 ;; 6671 esac 6672 ;; 6673 6674 interix[[3-9]]*) 6675 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6676 # Instead, we relocate shared libraries at runtime. 6677 ;; 6678 6679 msdosdjgpp*) 6680 # Just because we use GCC doesn't mean we suddenly get shared libraries 6681 # on systems that don't support them. 6682 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6683 enable_shared=no 6684 ;; 6685 6686 *nto* | *qnx*) 6687 # QNX uses GNU C++, but need to define -shared option too, otherwise 6688 # it will coredump. 6689 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 6690 ;; 6691 6692 sysv4*MP*) 6693 if test -d /usr/nec; then 6694 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 6695 fi 6696 ;; 6697 6698 *) 6699 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6700 ;; 6701 esac 6702 6703 case $cc_basename in 6704 nvcc*) # Cuda Compiler Driver 2.2 6705 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' 6706 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC' 6707 ;; 6708 esac 6709 else 6710 # PORTME Check for flag to pass linker flags through the system compiler. 6711 case $host_os in 6712 aix*) 6713 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6714 if test "$host_cpu" = ia64; then 6715 # AIX 5 now supports IA64 processor 6716 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6717 else 6718 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 6719 fi 6720 ;; 6721 6722 mingw* | cygwin* | pw32* | os2* | cegcc*) 6723 # This hack is so that the source file can tell whether it is being 6724 # built for inclusion in a dll (and should export symbols for example). 6725 m4_if([$1], [GCJ], [], 6726 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 6727 ;; 6728 6729 hpux9* | hpux10* | hpux11*) 6730 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6731 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6732 # not for PA HP-UX. 6733 case $host_cpu in 6734 hppa*64*|ia64*) 6735 # +Z the default 6736 ;; 6737 *) 6738 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 6739 ;; 6740 esac 6741 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6742 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 6743 ;; 6744 6745 irix5* | irix6* | nonstopux*) 6746 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6747 # PIC (with -KPIC) is the default. 6748 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6749 ;; 6750 6751 linux* | k*bsd*-gnu | kopensolaris*-gnu) 6752 case $cc_basename in 6753 # old Intel for x86_64 which still supported -KPIC. 6754 ecc*) 6755 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6756 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6757 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6758 ;; 6759 # icc used to be incompatible with GCC. 6760 # ICC 10 doesn't accept -KPIC any more. 6761 icc* | ifort*) 6762 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6763 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6764 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6765 ;; 6766 # Lahey Fortran 8.1. 6767 lf95*) 6768 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6769 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' 6770 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 6771 ;; 6772 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 6773 # Portland Group compilers (*not* the Pentium gcc compiler, 6774 # which looks to be a dead project) 6775 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6776 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 6777 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6778 ;; 6779 ccc*) 6780 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6781 # All Alpha code is PIC. 6782 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6783 ;; 6784 xl* | bgxl* | bgf* | mpixl*) 6785 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 6786 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6787 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 6788 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 6789 ;; 6790 *) 6791 case `$CC -V 2>&1 | sed 5q` in 6792 *Sun\ F* | *Sun*Fortran*) 6793 # Sun Fortran 8.3 passes all unrecognized flags to the linker 6794 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6795 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6796 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' 6797 ;; 6798 *Sun\ C*) 6799 # Sun C 5.9 6800 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6801 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6802 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6803 ;; 6804 esac 6805 ;; 6806 esac 6807 ;; 6808 6809 newsos6) 6810 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6811 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6812 ;; 6813 6814 *nto* | *qnx*) 6815 # QNX uses GNU C++, but need to define -shared option too, otherwise 6816 # it will coredump. 6817 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 6818 ;; 6819 6820 osf3* | osf4* | osf5*) 6821 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6822 # All OSF/1 code is PIC. 6823 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6824 ;; 6825 6826 rdos*) 6827 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6828 ;; 6829 6830 solaris*) 6831 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6832 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6833 case $cc_basename in 6834 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 6835 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 6836 *) 6837 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 6838 esac 6839 ;; 6840 6841 sunos4*) 6842 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 6843 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 6844 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6845 ;; 6846 6847 sysv4 | sysv4.2uw2* | sysv4.3*) 6848 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6849 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6850 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6851 ;; 6852 6853 sysv4*MP*) 6854 if test -d /usr/nec ;then 6855 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 6856 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6857 fi 6858 ;; 6859 6860 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6861 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6862 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6863 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6864 ;; 6865 6866 unicos*) 6867 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6868 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6869 ;; 6870 6871 uts4*) 6872 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6873 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6874 ;; 6875 6876 *) 6877 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6878 ;; 6879 esac 6880 fi 6881]) 6882case $host_os in 6883 # For platforms which do not support PIC, -DPIC is meaningless: 6884 *djgpp*) 6885 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 6886 ;; 6887 *) 6888 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" 6889 ;; 6890esac 6891AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) 6892_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], 6893 [How to pass a linker flag through the compiler]) 6894 6895# 6896# Check to make sure the PIC flag actually works. 6897# 6898if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 6899 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], 6900 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], 6901 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], 6902 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in 6903 "" | " "*) ;; 6904 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; 6905 esac], 6906 [_LT_TAGVAR(lt_prog_compiler_pic, $1)= 6907 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 6908fi 6909_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], 6910 [Additional compiler flags for building library objects]) 6911 6912# 6913# Check to make sure the static flag actually works. 6914# 6915wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" 6916_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 6917 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), 6918 $lt_tmp_static_flag, 6919 [], 6920 [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) 6921_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], 6922 [Compiler flag to prevent dynamic linking]) 6923])# _LT_COMPILER_PIC 6924 6925 6926# _LT_LINKER_SHLIBS([TAGNAME]) 6927# ---------------------------- 6928# See if the linker supports building shared libraries. 6929m4_defun([_LT_LINKER_SHLIBS], 6930[AC_REQUIRE([LT_PATH_LD])dnl 6931AC_REQUIRE([LT_PATH_NM])dnl 6932m4_require([_LT_FILEUTILS_DEFAULTS])dnl 6933m4_require([_LT_DECL_EGREP])dnl 6934m4_require([_LT_DECL_SED])dnl 6935m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 6936m4_require([_LT_TAG_COMPILER])dnl 6937AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 6938m4_if([$1], [CXX], [ 6939 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6940 case $host_os in 6941 aix[[4-9]]*) 6942 # If we're using GNU nm, then we don't want the "-C" option. 6943 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6944 # Also, AIX nm treats weak defined symbols like other global defined 6945 # symbols, whereas GNU nm marks them as "W". 6946 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 6947 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 6948 else 6949 _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' 6950 fi 6951 ;; 6952 pw32*) 6953 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 6954 ;; 6955 cygwin* | mingw* | cegcc*) 6956 _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' 6957 ;; 6958 *) 6959 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6960 ;; 6961 esac 6962 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 6963], [ 6964 runpath_var= 6965 _LT_TAGVAR(allow_undefined_flag, $1)= 6966 _LT_TAGVAR(always_export_symbols, $1)=no 6967 _LT_TAGVAR(archive_cmds, $1)= 6968 _LT_TAGVAR(archive_expsym_cmds, $1)= 6969 _LT_TAGVAR(compiler_needs_object, $1)=no 6970 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 6971 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 6972 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6973 _LT_TAGVAR(hardcode_automatic, $1)=no 6974 _LT_TAGVAR(hardcode_direct, $1)=no 6975 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 6976 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 6977 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 6978 _LT_TAGVAR(hardcode_libdir_separator, $1)= 6979 _LT_TAGVAR(hardcode_minus_L, $1)=no 6980 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 6981 _LT_TAGVAR(inherit_rpath, $1)=no 6982 _LT_TAGVAR(link_all_deplibs, $1)=unknown 6983 _LT_TAGVAR(module_cmds, $1)= 6984 _LT_TAGVAR(module_expsym_cmds, $1)= 6985 _LT_TAGVAR(old_archive_from_new_cmds, $1)= 6986 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= 6987 _LT_TAGVAR(thread_safe_flag_spec, $1)= 6988 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6989 # include_expsyms should be a list of space-separated symbols to be *always* 6990 # included in the symbol list 6991 _LT_TAGVAR(include_expsyms, $1)= 6992 # exclude_expsyms can be an extended regexp of symbols to exclude 6993 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6994 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6995 # as well as any symbol that contains `d'. 6996 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 6997 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6998 # platforms (ab)use it in PIC code, but their linkers get confused if 6999 # the symbol is explicitly referenced. Since portable code cannot 7000 # rely on this symbol name, it's probably fine to never include it in 7001 # preloaded symbol tables. 7002 # Exclude shared library initialization/finalization symbols. 7003dnl Note also adjust exclude_expsyms for C++ above. 7004 extract_expsyms_cmds= 7005 7006 case $host_os in 7007 cygwin* | mingw* | pw32* | cegcc*) 7008 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7009 # When not using gcc, we currently assume that we are using 7010 # Microsoft Visual C++. 7011 if test "$GCC" != yes; then 7012 with_gnu_ld=no 7013 fi 7014 ;; 7015 interix*) 7016 # we just hope/assume this is gcc and not c89 (= MSVC++) 7017 with_gnu_ld=yes 7018 ;; 7019 openbsd*) 7020 with_gnu_ld=no 7021 ;; 7022 esac 7023 7024 _LT_TAGVAR(ld_shlibs, $1)=yes 7025 7026 # On some targets, GNU ld is compatible enough with the native linker 7027 # that we're better off using the native interface for both. 7028 lt_use_gnu_ld_interface=no 7029 if test "$with_gnu_ld" = yes; then 7030 case $host_os in 7031 aix*) 7032 # The AIX port of GNU ld has always aspired to compatibility 7033 # with the native linker. However, as the warning in the GNU ld 7034 # block says, versions before 2.19.5* couldn't really create working 7035 # shared libraries, regardless of the interface used. 7036 case `$LD -v 2>&1` in 7037 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 7038 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; 7039 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; 7040 *) 7041 lt_use_gnu_ld_interface=yes 7042 ;; 7043 esac 7044 ;; 7045 *) 7046 lt_use_gnu_ld_interface=yes 7047 ;; 7048 esac 7049 fi 7050 7051 if test "$lt_use_gnu_ld_interface" = yes; then 7052 # If archive_cmds runs LD, not CC, wlarc should be empty 7053 wlarc='${wl}' 7054 7055 # Set some defaults for GNU ld with shared library support. These 7056 # are reset later if shared libraries are not supported. Putting them 7057 # here allows them to be overridden if necessary. 7058 runpath_var=LD_RUN_PATH 7059 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7060 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 7061 # ancient GNU ld didn't support --whole-archive et. al. 7062 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 7063 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7064 else 7065 _LT_TAGVAR(whole_archive_flag_spec, $1)= 7066 fi 7067 supports_anon_versioning=no 7068 case `$LD -v 2>&1` in 7069 *GNU\ gold*) supports_anon_versioning=yes ;; 7070 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 7071 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7072 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7073 *\ 2.11.*) ;; # other 2.11 versions 7074 *) supports_anon_versioning=yes ;; 7075 esac 7076 7077 # See if GNU ld supports shared libraries. 7078 case $host_os in 7079 aix[[3-9]]*) 7080 # On AIX/PPC, the GNU linker is very broken 7081 if test "$host_cpu" != ia64; then 7082 _LT_TAGVAR(ld_shlibs, $1)=no 7083 cat <<_LT_EOF 1>&2 7084 7085*** Warning: the GNU linker, at least up to release 2.19, is reported 7086*** to be unable to reliably create shared libraries on AIX. 7087*** Therefore, libtool is disabling shared libraries support. If you 7088*** really care for shared libraries, you may want to install binutils 7089*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 7090*** You will then need to restart the configuration process. 7091 7092_LT_EOF 7093 fi 7094 ;; 7095 7096 amigaos*) 7097 case $host_cpu in 7098 powerpc) 7099 # see comment about AmigaOS4 .so support 7100 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7101 _LT_TAGVAR(archive_expsym_cmds, $1)='' 7102 ;; 7103 m68k) 7104 _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)' 7105 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7106 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7107 ;; 7108 esac 7109 ;; 7110 7111 beos*) 7112 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7113 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7114 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7115 # support --undefined. This deserves some investigation. FIXME 7116 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7117 else 7118 _LT_TAGVAR(ld_shlibs, $1)=no 7119 fi 7120 ;; 7121 7122 cygwin* | mingw* | pw32* | cegcc*) 7123 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 7124 # as there is no search path for DLLs. 7125 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7126 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' 7127 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7128 _LT_TAGVAR(always_export_symbols, $1)=no 7129 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 7130 _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' 7131 7132 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 7133 _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' 7134 # If the export-symbols file already is a .def file (1st line 7135 # is EXPORTS), use it as is; otherwise, prepend... 7136 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7137 cp $export_symbols $output_objdir/$soname.def; 7138 else 7139 echo EXPORTS > $output_objdir/$soname.def; 7140 cat $export_symbols >> $output_objdir/$soname.def; 7141 fi~ 7142 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7143 else 7144 _LT_TAGVAR(ld_shlibs, $1)=no 7145 fi 7146 ;; 7147 7148 haiku*) 7149 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7150 _LT_TAGVAR(link_all_deplibs, $1)=yes 7151 ;; 7152 7153 interix[[3-9]]*) 7154 _LT_TAGVAR(hardcode_direct, $1)=no 7155 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7156 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 7157 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7158 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7159 # Instead, shared libraries are loaded at an image base (0x10000000 by 7160 # default) and relocated if they conflict, which is a slow very memory 7161 # consuming and fragmenting process. To avoid this, we pick a random, 7162 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7163 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7164 _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' 7165 _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' 7166 ;; 7167 7168 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 7169 tmp_diet=no 7170 if test "$host_os" = linux-dietlibc; then 7171 case $cc_basename in 7172 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 7173 esac 7174 fi 7175 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 7176 && test "$tmp_diet" = no 7177 then 7178 tmp_addflag= 7179 tmp_sharedflag='-shared' 7180 case $cc_basename,$host_cpu in 7181 pgcc*) # Portland Group C compiler 7182 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 7183 tmp_addflag=' $pic_flag' 7184 ;; 7185 pgf77* | pgf90* | pgf95* | pgfortran*) 7186 # Portland Group f77 and f90 compilers 7187 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 7188 tmp_addflag=' $pic_flag -Mnomain' ;; 7189 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7190 tmp_addflag=' -i_dynamic' ;; 7191 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7192 tmp_addflag=' -i_dynamic -nofor_main' ;; 7193 ifc* | ifort*) # Intel Fortran compiler 7194 tmp_addflag=' -nofor_main' ;; 7195 lf95*) # Lahey Fortran 8.1 7196 _LT_TAGVAR(whole_archive_flag_spec, $1)= 7197 tmp_sharedflag='--shared' ;; 7198 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 7199 tmp_sharedflag='-qmkshrobj' 7200 tmp_addflag= ;; 7201 nvcc*) # Cuda Compiler Driver 2.2 7202 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 7203 _LT_TAGVAR(compiler_needs_object, $1)=yes 7204 ;; 7205 esac 7206 case `$CC -V 2>&1 | sed 5q` in 7207 *Sun\ C*) # Sun C 5.9 7208 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 7209 _LT_TAGVAR(compiler_needs_object, $1)=yes 7210 tmp_sharedflag='-G' ;; 7211 *Sun\ F*) # Sun Fortran 8.3 7212 tmp_sharedflag='-G' ;; 7213 esac 7214 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7215 7216 if test "x$supports_anon_versioning" = xyes; then 7217 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 7218 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7219 echo "local: *; };" >> $output_objdir/$libname.ver~ 7220 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7221 fi 7222 7223 case $cc_basename in 7224 xlf* | bgf* | bgxlf* | mpixlf*) 7225 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 7226 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' 7227 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 7228 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' 7229 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 7230 if test "x$supports_anon_versioning" = xyes; then 7231 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 7232 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7233 echo "local: *; };" >> $output_objdir/$libname.ver~ 7234 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 7235 fi 7236 ;; 7237 esac 7238 else 7239 _LT_TAGVAR(ld_shlibs, $1)=no 7240 fi 7241 ;; 7242 7243 netbsd*) 7244 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7245 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7246 wlarc= 7247 else 7248 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7249 _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' 7250 fi 7251 ;; 7252 7253 solaris*) 7254 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 7255 _LT_TAGVAR(ld_shlibs, $1)=no 7256 cat <<_LT_EOF 1>&2 7257 7258*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7259*** create shared libraries on Solaris systems. Therefore, libtool 7260*** is disabling shared libraries support. We urge you to upgrade GNU 7261*** binutils to release 2.9.1 or newer. Another option is to modify 7262*** your PATH or compiler configuration so that the native linker is 7263*** used, and then restart. 7264 7265_LT_EOF 7266 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7267 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7268 _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' 7269 else 7270 _LT_TAGVAR(ld_shlibs, $1)=no 7271 fi 7272 ;; 7273 7274 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7275 case `$LD -v 2>&1` in 7276 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 7277 _LT_TAGVAR(ld_shlibs, $1)=no 7278 cat <<_LT_EOF 1>&2 7279 7280*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7281*** reliably create shared libraries on SCO systems. Therefore, libtool 7282*** is disabling shared libraries support. We urge you to upgrade GNU 7283*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7284*** your PATH or compiler configuration so that the native linker is 7285*** used, and then restart. 7286 7287_LT_EOF 7288 ;; 7289 *) 7290 # For security reasons, it is highly recommended that you always 7291 # use absolute paths for naming shared libraries, and exclude the 7292 # DT_RUNPATH tag from executables and libraries. But doing so 7293 # requires that you compile everything twice, which is a pain. 7294 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7295 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7296 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7297 _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' 7298 else 7299 _LT_TAGVAR(ld_shlibs, $1)=no 7300 fi 7301 ;; 7302 esac 7303 ;; 7304 7305 sunos4*) 7306 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7307 wlarc= 7308 _LT_TAGVAR(hardcode_direct, $1)=yes 7309 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7310 ;; 7311 7312 *) 7313 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7314 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7315 _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' 7316 else 7317 _LT_TAGVAR(ld_shlibs, $1)=no 7318 fi 7319 ;; 7320 esac 7321 7322 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then 7323 runpath_var= 7324 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 7325 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 7326 _LT_TAGVAR(whole_archive_flag_spec, $1)= 7327 fi 7328 else 7329 # PORTME fill in a description of your system's linker (not GNU ld) 7330 case $host_os in 7331 aix3*) 7332 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7333 _LT_TAGVAR(always_export_symbols, $1)=yes 7334 _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' 7335 # Note: this linker hardcodes the directories in LIBPATH if there 7336 # are no directories specified by -L. 7337 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7338 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7339 # Neither direct hardcoding nor static linking is supported with a 7340 # broken collect2. 7341 _LT_TAGVAR(hardcode_direct, $1)=unsupported 7342 fi 7343 ;; 7344 7345 aix[[4-9]]*) 7346 if test "$host_cpu" = ia64; then 7347 # On IA64, the linker does run time linking by default, so we don't 7348 # have to do anything special. 7349 aix_use_runtimelinking=no 7350 exp_sym_flag='-Bexport' 7351 no_entry_flag="" 7352 else 7353 # If we're using GNU nm, then we don't want the "-C" option. 7354 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7355 # Also, AIX nm treats weak defined symbols like other global 7356 # defined symbols, whereas GNU nm marks them as "W". 7357 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 7358 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 7359 else 7360 _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' 7361 fi 7362 aix_use_runtimelinking=no 7363 7364 # Test if we are trying to use run time linking or normal 7365 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7366 # need to do runtime linking. 7367 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 7368 for ld_flag in $LDFLAGS; do 7369 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7370 aix_use_runtimelinking=yes 7371 break 7372 fi 7373 done 7374 ;; 7375 esac 7376 7377 exp_sym_flag='-bexport' 7378 no_entry_flag='-bnoentry' 7379 fi 7380 7381 # When large executables or shared objects are built, AIX ld can 7382 # have problems creating the table of contents. If linking a library 7383 # or program results in "error TOC overflow" add -mminimal-toc to 7384 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7385 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7386 7387 _LT_TAGVAR(archive_cmds, $1)='' 7388 _LT_TAGVAR(hardcode_direct, $1)=yes 7389 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7390 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 7391 _LT_TAGVAR(link_all_deplibs, $1)=yes 7392 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 7393 7394 if test "$GCC" = yes; then 7395 case $host_os in aix4.[[012]]|aix4.[[012]].*) 7396 # We only want to do this on AIX 4.2 and lower, the check 7397 # below for broken collect2 doesn't work under 4.3+ 7398 collect2name=`${CC} -print-prog-name=collect2` 7399 if test -f "$collect2name" && 7400 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 7401 then 7402 # We have reworked collect2 7403 : 7404 else 7405 # We have old collect2 7406 _LT_TAGVAR(hardcode_direct, $1)=unsupported 7407 # It fails to find uninstalled libraries when the uninstalled 7408 # path is not listed in the libpath. Setting hardcode_minus_L 7409 # to unsupported forces relinking 7410 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7411 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7412 _LT_TAGVAR(hardcode_libdir_separator, $1)= 7413 fi 7414 ;; 7415 esac 7416 shared_flag='-shared' 7417 if test "$aix_use_runtimelinking" = yes; then 7418 shared_flag="$shared_flag "'${wl}-G' 7419 fi 7420 else 7421 # not using gcc 7422 if test "$host_cpu" = ia64; then 7423 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7424 # chokes on -Wl,-G. The following line is correct: 7425 shared_flag='-G' 7426 else 7427 if test "$aix_use_runtimelinking" = yes; then 7428 shared_flag='${wl}-G' 7429 else 7430 shared_flag='${wl}-bM:SRE' 7431 fi 7432 fi 7433 fi 7434 7435 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 7436 # It seems that -bexpall does not export symbols beginning with 7437 # underscore (_), so it is better to generate a list of symbols to export. 7438 _LT_TAGVAR(always_export_symbols, $1)=yes 7439 if test "$aix_use_runtimelinking" = yes; then 7440 # Warning - without using the other runtime loading flags (-brtl), 7441 # -berok will link without error, but may produce a broken library. 7442 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 7443 # Determine the default libpath from the value encoded in an 7444 # empty executable. 7445 _LT_SYS_MODULE_PATH_AIX 7446 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 7447 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 7448 else 7449 if test "$host_cpu" = ia64; then 7450 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 7451 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 7452 _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" 7453 else 7454 # Determine the default libpath from the value encoded in an 7455 # empty executable. 7456 _LT_SYS_MODULE_PATH_AIX 7457 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 7458 # Warning - without using the other run time loading flags, 7459 # -berok will link without error, but may produce a broken library. 7460 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 7461 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 7462 if test "$with_gnu_ld" = yes; then 7463 # We only use this code for GNU lds that support --whole-archive. 7464 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 7465 else 7466 # Exported symbols can be pulled into shared objects from archives 7467 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 7468 fi 7469 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 7470 # This is similar to how AIX traditionally builds its shared libraries. 7471 _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' 7472 fi 7473 fi 7474 ;; 7475 7476 amigaos*) 7477 case $host_cpu in 7478 powerpc) 7479 # see comment about AmigaOS4 .so support 7480 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7481 _LT_TAGVAR(archive_expsym_cmds, $1)='' 7482 ;; 7483 m68k) 7484 _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)' 7485 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7486 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7487 ;; 7488 esac 7489 ;; 7490 7491 bsdi[[45]]*) 7492 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 7493 ;; 7494 7495 cygwin* | mingw* | pw32* | cegcc*) 7496 # When not using gcc, we currently assume that we are using 7497 # Microsoft Visual C++. 7498 # hardcode_libdir_flag_spec is actually meaningless, as there is 7499 # no search path for DLLs. 7500 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 7501 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7502 # Tell ltmain to make .lib files, not .a files. 7503 libext=lib 7504 # Tell ltmain to make .dll files, not .so files. 7505 shrext_cmds=".dll" 7506 # FIXME: Setting linknames here is a bad hack. 7507 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 7508 # The linker will automatically build a .lib file if we build a DLL. 7509 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 7510 # FIXME: Should let the user specify the lib program. 7511 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 7512 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' 7513 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 7514 ;; 7515 7516 darwin* | rhapsody*) 7517 _LT_DARWIN_LINKER_FEATURES($1) 7518 ;; 7519 7520 dgux*) 7521 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7522 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7523 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7524 ;; 7525 7526 freebsd1*) 7527 _LT_TAGVAR(ld_shlibs, $1)=no 7528 ;; 7529 7530 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7531 # support. Future versions do this automatically, but an explicit c++rt0.o 7532 # does not break anything, and helps significantly (at the cost of a little 7533 # extra space). 7534 freebsd2.2*) 7535 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7536 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7537 _LT_TAGVAR(hardcode_direct, $1)=yes 7538 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7539 ;; 7540 7541 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7542 freebsd2*) 7543 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7544 _LT_TAGVAR(hardcode_direct, $1)=yes 7545 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7546 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7547 ;; 7548 7549 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7550 freebsd* | dragonfly*) 7551 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7552 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7553 _LT_TAGVAR(hardcode_direct, $1)=yes 7554 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7555 ;; 7556 7557 hpux9*) 7558 if test "$GCC" = yes; then 7559 _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' 7560 else 7561 _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' 7562 fi 7563 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 7564 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7565 _LT_TAGVAR(hardcode_direct, $1)=yes 7566 7567 # hardcode_minus_L: Not really in the search PATH, 7568 # but as the default location of the library. 7569 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7570 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7571 ;; 7572 7573 hpux10*) 7574 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 7575 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7576 else 7577 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7578 fi 7579 if test "$with_gnu_ld" = no; then 7580 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 7581 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 7582 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7583 _LT_TAGVAR(hardcode_direct, $1)=yes 7584 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7585 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7586 # hardcode_minus_L: Not really in the search PATH, 7587 # but as the default location of the library. 7588 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7589 fi 7590 ;; 7591 7592 hpux11*) 7593 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 7594 case $host_cpu in 7595 hppa*64*) 7596 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7597 ;; 7598 ia64*) 7599 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7600 ;; 7601 *) 7602 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7603 ;; 7604 esac 7605 else 7606 case $host_cpu in 7607 hppa*64*) 7608 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7609 ;; 7610 ia64*) 7611 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7612 ;; 7613 *) 7614 m4_if($1, [], [ 7615 # Older versions of the 11.00 compiler do not understand -b yet 7616 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 7617 _LT_LINKER_OPTION([if $CC understands -b], 7618 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], 7619 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], 7620 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], 7621 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) 7622 ;; 7623 esac 7624 fi 7625 if test "$with_gnu_ld" = no; then 7626 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 7627 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7628 7629 case $host_cpu in 7630 hppa*64*|ia64*) 7631 _LT_TAGVAR(hardcode_direct, $1)=no 7632 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7633 ;; 7634 *) 7635 _LT_TAGVAR(hardcode_direct, $1)=yes 7636 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7637 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7638 7639 # hardcode_minus_L: Not really in the search PATH, 7640 # but as the default location of the library. 7641 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7642 ;; 7643 esac 7644 fi 7645 ;; 7646 7647 irix5* | irix6* | nonstopux*) 7648 if test "$GCC" = yes; then 7649 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7650 # Try to use the -exported_symbol ld option, if it does not 7651 # work, assume that -exports_file does not work either and 7652 # implicitly export all symbols. 7653 save_LDFLAGS="$LDFLAGS" 7654 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 7655 AC_LINK_IFELSE(int foo(void) {}, 7656 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 7657 ) 7658 LDFLAGS="$save_LDFLAGS" 7659 else 7660 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 7661 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 7662 fi 7663 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 7664 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7665 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7666 _LT_TAGVAR(inherit_rpath, $1)=yes 7667 _LT_TAGVAR(link_all_deplibs, $1)=yes 7668 ;; 7669 7670 netbsd*) 7671 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7672 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7673 else 7674 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7675 fi 7676 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7677 _LT_TAGVAR(hardcode_direct, $1)=yes 7678 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7679 ;; 7680 7681 newsos6) 7682 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7683 _LT_TAGVAR(hardcode_direct, $1)=yes 7684 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7685 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7686 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7687 ;; 7688 7689 *nto* | *qnx*) 7690 ;; 7691 7692 openbsd*) 7693 if test -f /usr/libexec/ld.so; then 7694 _LT_TAGVAR(hardcode_direct, $1)=yes 7695 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7696 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7697 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7698 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7699 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7700 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 7701 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7702 else 7703 case $host_os in 7704 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 7705 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7706 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7707 ;; 7708 *) 7709 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7710 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 7711 ;; 7712 esac 7713 fi 7714 else 7715 _LT_TAGVAR(ld_shlibs, $1)=no 7716 fi 7717 ;; 7718 7719 os2*) 7720 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7721 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7722 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7723 _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' 7724 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7725 ;; 7726 7727 osf3*) 7728 if test "$GCC" = yes; then 7729 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 7730 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7731 else 7732 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 7733 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 7734 fi 7735 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 7736 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7737 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7738 ;; 7739 7740 osf4* | osf5*) # as osf3* with the addition of -msym flag 7741 if test "$GCC" = yes; then 7742 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 7743 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7744 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7745 else 7746 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 7747 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 7748 _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~ 7749 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 7750 7751 # Both c and cxx compiler support -rpath directly 7752 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 7753 fi 7754 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 7755 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7756 ;; 7757 7758 solaris*) 7759 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' 7760 if test "$GCC" = yes; then 7761 wlarc='${wl}' 7762 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7763 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7764 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 7765 else 7766 case `$CC -V 2>&1` in 7767 *"Compilers 5.0"*) 7768 wlarc='' 7769 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7770 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7771 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 7772 ;; 7773 *) 7774 wlarc='${wl}' 7775 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 7776 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7777 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 7778 ;; 7779 esac 7780 fi 7781 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7782 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7783 case $host_os in 7784 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 7785 *) 7786 # The compiler driver will combine and reorder linker options, 7787 # but understands `-z linker_flag'. GCC discards it without `$wl', 7788 # but is careful enough not to reorder. 7789 # Supported since Solaris 2.6 (maybe 2.5.1?) 7790 if test "$GCC" = yes; then 7791 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 7792 else 7793 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 7794 fi 7795 ;; 7796 esac 7797 _LT_TAGVAR(link_all_deplibs, $1)=yes 7798 ;; 7799 7800 sunos4*) 7801 if test "x$host_vendor" = xsequent; then 7802 # Use $CC to link under sequent, because it throws in some extra .o 7803 # files that make .init and .fini sections work. 7804 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7805 else 7806 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7807 fi 7808 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7809 _LT_TAGVAR(hardcode_direct, $1)=yes 7810 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7811 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7812 ;; 7813 7814 sysv4) 7815 case $host_vendor in 7816 sni) 7817 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7818 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 7819 ;; 7820 siemens) 7821 ## LD is ld it makes a PLAMLIB 7822 ## CC just makes a GrossModule. 7823 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7824 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 7825 _LT_TAGVAR(hardcode_direct, $1)=no 7826 ;; 7827 motorola) 7828 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7829 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 7830 ;; 7831 esac 7832 runpath_var='LD_RUN_PATH' 7833 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7834 ;; 7835 7836 sysv4.3*) 7837 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7838 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7839 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 7840 ;; 7841 7842 sysv4*MP*) 7843 if test -d /usr/nec; then 7844 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7845 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7846 runpath_var=LD_RUN_PATH 7847 hardcode_runpath_var=yes 7848 _LT_TAGVAR(ld_shlibs, $1)=yes 7849 fi 7850 ;; 7851 7852 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 7853 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 7854 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7855 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7856 runpath_var='LD_RUN_PATH' 7857 7858 if test "$GCC" = yes; then 7859 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7860 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7861 else 7862 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7863 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7864 fi 7865 ;; 7866 7867 sysv5* | sco3.2v5* | sco5v6*) 7868 # Note: We can NOT use -z defs as we might desire, because we do not 7869 # link with -lc, and that would cause any symbols used from libc to 7870 # always be unresolved, which means just about no library would 7871 # ever link correctly. If we're not using GNU ld we use -z text 7872 # though, which does catch some bad symbols but isn't as heavy-handed 7873 # as -z defs. 7874 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 7875 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 7876 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7877 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7878 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 7879 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 7880 _LT_TAGVAR(link_all_deplibs, $1)=yes 7881 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 7882 runpath_var='LD_RUN_PATH' 7883 7884 if test "$GCC" = yes; then 7885 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7886 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7887 else 7888 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7889 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7890 fi 7891 ;; 7892 7893 uts4*) 7894 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7895 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7896 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7897 ;; 7898 7899 *) 7900 _LT_TAGVAR(ld_shlibs, $1)=no 7901 ;; 7902 esac 7903 7904 if test x$host_vendor = xsni; then 7905 case $host in 7906 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 7907 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' 7908 ;; 7909 esac 7910 fi 7911 fi 7912]) 7913AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 7914test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 7915 7916_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld 7917 7918_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl 7919_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl 7920_LT_DECL([], [extract_expsyms_cmds], [2], 7921 [The commands to extract the exported symbol list from a shared archive]) 7922 7923# 7924# Do we need to explicitly link libc? 7925# 7926case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in 7927x|xyes) 7928 # Assume -lc should be added 7929 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 7930 7931 if test "$enable_shared" = yes && test "$GCC" = yes; then 7932 case $_LT_TAGVAR(archive_cmds, $1) in 7933 *'~'*) 7934 # FIXME: we may have to deal with multi-command sequences. 7935 ;; 7936 '$CC '*) 7937 # Test whether the compiler implicitly links with -lc since on some 7938 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7939 # to ld, don't add -lc before -lgcc. 7940 AC_CACHE_CHECK([whether -lc should be explicitly linked in], 7941 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), 7942 [$RM conftest* 7943 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7944 7945 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 7946 soname=conftest 7947 lib=conftest 7948 libobjs=conftest.$ac_objext 7949 deplibs= 7950 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) 7951 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) 7952 compiler_flags=-v 7953 linker_flags=-v 7954 verstring= 7955 output_objdir=. 7956 libname=conftest 7957 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) 7958 _LT_TAGVAR(allow_undefined_flag, $1)= 7959 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 7960 then 7961 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7962 else 7963 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes 7964 fi 7965 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 7966 else 7967 cat conftest.err 1>&5 7968 fi 7969 $RM conftest* 7970 ]) 7971 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) 7972 ;; 7973 esac 7974 fi 7975 ;; 7976esac 7977 7978_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], 7979 [Whether or not to add -lc for building shared libraries]) 7980_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], 7981 [enable_shared_with_static_runtimes], [0], 7982 [Whether or not to disallow shared libs when runtime libs are static]) 7983_LT_TAGDECL([], [export_dynamic_flag_spec], [1], 7984 [Compiler flag to allow reflexive dlopens]) 7985_LT_TAGDECL([], [whole_archive_flag_spec], [1], 7986 [Compiler flag to generate shared objects directly from archives]) 7987_LT_TAGDECL([], [compiler_needs_object], [1], 7988 [Whether the compiler copes with passing no objects directly]) 7989_LT_TAGDECL([], [old_archive_from_new_cmds], [2], 7990 [Create an old-style archive from a shared archive]) 7991_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], 7992 [Create a temporary old-style archive to link instead of a shared archive]) 7993_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) 7994_LT_TAGDECL([], [archive_expsym_cmds], [2]) 7995_LT_TAGDECL([], [module_cmds], [2], 7996 [Commands used to build a loadable module if different from building 7997 a shared archive.]) 7998_LT_TAGDECL([], [module_expsym_cmds], [2]) 7999_LT_TAGDECL([], [with_gnu_ld], [1], 8000 [Whether we are building with GNU ld or not]) 8001_LT_TAGDECL([], [allow_undefined_flag], [1], 8002 [Flag that allows shared libraries with undefined symbols to be built]) 8003_LT_TAGDECL([], [no_undefined_flag], [1], 8004 [Flag that enforces no undefined symbols]) 8005_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], 8006 [Flag to hardcode $libdir into a binary during linking. 8007 This must work even if $libdir does not exist]) 8008_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], 8009 [[If ld is used when linking, flag to hardcode $libdir into a binary 8010 during linking. This must work even if $libdir does not exist]]) 8011_LT_TAGDECL([], [hardcode_libdir_separator], [1], 8012 [Whether we need a single "-rpath" flag with a separated argument]) 8013_LT_TAGDECL([], [hardcode_direct], [0], 8014 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 8015 DIR into the resulting binary]) 8016_LT_TAGDECL([], [hardcode_direct_absolute], [0], 8017 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 8018 DIR into the resulting binary and the resulting library dependency is 8019 "absolute", i.e impossible to change by setting ${shlibpath_var} if the 8020 library is relocated]) 8021_LT_TAGDECL([], [hardcode_minus_L], [0], 8022 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR 8023 into the resulting binary]) 8024_LT_TAGDECL([], [hardcode_shlibpath_var], [0], 8025 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 8026 into the resulting binary]) 8027_LT_TAGDECL([], [hardcode_automatic], [0], 8028 [Set to "yes" if building a shared library automatically hardcodes DIR 8029 into the library and all subsequent libraries and executables linked 8030 against it]) 8031_LT_TAGDECL([], [inherit_rpath], [0], 8032 [Set to yes if linker adds runtime paths of dependent libraries 8033 to runtime path list]) 8034_LT_TAGDECL([], [link_all_deplibs], [0], 8035 [Whether libtool must link a program against all its dependency libraries]) 8036_LT_TAGDECL([], [fix_srcfile_path], [1], 8037 [Fix the shell variable $srcfile for the compiler]) 8038_LT_TAGDECL([], [always_export_symbols], [0], 8039 [Set to "yes" if exported symbols are required]) 8040_LT_TAGDECL([], [export_symbols_cmds], [2], 8041 [The commands to list exported symbols]) 8042_LT_TAGDECL([], [exclude_expsyms], [1], 8043 [Symbols that should not be listed in the preloaded symbols]) 8044_LT_TAGDECL([], [include_expsyms], [1], 8045 [Symbols that must always be exported]) 8046_LT_TAGDECL([], [prelink_cmds], [2], 8047 [Commands necessary for linking programs (against libraries) with templates]) 8048_LT_TAGDECL([], [file_list_spec], [1], 8049 [Specify filename containing input files]) 8050dnl FIXME: Not yet implemented 8051dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], 8052dnl [Compiler flag to generate thread safe objects]) 8053])# _LT_LINKER_SHLIBS 8054 8055 8056# _LT_LANG_C_CONFIG([TAG]) 8057# ------------------------ 8058# Ensure that the configuration variables for a C compiler are suitably 8059# defined. These variables are subsequently used by _LT_CONFIG to write 8060# the compiler configuration to `libtool'. 8061m4_defun([_LT_LANG_C_CONFIG], 8062[m4_require([_LT_DECL_EGREP])dnl 8063lt_save_CC="$CC" 8064AC_LANG_PUSH(C) 8065 8066# Source file extension for C test sources. 8067ac_ext=c 8068 8069# Object file extension for compiled C test sources. 8070objext=o 8071_LT_TAGVAR(objext, $1)=$objext 8072 8073# Code to be used in simple compile tests 8074lt_simple_compile_test_code="int some_variable = 0;" 8075 8076# Code to be used in simple link tests 8077lt_simple_link_test_code='int main(){return(0);}' 8078 8079_LT_TAG_COMPILER 8080# Save the default compiler, since it gets overwritten when the other 8081# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8082compiler_DEFAULT=$CC 8083 8084# save warnings/boilerplate of simple test code 8085_LT_COMPILER_BOILERPLATE 8086_LT_LINKER_BOILERPLATE 8087 8088if test -n "$compiler"; then 8089 _LT_COMPILER_NO_RTTI($1) 8090 _LT_COMPILER_PIC($1) 8091 _LT_COMPILER_C_O($1) 8092 _LT_COMPILER_FILE_LOCKS($1) 8093 _LT_LINKER_SHLIBS($1) 8094 _LT_SYS_DYNAMIC_LINKER($1) 8095 _LT_LINKER_HARDCODE_LIBPATH($1) 8096 LT_SYS_DLOPEN_SELF 8097 _LT_CMD_STRIPLIB 8098 8099 # Report which library types will actually be built 8100 AC_MSG_CHECKING([if libtool supports shared libraries]) 8101 AC_MSG_RESULT([$can_build_shared]) 8102 8103 AC_MSG_CHECKING([whether to build shared libraries]) 8104 test "$can_build_shared" = "no" && enable_shared=no 8105 8106 # On AIX, shared libraries and static libraries use the same namespace, and 8107 # are all built from PIC. 8108 case $host_os in 8109 aix3*) 8110 test "$enable_shared" = yes && enable_static=no 8111 if test -n "$RANLIB"; then 8112 archive_cmds="$archive_cmds~\$RANLIB \$lib" 8113 postinstall_cmds='$RANLIB $lib' 8114 fi 8115 ;; 8116 8117 aix[[4-9]]*) 8118 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 8119 test "$enable_shared" = yes && enable_static=no 8120 fi 8121 ;; 8122 esac 8123 AC_MSG_RESULT([$enable_shared]) 8124 8125 AC_MSG_CHECKING([whether to build static libraries]) 8126 # Make sure either enable_shared or enable_static is yes. 8127 test "$enable_shared" = yes || enable_static=yes 8128 AC_MSG_RESULT([$enable_static]) 8129 8130 _LT_CONFIG($1) 8131fi 8132AC_LANG_POP 8133CC="$lt_save_CC" 8134])# _LT_LANG_C_CONFIG 8135 8136 8137# _LT_LANG_CXX_CONFIG([TAG]) 8138# -------------------------- 8139# Ensure that the configuration variables for a C++ compiler are suitably 8140# defined. These variables are subsequently used by _LT_CONFIG to write 8141# the compiler configuration to `libtool'. 8142m4_defun([_LT_LANG_CXX_CONFIG], 8143[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 8144m4_require([_LT_DECL_EGREP])dnl 8145if test -n "$CXX" && ( test "X$CXX" != "Xno" && 8146 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 8147 (test "X$CXX" != "Xg++"))) ; then 8148 AC_PROG_CXXCPP 8149else 8150 _lt_caught_CXX_error=yes 8151fi 8152 8153AC_LANG_PUSH(C++) 8154_LT_TAGVAR(archive_cmds_need_lc, $1)=no 8155_LT_TAGVAR(allow_undefined_flag, $1)= 8156_LT_TAGVAR(always_export_symbols, $1)=no 8157_LT_TAGVAR(archive_expsym_cmds, $1)= 8158_LT_TAGVAR(compiler_needs_object, $1)=no 8159_LT_TAGVAR(export_dynamic_flag_spec, $1)= 8160_LT_TAGVAR(hardcode_direct, $1)=no 8161_LT_TAGVAR(hardcode_direct_absolute, $1)=no 8162_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 8163_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 8164_LT_TAGVAR(hardcode_libdir_separator, $1)= 8165_LT_TAGVAR(hardcode_minus_L, $1)=no 8166_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 8167_LT_TAGVAR(hardcode_automatic, $1)=no 8168_LT_TAGVAR(inherit_rpath, $1)=no 8169_LT_TAGVAR(module_cmds, $1)= 8170_LT_TAGVAR(module_expsym_cmds, $1)= 8171_LT_TAGVAR(link_all_deplibs, $1)=unknown 8172_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 8173_LT_TAGVAR(reload_flag, $1)=$reload_flag 8174_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 8175_LT_TAGVAR(no_undefined_flag, $1)= 8176_LT_TAGVAR(whole_archive_flag_spec, $1)= 8177_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 8178 8179# Source file extension for C++ test sources. 8180ac_ext=cpp 8181 8182# Object file extension for compiled C++ test sources. 8183objext=o 8184_LT_TAGVAR(objext, $1)=$objext 8185 8186# No sense in running all these tests if we already determined that 8187# the CXX compiler isn't working. Some variables (like enable_shared) 8188# are currently assumed to apply to all compilers on this platform, 8189# and will be corrupted by setting them based on a non-working compiler. 8190if test "$_lt_caught_CXX_error" != yes; then 8191 # Code to be used in simple compile tests 8192 lt_simple_compile_test_code="int some_variable = 0;" 8193 8194 # Code to be used in simple link tests 8195 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 8196 8197 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 8198 _LT_TAG_COMPILER 8199 8200 # save warnings/boilerplate of simple test code 8201 _LT_COMPILER_BOILERPLATE 8202 _LT_LINKER_BOILERPLATE 8203 8204 # Allow CC to be a program name with arguments. 8205 lt_save_CC=$CC 8206 lt_save_LD=$LD 8207 lt_save_GCC=$GCC 8208 GCC=$GXX 8209 lt_save_with_gnu_ld=$with_gnu_ld 8210 lt_save_path_LD=$lt_cv_path_LD 8211 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 8212 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 8213 else 8214 $as_unset lt_cv_prog_gnu_ld 8215 fi 8216 if test -n "${lt_cv_path_LDCXX+set}"; then 8217 lt_cv_path_LD=$lt_cv_path_LDCXX 8218 else 8219 $as_unset lt_cv_path_LD 8220 fi 8221 test -z "${LDCXX+set}" || LD=$LDCXX 8222 CC=${CXX-"c++"} 8223 compiler=$CC 8224 _LT_TAGVAR(compiler, $1)=$CC 8225 _LT_CC_BASENAME([$compiler]) 8226 8227 if test -n "$compiler"; then 8228 # We don't want -fno-exception when compiling C++ code, so set the 8229 # no_builtin_flag separately 8230 if test "$GXX" = yes; then 8231 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 8232 else 8233 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 8234 fi 8235 8236 if test "$GXX" = yes; then 8237 # Set up default GNU C++ configuration 8238 8239 LT_PATH_LD 8240 8241 # Check if GNU C++ uses GNU ld as the underlying linker, since the 8242 # archiving commands below assume that GNU ld is being used. 8243 if test "$with_gnu_ld" = yes; then 8244 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 8245 _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' 8246 8247 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 8248 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 8249 8250 # If archive_cmds runs LD, not CC, wlarc should be empty 8251 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 8252 # investigate it a little bit more. (MM) 8253 wlarc='${wl}' 8254 8255 # ancient GNU ld didn't support --whole-archive et. al. 8256 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 8257 $GREP 'no-whole-archive' > /dev/null; then 8258 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8259 else 8260 _LT_TAGVAR(whole_archive_flag_spec, $1)= 8261 fi 8262 else 8263 with_gnu_ld=no 8264 wlarc= 8265 8266 # A generic and very simple default shared library creation 8267 # command for GNU C++ for the case where it uses the native 8268 # linker, instead of GNU ld. If possible, this setting should 8269 # overridden to take advantage of the native linker features on 8270 # the platform it is being used on. 8271 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 8272 fi 8273 8274 # Commands to make compiler produce verbose output that lists 8275 # what "hidden" libraries, object files and flags are used when 8276 # linking a shared library. 8277 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 8278 8279 else 8280 GXX=no 8281 with_gnu_ld=no 8282 wlarc= 8283 fi 8284 8285 # PORTME: fill in a description of your system's C++ link characteristics 8286 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 8287 _LT_TAGVAR(ld_shlibs, $1)=yes 8288 case $host_os in 8289 aix3*) 8290 # FIXME: insert proper C++ library support 8291 _LT_TAGVAR(ld_shlibs, $1)=no 8292 ;; 8293 aix[[4-9]]*) 8294 if test "$host_cpu" = ia64; then 8295 # On IA64, the linker does run time linking by default, so we don't 8296 # have to do anything special. 8297 aix_use_runtimelinking=no 8298 exp_sym_flag='-Bexport' 8299 no_entry_flag="" 8300 else 8301 aix_use_runtimelinking=no 8302 8303 # Test if we are trying to use run time linking or normal 8304 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8305 # need to do runtime linking. 8306 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 8307 for ld_flag in $LDFLAGS; do 8308 case $ld_flag in 8309 *-brtl*) 8310 aix_use_runtimelinking=yes 8311 break 8312 ;; 8313 esac 8314 done 8315 ;; 8316 esac 8317 8318 exp_sym_flag='-bexport' 8319 no_entry_flag='-bnoentry' 8320 fi 8321 8322 # When large executables or shared objects are built, AIX ld can 8323 # have problems creating the table of contents. If linking a library 8324 # or program results in "error TOC overflow" add -mminimal-toc to 8325 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8326 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8327 8328 _LT_TAGVAR(archive_cmds, $1)='' 8329 _LT_TAGVAR(hardcode_direct, $1)=yes 8330 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 8331 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 8332 _LT_TAGVAR(link_all_deplibs, $1)=yes 8333 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 8334 8335 if test "$GXX" = yes; then 8336 case $host_os in aix4.[[012]]|aix4.[[012]].*) 8337 # We only want to do this on AIX 4.2 and lower, the check 8338 # below for broken collect2 doesn't work under 4.3+ 8339 collect2name=`${CC} -print-prog-name=collect2` 8340 if test -f "$collect2name" && 8341 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8342 then 8343 # We have reworked collect2 8344 : 8345 else 8346 # We have old collect2 8347 _LT_TAGVAR(hardcode_direct, $1)=unsupported 8348 # It fails to find uninstalled libraries when the uninstalled 8349 # path is not listed in the libpath. Setting hardcode_minus_L 8350 # to unsupported forces relinking 8351 _LT_TAGVAR(hardcode_minus_L, $1)=yes 8352 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 8353 _LT_TAGVAR(hardcode_libdir_separator, $1)= 8354 fi 8355 esac 8356 shared_flag='-shared' 8357 if test "$aix_use_runtimelinking" = yes; then 8358 shared_flag="$shared_flag "'${wl}-G' 8359 fi 8360 else 8361 # not using gcc 8362 if test "$host_cpu" = ia64; then 8363 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8364 # chokes on -Wl,-G. The following line is correct: 8365 shared_flag='-G' 8366 else 8367 if test "$aix_use_runtimelinking" = yes; then 8368 shared_flag='${wl}-G' 8369 else 8370 shared_flag='${wl}-bM:SRE' 8371 fi 8372 fi 8373 fi 8374 8375 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 8376 # It seems that -bexpall does not export symbols beginning with 8377 # underscore (_), so it is better to generate a list of symbols to 8378 # export. 8379 _LT_TAGVAR(always_export_symbols, $1)=yes 8380 if test "$aix_use_runtimelinking" = yes; then 8381 # Warning - without using the other runtime loading flags (-brtl), 8382 # -berok will link without error, but may produce a broken library. 8383 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 8384 # Determine the default libpath from the value encoded in an empty 8385 # executable. 8386 _LT_SYS_MODULE_PATH_AIX 8387 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 8388 8389 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8390 else 8391 if test "$host_cpu" = ia64; then 8392 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 8393 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 8394 _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" 8395 else 8396 # Determine the default libpath from the value encoded in an 8397 # empty executable. 8398 _LT_SYS_MODULE_PATH_AIX 8399 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 8400 # Warning - without using the other run time loading flags, 8401 # -berok will link without error, but may produce a broken library. 8402 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 8403 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 8404 if test "$with_gnu_ld" = yes; then 8405 # We only use this code for GNU lds that support --whole-archive. 8406 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 8407 else 8408 # Exported symbols can be pulled into shared objects from archives 8409 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 8410 fi 8411 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 8412 # This is similar to how AIX traditionally builds its shared 8413 # libraries. 8414 _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' 8415 fi 8416 fi 8417 ;; 8418 8419 beos*) 8420 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8421 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 8422 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8423 # support --undefined. This deserves some investigation. FIXME 8424 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8425 else 8426 _LT_TAGVAR(ld_shlibs, $1)=no 8427 fi 8428 ;; 8429 8430 chorus*) 8431 case $cc_basename in 8432 *) 8433 # FIXME: insert proper C++ library support 8434 _LT_TAGVAR(ld_shlibs, $1)=no 8435 ;; 8436 esac 8437 ;; 8438 8439 cygwin* | mingw* | pw32* | cegcc*) 8440 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 8441 # as there is no search path for DLLs. 8442 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 8443 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' 8444 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 8445 _LT_TAGVAR(always_export_symbols, $1)=no 8446 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 8447 8448 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8449 _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' 8450 # If the export-symbols file already is a .def file (1st line 8451 # is EXPORTS), use it as is; otherwise, prepend... 8452 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8453 cp $export_symbols $output_objdir/$soname.def; 8454 else 8455 echo EXPORTS > $output_objdir/$soname.def; 8456 cat $export_symbols >> $output_objdir/$soname.def; 8457 fi~ 8458 $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' 8459 else 8460 _LT_TAGVAR(ld_shlibs, $1)=no 8461 fi 8462 ;; 8463 darwin* | rhapsody*) 8464 _LT_DARWIN_LINKER_FEATURES($1) 8465 ;; 8466 8467 dgux*) 8468 case $cc_basename in 8469 ec++*) 8470 # FIXME: insert proper C++ library support 8471 _LT_TAGVAR(ld_shlibs, $1)=no 8472 ;; 8473 ghcx*) 8474 # Green Hills C++ Compiler 8475 # FIXME: insert proper C++ library support 8476 _LT_TAGVAR(ld_shlibs, $1)=no 8477 ;; 8478 *) 8479 # FIXME: insert proper C++ library support 8480 _LT_TAGVAR(ld_shlibs, $1)=no 8481 ;; 8482 esac 8483 ;; 8484 8485 freebsd[[12]]*) 8486 # C++ shared libraries reported to be fairly broken before 8487 # switch to ELF 8488 _LT_TAGVAR(ld_shlibs, $1)=no 8489 ;; 8490 8491 freebsd-elf*) 8492 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 8493 ;; 8494 8495 freebsd* | dragonfly*) 8496 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 8497 # conventions 8498 _LT_TAGVAR(ld_shlibs, $1)=yes 8499 ;; 8500 8501 gnu*) 8502 ;; 8503 8504 haiku*) 8505 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8506 _LT_TAGVAR(link_all_deplibs, $1)=yes 8507 ;; 8508 8509 hpux9*) 8510 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 8511 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8512 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 8513 _LT_TAGVAR(hardcode_direct, $1)=yes 8514 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 8515 # but as the default 8516 # location of the library. 8517 8518 case $cc_basename in 8519 CC*) 8520 # FIXME: insert proper C++ library support 8521 _LT_TAGVAR(ld_shlibs, $1)=no 8522 ;; 8523 aCC*) 8524 _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' 8525 # Commands to make compiler produce verbose output that lists 8526 # what "hidden" libraries, object files and flags are used when 8527 # linking a shared library. 8528 # 8529 # There doesn't appear to be a way to prevent this compiler from 8530 # explicitly linking system object files so we need to strip them 8531 # from the output so that they don't get included in the library 8532 # dependencies. 8533 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 8534 ;; 8535 *) 8536 if test "$GXX" = yes; then 8537 _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' 8538 else 8539 # FIXME: insert proper C++ library support 8540 _LT_TAGVAR(ld_shlibs, $1)=no 8541 fi 8542 ;; 8543 esac 8544 ;; 8545 8546 hpux10*|hpux11*) 8547 if test $with_gnu_ld = no; then 8548 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 8549 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8550 8551 case $host_cpu in 8552 hppa*64*|ia64*) 8553 ;; 8554 *) 8555 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 8556 ;; 8557 esac 8558 fi 8559 case $host_cpu in 8560 hppa*64*|ia64*) 8561 _LT_TAGVAR(hardcode_direct, $1)=no 8562 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8563 ;; 8564 *) 8565 _LT_TAGVAR(hardcode_direct, $1)=yes 8566 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 8567 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 8568 # but as the default 8569 # location of the library. 8570 ;; 8571 esac 8572 8573 case $cc_basename in 8574 CC*) 8575 # FIXME: insert proper C++ library support 8576 _LT_TAGVAR(ld_shlibs, $1)=no 8577 ;; 8578 aCC*) 8579 case $host_cpu in 8580 hppa*64*) 8581 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8582 ;; 8583 ia64*) 8584 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8585 ;; 8586 *) 8587 _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' 8588 ;; 8589 esac 8590 # Commands to make compiler produce verbose output that lists 8591 # what "hidden" libraries, object files and flags are used when 8592 # linking a shared library. 8593 # 8594 # There doesn't appear to be a way to prevent this compiler from 8595 # explicitly linking system object files so we need to strip them 8596 # from the output so that they don't get included in the library 8597 # dependencies. 8598 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 8599 ;; 8600 *) 8601 if test "$GXX" = yes; then 8602 if test $with_gnu_ld = no; then 8603 case $host_cpu in 8604 hppa*64*) 8605 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8606 ;; 8607 ia64*) 8608 _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' 8609 ;; 8610 *) 8611 _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' 8612 ;; 8613 esac 8614 fi 8615 else 8616 # FIXME: insert proper C++ library support 8617 _LT_TAGVAR(ld_shlibs, $1)=no 8618 fi 8619 ;; 8620 esac 8621 ;; 8622 8623 interix[[3-9]]*) 8624 _LT_TAGVAR(hardcode_direct, $1)=no 8625 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8626 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 8627 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 8628 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8629 # Instead, shared libraries are loaded at an image base (0x10000000 by 8630 # default) and relocated if they conflict, which is a slow very memory 8631 # consuming and fragmenting process. To avoid this, we pick a random, 8632 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8633 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8634 _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' 8635 _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' 8636 ;; 8637 irix5* | irix6*) 8638 case $cc_basename in 8639 CC*) 8640 # SGI C++ 8641 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 8642 8643 # Archives containing C++ object files must be created using 8644 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 8645 # necessary to make sure instantiated templates are included 8646 # in the archive. 8647 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 8648 ;; 8649 *) 8650 if test "$GXX" = yes; then 8651 if test "$with_gnu_ld" = no; then 8652 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8653 else 8654 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 8655 fi 8656 fi 8657 _LT_TAGVAR(link_all_deplibs, $1)=yes 8658 ;; 8659 esac 8660 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 8661 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8662 _LT_TAGVAR(inherit_rpath, $1)=yes 8663 ;; 8664 8665 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8666 case $cc_basename in 8667 KCC*) 8668 # Kuck and Associates, Inc. (KAI) C++ Compiler 8669 8670 # KCC will only create a shared library if the output file 8671 # ends with ".so" (or ".sl" for HP-UX), so rename the library 8672 # to its proper name (with version) after linking. 8673 _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' 8674 _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' 8675 # Commands to make compiler produce verbose output that lists 8676 # what "hidden" libraries, object files and flags are used when 8677 # linking a shared library. 8678 # 8679 # There doesn't appear to be a way to prevent this compiler from 8680 # explicitly linking system object files so we need to strip them 8681 # from the output so that they don't get included in the library 8682 # dependencies. 8683 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 8684 8685 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 8686 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 8687 8688 # Archives containing C++ object files must be created using 8689 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 8690 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 8691 ;; 8692 icpc* | ecpc* ) 8693 # Intel C++ 8694 with_gnu_ld=yes 8695 # version 8.0 and above of icpc choke on multiply defined symbols 8696 # if we add $predep_objects and $postdep_objects, however 7.1 and 8697 # earlier do not add the objects themselves. 8698 case `$CC -V 2>&1` in 8699 *"Version 7."*) 8700 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 8701 _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' 8702 ;; 8703 *) # Version 8.0 or newer 8704 tmp_idyn= 8705 case $host_cpu in 8706 ia64*) tmp_idyn=' -i_dynamic';; 8707 esac 8708 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8709 _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' 8710 ;; 8711 esac 8712 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 8713 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 8714 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 8715 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 8716 ;; 8717 pgCC* | pgcpp*) 8718 # Portland Group C++ compiler 8719 case `$CC -V` in 8720 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) 8721 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 8722 rm -rf $tpldir~ 8723 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 8724 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 8725 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 8726 rm -rf $tpldir~ 8727 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 8728 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 8729 $RANLIB $oldlib' 8730 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 8731 rm -rf $tpldir~ 8732 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 8733 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 8734 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 8735 rm -rf $tpldir~ 8736 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 8737 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 8738 ;; 8739 *) # Version 6 and above use weak symbols 8740 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 8741 _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' 8742 ;; 8743 esac 8744 8745 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 8746 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 8747 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8748 ;; 8749 cxx*) 8750 # Compaq C++ 8751 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 8752 _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' 8753 8754 runpath_var=LD_RUN_PATH 8755 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 8756 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8757 8758 # Commands to make compiler produce verbose output that lists 8759 # what "hidden" libraries, object files and flags are used when 8760 # linking a shared library. 8761 # 8762 # There doesn't appear to be a way to prevent this compiler from 8763 # explicitly linking system object files so we need to strip them 8764 # from the output so that they don't get included in the library 8765 # dependencies. 8766 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 8767 ;; 8768 xl* | mpixl* | bgxl*) 8769 # IBM XL 8.0 on PPC, with GNU ld 8770 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 8771 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 8772 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8773 if test "x$supports_anon_versioning" = xyes; then 8774 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 8775 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8776 echo "local: *; };" >> $output_objdir/$libname.ver~ 8777 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8778 fi 8779 ;; 8780 *) 8781 case `$CC -V 2>&1 | sed 5q` in 8782 *Sun\ C*) 8783 # Sun C++ 5.9 8784 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 8785 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8786 _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' 8787 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 8788 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8789 _LT_TAGVAR(compiler_needs_object, $1)=yes 8790 8791 # Not sure whether something based on 8792 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 8793 # would be better. 8794 output_verbose_link_cmd='func_echo_all' 8795 8796 # Archives containing C++ object files must be created using 8797 # "CC -xar", where "CC" is the Sun C++ compiler. This is 8798 # necessary to make sure instantiated templates are included 8799 # in the archive. 8800 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 8801 ;; 8802 esac 8803 ;; 8804 esac 8805 ;; 8806 8807 lynxos*) 8808 # FIXME: insert proper C++ library support 8809 _LT_TAGVAR(ld_shlibs, $1)=no 8810 ;; 8811 8812 m88k*) 8813 # FIXME: insert proper C++ library support 8814 _LT_TAGVAR(ld_shlibs, $1)=no 8815 ;; 8816 8817 mvs*) 8818 case $cc_basename in 8819 cxx*) 8820 # FIXME: insert proper C++ library support 8821 _LT_TAGVAR(ld_shlibs, $1)=no 8822 ;; 8823 *) 8824 # FIXME: insert proper C++ library support 8825 _LT_TAGVAR(ld_shlibs, $1)=no 8826 ;; 8827 esac 8828 ;; 8829 8830 netbsd*) 8831 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8832 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 8833 wlarc= 8834 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 8835 _LT_TAGVAR(hardcode_direct, $1)=yes 8836 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8837 fi 8838 # Workaround some broken pre-1.5 toolchains 8839 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 8840 ;; 8841 8842 *nto* | *qnx*) 8843 _LT_TAGVAR(ld_shlibs, $1)=yes 8844 ;; 8845 8846 openbsd2*) 8847 # C++ shared libraries are fairly broken 8848 _LT_TAGVAR(ld_shlibs, $1)=no 8849 ;; 8850 8851 openbsd*) 8852 if test -f /usr/libexec/ld.so; then 8853 _LT_TAGVAR(hardcode_direct, $1)=yes 8854 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8855 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 8856 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 8857 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 8858 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8859 _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' 8860 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 8861 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8862 fi 8863 output_verbose_link_cmd=func_echo_all 8864 else 8865 _LT_TAGVAR(ld_shlibs, $1)=no 8866 fi 8867 ;; 8868 8869 osf3* | osf4* | osf5*) 8870 case $cc_basename in 8871 KCC*) 8872 # Kuck and Associates, Inc. (KAI) C++ Compiler 8873 8874 # KCC will only create a shared library if the output file 8875 # ends with ".so" (or ".sl" for HP-UX), so rename the library 8876 # to its proper name (with version) after linking. 8877 _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' 8878 8879 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 8880 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8881 8882 # Archives containing C++ object files must be created using 8883 # the KAI C++ compiler. 8884 case $host in 8885 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; 8886 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; 8887 esac 8888 ;; 8889 RCC*) 8890 # Rational C++ 2.4.1 8891 # FIXME: insert proper C++ library support 8892 _LT_TAGVAR(ld_shlibs, $1)=no 8893 ;; 8894 cxx*) 8895 case $host in 8896 osf3*) 8897 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 8898 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 8899 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 8900 ;; 8901 *) 8902 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 8903 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 8904 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 8905 echo "-hidden">> $lib.exp~ 8906 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ 8907 $RM $lib.exp' 8908 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 8909 ;; 8910 esac 8911 8912 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8913 8914 # Commands to make compiler produce verbose output that lists 8915 # what "hidden" libraries, object files and flags are used when 8916 # linking a shared library. 8917 # 8918 # There doesn't appear to be a way to prevent this compiler from 8919 # explicitly linking system object files so we need to strip them 8920 # from the output so that they don't get included in the library 8921 # dependencies. 8922 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 8923 ;; 8924 *) 8925 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 8926 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 8927 case $host in 8928 osf3*) 8929 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8930 ;; 8931 *) 8932 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8933 ;; 8934 esac 8935 8936 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 8937 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8938 8939 # Commands to make compiler produce verbose output that lists 8940 # what "hidden" libraries, object files and flags are used when 8941 # linking a shared library. 8942 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 8943 8944 else 8945 # FIXME: insert proper C++ library support 8946 _LT_TAGVAR(ld_shlibs, $1)=no 8947 fi 8948 ;; 8949 esac 8950 ;; 8951 8952 psos*) 8953 # FIXME: insert proper C++ library support 8954 _LT_TAGVAR(ld_shlibs, $1)=no 8955 ;; 8956 8957 sunos4*) 8958 case $cc_basename in 8959 CC*) 8960 # Sun C++ 4.x 8961 # FIXME: insert proper C++ library support 8962 _LT_TAGVAR(ld_shlibs, $1)=no 8963 ;; 8964 lcc*) 8965 # Lucid 8966 # FIXME: insert proper C++ library support 8967 _LT_TAGVAR(ld_shlibs, $1)=no 8968 ;; 8969 *) 8970 # FIXME: insert proper C++ library support 8971 _LT_TAGVAR(ld_shlibs, $1)=no 8972 ;; 8973 esac 8974 ;; 8975 8976 solaris*) 8977 case $cc_basename in 8978 CC* | sunCC*) 8979 # Sun C++ 4.2, 5.x and Centerline C++ 8980 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 8981 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 8982 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8983 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8984 $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' 8985 8986 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 8987 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8988 case $host_os in 8989 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 8990 *) 8991 # The compiler driver will combine and reorder linker options, 8992 # but understands `-z linker_flag'. 8993 # Supported since Solaris 2.6 (maybe 2.5.1?) 8994 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 8995 ;; 8996 esac 8997 _LT_TAGVAR(link_all_deplibs, $1)=yes 8998 8999 output_verbose_link_cmd='func_echo_all' 9000 9001 # Archives containing C++ object files must be created using 9002 # "CC -xar", where "CC" is the Sun C++ compiler. This is 9003 # necessary to make sure instantiated templates are included 9004 # in the archive. 9005 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 9006 ;; 9007 gcx*) 9008 # Green Hills C++ Compiler 9009 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 9010 9011 # The C++ compiler must be used to create the archive. 9012 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 9013 ;; 9014 *) 9015 # GNU C++ compiler with Solaris linker 9016 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 9017 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 9018 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 9019 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 9020 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9021 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 9022 9023 # Commands to make compiler produce verbose output that lists 9024 # what "hidden" libraries, object files and flags are used when 9025 # linking a shared library. 9026 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 9027 else 9028 # g++ 2.7 appears to require `-G' NOT `-shared' on this 9029 # platform. 9030 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 9031 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9032 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 9033 9034 # Commands to make compiler produce verbose output that lists 9035 # what "hidden" libraries, object files and flags are used when 9036 # linking a shared library. 9037 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 9038 fi 9039 9040 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 9041 case $host_os in 9042 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 9043 *) 9044 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9045 ;; 9046 esac 9047 fi 9048 ;; 9049 esac 9050 ;; 9051 9052 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 9053 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 9054 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 9055 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9056 runpath_var='LD_RUN_PATH' 9057 9058 case $cc_basename in 9059 CC*) 9060 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9061 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9062 ;; 9063 *) 9064 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9065 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9066 ;; 9067 esac 9068 ;; 9069 9070 sysv5* | sco3.2v5* | sco5v6*) 9071 # Note: We can NOT use -z defs as we might desire, because we do not 9072 # link with -lc, and that would cause any symbols used from libc to 9073 # always be unresolved, which means just about no library would 9074 # ever link correctly. If we're not using GNU ld we use -z text 9075 # though, which does catch some bad symbols but isn't as heavy-handed 9076 # as -z defs. 9077 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 9078 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 9079 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 9080 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9081 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 9082 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 9083 _LT_TAGVAR(link_all_deplibs, $1)=yes 9084 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 9085 runpath_var='LD_RUN_PATH' 9086 9087 case $cc_basename in 9088 CC*) 9089 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9090 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9091 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ 9092 '"$_LT_TAGVAR(old_archive_cmds, $1)" 9093 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ 9094 '"$_LT_TAGVAR(reload_cmds, $1)" 9095 ;; 9096 *) 9097 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9098 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9099 ;; 9100 esac 9101 ;; 9102 9103 tandem*) 9104 case $cc_basename in 9105 NCC*) 9106 # NonStop-UX NCC 3.20 9107 # FIXME: insert proper C++ library support 9108 _LT_TAGVAR(ld_shlibs, $1)=no 9109 ;; 9110 *) 9111 # FIXME: insert proper C++ library support 9112 _LT_TAGVAR(ld_shlibs, $1)=no 9113 ;; 9114 esac 9115 ;; 9116 9117 vxworks*) 9118 # FIXME: insert proper C++ library support 9119 _LT_TAGVAR(ld_shlibs, $1)=no 9120 ;; 9121 9122 *) 9123 # FIXME: insert proper C++ library support 9124 _LT_TAGVAR(ld_shlibs, $1)=no 9125 ;; 9126 esac 9127 9128 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 9129 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 9130 9131 _LT_TAGVAR(GCC, $1)="$GXX" 9132 _LT_TAGVAR(LD, $1)="$LD" 9133 9134 ## CAVEAT EMPTOR: 9135 ## There is no encapsulation within the following macros, do not change 9136 ## the running order or otherwise move them around unless you know exactly 9137 ## what you are doing... 9138 _LT_SYS_HIDDEN_LIBDEPS($1) 9139 _LT_COMPILER_PIC($1) 9140 _LT_COMPILER_C_O($1) 9141 _LT_COMPILER_FILE_LOCKS($1) 9142 _LT_LINKER_SHLIBS($1) 9143 _LT_SYS_DYNAMIC_LINKER($1) 9144 _LT_LINKER_HARDCODE_LIBPATH($1) 9145 9146 _LT_CONFIG($1) 9147 fi # test -n "$compiler" 9148 9149 CC=$lt_save_CC 9150 LDCXX=$LD 9151 LD=$lt_save_LD 9152 GCC=$lt_save_GCC 9153 with_gnu_ld=$lt_save_with_gnu_ld 9154 lt_cv_path_LDCXX=$lt_cv_path_LD 9155 lt_cv_path_LD=$lt_save_path_LD 9156 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 9157 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 9158fi # test "$_lt_caught_CXX_error" != yes 9159 9160AC_LANG_POP 9161])# _LT_LANG_CXX_CONFIG 9162 9163 9164# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 9165# --------------------------------- 9166# Figure out "hidden" library dependencies from verbose 9167# compiler output when linking a shared library. 9168# Parse the compiler output and extract the necessary 9169# objects, libraries and library flags. 9170m4_defun([_LT_SYS_HIDDEN_LIBDEPS], 9171[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 9172# Dependencies to place before and after the object being linked: 9173_LT_TAGVAR(predep_objects, $1)= 9174_LT_TAGVAR(postdep_objects, $1)= 9175_LT_TAGVAR(predeps, $1)= 9176_LT_TAGVAR(postdeps, $1)= 9177_LT_TAGVAR(compiler_lib_search_path, $1)= 9178 9179dnl we can't use the lt_simple_compile_test_code here, 9180dnl because it contains code intended for an executable, 9181dnl not a library. It's possible we should let each 9182dnl tag define a new lt_????_link_test_code variable, 9183dnl but it's only used here... 9184m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF 9185int a; 9186void foo (void) { a = 0; } 9187_LT_EOF 9188], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF 9189class Foo 9190{ 9191public: 9192 Foo (void) { a = 0; } 9193private: 9194 int a; 9195}; 9196_LT_EOF 9197], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF 9198 subroutine foo 9199 implicit none 9200 integer*4 a 9201 a=0 9202 return 9203 end 9204_LT_EOF 9205], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF 9206 subroutine foo 9207 implicit none 9208 integer a 9209 a=0 9210 return 9211 end 9212_LT_EOF 9213], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF 9214public class foo { 9215 private int a; 9216 public void bar (void) { 9217 a = 0; 9218 } 9219}; 9220_LT_EOF 9221]) 9222dnl Parse the compiler output and extract the necessary 9223dnl objects, libraries and library flags. 9224if AC_TRY_EVAL(ac_compile); then 9225 # Parse the compiler output and extract the necessary 9226 # objects, libraries and library flags. 9227 9228 # Sentinel used to keep track of whether or not we are before 9229 # the conftest object file. 9230 pre_test_object_deps_done=no 9231 9232 for p in `eval "$output_verbose_link_cmd"`; do 9233 case $p in 9234 9235 -L* | -R* | -l*) 9236 # Some compilers place space between "-{L,R}" and the path. 9237 # Remove the space. 9238 if test $p = "-L" || 9239 test $p = "-R"; then 9240 prev=$p 9241 continue 9242 else 9243 prev= 9244 fi 9245 9246 if test "$pre_test_object_deps_done" = no; then 9247 case $p in 9248 -L* | -R*) 9249 # Internal compiler library paths should come after those 9250 # provided the user. The postdeps already come after the 9251 # user supplied libs so there is no need to process them. 9252 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then 9253 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" 9254 else 9255 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" 9256 fi 9257 ;; 9258 # The "-l" case would never come before the object being 9259 # linked, so don't bother handling this case. 9260 esac 9261 else 9262 if test -z "$_LT_TAGVAR(postdeps, $1)"; then 9263 _LT_TAGVAR(postdeps, $1)="${prev}${p}" 9264 else 9265 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" 9266 fi 9267 fi 9268 ;; 9269 9270 *.$objext) 9271 # This assumes that the test object file only shows up 9272 # once in the compiler output. 9273 if test "$p" = "conftest.$objext"; then 9274 pre_test_object_deps_done=yes 9275 continue 9276 fi 9277 9278 if test "$pre_test_object_deps_done" = no; then 9279 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then 9280 _LT_TAGVAR(predep_objects, $1)="$p" 9281 else 9282 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" 9283 fi 9284 else 9285 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then 9286 _LT_TAGVAR(postdep_objects, $1)="$p" 9287 else 9288 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" 9289 fi 9290 fi 9291 ;; 9292 9293 *) ;; # Ignore the rest. 9294 9295 esac 9296 done 9297 9298 # Clean up. 9299 rm -f a.out a.exe 9300else 9301 echo "libtool.m4: error: problem compiling $1 test program" 9302fi 9303 9304$RM -f confest.$objext 9305 9306# PORTME: override above test on systems where it is broken 9307m4_if([$1], [CXX], 9308[case $host_os in 9309interix[[3-9]]*) 9310 # Interix 3.5 installs completely hosed .la files for C++, so rather than 9311 # hack all around it, let's just trust "g++" to DTRT. 9312 _LT_TAGVAR(predep_objects,$1)= 9313 _LT_TAGVAR(postdep_objects,$1)= 9314 _LT_TAGVAR(postdeps,$1)= 9315 ;; 9316 9317linux*) 9318 case `$CC -V 2>&1 | sed 5q` in 9319 *Sun\ C*) 9320 # Sun C++ 5.9 9321 9322 # The more standards-conforming stlport4 library is 9323 # incompatible with the Cstd library. Avoid specifying 9324 # it if it's in CXXFLAGS. Ignore libCrun as 9325 # -library=stlport4 depends on it. 9326 case " $CXX $CXXFLAGS " in 9327 *" -library=stlport4 "*) 9328 solaris_use_stlport4=yes 9329 ;; 9330 esac 9331 9332 if test "$solaris_use_stlport4" != yes; then 9333 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 9334 fi 9335 ;; 9336 esac 9337 ;; 9338 9339solaris*) 9340 case $cc_basename in 9341 CC* | sunCC*) 9342 # The more standards-conforming stlport4 library is 9343 # incompatible with the Cstd library. Avoid specifying 9344 # it if it's in CXXFLAGS. Ignore libCrun as 9345 # -library=stlport4 depends on it. 9346 case " $CXX $CXXFLAGS " in 9347 *" -library=stlport4 "*) 9348 solaris_use_stlport4=yes 9349 ;; 9350 esac 9351 9352 # Adding this requires a known-good setup of shared libraries for 9353 # Sun compiler versions before 5.6, else PIC objects from an old 9354 # archive will be linked into the output, leading to subtle bugs. 9355 if test "$solaris_use_stlport4" != yes; then 9356 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 9357 fi 9358 ;; 9359 esac 9360 ;; 9361esac 9362]) 9363 9364case " $_LT_TAGVAR(postdeps, $1) " in 9365*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; 9366esac 9367 _LT_TAGVAR(compiler_lib_search_dirs, $1)= 9368if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then 9369 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 9370fi 9371_LT_TAGDECL([], [compiler_lib_search_dirs], [1], 9372 [The directories searched by this compiler when creating a shared library]) 9373_LT_TAGDECL([], [predep_objects], [1], 9374 [Dependencies to place before and after the objects being linked to 9375 create a shared library]) 9376_LT_TAGDECL([], [postdep_objects], [1]) 9377_LT_TAGDECL([], [predeps], [1]) 9378_LT_TAGDECL([], [postdeps], [1]) 9379_LT_TAGDECL([], [compiler_lib_search_path], [1], 9380 [The library search path used internally by the compiler when linking 9381 a shared library]) 9382])# _LT_SYS_HIDDEN_LIBDEPS 9383 9384 9385# _LT_LANG_F77_CONFIG([TAG]) 9386# -------------------------- 9387# Ensure that the configuration variables for a Fortran 77 compiler are 9388# suitably defined. These variables are subsequently used by _LT_CONFIG 9389# to write the compiler configuration to `libtool'. 9390m4_defun([_LT_LANG_F77_CONFIG], 9391[AC_LANG_PUSH(Fortran 77) 9392if test -z "$F77" || test "X$F77" = "Xno"; then 9393 _lt_disable_F77=yes 9394fi 9395 9396_LT_TAGVAR(archive_cmds_need_lc, $1)=no 9397_LT_TAGVAR(allow_undefined_flag, $1)= 9398_LT_TAGVAR(always_export_symbols, $1)=no 9399_LT_TAGVAR(archive_expsym_cmds, $1)= 9400_LT_TAGVAR(export_dynamic_flag_spec, $1)= 9401_LT_TAGVAR(hardcode_direct, $1)=no 9402_LT_TAGVAR(hardcode_direct_absolute, $1)=no 9403_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 9404_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 9405_LT_TAGVAR(hardcode_libdir_separator, $1)= 9406_LT_TAGVAR(hardcode_minus_L, $1)=no 9407_LT_TAGVAR(hardcode_automatic, $1)=no 9408_LT_TAGVAR(inherit_rpath, $1)=no 9409_LT_TAGVAR(module_cmds, $1)= 9410_LT_TAGVAR(module_expsym_cmds, $1)= 9411_LT_TAGVAR(link_all_deplibs, $1)=unknown 9412_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 9413_LT_TAGVAR(reload_flag, $1)=$reload_flag 9414_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 9415_LT_TAGVAR(no_undefined_flag, $1)= 9416_LT_TAGVAR(whole_archive_flag_spec, $1)= 9417_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 9418 9419# Source file extension for f77 test sources. 9420ac_ext=f 9421 9422# Object file extension for compiled f77 test sources. 9423objext=o 9424_LT_TAGVAR(objext, $1)=$objext 9425 9426# No sense in running all these tests if we already determined that 9427# the F77 compiler isn't working. Some variables (like enable_shared) 9428# are currently assumed to apply to all compilers on this platform, 9429# and will be corrupted by setting them based on a non-working compiler. 9430if test "$_lt_disable_F77" != yes; then 9431 # Code to be used in simple compile tests 9432 lt_simple_compile_test_code="\ 9433 subroutine t 9434 return 9435 end 9436" 9437 9438 # Code to be used in simple link tests 9439 lt_simple_link_test_code="\ 9440 program t 9441 end 9442" 9443 9444 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 9445 _LT_TAG_COMPILER 9446 9447 # save warnings/boilerplate of simple test code 9448 _LT_COMPILER_BOILERPLATE 9449 _LT_LINKER_BOILERPLATE 9450 9451 # Allow CC to be a program name with arguments. 9452 lt_save_CC="$CC" 9453 lt_save_GCC=$GCC 9454 CC=${F77-"f77"} 9455 compiler=$CC 9456 _LT_TAGVAR(compiler, $1)=$CC 9457 _LT_CC_BASENAME([$compiler]) 9458 GCC=$G77 9459 if test -n "$compiler"; then 9460 AC_MSG_CHECKING([if libtool supports shared libraries]) 9461 AC_MSG_RESULT([$can_build_shared]) 9462 9463 AC_MSG_CHECKING([whether to build shared libraries]) 9464 test "$can_build_shared" = "no" && enable_shared=no 9465 9466 # On AIX, shared libraries and static libraries use the same namespace, and 9467 # are all built from PIC. 9468 case $host_os in 9469 aix3*) 9470 test "$enable_shared" = yes && enable_static=no 9471 if test -n "$RANLIB"; then 9472 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9473 postinstall_cmds='$RANLIB $lib' 9474 fi 9475 ;; 9476 aix[[4-9]]*) 9477 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9478 test "$enable_shared" = yes && enable_static=no 9479 fi 9480 ;; 9481 esac 9482 AC_MSG_RESULT([$enable_shared]) 9483 9484 AC_MSG_CHECKING([whether to build static libraries]) 9485 # Make sure either enable_shared or enable_static is yes. 9486 test "$enable_shared" = yes || enable_static=yes 9487 AC_MSG_RESULT([$enable_static]) 9488 9489 _LT_TAGVAR(GCC, $1)="$G77" 9490 _LT_TAGVAR(LD, $1)="$LD" 9491 9492 ## CAVEAT EMPTOR: 9493 ## There is no encapsulation within the following macros, do not change 9494 ## the running order or otherwise move them around unless you know exactly 9495 ## what you are doing... 9496 _LT_COMPILER_PIC($1) 9497 _LT_COMPILER_C_O($1) 9498 _LT_COMPILER_FILE_LOCKS($1) 9499 _LT_LINKER_SHLIBS($1) 9500 _LT_SYS_DYNAMIC_LINKER($1) 9501 _LT_LINKER_HARDCODE_LIBPATH($1) 9502 9503 _LT_CONFIG($1) 9504 fi # test -n "$compiler" 9505 9506 GCC=$lt_save_GCC 9507 CC="$lt_save_CC" 9508fi # test "$_lt_disable_F77" != yes 9509 9510AC_LANG_POP 9511])# _LT_LANG_F77_CONFIG 9512 9513 9514# _LT_LANG_FC_CONFIG([TAG]) 9515# ------------------------- 9516# Ensure that the configuration variables for a Fortran compiler are 9517# suitably defined. These variables are subsequently used by _LT_CONFIG 9518# to write the compiler configuration to `libtool'. 9519m4_defun([_LT_LANG_FC_CONFIG], 9520[AC_LANG_PUSH(Fortran) 9521 9522if test -z "$FC" || test "X$FC" = "Xno"; then 9523 _lt_disable_FC=yes 9524fi 9525 9526_LT_TAGVAR(archive_cmds_need_lc, $1)=no 9527_LT_TAGVAR(allow_undefined_flag, $1)= 9528_LT_TAGVAR(always_export_symbols, $1)=no 9529_LT_TAGVAR(archive_expsym_cmds, $1)= 9530_LT_TAGVAR(export_dynamic_flag_spec, $1)= 9531_LT_TAGVAR(hardcode_direct, $1)=no 9532_LT_TAGVAR(hardcode_direct_absolute, $1)=no 9533_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 9534_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 9535_LT_TAGVAR(hardcode_libdir_separator, $1)= 9536_LT_TAGVAR(hardcode_minus_L, $1)=no 9537_LT_TAGVAR(hardcode_automatic, $1)=no 9538_LT_TAGVAR(inherit_rpath, $1)=no 9539_LT_TAGVAR(module_cmds, $1)= 9540_LT_TAGVAR(module_expsym_cmds, $1)= 9541_LT_TAGVAR(link_all_deplibs, $1)=unknown 9542_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 9543_LT_TAGVAR(reload_flag, $1)=$reload_flag 9544_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 9545_LT_TAGVAR(no_undefined_flag, $1)= 9546_LT_TAGVAR(whole_archive_flag_spec, $1)= 9547_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 9548 9549# Source file extension for fc test sources. 9550ac_ext=${ac_fc_srcext-f} 9551 9552# Object file extension for compiled fc test sources. 9553objext=o 9554_LT_TAGVAR(objext, $1)=$objext 9555 9556# No sense in running all these tests if we already determined that 9557# the FC compiler isn't working. Some variables (like enable_shared) 9558# are currently assumed to apply to all compilers on this platform, 9559# and will be corrupted by setting them based on a non-working compiler. 9560if test "$_lt_disable_FC" != yes; then 9561 # Code to be used in simple compile tests 9562 lt_simple_compile_test_code="\ 9563 subroutine t 9564 return 9565 end 9566" 9567 9568 # Code to be used in simple link tests 9569 lt_simple_link_test_code="\ 9570 program t 9571 end 9572" 9573 9574 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 9575 _LT_TAG_COMPILER 9576 9577 # save warnings/boilerplate of simple test code 9578 _LT_COMPILER_BOILERPLATE 9579 _LT_LINKER_BOILERPLATE 9580 9581 # Allow CC to be a program name with arguments. 9582 lt_save_CC="$CC" 9583 lt_save_GCC=$GCC 9584 CC=${FC-"f95"} 9585 compiler=$CC 9586 GCC=$ac_cv_fc_compiler_gnu 9587 9588 _LT_TAGVAR(compiler, $1)=$CC 9589 _LT_CC_BASENAME([$compiler]) 9590 9591 if test -n "$compiler"; then 9592 AC_MSG_CHECKING([if libtool supports shared libraries]) 9593 AC_MSG_RESULT([$can_build_shared]) 9594 9595 AC_MSG_CHECKING([whether to build shared libraries]) 9596 test "$can_build_shared" = "no" && enable_shared=no 9597 9598 # On AIX, shared libraries and static libraries use the same namespace, and 9599 # are all built from PIC. 9600 case $host_os in 9601 aix3*) 9602 test "$enable_shared" = yes && enable_static=no 9603 if test -n "$RANLIB"; then 9604 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9605 postinstall_cmds='$RANLIB $lib' 9606 fi 9607 ;; 9608 aix[[4-9]]*) 9609 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9610 test "$enable_shared" = yes && enable_static=no 9611 fi 9612 ;; 9613 esac 9614 AC_MSG_RESULT([$enable_shared]) 9615 9616 AC_MSG_CHECKING([whether to build static libraries]) 9617 # Make sure either enable_shared or enable_static is yes. 9618 test "$enable_shared" = yes || enable_static=yes 9619 AC_MSG_RESULT([$enable_static]) 9620 9621 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" 9622 _LT_TAGVAR(LD, $1)="$LD" 9623 9624 ## CAVEAT EMPTOR: 9625 ## There is no encapsulation within the following macros, do not change 9626 ## the running order or otherwise move them around unless you know exactly 9627 ## what you are doing... 9628 _LT_SYS_HIDDEN_LIBDEPS($1) 9629 _LT_COMPILER_PIC($1) 9630 _LT_COMPILER_C_O($1) 9631 _LT_COMPILER_FILE_LOCKS($1) 9632 _LT_LINKER_SHLIBS($1) 9633 _LT_SYS_DYNAMIC_LINKER($1) 9634 _LT_LINKER_HARDCODE_LIBPATH($1) 9635 9636 _LT_CONFIG($1) 9637 fi # test -n "$compiler" 9638 9639 GCC=$lt_save_GCC 9640 CC="$lt_save_CC" 9641fi # test "$_lt_disable_FC" != yes 9642 9643AC_LANG_POP 9644])# _LT_LANG_FC_CONFIG 9645 9646 9647# _LT_LANG_GCJ_CONFIG([TAG]) 9648# -------------------------- 9649# Ensure that the configuration variables for the GNU Java Compiler compiler 9650# are suitably defined. These variables are subsequently used by _LT_CONFIG 9651# to write the compiler configuration to `libtool'. 9652m4_defun([_LT_LANG_GCJ_CONFIG], 9653[AC_REQUIRE([LT_PROG_GCJ])dnl 9654AC_LANG_SAVE 9655 9656# Source file extension for Java test sources. 9657ac_ext=java 9658 9659# Object file extension for compiled Java test sources. 9660objext=o 9661_LT_TAGVAR(objext, $1)=$objext 9662 9663# Code to be used in simple compile tests 9664lt_simple_compile_test_code="class foo {}" 9665 9666# Code to be used in simple link tests 9667lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 9668 9669# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9670_LT_TAG_COMPILER 9671 9672# save warnings/boilerplate of simple test code 9673_LT_COMPILER_BOILERPLATE 9674_LT_LINKER_BOILERPLATE 9675 9676# Allow CC to be a program name with arguments. 9677lt_save_CC="$CC" 9678lt_save_GCC=$GCC 9679GCC=yes 9680CC=${GCJ-"gcj"} 9681compiler=$CC 9682_LT_TAGVAR(compiler, $1)=$CC 9683_LT_TAGVAR(LD, $1)="$LD" 9684_LT_CC_BASENAME([$compiler]) 9685 9686# GCJ did not exist at the time GCC didn't implicitly link libc in. 9687_LT_TAGVAR(archive_cmds_need_lc, $1)=no 9688 9689_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 9690_LT_TAGVAR(reload_flag, $1)=$reload_flag 9691_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 9692 9693if test -n "$compiler"; then 9694 _LT_COMPILER_NO_RTTI($1) 9695 _LT_COMPILER_PIC($1) 9696 _LT_COMPILER_C_O($1) 9697 _LT_COMPILER_FILE_LOCKS($1) 9698 _LT_LINKER_SHLIBS($1) 9699 _LT_LINKER_HARDCODE_LIBPATH($1) 9700 9701 _LT_CONFIG($1) 9702fi 9703 9704AC_LANG_RESTORE 9705 9706GCC=$lt_save_GCC 9707CC="$lt_save_CC" 9708])# _LT_LANG_GCJ_CONFIG 9709 9710 9711# _LT_LANG_RC_CONFIG([TAG]) 9712# ------------------------- 9713# Ensure that the configuration variables for the Windows resource compiler 9714# are suitably defined. These variables are subsequently used by _LT_CONFIG 9715# to write the compiler configuration to `libtool'. 9716m4_defun([_LT_LANG_RC_CONFIG], 9717[AC_REQUIRE([LT_PROG_RC])dnl 9718AC_LANG_SAVE 9719 9720# Source file extension for RC test sources. 9721ac_ext=rc 9722 9723# Object file extension for compiled RC test sources. 9724objext=o 9725_LT_TAGVAR(objext, $1)=$objext 9726 9727# Code to be used in simple compile tests 9728lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 9729 9730# Code to be used in simple link tests 9731lt_simple_link_test_code="$lt_simple_compile_test_code" 9732 9733# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9734_LT_TAG_COMPILER 9735 9736# save warnings/boilerplate of simple test code 9737_LT_COMPILER_BOILERPLATE 9738_LT_LINKER_BOILERPLATE 9739 9740# Allow CC to be a program name with arguments. 9741lt_save_CC="$CC" 9742lt_save_GCC=$GCC 9743GCC= 9744CC=${RC-"windres"} 9745compiler=$CC 9746_LT_TAGVAR(compiler, $1)=$CC 9747_LT_CC_BASENAME([$compiler]) 9748_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 9749 9750if test -n "$compiler"; then 9751 : 9752 _LT_CONFIG($1) 9753fi 9754 9755GCC=$lt_save_GCC 9756AC_LANG_RESTORE 9757CC="$lt_save_CC" 9758])# _LT_LANG_RC_CONFIG 9759 9760 9761# LT_PROG_GCJ 9762# ----------- 9763AC_DEFUN([LT_PROG_GCJ], 9764[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], 9765 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 9766 [AC_CHECK_TOOL(GCJ, gcj,) 9767 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 9768 AC_SUBST(GCJFLAGS)])])[]dnl 9769]) 9770 9771# Old name: 9772AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) 9773dnl aclocal-1.4 backwards compatibility: 9774dnl AC_DEFUN([LT_AC_PROG_GCJ], []) 9775 9776 9777# LT_PROG_RC 9778# ---------- 9779AC_DEFUN([LT_PROG_RC], 9780[AC_CHECK_TOOL(RC, windres,) 9781]) 9782 9783# Old name: 9784AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) 9785dnl aclocal-1.4 backwards compatibility: 9786dnl AC_DEFUN([LT_AC_PROG_RC], []) 9787 9788 9789# _LT_DECL_EGREP 9790# -------------- 9791# If we don't have a new enough Autoconf to choose the best grep 9792# available, choose the one first in the user's PATH. 9793m4_defun([_LT_DECL_EGREP], 9794[AC_REQUIRE([AC_PROG_EGREP])dnl 9795AC_REQUIRE([AC_PROG_FGREP])dnl 9796test -z "$GREP" && GREP=grep 9797_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) 9798_LT_DECL([], [EGREP], [1], [An ERE matcher]) 9799_LT_DECL([], [FGREP], [1], [A literal string matcher]) 9800dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too 9801AC_SUBST([GREP]) 9802]) 9803 9804 9805# _LT_DECL_OBJDUMP 9806# -------------- 9807# If we don't have a new enough Autoconf to choose the best objdump 9808# available, choose the one first in the user's PATH. 9809m4_defun([_LT_DECL_OBJDUMP], 9810[AC_CHECK_TOOL(OBJDUMP, objdump, false) 9811test -z "$OBJDUMP" && OBJDUMP=objdump 9812_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) 9813AC_SUBST([OBJDUMP]) 9814]) 9815 9816 9817# _LT_DECL_SED 9818# ------------ 9819# Check for a fully-functional sed program, that truncates 9820# as few characters as possible. Prefer GNU sed if found. 9821m4_defun([_LT_DECL_SED], 9822[AC_PROG_SED 9823test -z "$SED" && SED=sed 9824Xsed="$SED -e 1s/^X//" 9825_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) 9826_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], 9827 [Sed that helps us avoid accidentally triggering echo(1) options like -n]) 9828])# _LT_DECL_SED 9829 9830m4_ifndef([AC_PROG_SED], [ 9831# NOTE: This macro has been submitted for inclusion into # 9832# GNU Autoconf as AC_PROG_SED. When it is available in # 9833# a released version of Autoconf we should remove this # 9834# macro and use it instead. # 9835 9836m4_defun([AC_PROG_SED], 9837[AC_MSG_CHECKING([for a sed that does not truncate output]) 9838AC_CACHE_VAL(lt_cv_path_SED, 9839[# Loop through the user's path and test for sed and gsed. 9840# Then use that list of sed's as ones to test for truncation. 9841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9842for as_dir in $PATH 9843do 9844 IFS=$as_save_IFS 9845 test -z "$as_dir" && as_dir=. 9846 for lt_ac_prog in sed gsed; do 9847 for ac_exec_ext in '' $ac_executable_extensions; do 9848 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 9849 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 9850 fi 9851 done 9852 done 9853done 9854IFS=$as_save_IFS 9855lt_ac_max=0 9856lt_ac_count=0 9857# Add /usr/xpg4/bin/sed as it is typically found on Solaris 9858# along with /bin/sed that truncates output. 9859for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 9860 test ! -f $lt_ac_sed && continue 9861 cat /dev/null > conftest.in 9862 lt_ac_count=0 9863 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 9864 # Check for GNU sed and select it if it is found. 9865 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 9866 lt_cv_path_SED=$lt_ac_sed 9867 break 9868 fi 9869 while true; do 9870 cat conftest.in conftest.in >conftest.tmp 9871 mv conftest.tmp conftest.in 9872 cp conftest.in conftest.nl 9873 echo >>conftest.nl 9874 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 9875 cmp -s conftest.out conftest.nl || break 9876 # 10000 chars as input seems more than enough 9877 test $lt_ac_count -gt 10 && break 9878 lt_ac_count=`expr $lt_ac_count + 1` 9879 if test $lt_ac_count -gt $lt_ac_max; then 9880 lt_ac_max=$lt_ac_count 9881 lt_cv_path_SED=$lt_ac_sed 9882 fi 9883 done 9884done 9885]) 9886SED=$lt_cv_path_SED 9887AC_SUBST([SED]) 9888AC_MSG_RESULT([$SED]) 9889])#AC_PROG_SED 9890])#m4_ifndef 9891 9892# Old name: 9893AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) 9894dnl aclocal-1.4 backwards compatibility: 9895dnl AC_DEFUN([LT_AC_PROG_SED], []) 9896 9897 9898# _LT_CHECK_SHELL_FEATURES 9899# ------------------------ 9900# Find out whether the shell is Bourne or XSI compatible, 9901# or has some other useful features. 9902m4_defun([_LT_CHECK_SHELL_FEATURES], 9903[AC_MSG_CHECKING([whether the shell understands some XSI constructs]) 9904# Try some XSI features 9905xsi_shell=no 9906( _lt_dummy="a/b/c" 9907 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 9908 = c,a/b,, \ 9909 && eval 'test $(( 1 + 1 )) -eq 2 \ 9910 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 9911 && xsi_shell=yes 9912AC_MSG_RESULT([$xsi_shell]) 9913_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) 9914 9915AC_MSG_CHECKING([whether the shell understands "+="]) 9916lt_shell_append=no 9917( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ 9918 >/dev/null 2>&1 \ 9919 && lt_shell_append=yes 9920AC_MSG_RESULT([$lt_shell_append]) 9921_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) 9922 9923if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 9924 lt_unset=unset 9925else 9926 lt_unset=false 9927fi 9928_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl 9929 9930# test EBCDIC or ASCII 9931case `echo X|tr X '\101'` in 9932 A) # ASCII based system 9933 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 9934 lt_SP2NL='tr \040 \012' 9935 lt_NL2SP='tr \015\012 \040\040' 9936 ;; 9937 *) # EBCDIC based system 9938 lt_SP2NL='tr \100 \n' 9939 lt_NL2SP='tr \r\n \100\100' 9940 ;; 9941esac 9942_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl 9943_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl 9944])# _LT_CHECK_SHELL_FEATURES 9945 9946 9947# _LT_PROG_XSI_SHELLFNS 9948# --------------------- 9949# Bourne and XSI compatible variants of some useful shell functions. 9950m4_defun([_LT_PROG_XSI_SHELLFNS], 9951[case $xsi_shell in 9952 yes) 9953 cat << \_LT_EOF >> "$cfgfile" 9954 9955# func_dirname file append nondir_replacement 9956# Compute the dirname of FILE. If nonempty, add APPEND to the result, 9957# otherwise set result to NONDIR_REPLACEMENT. 9958func_dirname () 9959{ 9960 case ${1} in 9961 */*) func_dirname_result="${1%/*}${2}" ;; 9962 * ) func_dirname_result="${3}" ;; 9963 esac 9964} 9965 9966# func_basename file 9967func_basename () 9968{ 9969 func_basename_result="${1##*/}" 9970} 9971 9972# func_dirname_and_basename file append nondir_replacement 9973# perform func_basename and func_dirname in a single function 9974# call: 9975# dirname: Compute the dirname of FILE. If nonempty, 9976# add APPEND to the result, otherwise set result 9977# to NONDIR_REPLACEMENT. 9978# value returned in "$func_dirname_result" 9979# basename: Compute filename of FILE. 9980# value retuned in "$func_basename_result" 9981# Implementation must be kept synchronized with func_dirname 9982# and func_basename. For efficiency, we do not delegate to 9983# those functions but instead duplicate the functionality here. 9984func_dirname_and_basename () 9985{ 9986 case ${1} in 9987 */*) func_dirname_result="${1%/*}${2}" ;; 9988 * ) func_dirname_result="${3}" ;; 9989 esac 9990 func_basename_result="${1##*/}" 9991} 9992 9993# func_stripname prefix suffix name 9994# strip PREFIX and SUFFIX off of NAME. 9995# PREFIX and SUFFIX must not contain globbing or regex special 9996# characters, hashes, percent signs, but SUFFIX may contain a leading 9997# dot (in which case that matches only a dot). 9998func_stripname () 9999{ 10000 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 10001 # positional parameters, so assign one to ordinary parameter first. 10002 func_stripname_result=${3} 10003 func_stripname_result=${func_stripname_result#"${1}"} 10004 func_stripname_result=${func_stripname_result%"${2}"} 10005} 10006 10007# func_opt_split 10008func_opt_split () 10009{ 10010 func_opt_split_opt=${1%%=*} 10011 func_opt_split_arg=${1#*=} 10012} 10013 10014# func_lo2o object 10015func_lo2o () 10016{ 10017 case ${1} in 10018 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 10019 *) func_lo2o_result=${1} ;; 10020 esac 10021} 10022 10023# func_xform libobj-or-source 10024func_xform () 10025{ 10026 func_xform_result=${1%.*}.lo 10027} 10028 10029# func_arith arithmetic-term... 10030func_arith () 10031{ 10032 func_arith_result=$(( $[*] )) 10033} 10034 10035# func_len string 10036# STRING may not start with a hyphen. 10037func_len () 10038{ 10039 func_len_result=${#1} 10040} 10041 10042_LT_EOF 10043 ;; 10044 *) # Bourne compatible functions. 10045 cat << \_LT_EOF >> "$cfgfile" 10046 10047# func_dirname file append nondir_replacement 10048# Compute the dirname of FILE. If nonempty, add APPEND to the result, 10049# otherwise set result to NONDIR_REPLACEMENT. 10050func_dirname () 10051{ 10052 # Extract subdirectory from the argument. 10053 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 10054 if test "X$func_dirname_result" = "X${1}"; then 10055 func_dirname_result="${3}" 10056 else 10057 func_dirname_result="$func_dirname_result${2}" 10058 fi 10059} 10060 10061# func_basename file 10062func_basename () 10063{ 10064 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 10065} 10066 10067dnl func_dirname_and_basename 10068dnl A portable version of this function is already defined in general.m4sh 10069dnl so there is no need for it here. 10070 10071# func_stripname prefix suffix name 10072# strip PREFIX and SUFFIX off of NAME. 10073# PREFIX and SUFFIX must not contain globbing or regex special 10074# characters, hashes, percent signs, but SUFFIX may contain a leading 10075# dot (in which case that matches only a dot). 10076# func_strip_suffix prefix name 10077func_stripname () 10078{ 10079 case ${2} in 10080 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 10081 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 10082 esac 10083} 10084 10085# sed scripts: 10086my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' 10087my_sed_long_arg='1s/^-[[^=]]*=//' 10088 10089# func_opt_split 10090func_opt_split () 10091{ 10092 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 10093 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 10094} 10095 10096# func_lo2o object 10097func_lo2o () 10098{ 10099 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 10100} 10101 10102# func_xform libobj-or-source 10103func_xform () 10104{ 10105 func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'` 10106} 10107 10108# func_arith arithmetic-term... 10109func_arith () 10110{ 10111 func_arith_result=`expr "$[@]"` 10112} 10113 10114# func_len string 10115# STRING may not start with a hyphen. 10116func_len () 10117{ 10118 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` 10119} 10120 10121_LT_EOF 10122esac 10123 10124case $lt_shell_append in 10125 yes) 10126 cat << \_LT_EOF >> "$cfgfile" 10127 10128# func_append var value 10129# Append VALUE to the end of shell variable VAR. 10130func_append () 10131{ 10132 eval "$[1]+=\$[2]" 10133} 10134_LT_EOF 10135 ;; 10136 *) 10137 cat << \_LT_EOF >> "$cfgfile" 10138 10139# func_append var value 10140# Append VALUE to the end of shell variable VAR. 10141func_append () 10142{ 10143 eval "$[1]=\$$[1]\$[2]" 10144} 10145 10146_LT_EOF 10147 ;; 10148 esac 10149]) 10150 10151# Helper functions for option handling. -*- Autoconf -*- 10152# 10153# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, 10154# Inc. 10155# Written by Gary V. Vaughan, 2004 10156# 10157# This file is free software; the Free Software Foundation gives 10158# unlimited permission to copy and/or distribute it, with or without 10159# modifications, as long as this notice is preserved. 10160 10161# serial 7 ltoptions.m4 10162 10163# This is to help aclocal find these macros, as it can't see m4_define. 10164AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) 10165 10166 10167# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) 10168# ------------------------------------------ 10169m4_define([_LT_MANGLE_OPTION], 10170[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) 10171 10172 10173# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) 10174# --------------------------------------- 10175# Set option OPTION-NAME for macro MACRO-NAME, and if there is a 10176# matching handler defined, dispatch to it. Other OPTION-NAMEs are 10177# saved as a flag. 10178m4_define([_LT_SET_OPTION], 10179[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl 10180m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), 10181 _LT_MANGLE_DEFUN([$1], [$2]), 10182 [m4_warning([Unknown $1 option `$2'])])[]dnl 10183]) 10184 10185 10186# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) 10187# ------------------------------------------------------------ 10188# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 10189m4_define([_LT_IF_OPTION], 10190[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) 10191 10192 10193# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) 10194# ------------------------------------------------------- 10195# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME 10196# are set. 10197m4_define([_LT_UNLESS_OPTIONS], 10198[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 10199 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), 10200 [m4_define([$0_found])])])[]dnl 10201m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 10202])[]dnl 10203]) 10204 10205 10206# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) 10207# ---------------------------------------- 10208# OPTION-LIST is a space-separated list of Libtool options associated 10209# with MACRO-NAME. If any OPTION has a matching handler declared with 10210# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about 10211# the unknown option and exit. 10212m4_defun([_LT_SET_OPTIONS], 10213[# Set options 10214m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 10215 [_LT_SET_OPTION([$1], _LT_Option)]) 10216 10217m4_if([$1],[LT_INIT],[ 10218 dnl 10219 dnl Simply set some default values (i.e off) if boolean options were not 10220 dnl specified: 10221 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no 10222 ]) 10223 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no 10224 ]) 10225 dnl 10226 dnl If no reference was made to various pairs of opposing options, then 10227 dnl we run the default mode handler for the pair. For example, if neither 10228 dnl `shared' nor `disable-shared' was passed, we enable building of shared 10229 dnl archives by default: 10230 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) 10231 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) 10232 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) 10233 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], 10234 [_LT_ENABLE_FAST_INSTALL]) 10235 ]) 10236])# _LT_SET_OPTIONS 10237 10238 10239 10240# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) 10241# ----------------------------------------- 10242m4_define([_LT_MANGLE_DEFUN], 10243[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) 10244 10245 10246# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) 10247# ----------------------------------------------- 10248m4_define([LT_OPTION_DEFINE], 10249[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl 10250])# LT_OPTION_DEFINE 10251 10252 10253# dlopen 10254# ------ 10255LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes 10256]) 10257 10258AU_DEFUN([AC_LIBTOOL_DLOPEN], 10259[_LT_SET_OPTION([LT_INIT], [dlopen]) 10260AC_DIAGNOSE([obsolete], 10261[$0: Remove this warning and the call to _LT_SET_OPTION when you 10262put the `dlopen' option into LT_INIT's first parameter.]) 10263]) 10264 10265dnl aclocal-1.4 backwards compatibility: 10266dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) 10267 10268 10269# win32-dll 10270# --------- 10271# Declare package support for building win32 dll's. 10272LT_OPTION_DEFINE([LT_INIT], [win32-dll], 10273[enable_win32_dll=yes 10274 10275case $host in 10276*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 10277 AC_CHECK_TOOL(AS, as, false) 10278 AC_CHECK_TOOL(DLLTOOL, dlltool, false) 10279 AC_CHECK_TOOL(OBJDUMP, objdump, false) 10280 ;; 10281esac 10282 10283test -z "$AS" && AS=as 10284_LT_DECL([], [AS], [1], [Assembler program])dnl 10285 10286test -z "$DLLTOOL" && DLLTOOL=dlltool 10287_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl 10288 10289test -z "$OBJDUMP" && OBJDUMP=objdump 10290_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl 10291])# win32-dll 10292 10293AU_DEFUN([AC_LIBTOOL_WIN32_DLL], 10294[AC_REQUIRE([AC_CANONICAL_HOST])dnl 10295_LT_SET_OPTION([LT_INIT], [win32-dll]) 10296AC_DIAGNOSE([obsolete], 10297[$0: Remove this warning and the call to _LT_SET_OPTION when you 10298put the `win32-dll' option into LT_INIT's first parameter.]) 10299]) 10300 10301dnl aclocal-1.4 backwards compatibility: 10302dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) 10303 10304 10305# _LT_ENABLE_SHARED([DEFAULT]) 10306# ---------------------------- 10307# implement the --enable-shared flag, and supports the `shared' and 10308# `disable-shared' LT_INIT options. 10309# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 10310m4_define([_LT_ENABLE_SHARED], 10311[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl 10312AC_ARG_ENABLE([shared], 10313 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 10314 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], 10315 [p=${PACKAGE-default} 10316 case $enableval in 10317 yes) enable_shared=yes ;; 10318 no) enable_shared=no ;; 10319 *) 10320 enable_shared=no 10321 # Look at the argument we got. We use all the common list separators. 10322 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10323 for pkg in $enableval; do 10324 IFS="$lt_save_ifs" 10325 if test "X$pkg" = "X$p"; then 10326 enable_shared=yes 10327 fi 10328 done 10329 IFS="$lt_save_ifs" 10330 ;; 10331 esac], 10332 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) 10333 10334 _LT_DECL([build_libtool_libs], [enable_shared], [0], 10335 [Whether or not to build shared libraries]) 10336])# _LT_ENABLE_SHARED 10337 10338LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) 10339LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) 10340 10341# Old names: 10342AC_DEFUN([AC_ENABLE_SHARED], 10343[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) 10344]) 10345 10346AC_DEFUN([AC_DISABLE_SHARED], 10347[_LT_SET_OPTION([LT_INIT], [disable-shared]) 10348]) 10349 10350AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 10351AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 10352 10353dnl aclocal-1.4 backwards compatibility: 10354dnl AC_DEFUN([AM_ENABLE_SHARED], []) 10355dnl AC_DEFUN([AM_DISABLE_SHARED], []) 10356 10357 10358 10359# _LT_ENABLE_STATIC([DEFAULT]) 10360# ---------------------------- 10361# implement the --enable-static flag, and support the `static' and 10362# `disable-static' LT_INIT options. 10363# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 10364m4_define([_LT_ENABLE_STATIC], 10365[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl 10366AC_ARG_ENABLE([static], 10367 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], 10368 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], 10369 [p=${PACKAGE-default} 10370 case $enableval in 10371 yes) enable_static=yes ;; 10372 no) enable_static=no ;; 10373 *) 10374 enable_static=no 10375 # Look at the argument we got. We use all the common list separators. 10376 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10377 for pkg in $enableval; do 10378 IFS="$lt_save_ifs" 10379 if test "X$pkg" = "X$p"; then 10380 enable_static=yes 10381 fi 10382 done 10383 IFS="$lt_save_ifs" 10384 ;; 10385 esac], 10386 [enable_static=]_LT_ENABLE_STATIC_DEFAULT) 10387 10388 _LT_DECL([build_old_libs], [enable_static], [0], 10389 [Whether or not to build static libraries]) 10390])# _LT_ENABLE_STATIC 10391 10392LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) 10393LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) 10394 10395# Old names: 10396AC_DEFUN([AC_ENABLE_STATIC], 10397[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) 10398]) 10399 10400AC_DEFUN([AC_DISABLE_STATIC], 10401[_LT_SET_OPTION([LT_INIT], [disable-static]) 10402]) 10403 10404AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 10405AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 10406 10407dnl aclocal-1.4 backwards compatibility: 10408dnl AC_DEFUN([AM_ENABLE_STATIC], []) 10409dnl AC_DEFUN([AM_DISABLE_STATIC], []) 10410 10411 10412 10413# _LT_ENABLE_FAST_INSTALL([DEFAULT]) 10414# ---------------------------------- 10415# implement the --enable-fast-install flag, and support the `fast-install' 10416# and `disable-fast-install' LT_INIT options. 10417# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 10418m4_define([_LT_ENABLE_FAST_INSTALL], 10419[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl 10420AC_ARG_ENABLE([fast-install], 10421 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 10422 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 10423 [p=${PACKAGE-default} 10424 case $enableval in 10425 yes) enable_fast_install=yes ;; 10426 no) enable_fast_install=no ;; 10427 *) 10428 enable_fast_install=no 10429 # Look at the argument we got. We use all the common list separators. 10430 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10431 for pkg in $enableval; do 10432 IFS="$lt_save_ifs" 10433 if test "X$pkg" = "X$p"; then 10434 enable_fast_install=yes 10435 fi 10436 done 10437 IFS="$lt_save_ifs" 10438 ;; 10439 esac], 10440 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) 10441 10442_LT_DECL([fast_install], [enable_fast_install], [0], 10443 [Whether or not to optimize for fast installation])dnl 10444])# _LT_ENABLE_FAST_INSTALL 10445 10446LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) 10447LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) 10448 10449# Old names: 10450AU_DEFUN([AC_ENABLE_FAST_INSTALL], 10451[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) 10452AC_DIAGNOSE([obsolete], 10453[$0: Remove this warning and the call to _LT_SET_OPTION when you put 10454the `fast-install' option into LT_INIT's first parameter.]) 10455]) 10456 10457AU_DEFUN([AC_DISABLE_FAST_INSTALL], 10458[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) 10459AC_DIAGNOSE([obsolete], 10460[$0: Remove this warning and the call to _LT_SET_OPTION when you put 10461the `disable-fast-install' option into LT_INIT's first parameter.]) 10462]) 10463 10464dnl aclocal-1.4 backwards compatibility: 10465dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) 10466dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) 10467 10468 10469# _LT_WITH_PIC([MODE]) 10470# -------------------- 10471# implement the --with-pic flag, and support the `pic-only' and `no-pic' 10472# LT_INIT options. 10473# MODE is either `yes' or `no'. If omitted, it defaults to `both'. 10474m4_define([_LT_WITH_PIC], 10475[AC_ARG_WITH([pic], 10476 [AS_HELP_STRING([--with-pic], 10477 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 10478 [pic_mode="$withval"], 10479 [pic_mode=default]) 10480 10481test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) 10482 10483_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl 10484])# _LT_WITH_PIC 10485 10486LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) 10487LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) 10488 10489# Old name: 10490AU_DEFUN([AC_LIBTOOL_PICMODE], 10491[_LT_SET_OPTION([LT_INIT], [pic-only]) 10492AC_DIAGNOSE([obsolete], 10493[$0: Remove this warning and the call to _LT_SET_OPTION when you 10494put the `pic-only' option into LT_INIT's first parameter.]) 10495]) 10496 10497dnl aclocal-1.4 backwards compatibility: 10498dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) 10499 10500 10501m4_define([_LTDL_MODE], []) 10502LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], 10503 [m4_define([_LTDL_MODE], [nonrecursive])]) 10504LT_OPTION_DEFINE([LTDL_INIT], [recursive], 10505 [m4_define([_LTDL_MODE], [recursive])]) 10506LT_OPTION_DEFINE([LTDL_INIT], [subproject], 10507 [m4_define([_LTDL_MODE], [subproject])]) 10508 10509m4_define([_LTDL_TYPE], []) 10510LT_OPTION_DEFINE([LTDL_INIT], [installable], 10511 [m4_define([_LTDL_TYPE], [installable])]) 10512LT_OPTION_DEFINE([LTDL_INIT], [convenience], 10513 [m4_define([_LTDL_TYPE], [convenience])]) 10514 10515# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- 10516# 10517# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 10518# Written by Gary V. Vaughan, 2004 10519# 10520# This file is free software; the Free Software Foundation gives 10521# unlimited permission to copy and/or distribute it, with or without 10522# modifications, as long as this notice is preserved. 10523 10524# serial 6 ltsugar.m4 10525 10526# This is to help aclocal find these macros, as it can't see m4_define. 10527AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) 10528 10529 10530# lt_join(SEP, ARG1, [ARG2...]) 10531# ----------------------------- 10532# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their 10533# associated separator. 10534# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier 10535# versions in m4sugar had bugs. 10536m4_define([lt_join], 10537[m4_if([$#], [1], [], 10538 [$#], [2], [[$2]], 10539 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) 10540m4_define([_lt_join], 10541[m4_if([$#$2], [2], [], 10542 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) 10543 10544 10545# lt_car(LIST) 10546# lt_cdr(LIST) 10547# ------------ 10548# Manipulate m4 lists. 10549# These macros are necessary as long as will still need to support 10550# Autoconf-2.59 which quotes differently. 10551m4_define([lt_car], [[$1]]) 10552m4_define([lt_cdr], 10553[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], 10554 [$#], 1, [], 10555 [m4_dquote(m4_shift($@))])]) 10556m4_define([lt_unquote], $1) 10557 10558 10559# lt_append(MACRO-NAME, STRING, [SEPARATOR]) 10560# ------------------------------------------ 10561# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. 10562# Note that neither SEPARATOR nor STRING are expanded; they are appended 10563# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). 10564# No SEPARATOR is output if MACRO-NAME was previously undefined (different 10565# than defined and empty). 10566# 10567# This macro is needed until we can rely on Autoconf 2.62, since earlier 10568# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. 10569m4_define([lt_append], 10570[m4_define([$1], 10571 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) 10572 10573 10574 10575# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) 10576# ---------------------------------------------------------- 10577# Produce a SEP delimited list of all paired combinations of elements of 10578# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list 10579# has the form PREFIXmINFIXSUFFIXn. 10580# Needed until we can rely on m4_combine added in Autoconf 2.62. 10581m4_define([lt_combine], 10582[m4_if(m4_eval([$# > 3]), [1], 10583 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl 10584[[m4_foreach([_Lt_prefix], [$2], 10585 [m4_foreach([_Lt_suffix], 10586 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, 10587 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) 10588 10589 10590# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) 10591# ----------------------------------------------------------------------- 10592# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited 10593# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. 10594m4_define([lt_if_append_uniq], 10595[m4_ifdef([$1], 10596 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], 10597 [lt_append([$1], [$2], [$3])$4], 10598 [$5])], 10599 [lt_append([$1], [$2], [$3])$4])]) 10600 10601 10602# lt_dict_add(DICT, KEY, VALUE) 10603# ----------------------------- 10604m4_define([lt_dict_add], 10605[m4_define([$1($2)], [$3])]) 10606 10607 10608# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) 10609# -------------------------------------------- 10610m4_define([lt_dict_add_subkey], 10611[m4_define([$1($2:$3)], [$4])]) 10612 10613 10614# lt_dict_fetch(DICT, KEY, [SUBKEY]) 10615# ---------------------------------- 10616m4_define([lt_dict_fetch], 10617[m4_ifval([$3], 10618 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), 10619 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) 10620 10621 10622# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) 10623# ----------------------------------------------------------------- 10624m4_define([lt_if_dict_fetch], 10625[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], 10626 [$5], 10627 [$6])]) 10628 10629 10630# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) 10631# -------------------------------------------------------------- 10632m4_define([lt_dict_filter], 10633[m4_if([$5], [], [], 10634 [lt_join(m4_quote(m4_default([$4], [[, ]])), 10635 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), 10636 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl 10637]) 10638 10639# ltversion.m4 -- version numbers -*- Autoconf -*- 10640# 10641# Copyright (C) 2004 Free Software Foundation, Inc. 10642# Written by Scott James Remnant, 2004 10643# 10644# This file is free software; the Free Software Foundation gives 10645# unlimited permission to copy and/or distribute it, with or without 10646# modifications, as long as this notice is preserved. 10647 10648# Generated from ltversion.in. 10649 10650# serial 3175 ltversion.m4 10651# This file is part of GNU Libtool 10652 10653m4_define([LT_PACKAGE_VERSION], [2.2.10]) 10654m4_define([LT_PACKAGE_REVISION], [1.3175]) 10655 10656AC_DEFUN([LTVERSION_VERSION], 10657[macro_version='2.2.10' 10658macro_revision='1.3175' 10659_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 10660_LT_DECL(, macro_revision, 0) 10661]) 10662 10663# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- 10664# 10665# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. 10666# Written by Scott James Remnant, 2004. 10667# 10668# This file is free software; the Free Software Foundation gives 10669# unlimited permission to copy and/or distribute it, with or without 10670# modifications, as long as this notice is preserved. 10671 10672# serial 5 lt~obsolete.m4 10673 10674# These exist entirely to fool aclocal when bootstrapping libtool. 10675# 10676# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) 10677# which have later been changed to m4_define as they aren't part of the 10678# exported API, or moved to Autoconf or Automake where they belong. 10679# 10680# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN 10681# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us 10682# using a macro with the same name in our local m4/libtool.m4 it'll 10683# pull the old libtool.m4 in (it doesn't see our shiny new m4_define 10684# and doesn't know about Autoconf macros at all.) 10685# 10686# So we provide this file, which has a silly filename so it's always 10687# included after everything else. This provides aclocal with the 10688# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything 10689# because those macros already exist, or will be overwritten later. 10690# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 10691# 10692# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. 10693# Yes, that means every name once taken will need to remain here until 10694# we give up compatibility with versions before 1.7, at which point 10695# we need to keep only those names which we still refer to. 10696 10697# This is to help aclocal find these macros, as it can't see m4_define. 10698AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) 10699 10700m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) 10701m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) 10702m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) 10703m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) 10704m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) 10705m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) 10706m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) 10707m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) 10708m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) 10709m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) 10710m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) 10711m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) 10712m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) 10713m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) 10714m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) 10715m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) 10716m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) 10717m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) 10718m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) 10719m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) 10720m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) 10721m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) 10722m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) 10723m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) 10724m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) 10725m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) 10726m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) 10727m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) 10728m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) 10729m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) 10730m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) 10731m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) 10732m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) 10733m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) 10734m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) 10735m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) 10736m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) 10737m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) 10738m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) 10739m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) 10740m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) 10741m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) 10742m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) 10743m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) 10744m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) 10745m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) 10746m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) 10747m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) 10748m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) 10749m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) 10750m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) 10751m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) 10752m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) 10753m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) 10754m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) 10755m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) 10756m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) 10757m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) 10758m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) 10759m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) 10760m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) 10761 10762