1# generated automatically by aclocal 1.16.1 -*- Autoconf -*- 2 3# Copyright (C) 1996-2018 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# Configure paths for GLIB 24# Owen Taylor 1997-2001 25 26# Increment this whenever this file is changed. 27#serial 3 28 29dnl AM_PATH_GLIB_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) 30dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject, 31dnl gthread, or gio is specified in MODULES, pass to pkg-config 32dnl 33AC_DEFUN([AM_PATH_GLIB_2_0], 34[dnl 35dnl Get the cflags and libraries from pkg-config 36dnl 37 38dnl We can't use PKG_PREREQ because that needs 0.29. 39m4_ifndef([PKG_PROG_PKG_CONFIG], 40 [pkg.m4 version 0.28 or later is required]) 41 42AC_ARG_ENABLE(glibtest, [ --disable-glibtest do not try to compile and run a test GLIB program], 43 , enable_glibtest=yes) 44 45 min_glib_version=ifelse([$1], [], [2.0.0], [$1]) 46 pkg_config_args="glib-2.0 >= $min_glib_version" 47 for module in . $4 48 do 49 case "$module" in 50 gmodule) 51 pkg_config_args="$pkg_config_args gmodule-2.0" 52 ;; 53 gmodule-no-export) 54 pkg_config_args="$pkg_config_args gmodule-no-export-2.0" 55 ;; 56 gobject) 57 pkg_config_args="$pkg_config_args gobject-2.0" 58 ;; 59 gthread) 60 pkg_config_args="$pkg_config_args gthread-2.0" 61 ;; 62 gio*) 63 pkg_config_args="$pkg_config_args $module-2.0" 64 ;; 65 esac 66 done 67 68 PKG_PROG_PKG_CONFIG([0.16]) 69 70 no_glib="" 71 72 if test "x$PKG_CONFIG" = x ; then 73 no_glib=yes 74 PKG_CONFIG=no 75 fi 76 77 dnl For GLIB_CFLAGS and GLIB_LIBS 78 PKG_CHECK_MODULES([GLIB], [$pkg_config_args], [:], [:]) 79 80 dnl For the tools 81 PKG_CHECK_VAR([GLIB_GENMARSHAL], [glib-2.0], [glib_genmarshal]) 82 PKG_CHECK_VAR([GOBJECT_QUERY], [glib-2.0], [gobject_query]) 83 PKG_CHECK_VAR([GLIB_MKENUMS], [glib-2.0], [glib_mkenums]) 84 PKG_CHECK_VAR([GLIB_COMPILE_RESOURCES], [gio-2.0], [glib_compile_resources]) 85 86 AC_MSG_CHECKING(for GLIB - version >= $min_glib_version) 87 88 if test x$PKG_CONFIG != xno ; then 89 ## don't try to run the test against uninstalled libtool libs 90 if $PKG_CONFIG --uninstalled $pkg_config_args; then 91 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH" 92 enable_glibtest=no 93 fi 94 95 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then 96 : 97 else 98 no_glib=yes 99 fi 100 fi 101 102 if test x"$no_glib" = x ; then 103 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \ 104 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` 105 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \ 106 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` 107 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \ 108 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` 109 if test "x$enable_glibtest" = "xyes" ; then 110 ac_save_CFLAGS="$CFLAGS" 111 ac_save_LIBS="$LIBS" 112 CFLAGS="$CFLAGS $GLIB_CFLAGS" 113 LIBS="$GLIB_LIBS $LIBS" 114dnl 115dnl Now check if the installed GLib is sufficiently new. (Also sanity 116dnl checks the results of pkg-config to some extent) 117dnl 118 rm -f conf.glibtest 119 AC_TRY_RUN([ 120#include <glib.h> 121#include <stdio.h> 122#include <stdlib.h> 123 124int 125main (void) 126{ 127 unsigned int major, minor, micro; 128 129 fclose (fopen ("conf.glibtest", "w")); 130 131 if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, µ) != 3) { 132 printf("%s, bad version string\n", "$min_glib_version"); 133 exit(1); 134 } 135 136 if ((glib_major_version != $glib_config_major_version) || 137 (glib_minor_version != $glib_config_minor_version) || 138 (glib_micro_version != $glib_config_micro_version)) 139 { 140 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", 141 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, 142 glib_major_version, glib_minor_version, glib_micro_version); 143 printf ("*** was found! If pkg-config was correct, then it is best\n"); 144 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n"); 145 printf("*** by modifying your LD_LIBRARY_PATH environment variable, or by editing\n"); 146 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); 147 printf("*** required on your system.\n"); 148 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); 149 printf("*** to point to the correct configuration files\n"); 150 } 151 else if ((glib_major_version != GLIB_MAJOR_VERSION) || 152 (glib_minor_version != GLIB_MINOR_VERSION) || 153 (glib_micro_version != GLIB_MICRO_VERSION)) 154 { 155 printf("*** GLib header files (version %d.%d.%d) do not match\n", 156 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); 157 printf("*** library (version %d.%d.%d)\n", 158 glib_major_version, glib_minor_version, glib_micro_version); 159 } 160 else 161 { 162 if ((glib_major_version > major) || 163 ((glib_major_version == major) && (glib_minor_version > minor)) || 164 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) 165 { 166 return 0; 167 } 168 else 169 { 170 printf("\n*** An old version of GLib (%u.%u.%u) was found.\n", 171 glib_major_version, glib_minor_version, glib_micro_version); 172 printf("*** You need a version of GLib newer than %u.%u.%u. The latest version of\n", 173 major, minor, micro); 174 printf("*** GLib is always available from ftp://ftp.gtk.org.\n"); 175 printf("***\n"); 176 printf("*** If you have already installed a sufficiently new version, this error\n"); 177 printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); 178 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 179 printf("*** of GLib, but you can also set the PKG_CONFIG environment to point to the\n"); 180 printf("*** correct copy of pkg-config. (In this case, you will have to\n"); 181 printf("*** modify your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf\n"); 182 printf("*** so that the correct libraries are found at run-time))\n"); 183 } 184 } 185 return 1; 186} 187],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) 188 CFLAGS="$ac_save_CFLAGS" 189 LIBS="$ac_save_LIBS" 190 fi 191 fi 192 if test "x$no_glib" = x ; then 193 AC_MSG_RESULT(yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)) 194 ifelse([$2], , :, [$2]) 195 else 196 AC_MSG_RESULT(no) 197 if test "$PKG_CONFIG" = "no" ; then 198 echo "*** A new enough version of pkg-config was not found." 199 echo "*** See http://www.freedesktop.org/software/pkgconfig/" 200 else 201 if test -f conf.glibtest ; then 202 : 203 else 204 echo "*** Could not run GLib test program, checking why..." 205 ac_save_CFLAGS="$CFLAGS" 206 ac_save_LIBS="$LIBS" 207 CFLAGS="$CFLAGS $GLIB_CFLAGS" 208 LIBS="$LIBS $GLIB_LIBS" 209 AC_TRY_LINK([ 210#include <glib.h> 211#include <stdio.h> 212], [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ], 213 [ echo "*** The test program compiled, but did not run. This usually means" 214 echo "*** that the run-time linker is not finding GLib or finding the wrong" 215 echo "*** version of GLib. If it is not finding GLib, you'll need to set your" 216 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 217 echo "*** to the installed location Also, make sure you have run ldconfig if that" 218 echo "*** is required on your system" 219 echo "***" 220 echo "*** If you have an old version installed, it is best to remove it, although" 221 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ], 222 [ echo "*** The test program failed to compile or link. See the file config.log for the" 223 echo "*** exact error that occurred. This usually means GLib is incorrectly installed."]) 224 CFLAGS="$ac_save_CFLAGS" 225 LIBS="$ac_save_LIBS" 226 fi 227 fi 228 GLIB_CFLAGS="" 229 GLIB_LIBS="" 230 GLIB_GENMARSHAL="" 231 GOBJECT_QUERY="" 232 GLIB_MKENUMS="" 233 GLIB_COMPILE_RESOURCES="" 234 ifelse([$3], , :, [$3]) 235 fi 236 rm -f conf.glibtest 237]) 238 239# Copyright (C) 1995-2002 Free Software Foundation, Inc. 240# Copyright (C) 2001-2003,2004 Red Hat, Inc. 241# 242# This file is free software, distributed under the terms of the GNU 243# General Public License. As a special exception to the GNU General 244# Public License, this file may be distributed as part of a program 245# that contains a configuration script generated by Autoconf, under 246# the same distribution terms as the rest of that program. 247# 248# This file can be copied and used freely without restrictions. It can 249# be used in projects which are not available under the GNU Public License 250# but which still want to provide support for the GNU gettext functionality. 251# 252# Macro to add for using GNU gettext. 253# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996 254# 255# Modified to never use included libintl. 256# Owen Taylor <otaylor@redhat.com>, 12/15/1998 257# 258# Major rework to remove unused code 259# Owen Taylor <otaylor@redhat.com>, 12/11/2002 260# 261# Added better handling of ALL_LINGUAS from GNU gettext version 262# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002 263# 264# Modified to require ngettext 265# Matthias Clasen <mclasen@redhat.com> 08/06/2004 266 267# Increment this whenever this file is changed. 268#serial 1 269 270# We need this here as well, since someone might use autoconf-2.5x 271# to configure GLib then an older version to configure a package 272# using AM_GLIB_GNU_GETTEXT 273AC_PREREQ(2.53) 274 275dnl 276dnl We go to great lengths to make sure that aclocal won't 277dnl try to pull in the installed version of these macros 278dnl when running aclocal in the glib directory. 279dnl 280m4_copy([AC_DEFUN],[glib_DEFUN]) 281m4_copy([AC_REQUIRE],[glib_REQUIRE]) 282dnl 283dnl At the end, if we're not within glib, we'll define the public 284dnl definitions in terms of our private definitions. 285dnl 286 287# GLIB_LC_MESSAGES 288#-------------------- 289glib_DEFUN([GLIB_LC_MESSAGES], 290 [AC_CHECK_HEADERS([locale.h]) 291 if test $ac_cv_header_locale_h = yes; then 292 AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, 293 [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], 294 am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) 295 if test $am_cv_val_LC_MESSAGES = yes; then 296 AC_DEFINE(HAVE_LC_MESSAGES, 1, 297 [Define if your <locale.h> file defines LC_MESSAGES.]) 298 fi 299 fi]) 300 301# GLIB_PATH_PROG_WITH_TEST 302#---------------------------- 303dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, 304dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) 305glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], 306[# Extract the first word of "$2", so it can be a program name with args. 307set dummy $2; ac_word=[$]2 308AC_MSG_CHECKING([for $ac_word]) 309AC_CACHE_VAL(ac_cv_path_$1, 310[case "[$]$1" in 311 /*) 312 ac_cv_path_$1="[$]$1" # Let the user override the test with a path. 313 ;; 314 *) 315 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 316 for ac_dir in ifelse([$5], , $PATH, [$5]); do 317 test -z "$ac_dir" && ac_dir=. 318 if test -f $ac_dir/$ac_word; then 319 if [$3]; then 320 ac_cv_path_$1="$ac_dir/$ac_word" 321 break 322 fi 323 fi 324 done 325 IFS="$ac_save_ifs" 326dnl If no 4th arg is given, leave the cache variable unset, 327dnl so AC_PATH_PROGS will keep looking. 328ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" 329])dnl 330 ;; 331esac])dnl 332$1="$ac_cv_path_$1" 333if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then 334 AC_MSG_RESULT([$]$1) 335else 336 AC_MSG_RESULT(no) 337fi 338AC_SUBST($1)dnl 339]) 340 341dnl Checks for special options needed on Mac OS X. 342dnl Defines INTL_MACOSX_LIBS. 343dnl 344dnl Copied from intlmacosx.m4 in gettext, GPL. 345dnl Copyright (C) 2004-2013 Free Software Foundation, Inc. 346glib_DEFUN([glib_gt_INTL_MACOSX], 347[ 348 dnl Check for API introduced in Mac OS X 10.2. 349 AC_CACHE_CHECK([for CFPreferencesCopyAppValue], 350 [gt_cv_func_CFPreferencesCopyAppValue], 351 [gt_save_LIBS="$LIBS" 352 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 353 AC_LINK_IFELSE( 354 [AC_LANG_PROGRAM( 355 [[#include <CoreFoundation/CFPreferences.h>]], 356 [[CFPreferencesCopyAppValue(NULL, NULL)]])], 357 [gt_cv_func_CFPreferencesCopyAppValue=yes], 358 [gt_cv_func_CFPreferencesCopyAppValue=no]) 359 LIBS="$gt_save_LIBS"]) 360 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 361 AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1], 362 [Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) 363 fi 364 dnl Check for API introduced in Mac OS X 10.3. 365 AC_CACHE_CHECK([for CFLocaleCopyCurrent], [gt_cv_func_CFLocaleCopyCurrent], 366 [gt_save_LIBS="$LIBS" 367 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 368 AC_LINK_IFELSE( 369 [AC_LANG_PROGRAM( 370 [[#include <CoreFoundation/CFLocale.h>]], 371 [[CFLocaleCopyCurrent();]])], 372 [gt_cv_func_CFLocaleCopyCurrent=yes], 373 [gt_cv_func_CFLocaleCopyCurrent=no]) 374 LIBS="$gt_save_LIBS"]) 375 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 376 AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], [1], 377 [Define to 1 if you have the Mac OS X function CFLocaleCopyCurrent in the CoreFoundation framework.]) 378 fi 379 INTL_MACOSX_LIBS= 380 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 381 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 382 fi 383 AC_SUBST([INTL_MACOSX_LIBS]) 384]) 385 386# GLIB_WITH_NLS 387#----------------- 388glib_DEFUN([GLIB_WITH_NLS], 389 dnl NLS is obligatory 390 [USE_NLS=yes 391 AC_SUBST(USE_NLS) 392 393 gt_cv_have_gettext=no 394 395 CATOBJEXT=NONE 396 XGETTEXT=: 397 INTLLIBS= 398 399 glib_gt_INTL_MACOSX 400 401 AC_CHECK_HEADER(libintl.h, 402 [gt_cv_func_dgettext_libintl="no" 403 libintl_extra_libs="" 404 405 # 406 # First check in libc 407 # 408 AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc, 409 [AC_TRY_LINK([ 410#include <libintl.h> 411], 412 [return !ngettext ("","", 1)], 413 gt_cv_func_ngettext_libc=yes, 414 gt_cv_func_ngettext_libc=no) 415 ]) 416 417 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 418 AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, 419 [AC_TRY_LINK([ 420#include <libintl.h> 421], 422 [return !dgettext ("","")], 423 gt_cv_func_dgettext_libc=yes, 424 gt_cv_func_dgettext_libc=no) 425 ]) 426 fi 427 428 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 429 AC_CHECK_FUNCS(bind_textdomain_codeset) 430 fi 431 432 # 433 # If we don't have everything we want, check in libintl 434 # 435 if test "$gt_cv_func_dgettext_libc" != "yes" \ 436 || test "$gt_cv_func_ngettext_libc" != "yes" \ 437 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then 438 439 AC_CHECK_LIB(intl, bindtextdomain, 440 [AC_CHECK_LIB(intl, ngettext, 441 [AC_CHECK_LIB(intl, dgettext, 442 gt_cv_func_dgettext_libintl=yes)])]) 443 444 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then 445 AC_MSG_CHECKING([if -liconv is needed to use gettext]) 446 AC_MSG_RESULT([]) 447 AC_CHECK_LIB(intl, ngettext, 448 [AC_CHECK_LIB(intl, dcgettext, 449 [gt_cv_func_dgettext_libintl=yes 450 libintl_extra_libs=-liconv], 451 :,-liconv)], 452 :,-liconv) 453 fi 454 455 # 456 # If we found libintl, then check in it for bind_textdomain_codeset(); 457 # we'll prefer libc if neither have bind_textdomain_codeset(), 458 # and both have dgettext and ngettext 459 # 460 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then 461 glib_save_LIBS="$LIBS" 462 LIBS="$LIBS -lintl $libintl_extra_libs" 463 unset ac_cv_func_bind_textdomain_codeset 464 AC_CHECK_FUNCS(bind_textdomain_codeset) 465 LIBS="$glib_save_LIBS" 466 467 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then 468 gt_cv_func_dgettext_libc=no 469 else 470 if test "$gt_cv_func_dgettext_libc" = "yes" \ 471 && test "$gt_cv_func_ngettext_libc" = "yes"; then 472 gt_cv_func_dgettext_libintl=no 473 fi 474 fi 475 fi 476 fi 477 478 if test "$gt_cv_func_dgettext_libc" = "yes" \ 479 || test "$gt_cv_func_dgettext_libintl" = "yes"; then 480 gt_cv_have_gettext=yes 481 fi 482 483 if test "$gt_cv_func_dgettext_libintl" = "yes"; then 484 INTLLIBS="-lintl $libintl_extra_libs $INTL_MACOSX_LIBS" 485 fi 486 487 if test "$gt_cv_have_gettext" = "yes"; then 488 AC_DEFINE(HAVE_GETTEXT,1, 489 [Define if the GNU gettext() function is already present or preinstalled.]) 490 GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, 491 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl 492 if test "$MSGFMT" != "no"; then 493 glib_save_LIBS="$LIBS" 494 LIBS="$LIBS $INTLLIBS" 495 AC_CHECK_FUNCS(dcgettext) 496 MSGFMT_OPTS= 497 AC_MSG_CHECKING([if msgfmt accepts -c]) 498 GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[ 499msgid "" 500msgstr "" 501"Content-Type: text/plain; charset=UTF-8\n" 502"Project-Id-Version: test 1.0\n" 503"PO-Revision-Date: 2007-02-15 12:01+0100\n" 504"Last-Translator: test <foo@bar.xx>\n" 505"Language-Team: C <LL@li.org>\n" 506"MIME-Version: 1.0\n" 507"Content-Transfer-Encoding: 8bit\n" 508], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])]) 509 AC_SUBST(MSGFMT_OPTS) 510 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) 511 GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, 512 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) 513 AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; 514 return _nl_msg_cat_cntr], 515 [CATOBJEXT=.gmo 516 DATADIRNAME=share], 517 [case $host in 518 *-*-solaris*) 519 dnl On Solaris, if bind_textdomain_codeset is in libc, 520 dnl GNU format message catalog is always supported, 521 dnl since both are added to the libc all together. 522 dnl Hence, we'd like to go with DATADIRNAME=share and 523 dnl and CATOBJEXT=.gmo in this case. 524 AC_CHECK_FUNC(bind_textdomain_codeset, 525 [CATOBJEXT=.gmo 526 DATADIRNAME=share], 527 [CATOBJEXT=.mo 528 DATADIRNAME=lib]) 529 ;; 530 *-*-openbsd*) 531 CATOBJEXT=.mo 532 DATADIRNAME=share 533 ;; 534 *) 535 CATOBJEXT=.mo 536 DATADIRNAME=lib 537 ;; 538 esac]) 539 LIBS="$glib_save_LIBS" 540 INSTOBJEXT=.mo 541 else 542 gt_cv_have_gettext=no 543 fi 544 fi 545 ]) 546 547 if test "$gt_cv_have_gettext" = "yes" ; then 548 AC_DEFINE(ENABLE_NLS, 1, 549 [always defined to indicate that i18n is enabled]) 550 fi 551 552 dnl Test whether we really found GNU xgettext. 553 if test "$XGETTEXT" != ":"; then 554 dnl If it is not GNU xgettext we define it as : so that the 555 dnl Makefiles still can work. 556 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then 557 : ; 558 else 559 AC_MSG_RESULT( 560 [found xgettext program is not GNU xgettext; ignore it]) 561 XGETTEXT=":" 562 fi 563 fi 564 565 # We need to process the po/ directory. 566 POSUB=po 567 568 AC_OUTPUT_COMMANDS( 569 [case "$CONFIG_FILES" in *po/Makefile.in*) 570 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile 571 esac]) 572 573 dnl These rules are solely for the distribution goal. While doing this 574 dnl we only have to keep exactly one list of the available catalogs 575 dnl in configure.ac. 576 for lang in $ALL_LINGUAS; do 577 GMOFILES="$GMOFILES $lang.gmo" 578 POFILES="$POFILES $lang.po" 579 done 580 581 dnl Make all variables we use known to autoconf. 582 AC_SUBST(CATALOGS) 583 AC_SUBST(CATOBJEXT) 584 AC_SUBST(DATADIRNAME) 585 AC_SUBST(GMOFILES) 586 AC_SUBST(INSTOBJEXT) 587 AC_SUBST(INTLLIBS) 588 AC_SUBST(PO_IN_DATADIR_TRUE) 589 AC_SUBST(PO_IN_DATADIR_FALSE) 590 AC_SUBST(POFILES) 591 AC_SUBST(POSUB) 592 ]) 593 594# AM_GLIB_GNU_GETTEXT 595# ------------------- 596# Do checks necessary for use of gettext. If a suitable implementation 597# of gettext is found in either in libintl or in the C library, 598# it will set INTLLIBS to the libraries needed for use of gettext 599# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable 600# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() 601# on various variables needed by the Makefile.in.in installed by 602# glib-gettextize. 603dnl 604AU_DEFUN([GLIB_GNU_GETTEXT], 605 [AC_REQUIRE([AC_PROG_CC])dnl 606 607 GLIB_LC_MESSAGES 608 GLIB_WITH_NLS 609 610 if test "$gt_cv_have_gettext" = "yes"; then 611 if test "x$ALL_LINGUAS" = "x"; then 612 LINGUAS= 613 else 614 AC_MSG_CHECKING(for catalogs to be installed) 615 NEW_LINGUAS= 616 for presentlang in $ALL_LINGUAS; do 617 useit=no 618 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then 619 desiredlanguages="$LINGUAS" 620 else 621 desiredlanguages="$ALL_LINGUAS" 622 fi 623 for desiredlang in $desiredlanguages; do 624 # Use the presentlang catalog if desiredlang is 625 # a. equal to presentlang, or 626 # b. a variant of presentlang (because in this case, 627 # presentlang can be used as a fallback for messages 628 # which are not translated in the desiredlang catalog). 629 case "$desiredlang" in 630 "$presentlang"*) useit=yes;; 631 esac 632 done 633 if test $useit = yes; then 634 NEW_LINGUAS="$NEW_LINGUAS $presentlang" 635 fi 636 done 637 LINGUAS=$NEW_LINGUAS 638 AC_MSG_RESULT($LINGUAS) 639 fi 640 641 dnl Construct list of names of catalog files to be constructed. 642 if test -n "$LINGUAS"; then 643 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 644 fi 645 fi 646 647 dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly 648 dnl find the mkinstalldirs script in another subdir but ($top_srcdir). 649 dnl Try to locate is. 650 MKINSTALLDIRS= 651 if test -n "$ac_aux_dir"; then 652 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" 653 fi 654 if test -z "$MKINSTALLDIRS"; then 655 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 656 fi 657 AC_SUBST(MKINSTALLDIRS) 658 659 dnl Generate list of files to be processed by xgettext which will 660 dnl be included in po/Makefile. 661 test -d po || mkdir po 662 if test "x$srcdir" != "x."; then 663 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then 664 posrcprefix="$srcdir/" 665 else 666 posrcprefix="../$srcdir/" 667 fi 668 else 669 posrcprefix="../" 670 fi 671 rm -f po/POTFILES 672 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ 673 < $srcdir/po/POTFILES.in > po/POTFILES 674 ], 675 [[$0: This macro is deprecated. You should use upstream gettext instead.]]) 676 677# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) 678# ------------------------------- 679# Define VARIABLE to the location where catalog files will 680# be installed by po/Makefile. 681glib_DEFUN([GLIB_DEFINE_LOCALEDIR], 682[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl 683glib_save_prefix="$prefix" 684glib_save_exec_prefix="$exec_prefix" 685glib_save_datarootdir="$datarootdir" 686test "x$prefix" = xNONE && prefix=$ac_default_prefix 687test "x$exec_prefix" = xNONE && exec_prefix=$prefix 688datarootdir=`eval echo "${datarootdir}"` 689if test "x$CATOBJEXT" = "x.mo" ; then 690 localedir=`eval echo "${libdir}/locale"` 691else 692 localedir=`eval echo "${datadir}/locale"` 693fi 694prefix="$glib_save_prefix" 695exec_prefix="$glib_save_exec_prefix" 696datarootdir="$glib_save_datarootdir" 697AC_DEFINE_UNQUOTED($1, "$localedir", 698 [Define the location where the catalogs will be installed]) 699]) 700 701dnl 702dnl Now the definitions that aclocal will find 703dnl 704ifdef(glib_configure_ac,[],[ 705AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) 706AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) 707])dnl 708 709# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL]) 710# 711# Create a temporary file with TEST-FILE as its contents and pass the 712# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with 713# 0 and perform ACTION-IF-FAIL for any other exit status. 714AC_DEFUN([GLIB_RUN_PROG], 715[cat >conftest.foo <<_ACEOF 716$2 717_ACEOF 718if AC_RUN_LOG([$1 conftest.foo]); then 719 m4_ifval([$3], [$3], [:]) 720m4_ifvaln([$4], [else $4])dnl 721echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD 722sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD 723fi]) 724 725 726# -*- mode: autoconf -*- 727# 728# gtk-doc.m4 - configure macro to check for gtk-doc 729# Copyright (C) 2003 James Henstridge 730# 2007-2017 Stefan Sauer 731# 732# This program is free software: you can redistribute it and/or modify 733# it under the terms of the GNU General Public License as published by 734# the Free Software Foundation, either version 3 of the License, or 735# (at your option) any later version. 736# 737# This program is distributed in the hope that it will be useful, 738# but WITHOUT ANY WARRANTY; without even the implied warranty of 739# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 740# GNU General Public License for more details. 741# 742# You should have received a copy of the GNU General Public License 743# along with this program. If not, see <http://www.gnu.org/licenses/>. 744# 745# As a special exception, the above copyright owner gives unlimited 746# permission to copy, distribute and modify the configure scripts that 747# are the output of Autoconf when processing the Macro. You need not 748# follow the terms of the GNU General Public License when using or 749# distributing such scripts, even though portions of the text of the 750# Macro appear in them. The GNU General Public License (GPL) does govern 751# all other use of the material that constitutes the Autoconf Macro. 752 753# serial 2 754 755dnl Usage: 756dnl GTK_DOC_CHECK([minimum-gtk-doc-version]) 757AC_DEFUN([GTK_DOC_CHECK], 758[ 759 AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 760 AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first 761 AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first 762 763 ifelse([$1],[],[gtk_doc_requires="gtk-doc"],[gtk_doc_requires="gtk-doc >= $1"]) 764 AC_MSG_CHECKING([for gtk-doc]) 765 PKG_CHECK_EXISTS([$gtk_doc_requires],[have_gtk_doc=yes],[have_gtk_doc=no]) 766 AC_MSG_RESULT($have_gtk_doc) 767 768 if test "$have_gtk_doc" = "no"; then 769 AC_MSG_WARN([ 770 You will not be able to create source packages with 'make dist' 771 because $gtk_doc_requires is not found.]) 772 fi 773 774 dnl check for tools we added during development 775 dnl Use AC_CHECK_PROG to avoid the check target using an absolute path that 776 dnl may not be writable by the user. Currently, automake requires that the 777 dnl test name must end in '.test'. 778 dnl https://bugzilla.gnome.org/show_bug.cgi?id=701638 779 AC_CHECK_PROG([GTKDOC_CHECK],[gtkdoc-check],[gtkdoc-check.test]) 780 AC_PATH_PROG([GTKDOC_CHECK_PATH],[gtkdoc-check]) 781 AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true]) 782 AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf]) 783 784 dnl for overriding the documentation installation directory 785 AC_ARG_WITH([html-dir], 786 AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),, 787 [with_html_dir='${datadir}/gtk-doc/html']) 788 HTML_DIR="$with_html_dir" 789 AC_SUBST([HTML_DIR]) 790 791 dnl enable/disable documentation building 792 AC_ARG_ENABLE([gtk-doc], 793 AS_HELP_STRING([--enable-gtk-doc], 794 [use gtk-doc to build documentation [[default=no]]]),, 795 [enable_gtk_doc=no]) 796 797 AC_MSG_CHECKING([whether to build gtk-doc documentation]) 798 AC_MSG_RESULT($enable_gtk_doc) 799 800 if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then 801 AC_MSG_ERROR([ 802 You must have $gtk_doc_requires installed to build documentation for 803 $PACKAGE_NAME. Please install gtk-doc or disable building the 804 documentation by adding '--disable-gtk-doc' to '[$]0'.]) 805 fi 806 807 dnl don't check for glib if we build glib 808 if test "x$PACKAGE_NAME" != "xglib"; then 809 dnl don't fail if someone does not have glib 810 PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0,,[:]) 811 fi 812 813 dnl enable/disable output formats 814 AC_ARG_ENABLE([gtk-doc-html], 815 AS_HELP_STRING([--enable-gtk-doc-html], 816 [build documentation in html format [[default=yes]]]),, 817 [enable_gtk_doc_html=yes]) 818 AC_ARG_ENABLE([gtk-doc-pdf], 819 AS_HELP_STRING([--enable-gtk-doc-pdf], 820 [build documentation in pdf format [[default=no]]]),, 821 [enable_gtk_doc_pdf=no]) 822 823 if test -z "$GTKDOC_MKPDF"; then 824 enable_gtk_doc_pdf=no 825 fi 826 827 if test -z "$AM_DEFAULT_VERBOSITY"; then 828 AM_DEFAULT_VERBOSITY=1 829 fi 830 AC_SUBST([AM_DEFAULT_VERBOSITY]) 831 832 AM_CONDITIONAL([HAVE_GTK_DOC], [test x$have_gtk_doc = xyes]) 833 AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes]) 834 AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes]) 835 AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes]) 836 AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"]) 837 AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"]) 838]) 839 840# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 841# 842# Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc. 843# Written by Gordon Matzigkeit, 1996 844# 845# This file is free software; the Free Software Foundation gives 846# unlimited permission to copy and/or distribute it, with or without 847# modifications, as long as this notice is preserved. 848 849m4_define([_LT_COPYING], [dnl 850# Copyright (C) 2014 Free Software Foundation, Inc. 851# This is free software; see the source for copying conditions. There is NO 852# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 853 854# GNU Libtool is free software; you can redistribute it and/or modify 855# it under the terms of the GNU General Public License as published by 856# the Free Software Foundation; either version 2 of of the License, or 857# (at your option) any later version. 858# 859# As a special exception to the GNU General Public License, if you 860# distribute this file as part of a program or library that is built 861# using GNU Libtool, you may include this file under the same 862# distribution terms that you use for the rest of that program. 863# 864# GNU Libtool is distributed in the hope that it will be useful, but 865# WITHOUT ANY WARRANTY; without even the implied warranty of 866# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 867# GNU General Public License for more details. 868# 869# You should have received a copy of the GNU General Public License 870# along with this program. If not, see <http://www.gnu.org/licenses/>. 871]) 872 873# serial 58 LT_INIT 874 875 876# LT_PREREQ(VERSION) 877# ------------------ 878# Complain and exit if this libtool version is less that VERSION. 879m4_defun([LT_PREREQ], 880[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, 881 [m4_default([$3], 882 [m4_fatal([Libtool version $1 or higher is required], 883 63)])], 884 [$2])]) 885 886 887# _LT_CHECK_BUILDDIR 888# ------------------ 889# Complain if the absolute build directory name contains unusual characters 890m4_defun([_LT_CHECK_BUILDDIR], 891[case `pwd` in 892 *\ * | *\ *) 893 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; 894esac 895]) 896 897 898# LT_INIT([OPTIONS]) 899# ------------------ 900AC_DEFUN([LT_INIT], 901[AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK 902AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 903AC_BEFORE([$0], [LT_LANG])dnl 904AC_BEFORE([$0], [LT_OUTPUT])dnl 905AC_BEFORE([$0], [LTDL_INIT])dnl 906m4_require([_LT_CHECK_BUILDDIR])dnl 907 908dnl Autoconf doesn't catch unexpanded LT_ macros by default: 909m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl 910m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl 911dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 912dnl unless we require an AC_DEFUNed macro: 913AC_REQUIRE([LTOPTIONS_VERSION])dnl 914AC_REQUIRE([LTSUGAR_VERSION])dnl 915AC_REQUIRE([LTVERSION_VERSION])dnl 916AC_REQUIRE([LTOBSOLETE_VERSION])dnl 917m4_require([_LT_PROG_LTMAIN])dnl 918 919_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) 920 921dnl Parse OPTIONS 922_LT_SET_OPTIONS([$0], [$1]) 923 924# This can be used to rebuild libtool when needed 925LIBTOOL_DEPS=$ltmain 926 927# Always use our own libtool. 928LIBTOOL='$(SHELL) $(top_builddir)/libtool' 929AC_SUBST(LIBTOOL)dnl 930 931_LT_SETUP 932 933# Only expand once: 934m4_define([LT_INIT]) 935])# LT_INIT 936 937# Old names: 938AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) 939AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) 940dnl aclocal-1.4 backwards compatibility: 941dnl AC_DEFUN([AC_PROG_LIBTOOL], []) 942dnl AC_DEFUN([AM_PROG_LIBTOOL], []) 943 944 945# _LT_PREPARE_CC_BASENAME 946# ----------------------- 947m4_defun([_LT_PREPARE_CC_BASENAME], [ 948# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 949func_cc_basename () 950{ 951 for cc_temp in @S|@*""; do 952 case $cc_temp in 953 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 954 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 955 \-*) ;; 956 *) break;; 957 esac 958 done 959 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 960} 961])# _LT_PREPARE_CC_BASENAME 962 963 964# _LT_CC_BASENAME(CC) 965# ------------------- 966# It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME, 967# but that macro is also expanded into generated libtool script, which 968# arranges for $SED and $ECHO to be set by different means. 969m4_defun([_LT_CC_BASENAME], 970[m4_require([_LT_PREPARE_CC_BASENAME])dnl 971AC_REQUIRE([_LT_DECL_SED])dnl 972AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 973func_cc_basename $1 974cc_basename=$func_cc_basename_result 975]) 976 977 978# _LT_FILEUTILS_DEFAULTS 979# ---------------------- 980# It is okay to use these file commands and assume they have been set 981# sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'. 982m4_defun([_LT_FILEUTILS_DEFAULTS], 983[: ${CP="cp -f"} 984: ${MV="mv -f"} 985: ${RM="rm -f"} 986])# _LT_FILEUTILS_DEFAULTS 987 988 989# _LT_SETUP 990# --------- 991m4_defun([_LT_SETUP], 992[AC_REQUIRE([AC_CANONICAL_HOST])dnl 993AC_REQUIRE([AC_CANONICAL_BUILD])dnl 994AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl 995AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 996 997_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl 998dnl 999_LT_DECL([], [host_alias], [0], [The host system])dnl 1000_LT_DECL([], [host], [0])dnl 1001_LT_DECL([], [host_os], [0])dnl 1002dnl 1003_LT_DECL([], [build_alias], [0], [The build system])dnl 1004_LT_DECL([], [build], [0])dnl 1005_LT_DECL([], [build_os], [0])dnl 1006dnl 1007AC_REQUIRE([AC_PROG_CC])dnl 1008AC_REQUIRE([LT_PATH_LD])dnl 1009AC_REQUIRE([LT_PATH_NM])dnl 1010dnl 1011AC_REQUIRE([AC_PROG_LN_S])dnl 1012test -z "$LN_S" && LN_S="ln -s" 1013_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl 1014dnl 1015AC_REQUIRE([LT_CMD_MAX_LEN])dnl 1016_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl 1017_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl 1018dnl 1019m4_require([_LT_FILEUTILS_DEFAULTS])dnl 1020m4_require([_LT_CHECK_SHELL_FEATURES])dnl 1021m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl 1022m4_require([_LT_CMD_RELOAD])dnl 1023m4_require([_LT_CHECK_MAGIC_METHOD])dnl 1024m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl 1025m4_require([_LT_CMD_OLD_ARCHIVE])dnl 1026m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 1027m4_require([_LT_WITH_SYSROOT])dnl 1028m4_require([_LT_CMD_TRUNCATE])dnl 1029 1030_LT_CONFIG_LIBTOOL_INIT([ 1031# See if we are running on zsh, and set the options that allow our 1032# commands through without removal of \ escapes INIT. 1033if test -n "\${ZSH_VERSION+set}"; then 1034 setopt NO_GLOB_SUBST 1035fi 1036]) 1037if test -n "${ZSH_VERSION+set}"; then 1038 setopt NO_GLOB_SUBST 1039fi 1040 1041_LT_CHECK_OBJDIR 1042 1043m4_require([_LT_TAG_COMPILER])dnl 1044 1045case $host_os in 1046aix3*) 1047 # AIX sometimes has problems with the GCC collect2 program. For some 1048 # reason, if we set the COLLECT_NAMES environment variable, the problems 1049 # vanish in a puff of smoke. 1050 if test set != "${COLLECT_NAMES+set}"; then 1051 COLLECT_NAMES= 1052 export COLLECT_NAMES 1053 fi 1054 ;; 1055esac 1056 1057# Global variables: 1058ofile=libtool 1059can_build_shared=yes 1060 1061# All known linkers require a '.a' archive for static linking (except MSVC, 1062# which needs '.lib'). 1063libext=a 1064 1065with_gnu_ld=$lt_cv_prog_gnu_ld 1066 1067old_CC=$CC 1068old_CFLAGS=$CFLAGS 1069 1070# Set sane defaults for various variables 1071test -z "$CC" && CC=cc 1072test -z "$LTCC" && LTCC=$CC 1073test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 1074test -z "$LD" && LD=ld 1075test -z "$ac_objext" && ac_objext=o 1076 1077_LT_CC_BASENAME([$compiler]) 1078 1079# Only perform the check for file, if the check method requires it 1080test -z "$MAGIC_CMD" && MAGIC_CMD=file 1081case $deplibs_check_method in 1082file_magic*) 1083 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 1084 _LT_PATH_MAGIC 1085 fi 1086 ;; 1087esac 1088 1089# Use C for the default configuration in the libtool script 1090LT_SUPPORTED_TAG([CC]) 1091_LT_LANG_C_CONFIG 1092_LT_LANG_DEFAULT_CONFIG 1093_LT_CONFIG_COMMANDS 1094])# _LT_SETUP 1095 1096 1097# _LT_PREPARE_SED_QUOTE_VARS 1098# -------------------------- 1099# Define a few sed substitution that help us do robust quoting. 1100m4_defun([_LT_PREPARE_SED_QUOTE_VARS], 1101[# Backslashify metacharacters that are still active within 1102# double-quoted strings. 1103sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' 1104 1105# Same as above, but do not quote variable references. 1106double_quote_subst='s/\([["`\\]]\)/\\\1/g' 1107 1108# Sed substitution to delay expansion of an escaped shell variable in a 1109# double_quote_subst'ed string. 1110delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 1111 1112# Sed substitution to delay expansion of an escaped single quote. 1113delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 1114 1115# Sed substitution to avoid accidental globbing in evaled expressions 1116no_glob_subst='s/\*/\\\*/g' 1117]) 1118 1119# _LT_PROG_LTMAIN 1120# --------------- 1121# Note that this code is called both from 'configure', and 'config.status' 1122# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 1123# 'config.status' has no value for ac_aux_dir unless we are using Automake, 1124# so we pass a copy along to make sure it has a sensible value anyway. 1125m4_defun([_LT_PROG_LTMAIN], 1126[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 1127_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) 1128ltmain=$ac_aux_dir/ltmain.sh 1129])# _LT_PROG_LTMAIN 1130 1131 1132 1133# So that we can recreate a full libtool script including additional 1134# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 1135# in macros and then make a single call at the end using the 'libtool' 1136# label. 1137 1138 1139# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 1140# ---------------------------------------- 1141# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 1142m4_define([_LT_CONFIG_LIBTOOL_INIT], 1143[m4_ifval([$1], 1144 [m4_append([_LT_OUTPUT_LIBTOOL_INIT], 1145 [$1 1146])])]) 1147 1148# Initialize. 1149m4_define([_LT_OUTPUT_LIBTOOL_INIT]) 1150 1151 1152# _LT_CONFIG_LIBTOOL([COMMANDS]) 1153# ------------------------------ 1154# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. 1155m4_define([_LT_CONFIG_LIBTOOL], 1156[m4_ifval([$1], 1157 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], 1158 [$1 1159])])]) 1160 1161# Initialize. 1162m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) 1163 1164 1165# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) 1166# ----------------------------------------------------- 1167m4_defun([_LT_CONFIG_SAVE_COMMANDS], 1168[_LT_CONFIG_LIBTOOL([$1]) 1169_LT_CONFIG_LIBTOOL_INIT([$2]) 1170]) 1171 1172 1173# _LT_FORMAT_COMMENT([COMMENT]) 1174# ----------------------------- 1175# Add leading comment marks to the start of each line, and a trailing 1176# full-stop to the whole comment if one is not present already. 1177m4_define([_LT_FORMAT_COMMENT], 1178[m4_ifval([$1], [ 1179m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], 1180 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) 1181)]) 1182 1183 1184 1185 1186 1187# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) 1188# ------------------------------------------------------------------- 1189# CONFIGNAME is the name given to the value in the libtool script. 1190# VARNAME is the (base) name used in the configure script. 1191# VALUE may be 0, 1 or 2 for a computed quote escaped value based on 1192# VARNAME. Any other value will be used directly. 1193m4_define([_LT_DECL], 1194[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], 1195 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], 1196 [m4_ifval([$1], [$1], [$2])]) 1197 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) 1198 m4_ifval([$4], 1199 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) 1200 lt_dict_add_subkey([lt_decl_dict], [$2], 1201 [tagged?], [m4_ifval([$5], [yes], [no])])]) 1202]) 1203 1204 1205# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) 1206# -------------------------------------------------------- 1207m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) 1208 1209 1210# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) 1211# ------------------------------------------------ 1212m4_define([lt_decl_tag_varnames], 1213[_lt_decl_filter([tagged?], [yes], $@)]) 1214 1215 1216# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) 1217# --------------------------------------------------------- 1218m4_define([_lt_decl_filter], 1219[m4_case([$#], 1220 [0], [m4_fatal([$0: too few arguments: $#])], 1221 [1], [m4_fatal([$0: too few arguments: $#: $1])], 1222 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], 1223 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], 1224 [lt_dict_filter([lt_decl_dict], $@)])[]dnl 1225]) 1226 1227 1228# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) 1229# -------------------------------------------------- 1230m4_define([lt_decl_quote_varnames], 1231[_lt_decl_filter([value], [1], $@)]) 1232 1233 1234# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) 1235# --------------------------------------------------- 1236m4_define([lt_decl_dquote_varnames], 1237[_lt_decl_filter([value], [2], $@)]) 1238 1239 1240# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) 1241# --------------------------------------------------- 1242m4_define([lt_decl_varnames_tagged], 1243[m4_assert([$# <= 2])dnl 1244_$0(m4_quote(m4_default([$1], [[, ]])), 1245 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), 1246 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) 1247m4_define([_lt_decl_varnames_tagged], 1248[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) 1249 1250 1251# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) 1252# ------------------------------------------------ 1253m4_define([lt_decl_all_varnames], 1254[_$0(m4_quote(m4_default([$1], [[, ]])), 1255 m4_if([$2], [], 1256 m4_quote(lt_decl_varnames), 1257 m4_quote(m4_shift($@))))[]dnl 1258]) 1259m4_define([_lt_decl_all_varnames], 1260[lt_join($@, lt_decl_varnames_tagged([$1], 1261 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl 1262]) 1263 1264 1265# _LT_CONFIG_STATUS_DECLARE([VARNAME]) 1266# ------------------------------------ 1267# Quote a variable value, and forward it to 'config.status' so that its 1268# declaration there will have the same value as in 'configure'. VARNAME 1269# must have a single quote delimited value for this to work. 1270m4_define([_LT_CONFIG_STATUS_DECLARE], 1271[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) 1272 1273 1274# _LT_CONFIG_STATUS_DECLARATIONS 1275# ------------------------------ 1276# We delimit libtool config variables with single quotes, so when 1277# we write them to config.status, we have to be sure to quote all 1278# embedded single quotes properly. In configure, this macro expands 1279# each variable declared with _LT_DECL (and _LT_TAGDECL) into: 1280# 1281# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' 1282m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], 1283[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), 1284 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) 1285 1286 1287# _LT_LIBTOOL_TAGS 1288# ---------------- 1289# Output comment and list of tags supported by the script 1290m4_defun([_LT_LIBTOOL_TAGS], 1291[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl 1292available_tags='_LT_TAGS'dnl 1293]) 1294 1295 1296# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 1297# ----------------------------------- 1298# Extract the dictionary values for VARNAME (optionally with TAG) and 1299# expand to a commented shell variable setting: 1300# 1301# # Some comment about what VAR is for. 1302# visible_name=$lt_internal_name 1303m4_define([_LT_LIBTOOL_DECLARE], 1304[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], 1305 [description])))[]dnl 1306m4_pushdef([_libtool_name], 1307 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl 1308m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), 1309 [0], [_libtool_name=[$]$1], 1310 [1], [_libtool_name=$lt_[]$1], 1311 [2], [_libtool_name=$lt_[]$1], 1312 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl 1313m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl 1314]) 1315 1316 1317# _LT_LIBTOOL_CONFIG_VARS 1318# ----------------------- 1319# Produce commented declarations of non-tagged libtool config variables 1320# suitable for insertion in the LIBTOOL CONFIG section of the 'libtool' 1321# script. Tagged libtool config variables (even for the LIBTOOL CONFIG 1322# section) are produced by _LT_LIBTOOL_TAG_VARS. 1323m4_defun([_LT_LIBTOOL_CONFIG_VARS], 1324[m4_foreach([_lt_var], 1325 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), 1326 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) 1327 1328 1329# _LT_LIBTOOL_TAG_VARS(TAG) 1330# ------------------------- 1331m4_define([_LT_LIBTOOL_TAG_VARS], 1332[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), 1333 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) 1334 1335 1336# _LT_TAGVAR(VARNAME, [TAGNAME]) 1337# ------------------------------ 1338m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) 1339 1340 1341# _LT_CONFIG_COMMANDS 1342# ------------------- 1343# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 1344# variables for single and double quote escaping we saved from calls 1345# to _LT_DECL, we can put quote escaped variables declarations 1346# into 'config.status', and then the shell code to quote escape them in 1347# for loops in 'config.status'. Finally, any additional code accumulated 1348# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 1349m4_defun([_LT_CONFIG_COMMANDS], 1350[AC_PROVIDE_IFELSE([LT_OUTPUT], 1351 dnl If the libtool generation code has been placed in $CONFIG_LT, 1352 dnl instead of duplicating it all over again into config.status, 1353 dnl then we will have config.status run $CONFIG_LT later, so it 1354 dnl needs to know what name is stored there: 1355 [AC_CONFIG_COMMANDS([libtool], 1356 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], 1357 dnl If the libtool generation code is destined for config.status, 1358 dnl expand the accumulated commands and init code now: 1359 [AC_CONFIG_COMMANDS([libtool], 1360 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) 1361])#_LT_CONFIG_COMMANDS 1362 1363 1364# Initialize. 1365m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], 1366[ 1367 1368# The HP-UX ksh and POSIX shell print the target directory to stdout 1369# if CDPATH is set. 1370(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 1371 1372sed_quote_subst='$sed_quote_subst' 1373double_quote_subst='$double_quote_subst' 1374delay_variable_subst='$delay_variable_subst' 1375_LT_CONFIG_STATUS_DECLARATIONS 1376LTCC='$LTCC' 1377LTCFLAGS='$LTCFLAGS' 1378compiler='$compiler_DEFAULT' 1379 1380# A function that is used when there is no print builtin or printf. 1381func_fallback_echo () 1382{ 1383 eval 'cat <<_LTECHO_EOF 1384\$[]1 1385_LTECHO_EOF' 1386} 1387 1388# Quote evaled strings. 1389for var in lt_decl_all_varnames([[ \ 1390]], lt_decl_quote_varnames); do 1391 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 1392 *[[\\\\\\\`\\"\\\$]]*) 1393 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 1394 ;; 1395 *) 1396 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 1397 ;; 1398 esac 1399done 1400 1401# Double-quote double-evaled strings. 1402for var in lt_decl_all_varnames([[ \ 1403]], lt_decl_dquote_varnames); do 1404 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 1405 *[[\\\\\\\`\\"\\\$]]*) 1406 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 1407 ;; 1408 *) 1409 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 1410 ;; 1411 esac 1412done 1413 1414_LT_OUTPUT_LIBTOOL_INIT 1415]) 1416 1417# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) 1418# ------------------------------------ 1419# Generate a child script FILE with all initialization necessary to 1420# reuse the environment learned by the parent script, and make the 1421# file executable. If COMMENT is supplied, it is inserted after the 1422# '#!' sequence but before initialization text begins. After this 1423# macro, additional text can be appended to FILE to form the body of 1424# the child script. The macro ends with non-zero status if the 1425# file could not be fully written (such as if the disk is full). 1426m4_ifdef([AS_INIT_GENERATED], 1427[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], 1428[m4_defun([_LT_GENERATED_FILE_INIT], 1429[m4_require([AS_PREPARE])]dnl 1430[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl 1431[lt_write_fail=0 1432cat >$1 <<_ASEOF || lt_write_fail=1 1433#! $SHELL 1434# Generated by $as_me. 1435$2 1436SHELL=\${CONFIG_SHELL-$SHELL} 1437export SHELL 1438_ASEOF 1439cat >>$1 <<\_ASEOF || lt_write_fail=1 1440AS_SHELL_SANITIZE 1441_AS_PREPARE 1442exec AS_MESSAGE_FD>&1 1443_ASEOF 1444test 0 = "$lt_write_fail" && chmod +x $1[]dnl 1445m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT 1446 1447# LT_OUTPUT 1448# --------- 1449# This macro allows early generation of the libtool script (before 1450# AC_OUTPUT is called), incase it is used in configure for compilation 1451# tests. 1452AC_DEFUN([LT_OUTPUT], 1453[: ${CONFIG_LT=./config.lt} 1454AC_MSG_NOTICE([creating $CONFIG_LT]) 1455_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], 1456[# Run this file to recreate a libtool stub with the current configuration.]) 1457 1458cat >>"$CONFIG_LT" <<\_LTEOF 1459lt_cl_silent=false 1460exec AS_MESSAGE_LOG_FD>>config.log 1461{ 1462 echo 1463 AS_BOX([Running $as_me.]) 1464} >&AS_MESSAGE_LOG_FD 1465 1466lt_cl_help="\ 1467'$as_me' creates a local libtool stub from the current configuration, 1468for use in further configure time tests before the real libtool is 1469generated. 1470 1471Usage: $[0] [[OPTIONS]] 1472 1473 -h, --help print this help, then exit 1474 -V, --version print version number, then exit 1475 -q, --quiet do not print progress messages 1476 -d, --debug don't remove temporary files 1477 1478Report bugs to <bug-libtool@gnu.org>." 1479 1480lt_cl_version="\ 1481m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl 1482m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) 1483configured by $[0], generated by m4_PACKAGE_STRING. 1484 1485Copyright (C) 2011 Free Software Foundation, Inc. 1486This config.lt script is free software; the Free Software Foundation 1487gives unlimited permision to copy, distribute and modify it." 1488 1489while test 0 != $[#] 1490do 1491 case $[1] in 1492 --version | --v* | -V ) 1493 echo "$lt_cl_version"; exit 0 ;; 1494 --help | --h* | -h ) 1495 echo "$lt_cl_help"; exit 0 ;; 1496 --debug | --d* | -d ) 1497 debug=: ;; 1498 --quiet | --q* | --silent | --s* | -q ) 1499 lt_cl_silent=: ;; 1500 1501 -*) AC_MSG_ERROR([unrecognized option: $[1] 1502Try '$[0] --help' for more information.]) ;; 1503 1504 *) AC_MSG_ERROR([unrecognized argument: $[1] 1505Try '$[0] --help' for more information.]) ;; 1506 esac 1507 shift 1508done 1509 1510if $lt_cl_silent; then 1511 exec AS_MESSAGE_FD>/dev/null 1512fi 1513_LTEOF 1514 1515cat >>"$CONFIG_LT" <<_LTEOF 1516_LT_OUTPUT_LIBTOOL_COMMANDS_INIT 1517_LTEOF 1518 1519cat >>"$CONFIG_LT" <<\_LTEOF 1520AC_MSG_NOTICE([creating $ofile]) 1521_LT_OUTPUT_LIBTOOL_COMMANDS 1522AS_EXIT(0) 1523_LTEOF 1524chmod +x "$CONFIG_LT" 1525 1526# configure is writing to config.log, but config.lt does its own redirection, 1527# appending to config.log, which fails on DOS, as config.log is still kept 1528# open by configure. Here we exec the FD to /dev/null, effectively closing 1529# config.log, so it can be properly (re)opened and appended to by config.lt. 1530lt_cl_success=: 1531test yes = "$silent" && 1532 lt_config_lt_args="$lt_config_lt_args --quiet" 1533exec AS_MESSAGE_LOG_FD>/dev/null 1534$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 1535exec AS_MESSAGE_LOG_FD>>config.log 1536$lt_cl_success || AS_EXIT(1) 1537])# LT_OUTPUT 1538 1539 1540# _LT_CONFIG(TAG) 1541# --------------- 1542# If TAG is the built-in tag, create an initial libtool script with a 1543# default configuration from the untagged config vars. Otherwise add code 1544# to config.status for appending the configuration named by TAG from the 1545# matching tagged config vars. 1546m4_defun([_LT_CONFIG], 1547[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 1548_LT_CONFIG_SAVE_COMMANDS([ 1549 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 1550 m4_if(_LT_TAG, [C], [ 1551 # See if we are running on zsh, and set the options that allow our 1552 # commands through without removal of \ escapes. 1553 if test -n "${ZSH_VERSION+set}"; then 1554 setopt NO_GLOB_SUBST 1555 fi 1556 1557 cfgfile=${ofile}T 1558 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 1559 $RM "$cfgfile" 1560 1561 cat <<_LT_EOF >> "$cfgfile" 1562#! $SHELL 1563# Generated automatically by $as_me ($PACKAGE) $VERSION 1564# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 1565# NOTE: Changes made to this file will be lost: look at ltmain.sh. 1566 1567# Provide generalized library-building support services. 1568# Written by Gordon Matzigkeit, 1996 1569 1570_LT_COPYING 1571_LT_LIBTOOL_TAGS 1572 1573# Configured defaults for sys_lib_dlsearch_path munging. 1574: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 1575 1576# ### BEGIN LIBTOOL CONFIG 1577_LT_LIBTOOL_CONFIG_VARS 1578_LT_LIBTOOL_TAG_VARS 1579# ### END LIBTOOL CONFIG 1580 1581_LT_EOF 1582 1583 cat <<'_LT_EOF' >> "$cfgfile" 1584 1585# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 1586 1587_LT_PREPARE_MUNGE_PATH_LIST 1588_LT_PREPARE_CC_BASENAME 1589 1590# ### END FUNCTIONS SHARED WITH CONFIGURE 1591 1592_LT_EOF 1593 1594 case $host_os in 1595 aix3*) 1596 cat <<\_LT_EOF >> "$cfgfile" 1597# AIX sometimes has problems with the GCC collect2 program. For some 1598# reason, if we set the COLLECT_NAMES environment variable, the problems 1599# vanish in a puff of smoke. 1600if test set != "${COLLECT_NAMES+set}"; then 1601 COLLECT_NAMES= 1602 export COLLECT_NAMES 1603fi 1604_LT_EOF 1605 ;; 1606 esac 1607 1608 _LT_PROG_LTMAIN 1609 1610 # We use sed instead of cat because bash on DJGPP gets confused if 1611 # if finds mixed CR/LF and LF-only lines. Since sed operates in 1612 # text mode, it properly converts lines to CR/LF. This bash problem 1613 # is reportedly fixed, but why not run on old versions too? 1614 sed '$q' "$ltmain" >> "$cfgfile" \ 1615 || (rm -f "$cfgfile"; exit 1) 1616 1617 mv -f "$cfgfile" "$ofile" || 1618 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 1619 chmod +x "$ofile" 1620], 1621[cat <<_LT_EOF >> "$ofile" 1622 1623dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded 1624dnl in a comment (ie after a #). 1625# ### BEGIN LIBTOOL TAG CONFIG: $1 1626_LT_LIBTOOL_TAG_VARS(_LT_TAG) 1627# ### END LIBTOOL TAG CONFIG: $1 1628_LT_EOF 1629])dnl /m4_if 1630], 1631[m4_if([$1], [], [ 1632 PACKAGE='$PACKAGE' 1633 VERSION='$VERSION' 1634 RM='$RM' 1635 ofile='$ofile'], []) 1636])dnl /_LT_CONFIG_SAVE_COMMANDS 1637])# _LT_CONFIG 1638 1639 1640# LT_SUPPORTED_TAG(TAG) 1641# --------------------- 1642# Trace this macro to discover what tags are supported by the libtool 1643# --tag option, using: 1644# autoconf --trace 'LT_SUPPORTED_TAG:$1' 1645AC_DEFUN([LT_SUPPORTED_TAG], []) 1646 1647 1648# C support is built-in for now 1649m4_define([_LT_LANG_C_enabled], []) 1650m4_define([_LT_TAGS], []) 1651 1652 1653# LT_LANG(LANG) 1654# ------------- 1655# Enable libtool support for the given language if not already enabled. 1656AC_DEFUN([LT_LANG], 1657[AC_BEFORE([$0], [LT_OUTPUT])dnl 1658m4_case([$1], 1659 [C], [_LT_LANG(C)], 1660 [C++], [_LT_LANG(CXX)], 1661 [Go], [_LT_LANG(GO)], 1662 [Java], [_LT_LANG(GCJ)], 1663 [Fortran 77], [_LT_LANG(F77)], 1664 [Fortran], [_LT_LANG(FC)], 1665 [Windows Resource], [_LT_LANG(RC)], 1666 [m4_ifdef([_LT_LANG_]$1[_CONFIG], 1667 [_LT_LANG($1)], 1668 [m4_fatal([$0: unsupported language: "$1"])])])dnl 1669])# LT_LANG 1670 1671 1672# _LT_LANG(LANGNAME) 1673# ------------------ 1674m4_defun([_LT_LANG], 1675[m4_ifdef([_LT_LANG_]$1[_enabled], [], 1676 [LT_SUPPORTED_TAG([$1])dnl 1677 m4_append([_LT_TAGS], [$1 ])dnl 1678 m4_define([_LT_LANG_]$1[_enabled], [])dnl 1679 _LT_LANG_$1_CONFIG($1)])dnl 1680])# _LT_LANG 1681 1682 1683m4_ifndef([AC_PROG_GO], [ 1684# NOTE: This macro has been submitted for inclusion into # 1685# GNU Autoconf as AC_PROG_GO. When it is available in # 1686# a released version of Autoconf we should remove this # 1687# macro and use it instead. # 1688m4_defun([AC_PROG_GO], 1689[AC_LANG_PUSH(Go)dnl 1690AC_ARG_VAR([GOC], [Go compiler command])dnl 1691AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl 1692_AC_ARG_VAR_LDFLAGS()dnl 1693AC_CHECK_TOOL(GOC, gccgo) 1694if test -z "$GOC"; then 1695 if test -n "$ac_tool_prefix"; then 1696 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) 1697 fi 1698fi 1699if test -z "$GOC"; then 1700 AC_CHECK_PROG(GOC, gccgo, gccgo, false) 1701fi 1702])#m4_defun 1703])#m4_ifndef 1704 1705 1706# _LT_LANG_DEFAULT_CONFIG 1707# ----------------------- 1708m4_defun([_LT_LANG_DEFAULT_CONFIG], 1709[AC_PROVIDE_IFELSE([AC_PROG_CXX], 1710 [LT_LANG(CXX)], 1711 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) 1712 1713AC_PROVIDE_IFELSE([AC_PROG_F77], 1714 [LT_LANG(F77)], 1715 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) 1716 1717AC_PROVIDE_IFELSE([AC_PROG_FC], 1718 [LT_LANG(FC)], 1719 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) 1720 1721dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal 1722dnl pulling things in needlessly. 1723AC_PROVIDE_IFELSE([AC_PROG_GCJ], 1724 [LT_LANG(GCJ)], 1725 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 1726 [LT_LANG(GCJ)], 1727 [AC_PROVIDE_IFELSE([LT_PROG_GCJ], 1728 [LT_LANG(GCJ)], 1729 [m4_ifdef([AC_PROG_GCJ], 1730 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) 1731 m4_ifdef([A][M_PROG_GCJ], 1732 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) 1733 m4_ifdef([LT_PROG_GCJ], 1734 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) 1735 1736AC_PROVIDE_IFELSE([AC_PROG_GO], 1737 [LT_LANG(GO)], 1738 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) 1739 1740AC_PROVIDE_IFELSE([LT_PROG_RC], 1741 [LT_LANG(RC)], 1742 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) 1743])# _LT_LANG_DEFAULT_CONFIG 1744 1745# Obsolete macros: 1746AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) 1747AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) 1748AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) 1749AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) 1750AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) 1751dnl aclocal-1.4 backwards compatibility: 1752dnl AC_DEFUN([AC_LIBTOOL_CXX], []) 1753dnl AC_DEFUN([AC_LIBTOOL_F77], []) 1754dnl AC_DEFUN([AC_LIBTOOL_FC], []) 1755dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) 1756dnl AC_DEFUN([AC_LIBTOOL_RC], []) 1757 1758 1759# _LT_TAG_COMPILER 1760# ---------------- 1761m4_defun([_LT_TAG_COMPILER], 1762[AC_REQUIRE([AC_PROG_CC])dnl 1763 1764_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl 1765_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl 1766_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl 1767_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl 1768 1769# If no C compiler was specified, use CC. 1770LTCC=${LTCC-"$CC"} 1771 1772# If no C compiler flags were specified, use CFLAGS. 1773LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 1774 1775# Allow CC to be a program name with arguments. 1776compiler=$CC 1777])# _LT_TAG_COMPILER 1778 1779 1780# _LT_COMPILER_BOILERPLATE 1781# ------------------------ 1782# Check for compiler boilerplate output or warnings with 1783# the simple compiler test code. 1784m4_defun([_LT_COMPILER_BOILERPLATE], 1785[m4_require([_LT_DECL_SED])dnl 1786ac_outfile=conftest.$ac_objext 1787echo "$lt_simple_compile_test_code" >conftest.$ac_ext 1788eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 1789_lt_compiler_boilerplate=`cat conftest.err` 1790$RM conftest* 1791])# _LT_COMPILER_BOILERPLATE 1792 1793 1794# _LT_LINKER_BOILERPLATE 1795# ---------------------- 1796# Check for linker boilerplate output or warnings with 1797# the simple link test code. 1798m4_defun([_LT_LINKER_BOILERPLATE], 1799[m4_require([_LT_DECL_SED])dnl 1800ac_outfile=conftest.$ac_objext 1801echo "$lt_simple_link_test_code" >conftest.$ac_ext 1802eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 1803_lt_linker_boilerplate=`cat conftest.err` 1804$RM -r conftest* 1805])# _LT_LINKER_BOILERPLATE 1806 1807# _LT_REQUIRED_DARWIN_CHECKS 1808# ------------------------- 1809m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ 1810 case $host_os in 1811 rhapsody* | darwin*) 1812 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) 1813 AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 1814 AC_CHECK_TOOL([LIPO], [lipo], [:]) 1815 AC_CHECK_TOOL([OTOOL], [otool], [:]) 1816 AC_CHECK_TOOL([OTOOL64], [otool64], [:]) 1817 _LT_DECL([], [DSYMUTIL], [1], 1818 [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) 1819 _LT_DECL([], [NMEDIT], [1], 1820 [Tool to change global to local symbols on Mac OS X]) 1821 _LT_DECL([], [LIPO], [1], 1822 [Tool to manipulate fat objects and archives on Mac OS X]) 1823 _LT_DECL([], [OTOOL], [1], 1824 [ldd/readelf like tool for Mach-O binaries on Mac OS X]) 1825 _LT_DECL([], [OTOOL64], [1], 1826 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) 1827 1828 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 1829 [lt_cv_apple_cc_single_mod=no 1830 if test -z "$LT_MULTI_MODULE"; then 1831 # By default we will add the -single_module flag. You can override 1832 # by either setting the environment variable LT_MULTI_MODULE 1833 # non-empty at configure time, or by adding -multi_module to the 1834 # link flags. 1835 rm -rf libconftest.dylib* 1836 echo "int foo(void){return 1;}" > conftest.c 1837 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 1838-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD 1839 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 1840 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 1841 _lt_result=$? 1842 # If there is a non-empty error log, and "single_module" 1843 # appears in it, assume the flag caused a linker warning 1844 if test -s conftest.err && $GREP single_module conftest.err; then 1845 cat conftest.err >&AS_MESSAGE_LOG_FD 1846 # Otherwise, if the output was created with a 0 exit code from 1847 # the compiler, it worked. 1848 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 1849 lt_cv_apple_cc_single_mod=yes 1850 else 1851 cat conftest.err >&AS_MESSAGE_LOG_FD 1852 fi 1853 rm -rf libconftest.dylib* 1854 rm -f conftest.* 1855 fi]) 1856 1857 AC_CACHE_CHECK([for -exported_symbols_list linker flag], 1858 [lt_cv_ld_exported_symbols_list], 1859 [lt_cv_ld_exported_symbols_list=no 1860 save_LDFLAGS=$LDFLAGS 1861 echo "_main" > conftest.sym 1862 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 1863 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 1864 [lt_cv_ld_exported_symbols_list=yes], 1865 [lt_cv_ld_exported_symbols_list=no]) 1866 LDFLAGS=$save_LDFLAGS 1867 ]) 1868 1869 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], 1870 [lt_cv_ld_force_load=no 1871 cat > conftest.c << _LT_EOF 1872int forced_loaded() { return 2;} 1873_LT_EOF 1874 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD 1875 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD 1876 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD 1877 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD 1878 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD 1879 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD 1880 cat > conftest.c << _LT_EOF 1881int main() { return 0;} 1882_LT_EOF 1883 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD 1884 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 1885 _lt_result=$? 1886 if test -s conftest.err && $GREP force_load conftest.err; then 1887 cat conftest.err >&AS_MESSAGE_LOG_FD 1888 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 1889 lt_cv_ld_force_load=yes 1890 else 1891 cat conftest.err >&AS_MESSAGE_LOG_FD 1892 fi 1893 rm -f conftest.err libconftest.a conftest conftest.c 1894 rm -rf conftest.dSYM 1895 ]) 1896 case $host_os in 1897 rhapsody* | darwin1.[[012]]) 1898 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 1899 darwin1.*) 1900 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 1901 darwin*) # darwin 5.x on 1902 # if running on 10.5 or later, the deployment target defaults 1903 # to the OS version, if on x86, and 10.4, the deployment 1904 # target defaults to 10.4. Don't you love it? 1905 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 1906 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 1907 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 1908 10.[[012]][[,.]]*) 1909 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 1910 10.*) 1911 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 1912 esac 1913 ;; 1914 esac 1915 if test yes = "$lt_cv_apple_cc_single_mod"; then 1916 _lt_dar_single_mod='$single_module' 1917 fi 1918 if test yes = "$lt_cv_ld_exported_symbols_list"; then 1919 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 1920 else 1921 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 1922 fi 1923 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 1924 _lt_dsymutil='~$DSYMUTIL $lib || :' 1925 else 1926 _lt_dsymutil= 1927 fi 1928 ;; 1929 esac 1930]) 1931 1932 1933# _LT_DARWIN_LINKER_FEATURES([TAG]) 1934# --------------------------------- 1935# Checks for linker and compiler features on darwin 1936m4_defun([_LT_DARWIN_LINKER_FEATURES], 1937[ 1938 m4_require([_LT_REQUIRED_DARWIN_CHECKS]) 1939 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 1940 _LT_TAGVAR(hardcode_direct, $1)=no 1941 _LT_TAGVAR(hardcode_automatic, $1)=yes 1942 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 1943 if test yes = "$lt_cv_ld_force_load"; then 1944 _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\"`' 1945 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], 1946 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) 1947 else 1948 _LT_TAGVAR(whole_archive_flag_spec, $1)='' 1949 fi 1950 _LT_TAGVAR(link_all_deplibs, $1)=yes 1951 _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined 1952 case $cc_basename in 1953 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 1954 *) _lt_dar_can_shared=$GCC ;; 1955 esac 1956 if test yes = "$_lt_dar_can_shared"; then 1957 output_verbose_link_cmd=func_echo_all 1958 _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" 1959 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 1960 _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" 1961 _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" 1962 m4_if([$1], [CXX], 1963[ if test yes != "$lt_cv_apple_cc_single_mod"; then 1964 _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" 1965 _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" 1966 fi 1967],[]) 1968 else 1969 _LT_TAGVAR(ld_shlibs, $1)=no 1970 fi 1971]) 1972 1973# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) 1974# ---------------------------------- 1975# Links a minimal program and checks the executable 1976# for the system default hardcoded library path. In most cases, 1977# this is /usr/lib:/lib, but when the MPI compilers are used 1978# the location of the communication and MPI libs are included too. 1979# If we don't find anything, use the default library path according 1980# to the aix ld manual. 1981# Store the results from the different compilers for each TAGNAME. 1982# Allow to override them for all tags through lt_cv_aix_libpath. 1983m4_defun([_LT_SYS_MODULE_PATH_AIX], 1984[m4_require([_LT_DECL_SED])dnl 1985if test set = "${lt_cv_aix_libpath+set}"; then 1986 aix_libpath=$lt_cv_aix_libpath 1987else 1988 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], 1989 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ 1990 lt_aix_libpath_sed='[ 1991 /Import File Strings/,/^$/ { 1992 /^0/ { 1993 s/^0 *\([^ ]*\) *$/\1/ 1994 p 1995 } 1996 }]' 1997 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 1998 # Check for a 64-bit object if we didn't find anything. 1999 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 2000 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 2001 fi],[]) 2002 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 2003 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib 2004 fi 2005 ]) 2006 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) 2007fi 2008])# _LT_SYS_MODULE_PATH_AIX 2009 2010 2011# _LT_SHELL_INIT(ARG) 2012# ------------------- 2013m4_define([_LT_SHELL_INIT], 2014[m4_divert_text([M4SH-INIT], [$1 2015])])# _LT_SHELL_INIT 2016 2017 2018 2019# _LT_PROG_ECHO_BACKSLASH 2020# ----------------------- 2021# Find how we can fake an echo command that does not interpret backslash. 2022# In particular, with Autoconf 2.60 or later we add some code to the start 2023# of the generated configure script that will find a shell with a builtin 2024# printf (that we can use as an echo command). 2025m4_defun([_LT_PROG_ECHO_BACKSLASH], 2026[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2027ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2028ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2029 2030AC_MSG_CHECKING([how to print strings]) 2031# Test print first, because it will be a builtin if present. 2032if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2033 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2034 ECHO='print -r --' 2035elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2036 ECHO='printf %s\n' 2037else 2038 # Use this function as a fallback that always works. 2039 func_fallback_echo () 2040 { 2041 eval 'cat <<_LTECHO_EOF 2042$[]1 2043_LTECHO_EOF' 2044 } 2045 ECHO='func_fallback_echo' 2046fi 2047 2048# func_echo_all arg... 2049# Invoke $ECHO with all args, space-separated. 2050func_echo_all () 2051{ 2052 $ECHO "$*" 2053} 2054 2055case $ECHO in 2056 printf*) AC_MSG_RESULT([printf]) ;; 2057 print*) AC_MSG_RESULT([print -r]) ;; 2058 *) AC_MSG_RESULT([cat]) ;; 2059esac 2060 2061m4_ifdef([_AS_DETECT_SUGGESTED], 2062[_AS_DETECT_SUGGESTED([ 2063 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( 2064 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2065 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2066 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2067 PATH=/empty FPATH=/empty; export PATH FPATH 2068 test "X`printf %s $ECHO`" = "X$ECHO" \ 2069 || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) 2070 2071_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) 2072_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) 2073])# _LT_PROG_ECHO_BACKSLASH 2074 2075 2076# _LT_WITH_SYSROOT 2077# ---------------- 2078AC_DEFUN([_LT_WITH_SYSROOT], 2079[AC_MSG_CHECKING([for sysroot]) 2080AC_ARG_WITH([sysroot], 2081[AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], 2082 [Search for dependent libraries within DIR (or the compiler's sysroot 2083 if not specified).])], 2084[], [with_sysroot=no]) 2085 2086dnl lt_sysroot will always be passed unquoted. We quote it here 2087dnl in case the user passed a directory name. 2088lt_sysroot= 2089case $with_sysroot in #( 2090 yes) 2091 if test yes = "$GCC"; then 2092 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 2093 fi 2094 ;; #( 2095 /*) 2096 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 2097 ;; #( 2098 no|'') 2099 ;; #( 2100 *) 2101 AC_MSG_RESULT([$with_sysroot]) 2102 AC_MSG_ERROR([The sysroot must be an absolute path.]) 2103 ;; 2104esac 2105 2106 AC_MSG_RESULT([${lt_sysroot:-no}]) 2107_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl 2108[dependent libraries, and where our libraries should be installed.])]) 2109 2110# _LT_ENABLE_LOCK 2111# --------------- 2112m4_defun([_LT_ENABLE_LOCK], 2113[AC_ARG_ENABLE([libtool-lock], 2114 [AS_HELP_STRING([--disable-libtool-lock], 2115 [avoid locking (might break parallel builds)])]) 2116test no = "$enable_libtool_lock" || enable_libtool_lock=yes 2117 2118# Some flags need to be propagated to the compiler or linker for good 2119# libtool support. 2120case $host in 2121ia64-*-hpux*) 2122 # Find out what ABI is being produced by ac_compile, and set mode 2123 # options accordingly. 2124 echo 'int i;' > conftest.$ac_ext 2125 if AC_TRY_EVAL(ac_compile); then 2126 case `/usr/bin/file conftest.$ac_objext` in 2127 *ELF-32*) 2128 HPUX_IA64_MODE=32 2129 ;; 2130 *ELF-64*) 2131 HPUX_IA64_MODE=64 2132 ;; 2133 esac 2134 fi 2135 rm -rf conftest* 2136 ;; 2137*-*-irix6*) 2138 # Find out what ABI is being produced by ac_compile, and set linker 2139 # options accordingly. 2140 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 2141 if AC_TRY_EVAL(ac_compile); then 2142 if test yes = "$lt_cv_prog_gnu_ld"; then 2143 case `/usr/bin/file conftest.$ac_objext` in 2144 *32-bit*) 2145 LD="${LD-ld} -melf32bsmip" 2146 ;; 2147 *N32*) 2148 LD="${LD-ld} -melf32bmipn32" 2149 ;; 2150 *64-bit*) 2151 LD="${LD-ld} -melf64bmip" 2152 ;; 2153 esac 2154 else 2155 case `/usr/bin/file conftest.$ac_objext` in 2156 *32-bit*) 2157 LD="${LD-ld} -32" 2158 ;; 2159 *N32*) 2160 LD="${LD-ld} -n32" 2161 ;; 2162 *64-bit*) 2163 LD="${LD-ld} -64" 2164 ;; 2165 esac 2166 fi 2167 fi 2168 rm -rf conftest* 2169 ;; 2170 2171mips64*-*linux*) 2172 # Find out what ABI is being produced by ac_compile, and set linker 2173 # options accordingly. 2174 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 2175 if AC_TRY_EVAL(ac_compile); then 2176 emul=elf 2177 case `/usr/bin/file conftest.$ac_objext` in 2178 *32-bit*) 2179 emul="${emul}32" 2180 ;; 2181 *64-bit*) 2182 emul="${emul}64" 2183 ;; 2184 esac 2185 case `/usr/bin/file conftest.$ac_objext` in 2186 *MSB*) 2187 emul="${emul}btsmip" 2188 ;; 2189 *LSB*) 2190 emul="${emul}ltsmip" 2191 ;; 2192 esac 2193 case `/usr/bin/file conftest.$ac_objext` in 2194 *N32*) 2195 emul="${emul}n32" 2196 ;; 2197 esac 2198 LD="${LD-ld} -m $emul" 2199 fi 2200 rm -rf conftest* 2201 ;; 2202 2203x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 2204s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 2205 # Find out what ABI is being produced by ac_compile, and set linker 2206 # options accordingly. Note that the listed cases only cover the 2207 # situations where additional linker options are needed (such as when 2208 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 2209 # vice versa); the common cases where no linker options are needed do 2210 # not appear in the list. 2211 echo 'int i;' > conftest.$ac_ext 2212 if AC_TRY_EVAL(ac_compile); then 2213 case `/usr/bin/file conftest.o` in 2214 *32-bit*) 2215 case $host in 2216 x86_64-*kfreebsd*-gnu) 2217 LD="${LD-ld} -m elf_i386_fbsd" 2218 ;; 2219 x86_64-*linux*) 2220 case `/usr/bin/file conftest.o` in 2221 *x86-64*) 2222 LD="${LD-ld} -m elf32_x86_64" 2223 ;; 2224 *) 2225 LD="${LD-ld} -m elf_i386" 2226 ;; 2227 esac 2228 ;; 2229 powerpc64le-*linux*) 2230 LD="${LD-ld} -m elf32lppclinux" 2231 ;; 2232 powerpc64-*linux*) 2233 LD="${LD-ld} -m elf32ppclinux" 2234 ;; 2235 s390x-*linux*) 2236 LD="${LD-ld} -m elf_s390" 2237 ;; 2238 sparc64-*linux*) 2239 LD="${LD-ld} -m elf32_sparc" 2240 ;; 2241 esac 2242 ;; 2243 *64-bit*) 2244 case $host in 2245 x86_64-*kfreebsd*-gnu) 2246 LD="${LD-ld} -m elf_x86_64_fbsd" 2247 ;; 2248 x86_64-*linux*) 2249 LD="${LD-ld} -m elf_x86_64" 2250 ;; 2251 powerpcle-*linux*) 2252 LD="${LD-ld} -m elf64lppc" 2253 ;; 2254 powerpc-*linux*) 2255 LD="${LD-ld} -m elf64ppc" 2256 ;; 2257 s390*-*linux*|s390*-*tpf*) 2258 LD="${LD-ld} -m elf64_s390" 2259 ;; 2260 sparc*-*linux*) 2261 LD="${LD-ld} -m elf64_sparc" 2262 ;; 2263 esac 2264 ;; 2265 esac 2266 fi 2267 rm -rf conftest* 2268 ;; 2269 2270*-*-sco3.2v5*) 2271 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 2272 SAVE_CFLAGS=$CFLAGS 2273 CFLAGS="$CFLAGS -belf" 2274 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 2275 [AC_LANG_PUSH(C) 2276 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 2277 AC_LANG_POP]) 2278 if test yes != "$lt_cv_cc_needs_belf"; then 2279 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 2280 CFLAGS=$SAVE_CFLAGS 2281 fi 2282 ;; 2283*-*solaris*) 2284 # Find out what ABI is being produced by ac_compile, and set linker 2285 # options accordingly. 2286 echo 'int i;' > conftest.$ac_ext 2287 if AC_TRY_EVAL(ac_compile); then 2288 case `/usr/bin/file conftest.o` in 2289 *64-bit*) 2290 case $lt_cv_prog_gnu_ld in 2291 yes*) 2292 case $host in 2293 i?86-*-solaris*|x86_64-*-solaris*) 2294 LD="${LD-ld} -m elf_x86_64" 2295 ;; 2296 sparc*-*-solaris*) 2297 LD="${LD-ld} -m elf64_sparc" 2298 ;; 2299 esac 2300 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 2301 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 2302 LD=${LD-ld}_sol2 2303 fi 2304 ;; 2305 *) 2306 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 2307 LD="${LD-ld} -64" 2308 fi 2309 ;; 2310 esac 2311 ;; 2312 esac 2313 fi 2314 rm -rf conftest* 2315 ;; 2316esac 2317 2318need_locks=$enable_libtool_lock 2319])# _LT_ENABLE_LOCK 2320 2321 2322# _LT_PROG_AR 2323# ----------- 2324m4_defun([_LT_PROG_AR], 2325[AC_CHECK_TOOLS(AR, [ar], false) 2326: ${AR=ar} 2327: ${AR_FLAGS=cru} 2328_LT_DECL([], [AR], [1], [The archiver]) 2329_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) 2330 2331AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], 2332 [lt_cv_ar_at_file=no 2333 AC_COMPILE_IFELSE([AC_LANG_PROGRAM], 2334 [echo conftest.$ac_objext > conftest.lst 2335 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' 2336 AC_TRY_EVAL([lt_ar_try]) 2337 if test 0 -eq "$ac_status"; then 2338 # Ensure the archiver fails upon bogus file names. 2339 rm -f conftest.$ac_objext libconftest.a 2340 AC_TRY_EVAL([lt_ar_try]) 2341 if test 0 -ne "$ac_status"; then 2342 lt_cv_ar_at_file=@ 2343 fi 2344 fi 2345 rm -f conftest.* libconftest.a 2346 ]) 2347 ]) 2348 2349if test no = "$lt_cv_ar_at_file"; then 2350 archiver_list_spec= 2351else 2352 archiver_list_spec=$lt_cv_ar_at_file 2353fi 2354_LT_DECL([], [archiver_list_spec], [1], 2355 [How to feed a file listing to the archiver]) 2356])# _LT_PROG_AR 2357 2358 2359# _LT_CMD_OLD_ARCHIVE 2360# ------------------- 2361m4_defun([_LT_CMD_OLD_ARCHIVE], 2362[_LT_PROG_AR 2363 2364AC_CHECK_TOOL(STRIP, strip, :) 2365test -z "$STRIP" && STRIP=: 2366_LT_DECL([], [STRIP], [1], [A symbol stripping program]) 2367 2368AC_CHECK_TOOL(RANLIB, ranlib, :) 2369test -z "$RANLIB" && RANLIB=: 2370_LT_DECL([], [RANLIB], [1], 2371 [Commands used to install an old-style archive]) 2372 2373# Determine commands to create old-style static archives. 2374old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 2375old_postinstall_cmds='chmod 644 $oldlib' 2376old_postuninstall_cmds= 2377 2378if test -n "$RANLIB"; then 2379 case $host_os in 2380 bitrig* | openbsd*) 2381 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 2382 ;; 2383 *) 2384 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 2385 ;; 2386 esac 2387 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 2388fi 2389 2390case $host_os in 2391 darwin*) 2392 lock_old_archive_extraction=yes ;; 2393 *) 2394 lock_old_archive_extraction=no ;; 2395esac 2396_LT_DECL([], [old_postinstall_cmds], [2]) 2397_LT_DECL([], [old_postuninstall_cmds], [2]) 2398_LT_TAGDECL([], [old_archive_cmds], [2], 2399 [Commands used to build an old-style archive]) 2400_LT_DECL([], [lock_old_archive_extraction], [0], 2401 [Whether to use a lock for old archive extraction]) 2402])# _LT_CMD_OLD_ARCHIVE 2403 2404 2405# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 2406# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 2407# ---------------------------------------------------------------- 2408# Check whether the given compiler option works 2409AC_DEFUN([_LT_COMPILER_OPTION], 2410[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2411m4_require([_LT_DECL_SED])dnl 2412AC_CACHE_CHECK([$1], [$2], 2413 [$2=no 2414 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 2415 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 2416 lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment 2417 # Insert the option either (1) after the last *FLAGS variable, or 2418 # (2) before a word containing "conftest.", or (3) at the end. 2419 # Note that $ac_compile itself does not contain backslashes and begins 2420 # with a dollar sign (not a hyphen), so the echo should work correctly. 2421 # The option is referenced via a variable to avoid confusing sed. 2422 lt_compile=`echo "$ac_compile" | $SED \ 2423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 2424 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 2425 -e 's:$: $lt_compiler_flag:'` 2426 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 2427 (eval "$lt_compile" 2>conftest.err) 2428 ac_status=$? 2429 cat conftest.err >&AS_MESSAGE_LOG_FD 2430 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 2431 if (exit $ac_status) && test -s "$ac_outfile"; then 2432 # The compiler can only warn and ignore the option if not recognized 2433 # So say no if there are warnings other than the usual output. 2434 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 2435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 2436 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 2437 $2=yes 2438 fi 2439 fi 2440 $RM conftest* 2441]) 2442 2443if test yes = "[$]$2"; then 2444 m4_if([$5], , :, [$5]) 2445else 2446 m4_if([$6], , :, [$6]) 2447fi 2448])# _LT_COMPILER_OPTION 2449 2450# Old name: 2451AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) 2452dnl aclocal-1.4 backwards compatibility: 2453dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) 2454 2455 2456# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 2457# [ACTION-SUCCESS], [ACTION-FAILURE]) 2458# ---------------------------------------------------- 2459# Check whether the given linker option works 2460AC_DEFUN([_LT_LINKER_OPTION], 2461[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2462m4_require([_LT_DECL_SED])dnl 2463AC_CACHE_CHECK([$1], [$2], 2464 [$2=no 2465 save_LDFLAGS=$LDFLAGS 2466 LDFLAGS="$LDFLAGS $3" 2467 echo "$lt_simple_link_test_code" > conftest.$ac_ext 2468 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 2469 # The linker can only warn and ignore the option if not recognized 2470 # So say no if there are warnings 2471 if test -s conftest.err; then 2472 # Append any errors to the config.log. 2473 cat conftest.err 1>&AS_MESSAGE_LOG_FD 2474 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 2475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 2476 if diff conftest.exp conftest.er2 >/dev/null; then 2477 $2=yes 2478 fi 2479 else 2480 $2=yes 2481 fi 2482 fi 2483 $RM -r conftest* 2484 LDFLAGS=$save_LDFLAGS 2485]) 2486 2487if test yes = "[$]$2"; then 2488 m4_if([$4], , :, [$4]) 2489else 2490 m4_if([$5], , :, [$5]) 2491fi 2492])# _LT_LINKER_OPTION 2493 2494# Old name: 2495AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) 2496dnl aclocal-1.4 backwards compatibility: 2497dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) 2498 2499 2500# LT_CMD_MAX_LEN 2501#--------------- 2502AC_DEFUN([LT_CMD_MAX_LEN], 2503[AC_REQUIRE([AC_CANONICAL_HOST])dnl 2504# find the maximum length of command line arguments 2505AC_MSG_CHECKING([the maximum length of command line arguments]) 2506AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 2507 i=0 2508 teststring=ABCD 2509 2510 case $build_os in 2511 msdosdjgpp*) 2512 # On DJGPP, this test can blow up pretty badly due to problems in libc 2513 # (any single argument exceeding 2000 bytes causes a buffer overrun 2514 # during glob expansion). Even if it were fixed, the result of this 2515 # check would be larger than it should be. 2516 lt_cv_sys_max_cmd_len=12288; # 12K is about right 2517 ;; 2518 2519 gnu*) 2520 # Under GNU Hurd, this test is not required because there is 2521 # no limit to the length of command line arguments. 2522 # Libtool will interpret -1 as no limit whatsoever 2523 lt_cv_sys_max_cmd_len=-1; 2524 ;; 2525 2526 cygwin* | mingw* | cegcc*) 2527 # On Win9x/ME, this test blows up -- it succeeds, but takes 2528 # about 5 minutes as the teststring grows exponentially. 2529 # Worse, since 9x/ME are not pre-emptively multitasking, 2530 # you end up with a "frozen" computer, even though with patience 2531 # the test eventually succeeds (with a max line length of 256k). 2532 # Instead, let's just punt: use the minimum linelength reported by 2533 # all of the supported platforms: 8192 (on NT/2K/XP). 2534 lt_cv_sys_max_cmd_len=8192; 2535 ;; 2536 2537 mint*) 2538 # On MiNT this can take a long time and run out of memory. 2539 lt_cv_sys_max_cmd_len=8192; 2540 ;; 2541 2542 amigaos*) 2543 # On AmigaOS with pdksh, this test takes hours, literally. 2544 # So we just punt and use a minimum line length of 8192. 2545 lt_cv_sys_max_cmd_len=8192; 2546 ;; 2547 2548 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 2549 # This has been around since 386BSD, at least. Likely further. 2550 if test -x /sbin/sysctl; then 2551 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 2552 elif test -x /usr/sbin/sysctl; then 2553 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 2554 else 2555 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 2556 fi 2557 # And add a safety zone 2558 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 2559 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 2560 ;; 2561 2562 interix*) 2563 # We know the value 262144 and hardcode it with a safety zone (like BSD) 2564 lt_cv_sys_max_cmd_len=196608 2565 ;; 2566 2567 os2*) 2568 # The test takes a long time on OS/2. 2569 lt_cv_sys_max_cmd_len=8192 2570 ;; 2571 2572 osf*) 2573 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 2574 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 2575 # nice to cause kernel panics so lets avoid the loop below. 2576 # First set a reasonable default. 2577 lt_cv_sys_max_cmd_len=16384 2578 # 2579 if test -x /sbin/sysconfig; then 2580 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 2581 *1*) lt_cv_sys_max_cmd_len=-1 ;; 2582 esac 2583 fi 2584 ;; 2585 sco3.2v5*) 2586 lt_cv_sys_max_cmd_len=102400 2587 ;; 2588 sysv5* | sco5v6* | sysv4.2uw2*) 2589 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 2590 if test -n "$kargmax"; then 2591 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 2592 else 2593 lt_cv_sys_max_cmd_len=32768 2594 fi 2595 ;; 2596 *) 2597 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 2598 if test -n "$lt_cv_sys_max_cmd_len" && \ 2599 test undefined != "$lt_cv_sys_max_cmd_len"; then 2600 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 2601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 2602 else 2603 # Make teststring a little bigger before we do anything with it. 2604 # a 1K string should be a reasonable start. 2605 for i in 1 2 3 4 5 6 7 8; do 2606 teststring=$teststring$teststring 2607 done 2608 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 2609 # If test is not a shell built-in, we'll probably end up computing a 2610 # maximum length that is only half of the actual maximum length, but 2611 # we can't tell. 2612 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 2613 = "X$teststring$teststring"; } >/dev/null 2>&1 && 2614 test 17 != "$i" # 1/2 MB should be enough 2615 do 2616 i=`expr $i + 1` 2617 teststring=$teststring$teststring 2618 done 2619 # Only check the string length outside the loop. 2620 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 2621 teststring= 2622 # Add a significant safety factor because C++ compilers can tack on 2623 # massive amounts of additional arguments before passing them to the 2624 # linker. It appears as though 1/2 is a usable value. 2625 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 2626 fi 2627 ;; 2628 esac 2629]) 2630if test -n "$lt_cv_sys_max_cmd_len"; then 2631 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 2632else 2633 AC_MSG_RESULT(none) 2634fi 2635max_cmd_len=$lt_cv_sys_max_cmd_len 2636_LT_DECL([], [max_cmd_len], [0], 2637 [What is the maximum length of a command?]) 2638])# LT_CMD_MAX_LEN 2639 2640# Old name: 2641AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) 2642dnl aclocal-1.4 backwards compatibility: 2643dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) 2644 2645 2646# _LT_HEADER_DLFCN 2647# ---------------- 2648m4_defun([_LT_HEADER_DLFCN], 2649[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl 2650])# _LT_HEADER_DLFCN 2651 2652 2653# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 2654# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 2655# ---------------------------------------------------------------- 2656m4_defun([_LT_TRY_DLOPEN_SELF], 2657[m4_require([_LT_HEADER_DLFCN])dnl 2658if test yes = "$cross_compiling"; then : 2659 [$4] 2660else 2661 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 2662 lt_status=$lt_dlunknown 2663 cat > conftest.$ac_ext <<_LT_EOF 2664[#line $LINENO "configure" 2665#include "confdefs.h" 2666 2667#if HAVE_DLFCN_H 2668#include <dlfcn.h> 2669#endif 2670 2671#include <stdio.h> 2672 2673#ifdef RTLD_GLOBAL 2674# define LT_DLGLOBAL RTLD_GLOBAL 2675#else 2676# ifdef DL_GLOBAL 2677# define LT_DLGLOBAL DL_GLOBAL 2678# else 2679# define LT_DLGLOBAL 0 2680# endif 2681#endif 2682 2683/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 2684 find out it does not work in some platform. */ 2685#ifndef LT_DLLAZY_OR_NOW 2686# ifdef RTLD_LAZY 2687# define LT_DLLAZY_OR_NOW RTLD_LAZY 2688# else 2689# ifdef DL_LAZY 2690# define LT_DLLAZY_OR_NOW DL_LAZY 2691# else 2692# ifdef RTLD_NOW 2693# define LT_DLLAZY_OR_NOW RTLD_NOW 2694# else 2695# ifdef DL_NOW 2696# define LT_DLLAZY_OR_NOW DL_NOW 2697# else 2698# define LT_DLLAZY_OR_NOW 0 2699# endif 2700# endif 2701# endif 2702# endif 2703#endif 2704 2705/* When -fvisibility=hidden is used, assume the code has been annotated 2706 correspondingly for the symbols needed. */ 2707#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 2708int fnord () __attribute__((visibility("default"))); 2709#endif 2710 2711int fnord () { return 42; } 2712int main () 2713{ 2714 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 2715 int status = $lt_dlunknown; 2716 2717 if (self) 2718 { 2719 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 2720 else 2721 { 2722 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 2723 else puts (dlerror ()); 2724 } 2725 /* dlclose (self); */ 2726 } 2727 else 2728 puts (dlerror ()); 2729 2730 return status; 2731}] 2732_LT_EOF 2733 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then 2734 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 2735 lt_status=$? 2736 case x$lt_status in 2737 x$lt_dlno_uscore) $1 ;; 2738 x$lt_dlneed_uscore) $2 ;; 2739 x$lt_dlunknown|x*) $3 ;; 2740 esac 2741 else : 2742 # compilation failed 2743 $3 2744 fi 2745fi 2746rm -fr conftest* 2747])# _LT_TRY_DLOPEN_SELF 2748 2749 2750# LT_SYS_DLOPEN_SELF 2751# ------------------ 2752AC_DEFUN([LT_SYS_DLOPEN_SELF], 2753[m4_require([_LT_HEADER_DLFCN])dnl 2754if test yes != "$enable_dlopen"; then 2755 enable_dlopen=unknown 2756 enable_dlopen_self=unknown 2757 enable_dlopen_self_static=unknown 2758else 2759 lt_cv_dlopen=no 2760 lt_cv_dlopen_libs= 2761 2762 case $host_os in 2763 beos*) 2764 lt_cv_dlopen=load_add_on 2765 lt_cv_dlopen_libs= 2766 lt_cv_dlopen_self=yes 2767 ;; 2768 2769 mingw* | pw32* | cegcc*) 2770 lt_cv_dlopen=LoadLibrary 2771 lt_cv_dlopen_libs= 2772 ;; 2773 2774 cygwin*) 2775 lt_cv_dlopen=dlopen 2776 lt_cv_dlopen_libs= 2777 ;; 2778 2779 darwin*) 2780 # if libdl is installed we need to link against it 2781 AC_CHECK_LIB([dl], [dlopen], 2782 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[ 2783 lt_cv_dlopen=dyld 2784 lt_cv_dlopen_libs= 2785 lt_cv_dlopen_self=yes 2786 ]) 2787 ;; 2788 2789 tpf*) 2790 # Don't try to run any link tests for TPF. We know it's impossible 2791 # because TPF is a cross-compiler, and we know how we open DSOs. 2792 lt_cv_dlopen=dlopen 2793 lt_cv_dlopen_libs= 2794 lt_cv_dlopen_self=no 2795 ;; 2796 2797 *) 2798 AC_CHECK_FUNC([shl_load], 2799 [lt_cv_dlopen=shl_load], 2800 [AC_CHECK_LIB([dld], [shl_load], 2801 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld], 2802 [AC_CHECK_FUNC([dlopen], 2803 [lt_cv_dlopen=dlopen], 2804 [AC_CHECK_LIB([dl], [dlopen], 2805 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl], 2806 [AC_CHECK_LIB([svld], [dlopen], 2807 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld], 2808 [AC_CHECK_LIB([dld], [dld_link], 2809 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld]) 2810 ]) 2811 ]) 2812 ]) 2813 ]) 2814 ]) 2815 ;; 2816 esac 2817 2818 if test no = "$lt_cv_dlopen"; then 2819 enable_dlopen=no 2820 else 2821 enable_dlopen=yes 2822 fi 2823 2824 case $lt_cv_dlopen in 2825 dlopen) 2826 save_CPPFLAGS=$CPPFLAGS 2827 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 2828 2829 save_LDFLAGS=$LDFLAGS 2830 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 2831 2832 save_LIBS=$LIBS 2833 LIBS="$lt_cv_dlopen_libs $LIBS" 2834 2835 AC_CACHE_CHECK([whether a program can dlopen itself], 2836 lt_cv_dlopen_self, [dnl 2837 _LT_TRY_DLOPEN_SELF( 2838 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 2839 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 2840 ]) 2841 2842 if test yes = "$lt_cv_dlopen_self"; then 2843 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 2844 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 2845 lt_cv_dlopen_self_static, [dnl 2846 _LT_TRY_DLOPEN_SELF( 2847 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 2848 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 2849 ]) 2850 fi 2851 2852 CPPFLAGS=$save_CPPFLAGS 2853 LDFLAGS=$save_LDFLAGS 2854 LIBS=$save_LIBS 2855 ;; 2856 esac 2857 2858 case $lt_cv_dlopen_self in 2859 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 2860 *) enable_dlopen_self=unknown ;; 2861 esac 2862 2863 case $lt_cv_dlopen_self_static in 2864 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 2865 *) enable_dlopen_self_static=unknown ;; 2866 esac 2867fi 2868_LT_DECL([dlopen_support], [enable_dlopen], [0], 2869 [Whether dlopen is supported]) 2870_LT_DECL([dlopen_self], [enable_dlopen_self], [0], 2871 [Whether dlopen of programs is supported]) 2872_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], 2873 [Whether dlopen of statically linked programs is supported]) 2874])# LT_SYS_DLOPEN_SELF 2875 2876# Old name: 2877AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) 2878dnl aclocal-1.4 backwards compatibility: 2879dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) 2880 2881 2882# _LT_COMPILER_C_O([TAGNAME]) 2883# --------------------------- 2884# Check to see if options -c and -o are simultaneously supported by compiler. 2885# This macro does not hard code the compiler like AC_PROG_CC_C_O. 2886m4_defun([_LT_COMPILER_C_O], 2887[m4_require([_LT_DECL_SED])dnl 2888m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2889m4_require([_LT_TAG_COMPILER])dnl 2890AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 2891 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 2892 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 2893 $RM -r conftest 2>/dev/null 2894 mkdir conftest 2895 cd conftest 2896 mkdir out 2897 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 2898 2899 lt_compiler_flag="-o out/conftest2.$ac_objext" 2900 # Insert the option either (1) after the last *FLAGS variable, or 2901 # (2) before a word containing "conftest.", or (3) at the end. 2902 # Note that $ac_compile itself does not contain backslashes and begins 2903 # with a dollar sign (not a hyphen), so the echo should work correctly. 2904 lt_compile=`echo "$ac_compile" | $SED \ 2905 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 2906 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 2907 -e 's:$: $lt_compiler_flag:'` 2908 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 2909 (eval "$lt_compile" 2>out/conftest.err) 2910 ac_status=$? 2911 cat out/conftest.err >&AS_MESSAGE_LOG_FD 2912 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 2913 if (exit $ac_status) && test -s out/conftest2.$ac_objext 2914 then 2915 # The compiler can only warn and ignore the option if not recognized 2916 # So say no if there are warnings 2917 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 2918 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 2919 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 2920 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 2921 fi 2922 fi 2923 chmod u+w . 2>&AS_MESSAGE_LOG_FD 2924 $RM conftest* 2925 # SGI C++ compiler will create directory out/ii_files/ for 2926 # template instantiation 2927 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 2928 $RM out/* && rmdir out 2929 cd .. 2930 $RM -r conftest 2931 $RM conftest* 2932]) 2933_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], 2934 [Does compiler simultaneously support -c and -o options?]) 2935])# _LT_COMPILER_C_O 2936 2937 2938# _LT_COMPILER_FILE_LOCKS([TAGNAME]) 2939# ---------------------------------- 2940# Check to see if we can do hard links to lock some files if needed 2941m4_defun([_LT_COMPILER_FILE_LOCKS], 2942[m4_require([_LT_ENABLE_LOCK])dnl 2943m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2944_LT_COMPILER_C_O([$1]) 2945 2946hard_links=nottested 2947if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then 2948 # do not overwrite the value of need_locks provided by the user 2949 AC_MSG_CHECKING([if we can lock with hard links]) 2950 hard_links=yes 2951 $RM conftest* 2952 ln conftest.a conftest.b 2>/dev/null && hard_links=no 2953 touch conftest.a 2954 ln conftest.a conftest.b 2>&5 || hard_links=no 2955 ln conftest.a conftest.b 2>/dev/null && hard_links=no 2956 AC_MSG_RESULT([$hard_links]) 2957 if test no = "$hard_links"; then 2958 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe]) 2959 need_locks=warn 2960 fi 2961else 2962 need_locks=no 2963fi 2964_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) 2965])# _LT_COMPILER_FILE_LOCKS 2966 2967 2968# _LT_CHECK_OBJDIR 2969# ---------------- 2970m4_defun([_LT_CHECK_OBJDIR], 2971[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 2972[rm -f .libs 2>/dev/null 2973mkdir .libs 2>/dev/null 2974if test -d .libs; then 2975 lt_cv_objdir=.libs 2976else 2977 # MS-DOS does not allow filenames that begin with a dot. 2978 lt_cv_objdir=_libs 2979fi 2980rmdir .libs 2>/dev/null]) 2981objdir=$lt_cv_objdir 2982_LT_DECL([], [objdir], [0], 2983 [The name of the directory that contains temporary libtool files])dnl 2984m4_pattern_allow([LT_OBJDIR])dnl 2985AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/", 2986 [Define to the sub-directory where libtool stores uninstalled libraries.]) 2987])# _LT_CHECK_OBJDIR 2988 2989 2990# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 2991# -------------------------------------- 2992# Check hardcoding attributes. 2993m4_defun([_LT_LINKER_HARDCODE_LIBPATH], 2994[AC_MSG_CHECKING([how to hardcode library paths into programs]) 2995_LT_TAGVAR(hardcode_action, $1)= 2996if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 2997 test -n "$_LT_TAGVAR(runpath_var, $1)" || 2998 test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then 2999 3000 # We can hardcode non-existent directories. 3001 if test no != "$_LT_TAGVAR(hardcode_direct, $1)" && 3002 # If the only mechanism to avoid hardcoding is shlibpath_var, we 3003 # have to relink, otherwise we might link with an installed library 3004 # when we should be linking with a yet-to-be-installed one 3005 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" && 3006 test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then 3007 # Linking always hardcodes the temporary library directory. 3008 _LT_TAGVAR(hardcode_action, $1)=relink 3009 else 3010 # We can link without hardcoding, and we can hardcode nonexisting dirs. 3011 _LT_TAGVAR(hardcode_action, $1)=immediate 3012 fi 3013else 3014 # We cannot hardcode anything, or else we can only hardcode existing 3015 # directories. 3016 _LT_TAGVAR(hardcode_action, $1)=unsupported 3017fi 3018AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 3019 3020if test relink = "$_LT_TAGVAR(hardcode_action, $1)" || 3021 test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then 3022 # Fast installation is not supported 3023 enable_fast_install=no 3024elif test yes = "$shlibpath_overrides_runpath" || 3025 test no = "$enable_shared"; then 3026 # Fast installation is not necessary 3027 enable_fast_install=needless 3028fi 3029_LT_TAGDECL([], [hardcode_action], [0], 3030 [How to hardcode a shared library path into an executable]) 3031])# _LT_LINKER_HARDCODE_LIBPATH 3032 3033 3034# _LT_CMD_STRIPLIB 3035# ---------------- 3036m4_defun([_LT_CMD_STRIPLIB], 3037[m4_require([_LT_DECL_EGREP]) 3038striplib= 3039old_striplib= 3040AC_MSG_CHECKING([whether stripping libraries is possible]) 3041if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 3042 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 3043 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 3044 AC_MSG_RESULT([yes]) 3045else 3046# FIXME - insert some real tests, host_os isn't really good enough 3047 case $host_os in 3048 darwin*) 3049 if test -n "$STRIP"; then 3050 striplib="$STRIP -x" 3051 old_striplib="$STRIP -S" 3052 AC_MSG_RESULT([yes]) 3053 else 3054 AC_MSG_RESULT([no]) 3055 fi 3056 ;; 3057 *) 3058 AC_MSG_RESULT([no]) 3059 ;; 3060 esac 3061fi 3062_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) 3063_LT_DECL([], [striplib], [1]) 3064])# _LT_CMD_STRIPLIB 3065 3066 3067# _LT_PREPARE_MUNGE_PATH_LIST 3068# --------------------------- 3069# Make sure func_munge_path_list() is defined correctly. 3070m4_defun([_LT_PREPARE_MUNGE_PATH_LIST], 3071[[# func_munge_path_list VARIABLE PATH 3072# ----------------------------------- 3073# VARIABLE is name of variable containing _space_ separated list of 3074# directories to be munged by the contents of PATH, which is string 3075# having a format: 3076# "DIR[:DIR]:" 3077# string "DIR[ DIR]" will be prepended to VARIABLE 3078# ":DIR[:DIR]" 3079# string "DIR[ DIR]" will be appended to VARIABLE 3080# "DIRP[:DIRP]::[DIRA:]DIRA" 3081# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 3082# "DIRA[ DIRA]" will be appended to VARIABLE 3083# "DIR[:DIR]" 3084# VARIABLE will be replaced by "DIR[ DIR]" 3085func_munge_path_list () 3086{ 3087 case x@S|@2 in 3088 x) 3089 ;; 3090 *:) 3091 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" 3092 ;; 3093 x:*) 3094 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" 3095 ;; 3096 *::*) 3097 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 3098 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" 3099 ;; 3100 *) 3101 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" 3102 ;; 3103 esac 3104} 3105]])# _LT_PREPARE_PATH_LIST 3106 3107 3108# _LT_SYS_DYNAMIC_LINKER([TAG]) 3109# ----------------------------- 3110# PORTME Fill in your ld.so characteristics 3111m4_defun([_LT_SYS_DYNAMIC_LINKER], 3112[AC_REQUIRE([AC_CANONICAL_HOST])dnl 3113m4_require([_LT_DECL_EGREP])dnl 3114m4_require([_LT_FILEUTILS_DEFAULTS])dnl 3115m4_require([_LT_DECL_OBJDUMP])dnl 3116m4_require([_LT_DECL_SED])dnl 3117m4_require([_LT_CHECK_SHELL_FEATURES])dnl 3118m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl 3119AC_MSG_CHECKING([dynamic linker characteristics]) 3120m4_if([$1], 3121 [], [ 3122if test yes = "$GCC"; then 3123 case $host_os in 3124 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 3125 *) lt_awk_arg='/^libraries:/' ;; 3126 esac 3127 case $host_os in 3128 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;; 3129 *) lt_sed_strip_eq='s|=/|/|g' ;; 3130 esac 3131 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 3132 case $lt_search_path_spec in 3133 *\;*) 3134 # if the path contains ";" then we assume it to be the separator 3135 # otherwise default to the standard path separator (i.e. ":") - it is 3136 # assumed that no part of a normal pathname contains ";" but that should 3137 # okay in the real world where ";" in dirpaths is itself problematic. 3138 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 3139 ;; 3140 *) 3141 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 3142 ;; 3143 esac 3144 # Ok, now we have the path, separated by spaces, we can step through it 3145 # and add multilib dir if necessary... 3146 lt_tmp_lt_search_path_spec= 3147 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 3148 # ...but if some path component already ends with the multilib dir we assume 3149 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 3150 case "$lt_multi_os_dir; $lt_search_path_spec " in 3151 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 3152 lt_multi_os_dir= 3153 ;; 3154 esac 3155 for lt_sys_path in $lt_search_path_spec; do 3156 if test -d "$lt_sys_path$lt_multi_os_dir"; then 3157 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 3158 elif test -n "$lt_multi_os_dir"; then 3159 test -d "$lt_sys_path" && \ 3160 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 3161 fi 3162 done 3163 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 3164BEGIN {RS = " "; FS = "/|\n";} { 3165 lt_foo = ""; 3166 lt_count = 0; 3167 for (lt_i = NF; lt_i > 0; lt_i--) { 3168 if ($lt_i != "" && $lt_i != ".") { 3169 if ($lt_i == "..") { 3170 lt_count++; 3171 } else { 3172 if (lt_count == 0) { 3173 lt_foo = "/" $lt_i lt_foo; 3174 } else { 3175 lt_count--; 3176 } 3177 } 3178 } 3179 } 3180 if (lt_foo != "") { lt_freq[[lt_foo]]++; } 3181 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 3182}'` 3183 # AWK program above erroneously prepends '/' to C:/dos/paths 3184 # for these hosts. 3185 case $host_os in 3186 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 3187 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;; 3188 esac 3189 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 3190else 3191 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 3192fi]) 3193library_names_spec= 3194libname_spec='lib$name' 3195soname_spec= 3196shrext_cmds=.so 3197postinstall_cmds= 3198postuninstall_cmds= 3199finish_cmds= 3200finish_eval= 3201shlibpath_var= 3202shlibpath_overrides_runpath=unknown 3203version_type=none 3204dynamic_linker="$host_os ld.so" 3205sys_lib_dlsearch_path_spec="/lib /usr/lib" 3206need_lib_prefix=unknown 3207hardcode_into_libs=no 3208 3209# when you set need_version to no, make sure it does not cause -set_version 3210# flags to be left without arguments 3211need_version=unknown 3212 3213AC_ARG_VAR([LT_SYS_LIBRARY_PATH], 3214[User-defined run-time library search path.]) 3215 3216case $host_os in 3217aix3*) 3218 version_type=linux # correct to gnu/linux during the next big refactor 3219 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 3220 shlibpath_var=LIBPATH 3221 3222 # AIX 3 has no versioning support, so we append a major version to the name. 3223 soname_spec='$libname$release$shared_ext$major' 3224 ;; 3225 3226aix[[4-9]]*) 3227 version_type=linux # correct to gnu/linux during the next big refactor 3228 need_lib_prefix=no 3229 need_version=no 3230 hardcode_into_libs=yes 3231 if test ia64 = "$host_cpu"; then 3232 # AIX 5 supports IA64 3233 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 3234 shlibpath_var=LD_LIBRARY_PATH 3235 else 3236 # With GCC up to 2.95.x, collect2 would create an import file 3237 # for dependence libraries. The import file would start with 3238 # the line '#! .'. This would cause the generated library to 3239 # depend on '.', always an invalid library. This was fixed in 3240 # development snapshots of GCC prior to 3.0. 3241 case $host_os in 3242 aix4 | aix4.[[01]] | aix4.[[01]].*) 3243 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 3244 echo ' yes ' 3245 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 3246 : 3247 else 3248 can_build_shared=no 3249 fi 3250 ;; 3251 esac 3252 # Using Import Files as archive members, it is possible to support 3253 # filename-based versioning of shared library archives on AIX. While 3254 # this would work for both with and without runtime linking, it will 3255 # prevent static linking of such archives. So we do filename-based 3256 # shared library versioning with .so extension only, which is used 3257 # when both runtime linking and shared linking is enabled. 3258 # Unfortunately, runtime linking may impact performance, so we do 3259 # not want this to be the default eventually. Also, we use the 3260 # versioned .so libs for executables only if there is the -brtl 3261 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 3262 # To allow for filename-based versioning support, we need to create 3263 # libNAME.so.V as an archive file, containing: 3264 # *) an Import File, referring to the versioned filename of the 3265 # archive as well as the shared archive member, telling the 3266 # bitwidth (32 or 64) of that shared object, and providing the 3267 # list of exported symbols of that shared object, eventually 3268 # decorated with the 'weak' keyword 3269 # *) the shared object with the F_LOADONLY flag set, to really avoid 3270 # it being seen by the linker. 3271 # At run time we better use the real file rather than another symlink, 3272 # but for link time we create the symlink libNAME.so -> libNAME.so.V 3273 3274 case $with_aix_soname,$aix_use_runtimelinking in 3275 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 3276 # soname into executable. Probably we can add versioning support to 3277 # collect2, so additional links can be useful in future. 3278 aix,yes) # traditional libtool 3279 dynamic_linker='AIX unversionable lib.so' 3280 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 3281 # instead of lib<name>.a to let people know that these are not 3282 # typical AIX shared libraries. 3283 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3284 ;; 3285 aix,no) # traditional AIX only 3286 dynamic_linker='AIX lib.a[(]lib.so.V[)]' 3287 # We preserve .a as extension for shared libraries through AIX4.2 3288 # and later when we are not doing run time linking. 3289 library_names_spec='$libname$release.a $libname.a' 3290 soname_spec='$libname$release$shared_ext$major' 3291 ;; 3292 svr4,*) # full svr4 only 3293 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]" 3294 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 3295 # We do not specify a path in Import Files, so LIBPATH fires. 3296 shlibpath_overrides_runpath=yes 3297 ;; 3298 *,yes) # both, prefer svr4 3299 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]" 3300 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 3301 # unpreferred sharedlib libNAME.a needs extra handling 3302 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"' 3303 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"' 3304 # We do not specify a path in Import Files, so LIBPATH fires. 3305 shlibpath_overrides_runpath=yes 3306 ;; 3307 *,no) # both, prefer aix 3308 dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]" 3309 library_names_spec='$libname$release.a $libname.a' 3310 soname_spec='$libname$release$shared_ext$major' 3311 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 3312 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)' 3313 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"' 3314 ;; 3315 esac 3316 shlibpath_var=LIBPATH 3317 fi 3318 ;; 3319 3320amigaos*) 3321 case $host_cpu in 3322 powerpc) 3323 # Since July 2007 AmigaOS4 officially supports .so libraries. 3324 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 3325 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3326 ;; 3327 m68k) 3328 library_names_spec='$libname.ixlibrary $libname.a' 3329 # Create ${libname}_ixlibrary.a entries in /sys/libs. 3330 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' 3331 ;; 3332 esac 3333 ;; 3334 3335beos*) 3336 library_names_spec='$libname$shared_ext' 3337 dynamic_linker="$host_os ld.so" 3338 shlibpath_var=LIBRARY_PATH 3339 ;; 3340 3341bsdi[[45]]*) 3342 version_type=linux # correct to gnu/linux during the next big refactor 3343 need_version=no 3344 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3345 soname_spec='$libname$release$shared_ext$major' 3346 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 3347 shlibpath_var=LD_LIBRARY_PATH 3348 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 3349 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 3350 # the default ld.so.conf also contains /usr/contrib/lib and 3351 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 3352 # libtool to hard-code these into programs 3353 ;; 3354 3355cygwin* | mingw* | pw32* | cegcc*) 3356 version_type=windows 3357 shrext_cmds=.dll 3358 need_version=no 3359 need_lib_prefix=no 3360 3361 case $GCC,$cc_basename in 3362 yes,*) 3363 # gcc 3364 library_names_spec='$libname.dll.a' 3365 # DLL is installed to $(libdir)/../bin by postinstall_cmds 3366 postinstall_cmds='base_file=`basename \$file`~ 3367 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 3368 dldir=$destdir/`dirname \$dlpath`~ 3369 test -d \$dldir || mkdir -p \$dldir~ 3370 $install_prog $dir/$dlname \$dldir/$dlname~ 3371 chmod a+x \$dldir/$dlname~ 3372 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 3373 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 3374 fi' 3375 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 3376 dlpath=$dir/\$dldll~ 3377 $RM \$dlpath' 3378 shlibpath_overrides_runpath=yes 3379 3380 case $host_os in 3381 cygwin*) 3382 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 3383 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 3384m4_if([$1], [],[ 3385 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) 3386 ;; 3387 mingw* | cegcc*) 3388 # MinGW DLLs use traditional 'lib' prefix 3389 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 3390 ;; 3391 pw32*) 3392 # pw32 DLLs use 'pw' prefix rather than 'lib' 3393 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 3394 ;; 3395 esac 3396 dynamic_linker='Win32 ld.exe' 3397 ;; 3398 3399 *,cl*) 3400 # Native MSVC 3401 libname_spec='$name' 3402 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 3403 library_names_spec='$libname.dll.lib' 3404 3405 case $build_os in 3406 mingw*) 3407 sys_lib_search_path_spec= 3408 lt_save_ifs=$IFS 3409 IFS=';' 3410 for lt_path in $LIB 3411 do 3412 IFS=$lt_save_ifs 3413 # Let DOS variable expansion print the short 8.3 style file name. 3414 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 3415 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 3416 done 3417 IFS=$lt_save_ifs 3418 # Convert to MSYS style. 3419 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` 3420 ;; 3421 cygwin*) 3422 # Convert to unix form, then to dos form, then back to unix form 3423 # but this time dos style (no spaces!) so that the unix form looks 3424 # like /cygdrive/c/PROGRA~1:/cygdr... 3425 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 3426 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 3427 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 3428 ;; 3429 *) 3430 sys_lib_search_path_spec=$LIB 3431 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then 3432 # It is most probably a Windows format PATH. 3433 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 3434 else 3435 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 3436 fi 3437 # FIXME: find the short name or the path components, as spaces are 3438 # common. (e.g. "Program Files" -> "PROGRA~1") 3439 ;; 3440 esac 3441 3442 # DLL is installed to $(libdir)/../bin by postinstall_cmds 3443 postinstall_cmds='base_file=`basename \$file`~ 3444 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 3445 dldir=$destdir/`dirname \$dlpath`~ 3446 test -d \$dldir || mkdir -p \$dldir~ 3447 $install_prog $dir/$dlname \$dldir/$dlname' 3448 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 3449 dlpath=$dir/\$dldll~ 3450 $RM \$dlpath' 3451 shlibpath_overrides_runpath=yes 3452 dynamic_linker='Win32 link.exe' 3453 ;; 3454 3455 *) 3456 # Assume MSVC wrapper 3457 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib' 3458 dynamic_linker='Win32 ld.exe' 3459 ;; 3460 esac 3461 # FIXME: first we should search . and the directory the executable is in 3462 shlibpath_var=PATH 3463 ;; 3464 3465darwin* | rhapsody*) 3466 dynamic_linker="$host_os dyld" 3467 version_type=darwin 3468 need_lib_prefix=no 3469 need_version=no 3470 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 3471 soname_spec='$libname$release$major$shared_ext' 3472 shlibpath_overrides_runpath=yes 3473 shlibpath_var=DYLD_LIBRARY_PATH 3474 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 3475m4_if([$1], [],[ 3476 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 3477 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 3478 ;; 3479 3480dgux*) 3481 version_type=linux # correct to gnu/linux during the next big refactor 3482 need_lib_prefix=no 3483 need_version=no 3484 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3485 soname_spec='$libname$release$shared_ext$major' 3486 shlibpath_var=LD_LIBRARY_PATH 3487 ;; 3488 3489freebsd* | dragonfly*) 3490 # DragonFly does not have aout. When/if they implement a new 3491 # versioning mechanism, adjust this. 3492 if test -x /usr/bin/objformat; then 3493 objformat=`/usr/bin/objformat` 3494 else 3495 case $host_os in 3496 freebsd[[23]].*) objformat=aout ;; 3497 *) objformat=elf ;; 3498 esac 3499 fi 3500 version_type=freebsd-$objformat 3501 case $version_type in 3502 freebsd-elf*) 3503 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3504 soname_spec='$libname$release$shared_ext$major' 3505 need_version=no 3506 need_lib_prefix=no 3507 ;; 3508 freebsd-*) 3509 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 3510 need_version=yes 3511 ;; 3512 esac 3513 shlibpath_var=LD_LIBRARY_PATH 3514 case $host_os in 3515 freebsd2.*) 3516 shlibpath_overrides_runpath=yes 3517 ;; 3518 freebsd3.[[01]]* | freebsdelf3.[[01]]*) 3519 shlibpath_overrides_runpath=yes 3520 hardcode_into_libs=yes 3521 ;; 3522 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 3523 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 3524 shlibpath_overrides_runpath=no 3525 hardcode_into_libs=yes 3526 ;; 3527 *) # from 4.6 on, and DragonFly 3528 shlibpath_overrides_runpath=yes 3529 hardcode_into_libs=yes 3530 ;; 3531 esac 3532 ;; 3533 3534haiku*) 3535 version_type=linux # correct to gnu/linux during the next big refactor 3536 need_lib_prefix=no 3537 need_version=no 3538 dynamic_linker="$host_os runtime_loader" 3539 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3540 soname_spec='$libname$release$shared_ext$major' 3541 shlibpath_var=LIBRARY_PATH 3542 shlibpath_overrides_runpath=no 3543 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 3544 hardcode_into_libs=yes 3545 ;; 3546 3547hpux9* | hpux10* | hpux11*) 3548 # Give a soname corresponding to the major version so that dld.sl refuses to 3549 # link against other versions. 3550 version_type=sunos 3551 need_lib_prefix=no 3552 need_version=no 3553 case $host_cpu in 3554 ia64*) 3555 shrext_cmds='.so' 3556 hardcode_into_libs=yes 3557 dynamic_linker="$host_os dld.so" 3558 shlibpath_var=LD_LIBRARY_PATH 3559 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 3560 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3561 soname_spec='$libname$release$shared_ext$major' 3562 if test 32 = "$HPUX_IA64_MODE"; then 3563 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 3564 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 3565 else 3566 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 3567 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 3568 fi 3569 ;; 3570 hppa*64*) 3571 shrext_cmds='.sl' 3572 hardcode_into_libs=yes 3573 dynamic_linker="$host_os dld.sl" 3574 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 3575 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 3576 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3577 soname_spec='$libname$release$shared_ext$major' 3578 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 3579 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 3580 ;; 3581 *) 3582 shrext_cmds='.sl' 3583 dynamic_linker="$host_os dld.sl" 3584 shlibpath_var=SHLIB_PATH 3585 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 3586 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3587 soname_spec='$libname$release$shared_ext$major' 3588 ;; 3589 esac 3590 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 3591 postinstall_cmds='chmod 555 $lib' 3592 # or fails outright, so override atomically: 3593 install_override_mode=555 3594 ;; 3595 3596interix[[3-9]]*) 3597 version_type=linux # correct to gnu/linux during the next big refactor 3598 need_lib_prefix=no 3599 need_version=no 3600 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3601 soname_spec='$libname$release$shared_ext$major' 3602 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 3603 shlibpath_var=LD_LIBRARY_PATH 3604 shlibpath_overrides_runpath=no 3605 hardcode_into_libs=yes 3606 ;; 3607 3608irix5* | irix6* | nonstopux*) 3609 case $host_os in 3610 nonstopux*) version_type=nonstopux ;; 3611 *) 3612 if test yes = "$lt_cv_prog_gnu_ld"; then 3613 version_type=linux # correct to gnu/linux during the next big refactor 3614 else 3615 version_type=irix 3616 fi ;; 3617 esac 3618 need_lib_prefix=no 3619 need_version=no 3620 soname_spec='$libname$release$shared_ext$major' 3621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 3622 case $host_os in 3623 irix5* | nonstopux*) 3624 libsuff= shlibsuff= 3625 ;; 3626 *) 3627 case $LD in # libtool.m4 will add one of these switches to LD 3628 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 3629 libsuff= shlibsuff= libmagic=32-bit;; 3630 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 3631 libsuff=32 shlibsuff=N32 libmagic=N32;; 3632 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 3633 libsuff=64 shlibsuff=64 libmagic=64-bit;; 3634 *) libsuff= shlibsuff= libmagic=never-match;; 3635 esac 3636 ;; 3637 esac 3638 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 3639 shlibpath_overrides_runpath=no 3640 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 3641 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 3642 hardcode_into_libs=yes 3643 ;; 3644 3645# No shared lib support for Linux oldld, aout, or coff. 3646linux*oldld* | linux*aout* | linux*coff*) 3647 dynamic_linker=no 3648 ;; 3649 3650linux*android*) 3651 version_type=none # Android doesn't support versioned libraries. 3652 need_lib_prefix=no 3653 need_version=no 3654 library_names_spec='$libname$release$shared_ext' 3655 soname_spec='$libname$release$shared_ext' 3656 finish_cmds= 3657 shlibpath_var=LD_LIBRARY_PATH 3658 shlibpath_overrides_runpath=yes 3659 3660 # This implies no fast_install, which is unacceptable. 3661 # Some rework will be needed to allow for fast_install 3662 # before this can be enabled. 3663 hardcode_into_libs=yes 3664 3665 dynamic_linker='Android linker' 3666 # Don't embed -rpath directories since the linker doesn't support them. 3667 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 3668 ;; 3669 3670# This must be glibc/ELF. 3671linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 3672 version_type=linux # correct to gnu/linux during the next big refactor 3673 need_lib_prefix=no 3674 need_version=no 3675 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3676 soname_spec='$libname$release$shared_ext$major' 3677 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 3678 shlibpath_var=LD_LIBRARY_PATH 3679 shlibpath_overrides_runpath=no 3680 3681 # Some binutils ld are patched to set DT_RUNPATH 3682 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], 3683 [lt_cv_shlibpath_overrides_runpath=no 3684 save_LDFLAGS=$LDFLAGS 3685 save_libdir=$libdir 3686 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 3687 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 3688 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 3689 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], 3690 [lt_cv_shlibpath_overrides_runpath=yes])]) 3691 LDFLAGS=$save_LDFLAGS 3692 libdir=$save_libdir 3693 ]) 3694 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 3695 3696 # This implies no fast_install, which is unacceptable. 3697 # Some rework will be needed to allow for fast_install 3698 # before this can be enabled. 3699 hardcode_into_libs=yes 3700 3701 # Add ABI-specific directories to the system library path. 3702 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 3703 3704 # Ideally, we could use ldconfig to report *all* directores which are 3705 # searched for libraries, however this is still not possible. Aside from not 3706 # being certain /sbin/ldconfig is available, command 3707 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 3708 # even though it is searched at run-time. Try to do the best guess by 3709 # appending ld.so.conf contents (and includes) to the search path. 3710 if test -f /etc/ld.so.conf; then 3711 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' ' '` 3712 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 3713 fi 3714 3715 # We used to test for /lib/ld.so.1 and disable shared libraries on 3716 # powerpc, because MkLinux only supported shared libraries with the 3717 # GNU dynamic linker. Since this was broken with cross compilers, 3718 # most powerpc-linux boxes support dynamic linking these days and 3719 # people can always --disable-shared, the test was removed, and we 3720 # assume the GNU/Linux dynamic linker is in use. 3721 dynamic_linker='GNU/Linux ld.so' 3722 ;; 3723 3724netbsd*) 3725 version_type=sunos 3726 need_lib_prefix=no 3727 need_version=no 3728 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 3729 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 3730 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 3731 dynamic_linker='NetBSD (a.out) ld.so' 3732 else 3733 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3734 soname_spec='$libname$release$shared_ext$major' 3735 dynamic_linker='NetBSD ld.elf_so' 3736 fi 3737 shlibpath_var=LD_LIBRARY_PATH 3738 shlibpath_overrides_runpath=yes 3739 hardcode_into_libs=yes 3740 ;; 3741 3742newsos6) 3743 version_type=linux # correct to gnu/linux during the next big refactor 3744 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3745 shlibpath_var=LD_LIBRARY_PATH 3746 shlibpath_overrides_runpath=yes 3747 ;; 3748 3749*nto* | *qnx*) 3750 version_type=qnx 3751 need_lib_prefix=no 3752 need_version=no 3753 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3754 soname_spec='$libname$release$shared_ext$major' 3755 shlibpath_var=LD_LIBRARY_PATH 3756 shlibpath_overrides_runpath=no 3757 hardcode_into_libs=yes 3758 dynamic_linker='ldqnx.so' 3759 ;; 3760 3761openbsd* | bitrig*) 3762 version_type=sunos 3763 sys_lib_dlsearch_path_spec=/usr/lib 3764 need_lib_prefix=no 3765 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 3766 need_version=no 3767 else 3768 need_version=yes 3769 fi 3770 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 3771 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 3772 shlibpath_var=LD_LIBRARY_PATH 3773 shlibpath_overrides_runpath=yes 3774 ;; 3775 3776os2*) 3777 libname_spec='$name' 3778 version_type=windows 3779 shrext_cmds=.dll 3780 need_version=no 3781 need_lib_prefix=no 3782 # OS/2 can only load a DLL with a base name of 8 characters or less. 3783 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 3784 v=$($ECHO $release$versuffix | tr -d .-); 3785 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 3786 $ECHO $n$v`$shared_ext' 3787 library_names_spec='${libname}_dll.$libext' 3788 dynamic_linker='OS/2 ld.exe' 3789 shlibpath_var=BEGINLIBPATH 3790 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 3791 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 3792 postinstall_cmds='base_file=`basename \$file`~ 3793 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 3794 dldir=$destdir/`dirname \$dlpath`~ 3795 test -d \$dldir || mkdir -p \$dldir~ 3796 $install_prog $dir/$dlname \$dldir/$dlname~ 3797 chmod a+x \$dldir/$dlname~ 3798 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 3799 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 3800 fi' 3801 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 3802 dlpath=$dir/\$dldll~ 3803 $RM \$dlpath' 3804 ;; 3805 3806osf3* | osf4* | osf5*) 3807 version_type=osf 3808 need_lib_prefix=no 3809 need_version=no 3810 soname_spec='$libname$release$shared_ext$major' 3811 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3812 shlibpath_var=LD_LIBRARY_PATH 3813 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 3814 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 3815 ;; 3816 3817rdos*) 3818 dynamic_linker=no 3819 ;; 3820 3821solaris*) 3822 version_type=linux # correct to gnu/linux during the next big refactor 3823 need_lib_prefix=no 3824 need_version=no 3825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3826 soname_spec='$libname$release$shared_ext$major' 3827 shlibpath_var=LD_LIBRARY_PATH 3828 shlibpath_overrides_runpath=yes 3829 hardcode_into_libs=yes 3830 # ldd complains unless libraries are executable 3831 postinstall_cmds='chmod +x $lib' 3832 ;; 3833 3834sunos4*) 3835 version_type=sunos 3836 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 3837 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 3838 shlibpath_var=LD_LIBRARY_PATH 3839 shlibpath_overrides_runpath=yes 3840 if test yes = "$with_gnu_ld"; then 3841 need_lib_prefix=no 3842 fi 3843 need_version=yes 3844 ;; 3845 3846sysv4 | sysv4.3*) 3847 version_type=linux # correct to gnu/linux during the next big refactor 3848 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3849 soname_spec='$libname$release$shared_ext$major' 3850 shlibpath_var=LD_LIBRARY_PATH 3851 case $host_vendor in 3852 sni) 3853 shlibpath_overrides_runpath=no 3854 need_lib_prefix=no 3855 runpath_var=LD_RUN_PATH 3856 ;; 3857 siemens) 3858 need_lib_prefix=no 3859 ;; 3860 motorola) 3861 need_lib_prefix=no 3862 need_version=no 3863 shlibpath_overrides_runpath=no 3864 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 3865 ;; 3866 esac 3867 ;; 3868 3869sysv4*MP*) 3870 if test -d /usr/nec; then 3871 version_type=linux # correct to gnu/linux during the next big refactor 3872 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 3873 soname_spec='$libname$shared_ext.$major' 3874 shlibpath_var=LD_LIBRARY_PATH 3875 fi 3876 ;; 3877 3878sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 3879 version_type=sco 3880 need_lib_prefix=no 3881 need_version=no 3882 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 3883 soname_spec='$libname$release$shared_ext$major' 3884 shlibpath_var=LD_LIBRARY_PATH 3885 shlibpath_overrides_runpath=yes 3886 hardcode_into_libs=yes 3887 if test yes = "$with_gnu_ld"; then 3888 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 3889 else 3890 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 3891 case $host_os in 3892 sco3.2v5*) 3893 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 3894 ;; 3895 esac 3896 fi 3897 sys_lib_dlsearch_path_spec='/usr/lib' 3898 ;; 3899 3900tpf*) 3901 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 3902 version_type=linux # correct to gnu/linux during the next big refactor 3903 need_lib_prefix=no 3904 need_version=no 3905 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3906 shlibpath_var=LD_LIBRARY_PATH 3907 shlibpath_overrides_runpath=no 3908 hardcode_into_libs=yes 3909 ;; 3910 3911uts4*) 3912 version_type=linux # correct to gnu/linux during the next big refactor 3913 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3914 soname_spec='$libname$release$shared_ext$major' 3915 shlibpath_var=LD_LIBRARY_PATH 3916 ;; 3917 3918*) 3919 dynamic_linker=no 3920 ;; 3921esac 3922AC_MSG_RESULT([$dynamic_linker]) 3923test no = "$dynamic_linker" && can_build_shared=no 3924 3925variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 3926if test yes = "$GCC"; then 3927 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 3928fi 3929 3930if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 3931 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 3932fi 3933 3934if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 3935 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 3936fi 3937 3938# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 3939configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 3940 3941# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 3942func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 3943 3944# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 3945configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 3946 3947_LT_DECL([], [variables_saved_for_relink], [1], 3948 [Variables whose values should be saved in libtool wrapper scripts and 3949 restored at link time]) 3950_LT_DECL([], [need_lib_prefix], [0], 3951 [Do we need the "lib" prefix for modules?]) 3952_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) 3953_LT_DECL([], [version_type], [0], [Library versioning type]) 3954_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) 3955_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) 3956_LT_DECL([], [shlibpath_overrides_runpath], [0], 3957 [Is shlibpath searched before the hard-coded library search path?]) 3958_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) 3959_LT_DECL([], [library_names_spec], [1], 3960 [[List of archive names. First name is the real one, the rest are links. 3961 The last name is the one that the linker finds with -lNAME]]) 3962_LT_DECL([], [soname_spec], [1], 3963 [[The coded name of the library, if different from the real name]]) 3964_LT_DECL([], [install_override_mode], [1], 3965 [Permission mode override for installation of shared libraries]) 3966_LT_DECL([], [postinstall_cmds], [2], 3967 [Command to use after installation of a shared archive]) 3968_LT_DECL([], [postuninstall_cmds], [2], 3969 [Command to use after uninstallation of a shared archive]) 3970_LT_DECL([], [finish_cmds], [2], 3971 [Commands used to finish a libtool library installation in a directory]) 3972_LT_DECL([], [finish_eval], [1], 3973 [[As "finish_cmds", except a single script fragment to be evaled but 3974 not shown]]) 3975_LT_DECL([], [hardcode_into_libs], [0], 3976 [Whether we should hardcode library paths into libraries]) 3977_LT_DECL([], [sys_lib_search_path_spec], [2], 3978 [Compile-time system search path for libraries]) 3979_LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2], 3980 [Detected run-time system search path for libraries]) 3981_LT_DECL([], [configure_time_lt_sys_library_path], [2], 3982 [Explicit LT_SYS_LIBRARY_PATH set during ./configure time]) 3983])# _LT_SYS_DYNAMIC_LINKER 3984 3985 3986# _LT_PATH_TOOL_PREFIX(TOOL) 3987# -------------------------- 3988# find a file program that can recognize shared library 3989AC_DEFUN([_LT_PATH_TOOL_PREFIX], 3990[m4_require([_LT_DECL_EGREP])dnl 3991AC_MSG_CHECKING([for $1]) 3992AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 3993[case $MAGIC_CMD in 3994[[\\/*] | ?:[\\/]*]) 3995 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 3996 ;; 3997*) 3998 lt_save_MAGIC_CMD=$MAGIC_CMD 3999 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4000dnl $ac_dummy forces splitting on constant user-supplied paths. 4001dnl POSIX.2 word splitting is done only on the output of word expansions, 4002dnl not every word. This closes a longstanding sh security hole. 4003 ac_dummy="m4_if([$2], , $PATH, [$2])" 4004 for ac_dir in $ac_dummy; do 4005 IFS=$lt_save_ifs 4006 test -z "$ac_dir" && ac_dir=. 4007 if test -f "$ac_dir/$1"; then 4008 lt_cv_path_MAGIC_CMD=$ac_dir/"$1" 4009 if test -n "$file_magic_test_file"; then 4010 case $deplibs_check_method in 4011 "file_magic "*) 4012 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 4013 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 4014 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 4015 $EGREP "$file_magic_regex" > /dev/null; then 4016 : 4017 else 4018 cat <<_LT_EOF 1>&2 4019 4020*** Warning: the command libtool uses to detect shared libraries, 4021*** $file_magic_cmd, produces output that libtool cannot recognize. 4022*** The result is that libtool may fail to recognize shared libraries 4023*** as such. This will affect the creation of libtool libraries that 4024*** depend on shared libraries, but programs linked with such libtool 4025*** libraries will work regardless of this problem. Nevertheless, you 4026*** may want to report the problem to your system manager and/or to 4027*** bug-libtool@gnu.org 4028 4029_LT_EOF 4030 fi ;; 4031 esac 4032 fi 4033 break 4034 fi 4035 done 4036 IFS=$lt_save_ifs 4037 MAGIC_CMD=$lt_save_MAGIC_CMD 4038 ;; 4039esac]) 4040MAGIC_CMD=$lt_cv_path_MAGIC_CMD 4041if test -n "$MAGIC_CMD"; then 4042 AC_MSG_RESULT($MAGIC_CMD) 4043else 4044 AC_MSG_RESULT(no) 4045fi 4046_LT_DECL([], [MAGIC_CMD], [0], 4047 [Used to examine libraries when file_magic_cmd begins with "file"])dnl 4048])# _LT_PATH_TOOL_PREFIX 4049 4050# Old name: 4051AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) 4052dnl aclocal-1.4 backwards compatibility: 4053dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) 4054 4055 4056# _LT_PATH_MAGIC 4057# -------------- 4058# find a file program that can recognize a shared library 4059m4_defun([_LT_PATH_MAGIC], 4060[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 4061if test -z "$lt_cv_path_MAGIC_CMD"; then 4062 if test -n "$ac_tool_prefix"; then 4063 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 4064 else 4065 MAGIC_CMD=: 4066 fi 4067fi 4068])# _LT_PATH_MAGIC 4069 4070 4071# LT_PATH_LD 4072# ---------- 4073# find the pathname to the GNU or non-GNU linker 4074AC_DEFUN([LT_PATH_LD], 4075[AC_REQUIRE([AC_PROG_CC])dnl 4076AC_REQUIRE([AC_CANONICAL_HOST])dnl 4077AC_REQUIRE([AC_CANONICAL_BUILD])dnl 4078m4_require([_LT_DECL_SED])dnl 4079m4_require([_LT_DECL_EGREP])dnl 4080m4_require([_LT_PROG_ECHO_BACKSLASH])dnl 4081 4082AC_ARG_WITH([gnu-ld], 4083 [AS_HELP_STRING([--with-gnu-ld], 4084 [assume the C compiler uses GNU ld @<:@default=no@:>@])], 4085 [test no = "$withval" || with_gnu_ld=yes], 4086 [with_gnu_ld=no])dnl 4087 4088ac_prog=ld 4089if test yes = "$GCC"; then 4090 # Check if gcc -print-prog-name=ld gives a path. 4091 AC_MSG_CHECKING([for ld used by $CC]) 4092 case $host in 4093 *-*-mingw*) 4094 # gcc leaves a trailing carriage return, which upsets mingw 4095 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4096 *) 4097 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4098 esac 4099 case $ac_prog in 4100 # Accept absolute paths. 4101 [[\\/]]* | ?:[[\\/]]*) 4102 re_direlt='/[[^/]][[^/]]*/\.\./' 4103 # Canonicalize the pathname of ld 4104 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4105 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4106 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4107 done 4108 test -z "$LD" && LD=$ac_prog 4109 ;; 4110 "") 4111 # If it fails, then pretend we aren't using GCC. 4112 ac_prog=ld 4113 ;; 4114 *) 4115 # If it is relative, then search for the first ld in PATH. 4116 with_gnu_ld=unknown 4117 ;; 4118 esac 4119elif test yes = "$with_gnu_ld"; then 4120 AC_MSG_CHECKING([for GNU ld]) 4121else 4122 AC_MSG_CHECKING([for non-GNU ld]) 4123fi 4124AC_CACHE_VAL(lt_cv_path_LD, 4125[if test -z "$LD"; then 4126 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4127 for ac_dir in $PATH; do 4128 IFS=$lt_save_ifs 4129 test -z "$ac_dir" && ac_dir=. 4130 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4131 lt_cv_path_LD=$ac_dir/$ac_prog 4132 # Check to see if the program is GNU ld. I'd rather use --version, 4133 # but apparently some variants of GNU ld only accept -v. 4134 # Break only if it was the GNU/non-GNU ld that we prefer. 4135 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4136 *GNU* | *'with BFD'*) 4137 test no != "$with_gnu_ld" && break 4138 ;; 4139 *) 4140 test yes != "$with_gnu_ld" && break 4141 ;; 4142 esac 4143 fi 4144 done 4145 IFS=$lt_save_ifs 4146else 4147 lt_cv_path_LD=$LD # Let the user override the test with a path. 4148fi]) 4149LD=$lt_cv_path_LD 4150if test -n "$LD"; then 4151 AC_MSG_RESULT($LD) 4152else 4153 AC_MSG_RESULT(no) 4154fi 4155test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 4156_LT_PATH_LD_GNU 4157AC_SUBST([LD]) 4158 4159_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) 4160])# LT_PATH_LD 4161 4162# Old names: 4163AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) 4164AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) 4165dnl aclocal-1.4 backwards compatibility: 4166dnl AC_DEFUN([AM_PROG_LD], []) 4167dnl AC_DEFUN([AC_PROG_LD], []) 4168 4169 4170# _LT_PATH_LD_GNU 4171#- -------------- 4172m4_defun([_LT_PATH_LD_GNU], 4173[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 4174[# I'd rather use --version here, but apparently some GNU lds only accept -v. 4175case `$LD -v 2>&1 </dev/null` in 4176*GNU* | *'with BFD'*) 4177 lt_cv_prog_gnu_ld=yes 4178 ;; 4179*) 4180 lt_cv_prog_gnu_ld=no 4181 ;; 4182esac]) 4183with_gnu_ld=$lt_cv_prog_gnu_ld 4184])# _LT_PATH_LD_GNU 4185 4186 4187# _LT_CMD_RELOAD 4188# -------------- 4189# find reload flag for linker 4190# -- PORTME Some linkers may need a different reload flag. 4191m4_defun([_LT_CMD_RELOAD], 4192[AC_CACHE_CHECK([for $LD option to reload object files], 4193 lt_cv_ld_reload_flag, 4194 [lt_cv_ld_reload_flag='-r']) 4195reload_flag=$lt_cv_ld_reload_flag 4196case $reload_flag in 4197"" | " "*) ;; 4198*) reload_flag=" $reload_flag" ;; 4199esac 4200reload_cmds='$LD$reload_flag -o $output$reload_objs' 4201case $host_os in 4202 cygwin* | mingw* | pw32* | cegcc*) 4203 if test yes != "$GCC"; then 4204 reload_cmds=false 4205 fi 4206 ;; 4207 darwin*) 4208 if test yes = "$GCC"; then 4209 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 4210 else 4211 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4212 fi 4213 ;; 4214esac 4215_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl 4216_LT_TAGDECL([], [reload_cmds], [2])dnl 4217])# _LT_CMD_RELOAD 4218 4219 4220# _LT_PATH_DD 4221# ----------- 4222# find a working dd 4223m4_defun([_LT_PATH_DD], 4224[AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD], 4225[printf 0123456789abcdef0123456789abcdef >conftest.i 4226cat conftest.i conftest.i >conftest2.i 4227: ${lt_DD:=$DD} 4228AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd], 4229[if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 4230 cmp -s conftest.i conftest.out \ 4231 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 4232fi]) 4233rm -f conftest.i conftest2.i conftest.out]) 4234])# _LT_PATH_DD 4235 4236 4237# _LT_CMD_TRUNCATE 4238# ---------------- 4239# find command to truncate a binary pipe 4240m4_defun([_LT_CMD_TRUNCATE], 4241[m4_require([_LT_PATH_DD]) 4242AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin], 4243[printf 0123456789abcdef0123456789abcdef >conftest.i 4244cat conftest.i conftest.i >conftest2.i 4245lt_cv_truncate_bin= 4246if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 4247 cmp -s conftest.i conftest.out \ 4248 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 4249fi 4250rm -f conftest.i conftest2.i conftest.out 4251test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"]) 4252_LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1], 4253 [Command to truncate a binary pipe]) 4254])# _LT_CMD_TRUNCATE 4255 4256 4257# _LT_CHECK_MAGIC_METHOD 4258# ---------------------- 4259# how to check for library dependencies 4260# -- PORTME fill in with the dynamic library characteristics 4261m4_defun([_LT_CHECK_MAGIC_METHOD], 4262[m4_require([_LT_DECL_EGREP]) 4263m4_require([_LT_DECL_OBJDUMP]) 4264AC_CACHE_CHECK([how to recognize dependent libraries], 4265lt_cv_deplibs_check_method, 4266[lt_cv_file_magic_cmd='$MAGIC_CMD' 4267lt_cv_file_magic_test_file= 4268lt_cv_deplibs_check_method='unknown' 4269# Need to set the preceding variable on all platforms that support 4270# interlibrary dependencies. 4271# 'none' -- dependencies not supported. 4272# 'unknown' -- same as none, but documents that we really don't know. 4273# 'pass_all' -- all dependencies passed with no checks. 4274# 'test_compile' -- check by making test program. 4275# 'file_magic [[regex]]' -- check by looking for files in library path 4276# that responds to the $file_magic_cmd with a given extended regex. 4277# If you have 'file' or equivalent on your system and you're not sure 4278# whether 'pass_all' will *always* work, you probably want this one. 4279 4280case $host_os in 4281aix[[4-9]]*) 4282 lt_cv_deplibs_check_method=pass_all 4283 ;; 4284 4285beos*) 4286 lt_cv_deplibs_check_method=pass_all 4287 ;; 4288 4289bsdi[[45]]*) 4290 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 4291 lt_cv_file_magic_cmd='/usr/bin/file -L' 4292 lt_cv_file_magic_test_file=/shlib/libc.so 4293 ;; 4294 4295cygwin*) 4296 # func_win32_libid is a shell function defined in ltmain.sh 4297 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4298 lt_cv_file_magic_cmd='func_win32_libid' 4299 ;; 4300 4301mingw* | pw32*) 4302 # Base MSYS/MinGW do not provide the 'file' command needed by 4303 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4304 # unless we find 'file', for example because we are cross-compiling. 4305 if ( file / ) >/dev/null 2>&1; then 4306 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4307 lt_cv_file_magic_cmd='func_win32_libid' 4308 else 4309 # Keep this pattern in sync with the one in func_win32_libid. 4310 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 4311 lt_cv_file_magic_cmd='$OBJDUMP -f' 4312 fi 4313 ;; 4314 4315cegcc*) 4316 # use the weaker test based on 'objdump'. See mingw*. 4317 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4318 lt_cv_file_magic_cmd='$OBJDUMP -f' 4319 ;; 4320 4321darwin* | rhapsody*) 4322 lt_cv_deplibs_check_method=pass_all 4323 ;; 4324 4325freebsd* | dragonfly*) 4326 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4327 case $host_cpu in 4328 i*86 ) 4329 # Not sure whether the presence of OpenBSD here was a mistake. 4330 # Let's accept both of them until this is cleared up. 4331 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 4332 lt_cv_file_magic_cmd=/usr/bin/file 4333 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4334 ;; 4335 esac 4336 else 4337 lt_cv_deplibs_check_method=pass_all 4338 fi 4339 ;; 4340 4341haiku*) 4342 lt_cv_deplibs_check_method=pass_all 4343 ;; 4344 4345hpux10.20* | hpux11*) 4346 lt_cv_file_magic_cmd=/usr/bin/file 4347 case $host_cpu in 4348 ia64*) 4349 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 4350 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4351 ;; 4352 hppa*64*) 4353 [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]'] 4354 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4355 ;; 4356 *) 4357 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' 4358 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4359 ;; 4360 esac 4361 ;; 4362 4363interix[[3-9]]*) 4364 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4365 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 4366 ;; 4367 4368irix5* | irix6* | nonstopux*) 4369 case $LD in 4370 *-32|*"-32 ") libmagic=32-bit;; 4371 *-n32|*"-n32 ") libmagic=N32;; 4372 *-64|*"-64 ") libmagic=64-bit;; 4373 *) libmagic=never-match;; 4374 esac 4375 lt_cv_deplibs_check_method=pass_all 4376 ;; 4377 4378# This must be glibc/ELF. 4379linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 4380 lt_cv_deplibs_check_method=pass_all 4381 ;; 4382 4383netbsd*) 4384 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4385 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 4386 else 4387 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 4388 fi 4389 ;; 4390 4391newos6*) 4392 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 4393 lt_cv_file_magic_cmd=/usr/bin/file 4394 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4395 ;; 4396 4397*nto* | *qnx*) 4398 lt_cv_deplibs_check_method=pass_all 4399 ;; 4400 4401openbsd* | bitrig*) 4402 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 4403 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 4404 else 4405 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 4406 fi 4407 ;; 4408 4409osf3* | osf4* | osf5*) 4410 lt_cv_deplibs_check_method=pass_all 4411 ;; 4412 4413rdos*) 4414 lt_cv_deplibs_check_method=pass_all 4415 ;; 4416 4417solaris*) 4418 lt_cv_deplibs_check_method=pass_all 4419 ;; 4420 4421sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4422 lt_cv_deplibs_check_method=pass_all 4423 ;; 4424 4425sysv4 | sysv4.3*) 4426 case $host_vendor in 4427 motorola) 4428 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]]' 4429 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4430 ;; 4431 ncr) 4432 lt_cv_deplibs_check_method=pass_all 4433 ;; 4434 sequent) 4435 lt_cv_file_magic_cmd='/bin/file' 4436 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 4437 ;; 4438 sni) 4439 lt_cv_file_magic_cmd='/bin/file' 4440 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 4441 lt_cv_file_magic_test_file=/lib/libc.so 4442 ;; 4443 siemens) 4444 lt_cv_deplibs_check_method=pass_all 4445 ;; 4446 pc) 4447 lt_cv_deplibs_check_method=pass_all 4448 ;; 4449 esac 4450 ;; 4451 4452tpf*) 4453 lt_cv_deplibs_check_method=pass_all 4454 ;; 4455os2*) 4456 lt_cv_deplibs_check_method=pass_all 4457 ;; 4458esac 4459]) 4460 4461file_magic_glob= 4462want_nocaseglob=no 4463if test "$build" = "$host"; then 4464 case $host_os in 4465 mingw* | pw32*) 4466 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 4467 want_nocaseglob=yes 4468 else 4469 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` 4470 fi 4471 ;; 4472 esac 4473fi 4474 4475file_magic_cmd=$lt_cv_file_magic_cmd 4476deplibs_check_method=$lt_cv_deplibs_check_method 4477test -z "$deplibs_check_method" && deplibs_check_method=unknown 4478 4479_LT_DECL([], [deplibs_check_method], [1], 4480 [Method to check whether dependent libraries are shared objects]) 4481_LT_DECL([], [file_magic_cmd], [1], 4482 [Command to use when deplibs_check_method = "file_magic"]) 4483_LT_DECL([], [file_magic_glob], [1], 4484 [How to find potential files when deplibs_check_method = "file_magic"]) 4485_LT_DECL([], [want_nocaseglob], [1], 4486 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) 4487])# _LT_CHECK_MAGIC_METHOD 4488 4489 4490# LT_PATH_NM 4491# ---------- 4492# find the pathname to a BSD- or MS-compatible name lister 4493AC_DEFUN([LT_PATH_NM], 4494[AC_REQUIRE([AC_PROG_CC])dnl 4495AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, 4496[if test -n "$NM"; then 4497 # Let the user override the test. 4498 lt_cv_path_NM=$NM 4499else 4500 lt_nm_to_check=${ac_tool_prefix}nm 4501 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4502 lt_nm_to_check="$lt_nm_to_check nm" 4503 fi 4504 for lt_tmp_nm in $lt_nm_to_check; do 4505 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4506 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4507 IFS=$lt_save_ifs 4508 test -z "$ac_dir" && ac_dir=. 4509 tmp_nm=$ac_dir/$lt_tmp_nm 4510 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4511 # Check to see if the nm accepts a BSD-compat flag. 4512 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4513 # nm: unknown option "B" ignored 4514 # Tru64's nm complains that /dev/null is an invalid object file 4515 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4516 case $build_os in 4517 mingw*) lt_bad_file=conftest.nm/nofile ;; 4518 *) lt_bad_file=/dev/null ;; 4519 esac 4520 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4521 *$lt_bad_file* | *'Invalid file or object type'*) 4522 lt_cv_path_NM="$tmp_nm -B" 4523 break 2 4524 ;; 4525 *) 4526 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4527 */dev/null*) 4528 lt_cv_path_NM="$tmp_nm -p" 4529 break 2 4530 ;; 4531 *) 4532 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4533 continue # so that we can try to find one that supports BSD flags 4534 ;; 4535 esac 4536 ;; 4537 esac 4538 fi 4539 done 4540 IFS=$lt_save_ifs 4541 done 4542 : ${lt_cv_path_NM=no} 4543fi]) 4544if test no != "$lt_cv_path_NM"; then 4545 NM=$lt_cv_path_NM 4546else 4547 # Didn't find any BSD compatible name lister, look for dumpbin. 4548 if test -n "$DUMPBIN"; then : 4549 # Let the user override the test. 4550 else 4551 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) 4552 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4553 *COFF*) 4554 DUMPBIN="$DUMPBIN -symbols -headers" 4555 ;; 4556 *) 4557 DUMPBIN=: 4558 ;; 4559 esac 4560 fi 4561 AC_SUBST([DUMPBIN]) 4562 if test : != "$DUMPBIN"; then 4563 NM=$DUMPBIN 4564 fi 4565fi 4566test -z "$NM" && NM=nm 4567AC_SUBST([NM]) 4568_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl 4569 4570AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], 4571 [lt_cv_nm_interface="BSD nm" 4572 echo "int some_variable = 0;" > conftest.$ac_ext 4573 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) 4574 (eval "$ac_compile" 2>conftest.err) 4575 cat conftest.err >&AS_MESSAGE_LOG_FD 4576 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) 4577 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4578 cat conftest.err >&AS_MESSAGE_LOG_FD 4579 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) 4580 cat conftest.out >&AS_MESSAGE_LOG_FD 4581 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4582 lt_cv_nm_interface="MS dumpbin" 4583 fi 4584 rm -f conftest*]) 4585])# LT_PATH_NM 4586 4587# Old names: 4588AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) 4589AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) 4590dnl aclocal-1.4 backwards compatibility: 4591dnl AC_DEFUN([AM_PROG_NM], []) 4592dnl AC_DEFUN([AC_PROG_NM], []) 4593 4594# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 4595# -------------------------------- 4596# how to determine the name of the shared library 4597# associated with a specific link library. 4598# -- PORTME fill in with the dynamic library characteristics 4599m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], 4600[m4_require([_LT_DECL_EGREP]) 4601m4_require([_LT_DECL_OBJDUMP]) 4602m4_require([_LT_DECL_DLLTOOL]) 4603AC_CACHE_CHECK([how to associate runtime and link libraries], 4604lt_cv_sharedlib_from_linklib_cmd, 4605[lt_cv_sharedlib_from_linklib_cmd='unknown' 4606 4607case $host_os in 4608cygwin* | mingw* | pw32* | cegcc*) 4609 # two different shell functions defined in ltmain.sh; 4610 # decide which one to use based on capabilities of $DLLTOOL 4611 case `$DLLTOOL --help 2>&1` in 4612 *--identify-strict*) 4613 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 4614 ;; 4615 *) 4616 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 4617 ;; 4618 esac 4619 ;; 4620*) 4621 # fallback: assume linklib IS sharedlib 4622 lt_cv_sharedlib_from_linklib_cmd=$ECHO 4623 ;; 4624esac 4625]) 4626sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 4627test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 4628 4629_LT_DECL([], [sharedlib_from_linklib_cmd], [1], 4630 [Command to associate shared and link libraries]) 4631])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 4632 4633 4634# _LT_PATH_MANIFEST_TOOL 4635# ---------------------- 4636# locate the manifest tool 4637m4_defun([_LT_PATH_MANIFEST_TOOL], 4638[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) 4639test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 4640AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], 4641 [lt_cv_path_mainfest_tool=no 4642 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD 4643 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 4644 cat conftest.err >&AS_MESSAGE_LOG_FD 4645 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 4646 lt_cv_path_mainfest_tool=yes 4647 fi 4648 rm -f conftest*]) 4649if test yes != "$lt_cv_path_mainfest_tool"; then 4650 MANIFEST_TOOL=: 4651fi 4652_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl 4653])# _LT_PATH_MANIFEST_TOOL 4654 4655 4656# _LT_DLL_DEF_P([FILE]) 4657# --------------------- 4658# True iff FILE is a Windows DLL '.def' file. 4659# Keep in sync with func_dll_def_p in the libtool script 4660AC_DEFUN([_LT_DLL_DEF_P], 4661[dnl 4662 test DEF = "`$SED -n dnl 4663 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace 4664 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments 4665 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl 4666 -e q dnl Only consider the first "real" line 4667 $1`" dnl 4668])# _LT_DLL_DEF_P 4669 4670 4671# LT_LIB_M 4672# -------- 4673# check for math library 4674AC_DEFUN([LT_LIB_M], 4675[AC_REQUIRE([AC_CANONICAL_HOST])dnl 4676LIBM= 4677case $host in 4678*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 4679 # These system don't have libm, or don't need it 4680 ;; 4681*-ncr-sysv4.3*) 4682 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw) 4683 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 4684 ;; 4685*) 4686 AC_CHECK_LIB(m, cos, LIBM=-lm) 4687 ;; 4688esac 4689AC_SUBST([LIBM]) 4690])# LT_LIB_M 4691 4692# Old name: 4693AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) 4694dnl aclocal-1.4 backwards compatibility: 4695dnl AC_DEFUN([AC_CHECK_LIBM], []) 4696 4697 4698# _LT_COMPILER_NO_RTTI([TAGNAME]) 4699# ------------------------------- 4700m4_defun([_LT_COMPILER_NO_RTTI], 4701[m4_require([_LT_TAG_COMPILER])dnl 4702 4703_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 4704 4705if test yes = "$GCC"; then 4706 case $cc_basename in 4707 nvcc*) 4708 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; 4709 *) 4710 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; 4711 esac 4712 4713 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 4714 lt_cv_prog_compiler_rtti_exceptions, 4715 [-fno-rtti -fno-exceptions], [], 4716 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 4717fi 4718_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], 4719 [Compiler flag to turn off builtin functions]) 4720])# _LT_COMPILER_NO_RTTI 4721 4722 4723# _LT_CMD_GLOBAL_SYMBOLS 4724# ---------------------- 4725m4_defun([_LT_CMD_GLOBAL_SYMBOLS], 4726[AC_REQUIRE([AC_CANONICAL_HOST])dnl 4727AC_REQUIRE([AC_PROG_CC])dnl 4728AC_REQUIRE([AC_PROG_AWK])dnl 4729AC_REQUIRE([LT_PATH_NM])dnl 4730AC_REQUIRE([LT_PATH_LD])dnl 4731m4_require([_LT_DECL_SED])dnl 4732m4_require([_LT_DECL_EGREP])dnl 4733m4_require([_LT_TAG_COMPILER])dnl 4734 4735# Check for command to grab the raw symbol name followed by C symbol from nm. 4736AC_MSG_CHECKING([command to parse $NM output from $compiler object]) 4737AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 4738[ 4739# These are sane defaults that work on at least a few old systems. 4740# [They come from Ultrix. What could be older than Ultrix?!! ;)] 4741 4742# Character class describing NM global symbol codes. 4743symcode='[[BCDEGRST]]' 4744 4745# Regexp to match symbols that can be accessed directly from C. 4746sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 4747 4748# Define system-specific variables. 4749case $host_os in 4750aix*) 4751 symcode='[[BCDT]]' 4752 ;; 4753cygwin* | mingw* | pw32* | cegcc*) 4754 symcode='[[ABCDGISTW]]' 4755 ;; 4756hpux*) 4757 if test ia64 = "$host_cpu"; then 4758 symcode='[[ABCDEGRST]]' 4759 fi 4760 ;; 4761irix* | nonstopux*) 4762 symcode='[[BCDEGRST]]' 4763 ;; 4764osf*) 4765 symcode='[[BCDEGQRST]]' 4766 ;; 4767solaris*) 4768 symcode='[[BDRT]]' 4769 ;; 4770sco3.2v5*) 4771 symcode='[[DT]]' 4772 ;; 4773sysv4.2uw2*) 4774 symcode='[[DT]]' 4775 ;; 4776sysv5* | sco5v6* | unixware* | OpenUNIX*) 4777 symcode='[[ABDT]]' 4778 ;; 4779sysv4) 4780 symcode='[[DFNSTU]]' 4781 ;; 4782esac 4783 4784# If we're using GNU nm, then use its standard symbol codes. 4785case `$NM -V 2>&1` in 4786*GNU* | *'with BFD'*) 4787 symcode='[[ABCDGIRSTW]]' ;; 4788esac 4789 4790if test "$lt_cv_nm_interface" = "MS dumpbin"; then 4791 # Gets list of data symbols to import. 4792 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 4793 # Adjust the below global symbol transforms to fixup imported variables. 4794 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 4795 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 4796 lt_c_name_lib_hook="\ 4797 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 4798 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 4799else 4800 # Disable hooks by default. 4801 lt_cv_sys_global_symbol_to_import= 4802 lt_cdecl_hook= 4803 lt_c_name_hook= 4804 lt_c_name_lib_hook= 4805fi 4806 4807# Transform an extracted symbol line into a proper C declaration. 4808# Some systems (esp. on ia64) link data and code symbols differently, 4809# so use this general approach. 4810lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 4811$lt_cdecl_hook\ 4812" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 4813" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 4814 4815# Transform an extracted symbol line into symbol name and symbol address 4816lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 4817$lt_c_name_hook\ 4818" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 4819" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 4820 4821# Transform an extracted symbol line into symbol name with lib prefix and 4822# symbol address. 4823lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 4824$lt_c_name_lib_hook\ 4825" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 4826" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 4827" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 4828 4829# Handle CRLF in mingw tool chain 4830opt_cr= 4831case $build_os in 4832mingw*) 4833 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 4834 ;; 4835esac 4836 4837# Try without a prefix underscore, then with it. 4838for ac_symprfx in "" "_"; do 4839 4840 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 4841 symxfrm="\\1 $ac_symprfx\\2 \\2" 4842 4843 # Write the raw and C identifiers. 4844 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 4845 # Fake it for dumpbin and say T for any non-static function, 4846 # D for any global variable and I for any imported variable. 4847 # Also find C++ and __fastcall symbols from MSVC++, 4848 # which start with @ or ?. 4849 lt_cv_sys_global_symbol_pipe="$AWK ['"\ 4850" {last_section=section; section=\$ 3};"\ 4851" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 4852" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 4853" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 4854" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 4855" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 4856" \$ 0!~/External *\|/{next};"\ 4857" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 4858" {if(hide[section]) next};"\ 4859" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 4860" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 4861" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 4862" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 4863" ' prfx=^$ac_symprfx]" 4864 else 4865 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 4866 fi 4867 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 4868 4869 # Check to see that the pipe works correctly. 4870 pipe_works=no 4871 4872 rm -f conftest* 4873 cat > conftest.$ac_ext <<_LT_EOF 4874#ifdef __cplusplus 4875extern "C" { 4876#endif 4877char nm_test_var; 4878void nm_test_func(void); 4879void nm_test_func(void){} 4880#ifdef __cplusplus 4881} 4882#endif 4883int main(){nm_test_var='a';nm_test_func();return(0);} 4884_LT_EOF 4885 4886 if AC_TRY_EVAL(ac_compile); then 4887 # Now try to grab the symbols. 4888 nlist=conftest.nm 4889 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then 4890 # Try sorting and uniquifying the output. 4891 if sort "$nlist" | uniq > "$nlist"T; then 4892 mv -f "$nlist"T "$nlist" 4893 else 4894 rm -f "$nlist"T 4895 fi 4896 4897 # Make sure that we snagged all the symbols we need. 4898 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 4899 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 4900 cat <<_LT_EOF > conftest.$ac_ext 4901/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 4902#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 4903/* DATA imports from DLLs on WIN32 can't be const, because runtime 4904 relocations are performed -- see ld's documentation on pseudo-relocs. */ 4905# define LT@&t@_DLSYM_CONST 4906#elif defined __osf__ 4907/* This system does not cope well with relocations in const data. */ 4908# define LT@&t@_DLSYM_CONST 4909#else 4910# define LT@&t@_DLSYM_CONST const 4911#endif 4912 4913#ifdef __cplusplus 4914extern "C" { 4915#endif 4916 4917_LT_EOF 4918 # Now generate the symbol file. 4919 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 4920 4921 cat <<_LT_EOF >> conftest.$ac_ext 4922 4923/* The mapping between symbol names and symbols. */ 4924LT@&t@_DLSYM_CONST struct { 4925 const char *name; 4926 void *address; 4927} 4928lt__PROGRAM__LTX_preloaded_symbols[[]] = 4929{ 4930 { "@PROGRAM@", (void *) 0 }, 4931_LT_EOF 4932 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 4933 cat <<\_LT_EOF >> conftest.$ac_ext 4934 {0, (void *) 0} 4935}; 4936 4937/* This works around a problem in FreeBSD linker */ 4938#ifdef FREEBSD_WORKAROUND 4939static const void *lt_preloaded_setup() { 4940 return lt__PROGRAM__LTX_preloaded_symbols; 4941} 4942#endif 4943 4944#ifdef __cplusplus 4945} 4946#endif 4947_LT_EOF 4948 # Now try linking the two files. 4949 mv conftest.$ac_objext conftstm.$ac_objext 4950 lt_globsym_save_LIBS=$LIBS 4951 lt_globsym_save_CFLAGS=$CFLAGS 4952 LIBS=conftstm.$ac_objext 4953 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 4954 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then 4955 pipe_works=yes 4956 fi 4957 LIBS=$lt_globsym_save_LIBS 4958 CFLAGS=$lt_globsym_save_CFLAGS 4959 else 4960 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 4961 fi 4962 else 4963 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 4964 fi 4965 else 4966 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 4967 fi 4968 else 4969 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 4970 cat conftest.$ac_ext >&5 4971 fi 4972 rm -rf conftest* conftst* 4973 4974 # Do not use the global_symbol_pipe unless it works. 4975 if test yes = "$pipe_works"; then 4976 break 4977 else 4978 lt_cv_sys_global_symbol_pipe= 4979 fi 4980done 4981]) 4982if test -z "$lt_cv_sys_global_symbol_pipe"; then 4983 lt_cv_sys_global_symbol_to_cdecl= 4984fi 4985if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 4986 AC_MSG_RESULT(failed) 4987else 4988 AC_MSG_RESULT(ok) 4989fi 4990 4991# Response file support. 4992if test "$lt_cv_nm_interface" = "MS dumpbin"; then 4993 nm_file_list_spec='@' 4994elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then 4995 nm_file_list_spec='@' 4996fi 4997 4998_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], 4999 [Take the output of nm and produce a listing of raw symbols and C names]) 5000_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 5001 [Transform the output of nm in a proper C declaration]) 5002_LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1], 5003 [Transform the output of nm into a list of symbols to manually relocate]) 5004_LT_DECL([global_symbol_to_c_name_address], 5005 [lt_cv_sys_global_symbol_to_c_name_address], [1], 5006 [Transform the output of nm in a C name address pair]) 5007_LT_DECL([global_symbol_to_c_name_address_lib_prefix], 5008 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 5009 [Transform the output of nm in a C name address pair when lib prefix is needed]) 5010_LT_DECL([nm_interface], [lt_cv_nm_interface], [1], 5011 [The name lister interface]) 5012_LT_DECL([], [nm_file_list_spec], [1], 5013 [Specify filename containing input files for $NM]) 5014]) # _LT_CMD_GLOBAL_SYMBOLS 5015 5016 5017# _LT_COMPILER_PIC([TAGNAME]) 5018# --------------------------- 5019m4_defun([_LT_COMPILER_PIC], 5020[m4_require([_LT_TAG_COMPILER])dnl 5021_LT_TAGVAR(lt_prog_compiler_wl, $1)= 5022_LT_TAGVAR(lt_prog_compiler_pic, $1)= 5023_LT_TAGVAR(lt_prog_compiler_static, $1)= 5024 5025m4_if([$1], [CXX], [ 5026 # C++ specific cases for pic, static, wl, etc. 5027 if test yes = "$GXX"; then 5028 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5029 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5030 5031 case $host_os in 5032 aix*) 5033 # All AIX code is PIC. 5034 if test ia64 = "$host_cpu"; then 5035 # AIX 5 now supports IA64 processor 5036 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5037 fi 5038 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5039 ;; 5040 5041 amigaos*) 5042 case $host_cpu in 5043 powerpc) 5044 # see comment about AmigaOS4 .so support 5045 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5046 ;; 5047 m68k) 5048 # FIXME: we need at least 68020 code to build shared libraries, but 5049 # adding the '-m68020' flag to GCC prevents building anything better, 5050 # like '-m68040'. 5051 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 5052 ;; 5053 esac 5054 ;; 5055 5056 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 5057 # PIC is the default for these OSes. 5058 ;; 5059 mingw* | cygwin* | os2* | pw32* | cegcc*) 5060 # This hack is so that the source file can tell whether it is being 5061 # built for inclusion in a dll (and should export symbols for example). 5062 # Although the cygwin gcc ignores -fPIC, still need this for old-style 5063 # (--disable-auto-import) libraries 5064 m4_if([$1], [GCJ], [], 5065 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 5066 case $host_os in 5067 os2*) 5068 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 5069 ;; 5070 esac 5071 ;; 5072 darwin* | rhapsody*) 5073 # PIC is the default on this platform 5074 # Common symbols not allowed in MH_DYLIB files 5075 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 5076 ;; 5077 *djgpp*) 5078 # DJGPP does not support shared libraries at all 5079 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 5080 ;; 5081 haiku*) 5082 # PIC is the default for Haiku. 5083 # The "-static" flag exists, but is broken. 5084 _LT_TAGVAR(lt_prog_compiler_static, $1)= 5085 ;; 5086 interix[[3-9]]*) 5087 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 5088 # Instead, we relocate shared libraries at runtime. 5089 ;; 5090 sysv4*MP*) 5091 if test -d /usr/nec; then 5092 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 5093 fi 5094 ;; 5095 hpux*) 5096 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 5097 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 5098 # sets the default TLS model and affects inlining. 5099 case $host_cpu in 5100 hppa*64*) 5101 ;; 5102 *) 5103 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5104 ;; 5105 esac 5106 ;; 5107 *qnx* | *nto*) 5108 # QNX uses GNU C++, but need to define -shared option too, otherwise 5109 # it will coredump. 5110 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 5111 ;; 5112 *) 5113 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5114 ;; 5115 esac 5116 else 5117 case $host_os in 5118 aix[[4-9]]*) 5119 # All AIX code is PIC. 5120 if test ia64 = "$host_cpu"; then 5121 # AIX 5 now supports IA64 processor 5122 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5123 else 5124 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 5125 fi 5126 ;; 5127 chorus*) 5128 case $cc_basename in 5129 cxch68*) 5130 # Green Hills C++ Compiler 5131 # _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" 5132 ;; 5133 esac 5134 ;; 5135 mingw* | cygwin* | os2* | pw32* | cegcc*) 5136 # This hack is so that the source file can tell whether it is being 5137 # built for inclusion in a dll (and should export symbols for example). 5138 m4_if([$1], [GCJ], [], 5139 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 5140 ;; 5141 dgux*) 5142 case $cc_basename in 5143 ec++*) 5144 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5145 ;; 5146 ghcx*) 5147 # Green Hills C++ Compiler 5148 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5149 ;; 5150 *) 5151 ;; 5152 esac 5153 ;; 5154 freebsd* | dragonfly*) 5155 # FreeBSD uses GNU C++ 5156 ;; 5157 hpux9* | hpux10* | hpux11*) 5158 case $cc_basename in 5159 CC*) 5160 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5161 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 5162 if test ia64 != "$host_cpu"; then 5163 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5164 fi 5165 ;; 5166 aCC*) 5167 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5168 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 5169 case $host_cpu in 5170 hppa*64*|ia64*) 5171 # +Z the default 5172 ;; 5173 *) 5174 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5175 ;; 5176 esac 5177 ;; 5178 *) 5179 ;; 5180 esac 5181 ;; 5182 interix*) 5183 # This is c89, which is MS Visual C++ (no shared libs) 5184 # Anyone wants to do a port? 5185 ;; 5186 irix5* | irix6* | nonstopux*) 5187 case $cc_basename in 5188 CC*) 5189 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5190 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5191 # CC pic flag -KPIC is the default. 5192 ;; 5193 *) 5194 ;; 5195 esac 5196 ;; 5197 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5198 case $cc_basename in 5199 KCC*) 5200 # KAI C++ Compiler 5201 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 5202 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5203 ;; 5204 ecpc* ) 5205 # old Intel C++ for x86_64, which still supported -KPIC. 5206 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5207 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5208 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5209 ;; 5210 icpc* ) 5211 # Intel C++, used to be incompatible with GCC. 5212 # ICC 10 doesn't accept -KPIC any more. 5213 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5214 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5215 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5216 ;; 5217 pgCC* | pgcpp*) 5218 # Portland Group C++ compiler 5219 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5220 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 5221 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5222 ;; 5223 cxx*) 5224 # Compaq C++ 5225 # Make sure the PIC flag is empty. It appears that all Alpha 5226 # Linux and Compaq Tru64 Unix objects are PIC. 5227 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 5228 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5229 ;; 5230 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) 5231 # IBM XL 8.0, 9.0 on PPC and BlueGene 5232 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5233 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 5234 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 5235 ;; 5236 *) 5237 case `$CC -V 2>&1 | sed 5q` in 5238 *Sun\ C*) 5239 # Sun C++ 5.9 5240 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5241 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5242 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5243 ;; 5244 esac 5245 ;; 5246 esac 5247 ;; 5248 lynxos*) 5249 ;; 5250 m88k*) 5251 ;; 5252 mvs*) 5253 case $cc_basename in 5254 cxx*) 5255 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 5256 ;; 5257 *) 5258 ;; 5259 esac 5260 ;; 5261 netbsd*) 5262 ;; 5263 *qnx* | *nto*) 5264 # QNX uses GNU C++, but need to define -shared option too, otherwise 5265 # it will coredump. 5266 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 5267 ;; 5268 osf3* | osf4* | osf5*) 5269 case $cc_basename in 5270 KCC*) 5271 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 5272 ;; 5273 RCC*) 5274 # Rational C++ 2.4.1 5275 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5276 ;; 5277 cxx*) 5278 # Digital/Compaq C++ 5279 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5280 # Make sure the PIC flag is empty. It appears that all Alpha 5281 # Linux and Compaq Tru64 Unix objects are PIC. 5282 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 5283 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5284 ;; 5285 *) 5286 ;; 5287 esac 5288 ;; 5289 psos*) 5290 ;; 5291 solaris*) 5292 case $cc_basename in 5293 CC* | sunCC*) 5294 # Sun C++ 4.2, 5.x and Centerline C++ 5295 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5296 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5297 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5298 ;; 5299 gcx*) 5300 # Green Hills C++ Compiler 5301 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 5302 ;; 5303 *) 5304 ;; 5305 esac 5306 ;; 5307 sunos4*) 5308 case $cc_basename in 5309 CC*) 5310 # Sun C++ 4.x 5311 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5312 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5313 ;; 5314 lcc*) 5315 # Lucid 5316 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5317 ;; 5318 *) 5319 ;; 5320 esac 5321 ;; 5322 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 5323 case $cc_basename in 5324 CC*) 5325 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5326 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5327 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5328 ;; 5329 esac 5330 ;; 5331 tandem*) 5332 case $cc_basename in 5333 NCC*) 5334 # NonStop-UX NCC 3.20 5335 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5336 ;; 5337 *) 5338 ;; 5339 esac 5340 ;; 5341 vxworks*) 5342 ;; 5343 *) 5344 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5345 ;; 5346 esac 5347 fi 5348], 5349[ 5350 if test yes = "$GCC"; then 5351 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5352 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5353 5354 case $host_os in 5355 aix*) 5356 # All AIX code is PIC. 5357 if test ia64 = "$host_cpu"; then 5358 # AIX 5 now supports IA64 processor 5359 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5360 fi 5361 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5362 ;; 5363 5364 amigaos*) 5365 case $host_cpu in 5366 powerpc) 5367 # see comment about AmigaOS4 .so support 5368 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5369 ;; 5370 m68k) 5371 # FIXME: we need at least 68020 code to build shared libraries, but 5372 # adding the '-m68020' flag to GCC prevents building anything better, 5373 # like '-m68040'. 5374 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 5375 ;; 5376 esac 5377 ;; 5378 5379 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 5380 # PIC is the default for these OSes. 5381 ;; 5382 5383 mingw* | cygwin* | pw32* | os2* | cegcc*) 5384 # This hack is so that the source file can tell whether it is being 5385 # built for inclusion in a dll (and should export symbols for example). 5386 # Although the cygwin gcc ignores -fPIC, still need this for old-style 5387 # (--disable-auto-import) libraries 5388 m4_if([$1], [GCJ], [], 5389 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 5390 case $host_os in 5391 os2*) 5392 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 5393 ;; 5394 esac 5395 ;; 5396 5397 darwin* | rhapsody*) 5398 # PIC is the default on this platform 5399 # Common symbols not allowed in MH_DYLIB files 5400 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 5401 ;; 5402 5403 haiku*) 5404 # PIC is the default for Haiku. 5405 # The "-static" flag exists, but is broken. 5406 _LT_TAGVAR(lt_prog_compiler_static, $1)= 5407 ;; 5408 5409 hpux*) 5410 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 5411 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 5412 # sets the default TLS model and affects inlining. 5413 case $host_cpu in 5414 hppa*64*) 5415 # +Z the default 5416 ;; 5417 *) 5418 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5419 ;; 5420 esac 5421 ;; 5422 5423 interix[[3-9]]*) 5424 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 5425 # Instead, we relocate shared libraries at runtime. 5426 ;; 5427 5428 msdosdjgpp*) 5429 # Just because we use GCC doesn't mean we suddenly get shared libraries 5430 # on systems that don't support them. 5431 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5432 enable_shared=no 5433 ;; 5434 5435 *nto* | *qnx*) 5436 # QNX uses GNU C++, but need to define -shared option too, otherwise 5437 # it will coredump. 5438 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 5439 ;; 5440 5441 sysv4*MP*) 5442 if test -d /usr/nec; then 5443 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 5444 fi 5445 ;; 5446 5447 *) 5448 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5449 ;; 5450 esac 5451 5452 case $cc_basename in 5453 nvcc*) # Cuda Compiler Driver 2.2 5454 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' 5455 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 5456 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" 5457 fi 5458 ;; 5459 esac 5460 else 5461 # PORTME Check for flag to pass linker flags through the system compiler. 5462 case $host_os in 5463 aix*) 5464 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5465 if test ia64 = "$host_cpu"; then 5466 # AIX 5 now supports IA64 processor 5467 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5468 else 5469 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 5470 fi 5471 ;; 5472 5473 darwin* | rhapsody*) 5474 # PIC is the default on this platform 5475 # Common symbols not allowed in MH_DYLIB files 5476 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 5477 case $cc_basename in 5478 nagfor*) 5479 # NAG Fortran compiler 5480 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' 5481 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 5482 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5483 ;; 5484 esac 5485 ;; 5486 5487 mingw* | cygwin* | pw32* | os2* | cegcc*) 5488 # This hack is so that the source file can tell whether it is being 5489 # built for inclusion in a dll (and should export symbols for example). 5490 m4_if([$1], [GCJ], [], 5491 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 5492 case $host_os in 5493 os2*) 5494 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 5495 ;; 5496 esac 5497 ;; 5498 5499 hpux9* | hpux10* | hpux11*) 5500 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5501 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5502 # not for PA HP-UX. 5503 case $host_cpu in 5504 hppa*64*|ia64*) 5505 # +Z the default 5506 ;; 5507 *) 5508 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5509 ;; 5510 esac 5511 # Is there a better lt_prog_compiler_static that works with the bundled CC? 5512 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 5513 ;; 5514 5515 irix5* | irix6* | nonstopux*) 5516 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5517 # PIC (with -KPIC) is the default. 5518 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5519 ;; 5520 5521 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5522 case $cc_basename in 5523 # old Intel for x86_64, which still supported -KPIC. 5524 ecc*) 5525 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5526 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5527 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5528 ;; 5529 # icc used to be incompatible with GCC. 5530 # ICC 10 doesn't accept -KPIC any more. 5531 icc* | ifort*) 5532 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5533 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5534 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5535 ;; 5536 # Lahey Fortran 8.1. 5537 lf95*) 5538 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5539 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' 5540 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 5541 ;; 5542 nagfor*) 5543 # NAG Fortran compiler 5544 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' 5545 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 5546 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5547 ;; 5548 tcc*) 5549 # Fabrice Bellard et al's Tiny C Compiler 5550 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5551 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5552 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5553 ;; 5554 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 5555 # Portland Group compilers (*not* the Pentium gcc compiler, 5556 # which looks to be a dead project) 5557 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5558 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 5559 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5560 ;; 5561 ccc*) 5562 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5563 # All Alpha code is PIC. 5564 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5565 ;; 5566 xl* | bgxl* | bgf* | mpixl*) 5567 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 5568 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5569 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 5570 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 5571 ;; 5572 *) 5573 case `$CC -V 2>&1 | sed 5q` in 5574 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) 5575 # Sun Fortran 8.3 passes all unrecognized flags to the linker 5576 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5577 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5578 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' 5579 ;; 5580 *Sun\ F* | *Sun*Fortran*) 5581 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5582 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5583 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5584 ;; 5585 *Sun\ C*) 5586 # Sun C 5.9 5587 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5588 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5589 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5590 ;; 5591 *Intel*\ [[CF]]*Compiler*) 5592 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5593 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5594 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5595 ;; 5596 *Portland\ Group*) 5597 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5598 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 5599 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5600 ;; 5601 esac 5602 ;; 5603 esac 5604 ;; 5605 5606 newsos6) 5607 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5608 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5609 ;; 5610 5611 *nto* | *qnx*) 5612 # QNX uses GNU C++, but need to define -shared option too, otherwise 5613 # it will coredump. 5614 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 5615 ;; 5616 5617 osf3* | osf4* | osf5*) 5618 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5619 # All OSF/1 code is PIC. 5620 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5621 ;; 5622 5623 rdos*) 5624 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5625 ;; 5626 5627 solaris*) 5628 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5629 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5630 case $cc_basename in 5631 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 5632 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 5633 *) 5634 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 5635 esac 5636 ;; 5637 5638 sunos4*) 5639 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5640 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 5641 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5642 ;; 5643 5644 sysv4 | sysv4.2uw2* | sysv4.3*) 5645 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5646 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5647 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5648 ;; 5649 5650 sysv4*MP*) 5651 if test -d /usr/nec; then 5652 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 5653 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5654 fi 5655 ;; 5656 5657 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 5658 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5659 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5660 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5661 ;; 5662 5663 unicos*) 5664 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5665 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5666 ;; 5667 5668 uts4*) 5669 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5670 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5671 ;; 5672 5673 *) 5674 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5675 ;; 5676 esac 5677 fi 5678]) 5679case $host_os in 5680 # For platforms that do not support PIC, -DPIC is meaningless: 5681 *djgpp*) 5682 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 5683 ;; 5684 *) 5685 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" 5686 ;; 5687esac 5688 5689AC_CACHE_CHECK([for $compiler option to produce PIC], 5690 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], 5691 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) 5692_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) 5693 5694# 5695# Check to make sure the PIC flag actually works. 5696# 5697if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 5698 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], 5699 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], 5700 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], 5701 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in 5702 "" | " "*) ;; 5703 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; 5704 esac], 5705 [_LT_TAGVAR(lt_prog_compiler_pic, $1)= 5706 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 5707fi 5708_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], 5709 [Additional compiler flags for building library objects]) 5710 5711_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], 5712 [How to pass a linker flag through the compiler]) 5713# 5714# Check to make sure the static flag actually works. 5715# 5716wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" 5717_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 5718 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), 5719 $lt_tmp_static_flag, 5720 [], 5721 [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) 5722_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], 5723 [Compiler flag to prevent dynamic linking]) 5724])# _LT_COMPILER_PIC 5725 5726 5727# _LT_LINKER_SHLIBS([TAGNAME]) 5728# ---------------------------- 5729# See if the linker supports building shared libraries. 5730m4_defun([_LT_LINKER_SHLIBS], 5731[AC_REQUIRE([LT_PATH_LD])dnl 5732AC_REQUIRE([LT_PATH_NM])dnl 5733m4_require([_LT_PATH_MANIFEST_TOOL])dnl 5734m4_require([_LT_FILEUTILS_DEFAULTS])dnl 5735m4_require([_LT_DECL_EGREP])dnl 5736m4_require([_LT_DECL_SED])dnl 5737m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 5738m4_require([_LT_TAG_COMPILER])dnl 5739AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 5740m4_if([$1], [CXX], [ 5741 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5742 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 5743 case $host_os in 5744 aix[[4-9]]*) 5745 # If we're using GNU nm, then we don't want the "-C" option. 5746 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 5747 # Without the "-l" option, or with the "-B" option, AIX nm treats 5748 # weak defined symbols like other global defined symbols, whereas 5749 # GNU nm marks them as "W". 5750 # While the 'weak' keyword is ignored in the Export File, we need 5751 # it in the Import File for the 'aix-soname' feature, so we have 5752 # to replace the "-B" option with "-P" for AIX nm. 5753 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 5754 _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' 5755 else 5756 _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' 5757 fi 5758 ;; 5759 pw32*) 5760 _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds 5761 ;; 5762 cygwin* | mingw* | cegcc*) 5763 case $cc_basename in 5764 cl*) 5765 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 5766 ;; 5767 *) 5768 _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' 5769 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 5770 ;; 5771 esac 5772 ;; 5773 *) 5774 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5775 ;; 5776 esac 5777], [ 5778 runpath_var= 5779 _LT_TAGVAR(allow_undefined_flag, $1)= 5780 _LT_TAGVAR(always_export_symbols, $1)=no 5781 _LT_TAGVAR(archive_cmds, $1)= 5782 _LT_TAGVAR(archive_expsym_cmds, $1)= 5783 _LT_TAGVAR(compiler_needs_object, $1)=no 5784 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 5785 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 5786 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5787 _LT_TAGVAR(hardcode_automatic, $1)=no 5788 _LT_TAGVAR(hardcode_direct, $1)=no 5789 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 5790 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 5791 _LT_TAGVAR(hardcode_libdir_separator, $1)= 5792 _LT_TAGVAR(hardcode_minus_L, $1)=no 5793 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 5794 _LT_TAGVAR(inherit_rpath, $1)=no 5795 _LT_TAGVAR(link_all_deplibs, $1)=unknown 5796 _LT_TAGVAR(module_cmds, $1)= 5797 _LT_TAGVAR(module_expsym_cmds, $1)= 5798 _LT_TAGVAR(old_archive_from_new_cmds, $1)= 5799 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= 5800 _LT_TAGVAR(thread_safe_flag_spec, $1)= 5801 _LT_TAGVAR(whole_archive_flag_spec, $1)= 5802 # include_expsyms should be a list of space-separated symbols to be *always* 5803 # included in the symbol list 5804 _LT_TAGVAR(include_expsyms, $1)= 5805 # exclude_expsyms can be an extended regexp of symbols to exclude 5806 # it will be wrapped by ' (' and ')$', so one must not match beginning or 5807 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 5808 # as well as any symbol that contains 'd'. 5809 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 5810 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 5811 # platforms (ab)use it in PIC code, but their linkers get confused if 5812 # the symbol is explicitly referenced. Since portable code cannot 5813 # rely on this symbol name, it's probably fine to never include it in 5814 # preloaded symbol tables. 5815 # Exclude shared library initialization/finalization symbols. 5816dnl Note also adjust exclude_expsyms for C++ above. 5817 extract_expsyms_cmds= 5818 5819 case $host_os in 5820 cygwin* | mingw* | pw32* | cegcc*) 5821 # FIXME: the MSVC++ port hasn't been tested in a loooong time 5822 # When not using gcc, we currently assume that we are using 5823 # Microsoft Visual C++. 5824 if test yes != "$GCC"; then 5825 with_gnu_ld=no 5826 fi 5827 ;; 5828 interix*) 5829 # we just hope/assume this is gcc and not c89 (= MSVC++) 5830 with_gnu_ld=yes 5831 ;; 5832 openbsd* | bitrig*) 5833 with_gnu_ld=no 5834 ;; 5835 esac 5836 5837 _LT_TAGVAR(ld_shlibs, $1)=yes 5838 5839 # On some targets, GNU ld is compatible enough with the native linker 5840 # that we're better off using the native interface for both. 5841 lt_use_gnu_ld_interface=no 5842 if test yes = "$with_gnu_ld"; then 5843 case $host_os in 5844 aix*) 5845 # The AIX port of GNU ld has always aspired to compatibility 5846 # with the native linker. However, as the warning in the GNU ld 5847 # block says, versions before 2.19.5* couldn't really create working 5848 # shared libraries, regardless of the interface used. 5849 case `$LD -v 2>&1` in 5850 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 5851 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; 5852 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; 5853 *) 5854 lt_use_gnu_ld_interface=yes 5855 ;; 5856 esac 5857 ;; 5858 *) 5859 lt_use_gnu_ld_interface=yes 5860 ;; 5861 esac 5862 fi 5863 5864 if test yes = "$lt_use_gnu_ld_interface"; then 5865 # If archive_cmds runs LD, not CC, wlarc should be empty 5866 wlarc='$wl' 5867 5868 # Set some defaults for GNU ld with shared library support. These 5869 # are reset later if shared libraries are not supported. Putting them 5870 # here allows them to be overridden if necessary. 5871 runpath_var=LD_RUN_PATH 5872 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5873 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 5874 # ancient GNU ld didn't support --whole-archive et. al. 5875 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 5876 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 5877 else 5878 _LT_TAGVAR(whole_archive_flag_spec, $1)= 5879 fi 5880 supports_anon_versioning=no 5881 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 5882 *GNU\ gold*) supports_anon_versioning=yes ;; 5883 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 5884 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 5885 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 5886 *\ 2.11.*) ;; # other 2.11 versions 5887 *) supports_anon_versioning=yes ;; 5888 esac 5889 5890 # See if GNU ld supports shared libraries. 5891 case $host_os in 5892 aix[[3-9]]*) 5893 # On AIX/PPC, the GNU linker is very broken 5894 if test ia64 != "$host_cpu"; then 5895 _LT_TAGVAR(ld_shlibs, $1)=no 5896 cat <<_LT_EOF 1>&2 5897 5898*** Warning: the GNU linker, at least up to release 2.19, is reported 5899*** to be unable to reliably create shared libraries on AIX. 5900*** Therefore, libtool is disabling shared libraries support. If you 5901*** really care for shared libraries, you may want to install binutils 5902*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 5903*** You will then need to restart the configuration process. 5904 5905_LT_EOF 5906 fi 5907 ;; 5908 5909 amigaos*) 5910 case $host_cpu in 5911 powerpc) 5912 # see comment about AmigaOS4 .so support 5913 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5914 _LT_TAGVAR(archive_expsym_cmds, $1)='' 5915 ;; 5916 m68k) 5917 _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)' 5918 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5919 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5920 ;; 5921 esac 5922 ;; 5923 5924 beos*) 5925 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 5926 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5927 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 5928 # support --undefined. This deserves some investigation. FIXME 5929 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5930 else 5931 _LT_TAGVAR(ld_shlibs, $1)=no 5932 fi 5933 ;; 5934 5935 cygwin* | mingw* | pw32* | cegcc*) 5936 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 5937 # as there is no search path for DLLs. 5938 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5939 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' 5940 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5941 _LT_TAGVAR(always_export_symbols, $1)=no 5942 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5943 _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' 5944 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 5945 5946 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 5947 _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' 5948 # If the export-symbols file already is a .def file, use it as 5949 # is; otherwise, prepend EXPORTS... 5950 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 5951 cp $export_symbols $output_objdir/$soname.def; 5952 else 5953 echo EXPORTS > $output_objdir/$soname.def; 5954 cat $export_symbols >> $output_objdir/$soname.def; 5955 fi~ 5956 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 5957 else 5958 _LT_TAGVAR(ld_shlibs, $1)=no 5959 fi 5960 ;; 5961 5962 haiku*) 5963 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5964 _LT_TAGVAR(link_all_deplibs, $1)=yes 5965 ;; 5966 5967 os2*) 5968 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5969 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5970 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5971 shrext_cmds=.dll 5972 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 5973 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 5974 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 5975 $ECHO EXPORTS >> $output_objdir/$libname.def~ 5976 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 5977 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 5978 emximp -o $lib $output_objdir/$libname.def' 5979 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 5980 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 5981 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 5982 $ECHO EXPORTS >> $output_objdir/$libname.def~ 5983 prefix_cmds="$SED"~ 5984 if test EXPORTS = "`$SED 1q $export_symbols`"; then 5985 prefix_cmds="$prefix_cmds -e 1d"; 5986 fi~ 5987 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 5988 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 5989 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 5990 emximp -o $lib $output_objdir/$libname.def' 5991 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 5992 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5993 ;; 5994 5995 interix[[3-9]]*) 5996 _LT_TAGVAR(hardcode_direct, $1)=no 5997 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5998 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 5999 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 6000 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 6001 # Instead, shared libraries are loaded at an image base (0x10000000 by 6002 # default) and relocated if they conflict, which is a slow very memory 6003 # consuming and fragmenting process. To avoid this, we pick a random, 6004 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 6005 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 6006 _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' 6007 _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' 6008 ;; 6009 6010 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 6011 tmp_diet=no 6012 if test linux-dietlibc = "$host_os"; then 6013 case $cc_basename in 6014 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 6015 esac 6016 fi 6017 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 6018 && test no = "$tmp_diet" 6019 then 6020 tmp_addflag=' $pic_flag' 6021 tmp_sharedflag='-shared' 6022 case $cc_basename,$host_cpu in 6023 pgcc*) # Portland Group C compiler 6024 _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' 6025 tmp_addflag=' $pic_flag' 6026 ;; 6027 pgf77* | pgf90* | pgf95* | pgfortran*) 6028 # Portland Group f77 and f90 compilers 6029 _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' 6030 tmp_addflag=' $pic_flag -Mnomain' ;; 6031 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 6032 tmp_addflag=' -i_dynamic' ;; 6033 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 6034 tmp_addflag=' -i_dynamic -nofor_main' ;; 6035 ifc* | ifort*) # Intel Fortran compiler 6036 tmp_addflag=' -nofor_main' ;; 6037 lf95*) # Lahey Fortran 8.1 6038 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6039 tmp_sharedflag='--shared' ;; 6040 nagfor*) # NAGFOR 5.3 6041 tmp_sharedflag='-Wl,-shared' ;; 6042 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 6043 tmp_sharedflag='-qmkshrobj' 6044 tmp_addflag= ;; 6045 nvcc*) # Cuda Compiler Driver 2.2 6046 _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' 6047 _LT_TAGVAR(compiler_needs_object, $1)=yes 6048 ;; 6049 esac 6050 case `$CC -V 2>&1 | sed 5q` in 6051 *Sun\ C*) # Sun C 5.9 6052 _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' 6053 _LT_TAGVAR(compiler_needs_object, $1)=yes 6054 tmp_sharedflag='-G' ;; 6055 *Sun\ F*) # Sun Fortran 8.3 6056 tmp_sharedflag='-G' ;; 6057 esac 6058 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 6059 6060 if test yes = "$supports_anon_versioning"; then 6061 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 6062 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6063 echo "local: *; };" >> $output_objdir/$libname.ver~ 6064 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 6065 fi 6066 6067 case $cc_basename in 6068 tcc*) 6069 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic' 6070 ;; 6071 xlf* | bgf* | bgxlf* | mpixlf*) 6072 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 6073 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' 6074 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 6075 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 6076 if test yes = "$supports_anon_versioning"; then 6077 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 6078 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6079 echo "local: *; };" >> $output_objdir/$libname.ver~ 6080 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 6081 fi 6082 ;; 6083 esac 6084 else 6085 _LT_TAGVAR(ld_shlibs, $1)=no 6086 fi 6087 ;; 6088 6089 netbsd*) 6090 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 6091 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6092 wlarc= 6093 else 6094 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 6095 _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' 6096 fi 6097 ;; 6098 6099 solaris*) 6100 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 6101 _LT_TAGVAR(ld_shlibs, $1)=no 6102 cat <<_LT_EOF 1>&2 6103 6104*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6105*** create shared libraries on Solaris systems. Therefore, libtool 6106*** is disabling shared libraries support. We urge you to upgrade GNU 6107*** binutils to release 2.9.1 or newer. Another option is to modify 6108*** your PATH or compiler configuration so that the native linker is 6109*** used, and then restart. 6110 6111_LT_EOF 6112 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6113 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 6114 _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' 6115 else 6116 _LT_TAGVAR(ld_shlibs, $1)=no 6117 fi 6118 ;; 6119 6120 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 6121 case `$LD -v 2>&1` in 6122 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 6123 _LT_TAGVAR(ld_shlibs, $1)=no 6124 cat <<_LT_EOF 1>&2 6125 6126*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 6127*** reliably create shared libraries on SCO systems. Therefore, libtool 6128*** is disabling shared libraries support. We urge you to upgrade GNU 6129*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 6130*** your PATH or compiler configuration so that the native linker is 6131*** used, and then restart. 6132 6133_LT_EOF 6134 ;; 6135 *) 6136 # For security reasons, it is highly recommended that you always 6137 # use absolute paths for naming shared libraries, and exclude the 6138 # DT_RUNPATH tag from executables and libraries. But doing so 6139 # requires that you compile everything twice, which is a pain. 6140 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6141 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 6142 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 6143 _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' 6144 else 6145 _LT_TAGVAR(ld_shlibs, $1)=no 6146 fi 6147 ;; 6148 esac 6149 ;; 6150 6151 sunos4*) 6152 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6153 wlarc= 6154 _LT_TAGVAR(hardcode_direct, $1)=yes 6155 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6156 ;; 6157 6158 *) 6159 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6160 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 6161 _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' 6162 else 6163 _LT_TAGVAR(ld_shlibs, $1)=no 6164 fi 6165 ;; 6166 esac 6167 6168 if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then 6169 runpath_var= 6170 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 6171 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 6172 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6173 fi 6174 else 6175 # PORTME fill in a description of your system's linker (not GNU ld) 6176 case $host_os in 6177 aix3*) 6178 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6179 _LT_TAGVAR(always_export_symbols, $1)=yes 6180 _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' 6181 # Note: this linker hardcodes the directories in LIBPATH if there 6182 # are no directories specified by -L. 6183 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6184 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 6185 # Neither direct hardcoding nor static linking is supported with a 6186 # broken collect2. 6187 _LT_TAGVAR(hardcode_direct, $1)=unsupported 6188 fi 6189 ;; 6190 6191 aix[[4-9]]*) 6192 if test ia64 = "$host_cpu"; then 6193 # On IA64, the linker does run time linking by default, so we don't 6194 # have to do anything special. 6195 aix_use_runtimelinking=no 6196 exp_sym_flag='-Bexport' 6197 no_entry_flag= 6198 else 6199 # If we're using GNU nm, then we don't want the "-C" option. 6200 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 6201 # Without the "-l" option, or with the "-B" option, AIX nm treats 6202 # weak defined symbols like other global defined symbols, whereas 6203 # GNU nm marks them as "W". 6204 # While the 'weak' keyword is ignored in the Export File, we need 6205 # it in the Import File for the 'aix-soname' feature, so we have 6206 # to replace the "-B" option with "-P" for AIX nm. 6207 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 6208 _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' 6209 else 6210 _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' 6211 fi 6212 aix_use_runtimelinking=no 6213 6214 # Test if we are trying to use run time linking or normal 6215 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6216 # have runtime linking enabled, and use it for executables. 6217 # For shared libraries, we enable/disable runtime linking 6218 # depending on the kind of the shared library created - 6219 # when "with_aix_soname,aix_use_runtimelinking" is: 6220 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 6221 # "aix,yes" lib.so shared, rtl:yes, for executables 6222 # lib.a static archive 6223 # "both,no" lib.so.V(shr.o) shared, rtl:yes 6224 # lib.a(lib.so.V) shared, rtl:no, for executables 6225 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 6226 # lib.a(lib.so.V) shared, rtl:no 6227 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 6228 # lib.a static archive 6229 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 6230 for ld_flag in $LDFLAGS; do 6231 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 6232 aix_use_runtimelinking=yes 6233 break 6234 fi 6235 done 6236 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 6237 # With aix-soname=svr4, we create the lib.so.V shared archives only, 6238 # so we don't have lib.a shared libs to link our executables. 6239 # We have to force runtime linking in this case. 6240 aix_use_runtimelinking=yes 6241 LDFLAGS="$LDFLAGS -Wl,-brtl" 6242 fi 6243 ;; 6244 esac 6245 6246 exp_sym_flag='-bexport' 6247 no_entry_flag='-bnoentry' 6248 fi 6249 6250 # When large executables or shared objects are built, AIX ld can 6251 # have problems creating the table of contents. If linking a library 6252 # or program results in "error TOC overflow" add -mminimal-toc to 6253 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6254 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6255 6256 _LT_TAGVAR(archive_cmds, $1)='' 6257 _LT_TAGVAR(hardcode_direct, $1)=yes 6258 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6259 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 6260 _LT_TAGVAR(link_all_deplibs, $1)=yes 6261 _LT_TAGVAR(file_list_spec, $1)='$wl-f,' 6262 case $with_aix_soname,$aix_use_runtimelinking in 6263 aix,*) ;; # traditional, no import file 6264 svr4,* | *,yes) # use import file 6265 # The Import File defines what to hardcode. 6266 _LT_TAGVAR(hardcode_direct, $1)=no 6267 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 6268 ;; 6269 esac 6270 6271 if test yes = "$GCC"; then 6272 case $host_os in aix4.[[012]]|aix4.[[012]].*) 6273 # We only want to do this on AIX 4.2 and lower, the check 6274 # below for broken collect2 doesn't work under 4.3+ 6275 collect2name=`$CC -print-prog-name=collect2` 6276 if test -f "$collect2name" && 6277 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 6278 then 6279 # We have reworked collect2 6280 : 6281 else 6282 # We have old collect2 6283 _LT_TAGVAR(hardcode_direct, $1)=unsupported 6284 # It fails to find uninstalled libraries when the uninstalled 6285 # path is not listed in the libpath. Setting hardcode_minus_L 6286 # to unsupported forces relinking 6287 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6288 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6289 _LT_TAGVAR(hardcode_libdir_separator, $1)= 6290 fi 6291 ;; 6292 esac 6293 shared_flag='-shared' 6294 if test yes = "$aix_use_runtimelinking"; then 6295 shared_flag="$shared_flag "'$wl-G' 6296 fi 6297 # Need to ensure runtime linking is disabled for the traditional 6298 # shared library, or the linker may eventually find shared libraries 6299 # /with/ Import File - we do not want to mix them. 6300 shared_flag_aix='-shared' 6301 shared_flag_svr4='-shared $wl-G' 6302 else 6303 # not using gcc 6304 if test ia64 = "$host_cpu"; then 6305 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6306 # chokes on -Wl,-G. The following line is correct: 6307 shared_flag='-G' 6308 else 6309 if test yes = "$aix_use_runtimelinking"; then 6310 shared_flag='$wl-G' 6311 else 6312 shared_flag='$wl-bM:SRE' 6313 fi 6314 shared_flag_aix='$wl-bM:SRE' 6315 shared_flag_svr4='$wl-G' 6316 fi 6317 fi 6318 6319 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' 6320 # It seems that -bexpall does not export symbols beginning with 6321 # underscore (_), so it is better to generate a list of symbols to export. 6322 _LT_TAGVAR(always_export_symbols, $1)=yes 6323 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 6324 # Warning - without using the other runtime loading flags (-brtl), 6325 # -berok will link without error, but may produce a broken library. 6326 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 6327 # Determine the default libpath from the value encoded in an 6328 # empty executable. 6329 _LT_SYS_MODULE_PATH_AIX([$1]) 6330 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 6331 _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 6332 else 6333 if test ia64 = "$host_cpu"; then 6334 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' 6335 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 6336 _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" 6337 else 6338 # Determine the default libpath from the value encoded in an 6339 # empty executable. 6340 _LT_SYS_MODULE_PATH_AIX([$1]) 6341 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 6342 # Warning - without using the other run time loading flags, 6343 # -berok will link without error, but may produce a broken library. 6344 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' 6345 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' 6346 if test yes = "$with_gnu_ld"; then 6347 # We only use this code for GNU lds that support --whole-archive. 6348 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 6349 else 6350 # Exported symbols can be pulled into shared objects from archives 6351 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 6352 fi 6353 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6354 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 6355 # -brtl affects multiple linker settings, -berok does not and is overridden later 6356 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' 6357 if test svr4 != "$with_aix_soname"; then 6358 # This is similar to how AIX traditionally builds its shared libraries. 6359 _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' 6360 fi 6361 if test aix != "$with_aix_soname"; then 6362 _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' 6363 else 6364 # used by -dlpreopen to get the symbols 6365 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 6366 fi 6367 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' 6368 fi 6369 fi 6370 ;; 6371 6372 amigaos*) 6373 case $host_cpu in 6374 powerpc) 6375 # see comment about AmigaOS4 .so support 6376 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 6377 _LT_TAGVAR(archive_expsym_cmds, $1)='' 6378 ;; 6379 m68k) 6380 _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)' 6381 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6382 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6383 ;; 6384 esac 6385 ;; 6386 6387 bsdi[[45]]*) 6388 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 6389 ;; 6390 6391 cygwin* | mingw* | pw32* | cegcc*) 6392 # When not using gcc, we currently assume that we are using 6393 # Microsoft Visual C++. 6394 # hardcode_libdir_flag_spec is actually meaningless, as there is 6395 # no search path for DLLs. 6396 case $cc_basename in 6397 cl*) 6398 # Native MSVC 6399 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 6400 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6401 _LT_TAGVAR(always_export_symbols, $1)=yes 6402 _LT_TAGVAR(file_list_spec, $1)='@' 6403 # Tell ltmain to make .lib files, not .a files. 6404 libext=lib 6405 # Tell ltmain to make .dll files, not .so files. 6406 shrext_cmds=.dll 6407 # FIXME: Setting linknames here is a bad hack. 6408 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 6409 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 6410 cp "$export_symbols" "$output_objdir/$soname.def"; 6411 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 6412 else 6413 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 6414 fi~ 6415 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 6416 linknames=' 6417 # The linker will not automatically build a static lib if we build a DLL. 6418 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 6419 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6420 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 6421 _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' 6422 # Don't use ranlib 6423 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 6424 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 6425 lt_tool_outputfile="@TOOL_OUTPUT@"~ 6426 case $lt_outputfile in 6427 *.exe|*.EXE) ;; 6428 *) 6429 lt_outputfile=$lt_outputfile.exe 6430 lt_tool_outputfile=$lt_tool_outputfile.exe 6431 ;; 6432 esac~ 6433 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 6434 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 6435 $RM "$lt_outputfile.manifest"; 6436 fi' 6437 ;; 6438 *) 6439 # Assume MSVC wrapper 6440 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 6441 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6442 # Tell ltmain to make .lib files, not .a files. 6443 libext=lib 6444 # Tell ltmain to make .dll files, not .so files. 6445 shrext_cmds=.dll 6446 # FIXME: Setting linknames here is a bad hack. 6447 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 6448 # The linker will automatically build a .lib file if we build a DLL. 6449 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 6450 # FIXME: Should let the user specify the lib program. 6451 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 6452 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6453 ;; 6454 esac 6455 ;; 6456 6457 darwin* | rhapsody*) 6458 _LT_DARWIN_LINKER_FEATURES($1) 6459 ;; 6460 6461 dgux*) 6462 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6463 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6464 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6465 ;; 6466 6467 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 6468 # support. Future versions do this automatically, but an explicit c++rt0.o 6469 # does not break anything, and helps significantly (at the cost of a little 6470 # extra space). 6471 freebsd2.2*) 6472 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 6473 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6474 _LT_TAGVAR(hardcode_direct, $1)=yes 6475 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6476 ;; 6477 6478 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 6479 freebsd2.*) 6480 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6481 _LT_TAGVAR(hardcode_direct, $1)=yes 6482 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6483 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6484 ;; 6485 6486 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 6487 freebsd* | dragonfly*) 6488 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6489 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6490 _LT_TAGVAR(hardcode_direct, $1)=yes 6491 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6492 ;; 6493 6494 hpux9*) 6495 if test yes = "$GCC"; then 6496 _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' 6497 else 6498 _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' 6499 fi 6500 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 6501 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6502 _LT_TAGVAR(hardcode_direct, $1)=yes 6503 6504 # hardcode_minus_L: Not really in the search PATH, 6505 # but as the default location of the library. 6506 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6507 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 6508 ;; 6509 6510 hpux10*) 6511 if test yes,no = "$GCC,$with_gnu_ld"; then 6512 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6513 else 6514 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 6515 fi 6516 if test no = "$with_gnu_ld"; then 6517 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 6518 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6519 _LT_TAGVAR(hardcode_direct, $1)=yes 6520 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6521 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 6522 # hardcode_minus_L: Not really in the search PATH, 6523 # but as the default location of the library. 6524 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6525 fi 6526 ;; 6527 6528 hpux11*) 6529 if test yes,no = "$GCC,$with_gnu_ld"; then 6530 case $host_cpu in 6531 hppa*64*) 6532 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 6533 ;; 6534 ia64*) 6535 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 6536 ;; 6537 *) 6538 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6539 ;; 6540 esac 6541 else 6542 case $host_cpu in 6543 hppa*64*) 6544 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 6545 ;; 6546 ia64*) 6547 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 6548 ;; 6549 *) 6550 m4_if($1, [], [ 6551 # Older versions of the 11.00 compiler do not understand -b yet 6552 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 6553 _LT_LINKER_OPTION([if $CC understands -b], 6554 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], 6555 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], 6556 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], 6557 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) 6558 ;; 6559 esac 6560 fi 6561 if test no = "$with_gnu_ld"; then 6562 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 6563 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6564 6565 case $host_cpu in 6566 hppa*64*|ia64*) 6567 _LT_TAGVAR(hardcode_direct, $1)=no 6568 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6569 ;; 6570 *) 6571 _LT_TAGVAR(hardcode_direct, $1)=yes 6572 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6573 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 6574 6575 # hardcode_minus_L: Not really in the search PATH, 6576 # but as the default location of the library. 6577 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6578 ;; 6579 esac 6580 fi 6581 ;; 6582 6583 irix5* | irix6* | nonstopux*) 6584 if test yes = "$GCC"; then 6585 _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' 6586 # Try to use the -exported_symbol ld option, if it does not 6587 # work, assume that -exports_file does not work either and 6588 # implicitly export all symbols. 6589 # This should be the same for all languages, so no per-tag cache variable. 6590 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], 6591 [lt_cv_irix_exported_symbol], 6592 [save_LDFLAGS=$LDFLAGS 6593 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 6594 AC_LINK_IFELSE( 6595 [AC_LANG_SOURCE( 6596 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], 6597 [C++], [[int foo (void) { return 0; }]], 6598 [Fortran 77], [[ 6599 subroutine foo 6600 end]], 6601 [Fortran], [[ 6602 subroutine foo 6603 end]])])], 6604 [lt_cv_irix_exported_symbol=yes], 6605 [lt_cv_irix_exported_symbol=no]) 6606 LDFLAGS=$save_LDFLAGS]) 6607 if test yes = "$lt_cv_irix_exported_symbol"; then 6608 _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' 6609 fi 6610 else 6611 _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' 6612 _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' 6613 fi 6614 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 6615 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 6616 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6617 _LT_TAGVAR(inherit_rpath, $1)=yes 6618 _LT_TAGVAR(link_all_deplibs, $1)=yes 6619 ;; 6620 6621 linux*) 6622 case $cc_basename in 6623 tcc*) 6624 # Fabrice Bellard et al's Tiny C Compiler 6625 _LT_TAGVAR(ld_shlibs, $1)=yes 6626 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6627 ;; 6628 esac 6629 ;; 6630 6631 netbsd*) 6632 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 6633 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 6634 else 6635 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 6636 fi 6637 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6638 _LT_TAGVAR(hardcode_direct, $1)=yes 6639 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6640 ;; 6641 6642 newsos6) 6643 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6644 _LT_TAGVAR(hardcode_direct, $1)=yes 6645 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 6646 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6647 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6648 ;; 6649 6650 *nto* | *qnx*) 6651 ;; 6652 6653 openbsd* | bitrig*) 6654 if test -f /usr/libexec/ld.so; then 6655 _LT_TAGVAR(hardcode_direct, $1)=yes 6656 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6657 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6658 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6659 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6660 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 6661 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 6662 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 6663 else 6664 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6665 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 6666 fi 6667 else 6668 _LT_TAGVAR(ld_shlibs, $1)=no 6669 fi 6670 ;; 6671 6672 os2*) 6673 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6674 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6675 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6676 shrext_cmds=.dll 6677 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 6678 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 6679 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 6680 $ECHO EXPORTS >> $output_objdir/$libname.def~ 6681 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 6682 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 6683 emximp -o $lib $output_objdir/$libname.def' 6684 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 6685 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 6686 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 6687 $ECHO EXPORTS >> $output_objdir/$libname.def~ 6688 prefix_cmds="$SED"~ 6689 if test EXPORTS = "`$SED 1q $export_symbols`"; then 6690 prefix_cmds="$prefix_cmds -e 1d"; 6691 fi~ 6692 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 6693 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 6694 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 6695 emximp -o $lib $output_objdir/$libname.def' 6696 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 6697 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6698 ;; 6699 6700 osf3*) 6701 if test yes = "$GCC"; then 6702 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 6703 _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' 6704 else 6705 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 6706 _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' 6707 fi 6708 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 6709 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 6710 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6711 ;; 6712 6713 osf4* | osf5*) # as osf3* with the addition of -msym flag 6714 if test yes = "$GCC"; then 6715 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 6716 _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' 6717 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 6718 else 6719 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 6720 _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' 6721 _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~ 6722 $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' 6723 6724 # Both c and cxx compiler support -rpath directly 6725 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 6726 fi 6727 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 6728 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6729 ;; 6730 6731 solaris*) 6732 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' 6733 if test yes = "$GCC"; then 6734 wlarc='$wl' 6735 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 6736 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6737 $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' 6738 else 6739 case `$CC -V 2>&1` in 6740 *"Compilers 5.0"*) 6741 wlarc='' 6742 _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 6743 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6744 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 6745 ;; 6746 *) 6747 wlarc='$wl' 6748 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 6749 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6750 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 6751 ;; 6752 esac 6753 fi 6754 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6755 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6756 case $host_os in 6757 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 6758 *) 6759 # The compiler driver will combine and reorder linker options, 6760 # but understands '-z linker_flag'. GCC discards it without '$wl', 6761 # but is careful enough not to reorder. 6762 # Supported since Solaris 2.6 (maybe 2.5.1?) 6763 if test yes = "$GCC"; then 6764 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 6765 else 6766 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 6767 fi 6768 ;; 6769 esac 6770 _LT_TAGVAR(link_all_deplibs, $1)=yes 6771 ;; 6772 6773 sunos4*) 6774 if test sequent = "$host_vendor"; then 6775 # Use $CC to link under sequent, because it throws in some extra .o 6776 # files that make .init and .fini sections work. 6777 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 6778 else 6779 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 6780 fi 6781 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6782 _LT_TAGVAR(hardcode_direct, $1)=yes 6783 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6784 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6785 ;; 6786 6787 sysv4) 6788 case $host_vendor in 6789 sni) 6790 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6791 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 6792 ;; 6793 siemens) 6794 ## LD is ld it makes a PLAMLIB 6795 ## CC just makes a GrossModule. 6796 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 6797 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 6798 _LT_TAGVAR(hardcode_direct, $1)=no 6799 ;; 6800 motorola) 6801 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6802 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 6803 ;; 6804 esac 6805 runpath_var='LD_RUN_PATH' 6806 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6807 ;; 6808 6809 sysv4.3*) 6810 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6811 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6812 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 6813 ;; 6814 6815 sysv4*MP*) 6816 if test -d /usr/nec; then 6817 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6818 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6819 runpath_var=LD_RUN_PATH 6820 hardcode_runpath_var=yes 6821 _LT_TAGVAR(ld_shlibs, $1)=yes 6822 fi 6823 ;; 6824 6825 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 6826 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 6827 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6828 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6829 runpath_var='LD_RUN_PATH' 6830 6831 if test yes = "$GCC"; then 6832 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6833 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6834 else 6835 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6836 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6837 fi 6838 ;; 6839 6840 sysv5* | sco3.2v5* | sco5v6*) 6841 # Note: We CANNOT use -z defs as we might desire, because we do not 6842 # link with -lc, and that would cause any symbols used from libc to 6843 # always be unresolved, which means just about no library would 6844 # ever link correctly. If we're not using GNU ld we use -z text 6845 # though, which does catch some bad symbols but isn't as heavy-handed 6846 # as -z defs. 6847 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 6848 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' 6849 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6850 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6851 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' 6852 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 6853 _LT_TAGVAR(link_all_deplibs, $1)=yes 6854 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' 6855 runpath_var='LD_RUN_PATH' 6856 6857 if test yes = "$GCC"; then 6858 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6859 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6860 else 6861 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6862 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6863 fi 6864 ;; 6865 6866 uts4*) 6867 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6868 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6869 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6870 ;; 6871 6872 *) 6873 _LT_TAGVAR(ld_shlibs, $1)=no 6874 ;; 6875 esac 6876 6877 if test sni = "$host_vendor"; then 6878 case $host in 6879 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6880 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym' 6881 ;; 6882 esac 6883 fi 6884 fi 6885]) 6886AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 6887test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no 6888 6889_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld 6890 6891_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl 6892_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl 6893_LT_DECL([], [extract_expsyms_cmds], [2], 6894 [The commands to extract the exported symbol list from a shared archive]) 6895 6896# 6897# Do we need to explicitly link libc? 6898# 6899case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in 6900x|xyes) 6901 # Assume -lc should be added 6902 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6903 6904 if test yes,yes = "$GCC,$enable_shared"; then 6905 case $_LT_TAGVAR(archive_cmds, $1) in 6906 *'~'*) 6907 # FIXME: we may have to deal with multi-command sequences. 6908 ;; 6909 '$CC '*) 6910 # Test whether the compiler implicitly links with -lc since on some 6911 # systems, -lgcc has to come before -lc. If gcc already passes -lc 6912 # to ld, don't add -lc before -lgcc. 6913 AC_CACHE_CHECK([whether -lc should be explicitly linked in], 6914 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), 6915 [$RM conftest* 6916 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 6917 6918 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 6919 soname=conftest 6920 lib=conftest 6921 libobjs=conftest.$ac_objext 6922 deplibs= 6923 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) 6924 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) 6925 compiler_flags=-v 6926 linker_flags=-v 6927 verstring= 6928 output_objdir=. 6929 libname=conftest 6930 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) 6931 _LT_TAGVAR(allow_undefined_flag, $1)= 6932 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 6933 then 6934 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no 6935 else 6936 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6937 fi 6938 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 6939 else 6940 cat conftest.err 1>&5 6941 fi 6942 $RM conftest* 6943 ]) 6944 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) 6945 ;; 6946 esac 6947 fi 6948 ;; 6949esac 6950 6951_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], 6952 [Whether or not to add -lc for building shared libraries]) 6953_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], 6954 [enable_shared_with_static_runtimes], [0], 6955 [Whether or not to disallow shared libs when runtime libs are static]) 6956_LT_TAGDECL([], [export_dynamic_flag_spec], [1], 6957 [Compiler flag to allow reflexive dlopens]) 6958_LT_TAGDECL([], [whole_archive_flag_spec], [1], 6959 [Compiler flag to generate shared objects directly from archives]) 6960_LT_TAGDECL([], [compiler_needs_object], [1], 6961 [Whether the compiler copes with passing no objects directly]) 6962_LT_TAGDECL([], [old_archive_from_new_cmds], [2], 6963 [Create an old-style archive from a shared archive]) 6964_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], 6965 [Create a temporary old-style archive to link instead of a shared archive]) 6966_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) 6967_LT_TAGDECL([], [archive_expsym_cmds], [2]) 6968_LT_TAGDECL([], [module_cmds], [2], 6969 [Commands used to build a loadable module if different from building 6970 a shared archive.]) 6971_LT_TAGDECL([], [module_expsym_cmds], [2]) 6972_LT_TAGDECL([], [with_gnu_ld], [1], 6973 [Whether we are building with GNU ld or not]) 6974_LT_TAGDECL([], [allow_undefined_flag], [1], 6975 [Flag that allows shared libraries with undefined symbols to be built]) 6976_LT_TAGDECL([], [no_undefined_flag], [1], 6977 [Flag that enforces no undefined symbols]) 6978_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], 6979 [Flag to hardcode $libdir into a binary during linking. 6980 This must work even if $libdir does not exist]) 6981_LT_TAGDECL([], [hardcode_libdir_separator], [1], 6982 [Whether we need a single "-rpath" flag with a separated argument]) 6983_LT_TAGDECL([], [hardcode_direct], [0], 6984 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes 6985 DIR into the resulting binary]) 6986_LT_TAGDECL([], [hardcode_direct_absolute], [0], 6987 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes 6988 DIR into the resulting binary and the resulting library dependency is 6989 "absolute", i.e impossible to change by setting $shlibpath_var if the 6990 library is relocated]) 6991_LT_TAGDECL([], [hardcode_minus_L], [0], 6992 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR 6993 into the resulting binary]) 6994_LT_TAGDECL([], [hardcode_shlibpath_var], [0], 6995 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 6996 into the resulting binary]) 6997_LT_TAGDECL([], [hardcode_automatic], [0], 6998 [Set to "yes" if building a shared library automatically hardcodes DIR 6999 into the library and all subsequent libraries and executables linked 7000 against it]) 7001_LT_TAGDECL([], [inherit_rpath], [0], 7002 [Set to yes if linker adds runtime paths of dependent libraries 7003 to runtime path list]) 7004_LT_TAGDECL([], [link_all_deplibs], [0], 7005 [Whether libtool must link a program against all its dependency libraries]) 7006_LT_TAGDECL([], [always_export_symbols], [0], 7007 [Set to "yes" if exported symbols are required]) 7008_LT_TAGDECL([], [export_symbols_cmds], [2], 7009 [The commands to list exported symbols]) 7010_LT_TAGDECL([], [exclude_expsyms], [1], 7011 [Symbols that should not be listed in the preloaded symbols]) 7012_LT_TAGDECL([], [include_expsyms], [1], 7013 [Symbols that must always be exported]) 7014_LT_TAGDECL([], [prelink_cmds], [2], 7015 [Commands necessary for linking programs (against libraries) with templates]) 7016_LT_TAGDECL([], [postlink_cmds], [2], 7017 [Commands necessary for finishing linking programs]) 7018_LT_TAGDECL([], [file_list_spec], [1], 7019 [Specify filename containing input files]) 7020dnl FIXME: Not yet implemented 7021dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], 7022dnl [Compiler flag to generate thread safe objects]) 7023])# _LT_LINKER_SHLIBS 7024 7025 7026# _LT_LANG_C_CONFIG([TAG]) 7027# ------------------------ 7028# Ensure that the configuration variables for a C compiler are suitably 7029# defined. These variables are subsequently used by _LT_CONFIG to write 7030# the compiler configuration to 'libtool'. 7031m4_defun([_LT_LANG_C_CONFIG], 7032[m4_require([_LT_DECL_EGREP])dnl 7033lt_save_CC=$CC 7034AC_LANG_PUSH(C) 7035 7036# Source file extension for C test sources. 7037ac_ext=c 7038 7039# Object file extension for compiled C test sources. 7040objext=o 7041_LT_TAGVAR(objext, $1)=$objext 7042 7043# Code to be used in simple compile tests 7044lt_simple_compile_test_code="int some_variable = 0;" 7045 7046# Code to be used in simple link tests 7047lt_simple_link_test_code='int main(){return(0);}' 7048 7049_LT_TAG_COMPILER 7050# Save the default compiler, since it gets overwritten when the other 7051# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7052compiler_DEFAULT=$CC 7053 7054# save warnings/boilerplate of simple test code 7055_LT_COMPILER_BOILERPLATE 7056_LT_LINKER_BOILERPLATE 7057 7058if test -n "$compiler"; then 7059 _LT_COMPILER_NO_RTTI($1) 7060 _LT_COMPILER_PIC($1) 7061 _LT_COMPILER_C_O($1) 7062 _LT_COMPILER_FILE_LOCKS($1) 7063 _LT_LINKER_SHLIBS($1) 7064 _LT_SYS_DYNAMIC_LINKER($1) 7065 _LT_LINKER_HARDCODE_LIBPATH($1) 7066 LT_SYS_DLOPEN_SELF 7067 _LT_CMD_STRIPLIB 7068 7069 # Report what library types will actually be built 7070 AC_MSG_CHECKING([if libtool supports shared libraries]) 7071 AC_MSG_RESULT([$can_build_shared]) 7072 7073 AC_MSG_CHECKING([whether to build shared libraries]) 7074 test no = "$can_build_shared" && enable_shared=no 7075 7076 # On AIX, shared libraries and static libraries use the same namespace, and 7077 # are all built from PIC. 7078 case $host_os in 7079 aix3*) 7080 test yes = "$enable_shared" && enable_static=no 7081 if test -n "$RANLIB"; then 7082 archive_cmds="$archive_cmds~\$RANLIB \$lib" 7083 postinstall_cmds='$RANLIB $lib' 7084 fi 7085 ;; 7086 7087 aix[[4-9]]*) 7088 if test ia64 != "$host_cpu"; then 7089 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 7090 yes,aix,yes) ;; # shared object as lib.so file only 7091 yes,svr4,*) ;; # shared object as lib.so archive member only 7092 yes,*) enable_static=no ;; # shared object in lib.a archive as well 7093 esac 7094 fi 7095 ;; 7096 esac 7097 AC_MSG_RESULT([$enable_shared]) 7098 7099 AC_MSG_CHECKING([whether to build static libraries]) 7100 # Make sure either enable_shared or enable_static is yes. 7101 test yes = "$enable_shared" || enable_static=yes 7102 AC_MSG_RESULT([$enable_static]) 7103 7104 _LT_CONFIG($1) 7105fi 7106AC_LANG_POP 7107CC=$lt_save_CC 7108])# _LT_LANG_C_CONFIG 7109 7110 7111# _LT_LANG_CXX_CONFIG([TAG]) 7112# -------------------------- 7113# Ensure that the configuration variables for a C++ compiler are suitably 7114# defined. These variables are subsequently used by _LT_CONFIG to write 7115# the compiler configuration to 'libtool'. 7116m4_defun([_LT_LANG_CXX_CONFIG], 7117[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 7118m4_require([_LT_DECL_EGREP])dnl 7119m4_require([_LT_PATH_MANIFEST_TOOL])dnl 7120if test -n "$CXX" && ( test no != "$CXX" && 7121 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 7122 (test g++ != "$CXX"))); then 7123 AC_PROG_CXXCPP 7124else 7125 _lt_caught_CXX_error=yes 7126fi 7127 7128AC_LANG_PUSH(C++) 7129_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7130_LT_TAGVAR(allow_undefined_flag, $1)= 7131_LT_TAGVAR(always_export_symbols, $1)=no 7132_LT_TAGVAR(archive_expsym_cmds, $1)= 7133_LT_TAGVAR(compiler_needs_object, $1)=no 7134_LT_TAGVAR(export_dynamic_flag_spec, $1)= 7135_LT_TAGVAR(hardcode_direct, $1)=no 7136_LT_TAGVAR(hardcode_direct_absolute, $1)=no 7137_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 7138_LT_TAGVAR(hardcode_libdir_separator, $1)= 7139_LT_TAGVAR(hardcode_minus_L, $1)=no 7140_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 7141_LT_TAGVAR(hardcode_automatic, $1)=no 7142_LT_TAGVAR(inherit_rpath, $1)=no 7143_LT_TAGVAR(module_cmds, $1)= 7144_LT_TAGVAR(module_expsym_cmds, $1)= 7145_LT_TAGVAR(link_all_deplibs, $1)=unknown 7146_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7147_LT_TAGVAR(reload_flag, $1)=$reload_flag 7148_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 7149_LT_TAGVAR(no_undefined_flag, $1)= 7150_LT_TAGVAR(whole_archive_flag_spec, $1)= 7151_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 7152 7153# Source file extension for C++ test sources. 7154ac_ext=cpp 7155 7156# Object file extension for compiled C++ test sources. 7157objext=o 7158_LT_TAGVAR(objext, $1)=$objext 7159 7160# No sense in running all these tests if we already determined that 7161# the CXX compiler isn't working. Some variables (like enable_shared) 7162# are currently assumed to apply to all compilers on this platform, 7163# and will be corrupted by setting them based on a non-working compiler. 7164if test yes != "$_lt_caught_CXX_error"; then 7165 # Code to be used in simple compile tests 7166 lt_simple_compile_test_code="int some_variable = 0;" 7167 7168 # Code to be used in simple link tests 7169 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 7170 7171 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 7172 _LT_TAG_COMPILER 7173 7174 # save warnings/boilerplate of simple test code 7175 _LT_COMPILER_BOILERPLATE 7176 _LT_LINKER_BOILERPLATE 7177 7178 # Allow CC to be a program name with arguments. 7179 lt_save_CC=$CC 7180 lt_save_CFLAGS=$CFLAGS 7181 lt_save_LD=$LD 7182 lt_save_GCC=$GCC 7183 GCC=$GXX 7184 lt_save_with_gnu_ld=$with_gnu_ld 7185 lt_save_path_LD=$lt_cv_path_LD 7186 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 7187 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 7188 else 7189 $as_unset lt_cv_prog_gnu_ld 7190 fi 7191 if test -n "${lt_cv_path_LDCXX+set}"; then 7192 lt_cv_path_LD=$lt_cv_path_LDCXX 7193 else 7194 $as_unset lt_cv_path_LD 7195 fi 7196 test -z "${LDCXX+set}" || LD=$LDCXX 7197 CC=${CXX-"c++"} 7198 CFLAGS=$CXXFLAGS 7199 compiler=$CC 7200 _LT_TAGVAR(compiler, $1)=$CC 7201 _LT_CC_BASENAME([$compiler]) 7202 7203 if test -n "$compiler"; then 7204 # We don't want -fno-exception when compiling C++ code, so set the 7205 # no_builtin_flag separately 7206 if test yes = "$GXX"; then 7207 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 7208 else 7209 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 7210 fi 7211 7212 if test yes = "$GXX"; then 7213 # Set up default GNU C++ configuration 7214 7215 LT_PATH_LD 7216 7217 # Check if GNU C++ uses GNU ld as the underlying linker, since the 7218 # archiving commands below assume that GNU ld is being used. 7219 if test yes = "$with_gnu_ld"; then 7220 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 7221 _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' 7222 7223 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 7224 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 7225 7226 # If archive_cmds runs LD, not CC, wlarc should be empty 7227 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 7228 # investigate it a little bit more. (MM) 7229 wlarc='$wl' 7230 7231 # ancient GNU ld didn't support --whole-archive et. al. 7232 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 7233 $GREP 'no-whole-archive' > /dev/null; then 7234 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 7235 else 7236 _LT_TAGVAR(whole_archive_flag_spec, $1)= 7237 fi 7238 else 7239 with_gnu_ld=no 7240 wlarc= 7241 7242 # A generic and very simple default shared library creation 7243 # command for GNU C++ for the case where it uses the native 7244 # linker, instead of GNU ld. If possible, this setting should 7245 # overridden to take advantage of the native linker features on 7246 # the platform it is being used on. 7247 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 7248 fi 7249 7250 # Commands to make compiler produce verbose output that lists 7251 # what "hidden" libraries, object files and flags are used when 7252 # linking a shared library. 7253 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 7254 7255 else 7256 GXX=no 7257 with_gnu_ld=no 7258 wlarc= 7259 fi 7260 7261 # PORTME: fill in a description of your system's C++ link characteristics 7262 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 7263 _LT_TAGVAR(ld_shlibs, $1)=yes 7264 case $host_os in 7265 aix3*) 7266 # FIXME: insert proper C++ library support 7267 _LT_TAGVAR(ld_shlibs, $1)=no 7268 ;; 7269 aix[[4-9]]*) 7270 if test ia64 = "$host_cpu"; then 7271 # On IA64, the linker does run time linking by default, so we don't 7272 # have to do anything special. 7273 aix_use_runtimelinking=no 7274 exp_sym_flag='-Bexport' 7275 no_entry_flag= 7276 else 7277 aix_use_runtimelinking=no 7278 7279 # Test if we are trying to use run time linking or normal 7280 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7281 # have runtime linking enabled, and use it for executables. 7282 # For shared libraries, we enable/disable runtime linking 7283 # depending on the kind of the shared library created - 7284 # when "with_aix_soname,aix_use_runtimelinking" is: 7285 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 7286 # "aix,yes" lib.so shared, rtl:yes, for executables 7287 # lib.a static archive 7288 # "both,no" lib.so.V(shr.o) shared, rtl:yes 7289 # lib.a(lib.so.V) shared, rtl:no, for executables 7290 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 7291 # lib.a(lib.so.V) shared, rtl:no 7292 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 7293 # lib.a static archive 7294 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 7295 for ld_flag in $LDFLAGS; do 7296 case $ld_flag in 7297 *-brtl*) 7298 aix_use_runtimelinking=yes 7299 break 7300 ;; 7301 esac 7302 done 7303 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 7304 # With aix-soname=svr4, we create the lib.so.V shared archives only, 7305 # so we don't have lib.a shared libs to link our executables. 7306 # We have to force runtime linking in this case. 7307 aix_use_runtimelinking=yes 7308 LDFLAGS="$LDFLAGS -Wl,-brtl" 7309 fi 7310 ;; 7311 esac 7312 7313 exp_sym_flag='-bexport' 7314 no_entry_flag='-bnoentry' 7315 fi 7316 7317 # When large executables or shared objects are built, AIX ld can 7318 # have problems creating the table of contents. If linking a library 7319 # or program results in "error TOC overflow" add -mminimal-toc to 7320 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7321 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7322 7323 _LT_TAGVAR(archive_cmds, $1)='' 7324 _LT_TAGVAR(hardcode_direct, $1)=yes 7325 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7326 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 7327 _LT_TAGVAR(link_all_deplibs, $1)=yes 7328 _LT_TAGVAR(file_list_spec, $1)='$wl-f,' 7329 case $with_aix_soname,$aix_use_runtimelinking in 7330 aix,*) ;; # no import file 7331 svr4,* | *,yes) # use import file 7332 # The Import File defines what to hardcode. 7333 _LT_TAGVAR(hardcode_direct, $1)=no 7334 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 7335 ;; 7336 esac 7337 7338 if test yes = "$GXX"; then 7339 case $host_os in aix4.[[012]]|aix4.[[012]].*) 7340 # We only want to do this on AIX 4.2 and lower, the check 7341 # below for broken collect2 doesn't work under 4.3+ 7342 collect2name=`$CC -print-prog-name=collect2` 7343 if test -f "$collect2name" && 7344 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 7345 then 7346 # We have reworked collect2 7347 : 7348 else 7349 # We have old collect2 7350 _LT_TAGVAR(hardcode_direct, $1)=unsupported 7351 # It fails to find uninstalled libraries when the uninstalled 7352 # path is not listed in the libpath. Setting hardcode_minus_L 7353 # to unsupported forces relinking 7354 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7355 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7356 _LT_TAGVAR(hardcode_libdir_separator, $1)= 7357 fi 7358 esac 7359 shared_flag='-shared' 7360 if test yes = "$aix_use_runtimelinking"; then 7361 shared_flag=$shared_flag' $wl-G' 7362 fi 7363 # Need to ensure runtime linking is disabled for the traditional 7364 # shared library, or the linker may eventually find shared libraries 7365 # /with/ Import File - we do not want to mix them. 7366 shared_flag_aix='-shared' 7367 shared_flag_svr4='-shared $wl-G' 7368 else 7369 # not using gcc 7370 if test ia64 = "$host_cpu"; then 7371 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7372 # chokes on -Wl,-G. The following line is correct: 7373 shared_flag='-G' 7374 else 7375 if test yes = "$aix_use_runtimelinking"; then 7376 shared_flag='$wl-G' 7377 else 7378 shared_flag='$wl-bM:SRE' 7379 fi 7380 shared_flag_aix='$wl-bM:SRE' 7381 shared_flag_svr4='$wl-G' 7382 fi 7383 fi 7384 7385 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' 7386 # It seems that -bexpall does not export symbols beginning with 7387 # underscore (_), so it is better to generate a list of symbols to 7388 # export. 7389 _LT_TAGVAR(always_export_symbols, $1)=yes 7390 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 7391 # Warning - without using the other runtime loading flags (-brtl), 7392 # -berok will link without error, but may produce a broken library. 7393 # The "-G" linker flag allows undefined symbols. 7394 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok' 7395 # Determine the default libpath from the value encoded in an empty 7396 # executable. 7397 _LT_SYS_MODULE_PATH_AIX([$1]) 7398 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 7399 7400 _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 7401 else 7402 if test ia64 = "$host_cpu"; then 7403 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' 7404 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 7405 _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" 7406 else 7407 # Determine the default libpath from the value encoded in an 7408 # empty executable. 7409 _LT_SYS_MODULE_PATH_AIX([$1]) 7410 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 7411 # Warning - without using the other run time loading flags, 7412 # -berok will link without error, but may produce a broken library. 7413 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' 7414 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' 7415 if test yes = "$with_gnu_ld"; then 7416 # We only use this code for GNU lds that support --whole-archive. 7417 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 7418 else 7419 # Exported symbols can be pulled into shared objects from archives 7420 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 7421 fi 7422 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 7423 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 7424 # -brtl affects multiple linker settings, -berok does not and is overridden later 7425 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' 7426 if test svr4 != "$with_aix_soname"; then 7427 # This is similar to how AIX traditionally builds its shared 7428 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 7429 _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' 7430 fi 7431 if test aix != "$with_aix_soname"; then 7432 _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' 7433 else 7434 # used by -dlpreopen to get the symbols 7435 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 7436 fi 7437 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' 7438 fi 7439 fi 7440 ;; 7441 7442 beos*) 7443 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7444 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7445 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7446 # support --undefined. This deserves some investigation. FIXME 7447 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 7448 else 7449 _LT_TAGVAR(ld_shlibs, $1)=no 7450 fi 7451 ;; 7452 7453 chorus*) 7454 case $cc_basename in 7455 *) 7456 # FIXME: insert proper C++ library support 7457 _LT_TAGVAR(ld_shlibs, $1)=no 7458 ;; 7459 esac 7460 ;; 7461 7462 cygwin* | mingw* | pw32* | cegcc*) 7463 case $GXX,$cc_basename in 7464 ,cl* | no,cl*) 7465 # Native MSVC 7466 # hardcode_libdir_flag_spec is actually meaningless, as there is 7467 # no search path for DLLs. 7468 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 7469 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7470 _LT_TAGVAR(always_export_symbols, $1)=yes 7471 _LT_TAGVAR(file_list_spec, $1)='@' 7472 # Tell ltmain to make .lib files, not .a files. 7473 libext=lib 7474 # Tell ltmain to make .dll files, not .so files. 7475 shrext_cmds=.dll 7476 # FIXME: Setting linknames here is a bad hack. 7477 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 7478 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 7479 cp "$export_symbols" "$output_objdir/$soname.def"; 7480 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 7481 else 7482 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 7483 fi~ 7484 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 7485 linknames=' 7486 # The linker will not automatically build a static lib if we build a DLL. 7487 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 7488 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 7489 # Don't use ranlib 7490 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 7491 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 7492 lt_tool_outputfile="@TOOL_OUTPUT@"~ 7493 case $lt_outputfile in 7494 *.exe|*.EXE) ;; 7495 *) 7496 lt_outputfile=$lt_outputfile.exe 7497 lt_tool_outputfile=$lt_tool_outputfile.exe 7498 ;; 7499 esac~ 7500 func_to_tool_file "$lt_outputfile"~ 7501 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 7502 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 7503 $RM "$lt_outputfile.manifest"; 7504 fi' 7505 ;; 7506 *) 7507 # g++ 7508 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 7509 # as there is no search path for DLLs. 7510 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7511 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' 7512 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7513 _LT_TAGVAR(always_export_symbols, $1)=no 7514 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 7515 7516 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 7517 _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' 7518 # If the export-symbols file already is a .def file, use it as 7519 # is; otherwise, prepend EXPORTS... 7520 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 7521 cp $export_symbols $output_objdir/$soname.def; 7522 else 7523 echo EXPORTS > $output_objdir/$soname.def; 7524 cat $export_symbols >> $output_objdir/$soname.def; 7525 fi~ 7526 $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' 7527 else 7528 _LT_TAGVAR(ld_shlibs, $1)=no 7529 fi 7530 ;; 7531 esac 7532 ;; 7533 darwin* | rhapsody*) 7534 _LT_DARWIN_LINKER_FEATURES($1) 7535 ;; 7536 7537 os2*) 7538 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7539 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7540 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7541 shrext_cmds=.dll 7542 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 7543 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 7544 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 7545 $ECHO EXPORTS >> $output_objdir/$libname.def~ 7546 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 7547 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 7548 emximp -o $lib $output_objdir/$libname.def' 7549 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 7550 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 7551 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 7552 $ECHO EXPORTS >> $output_objdir/$libname.def~ 7553 prefix_cmds="$SED"~ 7554 if test EXPORTS = "`$SED 1q $export_symbols`"; then 7555 prefix_cmds="$prefix_cmds -e 1d"; 7556 fi~ 7557 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 7558 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 7559 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 7560 emximp -o $lib $output_objdir/$libname.def' 7561 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 7562 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 7563 ;; 7564 7565 dgux*) 7566 case $cc_basename in 7567 ec++*) 7568 # FIXME: insert proper C++ library support 7569 _LT_TAGVAR(ld_shlibs, $1)=no 7570 ;; 7571 ghcx*) 7572 # Green Hills C++ Compiler 7573 # FIXME: insert proper C++ library support 7574 _LT_TAGVAR(ld_shlibs, $1)=no 7575 ;; 7576 *) 7577 # FIXME: insert proper C++ library support 7578 _LT_TAGVAR(ld_shlibs, $1)=no 7579 ;; 7580 esac 7581 ;; 7582 7583 freebsd2.*) 7584 # C++ shared libraries reported to be fairly broken before 7585 # switch to ELF 7586 _LT_TAGVAR(ld_shlibs, $1)=no 7587 ;; 7588 7589 freebsd-elf*) 7590 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7591 ;; 7592 7593 freebsd* | dragonfly*) 7594 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 7595 # conventions 7596 _LT_TAGVAR(ld_shlibs, $1)=yes 7597 ;; 7598 7599 haiku*) 7600 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 7601 _LT_TAGVAR(link_all_deplibs, $1)=yes 7602 ;; 7603 7604 hpux9*) 7605 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 7606 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7607 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 7608 _LT_TAGVAR(hardcode_direct, $1)=yes 7609 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 7610 # but as the default 7611 # location of the library. 7612 7613 case $cc_basename in 7614 CC*) 7615 # FIXME: insert proper C++ library support 7616 _LT_TAGVAR(ld_shlibs, $1)=no 7617 ;; 7618 aCC*) 7619 _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' 7620 # Commands to make compiler produce verbose output that lists 7621 # what "hidden" libraries, object files and flags are used when 7622 # linking a shared library. 7623 # 7624 # There doesn't appear to be a way to prevent this compiler from 7625 # explicitly linking system object files so we need to strip them 7626 # from the output so that they don't get included in the library 7627 # dependencies. 7628 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"' 7629 ;; 7630 *) 7631 if test yes = "$GXX"; then 7632 _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' 7633 else 7634 # FIXME: insert proper C++ library support 7635 _LT_TAGVAR(ld_shlibs, $1)=no 7636 fi 7637 ;; 7638 esac 7639 ;; 7640 7641 hpux10*|hpux11*) 7642 if test no = "$with_gnu_ld"; then 7643 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 7644 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7645 7646 case $host_cpu in 7647 hppa*64*|ia64*) 7648 ;; 7649 *) 7650 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 7651 ;; 7652 esac 7653 fi 7654 case $host_cpu in 7655 hppa*64*|ia64*) 7656 _LT_TAGVAR(hardcode_direct, $1)=no 7657 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7658 ;; 7659 *) 7660 _LT_TAGVAR(hardcode_direct, $1)=yes 7661 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7662 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 7663 # but as the default 7664 # location of the library. 7665 ;; 7666 esac 7667 7668 case $cc_basename in 7669 CC*) 7670 # FIXME: insert proper C++ library support 7671 _LT_TAGVAR(ld_shlibs, $1)=no 7672 ;; 7673 aCC*) 7674 case $host_cpu in 7675 hppa*64*) 7676 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 7677 ;; 7678 ia64*) 7679 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 7680 ;; 7681 *) 7682 _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' 7683 ;; 7684 esac 7685 # Commands to make compiler produce verbose output that lists 7686 # what "hidden" libraries, object files and flags are used when 7687 # linking a shared library. 7688 # 7689 # There doesn't appear to be a way to prevent this compiler from 7690 # explicitly linking system object files so we need to strip them 7691 # from the output so that they don't get included in the library 7692 # dependencies. 7693 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"' 7694 ;; 7695 *) 7696 if test yes = "$GXX"; then 7697 if test no = "$with_gnu_ld"; then 7698 case $host_cpu in 7699 hppa*64*) 7700 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 7701 ;; 7702 ia64*) 7703 _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' 7704 ;; 7705 *) 7706 _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' 7707 ;; 7708 esac 7709 fi 7710 else 7711 # FIXME: insert proper C++ library support 7712 _LT_TAGVAR(ld_shlibs, $1)=no 7713 fi 7714 ;; 7715 esac 7716 ;; 7717 7718 interix[[3-9]]*) 7719 _LT_TAGVAR(hardcode_direct, $1)=no 7720 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7721 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 7722 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 7723 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7724 # Instead, shared libraries are loaded at an image base (0x10000000 by 7725 # default) and relocated if they conflict, which is a slow very memory 7726 # consuming and fragmenting process. To avoid this, we pick a random, 7727 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7728 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7729 _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' 7730 _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' 7731 ;; 7732 irix5* | irix6*) 7733 case $cc_basename in 7734 CC*) 7735 # SGI C++ 7736 _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' 7737 7738 # Archives containing C++ object files must be created using 7739 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 7740 # necessary to make sure instantiated templates are included 7741 # in the archive. 7742 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 7743 ;; 7744 *) 7745 if test yes = "$GXX"; then 7746 if test no = "$with_gnu_ld"; then 7747 _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' 7748 else 7749 _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' 7750 fi 7751 fi 7752 _LT_TAGVAR(link_all_deplibs, $1)=yes 7753 ;; 7754 esac 7755 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 7756 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7757 _LT_TAGVAR(inherit_rpath, $1)=yes 7758 ;; 7759 7760 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 7761 case $cc_basename in 7762 KCC*) 7763 # Kuck and Associates, Inc. (KAI) C++ Compiler 7764 7765 # KCC will only create a shared library if the output file 7766 # ends with ".so" (or ".sl" for HP-UX), so rename the library 7767 # to its proper name (with version) after linking. 7768 _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' 7769 _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' 7770 # Commands to make compiler produce verbose output that lists 7771 # what "hidden" libraries, object files and flags are used when 7772 # linking a shared library. 7773 # 7774 # There doesn't appear to be a way to prevent this compiler from 7775 # explicitly linking system object files so we need to strip them 7776 # from the output so that they don't get included in the library 7777 # dependencies. 7778 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"' 7779 7780 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 7781 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 7782 7783 # Archives containing C++ object files must be created using 7784 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 7785 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 7786 ;; 7787 icpc* | ecpc* ) 7788 # Intel C++ 7789 with_gnu_ld=yes 7790 # version 8.0 and above of icpc choke on multiply defined symbols 7791 # if we add $predep_objects and $postdep_objects, however 7.1 and 7792 # earlier do not add the objects themselves. 7793 case `$CC -V 2>&1` in 7794 *"Version 7."*) 7795 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 7796 _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' 7797 ;; 7798 *) # Version 8.0 or newer 7799 tmp_idyn= 7800 case $host_cpu in 7801 ia64*) tmp_idyn=' -i_dynamic';; 7802 esac 7803 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 7804 _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' 7805 ;; 7806 esac 7807 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7808 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 7809 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 7810 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 7811 ;; 7812 pgCC* | pgcpp*) 7813 # Portland Group C++ compiler 7814 case `$CC -V` in 7815 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) 7816 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 7817 rm -rf $tpldir~ 7818 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 7819 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 7820 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 7821 rm -rf $tpldir~ 7822 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 7823 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 7824 $RANLIB $oldlib' 7825 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 7826 rm -rf $tpldir~ 7827 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 7828 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 7829 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 7830 rm -rf $tpldir~ 7831 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 7832 $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' 7833 ;; 7834 *) # Version 6 and above use weak symbols 7835 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 7836 _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' 7837 ;; 7838 esac 7839 7840 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir' 7841 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 7842 _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' 7843 ;; 7844 cxx*) 7845 # Compaq C++ 7846 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 7847 _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' 7848 7849 runpath_var=LD_RUN_PATH 7850 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 7851 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7852 7853 # Commands to make compiler produce verbose output that lists 7854 # what "hidden" libraries, object files and flags are used when 7855 # linking a shared library. 7856 # 7857 # There doesn't appear to be a way to prevent this compiler from 7858 # explicitly linking system object files so we need to strip them 7859 # from the output so that they don't get included in the library 7860 # dependencies. 7861 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' 7862 ;; 7863 xl* | mpixl* | bgxl*) 7864 # IBM XL 8.0 on PPC, with GNU ld 7865 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 7866 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 7867 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 7868 if test yes = "$supports_anon_versioning"; then 7869 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 7870 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7871 echo "local: *; };" >> $output_objdir/$libname.ver~ 7872 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 7873 fi 7874 ;; 7875 *) 7876 case `$CC -V 2>&1 | sed 5q` in 7877 *Sun\ C*) 7878 # Sun C++ 5.9 7879 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 7880 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 7881 _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' 7882 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7883 _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' 7884 _LT_TAGVAR(compiler_needs_object, $1)=yes 7885 7886 # Not sure whether something based on 7887 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 7888 # would be better. 7889 output_verbose_link_cmd='func_echo_all' 7890 7891 # Archives containing C++ object files must be created using 7892 # "CC -xar", where "CC" is the Sun C++ compiler. This is 7893 # necessary to make sure instantiated templates are included 7894 # in the archive. 7895 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 7896 ;; 7897 esac 7898 ;; 7899 esac 7900 ;; 7901 7902 lynxos*) 7903 # FIXME: insert proper C++ library support 7904 _LT_TAGVAR(ld_shlibs, $1)=no 7905 ;; 7906 7907 m88k*) 7908 # FIXME: insert proper C++ library support 7909 _LT_TAGVAR(ld_shlibs, $1)=no 7910 ;; 7911 7912 mvs*) 7913 case $cc_basename in 7914 cxx*) 7915 # FIXME: insert proper C++ library support 7916 _LT_TAGVAR(ld_shlibs, $1)=no 7917 ;; 7918 *) 7919 # FIXME: insert proper C++ library support 7920 _LT_TAGVAR(ld_shlibs, $1)=no 7921 ;; 7922 esac 7923 ;; 7924 7925 netbsd*) 7926 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7927 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 7928 wlarc= 7929 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7930 _LT_TAGVAR(hardcode_direct, $1)=yes 7931 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7932 fi 7933 # Workaround some broken pre-1.5 toolchains 7934 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 7935 ;; 7936 7937 *nto* | *qnx*) 7938 _LT_TAGVAR(ld_shlibs, $1)=yes 7939 ;; 7940 7941 openbsd* | bitrig*) 7942 if test -f /usr/libexec/ld.so; then 7943 _LT_TAGVAR(hardcode_direct, $1)=yes 7944 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7945 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7946 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 7947 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 7948 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 7949 _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' 7950 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 7951 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 7952 fi 7953 output_verbose_link_cmd=func_echo_all 7954 else 7955 _LT_TAGVAR(ld_shlibs, $1)=no 7956 fi 7957 ;; 7958 7959 osf3* | osf4* | osf5*) 7960 case $cc_basename in 7961 KCC*) 7962 # Kuck and Associates, Inc. (KAI) C++ Compiler 7963 7964 # KCC will only create a shared library if the output file 7965 # ends with ".so" (or ".sl" for HP-UX), so rename the library 7966 # to its proper name (with version) after linking. 7967 _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' 7968 7969 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 7970 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7971 7972 # Archives containing C++ object files must be created using 7973 # the KAI C++ compiler. 7974 case $host in 7975 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; 7976 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; 7977 esac 7978 ;; 7979 RCC*) 7980 # Rational C++ 2.4.1 7981 # FIXME: insert proper C++ library support 7982 _LT_TAGVAR(ld_shlibs, $1)=no 7983 ;; 7984 cxx*) 7985 case $host in 7986 osf3*) 7987 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 7988 _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' 7989 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 7990 ;; 7991 *) 7992 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 7993 _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' 7994 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 7995 echo "-hidden">> $lib.exp~ 7996 $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~ 7997 $RM $lib.exp' 7998 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 7999 ;; 8000 esac 8001 8002 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8003 8004 # Commands to make compiler produce verbose output that lists 8005 # what "hidden" libraries, object files and flags are used when 8006 # linking a shared library. 8007 # 8008 # There doesn't appear to be a way to prevent this compiler from 8009 # explicitly linking system object files so we need to strip them 8010 # from the output so that they don't get included in the library 8011 # dependencies. 8012 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"' 8013 ;; 8014 *) 8015 if test yes,no = "$GXX,$with_gnu_ld"; then 8016 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 8017 case $host in 8018 osf3*) 8019 _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' 8020 ;; 8021 *) 8022 _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' 8023 ;; 8024 esac 8025 8026 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 8027 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8028 8029 # Commands to make compiler produce verbose output that lists 8030 # what "hidden" libraries, object files and flags are used when 8031 # linking a shared library. 8032 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 8033 8034 else 8035 # FIXME: insert proper C++ library support 8036 _LT_TAGVAR(ld_shlibs, $1)=no 8037 fi 8038 ;; 8039 esac 8040 ;; 8041 8042 psos*) 8043 # FIXME: insert proper C++ library support 8044 _LT_TAGVAR(ld_shlibs, $1)=no 8045 ;; 8046 8047 sunos4*) 8048 case $cc_basename in 8049 CC*) 8050 # Sun C++ 4.x 8051 # FIXME: insert proper C++ library support 8052 _LT_TAGVAR(ld_shlibs, $1)=no 8053 ;; 8054 lcc*) 8055 # Lucid 8056 # FIXME: insert proper C++ library support 8057 _LT_TAGVAR(ld_shlibs, $1)=no 8058 ;; 8059 *) 8060 # FIXME: insert proper C++ library support 8061 _LT_TAGVAR(ld_shlibs, $1)=no 8062 ;; 8063 esac 8064 ;; 8065 8066 solaris*) 8067 case $cc_basename in 8068 CC* | sunCC*) 8069 # Sun C++ 4.2, 5.x and Centerline C++ 8070 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 8071 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 8072 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8073 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8074 $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' 8075 8076 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 8077 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8078 case $host_os in 8079 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 8080 *) 8081 # The compiler driver will combine and reorder linker options, 8082 # but understands '-z linker_flag'. 8083 # Supported since Solaris 2.6 (maybe 2.5.1?) 8084 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 8085 ;; 8086 esac 8087 _LT_TAGVAR(link_all_deplibs, $1)=yes 8088 8089 output_verbose_link_cmd='func_echo_all' 8090 8091 # Archives containing C++ object files must be created using 8092 # "CC -xar", where "CC" is the Sun C++ compiler. This is 8093 # necessary to make sure instantiated templates are included 8094 # in the archive. 8095 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 8096 ;; 8097 gcx*) 8098 # Green Hills C++ Compiler 8099 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 8100 8101 # The C++ compiler must be used to create the archive. 8102 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 8103 ;; 8104 *) 8105 # GNU C++ compiler with Solaris linker 8106 if test yes,no = "$GXX,$with_gnu_ld"; then 8107 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs' 8108 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 8109 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 8110 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8111 $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' 8112 8113 # Commands to make compiler produce verbose output that lists 8114 # what "hidden" libraries, object files and flags are used when 8115 # linking a shared library. 8116 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 8117 else 8118 # g++ 2.7 appears to require '-G' NOT '-shared' on this 8119 # platform. 8120 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 8121 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8122 $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' 8123 8124 # Commands to make compiler produce verbose output that lists 8125 # what "hidden" libraries, object files and flags are used when 8126 # linking a shared library. 8127 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 8128 fi 8129 8130 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' 8131 case $host_os in 8132 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 8133 *) 8134 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 8135 ;; 8136 esac 8137 fi 8138 ;; 8139 esac 8140 ;; 8141 8142 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 8143 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 8144 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 8145 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8146 runpath_var='LD_RUN_PATH' 8147 8148 case $cc_basename in 8149 CC*) 8150 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8151 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8152 ;; 8153 *) 8154 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8155 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8156 ;; 8157 esac 8158 ;; 8159 8160 sysv5* | sco3.2v5* | sco5v6*) 8161 # Note: We CANNOT use -z defs as we might desire, because we do not 8162 # link with -lc, and that would cause any symbols used from libc to 8163 # always be unresolved, which means just about no library would 8164 # ever link correctly. If we're not using GNU ld we use -z text 8165 # though, which does catch some bad symbols but isn't as heavy-handed 8166 # as -z defs. 8167 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 8168 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' 8169 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 8170 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8171 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' 8172 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 8173 _LT_TAGVAR(link_all_deplibs, $1)=yes 8174 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' 8175 runpath_var='LD_RUN_PATH' 8176 8177 case $cc_basename in 8178 CC*) 8179 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8180 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8181 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ 8182 '"$_LT_TAGVAR(old_archive_cmds, $1)" 8183 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ 8184 '"$_LT_TAGVAR(reload_cmds, $1)" 8185 ;; 8186 *) 8187 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8188 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8189 ;; 8190 esac 8191 ;; 8192 8193 tandem*) 8194 case $cc_basename in 8195 NCC*) 8196 # NonStop-UX NCC 3.20 8197 # FIXME: insert proper C++ library support 8198 _LT_TAGVAR(ld_shlibs, $1)=no 8199 ;; 8200 *) 8201 # FIXME: insert proper C++ library support 8202 _LT_TAGVAR(ld_shlibs, $1)=no 8203 ;; 8204 esac 8205 ;; 8206 8207 vxworks*) 8208 # FIXME: insert proper C++ library support 8209 _LT_TAGVAR(ld_shlibs, $1)=no 8210 ;; 8211 8212 *) 8213 # FIXME: insert proper C++ library support 8214 _LT_TAGVAR(ld_shlibs, $1)=no 8215 ;; 8216 esac 8217 8218 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 8219 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no 8220 8221 _LT_TAGVAR(GCC, $1)=$GXX 8222 _LT_TAGVAR(LD, $1)=$LD 8223 8224 ## CAVEAT EMPTOR: 8225 ## There is no encapsulation within the following macros, do not change 8226 ## the running order or otherwise move them around unless you know exactly 8227 ## what you are doing... 8228 _LT_SYS_HIDDEN_LIBDEPS($1) 8229 _LT_COMPILER_PIC($1) 8230 _LT_COMPILER_C_O($1) 8231 _LT_COMPILER_FILE_LOCKS($1) 8232 _LT_LINKER_SHLIBS($1) 8233 _LT_SYS_DYNAMIC_LINKER($1) 8234 _LT_LINKER_HARDCODE_LIBPATH($1) 8235 8236 _LT_CONFIG($1) 8237 fi # test -n "$compiler" 8238 8239 CC=$lt_save_CC 8240 CFLAGS=$lt_save_CFLAGS 8241 LDCXX=$LD 8242 LD=$lt_save_LD 8243 GCC=$lt_save_GCC 8244 with_gnu_ld=$lt_save_with_gnu_ld 8245 lt_cv_path_LDCXX=$lt_cv_path_LD 8246 lt_cv_path_LD=$lt_save_path_LD 8247 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 8248 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 8249fi # test yes != "$_lt_caught_CXX_error" 8250 8251AC_LANG_POP 8252])# _LT_LANG_CXX_CONFIG 8253 8254 8255# _LT_FUNC_STRIPNAME_CNF 8256# ---------------------- 8257# func_stripname_cnf prefix suffix name 8258# strip PREFIX and SUFFIX off of NAME. 8259# PREFIX and SUFFIX must not contain globbing or regex special 8260# characters, hashes, percent signs, but SUFFIX may contain a leading 8261# dot (in which case that matches only a dot). 8262# 8263# This function is identical to the (non-XSI) version of func_stripname, 8264# except this one can be used by m4 code that may be executed by configure, 8265# rather than the libtool script. 8266m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl 8267AC_REQUIRE([_LT_DECL_SED]) 8268AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) 8269func_stripname_cnf () 8270{ 8271 case @S|@2 in 8272 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; 8273 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; 8274 esac 8275} # func_stripname_cnf 8276])# _LT_FUNC_STRIPNAME_CNF 8277 8278 8279# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 8280# --------------------------------- 8281# Figure out "hidden" library dependencies from verbose 8282# compiler output when linking a shared library. 8283# Parse the compiler output and extract the necessary 8284# objects, libraries and library flags. 8285m4_defun([_LT_SYS_HIDDEN_LIBDEPS], 8286[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 8287AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl 8288# Dependencies to place before and after the object being linked: 8289_LT_TAGVAR(predep_objects, $1)= 8290_LT_TAGVAR(postdep_objects, $1)= 8291_LT_TAGVAR(predeps, $1)= 8292_LT_TAGVAR(postdeps, $1)= 8293_LT_TAGVAR(compiler_lib_search_path, $1)= 8294 8295dnl we can't use the lt_simple_compile_test_code here, 8296dnl because it contains code intended for an executable, 8297dnl not a library. It's possible we should let each 8298dnl tag define a new lt_????_link_test_code variable, 8299dnl but it's only used here... 8300m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF 8301int a; 8302void foo (void) { a = 0; } 8303_LT_EOF 8304], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF 8305class Foo 8306{ 8307public: 8308 Foo (void) { a = 0; } 8309private: 8310 int a; 8311}; 8312_LT_EOF 8313], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF 8314 subroutine foo 8315 implicit none 8316 integer*4 a 8317 a=0 8318 return 8319 end 8320_LT_EOF 8321], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF 8322 subroutine foo 8323 implicit none 8324 integer a 8325 a=0 8326 return 8327 end 8328_LT_EOF 8329], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF 8330public class foo { 8331 private int a; 8332 public void bar (void) { 8333 a = 0; 8334 } 8335}; 8336_LT_EOF 8337], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF 8338package foo 8339func foo() { 8340} 8341_LT_EOF 8342]) 8343 8344_lt_libdeps_save_CFLAGS=$CFLAGS 8345case "$CC $CFLAGS " in #( 8346*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 8347*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 8348*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 8349esac 8350 8351dnl Parse the compiler output and extract the necessary 8352dnl objects, libraries and library flags. 8353if AC_TRY_EVAL(ac_compile); then 8354 # Parse the compiler output and extract the necessary 8355 # objects, libraries and library flags. 8356 8357 # Sentinel used to keep track of whether or not we are before 8358 # the conftest object file. 8359 pre_test_object_deps_done=no 8360 8361 for p in `eval "$output_verbose_link_cmd"`; do 8362 case $prev$p in 8363 8364 -L* | -R* | -l*) 8365 # Some compilers place space between "-{L,R}" and the path. 8366 # Remove the space. 8367 if test x-L = "$p" || 8368 test x-R = "$p"; then 8369 prev=$p 8370 continue 8371 fi 8372 8373 # Expand the sysroot to ease extracting the directories later. 8374 if test -z "$prev"; then 8375 case $p in 8376 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 8377 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 8378 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 8379 esac 8380 fi 8381 case $p in 8382 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 8383 esac 8384 if test no = "$pre_test_object_deps_done"; then 8385 case $prev in 8386 -L | -R) 8387 # Internal compiler library paths should come after those 8388 # provided the user. The postdeps already come after the 8389 # user supplied libs so there is no need to process them. 8390 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then 8391 _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p 8392 else 8393 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p" 8394 fi 8395 ;; 8396 # The "-l" case would never come before the object being 8397 # linked, so don't bother handling this case. 8398 esac 8399 else 8400 if test -z "$_LT_TAGVAR(postdeps, $1)"; then 8401 _LT_TAGVAR(postdeps, $1)=$prev$p 8402 else 8403 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p" 8404 fi 8405 fi 8406 prev= 8407 ;; 8408 8409 *.lto.$objext) ;; # Ignore GCC LTO objects 8410 *.$objext) 8411 # This assumes that the test object file only shows up 8412 # once in the compiler output. 8413 if test "$p" = "conftest.$objext"; then 8414 pre_test_object_deps_done=yes 8415 continue 8416 fi 8417 8418 if test no = "$pre_test_object_deps_done"; then 8419 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then 8420 _LT_TAGVAR(predep_objects, $1)=$p 8421 else 8422 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" 8423 fi 8424 else 8425 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then 8426 _LT_TAGVAR(postdep_objects, $1)=$p 8427 else 8428 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" 8429 fi 8430 fi 8431 ;; 8432 8433 *) ;; # Ignore the rest. 8434 8435 esac 8436 done 8437 8438 # Clean up. 8439 rm -f a.out a.exe 8440else 8441 echo "libtool.m4: error: problem compiling $1 test program" 8442fi 8443 8444$RM -f confest.$objext 8445CFLAGS=$_lt_libdeps_save_CFLAGS 8446 8447# PORTME: override above test on systems where it is broken 8448m4_if([$1], [CXX], 8449[case $host_os in 8450interix[[3-9]]*) 8451 # Interix 3.5 installs completely hosed .la files for C++, so rather than 8452 # hack all around it, let's just trust "g++" to DTRT. 8453 _LT_TAGVAR(predep_objects,$1)= 8454 _LT_TAGVAR(postdep_objects,$1)= 8455 _LT_TAGVAR(postdeps,$1)= 8456 ;; 8457esac 8458]) 8459 8460case " $_LT_TAGVAR(postdeps, $1) " in 8461*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; 8462esac 8463 _LT_TAGVAR(compiler_lib_search_dirs, $1)= 8464if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then 8465 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'` 8466fi 8467_LT_TAGDECL([], [compiler_lib_search_dirs], [1], 8468 [The directories searched by this compiler when creating a shared library]) 8469_LT_TAGDECL([], [predep_objects], [1], 8470 [Dependencies to place before and after the objects being linked to 8471 create a shared library]) 8472_LT_TAGDECL([], [postdep_objects], [1]) 8473_LT_TAGDECL([], [predeps], [1]) 8474_LT_TAGDECL([], [postdeps], [1]) 8475_LT_TAGDECL([], [compiler_lib_search_path], [1], 8476 [The library search path used internally by the compiler when linking 8477 a shared library]) 8478])# _LT_SYS_HIDDEN_LIBDEPS 8479 8480 8481# _LT_LANG_F77_CONFIG([TAG]) 8482# -------------------------- 8483# Ensure that the configuration variables for a Fortran 77 compiler are 8484# suitably defined. These variables are subsequently used by _LT_CONFIG 8485# to write the compiler configuration to 'libtool'. 8486m4_defun([_LT_LANG_F77_CONFIG], 8487[AC_LANG_PUSH(Fortran 77) 8488if test -z "$F77" || test no = "$F77"; then 8489 _lt_disable_F77=yes 8490fi 8491 8492_LT_TAGVAR(archive_cmds_need_lc, $1)=no 8493_LT_TAGVAR(allow_undefined_flag, $1)= 8494_LT_TAGVAR(always_export_symbols, $1)=no 8495_LT_TAGVAR(archive_expsym_cmds, $1)= 8496_LT_TAGVAR(export_dynamic_flag_spec, $1)= 8497_LT_TAGVAR(hardcode_direct, $1)=no 8498_LT_TAGVAR(hardcode_direct_absolute, $1)=no 8499_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 8500_LT_TAGVAR(hardcode_libdir_separator, $1)= 8501_LT_TAGVAR(hardcode_minus_L, $1)=no 8502_LT_TAGVAR(hardcode_automatic, $1)=no 8503_LT_TAGVAR(inherit_rpath, $1)=no 8504_LT_TAGVAR(module_cmds, $1)= 8505_LT_TAGVAR(module_expsym_cmds, $1)= 8506_LT_TAGVAR(link_all_deplibs, $1)=unknown 8507_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 8508_LT_TAGVAR(reload_flag, $1)=$reload_flag 8509_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 8510_LT_TAGVAR(no_undefined_flag, $1)= 8511_LT_TAGVAR(whole_archive_flag_spec, $1)= 8512_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 8513 8514# Source file extension for f77 test sources. 8515ac_ext=f 8516 8517# Object file extension for compiled f77 test sources. 8518objext=o 8519_LT_TAGVAR(objext, $1)=$objext 8520 8521# No sense in running all these tests if we already determined that 8522# the F77 compiler isn't working. Some variables (like enable_shared) 8523# are currently assumed to apply to all compilers on this platform, 8524# and will be corrupted by setting them based on a non-working compiler. 8525if test yes != "$_lt_disable_F77"; then 8526 # Code to be used in simple compile tests 8527 lt_simple_compile_test_code="\ 8528 subroutine t 8529 return 8530 end 8531" 8532 8533 # Code to be used in simple link tests 8534 lt_simple_link_test_code="\ 8535 program t 8536 end 8537" 8538 8539 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 8540 _LT_TAG_COMPILER 8541 8542 # save warnings/boilerplate of simple test code 8543 _LT_COMPILER_BOILERPLATE 8544 _LT_LINKER_BOILERPLATE 8545 8546 # Allow CC to be a program name with arguments. 8547 lt_save_CC=$CC 8548 lt_save_GCC=$GCC 8549 lt_save_CFLAGS=$CFLAGS 8550 CC=${F77-"f77"} 8551 CFLAGS=$FFLAGS 8552 compiler=$CC 8553 _LT_TAGVAR(compiler, $1)=$CC 8554 _LT_CC_BASENAME([$compiler]) 8555 GCC=$G77 8556 if test -n "$compiler"; then 8557 AC_MSG_CHECKING([if libtool supports shared libraries]) 8558 AC_MSG_RESULT([$can_build_shared]) 8559 8560 AC_MSG_CHECKING([whether to build shared libraries]) 8561 test no = "$can_build_shared" && enable_shared=no 8562 8563 # On AIX, shared libraries and static libraries use the same namespace, and 8564 # are all built from PIC. 8565 case $host_os in 8566 aix3*) 8567 test yes = "$enable_shared" && enable_static=no 8568 if test -n "$RANLIB"; then 8569 archive_cmds="$archive_cmds~\$RANLIB \$lib" 8570 postinstall_cmds='$RANLIB $lib' 8571 fi 8572 ;; 8573 aix[[4-9]]*) 8574 if test ia64 != "$host_cpu"; then 8575 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 8576 yes,aix,yes) ;; # shared object as lib.so file only 8577 yes,svr4,*) ;; # shared object as lib.so archive member only 8578 yes,*) enable_static=no ;; # shared object in lib.a archive as well 8579 esac 8580 fi 8581 ;; 8582 esac 8583 AC_MSG_RESULT([$enable_shared]) 8584 8585 AC_MSG_CHECKING([whether to build static libraries]) 8586 # Make sure either enable_shared or enable_static is yes. 8587 test yes = "$enable_shared" || enable_static=yes 8588 AC_MSG_RESULT([$enable_static]) 8589 8590 _LT_TAGVAR(GCC, $1)=$G77 8591 _LT_TAGVAR(LD, $1)=$LD 8592 8593 ## CAVEAT EMPTOR: 8594 ## There is no encapsulation within the following macros, do not change 8595 ## the running order or otherwise move them around unless you know exactly 8596 ## what you are doing... 8597 _LT_COMPILER_PIC($1) 8598 _LT_COMPILER_C_O($1) 8599 _LT_COMPILER_FILE_LOCKS($1) 8600 _LT_LINKER_SHLIBS($1) 8601 _LT_SYS_DYNAMIC_LINKER($1) 8602 _LT_LINKER_HARDCODE_LIBPATH($1) 8603 8604 _LT_CONFIG($1) 8605 fi # test -n "$compiler" 8606 8607 GCC=$lt_save_GCC 8608 CC=$lt_save_CC 8609 CFLAGS=$lt_save_CFLAGS 8610fi # test yes != "$_lt_disable_F77" 8611 8612AC_LANG_POP 8613])# _LT_LANG_F77_CONFIG 8614 8615 8616# _LT_LANG_FC_CONFIG([TAG]) 8617# ------------------------- 8618# Ensure that the configuration variables for a Fortran compiler are 8619# suitably defined. These variables are subsequently used by _LT_CONFIG 8620# to write the compiler configuration to 'libtool'. 8621m4_defun([_LT_LANG_FC_CONFIG], 8622[AC_LANG_PUSH(Fortran) 8623 8624if test -z "$FC" || test no = "$FC"; then 8625 _lt_disable_FC=yes 8626fi 8627 8628_LT_TAGVAR(archive_cmds_need_lc, $1)=no 8629_LT_TAGVAR(allow_undefined_flag, $1)= 8630_LT_TAGVAR(always_export_symbols, $1)=no 8631_LT_TAGVAR(archive_expsym_cmds, $1)= 8632_LT_TAGVAR(export_dynamic_flag_spec, $1)= 8633_LT_TAGVAR(hardcode_direct, $1)=no 8634_LT_TAGVAR(hardcode_direct_absolute, $1)=no 8635_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 8636_LT_TAGVAR(hardcode_libdir_separator, $1)= 8637_LT_TAGVAR(hardcode_minus_L, $1)=no 8638_LT_TAGVAR(hardcode_automatic, $1)=no 8639_LT_TAGVAR(inherit_rpath, $1)=no 8640_LT_TAGVAR(module_cmds, $1)= 8641_LT_TAGVAR(module_expsym_cmds, $1)= 8642_LT_TAGVAR(link_all_deplibs, $1)=unknown 8643_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 8644_LT_TAGVAR(reload_flag, $1)=$reload_flag 8645_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 8646_LT_TAGVAR(no_undefined_flag, $1)= 8647_LT_TAGVAR(whole_archive_flag_spec, $1)= 8648_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 8649 8650# Source file extension for fc test sources. 8651ac_ext=${ac_fc_srcext-f} 8652 8653# Object file extension for compiled fc test sources. 8654objext=o 8655_LT_TAGVAR(objext, $1)=$objext 8656 8657# No sense in running all these tests if we already determined that 8658# the FC compiler isn't working. Some variables (like enable_shared) 8659# are currently assumed to apply to all compilers on this platform, 8660# and will be corrupted by setting them based on a non-working compiler. 8661if test yes != "$_lt_disable_FC"; then 8662 # Code to be used in simple compile tests 8663 lt_simple_compile_test_code="\ 8664 subroutine t 8665 return 8666 end 8667" 8668 8669 # Code to be used in simple link tests 8670 lt_simple_link_test_code="\ 8671 program t 8672 end 8673" 8674 8675 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 8676 _LT_TAG_COMPILER 8677 8678 # save warnings/boilerplate of simple test code 8679 _LT_COMPILER_BOILERPLATE 8680 _LT_LINKER_BOILERPLATE 8681 8682 # Allow CC to be a program name with arguments. 8683 lt_save_CC=$CC 8684 lt_save_GCC=$GCC 8685 lt_save_CFLAGS=$CFLAGS 8686 CC=${FC-"f95"} 8687 CFLAGS=$FCFLAGS 8688 compiler=$CC 8689 GCC=$ac_cv_fc_compiler_gnu 8690 8691 _LT_TAGVAR(compiler, $1)=$CC 8692 _LT_CC_BASENAME([$compiler]) 8693 8694 if test -n "$compiler"; then 8695 AC_MSG_CHECKING([if libtool supports shared libraries]) 8696 AC_MSG_RESULT([$can_build_shared]) 8697 8698 AC_MSG_CHECKING([whether to build shared libraries]) 8699 test no = "$can_build_shared" && enable_shared=no 8700 8701 # On AIX, shared libraries and static libraries use the same namespace, and 8702 # are all built from PIC. 8703 case $host_os in 8704 aix3*) 8705 test yes = "$enable_shared" && enable_static=no 8706 if test -n "$RANLIB"; then 8707 archive_cmds="$archive_cmds~\$RANLIB \$lib" 8708 postinstall_cmds='$RANLIB $lib' 8709 fi 8710 ;; 8711 aix[[4-9]]*) 8712 if test ia64 != "$host_cpu"; then 8713 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 8714 yes,aix,yes) ;; # shared object as lib.so file only 8715 yes,svr4,*) ;; # shared object as lib.so archive member only 8716 yes,*) enable_static=no ;; # shared object in lib.a archive as well 8717 esac 8718 fi 8719 ;; 8720 esac 8721 AC_MSG_RESULT([$enable_shared]) 8722 8723 AC_MSG_CHECKING([whether to build static libraries]) 8724 # Make sure either enable_shared or enable_static is yes. 8725 test yes = "$enable_shared" || enable_static=yes 8726 AC_MSG_RESULT([$enable_static]) 8727 8728 _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu 8729 _LT_TAGVAR(LD, $1)=$LD 8730 8731 ## CAVEAT EMPTOR: 8732 ## There is no encapsulation within the following macros, do not change 8733 ## the running order or otherwise move them around unless you know exactly 8734 ## what you are doing... 8735 _LT_SYS_HIDDEN_LIBDEPS($1) 8736 _LT_COMPILER_PIC($1) 8737 _LT_COMPILER_C_O($1) 8738 _LT_COMPILER_FILE_LOCKS($1) 8739 _LT_LINKER_SHLIBS($1) 8740 _LT_SYS_DYNAMIC_LINKER($1) 8741 _LT_LINKER_HARDCODE_LIBPATH($1) 8742 8743 _LT_CONFIG($1) 8744 fi # test -n "$compiler" 8745 8746 GCC=$lt_save_GCC 8747 CC=$lt_save_CC 8748 CFLAGS=$lt_save_CFLAGS 8749fi # test yes != "$_lt_disable_FC" 8750 8751AC_LANG_POP 8752])# _LT_LANG_FC_CONFIG 8753 8754 8755# _LT_LANG_GCJ_CONFIG([TAG]) 8756# -------------------------- 8757# Ensure that the configuration variables for the GNU Java Compiler compiler 8758# are suitably defined. These variables are subsequently used by _LT_CONFIG 8759# to write the compiler configuration to 'libtool'. 8760m4_defun([_LT_LANG_GCJ_CONFIG], 8761[AC_REQUIRE([LT_PROG_GCJ])dnl 8762AC_LANG_SAVE 8763 8764# Source file extension for Java test sources. 8765ac_ext=java 8766 8767# Object file extension for compiled Java test sources. 8768objext=o 8769_LT_TAGVAR(objext, $1)=$objext 8770 8771# Code to be used in simple compile tests 8772lt_simple_compile_test_code="class foo {}" 8773 8774# Code to be used in simple link tests 8775lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 8776 8777# ltmain only uses $CC for tagged configurations so make sure $CC is set. 8778_LT_TAG_COMPILER 8779 8780# save warnings/boilerplate of simple test code 8781_LT_COMPILER_BOILERPLATE 8782_LT_LINKER_BOILERPLATE 8783 8784# Allow CC to be a program name with arguments. 8785lt_save_CC=$CC 8786lt_save_CFLAGS=$CFLAGS 8787lt_save_GCC=$GCC 8788GCC=yes 8789CC=${GCJ-"gcj"} 8790CFLAGS=$GCJFLAGS 8791compiler=$CC 8792_LT_TAGVAR(compiler, $1)=$CC 8793_LT_TAGVAR(LD, $1)=$LD 8794_LT_CC_BASENAME([$compiler]) 8795 8796# GCJ did not exist at the time GCC didn't implicitly link libc in. 8797_LT_TAGVAR(archive_cmds_need_lc, $1)=no 8798 8799_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 8800_LT_TAGVAR(reload_flag, $1)=$reload_flag 8801_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 8802 8803if test -n "$compiler"; then 8804 _LT_COMPILER_NO_RTTI($1) 8805 _LT_COMPILER_PIC($1) 8806 _LT_COMPILER_C_O($1) 8807 _LT_COMPILER_FILE_LOCKS($1) 8808 _LT_LINKER_SHLIBS($1) 8809 _LT_LINKER_HARDCODE_LIBPATH($1) 8810 8811 _LT_CONFIG($1) 8812fi 8813 8814AC_LANG_RESTORE 8815 8816GCC=$lt_save_GCC 8817CC=$lt_save_CC 8818CFLAGS=$lt_save_CFLAGS 8819])# _LT_LANG_GCJ_CONFIG 8820 8821 8822# _LT_LANG_GO_CONFIG([TAG]) 8823# -------------------------- 8824# Ensure that the configuration variables for the GNU Go compiler 8825# are suitably defined. These variables are subsequently used by _LT_CONFIG 8826# to write the compiler configuration to 'libtool'. 8827m4_defun([_LT_LANG_GO_CONFIG], 8828[AC_REQUIRE([LT_PROG_GO])dnl 8829AC_LANG_SAVE 8830 8831# Source file extension for Go test sources. 8832ac_ext=go 8833 8834# Object file extension for compiled Go test sources. 8835objext=o 8836_LT_TAGVAR(objext, $1)=$objext 8837 8838# Code to be used in simple compile tests 8839lt_simple_compile_test_code="package main; func main() { }" 8840 8841# Code to be used in simple link tests 8842lt_simple_link_test_code='package main; func main() { }' 8843 8844# ltmain only uses $CC for tagged configurations so make sure $CC is set. 8845_LT_TAG_COMPILER 8846 8847# save warnings/boilerplate of simple test code 8848_LT_COMPILER_BOILERPLATE 8849_LT_LINKER_BOILERPLATE 8850 8851# Allow CC to be a program name with arguments. 8852lt_save_CC=$CC 8853lt_save_CFLAGS=$CFLAGS 8854lt_save_GCC=$GCC 8855GCC=yes 8856CC=${GOC-"gccgo"} 8857CFLAGS=$GOFLAGS 8858compiler=$CC 8859_LT_TAGVAR(compiler, $1)=$CC 8860_LT_TAGVAR(LD, $1)=$LD 8861_LT_CC_BASENAME([$compiler]) 8862 8863# Go did not exist at the time GCC didn't implicitly link libc in. 8864_LT_TAGVAR(archive_cmds_need_lc, $1)=no 8865 8866_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 8867_LT_TAGVAR(reload_flag, $1)=$reload_flag 8868_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 8869 8870if test -n "$compiler"; then 8871 _LT_COMPILER_NO_RTTI($1) 8872 _LT_COMPILER_PIC($1) 8873 _LT_COMPILER_C_O($1) 8874 _LT_COMPILER_FILE_LOCKS($1) 8875 _LT_LINKER_SHLIBS($1) 8876 _LT_LINKER_HARDCODE_LIBPATH($1) 8877 8878 _LT_CONFIG($1) 8879fi 8880 8881AC_LANG_RESTORE 8882 8883GCC=$lt_save_GCC 8884CC=$lt_save_CC 8885CFLAGS=$lt_save_CFLAGS 8886])# _LT_LANG_GO_CONFIG 8887 8888 8889# _LT_LANG_RC_CONFIG([TAG]) 8890# ------------------------- 8891# Ensure that the configuration variables for the Windows resource compiler 8892# are suitably defined. These variables are subsequently used by _LT_CONFIG 8893# to write the compiler configuration to 'libtool'. 8894m4_defun([_LT_LANG_RC_CONFIG], 8895[AC_REQUIRE([LT_PROG_RC])dnl 8896AC_LANG_SAVE 8897 8898# Source file extension for RC test sources. 8899ac_ext=rc 8900 8901# Object file extension for compiled RC test sources. 8902objext=o 8903_LT_TAGVAR(objext, $1)=$objext 8904 8905# Code to be used in simple compile tests 8906lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 8907 8908# Code to be used in simple link tests 8909lt_simple_link_test_code=$lt_simple_compile_test_code 8910 8911# ltmain only uses $CC for tagged configurations so make sure $CC is set. 8912_LT_TAG_COMPILER 8913 8914# save warnings/boilerplate of simple test code 8915_LT_COMPILER_BOILERPLATE 8916_LT_LINKER_BOILERPLATE 8917 8918# Allow CC to be a program name with arguments. 8919lt_save_CC=$CC 8920lt_save_CFLAGS=$CFLAGS 8921lt_save_GCC=$GCC 8922GCC= 8923CC=${RC-"windres"} 8924CFLAGS= 8925compiler=$CC 8926_LT_TAGVAR(compiler, $1)=$CC 8927_LT_CC_BASENAME([$compiler]) 8928_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 8929 8930if test -n "$compiler"; then 8931 : 8932 _LT_CONFIG($1) 8933fi 8934 8935GCC=$lt_save_GCC 8936AC_LANG_RESTORE 8937CC=$lt_save_CC 8938CFLAGS=$lt_save_CFLAGS 8939])# _LT_LANG_RC_CONFIG 8940 8941 8942# LT_PROG_GCJ 8943# ----------- 8944AC_DEFUN([LT_PROG_GCJ], 8945[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], 8946 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 8947 [AC_CHECK_TOOL(GCJ, gcj,) 8948 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2" 8949 AC_SUBST(GCJFLAGS)])])[]dnl 8950]) 8951 8952# Old name: 8953AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) 8954dnl aclocal-1.4 backwards compatibility: 8955dnl AC_DEFUN([LT_AC_PROG_GCJ], []) 8956 8957 8958# LT_PROG_GO 8959# ---------- 8960AC_DEFUN([LT_PROG_GO], 8961[AC_CHECK_TOOL(GOC, gccgo,) 8962]) 8963 8964 8965# LT_PROG_RC 8966# ---------- 8967AC_DEFUN([LT_PROG_RC], 8968[AC_CHECK_TOOL(RC, windres,) 8969]) 8970 8971# Old name: 8972AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) 8973dnl aclocal-1.4 backwards compatibility: 8974dnl AC_DEFUN([LT_AC_PROG_RC], []) 8975 8976 8977# _LT_DECL_EGREP 8978# -------------- 8979# If we don't have a new enough Autoconf to choose the best grep 8980# available, choose the one first in the user's PATH. 8981m4_defun([_LT_DECL_EGREP], 8982[AC_REQUIRE([AC_PROG_EGREP])dnl 8983AC_REQUIRE([AC_PROG_FGREP])dnl 8984test -z "$GREP" && GREP=grep 8985_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) 8986_LT_DECL([], [EGREP], [1], [An ERE matcher]) 8987_LT_DECL([], [FGREP], [1], [A literal string matcher]) 8988dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too 8989AC_SUBST([GREP]) 8990]) 8991 8992 8993# _LT_DECL_OBJDUMP 8994# -------------- 8995# If we don't have a new enough Autoconf to choose the best objdump 8996# available, choose the one first in the user's PATH. 8997m4_defun([_LT_DECL_OBJDUMP], 8998[AC_CHECK_TOOL(OBJDUMP, objdump, false) 8999test -z "$OBJDUMP" && OBJDUMP=objdump 9000_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) 9001AC_SUBST([OBJDUMP]) 9002]) 9003 9004# _LT_DECL_DLLTOOL 9005# ---------------- 9006# Ensure DLLTOOL variable is set. 9007m4_defun([_LT_DECL_DLLTOOL], 9008[AC_CHECK_TOOL(DLLTOOL, dlltool, false) 9009test -z "$DLLTOOL" && DLLTOOL=dlltool 9010_LT_DECL([], [DLLTOOL], [1], [DLL creation program]) 9011AC_SUBST([DLLTOOL]) 9012]) 9013 9014# _LT_DECL_SED 9015# ------------ 9016# Check for a fully-functional sed program, that truncates 9017# as few characters as possible. Prefer GNU sed if found. 9018m4_defun([_LT_DECL_SED], 9019[AC_PROG_SED 9020test -z "$SED" && SED=sed 9021Xsed="$SED -e 1s/^X//" 9022_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) 9023_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], 9024 [Sed that helps us avoid accidentally triggering echo(1) options like -n]) 9025])# _LT_DECL_SED 9026 9027m4_ifndef([AC_PROG_SED], [ 9028# NOTE: This macro has been submitted for inclusion into # 9029# GNU Autoconf as AC_PROG_SED. When it is available in # 9030# a released version of Autoconf we should remove this # 9031# macro and use it instead. # 9032 9033m4_defun([AC_PROG_SED], 9034[AC_MSG_CHECKING([for a sed that does not truncate output]) 9035AC_CACHE_VAL(lt_cv_path_SED, 9036[# Loop through the user's path and test for sed and gsed. 9037# Then use that list of sed's as ones to test for truncation. 9038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9039for as_dir in $PATH 9040do 9041 IFS=$as_save_IFS 9042 test -z "$as_dir" && as_dir=. 9043 for lt_ac_prog in sed gsed; do 9044 for ac_exec_ext in '' $ac_executable_extensions; do 9045 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 9046 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 9047 fi 9048 done 9049 done 9050done 9051IFS=$as_save_IFS 9052lt_ac_max=0 9053lt_ac_count=0 9054# Add /usr/xpg4/bin/sed as it is typically found on Solaris 9055# along with /bin/sed that truncates output. 9056for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 9057 test ! -f "$lt_ac_sed" && continue 9058 cat /dev/null > conftest.in 9059 lt_ac_count=0 9060 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 9061 # Check for GNU sed and select it if it is found. 9062 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 9063 lt_cv_path_SED=$lt_ac_sed 9064 break 9065 fi 9066 while true; do 9067 cat conftest.in conftest.in >conftest.tmp 9068 mv conftest.tmp conftest.in 9069 cp conftest.in conftest.nl 9070 echo >>conftest.nl 9071 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 9072 cmp -s conftest.out conftest.nl || break 9073 # 10000 chars as input seems more than enough 9074 test 10 -lt "$lt_ac_count" && break 9075 lt_ac_count=`expr $lt_ac_count + 1` 9076 if test "$lt_ac_count" -gt "$lt_ac_max"; then 9077 lt_ac_max=$lt_ac_count 9078 lt_cv_path_SED=$lt_ac_sed 9079 fi 9080 done 9081done 9082]) 9083SED=$lt_cv_path_SED 9084AC_SUBST([SED]) 9085AC_MSG_RESULT([$SED]) 9086])#AC_PROG_SED 9087])#m4_ifndef 9088 9089# Old name: 9090AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) 9091dnl aclocal-1.4 backwards compatibility: 9092dnl AC_DEFUN([LT_AC_PROG_SED], []) 9093 9094 9095# _LT_CHECK_SHELL_FEATURES 9096# ------------------------ 9097# Find out whether the shell is Bourne or XSI compatible, 9098# or has some other useful features. 9099m4_defun([_LT_CHECK_SHELL_FEATURES], 9100[if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 9101 lt_unset=unset 9102else 9103 lt_unset=false 9104fi 9105_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl 9106 9107# test EBCDIC or ASCII 9108case `echo X|tr X '\101'` in 9109 A) # ASCII based system 9110 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 9111 lt_SP2NL='tr \040 \012' 9112 lt_NL2SP='tr \015\012 \040\040' 9113 ;; 9114 *) # EBCDIC based system 9115 lt_SP2NL='tr \100 \n' 9116 lt_NL2SP='tr \r\n \100\100' 9117 ;; 9118esac 9119_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl 9120_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl 9121])# _LT_CHECK_SHELL_FEATURES 9122 9123 9124# _LT_PATH_CONVERSION_FUNCTIONS 9125# ----------------------------- 9126# Determine what file name conversion functions should be used by 9127# func_to_host_file (and, implicitly, by func_to_host_path). These are needed 9128# for certain cross-compile configurations and native mingw. 9129m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], 9130[AC_REQUIRE([AC_CANONICAL_HOST])dnl 9131AC_REQUIRE([AC_CANONICAL_BUILD])dnl 9132AC_MSG_CHECKING([how to convert $build file names to $host format]) 9133AC_CACHE_VAL(lt_cv_to_host_file_cmd, 9134[case $host in 9135 *-*-mingw* ) 9136 case $build in 9137 *-*-mingw* ) # actually msys 9138 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 9139 ;; 9140 *-*-cygwin* ) 9141 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 9142 ;; 9143 * ) # otherwise, assume *nix 9144 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 9145 ;; 9146 esac 9147 ;; 9148 *-*-cygwin* ) 9149 case $build in 9150 *-*-mingw* ) # actually msys 9151 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 9152 ;; 9153 *-*-cygwin* ) 9154 lt_cv_to_host_file_cmd=func_convert_file_noop 9155 ;; 9156 * ) # otherwise, assume *nix 9157 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 9158 ;; 9159 esac 9160 ;; 9161 * ) # unhandled hosts (and "normal" native builds) 9162 lt_cv_to_host_file_cmd=func_convert_file_noop 9163 ;; 9164esac 9165]) 9166to_host_file_cmd=$lt_cv_to_host_file_cmd 9167AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) 9168_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], 9169 [0], [convert $build file names to $host format])dnl 9170 9171AC_MSG_CHECKING([how to convert $build file names to toolchain format]) 9172AC_CACHE_VAL(lt_cv_to_tool_file_cmd, 9173[#assume ordinary cross tools, or native build. 9174lt_cv_to_tool_file_cmd=func_convert_file_noop 9175case $host in 9176 *-*-mingw* ) 9177 case $build in 9178 *-*-mingw* ) # actually msys 9179 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 9180 ;; 9181 esac 9182 ;; 9183esac 9184]) 9185to_tool_file_cmd=$lt_cv_to_tool_file_cmd 9186AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) 9187_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], 9188 [0], [convert $build files to toolchain format])dnl 9189])# _LT_PATH_CONVERSION_FUNCTIONS 9190 9191# Helper functions for option handling. -*- Autoconf -*- 9192# 9193# Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software 9194# Foundation, Inc. 9195# Written by Gary V. Vaughan, 2004 9196# 9197# This file is free software; the Free Software Foundation gives 9198# unlimited permission to copy and/or distribute it, with or without 9199# modifications, as long as this notice is preserved. 9200 9201# serial 8 ltoptions.m4 9202 9203# This is to help aclocal find these macros, as it can't see m4_define. 9204AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) 9205 9206 9207# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) 9208# ------------------------------------------ 9209m4_define([_LT_MANGLE_OPTION], 9210[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) 9211 9212 9213# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) 9214# --------------------------------------- 9215# Set option OPTION-NAME for macro MACRO-NAME, and if there is a 9216# matching handler defined, dispatch to it. Other OPTION-NAMEs are 9217# saved as a flag. 9218m4_define([_LT_SET_OPTION], 9219[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl 9220m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), 9221 _LT_MANGLE_DEFUN([$1], [$2]), 9222 [m4_warning([Unknown $1 option '$2'])])[]dnl 9223]) 9224 9225 9226# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) 9227# ------------------------------------------------------------ 9228# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 9229m4_define([_LT_IF_OPTION], 9230[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) 9231 9232 9233# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) 9234# ------------------------------------------------------- 9235# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME 9236# are set. 9237m4_define([_LT_UNLESS_OPTIONS], 9238[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 9239 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), 9240 [m4_define([$0_found])])])[]dnl 9241m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 9242])[]dnl 9243]) 9244 9245 9246# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) 9247# ---------------------------------------- 9248# OPTION-LIST is a space-separated list of Libtool options associated 9249# with MACRO-NAME. If any OPTION has a matching handler declared with 9250# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about 9251# the unknown option and exit. 9252m4_defun([_LT_SET_OPTIONS], 9253[# Set options 9254m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 9255 [_LT_SET_OPTION([$1], _LT_Option)]) 9256 9257m4_if([$1],[LT_INIT],[ 9258 dnl 9259 dnl Simply set some default values (i.e off) if boolean options were not 9260 dnl specified: 9261 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no 9262 ]) 9263 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no 9264 ]) 9265 dnl 9266 dnl If no reference was made to various pairs of opposing options, then 9267 dnl we run the default mode handler for the pair. For example, if neither 9268 dnl 'shared' nor 'disable-shared' was passed, we enable building of shared 9269 dnl archives by default: 9270 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) 9271 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) 9272 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) 9273 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], 9274 [_LT_ENABLE_FAST_INSTALL]) 9275 _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4], 9276 [_LT_WITH_AIX_SONAME([aix])]) 9277 ]) 9278])# _LT_SET_OPTIONS 9279 9280 9281 9282# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) 9283# ----------------------------------------- 9284m4_define([_LT_MANGLE_DEFUN], 9285[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) 9286 9287 9288# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) 9289# ----------------------------------------------- 9290m4_define([LT_OPTION_DEFINE], 9291[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl 9292])# LT_OPTION_DEFINE 9293 9294 9295# dlopen 9296# ------ 9297LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes 9298]) 9299 9300AU_DEFUN([AC_LIBTOOL_DLOPEN], 9301[_LT_SET_OPTION([LT_INIT], [dlopen]) 9302AC_DIAGNOSE([obsolete], 9303[$0: Remove this warning and the call to _LT_SET_OPTION when you 9304put the 'dlopen' option into LT_INIT's first parameter.]) 9305]) 9306 9307dnl aclocal-1.4 backwards compatibility: 9308dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) 9309 9310 9311# win32-dll 9312# --------- 9313# Declare package support for building win32 dll's. 9314LT_OPTION_DEFINE([LT_INIT], [win32-dll], 9315[enable_win32_dll=yes 9316 9317case $host in 9318*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 9319 AC_CHECK_TOOL(AS, as, false) 9320 AC_CHECK_TOOL(DLLTOOL, dlltool, false) 9321 AC_CHECK_TOOL(OBJDUMP, objdump, false) 9322 ;; 9323esac 9324 9325test -z "$AS" && AS=as 9326_LT_DECL([], [AS], [1], [Assembler program])dnl 9327 9328test -z "$DLLTOOL" && DLLTOOL=dlltool 9329_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl 9330 9331test -z "$OBJDUMP" && OBJDUMP=objdump 9332_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl 9333])# win32-dll 9334 9335AU_DEFUN([AC_LIBTOOL_WIN32_DLL], 9336[AC_REQUIRE([AC_CANONICAL_HOST])dnl 9337_LT_SET_OPTION([LT_INIT], [win32-dll]) 9338AC_DIAGNOSE([obsolete], 9339[$0: Remove this warning and the call to _LT_SET_OPTION when you 9340put the 'win32-dll' option into LT_INIT's first parameter.]) 9341]) 9342 9343dnl aclocal-1.4 backwards compatibility: 9344dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) 9345 9346 9347# _LT_ENABLE_SHARED([DEFAULT]) 9348# ---------------------------- 9349# implement the --enable-shared flag, and supports the 'shared' and 9350# 'disable-shared' LT_INIT options. 9351# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 9352m4_define([_LT_ENABLE_SHARED], 9353[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl 9354AC_ARG_ENABLE([shared], 9355 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 9356 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], 9357 [p=${PACKAGE-default} 9358 case $enableval in 9359 yes) enable_shared=yes ;; 9360 no) enable_shared=no ;; 9361 *) 9362 enable_shared=no 9363 # Look at the argument we got. We use all the common list separators. 9364 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9365 for pkg in $enableval; do 9366 IFS=$lt_save_ifs 9367 if test "X$pkg" = "X$p"; then 9368 enable_shared=yes 9369 fi 9370 done 9371 IFS=$lt_save_ifs 9372 ;; 9373 esac], 9374 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) 9375 9376 _LT_DECL([build_libtool_libs], [enable_shared], [0], 9377 [Whether or not to build shared libraries]) 9378])# _LT_ENABLE_SHARED 9379 9380LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) 9381LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) 9382 9383# Old names: 9384AC_DEFUN([AC_ENABLE_SHARED], 9385[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) 9386]) 9387 9388AC_DEFUN([AC_DISABLE_SHARED], 9389[_LT_SET_OPTION([LT_INIT], [disable-shared]) 9390]) 9391 9392AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 9393AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 9394 9395dnl aclocal-1.4 backwards compatibility: 9396dnl AC_DEFUN([AM_ENABLE_SHARED], []) 9397dnl AC_DEFUN([AM_DISABLE_SHARED], []) 9398 9399 9400 9401# _LT_ENABLE_STATIC([DEFAULT]) 9402# ---------------------------- 9403# implement the --enable-static flag, and support the 'static' and 9404# 'disable-static' LT_INIT options. 9405# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 9406m4_define([_LT_ENABLE_STATIC], 9407[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl 9408AC_ARG_ENABLE([static], 9409 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], 9410 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], 9411 [p=${PACKAGE-default} 9412 case $enableval in 9413 yes) enable_static=yes ;; 9414 no) enable_static=no ;; 9415 *) 9416 enable_static=no 9417 # Look at the argument we got. We use all the common list separators. 9418 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9419 for pkg in $enableval; do 9420 IFS=$lt_save_ifs 9421 if test "X$pkg" = "X$p"; then 9422 enable_static=yes 9423 fi 9424 done 9425 IFS=$lt_save_ifs 9426 ;; 9427 esac], 9428 [enable_static=]_LT_ENABLE_STATIC_DEFAULT) 9429 9430 _LT_DECL([build_old_libs], [enable_static], [0], 9431 [Whether or not to build static libraries]) 9432])# _LT_ENABLE_STATIC 9433 9434LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) 9435LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) 9436 9437# Old names: 9438AC_DEFUN([AC_ENABLE_STATIC], 9439[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) 9440]) 9441 9442AC_DEFUN([AC_DISABLE_STATIC], 9443[_LT_SET_OPTION([LT_INIT], [disable-static]) 9444]) 9445 9446AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 9447AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 9448 9449dnl aclocal-1.4 backwards compatibility: 9450dnl AC_DEFUN([AM_ENABLE_STATIC], []) 9451dnl AC_DEFUN([AM_DISABLE_STATIC], []) 9452 9453 9454 9455# _LT_ENABLE_FAST_INSTALL([DEFAULT]) 9456# ---------------------------------- 9457# implement the --enable-fast-install flag, and support the 'fast-install' 9458# and 'disable-fast-install' LT_INIT options. 9459# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 9460m4_define([_LT_ENABLE_FAST_INSTALL], 9461[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl 9462AC_ARG_ENABLE([fast-install], 9463 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 9464 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 9465 [p=${PACKAGE-default} 9466 case $enableval in 9467 yes) enable_fast_install=yes ;; 9468 no) enable_fast_install=no ;; 9469 *) 9470 enable_fast_install=no 9471 # Look at the argument we got. We use all the common list separators. 9472 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9473 for pkg in $enableval; do 9474 IFS=$lt_save_ifs 9475 if test "X$pkg" = "X$p"; then 9476 enable_fast_install=yes 9477 fi 9478 done 9479 IFS=$lt_save_ifs 9480 ;; 9481 esac], 9482 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) 9483 9484_LT_DECL([fast_install], [enable_fast_install], [0], 9485 [Whether or not to optimize for fast installation])dnl 9486])# _LT_ENABLE_FAST_INSTALL 9487 9488LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) 9489LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) 9490 9491# Old names: 9492AU_DEFUN([AC_ENABLE_FAST_INSTALL], 9493[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) 9494AC_DIAGNOSE([obsolete], 9495[$0: Remove this warning and the call to _LT_SET_OPTION when you put 9496the 'fast-install' option into LT_INIT's first parameter.]) 9497]) 9498 9499AU_DEFUN([AC_DISABLE_FAST_INSTALL], 9500[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) 9501AC_DIAGNOSE([obsolete], 9502[$0: Remove this warning and the call to _LT_SET_OPTION when you put 9503the 'disable-fast-install' option into LT_INIT's first parameter.]) 9504]) 9505 9506dnl aclocal-1.4 backwards compatibility: 9507dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) 9508dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) 9509 9510 9511# _LT_WITH_AIX_SONAME([DEFAULT]) 9512# ---------------------------------- 9513# implement the --with-aix-soname flag, and support the `aix-soname=aix' 9514# and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT 9515# is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'. 9516m4_define([_LT_WITH_AIX_SONAME], 9517[m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl 9518shared_archive_member_spec= 9519case $host,$enable_shared in 9520power*-*-aix[[5-9]]*,yes) 9521 AC_MSG_CHECKING([which variant of shared library versioning to provide]) 9522 AC_ARG_WITH([aix-soname], 9523 [AS_HELP_STRING([--with-aix-soname=aix|svr4|both], 9524 [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])], 9525 [case $withval in 9526 aix|svr4|both) 9527 ;; 9528 *) 9529 AC_MSG_ERROR([Unknown argument to --with-aix-soname]) 9530 ;; 9531 esac 9532 lt_cv_with_aix_soname=$with_aix_soname], 9533 [AC_CACHE_VAL([lt_cv_with_aix_soname], 9534 [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT) 9535 with_aix_soname=$lt_cv_with_aix_soname]) 9536 AC_MSG_RESULT([$with_aix_soname]) 9537 if test aix != "$with_aix_soname"; then 9538 # For the AIX way of multilib, we name the shared archive member 9539 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9540 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9541 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9542 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9543 if test 64 = "${OBJECT_MODE-32}"; then 9544 shared_archive_member_spec=shr_64 9545 else 9546 shared_archive_member_spec=shr 9547 fi 9548 fi 9549 ;; 9550*) 9551 with_aix_soname=aix 9552 ;; 9553esac 9554 9555_LT_DECL([], [shared_archive_member_spec], [0], 9556 [Shared archive member basename, for filename based shared library versioning on AIX])dnl 9557])# _LT_WITH_AIX_SONAME 9558 9559LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])]) 9560LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])]) 9561LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])]) 9562 9563 9564# _LT_WITH_PIC([MODE]) 9565# -------------------- 9566# implement the --with-pic flag, and support the 'pic-only' and 'no-pic' 9567# LT_INIT options. 9568# MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'. 9569m4_define([_LT_WITH_PIC], 9570[AC_ARG_WITH([pic], 9571 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], 9572 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 9573 [lt_p=${PACKAGE-default} 9574 case $withval in 9575 yes|no) pic_mode=$withval ;; 9576 *) 9577 pic_mode=default 9578 # Look at the argument we got. We use all the common list separators. 9579 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9580 for lt_pkg in $withval; do 9581 IFS=$lt_save_ifs 9582 if test "X$lt_pkg" = "X$lt_p"; then 9583 pic_mode=yes 9584 fi 9585 done 9586 IFS=$lt_save_ifs 9587 ;; 9588 esac], 9589 [pic_mode=m4_default([$1], [default])]) 9590 9591_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl 9592])# _LT_WITH_PIC 9593 9594LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) 9595LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) 9596 9597# Old name: 9598AU_DEFUN([AC_LIBTOOL_PICMODE], 9599[_LT_SET_OPTION([LT_INIT], [pic-only]) 9600AC_DIAGNOSE([obsolete], 9601[$0: Remove this warning and the call to _LT_SET_OPTION when you 9602put the 'pic-only' option into LT_INIT's first parameter.]) 9603]) 9604 9605dnl aclocal-1.4 backwards compatibility: 9606dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) 9607 9608 9609m4_define([_LTDL_MODE], []) 9610LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], 9611 [m4_define([_LTDL_MODE], [nonrecursive])]) 9612LT_OPTION_DEFINE([LTDL_INIT], [recursive], 9613 [m4_define([_LTDL_MODE], [recursive])]) 9614LT_OPTION_DEFINE([LTDL_INIT], [subproject], 9615 [m4_define([_LTDL_MODE], [subproject])]) 9616 9617m4_define([_LTDL_TYPE], []) 9618LT_OPTION_DEFINE([LTDL_INIT], [installable], 9619 [m4_define([_LTDL_TYPE], [installable])]) 9620LT_OPTION_DEFINE([LTDL_INIT], [convenience], 9621 [m4_define([_LTDL_TYPE], [convenience])]) 9622 9623# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- 9624# 9625# Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software 9626# Foundation, Inc. 9627# Written by Gary V. Vaughan, 2004 9628# 9629# This file is free software; the Free Software Foundation gives 9630# unlimited permission to copy and/or distribute it, with or without 9631# modifications, as long as this notice is preserved. 9632 9633# serial 6 ltsugar.m4 9634 9635# This is to help aclocal find these macros, as it can't see m4_define. 9636AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) 9637 9638 9639# lt_join(SEP, ARG1, [ARG2...]) 9640# ----------------------------- 9641# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their 9642# associated separator. 9643# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier 9644# versions in m4sugar had bugs. 9645m4_define([lt_join], 9646[m4_if([$#], [1], [], 9647 [$#], [2], [[$2]], 9648 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) 9649m4_define([_lt_join], 9650[m4_if([$#$2], [2], [], 9651 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) 9652 9653 9654# lt_car(LIST) 9655# lt_cdr(LIST) 9656# ------------ 9657# Manipulate m4 lists. 9658# These macros are necessary as long as will still need to support 9659# Autoconf-2.59, which quotes differently. 9660m4_define([lt_car], [[$1]]) 9661m4_define([lt_cdr], 9662[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], 9663 [$#], 1, [], 9664 [m4_dquote(m4_shift($@))])]) 9665m4_define([lt_unquote], $1) 9666 9667 9668# lt_append(MACRO-NAME, STRING, [SEPARATOR]) 9669# ------------------------------------------ 9670# Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'. 9671# Note that neither SEPARATOR nor STRING are expanded; they are appended 9672# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). 9673# No SEPARATOR is output if MACRO-NAME was previously undefined (different 9674# than defined and empty). 9675# 9676# This macro is needed until we can rely on Autoconf 2.62, since earlier 9677# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. 9678m4_define([lt_append], 9679[m4_define([$1], 9680 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) 9681 9682 9683 9684# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) 9685# ---------------------------------------------------------- 9686# Produce a SEP delimited list of all paired combinations of elements of 9687# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list 9688# has the form PREFIXmINFIXSUFFIXn. 9689# Needed until we can rely on m4_combine added in Autoconf 2.62. 9690m4_define([lt_combine], 9691[m4_if(m4_eval([$# > 3]), [1], 9692 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl 9693[[m4_foreach([_Lt_prefix], [$2], 9694 [m4_foreach([_Lt_suffix], 9695 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, 9696 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) 9697 9698 9699# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) 9700# ----------------------------------------------------------------------- 9701# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited 9702# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. 9703m4_define([lt_if_append_uniq], 9704[m4_ifdef([$1], 9705 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], 9706 [lt_append([$1], [$2], [$3])$4], 9707 [$5])], 9708 [lt_append([$1], [$2], [$3])$4])]) 9709 9710 9711# lt_dict_add(DICT, KEY, VALUE) 9712# ----------------------------- 9713m4_define([lt_dict_add], 9714[m4_define([$1($2)], [$3])]) 9715 9716 9717# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) 9718# -------------------------------------------- 9719m4_define([lt_dict_add_subkey], 9720[m4_define([$1($2:$3)], [$4])]) 9721 9722 9723# lt_dict_fetch(DICT, KEY, [SUBKEY]) 9724# ---------------------------------- 9725m4_define([lt_dict_fetch], 9726[m4_ifval([$3], 9727 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), 9728 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) 9729 9730 9731# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) 9732# ----------------------------------------------------------------- 9733m4_define([lt_if_dict_fetch], 9734[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], 9735 [$5], 9736 [$6])]) 9737 9738 9739# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) 9740# -------------------------------------------------------------- 9741m4_define([lt_dict_filter], 9742[m4_if([$5], [], [], 9743 [lt_join(m4_quote(m4_default([$4], [[, ]])), 9744 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), 9745 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl 9746]) 9747 9748# ltversion.m4 -- version numbers -*- Autoconf -*- 9749# 9750# Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc. 9751# Written by Scott James Remnant, 2004 9752# 9753# This file is free software; the Free Software Foundation gives 9754# unlimited permission to copy and/or distribute it, with or without 9755# modifications, as long as this notice is preserved. 9756 9757# @configure_input@ 9758 9759# serial 4179 ltversion.m4 9760# This file is part of GNU Libtool 9761 9762m4_define([LT_PACKAGE_VERSION], [2.4.6]) 9763m4_define([LT_PACKAGE_REVISION], [2.4.6]) 9764 9765AC_DEFUN([LTVERSION_VERSION], 9766[macro_version='2.4.6' 9767macro_revision='2.4.6' 9768_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 9769_LT_DECL(, macro_revision, 0) 9770]) 9771 9772# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- 9773# 9774# Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software 9775# Foundation, Inc. 9776# Written by Scott James Remnant, 2004. 9777# 9778# This file is free software; the Free Software Foundation gives 9779# unlimited permission to copy and/or distribute it, with or without 9780# modifications, as long as this notice is preserved. 9781 9782# serial 5 lt~obsolete.m4 9783 9784# These exist entirely to fool aclocal when bootstrapping libtool. 9785# 9786# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN), 9787# which have later been changed to m4_define as they aren't part of the 9788# exported API, or moved to Autoconf or Automake where they belong. 9789# 9790# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN 9791# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us 9792# using a macro with the same name in our local m4/libtool.m4 it'll 9793# pull the old libtool.m4 in (it doesn't see our shiny new m4_define 9794# and doesn't know about Autoconf macros at all.) 9795# 9796# So we provide this file, which has a silly filename so it's always 9797# included after everything else. This provides aclocal with the 9798# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything 9799# because those macros already exist, or will be overwritten later. 9800# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 9801# 9802# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. 9803# Yes, that means every name once taken will need to remain here until 9804# we give up compatibility with versions before 1.7, at which point 9805# we need to keep only those names which we still refer to. 9806 9807# This is to help aclocal find these macros, as it can't see m4_define. 9808AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) 9809 9810m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) 9811m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) 9812m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) 9813m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) 9814m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) 9815m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) 9816m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) 9817m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) 9818m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) 9819m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) 9820m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) 9821m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) 9822m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) 9823m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) 9824m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) 9825m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) 9826m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) 9827m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) 9828m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) 9829m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) 9830m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) 9831m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) 9832m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) 9833m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) 9834m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) 9835m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) 9836m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) 9837m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) 9838m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) 9839m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) 9840m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) 9841m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) 9842m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) 9843m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) 9844m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) 9845m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) 9846m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) 9847m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) 9848m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) 9849m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) 9850m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) 9851m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) 9852m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) 9853m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) 9854m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) 9855m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) 9856m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) 9857m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) 9858m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) 9859m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) 9860m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) 9861m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) 9862m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) 9863m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) 9864m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) 9865m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) 9866m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) 9867m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) 9868m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) 9869m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) 9870m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) 9871 9872# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 9873# serial 11 (pkg-config-0.29.1) 9874 9875dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 9876dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com> 9877dnl 9878dnl This program is free software; you can redistribute it and/or modify 9879dnl it under the terms of the GNU General Public License as published by 9880dnl the Free Software Foundation; either version 2 of the License, or 9881dnl (at your option) any later version. 9882dnl 9883dnl This program is distributed in the hope that it will be useful, but 9884dnl WITHOUT ANY WARRANTY; without even the implied warranty of 9885dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9886dnl General Public License for more details. 9887dnl 9888dnl You should have received a copy of the GNU General Public License 9889dnl along with this program; if not, write to the Free Software 9890dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 9891dnl 02111-1307, USA. 9892dnl 9893dnl As a special exception to the GNU General Public License, if you 9894dnl distribute this file as part of a program that contains a 9895dnl configuration script generated by Autoconf, you may include it under 9896dnl the same distribution terms that you use for the rest of that 9897dnl program. 9898 9899dnl PKG_PREREQ(MIN-VERSION) 9900dnl ----------------------- 9901dnl Since: 0.29 9902dnl 9903dnl Verify that the version of the pkg-config macros are at least 9904dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's 9905dnl installed version of pkg-config, this checks the developer's version 9906dnl of pkg.m4 when generating configure. 9907dnl 9908dnl To ensure that this macro is defined, also add: 9909dnl m4_ifndef([PKG_PREREQ], 9910dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])]) 9911dnl 9912dnl See the "Since" comment for each macro you use to see what version 9913dnl of the macros you require. 9914m4_defun([PKG_PREREQ], 9915[m4_define([PKG_MACROS_VERSION], [0.29.1]) 9916m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, 9917 [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) 9918])dnl PKG_PREREQ 9919 9920dnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) 9921dnl ---------------------------------- 9922dnl Since: 0.16 9923dnl 9924dnl Search for the pkg-config tool and set the PKG_CONFIG variable to 9925dnl first found in the path. Checks that the version of pkg-config found 9926dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is 9927dnl used since that's the first version where most current features of 9928dnl pkg-config existed. 9929AC_DEFUN([PKG_PROG_PKG_CONFIG], 9930[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) 9931m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) 9932m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) 9933AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) 9934AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) 9935AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) 9936 9937if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 9938 AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) 9939fi 9940if test -n "$PKG_CONFIG"; then 9941 _pkg_min_version=m4_default([$1], [0.9.0]) 9942 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) 9943 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 9944 AC_MSG_RESULT([yes]) 9945 else 9946 AC_MSG_RESULT([no]) 9947 PKG_CONFIG="" 9948 fi 9949fi[]dnl 9950])dnl PKG_PROG_PKG_CONFIG 9951 9952dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 9953dnl ------------------------------------------------------------------- 9954dnl Since: 0.18 9955dnl 9956dnl Check to see whether a particular set of modules exists. Similar to 9957dnl PKG_CHECK_MODULES(), but does not set variables or print errors. 9958dnl 9959dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 9960dnl only at the first occurence in configure.ac, so if the first place 9961dnl it's called might be skipped (such as if it is within an "if", you 9962dnl have to call PKG_CHECK_EXISTS manually 9963AC_DEFUN([PKG_CHECK_EXISTS], 9964[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 9965if test -n "$PKG_CONFIG" && \ 9966 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then 9967 m4_default([$2], [:]) 9968m4_ifvaln([$3], [else 9969 $3])dnl 9970fi]) 9971 9972dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 9973dnl --------------------------------------------- 9974dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting 9975dnl pkg_failed based on the result. 9976m4_define([_PKG_CONFIG], 9977[if test -n "$$1"; then 9978 pkg_cv_[]$1="$$1" 9979 elif test -n "$PKG_CONFIG"; then 9980 PKG_CHECK_EXISTS([$3], 9981 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` 9982 test "x$?" != "x0" && pkg_failed=yes ], 9983 [pkg_failed=yes]) 9984 else 9985 pkg_failed=untried 9986fi[]dnl 9987])dnl _PKG_CONFIG 9988 9989dnl _PKG_SHORT_ERRORS_SUPPORTED 9990dnl --------------------------- 9991dnl Internal check to see if pkg-config supports short errors. 9992AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], 9993[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 9994if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 9995 _pkg_short_errors_supported=yes 9996else 9997 _pkg_short_errors_supported=no 9998fi[]dnl 9999])dnl _PKG_SHORT_ERRORS_SUPPORTED 10000 10001 10002dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 10003dnl [ACTION-IF-NOT-FOUND]) 10004dnl -------------------------------------------------------------- 10005dnl Since: 0.4.0 10006dnl 10007dnl Note that if there is a possibility the first call to 10008dnl PKG_CHECK_MODULES might not happen, you should be sure to include an 10009dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 10010AC_DEFUN([PKG_CHECK_MODULES], 10011[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 10012AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl 10013AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl 10014 10015pkg_failed=no 10016AC_MSG_CHECKING([for $1]) 10017 10018_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) 10019_PKG_CONFIG([$1][_LIBS], [libs], [$2]) 10020 10021m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS 10022and $1[]_LIBS to avoid the need to call pkg-config. 10023See the pkg-config man page for more details.]) 10024 10025if test $pkg_failed = yes; then 10026 AC_MSG_RESULT([no]) 10027 _PKG_SHORT_ERRORS_SUPPORTED 10028 if test $_pkg_short_errors_supported = yes; then 10029 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` 10030 else 10031 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` 10032 fi 10033 # Put the nasty error message in config.log where it belongs 10034 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD 10035 10036 m4_default([$4], [AC_MSG_ERROR( 10037[Package requirements ($2) were not met: 10038 10039$$1_PKG_ERRORS 10040 10041Consider adjusting the PKG_CONFIG_PATH environment variable if you 10042installed software in a non-standard prefix. 10043 10044_PKG_TEXT])[]dnl 10045 ]) 10046elif test $pkg_failed = untried; then 10047 AC_MSG_RESULT([no]) 10048 m4_default([$4], [AC_MSG_FAILURE( 10049[The pkg-config script could not be found or is too old. Make sure it 10050is in your PATH or set the PKG_CONFIG environment variable to the full 10051path to pkg-config. 10052 10053_PKG_TEXT 10054 10055To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl 10056 ]) 10057else 10058 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS 10059 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS 10060 AC_MSG_RESULT([yes]) 10061 $3 10062fi[]dnl 10063])dnl PKG_CHECK_MODULES 10064 10065 10066dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 10067dnl [ACTION-IF-NOT-FOUND]) 10068dnl --------------------------------------------------------------------- 10069dnl Since: 0.29 10070dnl 10071dnl Checks for existence of MODULES and gathers its build flags with 10072dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags 10073dnl and VARIABLE-PREFIX_LIBS from --libs. 10074dnl 10075dnl Note that if there is a possibility the first call to 10076dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to 10077dnl include an explicit call to PKG_PROG_PKG_CONFIG in your 10078dnl configure.ac. 10079AC_DEFUN([PKG_CHECK_MODULES_STATIC], 10080[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 10081_save_PKG_CONFIG=$PKG_CONFIG 10082PKG_CONFIG="$PKG_CONFIG --static" 10083PKG_CHECK_MODULES($@) 10084PKG_CONFIG=$_save_PKG_CONFIG[]dnl 10085])dnl PKG_CHECK_MODULES_STATIC 10086 10087 10088dnl PKG_INSTALLDIR([DIRECTORY]) 10089dnl ------------------------- 10090dnl Since: 0.27 10091dnl 10092dnl Substitutes the variable pkgconfigdir as the location where a module 10093dnl should install pkg-config .pc files. By default the directory is 10094dnl $libdir/pkgconfig, but the default can be changed by passing 10095dnl DIRECTORY. The user can override through the --with-pkgconfigdir 10096dnl parameter. 10097AC_DEFUN([PKG_INSTALLDIR], 10098[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) 10099m4_pushdef([pkg_description], 10100 [pkg-config installation directory @<:@]pkg_default[@:>@]) 10101AC_ARG_WITH([pkgconfigdir], 10102 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, 10103 [with_pkgconfigdir=]pkg_default) 10104AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) 10105m4_popdef([pkg_default]) 10106m4_popdef([pkg_description]) 10107])dnl PKG_INSTALLDIR 10108 10109 10110dnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) 10111dnl -------------------------------- 10112dnl Since: 0.27 10113dnl 10114dnl Substitutes the variable noarch_pkgconfigdir as the location where a 10115dnl module should install arch-independent pkg-config .pc files. By 10116dnl default the directory is $datadir/pkgconfig, but the default can be 10117dnl changed by passing DIRECTORY. The user can override through the 10118dnl --with-noarch-pkgconfigdir parameter. 10119AC_DEFUN([PKG_NOARCH_INSTALLDIR], 10120[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) 10121m4_pushdef([pkg_description], 10122 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) 10123AC_ARG_WITH([noarch-pkgconfigdir], 10124 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, 10125 [with_noarch_pkgconfigdir=]pkg_default) 10126AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) 10127m4_popdef([pkg_default]) 10128m4_popdef([pkg_description]) 10129])dnl PKG_NOARCH_INSTALLDIR 10130 10131 10132dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, 10133dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 10134dnl ------------------------------------------- 10135dnl Since: 0.28 10136dnl 10137dnl Retrieves the value of the pkg-config variable for the given module. 10138AC_DEFUN([PKG_CHECK_VAR], 10139[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 10140AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl 10141 10142_PKG_CONFIG([$1], [variable="][$3]["], [$2]) 10143AS_VAR_COPY([$1], [pkg_cv_][$1]) 10144 10145AS_VAR_IF([$1], [""], [$5], [$4])dnl 10146])dnl PKG_CHECK_VAR 10147 10148dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES, 10149dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND], 10150dnl [DESCRIPTION], [DEFAULT]) 10151dnl ------------------------------------------ 10152dnl 10153dnl Prepare a "--with-" configure option using the lowercase 10154dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and 10155dnl PKG_CHECK_MODULES in a single macro. 10156AC_DEFUN([PKG_WITH_MODULES], 10157[ 10158m4_pushdef([with_arg], m4_tolower([$1])) 10159 10160m4_pushdef([description], 10161 [m4_default([$5], [build with ]with_arg[ support])]) 10162 10163m4_pushdef([def_arg], [m4_default([$6], [auto])]) 10164m4_pushdef([def_action_if_found], [AS_TR_SH([with_]with_arg)=yes]) 10165m4_pushdef([def_action_if_not_found], [AS_TR_SH([with_]with_arg)=no]) 10166 10167m4_case(def_arg, 10168 [yes],[m4_pushdef([with_without], [--without-]with_arg)], 10169 [m4_pushdef([with_without],[--with-]with_arg)]) 10170 10171AC_ARG_WITH(with_arg, 10172 AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),, 10173 [AS_TR_SH([with_]with_arg)=def_arg]) 10174 10175AS_CASE([$AS_TR_SH([with_]with_arg)], 10176 [yes],[PKG_CHECK_MODULES([$1],[$2],$3,$4)], 10177 [auto],[PKG_CHECK_MODULES([$1],[$2], 10178 [m4_n([def_action_if_found]) $3], 10179 [m4_n([def_action_if_not_found]) $4])]) 10180 10181m4_popdef([with_arg]) 10182m4_popdef([description]) 10183m4_popdef([def_arg]) 10184 10185])dnl PKG_WITH_MODULES 10186 10187dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES, 10188dnl [DESCRIPTION], [DEFAULT]) 10189dnl ----------------------------------------------- 10190dnl 10191dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES 10192dnl check._[VARIABLE-PREFIX] is exported as make variable. 10193AC_DEFUN([PKG_HAVE_WITH_MODULES], 10194[ 10195PKG_WITH_MODULES([$1],[$2],,,[$3],[$4]) 10196 10197AM_CONDITIONAL([HAVE_][$1], 10198 [test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"]) 10199])dnl PKG_HAVE_WITH_MODULES 10200 10201dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES, 10202dnl [DESCRIPTION], [DEFAULT]) 10203dnl ------------------------------------------------------ 10204dnl 10205dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after 10206dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make 10207dnl and preprocessor variable. 10208AC_DEFUN([PKG_HAVE_DEFINE_WITH_MODULES], 10209[ 10210PKG_HAVE_WITH_MODULES([$1],[$2],[$3],[$4]) 10211 10212AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"], 10213 [AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])]) 10214])dnl PKG_HAVE_DEFINE_WITH_MODULES 10215 10216# Copyright (C) 2002-2018 Free Software Foundation, Inc. 10217# 10218# This file is free software; the Free Software Foundation 10219# gives unlimited permission to copy and/or distribute it, 10220# with or without modifications, as long as this notice is preserved. 10221 10222# AM_AUTOMAKE_VERSION(VERSION) 10223# ---------------------------- 10224# Automake X.Y traces this macro to ensure aclocal.m4 has been 10225# generated from the m4 files accompanying Automake X.Y. 10226# (This private macro should not be called outside this file.) 10227AC_DEFUN([AM_AUTOMAKE_VERSION], 10228[am__api_version='1.16' 10229dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 10230dnl require some minimum version. Point them to the right macro. 10231m4_if([$1], [1.16.1], [], 10232 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 10233]) 10234 10235# _AM_AUTOCONF_VERSION(VERSION) 10236# ----------------------------- 10237# aclocal traces this macro to find the Autoconf version. 10238# This is a private macro too. Using m4_define simplifies 10239# the logic in aclocal, which can simply ignore this definition. 10240m4_define([_AM_AUTOCONF_VERSION], []) 10241 10242# AM_SET_CURRENT_AUTOMAKE_VERSION 10243# ------------------------------- 10244# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 10245# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 10246AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 10247[AM_AUTOMAKE_VERSION([1.16.1])dnl 10248m4_ifndef([AC_AUTOCONF_VERSION], 10249 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 10250_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 10251 10252# Figure out how to run the assembler. -*- Autoconf -*- 10253 10254# Copyright (C) 2001-2018 Free Software Foundation, Inc. 10255# 10256# This file is free software; the Free Software Foundation 10257# gives unlimited permission to copy and/or distribute it, 10258# with or without modifications, as long as this notice is preserved. 10259 10260# AM_PROG_AS 10261# ---------- 10262AC_DEFUN([AM_PROG_AS], 10263[# By default we simply use the C compiler to build assembly code. 10264AC_REQUIRE([AC_PROG_CC]) 10265test "${CCAS+set}" = set || CCAS=$CC 10266test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 10267AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)]) 10268AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)]) 10269_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl 10270]) 10271 10272# AM_AUX_DIR_EXPAND -*- Autoconf -*- 10273 10274# Copyright (C) 2001-2018 Free Software Foundation, Inc. 10275# 10276# This file is free software; the Free Software Foundation 10277# gives unlimited permission to copy and/or distribute it, 10278# with or without modifications, as long as this notice is preserved. 10279 10280# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 10281# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to 10282# '$srcdir', '$srcdir/..', or '$srcdir/../..'. 10283# 10284# Of course, Automake must honor this variable whenever it calls a 10285# tool from the auxiliary directory. The problem is that $srcdir (and 10286# therefore $ac_aux_dir as well) can be either absolute or relative, 10287# depending on how configure is run. This is pretty annoying, since 10288# it makes $ac_aux_dir quite unusable in subdirectories: in the top 10289# source directory, any form will work fine, but in subdirectories a 10290# relative path needs to be adjusted first. 10291# 10292# $ac_aux_dir/missing 10293# fails when called from a subdirectory if $ac_aux_dir is relative 10294# $top_srcdir/$ac_aux_dir/missing 10295# fails if $ac_aux_dir is absolute, 10296# fails when called from a subdirectory in a VPATH build with 10297# a relative $ac_aux_dir 10298# 10299# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 10300# are both prefixed by $srcdir. In an in-source build this is usually 10301# harmless because $srcdir is '.', but things will broke when you 10302# start a VPATH build or use an absolute $srcdir. 10303# 10304# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 10305# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 10306# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 10307# and then we would define $MISSING as 10308# MISSING="\${SHELL} $am_aux_dir/missing" 10309# This will work as long as MISSING is not called from configure, because 10310# unfortunately $(top_srcdir) has no meaning in configure. 10311# However there are other variables, like CC, which are often used in 10312# configure, and could therefore not use this "fixed" $ac_aux_dir. 10313# 10314# Another solution, used here, is to always expand $ac_aux_dir to an 10315# absolute PATH. The drawback is that using absolute paths prevent a 10316# configured tree to be moved without reconfiguration. 10317 10318AC_DEFUN([AM_AUX_DIR_EXPAND], 10319[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 10320# Expand $ac_aux_dir to an absolute path. 10321am_aux_dir=`cd "$ac_aux_dir" && pwd` 10322]) 10323 10324# AM_CONDITIONAL -*- Autoconf -*- 10325 10326# Copyright (C) 1997-2018 Free Software Foundation, Inc. 10327# 10328# This file is free software; the Free Software Foundation 10329# gives unlimited permission to copy and/or distribute it, 10330# with or without modifications, as long as this notice is preserved. 10331 10332# AM_CONDITIONAL(NAME, SHELL-CONDITION) 10333# ------------------------------------- 10334# Define a conditional. 10335AC_DEFUN([AM_CONDITIONAL], 10336[AC_PREREQ([2.52])dnl 10337 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 10338 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 10339AC_SUBST([$1_TRUE])dnl 10340AC_SUBST([$1_FALSE])dnl 10341_AM_SUBST_NOTMAKE([$1_TRUE])dnl 10342_AM_SUBST_NOTMAKE([$1_FALSE])dnl 10343m4_define([_AM_COND_VALUE_$1], [$2])dnl 10344if $2; then 10345 $1_TRUE= 10346 $1_FALSE='#' 10347else 10348 $1_TRUE='#' 10349 $1_FALSE= 10350fi 10351AC_CONFIG_COMMANDS_PRE( 10352[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 10353 AC_MSG_ERROR([[conditional "$1" was never defined. 10354Usually this means the macro was only invoked conditionally.]]) 10355fi])]) 10356 10357# Copyright (C) 1999-2018 Free Software Foundation, Inc. 10358# 10359# This file is free software; the Free Software Foundation 10360# gives unlimited permission to copy and/or distribute it, 10361# with or without modifications, as long as this notice is preserved. 10362 10363 10364# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be 10365# written in clear, in which case automake, when reading aclocal.m4, 10366# will think it sees a *use*, and therefore will trigger all it's 10367# C support machinery. Also note that it means that autoscan, seeing 10368# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 10369 10370 10371# _AM_DEPENDENCIES(NAME) 10372# ---------------------- 10373# See how the compiler implements dependency checking. 10374# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". 10375# We try a few techniques and use that to set a single cache variable. 10376# 10377# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 10378# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 10379# dependency, and given that the user is not expected to run this macro, 10380# just rely on AC_PROG_CC. 10381AC_DEFUN([_AM_DEPENDENCIES], 10382[AC_REQUIRE([AM_SET_DEPDIR])dnl 10383AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 10384AC_REQUIRE([AM_MAKE_INCLUDE])dnl 10385AC_REQUIRE([AM_DEP_TRACK])dnl 10386 10387m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], 10388 [$1], [CXX], [depcc="$CXX" am_compiler_list=], 10389 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 10390 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], 10391 [$1], [UPC], [depcc="$UPC" am_compiler_list=], 10392 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 10393 [depcc="$$1" am_compiler_list=]) 10394 10395AC_CACHE_CHECK([dependency style of $depcc], 10396 [am_cv_$1_dependencies_compiler_type], 10397[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 10398 # We make a subdir and do the tests there. Otherwise we can end up 10399 # making bogus files that we don't know about and never remove. For 10400 # instance it was reported that on HP-UX the gcc test will end up 10401 # making a dummy file named 'D' -- because '-MD' means "put the output 10402 # in D". 10403 rm -rf conftest.dir 10404 mkdir conftest.dir 10405 # Copy depcomp to subdir because otherwise we won't find it if we're 10406 # using a relative directory. 10407 cp "$am_depcomp" conftest.dir 10408 cd conftest.dir 10409 # We will build objects and dependencies in a subdirectory because 10410 # it helps to detect inapplicable dependency modes. For instance 10411 # both Tru64's cc and ICC support -MD to output dependencies as a 10412 # side effect of compilation, but ICC will put the dependencies in 10413 # the current directory while Tru64 will put them in the object 10414 # directory. 10415 mkdir sub 10416 10417 am_cv_$1_dependencies_compiler_type=none 10418 if test "$am_compiler_list" = ""; then 10419 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 10420 fi 10421 am__universal=false 10422 m4_case([$1], [CC], 10423 [case " $depcc " in #( 10424 *\ -arch\ *\ -arch\ *) am__universal=true ;; 10425 esac], 10426 [CXX], 10427 [case " $depcc " in #( 10428 *\ -arch\ *\ -arch\ *) am__universal=true ;; 10429 esac]) 10430 10431 for depmode in $am_compiler_list; do 10432 # Setup a source with many dependencies, because some compilers 10433 # like to wrap large dependency lists on column 80 (with \), and 10434 # we should not choose a depcomp mode which is confused by this. 10435 # 10436 # We need to recreate these files for each test, as the compiler may 10437 # overwrite some of them when testing with obscure command lines. 10438 # This happens at least with the AIX C compiler. 10439 : > sub/conftest.c 10440 for i in 1 2 3 4 5 6; do 10441 echo '#include "conftst'$i'.h"' >> sub/conftest.c 10442 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 10443 # Solaris 10 /bin/sh. 10444 echo '/* dummy */' > sub/conftst$i.h 10445 done 10446 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 10447 10448 # We check with '-c' and '-o' for the sake of the "dashmstdout" 10449 # mode. It turns out that the SunPro C++ compiler does not properly 10450 # handle '-M -o', and we need to detect this. Also, some Intel 10451 # versions had trouble with output in subdirs. 10452 am__obj=sub/conftest.${OBJEXT-o} 10453 am__minus_obj="-o $am__obj" 10454 case $depmode in 10455 gcc) 10456 # This depmode causes a compiler race in universal mode. 10457 test "$am__universal" = false || continue 10458 ;; 10459 nosideeffect) 10460 # After this tag, mechanisms are not by side-effect, so they'll 10461 # only be used when explicitly requested. 10462 if test "x$enable_dependency_tracking" = xyes; then 10463 continue 10464 else 10465 break 10466 fi 10467 ;; 10468 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 10469 # This compiler won't grok '-c -o', but also, the minuso test has 10470 # not run yet. These depmodes are late enough in the game, and 10471 # so weak that their functioning should not be impacted. 10472 am__obj=conftest.${OBJEXT-o} 10473 am__minus_obj= 10474 ;; 10475 none) break ;; 10476 esac 10477 if depmode=$depmode \ 10478 source=sub/conftest.c object=$am__obj \ 10479 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 10480 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 10481 >/dev/null 2>conftest.err && 10482 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 10483 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 10484 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 10485 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 10486 # icc doesn't choke on unknown options, it will just issue warnings 10487 # or remarks (even with -Werror). So we grep stderr for any message 10488 # that says an option was ignored or not supported. 10489 # When given -MP, icc 7.0 and 7.1 complain thusly: 10490 # icc: Command line warning: ignoring option '-M'; no argument required 10491 # The diagnosis changed in icc 8.0: 10492 # icc: Command line remark: option '-MP' not supported 10493 if (grep 'ignoring option' conftest.err || 10494 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 10495 am_cv_$1_dependencies_compiler_type=$depmode 10496 break 10497 fi 10498 fi 10499 done 10500 10501 cd .. 10502 rm -rf conftest.dir 10503else 10504 am_cv_$1_dependencies_compiler_type=none 10505fi 10506]) 10507AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 10508AM_CONDITIONAL([am__fastdep$1], [ 10509 test "x$enable_dependency_tracking" != xno \ 10510 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 10511]) 10512 10513 10514# AM_SET_DEPDIR 10515# ------------- 10516# Choose a directory name for dependency files. 10517# This macro is AC_REQUIREd in _AM_DEPENDENCIES. 10518AC_DEFUN([AM_SET_DEPDIR], 10519[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 10520AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 10521]) 10522 10523 10524# AM_DEP_TRACK 10525# ------------ 10526AC_DEFUN([AM_DEP_TRACK], 10527[AC_ARG_ENABLE([dependency-tracking], [dnl 10528AS_HELP_STRING( 10529 [--enable-dependency-tracking], 10530 [do not reject slow dependency extractors]) 10531AS_HELP_STRING( 10532 [--disable-dependency-tracking], 10533 [speeds up one-time build])]) 10534if test "x$enable_dependency_tracking" != xno; then 10535 am_depcomp="$ac_aux_dir/depcomp" 10536 AMDEPBACKSLASH='\' 10537 am__nodep='_no' 10538fi 10539AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 10540AC_SUBST([AMDEPBACKSLASH])dnl 10541_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 10542AC_SUBST([am__nodep])dnl 10543_AM_SUBST_NOTMAKE([am__nodep])dnl 10544]) 10545 10546# Generate code to set up dependency tracking. -*- Autoconf -*- 10547 10548# Copyright (C) 1999-2018 Free Software Foundation, Inc. 10549# 10550# This file is free software; the Free Software Foundation 10551# gives unlimited permission to copy and/or distribute it, 10552# with or without modifications, as long as this notice is preserved. 10553 10554# _AM_OUTPUT_DEPENDENCY_COMMANDS 10555# ------------------------------ 10556AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 10557[{ 10558 # Older Autoconf quotes --file arguments for eval, but not when files 10559 # are listed without --file. Let's play safe and only enable the eval 10560 # if we detect the quoting. 10561 # TODO: see whether this extra hack can be removed once we start 10562 # requiring Autoconf 2.70 or later. 10563 AS_CASE([$CONFIG_FILES], 10564 [*\'*], [eval set x "$CONFIG_FILES"], 10565 [*], [set x $CONFIG_FILES]) 10566 shift 10567 # Used to flag and report bootstrapping failures. 10568 am_rc=0 10569 for am_mf 10570 do 10571 # Strip MF so we end up with the name of the file. 10572 am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'` 10573 # Check whether this is an Automake generated Makefile which includes 10574 # dependency-tracking related rules and includes. 10575 # Grep'ing the whole file directly is not great: AIX grep has a line 10576 # limit of 2048, but all sed's we know have understand at least 4000. 10577 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 10578 || continue 10579 am_dirpart=`AS_DIRNAME(["$am_mf"])` 10580 am_filepart=`AS_BASENAME(["$am_mf"])` 10581 AM_RUN_LOG([cd "$am_dirpart" \ 10582 && sed -e '/# am--include-marker/d' "$am_filepart" \ 10583 | $MAKE -f - am--depfiles]) || am_rc=$? 10584 done 10585 if test $am_rc -ne 0; then 10586 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments 10587 for automatic dependency tracking. Try re-running configure with the 10588 '--disable-dependency-tracking' option to at least be able to build 10589 the package (albeit without support for automatic dependency tracking).]) 10590 fi 10591 AS_UNSET([am_dirpart]) 10592 AS_UNSET([am_filepart]) 10593 AS_UNSET([am_mf]) 10594 AS_UNSET([am_rc]) 10595 rm -f conftest-deps.mk 10596} 10597])# _AM_OUTPUT_DEPENDENCY_COMMANDS 10598 10599 10600# AM_OUTPUT_DEPENDENCY_COMMANDS 10601# ----------------------------- 10602# This macro should only be invoked once -- use via AC_REQUIRE. 10603# 10604# This code is only required when automatic dependency tracking is enabled. 10605# This creates each '.Po' and '.Plo' makefile fragment that we'll need in 10606# order to bootstrap the dependency handling code. 10607AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 10608[AC_CONFIG_COMMANDS([depfiles], 10609 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 10610 [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])]) 10611 10612# Do all the work for Automake. -*- Autoconf -*- 10613 10614# Copyright (C) 1996-2018 Free Software Foundation, Inc. 10615# 10616# This file is free software; the Free Software Foundation 10617# gives unlimited permission to copy and/or distribute it, 10618# with or without modifications, as long as this notice is preserved. 10619 10620# This macro actually does too much. Some checks are only needed if 10621# your package does certain things. But this isn't really a big deal. 10622 10623dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. 10624m4_define([AC_PROG_CC], 10625m4_defn([AC_PROG_CC]) 10626[_AM_PROG_CC_C_O 10627]) 10628 10629# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 10630# AM_INIT_AUTOMAKE([OPTIONS]) 10631# ----------------------------------------------- 10632# The call with PACKAGE and VERSION arguments is the old style 10633# call (pre autoconf-2.50), which is being phased out. PACKAGE 10634# and VERSION should now be passed to AC_INIT and removed from 10635# the call to AM_INIT_AUTOMAKE. 10636# We support both call styles for the transition. After 10637# the next Automake release, Autoconf can make the AC_INIT 10638# arguments mandatory, and then we can depend on a new Autoconf 10639# release and drop the old call support. 10640AC_DEFUN([AM_INIT_AUTOMAKE], 10641[AC_PREREQ([2.65])dnl 10642dnl Autoconf wants to disallow AM_ names. We explicitly allow 10643dnl the ones we care about. 10644m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 10645AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 10646AC_REQUIRE([AC_PROG_INSTALL])dnl 10647if test "`cd $srcdir && pwd`" != "`pwd`"; then 10648 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 10649 # is not polluted with repeated "-I." 10650 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 10651 # test to see if srcdir already configured 10652 if test -f $srcdir/config.status; then 10653 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 10654 fi 10655fi 10656 10657# test whether we have cygpath 10658if test -z "$CYGPATH_W"; then 10659 if (cygpath --version) >/dev/null 2>/dev/null; then 10660 CYGPATH_W='cygpath -w' 10661 else 10662 CYGPATH_W=echo 10663 fi 10664fi 10665AC_SUBST([CYGPATH_W]) 10666 10667# Define the identity of the package. 10668dnl Distinguish between old-style and new-style calls. 10669m4_ifval([$2], 10670[AC_DIAGNOSE([obsolete], 10671 [$0: two- and three-arguments forms are deprecated.]) 10672m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 10673 AC_SUBST([PACKAGE], [$1])dnl 10674 AC_SUBST([VERSION], [$2])], 10675[_AM_SET_OPTIONS([$1])dnl 10676dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 10677m4_if( 10678 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), 10679 [ok:ok],, 10680 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 10681 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 10682 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 10683 10684_AM_IF_OPTION([no-define],, 10685[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) 10686 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl 10687 10688# Some tools Automake needs. 10689AC_REQUIRE([AM_SANITY_CHECK])dnl 10690AC_REQUIRE([AC_ARG_PROGRAM])dnl 10691AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) 10692AM_MISSING_PROG([AUTOCONF], [autoconf]) 10693AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) 10694AM_MISSING_PROG([AUTOHEADER], [autoheader]) 10695AM_MISSING_PROG([MAKEINFO], [makeinfo]) 10696AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 10697AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 10698AC_REQUIRE([AC_PROG_MKDIR_P])dnl 10699# For better backward compatibility. To be removed once Automake 1.9.x 10700# dies out for good. For more background, see: 10701# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 10702# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 10703AC_SUBST([mkdir_p], ['$(MKDIR_P)']) 10704# We need awk for the "check" target (and possibly the TAP driver). The 10705# system "awk" is bad on some platforms. 10706AC_REQUIRE([AC_PROG_AWK])dnl 10707AC_REQUIRE([AC_PROG_MAKE_SET])dnl 10708AC_REQUIRE([AM_SET_LEADING_DOT])dnl 10709_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 10710 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 10711 [_AM_PROG_TAR([v7])])]) 10712_AM_IF_OPTION([no-dependencies],, 10713[AC_PROVIDE_IFELSE([AC_PROG_CC], 10714 [_AM_DEPENDENCIES([CC])], 10715 [m4_define([AC_PROG_CC], 10716 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl 10717AC_PROVIDE_IFELSE([AC_PROG_CXX], 10718 [_AM_DEPENDENCIES([CXX])], 10719 [m4_define([AC_PROG_CXX], 10720 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl 10721AC_PROVIDE_IFELSE([AC_PROG_OBJC], 10722 [_AM_DEPENDENCIES([OBJC])], 10723 [m4_define([AC_PROG_OBJC], 10724 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl 10725AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], 10726 [_AM_DEPENDENCIES([OBJCXX])], 10727 [m4_define([AC_PROG_OBJCXX], 10728 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl 10729]) 10730AC_REQUIRE([AM_SILENT_RULES])dnl 10731dnl The testsuite driver may need to know about EXEEXT, so add the 10732dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This 10733dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. 10734AC_CONFIG_COMMANDS_PRE(dnl 10735[m4_provide_if([_AM_COMPILER_EXEEXT], 10736 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 10737 10738# POSIX will say in a future version that running "rm -f" with no argument 10739# is OK; and we want to be able to make that assumption in our Makefile 10740# recipes. So use an aggressive probe to check that the usage we want is 10741# actually supported "in the wild" to an acceptable degree. 10742# See automake bug#10828. 10743# To make any issue more visible, cause the running configure to be aborted 10744# by default if the 'rm' program in use doesn't match our expectations; the 10745# user can still override this though. 10746if rm -f && rm -fr && rm -rf; then : OK; else 10747 cat >&2 <<'END' 10748Oops! 10749 10750Your 'rm' program seems unable to run without file operands specified 10751on the command line, even when the '-f' option is present. This is contrary 10752to the behaviour of most rm programs out there, and not conforming with 10753the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 10754 10755Please tell bug-automake@gnu.org about your system, including the value 10756of your $PATH and any error possibly output before this message. This 10757can help us improve future automake versions. 10758 10759END 10760 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 10761 echo 'Configuration will proceed anyway, since you have set the' >&2 10762 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 10763 echo >&2 10764 else 10765 cat >&2 <<'END' 10766Aborting the configuration process, to ensure you take notice of the issue. 10767 10768You can download and install GNU coreutils to get an 'rm' implementation 10769that behaves properly: <https://www.gnu.org/software/coreutils/>. 10770 10771If you want to complete the configuration process using your problematic 10772'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 10773to "yes", and re-run configure. 10774 10775END 10776 AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) 10777 fi 10778fi 10779dnl The trailing newline in this macro's definition is deliberate, for 10780dnl backward compatibility and to allow trailing 'dnl'-style comments 10781dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. 10782]) 10783 10784dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 10785dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 10786dnl mangled by Autoconf and run in a shell conditional statement. 10787m4_define([_AC_COMPILER_EXEEXT], 10788m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 10789 10790# When config.status generates a header, we must update the stamp-h file. 10791# This file resides in the same directory as the config header 10792# that is generated. The stamp files are numbered to have different names. 10793 10794# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 10795# loop where config.status creates the headers, so we can generate 10796# our stamp files there. 10797AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 10798[# Compute $1's index in $config_headers. 10799_am_arg=$1 10800_am_stamp_count=1 10801for _am_header in $config_headers :; do 10802 case $_am_header in 10803 $_am_arg | $_am_arg:* ) 10804 break ;; 10805 * ) 10806 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 10807 esac 10808done 10809echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 10810 10811# Copyright (C) 2001-2018 Free Software Foundation, Inc. 10812# 10813# This file is free software; the Free Software Foundation 10814# gives unlimited permission to copy and/or distribute it, 10815# with or without modifications, as long as this notice is preserved. 10816 10817# AM_PROG_INSTALL_SH 10818# ------------------ 10819# Define $install_sh. 10820AC_DEFUN([AM_PROG_INSTALL_SH], 10821[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 10822if test x"${install_sh+set}" != xset; then 10823 case $am_aux_dir in 10824 *\ * | *\ *) 10825 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 10826 *) 10827 install_sh="\${SHELL} $am_aux_dir/install-sh" 10828 esac 10829fi 10830AC_SUBST([install_sh])]) 10831 10832# Copyright (C) 2003-2018 Free Software Foundation, Inc. 10833# 10834# This file is free software; the Free Software Foundation 10835# gives unlimited permission to copy and/or distribute it, 10836# with or without modifications, as long as this notice is preserved. 10837 10838# Check whether the underlying file-system supports filenames 10839# with a leading dot. For instance MS-DOS doesn't. 10840AC_DEFUN([AM_SET_LEADING_DOT], 10841[rm -rf .tst 2>/dev/null 10842mkdir .tst 2>/dev/null 10843if test -d .tst; then 10844 am__leading_dot=. 10845else 10846 am__leading_dot=_ 10847fi 10848rmdir .tst 2>/dev/null 10849AC_SUBST([am__leading_dot])]) 10850 10851# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 10852# From Jim Meyering 10853 10854# Copyright (C) 1996-2018 Free Software Foundation, Inc. 10855# 10856# This file is free software; the Free Software Foundation 10857# gives unlimited permission to copy and/or distribute it, 10858# with or without modifications, as long as this notice is preserved. 10859 10860# AM_MAINTAINER_MODE([DEFAULT-MODE]) 10861# ---------------------------------- 10862# Control maintainer-specific portions of Makefiles. 10863# Default is to disable them, unless 'enable' is passed literally. 10864# For symmetry, 'disable' may be passed as well. Anyway, the user 10865# can override the default with the --enable/--disable switch. 10866AC_DEFUN([AM_MAINTAINER_MODE], 10867[m4_case(m4_default([$1], [disable]), 10868 [enable], [m4_define([am_maintainer_other], [disable])], 10869 [disable], [m4_define([am_maintainer_other], [enable])], 10870 [m4_define([am_maintainer_other], [enable]) 10871 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) 10872AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) 10873 dnl maintainer-mode's default is 'disable' unless 'enable' is passed 10874 AC_ARG_ENABLE([maintainer-mode], 10875 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], 10876 am_maintainer_other[ make rules and dependencies not useful 10877 (and sometimes confusing) to the casual installer])], 10878 [USE_MAINTAINER_MODE=$enableval], 10879 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) 10880 AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 10881 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) 10882 MAINT=$MAINTAINER_MODE_TRUE 10883 AC_SUBST([MAINT])dnl 10884] 10885) 10886 10887# Check to see how 'make' treats includes. -*- Autoconf -*- 10888 10889# Copyright (C) 2001-2018 Free Software Foundation, Inc. 10890# 10891# This file is free software; the Free Software Foundation 10892# gives unlimited permission to copy and/or distribute it, 10893# with or without modifications, as long as this notice is preserved. 10894 10895# AM_MAKE_INCLUDE() 10896# ----------------- 10897# Check whether make has an 'include' directive that can support all 10898# the idioms we need for our automatic dependency tracking code. 10899AC_DEFUN([AM_MAKE_INCLUDE], 10900[AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive]) 10901cat > confinc.mk << 'END' 10902am__doit: 10903 @echo this is the am__doit target >confinc.out 10904.PHONY: am__doit 10905END 10906am__include="#" 10907am__quote= 10908# BSD make does it like this. 10909echo '.include "confinc.mk" # ignored' > confmf.BSD 10910# Other make implementations (GNU, Solaris 10, AIX) do it like this. 10911echo 'include confinc.mk # ignored' > confmf.GNU 10912_am_result=no 10913for s in GNU BSD; do 10914 AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) 10915 AS_CASE([$?:`cat confinc.out 2>/dev/null`], 10916 ['0:this is the am__doit target'], 10917 [AS_CASE([$s], 10918 [BSD], [am__include='.include' am__quote='"'], 10919 [am__include='include' am__quote=''])]) 10920 if test "$am__include" != "#"; then 10921 _am_result="yes ($s style)" 10922 break 10923 fi 10924done 10925rm -f confinc.* confmf.* 10926AC_MSG_RESULT([${_am_result}]) 10927AC_SUBST([am__include])]) 10928AC_SUBST([am__quote])]) 10929 10930# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 10931 10932# Copyright (C) 1997-2018 Free Software Foundation, Inc. 10933# 10934# This file is free software; the Free Software Foundation 10935# gives unlimited permission to copy and/or distribute it, 10936# with or without modifications, as long as this notice is preserved. 10937 10938# AM_MISSING_PROG(NAME, PROGRAM) 10939# ------------------------------ 10940AC_DEFUN([AM_MISSING_PROG], 10941[AC_REQUIRE([AM_MISSING_HAS_RUN]) 10942$1=${$1-"${am_missing_run}$2"} 10943AC_SUBST($1)]) 10944 10945# AM_MISSING_HAS_RUN 10946# ------------------ 10947# Define MISSING if not defined so far and test if it is modern enough. 10948# If it is, set am_missing_run to use it, otherwise, to nothing. 10949AC_DEFUN([AM_MISSING_HAS_RUN], 10950[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 10951AC_REQUIRE_AUX_FILE([missing])dnl 10952if test x"${MISSING+set}" != xset; then 10953 case $am_aux_dir in 10954 *\ * | *\ *) 10955 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 10956 *) 10957 MISSING="\${SHELL} $am_aux_dir/missing" ;; 10958 esac 10959fi 10960# Use eval to expand $SHELL 10961if eval "$MISSING --is-lightweight"; then 10962 am_missing_run="$MISSING " 10963else 10964 am_missing_run= 10965 AC_MSG_WARN(['missing' script is too old or missing]) 10966fi 10967]) 10968 10969# Helper functions for option handling. -*- Autoconf -*- 10970 10971# Copyright (C) 2001-2018 Free Software Foundation, Inc. 10972# 10973# This file is free software; the Free Software Foundation 10974# gives unlimited permission to copy and/or distribute it, 10975# with or without modifications, as long as this notice is preserved. 10976 10977# _AM_MANGLE_OPTION(NAME) 10978# ----------------------- 10979AC_DEFUN([_AM_MANGLE_OPTION], 10980[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 10981 10982# _AM_SET_OPTION(NAME) 10983# -------------------- 10984# Set option NAME. Presently that only means defining a flag for this option. 10985AC_DEFUN([_AM_SET_OPTION], 10986[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) 10987 10988# _AM_SET_OPTIONS(OPTIONS) 10989# ------------------------ 10990# OPTIONS is a space-separated list of Automake options. 10991AC_DEFUN([_AM_SET_OPTIONS], 10992[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 10993 10994# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 10995# ------------------------------------------- 10996# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 10997AC_DEFUN([_AM_IF_OPTION], 10998[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 10999 11000# Copyright (C) 1999-2018 Free Software Foundation, Inc. 11001# 11002# This file is free software; the Free Software Foundation 11003# gives unlimited permission to copy and/or distribute it, 11004# with or without modifications, as long as this notice is preserved. 11005 11006# _AM_PROG_CC_C_O 11007# --------------- 11008# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC 11009# to automatically call this. 11010AC_DEFUN([_AM_PROG_CC_C_O], 11011[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 11012AC_REQUIRE_AUX_FILE([compile])dnl 11013AC_LANG_PUSH([C])dnl 11014AC_CACHE_CHECK( 11015 [whether $CC understands -c and -o together], 11016 [am_cv_prog_cc_c_o], 11017 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) 11018 # Make sure it works both with $CC and with simple cc. 11019 # Following AC_PROG_CC_C_O, we do the test twice because some 11020 # compilers refuse to overwrite an existing .o file with -o, 11021 # though they will create one. 11022 am_cv_prog_cc_c_o=yes 11023 for am_i in 1 2; do 11024 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ 11025 && test -f conftest2.$ac_objext; then 11026 : OK 11027 else 11028 am_cv_prog_cc_c_o=no 11029 break 11030 fi 11031 done 11032 rm -f core conftest* 11033 unset am_i]) 11034if test "$am_cv_prog_cc_c_o" != yes; then 11035 # Losing compiler, so override with the script. 11036 # FIXME: It is wrong to rewrite CC. 11037 # But if we don't then we get into trouble of one sort or another. 11038 # A longer-term fix would be to have automake use am__CC in this case, 11039 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 11040 CC="$am_aux_dir/compile $CC" 11041fi 11042AC_LANG_POP([C])]) 11043 11044# For backward compatibility. 11045AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) 11046 11047# Copyright (C) 2001-2018 Free Software Foundation, Inc. 11048# 11049# This file is free software; the Free Software Foundation 11050# gives unlimited permission to copy and/or distribute it, 11051# with or without modifications, as long as this notice is preserved. 11052 11053# AM_RUN_LOG(COMMAND) 11054# ------------------- 11055# Run COMMAND, save the exit status in ac_status, and log it. 11056# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) 11057AC_DEFUN([AM_RUN_LOG], 11058[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD 11059 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD 11060 ac_status=$? 11061 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 11062 (exit $ac_status); }]) 11063 11064# Check to make sure that the build environment is sane. -*- Autoconf -*- 11065 11066# Copyright (C) 1996-2018 Free Software Foundation, Inc. 11067# 11068# This file is free software; the Free Software Foundation 11069# gives unlimited permission to copy and/or distribute it, 11070# with or without modifications, as long as this notice is preserved. 11071 11072# AM_SANITY_CHECK 11073# --------------- 11074AC_DEFUN([AM_SANITY_CHECK], 11075[AC_MSG_CHECKING([whether build environment is sane]) 11076# Reject unsafe characters in $srcdir or the absolute working directory 11077# name. Accept space and tab only in the latter. 11078am_lf=' 11079' 11080case `pwd` in 11081 *[[\\\"\#\$\&\'\`$am_lf]]*) 11082 AC_MSG_ERROR([unsafe absolute working directory name]);; 11083esac 11084case $srcdir in 11085 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 11086 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; 11087esac 11088 11089# Do 'set' in a subshell so we don't clobber the current shell's 11090# arguments. Must try -L first in case configure is actually a 11091# symlink; some systems play weird games with the mod time of symlinks 11092# (eg FreeBSD returns the mod time of the symlink's containing 11093# directory). 11094if ( 11095 am_has_slept=no 11096 for am_try in 1 2; do 11097 echo "timestamp, slept: $am_has_slept" > conftest.file 11098 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 11099 if test "$[*]" = "X"; then 11100 # -L didn't work. 11101 set X `ls -t "$srcdir/configure" conftest.file` 11102 fi 11103 if test "$[*]" != "X $srcdir/configure conftest.file" \ 11104 && test "$[*]" != "X conftest.file $srcdir/configure"; then 11105 11106 # If neither matched, then we have a broken ls. This can happen 11107 # if, for instance, CONFIG_SHELL is bash and it inherits a 11108 # broken ls alias from the environment. This has actually 11109 # happened. Such a system could not be considered "sane". 11110 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 11111 alias in your environment]) 11112 fi 11113 if test "$[2]" = conftest.file || test $am_try -eq 2; then 11114 break 11115 fi 11116 # Just in case. 11117 sleep 1 11118 am_has_slept=yes 11119 done 11120 test "$[2]" = conftest.file 11121 ) 11122then 11123 # Ok. 11124 : 11125else 11126 AC_MSG_ERROR([newly created file is older than distributed files! 11127Check your system clock]) 11128fi 11129AC_MSG_RESULT([yes]) 11130# If we didn't sleep, we still need to ensure time stamps of config.status and 11131# generated files are strictly newer. 11132am_sleep_pid= 11133if grep 'slept: no' conftest.file >/dev/null 2>&1; then 11134 ( sleep 1 ) & 11135 am_sleep_pid=$! 11136fi 11137AC_CONFIG_COMMANDS_PRE( 11138 [AC_MSG_CHECKING([that generated files are newer than configure]) 11139 if test -n "$am_sleep_pid"; then 11140 # Hide warnings about reused PIDs. 11141 wait $am_sleep_pid 2>/dev/null 11142 fi 11143 AC_MSG_RESULT([done])]) 11144rm -f conftest.file 11145]) 11146 11147# Copyright (C) 2009-2018 Free Software Foundation, Inc. 11148# 11149# This file is free software; the Free Software Foundation 11150# gives unlimited permission to copy and/or distribute it, 11151# with or without modifications, as long as this notice is preserved. 11152 11153# AM_SILENT_RULES([DEFAULT]) 11154# -------------------------- 11155# Enable less verbose build rules; with the default set to DEFAULT 11156# ("yes" being less verbose, "no" or empty being verbose). 11157AC_DEFUN([AM_SILENT_RULES], 11158[AC_ARG_ENABLE([silent-rules], [dnl 11159AS_HELP_STRING( 11160 [--enable-silent-rules], 11161 [less verbose build output (undo: "make V=1")]) 11162AS_HELP_STRING( 11163 [--disable-silent-rules], 11164 [verbose build output (undo: "make V=0")])dnl 11165]) 11166case $enable_silent_rules in @%:@ ((( 11167 yes) AM_DEFAULT_VERBOSITY=0;; 11168 no) AM_DEFAULT_VERBOSITY=1;; 11169 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 11170esac 11171dnl 11172dnl A few 'make' implementations (e.g., NonStop OS and NextStep) 11173dnl do not support nested variable expansions. 11174dnl See automake bug#9928 and bug#10237. 11175am_make=${MAKE-make} 11176AC_CACHE_CHECK([whether $am_make supports nested variables], 11177 [am_cv_make_support_nested_variables], 11178 [if AS_ECHO([['TRUE=$(BAR$(V)) 11179BAR0=false 11180BAR1=true 11181V=1 11182am__doit: 11183 @$(TRUE) 11184.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then 11185 am_cv_make_support_nested_variables=yes 11186else 11187 am_cv_make_support_nested_variables=no 11188fi]) 11189if test $am_cv_make_support_nested_variables = yes; then 11190 dnl Using '$V' instead of '$(V)' breaks IRIX make. 11191 AM_V='$(V)' 11192 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11193else 11194 AM_V=$AM_DEFAULT_VERBOSITY 11195 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11196fi 11197AC_SUBST([AM_V])dnl 11198AM_SUBST_NOTMAKE([AM_V])dnl 11199AC_SUBST([AM_DEFAULT_V])dnl 11200AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl 11201AC_SUBST([AM_DEFAULT_VERBOSITY])dnl 11202AM_BACKSLASH='\' 11203AC_SUBST([AM_BACKSLASH])dnl 11204_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 11205]) 11206 11207# Copyright (C) 2001-2018 Free Software Foundation, Inc. 11208# 11209# This file is free software; the Free Software Foundation 11210# gives unlimited permission to copy and/or distribute it, 11211# with or without modifications, as long as this notice is preserved. 11212 11213# AM_PROG_INSTALL_STRIP 11214# --------------------- 11215# One issue with vendor 'install' (even GNU) is that you can't 11216# specify the program used to strip binaries. This is especially 11217# annoying in cross-compiling environments, where the build's strip 11218# is unlikely to handle the host's binaries. 11219# Fortunately install-sh will honor a STRIPPROG variable, so we 11220# always use install-sh in "make install-strip", and initialize 11221# STRIPPROG with the value of the STRIP variable (set by the user). 11222AC_DEFUN([AM_PROG_INSTALL_STRIP], 11223[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 11224# Installed binaries are usually stripped using 'strip' when the user 11225# run "make install-strip". However 'strip' might not be the right 11226# tool to use in cross-compilation environments, therefore Automake 11227# will honor the 'STRIP' environment variable to overrule this program. 11228dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. 11229if test "$cross_compiling" != no; then 11230 AC_CHECK_TOOL([STRIP], [strip], :) 11231fi 11232INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 11233AC_SUBST([INSTALL_STRIP_PROGRAM])]) 11234 11235# Copyright (C) 2006-2018 Free Software Foundation, Inc. 11236# 11237# This file is free software; the Free Software Foundation 11238# gives unlimited permission to copy and/or distribute it, 11239# with or without modifications, as long as this notice is preserved. 11240 11241# _AM_SUBST_NOTMAKE(VARIABLE) 11242# --------------------------- 11243# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 11244# This macro is traced by Automake. 11245AC_DEFUN([_AM_SUBST_NOTMAKE]) 11246 11247# AM_SUBST_NOTMAKE(VARIABLE) 11248# -------------------------- 11249# Public sister of _AM_SUBST_NOTMAKE. 11250AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 11251 11252# Check how to create a tarball. -*- Autoconf -*- 11253 11254# Copyright (C) 2004-2018 Free Software Foundation, Inc. 11255# 11256# This file is free software; the Free Software Foundation 11257# gives unlimited permission to copy and/or distribute it, 11258# with or without modifications, as long as this notice is preserved. 11259 11260# _AM_PROG_TAR(FORMAT) 11261# -------------------- 11262# Check how to create a tarball in format FORMAT. 11263# FORMAT should be one of 'v7', 'ustar', or 'pax'. 11264# 11265# Substitute a variable $(am__tar) that is a command 11266# writing to stdout a FORMAT-tarball containing the directory 11267# $tardir. 11268# tardir=directory && $(am__tar) > result.tar 11269# 11270# Substitute a variable $(am__untar) that extract such 11271# a tarball read from stdin. 11272# $(am__untar) < result.tar 11273# 11274AC_DEFUN([_AM_PROG_TAR], 11275[# Always define AMTAR for backward compatibility. Yes, it's still used 11276# in the wild :-( We should find a proper way to deprecate it ... 11277AC_SUBST([AMTAR], ['$${TAR-tar}']) 11278 11279# We'll loop over all known methods to create a tar archive until one works. 11280_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 11281 11282m4_if([$1], [v7], 11283 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 11284 11285 [m4_case([$1], 11286 [ustar], 11287 [# The POSIX 1988 'ustar' format is defined with fixed-size fields. 11288 # There is notably a 21 bits limit for the UID and the GID. In fact, 11289 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 11290 # and bug#13588). 11291 am_max_uid=2097151 # 2^21 - 1 11292 am_max_gid=$am_max_uid 11293 # The $UID and $GID variables are not portable, so we need to resort 11294 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 11295 # below are definitely unexpected, so allow the users to see them 11296 # (that is, avoid stderr redirection). 11297 am_uid=`id -u || echo unknown` 11298 am_gid=`id -g || echo unknown` 11299 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) 11300 if test $am_uid -le $am_max_uid; then 11301 AC_MSG_RESULT([yes]) 11302 else 11303 AC_MSG_RESULT([no]) 11304 _am_tools=none 11305 fi 11306 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) 11307 if test $am_gid -le $am_max_gid; then 11308 AC_MSG_RESULT([yes]) 11309 else 11310 AC_MSG_RESULT([no]) 11311 _am_tools=none 11312 fi], 11313 11314 [pax], 11315 [], 11316 11317 [m4_fatal([Unknown tar format])]) 11318 11319 AC_MSG_CHECKING([how to create a $1 tar archive]) 11320 11321 # Go ahead even if we have the value already cached. We do so because we 11322 # need to set the values for the 'am__tar' and 'am__untar' variables. 11323 _am_tools=${am_cv_prog_tar_$1-$_am_tools} 11324 11325 for _am_tool in $_am_tools; do 11326 case $_am_tool in 11327 gnutar) 11328 for _am_tar in tar gnutar gtar; do 11329 AM_RUN_LOG([$_am_tar --version]) && break 11330 done 11331 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 11332 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 11333 am__untar="$_am_tar -xf -" 11334 ;; 11335 plaintar) 11336 # Must skip GNU tar: if it does not support --format= it doesn't create 11337 # ustar tarball either. 11338 (tar --version) >/dev/null 2>&1 && continue 11339 am__tar='tar chf - "$$tardir"' 11340 am__tar_='tar chf - "$tardir"' 11341 am__untar='tar xf -' 11342 ;; 11343 pax) 11344 am__tar='pax -L -x $1 -w "$$tardir"' 11345 am__tar_='pax -L -x $1 -w "$tardir"' 11346 am__untar='pax -r' 11347 ;; 11348 cpio) 11349 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 11350 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 11351 am__untar='cpio -i -H $1 -d' 11352 ;; 11353 none) 11354 am__tar=false 11355 am__tar_=false 11356 am__untar=false 11357 ;; 11358 esac 11359 11360 # If the value was cached, stop now. We just wanted to have am__tar 11361 # and am__untar set. 11362 test -n "${am_cv_prog_tar_$1}" && break 11363 11364 # tar/untar a dummy directory, and stop if the command works. 11365 rm -rf conftest.dir 11366 mkdir conftest.dir 11367 echo GrepMe > conftest.dir/file 11368 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 11369 rm -rf conftest.dir 11370 if test -s conftest.tar; then 11371 AM_RUN_LOG([$am__untar <conftest.tar]) 11372 AM_RUN_LOG([cat conftest.dir/file]) 11373 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 11374 fi 11375 done 11376 rm -rf conftest.dir 11377 11378 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 11379 AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 11380 11381AC_SUBST([am__tar]) 11382AC_SUBST([am__untar]) 11383]) # _AM_PROG_TAR 11384 11385m4_include([m4/introspection.m4]) 11386m4_include([acinclude.m4]) 11387