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