1dnl aclocal.m4 generated automatically by aclocal 1.4-p5 2 3dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. 4dnl This file is free software; the Free Software Foundation 5dnl gives unlimited permission to copy and/or distribute it, 6dnl with or without modifications, as long as this notice is preserved. 7 8dnl This program is distributed in the hope that it will be useful, 9dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without 10dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A 11dnl PARTICULAR PURPOSE. 12 13dnl AC_C_RESTRICT 14dnl Do nothing if the compiler accepts the restrict keyword. 15dnl Otherwise define restrict to __restrict__ or __restrict if one of 16dnl those work, otherwise define restrict to be empty. 17AC_DEFUN([AC_C_RESTRICT], 18 [AC_MSG_CHECKING([for restrict]) 19 ac_cv_c_restrict=no 20 for ac_kw in restrict __restrict__ __restrict; do 21 AC_TRY_COMPILE([],[char * $ac_kw p;],[ac_cv_c_restrict=$ac_kw; break]) 22 done 23 AC_MSG_RESULT([$ac_cv_c_restrict]) 24 case $ac_cv_c_restrict in 25 restrict) ;; 26 no) AC_DEFINE([restrict],, 27 [Define as `__restrict' if that's what the C compiler calls 28 it, or to nothing if it is not supported.]) ;; 29 *) AC_DEFINE_UNQUOTED([restrict],$ac_cv_c_restrict) ;; 30 esac]) 31 32dnl AC_C_ALWAYS_INLINE 33dnl Define inline to something appropriate, including the new always_inline 34dnl attribute from gcc 3.1 35AC_DEFUN([AC_C_ALWAYS_INLINE], 36 [AC_C_INLINE 37 if test x"$GCC" = x"yes" -a x"$ac_cv_c_inline" = x"inline"; then 38 AC_MSG_CHECKING([for always_inline]) 39 SAVE_CFLAGS="$CFLAGS" 40 CFLAGS="$CFLAGS -Wall -Werror" 41 AC_TRY_COMPILE([],[__attribute__ ((__always_inline__)) void f (void);], 42 [ac_cv_always_inline=yes],[ac_cv_always_inline=no]) 43 CFLAGS="$SAVE_CFLAGS" 44 AC_MSG_RESULT([$ac_cv_always_inline]) 45 if test x"$ac_cv_always_inline" = x"yes"; then 46 AC_DEFINE_UNQUOTED([inline],[__attribute__ ((__always_inline__))]) 47 fi 48 fi]) 49 50dnl AC_C_ATTRIBUTE_ALIGNED 51dnl define ATTRIBUTE_ALIGNED_MAX to the maximum alignment if this is supported 52AC_DEFUN([AC_C_ATTRIBUTE_ALIGNED], 53 [AC_CACHE_CHECK([__attribute__ ((aligned ())) support], 54 [ac_cv_c_attribute_aligned], 55 [ac_cv_c_attribute_aligned=0 56 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do 57 AC_TRY_COMPILE([], 58 [static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;], 59 [ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try]) 60 done]) 61 if test x"$ac_cv_c_attribute_aligned" != x"0"; then 62 AC_DEFINE_UNQUOTED([ATTRIBUTE_ALIGNED_MAX], 63 [$ac_cv_c_attribute_aligned],[maximum supported data alignment]) 64 fi]) 65 66dnl AC_TRY_CFLAGS (CFLAGS, [ACTION-IF-WORKS], [ACTION-IF-FAILS]) 67dnl check if $CC supports a given set of cflags 68AC_DEFUN([AC_TRY_CFLAGS], 69 [AC_MSG_CHECKING([if $CC supports $1 flags]) 70 SAVE_CFLAGS="$CFLAGS" 71 CFLAGS="$1" 72 AC_TRY_COMPILE([],[],[ac_cv_try_cflags_ok=yes],[ac_cv_try_cflags_ok=no]) 73 CFLAGS="$SAVE_CFLAGS" 74 AC_MSG_RESULT([$ac_cv_try_cflags_ok]) 75 if test x"$ac_cv_try_cflags_ok" = x"yes"; then 76 ifelse([$2],[],[:],[$2]) 77 else 78 ifelse([$3],[],[:],[$3]) 79 fi]) 80 81 82dnl AC_CHECK_GENERATE_INTTYPES_H (INCLUDE-DIRECTORY) 83dnl generate a default inttypes.h if the header file does not exist already 84AC_DEFUN([AC_CHECK_GENERATE_INTTYPES], 85 [rm -f $1/inttypes.h 86 AC_CHECK_HEADER([inttypes.h],[], 87 [AC_CHECK_SIZEOF([char]) 88 AC_CHECK_SIZEOF([short]) 89 AC_CHECK_SIZEOF([int]) 90 if test x"$ac_cv_sizeof_char" != x"1" -o \ 91 x"$ac_cv_sizeof_short" != x"2" -o \ 92 x"$ac_cv_sizeof_int" != x"4"; then 93 AC_MSG_ERROR([can not build a default inttypes.h]) 94 fi 95 cat >$1/inttypes.h << EOF 96/* default inttypes.h for people who do not have it on their system */ 97 98#ifndef _INTTYPES_H 99#define _INTTYPES_H 100#if (!defined __int8_t_defined) && (!defined __BIT_TYPES_DEFINED__) 101#define __int8_t_defined 102typedef signed char int8_t; 103typedef signed short int16_t; 104typedef signed int int32_t; 105#ifdef ARCH_X86 106typedef signed long long int64_t; 107#endif 108#endif 109#if (!defined _LINUX_TYPES_H) 110typedef unsigned char uint8_t; 111typedef unsigned short uint16_t; 112typedef unsigned int uint32_t; 113#ifdef ARCH_X86 114typedef unsigned long long uint64_t; 115#endif 116#endif 117#endif 118EOF 119 ])]) 120 121# Do all the work for Automake. This macro actually does too much -- 122# some checks are only needed if your package does certain things. 123# But this isn't really a big deal. 124 125# serial 1 126 127dnl Usage: 128dnl AM_INIT_AUTOMAKE(package,version, [no-define]) 129 130AC_DEFUN([AM_INIT_AUTOMAKE], 131[AC_REQUIRE([AC_PROG_INSTALL]) 132PACKAGE=[$1] 133AC_SUBST(PACKAGE) 134VERSION=[$2] 135AC_SUBST(VERSION) 136dnl test to see if srcdir already configured 137if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 138 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 139fi 140ifelse([$3],, 141AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 142AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])) 143AC_REQUIRE([AM_SANITY_CHECK]) 144AC_REQUIRE([AC_ARG_PROGRAM]) 145dnl FIXME This is truly gross. 146missing_dir=`cd $ac_aux_dir && pwd` 147AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir) 148AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) 149AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir) 150AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) 151AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) 152AC_REQUIRE([AC_PROG_MAKE_SET])]) 153 154# 155# Check to make sure that the build environment is sane. 156# 157 158AC_DEFUN([AM_SANITY_CHECK], 159[AC_MSG_CHECKING([whether build environment is sane]) 160# Just in case 161sleep 1 162echo timestamp > conftestfile 163# Do `set' in a subshell so we don't clobber the current shell's 164# arguments. Must try -L first in case configure is actually a 165# symlink; some systems play weird games with the mod time of symlinks 166# (eg FreeBSD returns the mod time of the symlink's containing 167# directory). 168if ( 169 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 170 if test "[$]*" = "X"; then 171 # -L didn't work. 172 set X `ls -t $srcdir/configure conftestfile` 173 fi 174 if test "[$]*" != "X $srcdir/configure conftestfile" \ 175 && test "[$]*" != "X conftestfile $srcdir/configure"; then 176 177 # If neither matched, then we have a broken ls. This can happen 178 # if, for instance, CONFIG_SHELL is bash and it inherits a 179 # broken ls alias from the environment. This has actually 180 # happened. Such a system could not be considered "sane". 181 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 182alias in your environment]) 183 fi 184 185 test "[$]2" = conftestfile 186 ) 187then 188 # Ok. 189 : 190else 191 AC_MSG_ERROR([newly created file is older than distributed files! 192Check your system clock]) 193fi 194rm -f conftest* 195AC_MSG_RESULT(yes)]) 196 197dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) 198dnl The program must properly implement --version. 199AC_DEFUN([AM_MISSING_PROG], 200[AC_MSG_CHECKING(for working $2) 201# Run test in a subshell; some versions of sh will print an error if 202# an executable is not found, even if stderr is redirected. 203# Redirect stdin to placate older versions of autoconf. Sigh. 204if ($2 --version) < /dev/null > /dev/null 2>&1; then 205 $1=$2 206 AC_MSG_RESULT(found) 207else 208 $1="$3/missing $2" 209 AC_MSG_RESULT(missing) 210fi 211AC_SUBST($1)]) 212 213# Like AC_CONFIG_HEADER, but automatically create stamp file. 214 215AC_DEFUN([AM_CONFIG_HEADER], 216[AC_PREREQ([2.12]) 217AC_CONFIG_HEADER([$1]) 218dnl When config.status generates a header, we must update the stamp-h file. 219dnl This file resides in the same directory as the config header 220dnl that is generated. We must strip everything past the first ":", 221dnl and everything past the last "/". 222AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl 223ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>, 224<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>, 225<<am_indx=1 226for am_file in <<$1>>; do 227 case " <<$>>CONFIG_HEADERS " in 228 *" <<$>>am_file "*<<)>> 229 echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx 230 ;; 231 esac 232 am_indx=`expr "<<$>>am_indx" + 1` 233done<<>>dnl>>) 234changequote([,]))]) 235 236# Add --enable-maintainer-mode option to configure. 237# From Jim Meyering 238 239# serial 1 240 241AC_DEFUN([AM_MAINTAINER_MODE], 242[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) 243 dnl maintainer-mode is disabled by default 244 AC_ARG_ENABLE(maintainer-mode, 245[ --enable-maintainer-mode enable make rules and dependencies not useful 246 (and sometimes confusing) to the casual installer], 247 USE_MAINTAINER_MODE=$enableval, 248 USE_MAINTAINER_MODE=no) 249 AC_MSG_RESULT($USE_MAINTAINER_MODE) 250 AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes) 251 MAINT=$MAINTAINER_MODE_TRUE 252 AC_SUBST(MAINT)dnl 253] 254) 255 256# Define a conditional. 257 258AC_DEFUN([AM_CONDITIONAL], 259[AC_SUBST($1_TRUE) 260AC_SUBST($1_FALSE) 261if $2; then 262 $1_TRUE= 263 $1_FALSE='#' 264else 265 $1_TRUE='#' 266 $1_FALSE= 267fi]) 268 269# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*- 270 271# serial 46 AC_PROG_LIBTOOL 272 273AC_DEFUN([AC_PROG_LIBTOOL], 274[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl 275 276# This can be used to rebuild libtool when needed 277LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 278 279# Always use our own libtool. 280LIBTOOL='$(SHELL) $(top_builddir)/libtool' 281AC_SUBST(LIBTOOL)dnl 282 283# Prevent multiple expansion 284define([AC_PROG_LIBTOOL], []) 285]) 286 287AC_DEFUN([AC_LIBTOOL_SETUP], 288[AC_PREREQ(2.13)dnl 289AC_REQUIRE([AC_ENABLE_SHARED])dnl 290AC_REQUIRE([AC_ENABLE_STATIC])dnl 291AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl 292AC_REQUIRE([AC_CANONICAL_HOST])dnl 293AC_REQUIRE([AC_CANONICAL_BUILD])dnl 294AC_REQUIRE([AC_PROG_CC])dnl 295AC_REQUIRE([AC_PROG_LD])dnl 296AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl 297AC_REQUIRE([AC_PROG_NM])dnl 298AC_REQUIRE([AC_PROG_LN_S])dnl 299AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl 300AC_REQUIRE([AC_OBJEXT])dnl 301AC_REQUIRE([AC_EXEEXT])dnl 302dnl 303 304_LT_AC_PROG_ECHO_BACKSLASH 305# Only perform the check for file, if the check method requires it 306case $deplibs_check_method in 307file_magic*) 308 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 309 AC_PATH_MAGIC 310 fi 311 ;; 312esac 313 314AC_CHECK_TOOL(RANLIB, ranlib, :) 315AC_CHECK_TOOL(STRIP, strip, :) 316 317ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) 318ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], 319enable_win32_dll=yes, enable_win32_dll=no) 320 321AC_ARG_ENABLE(libtool-lock, 322 [ --disable-libtool-lock avoid locking (might break parallel builds)]) 323test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 324 325# Some flags need to be propagated to the compiler or linker for good 326# libtool support. 327case $host in 328*-*-irix6*) 329 # Find out which ABI we are using. 330 echo '[#]line __oline__ "configure"' > conftest.$ac_ext 331 if AC_TRY_EVAL(ac_compile); then 332 case `/usr/bin/file conftest.$ac_objext` in 333 *32-bit*) 334 LD="${LD-ld} -32" 335 ;; 336 *N32*) 337 LD="${LD-ld} -n32" 338 ;; 339 *64-bit*) 340 LD="${LD-ld} -64" 341 ;; 342 esac 343 fi 344 rm -rf conftest* 345 ;; 346 347*-*-sco3.2v5*) 348 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 349 SAVE_CFLAGS="$CFLAGS" 350 CFLAGS="$CFLAGS -belf" 351 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 352 [AC_LANG_SAVE 353 AC_LANG_C 354 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 355 AC_LANG_RESTORE]) 356 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 357 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 358 CFLAGS="$SAVE_CFLAGS" 359 fi 360 ;; 361 362ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], 363[*-*-cygwin* | *-*-mingw* | *-*-pw32*) 364 AC_CHECK_TOOL(DLLTOOL, dlltool, false) 365 AC_CHECK_TOOL(AS, as, false) 366 AC_CHECK_TOOL(OBJDUMP, objdump, false) 367 368 # recent cygwin and mingw systems supply a stub DllMain which the user 369 # can override, but on older systems we have to supply one 370 AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain, 371 [AC_TRY_LINK([], 372 [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*); 373 DllMain (0, 0, 0);], 374 [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])]) 375 376 case $host/$CC in 377 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*) 378 # old mingw systems require "-dll" to link a DLL, while more recent ones 379 # require "-mdll" 380 SAVE_CFLAGS="$CFLAGS" 381 CFLAGS="$CFLAGS -mdll" 382 AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch, 383 [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])]) 384 CFLAGS="$SAVE_CFLAGS" ;; 385 *-*-cygwin* | *-*-pw32*) 386 # cygwin systems need to pass --dll to the linker, and not link 387 # crt.o which will require a WinMain@16 definition. 388 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;; 389 esac 390 ;; 391 ]) 392esac 393 394_LT_AC_LTCONFIG_HACK 395 396]) 397 398# AC_LIBTOOL_HEADER_ASSERT 399# ------------------------ 400AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT], 401[AC_CACHE_CHECK([whether $CC supports assert without backlinking], 402 [lt_cv_func_assert_works], 403 [case $host in 404 *-*-solaris*) 405 if test "$GCC" = yes && test "$with_gnu_ld" != yes; then 406 case `$CC --version 2>/dev/null` in 407 [[12]].*) lt_cv_func_assert_works=no ;; 408 *) lt_cv_func_assert_works=yes ;; 409 esac 410 fi 411 ;; 412 esac]) 413 414if test "x$lt_cv_func_assert_works" = xyes; then 415 AC_CHECK_HEADERS(assert.h) 416fi 417])# AC_LIBTOOL_HEADER_ASSERT 418 419# _LT_AC_CHECK_DLFCN 420# -------------------- 421AC_DEFUN([_LT_AC_CHECK_DLFCN], 422[AC_CHECK_HEADERS(dlfcn.h) 423])# _LT_AC_CHECK_DLFCN 424 425# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 426# --------------------------------- 427AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], 428[AC_REQUIRE([AC_CANONICAL_HOST]) 429AC_REQUIRE([AC_PROG_NM]) 430AC_REQUIRE([AC_OBJEXT]) 431# Check for command to grab the raw symbol name followed by C symbol from nm. 432AC_MSG_CHECKING([command to parse $NM output]) 433AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl 434 435# These are sane defaults that work on at least a few old systems. 436# [They come from Ultrix. What could be older than Ultrix?!! ;)] 437 438# Character class describing NM global symbol codes. 439symcode='[[BCDEGRST]]' 440 441# Regexp to match symbols that can be accessed directly from C. 442sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 443 444# Transform the above into a raw symbol and a C symbol. 445symxfrm='\1 \2\3 \3' 446 447# Transform an extracted symbol line into a proper C declaration 448lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" 449 450# Transform an extracted symbol line into symbol name and symbol address 451lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 452 453# Define system-specific variables. 454case $host_os in 455aix*) 456 symcode='[[BCDT]]' 457 ;; 458cygwin* | mingw* | pw32*) 459 symcode='[[ABCDGISTW]]' 460 ;; 461hpux*) # Its linker distinguishes data from code symbols 462 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 463 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 464 ;; 465irix* | nonstopux*) 466 symcode='[[BCDEGRST]]' 467 ;; 468solaris* | sysv5*) 469 symcode='[[BDT]]' 470 ;; 471sysv4) 472 symcode='[[DFNSTU]]' 473 ;; 474esac 475 476# Handle CRLF in mingw tool chain 477opt_cr= 478case $host_os in 479mingw*) 480 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 481 ;; 482esac 483 484# If we're using GNU nm, then use its standard symbol codes. 485if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then 486 symcode='[[ABCDGISTW]]' 487fi 488 489# Try without a prefix undercore, then with it. 490for ac_symprfx in "" "_"; do 491 492 # Write the raw and C identifiers. 493lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 494 495 # Check to see that the pipe works correctly. 496 pipe_works=no 497 rm -f conftest* 498 cat > conftest.$ac_ext <<EOF 499#ifdef __cplusplus 500extern "C" { 501#endif 502char nm_test_var; 503void nm_test_func(){} 504#ifdef __cplusplus 505} 506#endif 507int main(){nm_test_var='a';nm_test_func();return(0);} 508EOF 509 510 if AC_TRY_EVAL(ac_compile); then 511 # Now try to grab the symbols. 512 nlist=conftest.nm 513 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then 514 # Try sorting and uniquifying the output. 515 if sort "$nlist" | uniq > "$nlist"T; then 516 mv -f "$nlist"T "$nlist" 517 else 518 rm -f "$nlist"T 519 fi 520 521 # Make sure that we snagged all the symbols we need. 522 if egrep ' nm_test_var$' "$nlist" >/dev/null; then 523 if egrep ' nm_test_func$' "$nlist" >/dev/null; then 524 cat <<EOF > conftest.$ac_ext 525#ifdef __cplusplus 526extern "C" { 527#endif 528 529EOF 530 # Now generate the symbol file. 531 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' 532 533 cat <<EOF >> conftest.$ac_ext 534#if defined (__STDC__) && __STDC__ 535# define lt_ptr void * 536#else 537# define lt_ptr char * 538# define const 539#endif 540 541/* The mapping between symbol names and symbols. */ 542const struct { 543 const char *name; 544 lt_ptr address; 545} 546lt_preloaded_symbols[[]] = 547{ 548EOF 549 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext 550 cat <<\EOF >> conftest.$ac_ext 551 {0, (lt_ptr) 0} 552}; 553 554#ifdef __cplusplus 555} 556#endif 557EOF 558 # Now try linking the two files. 559 mv conftest.$ac_objext conftstm.$ac_objext 560 save_LIBS="$LIBS" 561 save_CFLAGS="$CFLAGS" 562 LIBS="conftstm.$ac_objext" 563 CFLAGS="$CFLAGS$no_builtin_flag" 564 if AC_TRY_EVAL(ac_link) && test -s conftest; then 565 pipe_works=yes 566 fi 567 LIBS="$save_LIBS" 568 CFLAGS="$save_CFLAGS" 569 else 570 echo "cannot find nm_test_func in $nlist" >&AC_FD_CC 571 fi 572 else 573 echo "cannot find nm_test_var in $nlist" >&AC_FD_CC 574 fi 575 else 576 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC 577 fi 578 else 579 echo "$progname: failed program was:" >&AC_FD_CC 580 cat conftest.$ac_ext >&5 581 fi 582 rm -f conftest* conftst* 583 584 # Do not use the global_symbol_pipe unless it works. 585 if test "$pipe_works" = yes; then 586 break 587 else 588 lt_cv_sys_global_symbol_pipe= 589 fi 590done 591]) 592global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" 593if test -z "$lt_cv_sys_global_symbol_pipe"; then 594 global_symbol_to_cdecl= 595 global_symbol_to_c_name_address= 596else 597 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" 598 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" 599fi 600if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; 601then 602 AC_MSG_RESULT(failed) 603else 604 AC_MSG_RESULT(ok) 605fi 606]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 607 608# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR 609# --------------------------------- 610AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR], 611[# Find the correct PATH separator. Usually this is `:', but 612# DJGPP uses `;' like DOS. 613if test "X${PATH_SEPARATOR+set}" != Xset; then 614 UNAME=${UNAME-`uname 2>/dev/null`} 615 case X$UNAME in 616 *-DOS) lt_cv_sys_path_separator=';' ;; 617 *) lt_cv_sys_path_separator=':' ;; 618 esac 619 PATH_SEPARATOR=$lt_cv_sys_path_separator 620fi 621])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR 622 623# _LT_AC_PROG_ECHO_BACKSLASH 624# -------------------------- 625# Add some code to the start of the generated configure script which 626# will find an echo command which doesn't interpret backslashes. 627AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], 628[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 629 [AC_DIVERT_PUSH(NOTICE)]) 630_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR 631 632# Check that we are running under the correct shell. 633SHELL=${CONFIG_SHELL-/bin/sh} 634 635case X$ECHO in 636X*--fallback-echo) 637 # Remove one level of quotation (which was required for Make). 638 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` 639 ;; 640esac 641 642echo=${ECHO-echo} 643if test "X[$]1" = X--no-reexec; then 644 # Discard the --no-reexec flag, and continue. 645 shift 646elif test "X[$]1" = X--fallback-echo; then 647 # Avoid inline document here, it may be left over 648 : 649elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then 650 # Yippee, $echo works! 651 : 652else 653 # Restart under the correct shell. 654 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} 655fi 656 657if test "X[$]1" = X--fallback-echo; then 658 # used as fallback echo 659 shift 660 cat <<EOF 661$* 662EOF 663 exit 0 664fi 665 666# The HP-UX ksh and POSIX shell print the target directory to stdout 667# if CDPATH is set. 668if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 669 670if test -z "$ECHO"; then 671if test "X${echo_test_string+set}" != Xset; then 672# find a string as large as possible, as long as the shell can cope with it 673 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 674 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 675 if (echo_test_string="`eval $cmd`") 2>/dev/null && 676 echo_test_string="`eval $cmd`" && 677 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 678 then 679 break 680 fi 681 done 682fi 683 684if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 685 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 686 test "X$echo_testing_string" = "X$echo_test_string"; then 687 : 688else 689 # The Solaris, AIX, and Digital Unix default echo programs unquote 690 # backslashes. This makes it impossible to quote backslashes using 691 # echo "$something" | sed 's/\\/\\\\/g' 692 # 693 # So, first we look for a working echo in the user's PATH. 694 695 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR 696 for dir in $PATH /usr/ucb; do 697 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 698 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 699 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 700 test "X$echo_testing_string" = "X$echo_test_string"; then 701 echo="$dir/echo" 702 break 703 fi 704 done 705 IFS="$save_ifs" 706 707 if test "X$echo" = Xecho; then 708 # We didn't find a better echo, so look for alternatives. 709 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 710 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 711 test "X$echo_testing_string" = "X$echo_test_string"; then 712 # This shell has a builtin print -r that does the trick. 713 echo='print -r' 714 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 715 test "X$CONFIG_SHELL" != X/bin/ksh; then 716 # If we have ksh, try running configure again with it. 717 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 718 export ORIGINAL_CONFIG_SHELL 719 CONFIG_SHELL=/bin/ksh 720 export CONFIG_SHELL 721 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 722 else 723 # Try using printf. 724 echo='printf %s\n' 725 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 726 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 727 test "X$echo_testing_string" = "X$echo_test_string"; then 728 # Cool, printf works 729 : 730 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 731 test "X$echo_testing_string" = 'X\t' && 732 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 733 test "X$echo_testing_string" = "X$echo_test_string"; then 734 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 735 export CONFIG_SHELL 736 SHELL="$CONFIG_SHELL" 737 export SHELL 738 echo="$CONFIG_SHELL [$]0 --fallback-echo" 739 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 740 test "X$echo_testing_string" = 'X\t' && 741 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 742 test "X$echo_testing_string" = "X$echo_test_string"; then 743 echo="$CONFIG_SHELL [$]0 --fallback-echo" 744 else 745 # maybe with a smaller string... 746 prev=: 747 748 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 749 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 750 then 751 break 752 fi 753 prev="$cmd" 754 done 755 756 if test "$prev" != 'sed 50q "[$]0"'; then 757 echo_test_string=`eval $prev` 758 export echo_test_string 759 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 760 else 761 # Oops. We lost completely, so just stick with echo. 762 echo=echo 763 fi 764 fi 765 fi 766 fi 767fi 768fi 769 770# Copy echo and quote the copy suitably for passing to libtool from 771# the Makefile, instead of quoting the original, which is used later. 772ECHO=$echo 773if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then 774 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" 775fi 776 777AC_SUBST(ECHO) 778AC_DIVERT_POP 779])# _LT_AC_PROG_ECHO_BACKSLASH 780 781# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 782# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 783# ------------------------------------------------------------------ 784AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], 785[if test "$cross_compiling" = yes; then : 786 [$4] 787else 788 AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 789 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 790 lt_status=$lt_dlunknown 791 cat > conftest.$ac_ext <<EOF 792[#line __oline__ "configure" 793#include "confdefs.h" 794 795#if HAVE_DLFCN_H 796#include <dlfcn.h> 797#endif 798 799#include <stdio.h> 800 801#ifdef RTLD_GLOBAL 802# define LT_DLGLOBAL RTLD_GLOBAL 803#else 804# ifdef DL_GLOBAL 805# define LT_DLGLOBAL DL_GLOBAL 806# else 807# define LT_DLGLOBAL 0 808# endif 809#endif 810 811/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 812 find out it does not work in some platform. */ 813#ifndef LT_DLLAZY_OR_NOW 814# ifdef RTLD_LAZY 815# define LT_DLLAZY_OR_NOW RTLD_LAZY 816# else 817# ifdef DL_LAZY 818# define LT_DLLAZY_OR_NOW DL_LAZY 819# else 820# ifdef RTLD_NOW 821# define LT_DLLAZY_OR_NOW RTLD_NOW 822# else 823# ifdef DL_NOW 824# define LT_DLLAZY_OR_NOW DL_NOW 825# else 826# define LT_DLLAZY_OR_NOW 0 827# endif 828# endif 829# endif 830# endif 831#endif 832 833#ifdef __cplusplus 834extern "C" void exit (int); 835#endif 836 837void fnord() { int i=42;} 838int main () 839{ 840 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 841 int status = $lt_dlunknown; 842 843 if (self) 844 { 845 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 846 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 847 /* dlclose (self); */ 848 } 849 850 exit (status); 851}] 852EOF 853 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 854 (./conftest; exit; ) 2>/dev/null 855 lt_status=$? 856 case x$lt_status in 857 x$lt_dlno_uscore) $1 ;; 858 x$lt_dlneed_uscore) $2 ;; 859 x$lt_unknown|x*) $3 ;; 860 esac 861 else : 862 # compilation failed 863 $3 864 fi 865fi 866rm -fr conftest* 867])# _LT_AC_TRY_DLOPEN_SELF 868 869# AC_LIBTOOL_DLOPEN_SELF 870# ------------------- 871AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], 872[if test "x$enable_dlopen" != xyes; then 873 enable_dlopen=unknown 874 enable_dlopen_self=unknown 875 enable_dlopen_self_static=unknown 876else 877 lt_cv_dlopen=no 878 lt_cv_dlopen_libs= 879 880 case $host_os in 881 beos*) 882 lt_cv_dlopen="load_add_on" 883 lt_cv_dlopen_libs= 884 lt_cv_dlopen_self=yes 885 ;; 886 887 cygwin* | mingw* | pw32*) 888 lt_cv_dlopen="LoadLibrary" 889 lt_cv_dlopen_libs= 890 ;; 891 892 *) 893 AC_CHECK_FUNC([shl_load], 894 [lt_cv_dlopen="shl_load"], 895 [AC_CHECK_LIB([dld], [shl_load], 896 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], 897 [AC_CHECK_FUNC([dlopen], 898 [lt_cv_dlopen="dlopen"], 899 [AC_CHECK_LIB([dl], [dlopen], 900 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 901 [AC_CHECK_LIB([svld], [dlopen], 902 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 903 [AC_CHECK_LIB([dld], [dld_link], 904 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) 905 ]) 906 ]) 907 ]) 908 ]) 909 ]) 910 ;; 911 esac 912 913 if test "x$lt_cv_dlopen" != xno; then 914 enable_dlopen=yes 915 else 916 enable_dlopen=no 917 fi 918 919 case $lt_cv_dlopen in 920 dlopen) 921 save_CPPFLAGS="$CPPFLAGS" 922 AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 923 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 924 925 save_LDFLAGS="$LDFLAGS" 926 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 927 928 save_LIBS="$LIBS" 929 LIBS="$lt_cv_dlopen_libs $LIBS" 930 931 AC_CACHE_CHECK([whether a program can dlopen itself], 932 lt_cv_dlopen_self, [dnl 933 _LT_AC_TRY_DLOPEN_SELF( 934 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 935 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 936 ]) 937 938 if test "x$lt_cv_dlopen_self" = xyes; then 939 LDFLAGS="$LDFLAGS $link_static_flag" 940 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 941 lt_cv_dlopen_self_static, [dnl 942 _LT_AC_TRY_DLOPEN_SELF( 943 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 944 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 945 ]) 946 fi 947 948 CPPFLAGS="$save_CPPFLAGS" 949 LDFLAGS="$save_LDFLAGS" 950 LIBS="$save_LIBS" 951 ;; 952 esac 953 954 case $lt_cv_dlopen_self in 955 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 956 *) enable_dlopen_self=unknown ;; 957 esac 958 959 case $lt_cv_dlopen_self_static in 960 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 961 *) enable_dlopen_self_static=unknown ;; 962 esac 963fi 964])# AC_LIBTOOL_DLOPEN_SELF 965 966AC_DEFUN([_LT_AC_LTCONFIG_HACK], 967[AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl 968# Sed substitution that helps us do robust quoting. It backslashifies 969# metacharacters that are still active within double-quoted strings. 970Xsed='sed -e s/^X//' 971sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g' 972 973# Same as above, but do not quote variable references. 974double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g' 975 976# Sed substitution to delay expansion of an escaped shell variable in a 977# double_quote_subst'ed string. 978delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 979 980# Constants: 981rm="rm -f" 982 983# Global variables: 984default_ofile=libtool 985can_build_shared=yes 986 987# All known linkers require a `.a' archive for static linking (except M$VC, 988# which needs '.lib'). 989libext=a 990ltmain="$ac_aux_dir/ltmain.sh" 991ofile="$default_ofile" 992with_gnu_ld="$lt_cv_prog_gnu_ld" 993need_locks="$enable_libtool_lock" 994 995old_CC="$CC" 996old_CFLAGS="$CFLAGS" 997 998# Set sane defaults for various variables 999test -z "$AR" && AR=ar 1000test -z "$AR_FLAGS" && AR_FLAGS=cru 1001test -z "$AS" && AS=as 1002test -z "$CC" && CC=cc 1003test -z "$DLLTOOL" && DLLTOOL=dlltool 1004test -z "$LD" && LD=ld 1005test -z "$LN_S" && LN_S="ln -s" 1006test -z "$MAGIC_CMD" && MAGIC_CMD=file 1007test -z "$NM" && NM=nm 1008test -z "$OBJDUMP" && OBJDUMP=objdump 1009test -z "$RANLIB" && RANLIB=: 1010test -z "$STRIP" && STRIP=: 1011test -z "$ac_objext" && ac_objext=o 1012 1013if test x"$host" != x"$build"; then 1014 ac_tool_prefix=${host_alias}- 1015else 1016 ac_tool_prefix= 1017fi 1018 1019# Transform linux* to *-*-linux-gnu*, to support old configure scripts. 1020case $host_os in 1021linux-gnu*) ;; 1022linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 1023esac 1024 1025case $host_os in 1026aix3*) 1027 # AIX sometimes has problems with the GCC collect2 program. For some 1028 # reason, if we set the COLLECT_NAMES environment variable, the problems 1029 # vanish in a puff of smoke. 1030 if test "X${COLLECT_NAMES+set}" != Xset; then 1031 COLLECT_NAMES= 1032 export COLLECT_NAMES 1033 fi 1034 ;; 1035esac 1036 1037# Determine commands to create old-style static archives. 1038old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 1039old_postinstall_cmds='chmod 644 $oldlib' 1040old_postuninstall_cmds= 1041 1042if test -n "$RANLIB"; then 1043 case $host_os in 1044 openbsd*) 1045 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 1046 ;; 1047 *) 1048 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 1049 ;; 1050 esac 1051 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 1052fi 1053 1054# Allow CC to be a program name with arguments. 1055set dummy $CC 1056compiler="[$]2" 1057 1058AC_MSG_CHECKING([for objdir]) 1059rm -f .libs 2>/dev/null 1060mkdir .libs 2>/dev/null 1061if test -d .libs; then 1062 objdir=.libs 1063else 1064 # MS-DOS does not allow filenames that begin with a dot. 1065 objdir=_libs 1066fi 1067rmdir .libs 2>/dev/null 1068AC_MSG_RESULT($objdir) 1069 1070 1071AC_ARG_WITH(pic, 1072[ --with-pic try to use only PIC/non-PIC objects [default=use both]], 1073pic_mode="$withval", pic_mode=default) 1074test -z "$pic_mode" && pic_mode=default 1075 1076# We assume here that the value for lt_cv_prog_cc_pic will not be cached 1077# in isolation, and that seeing it set (from the cache) indicates that 1078# the associated values are set (in the cache) correctly too. 1079AC_MSG_CHECKING([for $compiler option to produce PIC]) 1080AC_CACHE_VAL(lt_cv_prog_cc_pic, 1081[ lt_cv_prog_cc_pic= 1082 lt_cv_prog_cc_shlib= 1083 lt_cv_prog_cc_wl= 1084 lt_cv_prog_cc_static= 1085 lt_cv_prog_cc_no_builtin= 1086 lt_cv_prog_cc_can_build_shared=$can_build_shared 1087 1088 if test "$GCC" = yes; then 1089 lt_cv_prog_cc_wl='-Wl,' 1090 lt_cv_prog_cc_static='-static' 1091 1092 case $host_os in 1093 aix*) 1094 # Below there is a dirty hack to force normal static linking with -ldl 1095 # The problem is because libdl dynamically linked with both libc and 1096 # libC (AIX C++ library), which obviously doesn't included in libraries 1097 # list by gcc. This cause undefined symbols with -static flags. 1098 # This hack allows C programs to be linked with "-static -ldl", but 1099 # not sure about C++ programs. 1100 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" 1101 ;; 1102 amigaos*) 1103 # FIXME: we need at least 68020 code to build shared libraries, but 1104 # adding the `-m68020' flag to GCC prevents building anything better, 1105 # like `-m68040'. 1106 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' 1107 ;; 1108 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 1109 # PIC is the default for these OSes. 1110 ;; 1111 darwin* | rhapsody*) 1112 # PIC is the default on this platform 1113 # Common symbols not allowed in MH_DYLIB files 1114 lt_cv_prog_cc_pic='-fno-common' 1115 ;; 1116 cygwin* | mingw* | pw32* | os2*) 1117 # This hack is so that the source file can tell whether it is being 1118 # built for inclusion in a dll (and should export symbols for example). 1119 lt_cv_prog_cc_pic='-DDLL_EXPORT' 1120 ;; 1121 sysv4*MP*) 1122 if test -d /usr/nec; then 1123 lt_cv_prog_cc_pic=-Kconform_pic 1124 fi 1125 ;; 1126 *) 1127 lt_cv_prog_cc_pic='-fPIC' 1128 ;; 1129 esac 1130 else 1131 # PORTME Check for PIC flags for the system compiler. 1132 case $host_os in 1133 aix3* | aix4* | aix5*) 1134 lt_cv_prog_cc_wl='-Wl,' 1135 # All AIX code is PIC. 1136 if test "$host_cpu" = ia64; then 1137 # AIX 5 now supports IA64 processor 1138 lt_cv_prog_cc_static='-Bstatic' 1139 else 1140 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' 1141 fi 1142 ;; 1143 1144 hpux9* | hpux10* | hpux11*) 1145 # Is there a better lt_cv_prog_cc_static that works with the bundled CC? 1146 lt_cv_prog_cc_wl='-Wl,' 1147 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" 1148 lt_cv_prog_cc_pic='+Z' 1149 ;; 1150 1151 irix5* | irix6* | nonstopux*) 1152 lt_cv_prog_cc_wl='-Wl,' 1153 lt_cv_prog_cc_static='-non_shared' 1154 # PIC (with -KPIC) is the default. 1155 ;; 1156 1157 cygwin* | mingw* | pw32* | os2*) 1158 # This hack is so that the source file can tell whether it is being 1159 # built for inclusion in a dll (and should export symbols for example). 1160 lt_cv_prog_cc_pic='-DDLL_EXPORT' 1161 ;; 1162 1163 newsos6) 1164 lt_cv_prog_cc_pic='-KPIC' 1165 lt_cv_prog_cc_static='-Bstatic' 1166 ;; 1167 1168 osf3* | osf4* | osf5*) 1169 # All OSF/1 code is PIC. 1170 lt_cv_prog_cc_wl='-Wl,' 1171 lt_cv_prog_cc_static='-non_shared' 1172 ;; 1173 1174 sco3.2v5*) 1175 lt_cv_prog_cc_pic='-Kpic' 1176 lt_cv_prog_cc_static='-dn' 1177 lt_cv_prog_cc_shlib='-belf' 1178 ;; 1179 1180 solaris*) 1181 lt_cv_prog_cc_pic='-KPIC' 1182 lt_cv_prog_cc_static='-Bstatic' 1183 lt_cv_prog_cc_wl='-Wl,' 1184 ;; 1185 1186 sunos4*) 1187 lt_cv_prog_cc_pic='-PIC' 1188 lt_cv_prog_cc_static='-Bstatic' 1189 lt_cv_prog_cc_wl='-Qoption ld ' 1190 ;; 1191 1192 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 1193 lt_cv_prog_cc_pic='-KPIC' 1194 lt_cv_prog_cc_static='-Bstatic' 1195 if test "x$host_vendor" = xsni; then 1196 lt_cv_prog_cc_wl='-LD' 1197 else 1198 lt_cv_prog_cc_wl='-Wl,' 1199 fi 1200 ;; 1201 1202 uts4*) 1203 lt_cv_prog_cc_pic='-pic' 1204 lt_cv_prog_cc_static='-Bstatic' 1205 ;; 1206 1207 sysv4*MP*) 1208 if test -d /usr/nec ;then 1209 lt_cv_prog_cc_pic='-Kconform_pic' 1210 lt_cv_prog_cc_static='-Bstatic' 1211 fi 1212 ;; 1213 1214 *) 1215 lt_cv_prog_cc_can_build_shared=no 1216 ;; 1217 esac 1218 fi 1219]) 1220if test -z "$lt_cv_prog_cc_pic"; then 1221 AC_MSG_RESULT([none]) 1222else 1223 AC_MSG_RESULT([$lt_cv_prog_cc_pic]) 1224 1225 # Check to make sure the pic_flag actually works. 1226 AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works]) 1227 AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl 1228 save_CFLAGS="$CFLAGS" 1229 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" 1230 AC_TRY_COMPILE([], [], [dnl 1231 case $host_os in 1232 hpux9* | hpux10* | hpux11*) 1233 # On HP-UX, both CC and GCC only warn that PIC is supported... then 1234 # they create non-PIC objects. So, if there were any warnings, we 1235 # assume that PIC is not supported. 1236 if test -s conftest.err; then 1237 lt_cv_prog_cc_pic_works=no 1238 else 1239 lt_cv_prog_cc_pic_works=yes 1240 fi 1241 ;; 1242 *) 1243 lt_cv_prog_cc_pic_works=yes 1244 ;; 1245 esac 1246 ], [dnl 1247 lt_cv_prog_cc_pic_works=no 1248 ]) 1249 CFLAGS="$save_CFLAGS" 1250 ]) 1251 1252 if test "X$lt_cv_prog_cc_pic_works" = Xno; then 1253 lt_cv_prog_cc_pic= 1254 lt_cv_prog_cc_can_build_shared=no 1255 else 1256 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" 1257 fi 1258 1259 AC_MSG_RESULT([$lt_cv_prog_cc_pic_works]) 1260fi 1261 1262# Check for any special shared library compilation flags. 1263if test -n "$lt_cv_prog_cc_shlib"; then 1264 AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries]) 1265 if echo "$old_CC $old_CFLAGS " | egrep -e "[[ ]]$lt_cv_prog_cc_shlib[[ ]]" >/dev/null; then : 1266 else 1267 AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure]) 1268 lt_cv_prog_cc_can_build_shared=no 1269 fi 1270fi 1271 1272AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works]) 1273AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl 1274 lt_cv_prog_cc_static_works=no 1275 save_LDFLAGS="$LDFLAGS" 1276 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" 1277 AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes]) 1278 LDFLAGS="$save_LDFLAGS" 1279]) 1280 1281# Belt *and* braces to stop my trousers falling down: 1282test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= 1283AC_MSG_RESULT([$lt_cv_prog_cc_static_works]) 1284 1285pic_flag="$lt_cv_prog_cc_pic" 1286special_shlib_compile_flags="$lt_cv_prog_cc_shlib" 1287wl="$lt_cv_prog_cc_wl" 1288link_static_flag="$lt_cv_prog_cc_static" 1289no_builtin_flag="$lt_cv_prog_cc_no_builtin" 1290can_build_shared="$lt_cv_prog_cc_can_build_shared" 1291 1292 1293# Check to see if options -o and -c are simultaneously supported by compiler 1294AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext]) 1295AC_CACHE_VAL([lt_cv_compiler_c_o], [ 1296$rm -r conftest 2>/dev/null 1297mkdir conftest 1298cd conftest 1299echo "int some_variable = 0;" > conftest.$ac_ext 1300mkdir out 1301# According to Tom Tromey, Ian Lance Taylor reported there are C compilers 1302# that will create temporary files in the current directory regardless of 1303# the output directory. Thus, making CWD read-only will cause this test 1304# to fail, enabling locking or at least warning the user not to do parallel 1305# builds. 1306chmod -w . 1307save_CFLAGS="$CFLAGS" 1308CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" 1309compiler_c_o=no 1310if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then 1311 # The compiler can only warn and ignore the option if not recognized 1312 # So say no if there are warnings 1313 if test -s out/conftest.err; then 1314 lt_cv_compiler_c_o=no 1315 else 1316 lt_cv_compiler_c_o=yes 1317 fi 1318else 1319 # Append any errors to the config.log. 1320 cat out/conftest.err 1>&AC_FD_CC 1321 lt_cv_compiler_c_o=no 1322fi 1323CFLAGS="$save_CFLAGS" 1324chmod u+w . 1325$rm conftest* out/* 1326rmdir out 1327cd .. 1328rmdir conftest 1329$rm -r conftest 2>/dev/null 1330]) 1331compiler_c_o=$lt_cv_compiler_c_o 1332AC_MSG_RESULT([$compiler_c_o]) 1333 1334if test x"$compiler_c_o" = x"yes"; then 1335 # Check to see if we can write to a .lo 1336 AC_MSG_CHECKING([if $compiler supports -c -o file.lo]) 1337 AC_CACHE_VAL([lt_cv_compiler_o_lo], [ 1338 lt_cv_compiler_o_lo=no 1339 save_CFLAGS="$CFLAGS" 1340 CFLAGS="$CFLAGS -c -o conftest.lo" 1341 save_objext="$ac_objext" 1342 ac_objext=lo 1343 AC_TRY_COMPILE([], [int some_variable = 0;], [dnl 1344 # The compiler can only warn and ignore the option if not recognized 1345 # So say no if there are warnings 1346 if test -s conftest.err; then 1347 lt_cv_compiler_o_lo=no 1348 else 1349 lt_cv_compiler_o_lo=yes 1350 fi 1351 ]) 1352 ac_objext="$save_objext" 1353 CFLAGS="$save_CFLAGS" 1354 ]) 1355 compiler_o_lo=$lt_cv_compiler_o_lo 1356 AC_MSG_RESULT([$compiler_o_lo]) 1357else 1358 compiler_o_lo=no 1359fi 1360 1361# Check to see if we can do hard links to lock some files if needed 1362hard_links="nottested" 1363if test "$compiler_c_o" = no && test "$need_locks" != no; then 1364 # do not overwrite the value of need_locks provided by the user 1365 AC_MSG_CHECKING([if we can lock with hard links]) 1366 hard_links=yes 1367 $rm conftest* 1368 ln conftest.a conftest.b 2>/dev/null && hard_links=no 1369 touch conftest.a 1370 ln conftest.a conftest.b 2>&5 || hard_links=no 1371 ln conftest.a conftest.b 2>/dev/null && hard_links=no 1372 AC_MSG_RESULT([$hard_links]) 1373 if test "$hard_links" = no; then 1374 AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe]) 1375 need_locks=warn 1376 fi 1377else 1378 need_locks=no 1379fi 1380 1381if test "$GCC" = yes; then 1382 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler 1383 AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions]) 1384 echo "int some_variable = 0;" > conftest.$ac_ext 1385 save_CFLAGS="$CFLAGS" 1386 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" 1387 compiler_rtti_exceptions=no 1388 AC_TRY_COMPILE([], [int some_variable = 0;], [dnl 1389 # The compiler can only warn and ignore the option if not recognized 1390 # So say no if there are warnings 1391 if test -s conftest.err; then 1392 compiler_rtti_exceptions=no 1393 else 1394 compiler_rtti_exceptions=yes 1395 fi 1396 ]) 1397 CFLAGS="$save_CFLAGS" 1398 AC_MSG_RESULT([$compiler_rtti_exceptions]) 1399 1400 if test "$compiler_rtti_exceptions" = "yes"; then 1401 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' 1402 else 1403 no_builtin_flag=' -fno-builtin' 1404 fi 1405fi 1406 1407# See if the linker supports building shared libraries. 1408AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries]) 1409 1410allow_undefined_flag= 1411no_undefined_flag= 1412need_lib_prefix=unknown 1413need_version=unknown 1414# when you set need_version to no, make sure it does not cause -set_version 1415# flags to be left without arguments 1416archive_cmds= 1417archive_expsym_cmds= 1418old_archive_from_new_cmds= 1419old_archive_from_expsyms_cmds= 1420export_dynamic_flag_spec= 1421whole_archive_flag_spec= 1422thread_safe_flag_spec= 1423hardcode_into_libs=no 1424hardcode_libdir_flag_spec= 1425hardcode_libdir_separator= 1426hardcode_direct=no 1427hardcode_minus_L=no 1428hardcode_shlibpath_var=unsupported 1429runpath_var= 1430link_all_deplibs=unknown 1431always_export_symbols=no 1432export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' 1433# include_expsyms should be a list of space-separated symbols to be *always* 1434# included in the symbol list 1435include_expsyms= 1436# exclude_expsyms can be an egrep regular expression of symbols to exclude 1437# it will be wrapped by ` (' and `)$', so one must not match beginning or 1438# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 1439# as well as any symbol that contains `d'. 1440exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 1441# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 1442# platforms (ab)use it in PIC code, but their linkers get confused if 1443# the symbol is explicitly referenced. Since portable code cannot 1444# rely on this symbol name, it's probably fine to never include it in 1445# preloaded symbol tables. 1446extract_expsyms_cmds= 1447 1448case $host_os in 1449cygwin* | mingw* | pw32*) 1450 # FIXME: the MSVC++ port hasn't been tested in a loooong time 1451 # When not using gcc, we currently assume that we are using 1452 # Microsoft Visual C++. 1453 if test "$GCC" != yes; then 1454 with_gnu_ld=no 1455 fi 1456 ;; 1457openbsd*) 1458 with_gnu_ld=no 1459 ;; 1460esac 1461 1462ld_shlibs=yes 1463if test "$with_gnu_ld" = yes; then 1464 # If archive_cmds runs LD, not CC, wlarc should be empty 1465 wlarc='${wl}' 1466 1467 # See if GNU ld supports shared libraries. 1468 case $host_os in 1469 aix3* | aix4* | aix5*) 1470 # On AIX, the GNU linker is very broken 1471 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. 1472 ld_shlibs=no 1473 cat <<EOF 1>&2 1474 1475*** Warning: the GNU linker, at least up to release 2.9.1, is reported 1476*** to be unable to reliably create shared libraries on AIX. 1477*** Therefore, libtool is disabling shared libraries support. If you 1478*** really care for shared libraries, you may want to modify your PATH 1479*** so that a non-GNU linker is found, and then restart. 1480 1481EOF 1482 ;; 1483 1484 amigaos*) 1485 archive_cmds='$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)' 1486 hardcode_libdir_flag_spec='-L$libdir' 1487 hardcode_minus_L=yes 1488 1489 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 1490 # that the semantics of dynamic libraries on AmigaOS, at least up 1491 # to version 4, is to share data among multiple programs linked 1492 # with the same dynamic library. Since this doesn't match the 1493 # behavior of shared libraries on other platforms, we can use 1494 # them. 1495 ld_shlibs=no 1496 ;; 1497 1498 beos*) 1499 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 1500 allow_undefined_flag=unsupported 1501 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 1502 # support --undefined. This deserves some investigation. FIXME 1503 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 1504 else 1505 ld_shlibs=no 1506 fi 1507 ;; 1508 1509 cygwin* | mingw* | pw32*) 1510 # hardcode_libdir_flag_spec is actually meaningless, as there is 1511 # no search path for DLLs. 1512 hardcode_libdir_flag_spec='-L$libdir' 1513 allow_undefined_flag=unsupported 1514 always_export_symbols=yes 1515 1516 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ 1517 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ 1518 test -f $output_objdir/impgen.exe || (cd $output_objdir && \ 1519 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ 1520 else $CC -o impgen impgen.c ; fi)~ 1521 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' 1522 1523 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' 1524 1525 # cygwin and mingw dlls have different entry points and sets of symbols 1526 # to exclude. 1527 # FIXME: what about values for MSVC? 1528 dll_entry=__cygwin_dll_entry@12 1529 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ 1530 case $host_os in 1531 mingw*) 1532 # mingw values 1533 dll_entry=_DllMainCRTStartup@12 1534 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ 1535 ;; 1536 esac 1537 1538 # mingw and cygwin differ, and it's simplest to just exclude the union 1539 # of the two symbol sets. 1540 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 1541 1542 # recent cygwin and mingw systems supply a stub DllMain which the user 1543 # can override, but on older systems we have to supply one (in ltdll.c) 1544 if test "x$lt_cv_need_dllmain" = "xyes"; then 1545 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " 1546 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ 1547 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' 1548 else 1549 ltdll_obj= 1550 ltdll_cmds= 1551 fi 1552 1553 # Extract the symbol export list from an `--export-all' def file, 1554 # then regenerate the def file from the symbol export list, so that 1555 # the compiled dll only exports the symbol export list. 1556 # Be careful not to strip the DATA tag left be newer dlltools. 1557 export_symbols_cmds="$ltdll_cmds"' 1558 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ 1559 sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' 1560 1561 # If the export-symbols file already is a .def file (1st line 1562 # is EXPORTS), use it as is. 1563 # If DATA tags from a recent dlltool are present, honour them! 1564 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then 1565 cp $export_symbols $output_objdir/$soname-def; 1566 else 1567 echo EXPORTS > $output_objdir/$soname-def; 1568 _lt_hint=1; 1569 cat $export_symbols | while read symbol; do 1570 set dummy \$symbol; 1571 case \[$]# in 1572 2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; 1573 *) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;; 1574 esac; 1575 _lt_hint=`expr 1 + \$_lt_hint`; 1576 done; 1577 fi~ 1578 '"$ltdll_cmds"' 1579 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ 1580 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ 1581 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ 1582 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ 1583 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' 1584 ;; 1585 1586 netbsd*) 1587 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 1588 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 1589 wlarc= 1590 else 1591 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 1592 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 1593 fi 1594 ;; 1595 1596 solaris* | sysv5*) 1597 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then 1598 ld_shlibs=no 1599 cat <<EOF 1>&2 1600 1601*** Warning: The releases 2.8.* of the GNU linker cannot reliably 1602*** create shared libraries on Solaris systems. Therefore, libtool 1603*** is disabling shared libraries support. We urge you to upgrade GNU 1604*** binutils to release 2.9.1 or newer. Another option is to modify 1605*** your PATH or compiler configuration so that the native linker is 1606*** used, and then restart. 1607 1608EOF 1609 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 1610 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 1611 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 1612 else 1613 ld_shlibs=no 1614 fi 1615 ;; 1616 1617 sunos4*) 1618 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 1619 wlarc= 1620 hardcode_direct=yes 1621 hardcode_shlibpath_var=no 1622 ;; 1623 1624 *) 1625 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 1626 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 1627 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 1628 else 1629 ld_shlibs=no 1630 fi 1631 ;; 1632 esac 1633 1634 if test "$ld_shlibs" = yes; then 1635 runpath_var=LD_RUN_PATH 1636 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 1637 export_dynamic_flag_spec='${wl}--export-dynamic' 1638 case $host_os in 1639 cygwin* | mingw* | pw32*) 1640 # dlltool doesn't understand --whole-archive et. al. 1641 whole_archive_flag_spec= 1642 ;; 1643 *) 1644 # ancient GNU ld didn't support --whole-archive et. al. 1645 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then 1646 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 1647 else 1648 whole_archive_flag_spec= 1649 fi 1650 ;; 1651 esac 1652 fi 1653else 1654 # PORTME fill in a description of your system's linker (not GNU ld) 1655 case $host_os in 1656 aix3*) 1657 allow_undefined_flag=unsupported 1658 always_export_symbols=yes 1659 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 1660 # Note: this linker hardcodes the directories in LIBPATH if there 1661 # are no directories specified by -L. 1662 hardcode_minus_L=yes 1663 if test "$GCC" = yes && test -z "$link_static_flag"; then 1664 # Neither direct hardcoding nor static linking is supported with a 1665 # broken collect2. 1666 hardcode_direct=unsupported 1667 fi 1668 ;; 1669 1670 aix4* | aix5*) 1671 if test "$host_cpu" = ia64; then 1672 # On IA64, the linker does run time linking by default, so we don't 1673 # have to do anything special. 1674 aix_use_runtimelinking=no 1675 exp_sym_flag='-Bexport' 1676 no_entry_flag="" 1677 else 1678 aix_use_runtimelinking=no 1679 1680 # Test if we are trying to use run time linking or normal 1681 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 1682 # need to do runtime linking. 1683 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) 1684 for ld_flag in $LDFLAGS; do 1685 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 1686 aix_use_runtimelinking=yes 1687 break 1688 fi 1689 done 1690 esac 1691 1692 exp_sym_flag='-bexport' 1693 no_entry_flag='-bnoentry' 1694 fi 1695 1696 # When large executables or shared objects are built, AIX ld can 1697 # have problems creating the table of contents. If linking a library 1698 # or program results in "error TOC overflow" add -mminimal-toc to 1699 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 1700 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 1701 1702 hardcode_direct=yes 1703 archive_cmds='' 1704 hardcode_libdir_separator=':' 1705 if test "$GCC" = yes; then 1706 case $host_os in aix4.[[012]]|aix4.[[012]].*) 1707 collect2name=`${CC} -print-prog-name=collect2` 1708 if test -f "$collect2name" && \ 1709 strings "$collect2name" | grep resolve_lib_name >/dev/null 1710 then 1711 # We have reworked collect2 1712 hardcode_direct=yes 1713 else 1714 # We have old collect2 1715 hardcode_direct=unsupported 1716 # It fails to find uninstalled libraries when the uninstalled 1717 # path is not listed in the libpath. Setting hardcode_minus_L 1718 # to unsupported forces relinking 1719 hardcode_minus_L=yes 1720 hardcode_libdir_flag_spec='-L$libdir' 1721 hardcode_libdir_separator= 1722 fi 1723 esac 1724 1725 shared_flag='-shared' 1726 else 1727 # not using gcc 1728 if test "$host_cpu" = ia64; then 1729 shared_flag='${wl}-G' 1730 else 1731 if test "$aix_use_runtimelinking" = yes; then 1732 shared_flag='${wl}-G' 1733 else 1734 shared_flag='${wl}-bM:SRE' 1735 fi 1736 fi 1737 fi 1738 1739 # It seems that -bexpall can do strange things, so it is better to 1740 # generate a list of symbols to export. 1741 always_export_symbols=yes 1742 if test "$aix_use_runtimelinking" = yes; then 1743 # Warning - without using the other runtime loading flags (-brtl), 1744 # -berok will link without error, but may produce a broken library. 1745 allow_undefined_flag='-berok' 1746 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' 1747 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 1748 else 1749 if test "$host_cpu" = ia64; then 1750 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 1751 allow_undefined_flag="-z nodefs" 1752 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 1753 else 1754 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' 1755 # Warning - without using the other run time loading flags, 1756 # -berok will link without error, but may produce a broken library. 1757 allow_undefined_flag='${wl}-berok' 1758 # This is a bit strange, but is similar to how AIX traditionally builds 1759 # it's shared libraries. 1760 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname' 1761 fi 1762 fi 1763 ;; 1764 1765 amigaos*) 1766 archive_cmds='$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)' 1767 hardcode_libdir_flag_spec='-L$libdir' 1768 hardcode_minus_L=yes 1769 # see comment about different semantics on the GNU ld section 1770 ld_shlibs=no 1771 ;; 1772 1773 cygwin* | mingw* | pw32*) 1774 # When not using gcc, we currently assume that we are using 1775 # Microsoft Visual C++. 1776 # hardcode_libdir_flag_spec is actually meaningless, as there is 1777 # no search path for DLLs. 1778 hardcode_libdir_flag_spec=' ' 1779 allow_undefined_flag=unsupported 1780 # Tell ltmain to make .lib files, not .a files. 1781 libext=lib 1782 # FIXME: Setting linknames here is a bad hack. 1783 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 1784 # The linker will automatically build a .lib file if we build a DLL. 1785 old_archive_from_new_cmds='true' 1786 # FIXME: Should let the user specify the lib program. 1787 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 1788 fix_srcfile_path='`cygpath -w "$srcfile"`' 1789 ;; 1790 1791 darwin* | rhapsody*) 1792 case "$host_os" in 1793 rhapsody* | darwin1.[[012]]) 1794 allow_undefined_flag='-undefined suppress' 1795 ;; 1796 *) # Darwin 1.3 on 1797 allow_undefined_flag='-flat_namespace -undefined suppress' 1798 ;; 1799 esac 1800 # FIXME: Relying on posixy $() will cause problems for 1801 # cross-compilation, but unfortunately the echo tests do not 1802 # yet detect zsh echo's removal of \ escapes. Also zsh mangles 1803 # `"' quotes if we put them in here... so don't! 1804 archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' 1805 # We need to add '_' to the symbols in $export_symbols first 1806 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' 1807 hardcode_direct=yes 1808 hardcode_shlibpath_var=no 1809 whole_archive_flag_spec='-all_load $convenience' 1810 ;; 1811 1812 freebsd1*) 1813 ld_shlibs=no 1814 ;; 1815 1816 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 1817 # support. Future versions do this automatically, but an explicit c++rt0.o 1818 # does not break anything, and helps significantly (at the cost of a little 1819 # extra space). 1820 freebsd2.2*) 1821 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 1822 hardcode_libdir_flag_spec='-R$libdir' 1823 hardcode_direct=yes 1824 hardcode_shlibpath_var=no 1825 ;; 1826 1827 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 1828 freebsd2*) 1829 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 1830 hardcode_direct=yes 1831 hardcode_minus_L=yes 1832 hardcode_shlibpath_var=no 1833 ;; 1834 1835 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 1836 freebsd*) 1837 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 1838 hardcode_libdir_flag_spec='-R$libdir' 1839 hardcode_direct=yes 1840 hardcode_shlibpath_var=no 1841 ;; 1842 1843 hpux9* | hpux10* | hpux11*) 1844 case $host_os in 1845 hpux9*) archive_cmds='$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' ;; 1846 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; 1847 esac 1848 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 1849 hardcode_libdir_separator=: 1850 hardcode_direct=yes 1851 hardcode_minus_L=yes # Not in the search PATH, but as the default 1852 # location of the library. 1853 export_dynamic_flag_spec='${wl}-E' 1854 ;; 1855 1856 irix5* | irix6* | nonstopux*) 1857 if test "$GCC" = yes; then 1858 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 1859 else 1860 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 1861 fi 1862 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 1863 hardcode_libdir_separator=: 1864 link_all_deplibs=yes 1865 ;; 1866 1867 netbsd*) 1868 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 1869 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 1870 else 1871 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 1872 fi 1873 hardcode_libdir_flag_spec='-R$libdir' 1874 hardcode_direct=yes 1875 hardcode_shlibpath_var=no 1876 ;; 1877 1878 newsos6) 1879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 1880 hardcode_direct=yes 1881 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 1882 hardcode_libdir_separator=: 1883 hardcode_shlibpath_var=no 1884 ;; 1885 1886 openbsd*) 1887 hardcode_direct=yes 1888 hardcode_shlibpath_var=no 1889 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 1890 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' 1891 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 1892 export_dynamic_flag_spec='${wl}-E' 1893 else 1894 case "$host_os" in 1895 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 1896 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 1897 hardcode_libdir_flag_spec='-R$libdir' 1898 ;; 1899 *) 1900 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' 1901 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 1902 ;; 1903 esac 1904 fi 1905 ;; 1906 1907 os2*) 1908 hardcode_libdir_flag_spec='-L$libdir' 1909 hardcode_minus_L=yes 1910 allow_undefined_flag=unsupported 1911 archive_cmds='$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' 1912 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 1913 ;; 1914 1915 osf3*) 1916 if test "$GCC" = yes; then 1917 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 1918 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 1919 else 1920 allow_undefined_flag=' -expect_unresolved \*' 1921 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 1922 fi 1923 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 1924 hardcode_libdir_separator=: 1925 ;; 1926 1927 osf4* | osf5*) # as osf3* with the addition of -msym flag 1928 if test "$GCC" = yes; then 1929 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 1930 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 1931 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 1932 else 1933 allow_undefined_flag=' -expect_unresolved \*' 1934 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 1935 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 1936 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 1937 1938 #Both c and cxx compiler support -rpath directly 1939 hardcode_libdir_flag_spec='-rpath $libdir' 1940 fi 1941 hardcode_libdir_separator=: 1942 ;; 1943 1944 sco3.2v5*) 1945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 1946 hardcode_shlibpath_var=no 1947 runpath_var=LD_RUN_PATH 1948 hardcode_runpath_var=yes 1949 export_dynamic_flag_spec='${wl}-Bexport' 1950 ;; 1951 1952 solaris*) 1953 # gcc --version < 3.0 without binutils cannot create self contained 1954 # shared libraries reliably, requiring libgcc.a to resolve some of 1955 # the object symbols generated in some cases. Libraries that use 1956 # assert need libgcc.a to resolve __eprintf, for example. Linking 1957 # a copy of libgcc.a into every shared library to guarantee resolving 1958 # such symbols causes other problems: According to Tim Van Holder 1959 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate 1960 # (to the application) exception stack for one thing. 1961 no_undefined_flag=' -z defs' 1962 if test "$GCC" = yes; then 1963 case `$CC --version 2>/dev/null` in 1964 [[12]].*) 1965 cat <<EOF 1>&2 1966 1967*** Warning: Releases of GCC earlier than version 3.0 cannot reliably 1968*** create self contained shared libraries on Solaris systems, without 1969*** introducing a dependency on libgcc.a. Therefore, libtool is disabling 1970*** -no-undefined support, which will at least allow you to build shared 1971*** libraries. However, you may find that when you link such libraries 1972*** into an application without using GCC, you have to manually add 1973*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to 1974*** upgrade to a newer version of GCC. Another option is to rebuild your 1975*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. 1976 1977EOF 1978 no_undefined_flag= 1979 ;; 1980 esac 1981 fi 1982 # $CC -shared without GNU ld will not create a library from C++ 1983 # object files and a static libstdc++, better avoid it by now 1984 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 1985 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 1986 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 1987 hardcode_libdir_flag_spec='-R$libdir' 1988 hardcode_shlibpath_var=no 1989 case $host_os in 1990 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 1991 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 1992 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 1993 esac 1994 link_all_deplibs=yes 1995 ;; 1996 1997 sunos4*) 1998 if test "x$host_vendor" = xsequent; then 1999 # Use $CC to link under sequent, because it throws in some extra .o 2000 # files that make .init and .fini sections work. 2001 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 2002 else 2003 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 2004 fi 2005 hardcode_libdir_flag_spec='-L$libdir' 2006 hardcode_direct=yes 2007 hardcode_minus_L=yes 2008 hardcode_shlibpath_var=no 2009 ;; 2010 2011 sysv4) 2012 if test "x$host_vendor" = xsno; then 2013 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' 2014 hardcode_direct=yes # is this really true??? 2015 else 2016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 2017 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 2018 fi 2019 runpath_var='LD_RUN_PATH' 2020 hardcode_shlibpath_var=no 2021 ;; 2022 2023 sysv4.3*) 2024 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 2025 hardcode_shlibpath_var=no 2026 export_dynamic_flag_spec='-Bexport' 2027 ;; 2028 2029 sysv5*) 2030 no_undefined_flag=' -z text' 2031 # $CC -shared without GNU ld will not create a library from C++ 2032 # object files and a static libstdc++, better avoid it by now 2033 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 2034 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 2035 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 2036 hardcode_libdir_flag_spec= 2037 hardcode_shlibpath_var=no 2038 runpath_var='LD_RUN_PATH' 2039 ;; 2040 2041 uts4*) 2042 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 2043 hardcode_libdir_flag_spec='-L$libdir' 2044 hardcode_shlibpath_var=no 2045 ;; 2046 2047 dgux*) 2048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 2049 hardcode_libdir_flag_spec='-L$libdir' 2050 hardcode_shlibpath_var=no 2051 ;; 2052 2053 sysv4*MP*) 2054 if test -d /usr/nec; then 2055 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 2056 hardcode_shlibpath_var=no 2057 runpath_var=LD_RUN_PATH 2058 hardcode_runpath_var=yes 2059 ld_shlibs=yes 2060 fi 2061 ;; 2062 2063 sysv4.2uw2*) 2064 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 2065 hardcode_direct=yes 2066 hardcode_minus_L=no 2067 hardcode_shlibpath_var=no 2068 hardcode_runpath_var=yes 2069 runpath_var=LD_RUN_PATH 2070 ;; 2071 2072 sysv5uw7* | unixware7*) 2073 no_undefined_flag='${wl}-z ${wl}text' 2074 if test "$GCC" = yes; then 2075 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 2076 else 2077 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 2078 fi 2079 runpath_var='LD_RUN_PATH' 2080 hardcode_shlibpath_var=no 2081 ;; 2082 2083 *) 2084 ld_shlibs=no 2085 ;; 2086 esac 2087fi 2088AC_MSG_RESULT([$ld_shlibs]) 2089test "$ld_shlibs" = no && can_build_shared=no 2090 2091# Check hardcoding attributes. 2092AC_MSG_CHECKING([how to hardcode library paths into programs]) 2093hardcode_action= 2094if test -n "$hardcode_libdir_flag_spec" || \ 2095 test -n "$runpath_var"; then 2096 2097 # We can hardcode non-existant directories. 2098 if test "$hardcode_direct" != no && 2099 # If the only mechanism to avoid hardcoding is shlibpath_var, we 2100 # have to relink, otherwise we might link with an installed library 2101 # when we should be linking with a yet-to-be-installed one 2102 ## test "$hardcode_shlibpath_var" != no && 2103 test "$hardcode_minus_L" != no; then 2104 # Linking always hardcodes the temporary library directory. 2105 hardcode_action=relink 2106 else 2107 # We can link without hardcoding, and we can hardcode nonexisting dirs. 2108 hardcode_action=immediate 2109 fi 2110else 2111 # We cannot hardcode anything, or else we can only hardcode existing 2112 # directories. 2113 hardcode_action=unsupported 2114fi 2115AC_MSG_RESULT([$hardcode_action]) 2116 2117striplib= 2118old_striplib= 2119AC_MSG_CHECKING([whether stripping libraries is possible]) 2120if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 2121 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 2122 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 2123 AC_MSG_RESULT([yes]) 2124else 2125 AC_MSG_RESULT([no]) 2126fi 2127 2128reload_cmds='$LD$reload_flag -o $output$reload_objs' 2129test -z "$deplibs_check_method" && deplibs_check_method=unknown 2130 2131# PORTME Fill in your ld.so characteristics 2132AC_MSG_CHECKING([dynamic linker characteristics]) 2133library_names_spec= 2134libname_spec='lib$name' 2135soname_spec= 2136postinstall_cmds= 2137postuninstall_cmds= 2138finish_cmds= 2139finish_eval= 2140shlibpath_var= 2141shlibpath_overrides_runpath=unknown 2142version_type=none 2143dynamic_linker="$host_os ld.so" 2144sys_lib_dlsearch_path_spec="/lib /usr/lib" 2145sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 2146 2147case $host_os in 2148aix3*) 2149 version_type=linux 2150 library_names_spec='${libname}${release}.so$versuffix $libname.a' 2151 shlibpath_var=LIBPATH 2152 2153 # AIX has no versioning support, so we append a major version to the name. 2154 soname_spec='${libname}${release}.so$major' 2155 ;; 2156 2157aix4* | aix5*) 2158 version_type=linux 2159 if test "$host_cpu" = ia64; then 2160 # AIX 5 supports IA64 2161 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' 2162 shlibpath_var=LD_LIBRARY_PATH 2163 else 2164 # With GCC up to 2.95.x, collect2 would create an import file 2165 # for dependence libraries. The import file would start with 2166 # the line `#! .'. This would cause the generated library to 2167 # depend on `.', always an invalid library. This was fixed in 2168 # development snapshots of GCC prior to 3.0. 2169 case $host_os in 2170 aix4 | aix4.[[01]] | aix4.[[01]].*) 2171 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 2172 echo ' yes ' 2173 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 2174 : 2175 else 2176 can_build_shared=no 2177 fi 2178 ;; 2179 esac 2180 # AIX (on Power*) has no versioning support, so currently we can 2181 # not hardcode correct soname into executable. Probably we can 2182 # add versioning support to collect2, so additional links can 2183 # be useful in future. 2184 if test "$aix_use_runtimelinking" = yes; then 2185 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 2186 # instead of lib<name>.a to let people know that these are not 2187 # typical AIX shared libraries. 2188 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 2189 else 2190 # We preserve .a as extension for shared libraries through AIX4.2 2191 # and later when we are not doing run time linking. 2192 library_names_spec='${libname}${release}.a $libname.a' 2193 soname_spec='${libname}${release}.so$major' 2194 fi 2195 shlibpath_var=LIBPATH 2196 fi 2197 ;; 2198 2199amigaos*) 2200 library_names_spec='$libname.ixlibrary $libname.a' 2201 # Create ${libname}_ixlibrary.a entries in /sys/libs. 2202 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' 2203 ;; 2204 2205beos*) 2206 library_names_spec='${libname}.so' 2207 dynamic_linker="$host_os ld.so" 2208 shlibpath_var=LIBRARY_PATH 2209 ;; 2210 2211bsdi4*) 2212 version_type=linux 2213 need_version=no 2214 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 2215 soname_spec='${libname}${release}.so$major' 2216 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 2217 shlibpath_var=LD_LIBRARY_PATH 2218 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 2219 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 2220 export_dynamic_flag_spec=-rdynamic 2221 # the default ld.so.conf also contains /usr/contrib/lib and 2222 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 2223 # libtool to hard-code these into programs 2224 ;; 2225 2226cygwin* | mingw* | pw32*) 2227 version_type=windows 2228 need_version=no 2229 need_lib_prefix=no 2230 case $GCC,$host_os in 2231 yes,cygwin*) 2232 library_names_spec='$libname.dll.a' 2233 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll' 2234 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ 2235 dldir=$destdir/`dirname \$dlpath`~ 2236 test -d \$dldir || mkdir -p \$dldir~ 2237 $install_prog .libs/$dlname \$dldir/$dlname' 2238 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ 2239 dlpath=$dir/\$dldll~ 2240 $rm \$dlpath' 2241 ;; 2242 yes,mingw*) 2243 library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll' 2244 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"` 2245 ;; 2246 yes,pw32*) 2247 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 2248 ;; 2249 *) 2250 library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib' 2251 ;; 2252 esac 2253 dynamic_linker='Win32 ld.exe' 2254 # FIXME: first we should search . and the directory the executable is in 2255 shlibpath_var=PATH 2256 ;; 2257 2258darwin* | rhapsody*) 2259 dynamic_linker="$host_os dyld" 2260 version_type=darwin 2261 need_lib_prefix=no 2262 need_version=no 2263 # FIXME: Relying on posixy $() will cause problems for 2264 # cross-compilation, but unfortunately the echo tests do not 2265 # yet detect zsh echo's removal of \ escapes. 2266 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' 2267 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' 2268 shlibpath_overrides_runpath=yes 2269 shlibpath_var=DYLD_LIBRARY_PATH 2270 ;; 2271 2272freebsd1*) 2273 dynamic_linker=no 2274 ;; 2275 2276freebsd*) 2277 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 2278 version_type=freebsd-$objformat 2279 case $version_type in 2280 freebsd-elf*) 2281 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' 2282 need_version=no 2283 need_lib_prefix=no 2284 ;; 2285 freebsd-*) 2286 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' 2287 need_version=yes 2288 ;; 2289 esac 2290 shlibpath_var=LD_LIBRARY_PATH 2291 case $host_os in 2292 freebsd2*) 2293 shlibpath_overrides_runpath=yes 2294 ;; 2295 *) 2296 shlibpath_overrides_runpath=no 2297 hardcode_into_libs=yes 2298 ;; 2299 esac 2300 ;; 2301 2302gnu*) 2303 version_type=linux 2304 need_lib_prefix=no 2305 need_version=no 2306 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' 2307 soname_spec='${libname}${release}.so$major' 2308 shlibpath_var=LD_LIBRARY_PATH 2309 hardcode_into_libs=yes 2310 ;; 2311 2312hpux9* | hpux10* | hpux11*) 2313 # Give a soname corresponding to the major version so that dld.sl refuses to 2314 # link against other versions. 2315 dynamic_linker="$host_os dld.sl" 2316 version_type=sunos 2317 need_lib_prefix=no 2318 need_version=no 2319 shlibpath_var=SHLIB_PATH 2320 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 2321 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' 2322 soname_spec='${libname}${release}.sl$major' 2323 # HP-UX runs *really* slowly unless shared libraries are mode 555. 2324 postinstall_cmds='chmod 555 $lib' 2325 ;; 2326 2327irix5* | irix6* | nonstopux*) 2328 case $host_os in 2329 nonstopux*) version_type=nonstopux ;; 2330 *) version_type=irix ;; 2331 esac 2332 need_lib_prefix=no 2333 need_version=no 2334 soname_spec='${libname}${release}.so$major' 2335 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' 2336 case $host_os in 2337 irix5* | nonstopux*) 2338 libsuff= shlibsuff= 2339 ;; 2340 *) 2341 case $LD in # libtool.m4 will add one of these switches to LD 2342 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; 2343 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; 2344 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; 2345 *) libsuff= shlibsuff= libmagic=never-match;; 2346 esac 2347 ;; 2348 esac 2349 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 2350 shlibpath_overrides_runpath=no 2351 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 2352 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 2353 ;; 2354 2355# No shared lib support for Linux oldld, aout, or coff. 2356linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) 2357 dynamic_linker=no 2358 ;; 2359 2360# This must be Linux ELF. 2361linux-gnu*) 2362 version_type=linux 2363 need_lib_prefix=no 2364 need_version=no 2365 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 2366 soname_spec='${libname}${release}.so$major' 2367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 2368 shlibpath_var=LD_LIBRARY_PATH 2369 shlibpath_overrides_runpath=no 2370 # This implies no fast_install, which is unacceptable. 2371 # Some rework will be needed to allow for fast_install 2372 # before this can be enabled. 2373 hardcode_into_libs=yes 2374 2375 # We used to test for /lib/ld.so.1 and disable shared libraries on 2376 # powerpc, because MkLinux only supported shared libraries with the 2377 # GNU dynamic linker. Since this was broken with cross compilers, 2378 # most powerpc-linux boxes support dynamic linking these days and 2379 # people can always --disable-shared, the test was removed, and we 2380 # assume the GNU/Linux dynamic linker is in use. 2381 dynamic_linker='GNU/Linux ld.so' 2382 ;; 2383 2384netbsd*) 2385 version_type=sunos 2386 need_lib_prefix=no 2387 need_version=no 2388 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 2389 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 2390 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 2391 dynamic_linker='NetBSD (a.out) ld.so' 2392 else 2393 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' 2394 soname_spec='${libname}${release}.so$major' 2395 dynamic_linker='NetBSD ld.elf_so' 2396 fi 2397 shlibpath_var=LD_LIBRARY_PATH 2398 shlibpath_overrides_runpath=yes 2399 hardcode_into_libs=yes 2400 ;; 2401 2402newsos6) 2403 version_type=linux 2404 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 2405 shlibpath_var=LD_LIBRARY_PATH 2406 shlibpath_overrides_runpath=yes 2407 ;; 2408 2409openbsd*) 2410 version_type=sunos 2411 need_lib_prefix=no 2412 need_version=no 2413 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 2414 case "$host_os" in 2415 openbsd2.[[89]] | openbsd2.[[89]].*) 2416 shlibpath_overrides_runpath=no 2417 ;; 2418 *) 2419 shlibpath_overrides_runpath=yes 2420 ;; 2421 esac 2422 else 2423 shlibpath_overrides_runpath=yes 2424 fi 2425 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 2426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 2427 shlibpath_var=LD_LIBRARY_PATH 2428 ;; 2429 2430os2*) 2431 libname_spec='$name' 2432 need_lib_prefix=no 2433 library_names_spec='$libname.dll $libname.a' 2434 dynamic_linker='OS/2 ld.exe' 2435 shlibpath_var=LIBPATH 2436 ;; 2437 2438osf3* | osf4* | osf5*) 2439 version_type=osf 2440 need_version=no 2441 need_lib_prefix=no 2442 soname_spec='${libname}${release}.so' 2443 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' 2444 shlibpath_var=LD_LIBRARY_PATH 2445 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 2446 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 2447 ;; 2448 2449sco3.2v5*) 2450 version_type=osf 2451 soname_spec='${libname}${release}.so$major' 2452 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 2453 shlibpath_var=LD_LIBRARY_PATH 2454 ;; 2455 2456solaris*) 2457 version_type=linux 2458 need_lib_prefix=no 2459 need_version=no 2460 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 2461 soname_spec='${libname}${release}.so$major' 2462 shlibpath_var=LD_LIBRARY_PATH 2463 shlibpath_overrides_runpath=yes 2464 hardcode_into_libs=yes 2465 # ldd complains unless libraries are executable 2466 postinstall_cmds='chmod +x $lib' 2467 ;; 2468 2469sunos4*) 2470 version_type=sunos 2471 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 2472 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 2473 shlibpath_var=LD_LIBRARY_PATH 2474 shlibpath_overrides_runpath=yes 2475 if test "$with_gnu_ld" = yes; then 2476 need_lib_prefix=no 2477 fi 2478 need_version=yes 2479 ;; 2480 2481sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 2482 version_type=linux 2483 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 2484 soname_spec='${libname}${release}.so$major' 2485 shlibpath_var=LD_LIBRARY_PATH 2486 case $host_vendor in 2487 sni) 2488 shlibpath_overrides_runpath=no 2489 ;; 2490 motorola) 2491 need_lib_prefix=no 2492 need_version=no 2493 shlibpath_overrides_runpath=no 2494 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 2495 ;; 2496 esac 2497 ;; 2498 2499uts4*) 2500 version_type=linux 2501 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 2502 soname_spec='${libname}${release}.so$major' 2503 shlibpath_var=LD_LIBRARY_PATH 2504 ;; 2505 2506dgux*) 2507 version_type=linux 2508 need_lib_prefix=no 2509 need_version=no 2510 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 2511 soname_spec='${libname}${release}.so$major' 2512 shlibpath_var=LD_LIBRARY_PATH 2513 ;; 2514 2515sysv4*MP*) 2516 if test -d /usr/nec ;then 2517 version_type=linux 2518 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' 2519 soname_spec='$libname.so.$major' 2520 shlibpath_var=LD_LIBRARY_PATH 2521 fi 2522 ;; 2523 2524*) 2525 dynamic_linker=no 2526 ;; 2527esac 2528AC_MSG_RESULT([$dynamic_linker]) 2529test "$dynamic_linker" = no && can_build_shared=no 2530 2531# Report the final consequences. 2532AC_MSG_CHECKING([if libtool supports shared libraries]) 2533AC_MSG_RESULT([$can_build_shared]) 2534 2535AC_MSG_CHECKING([whether to build shared libraries]) 2536test "$can_build_shared" = "no" && enable_shared=no 2537 2538# On AIX, shared libraries and static libraries use the same namespace, and 2539# are all built from PIC. 2540case "$host_os" in 2541aix3*) 2542 test "$enable_shared" = yes && enable_static=no 2543 if test -n "$RANLIB"; then 2544 archive_cmds="$archive_cmds~\$RANLIB \$lib" 2545 postinstall_cmds='$RANLIB $lib' 2546 fi 2547 ;; 2548 2549aix4*) 2550 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 2551 test "$enable_shared" = yes && enable_static=no 2552 fi 2553 ;; 2554esac 2555AC_MSG_RESULT([$enable_shared]) 2556 2557AC_MSG_CHECKING([whether to build static libraries]) 2558# Make sure either enable_shared or enable_static is yes. 2559test "$enable_shared" = yes || enable_static=yes 2560AC_MSG_RESULT([$enable_static]) 2561 2562if test "$hardcode_action" = relink; then 2563 # Fast installation is not supported 2564 enable_fast_install=no 2565elif test "$shlibpath_overrides_runpath" = yes || 2566 test "$enable_shared" = no; then 2567 # Fast installation is not necessary 2568 enable_fast_install=needless 2569fi 2570 2571variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 2572if test "$GCC" = yes; then 2573 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 2574fi 2575 2576AC_LIBTOOL_DLOPEN_SELF 2577 2578if test "$enable_shared" = yes && test "$GCC" = yes; then 2579 case $archive_cmds in 2580 *'~'*) 2581 # FIXME: we may have to deal with multi-command sequences. 2582 ;; 2583 '$CC '*) 2584 # Test whether the compiler implicitly links with -lc since on some 2585 # systems, -lgcc has to come before -lc. If gcc already passes -lc 2586 # to ld, don't add -lc before -lgcc. 2587 AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 2588 AC_CACHE_VAL([lt_cv_archive_cmds_need_lc], 2589 [$rm conftest* 2590 echo 'static int dummy;' > conftest.$ac_ext 2591 2592 if AC_TRY_EVAL(ac_compile); then 2593 soname=conftest 2594 lib=conftest 2595 libobjs=conftest.$ac_objext 2596 deplibs= 2597 wl=$lt_cv_prog_cc_wl 2598 compiler_flags=-v 2599 linker_flags=-v 2600 verstring= 2601 output_objdir=. 2602 libname=conftest 2603 save_allow_undefined_flag=$allow_undefined_flag 2604 allow_undefined_flag= 2605 if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2606 then 2607 lt_cv_archive_cmds_need_lc=no 2608 else 2609 lt_cv_archive_cmds_need_lc=yes 2610 fi 2611 allow_undefined_flag=$save_allow_undefined_flag 2612 else 2613 cat conftest.err 1>&5 2614 fi]) 2615 AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc]) 2616 ;; 2617 esac 2618fi 2619need_lc=${lt_cv_archive_cmds_need_lc-yes} 2620 2621# The second clause should only fire when bootstrapping the 2622# libtool distribution, otherwise you forgot to ship ltmain.sh 2623# with your package, and you will get complaints that there are 2624# no rules to generate ltmain.sh. 2625if test -f "$ltmain"; then 2626 : 2627else 2628 # If there is no Makefile yet, we rely on a make rule to execute 2629 # `config.status --recheck' to rerun these tests and create the 2630 # libtool script then. 2631 test -f Makefile && make "$ltmain" 2632fi 2633 2634if test -f "$ltmain"; then 2635 trap "$rm \"${ofile}T\"; exit 1" 1 2 15 2636 $rm -f "${ofile}T" 2637 2638 echo creating $ofile 2639 2640 # Now quote all the things that may contain metacharacters while being 2641 # careful not to overquote the AC_SUBSTed values. We take copies of the 2642 # variables and quote the copies for generation of the libtool script. 2643 for var in echo old_CC old_CFLAGS \ 2644 AR AR_FLAGS CC LD LN_S NM SHELL \ 2645 reload_flag reload_cmds wl \ 2646 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ 2647 thread_safe_flag_spec whole_archive_flag_spec libname_spec \ 2648 library_names_spec soname_spec \ 2649 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ 2650 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ 2651 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ 2652 old_striplib striplib file_magic_cmd export_symbols_cmds \ 2653 deplibs_check_method allow_undefined_flag no_undefined_flag \ 2654 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ 2655 global_symbol_to_c_name_address \ 2656 hardcode_libdir_flag_spec hardcode_libdir_separator \ 2657 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 2658 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do 2659 2660 case $var in 2661 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ 2662 old_postinstall_cmds | old_postuninstall_cmds | \ 2663 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ 2664 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ 2665 postinstall_cmds | postuninstall_cmds | \ 2666 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 2667 # Double-quote double-evaled strings. 2668 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 2669 ;; 2670 *) 2671 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 2672 ;; 2673 esac 2674 done 2675 2676 cat <<__EOF__ > "${ofile}T" 2677#! $SHELL 2678 2679# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 2680# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 2681# NOTE: Changes made to this file will be lost: look at ltmain.sh. 2682# 2683# Copyright (C) 1996-2000 Free Software Foundation, Inc. 2684# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 2685# 2686# This program is free software; you can redistribute it and/or modify 2687# it under the terms of the GNU General Public License as published by 2688# the Free Software Foundation; either version 2 of the License, or 2689# (at your option) any later version. 2690# 2691# This program is distributed in the hope that it will be useful, but 2692# WITHOUT ANY WARRANTY; without even the implied warranty of 2693# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 2694# General Public License for more details. 2695# 2696# You should have received a copy of the GNU General Public License 2697# along with this program; if not, write to the Free Software 2698# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 2699# 2700# As a special exception to the GNU General Public License, if you 2701# distribute this file as part of a program that contains a 2702# configuration script generated by Autoconf, you may include it under 2703# the same distribution terms that you use for the rest of that program. 2704 2705# Sed that helps us avoid accidentally triggering echo(1) options like -n. 2706Xsed="sed -e s/^X//" 2707 2708# The HP-UX ksh and POSIX shell print the target directory to stdout 2709# if CDPATH is set. 2710if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 2711 2712# ### BEGIN LIBTOOL CONFIG 2713 2714# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 2715 2716# Shell to use when invoking shell scripts. 2717SHELL=$lt_SHELL 2718 2719# Whether or not to build shared libraries. 2720build_libtool_libs=$enable_shared 2721 2722# Whether or not to build static libraries. 2723build_old_libs=$enable_static 2724 2725# Whether or not to add -lc for building shared libraries. 2726build_libtool_need_lc=$need_lc 2727 2728# Whether or not to optimize for fast installation. 2729fast_install=$enable_fast_install 2730 2731# The host system. 2732host_alias=$host_alias 2733host=$host 2734 2735# An echo program that does not interpret backslashes. 2736echo=$lt_echo 2737 2738# The archiver. 2739AR=$lt_AR 2740AR_FLAGS=$lt_AR_FLAGS 2741 2742# The default C compiler. 2743CC=$lt_CC 2744 2745# Is the compiler the GNU C compiler? 2746with_gcc=$GCC 2747 2748# The linker used to build libraries. 2749LD=$lt_LD 2750 2751# Whether we need hard or soft links. 2752LN_S=$lt_LN_S 2753 2754# A BSD-compatible nm program. 2755NM=$lt_NM 2756 2757# A symbol stripping program 2758STRIP=$STRIP 2759 2760# Used to examine libraries when file_magic_cmd begins "file" 2761MAGIC_CMD=$MAGIC_CMD 2762 2763# Used on cygwin: DLL creation program. 2764DLLTOOL="$DLLTOOL" 2765 2766# Used on cygwin: object dumper. 2767OBJDUMP="$OBJDUMP" 2768 2769# Used on cygwin: assembler. 2770AS="$AS" 2771 2772# The name of the directory that contains temporary libtool files. 2773objdir=$objdir 2774 2775# How to create reloadable object files. 2776reload_flag=$lt_reload_flag 2777reload_cmds=$lt_reload_cmds 2778 2779# How to pass a linker flag through the compiler. 2780wl=$lt_wl 2781 2782# Object file suffix (normally "o"). 2783objext="$ac_objext" 2784 2785# Old archive suffix (normally "a"). 2786libext="$libext" 2787 2788# Executable file suffix (normally ""). 2789exeext="$exeext" 2790 2791# Additional compiler flags for building library objects. 2792pic_flag=$lt_pic_flag 2793pic_mode=$pic_mode 2794 2795# Does compiler simultaneously support -c and -o options? 2796compiler_c_o=$lt_compiler_c_o 2797 2798# Can we write directly to a .lo ? 2799compiler_o_lo=$lt_compiler_o_lo 2800 2801# Must we lock files when doing compilation ? 2802need_locks=$lt_need_locks 2803 2804# Do we need the lib prefix for modules? 2805need_lib_prefix=$need_lib_prefix 2806 2807# Do we need a version for libraries? 2808need_version=$need_version 2809 2810# Whether dlopen is supported. 2811dlopen_support=$enable_dlopen 2812 2813# Whether dlopen of programs is supported. 2814dlopen_self=$enable_dlopen_self 2815 2816# Whether dlopen of statically linked programs is supported. 2817dlopen_self_static=$enable_dlopen_self_static 2818 2819# Compiler flag to prevent dynamic linking. 2820link_static_flag=$lt_link_static_flag 2821 2822# Compiler flag to turn off builtin functions. 2823no_builtin_flag=$lt_no_builtin_flag 2824 2825# Compiler flag to allow reflexive dlopens. 2826export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 2827 2828# Compiler flag to generate shared objects directly from archives. 2829whole_archive_flag_spec=$lt_whole_archive_flag_spec 2830 2831# Compiler flag to generate thread-safe objects. 2832thread_safe_flag_spec=$lt_thread_safe_flag_spec 2833 2834# Library versioning type. 2835version_type=$version_type 2836 2837# Format of library name prefix. 2838libname_spec=$lt_libname_spec 2839 2840# List of archive names. First name is the real one, the rest are links. 2841# The last name is the one that the linker finds with -lNAME. 2842library_names_spec=$lt_library_names_spec 2843 2844# The coded name of the library, if different from the real name. 2845soname_spec=$lt_soname_spec 2846 2847# Commands used to build and install an old-style archive. 2848RANLIB=$lt_RANLIB 2849old_archive_cmds=$lt_old_archive_cmds 2850old_postinstall_cmds=$lt_old_postinstall_cmds 2851old_postuninstall_cmds=$lt_old_postuninstall_cmds 2852 2853# Create an old-style archive from a shared archive. 2854old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 2855 2856# Create a temporary old-style archive to link instead of a shared archive. 2857old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 2858 2859# Commands used to build and install a shared archive. 2860archive_cmds=$lt_archive_cmds 2861archive_expsym_cmds=$lt_archive_expsym_cmds 2862postinstall_cmds=$lt_postinstall_cmds 2863postuninstall_cmds=$lt_postuninstall_cmds 2864 2865# Commands to strip libraries. 2866old_striplib=$lt_old_striplib 2867striplib=$lt_striplib 2868 2869# Method to check whether dependent libraries are shared objects. 2870deplibs_check_method=$lt_deplibs_check_method 2871 2872# Command to use when deplibs_check_method == file_magic. 2873file_magic_cmd=$lt_file_magic_cmd 2874 2875# Flag that allows shared libraries with undefined symbols to be built. 2876allow_undefined_flag=$lt_allow_undefined_flag 2877 2878# Flag that forces no undefined symbols. 2879no_undefined_flag=$lt_no_undefined_flag 2880 2881# Commands used to finish a libtool library installation in a directory. 2882finish_cmds=$lt_finish_cmds 2883 2884# Same as above, but a single script fragment to be evaled but not shown. 2885finish_eval=$lt_finish_eval 2886 2887# Take the output of nm and produce a listing of raw symbols and C names. 2888global_symbol_pipe=$lt_global_symbol_pipe 2889 2890# Transform the output of nm in a proper C declaration 2891global_symbol_to_cdecl=$lt_global_symbol_to_cdecl 2892 2893# Transform the output of nm in a C name address pair 2894global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address 2895 2896# This is the shared library runtime path variable. 2897runpath_var=$runpath_var 2898 2899# This is the shared library path variable. 2900shlibpath_var=$shlibpath_var 2901 2902# Is shlibpath searched before the hard-coded library search path? 2903shlibpath_overrides_runpath=$shlibpath_overrides_runpath 2904 2905# How to hardcode a shared library path into an executable. 2906hardcode_action=$hardcode_action 2907 2908# Whether we should hardcode library paths into libraries. 2909hardcode_into_libs=$hardcode_into_libs 2910 2911# Flag to hardcode \$libdir into a binary during linking. 2912# This must work even if \$libdir does not exist. 2913hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 2914 2915# Whether we need a single -rpath flag with a separated argument. 2916hardcode_libdir_separator=$lt_hardcode_libdir_separator 2917 2918# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the 2919# resulting binary. 2920hardcode_direct=$hardcode_direct 2921 2922# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 2923# resulting binary. 2924hardcode_minus_L=$hardcode_minus_L 2925 2926# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 2927# the resulting binary. 2928hardcode_shlibpath_var=$hardcode_shlibpath_var 2929 2930# Variables whose values should be saved in libtool wrapper scripts and 2931# restored at relink time. 2932variables_saved_for_relink="$variables_saved_for_relink" 2933 2934# Whether libtool must link a program against all its dependency libraries. 2935link_all_deplibs=$link_all_deplibs 2936 2937# Compile-time system search path for libraries 2938sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 2939 2940# Run-time system search path for libraries 2941sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 2942 2943# Fix the shell variable \$srcfile for the compiler. 2944fix_srcfile_path="$fix_srcfile_path" 2945 2946# Set to yes if exported symbols are required. 2947always_export_symbols=$always_export_symbols 2948 2949# The commands to list exported symbols. 2950export_symbols_cmds=$lt_export_symbols_cmds 2951 2952# The commands to extract the exported symbol list from a shared archive. 2953extract_expsyms_cmds=$lt_extract_expsyms_cmds 2954 2955# Symbols that should not be listed in the preloaded symbols. 2956exclude_expsyms=$lt_exclude_expsyms 2957 2958# Symbols that must always be exported. 2959include_expsyms=$lt_include_expsyms 2960 2961# ### END LIBTOOL CONFIG 2962 2963__EOF__ 2964 2965 case $host_os in 2966 aix3*) 2967 cat <<\EOF >> "${ofile}T" 2968 2969# AIX sometimes has problems with the GCC collect2 program. For some 2970# reason, if we set the COLLECT_NAMES environment variable, the problems 2971# vanish in a puff of smoke. 2972if test "X${COLLECT_NAMES+set}" != Xset; then 2973 COLLECT_NAMES= 2974 export COLLECT_NAMES 2975fi 2976EOF 2977 ;; 2978 esac 2979 2980 case $host_os in 2981 cygwin* | mingw* | pw32* | os2*) 2982 cat <<'EOF' >> "${ofile}T" 2983 # This is a source program that is used to create dlls on Windows 2984 # Don't remove nor modify the starting and closing comments 2985# /* ltdll.c starts here */ 2986# #define WIN32_LEAN_AND_MEAN 2987# #include <windows.h> 2988# #undef WIN32_LEAN_AND_MEAN 2989# #include <stdio.h> 2990# 2991# #ifndef __CYGWIN__ 2992# # ifdef __CYGWIN32__ 2993# # define __CYGWIN__ __CYGWIN32__ 2994# # endif 2995# #endif 2996# 2997# #ifdef __cplusplus 2998# extern "C" { 2999# #endif 3000# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); 3001# #ifdef __cplusplus 3002# } 3003# #endif 3004# 3005# #ifdef __CYGWIN__ 3006# #include <cygwin/cygwin_dll.h> 3007# DECLARE_CYGWIN_DLL( DllMain ); 3008# #endif 3009# HINSTANCE __hDllInstance_base; 3010# 3011# BOOL APIENTRY 3012# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) 3013# { 3014# __hDllInstance_base = hInst; 3015# return TRUE; 3016# } 3017# /* ltdll.c ends here */ 3018 # This is a source program that is used to create import libraries 3019 # on Windows for dlls which lack them. Don't remove nor modify the 3020 # starting and closing comments 3021# /* impgen.c starts here */ 3022# /* Copyright (C) 1999-2000 Free Software Foundation, Inc. 3023# 3024# This file is part of GNU libtool. 3025# 3026# This program is free software; you can redistribute it and/or modify 3027# it under the terms of the GNU General Public License as published by 3028# the Free Software Foundation; either version 2 of the License, or 3029# (at your option) any later version. 3030# 3031# This program is distributed in the hope that it will be useful, 3032# but WITHOUT ANY WARRANTY; without even the implied warranty of 3033# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 3034# GNU General Public License for more details. 3035# 3036# You should have received a copy of the GNU General Public License 3037# along with this program; if not, write to the Free Software 3038# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3039# */ 3040# 3041# #include <stdio.h> /* for printf() */ 3042# #include <unistd.h> /* for open(), lseek(), read() */ 3043# #include <fcntl.h> /* for O_RDONLY, O_BINARY */ 3044# #include <string.h> /* for strdup() */ 3045# 3046# /* O_BINARY isn't required (or even defined sometimes) under Unix */ 3047# #ifndef O_BINARY 3048# #define O_BINARY 0 3049# #endif 3050# 3051# static unsigned int 3052# pe_get16 (fd, offset) 3053# int fd; 3054# int offset; 3055# { 3056# unsigned char b[2]; 3057# lseek (fd, offset, SEEK_SET); 3058# read (fd, b, 2); 3059# return b[0] + (b[1]<<8); 3060# } 3061# 3062# static unsigned int 3063# pe_get32 (fd, offset) 3064# int fd; 3065# int offset; 3066# { 3067# unsigned char b[4]; 3068# lseek (fd, offset, SEEK_SET); 3069# read (fd, b, 4); 3070# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); 3071# } 3072# 3073# static unsigned int 3074# pe_as32 (ptr) 3075# void *ptr; 3076# { 3077# unsigned char *b = ptr; 3078# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); 3079# } 3080# 3081# int 3082# main (argc, argv) 3083# int argc; 3084# char *argv[]; 3085# { 3086# int dll; 3087# unsigned long pe_header_offset, opthdr_ofs, num_entries, i; 3088# unsigned long export_rva, export_size, nsections, secptr, expptr; 3089# unsigned long name_rvas, nexp; 3090# unsigned char *expdata, *erva; 3091# char *filename, *dll_name; 3092# 3093# filename = argv[1]; 3094# 3095# dll = open(filename, O_RDONLY|O_BINARY); 3096# if (dll < 1) 3097# return 1; 3098# 3099# dll_name = filename; 3100# 3101# for (i=0; filename[i]; i++) 3102# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') 3103# dll_name = filename + i +1; 3104# 3105# pe_header_offset = pe_get32 (dll, 0x3c); 3106# opthdr_ofs = pe_header_offset + 4 + 20; 3107# num_entries = pe_get32 (dll, opthdr_ofs + 92); 3108# 3109# if (num_entries < 1) /* no exports */ 3110# return 1; 3111# 3112# export_rva = pe_get32 (dll, opthdr_ofs + 96); 3113# export_size = pe_get32 (dll, opthdr_ofs + 100); 3114# nsections = pe_get16 (dll, pe_header_offset + 4 +2); 3115# secptr = (pe_header_offset + 4 + 20 + 3116# pe_get16 (dll, pe_header_offset + 4 + 16)); 3117# 3118# expptr = 0; 3119# for (i = 0; i < nsections; i++) 3120# { 3121# char sname[8]; 3122# unsigned long secptr1 = secptr + 40 * i; 3123# unsigned long vaddr = pe_get32 (dll, secptr1 + 12); 3124# unsigned long vsize = pe_get32 (dll, secptr1 + 16); 3125# unsigned long fptr = pe_get32 (dll, secptr1 + 20); 3126# lseek(dll, secptr1, SEEK_SET); 3127# read(dll, sname, 8); 3128# if (vaddr <= export_rva && vaddr+vsize > export_rva) 3129# { 3130# expptr = fptr + (export_rva - vaddr); 3131# if (export_rva + export_size > vaddr + vsize) 3132# export_size = vsize - (export_rva - vaddr); 3133# break; 3134# } 3135# } 3136# 3137# expdata = (unsigned char*)malloc(export_size); 3138# lseek (dll, expptr, SEEK_SET); 3139# read (dll, expdata, export_size); 3140# erva = expdata - export_rva; 3141# 3142# nexp = pe_as32 (expdata+24); 3143# name_rvas = pe_as32 (expdata+32); 3144# 3145# printf ("EXPORTS\n"); 3146# for (i = 0; i<nexp; i++) 3147# { 3148# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); 3149# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); 3150# } 3151# 3152# return 0; 3153# } 3154# /* impgen.c ends here */ 3155 3156EOF 3157 ;; 3158 esac 3159 3160 # We use sed instead of cat because bash on DJGPP gets confused if 3161 # if finds mixed CR/LF and LF-only lines. Since sed operates in 3162 # text mode, it properly converts lines to CR/LF. This bash problem 3163 # is reportedly fixed, but why not run on old versions too? 3164 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) 3165 3166 mv -f "${ofile}T" "$ofile" || \ 3167 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") 3168 chmod +x "$ofile" 3169fi 3170 3171])# _LT_AC_LTCONFIG_HACK 3172 3173# AC_LIBTOOL_DLOPEN - enable checks for dlopen support 3174AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])]) 3175 3176# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's 3177AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])]) 3178 3179# AC_ENABLE_SHARED - implement the --enable-shared flag 3180# Usage: AC_ENABLE_SHARED[(DEFAULT)] 3181# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to 3182# `yes'. 3183AC_DEFUN([AC_ENABLE_SHARED], 3184[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl 3185AC_ARG_ENABLE(shared, 3186changequote(<<, >>)dnl 3187<< --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT], 3188changequote([, ])dnl 3189[p=${PACKAGE-default} 3190case $enableval in 3191yes) enable_shared=yes ;; 3192no) enable_shared=no ;; 3193*) 3194 enable_shared=no 3195 # Look at the argument we got. We use all the common list separators. 3196 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3197 for pkg in $enableval; do 3198 if test "X$pkg" = "X$p"; then 3199 enable_shared=yes 3200 fi 3201 done 3202 IFS="$ac_save_ifs" 3203 ;; 3204esac], 3205enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl 3206]) 3207 3208# AC_DISABLE_SHARED - set the default shared flag to --disable-shared 3209AC_DEFUN([AC_DISABLE_SHARED], 3210[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 3211AC_ENABLE_SHARED(no)]) 3212 3213# AC_ENABLE_STATIC - implement the --enable-static flag 3214# Usage: AC_ENABLE_STATIC[(DEFAULT)] 3215# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to 3216# `yes'. 3217AC_DEFUN([AC_ENABLE_STATIC], 3218[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl 3219AC_ARG_ENABLE(static, 3220changequote(<<, >>)dnl 3221<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT], 3222changequote([, ])dnl 3223[p=${PACKAGE-default} 3224case $enableval in 3225yes) enable_static=yes ;; 3226no) enable_static=no ;; 3227*) 3228 enable_static=no 3229 # Look at the argument we got. We use all the common list separators. 3230 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3231 for pkg in $enableval; do 3232 if test "X$pkg" = "X$p"; then 3233 enable_static=yes 3234 fi 3235 done 3236 IFS="$ac_save_ifs" 3237 ;; 3238esac], 3239enable_static=AC_ENABLE_STATIC_DEFAULT)dnl 3240]) 3241 3242# AC_DISABLE_STATIC - set the default static flag to --disable-static 3243AC_DEFUN([AC_DISABLE_STATIC], 3244[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 3245AC_ENABLE_STATIC(no)]) 3246 3247 3248# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag 3249# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)] 3250# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to 3251# `yes'. 3252AC_DEFUN([AC_ENABLE_FAST_INSTALL], 3253[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl 3254AC_ARG_ENABLE(fast-install, 3255changequote(<<, >>)dnl 3256<< --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT], 3257changequote([, ])dnl 3258[p=${PACKAGE-default} 3259case $enableval in 3260yes) enable_fast_install=yes ;; 3261no) enable_fast_install=no ;; 3262*) 3263 enable_fast_install=no 3264 # Look at the argument we got. We use all the common list separators. 3265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3266 for pkg in $enableval; do 3267 if test "X$pkg" = "X$p"; then 3268 enable_fast_install=yes 3269 fi 3270 done 3271 IFS="$ac_save_ifs" 3272 ;; 3273esac], 3274enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl 3275]) 3276 3277# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install 3278AC_DEFUN([AC_DISABLE_FAST_INSTALL], 3279[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 3280AC_ENABLE_FAST_INSTALL(no)]) 3281 3282# AC_LIBTOOL_PICMODE - implement the --with-pic flag 3283# Usage: AC_LIBTOOL_PICMODE[(MODE)] 3284# Where MODE is either `yes' or `no'. If omitted, it defaults to 3285# `both'. 3286AC_DEFUN([AC_LIBTOOL_PICMODE], 3287[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 3288pic_mode=ifelse($#,1,$1,default)]) 3289 3290 3291# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library 3292AC_DEFUN([AC_PATH_TOOL_PREFIX], 3293[AC_MSG_CHECKING([for $1]) 3294AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 3295[case $MAGIC_CMD in 3296 /*) 3297 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 3298 ;; 3299 ?:/*) 3300 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 3301 ;; 3302 *) 3303 ac_save_MAGIC_CMD="$MAGIC_CMD" 3304 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3305dnl $ac_dummy forces splitting on constant user-supplied paths. 3306dnl POSIX.2 word splitting is done only on the output of word expansions, 3307dnl not every word. This closes a longstanding sh security hole. 3308 ac_dummy="ifelse([$2], , $PATH, [$2])" 3309 for ac_dir in $ac_dummy; do 3310 test -z "$ac_dir" && ac_dir=. 3311 if test -f $ac_dir/$1; then 3312 lt_cv_path_MAGIC_CMD="$ac_dir/$1" 3313 if test -n "$file_magic_test_file"; then 3314 case $deplibs_check_method in 3315 "file_magic "*) 3316 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 3317 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3318 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 3319 egrep "$file_magic_regex" > /dev/null; then 3320 : 3321 else 3322 cat <<EOF 1>&2 3323 3324*** Warning: the command libtool uses to detect shared libraries, 3325*** $file_magic_cmd, produces output that libtool cannot recognize. 3326*** The result is that libtool may fail to recognize shared libraries 3327*** as such. This will affect the creation of libtool libraries that 3328*** depend on shared libraries, but programs linked with such libtool 3329*** libraries will work regardless of this problem. Nevertheless, you 3330*** may want to report the problem to your system manager and/or to 3331*** bug-libtool@gnu.org 3332 3333EOF 3334 fi ;; 3335 esac 3336 fi 3337 break 3338 fi 3339 done 3340 IFS="$ac_save_ifs" 3341 MAGIC_CMD="$ac_save_MAGIC_CMD" 3342 ;; 3343esac]) 3344MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3345if test -n "$MAGIC_CMD"; then 3346 AC_MSG_RESULT($MAGIC_CMD) 3347else 3348 AC_MSG_RESULT(no) 3349fi 3350]) 3351 3352 3353# AC_PATH_MAGIC - find a file program which can recognise a shared library 3354AC_DEFUN([AC_PATH_MAGIC], 3355[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl 3356AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH) 3357if test -z "$lt_cv_path_MAGIC_CMD"; then 3358 if test -n "$ac_tool_prefix"; then 3359 AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH) 3360 else 3361 MAGIC_CMD=: 3362 fi 3363fi 3364]) 3365 3366 3367# AC_PROG_LD - find the path to the GNU or non-GNU linker 3368AC_DEFUN([AC_PROG_LD], 3369[AC_ARG_WITH(gnu-ld, 3370[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], 3371test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) 3372AC_REQUIRE([AC_PROG_CC])dnl 3373AC_REQUIRE([AC_CANONICAL_HOST])dnl 3374AC_REQUIRE([AC_CANONICAL_BUILD])dnl 3375AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl 3376ac_prog=ld 3377if test "$GCC" = yes; then 3378 # Check if gcc -print-prog-name=ld gives a path. 3379 AC_MSG_CHECKING([for ld used by GCC]) 3380 case $host in 3381 *-*-mingw*) 3382 # gcc leaves a trailing carriage return which upsets mingw 3383 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3384 *) 3385 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3386 esac 3387 case $ac_prog in 3388 # Accept absolute paths. 3389 [[\\/]]* | [[A-Za-z]]:[[\\/]]*) 3390 re_direlt='/[[^/]][[^/]]*/\.\./' 3391 # Canonicalize the path of ld 3392 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 3393 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3394 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 3395 done 3396 test -z "$LD" && LD="$ac_prog" 3397 ;; 3398 "") 3399 # If it fails, then pretend we aren't using GCC. 3400 ac_prog=ld 3401 ;; 3402 *) 3403 # If it is relative, then search for the first ld in PATH. 3404 with_gnu_ld=unknown 3405 ;; 3406 esac 3407elif test "$with_gnu_ld" = yes; then 3408 AC_MSG_CHECKING([for GNU ld]) 3409else 3410 AC_MSG_CHECKING([for non-GNU ld]) 3411fi 3412AC_CACHE_VAL(lt_cv_path_LD, 3413[if test -z "$LD"; then 3414 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3415 for ac_dir in $PATH; do 3416 test -z "$ac_dir" && ac_dir=. 3417 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3418 lt_cv_path_LD="$ac_dir/$ac_prog" 3419 # Check to see if the program is GNU ld. I'd rather use --version, 3420 # but apparently some GNU ld's only accept -v. 3421 # Break only if it was the GNU/non-GNU ld that we prefer. 3422 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 3423 test "$with_gnu_ld" != no && break 3424 else 3425 test "$with_gnu_ld" != yes && break 3426 fi 3427 fi 3428 done 3429 IFS="$ac_save_ifs" 3430else 3431 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3432fi]) 3433LD="$lt_cv_path_LD" 3434if test -n "$LD"; then 3435 AC_MSG_RESULT($LD) 3436else 3437 AC_MSG_RESULT(no) 3438fi 3439test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 3440AC_PROG_LD_GNU 3441]) 3442 3443# AC_PROG_LD_GNU - 3444AC_DEFUN([AC_PROG_LD_GNU], 3445[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 3446[# I'd rather use --version here, but apparently some GNU ld's only accept -v. 3447if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 3448 lt_cv_prog_gnu_ld=yes 3449else 3450 lt_cv_prog_gnu_ld=no 3451fi]) 3452with_gnu_ld=$lt_cv_prog_gnu_ld 3453]) 3454 3455# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker 3456# -- PORTME Some linkers may need a different reload flag. 3457AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], 3458[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag, 3459[lt_cv_ld_reload_flag='-r']) 3460reload_flag=$lt_cv_ld_reload_flag 3461test -n "$reload_flag" && reload_flag=" $reload_flag" 3462]) 3463 3464# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies 3465# -- PORTME fill in with the dynamic library characteristics 3466AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], 3467[AC_CACHE_CHECK([how to recognise dependant libraries], 3468lt_cv_deplibs_check_method, 3469[lt_cv_file_magic_cmd='$MAGIC_CMD' 3470lt_cv_file_magic_test_file= 3471lt_cv_deplibs_check_method='unknown' 3472# Need to set the preceding variable on all platforms that support 3473# interlibrary dependencies. 3474# 'none' -- dependencies not supported. 3475# `unknown' -- same as none, but documents that we really don't know. 3476# 'pass_all' -- all dependencies passed with no checks. 3477# 'test_compile' -- check by making test program. 3478# 'file_magic [[regex]]' -- check by looking for files in library path 3479# which responds to the $file_magic_cmd with a given egrep regex. 3480# If you have `file' or equivalent on your system and you're not sure 3481# whether `pass_all' will *always* work, you probably want this one. 3482 3483case $host_os in 3484aix4* | aix5*) 3485 lt_cv_deplibs_check_method=pass_all 3486 ;; 3487 3488beos*) 3489 lt_cv_deplibs_check_method=pass_all 3490 ;; 3491 3492bsdi4*) 3493 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 3494 lt_cv_file_magic_cmd='/usr/bin/file -L' 3495 lt_cv_file_magic_test_file=/shlib/libc.so 3496 ;; 3497 3498cygwin* | mingw* | pw32*) 3499 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3500 lt_cv_file_magic_cmd='$OBJDUMP -f' 3501 ;; 3502 3503darwin* | rhapsody*) 3504 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 3505 lt_cv_file_magic_cmd='/usr/bin/file -L' 3506 case "$host_os" in 3507 rhapsody* | darwin1.[[012]]) 3508 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` 3509 ;; 3510 *) # Darwin 1.3 on 3511 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 3512 ;; 3513 esac 3514 ;; 3515 3516freebsd*) 3517 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3518 case $host_cpu in 3519 i*86 ) 3520 # Not sure whether the presence of OpenBSD here was a mistake. 3521 # Let's accept both of them until this is cleared up. 3522 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' 3523 lt_cv_file_magic_cmd=/usr/bin/file 3524 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3525 ;; 3526 esac 3527 else 3528 lt_cv_deplibs_check_method=pass_all 3529 fi 3530 ;; 3531 3532gnu*) 3533 lt_cv_deplibs_check_method=pass_all 3534 ;; 3535 3536hpux10.20*|hpux11*) 3537 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' 3538 lt_cv_file_magic_cmd=/usr/bin/file 3539 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3540 ;; 3541 3542irix5* | irix6* | nonstopux*) 3543 case $host_os in 3544 irix5* | nonstopux*) 3545 # this will be overridden with pass_all, but let us keep it just in case 3546 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 3547 ;; 3548 *) 3549 case $LD in 3550 *-32|*"-32 ") libmagic=32-bit;; 3551 *-n32|*"-n32 ") libmagic=N32;; 3552 *-64|*"-64 ") libmagic=64-bit;; 3553 *) libmagic=never-match;; 3554 esac 3555 # this will be overridden with pass_all, but let us keep it just in case 3556 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1" 3557 ;; 3558 esac 3559 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 3560 lt_cv_deplibs_check_method=pass_all 3561 ;; 3562 3563# This must be Linux ELF. 3564linux-gnu*) 3565 lt_cv_deplibs_check_method=pass_all 3566 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 3567 ;; 3568 3569netbsd*) 3570 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3571 lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$' 3572 else 3573 lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$' 3574 fi 3575 ;; 3576 3577newos6*) 3578 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 3579 lt_cv_file_magic_cmd=/usr/bin/file 3580 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3581 ;; 3582 3583openbsd*) 3584 lt_cv_file_magic_cmd=/usr/bin/file 3585 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3586 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3587 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' 3588 else 3589 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 3590 fi 3591 ;; 3592 3593osf3* | osf4* | osf5*) 3594 # this will be overridden with pass_all, but let us keep it just in case 3595 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 3596 lt_cv_file_magic_test_file=/shlib/libc.so 3597 lt_cv_deplibs_check_method=pass_all 3598 ;; 3599 3600sco3.2v5*) 3601 lt_cv_deplibs_check_method=pass_all 3602 ;; 3603 3604solaris*) 3605 lt_cv_deplibs_check_method=pass_all 3606 lt_cv_file_magic_test_file=/lib/libc.so 3607 ;; 3608 3609sysv5uw[[78]]* | sysv4*uw2*) 3610 lt_cv_deplibs_check_method=pass_all 3611 ;; 3612 3613sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3614 case $host_vendor in 3615 motorola) 3616 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]]' 3617 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3618 ;; 3619 ncr) 3620 lt_cv_deplibs_check_method=pass_all 3621 ;; 3622 sequent) 3623 lt_cv_file_magic_cmd='/bin/file' 3624 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 3625 ;; 3626 sni) 3627 lt_cv_file_magic_cmd='/bin/file' 3628 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 3629 lt_cv_file_magic_test_file=/lib/libc.so 3630 ;; 3631 esac 3632 ;; 3633esac 3634]) 3635file_magic_cmd=$lt_cv_file_magic_cmd 3636deplibs_check_method=$lt_cv_deplibs_check_method 3637]) 3638 3639 3640# AC_PROG_NM - find the path to a BSD-compatible name lister 3641AC_DEFUN([AC_PROG_NM], 3642[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl 3643AC_MSG_CHECKING([for BSD-compatible nm]) 3644AC_CACHE_VAL(lt_cv_path_NM, 3645[if test -n "$NM"; then 3646 # Let the user override the test. 3647 lt_cv_path_NM="$NM" 3648else 3649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3650 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3651 test -z "$ac_dir" && ac_dir=. 3652 tmp_nm=$ac_dir/${ac_tool_prefix}nm 3653 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then 3654 # Check to see if the nm accepts a BSD-compat flag. 3655 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3656 # nm: unknown option "B" ignored 3657 # Tru64's nm complains that /dev/null is an invalid object file 3658 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then 3659 lt_cv_path_NM="$tmp_nm -B" 3660 break 3661 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 3662 lt_cv_path_NM="$tmp_nm -p" 3663 break 3664 else 3665 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3666 continue # so that we can try to find one that supports BSD flags 3667 fi 3668 fi 3669 done 3670 IFS="$ac_save_ifs" 3671 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3672fi]) 3673NM="$lt_cv_path_NM" 3674AC_MSG_RESULT([$NM]) 3675]) 3676 3677# AC_CHECK_LIBM - check for math library 3678AC_DEFUN([AC_CHECK_LIBM], 3679[AC_REQUIRE([AC_CANONICAL_HOST])dnl 3680LIBM= 3681case $host in 3682*-*-beos* | *-*-cygwin* | *-*-pw32*) 3683 # These system don't have libm 3684 ;; 3685*-ncr-sysv4.3*) 3686 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") 3687 AC_CHECK_LIB(m, main, LIBM="$LIBM -lm") 3688 ;; 3689*) 3690 AC_CHECK_LIB(m, main, LIBM="-lm") 3691 ;; 3692esac 3693]) 3694 3695# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for 3696# the libltdl convenience library and LTDLINCL to the include flags for 3697# the libltdl header and adds --enable-ltdl-convenience to the 3698# configure arguments. Note that LIBLTDL and LTDLINCL are not 3699# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not 3700# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed 3701# with '${top_builddir}/' and LTDLINCL will be prefixed with 3702# '${top_srcdir}/' (note the single quotes!). If your package is not 3703# flat and you're not using automake, define top_builddir and 3704# top_srcdir appropriately in the Makefiles. 3705AC_DEFUN([AC_LIBLTDL_CONVENIENCE], 3706[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 3707 case $enable_ltdl_convenience in 3708 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; 3709 "") enable_ltdl_convenience=yes 3710 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; 3711 esac 3712 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la 3713 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) 3714 # For backwards non-gettext consistent compatibility... 3715 INCLTDL="$LTDLINCL" 3716]) 3717 3718# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for 3719# the libltdl installable library and LTDLINCL to the include flags for 3720# the libltdl header and adds --enable-ltdl-install to the configure 3721# arguments. Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is 3722# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed 3723# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will 3724# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed 3725# with '${top_srcdir}/' (note the single quotes!). If your package is 3726# not flat and you're not using automake, define top_builddir and 3727# top_srcdir appropriately in the Makefiles. 3728# In the future, this macro may have to be called after AC_PROG_LIBTOOL. 3729AC_DEFUN([AC_LIBLTDL_INSTALLABLE], 3730[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 3731 AC_CHECK_LIB(ltdl, main, 3732 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], 3733 [if test x"$enable_ltdl_install" = xno; then 3734 AC_MSG_WARN([libltdl not installed, but installation disabled]) 3735 else 3736 enable_ltdl_install=yes 3737 fi 3738 ]) 3739 if test x"$enable_ltdl_install" = x"yes"; then 3740 ac_configure_args="$ac_configure_args --enable-ltdl-install" 3741 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la 3742 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) 3743 else 3744 ac_configure_args="$ac_configure_args --enable-ltdl-install=no" 3745 LIBLTDL="-lltdl" 3746 LTDLINCL= 3747 fi 3748 # For backwards non-gettext consistent compatibility... 3749 INCLTDL="$LTDLINCL" 3750]) 3751 3752# old names 3753AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) 3754AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 3755AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 3756AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 3757AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 3758AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) 3759AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) 3760 3761# This is just to silence aclocal about the macro not being used 3762ifelse([AC_DISABLE_FAST_INSTALL]) 3763 3764