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