1# generated automatically by aclocal 1.11.6 -*- Autoconf -*- 2 3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, 5# Inc. 6# This file is free software; the Free Software Foundation 7# gives unlimited permission to copy and/or distribute it, 8# with or without modifications, as long as this notice is preserved. 9 10# This program is distributed in the hope that it will be useful, 11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 13# PARTICULAR PURPOSE. 14 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# gettext.m4 serial 63 (gettext-0.18) 24dnl Copyright (C) 1995-2010 Free Software Foundation, Inc. 25dnl This file is free software; the Free Software Foundation 26dnl gives unlimited permission to copy and/or distribute it, 27dnl with or without modifications, as long as this notice is preserved. 28dnl 29dnl This file can can be used in projects which are not available under 30dnl the GNU General Public License or the GNU Library General Public 31dnl License but which still want to provide support for the GNU gettext 32dnl functionality. 33dnl Please note that the actual code of the GNU gettext library is covered 34dnl by the GNU Library General Public License, and the rest of the GNU 35dnl gettext package package is covered by the GNU General Public License. 36dnl They are *not* in the public domain. 37 38dnl Authors: 39dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. 40dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006, 2008-2010. 41 42dnl Macro to add for using GNU gettext. 43 44dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). 45dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The 46dnl default (if it is not specified or empty) is 'no-libtool'. 47dnl INTLSYMBOL should be 'external' for packages with no intl directory, 48dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory. 49dnl If INTLSYMBOL is 'use-libtool', then a libtool library 50dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static, 51dnl depending on --{enable,disable}-{shared,static} and on the presence of 52dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library 53dnl $(top_builddir)/intl/libintl.a will be created. 54dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext 55dnl implementations (in libc or libintl) without the ngettext() function 56dnl will be ignored. If NEEDSYMBOL is specified and is 57dnl 'need-formatstring-macros', then GNU gettext implementations that don't 58dnl support the ISO C 99 <inttypes.h> formatstring macros will be ignored. 59dnl INTLDIR is used to find the intl libraries. If empty, 60dnl the value `$(top_builddir)/intl/' is used. 61dnl 62dnl The result of the configuration is one of three cases: 63dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled 64dnl and used. 65dnl Catalog format: GNU --> install in $(datadir) 66dnl Catalog extension: .mo after installation, .gmo in source tree 67dnl 2) GNU gettext has been found in the system's C library. 68dnl Catalog format: GNU --> install in $(datadir) 69dnl Catalog extension: .mo after installation, .gmo in source tree 70dnl 3) No internationalization, always use English msgid. 71dnl Catalog format: none 72dnl Catalog extension: none 73dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur. 74dnl The use of .gmo is historical (it was needed to avoid overwriting the 75dnl GNU format catalogs when building on a platform with an X/Open gettext), 76dnl but we keep it in order not to force irrelevant filename changes on the 77dnl maintainers. 78dnl 79AC_DEFUN([AM_GNU_GETTEXT], 80[ 81 dnl Argument checking. 82 ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], , 83 [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT 84])])])])]) 85 ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old], 86 [AC_DIAGNOSE([obsolete], [Use of AM_GNU_GETTEXT without [external] argument is deprecated.])]) 87 ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , 88 [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT 89])])])]) 90 define([gt_included_intl], 91 ifelse([$1], [external], 92 ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]), 93 [yes])) 94 define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], [])) 95 gt_NEEDS_INIT 96 AM_GNU_GETTEXT_NEED([$2]) 97 98 AC_REQUIRE([AM_PO_SUBDIRS])dnl 99 ifelse(gt_included_intl, yes, [ 100 AC_REQUIRE([AM_INTL_SUBDIR])dnl 101 ]) 102 103 dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. 104 AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) 105 AC_REQUIRE([AC_LIB_RPATH]) 106 107 dnl Sometimes libintl requires libiconv, so first search for libiconv. 108 dnl Ideally we would do this search only after the 109 dnl if test "$USE_NLS" = "yes"; then 110 dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 111 dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT 112 dnl the configure script would need to contain the same shell code 113 dnl again, outside any 'if'. There are two solutions: 114 dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. 115 dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. 116 dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not 117 dnl documented, we avoid it. 118 ifelse(gt_included_intl, yes, , [ 119 AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) 120 ]) 121 122 dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation. 123 gt_INTL_MACOSX 124 125 dnl Set USE_NLS. 126 AC_REQUIRE([AM_NLS]) 127 128 ifelse(gt_included_intl, yes, [ 129 BUILD_INCLUDED_LIBINTL=no 130 USE_INCLUDED_LIBINTL=no 131 ]) 132 LIBINTL= 133 LTLIBINTL= 134 POSUB= 135 136 dnl Add a version number to the cache macros. 137 case " $gt_needs " in 138 *" need-formatstring-macros "*) gt_api_version=3 ;; 139 *" need-ngettext "*) gt_api_version=2 ;; 140 *) gt_api_version=1 ;; 141 esac 142 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 143 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 144 145 dnl If we use NLS figure out what method 146 if test "$USE_NLS" = "yes"; then 147 gt_use_preinstalled_gnugettext=no 148 ifelse(gt_included_intl, yes, [ 149 AC_MSG_CHECKING([whether included gettext is requested]) 150 AC_ARG_WITH([included-gettext], 151 [ --with-included-gettext use the GNU gettext library included here], 152 nls_cv_force_use_gnu_gettext=$withval, 153 nls_cv_force_use_gnu_gettext=no) 154 AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext]) 155 156 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 157 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 158 ]) 159 dnl User does not insist on using GNU NLS library. Figure out what 160 dnl to use. If GNU gettext is available we use this. Else we have 161 dnl to fall back to GNU NLS library. 162 163 if test $gt_api_version -ge 3; then 164 gt_revision_test_code=' 165#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 166#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 167#endif 168changequote(,)dnl 169typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 170changequote([,])dnl 171' 172 else 173 gt_revision_test_code= 174 fi 175 if test $gt_api_version -ge 2; then 176 gt_expression_test_code=' + * ngettext ("", "", 0)' 177 else 178 gt_expression_test_code= 179 fi 180 181 AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc], 182 [AC_TRY_LINK([#include <libintl.h> 183$gt_revision_test_code 184extern int _nl_msg_cat_cntr; 185extern int *_nl_domain_bindings;], 186 [bindtextdomain ("", ""); 187return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings], 188 [eval "$gt_func_gnugettext_libc=yes"], 189 [eval "$gt_func_gnugettext_libc=no"])]) 190 191 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 192 dnl Sometimes libintl requires libiconv, so first search for libiconv. 193 ifelse(gt_included_intl, yes, , [ 194 AM_ICONV_LINK 195 ]) 196 dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL 197 dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv]) 198 dnl because that would add "-liconv" to LIBINTL and LTLIBINTL 199 dnl even if libiconv doesn't exist. 200 AC_LIB_LINKFLAGS_BODY([intl]) 201 AC_CACHE_CHECK([for GNU gettext in libintl], 202 [$gt_func_gnugettext_libintl], 203 [gt_save_CPPFLAGS="$CPPFLAGS" 204 CPPFLAGS="$CPPFLAGS $INCINTL" 205 gt_save_LIBS="$LIBS" 206 LIBS="$LIBS $LIBINTL" 207 dnl Now see whether libintl exists and does not depend on libiconv. 208 AC_TRY_LINK([#include <libintl.h> 209$gt_revision_test_code 210extern int _nl_msg_cat_cntr; 211extern 212#ifdef __cplusplus 213"C" 214#endif 215const char *_nl_expand_alias (const char *);], 216 [bindtextdomain ("", ""); 217return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")], 218 [eval "$gt_func_gnugettext_libintl=yes"], 219 [eval "$gt_func_gnugettext_libintl=no"]) 220 dnl Now see whether libintl exists and depends on libiconv. 221 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 222 LIBS="$LIBS $LIBICONV" 223 AC_TRY_LINK([#include <libintl.h> 224$gt_revision_test_code 225extern int _nl_msg_cat_cntr; 226extern 227#ifdef __cplusplus 228"C" 229#endif 230const char *_nl_expand_alias (const char *);], 231 [bindtextdomain ("", ""); 232return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")], 233 [LIBINTL="$LIBINTL $LIBICONV" 234 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 235 eval "$gt_func_gnugettext_libintl=yes" 236 ]) 237 fi 238 CPPFLAGS="$gt_save_CPPFLAGS" 239 LIBS="$gt_save_LIBS"]) 240 fi 241 242 dnl If an already present or preinstalled GNU gettext() is found, 243 dnl use it. But if this macro is used in GNU gettext, and GNU 244 dnl gettext is already preinstalled in libintl, we update this 245 dnl libintl. (Cf. the install rule in intl/Makefile.in.) 246 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 247 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 248 && test "$PACKAGE" != gettext-runtime \ 249 && test "$PACKAGE" != gettext-tools; }; then 250 gt_use_preinstalled_gnugettext=yes 251 else 252 dnl Reset the values set by searching for libintl. 253 LIBINTL= 254 LTLIBINTL= 255 INCINTL= 256 fi 257 258 ifelse(gt_included_intl, yes, [ 259 if test "$gt_use_preinstalled_gnugettext" != "yes"; then 260 dnl GNU gettext is not found in the C library. 261 dnl Fall back on included GNU gettext library. 262 nls_cv_use_gnu_gettext=yes 263 fi 264 fi 265 266 if test "$nls_cv_use_gnu_gettext" = "yes"; then 267 dnl Mark actions used to generate GNU NLS library. 268 BUILD_INCLUDED_LIBINTL=yes 269 USE_INCLUDED_LIBINTL=yes 270 LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD" 271 LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD" 272 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 273 fi 274 275 CATOBJEXT= 276 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 277 || test "$nls_cv_use_gnu_gettext" = "yes"; then 278 dnl Mark actions to use GNU gettext tools. 279 CATOBJEXT=.gmo 280 fi 281 ]) 282 283 if test -n "$INTL_MACOSX_LIBS"; then 284 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 285 || test "$nls_cv_use_gnu_gettext" = "yes"; then 286 dnl Some extra flags are needed during linking. 287 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 288 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 289 fi 290 fi 291 292 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 293 || test "$nls_cv_use_gnu_gettext" = "yes"; then 294 AC_DEFINE([ENABLE_NLS], [1], 295 [Define to 1 if translation of program messages to the user's native language 296 is requested.]) 297 else 298 USE_NLS=no 299 fi 300 fi 301 302 AC_MSG_CHECKING([whether to use NLS]) 303 AC_MSG_RESULT([$USE_NLS]) 304 if test "$USE_NLS" = "yes"; then 305 AC_MSG_CHECKING([where the gettext function comes from]) 306 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 307 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 308 gt_source="external libintl" 309 else 310 gt_source="libc" 311 fi 312 else 313 gt_source="included intl directory" 314 fi 315 AC_MSG_RESULT([$gt_source]) 316 fi 317 318 if test "$USE_NLS" = "yes"; then 319 320 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 321 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 322 AC_MSG_CHECKING([how to link with libintl]) 323 AC_MSG_RESULT([$LIBINTL]) 324 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) 325 fi 326 327 dnl For backward compatibility. Some packages may be using this. 328 AC_DEFINE([HAVE_GETTEXT], [1], 329 [Define if the GNU gettext() function is already present or preinstalled.]) 330 AC_DEFINE([HAVE_DCGETTEXT], [1], 331 [Define if the GNU dcgettext() function is already present or preinstalled.]) 332 fi 333 334 dnl We need to process the po/ directory. 335 POSUB=po 336 fi 337 338 ifelse(gt_included_intl, yes, [ 339 dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL 340 dnl to 'yes' because some of the testsuite requires it. 341 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then 342 BUILD_INCLUDED_LIBINTL=yes 343 fi 344 345 dnl Make all variables we use known to autoconf. 346 AC_SUBST([BUILD_INCLUDED_LIBINTL]) 347 AC_SUBST([USE_INCLUDED_LIBINTL]) 348 AC_SUBST([CATOBJEXT]) 349 350 dnl For backward compatibility. Some configure.ins may be using this. 351 nls_cv_header_intl= 352 nls_cv_header_libgt= 353 354 dnl For backward compatibility. Some Makefiles may be using this. 355 DATADIRNAME=share 356 AC_SUBST([DATADIRNAME]) 357 358 dnl For backward compatibility. Some Makefiles may be using this. 359 INSTOBJEXT=.mo 360 AC_SUBST([INSTOBJEXT]) 361 362 dnl For backward compatibility. Some Makefiles may be using this. 363 GENCAT=gencat 364 AC_SUBST([GENCAT]) 365 366 dnl For backward compatibility. Some Makefiles may be using this. 367 INTLOBJS= 368 if test "$USE_INCLUDED_LIBINTL" = yes; then 369 INTLOBJS="\$(GETTOBJS)" 370 fi 371 AC_SUBST([INTLOBJS]) 372 373 dnl Enable libtool support if the surrounding package wishes it. 374 INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix 375 AC_SUBST([INTL_LIBTOOL_SUFFIX_PREFIX]) 376 ]) 377 378 dnl For backward compatibility. Some Makefiles may be using this. 379 INTLLIBS="$LIBINTL" 380 AC_SUBST([INTLLIBS]) 381 382 dnl Make all documented variables known to autoconf. 383 AC_SUBST([LIBINTL]) 384 AC_SUBST([LTLIBINTL]) 385 AC_SUBST([POSUB]) 386]) 387 388 389dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized. 390m4_define([gt_NEEDS_INIT], 391[ 392 m4_divert_text([DEFAULTS], [gt_needs=]) 393 m4_define([gt_NEEDS_INIT], []) 394]) 395 396 397dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL]) 398AC_DEFUN([AM_GNU_GETTEXT_NEED], 399[ 400 m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"]) 401]) 402 403 404dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) 405AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) 406 407# iconv.m4 serial 11 (gettext-0.18.1) 408dnl Copyright (C) 2000-2002, 2007-2010 Free Software Foundation, Inc. 409dnl This file is free software; the Free Software Foundation 410dnl gives unlimited permission to copy and/or distribute it, 411dnl with or without modifications, as long as this notice is preserved. 412 413dnl From Bruno Haible. 414 415AC_DEFUN([AM_ICONV_LINKFLAGS_BODY], 416[ 417 dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. 418 AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) 419 AC_REQUIRE([AC_LIB_RPATH]) 420 421 dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV 422 dnl accordingly. 423 AC_LIB_LINKFLAGS_BODY([iconv]) 424]) 425 426AC_DEFUN([AM_ICONV_LINK], 427[ 428 dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and 429 dnl those with the standalone portable GNU libiconv installed). 430 AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles 431 432 dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV 433 dnl accordingly. 434 AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) 435 436 dnl Add $INCICONV to CPPFLAGS before performing the following checks, 437 dnl because if the user has installed libiconv and not disabled its use 438 dnl via --without-libiconv-prefix, he wants to use it. The first 439 dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed. 440 am_save_CPPFLAGS="$CPPFLAGS" 441 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) 442 443 AC_CACHE_CHECK([for iconv], [am_cv_func_iconv], [ 444 am_cv_func_iconv="no, consider installing GNU libiconv" 445 am_cv_lib_iconv=no 446 AC_TRY_LINK([#include <stdlib.h> 447#include <iconv.h>], 448 [iconv_t cd = iconv_open("",""); 449 iconv(cd,NULL,NULL,NULL,NULL); 450 iconv_close(cd);], 451 [am_cv_func_iconv=yes]) 452 if test "$am_cv_func_iconv" != yes; then 453 am_save_LIBS="$LIBS" 454 LIBS="$LIBS $LIBICONV" 455 AC_TRY_LINK([#include <stdlib.h> 456#include <iconv.h>], 457 [iconv_t cd = iconv_open("",""); 458 iconv(cd,NULL,NULL,NULL,NULL); 459 iconv_close(cd);], 460 [am_cv_lib_iconv=yes] 461 [am_cv_func_iconv=yes]) 462 LIBS="$am_save_LIBS" 463 fi 464 ]) 465 if test "$am_cv_func_iconv" = yes; then 466 AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [ 467 dnl This tests against bugs in AIX 5.1, HP-UX 11.11, Solaris 10. 468 am_save_LIBS="$LIBS" 469 if test $am_cv_lib_iconv = yes; then 470 LIBS="$LIBS $LIBICONV" 471 fi 472 AC_TRY_RUN([ 473#include <iconv.h> 474#include <string.h> 475int main () 476{ 477 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 478 returns. */ 479 { 480 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 481 if (cd_utf8_to_88591 != (iconv_t)(-1)) 482 { 483 static const char input[] = "\342\202\254"; /* EURO SIGN */ 484 char buf[10]; 485 const char *inptr = input; 486 size_t inbytesleft = strlen (input); 487 char *outptr = buf; 488 size_t outbytesleft = sizeof (buf); 489 size_t res = iconv (cd_utf8_to_88591, 490 (char **) &inptr, &inbytesleft, 491 &outptr, &outbytesleft); 492 if (res == 0) 493 return 1; 494 } 495 } 496 /* Test against Solaris 10 bug: Failures are not distinguishable from 497 successful returns. */ 498 { 499 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 500 if (cd_ascii_to_88591 != (iconv_t)(-1)) 501 { 502 static const char input[] = "\263"; 503 char buf[10]; 504 const char *inptr = input; 505 size_t inbytesleft = strlen (input); 506 char *outptr = buf; 507 size_t outbytesleft = sizeof (buf); 508 size_t res = iconv (cd_ascii_to_88591, 509 (char **) &inptr, &inbytesleft, 510 &outptr, &outbytesleft); 511 if (res == 0) 512 return 1; 513 } 514 } 515#if 0 /* This bug could be worked around by the caller. */ 516 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 517 { 518 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 519 if (cd_88591_to_utf8 != (iconv_t)(-1)) 520 { 521 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 522 char buf[50]; 523 const char *inptr = input; 524 size_t inbytesleft = strlen (input); 525 char *outptr = buf; 526 size_t outbytesleft = sizeof (buf); 527 size_t res = iconv (cd_88591_to_utf8, 528 (char **) &inptr, &inbytesleft, 529 &outptr, &outbytesleft); 530 if ((int)res > 0) 531 return 1; 532 } 533 } 534#endif 535 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 536 provided. */ 537 if (/* Try standardized names. */ 538 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 539 /* Try IRIX, OSF/1 names. */ 540 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 541 /* Try AIX names. */ 542 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 543 /* Try HP-UX names. */ 544 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 545 return 1; 546 return 0; 547}], [am_cv_func_iconv_works=yes], [am_cv_func_iconv_works=no], 548 [case "$host_os" in 549 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 550 *) am_cv_func_iconv_works="guessing yes" ;; 551 esac]) 552 LIBS="$am_save_LIBS" 553 ]) 554 case "$am_cv_func_iconv_works" in 555 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 556 *) am_func_iconv=yes ;; 557 esac 558 else 559 am_func_iconv=no am_cv_lib_iconv=no 560 fi 561 if test "$am_func_iconv" = yes; then 562 AC_DEFINE([HAVE_ICONV], [1], 563 [Define if you have the iconv() function and it works.]) 564 fi 565 if test "$am_cv_lib_iconv" = yes; then 566 AC_MSG_CHECKING([how to link with libiconv]) 567 AC_MSG_RESULT([$LIBICONV]) 568 else 569 dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV 570 dnl either. 571 CPPFLAGS="$am_save_CPPFLAGS" 572 LIBICONV= 573 LTLIBICONV= 574 fi 575 AC_SUBST([LIBICONV]) 576 AC_SUBST([LTLIBICONV]) 577]) 578 579dnl Define AM_ICONV using AC_DEFUN_ONCE for Autoconf >= 2.64, in order to 580dnl avoid warnings like 581dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required". 582dnl This is tricky because of the way 'aclocal' is implemented: 583dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN. 584dnl Otherwise aclocal's initial scan pass would miss the macro definition. 585dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions. 586dnl Otherwise aclocal would emit many "Use of uninitialized value $1" 587dnl warnings. 588m4_define([gl_iconv_AC_DEFUN], 589 m4_version_prereq([2.64], 590 [[AC_DEFUN_ONCE( 591 [$1], [$2])]], 592 [[AC_DEFUN( 593 [$1], [$2])]])) 594gl_iconv_AC_DEFUN([AM_ICONV], 595[ 596 AM_ICONV_LINK 597 if test "$am_cv_func_iconv" = yes; then 598 AC_MSG_CHECKING([for iconv declaration]) 599 AC_CACHE_VAL([am_cv_proto_iconv], [ 600 AC_TRY_COMPILE([ 601#include <stdlib.h> 602#include <iconv.h> 603extern 604#ifdef __cplusplus 605"C" 606#endif 607#if defined(__STDC__) || defined(__cplusplus) 608size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 609#else 610size_t iconv(); 611#endif 612], [], [am_cv_proto_iconv_arg1=""], [am_cv_proto_iconv_arg1="const"]) 613 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) 614 am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 615 AC_MSG_RESULT([ 616 $am_cv_proto_iconv]) 617 AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1], 618 [Define as const if the declaration of iconv() needs const.]) 619 fi 620]) 621 622# intlmacosx.m4 serial 3 (gettext-0.18) 623dnl Copyright (C) 2004-2010 Free Software Foundation, Inc. 624dnl This file is free software; the Free Software Foundation 625dnl gives unlimited permission to copy and/or distribute it, 626dnl with or without modifications, as long as this notice is preserved. 627dnl 628dnl This file can can be used in projects which are not available under 629dnl the GNU General Public License or the GNU Library General Public 630dnl License but which still want to provide support for the GNU gettext 631dnl functionality. 632dnl Please note that the actual code of the GNU gettext library is covered 633dnl by the GNU Library General Public License, and the rest of the GNU 634dnl gettext package package is covered by the GNU General Public License. 635dnl They are *not* in the public domain. 636 637dnl Checks for special options needed on MacOS X. 638dnl Defines INTL_MACOSX_LIBS. 639AC_DEFUN([gt_INTL_MACOSX], 640[ 641 dnl Check for API introduced in MacOS X 10.2. 642 AC_CACHE_CHECK([for CFPreferencesCopyAppValue], 643 [gt_cv_func_CFPreferencesCopyAppValue], 644 [gt_save_LIBS="$LIBS" 645 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 646 AC_TRY_LINK([#include <CoreFoundation/CFPreferences.h>], 647 [CFPreferencesCopyAppValue(NULL, NULL)], 648 [gt_cv_func_CFPreferencesCopyAppValue=yes], 649 [gt_cv_func_CFPreferencesCopyAppValue=no]) 650 LIBS="$gt_save_LIBS"]) 651 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 652 AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1], 653 [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) 654 fi 655 dnl Check for API introduced in MacOS X 10.3. 656 AC_CACHE_CHECK([for CFLocaleCopyCurrent], [gt_cv_func_CFLocaleCopyCurrent], 657 [gt_save_LIBS="$LIBS" 658 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 659 AC_TRY_LINK([#include <CoreFoundation/CFLocale.h>], [CFLocaleCopyCurrent();], 660 [gt_cv_func_CFLocaleCopyCurrent=yes], 661 [gt_cv_func_CFLocaleCopyCurrent=no]) 662 LIBS="$gt_save_LIBS"]) 663 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 664 AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], [1], 665 [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.]) 666 fi 667 INTL_MACOSX_LIBS= 668 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 669 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 670 fi 671 AC_SUBST([INTL_MACOSX_LIBS]) 672]) 673 674# lib-ld.m4 serial 4 (gettext-0.18) 675dnl Copyright (C) 1996-2003, 2009-2010 Free Software Foundation, Inc. 676dnl This file is free software; the Free Software Foundation 677dnl gives unlimited permission to copy and/or distribute it, 678dnl with or without modifications, as long as this notice is preserved. 679 680dnl Subroutines of libtool.m4, 681dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision 682dnl with libtool.m4. 683 684dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. 685AC_DEFUN([AC_LIB_PROG_LD_GNU], 686[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld], 687[# I'd rather use --version here, but apparently some GNU ld's only accept -v. 688case `$LD -v 2>&1 </dev/null` in 689*GNU* | *'with BFD'*) 690 acl_cv_prog_gnu_ld=yes ;; 691*) 692 acl_cv_prog_gnu_ld=no ;; 693esac]) 694with_gnu_ld=$acl_cv_prog_gnu_ld 695]) 696 697dnl From libtool-1.4. Sets the variable LD. 698AC_DEFUN([AC_LIB_PROG_LD], 699[AC_ARG_WITH([gnu-ld], 700[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], 701test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) 702AC_REQUIRE([AC_PROG_CC])dnl 703AC_REQUIRE([AC_CANONICAL_HOST])dnl 704# Prepare PATH_SEPARATOR. 705# The user is always right. 706if test "${PATH_SEPARATOR+set}" != set; then 707 echo "#! /bin/sh" >conf$$.sh 708 echo "exit 0" >>conf$$.sh 709 chmod +x conf$$.sh 710 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 711 PATH_SEPARATOR=';' 712 else 713 PATH_SEPARATOR=: 714 fi 715 rm -f conf$$.sh 716fi 717ac_prog=ld 718if test "$GCC" = yes; then 719 # Check if gcc -print-prog-name=ld gives a path. 720 AC_MSG_CHECKING([for ld used by GCC]) 721 case $host in 722 *-*-mingw*) 723 # gcc leaves a trailing carriage return which upsets mingw 724 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 725 *) 726 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 727 esac 728 case $ac_prog in 729 # Accept absolute paths. 730 [[\\/]* | [A-Za-z]:[\\/]*)] 731 [re_direlt='/[^/][^/]*/\.\./'] 732 # Canonicalize the path of ld 733 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 734 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 735 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 736 done 737 test -z "$LD" && LD="$ac_prog" 738 ;; 739 "") 740 # If it fails, then pretend we aren't using GCC. 741 ac_prog=ld 742 ;; 743 *) 744 # If it is relative, then search for the first ld in PATH. 745 with_gnu_ld=unknown 746 ;; 747 esac 748elif test "$with_gnu_ld" = yes; then 749 AC_MSG_CHECKING([for GNU ld]) 750else 751 AC_MSG_CHECKING([for non-GNU ld]) 752fi 753AC_CACHE_VAL([acl_cv_path_LD], 754[if test -z "$LD"; then 755 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 756 for ac_dir in $PATH; do 757 test -z "$ac_dir" && ac_dir=. 758 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 759 acl_cv_path_LD="$ac_dir/$ac_prog" 760 # Check to see if the program is GNU ld. I'd rather use --version, 761 # but apparently some GNU ld's only accept -v. 762 # Break only if it was the GNU/non-GNU ld that we prefer. 763 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 764 *GNU* | *'with BFD'*) 765 test "$with_gnu_ld" != no && break ;; 766 *) 767 test "$with_gnu_ld" != yes && break ;; 768 esac 769 fi 770 done 771 IFS="$ac_save_ifs" 772else 773 acl_cv_path_LD="$LD" # Let the user override the test with a path. 774fi]) 775LD="$acl_cv_path_LD" 776if test -n "$LD"; then 777 AC_MSG_RESULT([$LD]) 778else 779 AC_MSG_RESULT([no]) 780fi 781test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 782AC_LIB_PROG_LD_GNU 783]) 784 785# lib-link.m4 serial 21 (gettext-0.18) 786dnl Copyright (C) 2001-2010 Free Software Foundation, Inc. 787dnl This file is free software; the Free Software Foundation 788dnl gives unlimited permission to copy and/or distribute it, 789dnl with or without modifications, as long as this notice is preserved. 790 791dnl From Bruno Haible. 792 793AC_PREREQ([2.54]) 794 795dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and 796dnl the libraries corresponding to explicit and implicit dependencies. 797dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and 798dnl augments the CPPFLAGS variable. 799dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname 800dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. 801AC_DEFUN([AC_LIB_LINKFLAGS], 802[ 803 AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) 804 AC_REQUIRE([AC_LIB_RPATH]) 805 pushdef([Name],[translit([$1],[./-], [___])]) 806 pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], 807 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) 808 AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ 809 AC_LIB_LINKFLAGS_BODY([$1], [$2]) 810 ac_cv_lib[]Name[]_libs="$LIB[]NAME" 811 ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" 812 ac_cv_lib[]Name[]_cppflags="$INC[]NAME" 813 ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX" 814 ]) 815 LIB[]NAME="$ac_cv_lib[]Name[]_libs" 816 LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" 817 INC[]NAME="$ac_cv_lib[]Name[]_cppflags" 818 LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix" 819 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) 820 AC_SUBST([LIB]NAME) 821 AC_SUBST([LTLIB]NAME) 822 AC_SUBST([LIB]NAME[_PREFIX]) 823 dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the 824 dnl results of this search when this library appears as a dependency. 825 HAVE_LIB[]NAME=yes 826 popdef([NAME]) 827 popdef([Name]) 828]) 829 830dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode, [missing-message]) 831dnl searches for libname and the libraries corresponding to explicit and 832dnl implicit dependencies, together with the specified include files and 833dnl the ability to compile and link the specified testcode. The missing-message 834dnl defaults to 'no' and may contain additional hints for the user. 835dnl If found, it sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} 836dnl and LTLIB${NAME} variables and augments the CPPFLAGS variable, and 837dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs 838dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. 839dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname 840dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. 841AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], 842[ 843 AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) 844 AC_REQUIRE([AC_LIB_RPATH]) 845 pushdef([Name],[translit([$1],[./-], [___])]) 846 pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], 847 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) 848 849 dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME 850 dnl accordingly. 851 AC_LIB_LINKFLAGS_BODY([$1], [$2]) 852 853 dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, 854 dnl because if the user has installed lib[]Name and not disabled its use 855 dnl via --without-lib[]Name-prefix, he wants to use it. 856 ac_save_CPPFLAGS="$CPPFLAGS" 857 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) 858 859 AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ 860 ac_save_LIBS="$LIBS" 861 dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS, 862 dnl because these -l options might require -L options that are present in 863 dnl LIBS. -l options benefit only from the -L options listed before it. 864 dnl Otherwise, add it to the front of LIBS, because it may be a static 865 dnl library that depends on another static library that is present in LIBS. 866 dnl Static libraries benefit only from the static libraries listed after 867 dnl it. 868 case " $LIB[]NAME" in 869 *" -l"*) LIBS="$LIBS $LIB[]NAME" ;; 870 *) LIBS="$LIB[]NAME $LIBS" ;; 871 esac 872 AC_TRY_LINK([$3], [$4], 873 [ac_cv_lib[]Name=yes], 874 [ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])']) 875 LIBS="$ac_save_LIBS" 876 ]) 877 if test "$ac_cv_lib[]Name" = yes; then 878 HAVE_LIB[]NAME=yes 879 AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the lib][$1 library.]) 880 AC_MSG_CHECKING([how to link with lib[]$1]) 881 AC_MSG_RESULT([$LIB[]NAME]) 882 else 883 HAVE_LIB[]NAME=no 884 dnl If $LIB[]NAME didn't lead to a usable library, we don't need 885 dnl $INC[]NAME either. 886 CPPFLAGS="$ac_save_CPPFLAGS" 887 LIB[]NAME= 888 LTLIB[]NAME= 889 LIB[]NAME[]_PREFIX= 890 fi 891 AC_SUBST([HAVE_LIB]NAME) 892 AC_SUBST([LIB]NAME) 893 AC_SUBST([LTLIB]NAME) 894 AC_SUBST([LIB]NAME[_PREFIX]) 895 popdef([NAME]) 896 popdef([Name]) 897]) 898 899dnl Determine the platform dependent parameters needed to use rpath: 900dnl acl_libext, 901dnl acl_shlibext, 902dnl acl_hardcode_libdir_flag_spec, 903dnl acl_hardcode_libdir_separator, 904dnl acl_hardcode_direct, 905dnl acl_hardcode_minus_L. 906AC_DEFUN([AC_LIB_RPATH], 907[ 908 dnl Tell automake >= 1.10 to complain if config.rpath is missing. 909 m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) 910 AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS 911 AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld 912 AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host 913 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir 914 AC_CACHE_CHECK([for shared library run path origin], [acl_cv_rpath], [ 915 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 916 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 917 . ./conftest.sh 918 rm -f ./conftest.sh 919 acl_cv_rpath=done 920 ]) 921 wl="$acl_cv_wl" 922 acl_libext="$acl_cv_libext" 923 acl_shlibext="$acl_cv_shlibext" 924 acl_libname_spec="$acl_cv_libname_spec" 925 acl_library_names_spec="$acl_cv_library_names_spec" 926 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 927 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 928 acl_hardcode_direct="$acl_cv_hardcode_direct" 929 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 930 dnl Determine whether the user wants rpath handling at all. 931 AC_ARG_ENABLE([rpath], 932 [ --disable-rpath do not hardcode runtime library paths], 933 :, enable_rpath=yes) 934]) 935 936dnl AC_LIB_FROMPACKAGE(name, package) 937dnl declares that libname comes from the given package. The configure file 938dnl will then not have a --with-libname-prefix option but a 939dnl --with-package-prefix option. Several libraries can come from the same 940dnl package. This declaration must occur before an AC_LIB_LINKFLAGS or similar 941dnl macro call that searches for libname. 942AC_DEFUN([AC_LIB_FROMPACKAGE], 943[ 944 pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], 945 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) 946 define([acl_frompackage_]NAME, [$2]) 947 popdef([NAME]) 948 pushdef([PACK],[$2]) 949 pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-], 950 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) 951 define([acl_libsinpackage_]PACKUP, 952 m4_ifdef([acl_libsinpackage_]PACKUP, [acl_libsinpackage_]PACKUP[[, ]],)[lib$1]) 953 popdef([PACKUP]) 954 popdef([PACK]) 955]) 956 957dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and 958dnl the libraries corresponding to explicit and implicit dependencies. 959dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. 960dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found 961dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem. 962AC_DEFUN([AC_LIB_LINKFLAGS_BODY], 963[ 964 AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) 965 pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], 966 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) 967 pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])]) 968 pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-], 969 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) 970 pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])]) 971 dnl Autoconf >= 2.61 supports dots in --with options. 972 pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit(PACK,[.],[_])],PACK)]) 973 dnl By default, look in $includedir and $libdir. 974 use_additional=yes 975 AC_LIB_WITH_FINAL_PREFIX([ 976 eval additional_includedir=\"$includedir\" 977 eval additional_libdir=\"$libdir\" 978 ]) 979 AC_ARG_WITH(P_A_C_K[-prefix], 980[[ --with-]]P_A_C_K[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib 981 --without-]]P_A_C_K[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]], 982[ 983 if test "X$withval" = "Xno"; then 984 use_additional=no 985 else 986 if test "X$withval" = "X"; then 987 AC_LIB_WITH_FINAL_PREFIX([ 988 eval additional_includedir=\"$includedir\" 989 eval additional_libdir=\"$libdir\" 990 ]) 991 else 992 additional_includedir="$withval/include" 993 additional_libdir="$withval/$acl_libdirstem" 994 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 995 && ! test -d "$withval/$acl_libdirstem"; then 996 additional_libdir="$withval/$acl_libdirstem2" 997 fi 998 fi 999 fi 1000]) 1001 dnl Search the library and its dependencies in $additional_libdir and 1002 dnl $LDFLAGS. Using breadth-first-seach. 1003 LIB[]NAME= 1004 LTLIB[]NAME= 1005 INC[]NAME= 1006 LIB[]NAME[]_PREFIX= 1007 dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been 1008 dnl computed. So it has to be reset here. 1009 HAVE_LIB[]NAME= 1010 rpathdirs= 1011 ltrpathdirs= 1012 names_already_handled= 1013 names_next_round='$1 $2' 1014 while test -n "$names_next_round"; do 1015 names_this_round="$names_next_round" 1016 names_next_round= 1017 for name in $names_this_round; do 1018 already_handled= 1019 for n in $names_already_handled; do 1020 if test "$n" = "$name"; then 1021 already_handled=yes 1022 break 1023 fi 1024 done 1025 if test -z "$already_handled"; then 1026 names_already_handled="$names_already_handled $name" 1027 dnl See if it was already located by an earlier AC_LIB_LINKFLAGS 1028 dnl or AC_LIB_HAVE_LINKFLAGS call. 1029 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 1030 eval value=\"\$HAVE_LIB$uppername\" 1031 if test -n "$value"; then 1032 if test "$value" = yes; then 1033 eval value=\"\$LIB$uppername\" 1034 test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" 1035 eval value=\"\$LTLIB$uppername\" 1036 test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" 1037 else 1038 dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined 1039 dnl that this library doesn't exist. So just drop it. 1040 : 1041 fi 1042 else 1043 dnl Search the library lib$name in $additional_libdir and $LDFLAGS 1044 dnl and the already constructed $LIBNAME/$LTLIBNAME. 1045 found_dir= 1046 found_la= 1047 found_so= 1048 found_a= 1049 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 1050 if test -n "$acl_shlibext"; then 1051 shrext=".$acl_shlibext" # typically: shrext=.so 1052 else 1053 shrext= 1054 fi 1055 if test $use_additional = yes; then 1056 dir="$additional_libdir" 1057 dnl The same code as in the loop below: 1058 dnl First look for a shared library. 1059 if test -n "$acl_shlibext"; then 1060 if test -f "$dir/$libname$shrext"; then 1061 found_dir="$dir" 1062 found_so="$dir/$libname$shrext" 1063 else 1064 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 1065 ver=`(cd "$dir" && \ 1066 for f in "$libname$shrext".*; do echo "$f"; done \ 1067 | sed -e "s,^$libname$shrext\\\\.,," \ 1068 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 1069 | sed 1q ) 2>/dev/null` 1070 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 1071 found_dir="$dir" 1072 found_so="$dir/$libname$shrext.$ver" 1073 fi 1074 else 1075 eval library_names=\"$acl_library_names_spec\" 1076 for f in $library_names; do 1077 if test -f "$dir/$f"; then 1078 found_dir="$dir" 1079 found_so="$dir/$f" 1080 break 1081 fi 1082 done 1083 fi 1084 fi 1085 fi 1086 dnl Then look for a static library. 1087 if test "X$found_dir" = "X"; then 1088 if test -f "$dir/$libname.$acl_libext"; then 1089 found_dir="$dir" 1090 found_a="$dir/$libname.$acl_libext" 1091 fi 1092 fi 1093 if test "X$found_dir" != "X"; then 1094 if test -f "$dir/$libname.la"; then 1095 found_la="$dir/$libname.la" 1096 fi 1097 fi 1098 fi 1099 if test "X$found_dir" = "X"; then 1100 for x in $LDFLAGS $LTLIB[]NAME; do 1101 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 1102 case "$x" in 1103 -L*) 1104 dir=`echo "X$x" | sed -e 's/^X-L//'` 1105 dnl First look for a shared library. 1106 if test -n "$acl_shlibext"; then 1107 if test -f "$dir/$libname$shrext"; then 1108 found_dir="$dir" 1109 found_so="$dir/$libname$shrext" 1110 else 1111 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 1112 ver=`(cd "$dir" && \ 1113 for f in "$libname$shrext".*; do echo "$f"; done \ 1114 | sed -e "s,^$libname$shrext\\\\.,," \ 1115 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 1116 | sed 1q ) 2>/dev/null` 1117 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 1118 found_dir="$dir" 1119 found_so="$dir/$libname$shrext.$ver" 1120 fi 1121 else 1122 eval library_names=\"$acl_library_names_spec\" 1123 for f in $library_names; do 1124 if test -f "$dir/$f"; then 1125 found_dir="$dir" 1126 found_so="$dir/$f" 1127 break 1128 fi 1129 done 1130 fi 1131 fi 1132 fi 1133 dnl Then look for a static library. 1134 if test "X$found_dir" = "X"; then 1135 if test -f "$dir/$libname.$acl_libext"; then 1136 found_dir="$dir" 1137 found_a="$dir/$libname.$acl_libext" 1138 fi 1139 fi 1140 if test "X$found_dir" != "X"; then 1141 if test -f "$dir/$libname.la"; then 1142 found_la="$dir/$libname.la" 1143 fi 1144 fi 1145 ;; 1146 esac 1147 if test "X$found_dir" != "X"; then 1148 break 1149 fi 1150 done 1151 fi 1152 if test "X$found_dir" != "X"; then 1153 dnl Found the library. 1154 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" 1155 if test "X$found_so" != "X"; then 1156 dnl Linking with a shared library. We attempt to hardcode its 1157 dnl directory into the executable's runpath, unless it's the 1158 dnl standard /usr/lib. 1159 if test "$enable_rpath" = no \ 1160 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 1161 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 1162 dnl No hardcoding is needed. 1163 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" 1164 else 1165 dnl Use an explicit option to hardcode DIR into the resulting 1166 dnl binary. 1167 dnl Potentially add DIR to ltrpathdirs. 1168 dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. 1169 haveit= 1170 for x in $ltrpathdirs; do 1171 if test "X$x" = "X$found_dir"; then 1172 haveit=yes 1173 break 1174 fi 1175 done 1176 if test -z "$haveit"; then 1177 ltrpathdirs="$ltrpathdirs $found_dir" 1178 fi 1179 dnl The hardcoding into $LIBNAME is system dependent. 1180 if test "$acl_hardcode_direct" = yes; then 1181 dnl Using DIR/libNAME.so during linking hardcodes DIR into the 1182 dnl resulting binary. 1183 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" 1184 else 1185 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 1186 dnl Use an explicit option to hardcode DIR into the resulting 1187 dnl binary. 1188 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" 1189 dnl Potentially add DIR to rpathdirs. 1190 dnl The rpathdirs will be appended to $LIBNAME at the end. 1191 haveit= 1192 for x in $rpathdirs; do 1193 if test "X$x" = "X$found_dir"; then 1194 haveit=yes 1195 break 1196 fi 1197 done 1198 if test -z "$haveit"; then 1199 rpathdirs="$rpathdirs $found_dir" 1200 fi 1201 else 1202 dnl Rely on "-L$found_dir". 1203 dnl But don't add it if it's already contained in the LDFLAGS 1204 dnl or the already constructed $LIBNAME 1205 haveit= 1206 for x in $LDFLAGS $LIB[]NAME; do 1207 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 1208 if test "X$x" = "X-L$found_dir"; then 1209 haveit=yes 1210 break 1211 fi 1212 done 1213 if test -z "$haveit"; then 1214 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" 1215 fi 1216 if test "$acl_hardcode_minus_L" != no; then 1217 dnl FIXME: Not sure whether we should use 1218 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" 1219 dnl here. 1220 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" 1221 else 1222 dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH 1223 dnl here, because this doesn't fit in flags passed to the 1224 dnl compiler. So give up. No hardcoding. This affects only 1225 dnl very old systems. 1226 dnl FIXME: Not sure whether we should use 1227 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" 1228 dnl here. 1229 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" 1230 fi 1231 fi 1232 fi 1233 fi 1234 else 1235 if test "X$found_a" != "X"; then 1236 dnl Linking with a static library. 1237 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" 1238 else 1239 dnl We shouldn't come here, but anyway it's good to have a 1240 dnl fallback. 1241 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" 1242 fi 1243 fi 1244 dnl Assume the include files are nearby. 1245 additional_includedir= 1246 case "$found_dir" in 1247 */$acl_libdirstem | */$acl_libdirstem/) 1248 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 1249 if test "$name" = '$1'; then 1250 LIB[]NAME[]_PREFIX="$basedir" 1251 fi 1252 additional_includedir="$basedir/include" 1253 ;; 1254 */$acl_libdirstem2 | */$acl_libdirstem2/) 1255 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 1256 if test "$name" = '$1'; then 1257 LIB[]NAME[]_PREFIX="$basedir" 1258 fi 1259 additional_includedir="$basedir/include" 1260 ;; 1261 esac 1262 if test "X$additional_includedir" != "X"; then 1263 dnl Potentially add $additional_includedir to $INCNAME. 1264 dnl But don't add it 1265 dnl 1. if it's the standard /usr/include, 1266 dnl 2. if it's /usr/local/include and we are using GCC on Linux, 1267 dnl 3. if it's already present in $CPPFLAGS or the already 1268 dnl constructed $INCNAME, 1269 dnl 4. if it doesn't exist as a directory. 1270 if test "X$additional_includedir" != "X/usr/include"; then 1271 haveit= 1272 if test "X$additional_includedir" = "X/usr/local/include"; then 1273 if test -n "$GCC"; then 1274 case $host_os in 1275 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 1276 esac 1277 fi 1278 fi 1279 if test -z "$haveit"; then 1280 for x in $CPPFLAGS $INC[]NAME; do 1281 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 1282 if test "X$x" = "X-I$additional_includedir"; then 1283 haveit=yes 1284 break 1285 fi 1286 done 1287 if test -z "$haveit"; then 1288 if test -d "$additional_includedir"; then 1289 dnl Really add $additional_includedir to $INCNAME. 1290 INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" 1291 fi 1292 fi 1293 fi 1294 fi 1295 fi 1296 dnl Look for dependencies. 1297 if test -n "$found_la"; then 1298 dnl Read the .la file. It defines the variables 1299 dnl dlname, library_names, old_library, dependency_libs, current, 1300 dnl age, revision, installed, dlopen, dlpreopen, libdir. 1301 save_libdir="$libdir" 1302 case "$found_la" in 1303 */* | *\\*) . "$found_la" ;; 1304 *) . "./$found_la" ;; 1305 esac 1306 libdir="$save_libdir" 1307 dnl We use only dependency_libs. 1308 for dep in $dependency_libs; do 1309 case "$dep" in 1310 -L*) 1311 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 1312 dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. 1313 dnl But don't add it 1314 dnl 1. if it's the standard /usr/lib, 1315 dnl 2. if it's /usr/local/lib and we are using GCC on Linux, 1316 dnl 3. if it's already present in $LDFLAGS or the already 1317 dnl constructed $LIBNAME, 1318 dnl 4. if it doesn't exist as a directory. 1319 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 1320 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 1321 haveit= 1322 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 1323 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 1324 if test -n "$GCC"; then 1325 case $host_os in 1326 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 1327 esac 1328 fi 1329 fi 1330 if test -z "$haveit"; then 1331 haveit= 1332 for x in $LDFLAGS $LIB[]NAME; do 1333 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 1334 if test "X$x" = "X-L$additional_libdir"; then 1335 haveit=yes 1336 break 1337 fi 1338 done 1339 if test -z "$haveit"; then 1340 if test -d "$additional_libdir"; then 1341 dnl Really add $additional_libdir to $LIBNAME. 1342 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" 1343 fi 1344 fi 1345 haveit= 1346 for x in $LDFLAGS $LTLIB[]NAME; do 1347 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 1348 if test "X$x" = "X-L$additional_libdir"; then 1349 haveit=yes 1350 break 1351 fi 1352 done 1353 if test -z "$haveit"; then 1354 if test -d "$additional_libdir"; then 1355 dnl Really add $additional_libdir to $LTLIBNAME. 1356 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" 1357 fi 1358 fi 1359 fi 1360 fi 1361 ;; 1362 -R*) 1363 dir=`echo "X$dep" | sed -e 's/^X-R//'` 1364 if test "$enable_rpath" != no; then 1365 dnl Potentially add DIR to rpathdirs. 1366 dnl The rpathdirs will be appended to $LIBNAME at the end. 1367 haveit= 1368 for x in $rpathdirs; do 1369 if test "X$x" = "X$dir"; then 1370 haveit=yes 1371 break 1372 fi 1373 done 1374 if test -z "$haveit"; then 1375 rpathdirs="$rpathdirs $dir" 1376 fi 1377 dnl Potentially add DIR to ltrpathdirs. 1378 dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. 1379 haveit= 1380 for x in $ltrpathdirs; do 1381 if test "X$x" = "X$dir"; then 1382 haveit=yes 1383 break 1384 fi 1385 done 1386 if test -z "$haveit"; then 1387 ltrpathdirs="$ltrpathdirs $dir" 1388 fi 1389 fi 1390 ;; 1391 -l*) 1392 dnl Handle this in the next round. 1393 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 1394 ;; 1395 *.la) 1396 dnl Handle this in the next round. Throw away the .la's 1397 dnl directory; it is already contained in a preceding -L 1398 dnl option. 1399 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 1400 ;; 1401 *) 1402 dnl Most likely an immediate library name. 1403 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" 1404 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" 1405 ;; 1406 esac 1407 done 1408 fi 1409 else 1410 dnl Didn't find the library; assume it is in the system directories 1411 dnl known to the linker and runtime loader. (All the system 1412 dnl directories known to the linker should also be known to the 1413 dnl runtime loader, otherwise the system is severely misconfigured.) 1414 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" 1415 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" 1416 fi 1417 fi 1418 fi 1419 done 1420 done 1421 if test "X$rpathdirs" != "X"; then 1422 if test -n "$acl_hardcode_libdir_separator"; then 1423 dnl Weird platform: only the last -rpath option counts, the user must 1424 dnl pass all path elements in one option. We can arrange that for a 1425 dnl single library, but not when more than one $LIBNAMEs are used. 1426 alldirs= 1427 for found_dir in $rpathdirs; do 1428 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 1429 done 1430 dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl. 1431 acl_save_libdir="$libdir" 1432 libdir="$alldirs" 1433 eval flag=\"$acl_hardcode_libdir_flag_spec\" 1434 libdir="$acl_save_libdir" 1435 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" 1436 else 1437 dnl The -rpath options are cumulative. 1438 for found_dir in $rpathdirs; do 1439 acl_save_libdir="$libdir" 1440 libdir="$found_dir" 1441 eval flag=\"$acl_hardcode_libdir_flag_spec\" 1442 libdir="$acl_save_libdir" 1443 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" 1444 done 1445 fi 1446 fi 1447 if test "X$ltrpathdirs" != "X"; then 1448 dnl When using libtool, the option that works for both libraries and 1449 dnl executables is -R. The -R options are cumulative. 1450 for found_dir in $ltrpathdirs; do 1451 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" 1452 done 1453 fi 1454 popdef([P_A_C_K]) 1455 popdef([PACKLIBS]) 1456 popdef([PACKUP]) 1457 popdef([PACK]) 1458 popdef([NAME]) 1459]) 1460 1461dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, 1462dnl unless already present in VAR. 1463dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes 1464dnl contains two or three consecutive elements that belong together. 1465AC_DEFUN([AC_LIB_APPENDTOVAR], 1466[ 1467 for element in [$2]; do 1468 haveit= 1469 for x in $[$1]; do 1470 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 1471 if test "X$x" = "X$element"; then 1472 haveit=yes 1473 break 1474 fi 1475 done 1476 if test -z "$haveit"; then 1477 [$1]="${[$1]}${[$1]:+ }$element" 1478 fi 1479 done 1480]) 1481 1482dnl For those cases where a variable contains several -L and -l options 1483dnl referring to unknown libraries and directories, this macro determines the 1484dnl necessary additional linker options for the runtime path. 1485dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) 1486dnl sets LDADDVAR to linker options needed together with LIBSVALUE. 1487dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, 1488dnl otherwise linking without libtool is assumed. 1489AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], 1490[ 1491 AC_REQUIRE([AC_LIB_RPATH]) 1492 AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) 1493 $1= 1494 if test "$enable_rpath" != no; then 1495 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 1496 dnl Use an explicit option to hardcode directories into the resulting 1497 dnl binary. 1498 rpathdirs= 1499 next= 1500 for opt in $2; do 1501 if test -n "$next"; then 1502 dir="$next" 1503 dnl No need to hardcode the standard /usr/lib. 1504 if test "X$dir" != "X/usr/$acl_libdirstem" \ 1505 && test "X$dir" != "X/usr/$acl_libdirstem2"; then 1506 rpathdirs="$rpathdirs $dir" 1507 fi 1508 next= 1509 else 1510 case $opt in 1511 -L) next=yes ;; 1512 -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` 1513 dnl No need to hardcode the standard /usr/lib. 1514 if test "X$dir" != "X/usr/$acl_libdirstem" \ 1515 && test "X$dir" != "X/usr/$acl_libdirstem2"; then 1516 rpathdirs="$rpathdirs $dir" 1517 fi 1518 next= ;; 1519 *) next= ;; 1520 esac 1521 fi 1522 done 1523 if test "X$rpathdirs" != "X"; then 1524 if test -n ""$3""; then 1525 dnl libtool is used for linking. Use -R options. 1526 for dir in $rpathdirs; do 1527 $1="${$1}${$1:+ }-R$dir" 1528 done 1529 else 1530 dnl The linker is used for linking directly. 1531 if test -n "$acl_hardcode_libdir_separator"; then 1532 dnl Weird platform: only the last -rpath option counts, the user 1533 dnl must pass all path elements in one option. 1534 alldirs= 1535 for dir in $rpathdirs; do 1536 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" 1537 done 1538 acl_save_libdir="$libdir" 1539 libdir="$alldirs" 1540 eval flag=\"$acl_hardcode_libdir_flag_spec\" 1541 libdir="$acl_save_libdir" 1542 $1="$flag" 1543 else 1544 dnl The -rpath options are cumulative. 1545 for dir in $rpathdirs; do 1546 acl_save_libdir="$libdir" 1547 libdir="$dir" 1548 eval flag=\"$acl_hardcode_libdir_flag_spec\" 1549 libdir="$acl_save_libdir" 1550 $1="${$1}${$1:+ }$flag" 1551 done 1552 fi 1553 fi 1554 fi 1555 fi 1556 fi 1557 AC_SUBST([$1]) 1558]) 1559 1560# lib-prefix.m4 serial 7 (gettext-0.18) 1561dnl Copyright (C) 2001-2005, 2008-2010 Free Software Foundation, Inc. 1562dnl This file is free software; the Free Software Foundation 1563dnl gives unlimited permission to copy and/or distribute it, 1564dnl with or without modifications, as long as this notice is preserved. 1565 1566dnl From Bruno Haible. 1567 1568dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and 1569dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't 1570dnl require excessive bracketing. 1571ifdef([AC_HELP_STRING], 1572[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], 1573[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) 1574 1575dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed 1576dnl to access previously installed libraries. The basic assumption is that 1577dnl a user will want packages to use other packages he previously installed 1578dnl with the same --prefix option. 1579dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate 1580dnl libraries, but is otherwise very convenient. 1581AC_DEFUN([AC_LIB_PREFIX], 1582[ 1583 AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) 1584 AC_REQUIRE([AC_PROG_CC]) 1585 AC_REQUIRE([AC_CANONICAL_HOST]) 1586 AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) 1587 AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) 1588 dnl By default, look in $includedir and $libdir. 1589 use_additional=yes 1590 AC_LIB_WITH_FINAL_PREFIX([ 1591 eval additional_includedir=\"$includedir\" 1592 eval additional_libdir=\"$libdir\" 1593 ]) 1594 AC_LIB_ARG_WITH([lib-prefix], 1595[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib 1596 --without-lib-prefix don't search for libraries in includedir and libdir], 1597[ 1598 if test "X$withval" = "Xno"; then 1599 use_additional=no 1600 else 1601 if test "X$withval" = "X"; then 1602 AC_LIB_WITH_FINAL_PREFIX([ 1603 eval additional_includedir=\"$includedir\" 1604 eval additional_libdir=\"$libdir\" 1605 ]) 1606 else 1607 additional_includedir="$withval/include" 1608 additional_libdir="$withval/$acl_libdirstem" 1609 fi 1610 fi 1611]) 1612 if test $use_additional = yes; then 1613 dnl Potentially add $additional_includedir to $CPPFLAGS. 1614 dnl But don't add it 1615 dnl 1. if it's the standard /usr/include, 1616 dnl 2. if it's already present in $CPPFLAGS, 1617 dnl 3. if it's /usr/local/include and we are using GCC on Linux, 1618 dnl 4. if it doesn't exist as a directory. 1619 if test "X$additional_includedir" != "X/usr/include"; then 1620 haveit= 1621 for x in $CPPFLAGS; do 1622 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 1623 if test "X$x" = "X-I$additional_includedir"; then 1624 haveit=yes 1625 break 1626 fi 1627 done 1628 if test -z "$haveit"; then 1629 if test "X$additional_includedir" = "X/usr/local/include"; then 1630 if test -n "$GCC"; then 1631 case $host_os in 1632 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 1633 esac 1634 fi 1635 fi 1636 if test -z "$haveit"; then 1637 if test -d "$additional_includedir"; then 1638 dnl Really add $additional_includedir to $CPPFLAGS. 1639 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" 1640 fi 1641 fi 1642 fi 1643 fi 1644 dnl Potentially add $additional_libdir to $LDFLAGS. 1645 dnl But don't add it 1646 dnl 1. if it's the standard /usr/lib, 1647 dnl 2. if it's already present in $LDFLAGS, 1648 dnl 3. if it's /usr/local/lib and we are using GCC on Linux, 1649 dnl 4. if it doesn't exist as a directory. 1650 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then 1651 haveit= 1652 for x in $LDFLAGS; do 1653 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 1654 if test "X$x" = "X-L$additional_libdir"; then 1655 haveit=yes 1656 break 1657 fi 1658 done 1659 if test -z "$haveit"; then 1660 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then 1661 if test -n "$GCC"; then 1662 case $host_os in 1663 linux*) haveit=yes;; 1664 esac 1665 fi 1666 fi 1667 if test -z "$haveit"; then 1668 if test -d "$additional_libdir"; then 1669 dnl Really add $additional_libdir to $LDFLAGS. 1670 LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" 1671 fi 1672 fi 1673 fi 1674 fi 1675 fi 1676]) 1677 1678dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, 1679dnl acl_final_exec_prefix, containing the values to which $prefix and 1680dnl $exec_prefix will expand at the end of the configure script. 1681AC_DEFUN([AC_LIB_PREPARE_PREFIX], 1682[ 1683 dnl Unfortunately, prefix and exec_prefix get only finally determined 1684 dnl at the end of configure. 1685 if test "X$prefix" = "XNONE"; then 1686 acl_final_prefix="$ac_default_prefix" 1687 else 1688 acl_final_prefix="$prefix" 1689 fi 1690 if test "X$exec_prefix" = "XNONE"; then 1691 acl_final_exec_prefix='${prefix}' 1692 else 1693 acl_final_exec_prefix="$exec_prefix" 1694 fi 1695 acl_save_prefix="$prefix" 1696 prefix="$acl_final_prefix" 1697 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 1698 prefix="$acl_save_prefix" 1699]) 1700 1701dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the 1702dnl variables prefix and exec_prefix bound to the values they will have 1703dnl at the end of the configure script. 1704AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], 1705[ 1706 acl_save_prefix="$prefix" 1707 prefix="$acl_final_prefix" 1708 acl_save_exec_prefix="$exec_prefix" 1709 exec_prefix="$acl_final_exec_prefix" 1710 $1 1711 exec_prefix="$acl_save_exec_prefix" 1712 prefix="$acl_save_prefix" 1713]) 1714 1715dnl AC_LIB_PREPARE_MULTILIB creates 1716dnl - a variable acl_libdirstem, containing the basename of the libdir, either 1717dnl "lib" or "lib64" or "lib/64", 1718dnl - a variable acl_libdirstem2, as a secondary possible value for 1719dnl acl_libdirstem, either the same as acl_libdirstem or "lib/sparcv9" or 1720dnl "lib/amd64". 1721AC_DEFUN([AC_LIB_PREPARE_MULTILIB], 1722[ 1723 dnl There is no formal standard regarding lib and lib64. 1724 dnl On glibc systems, the current practice is that on a system supporting 1725 dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under 1726 dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. We determine 1727 dnl the compiler's default mode by looking at the compiler's library search 1728 dnl path. If at least one of its elements ends in /lib64 or points to a 1729 dnl directory whose absolute pathname ends in /lib64, we assume a 64-bit ABI. 1730 dnl Otherwise we use the default, namely "lib". 1731 dnl On Solaris systems, the current practice is that on a system supporting 1732 dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under 1733 dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or 1734 dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib. 1735 AC_REQUIRE([AC_CANONICAL_HOST]) 1736 acl_libdirstem=lib 1737 acl_libdirstem2= 1738 case "$host_os" in 1739 solaris*) 1740 dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment 1741 dnl <http://docs.sun.com/app/docs/doc/816-5138/dev-env?l=en&a=view>. 1742 dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link." 1743 dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the 1744 dnl symlink is missing, so we set acl_libdirstem2 too. 1745 AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit], 1746 [AC_EGREP_CPP([sixtyfour bits], [ 1747#ifdef _LP64 1748sixtyfour bits 1749#endif 1750 ], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no]) 1751 ]) 1752 if test $gl_cv_solaris_64bit = yes; then 1753 acl_libdirstem=lib/64 1754 case "$host_cpu" in 1755 sparc*) acl_libdirstem2=lib/sparcv9 ;; 1756 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 1757 esac 1758 fi 1759 ;; 1760 *) 1761 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 1762 if test -n "$searchpath"; then 1763 acl_save_IFS="${IFS= }"; IFS=":" 1764 for searchdir in $searchpath; do 1765 if test -d "$searchdir"; then 1766 case "$searchdir" in 1767 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 1768 */../ | */.. ) 1769 # Better ignore directories of this form. They are misleading. 1770 ;; 1771 *) searchdir=`cd "$searchdir" && pwd` 1772 case "$searchdir" in 1773 */lib64 ) acl_libdirstem=lib64 ;; 1774 esac ;; 1775 esac 1776 fi 1777 done 1778 IFS="$acl_save_IFS" 1779 fi 1780 ;; 1781 esac 1782 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 1783]) 1784 1785# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 1786# 1787# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 1788# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 1789# Inc. 1790# Written by Gordon Matzigkeit, 1996 1791# 1792# This file is free software; the Free Software Foundation gives 1793# unlimited permission to copy and/or distribute it, with or without 1794# modifications, as long as this notice is preserved. 1795 1796m4_define([_LT_COPYING], [dnl 1797# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 1798# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 1799# Inc. 1800# Written by Gordon Matzigkeit, 1996 1801# 1802# This file is part of GNU Libtool. 1803# 1804# GNU Libtool is free software; you can redistribute it and/or 1805# modify it under the terms of the GNU General Public License as 1806# published by the Free Software Foundation; either version 2 of 1807# the License, or (at your option) any later version. 1808# 1809# As a special exception to the GNU General Public License, 1810# if you distribute this file as part of a program or library that 1811# is built using GNU Libtool, you may include this file under the 1812# same distribution terms that you use for the rest of that program. 1813# 1814# GNU Libtool is distributed in the hope that it will be useful, 1815# but WITHOUT ANY WARRANTY; without even the implied warranty of 1816# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1817# GNU General Public License for more details. 1818# 1819# You should have received a copy of the GNU General Public License 1820# along with GNU Libtool; see the file COPYING. If not, a copy 1821# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 1822# obtained by writing to the Free Software Foundation, Inc., 1823# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 1824]) 1825 1826# serial 57 LT_INIT 1827 1828 1829# LT_PREREQ(VERSION) 1830# ------------------ 1831# Complain and exit if this libtool version is less that VERSION. 1832m4_defun([LT_PREREQ], 1833[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, 1834 [m4_default([$3], 1835 [m4_fatal([Libtool version $1 or higher is required], 1836 63)])], 1837 [$2])]) 1838 1839 1840# _LT_CHECK_BUILDDIR 1841# ------------------ 1842# Complain if the absolute build directory name contains unusual characters 1843m4_defun([_LT_CHECK_BUILDDIR], 1844[case `pwd` in 1845 *\ * | *\ *) 1846 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; 1847esac 1848]) 1849 1850 1851# LT_INIT([OPTIONS]) 1852# ------------------ 1853AC_DEFUN([LT_INIT], 1854[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT 1855AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 1856AC_BEFORE([$0], [LT_LANG])dnl 1857AC_BEFORE([$0], [LT_OUTPUT])dnl 1858AC_BEFORE([$0], [LTDL_INIT])dnl 1859m4_require([_LT_CHECK_BUILDDIR])dnl 1860 1861dnl Autoconf doesn't catch unexpanded LT_ macros by default: 1862m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl 1863m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl 1864dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 1865dnl unless we require an AC_DEFUNed macro: 1866AC_REQUIRE([LTOPTIONS_VERSION])dnl 1867AC_REQUIRE([LTSUGAR_VERSION])dnl 1868AC_REQUIRE([LTVERSION_VERSION])dnl 1869AC_REQUIRE([LTOBSOLETE_VERSION])dnl 1870m4_require([_LT_PROG_LTMAIN])dnl 1871 1872_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) 1873 1874dnl Parse OPTIONS 1875_LT_SET_OPTIONS([$0], [$1]) 1876 1877# This can be used to rebuild libtool when needed 1878LIBTOOL_DEPS="$ltmain" 1879 1880# Always use our own libtool. 1881LIBTOOL='$(SHELL) $(top_builddir)/libtool' 1882AC_SUBST(LIBTOOL)dnl 1883 1884_LT_SETUP 1885 1886# Only expand once: 1887m4_define([LT_INIT]) 1888])# LT_INIT 1889 1890# Old names: 1891AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) 1892AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) 1893dnl aclocal-1.4 backwards compatibility: 1894dnl AC_DEFUN([AC_PROG_LIBTOOL], []) 1895dnl AC_DEFUN([AM_PROG_LIBTOOL], []) 1896 1897 1898# _LT_CC_BASENAME(CC) 1899# ------------------- 1900# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 1901m4_defun([_LT_CC_BASENAME], 1902[for cc_temp in $1""; do 1903 case $cc_temp in 1904 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 1905 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 1906 \-*) ;; 1907 *) break;; 1908 esac 1909done 1910cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 1911]) 1912 1913 1914# _LT_FILEUTILS_DEFAULTS 1915# ---------------------- 1916# It is okay to use these file commands and assume they have been set 1917# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. 1918m4_defun([_LT_FILEUTILS_DEFAULTS], 1919[: ${CP="cp -f"} 1920: ${MV="mv -f"} 1921: ${RM="rm -f"} 1922])# _LT_FILEUTILS_DEFAULTS 1923 1924 1925# _LT_SETUP 1926# --------- 1927m4_defun([_LT_SETUP], 1928[AC_REQUIRE([AC_CANONICAL_HOST])dnl 1929AC_REQUIRE([AC_CANONICAL_BUILD])dnl 1930AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl 1931AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 1932 1933_LT_DECL([], [host_alias], [0], [The host system])dnl 1934_LT_DECL([], [host], [0])dnl 1935_LT_DECL([], [host_os], [0])dnl 1936dnl 1937_LT_DECL([], [build_alias], [0], [The build system])dnl 1938_LT_DECL([], [build], [0])dnl 1939_LT_DECL([], [build_os], [0])dnl 1940dnl 1941AC_REQUIRE([AC_PROG_CC])dnl 1942AC_REQUIRE([LT_PATH_LD])dnl 1943AC_REQUIRE([LT_PATH_NM])dnl 1944dnl 1945AC_REQUIRE([AC_PROG_LN_S])dnl 1946test -z "$LN_S" && LN_S="ln -s" 1947_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl 1948dnl 1949AC_REQUIRE([LT_CMD_MAX_LEN])dnl 1950_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl 1951_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl 1952dnl 1953m4_require([_LT_FILEUTILS_DEFAULTS])dnl 1954m4_require([_LT_CHECK_SHELL_FEATURES])dnl 1955m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl 1956m4_require([_LT_CMD_RELOAD])dnl 1957m4_require([_LT_CHECK_MAGIC_METHOD])dnl 1958m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl 1959m4_require([_LT_CMD_OLD_ARCHIVE])dnl 1960m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 1961m4_require([_LT_WITH_SYSROOT])dnl 1962 1963_LT_CONFIG_LIBTOOL_INIT([ 1964# See if we are running on zsh, and set the options which allow our 1965# commands through without removal of \ escapes INIT. 1966if test -n "\${ZSH_VERSION+set}" ; then 1967 setopt NO_GLOB_SUBST 1968fi 1969]) 1970if test -n "${ZSH_VERSION+set}" ; then 1971 setopt NO_GLOB_SUBST 1972fi 1973 1974_LT_CHECK_OBJDIR 1975 1976m4_require([_LT_TAG_COMPILER])dnl 1977 1978case $host_os in 1979aix3*) 1980 # AIX sometimes has problems with the GCC collect2 program. For some 1981 # reason, if we set the COLLECT_NAMES environment variable, the problems 1982 # vanish in a puff of smoke. 1983 if test "X${COLLECT_NAMES+set}" != Xset; then 1984 COLLECT_NAMES= 1985 export COLLECT_NAMES 1986 fi 1987 ;; 1988esac 1989 1990# Global variables: 1991ofile=libtool 1992can_build_shared=yes 1993 1994# All known linkers require a `.a' archive for static linking (except MSVC, 1995# which needs '.lib'). 1996libext=a 1997 1998with_gnu_ld="$lt_cv_prog_gnu_ld" 1999 2000old_CC="$CC" 2001old_CFLAGS="$CFLAGS" 2002 2003# Set sane defaults for various variables 2004test -z "$CC" && CC=cc 2005test -z "$LTCC" && LTCC=$CC 2006test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 2007test -z "$LD" && LD=ld 2008test -z "$ac_objext" && ac_objext=o 2009 2010_LT_CC_BASENAME([$compiler]) 2011 2012# Only perform the check for file, if the check method requires it 2013test -z "$MAGIC_CMD" && MAGIC_CMD=file 2014case $deplibs_check_method in 2015file_magic*) 2016 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 2017 _LT_PATH_MAGIC 2018 fi 2019 ;; 2020esac 2021 2022# Use C for the default configuration in the libtool script 2023LT_SUPPORTED_TAG([CC]) 2024_LT_LANG_C_CONFIG 2025_LT_LANG_DEFAULT_CONFIG 2026_LT_CONFIG_COMMANDS 2027])# _LT_SETUP 2028 2029 2030# _LT_PREPARE_SED_QUOTE_VARS 2031# -------------------------- 2032# Define a few sed substitution that help us do robust quoting. 2033m4_defun([_LT_PREPARE_SED_QUOTE_VARS], 2034[# Backslashify metacharacters that are still active within 2035# double-quoted strings. 2036sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' 2037 2038# Same as above, but do not quote variable references. 2039double_quote_subst='s/\([["`\\]]\)/\\\1/g' 2040 2041# Sed substitution to delay expansion of an escaped shell variable in a 2042# double_quote_subst'ed string. 2043delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2044 2045# Sed substitution to delay expansion of an escaped single quote. 2046delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2047 2048# Sed substitution to avoid accidental globbing in evaled expressions 2049no_glob_subst='s/\*/\\\*/g' 2050]) 2051 2052# _LT_PROG_LTMAIN 2053# --------------- 2054# Note that this code is called both from `configure', and `config.status' 2055# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 2056# `config.status' has no value for ac_aux_dir unless we are using Automake, 2057# so we pass a copy along to make sure it has a sensible value anyway. 2058m4_defun([_LT_PROG_LTMAIN], 2059[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 2060_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) 2061ltmain="$ac_aux_dir/ltmain.sh" 2062])# _LT_PROG_LTMAIN 2063 2064 2065 2066# So that we can recreate a full libtool script including additional 2067# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 2068# in macros and then make a single call at the end using the `libtool' 2069# label. 2070 2071 2072# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 2073# ---------------------------------------- 2074# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 2075m4_define([_LT_CONFIG_LIBTOOL_INIT], 2076[m4_ifval([$1], 2077 [m4_append([_LT_OUTPUT_LIBTOOL_INIT], 2078 [$1 2079])])]) 2080 2081# Initialize. 2082m4_define([_LT_OUTPUT_LIBTOOL_INIT]) 2083 2084 2085# _LT_CONFIG_LIBTOOL([COMMANDS]) 2086# ------------------------------ 2087# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. 2088m4_define([_LT_CONFIG_LIBTOOL], 2089[m4_ifval([$1], 2090 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], 2091 [$1 2092])])]) 2093 2094# Initialize. 2095m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) 2096 2097 2098# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) 2099# ----------------------------------------------------- 2100m4_defun([_LT_CONFIG_SAVE_COMMANDS], 2101[_LT_CONFIG_LIBTOOL([$1]) 2102_LT_CONFIG_LIBTOOL_INIT([$2]) 2103]) 2104 2105 2106# _LT_FORMAT_COMMENT([COMMENT]) 2107# ----------------------------- 2108# Add leading comment marks to the start of each line, and a trailing 2109# full-stop to the whole comment if one is not present already. 2110m4_define([_LT_FORMAT_COMMENT], 2111[m4_ifval([$1], [ 2112m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], 2113 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) 2114)]) 2115 2116 2117 2118 2119 2120# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) 2121# ------------------------------------------------------------------- 2122# CONFIGNAME is the name given to the value in the libtool script. 2123# VARNAME is the (base) name used in the configure script. 2124# VALUE may be 0, 1 or 2 for a computed quote escaped value based on 2125# VARNAME. Any other value will be used directly. 2126m4_define([_LT_DECL], 2127[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], 2128 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], 2129 [m4_ifval([$1], [$1], [$2])]) 2130 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) 2131 m4_ifval([$4], 2132 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) 2133 lt_dict_add_subkey([lt_decl_dict], [$2], 2134 [tagged?], [m4_ifval([$5], [yes], [no])])]) 2135]) 2136 2137 2138# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) 2139# -------------------------------------------------------- 2140m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) 2141 2142 2143# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) 2144# ------------------------------------------------ 2145m4_define([lt_decl_tag_varnames], 2146[_lt_decl_filter([tagged?], [yes], $@)]) 2147 2148 2149# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) 2150# --------------------------------------------------------- 2151m4_define([_lt_decl_filter], 2152[m4_case([$#], 2153 [0], [m4_fatal([$0: too few arguments: $#])], 2154 [1], [m4_fatal([$0: too few arguments: $#: $1])], 2155 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], 2156 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], 2157 [lt_dict_filter([lt_decl_dict], $@)])[]dnl 2158]) 2159 2160 2161# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) 2162# -------------------------------------------------- 2163m4_define([lt_decl_quote_varnames], 2164[_lt_decl_filter([value], [1], $@)]) 2165 2166 2167# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) 2168# --------------------------------------------------- 2169m4_define([lt_decl_dquote_varnames], 2170[_lt_decl_filter([value], [2], $@)]) 2171 2172 2173# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) 2174# --------------------------------------------------- 2175m4_define([lt_decl_varnames_tagged], 2176[m4_assert([$# <= 2])dnl 2177_$0(m4_quote(m4_default([$1], [[, ]])), 2178 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), 2179 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) 2180m4_define([_lt_decl_varnames_tagged], 2181[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) 2182 2183 2184# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) 2185# ------------------------------------------------ 2186m4_define([lt_decl_all_varnames], 2187[_$0(m4_quote(m4_default([$1], [[, ]])), 2188 m4_if([$2], [], 2189 m4_quote(lt_decl_varnames), 2190 m4_quote(m4_shift($@))))[]dnl 2191]) 2192m4_define([_lt_decl_all_varnames], 2193[lt_join($@, lt_decl_varnames_tagged([$1], 2194 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl 2195]) 2196 2197 2198# _LT_CONFIG_STATUS_DECLARE([VARNAME]) 2199# ------------------------------------ 2200# Quote a variable value, and forward it to `config.status' so that its 2201# declaration there will have the same value as in `configure'. VARNAME 2202# must have a single quote delimited value for this to work. 2203m4_define([_LT_CONFIG_STATUS_DECLARE], 2204[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) 2205 2206 2207# _LT_CONFIG_STATUS_DECLARATIONS 2208# ------------------------------ 2209# We delimit libtool config variables with single quotes, so when 2210# we write them to config.status, we have to be sure to quote all 2211# embedded single quotes properly. In configure, this macro expands 2212# each variable declared with _LT_DECL (and _LT_TAGDECL) into: 2213# 2214# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' 2215m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], 2216[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), 2217 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) 2218 2219 2220# _LT_LIBTOOL_TAGS 2221# ---------------- 2222# Output comment and list of tags supported by the script 2223m4_defun([_LT_LIBTOOL_TAGS], 2224[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl 2225available_tags="_LT_TAGS"dnl 2226]) 2227 2228 2229# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 2230# ----------------------------------- 2231# Extract the dictionary values for VARNAME (optionally with TAG) and 2232# expand to a commented shell variable setting: 2233# 2234# # Some comment about what VAR is for. 2235# visible_name=$lt_internal_name 2236m4_define([_LT_LIBTOOL_DECLARE], 2237[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], 2238 [description])))[]dnl 2239m4_pushdef([_libtool_name], 2240 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl 2241m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), 2242 [0], [_libtool_name=[$]$1], 2243 [1], [_libtool_name=$lt_[]$1], 2244 [2], [_libtool_name=$lt_[]$1], 2245 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl 2246m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl 2247]) 2248 2249 2250# _LT_LIBTOOL_CONFIG_VARS 2251# ----------------------- 2252# Produce commented declarations of non-tagged libtool config variables 2253# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' 2254# script. Tagged libtool config variables (even for the LIBTOOL CONFIG 2255# section) are produced by _LT_LIBTOOL_TAG_VARS. 2256m4_defun([_LT_LIBTOOL_CONFIG_VARS], 2257[m4_foreach([_lt_var], 2258 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), 2259 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) 2260 2261 2262# _LT_LIBTOOL_TAG_VARS(TAG) 2263# ------------------------- 2264m4_define([_LT_LIBTOOL_TAG_VARS], 2265[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), 2266 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) 2267 2268 2269# _LT_TAGVAR(VARNAME, [TAGNAME]) 2270# ------------------------------ 2271m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) 2272 2273 2274# _LT_CONFIG_COMMANDS 2275# ------------------- 2276# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 2277# variables for single and double quote escaping we saved from calls 2278# to _LT_DECL, we can put quote escaped variables declarations 2279# into `config.status', and then the shell code to quote escape them in 2280# for loops in `config.status'. Finally, any additional code accumulated 2281# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 2282m4_defun([_LT_CONFIG_COMMANDS], 2283[AC_PROVIDE_IFELSE([LT_OUTPUT], 2284 dnl If the libtool generation code has been placed in $CONFIG_LT, 2285 dnl instead of duplicating it all over again into config.status, 2286 dnl then we will have config.status run $CONFIG_LT later, so it 2287 dnl needs to know what name is stored there: 2288 [AC_CONFIG_COMMANDS([libtool], 2289 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], 2290 dnl If the libtool generation code is destined for config.status, 2291 dnl expand the accumulated commands and init code now: 2292 [AC_CONFIG_COMMANDS([libtool], 2293 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) 2294])#_LT_CONFIG_COMMANDS 2295 2296 2297# Initialize. 2298m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], 2299[ 2300 2301# The HP-UX ksh and POSIX shell print the target directory to stdout 2302# if CDPATH is set. 2303(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 2304 2305sed_quote_subst='$sed_quote_subst' 2306double_quote_subst='$double_quote_subst' 2307delay_variable_subst='$delay_variable_subst' 2308_LT_CONFIG_STATUS_DECLARATIONS 2309LTCC='$LTCC' 2310LTCFLAGS='$LTCFLAGS' 2311compiler='$compiler_DEFAULT' 2312 2313# A function that is used when there is no print builtin or printf. 2314func_fallback_echo () 2315{ 2316 eval 'cat <<_LTECHO_EOF 2317\$[]1 2318_LTECHO_EOF' 2319} 2320 2321# Quote evaled strings. 2322for var in lt_decl_all_varnames([[ \ 2323]], lt_decl_quote_varnames); do 2324 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 2325 *[[\\\\\\\`\\"\\\$]]*) 2326 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 2327 ;; 2328 *) 2329 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 2330 ;; 2331 esac 2332done 2333 2334# Double-quote double-evaled strings. 2335for var in lt_decl_all_varnames([[ \ 2336]], lt_decl_dquote_varnames); do 2337 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 2338 *[[\\\\\\\`\\"\\\$]]*) 2339 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 2340 ;; 2341 *) 2342 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 2343 ;; 2344 esac 2345done 2346 2347_LT_OUTPUT_LIBTOOL_INIT 2348]) 2349 2350# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) 2351# ------------------------------------ 2352# Generate a child script FILE with all initialization necessary to 2353# reuse the environment learned by the parent script, and make the 2354# file executable. If COMMENT is supplied, it is inserted after the 2355# `#!' sequence but before initialization text begins. After this 2356# macro, additional text can be appended to FILE to form the body of 2357# the child script. The macro ends with non-zero status if the 2358# file could not be fully written (such as if the disk is full). 2359m4_ifdef([AS_INIT_GENERATED], 2360[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], 2361[m4_defun([_LT_GENERATED_FILE_INIT], 2362[m4_require([AS_PREPARE])]dnl 2363[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl 2364[lt_write_fail=0 2365cat >$1 <<_ASEOF || lt_write_fail=1 2366#! $SHELL 2367# Generated by $as_me. 2368$2 2369SHELL=\${CONFIG_SHELL-$SHELL} 2370export SHELL 2371_ASEOF 2372cat >>$1 <<\_ASEOF || lt_write_fail=1 2373AS_SHELL_SANITIZE 2374_AS_PREPARE 2375exec AS_MESSAGE_FD>&1 2376_ASEOF 2377test $lt_write_fail = 0 && chmod +x $1[]dnl 2378m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT 2379 2380# LT_OUTPUT 2381# --------- 2382# This macro allows early generation of the libtool script (before 2383# AC_OUTPUT is called), incase it is used in configure for compilation 2384# tests. 2385AC_DEFUN([LT_OUTPUT], 2386[: ${CONFIG_LT=./config.lt} 2387AC_MSG_NOTICE([creating $CONFIG_LT]) 2388_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], 2389[# Run this file to recreate a libtool stub with the current configuration.]) 2390 2391cat >>"$CONFIG_LT" <<\_LTEOF 2392lt_cl_silent=false 2393exec AS_MESSAGE_LOG_FD>>config.log 2394{ 2395 echo 2396 AS_BOX([Running $as_me.]) 2397} >&AS_MESSAGE_LOG_FD 2398 2399lt_cl_help="\ 2400\`$as_me' creates a local libtool stub from the current configuration, 2401for use in further configure time tests before the real libtool is 2402generated. 2403 2404Usage: $[0] [[OPTIONS]] 2405 2406 -h, --help print this help, then exit 2407 -V, --version print version number, then exit 2408 -q, --quiet do not print progress messages 2409 -d, --debug don't remove temporary files 2410 2411Report bugs to <bug-libtool@gnu.org>." 2412 2413lt_cl_version="\ 2414m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl 2415m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) 2416configured by $[0], generated by m4_PACKAGE_STRING. 2417 2418Copyright (C) 2010 Free Software Foundation, Inc. 2419This config.lt script is free software; the Free Software Foundation 2420gives unlimited permision to copy, distribute and modify it." 2421 2422while test $[#] != 0 2423do 2424 case $[1] in 2425 --version | --v* | -V ) 2426 echo "$lt_cl_version"; exit 0 ;; 2427 --help | --h* | -h ) 2428 echo "$lt_cl_help"; exit 0 ;; 2429 --debug | --d* | -d ) 2430 debug=: ;; 2431 --quiet | --q* | --silent | --s* | -q ) 2432 lt_cl_silent=: ;; 2433 2434 -*) AC_MSG_ERROR([unrecognized option: $[1] 2435Try \`$[0] --help' for more information.]) ;; 2436 2437 *) AC_MSG_ERROR([unrecognized argument: $[1] 2438Try \`$[0] --help' for more information.]) ;; 2439 esac 2440 shift 2441done 2442 2443if $lt_cl_silent; then 2444 exec AS_MESSAGE_FD>/dev/null 2445fi 2446_LTEOF 2447 2448cat >>"$CONFIG_LT" <<_LTEOF 2449_LT_OUTPUT_LIBTOOL_COMMANDS_INIT 2450_LTEOF 2451 2452cat >>"$CONFIG_LT" <<\_LTEOF 2453AC_MSG_NOTICE([creating $ofile]) 2454_LT_OUTPUT_LIBTOOL_COMMANDS 2455AS_EXIT(0) 2456_LTEOF 2457chmod +x "$CONFIG_LT" 2458 2459# configure is writing to config.log, but config.lt does its own redirection, 2460# appending to config.log, which fails on DOS, as config.log is still kept 2461# open by configure. Here we exec the FD to /dev/null, effectively closing 2462# config.log, so it can be properly (re)opened and appended to by config.lt. 2463lt_cl_success=: 2464test "$silent" = yes && 2465 lt_config_lt_args="$lt_config_lt_args --quiet" 2466exec AS_MESSAGE_LOG_FD>/dev/null 2467$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 2468exec AS_MESSAGE_LOG_FD>>config.log 2469$lt_cl_success || AS_EXIT(1) 2470])# LT_OUTPUT 2471 2472 2473# _LT_CONFIG(TAG) 2474# --------------- 2475# If TAG is the built-in tag, create an initial libtool script with a 2476# default configuration from the untagged config vars. Otherwise add code 2477# to config.status for appending the configuration named by TAG from the 2478# matching tagged config vars. 2479m4_defun([_LT_CONFIG], 2480[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2481_LT_CONFIG_SAVE_COMMANDS([ 2482 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 2483 m4_if(_LT_TAG, [C], [ 2484 # See if we are running on zsh, and set the options which allow our 2485 # commands through without removal of \ escapes. 2486 if test -n "${ZSH_VERSION+set}" ; then 2487 setopt NO_GLOB_SUBST 2488 fi 2489 2490 cfgfile="${ofile}T" 2491 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 2492 $RM "$cfgfile" 2493 2494 cat <<_LT_EOF >> "$cfgfile" 2495#! $SHELL 2496 2497# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 2498# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 2499# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 2500# NOTE: Changes made to this file will be lost: look at ltmain.sh. 2501# 2502_LT_COPYING 2503_LT_LIBTOOL_TAGS 2504 2505# ### BEGIN LIBTOOL CONFIG 2506_LT_LIBTOOL_CONFIG_VARS 2507_LT_LIBTOOL_TAG_VARS 2508# ### END LIBTOOL CONFIG 2509 2510_LT_EOF 2511 2512 case $host_os in 2513 aix3*) 2514 cat <<\_LT_EOF >> "$cfgfile" 2515# AIX sometimes has problems with the GCC collect2 program. For some 2516# reason, if we set the COLLECT_NAMES environment variable, the problems 2517# vanish in a puff of smoke. 2518if test "X${COLLECT_NAMES+set}" != Xset; then 2519 COLLECT_NAMES= 2520 export COLLECT_NAMES 2521fi 2522_LT_EOF 2523 ;; 2524 esac 2525 2526 _LT_PROG_LTMAIN 2527 2528 # We use sed instead of cat because bash on DJGPP gets confused if 2529 # if finds mixed CR/LF and LF-only lines. Since sed operates in 2530 # text mode, it properly converts lines to CR/LF. This bash problem 2531 # is reportedly fixed, but why not run on old versions too? 2532 sed '$q' "$ltmain" >> "$cfgfile" \ 2533 || (rm -f "$cfgfile"; exit 1) 2534 2535 _LT_PROG_REPLACE_SHELLFNS 2536 2537 mv -f "$cfgfile" "$ofile" || 2538 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 2539 chmod +x "$ofile" 2540], 2541[cat <<_LT_EOF >> "$ofile" 2542 2543dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded 2544dnl in a comment (ie after a #). 2545# ### BEGIN LIBTOOL TAG CONFIG: $1 2546_LT_LIBTOOL_TAG_VARS(_LT_TAG) 2547# ### END LIBTOOL TAG CONFIG: $1 2548_LT_EOF 2549])dnl /m4_if 2550], 2551[m4_if([$1], [], [ 2552 PACKAGE='$PACKAGE' 2553 VERSION='$VERSION' 2554 TIMESTAMP='$TIMESTAMP' 2555 RM='$RM' 2556 ofile='$ofile'], []) 2557])dnl /_LT_CONFIG_SAVE_COMMANDS 2558])# _LT_CONFIG 2559 2560 2561# LT_SUPPORTED_TAG(TAG) 2562# --------------------- 2563# Trace this macro to discover what tags are supported by the libtool 2564# --tag option, using: 2565# autoconf --trace 'LT_SUPPORTED_TAG:$1' 2566AC_DEFUN([LT_SUPPORTED_TAG], []) 2567 2568 2569# C support is built-in for now 2570m4_define([_LT_LANG_C_enabled], []) 2571m4_define([_LT_TAGS], []) 2572 2573 2574# LT_LANG(LANG) 2575# ------------- 2576# Enable libtool support for the given language if not already enabled. 2577AC_DEFUN([LT_LANG], 2578[AC_BEFORE([$0], [LT_OUTPUT])dnl 2579m4_case([$1], 2580 [C], [_LT_LANG(C)], 2581 [C++], [_LT_LANG(CXX)], 2582 [Java], [_LT_LANG(GCJ)], 2583 [Fortran 77], [_LT_LANG(F77)], 2584 [Fortran], [_LT_LANG(FC)], 2585 [Windows Resource], [_LT_LANG(RC)], 2586 [m4_ifdef([_LT_LANG_]$1[_CONFIG], 2587 [_LT_LANG($1)], 2588 [m4_fatal([$0: unsupported language: "$1"])])])dnl 2589])# LT_LANG 2590 2591 2592# _LT_LANG(LANGNAME) 2593# ------------------ 2594m4_defun([_LT_LANG], 2595[m4_ifdef([_LT_LANG_]$1[_enabled], [], 2596 [LT_SUPPORTED_TAG([$1])dnl 2597 m4_append([_LT_TAGS], [$1 ])dnl 2598 m4_define([_LT_LANG_]$1[_enabled], [])dnl 2599 _LT_LANG_$1_CONFIG($1)])dnl 2600])# _LT_LANG 2601 2602 2603# _LT_LANG_DEFAULT_CONFIG 2604# ----------------------- 2605m4_defun([_LT_LANG_DEFAULT_CONFIG], 2606[AC_PROVIDE_IFELSE([AC_PROG_CXX], 2607 [LT_LANG(CXX)], 2608 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) 2609 2610AC_PROVIDE_IFELSE([AC_PROG_F77], 2611 [LT_LANG(F77)], 2612 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) 2613 2614AC_PROVIDE_IFELSE([AC_PROG_FC], 2615 [LT_LANG(FC)], 2616 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) 2617 2618dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal 2619dnl pulling things in needlessly. 2620AC_PROVIDE_IFELSE([AC_PROG_GCJ], 2621 [LT_LANG(GCJ)], 2622 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 2623 [LT_LANG(GCJ)], 2624 [AC_PROVIDE_IFELSE([LT_PROG_GCJ], 2625 [LT_LANG(GCJ)], 2626 [m4_ifdef([AC_PROG_GCJ], 2627 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) 2628 m4_ifdef([A][M_PROG_GCJ], 2629 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) 2630 m4_ifdef([LT_PROG_GCJ], 2631 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) 2632 2633AC_PROVIDE_IFELSE([LT_PROG_RC], 2634 [LT_LANG(RC)], 2635 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) 2636])# _LT_LANG_DEFAULT_CONFIG 2637 2638# Obsolete macros: 2639AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) 2640AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) 2641AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) 2642AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) 2643AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) 2644dnl aclocal-1.4 backwards compatibility: 2645dnl AC_DEFUN([AC_LIBTOOL_CXX], []) 2646dnl AC_DEFUN([AC_LIBTOOL_F77], []) 2647dnl AC_DEFUN([AC_LIBTOOL_FC], []) 2648dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) 2649dnl AC_DEFUN([AC_LIBTOOL_RC], []) 2650 2651 2652# _LT_TAG_COMPILER 2653# ---------------- 2654m4_defun([_LT_TAG_COMPILER], 2655[AC_REQUIRE([AC_PROG_CC])dnl 2656 2657_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl 2658_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl 2659_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl 2660_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl 2661 2662# If no C compiler was specified, use CC. 2663LTCC=${LTCC-"$CC"} 2664 2665# If no C compiler flags were specified, use CFLAGS. 2666LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 2667 2668# Allow CC to be a program name with arguments. 2669compiler=$CC 2670])# _LT_TAG_COMPILER 2671 2672 2673# _LT_COMPILER_BOILERPLATE 2674# ------------------------ 2675# Check for compiler boilerplate output or warnings with 2676# the simple compiler test code. 2677m4_defun([_LT_COMPILER_BOILERPLATE], 2678[m4_require([_LT_DECL_SED])dnl 2679ac_outfile=conftest.$ac_objext 2680echo "$lt_simple_compile_test_code" >conftest.$ac_ext 2681eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 2682_lt_compiler_boilerplate=`cat conftest.err` 2683$RM conftest* 2684])# _LT_COMPILER_BOILERPLATE 2685 2686 2687# _LT_LINKER_BOILERPLATE 2688# ---------------------- 2689# Check for linker boilerplate output or warnings with 2690# the simple link test code. 2691m4_defun([_LT_LINKER_BOILERPLATE], 2692[m4_require([_LT_DECL_SED])dnl 2693ac_outfile=conftest.$ac_objext 2694echo "$lt_simple_link_test_code" >conftest.$ac_ext 2695eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 2696_lt_linker_boilerplate=`cat conftest.err` 2697$RM -r conftest* 2698])# _LT_LINKER_BOILERPLATE 2699 2700# _LT_REQUIRED_DARWIN_CHECKS 2701# ------------------------- 2702m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ 2703 case $host_os in 2704 rhapsody* | darwin*) 2705 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) 2706 AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 2707 AC_CHECK_TOOL([LIPO], [lipo], [:]) 2708 AC_CHECK_TOOL([OTOOL], [otool], [:]) 2709 AC_CHECK_TOOL([OTOOL64], [otool64], [:]) 2710 _LT_DECL([], [DSYMUTIL], [1], 2711 [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) 2712 _LT_DECL([], [NMEDIT], [1], 2713 [Tool to change global to local symbols on Mac OS X]) 2714 _LT_DECL([], [LIPO], [1], 2715 [Tool to manipulate fat objects and archives on Mac OS X]) 2716 _LT_DECL([], [OTOOL], [1], 2717 [ldd/readelf like tool for Mach-O binaries on Mac OS X]) 2718 _LT_DECL([], [OTOOL64], [1], 2719 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) 2720 2721 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 2722 [lt_cv_apple_cc_single_mod=no 2723 if test -z "${LT_MULTI_MODULE}"; then 2724 # By default we will add the -single_module flag. You can override 2725 # by either setting the environment variable LT_MULTI_MODULE 2726 # non-empty at configure time, or by adding -multi_module to the 2727 # link flags. 2728 rm -rf libconftest.dylib* 2729 echo "int foo(void){return 1;}" > conftest.c 2730 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 2731-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD 2732 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 2733 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 2734 _lt_result=$? 2735 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 2736 lt_cv_apple_cc_single_mod=yes 2737 else 2738 cat conftest.err >&AS_MESSAGE_LOG_FD 2739 fi 2740 rm -rf libconftest.dylib* 2741 rm -f conftest.* 2742 fi]) 2743 AC_CACHE_CHECK([for -exported_symbols_list linker flag], 2744 [lt_cv_ld_exported_symbols_list], 2745 [lt_cv_ld_exported_symbols_list=no 2746 save_LDFLAGS=$LDFLAGS 2747 echo "_main" > conftest.sym 2748 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 2749 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 2750 [lt_cv_ld_exported_symbols_list=yes], 2751 [lt_cv_ld_exported_symbols_list=no]) 2752 LDFLAGS="$save_LDFLAGS" 2753 ]) 2754 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], 2755 [lt_cv_ld_force_load=no 2756 cat > conftest.c << _LT_EOF 2757int forced_loaded() { return 2;} 2758_LT_EOF 2759 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD 2760 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD 2761 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD 2762 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD 2763 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD 2764 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD 2765 cat > conftest.c << _LT_EOF 2766int main() { return 0;} 2767_LT_EOF 2768 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD 2769 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 2770 _lt_result=$? 2771 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 2772 lt_cv_ld_force_load=yes 2773 else 2774 cat conftest.err >&AS_MESSAGE_LOG_FD 2775 fi 2776 rm -f conftest.err libconftest.a conftest conftest.c 2777 rm -rf conftest.dSYM 2778 ]) 2779 case $host_os in 2780 rhapsody* | darwin1.[[012]]) 2781 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 2782 darwin1.*) 2783 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 2784 darwin*) # darwin 5.x on 2785 # if running on 10.5 or later, the deployment target defaults 2786 # to the OS version, if on x86, and 10.4, the deployment 2787 # target defaults to 10.4. Don't you love it? 2788 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 2789 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 2790 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 2791 10.[[012]]*) 2792 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 2793 10.*) 2794 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 2795 esac 2796 ;; 2797 esac 2798 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 2799 _lt_dar_single_mod='$single_module' 2800 fi 2801 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 2802 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 2803 else 2804 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 2805 fi 2806 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 2807 _lt_dsymutil='~$DSYMUTIL $lib || :' 2808 else 2809 _lt_dsymutil= 2810 fi 2811 ;; 2812 esac 2813]) 2814 2815 2816# _LT_DARWIN_LINKER_FEATURES 2817# -------------------------- 2818# Checks for linker and compiler features on darwin 2819m4_defun([_LT_DARWIN_LINKER_FEATURES], 2820[ 2821 m4_require([_LT_REQUIRED_DARWIN_CHECKS]) 2822 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 2823 _LT_TAGVAR(hardcode_direct, $1)=no 2824 _LT_TAGVAR(hardcode_automatic, $1)=yes 2825 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 2826 if test "$lt_cv_ld_force_load" = "yes"; then 2827 _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\"`' 2828 else 2829 _LT_TAGVAR(whole_archive_flag_spec, $1)='' 2830 fi 2831 _LT_TAGVAR(link_all_deplibs, $1)=yes 2832 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" 2833 case $cc_basename in 2834 ifort*) _lt_dar_can_shared=yes ;; 2835 *) _lt_dar_can_shared=$GCC ;; 2836 esac 2837 if test "$_lt_dar_can_shared" = "yes"; then 2838 output_verbose_link_cmd=func_echo_all 2839 _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}" 2840 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 2841 _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}" 2842 _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}" 2843 m4_if([$1], [CXX], 2844[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then 2845 _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}" 2846 _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}" 2847 fi 2848],[]) 2849 else 2850 _LT_TAGVAR(ld_shlibs, $1)=no 2851 fi 2852]) 2853 2854# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) 2855# ---------------------------------- 2856# Links a minimal program and checks the executable 2857# for the system default hardcoded library path. In most cases, 2858# this is /usr/lib:/lib, but when the MPI compilers are used 2859# the location of the communication and MPI libs are included too. 2860# If we don't find anything, use the default library path according 2861# to the aix ld manual. 2862# Store the results from the different compilers for each TAGNAME. 2863# Allow to override them for all tags through lt_cv_aix_libpath. 2864m4_defun([_LT_SYS_MODULE_PATH_AIX], 2865[m4_require([_LT_DECL_SED])dnl 2866if test "${lt_cv_aix_libpath+set}" = set; then 2867 aix_libpath=$lt_cv_aix_libpath 2868else 2869 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], 2870 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ 2871 lt_aix_libpath_sed='[ 2872 /Import File Strings/,/^$/ { 2873 /^0/ { 2874 s/^0 *\([^ ]*\) *$/\1/ 2875 p 2876 } 2877 }]' 2878 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 2879 # Check for a 64-bit object if we didn't find anything. 2880 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 2881 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 2882 fi],[]) 2883 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 2884 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" 2885 fi 2886 ]) 2887 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) 2888fi 2889])# _LT_SYS_MODULE_PATH_AIX 2890 2891 2892# _LT_SHELL_INIT(ARG) 2893# ------------------- 2894m4_define([_LT_SHELL_INIT], 2895[m4_divert_text([M4SH-INIT], [$1 2896])])# _LT_SHELL_INIT 2897 2898 2899 2900# _LT_PROG_ECHO_BACKSLASH 2901# ----------------------- 2902# Find how we can fake an echo command that does not interpret backslash. 2903# In particular, with Autoconf 2.60 or later we add some code to the start 2904# of the generated configure script which will find a shell with a builtin 2905# printf (which we can use as an echo command). 2906m4_defun([_LT_PROG_ECHO_BACKSLASH], 2907[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2908ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2909ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2910 2911AC_MSG_CHECKING([how to print strings]) 2912# Test print first, because it will be a builtin if present. 2913if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2914 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2915 ECHO='print -r --' 2916elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2917 ECHO='printf %s\n' 2918else 2919 # Use this function as a fallback that always works. 2920 func_fallback_echo () 2921 { 2922 eval 'cat <<_LTECHO_EOF 2923$[]1 2924_LTECHO_EOF' 2925 } 2926 ECHO='func_fallback_echo' 2927fi 2928 2929# func_echo_all arg... 2930# Invoke $ECHO with all args, space-separated. 2931func_echo_all () 2932{ 2933 $ECHO "$*" 2934} 2935 2936case "$ECHO" in 2937 printf*) AC_MSG_RESULT([printf]) ;; 2938 print*) AC_MSG_RESULT([print -r]) ;; 2939 *) AC_MSG_RESULT([cat]) ;; 2940esac 2941 2942m4_ifdef([_AS_DETECT_SUGGESTED], 2943[_AS_DETECT_SUGGESTED([ 2944 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( 2945 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2946 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2947 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2948 PATH=/empty FPATH=/empty; export PATH FPATH 2949 test "X`printf %s $ECHO`" = "X$ECHO" \ 2950 || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) 2951 2952_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) 2953_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) 2954])# _LT_PROG_ECHO_BACKSLASH 2955 2956 2957# _LT_WITH_SYSROOT 2958# ---------------- 2959AC_DEFUN([_LT_WITH_SYSROOT], 2960[AC_MSG_CHECKING([for sysroot]) 2961AC_ARG_WITH([sysroot], 2962[ --with-sysroot[=DIR] Search for dependent libraries within DIR 2963 (or the compiler's sysroot if not specified).], 2964[], [with_sysroot=no]) 2965 2966dnl lt_sysroot will always be passed unquoted. We quote it here 2967dnl in case the user passed a directory name. 2968lt_sysroot= 2969case ${with_sysroot} in #( 2970 yes) 2971 if test "$GCC" = yes; then 2972 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 2973 fi 2974 ;; #( 2975 /*) 2976 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 2977 ;; #( 2978 no|'') 2979 ;; #( 2980 *) 2981 AC_MSG_RESULT([${with_sysroot}]) 2982 AC_MSG_ERROR([The sysroot must be an absolute path.]) 2983 ;; 2984esac 2985 2986 AC_MSG_RESULT([${lt_sysroot:-no}]) 2987_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl 2988[dependent libraries, and in which our libraries should be installed.])]) 2989 2990# _LT_ENABLE_LOCK 2991# --------------- 2992m4_defun([_LT_ENABLE_LOCK], 2993[AC_ARG_ENABLE([libtool-lock], 2994 [AS_HELP_STRING([--disable-libtool-lock], 2995 [avoid locking (might break parallel builds)])]) 2996test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 2997 2998# Some flags need to be propagated to the compiler or linker for good 2999# libtool support. 3000case $host in 3001ia64-*-hpux*) 3002 # Find out which ABI we are using. 3003 echo 'int i;' > conftest.$ac_ext 3004 if AC_TRY_EVAL(ac_compile); then 3005 case `/usr/bin/file conftest.$ac_objext` in 3006 *ELF-32*) 3007 HPUX_IA64_MODE="32" 3008 ;; 3009 *ELF-64*) 3010 HPUX_IA64_MODE="64" 3011 ;; 3012 esac 3013 fi 3014 rm -rf conftest* 3015 ;; 3016*-*-irix6*) 3017 # Find out which ABI we are using. 3018 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 3019 if AC_TRY_EVAL(ac_compile); then 3020 if test "$lt_cv_prog_gnu_ld" = yes; then 3021 case `/usr/bin/file conftest.$ac_objext` in 3022 *32-bit*) 3023 LD="${LD-ld} -melf32bsmip" 3024 ;; 3025 *N32*) 3026 LD="${LD-ld} -melf32bmipn32" 3027 ;; 3028 *64-bit*) 3029 LD="${LD-ld} -melf64bmip" 3030 ;; 3031 esac 3032 else 3033 case `/usr/bin/file conftest.$ac_objext` in 3034 *32-bit*) 3035 LD="${LD-ld} -32" 3036 ;; 3037 *N32*) 3038 LD="${LD-ld} -n32" 3039 ;; 3040 *64-bit*) 3041 LD="${LD-ld} -64" 3042 ;; 3043 esac 3044 fi 3045 fi 3046 rm -rf conftest* 3047 ;; 3048 3049x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 3050s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 3051 # Find out which ABI we are using. 3052 echo 'int i;' > conftest.$ac_ext 3053 if AC_TRY_EVAL(ac_compile); then 3054 case `/usr/bin/file conftest.o` in 3055 *32-bit*) 3056 case $host in 3057 x86_64-*kfreebsd*-gnu) 3058 LD="${LD-ld} -m elf_i386_fbsd" 3059 ;; 3060 x86_64-*linux*) 3061 LD="${LD-ld} -m elf_i386" 3062 ;; 3063 ppc64-*linux*|powerpc64-*linux*) 3064 LD="${LD-ld} -m elf32ppclinux" 3065 ;; 3066 s390x-*linux*) 3067 LD="${LD-ld} -m elf_s390" 3068 ;; 3069 sparc64-*linux*) 3070 LD="${LD-ld} -m elf32_sparc" 3071 ;; 3072 esac 3073 ;; 3074 *64-bit*) 3075 case $host in 3076 x86_64-*kfreebsd*-gnu) 3077 LD="${LD-ld} -m elf_x86_64_fbsd" 3078 ;; 3079 x86_64-*linux*) 3080 LD="${LD-ld} -m elf_x86_64" 3081 ;; 3082 ppc*-*linux*|powerpc*-*linux*) 3083 LD="${LD-ld} -m elf64ppc" 3084 ;; 3085 s390*-*linux*|s390*-*tpf*) 3086 LD="${LD-ld} -m elf64_s390" 3087 ;; 3088 sparc*-*linux*) 3089 LD="${LD-ld} -m elf64_sparc" 3090 ;; 3091 esac 3092 ;; 3093 esac 3094 fi 3095 rm -rf conftest* 3096 ;; 3097 3098*-*-sco3.2v5*) 3099 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3100 SAVE_CFLAGS="$CFLAGS" 3101 CFLAGS="$CFLAGS -belf" 3102 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 3103 [AC_LANG_PUSH(C) 3104 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 3105 AC_LANG_POP]) 3106 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3107 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3108 CFLAGS="$SAVE_CFLAGS" 3109 fi 3110 ;; 3111sparc*-*solaris*) 3112 # Find out which ABI we are using. 3113 echo 'int i;' > conftest.$ac_ext 3114 if AC_TRY_EVAL(ac_compile); then 3115 case `/usr/bin/file conftest.o` in 3116 *64-bit*) 3117 case $lt_cv_prog_gnu_ld in 3118 yes*) LD="${LD-ld} -m elf64_sparc" ;; 3119 *) 3120 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 3121 LD="${LD-ld} -64" 3122 fi 3123 ;; 3124 esac 3125 ;; 3126 esac 3127 fi 3128 rm -rf conftest* 3129 ;; 3130esac 3131 3132need_locks="$enable_libtool_lock" 3133])# _LT_ENABLE_LOCK 3134 3135 3136# _LT_PROG_AR 3137# ----------- 3138m4_defun([_LT_PROG_AR], 3139[AC_CHECK_TOOLS(AR, [ar], false) 3140: ${AR=ar} 3141: ${AR_FLAGS=cru} 3142_LT_DECL([], [AR], [1], [The archiver]) 3143_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) 3144 3145AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], 3146 [lt_cv_ar_at_file=no 3147 AC_COMPILE_IFELSE([AC_LANG_PROGRAM], 3148 [echo conftest.$ac_objext > conftest.lst 3149 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' 3150 AC_TRY_EVAL([lt_ar_try]) 3151 if test "$ac_status" -eq 0; then 3152 # Ensure the archiver fails upon bogus file names. 3153 rm -f conftest.$ac_objext libconftest.a 3154 AC_TRY_EVAL([lt_ar_try]) 3155 if test "$ac_status" -ne 0; then 3156 lt_cv_ar_at_file=@ 3157 fi 3158 fi 3159 rm -f conftest.* libconftest.a 3160 ]) 3161 ]) 3162 3163if test "x$lt_cv_ar_at_file" = xno; then 3164 archiver_list_spec= 3165else 3166 archiver_list_spec=$lt_cv_ar_at_file 3167fi 3168_LT_DECL([], [archiver_list_spec], [1], 3169 [How to feed a file listing to the archiver]) 3170])# _LT_PROG_AR 3171 3172 3173# _LT_CMD_OLD_ARCHIVE 3174# ------------------- 3175m4_defun([_LT_CMD_OLD_ARCHIVE], 3176[_LT_PROG_AR 3177 3178AC_CHECK_TOOL(STRIP, strip, :) 3179test -z "$STRIP" && STRIP=: 3180_LT_DECL([], [STRIP], [1], [A symbol stripping program]) 3181 3182AC_CHECK_TOOL(RANLIB, ranlib, :) 3183test -z "$RANLIB" && RANLIB=: 3184_LT_DECL([], [RANLIB], [1], 3185 [Commands used to install an old-style archive]) 3186 3187# Determine commands to create old-style static archives. 3188old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 3189old_postinstall_cmds='chmod 644 $oldlib' 3190old_postuninstall_cmds= 3191 3192if test -n "$RANLIB"; then 3193 case $host_os in 3194 openbsd*) 3195 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 3196 ;; 3197 *) 3198 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 3199 ;; 3200 esac 3201 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 3202fi 3203 3204case $host_os in 3205 darwin*) 3206 lock_old_archive_extraction=yes ;; 3207 *) 3208 lock_old_archive_extraction=no ;; 3209esac 3210_LT_DECL([], [old_postinstall_cmds], [2]) 3211_LT_DECL([], [old_postuninstall_cmds], [2]) 3212_LT_TAGDECL([], [old_archive_cmds], [2], 3213 [Commands used to build an old-style archive]) 3214_LT_DECL([], [lock_old_archive_extraction], [0], 3215 [Whether to use a lock for old archive extraction]) 3216])# _LT_CMD_OLD_ARCHIVE 3217 3218 3219# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 3220# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 3221# ---------------------------------------------------------------- 3222# Check whether the given compiler option works 3223AC_DEFUN([_LT_COMPILER_OPTION], 3224[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 3225m4_require([_LT_DECL_SED])dnl 3226AC_CACHE_CHECK([$1], [$2], 3227 [$2=no 3228 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 3229 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 3230 lt_compiler_flag="$3" 3231 # Insert the option either (1) after the last *FLAGS variable, or 3232 # (2) before a word containing "conftest.", or (3) at the end. 3233 # Note that $ac_compile itself does not contain backslashes and begins 3234 # with a dollar sign (not a hyphen), so the echo should work correctly. 3235 # The option is referenced via a variable to avoid confusing sed. 3236 lt_compile=`echo "$ac_compile" | $SED \ 3237 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 3238 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 3239 -e 's:$: $lt_compiler_flag:'` 3240 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 3241 (eval "$lt_compile" 2>conftest.err) 3242 ac_status=$? 3243 cat conftest.err >&AS_MESSAGE_LOG_FD 3244 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 3245 if (exit $ac_status) && test -s "$ac_outfile"; then 3246 # The compiler can only warn and ignore the option if not recognized 3247 # So say no if there are warnings other than the usual output. 3248 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 3249 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 3250 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 3251 $2=yes 3252 fi 3253 fi 3254 $RM conftest* 3255]) 3256 3257if test x"[$]$2" = xyes; then 3258 m4_if([$5], , :, [$5]) 3259else 3260 m4_if([$6], , :, [$6]) 3261fi 3262])# _LT_COMPILER_OPTION 3263 3264# Old name: 3265AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) 3266dnl aclocal-1.4 backwards compatibility: 3267dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) 3268 3269 3270# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 3271# [ACTION-SUCCESS], [ACTION-FAILURE]) 3272# ---------------------------------------------------- 3273# Check whether the given linker option works 3274AC_DEFUN([_LT_LINKER_OPTION], 3275[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 3276m4_require([_LT_DECL_SED])dnl 3277AC_CACHE_CHECK([$1], [$2], 3278 [$2=no 3279 save_LDFLAGS="$LDFLAGS" 3280 LDFLAGS="$LDFLAGS $3" 3281 echo "$lt_simple_link_test_code" > conftest.$ac_ext 3282 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 3283 # The linker can only warn and ignore the option if not recognized 3284 # So say no if there are warnings 3285 if test -s conftest.err; then 3286 # Append any errors to the config.log. 3287 cat conftest.err 1>&AS_MESSAGE_LOG_FD 3288 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 3289 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 3290 if diff conftest.exp conftest.er2 >/dev/null; then 3291 $2=yes 3292 fi 3293 else 3294 $2=yes 3295 fi 3296 fi 3297 $RM -r conftest* 3298 LDFLAGS="$save_LDFLAGS" 3299]) 3300 3301if test x"[$]$2" = xyes; then 3302 m4_if([$4], , :, [$4]) 3303else 3304 m4_if([$5], , :, [$5]) 3305fi 3306])# _LT_LINKER_OPTION 3307 3308# Old name: 3309AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) 3310dnl aclocal-1.4 backwards compatibility: 3311dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) 3312 3313 3314# LT_CMD_MAX_LEN 3315#--------------- 3316AC_DEFUN([LT_CMD_MAX_LEN], 3317[AC_REQUIRE([AC_CANONICAL_HOST])dnl 3318# find the maximum length of command line arguments 3319AC_MSG_CHECKING([the maximum length of command line arguments]) 3320AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 3321 i=0 3322 teststring="ABCD" 3323 3324 case $build_os in 3325 msdosdjgpp*) 3326 # On DJGPP, this test can blow up pretty badly due to problems in libc 3327 # (any single argument exceeding 2000 bytes causes a buffer overrun 3328 # during glob expansion). Even if it were fixed, the result of this 3329 # check would be larger than it should be. 3330 lt_cv_sys_max_cmd_len=12288; # 12K is about right 3331 ;; 3332 3333 gnu*) 3334 # Under GNU Hurd, this test is not required because there is 3335 # no limit to the length of command line arguments. 3336 # Libtool will interpret -1 as no limit whatsoever 3337 lt_cv_sys_max_cmd_len=-1; 3338 ;; 3339 3340 cygwin* | mingw* | cegcc*) 3341 # On Win9x/ME, this test blows up -- it succeeds, but takes 3342 # about 5 minutes as the teststring grows exponentially. 3343 # Worse, since 9x/ME are not pre-emptively multitasking, 3344 # you end up with a "frozen" computer, even though with patience 3345 # the test eventually succeeds (with a max line length of 256k). 3346 # Instead, let's just punt: use the minimum linelength reported by 3347 # all of the supported platforms: 8192 (on NT/2K/XP). 3348 lt_cv_sys_max_cmd_len=8192; 3349 ;; 3350 3351 mint*) 3352 # On MiNT this can take a long time and run out of memory. 3353 lt_cv_sys_max_cmd_len=8192; 3354 ;; 3355 3356 amigaos*) 3357 # On AmigaOS with pdksh, this test takes hours, literally. 3358 # So we just punt and use a minimum line length of 8192. 3359 lt_cv_sys_max_cmd_len=8192; 3360 ;; 3361 3362 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 3363 # This has been around since 386BSD, at least. Likely further. 3364 if test -x /sbin/sysctl; then 3365 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 3366 elif test -x /usr/sbin/sysctl; then 3367 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 3368 else 3369 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 3370 fi 3371 # And add a safety zone 3372 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 3373 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 3374 ;; 3375 3376 interix*) 3377 # We know the value 262144 and hardcode it with a safety zone (like BSD) 3378 lt_cv_sys_max_cmd_len=196608 3379 ;; 3380 3381 osf*) 3382 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 3383 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 3384 # nice to cause kernel panics so lets avoid the loop below. 3385 # First set a reasonable default. 3386 lt_cv_sys_max_cmd_len=16384 3387 # 3388 if test -x /sbin/sysconfig; then 3389 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 3390 *1*) lt_cv_sys_max_cmd_len=-1 ;; 3391 esac 3392 fi 3393 ;; 3394 sco3.2v5*) 3395 lt_cv_sys_max_cmd_len=102400 3396 ;; 3397 sysv5* | sco5v6* | sysv4.2uw2*) 3398 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 3399 if test -n "$kargmax"; then 3400 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 3401 else 3402 lt_cv_sys_max_cmd_len=32768 3403 fi 3404 ;; 3405 *) 3406 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 3407 if test -n "$lt_cv_sys_max_cmd_len"; then 3408 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 3409 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 3410 else 3411 # Make teststring a little bigger before we do anything with it. 3412 # a 1K string should be a reasonable start. 3413 for i in 1 2 3 4 5 6 7 8 ; do 3414 teststring=$teststring$teststring 3415 done 3416 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 3417 # If test is not a shell built-in, we'll probably end up computing a 3418 # maximum length that is only half of the actual maximum length, but 3419 # we can't tell. 3420 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 3421 = "X$teststring$teststring"; } >/dev/null 2>&1 && 3422 test $i != 17 # 1/2 MB should be enough 3423 do 3424 i=`expr $i + 1` 3425 teststring=$teststring$teststring 3426 done 3427 # Only check the string length outside the loop. 3428 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 3429 teststring= 3430 # Add a significant safety factor because C++ compilers can tack on 3431 # massive amounts of additional arguments before passing them to the 3432 # linker. It appears as though 1/2 is a usable value. 3433 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 3434 fi 3435 ;; 3436 esac 3437]) 3438if test -n $lt_cv_sys_max_cmd_len ; then 3439 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 3440else 3441 AC_MSG_RESULT(none) 3442fi 3443max_cmd_len=$lt_cv_sys_max_cmd_len 3444_LT_DECL([], [max_cmd_len], [0], 3445 [What is the maximum length of a command?]) 3446])# LT_CMD_MAX_LEN 3447 3448# Old name: 3449AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) 3450dnl aclocal-1.4 backwards compatibility: 3451dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) 3452 3453 3454# _LT_HEADER_DLFCN 3455# ---------------- 3456m4_defun([_LT_HEADER_DLFCN], 3457[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl 3458])# _LT_HEADER_DLFCN 3459 3460 3461# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 3462# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 3463# ---------------------------------------------------------------- 3464m4_defun([_LT_TRY_DLOPEN_SELF], 3465[m4_require([_LT_HEADER_DLFCN])dnl 3466if test "$cross_compiling" = yes; then : 3467 [$4] 3468else 3469 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 3470 lt_status=$lt_dlunknown 3471 cat > conftest.$ac_ext <<_LT_EOF 3472[#line $LINENO "configure" 3473#include "confdefs.h" 3474 3475#if HAVE_DLFCN_H 3476#include <dlfcn.h> 3477#endif 3478 3479#include <stdio.h> 3480 3481#ifdef RTLD_GLOBAL 3482# define LT_DLGLOBAL RTLD_GLOBAL 3483#else 3484# ifdef DL_GLOBAL 3485# define LT_DLGLOBAL DL_GLOBAL 3486# else 3487# define LT_DLGLOBAL 0 3488# endif 3489#endif 3490 3491/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 3492 find out it does not work in some platform. */ 3493#ifndef LT_DLLAZY_OR_NOW 3494# ifdef RTLD_LAZY 3495# define LT_DLLAZY_OR_NOW RTLD_LAZY 3496# else 3497# ifdef DL_LAZY 3498# define LT_DLLAZY_OR_NOW DL_LAZY 3499# else 3500# ifdef RTLD_NOW 3501# define LT_DLLAZY_OR_NOW RTLD_NOW 3502# else 3503# ifdef DL_NOW 3504# define LT_DLLAZY_OR_NOW DL_NOW 3505# else 3506# define LT_DLLAZY_OR_NOW 0 3507# endif 3508# endif 3509# endif 3510# endif 3511#endif 3512 3513/* When -fvisbility=hidden is used, assume the code has been annotated 3514 correspondingly for the symbols needed. */ 3515#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 3516int fnord () __attribute__((visibility("default"))); 3517#endif 3518 3519int fnord () { return 42; } 3520int main () 3521{ 3522 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 3523 int status = $lt_dlunknown; 3524 3525 if (self) 3526 { 3527 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 3528 else 3529 { 3530 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 3531 else puts (dlerror ()); 3532 } 3533 /* dlclose (self); */ 3534 } 3535 else 3536 puts (dlerror ()); 3537 3538 return status; 3539}] 3540_LT_EOF 3541 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 3542 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 3543 lt_status=$? 3544 case x$lt_status in 3545 x$lt_dlno_uscore) $1 ;; 3546 x$lt_dlneed_uscore) $2 ;; 3547 x$lt_dlunknown|x*) $3 ;; 3548 esac 3549 else : 3550 # compilation failed 3551 $3 3552 fi 3553fi 3554rm -fr conftest* 3555])# _LT_TRY_DLOPEN_SELF 3556 3557 3558# LT_SYS_DLOPEN_SELF 3559# ------------------ 3560AC_DEFUN([LT_SYS_DLOPEN_SELF], 3561[m4_require([_LT_HEADER_DLFCN])dnl 3562if test "x$enable_dlopen" != xyes; then 3563 enable_dlopen=unknown 3564 enable_dlopen_self=unknown 3565 enable_dlopen_self_static=unknown 3566else 3567 lt_cv_dlopen=no 3568 lt_cv_dlopen_libs= 3569 3570 case $host_os in 3571 beos*) 3572 lt_cv_dlopen="load_add_on" 3573 lt_cv_dlopen_libs= 3574 lt_cv_dlopen_self=yes 3575 ;; 3576 3577 mingw* | pw32* | cegcc*) 3578 lt_cv_dlopen="LoadLibrary" 3579 lt_cv_dlopen_libs= 3580 ;; 3581 3582 cygwin*) 3583 lt_cv_dlopen="dlopen" 3584 lt_cv_dlopen_libs= 3585 ;; 3586 3587 darwin*) 3588 # if libdl is installed we need to link against it 3589 AC_CHECK_LIB([dl], [dlopen], 3590 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 3591 lt_cv_dlopen="dyld" 3592 lt_cv_dlopen_libs= 3593 lt_cv_dlopen_self=yes 3594 ]) 3595 ;; 3596 3597 *) 3598 AC_CHECK_FUNC([shl_load], 3599 [lt_cv_dlopen="shl_load"], 3600 [AC_CHECK_LIB([dld], [shl_load], 3601 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], 3602 [AC_CHECK_FUNC([dlopen], 3603 [lt_cv_dlopen="dlopen"], 3604 [AC_CHECK_LIB([dl], [dlopen], 3605 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 3606 [AC_CHECK_LIB([svld], [dlopen], 3607 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 3608 [AC_CHECK_LIB([dld], [dld_link], 3609 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) 3610 ]) 3611 ]) 3612 ]) 3613 ]) 3614 ]) 3615 ;; 3616 esac 3617 3618 if test "x$lt_cv_dlopen" != xno; then 3619 enable_dlopen=yes 3620 else 3621 enable_dlopen=no 3622 fi 3623 3624 case $lt_cv_dlopen in 3625 dlopen) 3626 save_CPPFLAGS="$CPPFLAGS" 3627 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 3628 3629 save_LDFLAGS="$LDFLAGS" 3630 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 3631 3632 save_LIBS="$LIBS" 3633 LIBS="$lt_cv_dlopen_libs $LIBS" 3634 3635 AC_CACHE_CHECK([whether a program can dlopen itself], 3636 lt_cv_dlopen_self, [dnl 3637 _LT_TRY_DLOPEN_SELF( 3638 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 3639 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 3640 ]) 3641 3642 if test "x$lt_cv_dlopen_self" = xyes; then 3643 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 3644 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 3645 lt_cv_dlopen_self_static, [dnl 3646 _LT_TRY_DLOPEN_SELF( 3647 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 3648 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 3649 ]) 3650 fi 3651 3652 CPPFLAGS="$save_CPPFLAGS" 3653 LDFLAGS="$save_LDFLAGS" 3654 LIBS="$save_LIBS" 3655 ;; 3656 esac 3657 3658 case $lt_cv_dlopen_self in 3659 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 3660 *) enable_dlopen_self=unknown ;; 3661 esac 3662 3663 case $lt_cv_dlopen_self_static in 3664 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 3665 *) enable_dlopen_self_static=unknown ;; 3666 esac 3667fi 3668_LT_DECL([dlopen_support], [enable_dlopen], [0], 3669 [Whether dlopen is supported]) 3670_LT_DECL([dlopen_self], [enable_dlopen_self], [0], 3671 [Whether dlopen of programs is supported]) 3672_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], 3673 [Whether dlopen of statically linked programs is supported]) 3674])# LT_SYS_DLOPEN_SELF 3675 3676# Old name: 3677AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) 3678dnl aclocal-1.4 backwards compatibility: 3679dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) 3680 3681 3682# _LT_COMPILER_C_O([TAGNAME]) 3683# --------------------------- 3684# Check to see if options -c and -o are simultaneously supported by compiler. 3685# This macro does not hard code the compiler like AC_PROG_CC_C_O. 3686m4_defun([_LT_COMPILER_C_O], 3687[m4_require([_LT_DECL_SED])dnl 3688m4_require([_LT_FILEUTILS_DEFAULTS])dnl 3689m4_require([_LT_TAG_COMPILER])dnl 3690AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 3691 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 3692 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 3693 $RM -r conftest 2>/dev/null 3694 mkdir conftest 3695 cd conftest 3696 mkdir out 3697 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 3698 3699 lt_compiler_flag="-o out/conftest2.$ac_objext" 3700 # Insert the option either (1) after the last *FLAGS variable, or 3701 # (2) before a word containing "conftest.", or (3) at the end. 3702 # Note that $ac_compile itself does not contain backslashes and begins 3703 # with a dollar sign (not a hyphen), so the echo should work correctly. 3704 lt_compile=`echo "$ac_compile" | $SED \ 3705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 3706 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 3707 -e 's:$: $lt_compiler_flag:'` 3708 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 3709 (eval "$lt_compile" 2>out/conftest.err) 3710 ac_status=$? 3711 cat out/conftest.err >&AS_MESSAGE_LOG_FD 3712 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 3713 if (exit $ac_status) && test -s out/conftest2.$ac_objext 3714 then 3715 # The compiler can only warn and ignore the option if not recognized 3716 # So say no if there are warnings 3717 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 3718 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 3719 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 3720 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 3721 fi 3722 fi 3723 chmod u+w . 2>&AS_MESSAGE_LOG_FD 3724 $RM conftest* 3725 # SGI C++ compiler will create directory out/ii_files/ for 3726 # template instantiation 3727 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 3728 $RM out/* && rmdir out 3729 cd .. 3730 $RM -r conftest 3731 $RM conftest* 3732]) 3733_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], 3734 [Does compiler simultaneously support -c and -o options?]) 3735])# _LT_COMPILER_C_O 3736 3737 3738# _LT_COMPILER_FILE_LOCKS([TAGNAME]) 3739# ---------------------------------- 3740# Check to see if we can do hard links to lock some files if needed 3741m4_defun([_LT_COMPILER_FILE_LOCKS], 3742[m4_require([_LT_ENABLE_LOCK])dnl 3743m4_require([_LT_FILEUTILS_DEFAULTS])dnl 3744_LT_COMPILER_C_O([$1]) 3745 3746hard_links="nottested" 3747if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 3748 # do not overwrite the value of need_locks provided by the user 3749 AC_MSG_CHECKING([if we can lock with hard links]) 3750 hard_links=yes 3751 $RM conftest* 3752 ln conftest.a conftest.b 2>/dev/null && hard_links=no 3753 touch conftest.a 3754 ln conftest.a conftest.b 2>&5 || hard_links=no 3755 ln conftest.a conftest.b 2>/dev/null && hard_links=no 3756 AC_MSG_RESULT([$hard_links]) 3757 if test "$hard_links" = no; then 3758 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) 3759 need_locks=warn 3760 fi 3761else 3762 need_locks=no 3763fi 3764_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) 3765])# _LT_COMPILER_FILE_LOCKS 3766 3767 3768# _LT_CHECK_OBJDIR 3769# ---------------- 3770m4_defun([_LT_CHECK_OBJDIR], 3771[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 3772[rm -f .libs 2>/dev/null 3773mkdir .libs 2>/dev/null 3774if test -d .libs; then 3775 lt_cv_objdir=.libs 3776else 3777 # MS-DOS does not allow filenames that begin with a dot. 3778 lt_cv_objdir=_libs 3779fi 3780rmdir .libs 2>/dev/null]) 3781objdir=$lt_cv_objdir 3782_LT_DECL([], [objdir], [0], 3783 [The name of the directory that contains temporary libtool files])dnl 3784m4_pattern_allow([LT_OBJDIR])dnl 3785AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", 3786 [Define to the sub-directory in which libtool stores uninstalled libraries.]) 3787])# _LT_CHECK_OBJDIR 3788 3789 3790# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 3791# -------------------------------------- 3792# Check hardcoding attributes. 3793m4_defun([_LT_LINKER_HARDCODE_LIBPATH], 3794[AC_MSG_CHECKING([how to hardcode library paths into programs]) 3795_LT_TAGVAR(hardcode_action, $1)= 3796if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 3797 test -n "$_LT_TAGVAR(runpath_var, $1)" || 3798 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 3799 3800 # We can hardcode non-existent directories. 3801 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && 3802 # If the only mechanism to avoid hardcoding is shlibpath_var, we 3803 # have to relink, otherwise we might link with an installed library 3804 # when we should be linking with a yet-to-be-installed one 3805 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && 3806 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then 3807 # Linking always hardcodes the temporary library directory. 3808 _LT_TAGVAR(hardcode_action, $1)=relink 3809 else 3810 # We can link without hardcoding, and we can hardcode nonexisting dirs. 3811 _LT_TAGVAR(hardcode_action, $1)=immediate 3812 fi 3813else 3814 # We cannot hardcode anything, or else we can only hardcode existing 3815 # directories. 3816 _LT_TAGVAR(hardcode_action, $1)=unsupported 3817fi 3818AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 3819 3820if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || 3821 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then 3822 # Fast installation is not supported 3823 enable_fast_install=no 3824elif test "$shlibpath_overrides_runpath" = yes || 3825 test "$enable_shared" = no; then 3826 # Fast installation is not necessary 3827 enable_fast_install=needless 3828fi 3829_LT_TAGDECL([], [hardcode_action], [0], 3830 [How to hardcode a shared library path into an executable]) 3831])# _LT_LINKER_HARDCODE_LIBPATH 3832 3833 3834# _LT_CMD_STRIPLIB 3835# ---------------- 3836m4_defun([_LT_CMD_STRIPLIB], 3837[m4_require([_LT_DECL_EGREP]) 3838striplib= 3839old_striplib= 3840AC_MSG_CHECKING([whether stripping libraries is possible]) 3841if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 3842 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 3843 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 3844 AC_MSG_RESULT([yes]) 3845else 3846# FIXME - insert some real tests, host_os isn't really good enough 3847 case $host_os in 3848 darwin*) 3849 if test -n "$STRIP" ; then 3850 striplib="$STRIP -x" 3851 old_striplib="$STRIP -S" 3852 AC_MSG_RESULT([yes]) 3853 else 3854 AC_MSG_RESULT([no]) 3855 fi 3856 ;; 3857 *) 3858 AC_MSG_RESULT([no]) 3859 ;; 3860 esac 3861fi 3862_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) 3863_LT_DECL([], [striplib], [1]) 3864])# _LT_CMD_STRIPLIB 3865 3866 3867# _LT_SYS_DYNAMIC_LINKER([TAG]) 3868# ----------------------------- 3869# PORTME Fill in your ld.so characteristics 3870m4_defun([_LT_SYS_DYNAMIC_LINKER], 3871[AC_REQUIRE([AC_CANONICAL_HOST])dnl 3872m4_require([_LT_DECL_EGREP])dnl 3873m4_require([_LT_FILEUTILS_DEFAULTS])dnl 3874m4_require([_LT_DECL_OBJDUMP])dnl 3875m4_require([_LT_DECL_SED])dnl 3876m4_require([_LT_CHECK_SHELL_FEATURES])dnl 3877AC_MSG_CHECKING([dynamic linker characteristics]) 3878m4_if([$1], 3879 [], [ 3880if test "$GCC" = yes; then 3881 case $host_os in 3882 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 3883 *) lt_awk_arg="/^libraries:/" ;; 3884 esac 3885 case $host_os in 3886 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; 3887 *) lt_sed_strip_eq="s,=/,/,g" ;; 3888 esac 3889 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 3890 case $lt_search_path_spec in 3891 *\;*) 3892 # if the path contains ";" then we assume it to be the separator 3893 # otherwise default to the standard path separator (i.e. ":") - it is 3894 # assumed that no part of a normal pathname contains ";" but that should 3895 # okay in the real world where ";" in dirpaths is itself problematic. 3896 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 3897 ;; 3898 *) 3899 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 3900 ;; 3901 esac 3902 # Ok, now we have the path, separated by spaces, we can step through it 3903 # and add multilib dir if necessary. 3904 lt_tmp_lt_search_path_spec= 3905 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 3906 for lt_sys_path in $lt_search_path_spec; do 3907 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 3908 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 3909 else 3910 test -d "$lt_sys_path" && \ 3911 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 3912 fi 3913 done 3914 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 3915BEGIN {RS=" "; FS="/|\n";} { 3916 lt_foo=""; 3917 lt_count=0; 3918 for (lt_i = NF; lt_i > 0; lt_i--) { 3919 if ($lt_i != "" && $lt_i != ".") { 3920 if ($lt_i == "..") { 3921 lt_count++; 3922 } else { 3923 if (lt_count == 0) { 3924 lt_foo="/" $lt_i lt_foo; 3925 } else { 3926 lt_count--; 3927 } 3928 } 3929 } 3930 } 3931 if (lt_foo != "") { lt_freq[[lt_foo]]++; } 3932 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 3933}'` 3934 # AWK program above erroneously prepends '/' to C:/dos/paths 3935 # for these hosts. 3936 case $host_os in 3937 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 3938 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; 3939 esac 3940 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 3941else 3942 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 3943fi]) 3944library_names_spec= 3945libname_spec='lib$name' 3946soname_spec= 3947shrext_cmds=".so" 3948postinstall_cmds= 3949postuninstall_cmds= 3950finish_cmds= 3951finish_eval= 3952shlibpath_var= 3953shlibpath_overrides_runpath=unknown 3954version_type=none 3955dynamic_linker="$host_os ld.so" 3956sys_lib_dlsearch_path_spec="/lib /usr/lib" 3957need_lib_prefix=unknown 3958hardcode_into_libs=no 3959 3960# when you set need_version to no, make sure it does not cause -set_version 3961# flags to be left without arguments 3962need_version=unknown 3963 3964case $host_os in 3965aix3*) 3966 version_type=linux 3967 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 3968 shlibpath_var=LIBPATH 3969 3970 # AIX 3 has no versioning support, so we append a major version to the name. 3971 soname_spec='${libname}${release}${shared_ext}$major' 3972 ;; 3973 3974aix[[4-9]]*) 3975 version_type=linux 3976 need_lib_prefix=no 3977 need_version=no 3978 hardcode_into_libs=yes 3979 if test "$host_cpu" = ia64; then 3980 # AIX 5 supports IA64 3981 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 3982 shlibpath_var=LD_LIBRARY_PATH 3983 else 3984 # With GCC up to 2.95.x, collect2 would create an import file 3985 # for dependence libraries. The import file would start with 3986 # the line `#! .'. This would cause the generated library to 3987 # depend on `.', always an invalid library. This was fixed in 3988 # development snapshots of GCC prior to 3.0. 3989 case $host_os in 3990 aix4 | aix4.[[01]] | aix4.[[01]].*) 3991 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 3992 echo ' yes ' 3993 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 3994 : 3995 else 3996 can_build_shared=no 3997 fi 3998 ;; 3999 esac 4000 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 4001 # soname into executable. Probably we can add versioning support to 4002 # collect2, so additional links can be useful in future. 4003 if test "$aix_use_runtimelinking" = yes; then 4004 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 4005 # instead of lib<name>.a to let people know that these are not 4006 # typical AIX shared libraries. 4007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4008 else 4009 # We preserve .a as extension for shared libraries through AIX4.2 4010 # and later when we are not doing run time linking. 4011 library_names_spec='${libname}${release}.a $libname.a' 4012 soname_spec='${libname}${release}${shared_ext}$major' 4013 fi 4014 shlibpath_var=LIBPATH 4015 fi 4016 ;; 4017 4018amigaos*) 4019 case $host_cpu in 4020 powerpc) 4021 # Since July 2007 AmigaOS4 officially supports .so libraries. 4022 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 4023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4024 ;; 4025 m68k) 4026 library_names_spec='$libname.ixlibrary $libname.a' 4027 # Create ${libname}_ixlibrary.a entries in /sys/libs. 4028 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 4029 ;; 4030 esac 4031 ;; 4032 4033beos*) 4034 library_names_spec='${libname}${shared_ext}' 4035 dynamic_linker="$host_os ld.so" 4036 shlibpath_var=LIBRARY_PATH 4037 ;; 4038 4039bsdi[[45]]*) 4040 version_type=linux 4041 need_version=no 4042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4043 soname_spec='${libname}${release}${shared_ext}$major' 4044 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 4045 shlibpath_var=LD_LIBRARY_PATH 4046 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 4047 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 4048 # the default ld.so.conf also contains /usr/contrib/lib and 4049 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 4050 # libtool to hard-code these into programs 4051 ;; 4052 4053cygwin* | mingw* | pw32* | cegcc*) 4054 version_type=windows 4055 shrext_cmds=".dll" 4056 need_version=no 4057 need_lib_prefix=no 4058 4059 case $GCC,$cc_basename in 4060 yes,*) 4061 # gcc 4062 library_names_spec='$libname.dll.a' 4063 # DLL is installed to $(libdir)/../bin by postinstall_cmds 4064 postinstall_cmds='base_file=`basename \${file}`~ 4065 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 4066 dldir=$destdir/`dirname \$dlpath`~ 4067 test -d \$dldir || mkdir -p \$dldir~ 4068 $install_prog $dir/$dlname \$dldir/$dlname~ 4069 chmod a+x \$dldir/$dlname~ 4070 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 4071 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 4072 fi' 4073 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 4074 dlpath=$dir/\$dldll~ 4075 $RM \$dlpath' 4076 shlibpath_overrides_runpath=yes 4077 4078 case $host_os in 4079 cygwin*) 4080 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 4081 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 4082m4_if([$1], [],[ 4083 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) 4084 ;; 4085 mingw* | cegcc*) 4086 # MinGW DLLs use traditional 'lib' prefix 4087 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 4088 ;; 4089 pw32*) 4090 # pw32 DLLs use 'pw' prefix rather than 'lib' 4091 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 4092 ;; 4093 esac 4094 dynamic_linker='Win32 ld.exe' 4095 ;; 4096 4097 *,cl*) 4098 # Native MSVC 4099 libname_spec='$name' 4100 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 4101 library_names_spec='${libname}.dll.lib' 4102 4103 case $build_os in 4104 mingw*) 4105 sys_lib_search_path_spec= 4106 lt_save_ifs=$IFS 4107 IFS=';' 4108 for lt_path in $LIB 4109 do 4110 IFS=$lt_save_ifs 4111 # Let DOS variable expansion print the short 8.3 style file name. 4112 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 4113 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 4114 done 4115 IFS=$lt_save_ifs 4116 # Convert to MSYS style. 4117 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` 4118 ;; 4119 cygwin*) 4120 # Convert to unix form, then to dos form, then back to unix form 4121 # but this time dos style (no spaces!) so that the unix form looks 4122 # like /cygdrive/c/PROGRA~1:/cygdr... 4123 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 4124 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 4125 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 4126 ;; 4127 *) 4128 sys_lib_search_path_spec="$LIB" 4129 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then 4130 # It is most probably a Windows format PATH. 4131 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 4132 else 4133 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 4134 fi 4135 # FIXME: find the short name or the path components, as spaces are 4136 # common. (e.g. "Program Files" -> "PROGRA~1") 4137 ;; 4138 esac 4139 4140 # DLL is installed to $(libdir)/../bin by postinstall_cmds 4141 postinstall_cmds='base_file=`basename \${file}`~ 4142 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 4143 dldir=$destdir/`dirname \$dlpath`~ 4144 test -d \$dldir || mkdir -p \$dldir~ 4145 $install_prog $dir/$dlname \$dldir/$dlname' 4146 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 4147 dlpath=$dir/\$dldll~ 4148 $RM \$dlpath' 4149 shlibpath_overrides_runpath=yes 4150 dynamic_linker='Win32 link.exe' 4151 ;; 4152 4153 *) 4154 # Assume MSVC wrapper 4155 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 4156 dynamic_linker='Win32 ld.exe' 4157 ;; 4158 esac 4159 # FIXME: first we should search . and the directory the executable is in 4160 shlibpath_var=PATH 4161 ;; 4162 4163darwin* | rhapsody*) 4164 dynamic_linker="$host_os dyld" 4165 version_type=darwin 4166 need_lib_prefix=no 4167 need_version=no 4168 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 4169 soname_spec='${libname}${release}${major}$shared_ext' 4170 shlibpath_overrides_runpath=yes 4171 shlibpath_var=DYLD_LIBRARY_PATH 4172 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 4173m4_if([$1], [],[ 4174 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 4175 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 4176 ;; 4177 4178dgux*) 4179 version_type=linux 4180 need_lib_prefix=no 4181 need_version=no 4182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 4183 soname_spec='${libname}${release}${shared_ext}$major' 4184 shlibpath_var=LD_LIBRARY_PATH 4185 ;; 4186 4187freebsd1*) 4188 dynamic_linker=no 4189 ;; 4190 4191freebsd* | dragonfly*) 4192 # DragonFly does not have aout. When/if they implement a new 4193 # versioning mechanism, adjust this. 4194 if test -x /usr/bin/objformat; then 4195 objformat=`/usr/bin/objformat` 4196 else 4197 case $host_os in 4198 freebsd[[123]]*) objformat=aout ;; 4199 *) objformat=elf ;; 4200 esac 4201 fi 4202 # Handle Gentoo/FreeBSD as it was Linux 4203 case $host_vendor in 4204 gentoo) 4205 version_type=linux ;; 4206 *) 4207 version_type=freebsd-$objformat ;; 4208 esac 4209 4210 case $version_type in 4211 freebsd-elf*) 4212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 4213 need_version=no 4214 need_lib_prefix=no 4215 ;; 4216 freebsd-*) 4217 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 4218 need_version=yes 4219 ;; 4220 linux) 4221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 4222 soname_spec='${libname}${release}${shared_ext}$major' 4223 need_lib_prefix=no 4224 need_version=no 4225 ;; 4226 esac 4227 shlibpath_var=LD_LIBRARY_PATH 4228 case $host_os in 4229 freebsd2*) 4230 shlibpath_overrides_runpath=yes 4231 ;; 4232 freebsd3.[[01]]* | freebsdelf3.[[01]]*) 4233 shlibpath_overrides_runpath=yes 4234 hardcode_into_libs=yes 4235 ;; 4236 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 4237 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 4238 shlibpath_overrides_runpath=no 4239 hardcode_into_libs=yes 4240 ;; 4241 *) # from 4.6 on, and DragonFly 4242 shlibpath_overrides_runpath=yes 4243 hardcode_into_libs=yes 4244 ;; 4245 esac 4246 ;; 4247 4248gnu*) 4249 version_type=linux 4250 need_lib_prefix=no 4251 need_version=no 4252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 4253 soname_spec='${libname}${release}${shared_ext}$major' 4254 shlibpath_var=LD_LIBRARY_PATH 4255 hardcode_into_libs=yes 4256 ;; 4257 4258haiku*) 4259 version_type=linux 4260 need_lib_prefix=no 4261 need_version=no 4262 dynamic_linker="$host_os runtime_loader" 4263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 4264 soname_spec='${libname}${release}${shared_ext}$major' 4265 shlibpath_var=LIBRARY_PATH 4266 shlibpath_overrides_runpath=yes 4267 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 4268 hardcode_into_libs=yes 4269 ;; 4270 4271hpux9* | hpux10* | hpux11*) 4272 # Give a soname corresponding to the major version so that dld.sl refuses to 4273 # link against other versions. 4274 version_type=sunos 4275 need_lib_prefix=no 4276 need_version=no 4277 case $host_cpu in 4278 ia64*) 4279 shrext_cmds='.so' 4280 hardcode_into_libs=yes 4281 dynamic_linker="$host_os dld.so" 4282 shlibpath_var=LD_LIBRARY_PATH 4283 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 4284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4285 soname_spec='${libname}${release}${shared_ext}$major' 4286 if test "X$HPUX_IA64_MODE" = X32; then 4287 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 4288 else 4289 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 4290 fi 4291 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 4292 ;; 4293 hppa*64*) 4294 shrext_cmds='.sl' 4295 hardcode_into_libs=yes 4296 dynamic_linker="$host_os dld.sl" 4297 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 4298 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 4299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4300 soname_spec='${libname}${release}${shared_ext}$major' 4301 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 4302 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 4303 ;; 4304 *) 4305 shrext_cmds='.sl' 4306 dynamic_linker="$host_os dld.sl" 4307 shlibpath_var=SHLIB_PATH 4308 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 4309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4310 soname_spec='${libname}${release}${shared_ext}$major' 4311 ;; 4312 esac 4313 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 4314 postinstall_cmds='chmod 555 $lib' 4315 # or fails outright, so override atomically: 4316 install_override_mode=555 4317 ;; 4318 4319interix[[3-9]]*) 4320 version_type=linux 4321 need_lib_prefix=no 4322 need_version=no 4323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 4324 soname_spec='${libname}${release}${shared_ext}$major' 4325 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 4326 shlibpath_var=LD_LIBRARY_PATH 4327 shlibpath_overrides_runpath=no 4328 hardcode_into_libs=yes 4329 ;; 4330 4331irix5* | irix6* | nonstopux*) 4332 case $host_os in 4333 nonstopux*) version_type=nonstopux ;; 4334 *) 4335 if test "$lt_cv_prog_gnu_ld" = yes; then 4336 version_type=linux 4337 else 4338 version_type=irix 4339 fi ;; 4340 esac 4341 need_lib_prefix=no 4342 need_version=no 4343 soname_spec='${libname}${release}${shared_ext}$major' 4344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 4345 case $host_os in 4346 irix5* | nonstopux*) 4347 libsuff= shlibsuff= 4348 ;; 4349 *) 4350 case $LD in # libtool.m4 will add one of these switches to LD 4351 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 4352 libsuff= shlibsuff= libmagic=32-bit;; 4353 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 4354 libsuff=32 shlibsuff=N32 libmagic=N32;; 4355 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 4356 libsuff=64 shlibsuff=64 libmagic=64-bit;; 4357 *) libsuff= shlibsuff= libmagic=never-match;; 4358 esac 4359 ;; 4360 esac 4361 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 4362 shlibpath_overrides_runpath=no 4363 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 4364 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 4365 hardcode_into_libs=yes 4366 ;; 4367 4368# No shared lib support for Linux oldld, aout, or coff. 4369linux*oldld* | linux*aout* | linux*coff*) 4370 dynamic_linker=no 4371 ;; 4372 4373# This must be Linux ELF. 4374linux* | k*bsd*-gnu | kopensolaris*-gnu) 4375 version_type=linux 4376 need_lib_prefix=no 4377 need_version=no 4378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4379 soname_spec='${libname}${release}${shared_ext}$major' 4380 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 4381 shlibpath_var=LD_LIBRARY_PATH 4382 shlibpath_overrides_runpath=no 4383 4384 # Some binutils ld are patched to set DT_RUNPATH 4385 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], 4386 [lt_cv_shlibpath_overrides_runpath=no 4387 save_LDFLAGS=$LDFLAGS 4388 save_libdir=$libdir 4389 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 4390 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 4391 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 4392 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], 4393 [lt_cv_shlibpath_overrides_runpath=yes])]) 4394 LDFLAGS=$save_LDFLAGS 4395 libdir=$save_libdir 4396 ]) 4397 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 4398 4399 # This implies no fast_install, which is unacceptable. 4400 # Some rework will be needed to allow for fast_install 4401 # before this can be enabled. 4402 hardcode_into_libs=yes 4403 4404 # Append ld.so.conf contents to the search path 4405 if test -f /etc/ld.so.conf; then 4406 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' ' '` 4407 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 4408 fi 4409 4410 # We used to test for /lib/ld.so.1 and disable shared libraries on 4411 # powerpc, because MkLinux only supported shared libraries with the 4412 # GNU dynamic linker. Since this was broken with cross compilers, 4413 # most powerpc-linux boxes support dynamic linking these days and 4414 # people can always --disable-shared, the test was removed, and we 4415 # assume the GNU/Linux dynamic linker is in use. 4416 dynamic_linker='GNU/Linux ld.so' 4417 ;; 4418 4419netbsd*) 4420 version_type=sunos 4421 need_lib_prefix=no 4422 need_version=no 4423 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 4424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 4425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 4426 dynamic_linker='NetBSD (a.out) ld.so' 4427 else 4428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 4429 soname_spec='${libname}${release}${shared_ext}$major' 4430 dynamic_linker='NetBSD ld.elf_so' 4431 fi 4432 shlibpath_var=LD_LIBRARY_PATH 4433 shlibpath_overrides_runpath=yes 4434 hardcode_into_libs=yes 4435 ;; 4436 4437newsos6) 4438 version_type=linux 4439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4440 shlibpath_var=LD_LIBRARY_PATH 4441 shlibpath_overrides_runpath=yes 4442 ;; 4443 4444*nto* | *qnx*) 4445 version_type=qnx 4446 need_lib_prefix=no 4447 need_version=no 4448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4449 soname_spec='${libname}${release}${shared_ext}$major' 4450 shlibpath_var=LD_LIBRARY_PATH 4451 shlibpath_overrides_runpath=no 4452 hardcode_into_libs=yes 4453 dynamic_linker='ldqnx.so' 4454 ;; 4455 4456openbsd*) 4457 version_type=sunos 4458 sys_lib_dlsearch_path_spec="/usr/lib" 4459 need_lib_prefix=no 4460 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 4461 case $host_os in 4462 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 4463 *) need_version=no ;; 4464 esac 4465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 4466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 4467 shlibpath_var=LD_LIBRARY_PATH 4468 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4469 case $host_os in 4470 openbsd2.[[89]] | openbsd2.[[89]].*) 4471 shlibpath_overrides_runpath=no 4472 ;; 4473 *) 4474 shlibpath_overrides_runpath=yes 4475 ;; 4476 esac 4477 else 4478 shlibpath_overrides_runpath=yes 4479 fi 4480 ;; 4481 4482os2*) 4483 libname_spec='$name' 4484 shrext_cmds=".dll" 4485 need_lib_prefix=no 4486 library_names_spec='$libname${shared_ext} $libname.a' 4487 dynamic_linker='OS/2 ld.exe' 4488 shlibpath_var=LIBPATH 4489 ;; 4490 4491osf3* | osf4* | osf5*) 4492 version_type=osf 4493 need_lib_prefix=no 4494 need_version=no 4495 soname_spec='${libname}${release}${shared_ext}$major' 4496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4497 shlibpath_var=LD_LIBRARY_PATH 4498 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 4499 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 4500 ;; 4501 4502rdos*) 4503 dynamic_linker=no 4504 ;; 4505 4506solaris*) 4507 version_type=linux 4508 need_lib_prefix=no 4509 need_version=no 4510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4511 soname_spec='${libname}${release}${shared_ext}$major' 4512 shlibpath_var=LD_LIBRARY_PATH 4513 shlibpath_overrides_runpath=yes 4514 hardcode_into_libs=yes 4515 # ldd complains unless libraries are executable 4516 postinstall_cmds='chmod +x $lib' 4517 ;; 4518 4519sunos4*) 4520 version_type=sunos 4521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 4522 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 4523 shlibpath_var=LD_LIBRARY_PATH 4524 shlibpath_overrides_runpath=yes 4525 if test "$with_gnu_ld" = yes; then 4526 need_lib_prefix=no 4527 fi 4528 need_version=yes 4529 ;; 4530 4531sysv4 | sysv4.3*) 4532 version_type=linux 4533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4534 soname_spec='${libname}${release}${shared_ext}$major' 4535 shlibpath_var=LD_LIBRARY_PATH 4536 case $host_vendor in 4537 sni) 4538 shlibpath_overrides_runpath=no 4539 need_lib_prefix=no 4540 runpath_var=LD_RUN_PATH 4541 ;; 4542 siemens) 4543 need_lib_prefix=no 4544 ;; 4545 motorola) 4546 need_lib_prefix=no 4547 need_version=no 4548 shlibpath_overrides_runpath=no 4549 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 4550 ;; 4551 esac 4552 ;; 4553 4554sysv4*MP*) 4555 if test -d /usr/nec ;then 4556 version_type=linux 4557 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 4558 soname_spec='$libname${shared_ext}.$major' 4559 shlibpath_var=LD_LIBRARY_PATH 4560 fi 4561 ;; 4562 4563sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4564 version_type=freebsd-elf 4565 need_lib_prefix=no 4566 need_version=no 4567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 4568 soname_spec='${libname}${release}${shared_ext}$major' 4569 shlibpath_var=LD_LIBRARY_PATH 4570 shlibpath_overrides_runpath=yes 4571 hardcode_into_libs=yes 4572 if test "$with_gnu_ld" = yes; then 4573 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 4574 else 4575 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 4576 case $host_os in 4577 sco3.2v5*) 4578 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 4579 ;; 4580 esac 4581 fi 4582 sys_lib_dlsearch_path_spec='/usr/lib' 4583 ;; 4584 4585tpf*) 4586 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 4587 version_type=linux 4588 need_lib_prefix=no 4589 need_version=no 4590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4591 shlibpath_var=LD_LIBRARY_PATH 4592 shlibpath_overrides_runpath=no 4593 hardcode_into_libs=yes 4594 ;; 4595 4596uts4*) 4597 version_type=linux 4598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4599 soname_spec='${libname}${release}${shared_ext}$major' 4600 shlibpath_var=LD_LIBRARY_PATH 4601 ;; 4602 4603*) 4604 dynamic_linker=no 4605 ;; 4606esac 4607AC_MSG_RESULT([$dynamic_linker]) 4608test "$dynamic_linker" = no && can_build_shared=no 4609 4610variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 4611if test "$GCC" = yes; then 4612 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 4613fi 4614 4615if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 4616 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 4617fi 4618if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 4619 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 4620fi 4621 4622_LT_DECL([], [variables_saved_for_relink], [1], 4623 [Variables whose values should be saved in libtool wrapper scripts and 4624 restored at link time]) 4625_LT_DECL([], [need_lib_prefix], [0], 4626 [Do we need the "lib" prefix for modules?]) 4627_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) 4628_LT_DECL([], [version_type], [0], [Library versioning type]) 4629_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) 4630_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) 4631_LT_DECL([], [shlibpath_overrides_runpath], [0], 4632 [Is shlibpath searched before the hard-coded library search path?]) 4633_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) 4634_LT_DECL([], [library_names_spec], [1], 4635 [[List of archive names. First name is the real one, the rest are links. 4636 The last name is the one that the linker finds with -lNAME]]) 4637_LT_DECL([], [soname_spec], [1], 4638 [[The coded name of the library, if different from the real name]]) 4639_LT_DECL([], [install_override_mode], [1], 4640 [Permission mode override for installation of shared libraries]) 4641_LT_DECL([], [postinstall_cmds], [2], 4642 [Command to use after installation of a shared archive]) 4643_LT_DECL([], [postuninstall_cmds], [2], 4644 [Command to use after uninstallation of a shared archive]) 4645_LT_DECL([], [finish_cmds], [2], 4646 [Commands used to finish a libtool library installation in a directory]) 4647_LT_DECL([], [finish_eval], [1], 4648 [[As "finish_cmds", except a single script fragment to be evaled but 4649 not shown]]) 4650_LT_DECL([], [hardcode_into_libs], [0], 4651 [Whether we should hardcode library paths into libraries]) 4652_LT_DECL([], [sys_lib_search_path_spec], [2], 4653 [Compile-time system search path for libraries]) 4654_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], 4655 [Run-time system search path for libraries]) 4656])# _LT_SYS_DYNAMIC_LINKER 4657 4658 4659# _LT_PATH_TOOL_PREFIX(TOOL) 4660# -------------------------- 4661# find a file program which can recognize shared library 4662AC_DEFUN([_LT_PATH_TOOL_PREFIX], 4663[m4_require([_LT_DECL_EGREP])dnl 4664AC_MSG_CHECKING([for $1]) 4665AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 4666[case $MAGIC_CMD in 4667[[\\/*] | ?:[\\/]*]) 4668 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4669 ;; 4670*) 4671 lt_save_MAGIC_CMD="$MAGIC_CMD" 4672 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4673dnl $ac_dummy forces splitting on constant user-supplied paths. 4674dnl POSIX.2 word splitting is done only on the output of word expansions, 4675dnl not every word. This closes a longstanding sh security hole. 4676 ac_dummy="m4_if([$2], , $PATH, [$2])" 4677 for ac_dir in $ac_dummy; do 4678 IFS="$lt_save_ifs" 4679 test -z "$ac_dir" && ac_dir=. 4680 if test -f $ac_dir/$1; then 4681 lt_cv_path_MAGIC_CMD="$ac_dir/$1" 4682 if test -n "$file_magic_test_file"; then 4683 case $deplibs_check_method in 4684 "file_magic "*) 4685 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 4686 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4687 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 4688 $EGREP "$file_magic_regex" > /dev/null; then 4689 : 4690 else 4691 cat <<_LT_EOF 1>&2 4692 4693*** Warning: the command libtool uses to detect shared libraries, 4694*** $file_magic_cmd, produces output that libtool cannot recognize. 4695*** The result is that libtool may fail to recognize shared libraries 4696*** as such. This will affect the creation of libtool libraries that 4697*** depend on shared libraries, but programs linked with such libtool 4698*** libraries will work regardless of this problem. Nevertheless, you 4699*** may want to report the problem to your system manager and/or to 4700*** bug-libtool@gnu.org 4701 4702_LT_EOF 4703 fi ;; 4704 esac 4705 fi 4706 break 4707 fi 4708 done 4709 IFS="$lt_save_ifs" 4710 MAGIC_CMD="$lt_save_MAGIC_CMD" 4711 ;; 4712esac]) 4713MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4714if test -n "$MAGIC_CMD"; then 4715 AC_MSG_RESULT($MAGIC_CMD) 4716else 4717 AC_MSG_RESULT(no) 4718fi 4719_LT_DECL([], [MAGIC_CMD], [0], 4720 [Used to examine libraries when file_magic_cmd begins with "file"])dnl 4721])# _LT_PATH_TOOL_PREFIX 4722 4723# Old name: 4724AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) 4725dnl aclocal-1.4 backwards compatibility: 4726dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) 4727 4728 4729# _LT_PATH_MAGIC 4730# -------------- 4731# find a file program which can recognize a shared library 4732m4_defun([_LT_PATH_MAGIC], 4733[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 4734if test -z "$lt_cv_path_MAGIC_CMD"; then 4735 if test -n "$ac_tool_prefix"; then 4736 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 4737 else 4738 MAGIC_CMD=: 4739 fi 4740fi 4741])# _LT_PATH_MAGIC 4742 4743 4744# LT_PATH_LD 4745# ---------- 4746# find the pathname to the GNU or non-GNU linker 4747AC_DEFUN([LT_PATH_LD], 4748[AC_REQUIRE([AC_PROG_CC])dnl 4749AC_REQUIRE([AC_CANONICAL_HOST])dnl 4750AC_REQUIRE([AC_CANONICAL_BUILD])dnl 4751m4_require([_LT_DECL_SED])dnl 4752m4_require([_LT_DECL_EGREP])dnl 4753m4_require([_LT_PROG_ECHO_BACKSLASH])dnl 4754 4755AC_ARG_WITH([gnu-ld], 4756 [AS_HELP_STRING([--with-gnu-ld], 4757 [assume the C compiler uses GNU ld @<:@default=no@:>@])], 4758 [test "$withval" = no || with_gnu_ld=yes], 4759 [with_gnu_ld=no])dnl 4760 4761ac_prog=ld 4762if test "$GCC" = yes; then 4763 # Check if gcc -print-prog-name=ld gives a path. 4764 AC_MSG_CHECKING([for ld used by $CC]) 4765 case $host in 4766 *-*-mingw*) 4767 # gcc leaves a trailing carriage return which upsets mingw 4768 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4769 *) 4770 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4771 esac 4772 case $ac_prog in 4773 # Accept absolute paths. 4774 [[\\/]]* | ?:[[\\/]]*) 4775 re_direlt='/[[^/]][[^/]]*/\.\./' 4776 # Canonicalize the pathname of ld 4777 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4778 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4779 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4780 done 4781 test -z "$LD" && LD="$ac_prog" 4782 ;; 4783 "") 4784 # If it fails, then pretend we aren't using GCC. 4785 ac_prog=ld 4786 ;; 4787 *) 4788 # If it is relative, then search for the first ld in PATH. 4789 with_gnu_ld=unknown 4790 ;; 4791 esac 4792elif test "$with_gnu_ld" = yes; then 4793 AC_MSG_CHECKING([for GNU ld]) 4794else 4795 AC_MSG_CHECKING([for non-GNU ld]) 4796fi 4797AC_CACHE_VAL(lt_cv_path_LD, 4798[if test -z "$LD"; then 4799 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4800 for ac_dir in $PATH; do 4801 IFS="$lt_save_ifs" 4802 test -z "$ac_dir" && ac_dir=. 4803 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4804 lt_cv_path_LD="$ac_dir/$ac_prog" 4805 # Check to see if the program is GNU ld. I'd rather use --version, 4806 # but apparently some variants of GNU ld only accept -v. 4807 # Break only if it was the GNU/non-GNU ld that we prefer. 4808 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4809 *GNU* | *'with BFD'*) 4810 test "$with_gnu_ld" != no && break 4811 ;; 4812 *) 4813 test "$with_gnu_ld" != yes && break 4814 ;; 4815 esac 4816 fi 4817 done 4818 IFS="$lt_save_ifs" 4819else 4820 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4821fi]) 4822LD="$lt_cv_path_LD" 4823if test -n "$LD"; then 4824 AC_MSG_RESULT($LD) 4825else 4826 AC_MSG_RESULT(no) 4827fi 4828test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 4829_LT_PATH_LD_GNU 4830AC_SUBST([LD]) 4831 4832_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) 4833])# LT_PATH_LD 4834 4835# Old names: 4836AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) 4837AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) 4838dnl aclocal-1.4 backwards compatibility: 4839dnl AC_DEFUN([AM_PROG_LD], []) 4840dnl AC_DEFUN([AC_PROG_LD], []) 4841 4842 4843# _LT_PATH_LD_GNU 4844#- -------------- 4845m4_defun([_LT_PATH_LD_GNU], 4846[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 4847[# I'd rather use --version here, but apparently some GNU lds only accept -v. 4848case `$LD -v 2>&1 </dev/null` in 4849*GNU* | *'with BFD'*) 4850 lt_cv_prog_gnu_ld=yes 4851 ;; 4852*) 4853 lt_cv_prog_gnu_ld=no 4854 ;; 4855esac]) 4856with_gnu_ld=$lt_cv_prog_gnu_ld 4857])# _LT_PATH_LD_GNU 4858 4859 4860# _LT_CMD_RELOAD 4861# -------------- 4862# find reload flag for linker 4863# -- PORTME Some linkers may need a different reload flag. 4864m4_defun([_LT_CMD_RELOAD], 4865[AC_CACHE_CHECK([for $LD option to reload object files], 4866 lt_cv_ld_reload_flag, 4867 [lt_cv_ld_reload_flag='-r']) 4868reload_flag=$lt_cv_ld_reload_flag 4869case $reload_flag in 4870"" | " "*) ;; 4871*) reload_flag=" $reload_flag" ;; 4872esac 4873reload_cmds='$LD$reload_flag -o $output$reload_objs' 4874case $host_os in 4875 cygwin* | mingw* | pw32* | cegcc*) 4876 if test "$GCC" != yes; then 4877 reload_cmds=false 4878 fi 4879 ;; 4880 darwin*) 4881 if test "$GCC" = yes; then 4882 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4883 else 4884 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4885 fi 4886 ;; 4887esac 4888_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl 4889_LT_TAGDECL([], [reload_cmds], [2])dnl 4890])# _LT_CMD_RELOAD 4891 4892 4893# _LT_CHECK_MAGIC_METHOD 4894# ---------------------- 4895# how to check for library dependencies 4896# -- PORTME fill in with the dynamic library characteristics 4897m4_defun([_LT_CHECK_MAGIC_METHOD], 4898[m4_require([_LT_DECL_EGREP]) 4899m4_require([_LT_DECL_OBJDUMP]) 4900AC_CACHE_CHECK([how to recognize dependent libraries], 4901lt_cv_deplibs_check_method, 4902[lt_cv_file_magic_cmd='$MAGIC_CMD' 4903lt_cv_file_magic_test_file= 4904lt_cv_deplibs_check_method='unknown' 4905# Need to set the preceding variable on all platforms that support 4906# interlibrary dependencies. 4907# 'none' -- dependencies not supported. 4908# `unknown' -- same as none, but documents that we really don't know. 4909# 'pass_all' -- all dependencies passed with no checks. 4910# 'test_compile' -- check by making test program. 4911# 'file_magic [[regex]]' -- check by looking for files in library path 4912# which responds to the $file_magic_cmd with a given extended regex. 4913# If you have `file' or equivalent on your system and you're not sure 4914# whether `pass_all' will *always* work, you probably want this one. 4915 4916case $host_os in 4917aix[[4-9]]*) 4918 lt_cv_deplibs_check_method=pass_all 4919 ;; 4920 4921beos*) 4922 lt_cv_deplibs_check_method=pass_all 4923 ;; 4924 4925bsdi[[45]]*) 4926 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 4927 lt_cv_file_magic_cmd='/usr/bin/file -L' 4928 lt_cv_file_magic_test_file=/shlib/libc.so 4929 ;; 4930 4931cygwin*) 4932 # func_win32_libid is a shell function defined in ltmain.sh 4933 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4934 lt_cv_file_magic_cmd='func_win32_libid' 4935 ;; 4936 4937mingw* | pw32*) 4938 # Base MSYS/MinGW do not provide the 'file' command needed by 4939 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4940 # unless we find 'file', for example because we are cross-compiling. 4941 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 4942 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 4943 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4944 lt_cv_file_magic_cmd='func_win32_libid' 4945 else 4946 # Keep this pattern in sync with the one in func_win32_libid. 4947 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 4948 lt_cv_file_magic_cmd='$OBJDUMP -f' 4949 fi 4950 ;; 4951 4952cegcc*) 4953 # use the weaker test based on 'objdump'. See mingw*. 4954 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4955 lt_cv_file_magic_cmd='$OBJDUMP -f' 4956 ;; 4957 4958darwin* | rhapsody*) 4959 lt_cv_deplibs_check_method=pass_all 4960 ;; 4961 4962freebsd* | dragonfly*) 4963 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4964 case $host_cpu in 4965 i*86 ) 4966 # Not sure whether the presence of OpenBSD here was a mistake. 4967 # Let's accept both of them until this is cleared up. 4968 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 4969 lt_cv_file_magic_cmd=/usr/bin/file 4970 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4971 ;; 4972 esac 4973 else 4974 lt_cv_deplibs_check_method=pass_all 4975 fi 4976 ;; 4977 4978gnu*) 4979 lt_cv_deplibs_check_method=pass_all 4980 ;; 4981 4982haiku*) 4983 lt_cv_deplibs_check_method=pass_all 4984 ;; 4985 4986hpux10.20* | hpux11*) 4987 lt_cv_file_magic_cmd=/usr/bin/file 4988 case $host_cpu in 4989 ia64*) 4990 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 4991 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4992 ;; 4993 hppa*64*) 4994 [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]'] 4995 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4996 ;; 4997 *) 4998 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' 4999 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5000 ;; 5001 esac 5002 ;; 5003 5004interix[[3-9]]*) 5005 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5006 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 5007 ;; 5008 5009irix5* | irix6* | nonstopux*) 5010 case $LD in 5011 *-32|*"-32 ") libmagic=32-bit;; 5012 *-n32|*"-n32 ") libmagic=N32;; 5013 *-64|*"-64 ") libmagic=64-bit;; 5014 *) libmagic=never-match;; 5015 esac 5016 lt_cv_deplibs_check_method=pass_all 5017 ;; 5018 5019# This must be Linux ELF. 5020linux* | k*bsd*-gnu | kopensolaris*-gnu) 5021 lt_cv_deplibs_check_method=pass_all 5022 ;; 5023 5024netbsd*) 5025 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5026 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 5027 else 5028 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 5029 fi 5030 ;; 5031 5032newos6*) 5033 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 5034 lt_cv_file_magic_cmd=/usr/bin/file 5035 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5036 ;; 5037 5038*nto* | *qnx*) 5039 lt_cv_deplibs_check_method=pass_all 5040 ;; 5041 5042openbsd*) 5043 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5044 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 5045 else 5046 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 5047 fi 5048 ;; 5049 5050osf3* | osf4* | osf5*) 5051 lt_cv_deplibs_check_method=pass_all 5052 ;; 5053 5054rdos*) 5055 lt_cv_deplibs_check_method=pass_all 5056 ;; 5057 5058solaris*) 5059 lt_cv_deplibs_check_method=pass_all 5060 ;; 5061 5062sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5063 lt_cv_deplibs_check_method=pass_all 5064 ;; 5065 5066sysv4 | sysv4.3*) 5067 case $host_vendor in 5068 motorola) 5069 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]]' 5070 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5071 ;; 5072 ncr) 5073 lt_cv_deplibs_check_method=pass_all 5074 ;; 5075 sequent) 5076 lt_cv_file_magic_cmd='/bin/file' 5077 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 5078 ;; 5079 sni) 5080 lt_cv_file_magic_cmd='/bin/file' 5081 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 5082 lt_cv_file_magic_test_file=/lib/libc.so 5083 ;; 5084 siemens) 5085 lt_cv_deplibs_check_method=pass_all 5086 ;; 5087 pc) 5088 lt_cv_deplibs_check_method=pass_all 5089 ;; 5090 esac 5091 ;; 5092 5093tpf*) 5094 lt_cv_deplibs_check_method=pass_all 5095 ;; 5096esac 5097]) 5098 5099file_magic_glob= 5100want_nocaseglob=no 5101if test "$build" = "$host"; then 5102 case $host_os in 5103 mingw* | pw32*) 5104 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5105 want_nocaseglob=yes 5106 else 5107 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` 5108 fi 5109 ;; 5110 esac 5111fi 5112 5113file_magic_cmd=$lt_cv_file_magic_cmd 5114deplibs_check_method=$lt_cv_deplibs_check_method 5115test -z "$deplibs_check_method" && deplibs_check_method=unknown 5116 5117_LT_DECL([], [deplibs_check_method], [1], 5118 [Method to check whether dependent libraries are shared objects]) 5119_LT_DECL([], [file_magic_cmd], [1], 5120 [Command to use when deplibs_check_method = "file_magic"]) 5121_LT_DECL([], [file_magic_glob], [1], 5122 [How to find potential files when deplibs_check_method = "file_magic"]) 5123_LT_DECL([], [want_nocaseglob], [1], 5124 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) 5125])# _LT_CHECK_MAGIC_METHOD 5126 5127 5128# LT_PATH_NM 5129# ---------- 5130# find the pathname to a BSD- or MS-compatible name lister 5131AC_DEFUN([LT_PATH_NM], 5132[AC_REQUIRE([AC_PROG_CC])dnl 5133AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, 5134[if test -n "$NM"; then 5135 # Let the user override the test. 5136 lt_cv_path_NM="$NM" 5137else 5138 lt_nm_to_check="${ac_tool_prefix}nm" 5139 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5140 lt_nm_to_check="$lt_nm_to_check nm" 5141 fi 5142 for lt_tmp_nm in $lt_nm_to_check; do 5143 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5144 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5145 IFS="$lt_save_ifs" 5146 test -z "$ac_dir" && ac_dir=. 5147 tmp_nm="$ac_dir/$lt_tmp_nm" 5148 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5149 # Check to see if the nm accepts a BSD-compat flag. 5150 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5151 # nm: unknown option "B" ignored 5152 # Tru64's nm complains that /dev/null is an invalid object file 5153 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5154 */dev/null* | *'Invalid file or object type'*) 5155 lt_cv_path_NM="$tmp_nm -B" 5156 break 5157 ;; 5158 *) 5159 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5160 */dev/null*) 5161 lt_cv_path_NM="$tmp_nm -p" 5162 break 5163 ;; 5164 *) 5165 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5166 continue # so that we can try to find one that supports BSD flags 5167 ;; 5168 esac 5169 ;; 5170 esac 5171 fi 5172 done 5173 IFS="$lt_save_ifs" 5174 done 5175 : ${lt_cv_path_NM=no} 5176fi]) 5177if test "$lt_cv_path_NM" != "no"; then 5178 NM="$lt_cv_path_NM" 5179else 5180 # Didn't find any BSD compatible name lister, look for dumpbin. 5181 if test -n "$DUMPBIN"; then : 5182 # Let the user override the test. 5183 else 5184 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) 5185 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5186 *COFF*) 5187 DUMPBIN="$DUMPBIN -symbols" 5188 ;; 5189 *) 5190 DUMPBIN=: 5191 ;; 5192 esac 5193 fi 5194 AC_SUBST([DUMPBIN]) 5195 if test "$DUMPBIN" != ":"; then 5196 NM="$DUMPBIN" 5197 fi 5198fi 5199test -z "$NM" && NM=nm 5200AC_SUBST([NM]) 5201_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl 5202 5203AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], 5204 [lt_cv_nm_interface="BSD nm" 5205 echo "int some_variable = 0;" > conftest.$ac_ext 5206 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) 5207 (eval "$ac_compile" 2>conftest.err) 5208 cat conftest.err >&AS_MESSAGE_LOG_FD 5209 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) 5210 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5211 cat conftest.err >&AS_MESSAGE_LOG_FD 5212 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) 5213 cat conftest.out >&AS_MESSAGE_LOG_FD 5214 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5215 lt_cv_nm_interface="MS dumpbin" 5216 fi 5217 rm -f conftest*]) 5218])# LT_PATH_NM 5219 5220# Old names: 5221AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) 5222AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) 5223dnl aclocal-1.4 backwards compatibility: 5224dnl AC_DEFUN([AM_PROG_NM], []) 5225dnl AC_DEFUN([AC_PROG_NM], []) 5226 5227# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 5228# -------------------------------- 5229# how to determine the name of the shared library 5230# associated with a specific link library. 5231# -- PORTME fill in with the dynamic library characteristics 5232m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], 5233[m4_require([_LT_DECL_EGREP]) 5234m4_require([_LT_DECL_OBJDUMP]) 5235m4_require([_LT_DECL_DLLTOOL]) 5236AC_CACHE_CHECK([how to associate runtime and link libraries], 5237lt_cv_sharedlib_from_linklib_cmd, 5238[lt_cv_sharedlib_from_linklib_cmd='unknown' 5239 5240case $host_os in 5241cygwin* | mingw* | pw32* | cegcc*) 5242 # two different shell functions defined in ltmain.sh 5243 # decide which to use based on capabilities of $DLLTOOL 5244 case `$DLLTOOL --help 2>&1` in 5245 *--identify-strict*) 5246 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5247 ;; 5248 *) 5249 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5250 ;; 5251 esac 5252 ;; 5253*) 5254 # fallback: assume linklib IS sharedlib 5255 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5256 ;; 5257esac 5258]) 5259sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5260test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5261 5262_LT_DECL([], [sharedlib_from_linklib_cmd], [1], 5263 [Command to associate shared and link libraries]) 5264])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 5265 5266 5267# _LT_PATH_MANIFEST_TOOL 5268# ---------------------- 5269# locate the manifest tool 5270m4_defun([_LT_PATH_MANIFEST_TOOL], 5271[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) 5272test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 5273AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], 5274 [lt_cv_path_mainfest_tool=no 5275 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD 5276 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 5277 cat conftest.err >&AS_MESSAGE_LOG_FD 5278 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 5279 lt_cv_path_mainfest_tool=yes 5280 fi 5281 rm -f conftest*]) 5282if test "x$lt_cv_path_mainfest_tool" != xyes; then 5283 MANIFEST_TOOL=: 5284fi 5285_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl 5286])# _LT_PATH_MANIFEST_TOOL 5287 5288 5289# LT_LIB_M 5290# -------- 5291# check for math library 5292AC_DEFUN([LT_LIB_M], 5293[AC_REQUIRE([AC_CANONICAL_HOST])dnl 5294LIBM= 5295case $host in 5296*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 5297 # These system don't have libm, or don't need it 5298 ;; 5299*-ncr-sysv4.3*) 5300 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") 5301 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 5302 ;; 5303*) 5304 AC_CHECK_LIB(m, cos, LIBM="-lm") 5305 ;; 5306esac 5307AC_SUBST([LIBM]) 5308])# LT_LIB_M 5309 5310# Old name: 5311AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) 5312dnl aclocal-1.4 backwards compatibility: 5313dnl AC_DEFUN([AC_CHECK_LIBM], []) 5314 5315 5316# _LT_COMPILER_NO_RTTI([TAGNAME]) 5317# ------------------------------- 5318m4_defun([_LT_COMPILER_NO_RTTI], 5319[m4_require([_LT_TAG_COMPILER])dnl 5320 5321_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 5322 5323if test "$GCC" = yes; then 5324 case $cc_basename in 5325 nvcc*) 5326 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; 5327 *) 5328 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; 5329 esac 5330 5331 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 5332 lt_cv_prog_compiler_rtti_exceptions, 5333 [-fno-rtti -fno-exceptions], [], 5334 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 5335fi 5336_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], 5337 [Compiler flag to turn off builtin functions]) 5338])# _LT_COMPILER_NO_RTTI 5339 5340 5341# _LT_CMD_GLOBAL_SYMBOLS 5342# ---------------------- 5343m4_defun([_LT_CMD_GLOBAL_SYMBOLS], 5344[AC_REQUIRE([AC_CANONICAL_HOST])dnl 5345AC_REQUIRE([AC_PROG_CC])dnl 5346AC_REQUIRE([AC_PROG_AWK])dnl 5347AC_REQUIRE([LT_PATH_NM])dnl 5348AC_REQUIRE([LT_PATH_LD])dnl 5349m4_require([_LT_DECL_SED])dnl 5350m4_require([_LT_DECL_EGREP])dnl 5351m4_require([_LT_TAG_COMPILER])dnl 5352 5353# Check for command to grab the raw symbol name followed by C symbol from nm. 5354AC_MSG_CHECKING([command to parse $NM output from $compiler object]) 5355AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 5356[ 5357# These are sane defaults that work on at least a few old systems. 5358# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5359 5360# Character class describing NM global symbol codes. 5361symcode='[[BCDEGRST]]' 5362 5363# Regexp to match symbols that can be accessed directly from C. 5364sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 5365 5366# Define system-specific variables. 5367case $host_os in 5368aix*) 5369 symcode='[[BCDT]]' 5370 ;; 5371cygwin* | mingw* | pw32* | cegcc*) 5372 symcode='[[ABCDGISTW]]' 5373 ;; 5374hpux*) 5375 if test "$host_cpu" = ia64; then 5376 symcode='[[ABCDEGRST]]' 5377 fi 5378 ;; 5379irix* | nonstopux*) 5380 symcode='[[BCDEGRST]]' 5381 ;; 5382osf*) 5383 symcode='[[BCDEGQRST]]' 5384 ;; 5385solaris*) 5386 symcode='[[BDRT]]' 5387 ;; 5388sco3.2v5*) 5389 symcode='[[DT]]' 5390 ;; 5391sysv4.2uw2*) 5392 symcode='[[DT]]' 5393 ;; 5394sysv5* | sco5v6* | unixware* | OpenUNIX*) 5395 symcode='[[ABDT]]' 5396 ;; 5397sysv4) 5398 symcode='[[DFNSTU]]' 5399 ;; 5400esac 5401 5402# If we're using GNU nm, then use its standard symbol codes. 5403case `$NM -V 2>&1` in 5404*GNU* | *'with BFD'*) 5405 symcode='[[ABCDGIRSTW]]' ;; 5406esac 5407 5408# Transform an extracted symbol line into a proper C declaration. 5409# Some systems (esp. on ia64) link data and code symbols differently, 5410# so use this general approach. 5411lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5412 5413# Transform an extracted symbol line into symbol name and symbol address 5414lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" 5415lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 5416 5417# Handle CRLF in mingw tool chain 5418opt_cr= 5419case $build_os in 5420mingw*) 5421 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5422 ;; 5423esac 5424 5425# Try without a prefix underscore, then with it. 5426for ac_symprfx in "" "_"; do 5427 5428 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5429 symxfrm="\\1 $ac_symprfx\\2 \\2" 5430 5431 # Write the raw and C identifiers. 5432 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5433 # Fake it for dumpbin and say T for any non-static function 5434 # and D for any global variable. 5435 # Also find C++ and __fastcall symbols from MSVC++, 5436 # which start with @ or ?. 5437 lt_cv_sys_global_symbol_pipe="$AWK ['"\ 5438" {last_section=section; section=\$ 3};"\ 5439" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5440" \$ 0!~/External *\|/{next};"\ 5441" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5442" {if(hide[section]) next};"\ 5443" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5444" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5445" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5446" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5447" ' prfx=^$ac_symprfx]" 5448 else 5449 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5450 fi 5451 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5452 5453 # Check to see that the pipe works correctly. 5454 pipe_works=no 5455 5456 rm -f conftest* 5457 cat > conftest.$ac_ext <<_LT_EOF 5458#ifdef __cplusplus 5459extern "C" { 5460#endif 5461char nm_test_var; 5462void nm_test_func(void); 5463void nm_test_func(void){} 5464#ifdef __cplusplus 5465} 5466#endif 5467int main(){nm_test_var='a';nm_test_func();return(0);} 5468_LT_EOF 5469 5470 if AC_TRY_EVAL(ac_compile); then 5471 # Now try to grab the symbols. 5472 nlist=conftest.nm 5473 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then 5474 # Try sorting and uniquifying the output. 5475 if sort "$nlist" | uniq > "$nlist"T; then 5476 mv -f "$nlist"T "$nlist" 5477 else 5478 rm -f "$nlist"T 5479 fi 5480 5481 # Make sure that we snagged all the symbols we need. 5482 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5483 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5484 cat <<_LT_EOF > conftest.$ac_ext 5485/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 5486#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 5487/* DATA imports from DLLs on WIN32 con't be const, because runtime 5488 relocations are performed -- see ld's documentation on pseudo-relocs. */ 5489# define LT@&t@_DLSYM_CONST 5490#elif defined(__osf__) 5491/* This system does not cope well with relocations in const data. */ 5492# define LT@&t@_DLSYM_CONST 5493#else 5494# define LT@&t@_DLSYM_CONST const 5495#endif 5496 5497#ifdef __cplusplus 5498extern "C" { 5499#endif 5500 5501_LT_EOF 5502 # Now generate the symbol file. 5503 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5504 5505 cat <<_LT_EOF >> conftest.$ac_ext 5506 5507/* The mapping between symbol names and symbols. */ 5508LT@&t@_DLSYM_CONST struct { 5509 const char *name; 5510 void *address; 5511} 5512lt__PROGRAM__LTX_preloaded_symbols[[]] = 5513{ 5514 { "@PROGRAM@", (void *) 0 }, 5515_LT_EOF 5516 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5517 cat <<\_LT_EOF >> conftest.$ac_ext 5518 {0, (void *) 0} 5519}; 5520 5521/* This works around a problem in FreeBSD linker */ 5522#ifdef FREEBSD_WORKAROUND 5523static const void *lt_preloaded_setup() { 5524 return lt__PROGRAM__LTX_preloaded_symbols; 5525} 5526#endif 5527 5528#ifdef __cplusplus 5529} 5530#endif 5531_LT_EOF 5532 # Now try linking the two files. 5533 mv conftest.$ac_objext conftstm.$ac_objext 5534 lt_globsym_save_LIBS=$LIBS 5535 lt_globsym_save_CFLAGS=$CFLAGS 5536 LIBS="conftstm.$ac_objext" 5537 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 5538 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then 5539 pipe_works=yes 5540 fi 5541 LIBS=$lt_globsym_save_LIBS 5542 CFLAGS=$lt_globsym_save_CFLAGS 5543 else 5544 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 5545 fi 5546 else 5547 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 5548 fi 5549 else 5550 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 5551 fi 5552 else 5553 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 5554 cat conftest.$ac_ext >&5 5555 fi 5556 rm -rf conftest* conftst* 5557 5558 # Do not use the global_symbol_pipe unless it works. 5559 if test "$pipe_works" = yes; then 5560 break 5561 else 5562 lt_cv_sys_global_symbol_pipe= 5563 fi 5564done 5565]) 5566if test -z "$lt_cv_sys_global_symbol_pipe"; then 5567 lt_cv_sys_global_symbol_to_cdecl= 5568fi 5569if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5570 AC_MSG_RESULT(failed) 5571else 5572 AC_MSG_RESULT(ok) 5573fi 5574 5575# Response file support. 5576if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5577 nm_file_list_spec='@' 5578elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then 5579 nm_file_list_spec='@' 5580fi 5581 5582_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], 5583 [Take the output of nm and produce a listing of raw symbols and C names]) 5584_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 5585 [Transform the output of nm in a proper C declaration]) 5586_LT_DECL([global_symbol_to_c_name_address], 5587 [lt_cv_sys_global_symbol_to_c_name_address], [1], 5588 [Transform the output of nm in a C name address pair]) 5589_LT_DECL([global_symbol_to_c_name_address_lib_prefix], 5590 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 5591 [Transform the output of nm in a C name address pair when lib prefix is needed]) 5592_LT_DECL([], [nm_file_list_spec], [1], 5593 [Specify filename containing input files for $NM]) 5594]) # _LT_CMD_GLOBAL_SYMBOLS 5595 5596 5597# _LT_COMPILER_PIC([TAGNAME]) 5598# --------------------------- 5599m4_defun([_LT_COMPILER_PIC], 5600[m4_require([_LT_TAG_COMPILER])dnl 5601_LT_TAGVAR(lt_prog_compiler_wl, $1)= 5602_LT_TAGVAR(lt_prog_compiler_pic, $1)= 5603_LT_TAGVAR(lt_prog_compiler_static, $1)= 5604 5605m4_if([$1], [CXX], [ 5606 # C++ specific cases for pic, static, wl, etc. 5607 if test "$GXX" = yes; then 5608 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5609 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5610 5611 case $host_os in 5612 aix*) 5613 # All AIX code is PIC. 5614 if test "$host_cpu" = ia64; then 5615 # AIX 5 now supports IA64 processor 5616 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5617 fi 5618 ;; 5619 5620 amigaos*) 5621 case $host_cpu in 5622 powerpc) 5623 # see comment about AmigaOS4 .so support 5624 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5625 ;; 5626 m68k) 5627 # FIXME: we need at least 68020 code to build shared libraries, but 5628 # adding the `-m68020' flag to GCC prevents building anything better, 5629 # like `-m68040'. 5630 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 5631 ;; 5632 esac 5633 ;; 5634 5635 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 5636 # PIC is the default for these OSes. 5637 ;; 5638 mingw* | cygwin* | os2* | pw32* | cegcc*) 5639 # This hack is so that the source file can tell whether it is being 5640 # built for inclusion in a dll (and should export symbols for example). 5641 # Although the cygwin gcc ignores -fPIC, still need this for old-style 5642 # (--disable-auto-import) libraries 5643 m4_if([$1], [GCJ], [], 5644 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 5645 ;; 5646 darwin* | rhapsody*) 5647 # PIC is the default on this platform 5648 # Common symbols not allowed in MH_DYLIB files 5649 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 5650 ;; 5651 *djgpp*) 5652 # DJGPP does not support shared libraries at all 5653 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 5654 ;; 5655 haiku*) 5656 # PIC is the default for Haiku. 5657 # The "-static" flag exists, but is broken. 5658 _LT_TAGVAR(lt_prog_compiler_static, $1)= 5659 ;; 5660 interix[[3-9]]*) 5661 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 5662 # Instead, we relocate shared libraries at runtime. 5663 ;; 5664 sysv4*MP*) 5665 if test -d /usr/nec; then 5666 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 5667 fi 5668 ;; 5669 hpux*) 5670 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 5671 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 5672 # sets the default TLS model and affects inlining. 5673 case $host_cpu in 5674 hppa*64*) 5675 ;; 5676 *) 5677 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5678 ;; 5679 esac 5680 ;; 5681 *qnx* | *nto*) 5682 # QNX uses GNU C++, but need to define -shared option too, otherwise 5683 # it will coredump. 5684 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 5685 ;; 5686 *) 5687 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5688 ;; 5689 esac 5690 else 5691 case $host_os in 5692 aix[[4-9]]*) 5693 # All AIX code is PIC. 5694 if test "$host_cpu" = ia64; then 5695 # AIX 5 now supports IA64 processor 5696 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5697 else 5698 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 5699 fi 5700 ;; 5701 chorus*) 5702 case $cc_basename in 5703 cxch68*) 5704 # Green Hills C++ Compiler 5705 # _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" 5706 ;; 5707 esac 5708 ;; 5709 mingw* | cygwin* | os2* | pw32* | cegcc*) 5710 # This hack is so that the source file can tell whether it is being 5711 # built for inclusion in a dll (and should export symbols for example). 5712 m4_if([$1], [GCJ], [], 5713 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 5714 ;; 5715 dgux*) 5716 case $cc_basename in 5717 ec++*) 5718 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5719 ;; 5720 ghcx*) 5721 # Green Hills C++ Compiler 5722 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5723 ;; 5724 *) 5725 ;; 5726 esac 5727 ;; 5728 freebsd* | dragonfly*) 5729 # FreeBSD uses GNU C++ 5730 ;; 5731 hpux9* | hpux10* | hpux11*) 5732 case $cc_basename in 5733 CC*) 5734 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5735 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 5736 if test "$host_cpu" != ia64; then 5737 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5738 fi 5739 ;; 5740 aCC*) 5741 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5742 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 5743 case $host_cpu in 5744 hppa*64*|ia64*) 5745 # +Z the default 5746 ;; 5747 *) 5748 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5749 ;; 5750 esac 5751 ;; 5752 *) 5753 ;; 5754 esac 5755 ;; 5756 interix*) 5757 # This is c89, which is MS Visual C++ (no shared libs) 5758 # Anyone wants to do a port? 5759 ;; 5760 irix5* | irix6* | nonstopux*) 5761 case $cc_basename in 5762 CC*) 5763 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5764 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5765 # CC pic flag -KPIC is the default. 5766 ;; 5767 *) 5768 ;; 5769 esac 5770 ;; 5771 linux* | k*bsd*-gnu | kopensolaris*-gnu) 5772 case $cc_basename in 5773 KCC*) 5774 # KAI C++ Compiler 5775 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 5776 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5777 ;; 5778 ecpc* ) 5779 # old Intel C++ for x86_64 which still supported -KPIC. 5780 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5781 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5782 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5783 ;; 5784 icpc* ) 5785 # Intel C++, used to be incompatible with GCC. 5786 # ICC 10 doesn't accept -KPIC any more. 5787 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5788 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5789 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5790 ;; 5791 pgCC* | pgcpp*) 5792 # Portland Group C++ compiler 5793 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5794 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 5795 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5796 ;; 5797 cxx*) 5798 # Compaq C++ 5799 # Make sure the PIC flag is empty. It appears that all Alpha 5800 # Linux and Compaq Tru64 Unix objects are PIC. 5801 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 5802 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5803 ;; 5804 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) 5805 # IBM XL 8.0, 9.0 on PPC and BlueGene 5806 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5807 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 5808 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 5809 ;; 5810 *) 5811 case `$CC -V 2>&1 | sed 5q` in 5812 *Sun\ C*) 5813 # Sun C++ 5.9 5814 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5815 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5816 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5817 ;; 5818 esac 5819 ;; 5820 esac 5821 ;; 5822 lynxos*) 5823 ;; 5824 m88k*) 5825 ;; 5826 mvs*) 5827 case $cc_basename in 5828 cxx*) 5829 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 5830 ;; 5831 *) 5832 ;; 5833 esac 5834 ;; 5835 netbsd*) 5836 ;; 5837 *qnx* | *nto*) 5838 # QNX uses GNU C++, but need to define -shared option too, otherwise 5839 # it will coredump. 5840 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 5841 ;; 5842 osf3* | osf4* | osf5*) 5843 case $cc_basename in 5844 KCC*) 5845 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 5846 ;; 5847 RCC*) 5848 # Rational C++ 2.4.1 5849 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5850 ;; 5851 cxx*) 5852 # Digital/Compaq C++ 5853 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5854 # Make sure the PIC flag is empty. It appears that all Alpha 5855 # Linux and Compaq Tru64 Unix objects are PIC. 5856 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 5857 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5858 ;; 5859 *) 5860 ;; 5861 esac 5862 ;; 5863 psos*) 5864 ;; 5865 solaris*) 5866 case $cc_basename in 5867 CC* | sunCC*) 5868 # Sun C++ 4.2, 5.x and Centerline C++ 5869 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5870 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5871 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5872 ;; 5873 gcx*) 5874 # Green Hills C++ Compiler 5875 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 5876 ;; 5877 *) 5878 ;; 5879 esac 5880 ;; 5881 sunos4*) 5882 case $cc_basename in 5883 CC*) 5884 # Sun C++ 4.x 5885 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5886 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5887 ;; 5888 lcc*) 5889 # Lucid 5890 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5891 ;; 5892 *) 5893 ;; 5894 esac 5895 ;; 5896 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 5897 case $cc_basename in 5898 CC*) 5899 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5900 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5901 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5902 ;; 5903 esac 5904 ;; 5905 tandem*) 5906 case $cc_basename in 5907 NCC*) 5908 # NonStop-UX NCC 3.20 5909 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5910 ;; 5911 *) 5912 ;; 5913 esac 5914 ;; 5915 vxworks*) 5916 ;; 5917 *) 5918 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5919 ;; 5920 esac 5921 fi 5922], 5923[ 5924 if test "$GCC" = yes; then 5925 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5926 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5927 5928 case $host_os in 5929 aix*) 5930 # All AIX code is PIC. 5931 if test "$host_cpu" = ia64; then 5932 # AIX 5 now supports IA64 processor 5933 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5934 fi 5935 ;; 5936 5937 amigaos*) 5938 case $host_cpu in 5939 powerpc) 5940 # see comment about AmigaOS4 .so support 5941 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5942 ;; 5943 m68k) 5944 # FIXME: we need at least 68020 code to build shared libraries, but 5945 # adding the `-m68020' flag to GCC prevents building anything better, 5946 # like `-m68040'. 5947 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 5948 ;; 5949 esac 5950 ;; 5951 5952 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 5953 # PIC is the default for these OSes. 5954 ;; 5955 5956 mingw* | cygwin* | pw32* | os2* | cegcc*) 5957 # This hack is so that the source file can tell whether it is being 5958 # built for inclusion in a dll (and should export symbols for example). 5959 # Although the cygwin gcc ignores -fPIC, still need this for old-style 5960 # (--disable-auto-import) libraries 5961 m4_if([$1], [GCJ], [], 5962 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 5963 ;; 5964 5965 darwin* | rhapsody*) 5966 # PIC is the default on this platform 5967 # Common symbols not allowed in MH_DYLIB files 5968 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 5969 ;; 5970 5971 haiku*) 5972 # PIC is the default for Haiku. 5973 # The "-static" flag exists, but is broken. 5974 _LT_TAGVAR(lt_prog_compiler_static, $1)= 5975 ;; 5976 5977 hpux*) 5978 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 5979 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 5980 # sets the default TLS model and affects inlining. 5981 case $host_cpu in 5982 hppa*64*) 5983 # +Z the default 5984 ;; 5985 *) 5986 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5987 ;; 5988 esac 5989 ;; 5990 5991 interix[[3-9]]*) 5992 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 5993 # Instead, we relocate shared libraries at runtime. 5994 ;; 5995 5996 msdosdjgpp*) 5997 # Just because we use GCC doesn't mean we suddenly get shared libraries 5998 # on systems that don't support them. 5999 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6000 enable_shared=no 6001 ;; 6002 6003 *nto* | *qnx*) 6004 # QNX uses GNU C++, but need to define -shared option too, otherwise 6005 # it will coredump. 6006 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 6007 ;; 6008 6009 sysv4*MP*) 6010 if test -d /usr/nec; then 6011 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 6012 fi 6013 ;; 6014 6015 *) 6016 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6017 ;; 6018 esac 6019 6020 case $cc_basename in 6021 nvcc*) # Cuda Compiler Driver 2.2 6022 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' 6023 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC' 6024 ;; 6025 esac 6026 else 6027 # PORTME Check for flag to pass linker flags through the system compiler. 6028 case $host_os in 6029 aix*) 6030 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6031 if test "$host_cpu" = ia64; then 6032 # AIX 5 now supports IA64 processor 6033 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6034 else 6035 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 6036 fi 6037 ;; 6038 6039 mingw* | cygwin* | pw32* | os2* | cegcc*) 6040 # This hack is so that the source file can tell whether it is being 6041 # built for inclusion in a dll (and should export symbols for example). 6042 m4_if([$1], [GCJ], [], 6043 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 6044 ;; 6045 6046 hpux9* | hpux10* | hpux11*) 6047 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6048 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6049 # not for PA HP-UX. 6050 case $host_cpu in 6051 hppa*64*|ia64*) 6052 # +Z the default 6053 ;; 6054 *) 6055 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 6056 ;; 6057 esac 6058 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6059 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 6060 ;; 6061 6062 irix5* | irix6* | nonstopux*) 6063 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6064 # PIC (with -KPIC) is the default. 6065 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6066 ;; 6067 6068 linux* | k*bsd*-gnu | kopensolaris*-gnu) 6069 case $cc_basename in 6070 # old Intel for x86_64 which still supported -KPIC. 6071 ecc*) 6072 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6073 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6074 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6075 ;; 6076 # icc used to be incompatible with GCC. 6077 # ICC 10 doesn't accept -KPIC any more. 6078 icc* | ifort*) 6079 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6080 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6081 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6082 ;; 6083 # Lahey Fortran 8.1. 6084 lf95*) 6085 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6086 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' 6087 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 6088 ;; 6089 nagfor*) 6090 # NAG Fortran compiler 6091 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' 6092 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 6093 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6094 ;; 6095 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 6096 # Portland Group compilers (*not* the Pentium gcc compiler, 6097 # which looks to be a dead project) 6098 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6099 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 6100 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6101 ;; 6102 ccc*) 6103 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6104 # All Alpha code is PIC. 6105 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6106 ;; 6107 xl* | bgxl* | bgf* | mpixl*) 6108 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 6109 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6110 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 6111 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 6112 ;; 6113 *) 6114 case `$CC -V 2>&1 | sed 5q` in 6115 *Sun\ F* | *Sun*Fortran*) 6116 # Sun Fortran 8.3 passes all unrecognized flags to the linker 6117 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6118 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6119 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' 6120 ;; 6121 *Sun\ C*) 6122 # Sun C 5.9 6123 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6124 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6125 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6126 ;; 6127 esac 6128 ;; 6129 esac 6130 ;; 6131 6132 newsos6) 6133 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6134 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6135 ;; 6136 6137 *nto* | *qnx*) 6138 # QNX uses GNU C++, but need to define -shared option too, otherwise 6139 # it will coredump. 6140 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 6141 ;; 6142 6143 osf3* | osf4* | osf5*) 6144 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6145 # All OSF/1 code is PIC. 6146 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6147 ;; 6148 6149 rdos*) 6150 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6151 ;; 6152 6153 solaris*) 6154 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6155 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6156 case $cc_basename in 6157 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 6158 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 6159 *) 6160 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 6161 esac 6162 ;; 6163 6164 sunos4*) 6165 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 6166 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 6167 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6168 ;; 6169 6170 sysv4 | sysv4.2uw2* | sysv4.3*) 6171 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6172 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6173 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6174 ;; 6175 6176 sysv4*MP*) 6177 if test -d /usr/nec ;then 6178 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 6179 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6180 fi 6181 ;; 6182 6183 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6184 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6185 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6186 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6187 ;; 6188 6189 unicos*) 6190 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6191 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6192 ;; 6193 6194 uts4*) 6195 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6196 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6197 ;; 6198 6199 *) 6200 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6201 ;; 6202 esac 6203 fi 6204]) 6205case $host_os in 6206 # For platforms which do not support PIC, -DPIC is meaningless: 6207 *djgpp*) 6208 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 6209 ;; 6210 *) 6211 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" 6212 ;; 6213esac 6214 6215AC_CACHE_CHECK([for $compiler option to produce PIC], 6216 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], 6217 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) 6218_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) 6219 6220# 6221# Check to make sure the PIC flag actually works. 6222# 6223if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 6224 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], 6225 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], 6226 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], 6227 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in 6228 "" | " "*) ;; 6229 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; 6230 esac], 6231 [_LT_TAGVAR(lt_prog_compiler_pic, $1)= 6232 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 6233fi 6234_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], 6235 [Additional compiler flags for building library objects]) 6236 6237_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], 6238 [How to pass a linker flag through the compiler]) 6239# 6240# Check to make sure the static flag actually works. 6241# 6242wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" 6243_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 6244 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), 6245 $lt_tmp_static_flag, 6246 [], 6247 [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) 6248_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], 6249 [Compiler flag to prevent dynamic linking]) 6250])# _LT_COMPILER_PIC 6251 6252 6253# _LT_LINKER_SHLIBS([TAGNAME]) 6254# ---------------------------- 6255# See if the linker supports building shared libraries. 6256m4_defun([_LT_LINKER_SHLIBS], 6257[AC_REQUIRE([LT_PATH_LD])dnl 6258AC_REQUIRE([LT_PATH_NM])dnl 6259m4_require([_LT_PATH_MANIFEST_TOOL])dnl 6260m4_require([_LT_FILEUTILS_DEFAULTS])dnl 6261m4_require([_LT_DECL_EGREP])dnl 6262m4_require([_LT_DECL_SED])dnl 6263m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 6264m4_require([_LT_TAG_COMPILER])dnl 6265AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 6266m4_if([$1], [CXX], [ 6267 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6268 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 6269 case $host_os in 6270 aix[[4-9]]*) 6271 # If we're using GNU nm, then we don't want the "-C" option. 6272 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6273 # Also, AIX nm treats weak defined symbols like other global defined 6274 # symbols, whereas GNU nm marks them as "W". 6275 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 6276 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 6277 else 6278 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 6279 fi 6280 ;; 6281 pw32*) 6282 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 6283 ;; 6284 cygwin* | mingw* | cegcc*) 6285 case $cc_basename in 6286 cl*) ;; 6287 *) 6288 _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' 6289 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 6290 ;; 6291 esac 6292 ;; 6293 *) 6294 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6295 ;; 6296 esac 6297], [ 6298 runpath_var= 6299 _LT_TAGVAR(allow_undefined_flag, $1)= 6300 _LT_TAGVAR(always_export_symbols, $1)=no 6301 _LT_TAGVAR(archive_cmds, $1)= 6302 _LT_TAGVAR(archive_expsym_cmds, $1)= 6303 _LT_TAGVAR(compiler_needs_object, $1)=no 6304 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 6305 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 6306 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6307 _LT_TAGVAR(hardcode_automatic, $1)=no 6308 _LT_TAGVAR(hardcode_direct, $1)=no 6309 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 6310 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 6311 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 6312 _LT_TAGVAR(hardcode_libdir_separator, $1)= 6313 _LT_TAGVAR(hardcode_minus_L, $1)=no 6314 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 6315 _LT_TAGVAR(inherit_rpath, $1)=no 6316 _LT_TAGVAR(link_all_deplibs, $1)=unknown 6317 _LT_TAGVAR(module_cmds, $1)= 6318 _LT_TAGVAR(module_expsym_cmds, $1)= 6319 _LT_TAGVAR(old_archive_from_new_cmds, $1)= 6320 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= 6321 _LT_TAGVAR(thread_safe_flag_spec, $1)= 6322 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6323 # include_expsyms should be a list of space-separated symbols to be *always* 6324 # included in the symbol list 6325 _LT_TAGVAR(include_expsyms, $1)= 6326 # exclude_expsyms can be an extended regexp of symbols to exclude 6327 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6328 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6329 # as well as any symbol that contains `d'. 6330 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 6331 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6332 # platforms (ab)use it in PIC code, but their linkers get confused if 6333 # the symbol is explicitly referenced. Since portable code cannot 6334 # rely on this symbol name, it's probably fine to never include it in 6335 # preloaded symbol tables. 6336 # Exclude shared library initialization/finalization symbols. 6337dnl Note also adjust exclude_expsyms for C++ above. 6338 extract_expsyms_cmds= 6339 6340 case $host_os in 6341 cygwin* | mingw* | pw32* | cegcc*) 6342 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6343 # When not using gcc, we currently assume that we are using 6344 # Microsoft Visual C++. 6345 if test "$GCC" != yes; then 6346 with_gnu_ld=no 6347 fi 6348 ;; 6349 interix*) 6350 # we just hope/assume this is gcc and not c89 (= MSVC++) 6351 with_gnu_ld=yes 6352 ;; 6353 openbsd*) 6354 with_gnu_ld=no 6355 ;; 6356 esac 6357 6358 _LT_TAGVAR(ld_shlibs, $1)=yes 6359 6360 # On some targets, GNU ld is compatible enough with the native linker 6361 # that we're better off using the native interface for both. 6362 lt_use_gnu_ld_interface=no 6363 if test "$with_gnu_ld" = yes; then 6364 case $host_os in 6365 aix*) 6366 # The AIX port of GNU ld has always aspired to compatibility 6367 # with the native linker. However, as the warning in the GNU ld 6368 # block says, versions before 2.19.5* couldn't really create working 6369 # shared libraries, regardless of the interface used. 6370 case `$LD -v 2>&1` in 6371 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 6372 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; 6373 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; 6374 *) 6375 lt_use_gnu_ld_interface=yes 6376 ;; 6377 esac 6378 ;; 6379 *) 6380 lt_use_gnu_ld_interface=yes 6381 ;; 6382 esac 6383 fi 6384 6385 if test "$lt_use_gnu_ld_interface" = yes; then 6386 # If archive_cmds runs LD, not CC, wlarc should be empty 6387 wlarc='${wl}' 6388 6389 # Set some defaults for GNU ld with shared library support. These 6390 # are reset later if shared libraries are not supported. Putting them 6391 # here allows them to be overridden if necessary. 6392 runpath_var=LD_RUN_PATH 6393 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6394 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 6395 # ancient GNU ld didn't support --whole-archive et. al. 6396 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 6397 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6398 else 6399 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6400 fi 6401 supports_anon_versioning=no 6402 case `$LD -v 2>&1` in 6403 *GNU\ gold*) supports_anon_versioning=yes ;; 6404 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 6405 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6406 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6407 *\ 2.11.*) ;; # other 2.11 versions 6408 *) supports_anon_versioning=yes ;; 6409 esac 6410 6411 # See if GNU ld supports shared libraries. 6412 case $host_os in 6413 aix[[3-9]]*) 6414 # On AIX/PPC, the GNU linker is very broken 6415 if test "$host_cpu" != ia64; then 6416 _LT_TAGVAR(ld_shlibs, $1)=no 6417 cat <<_LT_EOF 1>&2 6418 6419*** Warning: the GNU linker, at least up to release 2.19, is reported 6420*** to be unable to reliably create shared libraries on AIX. 6421*** Therefore, libtool is disabling shared libraries support. If you 6422*** really care for shared libraries, you may want to install binutils 6423*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 6424*** You will then need to restart the configuration process. 6425 6426_LT_EOF 6427 fi 6428 ;; 6429 6430 amigaos*) 6431 case $host_cpu in 6432 powerpc) 6433 # see comment about AmigaOS4 .so support 6434 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6435 _LT_TAGVAR(archive_expsym_cmds, $1)='' 6436 ;; 6437 m68k) 6438 _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)' 6439 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6440 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6441 ;; 6442 esac 6443 ;; 6444 6445 beos*) 6446 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6447 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6448 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6449 # support --undefined. This deserves some investigation. FIXME 6450 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6451 else 6452 _LT_TAGVAR(ld_shlibs, $1)=no 6453 fi 6454 ;; 6455 6456 cygwin* | mingw* | pw32* | cegcc*) 6457 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 6458 # as there is no search path for DLLs. 6459 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6460 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' 6461 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6462 _LT_TAGVAR(always_export_symbols, $1)=no 6463 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6464 _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' 6465 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 6466 6467 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 6468 _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' 6469 # If the export-symbols file already is a .def file (1st line 6470 # is EXPORTS), use it as is; otherwise, prepend... 6471 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6472 cp $export_symbols $output_objdir/$soname.def; 6473 else 6474 echo EXPORTS > $output_objdir/$soname.def; 6475 cat $export_symbols >> $output_objdir/$soname.def; 6476 fi~ 6477 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6478 else 6479 _LT_TAGVAR(ld_shlibs, $1)=no 6480 fi 6481 ;; 6482 6483 haiku*) 6484 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6485 _LT_TAGVAR(link_all_deplibs, $1)=yes 6486 ;; 6487 6488 interix[[3-9]]*) 6489 _LT_TAGVAR(hardcode_direct, $1)=no 6490 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6491 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6492 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6493 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 6494 # Instead, shared libraries are loaded at an image base (0x10000000 by 6495 # default) and relocated if they conflict, which is a slow very memory 6496 # consuming and fragmenting process. To avoid this, we pick a random, 6497 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 6498 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 6499 _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' 6500 _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' 6501 ;; 6502 6503 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 6504 tmp_diet=no 6505 if test "$host_os" = linux-dietlibc; then 6506 case $cc_basename in 6507 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 6508 esac 6509 fi 6510 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 6511 && test "$tmp_diet" = no 6512 then 6513 tmp_addflag=' $pic_flag' 6514 tmp_sharedflag='-shared' 6515 case $cc_basename,$host_cpu in 6516 pgcc*) # Portland Group C compiler 6517 _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' 6518 tmp_addflag=' $pic_flag' 6519 ;; 6520 pgf77* | pgf90* | pgf95* | pgfortran*) 6521 # Portland Group f77 and f90 compilers 6522 _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' 6523 tmp_addflag=' $pic_flag -Mnomain' ;; 6524 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 6525 tmp_addflag=' -i_dynamic' ;; 6526 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 6527 tmp_addflag=' -i_dynamic -nofor_main' ;; 6528 ifc* | ifort*) # Intel Fortran compiler 6529 tmp_addflag=' -nofor_main' ;; 6530 lf95*) # Lahey Fortran 8.1 6531 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6532 tmp_sharedflag='--shared' ;; 6533 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 6534 tmp_sharedflag='-qmkshrobj' 6535 tmp_addflag= ;; 6536 nvcc*) # Cuda Compiler Driver 2.2 6537 _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' 6538 _LT_TAGVAR(compiler_needs_object, $1)=yes 6539 ;; 6540 esac 6541 case `$CC -V 2>&1 | sed 5q` in 6542 *Sun\ C*) # Sun C 5.9 6543 _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' 6544 _LT_TAGVAR(compiler_needs_object, $1)=yes 6545 tmp_sharedflag='-G' ;; 6546 *Sun\ F*) # Sun Fortran 8.3 6547 tmp_sharedflag='-G' ;; 6548 esac 6549 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6550 6551 if test "x$supports_anon_versioning" = xyes; then 6552 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 6553 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6554 echo "local: *; };" >> $output_objdir/$libname.ver~ 6555 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6556 fi 6557 6558 case $cc_basename in 6559 xlf* | bgf* | bgxlf* | mpixlf*) 6560 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 6561 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' 6562 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 6563 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' 6564 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 6565 if test "x$supports_anon_versioning" = xyes; then 6566 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 6567 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6568 echo "local: *; };" >> $output_objdir/$libname.ver~ 6569 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 6570 fi 6571 ;; 6572 esac 6573 else 6574 _LT_TAGVAR(ld_shlibs, $1)=no 6575 fi 6576 ;; 6577 6578 netbsd*) 6579 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 6580 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6581 wlarc= 6582 else 6583 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6584 _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' 6585 fi 6586 ;; 6587 6588 solaris*) 6589 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 6590 _LT_TAGVAR(ld_shlibs, $1)=no 6591 cat <<_LT_EOF 1>&2 6592 6593*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6594*** create shared libraries on Solaris systems. Therefore, libtool 6595*** is disabling shared libraries support. We urge you to upgrade GNU 6596*** binutils to release 2.9.1 or newer. Another option is to modify 6597*** your PATH or compiler configuration so that the native linker is 6598*** used, and then restart. 6599 6600_LT_EOF 6601 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6602 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6603 _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' 6604 else 6605 _LT_TAGVAR(ld_shlibs, $1)=no 6606 fi 6607 ;; 6608 6609 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 6610 case `$LD -v 2>&1` in 6611 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 6612 _LT_TAGVAR(ld_shlibs, $1)=no 6613 cat <<_LT_EOF 1>&2 6614 6615*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 6616*** reliably create shared libraries on SCO systems. Therefore, libtool 6617*** is disabling shared libraries support. We urge you to upgrade GNU 6618*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 6619*** your PATH or compiler configuration so that the native linker is 6620*** used, and then restart. 6621 6622_LT_EOF 6623 ;; 6624 *) 6625 # For security reasons, it is highly recommended that you always 6626 # use absolute paths for naming shared libraries, and exclude the 6627 # DT_RUNPATH tag from executables and libraries. But doing so 6628 # requires that you compile everything twice, which is a pain. 6629 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6630 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6631 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6632 _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' 6633 else 6634 _LT_TAGVAR(ld_shlibs, $1)=no 6635 fi 6636 ;; 6637 esac 6638 ;; 6639 6640 sunos4*) 6641 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6642 wlarc= 6643 _LT_TAGVAR(hardcode_direct, $1)=yes 6644 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6645 ;; 6646 6647 *) 6648 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6649 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6650 _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' 6651 else 6652 _LT_TAGVAR(ld_shlibs, $1)=no 6653 fi 6654 ;; 6655 esac 6656 6657 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then 6658 runpath_var= 6659 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 6660 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 6661 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6662 fi 6663 else 6664 # PORTME fill in a description of your system's linker (not GNU ld) 6665 case $host_os in 6666 aix3*) 6667 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6668 _LT_TAGVAR(always_export_symbols, $1)=yes 6669 _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' 6670 # Note: this linker hardcodes the directories in LIBPATH if there 6671 # are no directories specified by -L. 6672 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6673 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 6674 # Neither direct hardcoding nor static linking is supported with a 6675 # broken collect2. 6676 _LT_TAGVAR(hardcode_direct, $1)=unsupported 6677 fi 6678 ;; 6679 6680 aix[[4-9]]*) 6681 if test "$host_cpu" = ia64; then 6682 # On IA64, the linker does run time linking by default, so we don't 6683 # have to do anything special. 6684 aix_use_runtimelinking=no 6685 exp_sym_flag='-Bexport' 6686 no_entry_flag="" 6687 else 6688 # If we're using GNU nm, then we don't want the "-C" option. 6689 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6690 # Also, AIX nm treats weak defined symbols like other global 6691 # defined symbols, whereas GNU nm marks them as "W". 6692 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 6693 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 6694 else 6695 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 6696 fi 6697 aix_use_runtimelinking=no 6698 6699 # Test if we are trying to use run time linking or normal 6700 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6701 # need to do runtime linking. 6702 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 6703 for ld_flag in $LDFLAGS; do 6704 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6705 aix_use_runtimelinking=yes 6706 break 6707 fi 6708 done 6709 ;; 6710 esac 6711 6712 exp_sym_flag='-bexport' 6713 no_entry_flag='-bnoentry' 6714 fi 6715 6716 # When large executables or shared objects are built, AIX ld can 6717 # have problems creating the table of contents. If linking a library 6718 # or program results in "error TOC overflow" add -mminimal-toc to 6719 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6720 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6721 6722 _LT_TAGVAR(archive_cmds, $1)='' 6723 _LT_TAGVAR(hardcode_direct, $1)=yes 6724 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6725 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 6726 _LT_TAGVAR(link_all_deplibs, $1)=yes 6727 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 6728 6729 if test "$GCC" = yes; then 6730 case $host_os in aix4.[[012]]|aix4.[[012]].*) 6731 # We only want to do this on AIX 4.2 and lower, the check 6732 # below for broken collect2 doesn't work under 4.3+ 6733 collect2name=`${CC} -print-prog-name=collect2` 6734 if test -f "$collect2name" && 6735 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 6736 then 6737 # We have reworked collect2 6738 : 6739 else 6740 # We have old collect2 6741 _LT_TAGVAR(hardcode_direct, $1)=unsupported 6742 # It fails to find uninstalled libraries when the uninstalled 6743 # path is not listed in the libpath. Setting hardcode_minus_L 6744 # to unsupported forces relinking 6745 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6746 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6747 _LT_TAGVAR(hardcode_libdir_separator, $1)= 6748 fi 6749 ;; 6750 esac 6751 shared_flag='-shared' 6752 if test "$aix_use_runtimelinking" = yes; then 6753 shared_flag="$shared_flag "'${wl}-G' 6754 fi 6755 else 6756 # not using gcc 6757 if test "$host_cpu" = ia64; then 6758 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6759 # chokes on -Wl,-G. The following line is correct: 6760 shared_flag='-G' 6761 else 6762 if test "$aix_use_runtimelinking" = yes; then 6763 shared_flag='${wl}-G' 6764 else 6765 shared_flag='${wl}-bM:SRE' 6766 fi 6767 fi 6768 fi 6769 6770 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 6771 # It seems that -bexpall does not export symbols beginning with 6772 # underscore (_), so it is better to generate a list of symbols to export. 6773 _LT_TAGVAR(always_export_symbols, $1)=yes 6774 if test "$aix_use_runtimelinking" = yes; then 6775 # Warning - without using the other runtime loading flags (-brtl), 6776 # -berok will link without error, but may produce a broken library. 6777 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 6778 # Determine the default libpath from the value encoded in an 6779 # empty executable. 6780 _LT_SYS_MODULE_PATH_AIX([$1]) 6781 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 6782 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 6783 else 6784 if test "$host_cpu" = ia64; then 6785 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 6786 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 6787 _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" 6788 else 6789 # Determine the default libpath from the value encoded in an 6790 # empty executable. 6791 _LT_SYS_MODULE_PATH_AIX([$1]) 6792 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 6793 # Warning - without using the other run time loading flags, 6794 # -berok will link without error, but may produce a broken library. 6795 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 6796 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 6797 if test "$with_gnu_ld" = yes; then 6798 # We only use this code for GNU lds that support --whole-archive. 6799 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 6800 else 6801 # Exported symbols can be pulled into shared objects from archives 6802 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 6803 fi 6804 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6805 # This is similar to how AIX traditionally builds its shared libraries. 6806 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 6807 fi 6808 fi 6809 ;; 6810 6811 amigaos*) 6812 case $host_cpu in 6813 powerpc) 6814 # see comment about AmigaOS4 .so support 6815 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6816 _LT_TAGVAR(archive_expsym_cmds, $1)='' 6817 ;; 6818 m68k) 6819 _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)' 6820 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6821 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6822 ;; 6823 esac 6824 ;; 6825 6826 bsdi[[45]]*) 6827 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 6828 ;; 6829 6830 cygwin* | mingw* | pw32* | cegcc*) 6831 # When not using gcc, we currently assume that we are using 6832 # Microsoft Visual C++. 6833 # hardcode_libdir_flag_spec is actually meaningless, as there is 6834 # no search path for DLLs. 6835 case $cc_basename in 6836 cl*) 6837 # Native MSVC 6838 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 6839 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6840 _LT_TAGVAR(always_export_symbols, $1)=yes 6841 _LT_TAGVAR(file_list_spec, $1)='@' 6842 # Tell ltmain to make .lib files, not .a files. 6843 libext=lib 6844 # Tell ltmain to make .dll files, not .so files. 6845 shrext_cmds=".dll" 6846 # FIXME: Setting linknames here is a bad hack. 6847 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 6848 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6849 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 6850 else 6851 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 6852 fi~ 6853 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 6854 linknames=' 6855 # The linker will not automatically build a static lib if we build a DLL. 6856 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 6857 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6858 _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' 6859 # Don't use ranlib 6860 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 6861 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 6862 lt_tool_outputfile="@TOOL_OUTPUT@"~ 6863 case $lt_outputfile in 6864 *.exe|*.EXE) ;; 6865 *) 6866 lt_outputfile="$lt_outputfile.exe" 6867 lt_tool_outputfile="$lt_tool_outputfile.exe" 6868 ;; 6869 esac~ 6870 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 6871 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 6872 $RM "$lt_outputfile.manifest"; 6873 fi' 6874 ;; 6875 *) 6876 # Assume MSVC wrapper 6877 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 6878 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6879 # Tell ltmain to make .lib files, not .a files. 6880 libext=lib 6881 # Tell ltmain to make .dll files, not .so files. 6882 shrext_cmds=".dll" 6883 # FIXME: Setting linknames here is a bad hack. 6884 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 6885 # The linker will automatically build a .lib file if we build a DLL. 6886 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 6887 # FIXME: Should let the user specify the lib program. 6888 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 6889 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6890 ;; 6891 esac 6892 ;; 6893 6894 darwin* | rhapsody*) 6895 _LT_DARWIN_LINKER_FEATURES($1) 6896 ;; 6897 6898 dgux*) 6899 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6900 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6901 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6902 ;; 6903 6904 freebsd1*) 6905 _LT_TAGVAR(ld_shlibs, $1)=no 6906 ;; 6907 6908 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 6909 # support. Future versions do this automatically, but an explicit c++rt0.o 6910 # does not break anything, and helps significantly (at the cost of a little 6911 # extra space). 6912 freebsd2.2*) 6913 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 6914 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6915 _LT_TAGVAR(hardcode_direct, $1)=yes 6916 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6917 ;; 6918 6919 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 6920 freebsd2*) 6921 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6922 _LT_TAGVAR(hardcode_direct, $1)=yes 6923 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6924 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6925 ;; 6926 6927 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 6928 freebsd* | dragonfly*) 6929 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6930 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6931 _LT_TAGVAR(hardcode_direct, $1)=yes 6932 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6933 ;; 6934 6935 hpux9*) 6936 if test "$GCC" = yes; then 6937 _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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 6938 else 6939 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 6940 fi 6941 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6942 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6943 _LT_TAGVAR(hardcode_direct, $1)=yes 6944 6945 # hardcode_minus_L: Not really in the search PATH, 6946 # but as the default location of the library. 6947 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6948 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6949 ;; 6950 6951 hpux10*) 6952 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 6953 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6954 else 6955 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 6956 fi 6957 if test "$with_gnu_ld" = no; then 6958 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6959 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 6960 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6961 _LT_TAGVAR(hardcode_direct, $1)=yes 6962 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6963 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6964 # hardcode_minus_L: Not really in the search PATH, 6965 # but as the default location of the library. 6966 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6967 fi 6968 ;; 6969 6970 hpux11*) 6971 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 6972 case $host_cpu in 6973 hppa*64*) 6974 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6975 ;; 6976 ia64*) 6977 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 6978 ;; 6979 *) 6980 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6981 ;; 6982 esac 6983 else 6984 case $host_cpu in 6985 hppa*64*) 6986 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6987 ;; 6988 ia64*) 6989 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 6990 ;; 6991 *) 6992 m4_if($1, [], [ 6993 # Older versions of the 11.00 compiler do not understand -b yet 6994 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 6995 _LT_LINKER_OPTION([if $CC understands -b], 6996 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], 6997 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], 6998 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], 6999 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) 7000 ;; 7001 esac 7002 fi 7003 if test "$with_gnu_ld" = no; then 7004 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 7005 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7006 7007 case $host_cpu in 7008 hppa*64*|ia64*) 7009 _LT_TAGVAR(hardcode_direct, $1)=no 7010 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7011 ;; 7012 *) 7013 _LT_TAGVAR(hardcode_direct, $1)=yes 7014 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7015 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7016 7017 # hardcode_minus_L: Not really in the search PATH, 7018 # but as the default location of the library. 7019 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7020 ;; 7021 esac 7022 fi 7023 ;; 7024 7025 irix5* | irix6* | nonstopux*) 7026 if test "$GCC" = yes; then 7027 _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' 7028 # Try to use the -exported_symbol ld option, if it does not 7029 # work, assume that -exports_file does not work either and 7030 # implicitly export all symbols. 7031 # This should be the same for all languages, so no per-tag cache variable. 7032 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], 7033 [lt_cv_irix_exported_symbol], 7034 [save_LDFLAGS="$LDFLAGS" 7035 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 7036 AC_LINK_IFELSE( 7037 [AC_LANG_SOURCE( 7038 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], 7039 [C++], [[int foo (void) { return 0; }]], 7040 [Fortran 77], [[ 7041 subroutine foo 7042 end]], 7043 [Fortran], [[ 7044 subroutine foo 7045 end]])])], 7046 [lt_cv_irix_exported_symbol=yes], 7047 [lt_cv_irix_exported_symbol=no]) 7048 LDFLAGS="$save_LDFLAGS"]) 7049 if test "$lt_cv_irix_exported_symbol" = yes; then 7050 _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' 7051 fi 7052 else 7053 _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' 7054 _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' 7055 fi 7056 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 7057 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7058 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7059 _LT_TAGVAR(inherit_rpath, $1)=yes 7060 _LT_TAGVAR(link_all_deplibs, $1)=yes 7061 ;; 7062 7063 netbsd*) 7064 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7065 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7066 else 7067 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7068 fi 7069 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7070 _LT_TAGVAR(hardcode_direct, $1)=yes 7071 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7072 ;; 7073 7074 newsos6) 7075 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7076 _LT_TAGVAR(hardcode_direct, $1)=yes 7077 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7078 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7079 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7080 ;; 7081 7082 *nto* | *qnx*) 7083 ;; 7084 7085 openbsd*) 7086 if test -f /usr/libexec/ld.so; then 7087 _LT_TAGVAR(hardcode_direct, $1)=yes 7088 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7089 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7090 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7091 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7092 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7093 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 7094 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7095 else 7096 case $host_os in 7097 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 7098 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7099 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7100 ;; 7101 *) 7102 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7103 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 7104 ;; 7105 esac 7106 fi 7107 else 7108 _LT_TAGVAR(ld_shlibs, $1)=no 7109 fi 7110 ;; 7111 7112 os2*) 7113 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7114 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7115 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7116 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 7117 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7118 ;; 7119 7120 osf3*) 7121 if test "$GCC" = yes; then 7122 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 7123 _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' 7124 else 7125 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 7126 _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' 7127 fi 7128 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 7129 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7130 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7131 ;; 7132 7133 osf4* | osf5*) # as osf3* with the addition of -msym flag 7134 if test "$GCC" = yes; then 7135 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 7136 _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' 7137 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7138 else 7139 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 7140 _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' 7141 _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~ 7142 $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' 7143 7144 # Both c and cxx compiler support -rpath directly 7145 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 7146 fi 7147 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 7148 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7149 ;; 7150 7151 solaris*) 7152 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' 7153 if test "$GCC" = yes; then 7154 wlarc='${wl}' 7155 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7156 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7157 $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' 7158 else 7159 case `$CC -V 2>&1` in 7160 *"Compilers 5.0"*) 7161 wlarc='' 7162 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7163 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7164 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 7165 ;; 7166 *) 7167 wlarc='${wl}' 7168 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 7169 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7170 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 7171 ;; 7172 esac 7173 fi 7174 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7175 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7176 case $host_os in 7177 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 7178 *) 7179 # The compiler driver will combine and reorder linker options, 7180 # but understands `-z linker_flag'. GCC discards it without `$wl', 7181 # but is careful enough not to reorder. 7182 # Supported since Solaris 2.6 (maybe 2.5.1?) 7183 if test "$GCC" = yes; then 7184 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 7185 else 7186 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 7187 fi 7188 ;; 7189 esac 7190 _LT_TAGVAR(link_all_deplibs, $1)=yes 7191 ;; 7192 7193 sunos4*) 7194 if test "x$host_vendor" = xsequent; then 7195 # Use $CC to link under sequent, because it throws in some extra .o 7196 # files that make .init and .fini sections work. 7197 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7198 else 7199 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7200 fi 7201 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7202 _LT_TAGVAR(hardcode_direct, $1)=yes 7203 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7204 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7205 ;; 7206 7207 sysv4) 7208 case $host_vendor in 7209 sni) 7210 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7211 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 7212 ;; 7213 siemens) 7214 ## LD is ld it makes a PLAMLIB 7215 ## CC just makes a GrossModule. 7216 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7217 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 7218 _LT_TAGVAR(hardcode_direct, $1)=no 7219 ;; 7220 motorola) 7221 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7222 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 7223 ;; 7224 esac 7225 runpath_var='LD_RUN_PATH' 7226 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7227 ;; 7228 7229 sysv4.3*) 7230 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7231 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7232 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 7233 ;; 7234 7235 sysv4*MP*) 7236 if test -d /usr/nec; then 7237 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7238 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7239 runpath_var=LD_RUN_PATH 7240 hardcode_runpath_var=yes 7241 _LT_TAGVAR(ld_shlibs, $1)=yes 7242 fi 7243 ;; 7244 7245 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 7246 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 7247 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7248 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7249 runpath_var='LD_RUN_PATH' 7250 7251 if test "$GCC" = yes; then 7252 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7253 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7254 else 7255 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7256 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7257 fi 7258 ;; 7259 7260 sysv5* | sco3.2v5* | sco5v6*) 7261 # Note: We can NOT use -z defs as we might desire, because we do not 7262 # link with -lc, and that would cause any symbols used from libc to 7263 # always be unresolved, which means just about no library would 7264 # ever link correctly. If we're not using GNU ld we use -z text 7265 # though, which does catch some bad symbols but isn't as heavy-handed 7266 # as -z defs. 7267 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 7268 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 7269 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7270 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7271 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 7272 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 7273 _LT_TAGVAR(link_all_deplibs, $1)=yes 7274 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 7275 runpath_var='LD_RUN_PATH' 7276 7277 if test "$GCC" = yes; then 7278 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7279 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7280 else 7281 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7282 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7283 fi 7284 ;; 7285 7286 uts4*) 7287 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7288 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7289 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7290 ;; 7291 7292 *) 7293 _LT_TAGVAR(ld_shlibs, $1)=no 7294 ;; 7295 esac 7296 7297 if test x$host_vendor = xsni; then 7298 case $host in 7299 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 7300 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' 7301 ;; 7302 esac 7303 fi 7304 fi 7305]) 7306AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 7307test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 7308 7309_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld 7310 7311_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl 7312_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl 7313_LT_DECL([], [extract_expsyms_cmds], [2], 7314 [The commands to extract the exported symbol list from a shared archive]) 7315 7316# 7317# Do we need to explicitly link libc? 7318# 7319case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in 7320x|xyes) 7321 # Assume -lc should be added 7322 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 7323 7324 if test "$enable_shared" = yes && test "$GCC" = yes; then 7325 case $_LT_TAGVAR(archive_cmds, $1) in 7326 *'~'*) 7327 # FIXME: we may have to deal with multi-command sequences. 7328 ;; 7329 '$CC '*) 7330 # Test whether the compiler implicitly links with -lc since on some 7331 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7332 # to ld, don't add -lc before -lgcc. 7333 AC_CACHE_CHECK([whether -lc should be explicitly linked in], 7334 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), 7335 [$RM conftest* 7336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7337 7338 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 7339 soname=conftest 7340 lib=conftest 7341 libobjs=conftest.$ac_objext 7342 deplibs= 7343 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) 7344 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) 7345 compiler_flags=-v 7346 linker_flags=-v 7347 verstring= 7348 output_objdir=. 7349 libname=conftest 7350 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) 7351 _LT_TAGVAR(allow_undefined_flag, $1)= 7352 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 7353 then 7354 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7355 else 7356 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes 7357 fi 7358 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 7359 else 7360 cat conftest.err 1>&5 7361 fi 7362 $RM conftest* 7363 ]) 7364 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) 7365 ;; 7366 esac 7367 fi 7368 ;; 7369esac 7370 7371_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], 7372 [Whether or not to add -lc for building shared libraries]) 7373_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], 7374 [enable_shared_with_static_runtimes], [0], 7375 [Whether or not to disallow shared libs when runtime libs are static]) 7376_LT_TAGDECL([], [export_dynamic_flag_spec], [1], 7377 [Compiler flag to allow reflexive dlopens]) 7378_LT_TAGDECL([], [whole_archive_flag_spec], [1], 7379 [Compiler flag to generate shared objects directly from archives]) 7380_LT_TAGDECL([], [compiler_needs_object], [1], 7381 [Whether the compiler copes with passing no objects directly]) 7382_LT_TAGDECL([], [old_archive_from_new_cmds], [2], 7383 [Create an old-style archive from a shared archive]) 7384_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], 7385 [Create a temporary old-style archive to link instead of a shared archive]) 7386_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) 7387_LT_TAGDECL([], [archive_expsym_cmds], [2]) 7388_LT_TAGDECL([], [module_cmds], [2], 7389 [Commands used to build a loadable module if different from building 7390 a shared archive.]) 7391_LT_TAGDECL([], [module_expsym_cmds], [2]) 7392_LT_TAGDECL([], [with_gnu_ld], [1], 7393 [Whether we are building with GNU ld or not]) 7394_LT_TAGDECL([], [allow_undefined_flag], [1], 7395 [Flag that allows shared libraries with undefined symbols to be built]) 7396_LT_TAGDECL([], [no_undefined_flag], [1], 7397 [Flag that enforces no undefined symbols]) 7398_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], 7399 [Flag to hardcode $libdir into a binary during linking. 7400 This must work even if $libdir does not exist]) 7401_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], 7402 [[If ld is used when linking, flag to hardcode $libdir into a binary 7403 during linking. This must work even if $libdir does not exist]]) 7404_LT_TAGDECL([], [hardcode_libdir_separator], [1], 7405 [Whether we need a single "-rpath" flag with a separated argument]) 7406_LT_TAGDECL([], [hardcode_direct], [0], 7407 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 7408 DIR into the resulting binary]) 7409_LT_TAGDECL([], [hardcode_direct_absolute], [0], 7410 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 7411 DIR into the resulting binary and the resulting library dependency is 7412 "absolute", i.e impossible to change by setting ${shlibpath_var} if the 7413 library is relocated]) 7414_LT_TAGDECL([], [hardcode_minus_L], [0], 7415 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR 7416 into the resulting binary]) 7417_LT_TAGDECL([], [hardcode_shlibpath_var], [0], 7418 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 7419 into the resulting binary]) 7420_LT_TAGDECL([], [hardcode_automatic], [0], 7421 [Set to "yes" if building a shared library automatically hardcodes DIR 7422 into the library and all subsequent libraries and executables linked 7423 against it]) 7424_LT_TAGDECL([], [inherit_rpath], [0], 7425 [Set to yes if linker adds runtime paths of dependent libraries 7426 to runtime path list]) 7427_LT_TAGDECL([], [link_all_deplibs], [0], 7428 [Whether libtool must link a program against all its dependency libraries]) 7429_LT_TAGDECL([], [always_export_symbols], [0], 7430 [Set to "yes" if exported symbols are required]) 7431_LT_TAGDECL([], [export_symbols_cmds], [2], 7432 [The commands to list exported symbols]) 7433_LT_TAGDECL([], [exclude_expsyms], [1], 7434 [Symbols that should not be listed in the preloaded symbols]) 7435_LT_TAGDECL([], [include_expsyms], [1], 7436 [Symbols that must always be exported]) 7437_LT_TAGDECL([], [prelink_cmds], [2], 7438 [Commands necessary for linking programs (against libraries) with templates]) 7439_LT_TAGDECL([], [postlink_cmds], [2], 7440 [Commands necessary for finishing linking programs]) 7441_LT_TAGDECL([], [file_list_spec], [1], 7442 [Specify filename containing input files]) 7443dnl FIXME: Not yet implemented 7444dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], 7445dnl [Compiler flag to generate thread safe objects]) 7446])# _LT_LINKER_SHLIBS 7447 7448 7449# _LT_LANG_C_CONFIG([TAG]) 7450# ------------------------ 7451# Ensure that the configuration variables for a C compiler are suitably 7452# defined. These variables are subsequently used by _LT_CONFIG to write 7453# the compiler configuration to `libtool'. 7454m4_defun([_LT_LANG_C_CONFIG], 7455[m4_require([_LT_DECL_EGREP])dnl 7456lt_save_CC="$CC" 7457AC_LANG_PUSH(C) 7458 7459# Source file extension for C test sources. 7460ac_ext=c 7461 7462# Object file extension for compiled C test sources. 7463objext=o 7464_LT_TAGVAR(objext, $1)=$objext 7465 7466# Code to be used in simple compile tests 7467lt_simple_compile_test_code="int some_variable = 0;" 7468 7469# Code to be used in simple link tests 7470lt_simple_link_test_code='int main(){return(0);}' 7471 7472_LT_TAG_COMPILER 7473# Save the default compiler, since it gets overwritten when the other 7474# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7475compiler_DEFAULT=$CC 7476 7477# save warnings/boilerplate of simple test code 7478_LT_COMPILER_BOILERPLATE 7479_LT_LINKER_BOILERPLATE 7480 7481if test -n "$compiler"; then 7482 _LT_COMPILER_NO_RTTI($1) 7483 _LT_COMPILER_PIC($1) 7484 _LT_COMPILER_C_O($1) 7485 _LT_COMPILER_FILE_LOCKS($1) 7486 _LT_LINKER_SHLIBS($1) 7487 _LT_SYS_DYNAMIC_LINKER($1) 7488 _LT_LINKER_HARDCODE_LIBPATH($1) 7489 LT_SYS_DLOPEN_SELF 7490 _LT_CMD_STRIPLIB 7491 7492 # Report which library types will actually be built 7493 AC_MSG_CHECKING([if libtool supports shared libraries]) 7494 AC_MSG_RESULT([$can_build_shared]) 7495 7496 AC_MSG_CHECKING([whether to build shared libraries]) 7497 test "$can_build_shared" = "no" && enable_shared=no 7498 7499 # On AIX, shared libraries and static libraries use the same namespace, and 7500 # are all built from PIC. 7501 case $host_os in 7502 aix3*) 7503 test "$enable_shared" = yes && enable_static=no 7504 if test -n "$RANLIB"; then 7505 archive_cmds="$archive_cmds~\$RANLIB \$lib" 7506 postinstall_cmds='$RANLIB $lib' 7507 fi 7508 ;; 7509 7510 aix[[4-9]]*) 7511 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 7512 test "$enable_shared" = yes && enable_static=no 7513 fi 7514 ;; 7515 esac 7516 AC_MSG_RESULT([$enable_shared]) 7517 7518 AC_MSG_CHECKING([whether to build static libraries]) 7519 # Make sure either enable_shared or enable_static is yes. 7520 test "$enable_shared" = yes || enable_static=yes 7521 AC_MSG_RESULT([$enable_static]) 7522 7523 _LT_CONFIG($1) 7524fi 7525AC_LANG_POP 7526CC="$lt_save_CC" 7527])# _LT_LANG_C_CONFIG 7528 7529 7530# _LT_LANG_CXX_CONFIG([TAG]) 7531# -------------------------- 7532# Ensure that the configuration variables for a C++ compiler are suitably 7533# defined. These variables are subsequently used by _LT_CONFIG to write 7534# the compiler configuration to `libtool'. 7535m4_defun([_LT_LANG_CXX_CONFIG], 7536[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 7537m4_require([_LT_DECL_EGREP])dnl 7538m4_require([_LT_PATH_MANIFEST_TOOL])dnl 7539if test -n "$CXX" && ( test "X$CXX" != "Xno" && 7540 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 7541 (test "X$CXX" != "Xg++"))) ; then 7542 AC_PROG_CXXCPP 7543else 7544 _lt_caught_CXX_error=yes 7545fi 7546 7547AC_LANG_PUSH(C++) 7548_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7549_LT_TAGVAR(allow_undefined_flag, $1)= 7550_LT_TAGVAR(always_export_symbols, $1)=no 7551_LT_TAGVAR(archive_expsym_cmds, $1)= 7552_LT_TAGVAR(compiler_needs_object, $1)=no 7553_LT_TAGVAR(export_dynamic_flag_spec, $1)= 7554_LT_TAGVAR(hardcode_direct, $1)=no 7555_LT_TAGVAR(hardcode_direct_absolute, $1)=no 7556_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 7557_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 7558_LT_TAGVAR(hardcode_libdir_separator, $1)= 7559_LT_TAGVAR(hardcode_minus_L, $1)=no 7560_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 7561_LT_TAGVAR(hardcode_automatic, $1)=no 7562_LT_TAGVAR(inherit_rpath, $1)=no 7563_LT_TAGVAR(module_cmds, $1)= 7564_LT_TAGVAR(module_expsym_cmds, $1)= 7565_LT_TAGVAR(link_all_deplibs, $1)=unknown 7566_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7567_LT_TAGVAR(reload_flag, $1)=$reload_flag 7568_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 7569_LT_TAGVAR(no_undefined_flag, $1)= 7570_LT_TAGVAR(whole_archive_flag_spec, $1)= 7571_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 7572 7573# Source file extension for C++ test sources. 7574ac_ext=cpp 7575 7576# Object file extension for compiled C++ test sources. 7577objext=o 7578_LT_TAGVAR(objext, $1)=$objext 7579 7580# No sense in running all these tests if we already determined that 7581# the CXX compiler isn't working. Some variables (like enable_shared) 7582# are currently assumed to apply to all compilers on this platform, 7583# and will be corrupted by setting them based on a non-working compiler. 7584if test "$_lt_caught_CXX_error" != yes; then 7585 # Code to be used in simple compile tests 7586 lt_simple_compile_test_code="int some_variable = 0;" 7587 7588 # Code to be used in simple link tests 7589 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 7590 7591 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 7592 _LT_TAG_COMPILER 7593 7594 # save warnings/boilerplate of simple test code 7595 _LT_COMPILER_BOILERPLATE 7596 _LT_LINKER_BOILERPLATE 7597 7598 # Allow CC to be a program name with arguments. 7599 lt_save_CC=$CC 7600 lt_save_CFLAGS=$CFLAGS 7601 lt_save_LD=$LD 7602 lt_save_GCC=$GCC 7603 GCC=$GXX 7604 lt_save_with_gnu_ld=$with_gnu_ld 7605 lt_save_path_LD=$lt_cv_path_LD 7606 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 7607 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 7608 else 7609 $as_unset lt_cv_prog_gnu_ld 7610 fi 7611 if test -n "${lt_cv_path_LDCXX+set}"; then 7612 lt_cv_path_LD=$lt_cv_path_LDCXX 7613 else 7614 $as_unset lt_cv_path_LD 7615 fi 7616 test -z "${LDCXX+set}" || LD=$LDCXX 7617 CC=${CXX-"c++"} 7618 CFLAGS=$CXXFLAGS 7619 compiler=$CC 7620 _LT_TAGVAR(compiler, $1)=$CC 7621 _LT_CC_BASENAME([$compiler]) 7622 7623 if test -n "$compiler"; then 7624 # We don't want -fno-exception when compiling C++ code, so set the 7625 # no_builtin_flag separately 7626 if test "$GXX" = yes; then 7627 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 7628 else 7629 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 7630 fi 7631 7632 if test "$GXX" = yes; then 7633 # Set up default GNU C++ configuration 7634 7635 LT_PATH_LD 7636 7637 # Check if GNU C++ uses GNU ld as the underlying linker, since the 7638 # archiving commands below assume that GNU ld is being used. 7639 if test "$with_gnu_ld" = yes; then 7640 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 7641 _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' 7642 7643 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7644 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 7645 7646 # If archive_cmds runs LD, not CC, wlarc should be empty 7647 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 7648 # investigate it a little bit more. (MM) 7649 wlarc='${wl}' 7650 7651 # ancient GNU ld didn't support --whole-archive et. al. 7652 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 7653 $GREP 'no-whole-archive' > /dev/null; then 7654 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7655 else 7656 _LT_TAGVAR(whole_archive_flag_spec, $1)= 7657 fi 7658 else 7659 with_gnu_ld=no 7660 wlarc= 7661 7662 # A generic and very simple default shared library creation 7663 # command for GNU C++ for the case where it uses the native 7664 # linker, instead of GNU ld. If possible, this setting should 7665 # overridden to take advantage of the native linker features on 7666 # the platform it is being used on. 7667 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 7668 fi 7669 7670 # Commands to make compiler produce verbose output that lists 7671 # what "hidden" libraries, object files and flags are used when 7672 # linking a shared library. 7673 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 7674 7675 else 7676 GXX=no 7677 with_gnu_ld=no 7678 wlarc= 7679 fi 7680 7681 # PORTME: fill in a description of your system's C++ link characteristics 7682 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 7683 _LT_TAGVAR(ld_shlibs, $1)=yes 7684 case $host_os in 7685 aix3*) 7686 # FIXME: insert proper C++ library support 7687 _LT_TAGVAR(ld_shlibs, $1)=no 7688 ;; 7689 aix[[4-9]]*) 7690 if test "$host_cpu" = ia64; then 7691 # On IA64, the linker does run time linking by default, so we don't 7692 # have to do anything special. 7693 aix_use_runtimelinking=no 7694 exp_sym_flag='-Bexport' 7695 no_entry_flag="" 7696 else 7697 aix_use_runtimelinking=no 7698 7699 # Test if we are trying to use run time linking or normal 7700 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7701 # need to do runtime linking. 7702 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 7703 for ld_flag in $LDFLAGS; do 7704 case $ld_flag in 7705 *-brtl*) 7706 aix_use_runtimelinking=yes 7707 break 7708 ;; 7709 esac 7710 done 7711 ;; 7712 esac 7713 7714 exp_sym_flag='-bexport' 7715 no_entry_flag='-bnoentry' 7716 fi 7717 7718 # When large executables or shared objects are built, AIX ld can 7719 # have problems creating the table of contents. If linking a library 7720 # or program results in "error TOC overflow" add -mminimal-toc to 7721 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7722 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7723 7724 _LT_TAGVAR(archive_cmds, $1)='' 7725 _LT_TAGVAR(hardcode_direct, $1)=yes 7726 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7727 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 7728 _LT_TAGVAR(link_all_deplibs, $1)=yes 7729 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 7730 7731 if test "$GXX" = yes; then 7732 case $host_os in aix4.[[012]]|aix4.[[012]].*) 7733 # We only want to do this on AIX 4.2 and lower, the check 7734 # below for broken collect2 doesn't work under 4.3+ 7735 collect2name=`${CC} -print-prog-name=collect2` 7736 if test -f "$collect2name" && 7737 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 7738 then 7739 # We have reworked collect2 7740 : 7741 else 7742 # We have old collect2 7743 _LT_TAGVAR(hardcode_direct, $1)=unsupported 7744 # It fails to find uninstalled libraries when the uninstalled 7745 # path is not listed in the libpath. Setting hardcode_minus_L 7746 # to unsupported forces relinking 7747 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7748 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7749 _LT_TAGVAR(hardcode_libdir_separator, $1)= 7750 fi 7751 esac 7752 shared_flag='-shared' 7753 if test "$aix_use_runtimelinking" = yes; then 7754 shared_flag="$shared_flag "'${wl}-G' 7755 fi 7756 else 7757 # not using gcc 7758 if test "$host_cpu" = ia64; then 7759 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7760 # chokes on -Wl,-G. The following line is correct: 7761 shared_flag='-G' 7762 else 7763 if test "$aix_use_runtimelinking" = yes; then 7764 shared_flag='${wl}-G' 7765 else 7766 shared_flag='${wl}-bM:SRE' 7767 fi 7768 fi 7769 fi 7770 7771 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 7772 # It seems that -bexpall does not export symbols beginning with 7773 # underscore (_), so it is better to generate a list of symbols to 7774 # export. 7775 _LT_TAGVAR(always_export_symbols, $1)=yes 7776 if test "$aix_use_runtimelinking" = yes; then 7777 # Warning - without using the other runtime loading flags (-brtl), 7778 # -berok will link without error, but may produce a broken library. 7779 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 7780 # Determine the default libpath from the value encoded in an empty 7781 # executable. 7782 _LT_SYS_MODULE_PATH_AIX([$1]) 7783 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 7784 7785 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 7786 else 7787 if test "$host_cpu" = ia64; then 7788 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 7789 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 7790 _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" 7791 else 7792 # Determine the default libpath from the value encoded in an 7793 # empty executable. 7794 _LT_SYS_MODULE_PATH_AIX([$1]) 7795 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 7796 # Warning - without using the other run time loading flags, 7797 # -berok will link without error, but may produce a broken library. 7798 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 7799 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 7800 if test "$with_gnu_ld" = yes; then 7801 # We only use this code for GNU lds that support --whole-archive. 7802 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 7803 else 7804 # Exported symbols can be pulled into shared objects from archives 7805 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 7806 fi 7807 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 7808 # This is similar to how AIX traditionally builds its shared 7809 # libraries. 7810 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 7811 fi 7812 fi 7813 ;; 7814 7815 beos*) 7816 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7817 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7818 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7819 # support --undefined. This deserves some investigation. FIXME 7820 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7821 else 7822 _LT_TAGVAR(ld_shlibs, $1)=no 7823 fi 7824 ;; 7825 7826 chorus*) 7827 case $cc_basename in 7828 *) 7829 # FIXME: insert proper C++ library support 7830 _LT_TAGVAR(ld_shlibs, $1)=no 7831 ;; 7832 esac 7833 ;; 7834 7835 cygwin* | mingw* | pw32* | cegcc*) 7836 case $GXX,$cc_basename in 7837 ,cl* | no,cl*) 7838 # Native MSVC 7839 # hardcode_libdir_flag_spec is actually meaningless, as there is 7840 # no search path for DLLs. 7841 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 7842 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7843 _LT_TAGVAR(always_export_symbols, $1)=yes 7844 _LT_TAGVAR(file_list_spec, $1)='@' 7845 # Tell ltmain to make .lib files, not .a files. 7846 libext=lib 7847 # Tell ltmain to make .dll files, not .so files. 7848 shrext_cmds=".dll" 7849 # FIXME: Setting linknames here is a bad hack. 7850 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 7851 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7852 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 7853 else 7854 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 7855 fi~ 7856 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 7857 linknames=' 7858 # The linker will not automatically build a static lib if we build a DLL. 7859 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 7860 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 7861 # Don't use ranlib 7862 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 7863 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 7864 lt_tool_outputfile="@TOOL_OUTPUT@"~ 7865 case $lt_outputfile in 7866 *.exe|*.EXE) ;; 7867 *) 7868 lt_outputfile="$lt_outputfile.exe" 7869 lt_tool_outputfile="$lt_tool_outputfile.exe" 7870 ;; 7871 esac~ 7872 func_to_tool_file "$lt_outputfile"~ 7873 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 7874 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 7875 $RM "$lt_outputfile.manifest"; 7876 fi' 7877 ;; 7878 *) 7879 # g++ 7880 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 7881 # as there is no search path for DLLs. 7882 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7883 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' 7884 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7885 _LT_TAGVAR(always_export_symbols, $1)=no 7886 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 7887 7888 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 7889 _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' 7890 # If the export-symbols file already is a .def file (1st line 7891 # is EXPORTS), use it as is; otherwise, prepend... 7892 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7893 cp $export_symbols $output_objdir/$soname.def; 7894 else 7895 echo EXPORTS > $output_objdir/$soname.def; 7896 cat $export_symbols >> $output_objdir/$soname.def; 7897 fi~ 7898 $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' 7899 else 7900 _LT_TAGVAR(ld_shlibs, $1)=no 7901 fi 7902 ;; 7903 esac 7904 ;; 7905 darwin* | rhapsody*) 7906 _LT_DARWIN_LINKER_FEATURES($1) 7907 ;; 7908 7909 dgux*) 7910 case $cc_basename in 7911 ec++*) 7912 # FIXME: insert proper C++ library support 7913 _LT_TAGVAR(ld_shlibs, $1)=no 7914 ;; 7915 ghcx*) 7916 # Green Hills C++ Compiler 7917 # FIXME: insert proper C++ library support 7918 _LT_TAGVAR(ld_shlibs, $1)=no 7919 ;; 7920 *) 7921 # FIXME: insert proper C++ library support 7922 _LT_TAGVAR(ld_shlibs, $1)=no 7923 ;; 7924 esac 7925 ;; 7926 7927 freebsd[[12]]*) 7928 # C++ shared libraries reported to be fairly broken before 7929 # switch to ELF 7930 _LT_TAGVAR(ld_shlibs, $1)=no 7931 ;; 7932 7933 freebsd-elf*) 7934 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7935 ;; 7936 7937 freebsd* | dragonfly*) 7938 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 7939 # conventions 7940 _LT_TAGVAR(ld_shlibs, $1)=yes 7941 ;; 7942 7943 gnu*) 7944 ;; 7945 7946 haiku*) 7947 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7948 _LT_TAGVAR(link_all_deplibs, $1)=yes 7949 ;; 7950 7951 hpux9*) 7952 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 7953 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7954 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7955 _LT_TAGVAR(hardcode_direct, $1)=yes 7956 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 7957 # but as the default 7958 # location of the library. 7959 7960 case $cc_basename in 7961 CC*) 7962 # FIXME: insert proper C++ library support 7963 _LT_TAGVAR(ld_shlibs, $1)=no 7964 ;; 7965 aCC*) 7966 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 7967 # Commands to make compiler produce verbose output that lists 7968 # what "hidden" libraries, object files and flags are used when 7969 # linking a shared library. 7970 # 7971 # There doesn't appear to be a way to prevent this compiler from 7972 # explicitly linking system object files so we need to strip them 7973 # from the output so that they don't get included in the library 7974 # dependencies. 7975 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"' 7976 ;; 7977 *) 7978 if test "$GXX" = yes; then 7979 _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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 7980 else 7981 # FIXME: insert proper C++ library support 7982 _LT_TAGVAR(ld_shlibs, $1)=no 7983 fi 7984 ;; 7985 esac 7986 ;; 7987 7988 hpux10*|hpux11*) 7989 if test $with_gnu_ld = no; then 7990 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 7991 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7992 7993 case $host_cpu in 7994 hppa*64*|ia64*) 7995 ;; 7996 *) 7997 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7998 ;; 7999 esac 8000 fi 8001 case $host_cpu in 8002 hppa*64*|ia64*) 8003 _LT_TAGVAR(hardcode_direct, $1)=no 8004 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8005 ;; 8006 *) 8007 _LT_TAGVAR(hardcode_direct, $1)=yes 8008 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 8009 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 8010 # but as the default 8011 # location of the library. 8012 ;; 8013 esac 8014 8015 case $cc_basename in 8016 CC*) 8017 # FIXME: insert proper C++ library support 8018 _LT_TAGVAR(ld_shlibs, $1)=no 8019 ;; 8020 aCC*) 8021 case $host_cpu in 8022 hppa*64*) 8023 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8024 ;; 8025 ia64*) 8026 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8027 ;; 8028 *) 8029 _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' 8030 ;; 8031 esac 8032 # Commands to make compiler produce verbose output that lists 8033 # what "hidden" libraries, object files and flags are used when 8034 # linking a shared library. 8035 # 8036 # There doesn't appear to be a way to prevent this compiler from 8037 # explicitly linking system object files so we need to strip them 8038 # from the output so that they don't get included in the library 8039 # dependencies. 8040 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"' 8041 ;; 8042 *) 8043 if test "$GXX" = yes; then 8044 if test $with_gnu_ld = no; then 8045 case $host_cpu in 8046 hppa*64*) 8047 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8048 ;; 8049 ia64*) 8050 _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' 8051 ;; 8052 *) 8053 _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' 8054 ;; 8055 esac 8056 fi 8057 else 8058 # FIXME: insert proper C++ library support 8059 _LT_TAGVAR(ld_shlibs, $1)=no 8060 fi 8061 ;; 8062 esac 8063 ;; 8064 8065 interix[[3-9]]*) 8066 _LT_TAGVAR(hardcode_direct, $1)=no 8067 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8068 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 8069 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 8070 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8071 # Instead, shared libraries are loaded at an image base (0x10000000 by 8072 # default) and relocated if they conflict, which is a slow very memory 8073 # consuming and fragmenting process. To avoid this, we pick a random, 8074 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8075 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8076 _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' 8077 _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' 8078 ;; 8079 irix5* | irix6*) 8080 case $cc_basename in 8081 CC*) 8082 # SGI C++ 8083 _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' 8084 8085 # Archives containing C++ object files must be created using 8086 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 8087 # necessary to make sure instantiated templates are included 8088 # in the archive. 8089 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 8090 ;; 8091 *) 8092 if test "$GXX" = yes; then 8093 if test "$with_gnu_ld" = no; then 8094 _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' 8095 else 8096 _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' 8097 fi 8098 fi 8099 _LT_TAGVAR(link_all_deplibs, $1)=yes 8100 ;; 8101 esac 8102 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 8103 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8104 _LT_TAGVAR(inherit_rpath, $1)=yes 8105 ;; 8106 8107 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8108 case $cc_basename in 8109 KCC*) 8110 # Kuck and Associates, Inc. (KAI) C++ Compiler 8111 8112 # KCC will only create a shared library if the output file 8113 # ends with ".so" (or ".sl" for HP-UX), so rename the library 8114 # to its proper name (with version) after linking. 8115 _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' 8116 _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' 8117 # Commands to make compiler produce verbose output that lists 8118 # what "hidden" libraries, object files and flags are used when 8119 # linking a shared library. 8120 # 8121 # There doesn't appear to be a way to prevent this compiler from 8122 # explicitly linking system object files so we need to strip them 8123 # from the output so that they don't get included in the library 8124 # dependencies. 8125 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"' 8126 8127 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 8128 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 8129 8130 # Archives containing C++ object files must be created using 8131 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 8132 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 8133 ;; 8134 icpc* | ecpc* ) 8135 # Intel C++ 8136 with_gnu_ld=yes 8137 # version 8.0 and above of icpc choke on multiply defined symbols 8138 # if we add $predep_objects and $postdep_objects, however 7.1 and 8139 # earlier do not add the objects themselves. 8140 case `$CC -V 2>&1` in 8141 *"Version 7."*) 8142 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 8143 _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' 8144 ;; 8145 *) # Version 8.0 or newer 8146 tmp_idyn= 8147 case $host_cpu in 8148 ia64*) tmp_idyn=' -i_dynamic';; 8149 esac 8150 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8151 _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' 8152 ;; 8153 esac 8154 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 8155 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 8156 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 8157 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 8158 ;; 8159 pgCC* | pgcpp*) 8160 # Portland Group C++ compiler 8161 case `$CC -V` in 8162 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) 8163 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 8164 rm -rf $tpldir~ 8165 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 8166 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 8167 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 8168 rm -rf $tpldir~ 8169 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 8170 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 8171 $RANLIB $oldlib' 8172 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 8173 rm -rf $tpldir~ 8174 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 8175 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 8176 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 8177 rm -rf $tpldir~ 8178 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 8179 $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' 8180 ;; 8181 *) # Version 6 and above use weak symbols 8182 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 8183 _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' 8184 ;; 8185 esac 8186 8187 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 8188 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 8189 _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' 8190 ;; 8191 cxx*) 8192 # Compaq C++ 8193 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 8194 _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' 8195 8196 runpath_var=LD_RUN_PATH 8197 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 8198 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8199 8200 # Commands to make compiler produce verbose output that lists 8201 # what "hidden" libraries, object files and flags are used when 8202 # linking a shared library. 8203 # 8204 # There doesn't appear to be a way to prevent this compiler from 8205 # explicitly linking system object files so we need to strip them 8206 # from the output so that they don't get included in the library 8207 # dependencies. 8208 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' 8209 ;; 8210 xl* | mpixl* | bgxl*) 8211 # IBM XL 8.0 on PPC, with GNU ld 8212 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 8213 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 8214 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8215 if test "x$supports_anon_versioning" = xyes; then 8216 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 8217 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8218 echo "local: *; };" >> $output_objdir/$libname.ver~ 8219 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8220 fi 8221 ;; 8222 *) 8223 case `$CC -V 2>&1 | sed 5q` in 8224 *Sun\ C*) 8225 # Sun C++ 5.9 8226 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 8227 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8228 _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' 8229 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 8230 _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' 8231 _LT_TAGVAR(compiler_needs_object, $1)=yes 8232 8233 # Not sure whether something based on 8234 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 8235 # would be better. 8236 output_verbose_link_cmd='func_echo_all' 8237 8238 # Archives containing C++ object files must be created using 8239 # "CC -xar", where "CC" is the Sun C++ compiler. This is 8240 # necessary to make sure instantiated templates are included 8241 # in the archive. 8242 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 8243 ;; 8244 esac 8245 ;; 8246 esac 8247 ;; 8248 8249 lynxos*) 8250 # FIXME: insert proper C++ library support 8251 _LT_TAGVAR(ld_shlibs, $1)=no 8252 ;; 8253 8254 m88k*) 8255 # FIXME: insert proper C++ library support 8256 _LT_TAGVAR(ld_shlibs, $1)=no 8257 ;; 8258 8259 mvs*) 8260 case $cc_basename in 8261 cxx*) 8262 # FIXME: insert proper C++ library support 8263 _LT_TAGVAR(ld_shlibs, $1)=no 8264 ;; 8265 *) 8266 # FIXME: insert proper C++ library support 8267 _LT_TAGVAR(ld_shlibs, $1)=no 8268 ;; 8269 esac 8270 ;; 8271 8272 netbsd*) 8273 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8274 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 8275 wlarc= 8276 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 8277 _LT_TAGVAR(hardcode_direct, $1)=yes 8278 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8279 fi 8280 # Workaround some broken pre-1.5 toolchains 8281 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 8282 ;; 8283 8284 *nto* | *qnx*) 8285 _LT_TAGVAR(ld_shlibs, $1)=yes 8286 ;; 8287 8288 openbsd2*) 8289 # C++ shared libraries are fairly broken 8290 _LT_TAGVAR(ld_shlibs, $1)=no 8291 ;; 8292 8293 openbsd*) 8294 if test -f /usr/libexec/ld.so; then 8295 _LT_TAGVAR(hardcode_direct, $1)=yes 8296 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8297 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 8298 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 8299 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 8300 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8301 _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' 8302 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 8303 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8304 fi 8305 output_verbose_link_cmd=func_echo_all 8306 else 8307 _LT_TAGVAR(ld_shlibs, $1)=no 8308 fi 8309 ;; 8310 8311 osf3* | osf4* | osf5*) 8312 case $cc_basename in 8313 KCC*) 8314 # Kuck and Associates, Inc. (KAI) C++ Compiler 8315 8316 # KCC will only create a shared library if the output file 8317 # ends with ".so" (or ".sl" for HP-UX), so rename the library 8318 # to its proper name (with version) after linking. 8319 _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' 8320 8321 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 8322 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8323 8324 # Archives containing C++ object files must be created using 8325 # the KAI C++ compiler. 8326 case $host in 8327 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; 8328 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; 8329 esac 8330 ;; 8331 RCC*) 8332 # Rational C++ 2.4.1 8333 # FIXME: insert proper C++ library support 8334 _LT_TAGVAR(ld_shlibs, $1)=no 8335 ;; 8336 cxx*) 8337 case $host in 8338 osf3*) 8339 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 8340 _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' 8341 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 8342 ;; 8343 *) 8344 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 8345 _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' 8346 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 8347 echo "-hidden">> $lib.exp~ 8348 $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~ 8349 $RM $lib.exp' 8350 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 8351 ;; 8352 esac 8353 8354 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8355 8356 # Commands to make compiler produce verbose output that lists 8357 # what "hidden" libraries, object files and flags are used when 8358 # linking a shared library. 8359 # 8360 # There doesn't appear to be a way to prevent this compiler from 8361 # explicitly linking system object files so we need to strip them 8362 # from the output so that they don't get included in the library 8363 # dependencies. 8364 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"' 8365 ;; 8366 *) 8367 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 8368 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 8369 case $host in 8370 osf3*) 8371 _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' 8372 ;; 8373 *) 8374 _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' 8375 ;; 8376 esac 8377 8378 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 8379 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8380 8381 # Commands to make compiler produce verbose output that lists 8382 # what "hidden" libraries, object files and flags are used when 8383 # linking a shared library. 8384 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 8385 8386 else 8387 # FIXME: insert proper C++ library support 8388 _LT_TAGVAR(ld_shlibs, $1)=no 8389 fi 8390 ;; 8391 esac 8392 ;; 8393 8394 psos*) 8395 # FIXME: insert proper C++ library support 8396 _LT_TAGVAR(ld_shlibs, $1)=no 8397 ;; 8398 8399 sunos4*) 8400 case $cc_basename in 8401 CC*) 8402 # Sun C++ 4.x 8403 # FIXME: insert proper C++ library support 8404 _LT_TAGVAR(ld_shlibs, $1)=no 8405 ;; 8406 lcc*) 8407 # Lucid 8408 # FIXME: insert proper C++ library support 8409 _LT_TAGVAR(ld_shlibs, $1)=no 8410 ;; 8411 *) 8412 # FIXME: insert proper C++ library support 8413 _LT_TAGVAR(ld_shlibs, $1)=no 8414 ;; 8415 esac 8416 ;; 8417 8418 solaris*) 8419 case $cc_basename in 8420 CC* | sunCC*) 8421 # Sun C++ 4.2, 5.x and Centerline C++ 8422 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 8423 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 8424 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8425 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8426 $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' 8427 8428 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 8429 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8430 case $host_os in 8431 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 8432 *) 8433 # The compiler driver will combine and reorder linker options, 8434 # but understands `-z linker_flag'. 8435 # Supported since Solaris 2.6 (maybe 2.5.1?) 8436 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 8437 ;; 8438 esac 8439 _LT_TAGVAR(link_all_deplibs, $1)=yes 8440 8441 output_verbose_link_cmd='func_echo_all' 8442 8443 # Archives containing C++ object files must be created using 8444 # "CC -xar", where "CC" is the Sun C++ compiler. This is 8445 # necessary to make sure instantiated templates are included 8446 # in the archive. 8447 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 8448 ;; 8449 gcx*) 8450 # Green Hills C++ Compiler 8451 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 8452 8453 # The C++ compiler must be used to create the archive. 8454 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 8455 ;; 8456 *) 8457 # GNU C++ compiler with Solaris linker 8458 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 8459 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 8460 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 8461 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 8462 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8463 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 8464 8465 # Commands to make compiler produce verbose output that lists 8466 # what "hidden" libraries, object files and flags are used when 8467 # linking a shared library. 8468 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 8469 else 8470 # g++ 2.7 appears to require `-G' NOT `-shared' on this 8471 # platform. 8472 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 8473 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8474 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 8475 8476 # Commands to make compiler produce verbose output that lists 8477 # what "hidden" libraries, object files and flags are used when 8478 # linking a shared library. 8479 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 8480 fi 8481 8482 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 8483 case $host_os in 8484 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 8485 *) 8486 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8487 ;; 8488 esac 8489 fi 8490 ;; 8491 esac 8492 ;; 8493 8494 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 8495 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 8496 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 8497 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8498 runpath_var='LD_RUN_PATH' 8499 8500 case $cc_basename in 8501 CC*) 8502 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8503 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8504 ;; 8505 *) 8506 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8507 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8508 ;; 8509 esac 8510 ;; 8511 8512 sysv5* | sco3.2v5* | sco5v6*) 8513 # Note: We can NOT use -z defs as we might desire, because we do not 8514 # link with -lc, and that would cause any symbols used from libc to 8515 # always be unresolved, which means just about no library would 8516 # ever link correctly. If we're not using GNU ld we use -z text 8517 # though, which does catch some bad symbols but isn't as heavy-handed 8518 # as -z defs. 8519 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 8520 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 8521 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 8522 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8523 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 8524 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 8525 _LT_TAGVAR(link_all_deplibs, $1)=yes 8526 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 8527 runpath_var='LD_RUN_PATH' 8528 8529 case $cc_basename in 8530 CC*) 8531 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8532 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8533 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ 8534 '"$_LT_TAGVAR(old_archive_cmds, $1)" 8535 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ 8536 '"$_LT_TAGVAR(reload_cmds, $1)" 8537 ;; 8538 *) 8539 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8540 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8541 ;; 8542 esac 8543 ;; 8544 8545 tandem*) 8546 case $cc_basename in 8547 NCC*) 8548 # NonStop-UX NCC 3.20 8549 # FIXME: insert proper C++ library support 8550 _LT_TAGVAR(ld_shlibs, $1)=no 8551 ;; 8552 *) 8553 # FIXME: insert proper C++ library support 8554 _LT_TAGVAR(ld_shlibs, $1)=no 8555 ;; 8556 esac 8557 ;; 8558 8559 vxworks*) 8560 # FIXME: insert proper C++ library support 8561 _LT_TAGVAR(ld_shlibs, $1)=no 8562 ;; 8563 8564 *) 8565 # FIXME: insert proper C++ library support 8566 _LT_TAGVAR(ld_shlibs, $1)=no 8567 ;; 8568 esac 8569 8570 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 8571 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 8572 8573 _LT_TAGVAR(GCC, $1)="$GXX" 8574 _LT_TAGVAR(LD, $1)="$LD" 8575 8576 ## CAVEAT EMPTOR: 8577 ## There is no encapsulation within the following macros, do not change 8578 ## the running order or otherwise move them around unless you know exactly 8579 ## what you are doing... 8580 _LT_SYS_HIDDEN_LIBDEPS($1) 8581 _LT_COMPILER_PIC($1) 8582 _LT_COMPILER_C_O($1) 8583 _LT_COMPILER_FILE_LOCKS($1) 8584 _LT_LINKER_SHLIBS($1) 8585 _LT_SYS_DYNAMIC_LINKER($1) 8586 _LT_LINKER_HARDCODE_LIBPATH($1) 8587 8588 _LT_CONFIG($1) 8589 fi # test -n "$compiler" 8590 8591 CC=$lt_save_CC 8592 CFLAGS=$lt_save_CFLAGS 8593 LDCXX=$LD 8594 LD=$lt_save_LD 8595 GCC=$lt_save_GCC 8596 with_gnu_ld=$lt_save_with_gnu_ld 8597 lt_cv_path_LDCXX=$lt_cv_path_LD 8598 lt_cv_path_LD=$lt_save_path_LD 8599 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 8600 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 8601fi # test "$_lt_caught_CXX_error" != yes 8602 8603AC_LANG_POP 8604])# _LT_LANG_CXX_CONFIG 8605 8606 8607# _LT_FUNC_STRIPNAME_CNF 8608# ---------------------- 8609# func_stripname_cnf prefix suffix name 8610# strip PREFIX and SUFFIX off of NAME. 8611# PREFIX and SUFFIX must not contain globbing or regex special 8612# characters, hashes, percent signs, but SUFFIX may contain a leading 8613# dot (in which case that matches only a dot). 8614# 8615# This function is identical to the (non-XSI) version of func_stripname, 8616# except this one can be used by m4 code that may be executed by configure, 8617# rather than the libtool script. 8618m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl 8619AC_REQUIRE([_LT_DECL_SED]) 8620AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) 8621func_stripname_cnf () 8622{ 8623 case ${2} in 8624 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 8625 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 8626 esac 8627} # func_stripname_cnf 8628])# _LT_FUNC_STRIPNAME_CNF 8629 8630# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 8631# --------------------------------- 8632# Figure out "hidden" library dependencies from verbose 8633# compiler output when linking a shared library. 8634# Parse the compiler output and extract the necessary 8635# objects, libraries and library flags. 8636m4_defun([_LT_SYS_HIDDEN_LIBDEPS], 8637[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 8638AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl 8639# Dependencies to place before and after the object being linked: 8640_LT_TAGVAR(predep_objects, $1)= 8641_LT_TAGVAR(postdep_objects, $1)= 8642_LT_TAGVAR(predeps, $1)= 8643_LT_TAGVAR(postdeps, $1)= 8644_LT_TAGVAR(compiler_lib_search_path, $1)= 8645 8646dnl we can't use the lt_simple_compile_test_code here, 8647dnl because it contains code intended for an executable, 8648dnl not a library. It's possible we should let each 8649dnl tag define a new lt_????_link_test_code variable, 8650dnl but it's only used here... 8651m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF 8652int a; 8653void foo (void) { a = 0; } 8654_LT_EOF 8655], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF 8656class Foo 8657{ 8658public: 8659 Foo (void) { a = 0; } 8660private: 8661 int a; 8662}; 8663_LT_EOF 8664], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF 8665 subroutine foo 8666 implicit none 8667 integer*4 a 8668 a=0 8669 return 8670 end 8671_LT_EOF 8672], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF 8673 subroutine foo 8674 implicit none 8675 integer a 8676 a=0 8677 return 8678 end 8679_LT_EOF 8680], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF 8681public class foo { 8682 private int a; 8683 public void bar (void) { 8684 a = 0; 8685 } 8686}; 8687_LT_EOF 8688]) 8689 8690_lt_libdeps_save_CFLAGS=$CFLAGS 8691case "$CC $CFLAGS " in #( 8692*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 8693*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 8694esac 8695 8696dnl Parse the compiler output and extract the necessary 8697dnl objects, libraries and library flags. 8698if AC_TRY_EVAL(ac_compile); then 8699 # Parse the compiler output and extract the necessary 8700 # objects, libraries and library flags. 8701 8702 # Sentinel used to keep track of whether or not we are before 8703 # the conftest object file. 8704 pre_test_object_deps_done=no 8705 8706 for p in `eval "$output_verbose_link_cmd"`; do 8707 case ${prev}${p} in 8708 8709 -L* | -R* | -l*) 8710 # Some compilers place space between "-{L,R}" and the path. 8711 # Remove the space. 8712 if test $p = "-L" || 8713 test $p = "-R"; then 8714 prev=$p 8715 continue 8716 fi 8717 8718 # Expand the sysroot to ease extracting the directories later. 8719 if test -z "$prev"; then 8720 case $p in 8721 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 8722 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 8723 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 8724 esac 8725 fi 8726 case $p in 8727 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 8728 esac 8729 if test "$pre_test_object_deps_done" = no; then 8730 case ${prev} in 8731 -L | -R) 8732 # Internal compiler library paths should come after those 8733 # provided the user. The postdeps already come after the 8734 # user supplied libs so there is no need to process them. 8735 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then 8736 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" 8737 else 8738 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" 8739 fi 8740 ;; 8741 # The "-l" case would never come before the object being 8742 # linked, so don't bother handling this case. 8743 esac 8744 else 8745 if test -z "$_LT_TAGVAR(postdeps, $1)"; then 8746 _LT_TAGVAR(postdeps, $1)="${prev}${p}" 8747 else 8748 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" 8749 fi 8750 fi 8751 prev= 8752 ;; 8753 8754 *.lto.$objext) ;; # Ignore GCC LTO objects 8755 *.$objext) 8756 # This assumes that the test object file only shows up 8757 # once in the compiler output. 8758 if test "$p" = "conftest.$objext"; then 8759 pre_test_object_deps_done=yes 8760 continue 8761 fi 8762 8763 if test "$pre_test_object_deps_done" = no; then 8764 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then 8765 _LT_TAGVAR(predep_objects, $1)="$p" 8766 else 8767 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" 8768 fi 8769 else 8770 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then 8771 _LT_TAGVAR(postdep_objects, $1)="$p" 8772 else 8773 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" 8774 fi 8775 fi 8776 ;; 8777 8778 *) ;; # Ignore the rest. 8779 8780 esac 8781 done 8782 8783 # Clean up. 8784 rm -f a.out a.exe 8785else 8786 echo "libtool.m4: error: problem compiling $1 test program" 8787fi 8788 8789$RM -f confest.$objext 8790CFLAGS=$_lt_libdeps_save_CFLAGS 8791 8792# PORTME: override above test on systems where it is broken 8793m4_if([$1], [CXX], 8794[case $host_os in 8795interix[[3-9]]*) 8796 # Interix 3.5 installs completely hosed .la files for C++, so rather than 8797 # hack all around it, let's just trust "g++" to DTRT. 8798 _LT_TAGVAR(predep_objects,$1)= 8799 _LT_TAGVAR(postdep_objects,$1)= 8800 _LT_TAGVAR(postdeps,$1)= 8801 ;; 8802 8803linux*) 8804 case `$CC -V 2>&1 | sed 5q` in 8805 *Sun\ C*) 8806 # Sun C++ 5.9 8807 8808 # The more standards-conforming stlport4 library is 8809 # incompatible with the Cstd library. Avoid specifying 8810 # it if it's in CXXFLAGS. Ignore libCrun as 8811 # -library=stlport4 depends on it. 8812 case " $CXX $CXXFLAGS " in 8813 *" -library=stlport4 "*) 8814 solaris_use_stlport4=yes 8815 ;; 8816 esac 8817 8818 if test "$solaris_use_stlport4" != yes; then 8819 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 8820 fi 8821 ;; 8822 esac 8823 ;; 8824 8825solaris*) 8826 case $cc_basename in 8827 CC* | sunCC*) 8828 # The more standards-conforming stlport4 library is 8829 # incompatible with the Cstd library. Avoid specifying 8830 # it if it's in CXXFLAGS. Ignore libCrun as 8831 # -library=stlport4 depends on it. 8832 case " $CXX $CXXFLAGS " in 8833 *" -library=stlport4 "*) 8834 solaris_use_stlport4=yes 8835 ;; 8836 esac 8837 8838 # Adding this requires a known-good setup of shared libraries for 8839 # Sun compiler versions before 5.6, else PIC objects from an old 8840 # archive will be linked into the output, leading to subtle bugs. 8841 if test "$solaris_use_stlport4" != yes; then 8842 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 8843 fi 8844 ;; 8845 esac 8846 ;; 8847esac 8848]) 8849 8850case " $_LT_TAGVAR(postdeps, $1) " in 8851*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; 8852esac 8853 _LT_TAGVAR(compiler_lib_search_dirs, $1)= 8854if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then 8855 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 8856fi 8857_LT_TAGDECL([], [compiler_lib_search_dirs], [1], 8858 [The directories searched by this compiler when creating a shared library]) 8859_LT_TAGDECL([], [predep_objects], [1], 8860 [Dependencies to place before and after the objects being linked to 8861 create a shared library]) 8862_LT_TAGDECL([], [postdep_objects], [1]) 8863_LT_TAGDECL([], [predeps], [1]) 8864_LT_TAGDECL([], [postdeps], [1]) 8865_LT_TAGDECL([], [compiler_lib_search_path], [1], 8866 [The library search path used internally by the compiler when linking 8867 a shared library]) 8868])# _LT_SYS_HIDDEN_LIBDEPS 8869 8870 8871# _LT_LANG_F77_CONFIG([TAG]) 8872# -------------------------- 8873# Ensure that the configuration variables for a Fortran 77 compiler are 8874# suitably defined. These variables are subsequently used by _LT_CONFIG 8875# to write the compiler configuration to `libtool'. 8876m4_defun([_LT_LANG_F77_CONFIG], 8877[AC_LANG_PUSH(Fortran 77) 8878if test -z "$F77" || test "X$F77" = "Xno"; then 8879 _lt_disable_F77=yes 8880fi 8881 8882_LT_TAGVAR(archive_cmds_need_lc, $1)=no 8883_LT_TAGVAR(allow_undefined_flag, $1)= 8884_LT_TAGVAR(always_export_symbols, $1)=no 8885_LT_TAGVAR(archive_expsym_cmds, $1)= 8886_LT_TAGVAR(export_dynamic_flag_spec, $1)= 8887_LT_TAGVAR(hardcode_direct, $1)=no 8888_LT_TAGVAR(hardcode_direct_absolute, $1)=no 8889_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 8890_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 8891_LT_TAGVAR(hardcode_libdir_separator, $1)= 8892_LT_TAGVAR(hardcode_minus_L, $1)=no 8893_LT_TAGVAR(hardcode_automatic, $1)=no 8894_LT_TAGVAR(inherit_rpath, $1)=no 8895_LT_TAGVAR(module_cmds, $1)= 8896_LT_TAGVAR(module_expsym_cmds, $1)= 8897_LT_TAGVAR(link_all_deplibs, $1)=unknown 8898_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 8899_LT_TAGVAR(reload_flag, $1)=$reload_flag 8900_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 8901_LT_TAGVAR(no_undefined_flag, $1)= 8902_LT_TAGVAR(whole_archive_flag_spec, $1)= 8903_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 8904 8905# Source file extension for f77 test sources. 8906ac_ext=f 8907 8908# Object file extension for compiled f77 test sources. 8909objext=o 8910_LT_TAGVAR(objext, $1)=$objext 8911 8912# No sense in running all these tests if we already determined that 8913# the F77 compiler isn't working. Some variables (like enable_shared) 8914# are currently assumed to apply to all compilers on this platform, 8915# and will be corrupted by setting them based on a non-working compiler. 8916if test "$_lt_disable_F77" != yes; then 8917 # Code to be used in simple compile tests 8918 lt_simple_compile_test_code="\ 8919 subroutine t 8920 return 8921 end 8922" 8923 8924 # Code to be used in simple link tests 8925 lt_simple_link_test_code="\ 8926 program t 8927 end 8928" 8929 8930 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 8931 _LT_TAG_COMPILER 8932 8933 # save warnings/boilerplate of simple test code 8934 _LT_COMPILER_BOILERPLATE 8935 _LT_LINKER_BOILERPLATE 8936 8937 # Allow CC to be a program name with arguments. 8938 lt_save_CC="$CC" 8939 lt_save_GCC=$GCC 8940 lt_save_CFLAGS=$CFLAGS 8941 CC=${F77-"f77"} 8942 CFLAGS=$FFLAGS 8943 compiler=$CC 8944 _LT_TAGVAR(compiler, $1)=$CC 8945 _LT_CC_BASENAME([$compiler]) 8946 GCC=$G77 8947 if test -n "$compiler"; then 8948 AC_MSG_CHECKING([if libtool supports shared libraries]) 8949 AC_MSG_RESULT([$can_build_shared]) 8950 8951 AC_MSG_CHECKING([whether to build shared libraries]) 8952 test "$can_build_shared" = "no" && enable_shared=no 8953 8954 # On AIX, shared libraries and static libraries use the same namespace, and 8955 # are all built from PIC. 8956 case $host_os in 8957 aix3*) 8958 test "$enable_shared" = yes && enable_static=no 8959 if test -n "$RANLIB"; then 8960 archive_cmds="$archive_cmds~\$RANLIB \$lib" 8961 postinstall_cmds='$RANLIB $lib' 8962 fi 8963 ;; 8964 aix[[4-9]]*) 8965 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 8966 test "$enable_shared" = yes && enable_static=no 8967 fi 8968 ;; 8969 esac 8970 AC_MSG_RESULT([$enable_shared]) 8971 8972 AC_MSG_CHECKING([whether to build static libraries]) 8973 # Make sure either enable_shared or enable_static is yes. 8974 test "$enable_shared" = yes || enable_static=yes 8975 AC_MSG_RESULT([$enable_static]) 8976 8977 _LT_TAGVAR(GCC, $1)="$G77" 8978 _LT_TAGVAR(LD, $1)="$LD" 8979 8980 ## CAVEAT EMPTOR: 8981 ## There is no encapsulation within the following macros, do not change 8982 ## the running order or otherwise move them around unless you know exactly 8983 ## what you are doing... 8984 _LT_COMPILER_PIC($1) 8985 _LT_COMPILER_C_O($1) 8986 _LT_COMPILER_FILE_LOCKS($1) 8987 _LT_LINKER_SHLIBS($1) 8988 _LT_SYS_DYNAMIC_LINKER($1) 8989 _LT_LINKER_HARDCODE_LIBPATH($1) 8990 8991 _LT_CONFIG($1) 8992 fi # test -n "$compiler" 8993 8994 GCC=$lt_save_GCC 8995 CC="$lt_save_CC" 8996 CFLAGS="$lt_save_CFLAGS" 8997fi # test "$_lt_disable_F77" != yes 8998 8999AC_LANG_POP 9000])# _LT_LANG_F77_CONFIG 9001 9002 9003# _LT_LANG_FC_CONFIG([TAG]) 9004# ------------------------- 9005# Ensure that the configuration variables for a Fortran compiler are 9006# suitably defined. These variables are subsequently used by _LT_CONFIG 9007# to write the compiler configuration to `libtool'. 9008m4_defun([_LT_LANG_FC_CONFIG], 9009[AC_LANG_PUSH(Fortran) 9010 9011if test -z "$FC" || test "X$FC" = "Xno"; then 9012 _lt_disable_FC=yes 9013fi 9014 9015_LT_TAGVAR(archive_cmds_need_lc, $1)=no 9016_LT_TAGVAR(allow_undefined_flag, $1)= 9017_LT_TAGVAR(always_export_symbols, $1)=no 9018_LT_TAGVAR(archive_expsym_cmds, $1)= 9019_LT_TAGVAR(export_dynamic_flag_spec, $1)= 9020_LT_TAGVAR(hardcode_direct, $1)=no 9021_LT_TAGVAR(hardcode_direct_absolute, $1)=no 9022_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 9023_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 9024_LT_TAGVAR(hardcode_libdir_separator, $1)= 9025_LT_TAGVAR(hardcode_minus_L, $1)=no 9026_LT_TAGVAR(hardcode_automatic, $1)=no 9027_LT_TAGVAR(inherit_rpath, $1)=no 9028_LT_TAGVAR(module_cmds, $1)= 9029_LT_TAGVAR(module_expsym_cmds, $1)= 9030_LT_TAGVAR(link_all_deplibs, $1)=unknown 9031_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 9032_LT_TAGVAR(reload_flag, $1)=$reload_flag 9033_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 9034_LT_TAGVAR(no_undefined_flag, $1)= 9035_LT_TAGVAR(whole_archive_flag_spec, $1)= 9036_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 9037 9038# Source file extension for fc test sources. 9039ac_ext=${ac_fc_srcext-f} 9040 9041# Object file extension for compiled fc test sources. 9042objext=o 9043_LT_TAGVAR(objext, $1)=$objext 9044 9045# No sense in running all these tests if we already determined that 9046# the FC compiler isn't working. Some variables (like enable_shared) 9047# are currently assumed to apply to all compilers on this platform, 9048# and will be corrupted by setting them based on a non-working compiler. 9049if test "$_lt_disable_FC" != yes; then 9050 # Code to be used in simple compile tests 9051 lt_simple_compile_test_code="\ 9052 subroutine t 9053 return 9054 end 9055" 9056 9057 # Code to be used in simple link tests 9058 lt_simple_link_test_code="\ 9059 program t 9060 end 9061" 9062 9063 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 9064 _LT_TAG_COMPILER 9065 9066 # save warnings/boilerplate of simple test code 9067 _LT_COMPILER_BOILERPLATE 9068 _LT_LINKER_BOILERPLATE 9069 9070 # Allow CC to be a program name with arguments. 9071 lt_save_CC="$CC" 9072 lt_save_GCC=$GCC 9073 lt_save_CFLAGS=$CFLAGS 9074 CC=${FC-"f95"} 9075 CFLAGS=$FCFLAGS 9076 compiler=$CC 9077 GCC=$ac_cv_fc_compiler_gnu 9078 9079 _LT_TAGVAR(compiler, $1)=$CC 9080 _LT_CC_BASENAME([$compiler]) 9081 9082 if test -n "$compiler"; then 9083 AC_MSG_CHECKING([if libtool supports shared libraries]) 9084 AC_MSG_RESULT([$can_build_shared]) 9085 9086 AC_MSG_CHECKING([whether to build shared libraries]) 9087 test "$can_build_shared" = "no" && enable_shared=no 9088 9089 # On AIX, shared libraries and static libraries use the same namespace, and 9090 # are all built from PIC. 9091 case $host_os in 9092 aix3*) 9093 test "$enable_shared" = yes && enable_static=no 9094 if test -n "$RANLIB"; then 9095 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9096 postinstall_cmds='$RANLIB $lib' 9097 fi 9098 ;; 9099 aix[[4-9]]*) 9100 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9101 test "$enable_shared" = yes && enable_static=no 9102 fi 9103 ;; 9104 esac 9105 AC_MSG_RESULT([$enable_shared]) 9106 9107 AC_MSG_CHECKING([whether to build static libraries]) 9108 # Make sure either enable_shared or enable_static is yes. 9109 test "$enable_shared" = yes || enable_static=yes 9110 AC_MSG_RESULT([$enable_static]) 9111 9112 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" 9113 _LT_TAGVAR(LD, $1)="$LD" 9114 9115 ## CAVEAT EMPTOR: 9116 ## There is no encapsulation within the following macros, do not change 9117 ## the running order or otherwise move them around unless you know exactly 9118 ## what you are doing... 9119 _LT_SYS_HIDDEN_LIBDEPS($1) 9120 _LT_COMPILER_PIC($1) 9121 _LT_COMPILER_C_O($1) 9122 _LT_COMPILER_FILE_LOCKS($1) 9123 _LT_LINKER_SHLIBS($1) 9124 _LT_SYS_DYNAMIC_LINKER($1) 9125 _LT_LINKER_HARDCODE_LIBPATH($1) 9126 9127 _LT_CONFIG($1) 9128 fi # test -n "$compiler" 9129 9130 GCC=$lt_save_GCC 9131 CC=$lt_save_CC 9132 CFLAGS=$lt_save_CFLAGS 9133fi # test "$_lt_disable_FC" != yes 9134 9135AC_LANG_POP 9136])# _LT_LANG_FC_CONFIG 9137 9138 9139# _LT_LANG_GCJ_CONFIG([TAG]) 9140# -------------------------- 9141# Ensure that the configuration variables for the GNU Java Compiler compiler 9142# are suitably defined. These variables are subsequently used by _LT_CONFIG 9143# to write the compiler configuration to `libtool'. 9144m4_defun([_LT_LANG_GCJ_CONFIG], 9145[AC_REQUIRE([LT_PROG_GCJ])dnl 9146AC_LANG_SAVE 9147 9148# Source file extension for Java test sources. 9149ac_ext=java 9150 9151# Object file extension for compiled Java test sources. 9152objext=o 9153_LT_TAGVAR(objext, $1)=$objext 9154 9155# Code to be used in simple compile tests 9156lt_simple_compile_test_code="class foo {}" 9157 9158# Code to be used in simple link tests 9159lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 9160 9161# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9162_LT_TAG_COMPILER 9163 9164# save warnings/boilerplate of simple test code 9165_LT_COMPILER_BOILERPLATE 9166_LT_LINKER_BOILERPLATE 9167 9168# Allow CC to be a program name with arguments. 9169lt_save_CC=$CC 9170lt_save_CFLAGS=$CFLAGS 9171lt_save_GCC=$GCC 9172GCC=yes 9173CC=${GCJ-"gcj"} 9174CFLAGS=$GCJFLAGS 9175compiler=$CC 9176_LT_TAGVAR(compiler, $1)=$CC 9177_LT_TAGVAR(LD, $1)="$LD" 9178_LT_CC_BASENAME([$compiler]) 9179 9180# GCJ did not exist at the time GCC didn't implicitly link libc in. 9181_LT_TAGVAR(archive_cmds_need_lc, $1)=no 9182 9183_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 9184_LT_TAGVAR(reload_flag, $1)=$reload_flag 9185_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 9186 9187if test -n "$compiler"; then 9188 _LT_COMPILER_NO_RTTI($1) 9189 _LT_COMPILER_PIC($1) 9190 _LT_COMPILER_C_O($1) 9191 _LT_COMPILER_FILE_LOCKS($1) 9192 _LT_LINKER_SHLIBS($1) 9193 _LT_LINKER_HARDCODE_LIBPATH($1) 9194 9195 _LT_CONFIG($1) 9196fi 9197 9198AC_LANG_RESTORE 9199 9200GCC=$lt_save_GCC 9201CC=$lt_save_CC 9202CFLAGS=$lt_save_CFLAGS 9203])# _LT_LANG_GCJ_CONFIG 9204 9205 9206# _LT_LANG_RC_CONFIG([TAG]) 9207# ------------------------- 9208# Ensure that the configuration variables for the Windows resource compiler 9209# are suitably defined. These variables are subsequently used by _LT_CONFIG 9210# to write the compiler configuration to `libtool'. 9211m4_defun([_LT_LANG_RC_CONFIG], 9212[AC_REQUIRE([LT_PROG_RC])dnl 9213AC_LANG_SAVE 9214 9215# Source file extension for RC test sources. 9216ac_ext=rc 9217 9218# Object file extension for compiled RC test sources. 9219objext=o 9220_LT_TAGVAR(objext, $1)=$objext 9221 9222# Code to be used in simple compile tests 9223lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 9224 9225# Code to be used in simple link tests 9226lt_simple_link_test_code="$lt_simple_compile_test_code" 9227 9228# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9229_LT_TAG_COMPILER 9230 9231# save warnings/boilerplate of simple test code 9232_LT_COMPILER_BOILERPLATE 9233_LT_LINKER_BOILERPLATE 9234 9235# Allow CC to be a program name with arguments. 9236lt_save_CC="$CC" 9237lt_save_CFLAGS=$CFLAGS 9238lt_save_GCC=$GCC 9239GCC= 9240CC=${RC-"windres"} 9241CFLAGS= 9242compiler=$CC 9243_LT_TAGVAR(compiler, $1)=$CC 9244_LT_CC_BASENAME([$compiler]) 9245_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 9246 9247if test -n "$compiler"; then 9248 : 9249 _LT_CONFIG($1) 9250fi 9251 9252GCC=$lt_save_GCC 9253AC_LANG_RESTORE 9254CC=$lt_save_CC 9255CFLAGS=$lt_save_CFLAGS 9256])# _LT_LANG_RC_CONFIG 9257 9258 9259# LT_PROG_GCJ 9260# ----------- 9261AC_DEFUN([LT_PROG_GCJ], 9262[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], 9263 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 9264 [AC_CHECK_TOOL(GCJ, gcj,) 9265 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 9266 AC_SUBST(GCJFLAGS)])])[]dnl 9267]) 9268 9269# Old name: 9270AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) 9271dnl aclocal-1.4 backwards compatibility: 9272dnl AC_DEFUN([LT_AC_PROG_GCJ], []) 9273 9274 9275# LT_PROG_RC 9276# ---------- 9277AC_DEFUN([LT_PROG_RC], 9278[AC_CHECK_TOOL(RC, windres,) 9279]) 9280 9281# Old name: 9282AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) 9283dnl aclocal-1.4 backwards compatibility: 9284dnl AC_DEFUN([LT_AC_PROG_RC], []) 9285 9286 9287# _LT_DECL_EGREP 9288# -------------- 9289# If we don't have a new enough Autoconf to choose the best grep 9290# available, choose the one first in the user's PATH. 9291m4_defun([_LT_DECL_EGREP], 9292[AC_REQUIRE([AC_PROG_EGREP])dnl 9293AC_REQUIRE([AC_PROG_FGREP])dnl 9294test -z "$GREP" && GREP=grep 9295_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) 9296_LT_DECL([], [EGREP], [1], [An ERE matcher]) 9297_LT_DECL([], [FGREP], [1], [A literal string matcher]) 9298dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too 9299AC_SUBST([GREP]) 9300]) 9301 9302 9303# _LT_DECL_OBJDUMP 9304# -------------- 9305# If we don't have a new enough Autoconf to choose the best objdump 9306# available, choose the one first in the user's PATH. 9307m4_defun([_LT_DECL_OBJDUMP], 9308[AC_CHECK_TOOL(OBJDUMP, objdump, false) 9309test -z "$OBJDUMP" && OBJDUMP=objdump 9310_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) 9311AC_SUBST([OBJDUMP]) 9312]) 9313 9314# _LT_DECL_DLLTOOL 9315# ---------------- 9316# Ensure DLLTOOL variable is set. 9317m4_defun([_LT_DECL_DLLTOOL], 9318[AC_CHECK_TOOL(DLLTOOL, dlltool, false) 9319test -z "$DLLTOOL" && DLLTOOL=dlltool 9320_LT_DECL([], [DLLTOOL], [1], [DLL creation program]) 9321AC_SUBST([DLLTOOL]) 9322]) 9323 9324# _LT_DECL_SED 9325# ------------ 9326# Check for a fully-functional sed program, that truncates 9327# as few characters as possible. Prefer GNU sed if found. 9328m4_defun([_LT_DECL_SED], 9329[AC_PROG_SED 9330test -z "$SED" && SED=sed 9331Xsed="$SED -e 1s/^X//" 9332_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) 9333_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], 9334 [Sed that helps us avoid accidentally triggering echo(1) options like -n]) 9335])# _LT_DECL_SED 9336 9337m4_ifndef([AC_PROG_SED], [ 9338# NOTE: This macro has been submitted for inclusion into # 9339# GNU Autoconf as AC_PROG_SED. When it is available in # 9340# a released version of Autoconf we should remove this # 9341# macro and use it instead. # 9342 9343m4_defun([AC_PROG_SED], 9344[AC_MSG_CHECKING([for a sed that does not truncate output]) 9345AC_CACHE_VAL(lt_cv_path_SED, 9346[# Loop through the user's path and test for sed and gsed. 9347# Then use that list of sed's as ones to test for truncation. 9348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9349for as_dir in $PATH 9350do 9351 IFS=$as_save_IFS 9352 test -z "$as_dir" && as_dir=. 9353 for lt_ac_prog in sed gsed; do 9354 for ac_exec_ext in '' $ac_executable_extensions; do 9355 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 9356 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 9357 fi 9358 done 9359 done 9360done 9361IFS=$as_save_IFS 9362lt_ac_max=0 9363lt_ac_count=0 9364# Add /usr/xpg4/bin/sed as it is typically found on Solaris 9365# along with /bin/sed that truncates output. 9366for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 9367 test ! -f $lt_ac_sed && continue 9368 cat /dev/null > conftest.in 9369 lt_ac_count=0 9370 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 9371 # Check for GNU sed and select it if it is found. 9372 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 9373 lt_cv_path_SED=$lt_ac_sed 9374 break 9375 fi 9376 while true; do 9377 cat conftest.in conftest.in >conftest.tmp 9378 mv conftest.tmp conftest.in 9379 cp conftest.in conftest.nl 9380 echo >>conftest.nl 9381 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 9382 cmp -s conftest.out conftest.nl || break 9383 # 10000 chars as input seems more than enough 9384 test $lt_ac_count -gt 10 && break 9385 lt_ac_count=`expr $lt_ac_count + 1` 9386 if test $lt_ac_count -gt $lt_ac_max; then 9387 lt_ac_max=$lt_ac_count 9388 lt_cv_path_SED=$lt_ac_sed 9389 fi 9390 done 9391done 9392]) 9393SED=$lt_cv_path_SED 9394AC_SUBST([SED]) 9395AC_MSG_RESULT([$SED]) 9396])#AC_PROG_SED 9397])#m4_ifndef 9398 9399# Old name: 9400AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) 9401dnl aclocal-1.4 backwards compatibility: 9402dnl AC_DEFUN([LT_AC_PROG_SED], []) 9403 9404 9405# _LT_CHECK_SHELL_FEATURES 9406# ------------------------ 9407# Find out whether the shell is Bourne or XSI compatible, 9408# or has some other useful features. 9409m4_defun([_LT_CHECK_SHELL_FEATURES], 9410[AC_MSG_CHECKING([whether the shell understands some XSI constructs]) 9411# Try some XSI features 9412xsi_shell=no 9413( _lt_dummy="a/b/c" 9414 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 9415 = c,a/b,b/c, \ 9416 && eval 'test $(( 1 + 1 )) -eq 2 \ 9417 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 9418 && xsi_shell=yes 9419AC_MSG_RESULT([$xsi_shell]) 9420_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) 9421 9422AC_MSG_CHECKING([whether the shell understands "+="]) 9423lt_shell_append=no 9424( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ 9425 >/dev/null 2>&1 \ 9426 && lt_shell_append=yes 9427AC_MSG_RESULT([$lt_shell_append]) 9428_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) 9429 9430if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 9431 lt_unset=unset 9432else 9433 lt_unset=false 9434fi 9435_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl 9436 9437# test EBCDIC or ASCII 9438case `echo X|tr X '\101'` in 9439 A) # ASCII based system 9440 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 9441 lt_SP2NL='tr \040 \012' 9442 lt_NL2SP='tr \015\012 \040\040' 9443 ;; 9444 *) # EBCDIC based system 9445 lt_SP2NL='tr \100 \n' 9446 lt_NL2SP='tr \r\n \100\100' 9447 ;; 9448esac 9449_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl 9450_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl 9451])# _LT_CHECK_SHELL_FEATURES 9452 9453 9454# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY) 9455# ------------------------------------------------------ 9456# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and 9457# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY. 9458m4_defun([_LT_PROG_FUNCTION_REPLACE], 9459[dnl { 9460sed -e '/^$1 ()$/,/^} # $1 /c\ 9461$1 ()\ 9462{\ 9463m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1]) 9464} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \ 9465 && mv -f "$cfgfile.tmp" "$cfgfile" \ 9466 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 9467test 0 -eq $? || _lt_function_replace_fail=: 9468]) 9469 9470 9471# _LT_PROG_REPLACE_SHELLFNS 9472# ------------------------- 9473# Replace existing portable implementations of several shell functions with 9474# equivalent extended shell implementations where those features are available.. 9475m4_defun([_LT_PROG_REPLACE_SHELLFNS], 9476[if test x"$xsi_shell" = xyes; then 9477 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl 9478 case ${1} in 9479 */*) func_dirname_result="${1%/*}${2}" ;; 9480 * ) func_dirname_result="${3}" ;; 9481 esac]) 9482 9483 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl 9484 func_basename_result="${1##*/}"]) 9485 9486 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl 9487 case ${1} in 9488 */*) func_dirname_result="${1%/*}${2}" ;; 9489 * ) func_dirname_result="${3}" ;; 9490 esac 9491 func_basename_result="${1##*/}"]) 9492 9493 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl 9494 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 9495 # positional parameters, so assign one to ordinary parameter first. 9496 func_stripname_result=${3} 9497 func_stripname_result=${func_stripname_result#"${1}"} 9498 func_stripname_result=${func_stripname_result%"${2}"}]) 9499 9500 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl 9501 func_split_long_opt_name=${1%%=*} 9502 func_split_long_opt_arg=${1#*=}]) 9503 9504 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl 9505 func_split_short_opt_arg=${1#??} 9506 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}]) 9507 9508 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl 9509 case ${1} in 9510 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 9511 *) func_lo2o_result=${1} ;; 9512 esac]) 9513 9514 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo]) 9515 9516 _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))]) 9517 9518 _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}]) 9519fi 9520 9521if test x"$lt_shell_append" = xyes; then 9522 _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"]) 9523 9524 _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl 9525 func_quote_for_eval "${2}" 9526dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \ 9527 eval "${1}+=\\\\ \\$func_quote_for_eval_result"]) 9528 9529 # Save a `func_append' function call where possible by direct use of '+=' 9530 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 9531 && mv -f "$cfgfile.tmp" "$cfgfile" \ 9532 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 9533 test 0 -eq $? || _lt_function_replace_fail=: 9534else 9535 # Save a `func_append' function call even when '+=' is not available 9536 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 9537 && mv -f "$cfgfile.tmp" "$cfgfile" \ 9538 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 9539 test 0 -eq $? || _lt_function_replace_fail=: 9540fi 9541 9542if test x"$_lt_function_replace_fail" = x":"; then 9543 AC_MSG_WARN([Unable to substitute extended shell functions in $ofile]) 9544fi 9545]) 9546 9547# _LT_PATH_CONVERSION_FUNCTIONS 9548# ----------------------------- 9549# Determine which file name conversion functions should be used by 9550# func_to_host_file (and, implicitly, by func_to_host_path). These are needed 9551# for certain cross-compile configurations and native mingw. 9552m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], 9553[AC_REQUIRE([AC_CANONICAL_HOST])dnl 9554AC_REQUIRE([AC_CANONICAL_BUILD])dnl 9555AC_MSG_CHECKING([how to convert $build file names to $host format]) 9556AC_CACHE_VAL(lt_cv_to_host_file_cmd, 9557[case $host in 9558 *-*-mingw* ) 9559 case $build in 9560 *-*-mingw* ) # actually msys 9561 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 9562 ;; 9563 *-*-cygwin* ) 9564 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 9565 ;; 9566 * ) # otherwise, assume *nix 9567 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 9568 ;; 9569 esac 9570 ;; 9571 *-*-cygwin* ) 9572 case $build in 9573 *-*-mingw* ) # actually msys 9574 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 9575 ;; 9576 *-*-cygwin* ) 9577 lt_cv_to_host_file_cmd=func_convert_file_noop 9578 ;; 9579 * ) # otherwise, assume *nix 9580 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 9581 ;; 9582 esac 9583 ;; 9584 * ) # unhandled hosts (and "normal" native builds) 9585 lt_cv_to_host_file_cmd=func_convert_file_noop 9586 ;; 9587esac 9588]) 9589to_host_file_cmd=$lt_cv_to_host_file_cmd 9590AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) 9591_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], 9592 [0], [convert $build file names to $host format])dnl 9593 9594AC_MSG_CHECKING([how to convert $build file names to toolchain format]) 9595AC_CACHE_VAL(lt_cv_to_tool_file_cmd, 9596[#assume ordinary cross tools, or native build. 9597lt_cv_to_tool_file_cmd=func_convert_file_noop 9598case $host in 9599 *-*-mingw* ) 9600 case $build in 9601 *-*-mingw* ) # actually msys 9602 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 9603 ;; 9604 esac 9605 ;; 9606esac 9607]) 9608to_tool_file_cmd=$lt_cv_to_tool_file_cmd 9609AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) 9610_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], 9611 [0], [convert $build files to toolchain format])dnl 9612])# _LT_PATH_CONVERSION_FUNCTIONS 9613 9614# Helper functions for option handling. -*- Autoconf -*- 9615# 9616# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, 9617# Inc. 9618# Written by Gary V. Vaughan, 2004 9619# 9620# This file is free software; the Free Software Foundation gives 9621# unlimited permission to copy and/or distribute it, with or without 9622# modifications, as long as this notice is preserved. 9623 9624# serial 7 ltoptions.m4 9625 9626# This is to help aclocal find these macros, as it can't see m4_define. 9627AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) 9628 9629 9630# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) 9631# ------------------------------------------ 9632m4_define([_LT_MANGLE_OPTION], 9633[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) 9634 9635 9636# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) 9637# --------------------------------------- 9638# Set option OPTION-NAME for macro MACRO-NAME, and if there is a 9639# matching handler defined, dispatch to it. Other OPTION-NAMEs are 9640# saved as a flag. 9641m4_define([_LT_SET_OPTION], 9642[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl 9643m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), 9644 _LT_MANGLE_DEFUN([$1], [$2]), 9645 [m4_warning([Unknown $1 option `$2'])])[]dnl 9646]) 9647 9648 9649# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) 9650# ------------------------------------------------------------ 9651# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 9652m4_define([_LT_IF_OPTION], 9653[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) 9654 9655 9656# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) 9657# ------------------------------------------------------- 9658# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME 9659# are set. 9660m4_define([_LT_UNLESS_OPTIONS], 9661[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 9662 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), 9663 [m4_define([$0_found])])])[]dnl 9664m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 9665])[]dnl 9666]) 9667 9668 9669# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) 9670# ---------------------------------------- 9671# OPTION-LIST is a space-separated list of Libtool options associated 9672# with MACRO-NAME. If any OPTION has a matching handler declared with 9673# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about 9674# the unknown option and exit. 9675m4_defun([_LT_SET_OPTIONS], 9676[# Set options 9677m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 9678 [_LT_SET_OPTION([$1], _LT_Option)]) 9679 9680m4_if([$1],[LT_INIT],[ 9681 dnl 9682 dnl Simply set some default values (i.e off) if boolean options were not 9683 dnl specified: 9684 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no 9685 ]) 9686 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no 9687 ]) 9688 dnl 9689 dnl If no reference was made to various pairs of opposing options, then 9690 dnl we run the default mode handler for the pair. For example, if neither 9691 dnl `shared' nor `disable-shared' was passed, we enable building of shared 9692 dnl archives by default: 9693 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) 9694 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) 9695 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) 9696 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], 9697 [_LT_ENABLE_FAST_INSTALL]) 9698 ]) 9699])# _LT_SET_OPTIONS 9700 9701 9702 9703# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) 9704# ----------------------------------------- 9705m4_define([_LT_MANGLE_DEFUN], 9706[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) 9707 9708 9709# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) 9710# ----------------------------------------------- 9711m4_define([LT_OPTION_DEFINE], 9712[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl 9713])# LT_OPTION_DEFINE 9714 9715 9716# dlopen 9717# ------ 9718LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes 9719]) 9720 9721AU_DEFUN([AC_LIBTOOL_DLOPEN], 9722[_LT_SET_OPTION([LT_INIT], [dlopen]) 9723AC_DIAGNOSE([obsolete], 9724[$0: Remove this warning and the call to _LT_SET_OPTION when you 9725put the `dlopen' option into LT_INIT's first parameter.]) 9726]) 9727 9728dnl aclocal-1.4 backwards compatibility: 9729dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) 9730 9731 9732# win32-dll 9733# --------- 9734# Declare package support for building win32 dll's. 9735LT_OPTION_DEFINE([LT_INIT], [win32-dll], 9736[enable_win32_dll=yes 9737 9738case $host in 9739*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 9740 AC_CHECK_TOOL(AS, as, false) 9741 AC_CHECK_TOOL(DLLTOOL, dlltool, false) 9742 AC_CHECK_TOOL(OBJDUMP, objdump, false) 9743 ;; 9744esac 9745 9746test -z "$AS" && AS=as 9747_LT_DECL([], [AS], [1], [Assembler program])dnl 9748 9749test -z "$DLLTOOL" && DLLTOOL=dlltool 9750_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl 9751 9752test -z "$OBJDUMP" && OBJDUMP=objdump 9753_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl 9754])# win32-dll 9755 9756AU_DEFUN([AC_LIBTOOL_WIN32_DLL], 9757[AC_REQUIRE([AC_CANONICAL_HOST])dnl 9758_LT_SET_OPTION([LT_INIT], [win32-dll]) 9759AC_DIAGNOSE([obsolete], 9760[$0: Remove this warning and the call to _LT_SET_OPTION when you 9761put the `win32-dll' option into LT_INIT's first parameter.]) 9762]) 9763 9764dnl aclocal-1.4 backwards compatibility: 9765dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) 9766 9767 9768# _LT_ENABLE_SHARED([DEFAULT]) 9769# ---------------------------- 9770# implement the --enable-shared flag, and supports the `shared' and 9771# `disable-shared' LT_INIT options. 9772# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 9773m4_define([_LT_ENABLE_SHARED], 9774[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl 9775AC_ARG_ENABLE([shared], 9776 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 9777 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], 9778 [p=${PACKAGE-default} 9779 case $enableval in 9780 yes) enable_shared=yes ;; 9781 no) enable_shared=no ;; 9782 *) 9783 enable_shared=no 9784 # Look at the argument we got. We use all the common list separators. 9785 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9786 for pkg in $enableval; do 9787 IFS="$lt_save_ifs" 9788 if test "X$pkg" = "X$p"; then 9789 enable_shared=yes 9790 fi 9791 done 9792 IFS="$lt_save_ifs" 9793 ;; 9794 esac], 9795 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) 9796 9797 _LT_DECL([build_libtool_libs], [enable_shared], [0], 9798 [Whether or not to build shared libraries]) 9799])# _LT_ENABLE_SHARED 9800 9801LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) 9802LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) 9803 9804# Old names: 9805AC_DEFUN([AC_ENABLE_SHARED], 9806[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) 9807]) 9808 9809AC_DEFUN([AC_DISABLE_SHARED], 9810[_LT_SET_OPTION([LT_INIT], [disable-shared]) 9811]) 9812 9813AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 9814AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 9815 9816dnl aclocal-1.4 backwards compatibility: 9817dnl AC_DEFUN([AM_ENABLE_SHARED], []) 9818dnl AC_DEFUN([AM_DISABLE_SHARED], []) 9819 9820 9821 9822# _LT_ENABLE_STATIC([DEFAULT]) 9823# ---------------------------- 9824# implement the --enable-static flag, and support the `static' and 9825# `disable-static' LT_INIT options. 9826# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 9827m4_define([_LT_ENABLE_STATIC], 9828[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl 9829AC_ARG_ENABLE([static], 9830 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], 9831 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], 9832 [p=${PACKAGE-default} 9833 case $enableval in 9834 yes) enable_static=yes ;; 9835 no) enable_static=no ;; 9836 *) 9837 enable_static=no 9838 # Look at the argument we got. We use all the common list separators. 9839 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9840 for pkg in $enableval; do 9841 IFS="$lt_save_ifs" 9842 if test "X$pkg" = "X$p"; then 9843 enable_static=yes 9844 fi 9845 done 9846 IFS="$lt_save_ifs" 9847 ;; 9848 esac], 9849 [enable_static=]_LT_ENABLE_STATIC_DEFAULT) 9850 9851 _LT_DECL([build_old_libs], [enable_static], [0], 9852 [Whether or not to build static libraries]) 9853])# _LT_ENABLE_STATIC 9854 9855LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) 9856LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) 9857 9858# Old names: 9859AC_DEFUN([AC_ENABLE_STATIC], 9860[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) 9861]) 9862 9863AC_DEFUN([AC_DISABLE_STATIC], 9864[_LT_SET_OPTION([LT_INIT], [disable-static]) 9865]) 9866 9867AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 9868AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 9869 9870dnl aclocal-1.4 backwards compatibility: 9871dnl AC_DEFUN([AM_ENABLE_STATIC], []) 9872dnl AC_DEFUN([AM_DISABLE_STATIC], []) 9873 9874 9875 9876# _LT_ENABLE_FAST_INSTALL([DEFAULT]) 9877# ---------------------------------- 9878# implement the --enable-fast-install flag, and support the `fast-install' 9879# and `disable-fast-install' LT_INIT options. 9880# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 9881m4_define([_LT_ENABLE_FAST_INSTALL], 9882[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl 9883AC_ARG_ENABLE([fast-install], 9884 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 9885 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 9886 [p=${PACKAGE-default} 9887 case $enableval in 9888 yes) enable_fast_install=yes ;; 9889 no) enable_fast_install=no ;; 9890 *) 9891 enable_fast_install=no 9892 # Look at the argument we got. We use all the common list separators. 9893 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9894 for pkg in $enableval; do 9895 IFS="$lt_save_ifs" 9896 if test "X$pkg" = "X$p"; then 9897 enable_fast_install=yes 9898 fi 9899 done 9900 IFS="$lt_save_ifs" 9901 ;; 9902 esac], 9903 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) 9904 9905_LT_DECL([fast_install], [enable_fast_install], [0], 9906 [Whether or not to optimize for fast installation])dnl 9907])# _LT_ENABLE_FAST_INSTALL 9908 9909LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) 9910LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) 9911 9912# Old names: 9913AU_DEFUN([AC_ENABLE_FAST_INSTALL], 9914[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) 9915AC_DIAGNOSE([obsolete], 9916[$0: Remove this warning and the call to _LT_SET_OPTION when you put 9917the `fast-install' option into LT_INIT's first parameter.]) 9918]) 9919 9920AU_DEFUN([AC_DISABLE_FAST_INSTALL], 9921[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) 9922AC_DIAGNOSE([obsolete], 9923[$0: Remove this warning and the call to _LT_SET_OPTION when you put 9924the `disable-fast-install' option into LT_INIT's first parameter.]) 9925]) 9926 9927dnl aclocal-1.4 backwards compatibility: 9928dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) 9929dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) 9930 9931 9932# _LT_WITH_PIC([MODE]) 9933# -------------------- 9934# implement the --with-pic flag, and support the `pic-only' and `no-pic' 9935# LT_INIT options. 9936# MODE is either `yes' or `no'. If omitted, it defaults to `both'. 9937m4_define([_LT_WITH_PIC], 9938[AC_ARG_WITH([pic], 9939 [AS_HELP_STRING([--with-pic], 9940 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 9941 [pic_mode="$withval"], 9942 [pic_mode=default]) 9943 9944test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) 9945 9946_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl 9947])# _LT_WITH_PIC 9948 9949LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) 9950LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) 9951 9952# Old name: 9953AU_DEFUN([AC_LIBTOOL_PICMODE], 9954[_LT_SET_OPTION([LT_INIT], [pic-only]) 9955AC_DIAGNOSE([obsolete], 9956[$0: Remove this warning and the call to _LT_SET_OPTION when you 9957put the `pic-only' option into LT_INIT's first parameter.]) 9958]) 9959 9960dnl aclocal-1.4 backwards compatibility: 9961dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) 9962 9963 9964m4_define([_LTDL_MODE], []) 9965LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], 9966 [m4_define([_LTDL_MODE], [nonrecursive])]) 9967LT_OPTION_DEFINE([LTDL_INIT], [recursive], 9968 [m4_define([_LTDL_MODE], [recursive])]) 9969LT_OPTION_DEFINE([LTDL_INIT], [subproject], 9970 [m4_define([_LTDL_MODE], [subproject])]) 9971 9972m4_define([_LTDL_TYPE], []) 9973LT_OPTION_DEFINE([LTDL_INIT], [installable], 9974 [m4_define([_LTDL_TYPE], [installable])]) 9975LT_OPTION_DEFINE([LTDL_INIT], [convenience], 9976 [m4_define([_LTDL_TYPE], [convenience])]) 9977 9978# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- 9979# 9980# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 9981# Written by Gary V. Vaughan, 2004 9982# 9983# This file is free software; the Free Software Foundation gives 9984# unlimited permission to copy and/or distribute it, with or without 9985# modifications, as long as this notice is preserved. 9986 9987# serial 6 ltsugar.m4 9988 9989# This is to help aclocal find these macros, as it can't see m4_define. 9990AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) 9991 9992 9993# lt_join(SEP, ARG1, [ARG2...]) 9994# ----------------------------- 9995# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their 9996# associated separator. 9997# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier 9998# versions in m4sugar had bugs. 9999m4_define([lt_join], 10000[m4_if([$#], [1], [], 10001 [$#], [2], [[$2]], 10002 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) 10003m4_define([_lt_join], 10004[m4_if([$#$2], [2], [], 10005 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) 10006 10007 10008# lt_car(LIST) 10009# lt_cdr(LIST) 10010# ------------ 10011# Manipulate m4 lists. 10012# These macros are necessary as long as will still need to support 10013# Autoconf-2.59 which quotes differently. 10014m4_define([lt_car], [[$1]]) 10015m4_define([lt_cdr], 10016[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], 10017 [$#], 1, [], 10018 [m4_dquote(m4_shift($@))])]) 10019m4_define([lt_unquote], $1) 10020 10021 10022# lt_append(MACRO-NAME, STRING, [SEPARATOR]) 10023# ------------------------------------------ 10024# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. 10025# Note that neither SEPARATOR nor STRING are expanded; they are appended 10026# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). 10027# No SEPARATOR is output if MACRO-NAME was previously undefined (different 10028# than defined and empty). 10029# 10030# This macro is needed until we can rely on Autoconf 2.62, since earlier 10031# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. 10032m4_define([lt_append], 10033[m4_define([$1], 10034 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) 10035 10036 10037 10038# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) 10039# ---------------------------------------------------------- 10040# Produce a SEP delimited list of all paired combinations of elements of 10041# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list 10042# has the form PREFIXmINFIXSUFFIXn. 10043# Needed until we can rely on m4_combine added in Autoconf 2.62. 10044m4_define([lt_combine], 10045[m4_if(m4_eval([$# > 3]), [1], 10046 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl 10047[[m4_foreach([_Lt_prefix], [$2], 10048 [m4_foreach([_Lt_suffix], 10049 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, 10050 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) 10051 10052 10053# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) 10054# ----------------------------------------------------------------------- 10055# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited 10056# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. 10057m4_define([lt_if_append_uniq], 10058[m4_ifdef([$1], 10059 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], 10060 [lt_append([$1], [$2], [$3])$4], 10061 [$5])], 10062 [lt_append([$1], [$2], [$3])$4])]) 10063 10064 10065# lt_dict_add(DICT, KEY, VALUE) 10066# ----------------------------- 10067m4_define([lt_dict_add], 10068[m4_define([$1($2)], [$3])]) 10069 10070 10071# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) 10072# -------------------------------------------- 10073m4_define([lt_dict_add_subkey], 10074[m4_define([$1($2:$3)], [$4])]) 10075 10076 10077# lt_dict_fetch(DICT, KEY, [SUBKEY]) 10078# ---------------------------------- 10079m4_define([lt_dict_fetch], 10080[m4_ifval([$3], 10081 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), 10082 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) 10083 10084 10085# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) 10086# ----------------------------------------------------------------- 10087m4_define([lt_if_dict_fetch], 10088[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], 10089 [$5], 10090 [$6])]) 10091 10092 10093# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) 10094# -------------------------------------------------------------- 10095m4_define([lt_dict_filter], 10096[m4_if([$5], [], [], 10097 [lt_join(m4_quote(m4_default([$4], [[, ]])), 10098 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), 10099 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl 10100]) 10101 10102# ltversion.m4 -- version numbers -*- Autoconf -*- 10103# 10104# Copyright (C) 2004 Free Software Foundation, Inc. 10105# Written by Scott James Remnant, 2004 10106# 10107# This file is free software; the Free Software Foundation gives 10108# unlimited permission to copy and/or distribute it, with or without 10109# modifications, as long as this notice is preserved. 10110 10111# @configure_input@ 10112 10113# serial 3293 ltversion.m4 10114# This file is part of GNU Libtool 10115 10116m4_define([LT_PACKAGE_VERSION], [2.4]) 10117m4_define([LT_PACKAGE_REVISION], [1.3293]) 10118 10119AC_DEFUN([LTVERSION_VERSION], 10120[macro_version='2.4' 10121macro_revision='1.3293' 10122_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 10123_LT_DECL(, macro_revision, 0) 10124]) 10125 10126# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- 10127# 10128# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. 10129# Written by Scott James Remnant, 2004. 10130# 10131# This file is free software; the Free Software Foundation gives 10132# unlimited permission to copy and/or distribute it, with or without 10133# modifications, as long as this notice is preserved. 10134 10135# serial 5 lt~obsolete.m4 10136 10137# These exist entirely to fool aclocal when bootstrapping libtool. 10138# 10139# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) 10140# which have later been changed to m4_define as they aren't part of the 10141# exported API, or moved to Autoconf or Automake where they belong. 10142# 10143# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN 10144# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us 10145# using a macro with the same name in our local m4/libtool.m4 it'll 10146# pull the old libtool.m4 in (it doesn't see our shiny new m4_define 10147# and doesn't know about Autoconf macros at all.) 10148# 10149# So we provide this file, which has a silly filename so it's always 10150# included after everything else. This provides aclocal with the 10151# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything 10152# because those macros already exist, or will be overwritten later. 10153# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 10154# 10155# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. 10156# Yes, that means every name once taken will need to remain here until 10157# we give up compatibility with versions before 1.7, at which point 10158# we need to keep only those names which we still refer to. 10159 10160# This is to help aclocal find these macros, as it can't see m4_define. 10161AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) 10162 10163m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) 10164m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) 10165m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) 10166m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) 10167m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) 10168m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) 10169m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) 10170m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) 10171m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) 10172m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) 10173m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) 10174m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) 10175m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) 10176m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) 10177m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) 10178m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) 10179m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) 10180m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) 10181m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) 10182m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) 10183m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) 10184m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) 10185m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) 10186m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) 10187m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) 10188m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) 10189m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) 10190m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) 10191m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) 10192m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) 10193m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) 10194m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) 10195m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) 10196m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) 10197m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) 10198m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) 10199m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) 10200m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) 10201m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) 10202m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) 10203m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) 10204m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) 10205m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) 10206m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) 10207m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) 10208m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) 10209m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) 10210m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) 10211m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) 10212m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) 10213m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) 10214m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) 10215m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) 10216m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) 10217m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) 10218m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) 10219m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) 10220m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) 10221m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) 10222m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) 10223m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) 10224 10225# nls.m4 serial 5 (gettext-0.18) 10226dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation, 10227dnl Inc. 10228dnl This file is free software; the Free Software Foundation 10229dnl gives unlimited permission to copy and/or distribute it, 10230dnl with or without modifications, as long as this notice is preserved. 10231dnl 10232dnl This file can can be used in projects which are not available under 10233dnl the GNU General Public License or the GNU Library General Public 10234dnl License but which still want to provide support for the GNU gettext 10235dnl functionality. 10236dnl Please note that the actual code of the GNU gettext library is covered 10237dnl by the GNU Library General Public License, and the rest of the GNU 10238dnl gettext package package is covered by the GNU General Public License. 10239dnl They are *not* in the public domain. 10240 10241dnl Authors: 10242dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. 10243dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. 10244 10245AC_PREREQ([2.50]) 10246 10247AC_DEFUN([AM_NLS], 10248[ 10249 AC_MSG_CHECKING([whether NLS is requested]) 10250 dnl Default is enabled NLS 10251 AC_ARG_ENABLE([nls], 10252 [ --disable-nls do not use Native Language Support], 10253 USE_NLS=$enableval, USE_NLS=yes) 10254 AC_MSG_RESULT([$USE_NLS]) 10255 AC_SUBST([USE_NLS]) 10256]) 10257 10258# po.m4 serial 17 (gettext-0.18) 10259dnl Copyright (C) 1995-2010 Free Software Foundation, Inc. 10260dnl This file is free software; the Free Software Foundation 10261dnl gives unlimited permission to copy and/or distribute it, 10262dnl with or without modifications, as long as this notice is preserved. 10263dnl 10264dnl This file can can be used in projects which are not available under 10265dnl the GNU General Public License or the GNU Library General Public 10266dnl License but which still want to provide support for the GNU gettext 10267dnl functionality. 10268dnl Please note that the actual code of the GNU gettext library is covered 10269dnl by the GNU Library General Public License, and the rest of the GNU 10270dnl gettext package package is covered by the GNU General Public License. 10271dnl They are *not* in the public domain. 10272 10273dnl Authors: 10274dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. 10275dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. 10276 10277AC_PREREQ([2.50]) 10278 10279dnl Checks for all prerequisites of the po subdirectory. 10280AC_DEFUN([AM_PO_SUBDIRS], 10281[ 10282 AC_REQUIRE([AC_PROG_MAKE_SET])dnl 10283 AC_REQUIRE([AC_PROG_INSTALL])dnl 10284 AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake 10285 AC_REQUIRE([AM_NLS])dnl 10286 10287 dnl Release version of the gettext macros. This is used to ensure that 10288 dnl the gettext macros and po/Makefile.in.in are in sync. 10289 AC_SUBST([GETTEXT_MACRO_VERSION], [0.18]) 10290 10291 dnl Perform the following tests also if --disable-nls has been given, 10292 dnl because they are needed for "make dist" to work. 10293 10294 dnl Search for GNU msgfmt in the PATH. 10295 dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. 10296 dnl The second test excludes FreeBSD msgfmt. 10297 AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, 10298 [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && 10299 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], 10300 :) 10301 AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT]) 10302 10303 dnl Test whether it is GNU msgfmt >= 0.15. 10304changequote(,)dnl 10305 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 10306 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; 10307 *) MSGFMT_015=$MSGFMT ;; 10308 esac 10309changequote([,])dnl 10310 AC_SUBST([MSGFMT_015]) 10311changequote(,)dnl 10312 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 10313 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 10314 *) GMSGFMT_015=$GMSGFMT ;; 10315 esac 10316changequote([,])dnl 10317 AC_SUBST([GMSGFMT_015]) 10318 10319 dnl Search for GNU xgettext 0.12 or newer in the PATH. 10320 dnl The first test excludes Solaris xgettext and early GNU xgettext versions. 10321 dnl The second test excludes FreeBSD xgettext. 10322 AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, 10323 [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && 10324 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], 10325 :) 10326 dnl Remove leftover from FreeBSD xgettext call. 10327 rm -f messages.po 10328 10329 dnl Test whether it is GNU xgettext >= 0.15. 10330changequote(,)dnl 10331 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 10332 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 10333 *) XGETTEXT_015=$XGETTEXT ;; 10334 esac 10335changequote([,])dnl 10336 AC_SUBST([XGETTEXT_015]) 10337 10338 dnl Search for GNU msgmerge 0.11 or newer in the PATH. 10339 AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, 10340 [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :) 10341 10342 dnl Installation directories. 10343 dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we 10344 dnl have to define it here, so that it can be used in po/Makefile. 10345 test -n "$localedir" || localedir='${datadir}/locale' 10346 AC_SUBST([localedir]) 10347 10348 dnl Support for AM_XGETTEXT_OPTION. 10349 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= 10350 AC_SUBST([XGETTEXT_EXTRA_OPTIONS]) 10351 10352 AC_CONFIG_COMMANDS([po-directories], [[ 10353 for ac_file in $CONFIG_FILES; do 10354 # Support "outfile[:infile[:infile...]]" 10355 case "$ac_file" in 10356 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 10357 esac 10358 # PO directories have a Makefile.in generated from Makefile.in.in. 10359 case "$ac_file" in */Makefile.in) 10360 # Adjust a relative srcdir. 10361 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 10362 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 10363 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 10364 # In autoconf-2.13 it is called $ac_given_srcdir. 10365 # In autoconf-2.50 it is called $srcdir. 10366 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 10367 case "$ac_given_srcdir" in 10368 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 10369 /*) top_srcdir="$ac_given_srcdir" ;; 10370 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 10371 esac 10372 # Treat a directory as a PO directory if and only if it has a 10373 # POTFILES.in file. This allows packages to have multiple PO 10374 # directories under different names or in different locations. 10375 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 10376 rm -f "$ac_dir/POTFILES" 10377 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 10378 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 10379 POMAKEFILEDEPS="POTFILES.in" 10380 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 10381 # on $ac_dir but don't depend on user-specified configuration 10382 # parameters. 10383 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 10384 # The LINGUAS file contains the set of available languages. 10385 if test -n "$OBSOLETE_ALL_LINGUAS"; then 10386 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 10387 fi 10388 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 10389 # Hide the ALL_LINGUAS assigment from automake < 1.5. 10390 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 10391 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 10392 else 10393 # The set of available languages was given in configure.in. 10394 # Hide the ALL_LINGUAS assigment from automake < 1.5. 10395 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 10396 fi 10397 # Compute POFILES 10398 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 10399 # Compute UPDATEPOFILES 10400 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 10401 # Compute DUMMYPOFILES 10402 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 10403 # Compute GMOFILES 10404 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 10405 case "$ac_given_srcdir" in 10406 .) srcdirpre= ;; 10407 *) srcdirpre='$(srcdir)/' ;; 10408 esac 10409 POFILES= 10410 UPDATEPOFILES= 10411 DUMMYPOFILES= 10412 GMOFILES= 10413 for lang in $ALL_LINGUAS; do 10414 POFILES="$POFILES $srcdirpre$lang.po" 10415 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 10416 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 10417 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 10418 done 10419 # CATALOGS depends on both $ac_dir and the user's LINGUAS 10420 # environment variable. 10421 INST_LINGUAS= 10422 if test -n "$ALL_LINGUAS"; then 10423 for presentlang in $ALL_LINGUAS; do 10424 useit=no 10425 if test "%UNSET%" != "$LINGUAS"; then 10426 desiredlanguages="$LINGUAS" 10427 else 10428 desiredlanguages="$ALL_LINGUAS" 10429 fi 10430 for desiredlang in $desiredlanguages; do 10431 # Use the presentlang catalog if desiredlang is 10432 # a. equal to presentlang, or 10433 # b. a variant of presentlang (because in this case, 10434 # presentlang can be used as a fallback for messages 10435 # which are not translated in the desiredlang catalog). 10436 case "$desiredlang" in 10437 "$presentlang"*) useit=yes;; 10438 esac 10439 done 10440 if test $useit = yes; then 10441 INST_LINGUAS="$INST_LINGUAS $presentlang" 10442 fi 10443 done 10444 fi 10445 CATALOGS= 10446 if test -n "$INST_LINGUAS"; then 10447 for lang in $INST_LINGUAS; do 10448 CATALOGS="$CATALOGS $lang.gmo" 10449 done 10450 fi 10451 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 10452 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 10453 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 10454 if test -f "$f"; then 10455 case "$f" in 10456 *.orig | *.bak | *~) ;; 10457 *) cat "$f" >> "$ac_dir/Makefile" ;; 10458 esac 10459 fi 10460 done 10461 fi 10462 ;; 10463 esac 10464 done]], 10465 [# Capture the value of obsolete ALL_LINGUAS because we need it to compute 10466 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 10467 # from automake < 1.5. 10468 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 10469 # Capture the value of LINGUAS because we need it to compute CATALOGS. 10470 LINGUAS="${LINGUAS-%UNSET%}" 10471 ]) 10472]) 10473 10474dnl Postprocesses a Makefile in a directory containing PO files. 10475AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], 10476[ 10477 # When this code is run, in config.status, two variables have already been 10478 # set: 10479 # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in, 10480 # - LINGUAS is the value of the environment variable LINGUAS at configure 10481 # time. 10482 10483changequote(,)dnl 10484 # Adjust a relative srcdir. 10485 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 10486 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 10487 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 10488 # In autoconf-2.13 it is called $ac_given_srcdir. 10489 # In autoconf-2.50 it is called $srcdir. 10490 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 10491 case "$ac_given_srcdir" in 10492 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 10493 /*) top_srcdir="$ac_given_srcdir" ;; 10494 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 10495 esac 10496 10497 # Find a way to echo strings without interpreting backslash. 10498 if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then 10499 gt_echo='echo' 10500 else 10501 if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then 10502 gt_echo='printf %s\n' 10503 else 10504 echo_func () { 10505 cat <<EOT 10506$* 10507EOT 10508 } 10509 gt_echo='echo_func' 10510 fi 10511 fi 10512 10513 # A sed script that extracts the value of VARIABLE from a Makefile. 10514 sed_x_variable=' 10515# Test if the hold space is empty. 10516x 10517s/P/P/ 10518x 10519ta 10520# Yes it was empty. Look if we have the expected variable definition. 10521/^[ ]*VARIABLE[ ]*=/{ 10522 # Seen the first line of the variable definition. 10523 s/^[ ]*VARIABLE[ ]*=// 10524 ba 10525} 10526bd 10527:a 10528# Here we are processing a line from the variable definition. 10529# Remove comment, more precisely replace it with a space. 10530s/#.*$/ / 10531# See if the line ends in a backslash. 10532tb 10533:b 10534s/\\$// 10535# Print the line, without the trailing backslash. 10536p 10537tc 10538# There was no trailing backslash. The end of the variable definition is 10539# reached. Clear the hold space. 10540s/^.*$// 10541x 10542bd 10543:c 10544# A trailing backslash means that the variable definition continues in the 10545# next line. Put a nonempty string into the hold space to indicate this. 10546s/^.*$/P/ 10547x 10548:d 10549' 10550changequote([,])dnl 10551 10552 # Set POTFILES to the value of the Makefile variable POTFILES. 10553 sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'` 10554 POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"` 10555 # Compute POTFILES_DEPS as 10556 # $(foreach file, $(POTFILES), $(top_srcdir)/$(file)) 10557 POTFILES_DEPS= 10558 for file in $POTFILES; do 10559 POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file" 10560 done 10561 POMAKEFILEDEPS="" 10562 10563 if test -n "$OBSOLETE_ALL_LINGUAS"; then 10564 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 10565 fi 10566 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 10567 # The LINGUAS file contains the set of available languages. 10568 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 10569 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 10570 else 10571 # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS. 10572 sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'` 10573 ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"` 10574 fi 10575 # Hide the ALL_LINGUAS assigment from automake < 1.5. 10576 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 10577 # Compute POFILES 10578 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 10579 # Compute UPDATEPOFILES 10580 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 10581 # Compute DUMMYPOFILES 10582 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 10583 # Compute GMOFILES 10584 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 10585 # Compute PROPERTIESFILES 10586 # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties) 10587 # Compute CLASSFILES 10588 # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class) 10589 # Compute QMFILES 10590 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm) 10591 # Compute MSGFILES 10592 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg) 10593 # Compute RESOURCESDLLFILES 10594 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll) 10595 case "$ac_given_srcdir" in 10596 .) srcdirpre= ;; 10597 *) srcdirpre='$(srcdir)/' ;; 10598 esac 10599 POFILES= 10600 UPDATEPOFILES= 10601 DUMMYPOFILES= 10602 GMOFILES= 10603 PROPERTIESFILES= 10604 CLASSFILES= 10605 QMFILES= 10606 MSGFILES= 10607 RESOURCESDLLFILES= 10608 for lang in $ALL_LINGUAS; do 10609 POFILES="$POFILES $srcdirpre$lang.po" 10610 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 10611 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 10612 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 10613 PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties" 10614 CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class" 10615 QMFILES="$QMFILES $srcdirpre$lang.qm" 10616 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 10617 MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg" 10618 frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` 10619 RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll" 10620 done 10621 # CATALOGS depends on both $ac_dir and the user's LINGUAS 10622 # environment variable. 10623 INST_LINGUAS= 10624 if test -n "$ALL_LINGUAS"; then 10625 for presentlang in $ALL_LINGUAS; do 10626 useit=no 10627 if test "%UNSET%" != "$LINGUAS"; then 10628 desiredlanguages="$LINGUAS" 10629 else 10630 desiredlanguages="$ALL_LINGUAS" 10631 fi 10632 for desiredlang in $desiredlanguages; do 10633 # Use the presentlang catalog if desiredlang is 10634 # a. equal to presentlang, or 10635 # b. a variant of presentlang (because in this case, 10636 # presentlang can be used as a fallback for messages 10637 # which are not translated in the desiredlang catalog). 10638 case "$desiredlang" in 10639 "$presentlang"*) useit=yes;; 10640 esac 10641 done 10642 if test $useit = yes; then 10643 INST_LINGUAS="$INST_LINGUAS $presentlang" 10644 fi 10645 done 10646 fi 10647 CATALOGS= 10648 JAVACATALOGS= 10649 QTCATALOGS= 10650 TCLCATALOGS= 10651 CSHARPCATALOGS= 10652 if test -n "$INST_LINGUAS"; then 10653 for lang in $INST_LINGUAS; do 10654 CATALOGS="$CATALOGS $lang.gmo" 10655 JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties" 10656 QTCATALOGS="$QTCATALOGS $lang.qm" 10657 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 10658 TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg" 10659 frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` 10660 CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll" 10661 done 10662 fi 10663 10664 sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp" 10665 if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then 10666 # Add dependencies that cannot be formulated as a simple suffix rule. 10667 for lang in $ALL_LINGUAS; do 10668 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 10669 cat >> "$ac_file.tmp" <<EOF 10670$frobbedlang.msg: $lang.po 10671 @echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \ 10672 \$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } 10673EOF 10674 done 10675 fi 10676 if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then 10677 # Add dependencies that cannot be formulated as a simple suffix rule. 10678 for lang in $ALL_LINGUAS; do 10679 frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` 10680 cat >> "$ac_file.tmp" <<EOF 10681$frobbedlang/\$(DOMAIN).resources.dll: $lang.po 10682 @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \ 10683 \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } 10684EOF 10685 done 10686 fi 10687 if test -n "$POMAKEFILEDEPS"; then 10688 cat >> "$ac_file.tmp" <<EOF 10689Makefile: $POMAKEFILEDEPS 10690EOF 10691 fi 10692 mv "$ac_file.tmp" "$ac_file" 10693]) 10694 10695dnl Initializes the accumulator used by AM_XGETTEXT_OPTION. 10696AC_DEFUN([AM_XGETTEXT_OPTION_INIT], 10697[ 10698 XGETTEXT_EXTRA_OPTIONS= 10699]) 10700 10701dnl Registers an option to be passed to xgettext in the po subdirectory. 10702AC_DEFUN([AM_XGETTEXT_OPTION], 10703[ 10704 AC_REQUIRE([AM_XGETTEXT_OPTION_INIT]) 10705 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1" 10706]) 10707 10708# progtest.m4 serial 6 (gettext-0.18) 10709dnl Copyright (C) 1996-2003, 2005, 2008-2010 Free Software Foundation, Inc. 10710dnl This file is free software; the Free Software Foundation 10711dnl gives unlimited permission to copy and/or distribute it, 10712dnl with or without modifications, as long as this notice is preserved. 10713dnl 10714dnl This file can can be used in projects which are not available under 10715dnl the GNU General Public License or the GNU Library General Public 10716dnl License but which still want to provide support for the GNU gettext 10717dnl functionality. 10718dnl Please note that the actual code of the GNU gettext library is covered 10719dnl by the GNU Library General Public License, and the rest of the GNU 10720dnl gettext package package is covered by the GNU General Public License. 10721dnl They are *not* in the public domain. 10722 10723dnl Authors: 10724dnl Ulrich Drepper <drepper@cygnus.com>, 1996. 10725 10726AC_PREREQ([2.50]) 10727 10728# Search path for a program which passes the given test. 10729 10730dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, 10731dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) 10732AC_DEFUN([AM_PATH_PROG_WITH_TEST], 10733[ 10734# Prepare PATH_SEPARATOR. 10735# The user is always right. 10736if test "${PATH_SEPARATOR+set}" != set; then 10737 echo "#! /bin/sh" >conf$$.sh 10738 echo "exit 0" >>conf$$.sh 10739 chmod +x conf$$.sh 10740 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 10741 PATH_SEPARATOR=';' 10742 else 10743 PATH_SEPARATOR=: 10744 fi 10745 rm -f conf$$.sh 10746fi 10747 10748# Find out how to test for executable files. Don't use a zero-byte file, 10749# as systems may use methods other than mode bits to determine executability. 10750cat >conf$$.file <<_ASEOF 10751#! /bin/sh 10752exit 0 10753_ASEOF 10754chmod +x conf$$.file 10755if test -x conf$$.file >/dev/null 2>&1; then 10756 ac_executable_p="test -x" 10757else 10758 ac_executable_p="test -f" 10759fi 10760rm -f conf$$.file 10761 10762# Extract the first word of "$2", so it can be a program name with args. 10763set dummy $2; ac_word=[$]2 10764AC_MSG_CHECKING([for $ac_word]) 10765AC_CACHE_VAL([ac_cv_path_$1], 10766[case "[$]$1" in 10767 [[\\/]]* | ?:[[\\/]]*) 10768 ac_cv_path_$1="[$]$1" # Let the user override the test with a path. 10769 ;; 10770 *) 10771 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 10772 for ac_dir in ifelse([$5], , $PATH, [$5]); do 10773 IFS="$ac_save_IFS" 10774 test -z "$ac_dir" && ac_dir=. 10775 for ac_exec_ext in '' $ac_executable_extensions; do 10776 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 10777 echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD 10778 if [$3]; then 10779 ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" 10780 break 2 10781 fi 10782 fi 10783 done 10784 done 10785 IFS="$ac_save_IFS" 10786dnl If no 4th arg is given, leave the cache variable unset, 10787dnl so AC_PATH_PROGS will keep looking. 10788ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" 10789])dnl 10790 ;; 10791esac])dnl 10792$1="$ac_cv_path_$1" 10793if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then 10794 AC_MSG_RESULT([$][$1]) 10795else 10796 AC_MSG_RESULT([no]) 10797fi 10798AC_SUBST([$1])dnl 10799]) 10800 10801# Configure paths for SDL 10802# Sam Lantinga 9/21/99 10803# stolen from Manish Singh 10804# stolen back from Frank Belew 10805# stolen from Manish Singh 10806# Shamelessly stolen from Owen Taylor 10807 10808# serial 1 10809 10810dnl AM_PATH_SDL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) 10811dnl Test for SDL, and define SDL_CFLAGS and SDL_LIBS 10812dnl 10813AC_DEFUN([AM_PATH_SDL], 10814[dnl 10815dnl Get the cflags and libraries from the sdl-config script 10816dnl 10817AC_ARG_WITH(sdl-prefix,[ --with-sdl-prefix=PFX Prefix where SDL is installed (optional)], 10818 sdl_prefix="$withval", sdl_prefix="") 10819AC_ARG_WITH(sdl-exec-prefix,[ --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)], 10820 sdl_exec_prefix="$withval", sdl_exec_prefix="") 10821AC_ARG_ENABLE(sdltest, [ --disable-sdltest Do not try to compile and run a test SDL program], 10822 , enable_sdltest=yes) 10823 10824 if test x$sdl_exec_prefix != x ; then 10825 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix" 10826 if test x${SDL_CONFIG+set} != xset ; then 10827 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config 10828 fi 10829 fi 10830 if test x$sdl_prefix != x ; then 10831 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix" 10832 if test x${SDL_CONFIG+set} != xset ; then 10833 SDL_CONFIG=$sdl_prefix/bin/sdl-config 10834 fi 10835 fi 10836 10837 as_save_PATH="$PATH" 10838 if test "x$prefix" != xNONE; then 10839 PATH="$prefix/bin:$prefix/usr/bin:$PATH" 10840 fi 10841 AC_PATH_PROG(SDL_CONFIG, sdl-config, no, [$PATH]) 10842 PATH="$as_save_PATH" 10843 min_sdl_version=ifelse([$1], ,0.11.0,$1) 10844 AC_MSG_CHECKING(for SDL - version >= $min_sdl_version) 10845 no_sdl="" 10846 if test "$SDL_CONFIG" = "no" ; then 10847 no_sdl=yes 10848 else 10849 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags` 10850 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs` 10851 10852 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \ 10853 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` 10854 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \ 10855 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` 10856 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ 10857 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` 10858 if test "x$enable_sdltest" = "xyes" ; then 10859 ac_save_CFLAGS="$CFLAGS" 10860 ac_save_CXXFLAGS="$CXXFLAGS" 10861 ac_save_LIBS="$LIBS" 10862 CFLAGS="$CFLAGS $SDL_CFLAGS" 10863 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 10864 LIBS="$LIBS $SDL_LIBS" 10865dnl 10866dnl Now check if the installed SDL is sufficiently new. (Also sanity 10867dnl checks the results of sdl-config to some extent 10868dnl 10869 rm -f conf.sdltest 10870 AC_TRY_RUN([ 10871#include <stdio.h> 10872#include <stdlib.h> 10873#include <string.h> 10874#include "SDL.h" 10875 10876char* 10877my_strdup (char *str) 10878{ 10879 char *new_str; 10880 10881 if (str) 10882 { 10883 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); 10884 strcpy (new_str, str); 10885 } 10886 else 10887 new_str = NULL; 10888 10889 return new_str; 10890} 10891 10892int main (int argc, char *argv[]) 10893{ 10894 int major, minor, micro; 10895 char *tmp_version; 10896 10897 /* This hangs on some systems (?) 10898 system ("touch conf.sdltest"); 10899 */ 10900 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } 10901 10902 /* HP/UX 9 (%@#!) writes to sscanf strings */ 10903 tmp_version = my_strdup("$min_sdl_version"); 10904 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 10905 printf("%s, bad version string\n", "$min_sdl_version"); 10906 exit(1); 10907 } 10908 10909 if (($sdl_major_version > major) || 10910 (($sdl_major_version == major) && ($sdl_minor_version > minor)) || 10911 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) 10912 { 10913 return 0; 10914 } 10915 else 10916 { 10917 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); 10918 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); 10919 printf("*** best to upgrade to the required version.\n"); 10920 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); 10921 printf("*** to point to the correct copy of sdl-config, and remove the file\n"); 10922 printf("*** config.cache before re-running configure\n"); 10923 return 1; 10924 } 10925} 10926 10927],, no_sdl=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) 10928 CFLAGS="$ac_save_CFLAGS" 10929 CXXFLAGS="$ac_save_CXXFLAGS" 10930 LIBS="$ac_save_LIBS" 10931 fi 10932 fi 10933 if test "x$no_sdl" = x ; then 10934 AC_MSG_RESULT(yes) 10935 ifelse([$2], , :, [$2]) 10936 else 10937 AC_MSG_RESULT(no) 10938 if test "$SDL_CONFIG" = "no" ; then 10939 echo "*** The sdl-config script installed by SDL could not be found" 10940 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" 10941 echo "*** your path, or set the SDL_CONFIG environment variable to the" 10942 echo "*** full path to sdl-config." 10943 else 10944 if test -f conf.sdltest ; then 10945 : 10946 else 10947 echo "*** Could not run SDL test program, checking why..." 10948 CFLAGS="$CFLAGS $SDL_CFLAGS" 10949 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 10950 LIBS="$LIBS $SDL_LIBS" 10951 AC_TRY_LINK([ 10952#include <stdio.h> 10953#include "SDL.h" 10954 10955int main(int argc, char *argv[]) 10956{ return 0; } 10957#undef main 10958#define main K_and_R_C_main 10959], [ return 0; ], 10960 [ echo "*** The test program compiled, but did not run. This usually means" 10961 echo "*** that the run-time linker is not finding SDL or finding the wrong" 10962 echo "*** version of SDL. If it is not finding SDL, you'll need to set your" 10963 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 10964 echo "*** to the installed location Also, make sure you have run ldconfig if that" 10965 echo "*** is required on your system" 10966 echo "***" 10967 echo "*** If you have an old version installed, it is best to remove it, although" 10968 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"], 10969 [ echo "*** The test program failed to compile or link. See the file config.log for the" 10970 echo "*** exact error that occured. This usually means SDL was incorrectly installed" 10971 echo "*** or that you have moved SDL since it was installed. In the latter case, you" 10972 echo "*** may want to edit the sdl-config script: $SDL_CONFIG" ]) 10973 CFLAGS="$ac_save_CFLAGS" 10974 CXXFLAGS="$ac_save_CXXFLAGS" 10975 LIBS="$ac_save_LIBS" 10976 fi 10977 fi 10978 SDL_CFLAGS="" 10979 SDL_LIBS="" 10980 ifelse([$3], , :, [$3]) 10981 fi 10982 AC_SUBST(SDL_CFLAGS) 10983 AC_SUBST(SDL_LIBS) 10984 rm -f conf.sdltest 10985]) 10986 10987# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software 10988# Foundation, Inc. 10989# 10990# This file is free software; the Free Software Foundation 10991# gives unlimited permission to copy and/or distribute it, 10992# with or without modifications, as long as this notice is preserved. 10993 10994# serial 1 10995 10996# AM_AUTOMAKE_VERSION(VERSION) 10997# ---------------------------- 10998# Automake X.Y traces this macro to ensure aclocal.m4 has been 10999# generated from the m4 files accompanying Automake X.Y. 11000# (This private macro should not be called outside this file.) 11001AC_DEFUN([AM_AUTOMAKE_VERSION], 11002[am__api_version='1.11' 11003dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 11004dnl require some minimum version. Point them to the right macro. 11005m4_if([$1], [1.11.6], [], 11006 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 11007]) 11008 11009# _AM_AUTOCONF_VERSION(VERSION) 11010# ----------------------------- 11011# aclocal traces this macro to find the Autoconf version. 11012# This is a private macro too. Using m4_define simplifies 11013# the logic in aclocal, which can simply ignore this definition. 11014m4_define([_AM_AUTOCONF_VERSION], []) 11015 11016# AM_SET_CURRENT_AUTOMAKE_VERSION 11017# ------------------------------- 11018# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 11019# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 11020AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 11021[AM_AUTOMAKE_VERSION([1.11.6])dnl 11022m4_ifndef([AC_AUTOCONF_VERSION], 11023 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 11024_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 11025 11026# AM_AUX_DIR_EXPAND -*- Autoconf -*- 11027 11028# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. 11029# 11030# This file is free software; the Free Software Foundation 11031# gives unlimited permission to copy and/or distribute it, 11032# with or without modifications, as long as this notice is preserved. 11033 11034# serial 1 11035 11036# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 11037# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 11038# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 11039# 11040# Of course, Automake must honor this variable whenever it calls a 11041# tool from the auxiliary directory. The problem is that $srcdir (and 11042# therefore $ac_aux_dir as well) can be either absolute or relative, 11043# depending on how configure is run. This is pretty annoying, since 11044# it makes $ac_aux_dir quite unusable in subdirectories: in the top 11045# source directory, any form will work fine, but in subdirectories a 11046# relative path needs to be adjusted first. 11047# 11048# $ac_aux_dir/missing 11049# fails when called from a subdirectory if $ac_aux_dir is relative 11050# $top_srcdir/$ac_aux_dir/missing 11051# fails if $ac_aux_dir is absolute, 11052# fails when called from a subdirectory in a VPATH build with 11053# a relative $ac_aux_dir 11054# 11055# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 11056# are both prefixed by $srcdir. In an in-source build this is usually 11057# harmless because $srcdir is `.', but things will broke when you 11058# start a VPATH build or use an absolute $srcdir. 11059# 11060# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 11061# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 11062# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 11063# and then we would define $MISSING as 11064# MISSING="\${SHELL} $am_aux_dir/missing" 11065# This will work as long as MISSING is not called from configure, because 11066# unfortunately $(top_srcdir) has no meaning in configure. 11067# However there are other variables, like CC, which are often used in 11068# configure, and could therefore not use this "fixed" $ac_aux_dir. 11069# 11070# Another solution, used here, is to always expand $ac_aux_dir to an 11071# absolute PATH. The drawback is that using absolute paths prevent a 11072# configured tree to be moved without reconfiguration. 11073 11074AC_DEFUN([AM_AUX_DIR_EXPAND], 11075[dnl Rely on autoconf to set up CDPATH properly. 11076AC_PREREQ([2.50])dnl 11077# expand $ac_aux_dir to an absolute path 11078am_aux_dir=`cd $ac_aux_dir && pwd` 11079]) 11080 11081# AM_CONDITIONAL -*- Autoconf -*- 11082 11083# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 11084# Free Software Foundation, Inc. 11085# 11086# This file is free software; the Free Software Foundation 11087# gives unlimited permission to copy and/or distribute it, 11088# with or without modifications, as long as this notice is preserved. 11089 11090# serial 9 11091 11092# AM_CONDITIONAL(NAME, SHELL-CONDITION) 11093# ------------------------------------- 11094# Define a conditional. 11095AC_DEFUN([AM_CONDITIONAL], 11096[AC_PREREQ(2.52)dnl 11097 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 11098 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 11099AC_SUBST([$1_TRUE])dnl 11100AC_SUBST([$1_FALSE])dnl 11101_AM_SUBST_NOTMAKE([$1_TRUE])dnl 11102_AM_SUBST_NOTMAKE([$1_FALSE])dnl 11103m4_define([_AM_COND_VALUE_$1], [$2])dnl 11104if $2; then 11105 $1_TRUE= 11106 $1_FALSE='#' 11107else 11108 $1_TRUE='#' 11109 $1_FALSE= 11110fi 11111AC_CONFIG_COMMANDS_PRE( 11112[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 11113 AC_MSG_ERROR([[conditional "$1" was never defined. 11114Usually this means the macro was only invoked conditionally.]]) 11115fi])]) 11116 11117# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, 11118# 2010, 2011 Free Software Foundation, Inc. 11119# 11120# This file is free software; the Free Software Foundation 11121# gives unlimited permission to copy and/or distribute it, 11122# with or without modifications, as long as this notice is preserved. 11123 11124# serial 12 11125 11126# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 11127# written in clear, in which case automake, when reading aclocal.m4, 11128# will think it sees a *use*, and therefore will trigger all it's 11129# C support machinery. Also note that it means that autoscan, seeing 11130# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 11131 11132 11133# _AM_DEPENDENCIES(NAME) 11134# ---------------------- 11135# See how the compiler implements dependency checking. 11136# NAME is "CC", "CXX", "GCJ", or "OBJC". 11137# We try a few techniques and use that to set a single cache variable. 11138# 11139# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 11140# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 11141# dependency, and given that the user is not expected to run this macro, 11142# just rely on AC_PROG_CC. 11143AC_DEFUN([_AM_DEPENDENCIES], 11144[AC_REQUIRE([AM_SET_DEPDIR])dnl 11145AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 11146AC_REQUIRE([AM_MAKE_INCLUDE])dnl 11147AC_REQUIRE([AM_DEP_TRACK])dnl 11148 11149ifelse([$1], CC, [depcc="$CC" am_compiler_list=], 11150 [$1], CXX, [depcc="$CXX" am_compiler_list=], 11151 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 11152 [$1], UPC, [depcc="$UPC" am_compiler_list=], 11153 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 11154 [depcc="$$1" am_compiler_list=]) 11155 11156AC_CACHE_CHECK([dependency style of $depcc], 11157 [am_cv_$1_dependencies_compiler_type], 11158[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 11159 # We make a subdir and do the tests there. Otherwise we can end up 11160 # making bogus files that we don't know about and never remove. For 11161 # instance it was reported that on HP-UX the gcc test will end up 11162 # making a dummy file named `D' -- because `-MD' means `put the output 11163 # in D'. 11164 rm -rf conftest.dir 11165 mkdir conftest.dir 11166 # Copy depcomp to subdir because otherwise we won't find it if we're 11167 # using a relative directory. 11168 cp "$am_depcomp" conftest.dir 11169 cd conftest.dir 11170 # We will build objects and dependencies in a subdirectory because 11171 # it helps to detect inapplicable dependency modes. For instance 11172 # both Tru64's cc and ICC support -MD to output dependencies as a 11173 # side effect of compilation, but ICC will put the dependencies in 11174 # the current directory while Tru64 will put them in the object 11175 # directory. 11176 mkdir sub 11177 11178 am_cv_$1_dependencies_compiler_type=none 11179 if test "$am_compiler_list" = ""; then 11180 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 11181 fi 11182 am__universal=false 11183 m4_case([$1], [CC], 11184 [case " $depcc " in #( 11185 *\ -arch\ *\ -arch\ *) am__universal=true ;; 11186 esac], 11187 [CXX], 11188 [case " $depcc " in #( 11189 *\ -arch\ *\ -arch\ *) am__universal=true ;; 11190 esac]) 11191 11192 for depmode in $am_compiler_list; do 11193 # Setup a source with many dependencies, because some compilers 11194 # like to wrap large dependency lists on column 80 (with \), and 11195 # we should not choose a depcomp mode which is confused by this. 11196 # 11197 # We need to recreate these files for each test, as the compiler may 11198 # overwrite some of them when testing with obscure command lines. 11199 # This happens at least with the AIX C compiler. 11200 : > sub/conftest.c 11201 for i in 1 2 3 4 5 6; do 11202 echo '#include "conftst'$i'.h"' >> sub/conftest.c 11203 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 11204 # Solaris 8's {/usr,}/bin/sh. 11205 touch sub/conftst$i.h 11206 done 11207 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 11208 11209 # We check with `-c' and `-o' for the sake of the "dashmstdout" 11210 # mode. It turns out that the SunPro C++ compiler does not properly 11211 # handle `-M -o', and we need to detect this. Also, some Intel 11212 # versions had trouble with output in subdirs 11213 am__obj=sub/conftest.${OBJEXT-o} 11214 am__minus_obj="-o $am__obj" 11215 case $depmode in 11216 gcc) 11217 # This depmode causes a compiler race in universal mode. 11218 test "$am__universal" = false || continue 11219 ;; 11220 nosideeffect) 11221 # after this tag, mechanisms are not by side-effect, so they'll 11222 # only be used when explicitly requested 11223 if test "x$enable_dependency_tracking" = xyes; then 11224 continue 11225 else 11226 break 11227 fi 11228 ;; 11229 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 11230 # This compiler won't grok `-c -o', but also, the minuso test has 11231 # not run yet. These depmodes are late enough in the game, and 11232 # so weak that their functioning should not be impacted. 11233 am__obj=conftest.${OBJEXT-o} 11234 am__minus_obj= 11235 ;; 11236 none) break ;; 11237 esac 11238 if depmode=$depmode \ 11239 source=sub/conftest.c object=$am__obj \ 11240 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 11241 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 11242 >/dev/null 2>conftest.err && 11243 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 11244 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 11245 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 11246 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 11247 # icc doesn't choke on unknown options, it will just issue warnings 11248 # or remarks (even with -Werror). So we grep stderr for any message 11249 # that says an option was ignored or not supported. 11250 # When given -MP, icc 7.0 and 7.1 complain thusly: 11251 # icc: Command line warning: ignoring option '-M'; no argument required 11252 # The diagnosis changed in icc 8.0: 11253 # icc: Command line remark: option '-MP' not supported 11254 if (grep 'ignoring option' conftest.err || 11255 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 11256 am_cv_$1_dependencies_compiler_type=$depmode 11257 break 11258 fi 11259 fi 11260 done 11261 11262 cd .. 11263 rm -rf conftest.dir 11264else 11265 am_cv_$1_dependencies_compiler_type=none 11266fi 11267]) 11268AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 11269AM_CONDITIONAL([am__fastdep$1], [ 11270 test "x$enable_dependency_tracking" != xno \ 11271 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 11272]) 11273 11274 11275# AM_SET_DEPDIR 11276# ------------- 11277# Choose a directory name for dependency files. 11278# This macro is AC_REQUIREd in _AM_DEPENDENCIES 11279AC_DEFUN([AM_SET_DEPDIR], 11280[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 11281AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 11282]) 11283 11284 11285# AM_DEP_TRACK 11286# ------------ 11287AC_DEFUN([AM_DEP_TRACK], 11288[AC_ARG_ENABLE(dependency-tracking, 11289[ --disable-dependency-tracking speeds up one-time build 11290 --enable-dependency-tracking do not reject slow dependency extractors]) 11291if test "x$enable_dependency_tracking" != xno; then 11292 am_depcomp="$ac_aux_dir/depcomp" 11293 AMDEPBACKSLASH='\' 11294 am__nodep='_no' 11295fi 11296AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 11297AC_SUBST([AMDEPBACKSLASH])dnl 11298_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 11299AC_SUBST([am__nodep])dnl 11300_AM_SUBST_NOTMAKE([am__nodep])dnl 11301]) 11302 11303# Generate code to set up dependency tracking. -*- Autoconf -*- 11304 11305# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 11306# Free Software Foundation, Inc. 11307# 11308# This file is free software; the Free Software Foundation 11309# gives unlimited permission to copy and/or distribute it, 11310# with or without modifications, as long as this notice is preserved. 11311 11312#serial 5 11313 11314# _AM_OUTPUT_DEPENDENCY_COMMANDS 11315# ------------------------------ 11316AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 11317[{ 11318 # Autoconf 2.62 quotes --file arguments for eval, but not when files 11319 # are listed without --file. Let's play safe and only enable the eval 11320 # if we detect the quoting. 11321 case $CONFIG_FILES in 11322 *\'*) eval set x "$CONFIG_FILES" ;; 11323 *) set x $CONFIG_FILES ;; 11324 esac 11325 shift 11326 for mf 11327 do 11328 # Strip MF so we end up with the name of the file. 11329 mf=`echo "$mf" | sed -e 's/:.*$//'` 11330 # Check whether this is an Automake generated Makefile or not. 11331 # We used to match only the files named `Makefile.in', but 11332 # some people rename them; so instead we look at the file content. 11333 # Grep'ing the first line is not enough: some people post-process 11334 # each Makefile.in and add a new line on top of each file to say so. 11335 # Grep'ing the whole file is not good either: AIX grep has a line 11336 # limit of 2048, but all sed's we know have understand at least 4000. 11337 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 11338 dirpart=`AS_DIRNAME("$mf")` 11339 else 11340 continue 11341 fi 11342 # Extract the definition of DEPDIR, am__include, and am__quote 11343 # from the Makefile without running `make'. 11344 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 11345 test -z "$DEPDIR" && continue 11346 am__include=`sed -n 's/^am__include = //p' < "$mf"` 11347 test -z "am__include" && continue 11348 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 11349 # When using ansi2knr, U may be empty or an underscore; expand it 11350 U=`sed -n 's/^U = //p' < "$mf"` 11351 # Find all dependency output files, they are included files with 11352 # $(DEPDIR) in their names. We invoke sed twice because it is the 11353 # simplest approach to changing $(DEPDIR) to its actual value in the 11354 # expansion. 11355 for file in `sed -n " 11356 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 11357 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 11358 # Make sure the directory exists. 11359 test -f "$dirpart/$file" && continue 11360 fdir=`AS_DIRNAME(["$file"])` 11361 AS_MKDIR_P([$dirpart/$fdir]) 11362 # echo "creating $dirpart/$file" 11363 echo '# dummy' > "$dirpart/$file" 11364 done 11365 done 11366} 11367])# _AM_OUTPUT_DEPENDENCY_COMMANDS 11368 11369 11370# AM_OUTPUT_DEPENDENCY_COMMANDS 11371# ----------------------------- 11372# This macro should only be invoked once -- use via AC_REQUIRE. 11373# 11374# This code is only required when automatic dependency tracking 11375# is enabled. FIXME. This creates each `.P' file that we will 11376# need in order to bootstrap the dependency handling code. 11377AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 11378[AC_CONFIG_COMMANDS([depfiles], 11379 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 11380 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 11381]) 11382 11383# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 11384# Free Software Foundation, Inc. 11385# 11386# This file is free software; the Free Software Foundation 11387# gives unlimited permission to copy and/or distribute it, 11388# with or without modifications, as long as this notice is preserved. 11389 11390# serial 8 11391 11392# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. 11393AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) 11394 11395# Do all the work for Automake. -*- Autoconf -*- 11396 11397# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 11398# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. 11399# 11400# This file is free software; the Free Software Foundation 11401# gives unlimited permission to copy and/or distribute it, 11402# with or without modifications, as long as this notice is preserved. 11403 11404# serial 16 11405 11406# This macro actually does too much. Some checks are only needed if 11407# your package does certain things. But this isn't really a big deal. 11408 11409# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 11410# AM_INIT_AUTOMAKE([OPTIONS]) 11411# ----------------------------------------------- 11412# The call with PACKAGE and VERSION arguments is the old style 11413# call (pre autoconf-2.50), which is being phased out. PACKAGE 11414# and VERSION should now be passed to AC_INIT and removed from 11415# the call to AM_INIT_AUTOMAKE. 11416# We support both call styles for the transition. After 11417# the next Automake release, Autoconf can make the AC_INIT 11418# arguments mandatory, and then we can depend on a new Autoconf 11419# release and drop the old call support. 11420AC_DEFUN([AM_INIT_AUTOMAKE], 11421[AC_PREREQ([2.62])dnl 11422dnl Autoconf wants to disallow AM_ names. We explicitly allow 11423dnl the ones we care about. 11424m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 11425AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 11426AC_REQUIRE([AC_PROG_INSTALL])dnl 11427if test "`cd $srcdir && pwd`" != "`pwd`"; then 11428 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 11429 # is not polluted with repeated "-I." 11430 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 11431 # test to see if srcdir already configured 11432 if test -f $srcdir/config.status; then 11433 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 11434 fi 11435fi 11436 11437# test whether we have cygpath 11438if test -z "$CYGPATH_W"; then 11439 if (cygpath --version) >/dev/null 2>/dev/null; then 11440 CYGPATH_W='cygpath -w' 11441 else 11442 CYGPATH_W=echo 11443 fi 11444fi 11445AC_SUBST([CYGPATH_W]) 11446 11447# Define the identity of the package. 11448dnl Distinguish between old-style and new-style calls. 11449m4_ifval([$2], 11450[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 11451 AC_SUBST([PACKAGE], [$1])dnl 11452 AC_SUBST([VERSION], [$2])], 11453[_AM_SET_OPTIONS([$1])dnl 11454dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 11455m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 11456 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 11457 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 11458 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 11459 11460_AM_IF_OPTION([no-define],, 11461[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 11462 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 11463 11464# Some tools Automake needs. 11465AC_REQUIRE([AM_SANITY_CHECK])dnl 11466AC_REQUIRE([AC_ARG_PROGRAM])dnl 11467AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 11468AM_MISSING_PROG(AUTOCONF, autoconf) 11469AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 11470AM_MISSING_PROG(AUTOHEADER, autoheader) 11471AM_MISSING_PROG(MAKEINFO, makeinfo) 11472AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 11473AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 11474AC_REQUIRE([AM_PROG_MKDIR_P])dnl 11475# We need awk for the "check" target. The system "awk" is bad on 11476# some platforms. 11477AC_REQUIRE([AC_PROG_AWK])dnl 11478AC_REQUIRE([AC_PROG_MAKE_SET])dnl 11479AC_REQUIRE([AM_SET_LEADING_DOT])dnl 11480_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 11481 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 11482 [_AM_PROG_TAR([v7])])]) 11483_AM_IF_OPTION([no-dependencies],, 11484[AC_PROVIDE_IFELSE([AC_PROG_CC], 11485 [_AM_DEPENDENCIES(CC)], 11486 [define([AC_PROG_CC], 11487 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 11488AC_PROVIDE_IFELSE([AC_PROG_CXX], 11489 [_AM_DEPENDENCIES(CXX)], 11490 [define([AC_PROG_CXX], 11491 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 11492AC_PROVIDE_IFELSE([AC_PROG_OBJC], 11493 [_AM_DEPENDENCIES(OBJC)], 11494 [define([AC_PROG_OBJC], 11495 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 11496]) 11497_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl 11498dnl The `parallel-tests' driver may need to know about EXEEXT, so add the 11499dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro 11500dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. 11501AC_CONFIG_COMMANDS_PRE(dnl 11502[m4_provide_if([_AM_COMPILER_EXEEXT], 11503 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 11504]) 11505 11506dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 11507dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 11508dnl mangled by Autoconf and run in a shell conditional statement. 11509m4_define([_AC_COMPILER_EXEEXT], 11510m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 11511 11512 11513# When config.status generates a header, we must update the stamp-h file. 11514# This file resides in the same directory as the config header 11515# that is generated. The stamp files are numbered to have different names. 11516 11517# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 11518# loop where config.status creates the headers, so we can generate 11519# our stamp files there. 11520AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 11521[# Compute $1's index in $config_headers. 11522_am_arg=$1 11523_am_stamp_count=1 11524for _am_header in $config_headers :; do 11525 case $_am_header in 11526 $_am_arg | $_am_arg:* ) 11527 break ;; 11528 * ) 11529 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 11530 esac 11531done 11532echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 11533 11534# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation, 11535# Inc. 11536# 11537# This file is free software; the Free Software Foundation 11538# gives unlimited permission to copy and/or distribute it, 11539# with or without modifications, as long as this notice is preserved. 11540 11541# serial 1 11542 11543# AM_PROG_INSTALL_SH 11544# ------------------ 11545# Define $install_sh. 11546AC_DEFUN([AM_PROG_INSTALL_SH], 11547[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 11548if test x"${install_sh}" != xset; then 11549 case $am_aux_dir in 11550 *\ * | *\ *) 11551 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 11552 *) 11553 install_sh="\${SHELL} $am_aux_dir/install-sh" 11554 esac 11555fi 11556AC_SUBST(install_sh)]) 11557 11558# Copyright (C) 2003, 2005 Free Software Foundation, Inc. 11559# 11560# This file is free software; the Free Software Foundation 11561# gives unlimited permission to copy and/or distribute it, 11562# with or without modifications, as long as this notice is preserved. 11563 11564# serial 2 11565 11566# Check whether the underlying file-system supports filenames 11567# with a leading dot. For instance MS-DOS doesn't. 11568AC_DEFUN([AM_SET_LEADING_DOT], 11569[rm -rf .tst 2>/dev/null 11570mkdir .tst 2>/dev/null 11571if test -d .tst; then 11572 am__leading_dot=. 11573else 11574 am__leading_dot=_ 11575fi 11576rmdir .tst 2>/dev/null 11577AC_SUBST([am__leading_dot])]) 11578 11579# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 11580# From Jim Meyering 11581 11582# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008, 11583# 2011 Free Software Foundation, Inc. 11584# 11585# This file is free software; the Free Software Foundation 11586# gives unlimited permission to copy and/or distribute it, 11587# with or without modifications, as long as this notice is preserved. 11588 11589# serial 5 11590 11591# AM_MAINTAINER_MODE([DEFAULT-MODE]) 11592# ---------------------------------- 11593# Control maintainer-specific portions of Makefiles. 11594# Default is to disable them, unless `enable' is passed literally. 11595# For symmetry, `disable' may be passed as well. Anyway, the user 11596# can override the default with the --enable/--disable switch. 11597AC_DEFUN([AM_MAINTAINER_MODE], 11598[m4_case(m4_default([$1], [disable]), 11599 [enable], [m4_define([am_maintainer_other], [disable])], 11600 [disable], [m4_define([am_maintainer_other], [enable])], 11601 [m4_define([am_maintainer_other], [enable]) 11602 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) 11603AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) 11604 dnl maintainer-mode's default is 'disable' unless 'enable' is passed 11605 AC_ARG_ENABLE([maintainer-mode], 11606[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful 11607 (and sometimes confusing) to the casual installer], 11608 [USE_MAINTAINER_MODE=$enableval], 11609 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) 11610 AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 11611 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) 11612 MAINT=$MAINTAINER_MODE_TRUE 11613 AC_SUBST([MAINT])dnl 11614] 11615) 11616 11617AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) 11618 11619# Check to see how 'make' treats includes. -*- Autoconf -*- 11620 11621# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. 11622# 11623# This file is free software; the Free Software Foundation 11624# gives unlimited permission to copy and/or distribute it, 11625# with or without modifications, as long as this notice is preserved. 11626 11627# serial 4 11628 11629# AM_MAKE_INCLUDE() 11630# ----------------- 11631# Check to see how make treats includes. 11632AC_DEFUN([AM_MAKE_INCLUDE], 11633[am_make=${MAKE-make} 11634cat > confinc << 'END' 11635am__doit: 11636 @echo this is the am__doit target 11637.PHONY: am__doit 11638END 11639# If we don't find an include directive, just comment out the code. 11640AC_MSG_CHECKING([for style of include used by $am_make]) 11641am__include="#" 11642am__quote= 11643_am_result=none 11644# First try GNU make style include. 11645echo "include confinc" > confmf 11646# Ignore all kinds of additional output from `make'. 11647case `$am_make -s -f confmf 2> /dev/null` in #( 11648*the\ am__doit\ target*) 11649 am__include=include 11650 am__quote= 11651 _am_result=GNU 11652 ;; 11653esac 11654# Now try BSD make style include. 11655if test "$am__include" = "#"; then 11656 echo '.include "confinc"' > confmf 11657 case `$am_make -s -f confmf 2> /dev/null` in #( 11658 *the\ am__doit\ target*) 11659 am__include=.include 11660 am__quote="\"" 11661 _am_result=BSD 11662 ;; 11663 esac 11664fi 11665AC_SUBST([am__include]) 11666AC_SUBST([am__quote]) 11667AC_MSG_RESULT([$_am_result]) 11668rm -f confinc confmf 11669]) 11670 11671# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 11672 11673# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 11674# Free Software Foundation, Inc. 11675# 11676# This file is free software; the Free Software Foundation 11677# gives unlimited permission to copy and/or distribute it, 11678# with or without modifications, as long as this notice is preserved. 11679 11680# serial 6 11681 11682# AM_MISSING_PROG(NAME, PROGRAM) 11683# ------------------------------ 11684AC_DEFUN([AM_MISSING_PROG], 11685[AC_REQUIRE([AM_MISSING_HAS_RUN]) 11686$1=${$1-"${am_missing_run}$2"} 11687AC_SUBST($1)]) 11688 11689 11690# AM_MISSING_HAS_RUN 11691# ------------------ 11692# Define MISSING if not defined so far and test if it supports --run. 11693# If it does, set am_missing_run to use it, otherwise, to nothing. 11694AC_DEFUN([AM_MISSING_HAS_RUN], 11695[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 11696AC_REQUIRE_AUX_FILE([missing])dnl 11697if test x"${MISSING+set}" != xset; then 11698 case $am_aux_dir in 11699 *\ * | *\ *) 11700 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 11701 *) 11702 MISSING="\${SHELL} $am_aux_dir/missing" ;; 11703 esac 11704fi 11705# Use eval to expand $SHELL 11706if eval "$MISSING --run true"; then 11707 am_missing_run="$MISSING --run " 11708else 11709 am_missing_run= 11710 AC_MSG_WARN([`missing' script is too old or missing]) 11711fi 11712]) 11713 11714# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation, 11715# Inc. 11716# 11717# This file is free software; the Free Software Foundation 11718# gives unlimited permission to copy and/or distribute it, 11719# with or without modifications, as long as this notice is preserved. 11720 11721# serial 1 11722 11723# AM_PROG_MKDIR_P 11724# --------------- 11725# Check for `mkdir -p'. 11726AC_DEFUN([AM_PROG_MKDIR_P], 11727[AC_PREREQ([2.60])dnl 11728AC_REQUIRE([AC_PROG_MKDIR_P])dnl 11729dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, 11730dnl while keeping a definition of mkdir_p for backward compatibility. 11731dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. 11732dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of 11733dnl Makefile.ins that do not define MKDIR_P, so we do our own 11734dnl adjustment using top_builddir (which is defined more often than 11735dnl MKDIR_P). 11736AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl 11737case $mkdir_p in 11738 [[\\/$]]* | ?:[[\\/]]*) ;; 11739 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 11740esac 11741]) 11742 11743# Helper functions for option handling. -*- Autoconf -*- 11744 11745# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software 11746# Foundation, Inc. 11747# 11748# This file is free software; the Free Software Foundation 11749# gives unlimited permission to copy and/or distribute it, 11750# with or without modifications, as long as this notice is preserved. 11751 11752# serial 5 11753 11754# _AM_MANGLE_OPTION(NAME) 11755# ----------------------- 11756AC_DEFUN([_AM_MANGLE_OPTION], 11757[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 11758 11759# _AM_SET_OPTION(NAME) 11760# -------------------- 11761# Set option NAME. Presently that only means defining a flag for this option. 11762AC_DEFUN([_AM_SET_OPTION], 11763[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 11764 11765# _AM_SET_OPTIONS(OPTIONS) 11766# ------------------------ 11767# OPTIONS is a space-separated list of Automake options. 11768AC_DEFUN([_AM_SET_OPTIONS], 11769[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 11770 11771# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 11772# ------------------------------------------- 11773# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 11774AC_DEFUN([_AM_IF_OPTION], 11775[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 11776 11777# Check to make sure that the build environment is sane. -*- Autoconf -*- 11778 11779# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 11780# Free Software Foundation, Inc. 11781# 11782# This file is free software; the Free Software Foundation 11783# gives unlimited permission to copy and/or distribute it, 11784# with or without modifications, as long as this notice is preserved. 11785 11786# serial 5 11787 11788# AM_SANITY_CHECK 11789# --------------- 11790AC_DEFUN([AM_SANITY_CHECK], 11791[AC_MSG_CHECKING([whether build environment is sane]) 11792# Just in case 11793sleep 1 11794echo timestamp > conftest.file 11795# Reject unsafe characters in $srcdir or the absolute working directory 11796# name. Accept space and tab only in the latter. 11797am_lf=' 11798' 11799case `pwd` in 11800 *[[\\\"\#\$\&\'\`$am_lf]]*) 11801 AC_MSG_ERROR([unsafe absolute working directory name]);; 11802esac 11803case $srcdir in 11804 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 11805 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; 11806esac 11807 11808# Do `set' in a subshell so we don't clobber the current shell's 11809# arguments. Must try -L first in case configure is actually a 11810# symlink; some systems play weird games with the mod time of symlinks 11811# (eg FreeBSD returns the mod time of the symlink's containing 11812# directory). 11813if ( 11814 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 11815 if test "$[*]" = "X"; then 11816 # -L didn't work. 11817 set X `ls -t "$srcdir/configure" conftest.file` 11818 fi 11819 rm -f conftest.file 11820 if test "$[*]" != "X $srcdir/configure conftest.file" \ 11821 && test "$[*]" != "X conftest.file $srcdir/configure"; then 11822 11823 # If neither matched, then we have a broken ls. This can happen 11824 # if, for instance, CONFIG_SHELL is bash and it inherits a 11825 # broken ls alias from the environment. This has actually 11826 # happened. Such a system could not be considered "sane". 11827 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 11828alias in your environment]) 11829 fi 11830 11831 test "$[2]" = conftest.file 11832 ) 11833then 11834 # Ok. 11835 : 11836else 11837 AC_MSG_ERROR([newly created file is older than distributed files! 11838Check your system clock]) 11839fi 11840AC_MSG_RESULT(yes)]) 11841 11842# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. 11843# 11844# This file is free software; the Free Software Foundation 11845# gives unlimited permission to copy and/or distribute it, 11846# with or without modifications, as long as this notice is preserved. 11847 11848# serial 1 11849 11850# AM_PROG_INSTALL_STRIP 11851# --------------------- 11852# One issue with vendor `install' (even GNU) is that you can't 11853# specify the program used to strip binaries. This is especially 11854# annoying in cross-compiling environments, where the build's strip 11855# is unlikely to handle the host's binaries. 11856# Fortunately install-sh will honor a STRIPPROG variable, so we 11857# always use install-sh in `make install-strip', and initialize 11858# STRIPPROG with the value of the STRIP variable (set by the user). 11859AC_DEFUN([AM_PROG_INSTALL_STRIP], 11860[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 11861# Installed binaries are usually stripped using `strip' when the user 11862# run `make install-strip'. However `strip' might not be the right 11863# tool to use in cross-compilation environments, therefore Automake 11864# will honor the `STRIP' environment variable to overrule this program. 11865dnl Don't test for $cross_compiling = yes, because it might be `maybe'. 11866if test "$cross_compiling" != no; then 11867 AC_CHECK_TOOL([STRIP], [strip], :) 11868fi 11869INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 11870AC_SUBST([INSTALL_STRIP_PROGRAM])]) 11871 11872# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc. 11873# 11874# This file is free software; the Free Software Foundation 11875# gives unlimited permission to copy and/or distribute it, 11876# with or without modifications, as long as this notice is preserved. 11877 11878# serial 3 11879 11880# _AM_SUBST_NOTMAKE(VARIABLE) 11881# --------------------------- 11882# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 11883# This macro is traced by Automake. 11884AC_DEFUN([_AM_SUBST_NOTMAKE]) 11885 11886# AM_SUBST_NOTMAKE(VARIABLE) 11887# -------------------------- 11888# Public sister of _AM_SUBST_NOTMAKE. 11889AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 11890 11891# Check how to create a tarball. -*- Autoconf -*- 11892 11893# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc. 11894# 11895# This file is free software; the Free Software Foundation 11896# gives unlimited permission to copy and/or distribute it, 11897# with or without modifications, as long as this notice is preserved. 11898 11899# serial 2 11900 11901# _AM_PROG_TAR(FORMAT) 11902# -------------------- 11903# Check how to create a tarball in format FORMAT. 11904# FORMAT should be one of `v7', `ustar', or `pax'. 11905# 11906# Substitute a variable $(am__tar) that is a command 11907# writing to stdout a FORMAT-tarball containing the directory 11908# $tardir. 11909# tardir=directory && $(am__tar) > result.tar 11910# 11911# Substitute a variable $(am__untar) that extract such 11912# a tarball read from stdin. 11913# $(am__untar) < result.tar 11914AC_DEFUN([_AM_PROG_TAR], 11915[# Always define AMTAR for backward compatibility. Yes, it's still used 11916# in the wild :-( We should find a proper way to deprecate it ... 11917AC_SUBST([AMTAR], ['$${TAR-tar}']) 11918m4_if([$1], [v7], 11919 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 11920 [m4_case([$1], [ustar],, [pax],, 11921 [m4_fatal([Unknown tar format])]) 11922AC_MSG_CHECKING([how to create a $1 tar archive]) 11923# Loop over all known methods to create a tar archive until one works. 11924_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 11925_am_tools=${am_cv_prog_tar_$1-$_am_tools} 11926# Do not fold the above two line into one, because Tru64 sh and 11927# Solaris sh will not grok spaces in the rhs of `-'. 11928for _am_tool in $_am_tools 11929do 11930 case $_am_tool in 11931 gnutar) 11932 for _am_tar in tar gnutar gtar; 11933 do 11934 AM_RUN_LOG([$_am_tar --version]) && break 11935 done 11936 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 11937 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 11938 am__untar="$_am_tar -xf -" 11939 ;; 11940 plaintar) 11941 # Must skip GNU tar: if it does not support --format= it doesn't create 11942 # ustar tarball either. 11943 (tar --version) >/dev/null 2>&1 && continue 11944 am__tar='tar chf - "$$tardir"' 11945 am__tar_='tar chf - "$tardir"' 11946 am__untar='tar xf -' 11947 ;; 11948 pax) 11949 am__tar='pax -L -x $1 -w "$$tardir"' 11950 am__tar_='pax -L -x $1 -w "$tardir"' 11951 am__untar='pax -r' 11952 ;; 11953 cpio) 11954 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 11955 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 11956 am__untar='cpio -i -H $1 -d' 11957 ;; 11958 none) 11959 am__tar=false 11960 am__tar_=false 11961 am__untar=false 11962 ;; 11963 esac 11964 11965 # If the value was cached, stop now. We just wanted to have am__tar 11966 # and am__untar set. 11967 test -n "${am_cv_prog_tar_$1}" && break 11968 11969 # tar/untar a dummy directory, and stop if the command works 11970 rm -rf conftest.dir 11971 mkdir conftest.dir 11972 echo GrepMe > conftest.dir/file 11973 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 11974 rm -rf conftest.dir 11975 if test -s conftest.tar; then 11976 AM_RUN_LOG([$am__untar <conftest.tar]) 11977 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 11978 fi 11979done 11980rm -rf conftest.dir 11981 11982AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 11983AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 11984AC_SUBST([am__tar]) 11985AC_SUBST([am__untar]) 11986]) # _AM_PROG_TAR 11987 11988