1# generated automatically by aclocal 1.15 -*- Autoconf -*- 2 3# Copyright (C) 1996-2014 Free Software Foundation, Inc. 4 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_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) 15m4_ifndef([AC_AUTOCONF_VERSION], 16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 17m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, 18[m4_warning([this file was generated for autoconf 2.69. 19You have another version of autoconf. It may work, but is not guaranteed to. 20If you have problems, you may need to regenerate the build system entirely. 21To do so, use the procedure documented by the package, typically 'autoreconf'.])]) 22 23# Copyright (C) 1995-2002 Free Software Foundation, Inc. 24# Copyright (C) 2001-2003,2004 Red Hat, Inc. 25# 26# This file is free software, distributed under the terms of the GNU 27# General Public License. As a special exception to the GNU General 28# Public License, this file may be distributed as part of a program 29# that contains a configuration script generated by Autoconf, under 30# the same distribution terms as the rest of that program. 31# 32# This file can be copied and used freely without restrictions. It can 33# be used in projects which are not available under the GNU Public License 34# but which still want to provide support for the GNU gettext functionality. 35# 36# Macro to add for using GNU gettext. 37# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996 38# 39# Modified to never use included libintl. 40# Owen Taylor <otaylor@redhat.com>, 12/15/1998 41# 42# Major rework to remove unused code 43# Owen Taylor <otaylor@redhat.com>, 12/11/2002 44# 45# Added better handling of ALL_LINGUAS from GNU gettext version 46# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002 47# 48# Modified to require ngettext 49# Matthias Clasen <mclasen@redhat.com> 08/06/2004 50# 51# We need this here as well, since someone might use autoconf-2.5x 52# to configure GLib then an older version to configure a package 53# using AM_GLIB_GNU_GETTEXT 54AC_PREREQ(2.53) 55 56dnl 57dnl We go to great lengths to make sure that aclocal won't 58dnl try to pull in the installed version of these macros 59dnl when running aclocal in the glib directory. 60dnl 61m4_copy([AC_DEFUN],[glib_DEFUN]) 62m4_copy([AC_REQUIRE],[glib_REQUIRE]) 63dnl 64dnl At the end, if we're not within glib, we'll define the public 65dnl definitions in terms of our private definitions. 66dnl 67 68# GLIB_LC_MESSAGES 69#-------------------- 70glib_DEFUN([GLIB_LC_MESSAGES], 71 [AC_CHECK_HEADERS([locale.h]) 72 if test $ac_cv_header_locale_h = yes; then 73 AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, 74 [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], 75 am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) 76 if test $am_cv_val_LC_MESSAGES = yes; then 77 AC_DEFINE(HAVE_LC_MESSAGES, 1, 78 [Define if your <locale.h> file defines LC_MESSAGES.]) 79 fi 80 fi]) 81 82# GLIB_PATH_PROG_WITH_TEST 83#---------------------------- 84dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, 85dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) 86glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], 87[# Extract the first word of "$2", so it can be a program name with args. 88set dummy $2; ac_word=[$]2 89AC_MSG_CHECKING([for $ac_word]) 90AC_CACHE_VAL(ac_cv_path_$1, 91[case "[$]$1" in 92 /*) 93 ac_cv_path_$1="[$]$1" # Let the user override the test with a path. 94 ;; 95 *) 96 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 97 for ac_dir in ifelse([$5], , $PATH, [$5]); do 98 test -z "$ac_dir" && ac_dir=. 99 if test -f $ac_dir/$ac_word; then 100 if [$3]; then 101 ac_cv_path_$1="$ac_dir/$ac_word" 102 break 103 fi 104 fi 105 done 106 IFS="$ac_save_ifs" 107dnl If no 4th arg is given, leave the cache variable unset, 108dnl so AC_PATH_PROGS will keep looking. 109ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" 110])dnl 111 ;; 112esac])dnl 113$1="$ac_cv_path_$1" 114if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then 115 AC_MSG_RESULT([$]$1) 116else 117 AC_MSG_RESULT(no) 118fi 119AC_SUBST($1)dnl 120]) 121 122# GLIB_WITH_NLS 123#----------------- 124glib_DEFUN([GLIB_WITH_NLS], 125 dnl NLS is obligatory 126 [USE_NLS=yes 127 AC_SUBST(USE_NLS) 128 129 gt_cv_have_gettext=no 130 131 CATOBJEXT=NONE 132 XGETTEXT=: 133 INTLLIBS= 134 135 AC_CHECK_HEADER(libintl.h, 136 [gt_cv_func_dgettext_libintl="no" 137 libintl_extra_libs="" 138 139 # 140 # First check in libc 141 # 142 AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc, 143 [AC_TRY_LINK([ 144#include <libintl.h> 145], 146 [return !ngettext ("","", 1)], 147 gt_cv_func_ngettext_libc=yes, 148 gt_cv_func_ngettext_libc=no) 149 ]) 150 151 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 152 AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, 153 [AC_TRY_LINK([ 154#include <libintl.h> 155], 156 [return !dgettext ("","")], 157 gt_cv_func_dgettext_libc=yes, 158 gt_cv_func_dgettext_libc=no) 159 ]) 160 fi 161 162 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 163 AC_CHECK_FUNCS(bind_textdomain_codeset) 164 fi 165 166 # 167 # If we don't have everything we want, check in libintl 168 # 169 if test "$gt_cv_func_dgettext_libc" != "yes" \ 170 || test "$gt_cv_func_ngettext_libc" != "yes" \ 171 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then 172 173 AC_CHECK_LIB(intl, bindtextdomain, 174 [AC_CHECK_LIB(intl, ngettext, 175 [AC_CHECK_LIB(intl, dgettext, 176 gt_cv_func_dgettext_libintl=yes)])]) 177 178 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then 179 AC_MSG_CHECKING([if -liconv is needed to use gettext]) 180 AC_MSG_RESULT([]) 181 AC_CHECK_LIB(intl, ngettext, 182 [AC_CHECK_LIB(intl, dcgettext, 183 [gt_cv_func_dgettext_libintl=yes 184 libintl_extra_libs=-liconv], 185 :,-liconv)], 186 :,-liconv) 187 fi 188 189 # 190 # If we found libintl, then check in it for bind_textdomain_codeset(); 191 # we'll prefer libc if neither have bind_textdomain_codeset(), 192 # and both have dgettext and ngettext 193 # 194 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then 195 glib_save_LIBS="$LIBS" 196 LIBS="$LIBS -lintl $libintl_extra_libs" 197 unset ac_cv_func_bind_textdomain_codeset 198 AC_CHECK_FUNCS(bind_textdomain_codeset) 199 LIBS="$glib_save_LIBS" 200 201 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then 202 gt_cv_func_dgettext_libc=no 203 else 204 if test "$gt_cv_func_dgettext_libc" = "yes" \ 205 && test "$gt_cv_func_ngettext_libc" = "yes"; then 206 gt_cv_func_dgettext_libintl=no 207 fi 208 fi 209 fi 210 fi 211 212 if test "$gt_cv_func_dgettext_libc" = "yes" \ 213 || test "$gt_cv_func_dgettext_libintl" = "yes"; then 214 gt_cv_have_gettext=yes 215 fi 216 217 if test "$gt_cv_func_dgettext_libintl" = "yes"; then 218 INTLLIBS="-lintl $libintl_extra_libs" 219 fi 220 221 if test "$gt_cv_have_gettext" = "yes"; then 222 AC_DEFINE(HAVE_GETTEXT,1, 223 [Define if the GNU gettext() function is already present or preinstalled.]) 224 GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, 225 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl 226 if test "$MSGFMT" != "no"; then 227 glib_save_LIBS="$LIBS" 228 LIBS="$LIBS $INTLLIBS" 229 AC_CHECK_FUNCS(dcgettext) 230 MSGFMT_OPTS= 231 AC_MSG_CHECKING([if msgfmt accepts -c]) 232 GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[ 233msgid "" 234msgstr "" 235"Content-Type: text/plain; charset=UTF-8\n" 236"Project-Id-Version: test 1.0\n" 237"PO-Revision-Date: 2007-02-15 12:01+0100\n" 238"Last-Translator: test <foo@bar.xx>\n" 239"Language-Team: C <LL@li.org>\n" 240"MIME-Version: 1.0\n" 241"Content-Transfer-Encoding: 8bit\n" 242], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])]) 243 AC_SUBST(MSGFMT_OPTS) 244 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) 245 GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, 246 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) 247 AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; 248 return _nl_msg_cat_cntr], 249 [CATOBJEXT=.gmo 250 DATADIRNAME=share], 251 [case $host in 252 *-*-solaris*) 253 dnl On Solaris, if bind_textdomain_codeset is in libc, 254 dnl GNU format message catalog is always supported, 255 dnl since both are added to the libc all together. 256 dnl Hence, we'd like to go with DATADIRNAME=share and 257 dnl and CATOBJEXT=.gmo in this case. 258 AC_CHECK_FUNC(bind_textdomain_codeset, 259 [CATOBJEXT=.gmo 260 DATADIRNAME=share], 261 [CATOBJEXT=.mo 262 DATADIRNAME=lib]) 263 ;; 264 *-*-openbsd*) 265 CATOBJEXT=.mo 266 DATADIRNAME=share 267 ;; 268 *) 269 CATOBJEXT=.mo 270 DATADIRNAME=lib 271 ;; 272 esac]) 273 LIBS="$glib_save_LIBS" 274 INSTOBJEXT=.mo 275 else 276 gt_cv_have_gettext=no 277 fi 278 fi 279 ]) 280 281 if test "$gt_cv_have_gettext" = "yes" ; then 282 AC_DEFINE(ENABLE_NLS, 1, 283 [always defined to indicate that i18n is enabled]) 284 fi 285 286 dnl Test whether we really found GNU xgettext. 287 if test "$XGETTEXT" != ":"; then 288 dnl If it is not GNU xgettext we define it as : so that the 289 dnl Makefiles still can work. 290 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then 291 : ; 292 else 293 AC_MSG_RESULT( 294 [found xgettext program is not GNU xgettext; ignore it]) 295 XGETTEXT=":" 296 fi 297 fi 298 299 # We need to process the po/ directory. 300 POSUB=po 301 302 AC_OUTPUT_COMMANDS( 303 [case "$CONFIG_FILES" in *po/Makefile.in*) 304 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile 305 esac]) 306 307 dnl These rules are solely for the distribution goal. While doing this 308 dnl we only have to keep exactly one list of the available catalogs 309 dnl in configure.ac. 310 for lang in $ALL_LINGUAS; do 311 GMOFILES="$GMOFILES $lang.gmo" 312 POFILES="$POFILES $lang.po" 313 done 314 315 dnl Make all variables we use known to autoconf. 316 AC_SUBST(CATALOGS) 317 AC_SUBST(CATOBJEXT) 318 AC_SUBST(DATADIRNAME) 319 AC_SUBST(GMOFILES) 320 AC_SUBST(INSTOBJEXT) 321 AC_SUBST(INTLLIBS) 322 AC_SUBST(PO_IN_DATADIR_TRUE) 323 AC_SUBST(PO_IN_DATADIR_FALSE) 324 AC_SUBST(POFILES) 325 AC_SUBST(POSUB) 326 ]) 327 328# AM_GLIB_GNU_GETTEXT 329# ------------------- 330# Do checks necessary for use of gettext. If a suitable implementation 331# of gettext is found in either in libintl or in the C library, 332# it will set INTLLIBS to the libraries needed for use of gettext 333# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable 334# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() 335# on various variables needed by the Makefile.in.in installed by 336# glib-gettextize. 337dnl 338AU_DEFUN([GLIB_GNU_GETTEXT], 339 [AC_REQUIRE([AC_PROG_CC])dnl 340 341 GLIB_LC_MESSAGES 342 GLIB_WITH_NLS 343 344 if test "$gt_cv_have_gettext" = "yes"; then 345 if test "x$ALL_LINGUAS" = "x"; then 346 LINGUAS= 347 else 348 AC_MSG_CHECKING(for catalogs to be installed) 349 NEW_LINGUAS= 350 for presentlang in $ALL_LINGUAS; do 351 useit=no 352 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then 353 desiredlanguages="$LINGUAS" 354 else 355 desiredlanguages="$ALL_LINGUAS" 356 fi 357 for desiredlang in $desiredlanguages; do 358 # Use the presentlang catalog if desiredlang is 359 # a. equal to presentlang, or 360 # b. a variant of presentlang (because in this case, 361 # presentlang can be used as a fallback for messages 362 # which are not translated in the desiredlang catalog). 363 case "$desiredlang" in 364 "$presentlang"*) useit=yes;; 365 esac 366 done 367 if test $useit = yes; then 368 NEW_LINGUAS="$NEW_LINGUAS $presentlang" 369 fi 370 done 371 LINGUAS=$NEW_LINGUAS 372 AC_MSG_RESULT($LINGUAS) 373 fi 374 375 dnl Construct list of names of catalog files to be constructed. 376 if test -n "$LINGUAS"; then 377 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 378 fi 379 fi 380 381 dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly 382 dnl find the mkinstalldirs script in another subdir but ($top_srcdir). 383 dnl Try to locate is. 384 MKINSTALLDIRS= 385 if test -n "$ac_aux_dir"; then 386 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" 387 fi 388 if test -z "$MKINSTALLDIRS"; then 389 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 390 fi 391 AC_SUBST(MKINSTALLDIRS) 392 393 dnl Generate list of files to be processed by xgettext which will 394 dnl be included in po/Makefile. 395 test -d po || mkdir po 396 if test "x$srcdir" != "x."; then 397 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then 398 posrcprefix="$srcdir/" 399 else 400 posrcprefix="../$srcdir/" 401 fi 402 else 403 posrcprefix="../" 404 fi 405 rm -f po/POTFILES 406 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ 407 < $srcdir/po/POTFILES.in > po/POTFILES 408 ], 409 [[$0: This macro is deprecated. You should use upstream gettext instead.]]) 410 411# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) 412# ------------------------------- 413# Define VARIABLE to the location where catalog files will 414# be installed by po/Makefile. 415glib_DEFUN([GLIB_DEFINE_LOCALEDIR], 416[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl 417glib_save_prefix="$prefix" 418glib_save_exec_prefix="$exec_prefix" 419glib_save_datarootdir="$datarootdir" 420test "x$prefix" = xNONE && prefix=$ac_default_prefix 421test "x$exec_prefix" = xNONE && exec_prefix=$prefix 422datarootdir=`eval echo "${datarootdir}"` 423if test "x$CATOBJEXT" = "x.mo" ; then 424 localedir=`eval echo "${libdir}/locale"` 425else 426 localedir=`eval echo "${datadir}/locale"` 427fi 428prefix="$glib_save_prefix" 429exec_prefix="$glib_save_exec_prefix" 430datarootdir="$glib_save_datarootdir" 431AC_DEFINE_UNQUOTED($1, "$localedir", 432 [Define the location where the catalogs will be installed]) 433]) 434 435dnl 436dnl Now the definitions that aclocal will find 437dnl 438ifdef(glib_configure_ac,[],[ 439AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) 440AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) 441])dnl 442 443# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL]) 444# 445# Create a temporary file with TEST-FILE as its contents and pass the 446# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with 447# 0 and perform ACTION-IF-FAIL for any other exit status. 448AC_DEFUN([GLIB_RUN_PROG], 449[cat >conftest.foo <<_ACEOF 450$2 451_ACEOF 452if AC_RUN_LOG([$1 conftest.foo]); then 453 m4_ifval([$3], [$3], [:]) 454m4_ifvaln([$4], [else $4])dnl 455echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD 456sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD 457fi]) 458 459 460dnl GLIB_GSETTINGS 461dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether 462dnl the schema should be compiled 463dnl 464 465AC_DEFUN([GLIB_GSETTINGS], 466[ 467 m4_pattern_allow([AM_V_GEN]) 468 AC_ARG_ENABLE(schemas-compile, 469 AS_HELP_STRING([--disable-schemas-compile], 470 [Disable regeneration of gschemas.compiled on install]), 471 [case ${enableval} in 472 yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;; 473 no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;; 474 *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;; 475 esac]) 476 AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE]) 477 PKG_PROG_PKG_CONFIG([0.16]) 478 AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas]) 479 if test x$cross_compiling != xyes; then 480 GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0` 481 else 482 AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas) 483 fi 484 AC_SUBST(GLIB_COMPILE_SCHEMAS) 485 if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then 486 ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2]) 487 else 488 ifelse([$1],,[:],[$1]) 489 fi 490 491 GSETTINGS_RULES=' 492.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas 493 494mostlyclean-am: clean-gsettings-schemas 495 496gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE)) 497 498%.gschema.valid: %.gschema.xml $(gsettings__enum_file) 499 $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$< && mkdir -p [$](@D) && touch [$]@ 500 501all-am: $(gsettings_SCHEMAS:.xml=.valid) 502uninstall-am: uninstall-gsettings-schemas 503install-data-am: install-gsettings-schemas 504 505.SECONDARY: $(gsettings_SCHEMAS) 506 507install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file) 508 @$(NORMAL_INSTALL) 509 if test -n "$^"; then \ 510 test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \ 511 $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \ 512 test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \ 513 fi 514 515uninstall-gsettings-schemas: 516 @$(NORMAL_UNINSTALL) 517 @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \ 518 files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \ 519 test -n "$$files" || exit 0; \ 520 echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \ 521 cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files 522 test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir) 523 524clean-gsettings-schemas: 525 rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file) 526 527ifdef gsettings_ENUM_NAMESPACE 528$(gsettings__enum_file): $(gsettings_ENUM_FILES) 529 $(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail " </@type@>" --ftail "</schemalist>" [$]^ > [$]@.tmp && mv [$]@.tmp [$]@ 530endif 531' 532 _GSETTINGS_SUBST(GSETTINGS_RULES) 533]) 534 535dnl _GSETTINGS_SUBST(VARIABLE) 536dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST 537AC_DEFUN([_GSETTINGS_SUBST], 538[ 539AC_SUBST([$1]) 540m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) 541] 542) 543 544 545dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml]) 546# serial 42 IT_PROG_INTLTOOL 547AC_DEFUN([IT_PROG_INTLTOOL], [ 548AC_PREREQ([2.50])dnl 549AC_REQUIRE([AM_NLS])dnl 550 551case "$am__api_version" in 552 1.[01234]) 553 AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool]) 554 ;; 555 *) 556 ;; 557esac 558 559INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` 560INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` 561INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` 562if test -n "$1"; then 563 AC_MSG_CHECKING([for intltool >= $1]) 564 AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found]) 565 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || 566 AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.]) 567fi 568 569AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update]) 570AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge]) 571AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract]) 572if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then 573 AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.]) 574fi 575 576if test -z "$AM_DEFAULT_VERBOSITY"; then 577 AM_DEFAULT_VERBOSITY=1 578fi 579AC_SUBST([AM_DEFAULT_VERBOSITY]) 580 581INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))' 582INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))' 583INTLTOOL__v_MERGE_0='@echo " ITMRG " [$]@;' 584AC_SUBST(INTLTOOL_V_MERGE) 585AC_SUBST(INTLTOOL__v_MERGE_) 586AC_SUBST(INTLTOOL__v_MERGE_0) 587 588INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))' 589intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))' 590intltool__v_merge_options_0='-q' 591AC_SUBST(INTLTOOL_V_MERGE_OPTIONS) 592AC_SUBST(intltool__v_merge_options_) 593AC_SUBST(intltool__v_merge_options_0) 594 595 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 596INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 597 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 598 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 599 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@' 600 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 601 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 602 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 603INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 604 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 605 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 606if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then 607 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@' 608else 609 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir' 610fi 611 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 612 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 613 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 614 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 615 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 616 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 617 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 618 619_IT_SUBST(INTLTOOL_DESKTOP_RULE) 620_IT_SUBST(INTLTOOL_DIRECTORY_RULE) 621_IT_SUBST(INTLTOOL_KEYS_RULE) 622_IT_SUBST(INTLTOOL_PROP_RULE) 623_IT_SUBST(INTLTOOL_OAF_RULE) 624_IT_SUBST(INTLTOOL_PONG_RULE) 625_IT_SUBST(INTLTOOL_SERVER_RULE) 626_IT_SUBST(INTLTOOL_SHEET_RULE) 627_IT_SUBST(INTLTOOL_SOUNDLIST_RULE) 628_IT_SUBST(INTLTOOL_UI_RULE) 629_IT_SUBST(INTLTOOL_XAM_RULE) 630_IT_SUBST(INTLTOOL_KBD_RULE) 631_IT_SUBST(INTLTOOL_XML_RULE) 632_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE) 633_IT_SUBST(INTLTOOL_CAVES_RULE) 634_IT_SUBST(INTLTOOL_SCHEMAS_RULE) 635_IT_SUBST(INTLTOOL_THEME_RULE) 636_IT_SUBST(INTLTOOL_SERVICE_RULE) 637_IT_SUBST(INTLTOOL_POLICY_RULE) 638 639# Check the gettext tools to make sure they are GNU 640AC_PATH_PROG(XGETTEXT, xgettext) 641AC_PATH_PROG(MSGMERGE, msgmerge) 642AC_PATH_PROG(MSGFMT, msgfmt) 643AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) 644if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then 645 AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) 646fi 647xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" 648mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" 649mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" 650if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then 651 AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) 652fi 653 654AC_PATH_PROG(INTLTOOL_PERL, perl) 655if test -z "$INTLTOOL_PERL"; then 656 AC_MSG_ERROR([perl not found]) 657fi 658AC_MSG_CHECKING([for perl >= 5.8.1]) 659$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 660if test $? -ne 0; then 661 AC_MSG_ERROR([perl 5.8.1 is required for intltool]) 662else 663 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"` 664 AC_MSG_RESULT([$IT_PERL_VERSION]) 665fi 666if test "x$2" != "xno-xml"; then 667 AC_MSG_CHECKING([for XML::Parser]) 668 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then 669 AC_MSG_RESULT([ok]) 670 else 671 AC_MSG_ERROR([XML::Parser perl module is required for intltool]) 672 fi 673fi 674 675# Substitute ALL_LINGUAS so we can use it in po/Makefile 676AC_SUBST(ALL_LINGUAS) 677 678IT_PO_SUBDIR([po]) 679 680]) 681 682 683# IT_PO_SUBDIR(DIRNAME) 684# --------------------- 685# All po subdirs have to be declared with this macro; the subdir "po" is 686# declared by IT_PROG_INTLTOOL. 687# 688AC_DEFUN([IT_PO_SUBDIR], 689[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS. 690dnl 691dnl The following CONFIG_COMMANDS should be executed at the very end 692dnl of config.status. 693AC_CONFIG_COMMANDS_PRE([ 694 AC_CONFIG_COMMANDS([$1/stamp-it], [ 695 if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then 696 AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.]) 697 fi 698 rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp" 699 >"$1/stamp-it.tmp" 700 [sed '/^#/d 701 s/^[[].*] *// 702 /^[ ]*$/d 703 '"s|^| $ac_top_srcdir/|" \ 704 "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES" 705 ] 706 [sed '/^POTFILES =/,/[^\\]$/ { 707 /^POTFILES =/!d 708 r $1/POTFILES 709 } 710 ' "$1/Makefile.in" >"$1/Makefile"] 711 rm -f "$1/Makefile.tmp" 712 mv "$1/stamp-it.tmp" "$1/stamp-it" 713 ]) 714])dnl 715]) 716 717# _IT_SUBST(VARIABLE) 718# ------------------- 719# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST 720# 721AC_DEFUN([_IT_SUBST], 722[ 723AC_SUBST([$1]) 724m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) 725] 726) 727 728# deprecated macros 729AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL]) 730# A hint is needed for aclocal from Automake <= 1.9.4: 731# AC_DEFUN([AC_PROG_INTLTOOL], ...) 732 733 734# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 735# 736# Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc. 737# Written by Gordon Matzigkeit, 1996 738# 739# This file is free software; the Free Software Foundation gives 740# unlimited permission to copy and/or distribute it, with or without 741# modifications, as long as this notice is preserved. 742 743m4_define([_LT_COPYING], [dnl 744# Copyright (C) 2014 Free Software Foundation, Inc. 745# This is free software; see the source for copying conditions. There is NO 746# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 747 748# GNU Libtool is free software; you can redistribute it and/or modify 749# it under the terms of the GNU General Public License as published by 750# the Free Software Foundation; either version 2 of of the License, or 751# (at your option) any later version. 752# 753# As a special exception to the GNU General Public License, if you 754# distribute this file as part of a program or library that is built 755# using GNU Libtool, you may include this file under the same 756# distribution terms that you use for the rest of that program. 757# 758# GNU Libtool is distributed in the hope that it will be useful, but 759# WITHOUT ANY WARRANTY; without even the implied warranty of 760# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 761# GNU General Public License for more details. 762# 763# You should have received a copy of the GNU General Public License 764# along with this program. If not, see <http://www.gnu.org/licenses/>. 765]) 766 767# serial 58 LT_INIT 768 769 770# LT_PREREQ(VERSION) 771# ------------------ 772# Complain and exit if this libtool version is less that VERSION. 773m4_defun([LT_PREREQ], 774[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, 775 [m4_default([$3], 776 [m4_fatal([Libtool version $1 or higher is required], 777 63)])], 778 [$2])]) 779 780 781# _LT_CHECK_BUILDDIR 782# ------------------ 783# Complain if the absolute build directory name contains unusual characters 784m4_defun([_LT_CHECK_BUILDDIR], 785[case `pwd` in 786 *\ * | *\ *) 787 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; 788esac 789]) 790 791 792# LT_INIT([OPTIONS]) 793# ------------------ 794AC_DEFUN([LT_INIT], 795[AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK 796AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 797AC_BEFORE([$0], [LT_LANG])dnl 798AC_BEFORE([$0], [LT_OUTPUT])dnl 799AC_BEFORE([$0], [LTDL_INIT])dnl 800m4_require([_LT_CHECK_BUILDDIR])dnl 801 802dnl Autoconf doesn't catch unexpanded LT_ macros by default: 803m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl 804m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl 805dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 806dnl unless we require an AC_DEFUNed macro: 807AC_REQUIRE([LTOPTIONS_VERSION])dnl 808AC_REQUIRE([LTSUGAR_VERSION])dnl 809AC_REQUIRE([LTVERSION_VERSION])dnl 810AC_REQUIRE([LTOBSOLETE_VERSION])dnl 811m4_require([_LT_PROG_LTMAIN])dnl 812 813_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) 814 815dnl Parse OPTIONS 816_LT_SET_OPTIONS([$0], [$1]) 817 818# This can be used to rebuild libtool when needed 819LIBTOOL_DEPS=$ltmain 820 821# Always use our own libtool. 822LIBTOOL='$(SHELL) $(top_builddir)/libtool' 823AC_SUBST(LIBTOOL)dnl 824 825_LT_SETUP 826 827# Only expand once: 828m4_define([LT_INIT]) 829])# LT_INIT 830 831# Old names: 832AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) 833AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) 834dnl aclocal-1.4 backwards compatibility: 835dnl AC_DEFUN([AC_PROG_LIBTOOL], []) 836dnl AC_DEFUN([AM_PROG_LIBTOOL], []) 837 838 839# _LT_PREPARE_CC_BASENAME 840# ----------------------- 841m4_defun([_LT_PREPARE_CC_BASENAME], [ 842# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 843func_cc_basename () 844{ 845 for cc_temp in @S|@*""; do 846 case $cc_temp in 847 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 848 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 849 \-*) ;; 850 *) break;; 851 esac 852 done 853 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 854} 855])# _LT_PREPARE_CC_BASENAME 856 857 858# _LT_CC_BASENAME(CC) 859# ------------------- 860# It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME, 861# but that macro is also expanded into generated libtool script, which 862# arranges for $SED and $ECHO to be set by different means. 863m4_defun([_LT_CC_BASENAME], 864[m4_require([_LT_PREPARE_CC_BASENAME])dnl 865AC_REQUIRE([_LT_DECL_SED])dnl 866AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 867func_cc_basename $1 868cc_basename=$func_cc_basename_result 869]) 870 871 872# _LT_FILEUTILS_DEFAULTS 873# ---------------------- 874# It is okay to use these file commands and assume they have been set 875# sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'. 876m4_defun([_LT_FILEUTILS_DEFAULTS], 877[: ${CP="cp -f"} 878: ${MV="mv -f"} 879: ${RM="rm -f"} 880])# _LT_FILEUTILS_DEFAULTS 881 882 883# _LT_SETUP 884# --------- 885m4_defun([_LT_SETUP], 886[AC_REQUIRE([AC_CANONICAL_HOST])dnl 887AC_REQUIRE([AC_CANONICAL_BUILD])dnl 888AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl 889AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 890 891_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl 892dnl 893_LT_DECL([], [host_alias], [0], [The host system])dnl 894_LT_DECL([], [host], [0])dnl 895_LT_DECL([], [host_os], [0])dnl 896dnl 897_LT_DECL([], [build_alias], [0], [The build system])dnl 898_LT_DECL([], [build], [0])dnl 899_LT_DECL([], [build_os], [0])dnl 900dnl 901AC_REQUIRE([AC_PROG_CC])dnl 902AC_REQUIRE([LT_PATH_LD])dnl 903AC_REQUIRE([LT_PATH_NM])dnl 904dnl 905AC_REQUIRE([AC_PROG_LN_S])dnl 906test -z "$LN_S" && LN_S="ln -s" 907_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl 908dnl 909AC_REQUIRE([LT_CMD_MAX_LEN])dnl 910_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl 911_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl 912dnl 913m4_require([_LT_FILEUTILS_DEFAULTS])dnl 914m4_require([_LT_CHECK_SHELL_FEATURES])dnl 915m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl 916m4_require([_LT_CMD_RELOAD])dnl 917m4_require([_LT_CHECK_MAGIC_METHOD])dnl 918m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl 919m4_require([_LT_CMD_OLD_ARCHIVE])dnl 920m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 921m4_require([_LT_WITH_SYSROOT])dnl 922m4_require([_LT_CMD_TRUNCATE])dnl 923 924_LT_CONFIG_LIBTOOL_INIT([ 925# See if we are running on zsh, and set the options that allow our 926# commands through without removal of \ escapes INIT. 927if test -n "\${ZSH_VERSION+set}"; then 928 setopt NO_GLOB_SUBST 929fi 930]) 931if test -n "${ZSH_VERSION+set}"; then 932 setopt NO_GLOB_SUBST 933fi 934 935_LT_CHECK_OBJDIR 936 937m4_require([_LT_TAG_COMPILER])dnl 938 939case $host_os in 940aix3*) 941 # AIX sometimes has problems with the GCC collect2 program. For some 942 # reason, if we set the COLLECT_NAMES environment variable, the problems 943 # vanish in a puff of smoke. 944 if test set != "${COLLECT_NAMES+set}"; then 945 COLLECT_NAMES= 946 export COLLECT_NAMES 947 fi 948 ;; 949esac 950 951# Global variables: 952ofile=libtool 953can_build_shared=yes 954 955# All known linkers require a '.a' archive for static linking (except MSVC, 956# which needs '.lib'). 957libext=a 958 959with_gnu_ld=$lt_cv_prog_gnu_ld 960 961old_CC=$CC 962old_CFLAGS=$CFLAGS 963 964# Set sane defaults for various variables 965test -z "$CC" && CC=cc 966test -z "$LTCC" && LTCC=$CC 967test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 968test -z "$LD" && LD=ld 969test -z "$ac_objext" && ac_objext=o 970 971_LT_CC_BASENAME([$compiler]) 972 973# Only perform the check for file, if the check method requires it 974test -z "$MAGIC_CMD" && MAGIC_CMD=file 975case $deplibs_check_method in 976file_magic*) 977 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 978 _LT_PATH_MAGIC 979 fi 980 ;; 981esac 982 983# Use C for the default configuration in the libtool script 984LT_SUPPORTED_TAG([CC]) 985_LT_LANG_C_CONFIG 986_LT_LANG_DEFAULT_CONFIG 987_LT_CONFIG_COMMANDS 988])# _LT_SETUP 989 990 991# _LT_PREPARE_SED_QUOTE_VARS 992# -------------------------- 993# Define a few sed substitution that help us do robust quoting. 994m4_defun([_LT_PREPARE_SED_QUOTE_VARS], 995[# Backslashify metacharacters that are still active within 996# double-quoted strings. 997sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' 998 999# Same as above, but do not quote variable references. 1000double_quote_subst='s/\([["`\\]]\)/\\\1/g' 1001 1002# Sed substitution to delay expansion of an escaped shell variable in a 1003# double_quote_subst'ed string. 1004delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 1005 1006# Sed substitution to delay expansion of an escaped single quote. 1007delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 1008 1009# Sed substitution to avoid accidental globbing in evaled expressions 1010no_glob_subst='s/\*/\\\*/g' 1011]) 1012 1013# _LT_PROG_LTMAIN 1014# --------------- 1015# Note that this code is called both from 'configure', and 'config.status' 1016# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 1017# 'config.status' has no value for ac_aux_dir unless we are using Automake, 1018# so we pass a copy along to make sure it has a sensible value anyway. 1019m4_defun([_LT_PROG_LTMAIN], 1020[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 1021_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) 1022ltmain=$ac_aux_dir/ltmain.sh 1023])# _LT_PROG_LTMAIN 1024 1025 1026 1027# So that we can recreate a full libtool script including additional 1028# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 1029# in macros and then make a single call at the end using the 'libtool' 1030# label. 1031 1032 1033# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 1034# ---------------------------------------- 1035# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 1036m4_define([_LT_CONFIG_LIBTOOL_INIT], 1037[m4_ifval([$1], 1038 [m4_append([_LT_OUTPUT_LIBTOOL_INIT], 1039 [$1 1040])])]) 1041 1042# Initialize. 1043m4_define([_LT_OUTPUT_LIBTOOL_INIT]) 1044 1045 1046# _LT_CONFIG_LIBTOOL([COMMANDS]) 1047# ------------------------------ 1048# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. 1049m4_define([_LT_CONFIG_LIBTOOL], 1050[m4_ifval([$1], 1051 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], 1052 [$1 1053])])]) 1054 1055# Initialize. 1056m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) 1057 1058 1059# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) 1060# ----------------------------------------------------- 1061m4_defun([_LT_CONFIG_SAVE_COMMANDS], 1062[_LT_CONFIG_LIBTOOL([$1]) 1063_LT_CONFIG_LIBTOOL_INIT([$2]) 1064]) 1065 1066 1067# _LT_FORMAT_COMMENT([COMMENT]) 1068# ----------------------------- 1069# Add leading comment marks to the start of each line, and a trailing 1070# full-stop to the whole comment if one is not present already. 1071m4_define([_LT_FORMAT_COMMENT], 1072[m4_ifval([$1], [ 1073m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], 1074 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) 1075)]) 1076 1077 1078 1079 1080 1081# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) 1082# ------------------------------------------------------------------- 1083# CONFIGNAME is the name given to the value in the libtool script. 1084# VARNAME is the (base) name used in the configure script. 1085# VALUE may be 0, 1 or 2 for a computed quote escaped value based on 1086# VARNAME. Any other value will be used directly. 1087m4_define([_LT_DECL], 1088[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], 1089 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], 1090 [m4_ifval([$1], [$1], [$2])]) 1091 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) 1092 m4_ifval([$4], 1093 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) 1094 lt_dict_add_subkey([lt_decl_dict], [$2], 1095 [tagged?], [m4_ifval([$5], [yes], [no])])]) 1096]) 1097 1098 1099# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) 1100# -------------------------------------------------------- 1101m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) 1102 1103 1104# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) 1105# ------------------------------------------------ 1106m4_define([lt_decl_tag_varnames], 1107[_lt_decl_filter([tagged?], [yes], $@)]) 1108 1109 1110# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) 1111# --------------------------------------------------------- 1112m4_define([_lt_decl_filter], 1113[m4_case([$#], 1114 [0], [m4_fatal([$0: too few arguments: $#])], 1115 [1], [m4_fatal([$0: too few arguments: $#: $1])], 1116 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], 1117 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], 1118 [lt_dict_filter([lt_decl_dict], $@)])[]dnl 1119]) 1120 1121 1122# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) 1123# -------------------------------------------------- 1124m4_define([lt_decl_quote_varnames], 1125[_lt_decl_filter([value], [1], $@)]) 1126 1127 1128# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) 1129# --------------------------------------------------- 1130m4_define([lt_decl_dquote_varnames], 1131[_lt_decl_filter([value], [2], $@)]) 1132 1133 1134# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) 1135# --------------------------------------------------- 1136m4_define([lt_decl_varnames_tagged], 1137[m4_assert([$# <= 2])dnl 1138_$0(m4_quote(m4_default([$1], [[, ]])), 1139 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), 1140 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) 1141m4_define([_lt_decl_varnames_tagged], 1142[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) 1143 1144 1145# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) 1146# ------------------------------------------------ 1147m4_define([lt_decl_all_varnames], 1148[_$0(m4_quote(m4_default([$1], [[, ]])), 1149 m4_if([$2], [], 1150 m4_quote(lt_decl_varnames), 1151 m4_quote(m4_shift($@))))[]dnl 1152]) 1153m4_define([_lt_decl_all_varnames], 1154[lt_join($@, lt_decl_varnames_tagged([$1], 1155 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl 1156]) 1157 1158 1159# _LT_CONFIG_STATUS_DECLARE([VARNAME]) 1160# ------------------------------------ 1161# Quote a variable value, and forward it to 'config.status' so that its 1162# declaration there will have the same value as in 'configure'. VARNAME 1163# must have a single quote delimited value for this to work. 1164m4_define([_LT_CONFIG_STATUS_DECLARE], 1165[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) 1166 1167 1168# _LT_CONFIG_STATUS_DECLARATIONS 1169# ------------------------------ 1170# We delimit libtool config variables with single quotes, so when 1171# we write them to config.status, we have to be sure to quote all 1172# embedded single quotes properly. In configure, this macro expands 1173# each variable declared with _LT_DECL (and _LT_TAGDECL) into: 1174# 1175# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' 1176m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], 1177[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), 1178 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) 1179 1180 1181# _LT_LIBTOOL_TAGS 1182# ---------------- 1183# Output comment and list of tags supported by the script 1184m4_defun([_LT_LIBTOOL_TAGS], 1185[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl 1186available_tags='_LT_TAGS'dnl 1187]) 1188 1189 1190# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 1191# ----------------------------------- 1192# Extract the dictionary values for VARNAME (optionally with TAG) and 1193# expand to a commented shell variable setting: 1194# 1195# # Some comment about what VAR is for. 1196# visible_name=$lt_internal_name 1197m4_define([_LT_LIBTOOL_DECLARE], 1198[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], 1199 [description])))[]dnl 1200m4_pushdef([_libtool_name], 1201 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl 1202m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), 1203 [0], [_libtool_name=[$]$1], 1204 [1], [_libtool_name=$lt_[]$1], 1205 [2], [_libtool_name=$lt_[]$1], 1206 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl 1207m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl 1208]) 1209 1210 1211# _LT_LIBTOOL_CONFIG_VARS 1212# ----------------------- 1213# Produce commented declarations of non-tagged libtool config variables 1214# suitable for insertion in the LIBTOOL CONFIG section of the 'libtool' 1215# script. Tagged libtool config variables (even for the LIBTOOL CONFIG 1216# section) are produced by _LT_LIBTOOL_TAG_VARS. 1217m4_defun([_LT_LIBTOOL_CONFIG_VARS], 1218[m4_foreach([_lt_var], 1219 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), 1220 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) 1221 1222 1223# _LT_LIBTOOL_TAG_VARS(TAG) 1224# ------------------------- 1225m4_define([_LT_LIBTOOL_TAG_VARS], 1226[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), 1227 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) 1228 1229 1230# _LT_TAGVAR(VARNAME, [TAGNAME]) 1231# ------------------------------ 1232m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) 1233 1234 1235# _LT_CONFIG_COMMANDS 1236# ------------------- 1237# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 1238# variables for single and double quote escaping we saved from calls 1239# to _LT_DECL, we can put quote escaped variables declarations 1240# into 'config.status', and then the shell code to quote escape them in 1241# for loops in 'config.status'. Finally, any additional code accumulated 1242# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 1243m4_defun([_LT_CONFIG_COMMANDS], 1244[AC_PROVIDE_IFELSE([LT_OUTPUT], 1245 dnl If the libtool generation code has been placed in $CONFIG_LT, 1246 dnl instead of duplicating it all over again into config.status, 1247 dnl then we will have config.status run $CONFIG_LT later, so it 1248 dnl needs to know what name is stored there: 1249 [AC_CONFIG_COMMANDS([libtool], 1250 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], 1251 dnl If the libtool generation code is destined for config.status, 1252 dnl expand the accumulated commands and init code now: 1253 [AC_CONFIG_COMMANDS([libtool], 1254 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) 1255])#_LT_CONFIG_COMMANDS 1256 1257 1258# Initialize. 1259m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], 1260[ 1261 1262# The HP-UX ksh and POSIX shell print the target directory to stdout 1263# if CDPATH is set. 1264(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 1265 1266sed_quote_subst='$sed_quote_subst' 1267double_quote_subst='$double_quote_subst' 1268delay_variable_subst='$delay_variable_subst' 1269_LT_CONFIG_STATUS_DECLARATIONS 1270LTCC='$LTCC' 1271LTCFLAGS='$LTCFLAGS' 1272compiler='$compiler_DEFAULT' 1273 1274# A function that is used when there is no print builtin or printf. 1275func_fallback_echo () 1276{ 1277 eval 'cat <<_LTECHO_EOF 1278\$[]1 1279_LTECHO_EOF' 1280} 1281 1282# Quote evaled strings. 1283for var in lt_decl_all_varnames([[ \ 1284]], lt_decl_quote_varnames); do 1285 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 1286 *[[\\\\\\\`\\"\\\$]]*) 1287 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 1288 ;; 1289 *) 1290 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 1291 ;; 1292 esac 1293done 1294 1295# Double-quote double-evaled strings. 1296for var in lt_decl_all_varnames([[ \ 1297]], lt_decl_dquote_varnames); do 1298 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 1299 *[[\\\\\\\`\\"\\\$]]*) 1300 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 1301 ;; 1302 *) 1303 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 1304 ;; 1305 esac 1306done 1307 1308_LT_OUTPUT_LIBTOOL_INIT 1309]) 1310 1311# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) 1312# ------------------------------------ 1313# Generate a child script FILE with all initialization necessary to 1314# reuse the environment learned by the parent script, and make the 1315# file executable. If COMMENT is supplied, it is inserted after the 1316# '#!' sequence but before initialization text begins. After this 1317# macro, additional text can be appended to FILE to form the body of 1318# the child script. The macro ends with non-zero status if the 1319# file could not be fully written (such as if the disk is full). 1320m4_ifdef([AS_INIT_GENERATED], 1321[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], 1322[m4_defun([_LT_GENERATED_FILE_INIT], 1323[m4_require([AS_PREPARE])]dnl 1324[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl 1325[lt_write_fail=0 1326cat >$1 <<_ASEOF || lt_write_fail=1 1327#! $SHELL 1328# Generated by $as_me. 1329$2 1330SHELL=\${CONFIG_SHELL-$SHELL} 1331export SHELL 1332_ASEOF 1333cat >>$1 <<\_ASEOF || lt_write_fail=1 1334AS_SHELL_SANITIZE 1335_AS_PREPARE 1336exec AS_MESSAGE_FD>&1 1337_ASEOF 1338test 0 = "$lt_write_fail" && chmod +x $1[]dnl 1339m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT 1340 1341# LT_OUTPUT 1342# --------- 1343# This macro allows early generation of the libtool script (before 1344# AC_OUTPUT is called), incase it is used in configure for compilation 1345# tests. 1346AC_DEFUN([LT_OUTPUT], 1347[: ${CONFIG_LT=./config.lt} 1348AC_MSG_NOTICE([creating $CONFIG_LT]) 1349_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], 1350[# Run this file to recreate a libtool stub with the current configuration.]) 1351 1352cat >>"$CONFIG_LT" <<\_LTEOF 1353lt_cl_silent=false 1354exec AS_MESSAGE_LOG_FD>>config.log 1355{ 1356 echo 1357 AS_BOX([Running $as_me.]) 1358} >&AS_MESSAGE_LOG_FD 1359 1360lt_cl_help="\ 1361'$as_me' creates a local libtool stub from the current configuration, 1362for use in further configure time tests before the real libtool is 1363generated. 1364 1365Usage: $[0] [[OPTIONS]] 1366 1367 -h, --help print this help, then exit 1368 -V, --version print version number, then exit 1369 -q, --quiet do not print progress messages 1370 -d, --debug don't remove temporary files 1371 1372Report bugs to <bug-libtool@gnu.org>." 1373 1374lt_cl_version="\ 1375m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl 1376m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) 1377configured by $[0], generated by m4_PACKAGE_STRING. 1378 1379Copyright (C) 2011 Free Software Foundation, Inc. 1380This config.lt script is free software; the Free Software Foundation 1381gives unlimited permision to copy, distribute and modify it." 1382 1383while test 0 != $[#] 1384do 1385 case $[1] in 1386 --version | --v* | -V ) 1387 echo "$lt_cl_version"; exit 0 ;; 1388 --help | --h* | -h ) 1389 echo "$lt_cl_help"; exit 0 ;; 1390 --debug | --d* | -d ) 1391 debug=: ;; 1392 --quiet | --q* | --silent | --s* | -q ) 1393 lt_cl_silent=: ;; 1394 1395 -*) AC_MSG_ERROR([unrecognized option: $[1] 1396Try '$[0] --help' for more information.]) ;; 1397 1398 *) AC_MSG_ERROR([unrecognized argument: $[1] 1399Try '$[0] --help' for more information.]) ;; 1400 esac 1401 shift 1402done 1403 1404if $lt_cl_silent; then 1405 exec AS_MESSAGE_FD>/dev/null 1406fi 1407_LTEOF 1408 1409cat >>"$CONFIG_LT" <<_LTEOF 1410_LT_OUTPUT_LIBTOOL_COMMANDS_INIT 1411_LTEOF 1412 1413cat >>"$CONFIG_LT" <<\_LTEOF 1414AC_MSG_NOTICE([creating $ofile]) 1415_LT_OUTPUT_LIBTOOL_COMMANDS 1416AS_EXIT(0) 1417_LTEOF 1418chmod +x "$CONFIG_LT" 1419 1420# configure is writing to config.log, but config.lt does its own redirection, 1421# appending to config.log, which fails on DOS, as config.log is still kept 1422# open by configure. Here we exec the FD to /dev/null, effectively closing 1423# config.log, so it can be properly (re)opened and appended to by config.lt. 1424lt_cl_success=: 1425test yes = "$silent" && 1426 lt_config_lt_args="$lt_config_lt_args --quiet" 1427exec AS_MESSAGE_LOG_FD>/dev/null 1428$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 1429exec AS_MESSAGE_LOG_FD>>config.log 1430$lt_cl_success || AS_EXIT(1) 1431])# LT_OUTPUT 1432 1433 1434# _LT_CONFIG(TAG) 1435# --------------- 1436# If TAG is the built-in tag, create an initial libtool script with a 1437# default configuration from the untagged config vars. Otherwise add code 1438# to config.status for appending the configuration named by TAG from the 1439# matching tagged config vars. 1440m4_defun([_LT_CONFIG], 1441[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 1442_LT_CONFIG_SAVE_COMMANDS([ 1443 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 1444 m4_if(_LT_TAG, [C], [ 1445 # See if we are running on zsh, and set the options that allow our 1446 # commands through without removal of \ escapes. 1447 if test -n "${ZSH_VERSION+set}"; then 1448 setopt NO_GLOB_SUBST 1449 fi 1450 1451 cfgfile=${ofile}T 1452 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 1453 $RM "$cfgfile" 1454 1455 cat <<_LT_EOF >> "$cfgfile" 1456#! $SHELL 1457# Generated automatically by $as_me ($PACKAGE) $VERSION 1458# NOTE: Changes made to this file will be lost: look at ltmain.sh. 1459 1460# Provide generalized library-building support services. 1461# Written by Gordon Matzigkeit, 1996 1462 1463_LT_COPYING 1464_LT_LIBTOOL_TAGS 1465 1466# Configured defaults for sys_lib_dlsearch_path munging. 1467: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 1468 1469# ### BEGIN LIBTOOL CONFIG 1470_LT_LIBTOOL_CONFIG_VARS 1471_LT_LIBTOOL_TAG_VARS 1472# ### END LIBTOOL CONFIG 1473 1474_LT_EOF 1475 1476 cat <<'_LT_EOF' >> "$cfgfile" 1477 1478# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 1479 1480_LT_PREPARE_MUNGE_PATH_LIST 1481_LT_PREPARE_CC_BASENAME 1482 1483# ### END FUNCTIONS SHARED WITH CONFIGURE 1484 1485_LT_EOF 1486 1487 case $host_os in 1488 aix3*) 1489 cat <<\_LT_EOF >> "$cfgfile" 1490# AIX sometimes has problems with the GCC collect2 program. For some 1491# reason, if we set the COLLECT_NAMES environment variable, the problems 1492# vanish in a puff of smoke. 1493if test set != "${COLLECT_NAMES+set}"; then 1494 COLLECT_NAMES= 1495 export COLLECT_NAMES 1496fi 1497_LT_EOF 1498 ;; 1499 esac 1500 1501 _LT_PROG_LTMAIN 1502 1503 # We use sed instead of cat because bash on DJGPP gets confused if 1504 # if finds mixed CR/LF and LF-only lines. Since sed operates in 1505 # text mode, it properly converts lines to CR/LF. This bash problem 1506 # is reportedly fixed, but why not run on old versions too? 1507 sed '$q' "$ltmain" >> "$cfgfile" \ 1508 || (rm -f "$cfgfile"; exit 1) 1509 1510 mv -f "$cfgfile" "$ofile" || 1511 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 1512 chmod +x "$ofile" 1513], 1514[cat <<_LT_EOF >> "$ofile" 1515 1516dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded 1517dnl in a comment (ie after a #). 1518# ### BEGIN LIBTOOL TAG CONFIG: $1 1519_LT_LIBTOOL_TAG_VARS(_LT_TAG) 1520# ### END LIBTOOL TAG CONFIG: $1 1521_LT_EOF 1522])dnl /m4_if 1523], 1524[m4_if([$1], [], [ 1525 PACKAGE='$PACKAGE' 1526 VERSION='$VERSION' 1527 RM='$RM' 1528 ofile='$ofile'], []) 1529])dnl /_LT_CONFIG_SAVE_COMMANDS 1530])# _LT_CONFIG 1531 1532 1533# LT_SUPPORTED_TAG(TAG) 1534# --------------------- 1535# Trace this macro to discover what tags are supported by the libtool 1536# --tag option, using: 1537# autoconf --trace 'LT_SUPPORTED_TAG:$1' 1538AC_DEFUN([LT_SUPPORTED_TAG], []) 1539 1540 1541# C support is built-in for now 1542m4_define([_LT_LANG_C_enabled], []) 1543m4_define([_LT_TAGS], []) 1544 1545 1546# LT_LANG(LANG) 1547# ------------- 1548# Enable libtool support for the given language if not already enabled. 1549AC_DEFUN([LT_LANG], 1550[AC_BEFORE([$0], [LT_OUTPUT])dnl 1551m4_case([$1], 1552 [C], [_LT_LANG(C)], 1553 [C++], [_LT_LANG(CXX)], 1554 [Go], [_LT_LANG(GO)], 1555 [Java], [_LT_LANG(GCJ)], 1556 [Fortran 77], [_LT_LANG(F77)], 1557 [Fortran], [_LT_LANG(FC)], 1558 [Windows Resource], [_LT_LANG(RC)], 1559 [m4_ifdef([_LT_LANG_]$1[_CONFIG], 1560 [_LT_LANG($1)], 1561 [m4_fatal([$0: unsupported language: "$1"])])])dnl 1562])# LT_LANG 1563 1564 1565# _LT_LANG(LANGNAME) 1566# ------------------ 1567m4_defun([_LT_LANG], 1568[m4_ifdef([_LT_LANG_]$1[_enabled], [], 1569 [LT_SUPPORTED_TAG([$1])dnl 1570 m4_append([_LT_TAGS], [$1 ])dnl 1571 m4_define([_LT_LANG_]$1[_enabled], [])dnl 1572 _LT_LANG_$1_CONFIG($1)])dnl 1573])# _LT_LANG 1574 1575 1576m4_ifndef([AC_PROG_GO], [ 1577# NOTE: This macro has been submitted for inclusion into # 1578# GNU Autoconf as AC_PROG_GO. When it is available in # 1579# a released version of Autoconf we should remove this # 1580# macro and use it instead. # 1581m4_defun([AC_PROG_GO], 1582[AC_LANG_PUSH(Go)dnl 1583AC_ARG_VAR([GOC], [Go compiler command])dnl 1584AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl 1585_AC_ARG_VAR_LDFLAGS()dnl 1586AC_CHECK_TOOL(GOC, gccgo) 1587if test -z "$GOC"; then 1588 if test -n "$ac_tool_prefix"; then 1589 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) 1590 fi 1591fi 1592if test -z "$GOC"; then 1593 AC_CHECK_PROG(GOC, gccgo, gccgo, false) 1594fi 1595])#m4_defun 1596])#m4_ifndef 1597 1598 1599# _LT_LANG_DEFAULT_CONFIG 1600# ----------------------- 1601m4_defun([_LT_LANG_DEFAULT_CONFIG], 1602[AC_PROVIDE_IFELSE([AC_PROG_CXX], 1603 [LT_LANG(CXX)], 1604 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) 1605 1606AC_PROVIDE_IFELSE([AC_PROG_F77], 1607 [LT_LANG(F77)], 1608 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) 1609 1610AC_PROVIDE_IFELSE([AC_PROG_FC], 1611 [LT_LANG(FC)], 1612 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) 1613 1614dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal 1615dnl pulling things in needlessly. 1616AC_PROVIDE_IFELSE([AC_PROG_GCJ], 1617 [LT_LANG(GCJ)], 1618 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 1619 [LT_LANG(GCJ)], 1620 [AC_PROVIDE_IFELSE([LT_PROG_GCJ], 1621 [LT_LANG(GCJ)], 1622 [m4_ifdef([AC_PROG_GCJ], 1623 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) 1624 m4_ifdef([A][M_PROG_GCJ], 1625 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) 1626 m4_ifdef([LT_PROG_GCJ], 1627 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) 1628 1629AC_PROVIDE_IFELSE([AC_PROG_GO], 1630 [LT_LANG(GO)], 1631 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) 1632 1633AC_PROVIDE_IFELSE([LT_PROG_RC], 1634 [LT_LANG(RC)], 1635 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) 1636])# _LT_LANG_DEFAULT_CONFIG 1637 1638# Obsolete macros: 1639AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) 1640AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) 1641AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) 1642AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) 1643AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) 1644dnl aclocal-1.4 backwards compatibility: 1645dnl AC_DEFUN([AC_LIBTOOL_CXX], []) 1646dnl AC_DEFUN([AC_LIBTOOL_F77], []) 1647dnl AC_DEFUN([AC_LIBTOOL_FC], []) 1648dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) 1649dnl AC_DEFUN([AC_LIBTOOL_RC], []) 1650 1651 1652# _LT_TAG_COMPILER 1653# ---------------- 1654m4_defun([_LT_TAG_COMPILER], 1655[AC_REQUIRE([AC_PROG_CC])dnl 1656 1657_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl 1658_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl 1659_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl 1660_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl 1661 1662# If no C compiler was specified, use CC. 1663LTCC=${LTCC-"$CC"} 1664 1665# If no C compiler flags were specified, use CFLAGS. 1666LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 1667 1668# Allow CC to be a program name with arguments. 1669compiler=$CC 1670])# _LT_TAG_COMPILER 1671 1672 1673# _LT_COMPILER_BOILERPLATE 1674# ------------------------ 1675# Check for compiler boilerplate output or warnings with 1676# the simple compiler test code. 1677m4_defun([_LT_COMPILER_BOILERPLATE], 1678[m4_require([_LT_DECL_SED])dnl 1679ac_outfile=conftest.$ac_objext 1680echo "$lt_simple_compile_test_code" >conftest.$ac_ext 1681eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 1682_lt_compiler_boilerplate=`cat conftest.err` 1683$RM conftest* 1684])# _LT_COMPILER_BOILERPLATE 1685 1686 1687# _LT_LINKER_BOILERPLATE 1688# ---------------------- 1689# Check for linker boilerplate output or warnings with 1690# the simple link test code. 1691m4_defun([_LT_LINKER_BOILERPLATE], 1692[m4_require([_LT_DECL_SED])dnl 1693ac_outfile=conftest.$ac_objext 1694echo "$lt_simple_link_test_code" >conftest.$ac_ext 1695eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 1696_lt_linker_boilerplate=`cat conftest.err` 1697$RM -r conftest* 1698])# _LT_LINKER_BOILERPLATE 1699 1700# _LT_REQUIRED_DARWIN_CHECKS 1701# ------------------------- 1702m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ 1703 case $host_os in 1704 rhapsody* | darwin*) 1705 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) 1706 AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 1707 AC_CHECK_TOOL([LIPO], [lipo], [:]) 1708 AC_CHECK_TOOL([OTOOL], [otool], [:]) 1709 AC_CHECK_TOOL([OTOOL64], [otool64], [:]) 1710 _LT_DECL([], [DSYMUTIL], [1], 1711 [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) 1712 _LT_DECL([], [NMEDIT], [1], 1713 [Tool to change global to local symbols on Mac OS X]) 1714 _LT_DECL([], [LIPO], [1], 1715 [Tool to manipulate fat objects and archives on Mac OS X]) 1716 _LT_DECL([], [OTOOL], [1], 1717 [ldd/readelf like tool for Mach-O binaries on Mac OS X]) 1718 _LT_DECL([], [OTOOL64], [1], 1719 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) 1720 1721 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 1722 [lt_cv_apple_cc_single_mod=no 1723 if test -z "$LT_MULTI_MODULE"; then 1724 # By default we will add the -single_module flag. You can override 1725 # by either setting the environment variable LT_MULTI_MODULE 1726 # non-empty at configure time, or by adding -multi_module to the 1727 # link flags. 1728 rm -rf libconftest.dylib* 1729 echo "int foo(void){return 1;}" > conftest.c 1730 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 1731-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD 1732 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 1733 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 1734 _lt_result=$? 1735 # If there is a non-empty error log, and "single_module" 1736 # appears in it, assume the flag caused a linker warning 1737 if test -s conftest.err && $GREP single_module conftest.err; then 1738 cat conftest.err >&AS_MESSAGE_LOG_FD 1739 # Otherwise, if the output was created with a 0 exit code from 1740 # the compiler, it worked. 1741 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 1742 lt_cv_apple_cc_single_mod=yes 1743 else 1744 cat conftest.err >&AS_MESSAGE_LOG_FD 1745 fi 1746 rm -rf libconftest.dylib* 1747 rm -f conftest.* 1748 fi]) 1749 1750 AC_CACHE_CHECK([for -exported_symbols_list linker flag], 1751 [lt_cv_ld_exported_symbols_list], 1752 [lt_cv_ld_exported_symbols_list=no 1753 save_LDFLAGS=$LDFLAGS 1754 echo "_main" > conftest.sym 1755 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 1756 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 1757 [lt_cv_ld_exported_symbols_list=yes], 1758 [lt_cv_ld_exported_symbols_list=no]) 1759 LDFLAGS=$save_LDFLAGS 1760 ]) 1761 1762 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], 1763 [lt_cv_ld_force_load=no 1764 cat > conftest.c << _LT_EOF 1765int forced_loaded() { return 2;} 1766_LT_EOF 1767 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD 1768 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD 1769 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD 1770 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD 1771 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD 1772 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD 1773 cat > conftest.c << _LT_EOF 1774int main() { return 0;} 1775_LT_EOF 1776 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD 1777 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 1778 _lt_result=$? 1779 if test -s conftest.err && $GREP force_load conftest.err; then 1780 cat conftest.err >&AS_MESSAGE_LOG_FD 1781 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 1782 lt_cv_ld_force_load=yes 1783 else 1784 cat conftest.err >&AS_MESSAGE_LOG_FD 1785 fi 1786 rm -f conftest.err libconftest.a conftest conftest.c 1787 rm -rf conftest.dSYM 1788 ]) 1789 case $host_os in 1790 rhapsody* | darwin1.[[012]]) 1791 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 1792 darwin1.*) 1793 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 1794 darwin*) # darwin 5.x on 1795 # if running on 10.5 or later, the deployment target defaults 1796 # to the OS version, if on x86, and 10.4, the deployment 1797 # target defaults to 10.4. Don't you love it? 1798 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 1799 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 1800 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 1801 10.[[012]][[,.]]*) 1802 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 1803 10.*) 1804 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 1805 esac 1806 ;; 1807 esac 1808 if test yes = "$lt_cv_apple_cc_single_mod"; then 1809 _lt_dar_single_mod='$single_module' 1810 fi 1811 if test yes = "$lt_cv_ld_exported_symbols_list"; then 1812 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 1813 else 1814 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 1815 fi 1816 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 1817 _lt_dsymutil='~$DSYMUTIL $lib || :' 1818 else 1819 _lt_dsymutil= 1820 fi 1821 ;; 1822 esac 1823]) 1824 1825 1826# _LT_DARWIN_LINKER_FEATURES([TAG]) 1827# --------------------------------- 1828# Checks for linker and compiler features on darwin 1829m4_defun([_LT_DARWIN_LINKER_FEATURES], 1830[ 1831 m4_require([_LT_REQUIRED_DARWIN_CHECKS]) 1832 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 1833 _LT_TAGVAR(hardcode_direct, $1)=no 1834 _LT_TAGVAR(hardcode_automatic, $1)=yes 1835 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 1836 if test yes = "$lt_cv_ld_force_load"; then 1837 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 1838 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], 1839 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) 1840 else 1841 _LT_TAGVAR(whole_archive_flag_spec, $1)='' 1842 fi 1843 _LT_TAGVAR(link_all_deplibs, $1)=yes 1844 _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined 1845 case $cc_basename in 1846 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 1847 *) _lt_dar_can_shared=$GCC ;; 1848 esac 1849 if test yes = "$_lt_dar_can_shared"; then 1850 output_verbose_link_cmd=func_echo_all 1851 _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" 1852 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 1853 _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" 1854 _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" 1855 m4_if([$1], [CXX], 1856[ if test yes != "$lt_cv_apple_cc_single_mod"; then 1857 _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" 1858 _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" 1859 fi 1860],[]) 1861 else 1862 _LT_TAGVAR(ld_shlibs, $1)=no 1863 fi 1864]) 1865 1866# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) 1867# ---------------------------------- 1868# Links a minimal program and checks the executable 1869# for the system default hardcoded library path. In most cases, 1870# this is /usr/lib:/lib, but when the MPI compilers are used 1871# the location of the communication and MPI libs are included too. 1872# If we don't find anything, use the default library path according 1873# to the aix ld manual. 1874# Store the results from the different compilers for each TAGNAME. 1875# Allow to override them for all tags through lt_cv_aix_libpath. 1876m4_defun([_LT_SYS_MODULE_PATH_AIX], 1877[m4_require([_LT_DECL_SED])dnl 1878if test set = "${lt_cv_aix_libpath+set}"; then 1879 aix_libpath=$lt_cv_aix_libpath 1880else 1881 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], 1882 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ 1883 lt_aix_libpath_sed='[ 1884 /Import File Strings/,/^$/ { 1885 /^0/ { 1886 s/^0 *\([^ ]*\) *$/\1/ 1887 p 1888 } 1889 }]' 1890 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 1891 # Check for a 64-bit object if we didn't find anything. 1892 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 1893 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 1894 fi],[]) 1895 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 1896 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib 1897 fi 1898 ]) 1899 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) 1900fi 1901])# _LT_SYS_MODULE_PATH_AIX 1902 1903 1904# _LT_SHELL_INIT(ARG) 1905# ------------------- 1906m4_define([_LT_SHELL_INIT], 1907[m4_divert_text([M4SH-INIT], [$1 1908])])# _LT_SHELL_INIT 1909 1910 1911 1912# _LT_PROG_ECHO_BACKSLASH 1913# ----------------------- 1914# Find how we can fake an echo command that does not interpret backslash. 1915# In particular, with Autoconf 2.60 or later we add some code to the start 1916# of the generated configure script that will find a shell with a builtin 1917# printf (that we can use as an echo command). 1918m4_defun([_LT_PROG_ECHO_BACKSLASH], 1919[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 1920ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 1921ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 1922 1923AC_MSG_CHECKING([how to print strings]) 1924# Test print first, because it will be a builtin if present. 1925if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 1926 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 1927 ECHO='print -r --' 1928elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 1929 ECHO='printf %s\n' 1930else 1931 # Use this function as a fallback that always works. 1932 func_fallback_echo () 1933 { 1934 eval 'cat <<_LTECHO_EOF 1935$[]1 1936_LTECHO_EOF' 1937 } 1938 ECHO='func_fallback_echo' 1939fi 1940 1941# func_echo_all arg... 1942# Invoke $ECHO with all args, space-separated. 1943func_echo_all () 1944{ 1945 $ECHO "$*" 1946} 1947 1948case $ECHO in 1949 printf*) AC_MSG_RESULT([printf]) ;; 1950 print*) AC_MSG_RESULT([print -r]) ;; 1951 *) AC_MSG_RESULT([cat]) ;; 1952esac 1953 1954m4_ifdef([_AS_DETECT_SUGGESTED], 1955[_AS_DETECT_SUGGESTED([ 1956 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( 1957 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 1958 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 1959 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 1960 PATH=/empty FPATH=/empty; export PATH FPATH 1961 test "X`printf %s $ECHO`" = "X$ECHO" \ 1962 || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) 1963 1964_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) 1965_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) 1966])# _LT_PROG_ECHO_BACKSLASH 1967 1968 1969# _LT_WITH_SYSROOT 1970# ---------------- 1971AC_DEFUN([_LT_WITH_SYSROOT], 1972[AC_MSG_CHECKING([for sysroot]) 1973AC_ARG_WITH([sysroot], 1974[AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], 1975 [Search for dependent libraries within DIR (or the compiler's sysroot 1976 if not specified).])], 1977[], [with_sysroot=no]) 1978 1979dnl lt_sysroot will always be passed unquoted. We quote it here 1980dnl in case the user passed a directory name. 1981lt_sysroot= 1982case $with_sysroot in #( 1983 yes) 1984 if test yes = "$GCC"; then 1985 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 1986 fi 1987 ;; #( 1988 /*) 1989 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 1990 ;; #( 1991 no|'') 1992 ;; #( 1993 *) 1994 AC_MSG_RESULT([$with_sysroot]) 1995 AC_MSG_ERROR([The sysroot must be an absolute path.]) 1996 ;; 1997esac 1998 1999 AC_MSG_RESULT([${lt_sysroot:-no}]) 2000_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl 2001[dependent libraries, and where our libraries should be installed.])]) 2002 2003# _LT_ENABLE_LOCK 2004# --------------- 2005m4_defun([_LT_ENABLE_LOCK], 2006[AC_ARG_ENABLE([libtool-lock], 2007 [AS_HELP_STRING([--disable-libtool-lock], 2008 [avoid locking (might break parallel builds)])]) 2009test no = "$enable_libtool_lock" || enable_libtool_lock=yes 2010 2011# Some flags need to be propagated to the compiler or linker for good 2012# libtool support. 2013case $host in 2014ia64-*-hpux*) 2015 # Find out what ABI is being produced by ac_compile, and set mode 2016 # options accordingly. 2017 echo 'int i;' > conftest.$ac_ext 2018 if AC_TRY_EVAL(ac_compile); then 2019 case `/usr/bin/file conftest.$ac_objext` in 2020 *ELF-32*) 2021 HPUX_IA64_MODE=32 2022 ;; 2023 *ELF-64*) 2024 HPUX_IA64_MODE=64 2025 ;; 2026 esac 2027 fi 2028 rm -rf conftest* 2029 ;; 2030*-*-irix6*) 2031 # Find out what ABI is being produced by ac_compile, and set linker 2032 # options accordingly. 2033 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 2034 if AC_TRY_EVAL(ac_compile); then 2035 if test yes = "$lt_cv_prog_gnu_ld"; then 2036 case `/usr/bin/file conftest.$ac_objext` in 2037 *32-bit*) 2038 LD="${LD-ld} -melf32bsmip" 2039 ;; 2040 *N32*) 2041 LD="${LD-ld} -melf32bmipn32" 2042 ;; 2043 *64-bit*) 2044 LD="${LD-ld} -melf64bmip" 2045 ;; 2046 esac 2047 else 2048 case `/usr/bin/file conftest.$ac_objext` in 2049 *32-bit*) 2050 LD="${LD-ld} -32" 2051 ;; 2052 *N32*) 2053 LD="${LD-ld} -n32" 2054 ;; 2055 *64-bit*) 2056 LD="${LD-ld} -64" 2057 ;; 2058 esac 2059 fi 2060 fi 2061 rm -rf conftest* 2062 ;; 2063 2064mips64*-*linux*) 2065 # Find out what ABI is being produced by ac_compile, and set linker 2066 # options accordingly. 2067 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 2068 if AC_TRY_EVAL(ac_compile); then 2069 emul=elf 2070 case `/usr/bin/file conftest.$ac_objext` in 2071 *32-bit*) 2072 emul="${emul}32" 2073 ;; 2074 *64-bit*) 2075 emul="${emul}64" 2076 ;; 2077 esac 2078 case `/usr/bin/file conftest.$ac_objext` in 2079 *MSB*) 2080 emul="${emul}btsmip" 2081 ;; 2082 *LSB*) 2083 emul="${emul}ltsmip" 2084 ;; 2085 esac 2086 case `/usr/bin/file conftest.$ac_objext` in 2087 *N32*) 2088 emul="${emul}n32" 2089 ;; 2090 esac 2091 LD="${LD-ld} -m $emul" 2092 fi 2093 rm -rf conftest* 2094 ;; 2095 2096x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 2097s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 2098 # Find out what ABI is being produced by ac_compile, and set linker 2099 # options accordingly. Note that the listed cases only cover the 2100 # situations where additional linker options are needed (such as when 2101 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 2102 # vice versa); the common cases where no linker options are needed do 2103 # not appear in the list. 2104 echo 'int i;' > conftest.$ac_ext 2105 if AC_TRY_EVAL(ac_compile); then 2106 case `/usr/bin/file conftest.o` in 2107 *32-bit*) 2108 case $host in 2109 x86_64-*kfreebsd*-gnu) 2110 LD="${LD-ld} -m elf_i386_fbsd" 2111 ;; 2112 x86_64-*linux*) 2113 case `/usr/bin/file conftest.o` in 2114 *x86-64*) 2115 LD="${LD-ld} -m elf32_x86_64" 2116 ;; 2117 *) 2118 LD="${LD-ld} -m elf_i386" 2119 ;; 2120 esac 2121 ;; 2122 powerpc64le-*linux*) 2123 LD="${LD-ld} -m elf32lppclinux" 2124 ;; 2125 powerpc64-*linux*) 2126 LD="${LD-ld} -m elf32ppclinux" 2127 ;; 2128 s390x-*linux*) 2129 LD="${LD-ld} -m elf_s390" 2130 ;; 2131 sparc64-*linux*) 2132 LD="${LD-ld} -m elf32_sparc" 2133 ;; 2134 esac 2135 ;; 2136 *64-bit*) 2137 case $host in 2138 x86_64-*kfreebsd*-gnu) 2139 LD="${LD-ld} -m elf_x86_64_fbsd" 2140 ;; 2141 x86_64-*linux*) 2142 LD="${LD-ld} -m elf_x86_64" 2143 ;; 2144 powerpcle-*linux*) 2145 LD="${LD-ld} -m elf64lppc" 2146 ;; 2147 powerpc-*linux*) 2148 LD="${LD-ld} -m elf64ppc" 2149 ;; 2150 s390*-*linux*|s390*-*tpf*) 2151 LD="${LD-ld} -m elf64_s390" 2152 ;; 2153 sparc*-*linux*) 2154 LD="${LD-ld} -m elf64_sparc" 2155 ;; 2156 esac 2157 ;; 2158 esac 2159 fi 2160 rm -rf conftest* 2161 ;; 2162 2163*-*-sco3.2v5*) 2164 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 2165 SAVE_CFLAGS=$CFLAGS 2166 CFLAGS="$CFLAGS -belf" 2167 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 2168 [AC_LANG_PUSH(C) 2169 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 2170 AC_LANG_POP]) 2171 if test yes != "$lt_cv_cc_needs_belf"; then 2172 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 2173 CFLAGS=$SAVE_CFLAGS 2174 fi 2175 ;; 2176*-*solaris*) 2177 # Find out what ABI is being produced by ac_compile, and set linker 2178 # options accordingly. 2179 echo 'int i;' > conftest.$ac_ext 2180 if AC_TRY_EVAL(ac_compile); then 2181 case `/usr/bin/file conftest.o` in 2182 *64-bit*) 2183 case $lt_cv_prog_gnu_ld in 2184 yes*) 2185 case $host in 2186 i?86-*-solaris*|x86_64-*-solaris*) 2187 LD="${LD-ld} -m elf_x86_64" 2188 ;; 2189 sparc*-*-solaris*) 2190 LD="${LD-ld} -m elf64_sparc" 2191 ;; 2192 esac 2193 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 2194 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 2195 LD=${LD-ld}_sol2 2196 fi 2197 ;; 2198 *) 2199 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 2200 LD="${LD-ld} -64" 2201 fi 2202 ;; 2203 esac 2204 ;; 2205 esac 2206 fi 2207 rm -rf conftest* 2208 ;; 2209esac 2210 2211need_locks=$enable_libtool_lock 2212])# _LT_ENABLE_LOCK 2213 2214 2215# _LT_PROG_AR 2216# ----------- 2217m4_defun([_LT_PROG_AR], 2218[AC_CHECK_TOOLS(AR, [ar], false) 2219: ${AR=ar} 2220: ${AR_FLAGS=cru} 2221_LT_DECL([], [AR], [1], [The archiver]) 2222_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) 2223 2224AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], 2225 [lt_cv_ar_at_file=no 2226 AC_COMPILE_IFELSE([AC_LANG_PROGRAM], 2227 [echo conftest.$ac_objext > conftest.lst 2228 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' 2229 AC_TRY_EVAL([lt_ar_try]) 2230 if test 0 -eq "$ac_status"; then 2231 # Ensure the archiver fails upon bogus file names. 2232 rm -f conftest.$ac_objext libconftest.a 2233 AC_TRY_EVAL([lt_ar_try]) 2234 if test 0 -ne "$ac_status"; then 2235 lt_cv_ar_at_file=@ 2236 fi 2237 fi 2238 rm -f conftest.* libconftest.a 2239 ]) 2240 ]) 2241 2242if test no = "$lt_cv_ar_at_file"; then 2243 archiver_list_spec= 2244else 2245 archiver_list_spec=$lt_cv_ar_at_file 2246fi 2247_LT_DECL([], [archiver_list_spec], [1], 2248 [How to feed a file listing to the archiver]) 2249])# _LT_PROG_AR 2250 2251 2252# _LT_CMD_OLD_ARCHIVE 2253# ------------------- 2254m4_defun([_LT_CMD_OLD_ARCHIVE], 2255[_LT_PROG_AR 2256 2257AC_CHECK_TOOL(STRIP, strip, :) 2258test -z "$STRIP" && STRIP=: 2259_LT_DECL([], [STRIP], [1], [A symbol stripping program]) 2260 2261AC_CHECK_TOOL(RANLIB, ranlib, :) 2262test -z "$RANLIB" && RANLIB=: 2263_LT_DECL([], [RANLIB], [1], 2264 [Commands used to install an old-style archive]) 2265 2266# Determine commands to create old-style static archives. 2267old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 2268old_postinstall_cmds='chmod 644 $oldlib' 2269old_postuninstall_cmds= 2270 2271if test -n "$RANLIB"; then 2272 case $host_os in 2273 bitrig* | openbsd*) 2274 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 2275 ;; 2276 *) 2277 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 2278 ;; 2279 esac 2280 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 2281fi 2282 2283case $host_os in 2284 darwin*) 2285 lock_old_archive_extraction=yes ;; 2286 *) 2287 lock_old_archive_extraction=no ;; 2288esac 2289_LT_DECL([], [old_postinstall_cmds], [2]) 2290_LT_DECL([], [old_postuninstall_cmds], [2]) 2291_LT_TAGDECL([], [old_archive_cmds], [2], 2292 [Commands used to build an old-style archive]) 2293_LT_DECL([], [lock_old_archive_extraction], [0], 2294 [Whether to use a lock for old archive extraction]) 2295])# _LT_CMD_OLD_ARCHIVE 2296 2297 2298# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 2299# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 2300# ---------------------------------------------------------------- 2301# Check whether the given compiler option works 2302AC_DEFUN([_LT_COMPILER_OPTION], 2303[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2304m4_require([_LT_DECL_SED])dnl 2305AC_CACHE_CHECK([$1], [$2], 2306 [$2=no 2307 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 2308 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 2309 lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment 2310 # Insert the option either (1) after the last *FLAGS variable, or 2311 # (2) before a word containing "conftest.", or (3) at the end. 2312 # Note that $ac_compile itself does not contain backslashes and begins 2313 # with a dollar sign (not a hyphen), so the echo should work correctly. 2314 # The option is referenced via a variable to avoid confusing sed. 2315 lt_compile=`echo "$ac_compile" | $SED \ 2316 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 2317 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 2318 -e 's:$: $lt_compiler_flag:'` 2319 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 2320 (eval "$lt_compile" 2>conftest.err) 2321 ac_status=$? 2322 cat conftest.err >&AS_MESSAGE_LOG_FD 2323 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 2324 if (exit $ac_status) && test -s "$ac_outfile"; then 2325 # The compiler can only warn and ignore the option if not recognized 2326 # So say no if there are warnings other than the usual output. 2327 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 2328 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 2329 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 2330 $2=yes 2331 fi 2332 fi 2333 $RM conftest* 2334]) 2335 2336if test yes = "[$]$2"; then 2337 m4_if([$5], , :, [$5]) 2338else 2339 m4_if([$6], , :, [$6]) 2340fi 2341])# _LT_COMPILER_OPTION 2342 2343# Old name: 2344AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) 2345dnl aclocal-1.4 backwards compatibility: 2346dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) 2347 2348 2349# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 2350# [ACTION-SUCCESS], [ACTION-FAILURE]) 2351# ---------------------------------------------------- 2352# Check whether the given linker option works 2353AC_DEFUN([_LT_LINKER_OPTION], 2354[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2355m4_require([_LT_DECL_SED])dnl 2356AC_CACHE_CHECK([$1], [$2], 2357 [$2=no 2358 save_LDFLAGS=$LDFLAGS 2359 LDFLAGS="$LDFLAGS $3" 2360 echo "$lt_simple_link_test_code" > conftest.$ac_ext 2361 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 2362 # The linker can only warn and ignore the option if not recognized 2363 # So say no if there are warnings 2364 if test -s conftest.err; then 2365 # Append any errors to the config.log. 2366 cat conftest.err 1>&AS_MESSAGE_LOG_FD 2367 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 2368 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 2369 if diff conftest.exp conftest.er2 >/dev/null; then 2370 $2=yes 2371 fi 2372 else 2373 $2=yes 2374 fi 2375 fi 2376 $RM -r conftest* 2377 LDFLAGS=$save_LDFLAGS 2378]) 2379 2380if test yes = "[$]$2"; then 2381 m4_if([$4], , :, [$4]) 2382else 2383 m4_if([$5], , :, [$5]) 2384fi 2385])# _LT_LINKER_OPTION 2386 2387# Old name: 2388AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) 2389dnl aclocal-1.4 backwards compatibility: 2390dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) 2391 2392 2393# LT_CMD_MAX_LEN 2394#--------------- 2395AC_DEFUN([LT_CMD_MAX_LEN], 2396[AC_REQUIRE([AC_CANONICAL_HOST])dnl 2397# find the maximum length of command line arguments 2398AC_MSG_CHECKING([the maximum length of command line arguments]) 2399AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 2400 i=0 2401 teststring=ABCD 2402 2403 case $build_os in 2404 msdosdjgpp*) 2405 # On DJGPP, this test can blow up pretty badly due to problems in libc 2406 # (any single argument exceeding 2000 bytes causes a buffer overrun 2407 # during glob expansion). Even if it were fixed, the result of this 2408 # check would be larger than it should be. 2409 lt_cv_sys_max_cmd_len=12288; # 12K is about right 2410 ;; 2411 2412 gnu*) 2413 # Under GNU Hurd, this test is not required because there is 2414 # no limit to the length of command line arguments. 2415 # Libtool will interpret -1 as no limit whatsoever 2416 lt_cv_sys_max_cmd_len=-1; 2417 ;; 2418 2419 cygwin* | mingw* | cegcc*) 2420 # On Win9x/ME, this test blows up -- it succeeds, but takes 2421 # about 5 minutes as the teststring grows exponentially. 2422 # Worse, since 9x/ME are not pre-emptively multitasking, 2423 # you end up with a "frozen" computer, even though with patience 2424 # the test eventually succeeds (with a max line length of 256k). 2425 # Instead, let's just punt: use the minimum linelength reported by 2426 # all of the supported platforms: 8192 (on NT/2K/XP). 2427 lt_cv_sys_max_cmd_len=8192; 2428 ;; 2429 2430 mint*) 2431 # On MiNT this can take a long time and run out of memory. 2432 lt_cv_sys_max_cmd_len=8192; 2433 ;; 2434 2435 amigaos*) 2436 # On AmigaOS with pdksh, this test takes hours, literally. 2437 # So we just punt and use a minimum line length of 8192. 2438 lt_cv_sys_max_cmd_len=8192; 2439 ;; 2440 2441 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 2442 # This has been around since 386BSD, at least. Likely further. 2443 if test -x /sbin/sysctl; then 2444 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 2445 elif test -x /usr/sbin/sysctl; then 2446 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 2447 else 2448 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 2449 fi 2450 # And add a safety zone 2451 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 2452 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 2453 ;; 2454 2455 interix*) 2456 # We know the value 262144 and hardcode it with a safety zone (like BSD) 2457 lt_cv_sys_max_cmd_len=196608 2458 ;; 2459 2460 os2*) 2461 # The test takes a long time on OS/2. 2462 lt_cv_sys_max_cmd_len=8192 2463 ;; 2464 2465 osf*) 2466 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 2467 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 2468 # nice to cause kernel panics so lets avoid the loop below. 2469 # First set a reasonable default. 2470 lt_cv_sys_max_cmd_len=16384 2471 # 2472 if test -x /sbin/sysconfig; then 2473 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 2474 *1*) lt_cv_sys_max_cmd_len=-1 ;; 2475 esac 2476 fi 2477 ;; 2478 sco3.2v5*) 2479 lt_cv_sys_max_cmd_len=102400 2480 ;; 2481 sysv5* | sco5v6* | sysv4.2uw2*) 2482 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 2483 if test -n "$kargmax"; then 2484 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 2485 else 2486 lt_cv_sys_max_cmd_len=32768 2487 fi 2488 ;; 2489 *) 2490 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 2491 if test -n "$lt_cv_sys_max_cmd_len" && \ 2492 test undefined != "$lt_cv_sys_max_cmd_len"; then 2493 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 2494 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 2495 else 2496 # Make teststring a little bigger before we do anything with it. 2497 # a 1K string should be a reasonable start. 2498 for i in 1 2 3 4 5 6 7 8; do 2499 teststring=$teststring$teststring 2500 done 2501 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 2502 # If test is not a shell built-in, we'll probably end up computing a 2503 # maximum length that is only half of the actual maximum length, but 2504 # we can't tell. 2505 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 2506 = "X$teststring$teststring"; } >/dev/null 2>&1 && 2507 test 17 != "$i" # 1/2 MB should be enough 2508 do 2509 i=`expr $i + 1` 2510 teststring=$teststring$teststring 2511 done 2512 # Only check the string length outside the loop. 2513 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 2514 teststring= 2515 # Add a significant safety factor because C++ compilers can tack on 2516 # massive amounts of additional arguments before passing them to the 2517 # linker. It appears as though 1/2 is a usable value. 2518 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 2519 fi 2520 ;; 2521 esac 2522]) 2523if test -n "$lt_cv_sys_max_cmd_len"; then 2524 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 2525else 2526 AC_MSG_RESULT(none) 2527fi 2528max_cmd_len=$lt_cv_sys_max_cmd_len 2529_LT_DECL([], [max_cmd_len], [0], 2530 [What is the maximum length of a command?]) 2531])# LT_CMD_MAX_LEN 2532 2533# Old name: 2534AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) 2535dnl aclocal-1.4 backwards compatibility: 2536dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) 2537 2538 2539# _LT_HEADER_DLFCN 2540# ---------------- 2541m4_defun([_LT_HEADER_DLFCN], 2542[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl 2543])# _LT_HEADER_DLFCN 2544 2545 2546# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 2547# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 2548# ---------------------------------------------------------------- 2549m4_defun([_LT_TRY_DLOPEN_SELF], 2550[m4_require([_LT_HEADER_DLFCN])dnl 2551if test yes = "$cross_compiling"; then : 2552 [$4] 2553else 2554 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 2555 lt_status=$lt_dlunknown 2556 cat > conftest.$ac_ext <<_LT_EOF 2557[#line $LINENO "configure" 2558#include "confdefs.h" 2559 2560#if HAVE_DLFCN_H 2561#include <dlfcn.h> 2562#endif 2563 2564#include <stdio.h> 2565 2566#ifdef RTLD_GLOBAL 2567# define LT_DLGLOBAL RTLD_GLOBAL 2568#else 2569# ifdef DL_GLOBAL 2570# define LT_DLGLOBAL DL_GLOBAL 2571# else 2572# define LT_DLGLOBAL 0 2573# endif 2574#endif 2575 2576/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 2577 find out it does not work in some platform. */ 2578#ifndef LT_DLLAZY_OR_NOW 2579# ifdef RTLD_LAZY 2580# define LT_DLLAZY_OR_NOW RTLD_LAZY 2581# else 2582# ifdef DL_LAZY 2583# define LT_DLLAZY_OR_NOW DL_LAZY 2584# else 2585# ifdef RTLD_NOW 2586# define LT_DLLAZY_OR_NOW RTLD_NOW 2587# else 2588# ifdef DL_NOW 2589# define LT_DLLAZY_OR_NOW DL_NOW 2590# else 2591# define LT_DLLAZY_OR_NOW 0 2592# endif 2593# endif 2594# endif 2595# endif 2596#endif 2597 2598/* When -fvisibility=hidden is used, assume the code has been annotated 2599 correspondingly for the symbols needed. */ 2600#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 2601int fnord () __attribute__((visibility("default"))); 2602#endif 2603 2604int fnord () { return 42; } 2605int main () 2606{ 2607 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 2608 int status = $lt_dlunknown; 2609 2610 if (self) 2611 { 2612 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 2613 else 2614 { 2615 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 2616 else puts (dlerror ()); 2617 } 2618 /* dlclose (self); */ 2619 } 2620 else 2621 puts (dlerror ()); 2622 2623 return status; 2624}] 2625_LT_EOF 2626 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then 2627 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 2628 lt_status=$? 2629 case x$lt_status in 2630 x$lt_dlno_uscore) $1 ;; 2631 x$lt_dlneed_uscore) $2 ;; 2632 x$lt_dlunknown|x*) $3 ;; 2633 esac 2634 else : 2635 # compilation failed 2636 $3 2637 fi 2638fi 2639rm -fr conftest* 2640])# _LT_TRY_DLOPEN_SELF 2641 2642 2643# LT_SYS_DLOPEN_SELF 2644# ------------------ 2645AC_DEFUN([LT_SYS_DLOPEN_SELF], 2646[m4_require([_LT_HEADER_DLFCN])dnl 2647if test yes != "$enable_dlopen"; then 2648 enable_dlopen=unknown 2649 enable_dlopen_self=unknown 2650 enable_dlopen_self_static=unknown 2651else 2652 lt_cv_dlopen=no 2653 lt_cv_dlopen_libs= 2654 2655 case $host_os in 2656 beos*) 2657 lt_cv_dlopen=load_add_on 2658 lt_cv_dlopen_libs= 2659 lt_cv_dlopen_self=yes 2660 ;; 2661 2662 mingw* | pw32* | cegcc*) 2663 lt_cv_dlopen=LoadLibrary 2664 lt_cv_dlopen_libs= 2665 ;; 2666 2667 cygwin*) 2668 lt_cv_dlopen=dlopen 2669 lt_cv_dlopen_libs= 2670 ;; 2671 2672 darwin*) 2673 # if libdl is installed we need to link against it 2674 AC_CHECK_LIB([dl], [dlopen], 2675 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[ 2676 lt_cv_dlopen=dyld 2677 lt_cv_dlopen_libs= 2678 lt_cv_dlopen_self=yes 2679 ]) 2680 ;; 2681 2682 tpf*) 2683 # Don't try to run any link tests for TPF. We know it's impossible 2684 # because TPF is a cross-compiler, and we know how we open DSOs. 2685 lt_cv_dlopen=dlopen 2686 lt_cv_dlopen_libs= 2687 lt_cv_dlopen_self=no 2688 ;; 2689 2690 *) 2691 AC_CHECK_FUNC([shl_load], 2692 [lt_cv_dlopen=shl_load], 2693 [AC_CHECK_LIB([dld], [shl_load], 2694 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld], 2695 [AC_CHECK_FUNC([dlopen], 2696 [lt_cv_dlopen=dlopen], 2697 [AC_CHECK_LIB([dl], [dlopen], 2698 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl], 2699 [AC_CHECK_LIB([svld], [dlopen], 2700 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld], 2701 [AC_CHECK_LIB([dld], [dld_link], 2702 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld]) 2703 ]) 2704 ]) 2705 ]) 2706 ]) 2707 ]) 2708 ;; 2709 esac 2710 2711 if test no = "$lt_cv_dlopen"; then 2712 enable_dlopen=no 2713 else 2714 enable_dlopen=yes 2715 fi 2716 2717 case $lt_cv_dlopen in 2718 dlopen) 2719 save_CPPFLAGS=$CPPFLAGS 2720 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 2721 2722 save_LDFLAGS=$LDFLAGS 2723 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 2724 2725 save_LIBS=$LIBS 2726 LIBS="$lt_cv_dlopen_libs $LIBS" 2727 2728 AC_CACHE_CHECK([whether a program can dlopen itself], 2729 lt_cv_dlopen_self, [dnl 2730 _LT_TRY_DLOPEN_SELF( 2731 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 2732 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 2733 ]) 2734 2735 if test yes = "$lt_cv_dlopen_self"; then 2736 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 2737 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 2738 lt_cv_dlopen_self_static, [dnl 2739 _LT_TRY_DLOPEN_SELF( 2740 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 2741 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 2742 ]) 2743 fi 2744 2745 CPPFLAGS=$save_CPPFLAGS 2746 LDFLAGS=$save_LDFLAGS 2747 LIBS=$save_LIBS 2748 ;; 2749 esac 2750 2751 case $lt_cv_dlopen_self in 2752 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 2753 *) enable_dlopen_self=unknown ;; 2754 esac 2755 2756 case $lt_cv_dlopen_self_static in 2757 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 2758 *) enable_dlopen_self_static=unknown ;; 2759 esac 2760fi 2761_LT_DECL([dlopen_support], [enable_dlopen], [0], 2762 [Whether dlopen is supported]) 2763_LT_DECL([dlopen_self], [enable_dlopen_self], [0], 2764 [Whether dlopen of programs is supported]) 2765_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], 2766 [Whether dlopen of statically linked programs is supported]) 2767])# LT_SYS_DLOPEN_SELF 2768 2769# Old name: 2770AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) 2771dnl aclocal-1.4 backwards compatibility: 2772dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) 2773 2774 2775# _LT_COMPILER_C_O([TAGNAME]) 2776# --------------------------- 2777# Check to see if options -c and -o are simultaneously supported by compiler. 2778# This macro does not hard code the compiler like AC_PROG_CC_C_O. 2779m4_defun([_LT_COMPILER_C_O], 2780[m4_require([_LT_DECL_SED])dnl 2781m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2782m4_require([_LT_TAG_COMPILER])dnl 2783AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 2784 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 2785 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 2786 $RM -r conftest 2>/dev/null 2787 mkdir conftest 2788 cd conftest 2789 mkdir out 2790 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 2791 2792 lt_compiler_flag="-o out/conftest2.$ac_objext" 2793 # Insert the option either (1) after the last *FLAGS variable, or 2794 # (2) before a word containing "conftest.", or (3) at the end. 2795 # Note that $ac_compile itself does not contain backslashes and begins 2796 # with a dollar sign (not a hyphen), so the echo should work correctly. 2797 lt_compile=`echo "$ac_compile" | $SED \ 2798 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 2799 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 2800 -e 's:$: $lt_compiler_flag:'` 2801 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 2802 (eval "$lt_compile" 2>out/conftest.err) 2803 ac_status=$? 2804 cat out/conftest.err >&AS_MESSAGE_LOG_FD 2805 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 2806 if (exit $ac_status) && test -s out/conftest2.$ac_objext 2807 then 2808 # The compiler can only warn and ignore the option if not recognized 2809 # So say no if there are warnings 2810 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 2811 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 2812 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 2813 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 2814 fi 2815 fi 2816 chmod u+w . 2>&AS_MESSAGE_LOG_FD 2817 $RM conftest* 2818 # SGI C++ compiler will create directory out/ii_files/ for 2819 # template instantiation 2820 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 2821 $RM out/* && rmdir out 2822 cd .. 2823 $RM -r conftest 2824 $RM conftest* 2825]) 2826_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], 2827 [Does compiler simultaneously support -c and -o options?]) 2828])# _LT_COMPILER_C_O 2829 2830 2831# _LT_COMPILER_FILE_LOCKS([TAGNAME]) 2832# ---------------------------------- 2833# Check to see if we can do hard links to lock some files if needed 2834m4_defun([_LT_COMPILER_FILE_LOCKS], 2835[m4_require([_LT_ENABLE_LOCK])dnl 2836m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2837_LT_COMPILER_C_O([$1]) 2838 2839hard_links=nottested 2840if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then 2841 # do not overwrite the value of need_locks provided by the user 2842 AC_MSG_CHECKING([if we can lock with hard links]) 2843 hard_links=yes 2844 $RM conftest* 2845 ln conftest.a conftest.b 2>/dev/null && hard_links=no 2846 touch conftest.a 2847 ln conftest.a conftest.b 2>&5 || hard_links=no 2848 ln conftest.a conftest.b 2>/dev/null && hard_links=no 2849 AC_MSG_RESULT([$hard_links]) 2850 if test no = "$hard_links"; then 2851 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe]) 2852 need_locks=warn 2853 fi 2854else 2855 need_locks=no 2856fi 2857_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) 2858])# _LT_COMPILER_FILE_LOCKS 2859 2860 2861# _LT_CHECK_OBJDIR 2862# ---------------- 2863m4_defun([_LT_CHECK_OBJDIR], 2864[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 2865[rm -f .libs 2>/dev/null 2866mkdir .libs 2>/dev/null 2867if test -d .libs; then 2868 lt_cv_objdir=.libs 2869else 2870 # MS-DOS does not allow filenames that begin with a dot. 2871 lt_cv_objdir=_libs 2872fi 2873rmdir .libs 2>/dev/null]) 2874objdir=$lt_cv_objdir 2875_LT_DECL([], [objdir], [0], 2876 [The name of the directory that contains temporary libtool files])dnl 2877m4_pattern_allow([LT_OBJDIR])dnl 2878AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/", 2879 [Define to the sub-directory where libtool stores uninstalled libraries.]) 2880])# _LT_CHECK_OBJDIR 2881 2882 2883# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 2884# -------------------------------------- 2885# Check hardcoding attributes. 2886m4_defun([_LT_LINKER_HARDCODE_LIBPATH], 2887[AC_MSG_CHECKING([how to hardcode library paths into programs]) 2888_LT_TAGVAR(hardcode_action, $1)= 2889if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 2890 test -n "$_LT_TAGVAR(runpath_var, $1)" || 2891 test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then 2892 2893 # We can hardcode non-existent directories. 2894 if test no != "$_LT_TAGVAR(hardcode_direct, $1)" && 2895 # If the only mechanism to avoid hardcoding is shlibpath_var, we 2896 # have to relink, otherwise we might link with an installed library 2897 # when we should be linking with a yet-to-be-installed one 2898 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" && 2899 test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then 2900 # Linking always hardcodes the temporary library directory. 2901 _LT_TAGVAR(hardcode_action, $1)=relink 2902 else 2903 # We can link without hardcoding, and we can hardcode nonexisting dirs. 2904 _LT_TAGVAR(hardcode_action, $1)=immediate 2905 fi 2906else 2907 # We cannot hardcode anything, or else we can only hardcode existing 2908 # directories. 2909 _LT_TAGVAR(hardcode_action, $1)=unsupported 2910fi 2911AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 2912 2913if test relink = "$_LT_TAGVAR(hardcode_action, $1)" || 2914 test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then 2915 # Fast installation is not supported 2916 enable_fast_install=no 2917elif test yes = "$shlibpath_overrides_runpath" || 2918 test no = "$enable_shared"; then 2919 # Fast installation is not necessary 2920 enable_fast_install=needless 2921fi 2922_LT_TAGDECL([], [hardcode_action], [0], 2923 [How to hardcode a shared library path into an executable]) 2924])# _LT_LINKER_HARDCODE_LIBPATH 2925 2926 2927# _LT_CMD_STRIPLIB 2928# ---------------- 2929m4_defun([_LT_CMD_STRIPLIB], 2930[m4_require([_LT_DECL_EGREP]) 2931striplib= 2932old_striplib= 2933AC_MSG_CHECKING([whether stripping libraries is possible]) 2934if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 2935 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 2936 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 2937 AC_MSG_RESULT([yes]) 2938else 2939# FIXME - insert some real tests, host_os isn't really good enough 2940 case $host_os in 2941 darwin*) 2942 if test -n "$STRIP"; then 2943 striplib="$STRIP -x" 2944 old_striplib="$STRIP -S" 2945 AC_MSG_RESULT([yes]) 2946 else 2947 AC_MSG_RESULT([no]) 2948 fi 2949 ;; 2950 *) 2951 AC_MSG_RESULT([no]) 2952 ;; 2953 esac 2954fi 2955_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) 2956_LT_DECL([], [striplib], [1]) 2957])# _LT_CMD_STRIPLIB 2958 2959 2960# _LT_PREPARE_MUNGE_PATH_LIST 2961# --------------------------- 2962# Make sure func_munge_path_list() is defined correctly. 2963m4_defun([_LT_PREPARE_MUNGE_PATH_LIST], 2964[[# func_munge_path_list VARIABLE PATH 2965# ----------------------------------- 2966# VARIABLE is name of variable containing _space_ separated list of 2967# directories to be munged by the contents of PATH, which is string 2968# having a format: 2969# "DIR[:DIR]:" 2970# string "DIR[ DIR]" will be prepended to VARIABLE 2971# ":DIR[:DIR]" 2972# string "DIR[ DIR]" will be appended to VARIABLE 2973# "DIRP[:DIRP]::[DIRA:]DIRA" 2974# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 2975# "DIRA[ DIRA]" will be appended to VARIABLE 2976# "DIR[:DIR]" 2977# VARIABLE will be replaced by "DIR[ DIR]" 2978func_munge_path_list () 2979{ 2980 case x@S|@2 in 2981 x) 2982 ;; 2983 *:) 2984 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" 2985 ;; 2986 x:*) 2987 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" 2988 ;; 2989 *::*) 2990 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 2991 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" 2992 ;; 2993 *) 2994 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" 2995 ;; 2996 esac 2997} 2998]])# _LT_PREPARE_PATH_LIST 2999 3000 3001# _LT_SYS_DYNAMIC_LINKER([TAG]) 3002# ----------------------------- 3003# PORTME Fill in your ld.so characteristics 3004m4_defun([_LT_SYS_DYNAMIC_LINKER], 3005[AC_REQUIRE([AC_CANONICAL_HOST])dnl 3006m4_require([_LT_DECL_EGREP])dnl 3007m4_require([_LT_FILEUTILS_DEFAULTS])dnl 3008m4_require([_LT_DECL_OBJDUMP])dnl 3009m4_require([_LT_DECL_SED])dnl 3010m4_require([_LT_CHECK_SHELL_FEATURES])dnl 3011m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl 3012AC_MSG_CHECKING([dynamic linker characteristics]) 3013m4_if([$1], 3014 [], [ 3015if test yes = "$GCC"; then 3016 case $host_os in 3017 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 3018 *) lt_awk_arg='/^libraries:/' ;; 3019 esac 3020 case $host_os in 3021 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;; 3022 *) lt_sed_strip_eq='s|=/|/|g' ;; 3023 esac 3024 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 3025 case $lt_search_path_spec in 3026 *\;*) 3027 # if the path contains ";" then we assume it to be the separator 3028 # otherwise default to the standard path separator (i.e. ":") - it is 3029 # assumed that no part of a normal pathname contains ";" but that should 3030 # okay in the real world where ";" in dirpaths is itself problematic. 3031 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 3032 ;; 3033 *) 3034 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 3035 ;; 3036 esac 3037 # Ok, now we have the path, separated by spaces, we can step through it 3038 # and add multilib dir if necessary... 3039 lt_tmp_lt_search_path_spec= 3040 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 3041 # ...but if some path component already ends with the multilib dir we assume 3042 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 3043 case "$lt_multi_os_dir; $lt_search_path_spec " in 3044 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 3045 lt_multi_os_dir= 3046 ;; 3047 esac 3048 for lt_sys_path in $lt_search_path_spec; do 3049 if test -d "$lt_sys_path$lt_multi_os_dir"; then 3050 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 3051 elif test -n "$lt_multi_os_dir"; then 3052 test -d "$lt_sys_path" && \ 3053 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 3054 fi 3055 done 3056 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 3057BEGIN {RS = " "; FS = "/|\n";} { 3058 lt_foo = ""; 3059 lt_count = 0; 3060 for (lt_i = NF; lt_i > 0; lt_i--) { 3061 if ($lt_i != "" && $lt_i != ".") { 3062 if ($lt_i == "..") { 3063 lt_count++; 3064 } else { 3065 if (lt_count == 0) { 3066 lt_foo = "/" $lt_i lt_foo; 3067 } else { 3068 lt_count--; 3069 } 3070 } 3071 } 3072 } 3073 if (lt_foo != "") { lt_freq[[lt_foo]]++; } 3074 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 3075}'` 3076 # AWK program above erroneously prepends '/' to C:/dos/paths 3077 # for these hosts. 3078 case $host_os in 3079 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 3080 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;; 3081 esac 3082 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 3083else 3084 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 3085fi]) 3086library_names_spec= 3087libname_spec='lib$name' 3088soname_spec= 3089shrext_cmds=.so 3090postinstall_cmds= 3091postuninstall_cmds= 3092finish_cmds= 3093finish_eval= 3094shlibpath_var= 3095shlibpath_overrides_runpath=unknown 3096version_type=none 3097dynamic_linker="$host_os ld.so" 3098sys_lib_dlsearch_path_spec="/lib /usr/lib" 3099need_lib_prefix=unknown 3100hardcode_into_libs=no 3101 3102# when you set need_version to no, make sure it does not cause -set_version 3103# flags to be left without arguments 3104need_version=unknown 3105 3106AC_ARG_VAR([LT_SYS_LIBRARY_PATH], 3107[User-defined run-time library search path.]) 3108 3109case $host_os in 3110aix3*) 3111 version_type=linux # correct to gnu/linux during the next big refactor 3112 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 3113 shlibpath_var=LIBPATH 3114 3115 # AIX 3 has no versioning support, so we append a major version to the name. 3116 soname_spec='$libname$release$shared_ext$major' 3117 ;; 3118 3119aix[[4-9]]*) 3120 version_type=linux # correct to gnu/linux during the next big refactor 3121 need_lib_prefix=no 3122 need_version=no 3123 hardcode_into_libs=yes 3124 if test ia64 = "$host_cpu"; then 3125 # AIX 5 supports IA64 3126 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 3127 shlibpath_var=LD_LIBRARY_PATH 3128 else 3129 # With GCC up to 2.95.x, collect2 would create an import file 3130 # for dependence libraries. The import file would start with 3131 # the line '#! .'. This would cause the generated library to 3132 # depend on '.', always an invalid library. This was fixed in 3133 # development snapshots of GCC prior to 3.0. 3134 case $host_os in 3135 aix4 | aix4.[[01]] | aix4.[[01]].*) 3136 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 3137 echo ' yes ' 3138 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 3139 : 3140 else 3141 can_build_shared=no 3142 fi 3143 ;; 3144 esac 3145 # Using Import Files as archive members, it is possible to support 3146 # filename-based versioning of shared library archives on AIX. While 3147 # this would work for both with and without runtime linking, it will 3148 # prevent static linking of such archives. So we do filename-based 3149 # shared library versioning with .so extension only, which is used 3150 # when both runtime linking and shared linking is enabled. 3151 # Unfortunately, runtime linking may impact performance, so we do 3152 # not want this to be the default eventually. Also, we use the 3153 # versioned .so libs for executables only if there is the -brtl 3154 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 3155 # To allow for filename-based versioning support, we need to create 3156 # libNAME.so.V as an archive file, containing: 3157 # *) an Import File, referring to the versioned filename of the 3158 # archive as well as the shared archive member, telling the 3159 # bitwidth (32 or 64) of that shared object, and providing the 3160 # list of exported symbols of that shared object, eventually 3161 # decorated with the 'weak' keyword 3162 # *) the shared object with the F_LOADONLY flag set, to really avoid 3163 # it being seen by the linker. 3164 # At run time we better use the real file rather than another symlink, 3165 # but for link time we create the symlink libNAME.so -> libNAME.so.V 3166 3167 case $with_aix_soname,$aix_use_runtimelinking in 3168 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 3169 # soname into executable. Probably we can add versioning support to 3170 # collect2, so additional links can be useful in future. 3171 aix,yes) # traditional libtool 3172 dynamic_linker='AIX unversionable lib.so' 3173 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 3174 # instead of lib<name>.a to let people know that these are not 3175 # typical AIX shared libraries. 3176 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3177 ;; 3178 aix,no) # traditional AIX only 3179 dynamic_linker='AIX lib.a[(]lib.so.V[)]' 3180 # We preserve .a as extension for shared libraries through AIX4.2 3181 # and later when we are not doing run time linking. 3182 library_names_spec='$libname$release.a $libname.a' 3183 soname_spec='$libname$release$shared_ext$major' 3184 ;; 3185 svr4,*) # full svr4 only 3186 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]" 3187 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 3188 # We do not specify a path in Import Files, so LIBPATH fires. 3189 shlibpath_overrides_runpath=yes 3190 ;; 3191 *,yes) # both, prefer svr4 3192 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]" 3193 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 3194 # unpreferred sharedlib libNAME.a needs extra handling 3195 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 3196 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 3197 # We do not specify a path in Import Files, so LIBPATH fires. 3198 shlibpath_overrides_runpath=yes 3199 ;; 3200 *,no) # both, prefer aix 3201 dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]" 3202 library_names_spec='$libname$release.a $libname.a' 3203 soname_spec='$libname$release$shared_ext$major' 3204 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 3205 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 3206 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 3207 ;; 3208 esac 3209 shlibpath_var=LIBPATH 3210 fi 3211 ;; 3212 3213amigaos*) 3214 case $host_cpu in 3215 powerpc) 3216 # Since July 2007 AmigaOS4 officially supports .so libraries. 3217 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 3218 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3219 ;; 3220 m68k) 3221 library_names_spec='$libname.ixlibrary $libname.a' 3222 # Create ${libname}_ixlibrary.a entries in /sys/libs. 3223 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $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' 3224 ;; 3225 esac 3226 ;; 3227 3228beos*) 3229 library_names_spec='$libname$shared_ext' 3230 dynamic_linker="$host_os ld.so" 3231 shlibpath_var=LIBRARY_PATH 3232 ;; 3233 3234bsdi[[45]]*) 3235 version_type=linux # correct to gnu/linux during the next big refactor 3236 need_version=no 3237 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3238 soname_spec='$libname$release$shared_ext$major' 3239 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 3240 shlibpath_var=LD_LIBRARY_PATH 3241 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 3242 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 3243 # the default ld.so.conf also contains /usr/contrib/lib and 3244 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 3245 # libtool to hard-code these into programs 3246 ;; 3247 3248cygwin* | mingw* | pw32* | cegcc*) 3249 version_type=windows 3250 shrext_cmds=.dll 3251 need_version=no 3252 need_lib_prefix=no 3253 3254 case $GCC,$cc_basename in 3255 yes,*) 3256 # gcc 3257 library_names_spec='$libname.dll.a' 3258 # DLL is installed to $(libdir)/../bin by postinstall_cmds 3259 postinstall_cmds='base_file=`basename \$file`~ 3260 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 3261 dldir=$destdir/`dirname \$dlpath`~ 3262 test -d \$dldir || mkdir -p \$dldir~ 3263 $install_prog $dir/$dlname \$dldir/$dlname~ 3264 chmod a+x \$dldir/$dlname~ 3265 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 3266 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 3267 fi' 3268 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 3269 dlpath=$dir/\$dldll~ 3270 $RM \$dlpath' 3271 shlibpath_overrides_runpath=yes 3272 3273 case $host_os in 3274 cygwin*) 3275 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 3276 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 3277m4_if([$1], [],[ 3278 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) 3279 ;; 3280 mingw* | cegcc*) 3281 # MinGW DLLs use traditional 'lib' prefix 3282 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 3283 ;; 3284 pw32*) 3285 # pw32 DLLs use 'pw' prefix rather than 'lib' 3286 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 3287 ;; 3288 esac 3289 dynamic_linker='Win32 ld.exe' 3290 ;; 3291 3292 *,cl*) 3293 # Native MSVC 3294 libname_spec='$name' 3295 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 3296 library_names_spec='$libname.dll.lib' 3297 3298 case $build_os in 3299 mingw*) 3300 sys_lib_search_path_spec= 3301 lt_save_ifs=$IFS 3302 IFS=';' 3303 for lt_path in $LIB 3304 do 3305 IFS=$lt_save_ifs 3306 # Let DOS variable expansion print the short 8.3 style file name. 3307 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 3308 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 3309 done 3310 IFS=$lt_save_ifs 3311 # Convert to MSYS style. 3312 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` 3313 ;; 3314 cygwin*) 3315 # Convert to unix form, then to dos form, then back to unix form 3316 # but this time dos style (no spaces!) so that the unix form looks 3317 # like /cygdrive/c/PROGRA~1:/cygdr... 3318 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 3319 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 3320 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 3321 ;; 3322 *) 3323 sys_lib_search_path_spec=$LIB 3324 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then 3325 # It is most probably a Windows format PATH. 3326 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 3327 else 3328 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 3329 fi 3330 # FIXME: find the short name or the path components, as spaces are 3331 # common. (e.g. "Program Files" -> "PROGRA~1") 3332 ;; 3333 esac 3334 3335 # DLL is installed to $(libdir)/../bin by postinstall_cmds 3336 postinstall_cmds='base_file=`basename \$file`~ 3337 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 3338 dldir=$destdir/`dirname \$dlpath`~ 3339 test -d \$dldir || mkdir -p \$dldir~ 3340 $install_prog $dir/$dlname \$dldir/$dlname' 3341 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 3342 dlpath=$dir/\$dldll~ 3343 $RM \$dlpath' 3344 shlibpath_overrides_runpath=yes 3345 dynamic_linker='Win32 link.exe' 3346 ;; 3347 3348 *) 3349 # Assume MSVC wrapper 3350 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib' 3351 dynamic_linker='Win32 ld.exe' 3352 ;; 3353 esac 3354 # FIXME: first we should search . and the directory the executable is in 3355 shlibpath_var=PATH 3356 ;; 3357 3358darwin* | rhapsody*) 3359 dynamic_linker="$host_os dyld" 3360 version_type=darwin 3361 need_lib_prefix=no 3362 need_version=no 3363 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 3364 soname_spec='$libname$release$major$shared_ext' 3365 shlibpath_overrides_runpath=yes 3366 shlibpath_var=DYLD_LIBRARY_PATH 3367 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 3368m4_if([$1], [],[ 3369 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 3370 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 3371 ;; 3372 3373dgux*) 3374 version_type=linux # correct to gnu/linux during the next big refactor 3375 need_lib_prefix=no 3376 need_version=no 3377 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3378 soname_spec='$libname$release$shared_ext$major' 3379 shlibpath_var=LD_LIBRARY_PATH 3380 ;; 3381 3382freebsd* | dragonfly*) 3383 # DragonFly does not have aout. When/if they implement a new 3384 # versioning mechanism, adjust this. 3385 if test -x /usr/bin/objformat; then 3386 objformat=`/usr/bin/objformat` 3387 else 3388 case $host_os in 3389 freebsd[[23]].*) objformat=aout ;; 3390 *) objformat=elf ;; 3391 esac 3392 fi 3393 version_type=freebsd-$objformat 3394 case $version_type in 3395 freebsd-elf*) 3396 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3397 soname_spec='$libname$release$shared_ext$major' 3398 need_version=no 3399 need_lib_prefix=no 3400 ;; 3401 freebsd-*) 3402 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 3403 need_version=yes 3404 ;; 3405 esac 3406 shlibpath_var=LD_LIBRARY_PATH 3407 case $host_os in 3408 freebsd2.*) 3409 shlibpath_overrides_runpath=yes 3410 ;; 3411 freebsd3.[[01]]* | freebsdelf3.[[01]]*) 3412 shlibpath_overrides_runpath=yes 3413 hardcode_into_libs=yes 3414 ;; 3415 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 3416 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 3417 shlibpath_overrides_runpath=no 3418 hardcode_into_libs=yes 3419 ;; 3420 *) # from 4.6 on, and DragonFly 3421 shlibpath_overrides_runpath=yes 3422 hardcode_into_libs=yes 3423 ;; 3424 esac 3425 ;; 3426 3427haiku*) 3428 version_type=linux # correct to gnu/linux during the next big refactor 3429 need_lib_prefix=no 3430 need_version=no 3431 dynamic_linker="$host_os runtime_loader" 3432 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3433 soname_spec='$libname$release$shared_ext$major' 3434 shlibpath_var=LIBRARY_PATH 3435 shlibpath_overrides_runpath=no 3436 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 3437 hardcode_into_libs=yes 3438 ;; 3439 3440hpux9* | hpux10* | hpux11*) 3441 # Give a soname corresponding to the major version so that dld.sl refuses to 3442 # link against other versions. 3443 version_type=sunos 3444 need_lib_prefix=no 3445 need_version=no 3446 case $host_cpu in 3447 ia64*) 3448 shrext_cmds='.so' 3449 hardcode_into_libs=yes 3450 dynamic_linker="$host_os dld.so" 3451 shlibpath_var=LD_LIBRARY_PATH 3452 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 3453 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3454 soname_spec='$libname$release$shared_ext$major' 3455 if test 32 = "$HPUX_IA64_MODE"; then 3456 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 3457 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 3458 else 3459 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 3460 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 3461 fi 3462 ;; 3463 hppa*64*) 3464 shrext_cmds='.sl' 3465 hardcode_into_libs=yes 3466 dynamic_linker="$host_os dld.sl" 3467 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 3468 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 3469 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3470 soname_spec='$libname$release$shared_ext$major' 3471 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 3472 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 3473 ;; 3474 *) 3475 shrext_cmds='.sl' 3476 dynamic_linker="$host_os dld.sl" 3477 shlibpath_var=SHLIB_PATH 3478 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 3479 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3480 soname_spec='$libname$release$shared_ext$major' 3481 ;; 3482 esac 3483 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 3484 postinstall_cmds='chmod 555 $lib' 3485 # or fails outright, so override atomically: 3486 install_override_mode=555 3487 ;; 3488 3489interix[[3-9]]*) 3490 version_type=linux # correct to gnu/linux during the next big refactor 3491 need_lib_prefix=no 3492 need_version=no 3493 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3494 soname_spec='$libname$release$shared_ext$major' 3495 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 3496 shlibpath_var=LD_LIBRARY_PATH 3497 shlibpath_overrides_runpath=no 3498 hardcode_into_libs=yes 3499 ;; 3500 3501irix5* | irix6* | nonstopux*) 3502 case $host_os in 3503 nonstopux*) version_type=nonstopux ;; 3504 *) 3505 if test yes = "$lt_cv_prog_gnu_ld"; then 3506 version_type=linux # correct to gnu/linux during the next big refactor 3507 else 3508 version_type=irix 3509 fi ;; 3510 esac 3511 need_lib_prefix=no 3512 need_version=no 3513 soname_spec='$libname$release$shared_ext$major' 3514 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 3515 case $host_os in 3516 irix5* | nonstopux*) 3517 libsuff= shlibsuff= 3518 ;; 3519 *) 3520 case $LD in # libtool.m4 will add one of these switches to LD 3521 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 3522 libsuff= shlibsuff= libmagic=32-bit;; 3523 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 3524 libsuff=32 shlibsuff=N32 libmagic=N32;; 3525 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 3526 libsuff=64 shlibsuff=64 libmagic=64-bit;; 3527 *) libsuff= shlibsuff= libmagic=never-match;; 3528 esac 3529 ;; 3530 esac 3531 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 3532 shlibpath_overrides_runpath=no 3533 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 3534 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 3535 hardcode_into_libs=yes 3536 ;; 3537 3538# No shared lib support for Linux oldld, aout, or coff. 3539linux*oldld* | linux*aout* | linux*coff*) 3540 dynamic_linker=no 3541 ;; 3542 3543linux*android*) 3544 version_type=none # Android doesn't support versioned libraries. 3545 need_lib_prefix=no 3546 need_version=no 3547 library_names_spec='$libname$release$shared_ext' 3548 soname_spec='$libname$release$shared_ext' 3549 finish_cmds= 3550 shlibpath_var=LD_LIBRARY_PATH 3551 shlibpath_overrides_runpath=yes 3552 3553 # This implies no fast_install, which is unacceptable. 3554 # Some rework will be needed to allow for fast_install 3555 # before this can be enabled. 3556 hardcode_into_libs=yes 3557 3558 dynamic_linker='Android linker' 3559 # Don't embed -rpath directories since the linker doesn't support them. 3560 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 3561 ;; 3562 3563# This must be glibc/ELF. 3564linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 3565 version_type=linux # correct to gnu/linux during the next big refactor 3566 need_lib_prefix=no 3567 need_version=no 3568 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3569 soname_spec='$libname$release$shared_ext$major' 3570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 3571 shlibpath_var=LD_LIBRARY_PATH 3572 shlibpath_overrides_runpath=no 3573 3574 # Some binutils ld are patched to set DT_RUNPATH 3575 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], 3576 [lt_cv_shlibpath_overrides_runpath=no 3577 save_LDFLAGS=$LDFLAGS 3578 save_libdir=$libdir 3579 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 3580 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 3581 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 3582 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], 3583 [lt_cv_shlibpath_overrides_runpath=yes])]) 3584 LDFLAGS=$save_LDFLAGS 3585 libdir=$save_libdir 3586 ]) 3587 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 3588 3589 # This implies no fast_install, which is unacceptable. 3590 # Some rework will be needed to allow for fast_install 3591 # before this can be enabled. 3592 hardcode_into_libs=yes 3593 3594 # Ideally, we could use ldconfig to report *all* directores which are 3595 # searched for libraries, however this is still not possible. Aside from not 3596 # being certain /sbin/ldconfig is available, command 3597 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 3598 # even though it is searched at run-time. Try to do the best guess by 3599 # appending ld.so.conf contents (and includes) to the search path. 3600 if test -f /etc/ld.so.conf; then 3601 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 3602 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 3603 fi 3604 3605 # We used to test for /lib/ld.so.1 and disable shared libraries on 3606 # powerpc, because MkLinux only supported shared libraries with the 3607 # GNU dynamic linker. Since this was broken with cross compilers, 3608 # most powerpc-linux boxes support dynamic linking these days and 3609 # people can always --disable-shared, the test was removed, and we 3610 # assume the GNU/Linux dynamic linker is in use. 3611 dynamic_linker='GNU/Linux ld.so' 3612 ;; 3613 3614netbsdelf*-gnu) 3615 version_type=linux 3616 need_lib_prefix=no 3617 need_version=no 3618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 3619 soname_spec='${libname}${release}${shared_ext}$major' 3620 shlibpath_var=LD_LIBRARY_PATH 3621 shlibpath_overrides_runpath=no 3622 hardcode_into_libs=yes 3623 dynamic_linker='NetBSD ld.elf_so' 3624 ;; 3625 3626netbsd*) 3627 version_type=sunos 3628 need_lib_prefix=no 3629 need_version=no 3630 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 3631 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 3632 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 3633 dynamic_linker='NetBSD (a.out) ld.so' 3634 else 3635 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3636 soname_spec='$libname$release$shared_ext$major' 3637 dynamic_linker='NetBSD ld.elf_so' 3638 fi 3639 shlibpath_var=LD_LIBRARY_PATH 3640 shlibpath_overrides_runpath=yes 3641 hardcode_into_libs=yes 3642 ;; 3643 3644newsos6) 3645 version_type=linux # correct to gnu/linux during the next big refactor 3646 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3647 shlibpath_var=LD_LIBRARY_PATH 3648 shlibpath_overrides_runpath=yes 3649 ;; 3650 3651*nto* | *qnx*) 3652 version_type=qnx 3653 need_lib_prefix=no 3654 need_version=no 3655 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3656 soname_spec='$libname$release$shared_ext$major' 3657 shlibpath_var=LD_LIBRARY_PATH 3658 shlibpath_overrides_runpath=no 3659 hardcode_into_libs=yes 3660 dynamic_linker='ldqnx.so' 3661 ;; 3662 3663openbsd* | bitrig*) 3664 version_type=sunos 3665 sys_lib_dlsearch_path_spec=/usr/lib 3666 need_lib_prefix=no 3667 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 3668 need_version=no 3669 else 3670 need_version=yes 3671 fi 3672 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 3673 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 3674 shlibpath_var=LD_LIBRARY_PATH 3675 shlibpath_overrides_runpath=yes 3676 ;; 3677 3678os2*) 3679 libname_spec='$name' 3680 version_type=windows 3681 shrext_cmds=.dll 3682 need_version=no 3683 need_lib_prefix=no 3684 # OS/2 can only load a DLL with a base name of 8 characters or less. 3685 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 3686 v=$($ECHO $release$versuffix | tr -d .-); 3687 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 3688 $ECHO $n$v`$shared_ext' 3689 library_names_spec='${libname}_dll.$libext' 3690 dynamic_linker='OS/2 ld.exe' 3691 shlibpath_var=BEGINLIBPATH 3692 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 3693 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 3694 postinstall_cmds='base_file=`basename \$file`~ 3695 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 3696 dldir=$destdir/`dirname \$dlpath`~ 3697 test -d \$dldir || mkdir -p \$dldir~ 3698 $install_prog $dir/$dlname \$dldir/$dlname~ 3699 chmod a+x \$dldir/$dlname~ 3700 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 3701 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 3702 fi' 3703 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 3704 dlpath=$dir/\$dldll~ 3705 $RM \$dlpath' 3706 ;; 3707 3708osf3* | osf4* | osf5*) 3709 version_type=osf 3710 need_lib_prefix=no 3711 need_version=no 3712 soname_spec='$libname$release$shared_ext$major' 3713 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3714 shlibpath_var=LD_LIBRARY_PATH 3715 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 3716 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 3717 ;; 3718 3719rdos*) 3720 dynamic_linker=no 3721 ;; 3722 3723solaris*) 3724 version_type=linux # correct to gnu/linux during the next big refactor 3725 need_lib_prefix=no 3726 need_version=no 3727 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3728 soname_spec='$libname$release$shared_ext$major' 3729 shlibpath_var=LD_LIBRARY_PATH 3730 shlibpath_overrides_runpath=yes 3731 hardcode_into_libs=yes 3732 # ldd complains unless libraries are executable 3733 postinstall_cmds='chmod +x $lib' 3734 ;; 3735 3736sunos4*) 3737 version_type=sunos 3738 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 3739 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 3740 shlibpath_var=LD_LIBRARY_PATH 3741 shlibpath_overrides_runpath=yes 3742 if test yes = "$with_gnu_ld"; then 3743 need_lib_prefix=no 3744 fi 3745 need_version=yes 3746 ;; 3747 3748sysv4 | sysv4.3*) 3749 version_type=linux # correct to gnu/linux during the next big refactor 3750 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3751 soname_spec='$libname$release$shared_ext$major' 3752 shlibpath_var=LD_LIBRARY_PATH 3753 case $host_vendor in 3754 sni) 3755 shlibpath_overrides_runpath=no 3756 need_lib_prefix=no 3757 runpath_var=LD_RUN_PATH 3758 ;; 3759 siemens) 3760 need_lib_prefix=no 3761 ;; 3762 motorola) 3763 need_lib_prefix=no 3764 need_version=no 3765 shlibpath_overrides_runpath=no 3766 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 3767 ;; 3768 esac 3769 ;; 3770 3771sysv4*MP*) 3772 if test -d /usr/nec; then 3773 version_type=linux # correct to gnu/linux during the next big refactor 3774 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 3775 soname_spec='$libname$shared_ext.$major' 3776 shlibpath_var=LD_LIBRARY_PATH 3777 fi 3778 ;; 3779 3780sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 3781 version_type=sco 3782 need_lib_prefix=no 3783 need_version=no 3784 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 3785 soname_spec='$libname$release$shared_ext$major' 3786 shlibpath_var=LD_LIBRARY_PATH 3787 shlibpath_overrides_runpath=yes 3788 hardcode_into_libs=yes 3789 if test yes = "$with_gnu_ld"; then 3790 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 3791 else 3792 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 3793 case $host_os in 3794 sco3.2v5*) 3795 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 3796 ;; 3797 esac 3798 fi 3799 sys_lib_dlsearch_path_spec='/usr/lib' 3800 ;; 3801 3802tpf*) 3803 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 3804 version_type=linux # correct to gnu/linux during the next big refactor 3805 need_lib_prefix=no 3806 need_version=no 3807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3808 shlibpath_var=LD_LIBRARY_PATH 3809 shlibpath_overrides_runpath=no 3810 hardcode_into_libs=yes 3811 ;; 3812 3813uts4*) 3814 version_type=linux # correct to gnu/linux during the next big refactor 3815 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3816 soname_spec='$libname$release$shared_ext$major' 3817 shlibpath_var=LD_LIBRARY_PATH 3818 ;; 3819 3820*) 3821 dynamic_linker=no 3822 ;; 3823esac 3824AC_MSG_RESULT([$dynamic_linker]) 3825test no = "$dynamic_linker" && can_build_shared=no 3826 3827variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 3828if test yes = "$GCC"; then 3829 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 3830fi 3831 3832if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 3833 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 3834fi 3835 3836if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 3837 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 3838fi 3839 3840# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 3841configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 3842 3843# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 3844func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 3845 3846# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 3847configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 3848 3849_LT_DECL([], [variables_saved_for_relink], [1], 3850 [Variables whose values should be saved in libtool wrapper scripts and 3851 restored at link time]) 3852_LT_DECL([], [need_lib_prefix], [0], 3853 [Do we need the "lib" prefix for modules?]) 3854_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) 3855_LT_DECL([], [version_type], [0], [Library versioning type]) 3856_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) 3857_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) 3858_LT_DECL([], [shlibpath_overrides_runpath], [0], 3859 [Is shlibpath searched before the hard-coded library search path?]) 3860_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) 3861_LT_DECL([], [library_names_spec], [1], 3862 [[List of archive names. First name is the real one, the rest are links. 3863 The last name is the one that the linker finds with -lNAME]]) 3864_LT_DECL([], [soname_spec], [1], 3865 [[The coded name of the library, if different from the real name]]) 3866_LT_DECL([], [install_override_mode], [1], 3867 [Permission mode override for installation of shared libraries]) 3868_LT_DECL([], [postinstall_cmds], [2], 3869 [Command to use after installation of a shared archive]) 3870_LT_DECL([], [postuninstall_cmds], [2], 3871 [Command to use after uninstallation of a shared archive]) 3872_LT_DECL([], [finish_cmds], [2], 3873 [Commands used to finish a libtool library installation in a directory]) 3874_LT_DECL([], [finish_eval], [1], 3875 [[As "finish_cmds", except a single script fragment to be evaled but 3876 not shown]]) 3877_LT_DECL([], [hardcode_into_libs], [0], 3878 [Whether we should hardcode library paths into libraries]) 3879_LT_DECL([], [sys_lib_search_path_spec], [2], 3880 [Compile-time system search path for libraries]) 3881_LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2], 3882 [Detected run-time system search path for libraries]) 3883_LT_DECL([], [configure_time_lt_sys_library_path], [2], 3884 [Explicit LT_SYS_LIBRARY_PATH set during ./configure time]) 3885])# _LT_SYS_DYNAMIC_LINKER 3886 3887 3888# _LT_PATH_TOOL_PREFIX(TOOL) 3889# -------------------------- 3890# find a file program that can recognize shared library 3891AC_DEFUN([_LT_PATH_TOOL_PREFIX], 3892[m4_require([_LT_DECL_EGREP])dnl 3893AC_MSG_CHECKING([for $1]) 3894AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 3895[case $MAGIC_CMD in 3896[[\\/*] | ?:[\\/]*]) 3897 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 3898 ;; 3899*) 3900 lt_save_MAGIC_CMD=$MAGIC_CMD 3901 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 3902dnl $ac_dummy forces splitting on constant user-supplied paths. 3903dnl POSIX.2 word splitting is done only on the output of word expansions, 3904dnl not every word. This closes a longstanding sh security hole. 3905 ac_dummy="m4_if([$2], , $PATH, [$2])" 3906 for ac_dir in $ac_dummy; do 3907 IFS=$lt_save_ifs 3908 test -z "$ac_dir" && ac_dir=. 3909 if test -f "$ac_dir/$1"; then 3910 lt_cv_path_MAGIC_CMD=$ac_dir/"$1" 3911 if test -n "$file_magic_test_file"; then 3912 case $deplibs_check_method in 3913 "file_magic "*) 3914 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 3915 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 3916 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 3917 $EGREP "$file_magic_regex" > /dev/null; then 3918 : 3919 else 3920 cat <<_LT_EOF 1>&2 3921 3922*** Warning: the command libtool uses to detect shared libraries, 3923*** $file_magic_cmd, produces output that libtool cannot recognize. 3924*** The result is that libtool may fail to recognize shared libraries 3925*** as such. This will affect the creation of libtool libraries that 3926*** depend on shared libraries, but programs linked with such libtool 3927*** libraries will work regardless of this problem. Nevertheless, you 3928*** may want to report the problem to your system manager and/or to 3929*** bug-libtool@gnu.org 3930 3931_LT_EOF 3932 fi ;; 3933 esac 3934 fi 3935 break 3936 fi 3937 done 3938 IFS=$lt_save_ifs 3939 MAGIC_CMD=$lt_save_MAGIC_CMD 3940 ;; 3941esac]) 3942MAGIC_CMD=$lt_cv_path_MAGIC_CMD 3943if test -n "$MAGIC_CMD"; then 3944 AC_MSG_RESULT($MAGIC_CMD) 3945else 3946 AC_MSG_RESULT(no) 3947fi 3948_LT_DECL([], [MAGIC_CMD], [0], 3949 [Used to examine libraries when file_magic_cmd begins with "file"])dnl 3950])# _LT_PATH_TOOL_PREFIX 3951 3952# Old name: 3953AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) 3954dnl aclocal-1.4 backwards compatibility: 3955dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) 3956 3957 3958# _LT_PATH_MAGIC 3959# -------------- 3960# find a file program that can recognize a shared library 3961m4_defun([_LT_PATH_MAGIC], 3962[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 3963if test -z "$lt_cv_path_MAGIC_CMD"; then 3964 if test -n "$ac_tool_prefix"; then 3965 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 3966 else 3967 MAGIC_CMD=: 3968 fi 3969fi 3970])# _LT_PATH_MAGIC 3971 3972 3973# LT_PATH_LD 3974# ---------- 3975# find the pathname to the GNU or non-GNU linker 3976AC_DEFUN([LT_PATH_LD], 3977[AC_REQUIRE([AC_PROG_CC])dnl 3978AC_REQUIRE([AC_CANONICAL_HOST])dnl 3979AC_REQUIRE([AC_CANONICAL_BUILD])dnl 3980m4_require([_LT_DECL_SED])dnl 3981m4_require([_LT_DECL_EGREP])dnl 3982m4_require([_LT_PROG_ECHO_BACKSLASH])dnl 3983 3984AC_ARG_WITH([gnu-ld], 3985 [AS_HELP_STRING([--with-gnu-ld], 3986 [assume the C compiler uses GNU ld @<:@default=no@:>@])], 3987 [test no = "$withval" || with_gnu_ld=yes], 3988 [with_gnu_ld=no])dnl 3989 3990ac_prog=ld 3991if test yes = "$GCC"; then 3992 # Check if gcc -print-prog-name=ld gives a path. 3993 AC_MSG_CHECKING([for ld used by $CC]) 3994 case $host in 3995 *-*-mingw*) 3996 # gcc leaves a trailing carriage return, which upsets mingw 3997 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3998 *) 3999 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4000 esac 4001 case $ac_prog in 4002 # Accept absolute paths. 4003 [[\\/]]* | ?:[[\\/]]*) 4004 re_direlt='/[[^/]][[^/]]*/\.\./' 4005 # Canonicalize the pathname of ld 4006 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4007 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4008 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4009 done 4010 test -z "$LD" && LD=$ac_prog 4011 ;; 4012 "") 4013 # If it fails, then pretend we aren't using GCC. 4014 ac_prog=ld 4015 ;; 4016 *) 4017 # If it is relative, then search for the first ld in PATH. 4018 with_gnu_ld=unknown 4019 ;; 4020 esac 4021elif test yes = "$with_gnu_ld"; then 4022 AC_MSG_CHECKING([for GNU ld]) 4023else 4024 AC_MSG_CHECKING([for non-GNU ld]) 4025fi 4026AC_CACHE_VAL(lt_cv_path_LD, 4027[if test -z "$LD"; then 4028 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4029 for ac_dir in $PATH; do 4030 IFS=$lt_save_ifs 4031 test -z "$ac_dir" && ac_dir=. 4032 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4033 lt_cv_path_LD=$ac_dir/$ac_prog 4034 # Check to see if the program is GNU ld. I'd rather use --version, 4035 # but apparently some variants of GNU ld only accept -v. 4036 # Break only if it was the GNU/non-GNU ld that we prefer. 4037 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4038 *GNU* | *'with BFD'*) 4039 test no != "$with_gnu_ld" && break 4040 ;; 4041 *) 4042 test yes != "$with_gnu_ld" && break 4043 ;; 4044 esac 4045 fi 4046 done 4047 IFS=$lt_save_ifs 4048else 4049 lt_cv_path_LD=$LD # Let the user override the test with a path. 4050fi]) 4051LD=$lt_cv_path_LD 4052if test -n "$LD"; then 4053 AC_MSG_RESULT($LD) 4054else 4055 AC_MSG_RESULT(no) 4056fi 4057test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 4058_LT_PATH_LD_GNU 4059AC_SUBST([LD]) 4060 4061_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) 4062])# LT_PATH_LD 4063 4064# Old names: 4065AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) 4066AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) 4067dnl aclocal-1.4 backwards compatibility: 4068dnl AC_DEFUN([AM_PROG_LD], []) 4069dnl AC_DEFUN([AC_PROG_LD], []) 4070 4071 4072# _LT_PATH_LD_GNU 4073#- -------------- 4074m4_defun([_LT_PATH_LD_GNU], 4075[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 4076[# I'd rather use --version here, but apparently some GNU lds only accept -v. 4077case `$LD -v 2>&1 </dev/null` in 4078*GNU* | *'with BFD'*) 4079 lt_cv_prog_gnu_ld=yes 4080 ;; 4081*) 4082 lt_cv_prog_gnu_ld=no 4083 ;; 4084esac]) 4085with_gnu_ld=$lt_cv_prog_gnu_ld 4086])# _LT_PATH_LD_GNU 4087 4088 4089# _LT_CMD_RELOAD 4090# -------------- 4091# find reload flag for linker 4092# -- PORTME Some linkers may need a different reload flag. 4093m4_defun([_LT_CMD_RELOAD], 4094[AC_CACHE_CHECK([for $LD option to reload object files], 4095 lt_cv_ld_reload_flag, 4096 [lt_cv_ld_reload_flag='-r']) 4097reload_flag=$lt_cv_ld_reload_flag 4098case $reload_flag in 4099"" | " "*) ;; 4100*) reload_flag=" $reload_flag" ;; 4101esac 4102reload_cmds='$LD$reload_flag -o $output$reload_objs' 4103case $host_os in 4104 cygwin* | mingw* | pw32* | cegcc*) 4105 if test yes != "$GCC"; then 4106 reload_cmds=false 4107 fi 4108 ;; 4109 darwin*) 4110 if test yes = "$GCC"; then 4111 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 4112 else 4113 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4114 fi 4115 ;; 4116esac 4117_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl 4118_LT_TAGDECL([], [reload_cmds], [2])dnl 4119])# _LT_CMD_RELOAD 4120 4121 4122# _LT_PATH_DD 4123# ----------- 4124# find a working dd 4125m4_defun([_LT_PATH_DD], 4126[AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD], 4127[printf 0123456789abcdef0123456789abcdef >conftest.i 4128cat conftest.i conftest.i >conftest2.i 4129: ${lt_DD:=$DD} 4130AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd], 4131[if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 4132 cmp -s conftest.i conftest.out \ 4133 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 4134fi]) 4135rm -f conftest.i conftest2.i conftest.out]) 4136])# _LT_PATH_DD 4137 4138 4139# _LT_CMD_TRUNCATE 4140# ---------------- 4141# find command to truncate a binary pipe 4142m4_defun([_LT_CMD_TRUNCATE], 4143[m4_require([_LT_PATH_DD]) 4144AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin], 4145[printf 0123456789abcdef0123456789abcdef >conftest.i 4146cat conftest.i conftest.i >conftest2.i 4147lt_cv_truncate_bin= 4148if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 4149 cmp -s conftest.i conftest.out \ 4150 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 4151fi 4152rm -f conftest.i conftest2.i conftest.out 4153test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"]) 4154_LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1], 4155 [Command to truncate a binary pipe]) 4156])# _LT_CMD_TRUNCATE 4157 4158 4159# _LT_CHECK_MAGIC_METHOD 4160# ---------------------- 4161# how to check for library dependencies 4162# -- PORTME fill in with the dynamic library characteristics 4163m4_defun([_LT_CHECK_MAGIC_METHOD], 4164[m4_require([_LT_DECL_EGREP]) 4165m4_require([_LT_DECL_OBJDUMP]) 4166AC_CACHE_CHECK([how to recognize dependent libraries], 4167lt_cv_deplibs_check_method, 4168[lt_cv_file_magic_cmd='$MAGIC_CMD' 4169lt_cv_file_magic_test_file= 4170lt_cv_deplibs_check_method='unknown' 4171# Need to set the preceding variable on all platforms that support 4172# interlibrary dependencies. 4173# 'none' -- dependencies not supported. 4174# 'unknown' -- same as none, but documents that we really don't know. 4175# 'pass_all' -- all dependencies passed with no checks. 4176# 'test_compile' -- check by making test program. 4177# 'file_magic [[regex]]' -- check by looking for files in library path 4178# that responds to the $file_magic_cmd with a given extended regex. 4179# If you have 'file' or equivalent on your system and you're not sure 4180# whether 'pass_all' will *always* work, you probably want this one. 4181 4182case $host_os in 4183aix[[4-9]]*) 4184 lt_cv_deplibs_check_method=pass_all 4185 ;; 4186 4187beos*) 4188 lt_cv_deplibs_check_method=pass_all 4189 ;; 4190 4191bsdi[[45]]*) 4192 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 4193 lt_cv_file_magic_cmd='/usr/bin/file -L' 4194 lt_cv_file_magic_test_file=/shlib/libc.so 4195 ;; 4196 4197cygwin*) 4198 # func_win32_libid is a shell function defined in ltmain.sh 4199 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4200 lt_cv_file_magic_cmd='func_win32_libid' 4201 ;; 4202 4203mingw* | pw32*) 4204 # Base MSYS/MinGW do not provide the 'file' command needed by 4205 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4206 # unless we find 'file', for example because we are cross-compiling. 4207 if ( file / ) >/dev/null 2>&1; then 4208 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4209 lt_cv_file_magic_cmd='func_win32_libid' 4210 else 4211 # Keep this pattern in sync with the one in func_win32_libid. 4212 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 4213 lt_cv_file_magic_cmd='$OBJDUMP -f' 4214 fi 4215 ;; 4216 4217cegcc*) 4218 # use the weaker test based on 'objdump'. See mingw*. 4219 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4220 lt_cv_file_magic_cmd='$OBJDUMP -f' 4221 ;; 4222 4223darwin* | rhapsody*) 4224 lt_cv_deplibs_check_method=pass_all 4225 ;; 4226 4227freebsd* | dragonfly*) 4228 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4229 case $host_cpu in 4230 i*86 ) 4231 # Not sure whether the presence of OpenBSD here was a mistake. 4232 # Let's accept both of them until this is cleared up. 4233 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 4234 lt_cv_file_magic_cmd=/usr/bin/file 4235 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4236 ;; 4237 esac 4238 else 4239 lt_cv_deplibs_check_method=pass_all 4240 fi 4241 ;; 4242 4243haiku*) 4244 lt_cv_deplibs_check_method=pass_all 4245 ;; 4246 4247hpux10.20* | hpux11*) 4248 lt_cv_file_magic_cmd=/usr/bin/file 4249 case $host_cpu in 4250 ia64*) 4251 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 4252 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4253 ;; 4254 hppa*64*) 4255 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] 4256 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4257 ;; 4258 *) 4259 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' 4260 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4261 ;; 4262 esac 4263 ;; 4264 4265interix[[3-9]]*) 4266 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4267 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 4268 ;; 4269 4270irix5* | irix6* | nonstopux*) 4271 case $LD in 4272 *-32|*"-32 ") libmagic=32-bit;; 4273 *-n32|*"-n32 ") libmagic=N32;; 4274 *-64|*"-64 ") libmagic=64-bit;; 4275 *) libmagic=never-match;; 4276 esac 4277 lt_cv_deplibs_check_method=pass_all 4278 ;; 4279 4280# This must be glibc/ELF. 4281linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 4282 lt_cv_deplibs_check_method=pass_all 4283 ;; 4284 4285netbsd* | netbsdelf*-gnu) 4286 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4287 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 4288 else 4289 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 4290 fi 4291 ;; 4292 4293newos6*) 4294 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 4295 lt_cv_file_magic_cmd=/usr/bin/file 4296 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4297 ;; 4298 4299*nto* | *qnx*) 4300 lt_cv_deplibs_check_method=pass_all 4301 ;; 4302 4303openbsd* | bitrig*) 4304 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 4305 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 4306 else 4307 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 4308 fi 4309 ;; 4310 4311osf3* | osf4* | osf5*) 4312 lt_cv_deplibs_check_method=pass_all 4313 ;; 4314 4315rdos*) 4316 lt_cv_deplibs_check_method=pass_all 4317 ;; 4318 4319solaris*) 4320 lt_cv_deplibs_check_method=pass_all 4321 ;; 4322 4323sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4324 lt_cv_deplibs_check_method=pass_all 4325 ;; 4326 4327sysv4 | sysv4.3*) 4328 case $host_vendor in 4329 motorola) 4330 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]]' 4331 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4332 ;; 4333 ncr) 4334 lt_cv_deplibs_check_method=pass_all 4335 ;; 4336 sequent) 4337 lt_cv_file_magic_cmd='/bin/file' 4338 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 4339 ;; 4340 sni) 4341 lt_cv_file_magic_cmd='/bin/file' 4342 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 4343 lt_cv_file_magic_test_file=/lib/libc.so 4344 ;; 4345 siemens) 4346 lt_cv_deplibs_check_method=pass_all 4347 ;; 4348 pc) 4349 lt_cv_deplibs_check_method=pass_all 4350 ;; 4351 esac 4352 ;; 4353 4354tpf*) 4355 lt_cv_deplibs_check_method=pass_all 4356 ;; 4357os2*) 4358 lt_cv_deplibs_check_method=pass_all 4359 ;; 4360esac 4361]) 4362 4363file_magic_glob= 4364want_nocaseglob=no 4365if test "$build" = "$host"; then 4366 case $host_os in 4367 mingw* | pw32*) 4368 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 4369 want_nocaseglob=yes 4370 else 4371 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` 4372 fi 4373 ;; 4374 esac 4375fi 4376 4377file_magic_cmd=$lt_cv_file_magic_cmd 4378deplibs_check_method=$lt_cv_deplibs_check_method 4379test -z "$deplibs_check_method" && deplibs_check_method=unknown 4380 4381_LT_DECL([], [deplibs_check_method], [1], 4382 [Method to check whether dependent libraries are shared objects]) 4383_LT_DECL([], [file_magic_cmd], [1], 4384 [Command to use when deplibs_check_method = "file_magic"]) 4385_LT_DECL([], [file_magic_glob], [1], 4386 [How to find potential files when deplibs_check_method = "file_magic"]) 4387_LT_DECL([], [want_nocaseglob], [1], 4388 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) 4389])# _LT_CHECK_MAGIC_METHOD 4390 4391 4392# LT_PATH_NM 4393# ---------- 4394# find the pathname to a BSD- or MS-compatible name lister 4395AC_DEFUN([LT_PATH_NM], 4396[AC_REQUIRE([AC_PROG_CC])dnl 4397AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, 4398[if test -n "$NM"; then 4399 # Let the user override the test. 4400 lt_cv_path_NM=$NM 4401else 4402 lt_nm_to_check=${ac_tool_prefix}nm 4403 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4404 lt_nm_to_check="$lt_nm_to_check nm" 4405 fi 4406 for lt_tmp_nm in $lt_nm_to_check; do 4407 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4408 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4409 IFS=$lt_save_ifs 4410 test -z "$ac_dir" && ac_dir=. 4411 tmp_nm=$ac_dir/$lt_tmp_nm 4412 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4413 # Check to see if the nm accepts a BSD-compat flag. 4414 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4415 # nm: unknown option "B" ignored 4416 # Tru64's nm complains that /dev/null is an invalid object file 4417 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4418 case $build_os in 4419 mingw*) lt_bad_file=conftest.nm/nofile ;; 4420 *) lt_bad_file=/dev/null ;; 4421 esac 4422 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4423 *$lt_bad_file* | *'Invalid file or object type'*) 4424 lt_cv_path_NM="$tmp_nm -B" 4425 break 2 4426 ;; 4427 *) 4428 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4429 */dev/null*) 4430 lt_cv_path_NM="$tmp_nm -p" 4431 break 2 4432 ;; 4433 *) 4434 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4435 continue # so that we can try to find one that supports BSD flags 4436 ;; 4437 esac 4438 ;; 4439 esac 4440 fi 4441 done 4442 IFS=$lt_save_ifs 4443 done 4444 : ${lt_cv_path_NM=no} 4445fi]) 4446if test no != "$lt_cv_path_NM"; then 4447 NM=$lt_cv_path_NM 4448else 4449 # Didn't find any BSD compatible name lister, look for dumpbin. 4450 if test -n "$DUMPBIN"; then : 4451 # Let the user override the test. 4452 else 4453 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) 4454 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4455 *COFF*) 4456 DUMPBIN="$DUMPBIN -symbols -headers" 4457 ;; 4458 *) 4459 DUMPBIN=: 4460 ;; 4461 esac 4462 fi 4463 AC_SUBST([DUMPBIN]) 4464 if test : != "$DUMPBIN"; then 4465 NM=$DUMPBIN 4466 fi 4467fi 4468test -z "$NM" && NM=nm 4469AC_SUBST([NM]) 4470_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl 4471 4472AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], 4473 [lt_cv_nm_interface="BSD nm" 4474 echo "int some_variable = 0;" > conftest.$ac_ext 4475 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) 4476 (eval "$ac_compile" 2>conftest.err) 4477 cat conftest.err >&AS_MESSAGE_LOG_FD 4478 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) 4479 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4480 cat conftest.err >&AS_MESSAGE_LOG_FD 4481 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) 4482 cat conftest.out >&AS_MESSAGE_LOG_FD 4483 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4484 lt_cv_nm_interface="MS dumpbin" 4485 fi 4486 rm -f conftest*]) 4487])# LT_PATH_NM 4488 4489# Old names: 4490AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) 4491AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) 4492dnl aclocal-1.4 backwards compatibility: 4493dnl AC_DEFUN([AM_PROG_NM], []) 4494dnl AC_DEFUN([AC_PROG_NM], []) 4495 4496# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 4497# -------------------------------- 4498# how to determine the name of the shared library 4499# associated with a specific link library. 4500# -- PORTME fill in with the dynamic library characteristics 4501m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], 4502[m4_require([_LT_DECL_EGREP]) 4503m4_require([_LT_DECL_OBJDUMP]) 4504m4_require([_LT_DECL_DLLTOOL]) 4505AC_CACHE_CHECK([how to associate runtime and link libraries], 4506lt_cv_sharedlib_from_linklib_cmd, 4507[lt_cv_sharedlib_from_linklib_cmd='unknown' 4508 4509case $host_os in 4510cygwin* | mingw* | pw32* | cegcc*) 4511 # two different shell functions defined in ltmain.sh; 4512 # decide which one to use based on capabilities of $DLLTOOL 4513 case `$DLLTOOL --help 2>&1` in 4514 *--identify-strict*) 4515 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 4516 ;; 4517 *) 4518 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 4519 ;; 4520 esac 4521 ;; 4522*) 4523 # fallback: assume linklib IS sharedlib 4524 lt_cv_sharedlib_from_linklib_cmd=$ECHO 4525 ;; 4526esac 4527]) 4528sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 4529test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 4530 4531_LT_DECL([], [sharedlib_from_linklib_cmd], [1], 4532 [Command to associate shared and link libraries]) 4533])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 4534 4535 4536# _LT_PATH_MANIFEST_TOOL 4537# ---------------------- 4538# locate the manifest tool 4539m4_defun([_LT_PATH_MANIFEST_TOOL], 4540[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) 4541test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 4542AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], 4543 [lt_cv_path_mainfest_tool=no 4544 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD 4545 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 4546 cat conftest.err >&AS_MESSAGE_LOG_FD 4547 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 4548 lt_cv_path_mainfest_tool=yes 4549 fi 4550 rm -f conftest*]) 4551if test yes != "$lt_cv_path_mainfest_tool"; then 4552 MANIFEST_TOOL=: 4553fi 4554_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl 4555])# _LT_PATH_MANIFEST_TOOL 4556 4557 4558# _LT_DLL_DEF_P([FILE]) 4559# --------------------- 4560# True iff FILE is a Windows DLL '.def' file. 4561# Keep in sync with func_dll_def_p in the libtool script 4562AC_DEFUN([_LT_DLL_DEF_P], 4563[dnl 4564 test DEF = "`$SED -n dnl 4565 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace 4566 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments 4567 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl 4568 -e q dnl Only consider the first "real" line 4569 $1`" dnl 4570])# _LT_DLL_DEF_P 4571 4572 4573# LT_LIB_M 4574# -------- 4575# check for math library 4576AC_DEFUN([LT_LIB_M], 4577[AC_REQUIRE([AC_CANONICAL_HOST])dnl 4578LIBM= 4579case $host in 4580*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 4581 # These system don't have libm, or don't need it 4582 ;; 4583*-ncr-sysv4.3*) 4584 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw) 4585 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 4586 ;; 4587*) 4588 AC_CHECK_LIB(m, cos, LIBM=-lm) 4589 ;; 4590esac 4591AC_SUBST([LIBM]) 4592])# LT_LIB_M 4593 4594# Old name: 4595AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) 4596dnl aclocal-1.4 backwards compatibility: 4597dnl AC_DEFUN([AC_CHECK_LIBM], []) 4598 4599 4600# _LT_COMPILER_NO_RTTI([TAGNAME]) 4601# ------------------------------- 4602m4_defun([_LT_COMPILER_NO_RTTI], 4603[m4_require([_LT_TAG_COMPILER])dnl 4604 4605_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 4606 4607if test yes = "$GCC"; then 4608 case $cc_basename in 4609 nvcc*) 4610 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; 4611 *) 4612 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; 4613 esac 4614 4615 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 4616 lt_cv_prog_compiler_rtti_exceptions, 4617 [-fno-rtti -fno-exceptions], [], 4618 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 4619fi 4620_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], 4621 [Compiler flag to turn off builtin functions]) 4622])# _LT_COMPILER_NO_RTTI 4623 4624 4625# _LT_CMD_GLOBAL_SYMBOLS 4626# ---------------------- 4627m4_defun([_LT_CMD_GLOBAL_SYMBOLS], 4628[AC_REQUIRE([AC_CANONICAL_HOST])dnl 4629AC_REQUIRE([AC_PROG_CC])dnl 4630AC_REQUIRE([AC_PROG_AWK])dnl 4631AC_REQUIRE([LT_PATH_NM])dnl 4632AC_REQUIRE([LT_PATH_LD])dnl 4633m4_require([_LT_DECL_SED])dnl 4634m4_require([_LT_DECL_EGREP])dnl 4635m4_require([_LT_TAG_COMPILER])dnl 4636 4637# Check for command to grab the raw symbol name followed by C symbol from nm. 4638AC_MSG_CHECKING([command to parse $NM output from $compiler object]) 4639AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 4640[ 4641# These are sane defaults that work on at least a few old systems. 4642# [They come from Ultrix. What could be older than Ultrix?!! ;)] 4643 4644# Character class describing NM global symbol codes. 4645symcode='[[BCDEGRST]]' 4646 4647# Regexp to match symbols that can be accessed directly from C. 4648sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 4649 4650# Define system-specific variables. 4651case $host_os in 4652aix*) 4653 symcode='[[BCDT]]' 4654 ;; 4655cygwin* | mingw* | pw32* | cegcc*) 4656 symcode='[[ABCDGISTW]]' 4657 ;; 4658hpux*) 4659 if test ia64 = "$host_cpu"; then 4660 symcode='[[ABCDEGRST]]' 4661 fi 4662 ;; 4663irix* | nonstopux*) 4664 symcode='[[BCDEGRST]]' 4665 ;; 4666osf*) 4667 symcode='[[BCDEGQRST]]' 4668 ;; 4669solaris*) 4670 symcode='[[BDRT]]' 4671 ;; 4672sco3.2v5*) 4673 symcode='[[DT]]' 4674 ;; 4675sysv4.2uw2*) 4676 symcode='[[DT]]' 4677 ;; 4678sysv5* | sco5v6* | unixware* | OpenUNIX*) 4679 symcode='[[ABDT]]' 4680 ;; 4681sysv4) 4682 symcode='[[DFNSTU]]' 4683 ;; 4684esac 4685 4686# If we're using GNU nm, then use its standard symbol codes. 4687case `$NM -V 2>&1` in 4688*GNU* | *'with BFD'*) 4689 symcode='[[ABCDGIRSTW]]' ;; 4690esac 4691 4692if test "$lt_cv_nm_interface" = "MS dumpbin"; then 4693 # Gets list of data symbols to import. 4694 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 4695 # Adjust the below global symbol transforms to fixup imported variables. 4696 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 4697 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 4698 lt_c_name_lib_hook="\ 4699 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 4700 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 4701else 4702 # Disable hooks by default. 4703 lt_cv_sys_global_symbol_to_import= 4704 lt_cdecl_hook= 4705 lt_c_name_hook= 4706 lt_c_name_lib_hook= 4707fi 4708 4709# Transform an extracted symbol line into a proper C declaration. 4710# Some systems (esp. on ia64) link data and code symbols differently, 4711# so use this general approach. 4712lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 4713$lt_cdecl_hook\ 4714" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 4715" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 4716 4717# Transform an extracted symbol line into symbol name and symbol address 4718lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 4719$lt_c_name_hook\ 4720" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 4721" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 4722 4723# Transform an extracted symbol line into symbol name with lib prefix and 4724# symbol address. 4725lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 4726$lt_c_name_lib_hook\ 4727" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 4728" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 4729" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 4730 4731# Handle CRLF in mingw tool chain 4732opt_cr= 4733case $build_os in 4734mingw*) 4735 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 4736 ;; 4737esac 4738 4739# Try without a prefix underscore, then with it. 4740for ac_symprfx in "" "_"; do 4741 4742 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 4743 symxfrm="\\1 $ac_symprfx\\2 \\2" 4744 4745 # Write the raw and C identifiers. 4746 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 4747 # Fake it for dumpbin and say T for any non-static function, 4748 # D for any global variable and I for any imported variable. 4749 # Also find C++ and __fastcall symbols from MSVC++, 4750 # which start with @ or ?. 4751 lt_cv_sys_global_symbol_pipe="$AWK ['"\ 4752" {last_section=section; section=\$ 3};"\ 4753" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 4754" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 4755" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 4756" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 4757" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 4758" \$ 0!~/External *\|/{next};"\ 4759" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 4760" {if(hide[section]) next};"\ 4761" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 4762" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 4763" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 4764" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 4765" ' prfx=^$ac_symprfx]" 4766 else 4767 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 4768 fi 4769 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 4770 4771 # Check to see that the pipe works correctly. 4772 pipe_works=no 4773 4774 rm -f conftest* 4775 cat > conftest.$ac_ext <<_LT_EOF 4776#ifdef __cplusplus 4777extern "C" { 4778#endif 4779char nm_test_var; 4780void nm_test_func(void); 4781void nm_test_func(void){} 4782#ifdef __cplusplus 4783} 4784#endif 4785int main(){nm_test_var='a';nm_test_func();return(0);} 4786_LT_EOF 4787 4788 if AC_TRY_EVAL(ac_compile); then 4789 # Now try to grab the symbols. 4790 nlist=conftest.nm 4791 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then 4792 # Try sorting and uniquifying the output. 4793 if sort "$nlist" | uniq > "$nlist"T; then 4794 mv -f "$nlist"T "$nlist" 4795 else 4796 rm -f "$nlist"T 4797 fi 4798 4799 # Make sure that we snagged all the symbols we need. 4800 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 4801 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 4802 cat <<_LT_EOF > conftest.$ac_ext 4803/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 4804#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 4805/* DATA imports from DLLs on WIN32 can't be const, because runtime 4806 relocations are performed -- see ld's documentation on pseudo-relocs. */ 4807# define LT@&t@_DLSYM_CONST 4808#elif defined __osf__ 4809/* This system does not cope well with relocations in const data. */ 4810# define LT@&t@_DLSYM_CONST 4811#else 4812# define LT@&t@_DLSYM_CONST const 4813#endif 4814 4815#ifdef __cplusplus 4816extern "C" { 4817#endif 4818 4819_LT_EOF 4820 # Now generate the symbol file. 4821 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 4822 4823 cat <<_LT_EOF >> conftest.$ac_ext 4824 4825/* The mapping between symbol names and symbols. */ 4826LT@&t@_DLSYM_CONST struct { 4827 const char *name; 4828 void *address; 4829} 4830lt__PROGRAM__LTX_preloaded_symbols[[]] = 4831{ 4832 { "@PROGRAM@", (void *) 0 }, 4833_LT_EOF 4834 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 4835 cat <<\_LT_EOF >> conftest.$ac_ext 4836 {0, (void *) 0} 4837}; 4838 4839/* This works around a problem in FreeBSD linker */ 4840#ifdef FREEBSD_WORKAROUND 4841static const void *lt_preloaded_setup() { 4842 return lt__PROGRAM__LTX_preloaded_symbols; 4843} 4844#endif 4845 4846#ifdef __cplusplus 4847} 4848#endif 4849_LT_EOF 4850 # Now try linking the two files. 4851 mv conftest.$ac_objext conftstm.$ac_objext 4852 lt_globsym_save_LIBS=$LIBS 4853 lt_globsym_save_CFLAGS=$CFLAGS 4854 LIBS=conftstm.$ac_objext 4855 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 4856 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then 4857 pipe_works=yes 4858 fi 4859 LIBS=$lt_globsym_save_LIBS 4860 CFLAGS=$lt_globsym_save_CFLAGS 4861 else 4862 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 4863 fi 4864 else 4865 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 4866 fi 4867 else 4868 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 4869 fi 4870 else 4871 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 4872 cat conftest.$ac_ext >&5 4873 fi 4874 rm -rf conftest* conftst* 4875 4876 # Do not use the global_symbol_pipe unless it works. 4877 if test yes = "$pipe_works"; then 4878 break 4879 else 4880 lt_cv_sys_global_symbol_pipe= 4881 fi 4882done 4883]) 4884if test -z "$lt_cv_sys_global_symbol_pipe"; then 4885 lt_cv_sys_global_symbol_to_cdecl= 4886fi 4887if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 4888 AC_MSG_RESULT(failed) 4889else 4890 AC_MSG_RESULT(ok) 4891fi 4892 4893# Response file support. 4894if test "$lt_cv_nm_interface" = "MS dumpbin"; then 4895 nm_file_list_spec='@' 4896elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then 4897 nm_file_list_spec='@' 4898fi 4899 4900_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], 4901 [Take the output of nm and produce a listing of raw symbols and C names]) 4902_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 4903 [Transform the output of nm in a proper C declaration]) 4904_LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1], 4905 [Transform the output of nm into a list of symbols to manually relocate]) 4906_LT_DECL([global_symbol_to_c_name_address], 4907 [lt_cv_sys_global_symbol_to_c_name_address], [1], 4908 [Transform the output of nm in a C name address pair]) 4909_LT_DECL([global_symbol_to_c_name_address_lib_prefix], 4910 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 4911 [Transform the output of nm in a C name address pair when lib prefix is needed]) 4912_LT_DECL([nm_interface], [lt_cv_nm_interface], [1], 4913 [The name lister interface]) 4914_LT_DECL([], [nm_file_list_spec], [1], 4915 [Specify filename containing input files for $NM]) 4916]) # _LT_CMD_GLOBAL_SYMBOLS 4917 4918 4919# _LT_COMPILER_PIC([TAGNAME]) 4920# --------------------------- 4921m4_defun([_LT_COMPILER_PIC], 4922[m4_require([_LT_TAG_COMPILER])dnl 4923_LT_TAGVAR(lt_prog_compiler_wl, $1)= 4924_LT_TAGVAR(lt_prog_compiler_pic, $1)= 4925_LT_TAGVAR(lt_prog_compiler_static, $1)= 4926 4927m4_if([$1], [CXX], [ 4928 # C++ specific cases for pic, static, wl, etc. 4929 if test yes = "$GXX"; then 4930 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4931 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4932 4933 case $host_os in 4934 aix*) 4935 # All AIX code is PIC. 4936 if test ia64 = "$host_cpu"; then 4937 # AIX 5 now supports IA64 processor 4938 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4939 fi 4940 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4941 ;; 4942 4943 amigaos*) 4944 case $host_cpu in 4945 powerpc) 4946 # see comment about AmigaOS4 .so support 4947 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4948 ;; 4949 m68k) 4950 # FIXME: we need at least 68020 code to build shared libraries, but 4951 # adding the '-m68020' flag to GCC prevents building anything better, 4952 # like '-m68040'. 4953 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 4954 ;; 4955 esac 4956 ;; 4957 4958 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 4959 # PIC is the default for these OSes. 4960 ;; 4961 mingw* | cygwin* | os2* | pw32* | cegcc*) 4962 # This hack is so that the source file can tell whether it is being 4963 # built for inclusion in a dll (and should export symbols for example). 4964 # Although the cygwin gcc ignores -fPIC, still need this for old-style 4965 # (--disable-auto-import) libraries 4966 m4_if([$1], [GCJ], [], 4967 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 4968 case $host_os in 4969 os2*) 4970 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 4971 ;; 4972 esac 4973 ;; 4974 darwin* | rhapsody*) 4975 # PIC is the default on this platform 4976 # Common symbols not allowed in MH_DYLIB files 4977 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 4978 ;; 4979 *djgpp*) 4980 # DJGPP does not support shared libraries at all 4981 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 4982 ;; 4983 haiku*) 4984 # PIC is the default for Haiku. 4985 # The "-static" flag exists, but is broken. 4986 _LT_TAGVAR(lt_prog_compiler_static, $1)= 4987 ;; 4988 interix[[3-9]]*) 4989 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 4990 # Instead, we relocate shared libraries at runtime. 4991 ;; 4992 sysv4*MP*) 4993 if test -d /usr/nec; then 4994 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 4995 fi 4996 ;; 4997 hpux*) 4998 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 4999 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 5000 # sets the default TLS model and affects inlining. 5001 case $host_cpu in 5002 hppa*64*) 5003 ;; 5004 *) 5005 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5006 ;; 5007 esac 5008 ;; 5009 *qnx* | *nto*) 5010 # QNX uses GNU C++, but need to define -shared option too, otherwise 5011 # it will coredump. 5012 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 5013 ;; 5014 *) 5015 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5016 ;; 5017 esac 5018 else 5019 case $host_os in 5020 aix[[4-9]]*) 5021 # All AIX code is PIC. 5022 if test ia64 = "$host_cpu"; then 5023 # AIX 5 now supports IA64 processor 5024 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5025 else 5026 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 5027 fi 5028 ;; 5029 chorus*) 5030 case $cc_basename in 5031 cxch68*) 5032 # Green Hills C++ Compiler 5033 # _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" 5034 ;; 5035 esac 5036 ;; 5037 mingw* | cygwin* | os2* | pw32* | cegcc*) 5038 # This hack is so that the source file can tell whether it is being 5039 # built for inclusion in a dll (and should export symbols for example). 5040 m4_if([$1], [GCJ], [], 5041 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 5042 ;; 5043 dgux*) 5044 case $cc_basename in 5045 ec++*) 5046 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5047 ;; 5048 ghcx*) 5049 # Green Hills C++ Compiler 5050 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5051 ;; 5052 *) 5053 ;; 5054 esac 5055 ;; 5056 freebsd* | dragonfly*) 5057 # FreeBSD uses GNU C++ 5058 ;; 5059 hpux9* | hpux10* | hpux11*) 5060 case $cc_basename in 5061 CC*) 5062 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5063 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 5064 if test ia64 != "$host_cpu"; then 5065 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5066 fi 5067 ;; 5068 aCC*) 5069 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5070 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 5071 case $host_cpu in 5072 hppa*64*|ia64*) 5073 # +Z the default 5074 ;; 5075 *) 5076 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5077 ;; 5078 esac 5079 ;; 5080 *) 5081 ;; 5082 esac 5083 ;; 5084 interix*) 5085 # This is c89, which is MS Visual C++ (no shared libs) 5086 # Anyone wants to do a port? 5087 ;; 5088 irix5* | irix6* | nonstopux*) 5089 case $cc_basename in 5090 CC*) 5091 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5092 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5093 # CC pic flag -KPIC is the default. 5094 ;; 5095 *) 5096 ;; 5097 esac 5098 ;; 5099 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5100 case $cc_basename in 5101 KCC*) 5102 # KAI C++ Compiler 5103 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 5104 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5105 ;; 5106 ecpc* ) 5107 # old Intel C++ for x86_64, which still supported -KPIC. 5108 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5109 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5110 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5111 ;; 5112 icpc* ) 5113 # Intel C++, used to be incompatible with GCC. 5114 # ICC 10 doesn't accept -KPIC any more. 5115 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5116 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5117 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5118 ;; 5119 pgCC* | pgcpp*) 5120 # Portland Group C++ compiler 5121 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5122 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 5123 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5124 ;; 5125 cxx*) 5126 # Compaq C++ 5127 # Make sure the PIC flag is empty. It appears that all Alpha 5128 # Linux and Compaq Tru64 Unix objects are PIC. 5129 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 5130 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5131 ;; 5132 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) 5133 # IBM XL 8.0, 9.0 on PPC and BlueGene 5134 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5135 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 5136 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 5137 ;; 5138 *) 5139 case `$CC -V 2>&1 | sed 5q` in 5140 *Sun\ C*) 5141 # Sun C++ 5.9 5142 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5143 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5144 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5145 ;; 5146 esac 5147 ;; 5148 esac 5149 ;; 5150 lynxos*) 5151 ;; 5152 m88k*) 5153 ;; 5154 mvs*) 5155 case $cc_basename in 5156 cxx*) 5157 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 5158 ;; 5159 *) 5160 ;; 5161 esac 5162 ;; 5163 netbsd* | netbsdelf*-gnu) 5164 ;; 5165 *qnx* | *nto*) 5166 # QNX uses GNU C++, but need to define -shared option too, otherwise 5167 # it will coredump. 5168 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 5169 ;; 5170 osf3* | osf4* | osf5*) 5171 case $cc_basename in 5172 KCC*) 5173 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 5174 ;; 5175 RCC*) 5176 # Rational C++ 2.4.1 5177 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5178 ;; 5179 cxx*) 5180 # Digital/Compaq C++ 5181 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5182 # Make sure the PIC flag is empty. It appears that all Alpha 5183 # Linux and Compaq Tru64 Unix objects are PIC. 5184 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 5185 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5186 ;; 5187 *) 5188 ;; 5189 esac 5190 ;; 5191 psos*) 5192 ;; 5193 solaris*) 5194 case $cc_basename in 5195 CC* | sunCC*) 5196 # Sun C++ 4.2, 5.x and Centerline C++ 5197 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5198 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5199 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5200 ;; 5201 gcx*) 5202 # Green Hills C++ Compiler 5203 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 5204 ;; 5205 *) 5206 ;; 5207 esac 5208 ;; 5209 sunos4*) 5210 case $cc_basename in 5211 CC*) 5212 # Sun C++ 4.x 5213 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5214 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5215 ;; 5216 lcc*) 5217 # Lucid 5218 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5219 ;; 5220 *) 5221 ;; 5222 esac 5223 ;; 5224 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 5225 case $cc_basename in 5226 CC*) 5227 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5228 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5229 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5230 ;; 5231 esac 5232 ;; 5233 tandem*) 5234 case $cc_basename in 5235 NCC*) 5236 # NonStop-UX NCC 3.20 5237 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5238 ;; 5239 *) 5240 ;; 5241 esac 5242 ;; 5243 vxworks*) 5244 ;; 5245 *) 5246 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5247 ;; 5248 esac 5249 fi 5250], 5251[ 5252 if test yes = "$GCC"; then 5253 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5254 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5255 5256 case $host_os in 5257 aix*) 5258 # All AIX code is PIC. 5259 if test ia64 = "$host_cpu"; then 5260 # AIX 5 now supports IA64 processor 5261 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5262 fi 5263 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5264 ;; 5265 5266 amigaos*) 5267 case $host_cpu in 5268 powerpc) 5269 # see comment about AmigaOS4 .so support 5270 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5271 ;; 5272 m68k) 5273 # FIXME: we need at least 68020 code to build shared libraries, but 5274 # adding the '-m68020' flag to GCC prevents building anything better, 5275 # like '-m68040'. 5276 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 5277 ;; 5278 esac 5279 ;; 5280 5281 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 5282 # PIC is the default for these OSes. 5283 ;; 5284 5285 mingw* | cygwin* | pw32* | os2* | cegcc*) 5286 # This hack is so that the source file can tell whether it is being 5287 # built for inclusion in a dll (and should export symbols for example). 5288 # Although the cygwin gcc ignores -fPIC, still need this for old-style 5289 # (--disable-auto-import) libraries 5290 m4_if([$1], [GCJ], [], 5291 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 5292 case $host_os in 5293 os2*) 5294 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 5295 ;; 5296 esac 5297 ;; 5298 5299 darwin* | rhapsody*) 5300 # PIC is the default on this platform 5301 # Common symbols not allowed in MH_DYLIB files 5302 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 5303 ;; 5304 5305 haiku*) 5306 # PIC is the default for Haiku. 5307 # The "-static" flag exists, but is broken. 5308 _LT_TAGVAR(lt_prog_compiler_static, $1)= 5309 ;; 5310 5311 hpux*) 5312 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 5313 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 5314 # sets the default TLS model and affects inlining. 5315 case $host_cpu in 5316 hppa*64*) 5317 # +Z the default 5318 ;; 5319 *) 5320 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5321 ;; 5322 esac 5323 ;; 5324 5325 interix[[3-9]]*) 5326 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 5327 # Instead, we relocate shared libraries at runtime. 5328 ;; 5329 5330 msdosdjgpp*) 5331 # Just because we use GCC doesn't mean we suddenly get shared libraries 5332 # on systems that don't support them. 5333 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5334 enable_shared=no 5335 ;; 5336 5337 *nto* | *qnx*) 5338 # QNX uses GNU C++, but need to define -shared option too, otherwise 5339 # it will coredump. 5340 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 5341 ;; 5342 5343 sysv4*MP*) 5344 if test -d /usr/nec; then 5345 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 5346 fi 5347 ;; 5348 5349 *) 5350 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5351 ;; 5352 esac 5353 5354 case $cc_basename in 5355 nvcc*) # Cuda Compiler Driver 2.2 5356 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' 5357 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 5358 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" 5359 fi 5360 ;; 5361 esac 5362 else 5363 # PORTME Check for flag to pass linker flags through the system compiler. 5364 case $host_os in 5365 aix*) 5366 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5367 if test ia64 = "$host_cpu"; then 5368 # AIX 5 now supports IA64 processor 5369 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5370 else 5371 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 5372 fi 5373 ;; 5374 5375 darwin* | rhapsody*) 5376 # PIC is the default on this platform 5377 # Common symbols not allowed in MH_DYLIB files 5378 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 5379 case $cc_basename in 5380 nagfor*) 5381 # NAG Fortran compiler 5382 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' 5383 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 5384 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5385 ;; 5386 esac 5387 ;; 5388 5389 mingw* | cygwin* | pw32* | os2* | cegcc*) 5390 # This hack is so that the source file can tell whether it is being 5391 # built for inclusion in a dll (and should export symbols for example). 5392 m4_if([$1], [GCJ], [], 5393 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 5394 case $host_os in 5395 os2*) 5396 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 5397 ;; 5398 esac 5399 ;; 5400 5401 hpux9* | hpux10* | hpux11*) 5402 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5403 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5404 # not for PA HP-UX. 5405 case $host_cpu in 5406 hppa*64*|ia64*) 5407 # +Z the default 5408 ;; 5409 *) 5410 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5411 ;; 5412 esac 5413 # Is there a better lt_prog_compiler_static that works with the bundled CC? 5414 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 5415 ;; 5416 5417 irix5* | irix6* | nonstopux*) 5418 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5419 # PIC (with -KPIC) is the default. 5420 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5421 ;; 5422 5423 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5424 case $cc_basename in 5425 # old Intel for x86_64, which still supported -KPIC. 5426 ecc*) 5427 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5428 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5429 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5430 ;; 5431 # icc used to be incompatible with GCC. 5432 # ICC 10 doesn't accept -KPIC any more. 5433 icc* | ifort*) 5434 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5435 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5436 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5437 ;; 5438 # Lahey Fortran 8.1. 5439 lf95*) 5440 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5441 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' 5442 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 5443 ;; 5444 nagfor*) 5445 # NAG Fortran compiler 5446 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' 5447 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 5448 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5449 ;; 5450 tcc*) 5451 # Fabrice Bellard et al's Tiny C Compiler 5452 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5453 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5454 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5455 ;; 5456 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 5457 # Portland Group compilers (*not* the Pentium gcc compiler, 5458 # which looks to be a dead project) 5459 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5460 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 5461 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5462 ;; 5463 ccc*) 5464 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5465 # All Alpha code is PIC. 5466 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5467 ;; 5468 xl* | bgxl* | bgf* | mpixl*) 5469 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 5470 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5471 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 5472 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 5473 ;; 5474 *) 5475 case `$CC -V 2>&1 | sed 5q` in 5476 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) 5477 # Sun Fortran 8.3 passes all unrecognized flags to the linker 5478 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5479 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5480 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' 5481 ;; 5482 *Sun\ F* | *Sun*Fortran*) 5483 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5484 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5485 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5486 ;; 5487 *Sun\ C*) 5488 # Sun C 5.9 5489 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5490 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5491 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5492 ;; 5493 *Intel*\ [[CF]]*Compiler*) 5494 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5495 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5496 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5497 ;; 5498 *Portland\ Group*) 5499 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5500 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 5501 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5502 ;; 5503 esac 5504 ;; 5505 esac 5506 ;; 5507 5508 newsos6) 5509 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5510 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5511 ;; 5512 5513 *nto* | *qnx*) 5514 # QNX uses GNU C++, but need to define -shared option too, otherwise 5515 # it will coredump. 5516 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 5517 ;; 5518 5519 osf3* | osf4* | osf5*) 5520 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5521 # All OSF/1 code is PIC. 5522 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5523 ;; 5524 5525 rdos*) 5526 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5527 ;; 5528 5529 solaris*) 5530 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5531 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5532 case $cc_basename in 5533 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 5534 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 5535 *) 5536 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 5537 esac 5538 ;; 5539 5540 sunos4*) 5541 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5542 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 5543 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5544 ;; 5545 5546 sysv4 | sysv4.2uw2* | sysv4.3*) 5547 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5548 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5549 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5550 ;; 5551 5552 sysv4*MP*) 5553 if test -d /usr/nec; then 5554 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 5555 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5556 fi 5557 ;; 5558 5559 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 5560 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5561 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5562 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5563 ;; 5564 5565 unicos*) 5566 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5567 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5568 ;; 5569 5570 uts4*) 5571 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5572 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5573 ;; 5574 5575 *) 5576 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5577 ;; 5578 esac 5579 fi 5580]) 5581case $host_os in 5582 # For platforms that do not support PIC, -DPIC is meaningless: 5583 *djgpp*) 5584 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 5585 ;; 5586 *) 5587 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" 5588 ;; 5589esac 5590 5591AC_CACHE_CHECK([for $compiler option to produce PIC], 5592 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], 5593 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) 5594_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) 5595 5596# 5597# Check to make sure the PIC flag actually works. 5598# 5599if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 5600 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], 5601 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], 5602 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], 5603 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in 5604 "" | " "*) ;; 5605 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; 5606 esac], 5607 [_LT_TAGVAR(lt_prog_compiler_pic, $1)= 5608 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 5609fi 5610_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], 5611 [Additional compiler flags for building library objects]) 5612 5613_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], 5614 [How to pass a linker flag through the compiler]) 5615# 5616# Check to make sure the static flag actually works. 5617# 5618wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" 5619_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 5620 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), 5621 $lt_tmp_static_flag, 5622 [], 5623 [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) 5624_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], 5625 [Compiler flag to prevent dynamic linking]) 5626])# _LT_COMPILER_PIC 5627 5628 5629# _LT_LINKER_SHLIBS([TAGNAME]) 5630# ---------------------------- 5631# See if the linker supports building shared libraries. 5632m4_defun([_LT_LINKER_SHLIBS], 5633[AC_REQUIRE([LT_PATH_LD])dnl 5634AC_REQUIRE([LT_PATH_NM])dnl 5635m4_require([_LT_PATH_MANIFEST_TOOL])dnl 5636m4_require([_LT_FILEUTILS_DEFAULTS])dnl 5637m4_require([_LT_DECL_EGREP])dnl 5638m4_require([_LT_DECL_SED])dnl 5639m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 5640m4_require([_LT_TAG_COMPILER])dnl 5641AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 5642m4_if([$1], [CXX], [ 5643 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5644 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 5645 case $host_os in 5646 aix[[4-9]]*) 5647 # If we're using GNU nm, then we don't want the "-C" option. 5648 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 5649 # Without the "-l" option, or with the "-B" option, AIX nm treats 5650 # weak defined symbols like other global defined symbols, whereas 5651 # GNU nm marks them as "W". 5652 # While the 'weak' keyword is ignored in the Export File, we need 5653 # it in the Import File for the 'aix-soname' feature, so we have 5654 # to replace the "-B" option with "-P" for AIX nm. 5655 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 5656 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 5657 else 5658 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 5659 fi 5660 ;; 5661 pw32*) 5662 _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds 5663 ;; 5664 cygwin* | mingw* | cegcc*) 5665 case $cc_basename in 5666 cl*) 5667 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 5668 ;; 5669 *) 5670 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' 5671 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 5672 ;; 5673 esac 5674 ;; 5675 linux* | k*bsd*-gnu | gnu*) 5676 _LT_TAGVAR(link_all_deplibs, $1)=no 5677 ;; 5678 *) 5679 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5680 ;; 5681 esac 5682], [ 5683 runpath_var= 5684 _LT_TAGVAR(allow_undefined_flag, $1)= 5685 _LT_TAGVAR(always_export_symbols, $1)=no 5686 _LT_TAGVAR(archive_cmds, $1)= 5687 _LT_TAGVAR(archive_expsym_cmds, $1)= 5688 _LT_TAGVAR(compiler_needs_object, $1)=no 5689 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 5690 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 5691 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5692 _LT_TAGVAR(hardcode_automatic, $1)=no 5693 _LT_TAGVAR(hardcode_direct, $1)=no 5694 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 5695 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 5696 _LT_TAGVAR(hardcode_libdir_separator, $1)= 5697 _LT_TAGVAR(hardcode_minus_L, $1)=no 5698 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 5699 _LT_TAGVAR(inherit_rpath, $1)=no 5700 _LT_TAGVAR(link_all_deplibs, $1)=unknown 5701 _LT_TAGVAR(module_cmds, $1)= 5702 _LT_TAGVAR(module_expsym_cmds, $1)= 5703 _LT_TAGVAR(old_archive_from_new_cmds, $1)= 5704 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= 5705 _LT_TAGVAR(thread_safe_flag_spec, $1)= 5706 _LT_TAGVAR(whole_archive_flag_spec, $1)= 5707 # include_expsyms should be a list of space-separated symbols to be *always* 5708 # included in the symbol list 5709 _LT_TAGVAR(include_expsyms, $1)= 5710 # exclude_expsyms can be an extended regexp of symbols to exclude 5711 # it will be wrapped by ' (' and ')$', so one must not match beginning or 5712 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 5713 # as well as any symbol that contains 'd'. 5714 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 5715 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 5716 # platforms (ab)use it in PIC code, but their linkers get confused if 5717 # the symbol is explicitly referenced. Since portable code cannot 5718 # rely on this symbol name, it's probably fine to never include it in 5719 # preloaded symbol tables. 5720 # Exclude shared library initialization/finalization symbols. 5721dnl Note also adjust exclude_expsyms for C++ above. 5722 extract_expsyms_cmds= 5723 5724 case $host_os in 5725 cygwin* | mingw* | pw32* | cegcc*) 5726 # FIXME: the MSVC++ port hasn't been tested in a loooong time 5727 # When not using gcc, we currently assume that we are using 5728 # Microsoft Visual C++. 5729 if test yes != "$GCC"; then 5730 with_gnu_ld=no 5731 fi 5732 ;; 5733 interix*) 5734 # we just hope/assume this is gcc and not c89 (= MSVC++) 5735 with_gnu_ld=yes 5736 ;; 5737 openbsd* | bitrig*) 5738 with_gnu_ld=no 5739 ;; 5740 linux* | k*bsd*-gnu | gnu*) 5741 _LT_TAGVAR(link_all_deplibs, $1)=no 5742 ;; 5743 esac 5744 5745 _LT_TAGVAR(ld_shlibs, $1)=yes 5746 5747 # On some targets, GNU ld is compatible enough with the native linker 5748 # that we're better off using the native interface for both. 5749 lt_use_gnu_ld_interface=no 5750 if test yes = "$with_gnu_ld"; then 5751 case $host_os in 5752 aix*) 5753 # The AIX port of GNU ld has always aspired to compatibility 5754 # with the native linker. However, as the warning in the GNU ld 5755 # block says, versions before 2.19.5* couldn't really create working 5756 # shared libraries, regardless of the interface used. 5757 case `$LD -v 2>&1` in 5758 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 5759 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; 5760 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; 5761 *) 5762 lt_use_gnu_ld_interface=yes 5763 ;; 5764 esac 5765 ;; 5766 *) 5767 lt_use_gnu_ld_interface=yes 5768 ;; 5769 esac 5770 fi 5771 5772 if test yes = "$lt_use_gnu_ld_interface"; then 5773 # If archive_cmds runs LD, not CC, wlarc should be empty 5774 wlarc='$wl' 5775 5776 # Set some defaults for GNU ld with shared library support. These 5777 # are reset later if shared libraries are not supported. Putting them 5778 # here allows them to be overridden if necessary. 5779 runpath_var=LD_RUN_PATH 5780 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5781 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 5782 # ancient GNU ld didn't support --whole-archive et. al. 5783 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 5784 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 5785 else 5786 _LT_TAGVAR(whole_archive_flag_spec, $1)= 5787 fi 5788 supports_anon_versioning=no 5789 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 5790 *GNU\ gold*) supports_anon_versioning=yes ;; 5791 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 5792 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 5793 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 5794 *\ 2.11.*) ;; # other 2.11 versions 5795 *) supports_anon_versioning=yes ;; 5796 esac 5797 5798 # See if GNU ld supports shared libraries. 5799 case $host_os in 5800 aix[[3-9]]*) 5801 # On AIX/PPC, the GNU linker is very broken 5802 if test ia64 != "$host_cpu"; then 5803 _LT_TAGVAR(ld_shlibs, $1)=no 5804 cat <<_LT_EOF 1>&2 5805 5806*** Warning: the GNU linker, at least up to release 2.19, is reported 5807*** to be unable to reliably create shared libraries on AIX. 5808*** Therefore, libtool is disabling shared libraries support. If you 5809*** really care for shared libraries, you may want to install binutils 5810*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 5811*** You will then need to restart the configuration process. 5812 5813_LT_EOF 5814 fi 5815 ;; 5816 5817 amigaos*) 5818 case $host_cpu in 5819 powerpc) 5820 # see comment about AmigaOS4 .so support 5821 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5822 _LT_TAGVAR(archive_expsym_cmds, $1)='' 5823 ;; 5824 m68k) 5825 _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)' 5826 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5827 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5828 ;; 5829 esac 5830 ;; 5831 5832 beos*) 5833 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 5834 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5835 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 5836 # support --undefined. This deserves some investigation. FIXME 5837 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5838 else 5839 _LT_TAGVAR(ld_shlibs, $1)=no 5840 fi 5841 ;; 5842 5843 cygwin* | mingw* | pw32* | cegcc*) 5844 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 5845 # as there is no search path for DLLs. 5846 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5847 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' 5848 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5849 _LT_TAGVAR(always_export_symbols, $1)=no 5850 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5851 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' 5852 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 5853 5854 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 5855 _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' 5856 # If the export-symbols file already is a .def file, use it as 5857 # is; otherwise, prepend EXPORTS... 5858 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 5859 cp $export_symbols $output_objdir/$soname.def; 5860 else 5861 echo EXPORTS > $output_objdir/$soname.def; 5862 cat $export_symbols >> $output_objdir/$soname.def; 5863 fi~ 5864 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 5865 else 5866 _LT_TAGVAR(ld_shlibs, $1)=no 5867 fi 5868 ;; 5869 5870 haiku*) 5871 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5872 _LT_TAGVAR(link_all_deplibs, $1)=yes 5873 ;; 5874 5875 os2*) 5876 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5877 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5878 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5879 shrext_cmds=.dll 5880 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 5881 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 5882 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 5883 $ECHO EXPORTS >> $output_objdir/$libname.def~ 5884 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 5885 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 5886 emximp -o $lib $output_objdir/$libname.def' 5887 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 5888 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 5889 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 5890 $ECHO EXPORTS >> $output_objdir/$libname.def~ 5891 prefix_cmds="$SED"~ 5892 if test EXPORTS = "`$SED 1q $export_symbols`"; then 5893 prefix_cmds="$prefix_cmds -e 1d"; 5894 fi~ 5895 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 5896 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 5897 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 5898 emximp -o $lib $output_objdir/$libname.def' 5899 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 5900 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5901 ;; 5902 5903 interix[[3-9]]*) 5904 _LT_TAGVAR(hardcode_direct, $1)=no 5905 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5906 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 5907 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 5908 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 5909 # Instead, shared libraries are loaded at an image base (0x10000000 by 5910 # default) and relocated if they conflict, which is a slow very memory 5911 # consuming and fragmenting process. To avoid this, we pick a random, 5912 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 5913 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 5914 _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' 5915 _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' 5916 ;; 5917 5918 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 5919 tmp_diet=no 5920 if test linux-dietlibc = "$host_os"; then 5921 case $cc_basename in 5922 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 5923 esac 5924 fi 5925 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 5926 && test no = "$tmp_diet" 5927 then 5928 tmp_addflag=' $pic_flag' 5929 tmp_sharedflag='-shared' 5930 case $cc_basename,$host_cpu in 5931 pgcc*) # Portland Group C compiler 5932 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 5933 tmp_addflag=' $pic_flag' 5934 ;; 5935 pgf77* | pgf90* | pgf95* | pgfortran*) 5936 # Portland Group f77 and f90 compilers 5937 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 5938 tmp_addflag=' $pic_flag -Mnomain' ;; 5939 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 5940 tmp_addflag=' -i_dynamic' ;; 5941 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 5942 tmp_addflag=' -i_dynamic -nofor_main' ;; 5943 ifc* | ifort*) # Intel Fortran compiler 5944 tmp_addflag=' -nofor_main' ;; 5945 lf95*) # Lahey Fortran 8.1 5946 _LT_TAGVAR(whole_archive_flag_spec, $1)= 5947 tmp_sharedflag='--shared' ;; 5948 nagfor*) # NAGFOR 5.3 5949 tmp_sharedflag='-Wl,-shared' ;; 5950 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 5951 tmp_sharedflag='-qmkshrobj' 5952 tmp_addflag= ;; 5953 nvcc*) # Cuda Compiler Driver 2.2 5954 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 5955 _LT_TAGVAR(compiler_needs_object, $1)=yes 5956 ;; 5957 esac 5958 case `$CC -V 2>&1 | sed 5q` in 5959 *Sun\ C*) # Sun C 5.9 5960 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 5961 _LT_TAGVAR(compiler_needs_object, $1)=yes 5962 tmp_sharedflag='-G' ;; 5963 *Sun\ F*) # Sun Fortran 8.3 5964 tmp_sharedflag='-G' ;; 5965 esac 5966 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5967 5968 if test yes = "$supports_anon_versioning"; then 5969 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 5970 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 5971 echo "local: *; };" >> $output_objdir/$libname.ver~ 5972 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 5973 fi 5974 5975 case $cc_basename in 5976 tcc*) 5977 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic' 5978 ;; 5979 xlf* | bgf* | bgxlf* | mpixlf*) 5980 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 5981 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' 5982 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5983 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 5984 if test yes = "$supports_anon_versioning"; then 5985 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 5986 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 5987 echo "local: *; };" >> $output_objdir/$libname.ver~ 5988 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 5989 fi 5990 ;; 5991 esac 5992 else 5993 _LT_TAGVAR(ld_shlibs, $1)=no 5994 fi 5995 ;; 5996 5997 netbsd* | netbsdelf*-gnu) 5998 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 5999 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6000 wlarc= 6001 else 6002 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 6003 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 6004 fi 6005 ;; 6006 6007 solaris*) 6008 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 6009 _LT_TAGVAR(ld_shlibs, $1)=no 6010 cat <<_LT_EOF 1>&2 6011 6012*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6013*** create shared libraries on Solaris systems. Therefore, libtool 6014*** is disabling shared libraries support. We urge you to upgrade GNU 6015*** binutils to release 2.9.1 or newer. Another option is to modify 6016*** your PATH or compiler configuration so that the native linker is 6017*** used, and then restart. 6018 6019_LT_EOF 6020 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6021 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 6022 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 6023 else 6024 _LT_TAGVAR(ld_shlibs, $1)=no 6025 fi 6026 ;; 6027 6028 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 6029 case `$LD -v 2>&1` in 6030 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 6031 _LT_TAGVAR(ld_shlibs, $1)=no 6032 cat <<_LT_EOF 1>&2 6033 6034*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 6035*** reliably create shared libraries on SCO systems. Therefore, libtool 6036*** is disabling shared libraries support. We urge you to upgrade GNU 6037*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 6038*** your PATH or compiler configuration so that the native linker is 6039*** used, and then restart. 6040 6041_LT_EOF 6042 ;; 6043 *) 6044 # For security reasons, it is highly recommended that you always 6045 # use absolute paths for naming shared libraries, and exclude the 6046 # DT_RUNPATH tag from executables and libraries. But doing so 6047 # requires that you compile everything twice, which is a pain. 6048 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6049 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 6050 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 6051 _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' 6052 else 6053 _LT_TAGVAR(ld_shlibs, $1)=no 6054 fi 6055 ;; 6056 esac 6057 ;; 6058 6059 sunos4*) 6060 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6061 wlarc= 6062 _LT_TAGVAR(hardcode_direct, $1)=yes 6063 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6064 ;; 6065 6066 *) 6067 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6068 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 6069 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 6070 else 6071 _LT_TAGVAR(ld_shlibs, $1)=no 6072 fi 6073 ;; 6074 esac 6075 6076 if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then 6077 runpath_var= 6078 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 6079 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 6080 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6081 fi 6082 else 6083 # PORTME fill in a description of your system's linker (not GNU ld) 6084 case $host_os in 6085 aix3*) 6086 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6087 _LT_TAGVAR(always_export_symbols, $1)=yes 6088 _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' 6089 # Note: this linker hardcodes the directories in LIBPATH if there 6090 # are no directories specified by -L. 6091 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6092 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 6093 # Neither direct hardcoding nor static linking is supported with a 6094 # broken collect2. 6095 _LT_TAGVAR(hardcode_direct, $1)=unsupported 6096 fi 6097 ;; 6098 6099 aix[[4-9]]*) 6100 if test ia64 = "$host_cpu"; then 6101 # On IA64, the linker does run time linking by default, so we don't 6102 # have to do anything special. 6103 aix_use_runtimelinking=no 6104 exp_sym_flag='-Bexport' 6105 no_entry_flag= 6106 else 6107 # If we're using GNU nm, then we don't want the "-C" option. 6108 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 6109 # Without the "-l" option, or with the "-B" option, AIX nm treats 6110 # weak defined symbols like other global defined symbols, whereas 6111 # GNU nm marks them as "W". 6112 # While the 'weak' keyword is ignored in the Export File, we need 6113 # it in the Import File for the 'aix-soname' feature, so we have 6114 # to replace the "-B" option with "-P" for AIX nm. 6115 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 6116 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 6117 else 6118 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 6119 fi 6120 aix_use_runtimelinking=no 6121 6122 # Test if we are trying to use run time linking or normal 6123 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6124 # have runtime linking enabled, and use it for executables. 6125 # For shared libraries, we enable/disable runtime linking 6126 # depending on the kind of the shared library created - 6127 # when "with_aix_soname,aix_use_runtimelinking" is: 6128 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 6129 # "aix,yes" lib.so shared, rtl:yes, for executables 6130 # lib.a static archive 6131 # "both,no" lib.so.V(shr.o) shared, rtl:yes 6132 # lib.a(lib.so.V) shared, rtl:no, for executables 6133 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 6134 # lib.a(lib.so.V) shared, rtl:no 6135 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 6136 # lib.a static archive 6137 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 6138 for ld_flag in $LDFLAGS; do 6139 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 6140 aix_use_runtimelinking=yes 6141 break 6142 fi 6143 done 6144 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 6145 # With aix-soname=svr4, we create the lib.so.V shared archives only, 6146 # so we don't have lib.a shared libs to link our executables. 6147 # We have to force runtime linking in this case. 6148 aix_use_runtimelinking=yes 6149 LDFLAGS="$LDFLAGS -Wl,-brtl" 6150 fi 6151 ;; 6152 esac 6153 6154 exp_sym_flag='-bexport' 6155 no_entry_flag='-bnoentry' 6156 fi 6157 6158 # When large executables or shared objects are built, AIX ld can 6159 # have problems creating the table of contents. If linking a library 6160 # or program results in "error TOC overflow" add -mminimal-toc to 6161 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6162 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6163 6164 _LT_TAGVAR(archive_cmds, $1)='' 6165 _LT_TAGVAR(hardcode_direct, $1)=yes 6166 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6167 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 6168 _LT_TAGVAR(link_all_deplibs, $1)=yes 6169 _LT_TAGVAR(file_list_spec, $1)='$wl-f,' 6170 case $with_aix_soname,$aix_use_runtimelinking in 6171 aix,*) ;; # traditional, no import file 6172 svr4,* | *,yes) # use import file 6173 # The Import File defines what to hardcode. 6174 _LT_TAGVAR(hardcode_direct, $1)=no 6175 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 6176 ;; 6177 esac 6178 6179 if test yes = "$GCC"; then 6180 case $host_os in aix4.[[012]]|aix4.[[012]].*) 6181 # We only want to do this on AIX 4.2 and lower, the check 6182 # below for broken collect2 doesn't work under 4.3+ 6183 collect2name=`$CC -print-prog-name=collect2` 6184 if test -f "$collect2name" && 6185 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 6186 then 6187 # We have reworked collect2 6188 : 6189 else 6190 # We have old collect2 6191 _LT_TAGVAR(hardcode_direct, $1)=unsupported 6192 # It fails to find uninstalled libraries when the uninstalled 6193 # path is not listed in the libpath. Setting hardcode_minus_L 6194 # to unsupported forces relinking 6195 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6196 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6197 _LT_TAGVAR(hardcode_libdir_separator, $1)= 6198 fi 6199 ;; 6200 esac 6201 shared_flag='-shared' 6202 if test yes = "$aix_use_runtimelinking"; then 6203 shared_flag="$shared_flag "'$wl-G' 6204 fi 6205 # Need to ensure runtime linking is disabled for the traditional 6206 # shared library, or the linker may eventually find shared libraries 6207 # /with/ Import File - we do not want to mix them. 6208 shared_flag_aix='-shared' 6209 shared_flag_svr4='-shared $wl-G' 6210 else 6211 # not using gcc 6212 if test ia64 = "$host_cpu"; then 6213 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6214 # chokes on -Wl,-G. The following line is correct: 6215 shared_flag='-G' 6216 else 6217 if test yes = "$aix_use_runtimelinking"; then 6218 shared_flag='$wl-G' 6219 else 6220 shared_flag='$wl-bM:SRE' 6221 fi 6222 shared_flag_aix='$wl-bM:SRE' 6223 shared_flag_svr4='$wl-G' 6224 fi 6225 fi 6226 6227 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' 6228 # It seems that -bexpall does not export symbols beginning with 6229 # underscore (_), so it is better to generate a list of symbols to export. 6230 _LT_TAGVAR(always_export_symbols, $1)=yes 6231 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 6232 # Warning - without using the other runtime loading flags (-brtl), 6233 # -berok will link without error, but may produce a broken library. 6234 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 6235 # Determine the default libpath from the value encoded in an 6236 # empty executable. 6237 _LT_SYS_MODULE_PATH_AIX([$1]) 6238 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 6239 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 6240 else 6241 if test ia64 = "$host_cpu"; then 6242 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' 6243 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 6244 _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" 6245 else 6246 # Determine the default libpath from the value encoded in an 6247 # empty executable. 6248 _LT_SYS_MODULE_PATH_AIX([$1]) 6249 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 6250 # Warning - without using the other run time loading flags, 6251 # -berok will link without error, but may produce a broken library. 6252 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' 6253 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' 6254 if test yes = "$with_gnu_ld"; then 6255 # We only use this code for GNU lds that support --whole-archive. 6256 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 6257 else 6258 # Exported symbols can be pulled into shared objects from archives 6259 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 6260 fi 6261 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6262 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 6263 # -brtl affects multiple linker settings, -berok does not and is overridden later 6264 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' 6265 if test svr4 != "$with_aix_soname"; then 6266 # This is similar to how AIX traditionally builds its shared libraries. 6267 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 6268 fi 6269 if test aix != "$with_aix_soname"; then 6270 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 6271 else 6272 # used by -dlpreopen to get the symbols 6273 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 6274 fi 6275 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' 6276 fi 6277 fi 6278 ;; 6279 6280 amigaos*) 6281 case $host_cpu in 6282 powerpc) 6283 # see comment about AmigaOS4 .so support 6284 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 6285 _LT_TAGVAR(archive_expsym_cmds, $1)='' 6286 ;; 6287 m68k) 6288 _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)' 6289 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6290 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6291 ;; 6292 esac 6293 ;; 6294 6295 bsdi[[45]]*) 6296 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 6297 ;; 6298 6299 cygwin* | mingw* | pw32* | cegcc*) 6300 # When not using gcc, we currently assume that we are using 6301 # Microsoft Visual C++. 6302 # hardcode_libdir_flag_spec is actually meaningless, as there is 6303 # no search path for DLLs. 6304 case $cc_basename in 6305 cl*) 6306 # Native MSVC 6307 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 6308 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6309 _LT_TAGVAR(always_export_symbols, $1)=yes 6310 _LT_TAGVAR(file_list_spec, $1)='@' 6311 # Tell ltmain to make .lib files, not .a files. 6312 libext=lib 6313 # Tell ltmain to make .dll files, not .so files. 6314 shrext_cmds=.dll 6315 # FIXME: Setting linknames here is a bad hack. 6316 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 6317 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 6318 cp "$export_symbols" "$output_objdir/$soname.def"; 6319 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 6320 else 6321 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 6322 fi~ 6323 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 6324 linknames=' 6325 # The linker will not automatically build a static lib if we build a DLL. 6326 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 6327 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6328 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 6329 _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' 6330 # Don't use ranlib 6331 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 6332 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 6333 lt_tool_outputfile="@TOOL_OUTPUT@"~ 6334 case $lt_outputfile in 6335 *.exe|*.EXE) ;; 6336 *) 6337 lt_outputfile=$lt_outputfile.exe 6338 lt_tool_outputfile=$lt_tool_outputfile.exe 6339 ;; 6340 esac~ 6341 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 6342 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 6343 $RM "$lt_outputfile.manifest"; 6344 fi' 6345 ;; 6346 *) 6347 # Assume MSVC wrapper 6348 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 6349 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6350 # Tell ltmain to make .lib files, not .a files. 6351 libext=lib 6352 # Tell ltmain to make .dll files, not .so files. 6353 shrext_cmds=.dll 6354 # FIXME: Setting linknames here is a bad hack. 6355 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 6356 # The linker will automatically build a .lib file if we build a DLL. 6357 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 6358 # FIXME: Should let the user specify the lib program. 6359 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 6360 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6361 ;; 6362 esac 6363 ;; 6364 6365 darwin* | rhapsody*) 6366 _LT_DARWIN_LINKER_FEATURES($1) 6367 ;; 6368 6369 dgux*) 6370 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6371 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6372 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6373 ;; 6374 6375 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 6376 # support. Future versions do this automatically, but an explicit c++rt0.o 6377 # does not break anything, and helps significantly (at the cost of a little 6378 # extra space). 6379 freebsd2.2*) 6380 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 6381 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6382 _LT_TAGVAR(hardcode_direct, $1)=yes 6383 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6384 ;; 6385 6386 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 6387 freebsd2.*) 6388 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6389 _LT_TAGVAR(hardcode_direct, $1)=yes 6390 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6391 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6392 ;; 6393 6394 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 6395 freebsd* | dragonfly*) 6396 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6397 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6398 _LT_TAGVAR(hardcode_direct, $1)=yes 6399 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6400 ;; 6401 6402 hpux9*) 6403 if test yes = "$GCC"; then 6404 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 6405 else 6406 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 6407 fi 6408 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 6409 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6410 _LT_TAGVAR(hardcode_direct, $1)=yes 6411 6412 # hardcode_minus_L: Not really in the search PATH, 6413 # but as the default location of the library. 6414 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6415 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 6416 ;; 6417 6418 hpux10*) 6419 if test yes,no = "$GCC,$with_gnu_ld"; then 6420 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6421 else 6422 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 6423 fi 6424 if test no = "$with_gnu_ld"; then 6425 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 6426 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6427 _LT_TAGVAR(hardcode_direct, $1)=yes 6428 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6429 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 6430 # hardcode_minus_L: Not really in the search PATH, 6431 # but as the default location of the library. 6432 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6433 fi 6434 ;; 6435 6436 hpux11*) 6437 if test yes,no = "$GCC,$with_gnu_ld"; then 6438 case $host_cpu in 6439 hppa*64*) 6440 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 6441 ;; 6442 ia64*) 6443 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 6444 ;; 6445 *) 6446 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6447 ;; 6448 esac 6449 else 6450 case $host_cpu in 6451 hppa*64*) 6452 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 6453 ;; 6454 ia64*) 6455 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 6456 ;; 6457 *) 6458 m4_if($1, [], [ 6459 # Older versions of the 11.00 compiler do not understand -b yet 6460 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 6461 _LT_LINKER_OPTION([if $CC understands -b], 6462 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], 6463 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], 6464 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], 6465 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) 6466 ;; 6467 esac 6468 fi 6469 if test no = "$with_gnu_ld"; then 6470 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 6471 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6472 6473 case $host_cpu in 6474 hppa*64*|ia64*) 6475 _LT_TAGVAR(hardcode_direct, $1)=no 6476 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6477 ;; 6478 *) 6479 _LT_TAGVAR(hardcode_direct, $1)=yes 6480 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6481 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 6482 6483 # hardcode_minus_L: Not really in the search PATH, 6484 # but as the default location of the library. 6485 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6486 ;; 6487 esac 6488 fi 6489 ;; 6490 6491 irix5* | irix6* | nonstopux*) 6492 if test yes = "$GCC"; then 6493 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 6494 # Try to use the -exported_symbol ld option, if it does not 6495 # work, assume that -exports_file does not work either and 6496 # implicitly export all symbols. 6497 # This should be the same for all languages, so no per-tag cache variable. 6498 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], 6499 [lt_cv_irix_exported_symbol], 6500 [save_LDFLAGS=$LDFLAGS 6501 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 6502 AC_LINK_IFELSE( 6503 [AC_LANG_SOURCE( 6504 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], 6505 [C++], [[int foo (void) { return 0; }]], 6506 [Fortran 77], [[ 6507 subroutine foo 6508 end]], 6509 [Fortran], [[ 6510 subroutine foo 6511 end]])])], 6512 [lt_cv_irix_exported_symbol=yes], 6513 [lt_cv_irix_exported_symbol=no]) 6514 LDFLAGS=$save_LDFLAGS]) 6515 if test yes = "$lt_cv_irix_exported_symbol"; then 6516 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 6517 fi 6518 _LT_TAGVAR(link_all_deplibs, $1)=no 6519 else 6520 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 6521 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' 6522 fi 6523 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 6524 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 6525 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6526 _LT_TAGVAR(inherit_rpath, $1)=yes 6527 _LT_TAGVAR(link_all_deplibs, $1)=yes 6528 ;; 6529 6530 linux*) 6531 case $cc_basename in 6532 tcc*) 6533 # Fabrice Bellard et al's Tiny C Compiler 6534 _LT_TAGVAR(ld_shlibs, $1)=yes 6535 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6536 ;; 6537 esac 6538 ;; 6539 6540 netbsd* | netbsdelf*-gnu) 6541 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 6542 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 6543 else 6544 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 6545 fi 6546 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6547 _LT_TAGVAR(hardcode_direct, $1)=yes 6548 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6549 ;; 6550 6551 newsos6) 6552 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6553 _LT_TAGVAR(hardcode_direct, $1)=yes 6554 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 6555 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6556 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6557 ;; 6558 6559 *nto* | *qnx*) 6560 ;; 6561 6562 openbsd* | bitrig*) 6563 if test -f /usr/libexec/ld.so; then 6564 _LT_TAGVAR(hardcode_direct, $1)=yes 6565 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6566 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6567 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6568 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6569 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 6570 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 6571 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 6572 else 6573 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6574 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 6575 fi 6576 else 6577 _LT_TAGVAR(ld_shlibs, $1)=no 6578 fi 6579 ;; 6580 6581 os2*) 6582 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6583 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6584 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6585 shrext_cmds=.dll 6586 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 6587 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 6588 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 6589 $ECHO EXPORTS >> $output_objdir/$libname.def~ 6590 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 6591 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 6592 emximp -o $lib $output_objdir/$libname.def' 6593 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 6594 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 6595 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 6596 $ECHO EXPORTS >> $output_objdir/$libname.def~ 6597 prefix_cmds="$SED"~ 6598 if test EXPORTS = "`$SED 1q $export_symbols`"; then 6599 prefix_cmds="$prefix_cmds -e 1d"; 6600 fi~ 6601 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 6602 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 6603 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 6604 emximp -o $lib $output_objdir/$libname.def' 6605 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 6606 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6607 ;; 6608 6609 osf3*) 6610 if test yes = "$GCC"; then 6611 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 6612 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 6613 else 6614 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 6615 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 6616 fi 6617 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 6618 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 6619 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6620 ;; 6621 6622 osf4* | osf5*) # as osf3* with the addition of -msym flag 6623 if test yes = "$GCC"; then 6624 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 6625 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 6626 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 6627 else 6628 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 6629 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 6630 _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~ 6631 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' 6632 6633 # Both c and cxx compiler support -rpath directly 6634 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 6635 fi 6636 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 6637 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6638 ;; 6639 6640 solaris*) 6641 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' 6642 if test yes = "$GCC"; then 6643 wlarc='$wl' 6644 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 6645 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6646 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 6647 else 6648 case `$CC -V 2>&1` in 6649 *"Compilers 5.0"*) 6650 wlarc='' 6651 _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 6652 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6653 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 6654 ;; 6655 *) 6656 wlarc='$wl' 6657 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 6658 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6659 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 6660 ;; 6661 esac 6662 fi 6663 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6664 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6665 case $host_os in 6666 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 6667 *) 6668 # The compiler driver will combine and reorder linker options, 6669 # but understands '-z linker_flag'. GCC discards it without '$wl', 6670 # but is careful enough not to reorder. 6671 # Supported since Solaris 2.6 (maybe 2.5.1?) 6672 if test yes = "$GCC"; then 6673 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 6674 else 6675 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 6676 fi 6677 ;; 6678 esac 6679 _LT_TAGVAR(link_all_deplibs, $1)=yes 6680 ;; 6681 6682 sunos4*) 6683 if test sequent = "$host_vendor"; then 6684 # Use $CC to link under sequent, because it throws in some extra .o 6685 # files that make .init and .fini sections work. 6686 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 6687 else 6688 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 6689 fi 6690 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6691 _LT_TAGVAR(hardcode_direct, $1)=yes 6692 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6693 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6694 ;; 6695 6696 sysv4) 6697 case $host_vendor in 6698 sni) 6699 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6700 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 6701 ;; 6702 siemens) 6703 ## LD is ld it makes a PLAMLIB 6704 ## CC just makes a GrossModule. 6705 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 6706 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 6707 _LT_TAGVAR(hardcode_direct, $1)=no 6708 ;; 6709 motorola) 6710 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6711 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 6712 ;; 6713 esac 6714 runpath_var='LD_RUN_PATH' 6715 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6716 ;; 6717 6718 sysv4.3*) 6719 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6720 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6721 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 6722 ;; 6723 6724 sysv4*MP*) 6725 if test -d /usr/nec; then 6726 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6727 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6728 runpath_var=LD_RUN_PATH 6729 hardcode_runpath_var=yes 6730 _LT_TAGVAR(ld_shlibs, $1)=yes 6731 fi 6732 ;; 6733 6734 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 6735 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 6736 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6737 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6738 runpath_var='LD_RUN_PATH' 6739 6740 if test yes = "$GCC"; then 6741 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6742 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6743 else 6744 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6745 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6746 fi 6747 ;; 6748 6749 sysv5* | sco3.2v5* | sco5v6*) 6750 # Note: We CANNOT use -z defs as we might desire, because we do not 6751 # link with -lc, and that would cause any symbols used from libc to 6752 # always be unresolved, which means just about no library would 6753 # ever link correctly. If we're not using GNU ld we use -z text 6754 # though, which does catch some bad symbols but isn't as heavy-handed 6755 # as -z defs. 6756 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 6757 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' 6758 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6759 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6760 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' 6761 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 6762 _LT_TAGVAR(link_all_deplibs, $1)=yes 6763 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' 6764 runpath_var='LD_RUN_PATH' 6765 6766 if test yes = "$GCC"; then 6767 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6768 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6769 else 6770 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6771 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6772 fi 6773 ;; 6774 6775 uts4*) 6776 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6777 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6778 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6779 ;; 6780 6781 *) 6782 _LT_TAGVAR(ld_shlibs, $1)=no 6783 ;; 6784 esac 6785 6786 if test sni = "$host_vendor"; then 6787 case $host in 6788 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6789 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym' 6790 ;; 6791 esac 6792 fi 6793 fi 6794]) 6795AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 6796test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no 6797 6798_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld 6799 6800_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl 6801_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl 6802_LT_DECL([], [extract_expsyms_cmds], [2], 6803 [The commands to extract the exported symbol list from a shared archive]) 6804 6805# 6806# Do we need to explicitly link libc? 6807# 6808case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in 6809x|xyes) 6810 # Assume -lc should be added 6811 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6812 6813 if test yes,yes = "$GCC,$enable_shared"; then 6814 case $_LT_TAGVAR(archive_cmds, $1) in 6815 *'~'*) 6816 # FIXME: we may have to deal with multi-command sequences. 6817 ;; 6818 '$CC '*) 6819 # Test whether the compiler implicitly links with -lc since on some 6820 # systems, -lgcc has to come before -lc. If gcc already passes -lc 6821 # to ld, don't add -lc before -lgcc. 6822 AC_CACHE_CHECK([whether -lc should be explicitly linked in], 6823 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), 6824 [$RM conftest* 6825 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 6826 6827 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 6828 soname=conftest 6829 lib=conftest 6830 libobjs=conftest.$ac_objext 6831 deplibs= 6832 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) 6833 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) 6834 compiler_flags=-v 6835 linker_flags=-v 6836 verstring= 6837 output_objdir=. 6838 libname=conftest 6839 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) 6840 _LT_TAGVAR(allow_undefined_flag, $1)= 6841 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 6842 then 6843 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no 6844 else 6845 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6846 fi 6847 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 6848 else 6849 cat conftest.err 1>&5 6850 fi 6851 $RM conftest* 6852 ]) 6853 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) 6854 ;; 6855 esac 6856 fi 6857 ;; 6858esac 6859 6860_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], 6861 [Whether or not to add -lc for building shared libraries]) 6862_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], 6863 [enable_shared_with_static_runtimes], [0], 6864 [Whether or not to disallow shared libs when runtime libs are static]) 6865_LT_TAGDECL([], [export_dynamic_flag_spec], [1], 6866 [Compiler flag to allow reflexive dlopens]) 6867_LT_TAGDECL([], [whole_archive_flag_spec], [1], 6868 [Compiler flag to generate shared objects directly from archives]) 6869_LT_TAGDECL([], [compiler_needs_object], [1], 6870 [Whether the compiler copes with passing no objects directly]) 6871_LT_TAGDECL([], [old_archive_from_new_cmds], [2], 6872 [Create an old-style archive from a shared archive]) 6873_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], 6874 [Create a temporary old-style archive to link instead of a shared archive]) 6875_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) 6876_LT_TAGDECL([], [archive_expsym_cmds], [2]) 6877_LT_TAGDECL([], [module_cmds], [2], 6878 [Commands used to build a loadable module if different from building 6879 a shared archive.]) 6880_LT_TAGDECL([], [module_expsym_cmds], [2]) 6881_LT_TAGDECL([], [with_gnu_ld], [1], 6882 [Whether we are building with GNU ld or not]) 6883_LT_TAGDECL([], [allow_undefined_flag], [1], 6884 [Flag that allows shared libraries with undefined symbols to be built]) 6885_LT_TAGDECL([], [no_undefined_flag], [1], 6886 [Flag that enforces no undefined symbols]) 6887_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], 6888 [Flag to hardcode $libdir into a binary during linking. 6889 This must work even if $libdir does not exist]) 6890_LT_TAGDECL([], [hardcode_libdir_separator], [1], 6891 [Whether we need a single "-rpath" flag with a separated argument]) 6892_LT_TAGDECL([], [hardcode_direct], [0], 6893 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes 6894 DIR into the resulting binary]) 6895_LT_TAGDECL([], [hardcode_direct_absolute], [0], 6896 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes 6897 DIR into the resulting binary and the resulting library dependency is 6898 "absolute", i.e impossible to change by setting $shlibpath_var if the 6899 library is relocated]) 6900_LT_TAGDECL([], [hardcode_minus_L], [0], 6901 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR 6902 into the resulting binary]) 6903_LT_TAGDECL([], [hardcode_shlibpath_var], [0], 6904 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 6905 into the resulting binary]) 6906_LT_TAGDECL([], [hardcode_automatic], [0], 6907 [Set to "yes" if building a shared library automatically hardcodes DIR 6908 into the library and all subsequent libraries and executables linked 6909 against it]) 6910_LT_TAGDECL([], [inherit_rpath], [0], 6911 [Set to yes if linker adds runtime paths of dependent libraries 6912 to runtime path list]) 6913_LT_TAGDECL([], [link_all_deplibs], [0], 6914 [Whether libtool must link a program against all its dependency libraries]) 6915_LT_TAGDECL([], [always_export_symbols], [0], 6916 [Set to "yes" if exported symbols are required]) 6917_LT_TAGDECL([], [export_symbols_cmds], [2], 6918 [The commands to list exported symbols]) 6919_LT_TAGDECL([], [exclude_expsyms], [1], 6920 [Symbols that should not be listed in the preloaded symbols]) 6921_LT_TAGDECL([], [include_expsyms], [1], 6922 [Symbols that must always be exported]) 6923_LT_TAGDECL([], [prelink_cmds], [2], 6924 [Commands necessary for linking programs (against libraries) with templates]) 6925_LT_TAGDECL([], [postlink_cmds], [2], 6926 [Commands necessary for finishing linking programs]) 6927_LT_TAGDECL([], [file_list_spec], [1], 6928 [Specify filename containing input files]) 6929dnl FIXME: Not yet implemented 6930dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], 6931dnl [Compiler flag to generate thread safe objects]) 6932])# _LT_LINKER_SHLIBS 6933 6934 6935# _LT_LANG_C_CONFIG([TAG]) 6936# ------------------------ 6937# Ensure that the configuration variables for a C compiler are suitably 6938# defined. These variables are subsequently used by _LT_CONFIG to write 6939# the compiler configuration to 'libtool'. 6940m4_defun([_LT_LANG_C_CONFIG], 6941[m4_require([_LT_DECL_EGREP])dnl 6942lt_save_CC=$CC 6943AC_LANG_PUSH(C) 6944 6945# Source file extension for C test sources. 6946ac_ext=c 6947 6948# Object file extension for compiled C test sources. 6949objext=o 6950_LT_TAGVAR(objext, $1)=$objext 6951 6952# Code to be used in simple compile tests 6953lt_simple_compile_test_code="int some_variable = 0;" 6954 6955# Code to be used in simple link tests 6956lt_simple_link_test_code='int main(){return(0);}' 6957 6958_LT_TAG_COMPILER 6959# Save the default compiler, since it gets overwritten when the other 6960# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 6961compiler_DEFAULT=$CC 6962 6963# save warnings/boilerplate of simple test code 6964_LT_COMPILER_BOILERPLATE 6965_LT_LINKER_BOILERPLATE 6966 6967if test -n "$compiler"; then 6968 _LT_COMPILER_NO_RTTI($1) 6969 _LT_COMPILER_PIC($1) 6970 _LT_COMPILER_C_O($1) 6971 _LT_COMPILER_FILE_LOCKS($1) 6972 _LT_LINKER_SHLIBS($1) 6973 _LT_SYS_DYNAMIC_LINKER($1) 6974 _LT_LINKER_HARDCODE_LIBPATH($1) 6975 LT_SYS_DLOPEN_SELF 6976 _LT_CMD_STRIPLIB 6977 6978 # Report what library types will actually be built 6979 AC_MSG_CHECKING([if libtool supports shared libraries]) 6980 AC_MSG_RESULT([$can_build_shared]) 6981 6982 AC_MSG_CHECKING([whether to build shared libraries]) 6983 test no = "$can_build_shared" && enable_shared=no 6984 6985 # On AIX, shared libraries and static libraries use the same namespace, and 6986 # are all built from PIC. 6987 case $host_os in 6988 aix3*) 6989 test yes = "$enable_shared" && enable_static=no 6990 if test -n "$RANLIB"; then 6991 archive_cmds="$archive_cmds~\$RANLIB \$lib" 6992 postinstall_cmds='$RANLIB $lib' 6993 fi 6994 ;; 6995 6996 aix[[4-9]]*) 6997 if test ia64 != "$host_cpu"; then 6998 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 6999 yes,aix,yes) ;; # shared object as lib.so file only 7000 yes,svr4,*) ;; # shared object as lib.so archive member only 7001 yes,*) enable_static=no ;; # shared object in lib.a archive as well 7002 esac 7003 fi 7004 ;; 7005 esac 7006 AC_MSG_RESULT([$enable_shared]) 7007 7008 AC_MSG_CHECKING([whether to build static libraries]) 7009 # Make sure either enable_shared or enable_static is yes. 7010 test yes = "$enable_shared" || enable_static=yes 7011 AC_MSG_RESULT([$enable_static]) 7012 7013 _LT_CONFIG($1) 7014fi 7015AC_LANG_POP 7016CC=$lt_save_CC 7017])# _LT_LANG_C_CONFIG 7018 7019 7020# _LT_LANG_CXX_CONFIG([TAG]) 7021# -------------------------- 7022# Ensure that the configuration variables for a C++ compiler are suitably 7023# defined. These variables are subsequently used by _LT_CONFIG to write 7024# the compiler configuration to 'libtool'. 7025m4_defun([_LT_LANG_CXX_CONFIG], 7026[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 7027m4_require([_LT_DECL_EGREP])dnl 7028m4_require([_LT_PATH_MANIFEST_TOOL])dnl 7029if test -n "$CXX" && ( test no != "$CXX" && 7030 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 7031 (test g++ != "$CXX"))); then 7032 AC_PROG_CXXCPP 7033else 7034 _lt_caught_CXX_error=yes 7035fi 7036 7037AC_LANG_PUSH(C++) 7038_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7039_LT_TAGVAR(allow_undefined_flag, $1)= 7040_LT_TAGVAR(always_export_symbols, $1)=no 7041_LT_TAGVAR(archive_expsym_cmds, $1)= 7042_LT_TAGVAR(compiler_needs_object, $1)=no 7043_LT_TAGVAR(export_dynamic_flag_spec, $1)= 7044_LT_TAGVAR(hardcode_direct, $1)=no 7045_LT_TAGVAR(hardcode_direct_absolute, $1)=no 7046_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 7047_LT_TAGVAR(hardcode_libdir_separator, $1)= 7048_LT_TAGVAR(hardcode_minus_L, $1)=no 7049_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 7050_LT_TAGVAR(hardcode_automatic, $1)=no 7051_LT_TAGVAR(inherit_rpath, $1)=no 7052_LT_TAGVAR(module_cmds, $1)= 7053_LT_TAGVAR(module_expsym_cmds, $1)= 7054_LT_TAGVAR(link_all_deplibs, $1)=unknown 7055_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7056_LT_TAGVAR(reload_flag, $1)=$reload_flag 7057_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 7058_LT_TAGVAR(no_undefined_flag, $1)= 7059_LT_TAGVAR(whole_archive_flag_spec, $1)= 7060_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 7061 7062# Source file extension for C++ test sources. 7063ac_ext=cpp 7064 7065# Object file extension for compiled C++ test sources. 7066objext=o 7067_LT_TAGVAR(objext, $1)=$objext 7068 7069# No sense in running all these tests if we already determined that 7070# the CXX compiler isn't working. Some variables (like enable_shared) 7071# are currently assumed to apply to all compilers on this platform, 7072# and will be corrupted by setting them based on a non-working compiler. 7073if test yes != "$_lt_caught_CXX_error"; then 7074 # Code to be used in simple compile tests 7075 lt_simple_compile_test_code="int some_variable = 0;" 7076 7077 # Code to be used in simple link tests 7078 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 7079 7080 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 7081 _LT_TAG_COMPILER 7082 7083 # save warnings/boilerplate of simple test code 7084 _LT_COMPILER_BOILERPLATE 7085 _LT_LINKER_BOILERPLATE 7086 7087 # Allow CC to be a program name with arguments. 7088 lt_save_CC=$CC 7089 lt_save_CFLAGS=$CFLAGS 7090 lt_save_LD=$LD 7091 lt_save_GCC=$GCC 7092 GCC=$GXX 7093 lt_save_with_gnu_ld=$with_gnu_ld 7094 lt_save_path_LD=$lt_cv_path_LD 7095 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 7096 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 7097 else 7098 $as_unset lt_cv_prog_gnu_ld 7099 fi 7100 if test -n "${lt_cv_path_LDCXX+set}"; then 7101 lt_cv_path_LD=$lt_cv_path_LDCXX 7102 else 7103 $as_unset lt_cv_path_LD 7104 fi 7105 test -z "${LDCXX+set}" || LD=$LDCXX 7106 CC=${CXX-"c++"} 7107 CFLAGS=$CXXFLAGS 7108 compiler=$CC 7109 _LT_TAGVAR(compiler, $1)=$CC 7110 _LT_CC_BASENAME([$compiler]) 7111 7112 if test -n "$compiler"; then 7113 # We don't want -fno-exception when compiling C++ code, so set the 7114 # no_builtin_flag separately 7115 if test yes = "$GXX"; then 7116 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 7117 else 7118 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 7119 fi 7120 7121 if test yes = "$GXX"; then 7122 # Set up default GNU C++ configuration 7123 7124 LT_PATH_LD 7125 7126 # Check if GNU C++ uses GNU ld as the underlying linker, since the 7127 # archiving commands below assume that GNU ld is being used. 7128 if test yes = "$with_gnu_ld"; then 7129 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 7130 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 7131 7132 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 7133 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 7134 7135 # If archive_cmds runs LD, not CC, wlarc should be empty 7136 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 7137 # investigate it a little bit more. (MM) 7138 wlarc='$wl' 7139 7140 # ancient GNU ld didn't support --whole-archive et. al. 7141 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 7142 $GREP 'no-whole-archive' > /dev/null; then 7143 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 7144 else 7145 _LT_TAGVAR(whole_archive_flag_spec, $1)= 7146 fi 7147 else 7148 with_gnu_ld=no 7149 wlarc= 7150 7151 # A generic and very simple default shared library creation 7152 # command for GNU C++ for the case where it uses the native 7153 # linker, instead of GNU ld. If possible, this setting should 7154 # overridden to take advantage of the native linker features on 7155 # the platform it is being used on. 7156 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 7157 fi 7158 7159 # Commands to make compiler produce verbose output that lists 7160 # what "hidden" libraries, object files and flags are used when 7161 # linking a shared library. 7162 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 7163 7164 else 7165 GXX=no 7166 with_gnu_ld=no 7167 wlarc= 7168 fi 7169 7170 # PORTME: fill in a description of your system's C++ link characteristics 7171 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 7172 _LT_TAGVAR(ld_shlibs, $1)=yes 7173 case $host_os in 7174 aix3*) 7175 # FIXME: insert proper C++ library support 7176 _LT_TAGVAR(ld_shlibs, $1)=no 7177 ;; 7178 aix[[4-9]]*) 7179 if test ia64 = "$host_cpu"; then 7180 # On IA64, the linker does run time linking by default, so we don't 7181 # have to do anything special. 7182 aix_use_runtimelinking=no 7183 exp_sym_flag='-Bexport' 7184 no_entry_flag= 7185 else 7186 aix_use_runtimelinking=no 7187 7188 # Test if we are trying to use run time linking or normal 7189 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7190 # have runtime linking enabled, and use it for executables. 7191 # For shared libraries, we enable/disable runtime linking 7192 # depending on the kind of the shared library created - 7193 # when "with_aix_soname,aix_use_runtimelinking" is: 7194 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 7195 # "aix,yes" lib.so shared, rtl:yes, for executables 7196 # lib.a static archive 7197 # "both,no" lib.so.V(shr.o) shared, rtl:yes 7198 # lib.a(lib.so.V) shared, rtl:no, for executables 7199 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 7200 # lib.a(lib.so.V) shared, rtl:no 7201 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 7202 # lib.a static archive 7203 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 7204 for ld_flag in $LDFLAGS; do 7205 case $ld_flag in 7206 *-brtl*) 7207 aix_use_runtimelinking=yes 7208 break 7209 ;; 7210 esac 7211 done 7212 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 7213 # With aix-soname=svr4, we create the lib.so.V shared archives only, 7214 # so we don't have lib.a shared libs to link our executables. 7215 # We have to force runtime linking in this case. 7216 aix_use_runtimelinking=yes 7217 LDFLAGS="$LDFLAGS -Wl,-brtl" 7218 fi 7219 ;; 7220 esac 7221 7222 exp_sym_flag='-bexport' 7223 no_entry_flag='-bnoentry' 7224 fi 7225 7226 # When large executables or shared objects are built, AIX ld can 7227 # have problems creating the table of contents. If linking a library 7228 # or program results in "error TOC overflow" add -mminimal-toc to 7229 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7230 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7231 7232 _LT_TAGVAR(archive_cmds, $1)='' 7233 _LT_TAGVAR(hardcode_direct, $1)=yes 7234 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7235 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 7236 _LT_TAGVAR(link_all_deplibs, $1)=yes 7237 _LT_TAGVAR(file_list_spec, $1)='$wl-f,' 7238 case $with_aix_soname,$aix_use_runtimelinking in 7239 aix,*) ;; # no import file 7240 svr4,* | *,yes) # use import file 7241 # The Import File defines what to hardcode. 7242 _LT_TAGVAR(hardcode_direct, $1)=no 7243 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 7244 ;; 7245 esac 7246 7247 if test yes = "$GXX"; then 7248 case $host_os in aix4.[[012]]|aix4.[[012]].*) 7249 # We only want to do this on AIX 4.2 and lower, the check 7250 # below for broken collect2 doesn't work under 4.3+ 7251 collect2name=`$CC -print-prog-name=collect2` 7252 if test -f "$collect2name" && 7253 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 7254 then 7255 # We have reworked collect2 7256 : 7257 else 7258 # We have old collect2 7259 _LT_TAGVAR(hardcode_direct, $1)=unsupported 7260 # It fails to find uninstalled libraries when the uninstalled 7261 # path is not listed in the libpath. Setting hardcode_minus_L 7262 # to unsupported forces relinking 7263 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7264 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7265 _LT_TAGVAR(hardcode_libdir_separator, $1)= 7266 fi 7267 esac 7268 shared_flag='-shared' 7269 if test yes = "$aix_use_runtimelinking"; then 7270 shared_flag=$shared_flag' $wl-G' 7271 fi 7272 # Need to ensure runtime linking is disabled for the traditional 7273 # shared library, or the linker may eventually find shared libraries 7274 # /with/ Import File - we do not want to mix them. 7275 shared_flag_aix='-shared' 7276 shared_flag_svr4='-shared $wl-G' 7277 else 7278 # not using gcc 7279 if test ia64 = "$host_cpu"; then 7280 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7281 # chokes on -Wl,-G. The following line is correct: 7282 shared_flag='-G' 7283 else 7284 if test yes = "$aix_use_runtimelinking"; then 7285 shared_flag='$wl-G' 7286 else 7287 shared_flag='$wl-bM:SRE' 7288 fi 7289 shared_flag_aix='$wl-bM:SRE' 7290 shared_flag_svr4='$wl-G' 7291 fi 7292 fi 7293 7294 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' 7295 # It seems that -bexpall does not export symbols beginning with 7296 # underscore (_), so it is better to generate a list of symbols to 7297 # export. 7298 _LT_TAGVAR(always_export_symbols, $1)=yes 7299 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 7300 # Warning - without using the other runtime loading flags (-brtl), 7301 # -berok will link without error, but may produce a broken library. 7302 # The "-G" linker flag allows undefined symbols. 7303 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok' 7304 # Determine the default libpath from the value encoded in an empty 7305 # executable. 7306 _LT_SYS_MODULE_PATH_AIX([$1]) 7307 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 7308 7309 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 7310 else 7311 if test ia64 = "$host_cpu"; then 7312 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' 7313 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 7314 _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" 7315 else 7316 # Determine the default libpath from the value encoded in an 7317 # empty executable. 7318 _LT_SYS_MODULE_PATH_AIX([$1]) 7319 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 7320 # Warning - without using the other run time loading flags, 7321 # -berok will link without error, but may produce a broken library. 7322 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' 7323 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' 7324 if test yes = "$with_gnu_ld"; then 7325 # We only use this code for GNU lds that support --whole-archive. 7326 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 7327 else 7328 # Exported symbols can be pulled into shared objects from archives 7329 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 7330 fi 7331 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 7332 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 7333 # -brtl affects multiple linker settings, -berok does not and is overridden later 7334 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' 7335 if test svr4 != "$with_aix_soname"; then 7336 # This is similar to how AIX traditionally builds its shared 7337 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 7338 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 7339 fi 7340 if test aix != "$with_aix_soname"; then 7341 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 7342 else 7343 # used by -dlpreopen to get the symbols 7344 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 7345 fi 7346 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' 7347 fi 7348 fi 7349 ;; 7350 7351 beos*) 7352 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7353 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7354 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7355 # support --undefined. This deserves some investigation. FIXME 7356 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 7357 else 7358 _LT_TAGVAR(ld_shlibs, $1)=no 7359 fi 7360 ;; 7361 7362 chorus*) 7363 case $cc_basename in 7364 *) 7365 # FIXME: insert proper C++ library support 7366 _LT_TAGVAR(ld_shlibs, $1)=no 7367 ;; 7368 esac 7369 ;; 7370 7371 cygwin* | mingw* | pw32* | cegcc*) 7372 case $GXX,$cc_basename in 7373 ,cl* | no,cl*) 7374 # Native MSVC 7375 # hardcode_libdir_flag_spec is actually meaningless, as there is 7376 # no search path for DLLs. 7377 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 7378 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7379 _LT_TAGVAR(always_export_symbols, $1)=yes 7380 _LT_TAGVAR(file_list_spec, $1)='@' 7381 # Tell ltmain to make .lib files, not .a files. 7382 libext=lib 7383 # Tell ltmain to make .dll files, not .so files. 7384 shrext_cmds=.dll 7385 # FIXME: Setting linknames here is a bad hack. 7386 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 7387 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 7388 cp "$export_symbols" "$output_objdir/$soname.def"; 7389 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 7390 else 7391 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 7392 fi~ 7393 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 7394 linknames=' 7395 # The linker will not automatically build a static lib if we build a DLL. 7396 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 7397 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 7398 # Don't use ranlib 7399 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 7400 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 7401 lt_tool_outputfile="@TOOL_OUTPUT@"~ 7402 case $lt_outputfile in 7403 *.exe|*.EXE) ;; 7404 *) 7405 lt_outputfile=$lt_outputfile.exe 7406 lt_tool_outputfile=$lt_tool_outputfile.exe 7407 ;; 7408 esac~ 7409 func_to_tool_file "$lt_outputfile"~ 7410 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 7411 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 7412 $RM "$lt_outputfile.manifest"; 7413 fi' 7414 ;; 7415 *) 7416 # g++ 7417 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 7418 # as there is no search path for DLLs. 7419 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7420 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' 7421 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7422 _LT_TAGVAR(always_export_symbols, $1)=no 7423 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 7424 7425 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 7426 _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' 7427 # If the export-symbols file already is a .def file, use it as 7428 # is; otherwise, prepend EXPORTS... 7429 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 7430 cp $export_symbols $output_objdir/$soname.def; 7431 else 7432 echo EXPORTS > $output_objdir/$soname.def; 7433 cat $export_symbols >> $output_objdir/$soname.def; 7434 fi~ 7435 $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' 7436 else 7437 _LT_TAGVAR(ld_shlibs, $1)=no 7438 fi 7439 ;; 7440 esac 7441 ;; 7442 darwin* | rhapsody*) 7443 _LT_DARWIN_LINKER_FEATURES($1) 7444 ;; 7445 7446 os2*) 7447 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7448 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7449 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7450 shrext_cmds=.dll 7451 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 7452 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 7453 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 7454 $ECHO EXPORTS >> $output_objdir/$libname.def~ 7455 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 7456 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 7457 emximp -o $lib $output_objdir/$libname.def' 7458 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 7459 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 7460 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 7461 $ECHO EXPORTS >> $output_objdir/$libname.def~ 7462 prefix_cmds="$SED"~ 7463 if test EXPORTS = "`$SED 1q $export_symbols`"; then 7464 prefix_cmds="$prefix_cmds -e 1d"; 7465 fi~ 7466 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 7467 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 7468 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 7469 emximp -o $lib $output_objdir/$libname.def' 7470 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 7471 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 7472 ;; 7473 7474 dgux*) 7475 case $cc_basename in 7476 ec++*) 7477 # FIXME: insert proper C++ library support 7478 _LT_TAGVAR(ld_shlibs, $1)=no 7479 ;; 7480 ghcx*) 7481 # Green Hills C++ Compiler 7482 # FIXME: insert proper C++ library support 7483 _LT_TAGVAR(ld_shlibs, $1)=no 7484 ;; 7485 *) 7486 # FIXME: insert proper C++ library support 7487 _LT_TAGVAR(ld_shlibs, $1)=no 7488 ;; 7489 esac 7490 ;; 7491 7492 freebsd2.*) 7493 # C++ shared libraries reported to be fairly broken before 7494 # switch to ELF 7495 _LT_TAGVAR(ld_shlibs, $1)=no 7496 ;; 7497 7498 freebsd-elf*) 7499 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7500 ;; 7501 7502 freebsd* | dragonfly*) 7503 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 7504 # conventions 7505 _LT_TAGVAR(ld_shlibs, $1)=yes 7506 ;; 7507 7508 haiku*) 7509 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 7510 _LT_TAGVAR(link_all_deplibs, $1)=yes 7511 ;; 7512 7513 hpux9*) 7514 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 7515 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7516 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 7517 _LT_TAGVAR(hardcode_direct, $1)=yes 7518 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 7519 # but as the default 7520 # location of the library. 7521 7522 case $cc_basename in 7523 CC*) 7524 # FIXME: insert proper C++ library support 7525 _LT_TAGVAR(ld_shlibs, $1)=no 7526 ;; 7527 aCC*) 7528 _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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 7529 # Commands to make compiler produce verbose output that lists 7530 # what "hidden" libraries, object files and flags are used when 7531 # linking a shared library. 7532 # 7533 # There doesn't appear to be a way to prevent this compiler from 7534 # explicitly linking system object files so we need to strip them 7535 # from the output so that they don't get included in the library 7536 # dependencies. 7537 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 7538 ;; 7539 *) 7540 if test yes = "$GXX"; then 7541 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 7542 else 7543 # FIXME: insert proper C++ library support 7544 _LT_TAGVAR(ld_shlibs, $1)=no 7545 fi 7546 ;; 7547 esac 7548 ;; 7549 7550 hpux10*|hpux11*) 7551 if test no = "$with_gnu_ld"; then 7552 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 7553 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7554 7555 case $host_cpu in 7556 hppa*64*|ia64*) 7557 ;; 7558 *) 7559 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 7560 ;; 7561 esac 7562 fi 7563 case $host_cpu in 7564 hppa*64*|ia64*) 7565 _LT_TAGVAR(hardcode_direct, $1)=no 7566 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7567 ;; 7568 *) 7569 _LT_TAGVAR(hardcode_direct, $1)=yes 7570 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7571 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 7572 # but as the default 7573 # location of the library. 7574 ;; 7575 esac 7576 7577 case $cc_basename in 7578 CC*) 7579 # FIXME: insert proper C++ library support 7580 _LT_TAGVAR(ld_shlibs, $1)=no 7581 ;; 7582 aCC*) 7583 case $host_cpu in 7584 hppa*64*) 7585 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 7586 ;; 7587 ia64*) 7588 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 7589 ;; 7590 *) 7591 _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' 7592 ;; 7593 esac 7594 # Commands to make compiler produce verbose output that lists 7595 # what "hidden" libraries, object files and flags are used when 7596 # linking a shared library. 7597 # 7598 # There doesn't appear to be a way to prevent this compiler from 7599 # explicitly linking system object files so we need to strip them 7600 # from the output so that they don't get included in the library 7601 # dependencies. 7602 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 7603 ;; 7604 *) 7605 if test yes = "$GXX"; then 7606 if test no = "$with_gnu_ld"; then 7607 case $host_cpu in 7608 hppa*64*) 7609 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 7610 ;; 7611 ia64*) 7612 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 7613 ;; 7614 *) 7615 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 7616 ;; 7617 esac 7618 fi 7619 else 7620 # FIXME: insert proper C++ library support 7621 _LT_TAGVAR(ld_shlibs, $1)=no 7622 fi 7623 ;; 7624 esac 7625 ;; 7626 7627 interix[[3-9]]*) 7628 _LT_TAGVAR(hardcode_direct, $1)=no 7629 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7630 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 7631 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 7632 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7633 # Instead, shared libraries are loaded at an image base (0x10000000 by 7634 # default) and relocated if they conflict, which is a slow very memory 7635 # consuming and fragmenting process. To avoid this, we pick a random, 7636 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7637 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7638 _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' 7639 _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' 7640 ;; 7641 irix5* | irix6*) 7642 case $cc_basename in 7643 CC*) 7644 # SGI C++ 7645 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 7646 7647 # Archives containing C++ object files must be created using 7648 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 7649 # necessary to make sure instantiated templates are included 7650 # in the archive. 7651 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 7652 ;; 7653 *) 7654 if test yes = "$GXX"; then 7655 if test no = "$with_gnu_ld"; then 7656 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 7657 else 7658 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' 7659 fi 7660 fi 7661 _LT_TAGVAR(link_all_deplibs, $1)=yes 7662 ;; 7663 esac 7664 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 7665 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7666 _LT_TAGVAR(inherit_rpath, $1)=yes 7667 ;; 7668 7669 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 7670 case $cc_basename in 7671 KCC*) 7672 # Kuck and Associates, Inc. (KAI) C++ Compiler 7673 7674 # KCC will only create a shared library if the output file 7675 # ends with ".so" (or ".sl" for HP-UX), so rename the library 7676 # to its proper name (with version) after linking. 7677 _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' 7678 _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' 7679 # Commands to make compiler produce verbose output that lists 7680 # what "hidden" libraries, object files and flags are used when 7681 # linking a shared library. 7682 # 7683 # There doesn't appear to be a way to prevent this compiler from 7684 # explicitly linking system object files so we need to strip them 7685 # from the output so that they don't get included in the library 7686 # dependencies. 7687 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 7688 7689 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 7690 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 7691 7692 # Archives containing C++ object files must be created using 7693 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 7694 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 7695 ;; 7696 icpc* | ecpc* ) 7697 # Intel C++ 7698 with_gnu_ld=yes 7699 # version 8.0 and above of icpc choke on multiply defined symbols 7700 # if we add $predep_objects and $postdep_objects, however 7.1 and 7701 # earlier do not add the objects themselves. 7702 case `$CC -V 2>&1` in 7703 *"Version 7."*) 7704 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 7705 _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' 7706 ;; 7707 *) # Version 8.0 or newer 7708 tmp_idyn= 7709 case $host_cpu in 7710 ia64*) tmp_idyn=' -i_dynamic';; 7711 esac 7712 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 7713 _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' 7714 ;; 7715 esac 7716 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7717 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 7718 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 7719 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 7720 ;; 7721 pgCC* | pgcpp*) 7722 # Portland Group C++ compiler 7723 case `$CC -V` in 7724 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) 7725 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 7726 rm -rf $tpldir~ 7727 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 7728 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 7729 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 7730 rm -rf $tpldir~ 7731 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 7732 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 7733 $RANLIB $oldlib' 7734 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 7735 rm -rf $tpldir~ 7736 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 7737 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 7738 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 7739 rm -rf $tpldir~ 7740 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 7741 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 7742 ;; 7743 *) # Version 6 and above use weak symbols 7744 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 7745 _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' 7746 ;; 7747 esac 7748 7749 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir' 7750 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 7751 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 7752 ;; 7753 cxx*) 7754 # Compaq C++ 7755 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 7756 _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' 7757 7758 runpath_var=LD_RUN_PATH 7759 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 7760 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7761 7762 # Commands to make compiler produce verbose output that lists 7763 # what "hidden" libraries, object files and flags are used when 7764 # linking a shared library. 7765 # 7766 # There doesn't appear to be a way to prevent this compiler from 7767 # explicitly linking system object files so we need to strip them 7768 # from the output so that they don't get included in the library 7769 # dependencies. 7770 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 7771 ;; 7772 xl* | mpixl* | bgxl*) 7773 # IBM XL 8.0 on PPC, with GNU ld 7774 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 7775 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 7776 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 7777 if test yes = "$supports_anon_versioning"; then 7778 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 7779 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7780 echo "local: *; };" >> $output_objdir/$libname.ver~ 7781 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 7782 fi 7783 ;; 7784 *) 7785 case `$CC -V 2>&1 | sed 5q` in 7786 *Sun\ C*) 7787 # Sun C++ 5.9 7788 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 7789 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 7790 _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' 7791 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7792 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 7793 _LT_TAGVAR(compiler_needs_object, $1)=yes 7794 7795 # Not sure whether something based on 7796 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 7797 # would be better. 7798 output_verbose_link_cmd='func_echo_all' 7799 7800 # Archives containing C++ object files must be created using 7801 # "CC -xar", where "CC" is the Sun C++ compiler. This is 7802 # necessary to make sure instantiated templates are included 7803 # in the archive. 7804 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 7805 ;; 7806 esac 7807 ;; 7808 esac 7809 ;; 7810 7811 lynxos*) 7812 # FIXME: insert proper C++ library support 7813 _LT_TAGVAR(ld_shlibs, $1)=no 7814 ;; 7815 7816 m88k*) 7817 # FIXME: insert proper C++ library support 7818 _LT_TAGVAR(ld_shlibs, $1)=no 7819 ;; 7820 7821 mvs*) 7822 case $cc_basename in 7823 cxx*) 7824 # FIXME: insert proper C++ library support 7825 _LT_TAGVAR(ld_shlibs, $1)=no 7826 ;; 7827 *) 7828 # FIXME: insert proper C++ library support 7829 _LT_TAGVAR(ld_shlibs, $1)=no 7830 ;; 7831 esac 7832 ;; 7833 7834 netbsd*) 7835 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7836 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 7837 wlarc= 7838 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7839 _LT_TAGVAR(hardcode_direct, $1)=yes 7840 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7841 fi 7842 # Workaround some broken pre-1.5 toolchains 7843 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 7844 ;; 7845 7846 *nto* | *qnx*) 7847 _LT_TAGVAR(ld_shlibs, $1)=yes 7848 ;; 7849 7850 openbsd* | bitrig*) 7851 if test -f /usr/libexec/ld.so; then 7852 _LT_TAGVAR(hardcode_direct, $1)=yes 7853 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7854 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7855 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 7856 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 7857 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 7858 _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' 7859 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 7860 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 7861 fi 7862 output_verbose_link_cmd=func_echo_all 7863 else 7864 _LT_TAGVAR(ld_shlibs, $1)=no 7865 fi 7866 ;; 7867 7868 osf3* | osf4* | osf5*) 7869 case $cc_basename in 7870 KCC*) 7871 # Kuck and Associates, Inc. (KAI) C++ Compiler 7872 7873 # KCC will only create a shared library if the output file 7874 # ends with ".so" (or ".sl" for HP-UX), so rename the library 7875 # to its proper name (with version) after linking. 7876 _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' 7877 7878 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 7879 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7880 7881 # Archives containing C++ object files must be created using 7882 # the KAI C++ compiler. 7883 case $host in 7884 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; 7885 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; 7886 esac 7887 ;; 7888 RCC*) 7889 # Rational C++ 2.4.1 7890 # FIXME: insert proper C++ library support 7891 _LT_TAGVAR(ld_shlibs, $1)=no 7892 ;; 7893 cxx*) 7894 case $host in 7895 osf3*) 7896 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 7897 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 7898 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 7899 ;; 7900 *) 7901 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 7902 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 7903 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 7904 echo "-hidden">> $lib.exp~ 7905 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ 7906 $RM $lib.exp' 7907 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 7908 ;; 7909 esac 7910 7911 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7912 7913 # Commands to make compiler produce verbose output that lists 7914 # what "hidden" libraries, object files and flags are used when 7915 # linking a shared library. 7916 # 7917 # There doesn't appear to be a way to prevent this compiler from 7918 # explicitly linking system object files so we need to strip them 7919 # from the output so that they don't get included in the library 7920 # dependencies. 7921 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 7922 ;; 7923 *) 7924 if test yes,no = "$GXX,$with_gnu_ld"; then 7925 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 7926 case $host in 7927 osf3*) 7928 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 7929 ;; 7930 *) 7931 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 7932 ;; 7933 esac 7934 7935 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 7936 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7937 7938 # Commands to make compiler produce verbose output that lists 7939 # what "hidden" libraries, object files and flags are used when 7940 # linking a shared library. 7941 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 7942 7943 else 7944 # FIXME: insert proper C++ library support 7945 _LT_TAGVAR(ld_shlibs, $1)=no 7946 fi 7947 ;; 7948 esac 7949 ;; 7950 7951 psos*) 7952 # FIXME: insert proper C++ library support 7953 _LT_TAGVAR(ld_shlibs, $1)=no 7954 ;; 7955 7956 sunos4*) 7957 case $cc_basename in 7958 CC*) 7959 # Sun C++ 4.x 7960 # FIXME: insert proper C++ library support 7961 _LT_TAGVAR(ld_shlibs, $1)=no 7962 ;; 7963 lcc*) 7964 # Lucid 7965 # FIXME: insert proper C++ library support 7966 _LT_TAGVAR(ld_shlibs, $1)=no 7967 ;; 7968 *) 7969 # FIXME: insert proper C++ library support 7970 _LT_TAGVAR(ld_shlibs, $1)=no 7971 ;; 7972 esac 7973 ;; 7974 7975 solaris*) 7976 case $cc_basename in 7977 CC* | sunCC*) 7978 # Sun C++ 4.2, 5.x and Centerline C++ 7979 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 7980 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 7981 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 7982 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7983 $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' 7984 7985 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7986 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7987 case $host_os in 7988 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 7989 *) 7990 # The compiler driver will combine and reorder linker options, 7991 # but understands '-z linker_flag'. 7992 # Supported since Solaris 2.6 (maybe 2.5.1?) 7993 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 7994 ;; 7995 esac 7996 _LT_TAGVAR(link_all_deplibs, $1)=yes 7997 7998 output_verbose_link_cmd='func_echo_all' 7999 8000 # Archives containing C++ object files must be created using 8001 # "CC -xar", where "CC" is the Sun C++ compiler. This is 8002 # necessary to make sure instantiated templates are included 8003 # in the archive. 8004 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 8005 ;; 8006 gcx*) 8007 # Green Hills C++ Compiler 8008 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 8009 8010 # The C++ compiler must be used to create the archive. 8011 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 8012 ;; 8013 *) 8014 # GNU C++ compiler with Solaris linker 8015 if test yes,no = "$GXX,$with_gnu_ld"; then 8016 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs' 8017 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 8018 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 8019 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8020 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 8021 8022 # Commands to make compiler produce verbose output that lists 8023 # what "hidden" libraries, object files and flags are used when 8024 # linking a shared library. 8025 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 8026 else 8027 # g++ 2.7 appears to require '-G' NOT '-shared' on this 8028 # platform. 8029 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 8030 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8031 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 8032 8033 # Commands to make compiler produce verbose output that lists 8034 # what "hidden" libraries, object files and flags are used when 8035 # linking a shared library. 8036 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 8037 fi 8038 8039 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' 8040 case $host_os in 8041 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 8042 *) 8043 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 8044 ;; 8045 esac 8046 fi 8047 ;; 8048 esac 8049 ;; 8050 8051 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 8052 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 8053 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 8054 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8055 runpath_var='LD_RUN_PATH' 8056 8057 case $cc_basename in 8058 CC*) 8059 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8060 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8061 ;; 8062 *) 8063 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8064 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8065 ;; 8066 esac 8067 ;; 8068 8069 sysv5* | sco3.2v5* | sco5v6*) 8070 # Note: We CANNOT use -z defs as we might desire, because we do not 8071 # link with -lc, and that would cause any symbols used from libc to 8072 # always be unresolved, which means just about no library would 8073 # ever link correctly. If we're not using GNU ld we use -z text 8074 # though, which does catch some bad symbols but isn't as heavy-handed 8075 # as -z defs. 8076 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 8077 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' 8078 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 8079 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8080 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' 8081 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 8082 _LT_TAGVAR(link_all_deplibs, $1)=yes 8083 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' 8084 runpath_var='LD_RUN_PATH' 8085 8086 case $cc_basename in 8087 CC*) 8088 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8089 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8090 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ 8091 '"$_LT_TAGVAR(old_archive_cmds, $1)" 8092 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ 8093 '"$_LT_TAGVAR(reload_cmds, $1)" 8094 ;; 8095 *) 8096 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8097 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8098 ;; 8099 esac 8100 ;; 8101 8102 tandem*) 8103 case $cc_basename in 8104 NCC*) 8105 # NonStop-UX NCC 3.20 8106 # FIXME: insert proper C++ library support 8107 _LT_TAGVAR(ld_shlibs, $1)=no 8108 ;; 8109 *) 8110 # FIXME: insert proper C++ library support 8111 _LT_TAGVAR(ld_shlibs, $1)=no 8112 ;; 8113 esac 8114 ;; 8115 8116 vxworks*) 8117 # FIXME: insert proper C++ library support 8118 _LT_TAGVAR(ld_shlibs, $1)=no 8119 ;; 8120 8121 *) 8122 # FIXME: insert proper C++ library support 8123 _LT_TAGVAR(ld_shlibs, $1)=no 8124 ;; 8125 esac 8126 8127 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 8128 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no 8129 8130 _LT_TAGVAR(GCC, $1)=$GXX 8131 _LT_TAGVAR(LD, $1)=$LD 8132 8133 ## CAVEAT EMPTOR: 8134 ## There is no encapsulation within the following macros, do not change 8135 ## the running order or otherwise move them around unless you know exactly 8136 ## what you are doing... 8137 _LT_SYS_HIDDEN_LIBDEPS($1) 8138 _LT_COMPILER_PIC($1) 8139 _LT_COMPILER_C_O($1) 8140 _LT_COMPILER_FILE_LOCKS($1) 8141 _LT_LINKER_SHLIBS($1) 8142 _LT_SYS_DYNAMIC_LINKER($1) 8143 _LT_LINKER_HARDCODE_LIBPATH($1) 8144 8145 _LT_CONFIG($1) 8146 fi # test -n "$compiler" 8147 8148 CC=$lt_save_CC 8149 CFLAGS=$lt_save_CFLAGS 8150 LDCXX=$LD 8151 LD=$lt_save_LD 8152 GCC=$lt_save_GCC 8153 with_gnu_ld=$lt_save_with_gnu_ld 8154 lt_cv_path_LDCXX=$lt_cv_path_LD 8155 lt_cv_path_LD=$lt_save_path_LD 8156 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 8157 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 8158fi # test yes != "$_lt_caught_CXX_error" 8159 8160AC_LANG_POP 8161])# _LT_LANG_CXX_CONFIG 8162 8163 8164# _LT_FUNC_STRIPNAME_CNF 8165# ---------------------- 8166# func_stripname_cnf prefix suffix name 8167# strip PREFIX and SUFFIX off of NAME. 8168# PREFIX and SUFFIX must not contain globbing or regex special 8169# characters, hashes, percent signs, but SUFFIX may contain a leading 8170# dot (in which case that matches only a dot). 8171# 8172# This function is identical to the (non-XSI) version of func_stripname, 8173# except this one can be used by m4 code that may be executed by configure, 8174# rather than the libtool script. 8175m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl 8176AC_REQUIRE([_LT_DECL_SED]) 8177AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) 8178func_stripname_cnf () 8179{ 8180 case @S|@2 in 8181 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; 8182 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; 8183 esac 8184} # func_stripname_cnf 8185])# _LT_FUNC_STRIPNAME_CNF 8186 8187 8188# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 8189# --------------------------------- 8190# Figure out "hidden" library dependencies from verbose 8191# compiler output when linking a shared library. 8192# Parse the compiler output and extract the necessary 8193# objects, libraries and library flags. 8194m4_defun([_LT_SYS_HIDDEN_LIBDEPS], 8195[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 8196AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl 8197# Dependencies to place before and after the object being linked: 8198_LT_TAGVAR(predep_objects, $1)= 8199_LT_TAGVAR(postdep_objects, $1)= 8200_LT_TAGVAR(predeps, $1)= 8201_LT_TAGVAR(postdeps, $1)= 8202_LT_TAGVAR(compiler_lib_search_path, $1)= 8203 8204dnl we can't use the lt_simple_compile_test_code here, 8205dnl because it contains code intended for an executable, 8206dnl not a library. It's possible we should let each 8207dnl tag define a new lt_????_link_test_code variable, 8208dnl but it's only used here... 8209m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF 8210int a; 8211void foo (void) { a = 0; } 8212_LT_EOF 8213], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF 8214class Foo 8215{ 8216public: 8217 Foo (void) { a = 0; } 8218private: 8219 int a; 8220}; 8221_LT_EOF 8222], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF 8223 subroutine foo 8224 implicit none 8225 integer*4 a 8226 a=0 8227 return 8228 end 8229_LT_EOF 8230], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF 8231 subroutine foo 8232 implicit none 8233 integer a 8234 a=0 8235 return 8236 end 8237_LT_EOF 8238], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF 8239public class foo { 8240 private int a; 8241 public void bar (void) { 8242 a = 0; 8243 } 8244}; 8245_LT_EOF 8246], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF 8247package foo 8248func foo() { 8249} 8250_LT_EOF 8251]) 8252 8253_lt_libdeps_save_CFLAGS=$CFLAGS 8254case "$CC $CFLAGS " in #( 8255*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 8256*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 8257*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 8258esac 8259 8260dnl Parse the compiler output and extract the necessary 8261dnl objects, libraries and library flags. 8262if AC_TRY_EVAL(ac_compile); then 8263 # Parse the compiler output and extract the necessary 8264 # objects, libraries and library flags. 8265 8266 # Sentinel used to keep track of whether or not we are before 8267 # the conftest object file. 8268 pre_test_object_deps_done=no 8269 8270 for p in `eval "$output_verbose_link_cmd"`; do 8271 case $prev$p in 8272 8273 -L* | -R* | -l*) 8274 # Some compilers place space between "-{L,R}" and the path. 8275 # Remove the space. 8276 if test x-L = "$p" || 8277 test x-R = "$p"; then 8278 prev=$p 8279 continue 8280 fi 8281 8282 # Expand the sysroot to ease extracting the directories later. 8283 if test -z "$prev"; then 8284 case $p in 8285 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 8286 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 8287 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 8288 esac 8289 fi 8290 case $p in 8291 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 8292 esac 8293 if test no = "$pre_test_object_deps_done"; then 8294 case $prev in 8295 -L | -R) 8296 # Internal compiler library paths should come after those 8297 # provided the user. The postdeps already come after the 8298 # user supplied libs so there is no need to process them. 8299 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then 8300 _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p 8301 else 8302 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p" 8303 fi 8304 ;; 8305 # The "-l" case would never come before the object being 8306 # linked, so don't bother handling this case. 8307 esac 8308 else 8309 if test -z "$_LT_TAGVAR(postdeps, $1)"; then 8310 _LT_TAGVAR(postdeps, $1)=$prev$p 8311 else 8312 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p" 8313 fi 8314 fi 8315 prev= 8316 ;; 8317 8318 *.lto.$objext) ;; # Ignore GCC LTO objects 8319 *.$objext) 8320 # This assumes that the test object file only shows up 8321 # once in the compiler output. 8322 if test "$p" = "conftest.$objext"; then 8323 pre_test_object_deps_done=yes 8324 continue 8325 fi 8326 8327 if test no = "$pre_test_object_deps_done"; then 8328 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then 8329 _LT_TAGVAR(predep_objects, $1)=$p 8330 else 8331 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" 8332 fi 8333 else 8334 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then 8335 _LT_TAGVAR(postdep_objects, $1)=$p 8336 else 8337 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" 8338 fi 8339 fi 8340 ;; 8341 8342 *) ;; # Ignore the rest. 8343 8344 esac 8345 done 8346 8347 # Clean up. 8348 rm -f a.out a.exe 8349else 8350 echo "libtool.m4: error: problem compiling $1 test program" 8351fi 8352 8353$RM -f confest.$objext 8354CFLAGS=$_lt_libdeps_save_CFLAGS 8355 8356# PORTME: override above test on systems where it is broken 8357m4_if([$1], [CXX], 8358[case $host_os in 8359interix[[3-9]]*) 8360 # Interix 3.5 installs completely hosed .la files for C++, so rather than 8361 # hack all around it, let's just trust "g++" to DTRT. 8362 _LT_TAGVAR(predep_objects,$1)= 8363 _LT_TAGVAR(postdep_objects,$1)= 8364 _LT_TAGVAR(postdeps,$1)= 8365 ;; 8366esac 8367]) 8368 8369case " $_LT_TAGVAR(postdeps, $1) " in 8370*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; 8371esac 8372 _LT_TAGVAR(compiler_lib_search_dirs, $1)= 8373if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then 8374 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'` 8375fi 8376_LT_TAGDECL([], [compiler_lib_search_dirs], [1], 8377 [The directories searched by this compiler when creating a shared library]) 8378_LT_TAGDECL([], [predep_objects], [1], 8379 [Dependencies to place before and after the objects being linked to 8380 create a shared library]) 8381_LT_TAGDECL([], [postdep_objects], [1]) 8382_LT_TAGDECL([], [predeps], [1]) 8383_LT_TAGDECL([], [postdeps], [1]) 8384_LT_TAGDECL([], [compiler_lib_search_path], [1], 8385 [The library search path used internally by the compiler when linking 8386 a shared library]) 8387])# _LT_SYS_HIDDEN_LIBDEPS 8388 8389 8390# _LT_LANG_F77_CONFIG([TAG]) 8391# -------------------------- 8392# Ensure that the configuration variables for a Fortran 77 compiler are 8393# suitably defined. These variables are subsequently used by _LT_CONFIG 8394# to write the compiler configuration to 'libtool'. 8395m4_defun([_LT_LANG_F77_CONFIG], 8396[AC_LANG_PUSH(Fortran 77) 8397if test -z "$F77" || test no = "$F77"; then 8398 _lt_disable_F77=yes 8399fi 8400 8401_LT_TAGVAR(archive_cmds_need_lc, $1)=no 8402_LT_TAGVAR(allow_undefined_flag, $1)= 8403_LT_TAGVAR(always_export_symbols, $1)=no 8404_LT_TAGVAR(archive_expsym_cmds, $1)= 8405_LT_TAGVAR(export_dynamic_flag_spec, $1)= 8406_LT_TAGVAR(hardcode_direct, $1)=no 8407_LT_TAGVAR(hardcode_direct_absolute, $1)=no 8408_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 8409_LT_TAGVAR(hardcode_libdir_separator, $1)= 8410_LT_TAGVAR(hardcode_minus_L, $1)=no 8411_LT_TAGVAR(hardcode_automatic, $1)=no 8412_LT_TAGVAR(inherit_rpath, $1)=no 8413_LT_TAGVAR(module_cmds, $1)= 8414_LT_TAGVAR(module_expsym_cmds, $1)= 8415_LT_TAGVAR(link_all_deplibs, $1)=unknown 8416_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 8417_LT_TAGVAR(reload_flag, $1)=$reload_flag 8418_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 8419_LT_TAGVAR(no_undefined_flag, $1)= 8420_LT_TAGVAR(whole_archive_flag_spec, $1)= 8421_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 8422 8423# Source file extension for f77 test sources. 8424ac_ext=f 8425 8426# Object file extension for compiled f77 test sources. 8427objext=o 8428_LT_TAGVAR(objext, $1)=$objext 8429 8430# No sense in running all these tests if we already determined that 8431# the F77 compiler isn't working. Some variables (like enable_shared) 8432# are currently assumed to apply to all compilers on this platform, 8433# and will be corrupted by setting them based on a non-working compiler. 8434if test yes != "$_lt_disable_F77"; then 8435 # Code to be used in simple compile tests 8436 lt_simple_compile_test_code="\ 8437 subroutine t 8438 return 8439 end 8440" 8441 8442 # Code to be used in simple link tests 8443 lt_simple_link_test_code="\ 8444 program t 8445 end 8446" 8447 8448 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 8449 _LT_TAG_COMPILER 8450 8451 # save warnings/boilerplate of simple test code 8452 _LT_COMPILER_BOILERPLATE 8453 _LT_LINKER_BOILERPLATE 8454 8455 # Allow CC to be a program name with arguments. 8456 lt_save_CC=$CC 8457 lt_save_GCC=$GCC 8458 lt_save_CFLAGS=$CFLAGS 8459 CC=${F77-"f77"} 8460 CFLAGS=$FFLAGS 8461 compiler=$CC 8462 _LT_TAGVAR(compiler, $1)=$CC 8463 _LT_CC_BASENAME([$compiler]) 8464 GCC=$G77 8465 if test -n "$compiler"; then 8466 AC_MSG_CHECKING([if libtool supports shared libraries]) 8467 AC_MSG_RESULT([$can_build_shared]) 8468 8469 AC_MSG_CHECKING([whether to build shared libraries]) 8470 test no = "$can_build_shared" && enable_shared=no 8471 8472 # On AIX, shared libraries and static libraries use the same namespace, and 8473 # are all built from PIC. 8474 case $host_os in 8475 aix3*) 8476 test yes = "$enable_shared" && enable_static=no 8477 if test -n "$RANLIB"; then 8478 archive_cmds="$archive_cmds~\$RANLIB \$lib" 8479 postinstall_cmds='$RANLIB $lib' 8480 fi 8481 ;; 8482 aix[[4-9]]*) 8483 if test ia64 != "$host_cpu"; then 8484 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 8485 yes,aix,yes) ;; # shared object as lib.so file only 8486 yes,svr4,*) ;; # shared object as lib.so archive member only 8487 yes,*) enable_static=no ;; # shared object in lib.a archive as well 8488 esac 8489 fi 8490 ;; 8491 esac 8492 AC_MSG_RESULT([$enable_shared]) 8493 8494 AC_MSG_CHECKING([whether to build static libraries]) 8495 # Make sure either enable_shared or enable_static is yes. 8496 test yes = "$enable_shared" || enable_static=yes 8497 AC_MSG_RESULT([$enable_static]) 8498 8499 _LT_TAGVAR(GCC, $1)=$G77 8500 _LT_TAGVAR(LD, $1)=$LD 8501 8502 ## CAVEAT EMPTOR: 8503 ## There is no encapsulation within the following macros, do not change 8504 ## the running order or otherwise move them around unless you know exactly 8505 ## what you are doing... 8506 _LT_COMPILER_PIC($1) 8507 _LT_COMPILER_C_O($1) 8508 _LT_COMPILER_FILE_LOCKS($1) 8509 _LT_LINKER_SHLIBS($1) 8510 _LT_SYS_DYNAMIC_LINKER($1) 8511 _LT_LINKER_HARDCODE_LIBPATH($1) 8512 8513 _LT_CONFIG($1) 8514 fi # test -n "$compiler" 8515 8516 GCC=$lt_save_GCC 8517 CC=$lt_save_CC 8518 CFLAGS=$lt_save_CFLAGS 8519fi # test yes != "$_lt_disable_F77" 8520 8521AC_LANG_POP 8522])# _LT_LANG_F77_CONFIG 8523 8524 8525# _LT_LANG_FC_CONFIG([TAG]) 8526# ------------------------- 8527# Ensure that the configuration variables for a Fortran compiler are 8528# suitably defined. These variables are subsequently used by _LT_CONFIG 8529# to write the compiler configuration to 'libtool'. 8530m4_defun([_LT_LANG_FC_CONFIG], 8531[AC_LANG_PUSH(Fortran) 8532 8533if test -z "$FC" || test no = "$FC"; then 8534 _lt_disable_FC=yes 8535fi 8536 8537_LT_TAGVAR(archive_cmds_need_lc, $1)=no 8538_LT_TAGVAR(allow_undefined_flag, $1)= 8539_LT_TAGVAR(always_export_symbols, $1)=no 8540_LT_TAGVAR(archive_expsym_cmds, $1)= 8541_LT_TAGVAR(export_dynamic_flag_spec, $1)= 8542_LT_TAGVAR(hardcode_direct, $1)=no 8543_LT_TAGVAR(hardcode_direct_absolute, $1)=no 8544_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 8545_LT_TAGVAR(hardcode_libdir_separator, $1)= 8546_LT_TAGVAR(hardcode_minus_L, $1)=no 8547_LT_TAGVAR(hardcode_automatic, $1)=no 8548_LT_TAGVAR(inherit_rpath, $1)=no 8549_LT_TAGVAR(module_cmds, $1)= 8550_LT_TAGVAR(module_expsym_cmds, $1)= 8551_LT_TAGVAR(link_all_deplibs, $1)=unknown 8552_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 8553_LT_TAGVAR(reload_flag, $1)=$reload_flag 8554_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 8555_LT_TAGVAR(no_undefined_flag, $1)= 8556_LT_TAGVAR(whole_archive_flag_spec, $1)= 8557_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 8558 8559# Source file extension for fc test sources. 8560ac_ext=${ac_fc_srcext-f} 8561 8562# Object file extension for compiled fc test sources. 8563objext=o 8564_LT_TAGVAR(objext, $1)=$objext 8565 8566# No sense in running all these tests if we already determined that 8567# the FC compiler isn't working. Some variables (like enable_shared) 8568# are currently assumed to apply to all compilers on this platform, 8569# and will be corrupted by setting them based on a non-working compiler. 8570if test yes != "$_lt_disable_FC"; then 8571 # Code to be used in simple compile tests 8572 lt_simple_compile_test_code="\ 8573 subroutine t 8574 return 8575 end 8576" 8577 8578 # Code to be used in simple link tests 8579 lt_simple_link_test_code="\ 8580 program t 8581 end 8582" 8583 8584 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 8585 _LT_TAG_COMPILER 8586 8587 # save warnings/boilerplate of simple test code 8588 _LT_COMPILER_BOILERPLATE 8589 _LT_LINKER_BOILERPLATE 8590 8591 # Allow CC to be a program name with arguments. 8592 lt_save_CC=$CC 8593 lt_save_GCC=$GCC 8594 lt_save_CFLAGS=$CFLAGS 8595 CC=${FC-"f95"} 8596 CFLAGS=$FCFLAGS 8597 compiler=$CC 8598 GCC=$ac_cv_fc_compiler_gnu 8599 8600 _LT_TAGVAR(compiler, $1)=$CC 8601 _LT_CC_BASENAME([$compiler]) 8602 8603 if test -n "$compiler"; then 8604 AC_MSG_CHECKING([if libtool supports shared libraries]) 8605 AC_MSG_RESULT([$can_build_shared]) 8606 8607 AC_MSG_CHECKING([whether to build shared libraries]) 8608 test no = "$can_build_shared" && enable_shared=no 8609 8610 # On AIX, shared libraries and static libraries use the same namespace, and 8611 # are all built from PIC. 8612 case $host_os in 8613 aix3*) 8614 test yes = "$enable_shared" && enable_static=no 8615 if test -n "$RANLIB"; then 8616 archive_cmds="$archive_cmds~\$RANLIB \$lib" 8617 postinstall_cmds='$RANLIB $lib' 8618 fi 8619 ;; 8620 aix[[4-9]]*) 8621 if test ia64 != "$host_cpu"; then 8622 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 8623 yes,aix,yes) ;; # shared object as lib.so file only 8624 yes,svr4,*) ;; # shared object as lib.so archive member only 8625 yes,*) enable_static=no ;; # shared object in lib.a archive as well 8626 esac 8627 fi 8628 ;; 8629 esac 8630 AC_MSG_RESULT([$enable_shared]) 8631 8632 AC_MSG_CHECKING([whether to build static libraries]) 8633 # Make sure either enable_shared or enable_static is yes. 8634 test yes = "$enable_shared" || enable_static=yes 8635 AC_MSG_RESULT([$enable_static]) 8636 8637 _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu 8638 _LT_TAGVAR(LD, $1)=$LD 8639 8640 ## CAVEAT EMPTOR: 8641 ## There is no encapsulation within the following macros, do not change 8642 ## the running order or otherwise move them around unless you know exactly 8643 ## what you are doing... 8644 _LT_SYS_HIDDEN_LIBDEPS($1) 8645 _LT_COMPILER_PIC($1) 8646 _LT_COMPILER_C_O($1) 8647 _LT_COMPILER_FILE_LOCKS($1) 8648 _LT_LINKER_SHLIBS($1) 8649 _LT_SYS_DYNAMIC_LINKER($1) 8650 _LT_LINKER_HARDCODE_LIBPATH($1) 8651 8652 _LT_CONFIG($1) 8653 fi # test -n "$compiler" 8654 8655 GCC=$lt_save_GCC 8656 CC=$lt_save_CC 8657 CFLAGS=$lt_save_CFLAGS 8658fi # test yes != "$_lt_disable_FC" 8659 8660AC_LANG_POP 8661])# _LT_LANG_FC_CONFIG 8662 8663 8664# _LT_LANG_GCJ_CONFIG([TAG]) 8665# -------------------------- 8666# Ensure that the configuration variables for the GNU Java Compiler compiler 8667# are suitably defined. These variables are subsequently used by _LT_CONFIG 8668# to write the compiler configuration to 'libtool'. 8669m4_defun([_LT_LANG_GCJ_CONFIG], 8670[AC_REQUIRE([LT_PROG_GCJ])dnl 8671AC_LANG_SAVE 8672 8673# Source file extension for Java test sources. 8674ac_ext=java 8675 8676# Object file extension for compiled Java test sources. 8677objext=o 8678_LT_TAGVAR(objext, $1)=$objext 8679 8680# Code to be used in simple compile tests 8681lt_simple_compile_test_code="class foo {}" 8682 8683# Code to be used in simple link tests 8684lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 8685 8686# ltmain only uses $CC for tagged configurations so make sure $CC is set. 8687_LT_TAG_COMPILER 8688 8689# save warnings/boilerplate of simple test code 8690_LT_COMPILER_BOILERPLATE 8691_LT_LINKER_BOILERPLATE 8692 8693# Allow CC to be a program name with arguments. 8694lt_save_CC=$CC 8695lt_save_CFLAGS=$CFLAGS 8696lt_save_GCC=$GCC 8697GCC=yes 8698CC=${GCJ-"gcj"} 8699CFLAGS=$GCJFLAGS 8700compiler=$CC 8701_LT_TAGVAR(compiler, $1)=$CC 8702_LT_TAGVAR(LD, $1)=$LD 8703_LT_CC_BASENAME([$compiler]) 8704 8705# GCJ did not exist at the time GCC didn't implicitly link libc in. 8706_LT_TAGVAR(archive_cmds_need_lc, $1)=no 8707 8708_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 8709_LT_TAGVAR(reload_flag, $1)=$reload_flag 8710_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 8711 8712if test -n "$compiler"; then 8713 _LT_COMPILER_NO_RTTI($1) 8714 _LT_COMPILER_PIC($1) 8715 _LT_COMPILER_C_O($1) 8716 _LT_COMPILER_FILE_LOCKS($1) 8717 _LT_LINKER_SHLIBS($1) 8718 _LT_LINKER_HARDCODE_LIBPATH($1) 8719 8720 _LT_CONFIG($1) 8721fi 8722 8723AC_LANG_RESTORE 8724 8725GCC=$lt_save_GCC 8726CC=$lt_save_CC 8727CFLAGS=$lt_save_CFLAGS 8728])# _LT_LANG_GCJ_CONFIG 8729 8730 8731# _LT_LANG_GO_CONFIG([TAG]) 8732# -------------------------- 8733# Ensure that the configuration variables for the GNU Go compiler 8734# are suitably defined. These variables are subsequently used by _LT_CONFIG 8735# to write the compiler configuration to 'libtool'. 8736m4_defun([_LT_LANG_GO_CONFIG], 8737[AC_REQUIRE([LT_PROG_GO])dnl 8738AC_LANG_SAVE 8739 8740# Source file extension for Go test sources. 8741ac_ext=go 8742 8743# Object file extension for compiled Go test sources. 8744objext=o 8745_LT_TAGVAR(objext, $1)=$objext 8746 8747# Code to be used in simple compile tests 8748lt_simple_compile_test_code="package main; func main() { }" 8749 8750# Code to be used in simple link tests 8751lt_simple_link_test_code='package main; func main() { }' 8752 8753# ltmain only uses $CC for tagged configurations so make sure $CC is set. 8754_LT_TAG_COMPILER 8755 8756# save warnings/boilerplate of simple test code 8757_LT_COMPILER_BOILERPLATE 8758_LT_LINKER_BOILERPLATE 8759 8760# Allow CC to be a program name with arguments. 8761lt_save_CC=$CC 8762lt_save_CFLAGS=$CFLAGS 8763lt_save_GCC=$GCC 8764GCC=yes 8765CC=${GOC-"gccgo"} 8766CFLAGS=$GOFLAGS 8767compiler=$CC 8768_LT_TAGVAR(compiler, $1)=$CC 8769_LT_TAGVAR(LD, $1)=$LD 8770_LT_CC_BASENAME([$compiler]) 8771 8772# Go did not exist at the time GCC didn't implicitly link libc in. 8773_LT_TAGVAR(archive_cmds_need_lc, $1)=no 8774 8775_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 8776_LT_TAGVAR(reload_flag, $1)=$reload_flag 8777_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 8778 8779if test -n "$compiler"; then 8780 _LT_COMPILER_NO_RTTI($1) 8781 _LT_COMPILER_PIC($1) 8782 _LT_COMPILER_C_O($1) 8783 _LT_COMPILER_FILE_LOCKS($1) 8784 _LT_LINKER_SHLIBS($1) 8785 _LT_LINKER_HARDCODE_LIBPATH($1) 8786 8787 _LT_CONFIG($1) 8788fi 8789 8790AC_LANG_RESTORE 8791 8792GCC=$lt_save_GCC 8793CC=$lt_save_CC 8794CFLAGS=$lt_save_CFLAGS 8795])# _LT_LANG_GO_CONFIG 8796 8797 8798# _LT_LANG_RC_CONFIG([TAG]) 8799# ------------------------- 8800# Ensure that the configuration variables for the Windows resource compiler 8801# are suitably defined. These variables are subsequently used by _LT_CONFIG 8802# to write the compiler configuration to 'libtool'. 8803m4_defun([_LT_LANG_RC_CONFIG], 8804[AC_REQUIRE([LT_PROG_RC])dnl 8805AC_LANG_SAVE 8806 8807# Source file extension for RC test sources. 8808ac_ext=rc 8809 8810# Object file extension for compiled RC test sources. 8811objext=o 8812_LT_TAGVAR(objext, $1)=$objext 8813 8814# Code to be used in simple compile tests 8815lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 8816 8817# Code to be used in simple link tests 8818lt_simple_link_test_code=$lt_simple_compile_test_code 8819 8820# ltmain only uses $CC for tagged configurations so make sure $CC is set. 8821_LT_TAG_COMPILER 8822 8823# save warnings/boilerplate of simple test code 8824_LT_COMPILER_BOILERPLATE 8825_LT_LINKER_BOILERPLATE 8826 8827# Allow CC to be a program name with arguments. 8828lt_save_CC=$CC 8829lt_save_CFLAGS=$CFLAGS 8830lt_save_GCC=$GCC 8831GCC= 8832CC=${RC-"windres"} 8833CFLAGS= 8834compiler=$CC 8835_LT_TAGVAR(compiler, $1)=$CC 8836_LT_CC_BASENAME([$compiler]) 8837_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 8838 8839if test -n "$compiler"; then 8840 : 8841 _LT_CONFIG($1) 8842fi 8843 8844GCC=$lt_save_GCC 8845AC_LANG_RESTORE 8846CC=$lt_save_CC 8847CFLAGS=$lt_save_CFLAGS 8848])# _LT_LANG_RC_CONFIG 8849 8850 8851# LT_PROG_GCJ 8852# ----------- 8853AC_DEFUN([LT_PROG_GCJ], 8854[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], 8855 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 8856 [AC_CHECK_TOOL(GCJ, gcj,) 8857 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2" 8858 AC_SUBST(GCJFLAGS)])])[]dnl 8859]) 8860 8861# Old name: 8862AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) 8863dnl aclocal-1.4 backwards compatibility: 8864dnl AC_DEFUN([LT_AC_PROG_GCJ], []) 8865 8866 8867# LT_PROG_GO 8868# ---------- 8869AC_DEFUN([LT_PROG_GO], 8870[AC_CHECK_TOOL(GOC, gccgo,) 8871]) 8872 8873 8874# LT_PROG_RC 8875# ---------- 8876AC_DEFUN([LT_PROG_RC], 8877[AC_CHECK_TOOL(RC, windres,) 8878]) 8879 8880# Old name: 8881AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) 8882dnl aclocal-1.4 backwards compatibility: 8883dnl AC_DEFUN([LT_AC_PROG_RC], []) 8884 8885 8886# _LT_DECL_EGREP 8887# -------------- 8888# If we don't have a new enough Autoconf to choose the best grep 8889# available, choose the one first in the user's PATH. 8890m4_defun([_LT_DECL_EGREP], 8891[AC_REQUIRE([AC_PROG_EGREP])dnl 8892AC_REQUIRE([AC_PROG_FGREP])dnl 8893test -z "$GREP" && GREP=grep 8894_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) 8895_LT_DECL([], [EGREP], [1], [An ERE matcher]) 8896_LT_DECL([], [FGREP], [1], [A literal string matcher]) 8897dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too 8898AC_SUBST([GREP]) 8899]) 8900 8901 8902# _LT_DECL_OBJDUMP 8903# -------------- 8904# If we don't have a new enough Autoconf to choose the best objdump 8905# available, choose the one first in the user's PATH. 8906m4_defun([_LT_DECL_OBJDUMP], 8907[AC_CHECK_TOOL(OBJDUMP, objdump, false) 8908test -z "$OBJDUMP" && OBJDUMP=objdump 8909_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) 8910AC_SUBST([OBJDUMP]) 8911]) 8912 8913# _LT_DECL_DLLTOOL 8914# ---------------- 8915# Ensure DLLTOOL variable is set. 8916m4_defun([_LT_DECL_DLLTOOL], 8917[AC_CHECK_TOOL(DLLTOOL, dlltool, false) 8918test -z "$DLLTOOL" && DLLTOOL=dlltool 8919_LT_DECL([], [DLLTOOL], [1], [DLL creation program]) 8920AC_SUBST([DLLTOOL]) 8921]) 8922 8923# _LT_DECL_SED 8924# ------------ 8925# Check for a fully-functional sed program, that truncates 8926# as few characters as possible. Prefer GNU sed if found. 8927m4_defun([_LT_DECL_SED], 8928[AC_PROG_SED 8929test -z "$SED" && SED=sed 8930Xsed="$SED -e 1s/^X//" 8931_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) 8932_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], 8933 [Sed that helps us avoid accidentally triggering echo(1) options like -n]) 8934])# _LT_DECL_SED 8935 8936m4_ifndef([AC_PROG_SED], [ 8937# NOTE: This macro has been submitted for inclusion into # 8938# GNU Autoconf as AC_PROG_SED. When it is available in # 8939# a released version of Autoconf we should remove this # 8940# macro and use it instead. # 8941 8942m4_defun([AC_PROG_SED], 8943[AC_MSG_CHECKING([for a sed that does not truncate output]) 8944AC_CACHE_VAL(lt_cv_path_SED, 8945[# Loop through the user's path and test for sed and gsed. 8946# Then use that list of sed's as ones to test for truncation. 8947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8948for as_dir in $PATH 8949do 8950 IFS=$as_save_IFS 8951 test -z "$as_dir" && as_dir=. 8952 for lt_ac_prog in sed gsed; do 8953 for ac_exec_ext in '' $ac_executable_extensions; do 8954 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 8955 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 8956 fi 8957 done 8958 done 8959done 8960IFS=$as_save_IFS 8961lt_ac_max=0 8962lt_ac_count=0 8963# Add /usr/xpg4/bin/sed as it is typically found on Solaris 8964# along with /bin/sed that truncates output. 8965for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 8966 test ! -f "$lt_ac_sed" && continue 8967 cat /dev/null > conftest.in 8968 lt_ac_count=0 8969 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 8970 # Check for GNU sed and select it if it is found. 8971 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 8972 lt_cv_path_SED=$lt_ac_sed 8973 break 8974 fi 8975 while true; do 8976 cat conftest.in conftest.in >conftest.tmp 8977 mv conftest.tmp conftest.in 8978 cp conftest.in conftest.nl 8979 echo >>conftest.nl 8980 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 8981 cmp -s conftest.out conftest.nl || break 8982 # 10000 chars as input seems more than enough 8983 test 10 -lt "$lt_ac_count" && break 8984 lt_ac_count=`expr $lt_ac_count + 1` 8985 if test "$lt_ac_count" -gt "$lt_ac_max"; then 8986 lt_ac_max=$lt_ac_count 8987 lt_cv_path_SED=$lt_ac_sed 8988 fi 8989 done 8990done 8991]) 8992SED=$lt_cv_path_SED 8993AC_SUBST([SED]) 8994AC_MSG_RESULT([$SED]) 8995])#AC_PROG_SED 8996])#m4_ifndef 8997 8998# Old name: 8999AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) 9000dnl aclocal-1.4 backwards compatibility: 9001dnl AC_DEFUN([LT_AC_PROG_SED], []) 9002 9003 9004# _LT_CHECK_SHELL_FEATURES 9005# ------------------------ 9006# Find out whether the shell is Bourne or XSI compatible, 9007# or has some other useful features. 9008m4_defun([_LT_CHECK_SHELL_FEATURES], 9009[if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 9010 lt_unset=unset 9011else 9012 lt_unset=false 9013fi 9014_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl 9015 9016# test EBCDIC or ASCII 9017case `echo X|tr X '\101'` in 9018 A) # ASCII based system 9019 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 9020 lt_SP2NL='tr \040 \012' 9021 lt_NL2SP='tr \015\012 \040\040' 9022 ;; 9023 *) # EBCDIC based system 9024 lt_SP2NL='tr \100 \n' 9025 lt_NL2SP='tr \r\n \100\100' 9026 ;; 9027esac 9028_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl 9029_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl 9030])# _LT_CHECK_SHELL_FEATURES 9031 9032 9033# _LT_PATH_CONVERSION_FUNCTIONS 9034# ----------------------------- 9035# Determine what file name conversion functions should be used by 9036# func_to_host_file (and, implicitly, by func_to_host_path). These are needed 9037# for certain cross-compile configurations and native mingw. 9038m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], 9039[AC_REQUIRE([AC_CANONICAL_HOST])dnl 9040AC_REQUIRE([AC_CANONICAL_BUILD])dnl 9041AC_MSG_CHECKING([how to convert $build file names to $host format]) 9042AC_CACHE_VAL(lt_cv_to_host_file_cmd, 9043[case $host in 9044 *-*-mingw* ) 9045 case $build in 9046 *-*-mingw* ) # actually msys 9047 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 9048 ;; 9049 *-*-cygwin* ) 9050 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 9051 ;; 9052 * ) # otherwise, assume *nix 9053 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 9054 ;; 9055 esac 9056 ;; 9057 *-*-cygwin* ) 9058 case $build in 9059 *-*-mingw* ) # actually msys 9060 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 9061 ;; 9062 *-*-cygwin* ) 9063 lt_cv_to_host_file_cmd=func_convert_file_noop 9064 ;; 9065 * ) # otherwise, assume *nix 9066 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 9067 ;; 9068 esac 9069 ;; 9070 * ) # unhandled hosts (and "normal" native builds) 9071 lt_cv_to_host_file_cmd=func_convert_file_noop 9072 ;; 9073esac 9074]) 9075to_host_file_cmd=$lt_cv_to_host_file_cmd 9076AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) 9077_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], 9078 [0], [convert $build file names to $host format])dnl 9079 9080AC_MSG_CHECKING([how to convert $build file names to toolchain format]) 9081AC_CACHE_VAL(lt_cv_to_tool_file_cmd, 9082[#assume ordinary cross tools, or native build. 9083lt_cv_to_tool_file_cmd=func_convert_file_noop 9084case $host in 9085 *-*-mingw* ) 9086 case $build in 9087 *-*-mingw* ) # actually msys 9088 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 9089 ;; 9090 esac 9091 ;; 9092esac 9093]) 9094to_tool_file_cmd=$lt_cv_to_tool_file_cmd 9095AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) 9096_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], 9097 [0], [convert $build files to toolchain format])dnl 9098])# _LT_PATH_CONVERSION_FUNCTIONS 9099 9100# Helper functions for option handling. -*- Autoconf -*- 9101# 9102# Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software 9103# Foundation, Inc. 9104# Written by Gary V. Vaughan, 2004 9105# 9106# This file is free software; the Free Software Foundation gives 9107# unlimited permission to copy and/or distribute it, with or without 9108# modifications, as long as this notice is preserved. 9109 9110# serial 8 ltoptions.m4 9111 9112# This is to help aclocal find these macros, as it can't see m4_define. 9113AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) 9114 9115 9116# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) 9117# ------------------------------------------ 9118m4_define([_LT_MANGLE_OPTION], 9119[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) 9120 9121 9122# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) 9123# --------------------------------------- 9124# Set option OPTION-NAME for macro MACRO-NAME, and if there is a 9125# matching handler defined, dispatch to it. Other OPTION-NAMEs are 9126# saved as a flag. 9127m4_define([_LT_SET_OPTION], 9128[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl 9129m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), 9130 _LT_MANGLE_DEFUN([$1], [$2]), 9131 [m4_warning([Unknown $1 option '$2'])])[]dnl 9132]) 9133 9134 9135# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) 9136# ------------------------------------------------------------ 9137# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 9138m4_define([_LT_IF_OPTION], 9139[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) 9140 9141 9142# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) 9143# ------------------------------------------------------- 9144# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME 9145# are set. 9146m4_define([_LT_UNLESS_OPTIONS], 9147[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 9148 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), 9149 [m4_define([$0_found])])])[]dnl 9150m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 9151])[]dnl 9152]) 9153 9154 9155# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) 9156# ---------------------------------------- 9157# OPTION-LIST is a space-separated list of Libtool options associated 9158# with MACRO-NAME. If any OPTION has a matching handler declared with 9159# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about 9160# the unknown option and exit. 9161m4_defun([_LT_SET_OPTIONS], 9162[# Set options 9163m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 9164 [_LT_SET_OPTION([$1], _LT_Option)]) 9165 9166m4_if([$1],[LT_INIT],[ 9167 dnl 9168 dnl Simply set some default values (i.e off) if boolean options were not 9169 dnl specified: 9170 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no 9171 ]) 9172 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no 9173 ]) 9174 dnl 9175 dnl If no reference was made to various pairs of opposing options, then 9176 dnl we run the default mode handler for the pair. For example, if neither 9177 dnl 'shared' nor 'disable-shared' was passed, we enable building of shared 9178 dnl archives by default: 9179 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) 9180 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) 9181 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) 9182 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], 9183 [_LT_ENABLE_FAST_INSTALL]) 9184 _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4], 9185 [_LT_WITH_AIX_SONAME([aix])]) 9186 ]) 9187])# _LT_SET_OPTIONS 9188 9189 9190 9191# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) 9192# ----------------------------------------- 9193m4_define([_LT_MANGLE_DEFUN], 9194[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) 9195 9196 9197# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) 9198# ----------------------------------------------- 9199m4_define([LT_OPTION_DEFINE], 9200[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl 9201])# LT_OPTION_DEFINE 9202 9203 9204# dlopen 9205# ------ 9206LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes 9207]) 9208 9209AU_DEFUN([AC_LIBTOOL_DLOPEN], 9210[_LT_SET_OPTION([LT_INIT], [dlopen]) 9211AC_DIAGNOSE([obsolete], 9212[$0: Remove this warning and the call to _LT_SET_OPTION when you 9213put the 'dlopen' option into LT_INIT's first parameter.]) 9214]) 9215 9216dnl aclocal-1.4 backwards compatibility: 9217dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) 9218 9219 9220# win32-dll 9221# --------- 9222# Declare package support for building win32 dll's. 9223LT_OPTION_DEFINE([LT_INIT], [win32-dll], 9224[enable_win32_dll=yes 9225 9226case $host in 9227*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 9228 AC_CHECK_TOOL(AS, as, false) 9229 AC_CHECK_TOOL(DLLTOOL, dlltool, false) 9230 AC_CHECK_TOOL(OBJDUMP, objdump, false) 9231 ;; 9232esac 9233 9234test -z "$AS" && AS=as 9235_LT_DECL([], [AS], [1], [Assembler program])dnl 9236 9237test -z "$DLLTOOL" && DLLTOOL=dlltool 9238_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl 9239 9240test -z "$OBJDUMP" && OBJDUMP=objdump 9241_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl 9242])# win32-dll 9243 9244AU_DEFUN([AC_LIBTOOL_WIN32_DLL], 9245[AC_REQUIRE([AC_CANONICAL_HOST])dnl 9246_LT_SET_OPTION([LT_INIT], [win32-dll]) 9247AC_DIAGNOSE([obsolete], 9248[$0: Remove this warning and the call to _LT_SET_OPTION when you 9249put the 'win32-dll' option into LT_INIT's first parameter.]) 9250]) 9251 9252dnl aclocal-1.4 backwards compatibility: 9253dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) 9254 9255 9256# _LT_ENABLE_SHARED([DEFAULT]) 9257# ---------------------------- 9258# implement the --enable-shared flag, and supports the 'shared' and 9259# 'disable-shared' LT_INIT options. 9260# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 9261m4_define([_LT_ENABLE_SHARED], 9262[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl 9263AC_ARG_ENABLE([shared], 9264 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 9265 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], 9266 [p=${PACKAGE-default} 9267 case $enableval in 9268 yes) enable_shared=yes ;; 9269 no) enable_shared=no ;; 9270 *) 9271 enable_shared=no 9272 # Look at the argument we got. We use all the common list separators. 9273 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9274 for pkg in $enableval; do 9275 IFS=$lt_save_ifs 9276 if test "X$pkg" = "X$p"; then 9277 enable_shared=yes 9278 fi 9279 done 9280 IFS=$lt_save_ifs 9281 ;; 9282 esac], 9283 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) 9284 9285 _LT_DECL([build_libtool_libs], [enable_shared], [0], 9286 [Whether or not to build shared libraries]) 9287])# _LT_ENABLE_SHARED 9288 9289LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) 9290LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) 9291 9292# Old names: 9293AC_DEFUN([AC_ENABLE_SHARED], 9294[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) 9295]) 9296 9297AC_DEFUN([AC_DISABLE_SHARED], 9298[_LT_SET_OPTION([LT_INIT], [disable-shared]) 9299]) 9300 9301AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 9302AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 9303 9304dnl aclocal-1.4 backwards compatibility: 9305dnl AC_DEFUN([AM_ENABLE_SHARED], []) 9306dnl AC_DEFUN([AM_DISABLE_SHARED], []) 9307 9308 9309 9310# _LT_ENABLE_STATIC([DEFAULT]) 9311# ---------------------------- 9312# implement the --enable-static flag, and support the 'static' and 9313# 'disable-static' LT_INIT options. 9314# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 9315m4_define([_LT_ENABLE_STATIC], 9316[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl 9317AC_ARG_ENABLE([static], 9318 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], 9319 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], 9320 [p=${PACKAGE-default} 9321 case $enableval in 9322 yes) enable_static=yes ;; 9323 no) enable_static=no ;; 9324 *) 9325 enable_static=no 9326 # Look at the argument we got. We use all the common list separators. 9327 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9328 for pkg in $enableval; do 9329 IFS=$lt_save_ifs 9330 if test "X$pkg" = "X$p"; then 9331 enable_static=yes 9332 fi 9333 done 9334 IFS=$lt_save_ifs 9335 ;; 9336 esac], 9337 [enable_static=]_LT_ENABLE_STATIC_DEFAULT) 9338 9339 _LT_DECL([build_old_libs], [enable_static], [0], 9340 [Whether or not to build static libraries]) 9341])# _LT_ENABLE_STATIC 9342 9343LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) 9344LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) 9345 9346# Old names: 9347AC_DEFUN([AC_ENABLE_STATIC], 9348[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) 9349]) 9350 9351AC_DEFUN([AC_DISABLE_STATIC], 9352[_LT_SET_OPTION([LT_INIT], [disable-static]) 9353]) 9354 9355AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 9356AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 9357 9358dnl aclocal-1.4 backwards compatibility: 9359dnl AC_DEFUN([AM_ENABLE_STATIC], []) 9360dnl AC_DEFUN([AM_DISABLE_STATIC], []) 9361 9362 9363 9364# _LT_ENABLE_FAST_INSTALL([DEFAULT]) 9365# ---------------------------------- 9366# implement the --enable-fast-install flag, and support the 'fast-install' 9367# and 'disable-fast-install' LT_INIT options. 9368# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 9369m4_define([_LT_ENABLE_FAST_INSTALL], 9370[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl 9371AC_ARG_ENABLE([fast-install], 9372 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 9373 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 9374 [p=${PACKAGE-default} 9375 case $enableval in 9376 yes) enable_fast_install=yes ;; 9377 no) enable_fast_install=no ;; 9378 *) 9379 enable_fast_install=no 9380 # Look at the argument we got. We use all the common list separators. 9381 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9382 for pkg in $enableval; do 9383 IFS=$lt_save_ifs 9384 if test "X$pkg" = "X$p"; then 9385 enable_fast_install=yes 9386 fi 9387 done 9388 IFS=$lt_save_ifs 9389 ;; 9390 esac], 9391 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) 9392 9393_LT_DECL([fast_install], [enable_fast_install], [0], 9394 [Whether or not to optimize for fast installation])dnl 9395])# _LT_ENABLE_FAST_INSTALL 9396 9397LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) 9398LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) 9399 9400# Old names: 9401AU_DEFUN([AC_ENABLE_FAST_INSTALL], 9402[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) 9403AC_DIAGNOSE([obsolete], 9404[$0: Remove this warning and the call to _LT_SET_OPTION when you put 9405the 'fast-install' option into LT_INIT's first parameter.]) 9406]) 9407 9408AU_DEFUN([AC_DISABLE_FAST_INSTALL], 9409[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) 9410AC_DIAGNOSE([obsolete], 9411[$0: Remove this warning and the call to _LT_SET_OPTION when you put 9412the 'disable-fast-install' option into LT_INIT's first parameter.]) 9413]) 9414 9415dnl aclocal-1.4 backwards compatibility: 9416dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) 9417dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) 9418 9419 9420# _LT_WITH_AIX_SONAME([DEFAULT]) 9421# ---------------------------------- 9422# implement the --with-aix-soname flag, and support the `aix-soname=aix' 9423# and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT 9424# is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'. 9425m4_define([_LT_WITH_AIX_SONAME], 9426[m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl 9427shared_archive_member_spec= 9428case $host,$enable_shared in 9429power*-*-aix[[5-9]]*,yes) 9430 AC_MSG_CHECKING([which variant of shared library versioning to provide]) 9431 AC_ARG_WITH([aix-soname], 9432 [AS_HELP_STRING([--with-aix-soname=aix|svr4|both], 9433 [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])], 9434 [case $withval in 9435 aix|svr4|both) 9436 ;; 9437 *) 9438 AC_MSG_ERROR([Unknown argument to --with-aix-soname]) 9439 ;; 9440 esac 9441 lt_cv_with_aix_soname=$with_aix_soname], 9442 [AC_CACHE_VAL([lt_cv_with_aix_soname], 9443 [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT) 9444 with_aix_soname=$lt_cv_with_aix_soname]) 9445 AC_MSG_RESULT([$with_aix_soname]) 9446 if test aix != "$with_aix_soname"; then 9447 # For the AIX way of multilib, we name the shared archive member 9448 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9449 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9450 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9451 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9452 if test 64 = "${OBJECT_MODE-32}"; then 9453 shared_archive_member_spec=shr_64 9454 else 9455 shared_archive_member_spec=shr 9456 fi 9457 fi 9458 ;; 9459*) 9460 with_aix_soname=aix 9461 ;; 9462esac 9463 9464_LT_DECL([], [shared_archive_member_spec], [0], 9465 [Shared archive member basename, for filename based shared library versioning on AIX])dnl 9466])# _LT_WITH_AIX_SONAME 9467 9468LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])]) 9469LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])]) 9470LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])]) 9471 9472 9473# _LT_WITH_PIC([MODE]) 9474# -------------------- 9475# implement the --with-pic flag, and support the 'pic-only' and 'no-pic' 9476# LT_INIT options. 9477# MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'. 9478m4_define([_LT_WITH_PIC], 9479[AC_ARG_WITH([pic], 9480 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], 9481 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 9482 [lt_p=${PACKAGE-default} 9483 case $withval in 9484 yes|no) pic_mode=$withval ;; 9485 *) 9486 pic_mode=default 9487 # Look at the argument we got. We use all the common list separators. 9488 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9489 for lt_pkg in $withval; do 9490 IFS=$lt_save_ifs 9491 if test "X$lt_pkg" = "X$lt_p"; then 9492 pic_mode=yes 9493 fi 9494 done 9495 IFS=$lt_save_ifs 9496 ;; 9497 esac], 9498 [pic_mode=m4_default([$1], [default])]) 9499 9500_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl 9501])# _LT_WITH_PIC 9502 9503LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) 9504LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) 9505 9506# Old name: 9507AU_DEFUN([AC_LIBTOOL_PICMODE], 9508[_LT_SET_OPTION([LT_INIT], [pic-only]) 9509AC_DIAGNOSE([obsolete], 9510[$0: Remove this warning and the call to _LT_SET_OPTION when you 9511put the 'pic-only' option into LT_INIT's first parameter.]) 9512]) 9513 9514dnl aclocal-1.4 backwards compatibility: 9515dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) 9516 9517 9518m4_define([_LTDL_MODE], []) 9519LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], 9520 [m4_define([_LTDL_MODE], [nonrecursive])]) 9521LT_OPTION_DEFINE([LTDL_INIT], [recursive], 9522 [m4_define([_LTDL_MODE], [recursive])]) 9523LT_OPTION_DEFINE([LTDL_INIT], [subproject], 9524 [m4_define([_LTDL_MODE], [subproject])]) 9525 9526m4_define([_LTDL_TYPE], []) 9527LT_OPTION_DEFINE([LTDL_INIT], [installable], 9528 [m4_define([_LTDL_TYPE], [installable])]) 9529LT_OPTION_DEFINE([LTDL_INIT], [convenience], 9530 [m4_define([_LTDL_TYPE], [convenience])]) 9531 9532# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- 9533# 9534# Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software 9535# Foundation, Inc. 9536# Written by Gary V. Vaughan, 2004 9537# 9538# This file is free software; the Free Software Foundation gives 9539# unlimited permission to copy and/or distribute it, with or without 9540# modifications, as long as this notice is preserved. 9541 9542# serial 6 ltsugar.m4 9543 9544# This is to help aclocal find these macros, as it can't see m4_define. 9545AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) 9546 9547 9548# lt_join(SEP, ARG1, [ARG2...]) 9549# ----------------------------- 9550# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their 9551# associated separator. 9552# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier 9553# versions in m4sugar had bugs. 9554m4_define([lt_join], 9555[m4_if([$#], [1], [], 9556 [$#], [2], [[$2]], 9557 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) 9558m4_define([_lt_join], 9559[m4_if([$#$2], [2], [], 9560 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) 9561 9562 9563# lt_car(LIST) 9564# lt_cdr(LIST) 9565# ------------ 9566# Manipulate m4 lists. 9567# These macros are necessary as long as will still need to support 9568# Autoconf-2.59, which quotes differently. 9569m4_define([lt_car], [[$1]]) 9570m4_define([lt_cdr], 9571[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], 9572 [$#], 1, [], 9573 [m4_dquote(m4_shift($@))])]) 9574m4_define([lt_unquote], $1) 9575 9576 9577# lt_append(MACRO-NAME, STRING, [SEPARATOR]) 9578# ------------------------------------------ 9579# Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'. 9580# Note that neither SEPARATOR nor STRING are expanded; they are appended 9581# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). 9582# No SEPARATOR is output if MACRO-NAME was previously undefined (different 9583# than defined and empty). 9584# 9585# This macro is needed until we can rely on Autoconf 2.62, since earlier 9586# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. 9587m4_define([lt_append], 9588[m4_define([$1], 9589 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) 9590 9591 9592 9593# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) 9594# ---------------------------------------------------------- 9595# Produce a SEP delimited list of all paired combinations of elements of 9596# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list 9597# has the form PREFIXmINFIXSUFFIXn. 9598# Needed until we can rely on m4_combine added in Autoconf 2.62. 9599m4_define([lt_combine], 9600[m4_if(m4_eval([$# > 3]), [1], 9601 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl 9602[[m4_foreach([_Lt_prefix], [$2], 9603 [m4_foreach([_Lt_suffix], 9604 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, 9605 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) 9606 9607 9608# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) 9609# ----------------------------------------------------------------------- 9610# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited 9611# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. 9612m4_define([lt_if_append_uniq], 9613[m4_ifdef([$1], 9614 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], 9615 [lt_append([$1], [$2], [$3])$4], 9616 [$5])], 9617 [lt_append([$1], [$2], [$3])$4])]) 9618 9619 9620# lt_dict_add(DICT, KEY, VALUE) 9621# ----------------------------- 9622m4_define([lt_dict_add], 9623[m4_define([$1($2)], [$3])]) 9624 9625 9626# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) 9627# -------------------------------------------- 9628m4_define([lt_dict_add_subkey], 9629[m4_define([$1($2:$3)], [$4])]) 9630 9631 9632# lt_dict_fetch(DICT, KEY, [SUBKEY]) 9633# ---------------------------------- 9634m4_define([lt_dict_fetch], 9635[m4_ifval([$3], 9636 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), 9637 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) 9638 9639 9640# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) 9641# ----------------------------------------------------------------- 9642m4_define([lt_if_dict_fetch], 9643[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], 9644 [$5], 9645 [$6])]) 9646 9647 9648# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) 9649# -------------------------------------------------------------- 9650m4_define([lt_dict_filter], 9651[m4_if([$5], [], [], 9652 [lt_join(m4_quote(m4_default([$4], [[, ]])), 9653 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), 9654 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl 9655]) 9656 9657# ltversion.m4 -- version numbers -*- Autoconf -*- 9658# 9659# Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc. 9660# Written by Scott James Remnant, 2004 9661# 9662# This file is free software; the Free Software Foundation gives 9663# unlimited permission to copy and/or distribute it, with or without 9664# modifications, as long as this notice is preserved. 9665 9666# @configure_input@ 9667 9668# serial 4179 ltversion.m4 9669# This file is part of GNU Libtool 9670 9671m4_define([LT_PACKAGE_VERSION], [2.4.6]) 9672m4_define([LT_PACKAGE_REVISION], [2.4.6]) 9673 9674AC_DEFUN([LTVERSION_VERSION], 9675[macro_version='2.4.6' 9676macro_revision='2.4.6' 9677_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 9678_LT_DECL(, macro_revision, 0) 9679]) 9680 9681# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- 9682# 9683# Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software 9684# Foundation, Inc. 9685# Written by Scott James Remnant, 2004. 9686# 9687# This file is free software; the Free Software Foundation gives 9688# unlimited permission to copy and/or distribute it, with or without 9689# modifications, as long as this notice is preserved. 9690 9691# serial 5 lt~obsolete.m4 9692 9693# These exist entirely to fool aclocal when bootstrapping libtool. 9694# 9695# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN), 9696# which have later been changed to m4_define as they aren't part of the 9697# exported API, or moved to Autoconf or Automake where they belong. 9698# 9699# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN 9700# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us 9701# using a macro with the same name in our local m4/libtool.m4 it'll 9702# pull the old libtool.m4 in (it doesn't see our shiny new m4_define 9703# and doesn't know about Autoconf macros at all.) 9704# 9705# So we provide this file, which has a silly filename so it's always 9706# included after everything else. This provides aclocal with the 9707# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything 9708# because those macros already exist, or will be overwritten later. 9709# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 9710# 9711# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. 9712# Yes, that means every name once taken will need to remain here until 9713# we give up compatibility with versions before 1.7, at which point 9714# we need to keep only those names which we still refer to. 9715 9716# This is to help aclocal find these macros, as it can't see m4_define. 9717AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) 9718 9719m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) 9720m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) 9721m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) 9722m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) 9723m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) 9724m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) 9725m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) 9726m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) 9727m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) 9728m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) 9729m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) 9730m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) 9731m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) 9732m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) 9733m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) 9734m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) 9735m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) 9736m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) 9737m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) 9738m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) 9739m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) 9740m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) 9741m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) 9742m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) 9743m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) 9744m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) 9745m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) 9746m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) 9747m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) 9748m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) 9749m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) 9750m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) 9751m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) 9752m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) 9753m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) 9754m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) 9755m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) 9756m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) 9757m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) 9758m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) 9759m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) 9760m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) 9761m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) 9762m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) 9763m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) 9764m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) 9765m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) 9766m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) 9767m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) 9768m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) 9769m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) 9770m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) 9771m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) 9772m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) 9773m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) 9774m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) 9775m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) 9776m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) 9777m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) 9778m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) 9779m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) 9780 9781# nls.m4 serial 5 (gettext-0.18) 9782dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014, 2016 Free Software 9783dnl Foundation, Inc. 9784dnl This file is free software; the Free Software Foundation 9785dnl gives unlimited permission to copy and/or distribute it, 9786dnl with or without modifications, as long as this notice is preserved. 9787dnl 9788dnl This file can be used in projects which are not available under 9789dnl the GNU General Public License or the GNU Library General Public 9790dnl License but which still want to provide support for the GNU gettext 9791dnl functionality. 9792dnl Please note that the actual code of the GNU gettext library is covered 9793dnl by the GNU Library General Public License, and the rest of the GNU 9794dnl gettext package is covered by the GNU General Public License. 9795dnl They are *not* in the public domain. 9796 9797dnl Authors: 9798dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. 9799dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. 9800 9801AC_PREREQ([2.50]) 9802 9803AC_DEFUN([AM_NLS], 9804[ 9805 AC_MSG_CHECKING([whether NLS is requested]) 9806 dnl Default is enabled NLS 9807 AC_ARG_ENABLE([nls], 9808 [ --disable-nls do not use Native Language Support], 9809 USE_NLS=$enableval, USE_NLS=yes) 9810 AC_MSG_RESULT([$USE_NLS]) 9811 AC_SUBST([USE_NLS]) 9812]) 9813 9814dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 9815dnl serial 11 (pkg-config-0.29) 9816dnl 9817dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 9818dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com> 9819dnl 9820dnl This program is free software; you can redistribute it and/or modify 9821dnl it under the terms of the GNU General Public License as published by 9822dnl the Free Software Foundation; either version 2 of the License, or 9823dnl (at your option) any later version. 9824dnl 9825dnl This program is distributed in the hope that it will be useful, but 9826dnl WITHOUT ANY WARRANTY; without even the implied warranty of 9827dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9828dnl General Public License for more details. 9829dnl 9830dnl You should have received a copy of the GNU General Public License 9831dnl along with this program; if not, write to the Free Software 9832dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 9833dnl 02111-1307, USA. 9834dnl 9835dnl As a special exception to the GNU General Public License, if you 9836dnl distribute this file as part of a program that contains a 9837dnl configuration script generated by Autoconf, you may include it under 9838dnl the same distribution terms that you use for the rest of that 9839dnl program. 9840 9841dnl PKG_PREREQ(MIN-VERSION) 9842dnl ----------------------- 9843dnl Since: 0.29 9844dnl 9845dnl Verify that the version of the pkg-config macros are at least 9846dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's 9847dnl installed version of pkg-config, this checks the developer's version 9848dnl of pkg.m4 when generating configure. 9849dnl 9850dnl To ensure that this macro is defined, also add: 9851dnl m4_ifndef([PKG_PREREQ], 9852dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])]) 9853dnl 9854dnl See the "Since" comment for each macro you use to see what version 9855dnl of the macros you require. 9856m4_defun([PKG_PREREQ], 9857[m4_define([PKG_MACROS_VERSION], [0.29]) 9858m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, 9859 [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) 9860])dnl PKG_PREREQ 9861 9862dnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) 9863dnl ---------------------------------- 9864dnl Since: 0.16 9865dnl 9866dnl Search for the pkg-config tool and set the PKG_CONFIG variable to 9867dnl first found in the path. Checks that the version of pkg-config found 9868dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is 9869dnl used since that's the first version where most current features of 9870dnl pkg-config existed. 9871AC_DEFUN([PKG_PROG_PKG_CONFIG], 9872[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) 9873m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) 9874m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) 9875AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) 9876AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) 9877AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) 9878 9879if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 9880 AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) 9881fi 9882if test -n "$PKG_CONFIG"; then 9883 _pkg_min_version=m4_default([$1], [0.9.0]) 9884 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) 9885 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 9886 AC_MSG_RESULT([yes]) 9887 else 9888 AC_MSG_RESULT([no]) 9889 PKG_CONFIG="" 9890 fi 9891fi[]dnl 9892])dnl PKG_PROG_PKG_CONFIG 9893 9894dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 9895dnl ------------------------------------------------------------------- 9896dnl Since: 0.18 9897dnl 9898dnl Check to see whether a particular set of modules exists. Similar to 9899dnl PKG_CHECK_MODULES(), but does not set variables or print errors. 9900dnl 9901dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 9902dnl only at the first occurence in configure.ac, so if the first place 9903dnl it's called might be skipped (such as if it is within an "if", you 9904dnl have to call PKG_CHECK_EXISTS manually 9905AC_DEFUN([PKG_CHECK_EXISTS], 9906[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 9907if test -n "$PKG_CONFIG" && \ 9908 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then 9909 m4_default([$2], [:]) 9910m4_ifvaln([$3], [else 9911 $3])dnl 9912fi]) 9913 9914dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 9915dnl --------------------------------------------- 9916dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting 9917dnl pkg_failed based on the result. 9918m4_define([_PKG_CONFIG], 9919[if test -n "$$1"; then 9920 pkg_cv_[]$1="$$1" 9921 elif test -n "$PKG_CONFIG"; then 9922 PKG_CHECK_EXISTS([$3], 9923 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` 9924 test "x$?" != "x0" && pkg_failed=yes ], 9925 [pkg_failed=yes]) 9926 else 9927 pkg_failed=untried 9928fi[]dnl 9929])dnl _PKG_CONFIG 9930 9931dnl _PKG_SHORT_ERRORS_SUPPORTED 9932dnl --------------------------- 9933dnl Internal check to see if pkg-config supports short errors. 9934AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], 9935[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 9936if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 9937 _pkg_short_errors_supported=yes 9938else 9939 _pkg_short_errors_supported=no 9940fi[]dnl 9941])dnl _PKG_SHORT_ERRORS_SUPPORTED 9942 9943 9944dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 9945dnl [ACTION-IF-NOT-FOUND]) 9946dnl -------------------------------------------------------------- 9947dnl Since: 0.4.0 9948dnl 9949dnl Note that if there is a possibility the first call to 9950dnl PKG_CHECK_MODULES might not happen, you should be sure to include an 9951dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 9952AC_DEFUN([PKG_CHECK_MODULES], 9953[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 9954AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl 9955AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl 9956 9957pkg_failed=no 9958AC_MSG_CHECKING([for $1]) 9959 9960_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) 9961_PKG_CONFIG([$1][_LIBS], [libs], [$2]) 9962 9963m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS 9964and $1[]_LIBS to avoid the need to call pkg-config. 9965See the pkg-config man page for more details.]) 9966 9967if test $pkg_failed = yes; then 9968 AC_MSG_RESULT([no]) 9969 _PKG_SHORT_ERRORS_SUPPORTED 9970 if test $_pkg_short_errors_supported = yes; then 9971 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` 9972 else 9973 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` 9974 fi 9975 # Put the nasty error message in config.log where it belongs 9976 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD 9977 9978 m4_default([$4], [AC_MSG_ERROR( 9979[Package requirements ($2) were not met: 9980 9981$$1_PKG_ERRORS 9982 9983Consider adjusting the PKG_CONFIG_PATH environment variable if you 9984installed software in a non-standard prefix. 9985 9986_PKG_TEXT])[]dnl 9987 ]) 9988elif test $pkg_failed = untried; then 9989 AC_MSG_RESULT([no]) 9990 m4_default([$4], [AC_MSG_FAILURE( 9991[The pkg-config script could not be found or is too old. Make sure it 9992is in your PATH or set the PKG_CONFIG environment variable to the full 9993path to pkg-config. 9994 9995_PKG_TEXT 9996 9997To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl 9998 ]) 9999else 10000 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS 10001 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS 10002 AC_MSG_RESULT([yes]) 10003 $3 10004fi[]dnl 10005])dnl PKG_CHECK_MODULES 10006 10007 10008dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 10009dnl [ACTION-IF-NOT-FOUND]) 10010dnl --------------------------------------------------------------------- 10011dnl Since: 0.29 10012dnl 10013dnl Checks for existence of MODULES and gathers its build flags with 10014dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags 10015dnl and VARIABLE-PREFIX_LIBS from --libs. 10016dnl 10017dnl Note that if there is a possibility the first call to 10018dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to 10019dnl include an explicit call to PKG_PROG_PKG_CONFIG in your 10020dnl configure.ac. 10021AC_DEFUN([PKG_CHECK_MODULES_STATIC], 10022[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 10023_save_PKG_CONFIG=$PKG_CONFIG 10024PKG_CONFIG="$PKG_CONFIG --static" 10025PKG_CHECK_MODULES($@) 10026PKG_CONFIG=$_save_PKG_CONFIG[]dnl 10027])dnl PKG_CHECK_MODULES_STATIC 10028 10029 10030dnl PKG_INSTALLDIR([DIRECTORY]) 10031dnl ------------------------- 10032dnl Since: 0.27 10033dnl 10034dnl Substitutes the variable pkgconfigdir as the location where a module 10035dnl should install pkg-config .pc files. By default the directory is 10036dnl $libdir/pkgconfig, but the default can be changed by passing 10037dnl DIRECTORY. The user can override through the --with-pkgconfigdir 10038dnl parameter. 10039AC_DEFUN([PKG_INSTALLDIR], 10040[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) 10041m4_pushdef([pkg_description], 10042 [pkg-config installation directory @<:@]pkg_default[@:>@]) 10043AC_ARG_WITH([pkgconfigdir], 10044 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, 10045 [with_pkgconfigdir=]pkg_default) 10046AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) 10047m4_popdef([pkg_default]) 10048m4_popdef([pkg_description]) 10049])dnl PKG_INSTALLDIR 10050 10051 10052dnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) 10053dnl -------------------------------- 10054dnl Since: 0.27 10055dnl 10056dnl Substitutes the variable noarch_pkgconfigdir as the location where a 10057dnl module should install arch-independent pkg-config .pc files. By 10058dnl default the directory is $datadir/pkgconfig, but the default can be 10059dnl changed by passing DIRECTORY. The user can override through the 10060dnl --with-noarch-pkgconfigdir parameter. 10061AC_DEFUN([PKG_NOARCH_INSTALLDIR], 10062[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) 10063m4_pushdef([pkg_description], 10064 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) 10065AC_ARG_WITH([noarch-pkgconfigdir], 10066 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, 10067 [with_noarch_pkgconfigdir=]pkg_default) 10068AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) 10069m4_popdef([pkg_default]) 10070m4_popdef([pkg_description]) 10071])dnl PKG_NOARCH_INSTALLDIR 10072 10073 10074dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, 10075dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 10076dnl ------------------------------------------- 10077dnl Since: 0.28 10078dnl 10079dnl Retrieves the value of the pkg-config variable for the given module. 10080AC_DEFUN([PKG_CHECK_VAR], 10081[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 10082AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl 10083 10084_PKG_CONFIG([$1], [variable="][$3]["], [$2]) 10085AS_VAR_COPY([$1], [pkg_cv_][$1]) 10086 10087AS_VAR_IF([$1], [""], [$5], [$4])dnl 10088])dnl PKG_CHECK_VAR 10089 10090# Copyright (C) 2002-2014 Free Software Foundation, Inc. 10091# 10092# This file is free software; the Free Software Foundation 10093# gives unlimited permission to copy and/or distribute it, 10094# with or without modifications, as long as this notice is preserved. 10095 10096# AM_AUTOMAKE_VERSION(VERSION) 10097# ---------------------------- 10098# Automake X.Y traces this macro to ensure aclocal.m4 has been 10099# generated from the m4 files accompanying Automake X.Y. 10100# (This private macro should not be called outside this file.) 10101AC_DEFUN([AM_AUTOMAKE_VERSION], 10102[am__api_version='1.15' 10103dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 10104dnl require some minimum version. Point them to the right macro. 10105m4_if([$1], [1.15], [], 10106 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 10107]) 10108 10109# _AM_AUTOCONF_VERSION(VERSION) 10110# ----------------------------- 10111# aclocal traces this macro to find the Autoconf version. 10112# This is a private macro too. Using m4_define simplifies 10113# the logic in aclocal, which can simply ignore this definition. 10114m4_define([_AM_AUTOCONF_VERSION], []) 10115 10116# AM_SET_CURRENT_AUTOMAKE_VERSION 10117# ------------------------------- 10118# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 10119# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 10120AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 10121[AM_AUTOMAKE_VERSION([1.15])dnl 10122m4_ifndef([AC_AUTOCONF_VERSION], 10123 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 10124_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 10125 10126# AM_AUX_DIR_EXPAND -*- Autoconf -*- 10127 10128# Copyright (C) 2001-2014 Free Software Foundation, Inc. 10129# 10130# This file is free software; the Free Software Foundation 10131# gives unlimited permission to copy and/or distribute it, 10132# with or without modifications, as long as this notice is preserved. 10133 10134# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 10135# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to 10136# '$srcdir', '$srcdir/..', or '$srcdir/../..'. 10137# 10138# Of course, Automake must honor this variable whenever it calls a 10139# tool from the auxiliary directory. The problem is that $srcdir (and 10140# therefore $ac_aux_dir as well) can be either absolute or relative, 10141# depending on how configure is run. This is pretty annoying, since 10142# it makes $ac_aux_dir quite unusable in subdirectories: in the top 10143# source directory, any form will work fine, but in subdirectories a 10144# relative path needs to be adjusted first. 10145# 10146# $ac_aux_dir/missing 10147# fails when called from a subdirectory if $ac_aux_dir is relative 10148# $top_srcdir/$ac_aux_dir/missing 10149# fails if $ac_aux_dir is absolute, 10150# fails when called from a subdirectory in a VPATH build with 10151# a relative $ac_aux_dir 10152# 10153# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 10154# are both prefixed by $srcdir. In an in-source build this is usually 10155# harmless because $srcdir is '.', but things will broke when you 10156# start a VPATH build or use an absolute $srcdir. 10157# 10158# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 10159# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 10160# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 10161# and then we would define $MISSING as 10162# MISSING="\${SHELL} $am_aux_dir/missing" 10163# This will work as long as MISSING is not called from configure, because 10164# unfortunately $(top_srcdir) has no meaning in configure. 10165# However there are other variables, like CC, which are often used in 10166# configure, and could therefore not use this "fixed" $ac_aux_dir. 10167# 10168# Another solution, used here, is to always expand $ac_aux_dir to an 10169# absolute PATH. The drawback is that using absolute paths prevent a 10170# configured tree to be moved without reconfiguration. 10171 10172AC_DEFUN([AM_AUX_DIR_EXPAND], 10173[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 10174# Expand $ac_aux_dir to an absolute path. 10175am_aux_dir=`cd "$ac_aux_dir" && pwd` 10176]) 10177 10178# AM_CONDITIONAL -*- Autoconf -*- 10179 10180# Copyright (C) 1997-2014 Free Software Foundation, Inc. 10181# 10182# This file is free software; the Free Software Foundation 10183# gives unlimited permission to copy and/or distribute it, 10184# with or without modifications, as long as this notice is preserved. 10185 10186# AM_CONDITIONAL(NAME, SHELL-CONDITION) 10187# ------------------------------------- 10188# Define a conditional. 10189AC_DEFUN([AM_CONDITIONAL], 10190[AC_PREREQ([2.52])dnl 10191 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 10192 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 10193AC_SUBST([$1_TRUE])dnl 10194AC_SUBST([$1_FALSE])dnl 10195_AM_SUBST_NOTMAKE([$1_TRUE])dnl 10196_AM_SUBST_NOTMAKE([$1_FALSE])dnl 10197m4_define([_AM_COND_VALUE_$1], [$2])dnl 10198if $2; then 10199 $1_TRUE= 10200 $1_FALSE='#' 10201else 10202 $1_TRUE='#' 10203 $1_FALSE= 10204fi 10205AC_CONFIG_COMMANDS_PRE( 10206[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 10207 AC_MSG_ERROR([[conditional "$1" was never defined. 10208Usually this means the macro was only invoked conditionally.]]) 10209fi])]) 10210 10211# Copyright (C) 1999-2014 Free Software Foundation, Inc. 10212# 10213# This file is free software; the Free Software Foundation 10214# gives unlimited permission to copy and/or distribute it, 10215# with or without modifications, as long as this notice is preserved. 10216 10217 10218# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be 10219# written in clear, in which case automake, when reading aclocal.m4, 10220# will think it sees a *use*, and therefore will trigger all it's 10221# C support machinery. Also note that it means that autoscan, seeing 10222# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 10223 10224 10225# _AM_DEPENDENCIES(NAME) 10226# ---------------------- 10227# See how the compiler implements dependency checking. 10228# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". 10229# We try a few techniques and use that to set a single cache variable. 10230# 10231# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 10232# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 10233# dependency, and given that the user is not expected to run this macro, 10234# just rely on AC_PROG_CC. 10235AC_DEFUN([_AM_DEPENDENCIES], 10236[AC_REQUIRE([AM_SET_DEPDIR])dnl 10237AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 10238AC_REQUIRE([AM_MAKE_INCLUDE])dnl 10239AC_REQUIRE([AM_DEP_TRACK])dnl 10240 10241m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], 10242 [$1], [CXX], [depcc="$CXX" am_compiler_list=], 10243 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 10244 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], 10245 [$1], [UPC], [depcc="$UPC" am_compiler_list=], 10246 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 10247 [depcc="$$1" am_compiler_list=]) 10248 10249AC_CACHE_CHECK([dependency style of $depcc], 10250 [am_cv_$1_dependencies_compiler_type], 10251[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 10252 # We make a subdir and do the tests there. Otherwise we can end up 10253 # making bogus files that we don't know about and never remove. For 10254 # instance it was reported that on HP-UX the gcc test will end up 10255 # making a dummy file named 'D' -- because '-MD' means "put the output 10256 # in D". 10257 rm -rf conftest.dir 10258 mkdir conftest.dir 10259 # Copy depcomp to subdir because otherwise we won't find it if we're 10260 # using a relative directory. 10261 cp "$am_depcomp" conftest.dir 10262 cd conftest.dir 10263 # We will build objects and dependencies in a subdirectory because 10264 # it helps to detect inapplicable dependency modes. For instance 10265 # both Tru64's cc and ICC support -MD to output dependencies as a 10266 # side effect of compilation, but ICC will put the dependencies in 10267 # the current directory while Tru64 will put them in the object 10268 # directory. 10269 mkdir sub 10270 10271 am_cv_$1_dependencies_compiler_type=none 10272 if test "$am_compiler_list" = ""; then 10273 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 10274 fi 10275 am__universal=false 10276 m4_case([$1], [CC], 10277 [case " $depcc " in #( 10278 *\ -arch\ *\ -arch\ *) am__universal=true ;; 10279 esac], 10280 [CXX], 10281 [case " $depcc " in #( 10282 *\ -arch\ *\ -arch\ *) am__universal=true ;; 10283 esac]) 10284 10285 for depmode in $am_compiler_list; do 10286 # Setup a source with many dependencies, because some compilers 10287 # like to wrap large dependency lists on column 80 (with \), and 10288 # we should not choose a depcomp mode which is confused by this. 10289 # 10290 # We need to recreate these files for each test, as the compiler may 10291 # overwrite some of them when testing with obscure command lines. 10292 # This happens at least with the AIX C compiler. 10293 : > sub/conftest.c 10294 for i in 1 2 3 4 5 6; do 10295 echo '#include "conftst'$i'.h"' >> sub/conftest.c 10296 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 10297 # Solaris 10 /bin/sh. 10298 echo '/* dummy */' > sub/conftst$i.h 10299 done 10300 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 10301 10302 # We check with '-c' and '-o' for the sake of the "dashmstdout" 10303 # mode. It turns out that the SunPro C++ compiler does not properly 10304 # handle '-M -o', and we need to detect this. Also, some Intel 10305 # versions had trouble with output in subdirs. 10306 am__obj=sub/conftest.${OBJEXT-o} 10307 am__minus_obj="-o $am__obj" 10308 case $depmode in 10309 gcc) 10310 # This depmode causes a compiler race in universal mode. 10311 test "$am__universal" = false || continue 10312 ;; 10313 nosideeffect) 10314 # After this tag, mechanisms are not by side-effect, so they'll 10315 # only be used when explicitly requested. 10316 if test "x$enable_dependency_tracking" = xyes; then 10317 continue 10318 else 10319 break 10320 fi 10321 ;; 10322 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 10323 # This compiler won't grok '-c -o', but also, the minuso test has 10324 # not run yet. These depmodes are late enough in the game, and 10325 # so weak that their functioning should not be impacted. 10326 am__obj=conftest.${OBJEXT-o} 10327 am__minus_obj= 10328 ;; 10329 none) break ;; 10330 esac 10331 if depmode=$depmode \ 10332 source=sub/conftest.c object=$am__obj \ 10333 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 10334 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 10335 >/dev/null 2>conftest.err && 10336 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 10337 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 10338 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 10339 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 10340 # icc doesn't choke on unknown options, it will just issue warnings 10341 # or remarks (even with -Werror). So we grep stderr for any message 10342 # that says an option was ignored or not supported. 10343 # When given -MP, icc 7.0 and 7.1 complain thusly: 10344 # icc: Command line warning: ignoring option '-M'; no argument required 10345 # The diagnosis changed in icc 8.0: 10346 # icc: Command line remark: option '-MP' not supported 10347 if (grep 'ignoring option' conftest.err || 10348 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 10349 am_cv_$1_dependencies_compiler_type=$depmode 10350 break 10351 fi 10352 fi 10353 done 10354 10355 cd .. 10356 rm -rf conftest.dir 10357else 10358 am_cv_$1_dependencies_compiler_type=none 10359fi 10360]) 10361AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 10362AM_CONDITIONAL([am__fastdep$1], [ 10363 test "x$enable_dependency_tracking" != xno \ 10364 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 10365]) 10366 10367 10368# AM_SET_DEPDIR 10369# ------------- 10370# Choose a directory name for dependency files. 10371# This macro is AC_REQUIREd in _AM_DEPENDENCIES. 10372AC_DEFUN([AM_SET_DEPDIR], 10373[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 10374AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 10375]) 10376 10377 10378# AM_DEP_TRACK 10379# ------------ 10380AC_DEFUN([AM_DEP_TRACK], 10381[AC_ARG_ENABLE([dependency-tracking], [dnl 10382AS_HELP_STRING( 10383 [--enable-dependency-tracking], 10384 [do not reject slow dependency extractors]) 10385AS_HELP_STRING( 10386 [--disable-dependency-tracking], 10387 [speeds up one-time build])]) 10388if test "x$enable_dependency_tracking" != xno; then 10389 am_depcomp="$ac_aux_dir/depcomp" 10390 AMDEPBACKSLASH='\' 10391 am__nodep='_no' 10392fi 10393AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 10394AC_SUBST([AMDEPBACKSLASH])dnl 10395_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 10396AC_SUBST([am__nodep])dnl 10397_AM_SUBST_NOTMAKE([am__nodep])dnl 10398]) 10399 10400# Generate code to set up dependency tracking. -*- Autoconf -*- 10401 10402# Copyright (C) 1999-2014 Free Software Foundation, Inc. 10403# 10404# This file is free software; the Free Software Foundation 10405# gives unlimited permission to copy and/or distribute it, 10406# with or without modifications, as long as this notice is preserved. 10407 10408 10409# _AM_OUTPUT_DEPENDENCY_COMMANDS 10410# ------------------------------ 10411AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 10412[{ 10413 # Older Autoconf quotes --file arguments for eval, but not when files 10414 # are listed without --file. Let's play safe and only enable the eval 10415 # if we detect the quoting. 10416 case $CONFIG_FILES in 10417 *\'*) eval set x "$CONFIG_FILES" ;; 10418 *) set x $CONFIG_FILES ;; 10419 esac 10420 shift 10421 for mf 10422 do 10423 # Strip MF so we end up with the name of the file. 10424 mf=`echo "$mf" | sed -e 's/:.*$//'` 10425 # Check whether this is an Automake generated Makefile or not. 10426 # We used to match only the files named 'Makefile.in', but 10427 # some people rename them; so instead we look at the file content. 10428 # Grep'ing the first line is not enough: some people post-process 10429 # each Makefile.in and add a new line on top of each file to say so. 10430 # Grep'ing the whole file is not good either: AIX grep has a line 10431 # limit of 2048, but all sed's we know have understand at least 4000. 10432 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 10433 dirpart=`AS_DIRNAME("$mf")` 10434 else 10435 continue 10436 fi 10437 # Extract the definition of DEPDIR, am__include, and am__quote 10438 # from the Makefile without running 'make'. 10439 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 10440 test -z "$DEPDIR" && continue 10441 am__include=`sed -n 's/^am__include = //p' < "$mf"` 10442 test -z "$am__include" && continue 10443 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 10444 # Find all dependency output files, they are included files with 10445 # $(DEPDIR) in their names. We invoke sed twice because it is the 10446 # simplest approach to changing $(DEPDIR) to its actual value in the 10447 # expansion. 10448 for file in `sed -n " 10449 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 10450 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 10451 # Make sure the directory exists. 10452 test -f "$dirpart/$file" && continue 10453 fdir=`AS_DIRNAME(["$file"])` 10454 AS_MKDIR_P([$dirpart/$fdir]) 10455 # echo "creating $dirpart/$file" 10456 echo '# dummy' > "$dirpart/$file" 10457 done 10458 done 10459} 10460])# _AM_OUTPUT_DEPENDENCY_COMMANDS 10461 10462 10463# AM_OUTPUT_DEPENDENCY_COMMANDS 10464# ----------------------------- 10465# This macro should only be invoked once -- use via AC_REQUIRE. 10466# 10467# This code is only required when automatic dependency tracking 10468# is enabled. FIXME. This creates each '.P' file that we will 10469# need in order to bootstrap the dependency handling code. 10470AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 10471[AC_CONFIG_COMMANDS([depfiles], 10472 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 10473 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 10474]) 10475 10476# Do all the work for Automake. -*- Autoconf -*- 10477 10478# Copyright (C) 1996-2014 Free Software Foundation, Inc. 10479# 10480# This file is free software; the Free Software Foundation 10481# gives unlimited permission to copy and/or distribute it, 10482# with or without modifications, as long as this notice is preserved. 10483 10484# This macro actually does too much. Some checks are only needed if 10485# your package does certain things. But this isn't really a big deal. 10486 10487dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. 10488m4_define([AC_PROG_CC], 10489m4_defn([AC_PROG_CC]) 10490[_AM_PROG_CC_C_O 10491]) 10492 10493# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 10494# AM_INIT_AUTOMAKE([OPTIONS]) 10495# ----------------------------------------------- 10496# The call with PACKAGE and VERSION arguments is the old style 10497# call (pre autoconf-2.50), which is being phased out. PACKAGE 10498# and VERSION should now be passed to AC_INIT and removed from 10499# the call to AM_INIT_AUTOMAKE. 10500# We support both call styles for the transition. After 10501# the next Automake release, Autoconf can make the AC_INIT 10502# arguments mandatory, and then we can depend on a new Autoconf 10503# release and drop the old call support. 10504AC_DEFUN([AM_INIT_AUTOMAKE], 10505[AC_PREREQ([2.65])dnl 10506dnl Autoconf wants to disallow AM_ names. We explicitly allow 10507dnl the ones we care about. 10508m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 10509AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 10510AC_REQUIRE([AC_PROG_INSTALL])dnl 10511if test "`cd $srcdir && pwd`" != "`pwd`"; then 10512 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 10513 # is not polluted with repeated "-I." 10514 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 10515 # test to see if srcdir already configured 10516 if test -f $srcdir/config.status; then 10517 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 10518 fi 10519fi 10520 10521# test whether we have cygpath 10522if test -z "$CYGPATH_W"; then 10523 if (cygpath --version) >/dev/null 2>/dev/null; then 10524 CYGPATH_W='cygpath -w' 10525 else 10526 CYGPATH_W=echo 10527 fi 10528fi 10529AC_SUBST([CYGPATH_W]) 10530 10531# Define the identity of the package. 10532dnl Distinguish between old-style and new-style calls. 10533m4_ifval([$2], 10534[AC_DIAGNOSE([obsolete], 10535 [$0: two- and three-arguments forms are deprecated.]) 10536m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 10537 AC_SUBST([PACKAGE], [$1])dnl 10538 AC_SUBST([VERSION], [$2])], 10539[_AM_SET_OPTIONS([$1])dnl 10540dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 10541m4_if( 10542 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), 10543 [ok:ok],, 10544 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 10545 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 10546 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 10547 10548_AM_IF_OPTION([no-define],, 10549[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) 10550 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl 10551 10552# Some tools Automake needs. 10553AC_REQUIRE([AM_SANITY_CHECK])dnl 10554AC_REQUIRE([AC_ARG_PROGRAM])dnl 10555AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) 10556AM_MISSING_PROG([AUTOCONF], [autoconf]) 10557AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) 10558AM_MISSING_PROG([AUTOHEADER], [autoheader]) 10559AM_MISSING_PROG([MAKEINFO], [makeinfo]) 10560AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 10561AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 10562AC_REQUIRE([AC_PROG_MKDIR_P])dnl 10563# For better backward compatibility. To be removed once Automake 1.9.x 10564# dies out for good. For more background, see: 10565# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 10566# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 10567AC_SUBST([mkdir_p], ['$(MKDIR_P)']) 10568# We need awk for the "check" target (and possibly the TAP driver). The 10569# system "awk" is bad on some platforms. 10570AC_REQUIRE([AC_PROG_AWK])dnl 10571AC_REQUIRE([AC_PROG_MAKE_SET])dnl 10572AC_REQUIRE([AM_SET_LEADING_DOT])dnl 10573_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 10574 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 10575 [_AM_PROG_TAR([v7])])]) 10576_AM_IF_OPTION([no-dependencies],, 10577[AC_PROVIDE_IFELSE([AC_PROG_CC], 10578 [_AM_DEPENDENCIES([CC])], 10579 [m4_define([AC_PROG_CC], 10580 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl 10581AC_PROVIDE_IFELSE([AC_PROG_CXX], 10582 [_AM_DEPENDENCIES([CXX])], 10583 [m4_define([AC_PROG_CXX], 10584 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl 10585AC_PROVIDE_IFELSE([AC_PROG_OBJC], 10586 [_AM_DEPENDENCIES([OBJC])], 10587 [m4_define([AC_PROG_OBJC], 10588 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl 10589AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], 10590 [_AM_DEPENDENCIES([OBJCXX])], 10591 [m4_define([AC_PROG_OBJCXX], 10592 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl 10593]) 10594AC_REQUIRE([AM_SILENT_RULES])dnl 10595dnl The testsuite driver may need to know about EXEEXT, so add the 10596dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This 10597dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. 10598AC_CONFIG_COMMANDS_PRE(dnl 10599[m4_provide_if([_AM_COMPILER_EXEEXT], 10600 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 10601 10602# POSIX will say in a future version that running "rm -f" with no argument 10603# is OK; and we want to be able to make that assumption in our Makefile 10604# recipes. So use an aggressive probe to check that the usage we want is 10605# actually supported "in the wild" to an acceptable degree. 10606# See automake bug#10828. 10607# To make any issue more visible, cause the running configure to be aborted 10608# by default if the 'rm' program in use doesn't match our expectations; the 10609# user can still override this though. 10610if rm -f && rm -fr && rm -rf; then : OK; else 10611 cat >&2 <<'END' 10612Oops! 10613 10614Your 'rm' program seems unable to run without file operands specified 10615on the command line, even when the '-f' option is present. This is contrary 10616to the behaviour of most rm programs out there, and not conforming with 10617the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 10618 10619Please tell bug-automake@gnu.org about your system, including the value 10620of your $PATH and any error possibly output before this message. This 10621can help us improve future automake versions. 10622 10623END 10624 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 10625 echo 'Configuration will proceed anyway, since you have set the' >&2 10626 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 10627 echo >&2 10628 else 10629 cat >&2 <<'END' 10630Aborting the configuration process, to ensure you take notice of the issue. 10631 10632You can download and install GNU coreutils to get an 'rm' implementation 10633that behaves properly: <http://www.gnu.org/software/coreutils/>. 10634 10635If you want to complete the configuration process using your problematic 10636'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 10637to "yes", and re-run configure. 10638 10639END 10640 AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) 10641 fi 10642fi 10643dnl The trailing newline in this macro's definition is deliberate, for 10644dnl backward compatibility and to allow trailing 'dnl'-style comments 10645dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. 10646]) 10647 10648dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 10649dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 10650dnl mangled by Autoconf and run in a shell conditional statement. 10651m4_define([_AC_COMPILER_EXEEXT], 10652m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 10653 10654# When config.status generates a header, we must update the stamp-h file. 10655# This file resides in the same directory as the config header 10656# that is generated. The stamp files are numbered to have different names. 10657 10658# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 10659# loop where config.status creates the headers, so we can generate 10660# our stamp files there. 10661AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 10662[# Compute $1's index in $config_headers. 10663_am_arg=$1 10664_am_stamp_count=1 10665for _am_header in $config_headers :; do 10666 case $_am_header in 10667 $_am_arg | $_am_arg:* ) 10668 break ;; 10669 * ) 10670 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 10671 esac 10672done 10673echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 10674 10675# Copyright (C) 2001-2014 Free Software Foundation, Inc. 10676# 10677# This file is free software; the Free Software Foundation 10678# gives unlimited permission to copy and/or distribute it, 10679# with or without modifications, as long as this notice is preserved. 10680 10681# AM_PROG_INSTALL_SH 10682# ------------------ 10683# Define $install_sh. 10684AC_DEFUN([AM_PROG_INSTALL_SH], 10685[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 10686if test x"${install_sh+set}" != xset; then 10687 case $am_aux_dir in 10688 *\ * | *\ *) 10689 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 10690 *) 10691 install_sh="\${SHELL} $am_aux_dir/install-sh" 10692 esac 10693fi 10694AC_SUBST([install_sh])]) 10695 10696# Copyright (C) 2003-2014 Free Software Foundation, Inc. 10697# 10698# This file is free software; the Free Software Foundation 10699# gives unlimited permission to copy and/or distribute it, 10700# with or without modifications, as long as this notice is preserved. 10701 10702# Check whether the underlying file-system supports filenames 10703# with a leading dot. For instance MS-DOS doesn't. 10704AC_DEFUN([AM_SET_LEADING_DOT], 10705[rm -rf .tst 2>/dev/null 10706mkdir .tst 2>/dev/null 10707if test -d .tst; then 10708 am__leading_dot=. 10709else 10710 am__leading_dot=_ 10711fi 10712rmdir .tst 2>/dev/null 10713AC_SUBST([am__leading_dot])]) 10714 10715# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 10716# From Jim Meyering 10717 10718# Copyright (C) 1996-2014 Free Software Foundation, Inc. 10719# 10720# This file is free software; the Free Software Foundation 10721# gives unlimited permission to copy and/or distribute it, 10722# with or without modifications, as long as this notice is preserved. 10723 10724# AM_MAINTAINER_MODE([DEFAULT-MODE]) 10725# ---------------------------------- 10726# Control maintainer-specific portions of Makefiles. 10727# Default is to disable them, unless 'enable' is passed literally. 10728# For symmetry, 'disable' may be passed as well. Anyway, the user 10729# can override the default with the --enable/--disable switch. 10730AC_DEFUN([AM_MAINTAINER_MODE], 10731[m4_case(m4_default([$1], [disable]), 10732 [enable], [m4_define([am_maintainer_other], [disable])], 10733 [disable], [m4_define([am_maintainer_other], [enable])], 10734 [m4_define([am_maintainer_other], [enable]) 10735 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) 10736AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) 10737 dnl maintainer-mode's default is 'disable' unless 'enable' is passed 10738 AC_ARG_ENABLE([maintainer-mode], 10739 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], 10740 am_maintainer_other[ make rules and dependencies not useful 10741 (and sometimes confusing) to the casual installer])], 10742 [USE_MAINTAINER_MODE=$enableval], 10743 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) 10744 AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 10745 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) 10746 MAINT=$MAINTAINER_MODE_TRUE 10747 AC_SUBST([MAINT])dnl 10748] 10749) 10750 10751# Check to see how 'make' treats includes. -*- Autoconf -*- 10752 10753# Copyright (C) 2001-2014 Free Software Foundation, Inc. 10754# 10755# This file is free software; the Free Software Foundation 10756# gives unlimited permission to copy and/or distribute it, 10757# with or without modifications, as long as this notice is preserved. 10758 10759# AM_MAKE_INCLUDE() 10760# ----------------- 10761# Check to see how make treats includes. 10762AC_DEFUN([AM_MAKE_INCLUDE], 10763[am_make=${MAKE-make} 10764cat > confinc << 'END' 10765am__doit: 10766 @echo this is the am__doit target 10767.PHONY: am__doit 10768END 10769# If we don't find an include directive, just comment out the code. 10770AC_MSG_CHECKING([for style of include used by $am_make]) 10771am__include="#" 10772am__quote= 10773_am_result=none 10774# First try GNU make style include. 10775echo "include confinc" > confmf 10776# Ignore all kinds of additional output from 'make'. 10777case `$am_make -s -f confmf 2> /dev/null` in #( 10778*the\ am__doit\ target*) 10779 am__include=include 10780 am__quote= 10781 _am_result=GNU 10782 ;; 10783esac 10784# Now try BSD make style include. 10785if test "$am__include" = "#"; then 10786 echo '.include "confinc"' > confmf 10787 case `$am_make -s -f confmf 2> /dev/null` in #( 10788 *the\ am__doit\ target*) 10789 am__include=.include 10790 am__quote="\"" 10791 _am_result=BSD 10792 ;; 10793 esac 10794fi 10795AC_SUBST([am__include]) 10796AC_SUBST([am__quote]) 10797AC_MSG_RESULT([$_am_result]) 10798rm -f confinc confmf 10799]) 10800 10801# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 10802 10803# Copyright (C) 1997-2014 Free Software Foundation, Inc. 10804# 10805# This file is free software; the Free Software Foundation 10806# gives unlimited permission to copy and/or distribute it, 10807# with or without modifications, as long as this notice is preserved. 10808 10809# AM_MISSING_PROG(NAME, PROGRAM) 10810# ------------------------------ 10811AC_DEFUN([AM_MISSING_PROG], 10812[AC_REQUIRE([AM_MISSING_HAS_RUN]) 10813$1=${$1-"${am_missing_run}$2"} 10814AC_SUBST($1)]) 10815 10816# AM_MISSING_HAS_RUN 10817# ------------------ 10818# Define MISSING if not defined so far and test if it is modern enough. 10819# If it is, set am_missing_run to use it, otherwise, to nothing. 10820AC_DEFUN([AM_MISSING_HAS_RUN], 10821[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 10822AC_REQUIRE_AUX_FILE([missing])dnl 10823if test x"${MISSING+set}" != xset; then 10824 case $am_aux_dir in 10825 *\ * | *\ *) 10826 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 10827 *) 10828 MISSING="\${SHELL} $am_aux_dir/missing" ;; 10829 esac 10830fi 10831# Use eval to expand $SHELL 10832if eval "$MISSING --is-lightweight"; then 10833 am_missing_run="$MISSING " 10834else 10835 am_missing_run= 10836 AC_MSG_WARN(['missing' script is too old or missing]) 10837fi 10838]) 10839 10840# Helper functions for option handling. -*- Autoconf -*- 10841 10842# Copyright (C) 2001-2014 Free Software Foundation, Inc. 10843# 10844# This file is free software; the Free Software Foundation 10845# gives unlimited permission to copy and/or distribute it, 10846# with or without modifications, as long as this notice is preserved. 10847 10848# _AM_MANGLE_OPTION(NAME) 10849# ----------------------- 10850AC_DEFUN([_AM_MANGLE_OPTION], 10851[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 10852 10853# _AM_SET_OPTION(NAME) 10854# -------------------- 10855# Set option NAME. Presently that only means defining a flag for this option. 10856AC_DEFUN([_AM_SET_OPTION], 10857[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) 10858 10859# _AM_SET_OPTIONS(OPTIONS) 10860# ------------------------ 10861# OPTIONS is a space-separated list of Automake options. 10862AC_DEFUN([_AM_SET_OPTIONS], 10863[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 10864 10865# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 10866# ------------------------------------------- 10867# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 10868AC_DEFUN([_AM_IF_OPTION], 10869[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 10870 10871# Copyright (C) 1999-2014 Free Software Foundation, Inc. 10872# 10873# This file is free software; the Free Software Foundation 10874# gives unlimited permission to copy and/or distribute it, 10875# with or without modifications, as long as this notice is preserved. 10876 10877# _AM_PROG_CC_C_O 10878# --------------- 10879# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC 10880# to automatically call this. 10881AC_DEFUN([_AM_PROG_CC_C_O], 10882[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 10883AC_REQUIRE_AUX_FILE([compile])dnl 10884AC_LANG_PUSH([C])dnl 10885AC_CACHE_CHECK( 10886 [whether $CC understands -c and -o together], 10887 [am_cv_prog_cc_c_o], 10888 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) 10889 # Make sure it works both with $CC and with simple cc. 10890 # Following AC_PROG_CC_C_O, we do the test twice because some 10891 # compilers refuse to overwrite an existing .o file with -o, 10892 # though they will create one. 10893 am_cv_prog_cc_c_o=yes 10894 for am_i in 1 2; do 10895 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ 10896 && test -f conftest2.$ac_objext; then 10897 : OK 10898 else 10899 am_cv_prog_cc_c_o=no 10900 break 10901 fi 10902 done 10903 rm -f core conftest* 10904 unset am_i]) 10905if test "$am_cv_prog_cc_c_o" != yes; then 10906 # Losing compiler, so override with the script. 10907 # FIXME: It is wrong to rewrite CC. 10908 # But if we don't then we get into trouble of one sort or another. 10909 # A longer-term fix would be to have automake use am__CC in this case, 10910 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 10911 CC="$am_aux_dir/compile $CC" 10912fi 10913AC_LANG_POP([C])]) 10914 10915# For backward compatibility. 10916AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) 10917 10918# Copyright (C) 2001-2014 Free Software Foundation, Inc. 10919# 10920# This file is free software; the Free Software Foundation 10921# gives unlimited permission to copy and/or distribute it, 10922# with or without modifications, as long as this notice is preserved. 10923 10924# AM_RUN_LOG(COMMAND) 10925# ------------------- 10926# Run COMMAND, save the exit status in ac_status, and log it. 10927# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) 10928AC_DEFUN([AM_RUN_LOG], 10929[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD 10930 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD 10931 ac_status=$? 10932 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 10933 (exit $ac_status); }]) 10934 10935# Check to make sure that the build environment is sane. -*- Autoconf -*- 10936 10937# Copyright (C) 1996-2014 Free Software Foundation, Inc. 10938# 10939# This file is free software; the Free Software Foundation 10940# gives unlimited permission to copy and/or distribute it, 10941# with or without modifications, as long as this notice is preserved. 10942 10943# AM_SANITY_CHECK 10944# --------------- 10945AC_DEFUN([AM_SANITY_CHECK], 10946[AC_MSG_CHECKING([whether build environment is sane]) 10947# Reject unsafe characters in $srcdir or the absolute working directory 10948# name. Accept space and tab only in the latter. 10949am_lf=' 10950' 10951case `pwd` in 10952 *[[\\\"\#\$\&\'\`$am_lf]]*) 10953 AC_MSG_ERROR([unsafe absolute working directory name]);; 10954esac 10955case $srcdir in 10956 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 10957 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; 10958esac 10959 10960# Do 'set' in a subshell so we don't clobber the current shell's 10961# arguments. Must try -L first in case configure is actually a 10962# symlink; some systems play weird games with the mod time of symlinks 10963# (eg FreeBSD returns the mod time of the symlink's containing 10964# directory). 10965if ( 10966 am_has_slept=no 10967 for am_try in 1 2; do 10968 echo "timestamp, slept: $am_has_slept" > conftest.file 10969 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 10970 if test "$[*]" = "X"; then 10971 # -L didn't work. 10972 set X `ls -t "$srcdir/configure" conftest.file` 10973 fi 10974 if test "$[*]" != "X $srcdir/configure conftest.file" \ 10975 && test "$[*]" != "X conftest.file $srcdir/configure"; then 10976 10977 # If neither matched, then we have a broken ls. This can happen 10978 # if, for instance, CONFIG_SHELL is bash and it inherits a 10979 # broken ls alias from the environment. This has actually 10980 # happened. Such a system could not be considered "sane". 10981 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 10982 alias in your environment]) 10983 fi 10984 if test "$[2]" = conftest.file || test $am_try -eq 2; then 10985 break 10986 fi 10987 # Just in case. 10988 sleep 1 10989 am_has_slept=yes 10990 done 10991 test "$[2]" = conftest.file 10992 ) 10993then 10994 # Ok. 10995 : 10996else 10997 AC_MSG_ERROR([newly created file is older than distributed files! 10998Check your system clock]) 10999fi 11000AC_MSG_RESULT([yes]) 11001# If we didn't sleep, we still need to ensure time stamps of config.status and 11002# generated files are strictly newer. 11003am_sleep_pid= 11004if grep 'slept: no' conftest.file >/dev/null 2>&1; then 11005 ( sleep 1 ) & 11006 am_sleep_pid=$! 11007fi 11008AC_CONFIG_COMMANDS_PRE( 11009 [AC_MSG_CHECKING([that generated files are newer than configure]) 11010 if test -n "$am_sleep_pid"; then 11011 # Hide warnings about reused PIDs. 11012 wait $am_sleep_pid 2>/dev/null 11013 fi 11014 AC_MSG_RESULT([done])]) 11015rm -f conftest.file 11016]) 11017 11018# Copyright (C) 2009-2014 Free Software Foundation, Inc. 11019# 11020# This file is free software; the Free Software Foundation 11021# gives unlimited permission to copy and/or distribute it, 11022# with or without modifications, as long as this notice is preserved. 11023 11024# AM_SILENT_RULES([DEFAULT]) 11025# -------------------------- 11026# Enable less verbose build rules; with the default set to DEFAULT 11027# ("yes" being less verbose, "no" or empty being verbose). 11028AC_DEFUN([AM_SILENT_RULES], 11029[AC_ARG_ENABLE([silent-rules], [dnl 11030AS_HELP_STRING( 11031 [--enable-silent-rules], 11032 [less verbose build output (undo: "make V=1")]) 11033AS_HELP_STRING( 11034 [--disable-silent-rules], 11035 [verbose build output (undo: "make V=0")])dnl 11036]) 11037case $enable_silent_rules in @%:@ ((( 11038 yes) AM_DEFAULT_VERBOSITY=0;; 11039 no) AM_DEFAULT_VERBOSITY=1;; 11040 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 11041esac 11042dnl 11043dnl A few 'make' implementations (e.g., NonStop OS and NextStep) 11044dnl do not support nested variable expansions. 11045dnl See automake bug#9928 and bug#10237. 11046am_make=${MAKE-make} 11047AC_CACHE_CHECK([whether $am_make supports nested variables], 11048 [am_cv_make_support_nested_variables], 11049 [if AS_ECHO([['TRUE=$(BAR$(V)) 11050BAR0=false 11051BAR1=true 11052V=1 11053am__doit: 11054 @$(TRUE) 11055.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then 11056 am_cv_make_support_nested_variables=yes 11057else 11058 am_cv_make_support_nested_variables=no 11059fi]) 11060if test $am_cv_make_support_nested_variables = yes; then 11061 dnl Using '$V' instead of '$(V)' breaks IRIX make. 11062 AM_V='$(V)' 11063 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11064else 11065 AM_V=$AM_DEFAULT_VERBOSITY 11066 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11067fi 11068AC_SUBST([AM_V])dnl 11069AM_SUBST_NOTMAKE([AM_V])dnl 11070AC_SUBST([AM_DEFAULT_V])dnl 11071AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl 11072AC_SUBST([AM_DEFAULT_VERBOSITY])dnl 11073AM_BACKSLASH='\' 11074AC_SUBST([AM_BACKSLASH])dnl 11075_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 11076]) 11077 11078# Copyright (C) 2001-2014 Free Software Foundation, Inc. 11079# 11080# This file is free software; the Free Software Foundation 11081# gives unlimited permission to copy and/or distribute it, 11082# with or without modifications, as long as this notice is preserved. 11083 11084# AM_PROG_INSTALL_STRIP 11085# --------------------- 11086# One issue with vendor 'install' (even GNU) is that you can't 11087# specify the program used to strip binaries. This is especially 11088# annoying in cross-compiling environments, where the build's strip 11089# is unlikely to handle the host's binaries. 11090# Fortunately install-sh will honor a STRIPPROG variable, so we 11091# always use install-sh in "make install-strip", and initialize 11092# STRIPPROG with the value of the STRIP variable (set by the user). 11093AC_DEFUN([AM_PROG_INSTALL_STRIP], 11094[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 11095# Installed binaries are usually stripped using 'strip' when the user 11096# run "make install-strip". However 'strip' might not be the right 11097# tool to use in cross-compilation environments, therefore Automake 11098# will honor the 'STRIP' environment variable to overrule this program. 11099dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. 11100if test "$cross_compiling" != no; then 11101 AC_CHECK_TOOL([STRIP], [strip], :) 11102fi 11103INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 11104AC_SUBST([INSTALL_STRIP_PROGRAM])]) 11105 11106# Copyright (C) 2006-2014 Free Software Foundation, Inc. 11107# 11108# This file is free software; the Free Software Foundation 11109# gives unlimited permission to copy and/or distribute it, 11110# with or without modifications, as long as this notice is preserved. 11111 11112# _AM_SUBST_NOTMAKE(VARIABLE) 11113# --------------------------- 11114# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 11115# This macro is traced by Automake. 11116AC_DEFUN([_AM_SUBST_NOTMAKE]) 11117 11118# AM_SUBST_NOTMAKE(VARIABLE) 11119# -------------------------- 11120# Public sister of _AM_SUBST_NOTMAKE. 11121AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 11122 11123# Check how to create a tarball. -*- Autoconf -*- 11124 11125# Copyright (C) 2004-2014 Free Software Foundation, Inc. 11126# 11127# This file is free software; the Free Software Foundation 11128# gives unlimited permission to copy and/or distribute it, 11129# with or without modifications, as long as this notice is preserved. 11130 11131# _AM_PROG_TAR(FORMAT) 11132# -------------------- 11133# Check how to create a tarball in format FORMAT. 11134# FORMAT should be one of 'v7', 'ustar', or 'pax'. 11135# 11136# Substitute a variable $(am__tar) that is a command 11137# writing to stdout a FORMAT-tarball containing the directory 11138# $tardir. 11139# tardir=directory && $(am__tar) > result.tar 11140# 11141# Substitute a variable $(am__untar) that extract such 11142# a tarball read from stdin. 11143# $(am__untar) < result.tar 11144# 11145AC_DEFUN([_AM_PROG_TAR], 11146[# Always define AMTAR for backward compatibility. Yes, it's still used 11147# in the wild :-( We should find a proper way to deprecate it ... 11148AC_SUBST([AMTAR], ['$${TAR-tar}']) 11149 11150# We'll loop over all known methods to create a tar archive until one works. 11151_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 11152 11153m4_if([$1], [v7], 11154 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 11155 11156 [m4_case([$1], 11157 [ustar], 11158 [# The POSIX 1988 'ustar' format is defined with fixed-size fields. 11159 # There is notably a 21 bits limit for the UID and the GID. In fact, 11160 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 11161 # and bug#13588). 11162 am_max_uid=2097151 # 2^21 - 1 11163 am_max_gid=$am_max_uid 11164 # The $UID and $GID variables are not portable, so we need to resort 11165 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 11166 # below are definitely unexpected, so allow the users to see them 11167 # (that is, avoid stderr redirection). 11168 am_uid=`id -u || echo unknown` 11169 am_gid=`id -g || echo unknown` 11170 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) 11171 if test $am_uid -le $am_max_uid; then 11172 AC_MSG_RESULT([yes]) 11173 else 11174 AC_MSG_RESULT([no]) 11175 _am_tools=none 11176 fi 11177 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) 11178 if test $am_gid -le $am_max_gid; then 11179 AC_MSG_RESULT([yes]) 11180 else 11181 AC_MSG_RESULT([no]) 11182 _am_tools=none 11183 fi], 11184 11185 [pax], 11186 [], 11187 11188 [m4_fatal([Unknown tar format])]) 11189 11190 AC_MSG_CHECKING([how to create a $1 tar archive]) 11191 11192 # Go ahead even if we have the value already cached. We do so because we 11193 # need to set the values for the 'am__tar' and 'am__untar' variables. 11194 _am_tools=${am_cv_prog_tar_$1-$_am_tools} 11195 11196 for _am_tool in $_am_tools; do 11197 case $_am_tool in 11198 gnutar) 11199 for _am_tar in tar gnutar gtar; do 11200 AM_RUN_LOG([$_am_tar --version]) && break 11201 done 11202 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 11203 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 11204 am__untar="$_am_tar -xf -" 11205 ;; 11206 plaintar) 11207 # Must skip GNU tar: if it does not support --format= it doesn't create 11208 # ustar tarball either. 11209 (tar --version) >/dev/null 2>&1 && continue 11210 am__tar='tar chf - "$$tardir"' 11211 am__tar_='tar chf - "$tardir"' 11212 am__untar='tar xf -' 11213 ;; 11214 pax) 11215 am__tar='pax -L -x $1 -w "$$tardir"' 11216 am__tar_='pax -L -x $1 -w "$tardir"' 11217 am__untar='pax -r' 11218 ;; 11219 cpio) 11220 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 11221 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 11222 am__untar='cpio -i -H $1 -d' 11223 ;; 11224 none) 11225 am__tar=false 11226 am__tar_=false 11227 am__untar=false 11228 ;; 11229 esac 11230 11231 # If the value was cached, stop now. We just wanted to have am__tar 11232 # and am__untar set. 11233 test -n "${am_cv_prog_tar_$1}" && break 11234 11235 # tar/untar a dummy directory, and stop if the command works. 11236 rm -rf conftest.dir 11237 mkdir conftest.dir 11238 echo GrepMe > conftest.dir/file 11239 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 11240 rm -rf conftest.dir 11241 if test -s conftest.tar; then 11242 AM_RUN_LOG([$am__untar <conftest.tar]) 11243 AM_RUN_LOG([cat conftest.dir/file]) 11244 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 11245 fi 11246 done 11247 rm -rf conftest.dir 11248 11249 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 11250 AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 11251 11252AC_SUBST([am__tar]) 11253AC_SUBST([am__untar]) 11254]) # _AM_PROG_TAR 11255 11256m4_include([acinclude.m4]) 11257