PageRenderTime 175ms CodeModel.GetById 127ms app.highlight 15ms RepoModel.GetById 1ms app.codeStats 2ms

/contrib/bind9/libtool.m4

https://bitbucket.org/freebsd/freebsd-head/
m4 | 6656 lines | 4709 code | 666 blank | 1281 comment | 0 complexity | bea718707c482a30dbc14533bd2fcd4c MD5 | raw file

Large files files are truncated, but you can click here to view the full file

   1# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
   2## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007,
   3## 2008  Free Software Foundation, Inc.
   4## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
   5##
   6## This file is free software; the Free Software Foundation gives
   7## unlimited permission to copy and/or distribute it, with or without
   8## modifications, as long as this notice is preserved.
   9
  10# serial 52 AC_PROG_LIBTOOL
  11
  12
  13# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  14# -----------------------------------------------------------
  15# If this macro is not defined by Autoconf, define it here.
  16m4_ifdef([AC_PROVIDE_IFELSE],
  17         [],
  18         [m4_define([AC_PROVIDE_IFELSE],
  19	         [m4_ifdef([AC_PROVIDE_$1],
  20		           [$2], [$3])])])
  21
  22
  23# AC_PROG_LIBTOOL
  24# ---------------
  25AC_DEFUN([AC_PROG_LIBTOOL],
  26[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  27dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  28dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  29  AC_PROVIDE_IFELSE([AC_PROG_CXX],
  30    [AC_LIBTOOL_CXX],
  31    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  32  ])])
  33dnl And a similar setup for Fortran 77 support
  34  AC_PROVIDE_IFELSE([AC_PROG_F77],
  35    [AC_LIBTOOL_F77],
  36    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  37])])
  38
  39dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  40dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  41dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  42  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  43    [AC_LIBTOOL_GCJ],
  44    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  45      [AC_LIBTOOL_GCJ],
  46      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  47	[AC_LIBTOOL_GCJ],
  48      [ifdef([AC_PROG_GCJ],
  49	     [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  50       ifdef([A][M_PROG_GCJ],
  51	     [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  52       ifdef([LT_AC_PROG_GCJ],
  53	     [define([LT_AC_PROG_GCJ],
  54		defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  55])])# AC_PROG_LIBTOOL
  56
  57
  58# _AC_PROG_LIBTOOL
  59# ----------------
  60AC_DEFUN([_AC_PROG_LIBTOOL],
  61[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  62AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  63AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  64AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  65
  66# This can be used to rebuild libtool when needed
  67LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  68
  69# Always use our own libtool.
  70LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  71AC_SUBST(LIBTOOL)dnl
  72
  73# Prevent multiple expansion
  74define([AC_PROG_LIBTOOL], [])
  75])# _AC_PROG_LIBTOOL
  76
  77
  78# AC_LIBTOOL_SETUP
  79# ----------------
  80AC_DEFUN([AC_LIBTOOL_SETUP],
  81[AC_PREREQ(2.50)dnl
  82AC_REQUIRE([AC_ENABLE_SHARED])dnl
  83AC_REQUIRE([AC_ENABLE_STATIC])dnl
  84AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  85AC_REQUIRE([AC_CANONICAL_HOST])dnl
  86AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  87AC_REQUIRE([AC_PROG_CC])dnl
  88AC_REQUIRE([AC_PROG_LD])dnl
  89AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  90AC_REQUIRE([AC_PROG_NM])dnl
  91
  92AC_REQUIRE([AC_PROG_LN_S])dnl
  93AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  94# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  95AC_REQUIRE([AC_OBJEXT])dnl
  96AC_REQUIRE([AC_EXEEXT])dnl
  97dnl
  98AC_LIBTOOL_SYS_MAX_CMD_LEN
  99AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 100AC_LIBTOOL_OBJDIR
 101
 102AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 103_LT_AC_PROG_ECHO_BACKSLASH
 104
 105case $host_os in
 106aix3*)
 107  # AIX sometimes has problems with the GCC collect2 program.  For some
 108  # reason, if we set the COLLECT_NAMES environment variable, the problems
 109  # vanish in a puff of smoke.
 110  if test "X${COLLECT_NAMES+set}" != Xset; then
 111    COLLECT_NAMES=
 112    export COLLECT_NAMES
 113  fi
 114  ;;
 115esac
 116
 117# Sed substitution that helps us do robust quoting.  It backslashifies
 118# metacharacters that are still active within double-quoted strings.
 119Xsed='sed -e 1s/^X//'
 120[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
 121
 122# Same as above, but do not quote variable references.
 123[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
 124
 125# Sed substitution to delay expansion of an escaped shell variable in a
 126# double_quote_subst'ed string.
 127delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 128
 129# Sed substitution to avoid accidental globbing in evaled expressions
 130no_glob_subst='s/\*/\\\*/g'
 131
 132# Constants:
 133rm="rm -f"
 134
 135# Global variables:
 136default_ofile=libtool
 137can_build_shared=yes
 138
 139# All known linkers require a `.a' archive for static linking (except MSVC,
 140# which needs '.lib').
 141libext=a
 142ltmain="$ac_aux_dir/ltmain.sh"
 143ofile="$default_ofile"
 144with_gnu_ld="$lt_cv_prog_gnu_ld"
 145
 146AC_CHECK_TOOL(AR, ar, false)
 147AC_CHECK_TOOL(RANLIB, ranlib, :)
 148AC_CHECK_TOOL(STRIP, strip, :)
 149
 150old_CC="$CC"
 151old_CFLAGS="$CFLAGS"
 152
 153# Set sane defaults for various variables
 154test -z "$AR" && AR=ar
 155test -z "$AR_FLAGS" && AR_FLAGS=cru
 156test -z "$AS" && AS=as
 157test -z "$CC" && CC=cc
 158test -z "$LTCC" && LTCC=$CC
 159test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 160test -z "$DLLTOOL" && DLLTOOL=dlltool
 161test -z "$LD" && LD=ld
 162test -z "$LN_S" && LN_S="ln -s"
 163test -z "$MAGIC_CMD" && MAGIC_CMD=file
 164test -z "$NM" && NM=nm
 165test -z "$SED" && SED=sed
 166test -z "$OBJDUMP" && OBJDUMP=objdump
 167test -z "$RANLIB" && RANLIB=:
 168test -z "$STRIP" && STRIP=:
 169test -z "$ac_objext" && ac_objext=o
 170
 171# Determine commands to create old-style static archives.
 172old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 173old_postinstall_cmds='chmod 644 $oldlib'
 174old_postuninstall_cmds=
 175
 176if test -n "$RANLIB"; then
 177  case $host_os in
 178  openbsd*)
 179    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 180    ;;
 181  *)
 182    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 183    ;;
 184  esac
 185  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 186fi
 187
 188_LT_CC_BASENAME([$compiler])
 189
 190# Only perform the check for file, if the check method requires it
 191case $deplibs_check_method in
 192file_magic*)
 193  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 194    AC_PATH_MAGIC
 195  fi
 196  ;;
 197esac
 198
 199_LT_REQUIRED_DARWIN_CHECKS
 200
 201AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
 202AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
 203enable_win32_dll=yes, enable_win32_dll=no)
 204
 205AC_ARG_ENABLE([libtool-lock],
 206    [AC_HELP_STRING([--disable-libtool-lock],
 207	[avoid locking (might break parallel builds)])])
 208test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 209
 210AC_ARG_WITH([pic],
 211    [AC_HELP_STRING([--with-pic],
 212	[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
 213    [pic_mode="$withval"],
 214    [pic_mode=default])
 215test -z "$pic_mode" && pic_mode=default
 216
 217# Use C for the default configuration in the libtool script
 218tagname=
 219AC_LIBTOOL_LANG_C_CONFIG
 220_LT_AC_TAGCONFIG
 221])# AC_LIBTOOL_SETUP
 222
 223
 224# _LT_AC_SYS_COMPILER
 225# -------------------
 226AC_DEFUN([_LT_AC_SYS_COMPILER],
 227[AC_REQUIRE([AC_PROG_CC])dnl
 228
 229# If no C compiler was specified, use CC.
 230LTCC=${LTCC-"$CC"}
 231
 232# If no C compiler flags were specified, use CFLAGS.
 233LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 234
 235# Allow CC to be a program name with arguments.
 236compiler=$CC
 237])# _LT_AC_SYS_COMPILER
 238
 239
 240# _LT_CC_BASENAME(CC)
 241# -------------------
 242# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 243AC_DEFUN([_LT_CC_BASENAME],
 244[for cc_temp in $1""; do
 245  case $cc_temp in
 246    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 247    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 248    \-*) ;;
 249    *) break;;
 250  esac
 251done
 252cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 253])
 254
 255
 256# _LT_COMPILER_BOILERPLATE
 257# ------------------------
 258# Check for compiler boilerplate output or warnings with
 259# the simple compiler test code.
 260AC_DEFUN([_LT_COMPILER_BOILERPLATE],
 261[AC_REQUIRE([LT_AC_PROG_SED])dnl
 262ac_outfile=conftest.$ac_objext
 263echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 264eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 265_lt_compiler_boilerplate=`cat conftest.err`
 266$rm conftest*
 267])# _LT_COMPILER_BOILERPLATE
 268
 269
 270# _LT_LINKER_BOILERPLATE
 271# ----------------------
 272# Check for linker boilerplate output or warnings with
 273# the simple link test code.
 274AC_DEFUN([_LT_LINKER_BOILERPLATE],
 275[AC_REQUIRE([LT_AC_PROG_SED])dnl
 276ac_outfile=conftest.$ac_objext
 277echo "$lt_simple_link_test_code" >conftest.$ac_ext
 278eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 279_lt_linker_boilerplate=`cat conftest.err`
 280$rm -r conftest*
 281])# _LT_LINKER_BOILERPLATE
 282
 283# _LT_REQUIRED_DARWIN_CHECKS
 284# --------------------------
 285# Check for some things on darwin
 286AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
 287  case $host_os in
 288    rhapsody* | darwin*)
 289    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
 290    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 291
 292    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
 293      [lt_cv_apple_cc_single_mod=no
 294      if test -z "${LT_MULTI_MODULE}"; then
 295   # By default we will add the -single_module flag. You can override
 296   # by either setting the environment variable LT_MULTI_MODULE
 297   # non-empty at configure time, or by adding -multi_module to the
 298   # link flags.
 299   echo "int foo(void){return 1;}" > conftest.c
 300   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 301     -dynamiclib ${wl}-single_module conftest.c
 302   if test -f libconftest.dylib; then
 303     lt_cv_apple_cc_single_mod=yes
 304     rm -rf libconftest.dylib*
 305   fi
 306   rm conftest.c
 307      fi])
 308    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
 309      [lt_cv_ld_exported_symbols_list],
 310      [lt_cv_ld_exported_symbols_list=no
 311      save_LDFLAGS=$LDFLAGS
 312      echo "_main" > conftest.sym
 313      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 314      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 315   [lt_cv_ld_exported_symbols_list=yes],
 316   [lt_cv_ld_exported_symbols_list=no])
 317   LDFLAGS="$save_LDFLAGS"
 318    ])
 319    case $host_os in
 320    rhapsody* | darwin1.[[0123]])
 321      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 322    darwin1.*)
 323     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 324    darwin*)
 325      # if running on 10.5 or later, the deployment target defaults
 326      # to the OS version, if on x86, and 10.4, the deployment
 327      # target defaults to 10.4. Don't you love it?
 328      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 329   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 330     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 331   10.[[012]]*)
 332     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 333   10.*)
 334     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 335      esac
 336    ;;
 337  esac
 338    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 339      _lt_dar_single_mod='$single_module'
 340    fi
 341    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 342      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 343    else
 344      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 345    fi
 346    if test "$DSYMUTIL" != ":"; then
 347      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 348    else
 349      _lt_dsymutil=
 350    fi
 351    ;;
 352  esac
 353])
 354
 355# _LT_AC_SYS_LIBPATH_AIX
 356# ----------------------
 357# Links a minimal program and checks the executable
 358# for the system default hardcoded library path. In most cases,
 359# this is /usr/lib:/lib, but when the MPI compilers are used
 360# the location of the communication and MPI libs are included too.
 361# If we don't find anything, use the default library path according
 362# to the aix ld manual.
 363AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
 364[AC_REQUIRE([LT_AC_PROG_SED])dnl
 365AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 366lt_aix_libpath_sed='
 367    /Import File Strings/,/^$/ {
 368	/^0/ {
 369	    s/^0  *\(.*\)$/\1/
 370	    p
 371	}
 372    }'
 373aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 374# Check for a 64-bit object if we didn't find anything.
 375if test -z "$aix_libpath"; then
 376  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 377fi],[])
 378if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 379])# _LT_AC_SYS_LIBPATH_AIX
 380
 381
 382# _LT_AC_SHELL_INIT(ARG)
 383# ----------------------
 384AC_DEFUN([_LT_AC_SHELL_INIT],
 385[ifdef([AC_DIVERSION_NOTICE],
 386	     [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
 387	 [AC_DIVERT_PUSH(NOTICE)])
 388$1
 389AC_DIVERT_POP
 390])# _LT_AC_SHELL_INIT
 391
 392
 393# _LT_AC_PROG_ECHO_BACKSLASH
 394# --------------------------
 395# Add some code to the start of the generated configure script which
 396# will find an echo command which doesn't interpret backslashes.
 397AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
 398[_LT_AC_SHELL_INIT([
 399# Check that we are running under the correct shell.
 400SHELL=${CONFIG_SHELL-/bin/sh}
 401
 402case X$ECHO in
 403X*--fallback-echo)
 404  # Remove one level of quotation (which was required for Make).
 405  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
 406  ;;
 407esac
 408
 409echo=${ECHO-echo}
 410if test "X[$]1" = X--no-reexec; then
 411  # Discard the --no-reexec flag, and continue.
 412  shift
 413elif test "X[$]1" = X--fallback-echo; then
 414  # Avoid inline document here, it may be left over
 415  :
 416elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 417  # Yippee, $echo works!
 418  :
 419else
 420  # Restart under the correct shell.
 421  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
 422fi
 423
 424if test "X[$]1" = X--fallback-echo; then
 425  # used as fallback echo
 426  shift
 427  cat <<EOF
 428[$]*
 429EOF
 430  exit 0
 431fi
 432
 433# The HP-UX ksh and POSIX shell print the target directory to stdout
 434# if CDPATH is set.
 435(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 436
 437if test -z "$ECHO"; then
 438if test "X${echo_test_string+set}" != Xset; then
 439# find a string as large as possible, as long as the shell can cope with it
 440  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
 441    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 442    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 443       echo_test_string=`eval $cmd` &&
 444       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 445    then
 446      break
 447    fi
 448  done
 449fi
 450
 451if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 452   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 453   test "X$echo_testing_string" = "X$echo_test_string"; then
 454  :
 455else
 456  # The Solaris, AIX, and Digital Unix default echo programs unquote
 457  # backslashes.  This makes it impossible to quote backslashes using
 458  #   echo "$something" | sed 's/\\/\\\\/g'
 459  #
 460  # So, first we look for a working echo in the user's PATH.
 461
 462  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 463  for dir in $PATH /usr/ucb; do
 464    IFS="$lt_save_ifs"
 465    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 466       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 467       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 468       test "X$echo_testing_string" = "X$echo_test_string"; then
 469      echo="$dir/echo"
 470      break
 471    fi
 472  done
 473  IFS="$lt_save_ifs"
 474
 475  if test "X$echo" = Xecho; then
 476    # We didn't find a better echo, so look for alternatives.
 477    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 478       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 479       test "X$echo_testing_string" = "X$echo_test_string"; then
 480      # This shell has a builtin print -r that does the trick.
 481      echo='print -r'
 482    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 483	 test "X$CONFIG_SHELL" != X/bin/ksh; then
 484      # If we have ksh, try running configure again with it.
 485      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 486      export ORIGINAL_CONFIG_SHELL
 487      CONFIG_SHELL=/bin/ksh
 488      export CONFIG_SHELL
 489      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
 490    else
 491      # Try using printf.
 492      echo='printf %s\n'
 493      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 494	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 495	 test "X$echo_testing_string" = "X$echo_test_string"; then
 496	# Cool, printf works
 497	:
 498      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 499	   test "X$echo_testing_string" = 'X\t' &&
 500	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 501	   test "X$echo_testing_string" = "X$echo_test_string"; then
 502	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 503	export CONFIG_SHELL
 504	SHELL="$CONFIG_SHELL"
 505	export SHELL
 506	echo="$CONFIG_SHELL [$]0 --fallback-echo"
 507      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 508	   test "X$echo_testing_string" = 'X\t' &&
 509	   echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 510	   test "X$echo_testing_string" = "X$echo_test_string"; then
 511	echo="$CONFIG_SHELL [$]0 --fallback-echo"
 512      else
 513	# maybe with a smaller string...
 514	prev=:
 515
 516	for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
 517	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 518	  then
 519	    break
 520	  fi
 521	  prev="$cmd"
 522	done
 523
 524	if test "$prev" != 'sed 50q "[$]0"'; then
 525	  echo_test_string=`eval $prev`
 526	  export echo_test_string
 527	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
 528	else
 529	  # Oops.  We lost completely, so just stick with echo.
 530	  echo=echo
 531	fi
 532      fi
 533    fi
 534  fi
 535fi
 536fi
 537
 538# Copy echo and quote the copy suitably for passing to libtool from
 539# the Makefile, instead of quoting the original, which is used later.
 540ECHO=$echo
 541if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
 542   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
 543fi
 544
 545AC_SUBST(ECHO)
 546])])# _LT_AC_PROG_ECHO_BACKSLASH
 547
 548
 549# _LT_AC_LOCK
 550# -----------
 551AC_DEFUN([_LT_AC_LOCK],
 552[AC_ARG_ENABLE([libtool-lock],
 553    [AC_HELP_STRING([--disable-libtool-lock],
 554	[avoid locking (might break parallel builds)])])
 555test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 556
 557# Some flags need to be propagated to the compiler or linker for good
 558# libtool support.
 559case $host in
 560ia64-*-hpux*)
 561  # Find out which ABI we are using.
 562  echo 'int i;' > conftest.$ac_ext
 563  if AC_TRY_EVAL(ac_compile); then
 564    case `/usr/bin/file conftest.$ac_objext` in
 565    *ELF-32*)
 566      HPUX_IA64_MODE="32"
 567      ;;
 568    *ELF-64*)
 569      HPUX_IA64_MODE="64"
 570      ;;
 571    esac
 572  fi
 573  rm -rf conftest*
 574  ;;
 575*-*-irix6*)
 576  # Find out which ABI we are using.
 577  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
 578  if AC_TRY_EVAL(ac_compile); then
 579   if test "$lt_cv_prog_gnu_ld" = yes; then
 580    case `/usr/bin/file conftest.$ac_objext` in
 581    *32-bit*)
 582      LD="${LD-ld} -melf32bsmip"
 583      ;;
 584    *N32*)
 585      LD="${LD-ld} -melf32bmipn32"
 586      ;;
 587    *64-bit*)
 588      LD="${LD-ld} -melf64bmip"
 589      ;;
 590    esac
 591   else
 592    case `/usr/bin/file conftest.$ac_objext` in
 593    *32-bit*)
 594      LD="${LD-ld} -32"
 595      ;;
 596    *N32*)
 597      LD="${LD-ld} -n32"
 598      ;;
 599    *64-bit*)
 600      LD="${LD-ld} -64"
 601      ;;
 602    esac
 603   fi
 604  fi
 605  rm -rf conftest*
 606  ;;
 607
 608x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 609s390*-*linux*|sparc*-*linux*)
 610  # Find out which ABI we are using.
 611  echo 'int i;' > conftest.$ac_ext
 612  if AC_TRY_EVAL(ac_compile); then
 613    case `/usr/bin/file conftest.o` in
 614    *32-bit*)
 615      case $host in
 616        x86_64-*kfreebsd*-gnu)
 617          LD="${LD-ld} -m elf_i386_fbsd"
 618          ;;
 619        x86_64-*linux*)
 620          LD="${LD-ld} -m elf_i386"
 621          ;;
 622        ppc64-*linux*|powerpc64-*linux*)
 623          LD="${LD-ld} -m elf32ppclinux"
 624          ;;
 625        s390x-*linux*)
 626          LD="${LD-ld} -m elf_s390"
 627          ;;
 628        sparc64-*linux*)
 629          LD="${LD-ld} -m elf32_sparc"
 630          ;;
 631      esac
 632      ;;
 633    *64-bit*)
 634      case $host in
 635        x86_64-*kfreebsd*-gnu)
 636          LD="${LD-ld} -m elf_x86_64_fbsd"
 637          ;;
 638        x86_64-*linux*)
 639          LD="${LD-ld} -m elf_x86_64"
 640          ;;
 641        ppc*-*linux*|powerpc*-*linux*)
 642          LD="${LD-ld} -m elf64ppc"
 643          ;;
 644        s390*-*linux*)
 645          LD="${LD-ld} -m elf64_s390"
 646          ;;
 647        sparc*-*linux*)
 648          LD="${LD-ld} -m elf64_sparc"
 649          ;;
 650      esac
 651      ;;
 652    esac
 653  fi
 654  rm -rf conftest*
 655  ;;
 656
 657*-*-sco3.2v5*)
 658  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 659  SAVE_CFLAGS="$CFLAGS"
 660  CFLAGS="$CFLAGS -belf"
 661  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
 662    [AC_LANG_PUSH(C)
 663     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
 664     AC_LANG_POP])
 665  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 666    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 667    CFLAGS="$SAVE_CFLAGS"
 668  fi
 669  ;;
 670sparc*-*solaris*)
 671  # Find out which ABI we are using.
 672  echo 'int i;' > conftest.$ac_ext
 673  if AC_TRY_EVAL(ac_compile); then
 674    case `/usr/bin/file conftest.o` in
 675    *64-bit*)
 676      case $lt_cv_prog_gnu_ld in
 677      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 678      *)
 679        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 680	  LD="${LD-ld} -64"
 681	fi
 682	;;
 683      esac
 684      ;;
 685    esac
 686  fi
 687  rm -rf conftest*
 688  ;;
 689
 690AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
 691[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
 692  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 693  AC_CHECK_TOOL(AS, as, false)
 694  AC_CHECK_TOOL(OBJDUMP, objdump, false)
 695  ;;
 696  ])
 697esac
 698
 699need_locks="$enable_libtool_lock"
 700
 701])# _LT_AC_LOCK
 702
 703
 704# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 705#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
 706# ----------------------------------------------------------------
 707# Check whether the given compiler option works
 708AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
 709[AC_REQUIRE([LT_AC_PROG_SED])
 710AC_CACHE_CHECK([$1], [$2],
 711  [$2=no
 712  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
 713   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 714   lt_compiler_flag="$3"
 715   # Insert the option either (1) after the last *FLAGS variable, or
 716   # (2) before a word containing "conftest.", or (3) at the end.
 717   # Note that $ac_compile itself does not contain backslashes and begins
 718   # with a dollar sign (not a hyphen), so the echo should work correctly.
 719   # The option is referenced via a variable to avoid confusing sed.
 720   lt_compile=`echo "$ac_compile" | $SED \
 721   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 722   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
 723   -e 's:$: $lt_compiler_flag:'`
 724   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 725   (eval "$lt_compile" 2>conftest.err)
 726   ac_status=$?
 727   cat conftest.err >&AS_MESSAGE_LOG_FD
 728   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 729   if (exit $ac_status) && test -s "$ac_outfile"; then
 730     # The compiler can only warn and ignore the option if not recognized
 731     # So say no if there are warnings other than the usual output.
 732     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 733     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 734     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 735       $2=yes
 736     fi
 737   fi
 738   $rm conftest*
 739])
 740
 741if test x"[$]$2" = xyes; then
 742    ifelse([$5], , :, [$5])
 743else
 744    ifelse([$6], , :, [$6])
 745fi
 746])# AC_LIBTOOL_COMPILER_OPTION
 747
 748
 749# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 750#                          [ACTION-SUCCESS], [ACTION-FAILURE])
 751# ------------------------------------------------------------
 752# Check whether the given compiler option works
 753AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
 754[AC_REQUIRE([LT_AC_PROG_SED])dnl
 755AC_CACHE_CHECK([$1], [$2],
 756  [$2=no
 757   save_LDFLAGS="$LDFLAGS"
 758   LDFLAGS="$LDFLAGS $3"
 759   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 760   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 761     # The linker can only warn and ignore the option if not recognized
 762     # So say no if there are warnings
 763     if test -s conftest.err; then
 764       # Append any errors to the config.log.
 765       cat conftest.err 1>&AS_MESSAGE_LOG_FD
 766       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 767       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 768       if diff conftest.exp conftest.er2 >/dev/null; then
 769         $2=yes
 770       fi
 771     else
 772       $2=yes
 773     fi
 774   fi
 775   $rm -r conftest*
 776   LDFLAGS="$save_LDFLAGS"
 777])
 778
 779if test x"[$]$2" = xyes; then
 780    ifelse([$4], , :, [$4])
 781else
 782    ifelse([$5], , :, [$5])
 783fi
 784])# AC_LIBTOOL_LINKER_OPTION
 785
 786
 787# AC_LIBTOOL_SYS_MAX_CMD_LEN
 788# --------------------------
 789AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
 790[# find the maximum length of command line arguments
 791AC_MSG_CHECKING([the maximum length of command line arguments])
 792AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
 793  i=0
 794  teststring="ABCD"
 795
 796  case $build_os in
 797  msdosdjgpp*)
 798    # On DJGPP, this test can blow up pretty badly due to problems in libc
 799    # (any single argument exceeding 2000 bytes causes a buffer overrun
 800    # during glob expansion).  Even if it were fixed, the result of this
 801    # check would be larger than it should be.
 802    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 803    ;;
 804
 805  gnu*)
 806    # Under GNU Hurd, this test is not required because there is
 807    # no limit to the length of command line arguments.
 808    # Libtool will interpret -1 as no limit whatsoever
 809    lt_cv_sys_max_cmd_len=-1;
 810    ;;
 811
 812  cygwin* | mingw*)
 813    # On Win9x/ME, this test blows up -- it succeeds, but takes
 814    # about 5 minutes as the teststring grows exponentially.
 815    # Worse, since 9x/ME are not pre-emptively multitasking,
 816    # you end up with a "frozen" computer, even though with patience
 817    # the test eventually succeeds (with a max line length of 256k).
 818    # Instead, let's just punt: use the minimum linelength reported by
 819    # all of the supported platforms: 8192 (on NT/2K/XP).
 820    lt_cv_sys_max_cmd_len=8192;
 821    ;;
 822
 823  amigaos*)
 824    # On AmigaOS with pdksh, this test takes hours, literally.
 825    # So we just punt and use a minimum line length of 8192.
 826    lt_cv_sys_max_cmd_len=8192;
 827    ;;
 828
 829  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 830    # This has been around since 386BSD, at least.  Likely further.
 831    if test -x /sbin/sysctl; then
 832      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 833    elif test -x /usr/sbin/sysctl; then
 834      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 835    else
 836      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
 837    fi
 838    # And add a safety zone
 839    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 840    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 841    ;;
 842
 843  interix*)
 844    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 845    lt_cv_sys_max_cmd_len=196608
 846    ;;
 847
 848  osf*)
 849    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 850    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 851    # nice to cause kernel panics so lets avoid the loop below.
 852    # First set a reasonable default.
 853    lt_cv_sys_max_cmd_len=16384
 854    #
 855    if test -x /sbin/sysconfig; then
 856      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 857        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 858      esac
 859    fi
 860    ;;
 861  sco3.2v5*)
 862    lt_cv_sys_max_cmd_len=102400
 863    ;;
 864  sysv5* | sco5v6* | sysv4.2uw2*)
 865    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 866    if test -n "$kargmax"; then
 867      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ 	]]//'`
 868    else
 869      lt_cv_sys_max_cmd_len=32768
 870    fi
 871    ;;
 872  *)
 873    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 874    if test -n "$lt_cv_sys_max_cmd_len"; then
 875      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 876      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 877    else
 878      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 879      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 880	       = "XX$teststring") >/dev/null 2>&1 &&
 881	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
 882	      lt_cv_sys_max_cmd_len=$new_result &&
 883	      test $i != 17 # 1/2 MB should be enough
 884      do
 885        i=`expr $i + 1`
 886        teststring=$teststring$teststring
 887      done
 888      teststring=
 889      # Add a significant safety factor because C++ compilers can tack on massive
 890      # amounts of additional arguments before passing them to the linker.
 891      # It appears as though 1/2 is a usable value.
 892      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 893    fi
 894    ;;
 895  esac
 896])
 897if test -n $lt_cv_sys_max_cmd_len ; then
 898  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
 899else
 900  AC_MSG_RESULT(none)
 901fi
 902])# AC_LIBTOOL_SYS_MAX_CMD_LEN
 903
 904
 905# _LT_AC_CHECK_DLFCN
 906# ------------------
 907AC_DEFUN([_LT_AC_CHECK_DLFCN],
 908[AC_CHECK_HEADERS(dlfcn.h)dnl
 909])# _LT_AC_CHECK_DLFCN
 910
 911
 912# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
 913#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
 914# ---------------------------------------------------------------------
 915AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
 916[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 917if test "$cross_compiling" = yes; then :
 918  [$4]
 919else
 920  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 921  lt_status=$lt_dlunknown
 922  cat > conftest.$ac_ext <<EOF
 923[#line __oline__ "configure"
 924#include "confdefs.h"
 925
 926#if HAVE_DLFCN_H
 927#include <dlfcn.h>
 928#endif
 929
 930#include <stdio.h>
 931
 932#ifdef RTLD_GLOBAL
 933#  define LT_DLGLOBAL		RTLD_GLOBAL
 934#else
 935#  ifdef DL_GLOBAL
 936#    define LT_DLGLOBAL		DL_GLOBAL
 937#  else
 938#    define LT_DLGLOBAL		0
 939#  endif
 940#endif
 941
 942/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 943   find out it does not work in some platform. */
 944#ifndef LT_DLLAZY_OR_NOW
 945#  ifdef RTLD_LAZY
 946#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
 947#  else
 948#    ifdef DL_LAZY
 949#      define LT_DLLAZY_OR_NOW		DL_LAZY
 950#    else
 951#      ifdef RTLD_NOW
 952#        define LT_DLLAZY_OR_NOW	RTLD_NOW
 953#      else
 954#        ifdef DL_NOW
 955#          define LT_DLLAZY_OR_NOW	DL_NOW
 956#        else
 957#          define LT_DLLAZY_OR_NOW	0
 958#        endif
 959#      endif
 960#    endif
 961#  endif
 962#endif
 963
 964#ifdef __cplusplus
 965extern "C" void exit (int);
 966#endif
 967
 968void fnord() { int i=42;}
 969int main ()
 970{
 971  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 972  int status = $lt_dlunknown;
 973
 974  if (self)
 975    {
 976      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 977      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 978      /* dlclose (self); */
 979    }
 980  else
 981    puts (dlerror ());
 982
 983    exit (status);
 984}]
 985EOF
 986  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
 987    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
 988    lt_status=$?
 989    case x$lt_status in
 990      x$lt_dlno_uscore) $1 ;;
 991      x$lt_dlneed_uscore) $2 ;;
 992      x$lt_dlunknown|x*) $3 ;;
 993    esac
 994  else :
 995    # compilation failed
 996    $3
 997  fi
 998fi
 999rm -fr conftest*
1000])# _LT_AC_TRY_DLOPEN_SELF
1001
1002
1003# AC_LIBTOOL_DLOPEN_SELF
1004# ----------------------
1005AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1006[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1007if test "x$enable_dlopen" != xyes; then
1008  enable_dlopen=unknown
1009  enable_dlopen_self=unknown
1010  enable_dlopen_self_static=unknown
1011else
1012  lt_cv_dlopen=no
1013  lt_cv_dlopen_libs=
1014
1015  case $host_os in
1016  beos*)
1017    lt_cv_dlopen="load_add_on"
1018    lt_cv_dlopen_libs=
1019    lt_cv_dlopen_self=yes
1020    ;;
1021
1022  mingw* | pw32*)
1023    lt_cv_dlopen="LoadLibrary"
1024    lt_cv_dlopen_libs=
1025   ;;
1026
1027  cygwin*)
1028    lt_cv_dlopen="dlopen"
1029    lt_cv_dlopen_libs=
1030   ;;
1031
1032  darwin*)
1033  # if libdl is installed we need to link against it
1034    AC_CHECK_LIB([dl], [dlopen],
1035		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1036    lt_cv_dlopen="dyld"
1037    lt_cv_dlopen_libs=
1038    lt_cv_dlopen_self=yes
1039    ])
1040   ;;
1041
1042  *)
1043    AC_CHECK_FUNC([shl_load],
1044	  [lt_cv_dlopen="shl_load"],
1045      [AC_CHECK_LIB([dld], [shl_load],
1046	    [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1047	[AC_CHECK_FUNC([dlopen],
1048	      [lt_cv_dlopen="dlopen"],
1049	  [AC_CHECK_LIB([dl], [dlopen],
1050		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1051	    [AC_CHECK_LIB([svld], [dlopen],
1052		  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1053	      [AC_CHECK_LIB([dld], [dld_link],
1054		    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1055	      ])
1056	    ])
1057	  ])
1058	])
1059      ])
1060    ;;
1061  esac
1062
1063  if test "x$lt_cv_dlopen" != xno; then
1064    enable_dlopen=yes
1065  else
1066    enable_dlopen=no
1067  fi
1068
1069  case $lt_cv_dlopen in
1070  dlopen)
1071    save_CPPFLAGS="$CPPFLAGS"
1072    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1073
1074    save_LDFLAGS="$LDFLAGS"
1075    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1076
1077    save_LIBS="$LIBS"
1078    LIBS="$lt_cv_dlopen_libs $LIBS"
1079
1080    AC_CACHE_CHECK([whether a program can dlopen itself],
1081	  lt_cv_dlopen_self, [dnl
1082	  _LT_AC_TRY_DLOPEN_SELF(
1083	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1084	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1085    ])
1086
1087    if test "x$lt_cv_dlopen_self" = xyes; then
1088      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1089      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1090    	  lt_cv_dlopen_self_static, [dnl
1091	  _LT_AC_TRY_DLOPEN_SELF(
1092	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1093	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
1094      ])
1095    fi
1096
1097    CPPFLAGS="$save_CPPFLAGS"
1098    LDFLAGS="$save_LDFLAGS"
1099    LIBS="$save_LIBS"
1100    ;;
1101  esac
1102
1103  case $lt_cv_dlopen_self in
1104  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1105  *) enable_dlopen_self=unknown ;;
1106  esac
1107
1108  case $lt_cv_dlopen_self_static in
1109  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1110  *) enable_dlopen_self_static=unknown ;;
1111  esac
1112fi
1113])# AC_LIBTOOL_DLOPEN_SELF
1114
1115
1116# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1117# ---------------------------------
1118# Check to see if options -c and -o are simultaneously supported by compiler
1119AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1120[AC_REQUIRE([LT_AC_PROG_SED])dnl
1121AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1122AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1123  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1124  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1125   $rm -r conftest 2>/dev/null
1126   mkdir conftest
1127   cd conftest
1128   mkdir out
1129   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1130
1131   lt_compiler_flag="-o out/conftest2.$ac_objext"
1132   # Insert the option either (1) after the last *FLAGS variable, or
1133   # (2) before a word containing "conftest.", or (3) at the end.
1134   # Note that $ac_compile itself does not contain backslashes and begins
1135   # with a dollar sign (not a hyphen), so the echo should work correctly.
1136   lt_compile=`echo "$ac_compile" | $SED \
1137   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1138   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1139   -e 's:$: $lt_compiler_flag:'`
1140   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1141   (eval "$lt_compile" 2>out/conftest.err)
1142   ac_status=$?
1143   cat out/conftest.err >&AS_MESSAGE_LOG_FD
1144   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1145   if (exit $ac_status) && test -s out/conftest2.$ac_objext
1146   then
1147     # The compiler can only warn and ignore the option if not recognized
1148     # So say no if there are warnings
1149     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1150     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1151     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1152       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1153     fi
1154   fi
1155   chmod u+w . 2>&AS_MESSAGE_LOG_FD
1156   $rm conftest*
1157   # SGI C++ compiler will create directory out/ii_files/ for
1158   # template instantiation
1159   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1160   $rm out/* && rmdir out
1161   cd ..
1162   rmdir conftest
1163   $rm conftest*
1164])
1165])# AC_LIBTOOL_PROG_CC_C_O
1166
1167
1168# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1169# -----------------------------------------
1170# Check to see if we can do hard links to lock some files if needed
1171AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1172[AC_REQUIRE([_LT_AC_LOCK])dnl
1173
1174hard_links="nottested"
1175if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1176  # do not overwrite the value of need_locks provided by the user
1177  AC_MSG_CHECKING([if we can lock with hard links])
1178  hard_links=yes
1179  $rm conftest*
1180  ln conftest.a conftest.b 2>/dev/null && hard_links=no
1181  touch conftest.a
1182  ln conftest.a conftest.b 2>&5 || hard_links=no
1183  ln conftest.a conftest.b 2>/dev/null && hard_links=no
1184  AC_MSG_RESULT([$hard_links])
1185  if test "$hard_links" = no; then
1186    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1187    need_locks=warn
1188  fi
1189else
1190  need_locks=no
1191fi
1192])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1193
1194
1195# AC_LIBTOOL_OBJDIR
1196# -----------------
1197AC_DEFUN([AC_LIBTOOL_OBJDIR],
1198[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1199[rm -f .libs 2>/dev/null
1200mkdir .libs 2>/dev/null
1201if test -d .libs; then
1202  lt_cv_objdir=.libs
1203else
1204  # MS-DOS does not allow filenames that begin with a dot.
1205  lt_cv_objdir=_libs
1206fi
1207rmdir .libs 2>/dev/null])
1208objdir=$lt_cv_objdir
1209])# AC_LIBTOOL_OBJDIR
1210
1211
1212# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1213# ----------------------------------------------
1214# Check hardcoding attributes.
1215AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1216[AC_MSG_CHECKING([how to hardcode library paths into programs])
1217_LT_AC_TAGVAR(hardcode_action, $1)=
1218if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1219   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1220   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1221
1222  # We can hardcode non-existant directories.
1223  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1224     # If the only mechanism to avoid hardcoding is shlibpath_var, we
1225     # have to relink, otherwise we might link with an installed library
1226     # when we should be linking with a yet-to-be-installed one
1227     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1228     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1229    # Linking always hardcodes the temporary library directory.
1230    _LT_AC_TAGVAR(hardcode_action, $1)=relink
1231  else
1232    # We can link without hardcoding, and we can hardcode nonexisting dirs.
1233    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1234  fi
1235else
1236  # We cannot hardcode anything, or else we can only hardcode existing
1237  # directories.
1238  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1239fi
1240AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1241
1242if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1243  # Fast installation is not supported
1244  enable_fast_install=no
1245elif test "$shlibpath_overrides_runpath" = yes ||
1246     test "$enable_shared" = no; then
1247  # Fast installation is not necessary
1248  enable_fast_install=needless
1249fi
1250])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1251
1252
1253# AC_LIBTOOL_SYS_LIB_STRIP
1254# ------------------------
1255AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1256[striplib=
1257old_striplib=
1258AC_MSG_CHECKING([whether stripping libraries is possible])
1259if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1260  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1261  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1262  AC_MSG_RESULT([yes])
1263else
1264# FIXME - insert some real tests, host_os isn't really good enough
1265  case $host_os in
1266   darwin*)
1267       if test -n "$STRIP" ; then
1268         striplib="$STRIP -x"
1269         old_striplib="$STRIP -S"
1270         AC_MSG_RESULT([yes])
1271       else
1272  AC_MSG_RESULT([no])
1273fi
1274       ;;
1275   *)
1276  AC_MSG_RESULT([no])
1277    ;;
1278  esac
1279fi
1280])# AC_LIBTOOL_SYS_LIB_STRIP
1281
1282
1283# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1284# -----------------------------
1285# PORTME Fill in your ld.so characteristics
1286AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1287[AC_REQUIRE([LT_AC_PROG_SED])dnl
1288AC_MSG_CHECKING([dynamic linker characteristics])
1289library_names_spec=
1290libname_spec='lib$name'
1291soname_spec=
1292shrext_cmds=".so"
1293postinstall_cmds=
1294postuninstall_cmds=
1295finish_cmds=
1296finish_eval=
1297shlibpath_var=
1298shlibpath_overrides_runpath=unknown
1299version_type=none
1300dynamic_linker="$host_os ld.so"
1301sys_lib_dlsearch_path_spec="/lib /usr/lib"
1302m4_if($1,[],[
1303if test "$GCC" = yes; then
1304  case $host_os in
1305    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1306    *) lt_awk_arg="/^libraries:/" ;;
1307  esac
1308  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1309  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1310    # if the path contains ";" then we assume it to be the separator
1311    # otherwise default to the standard path separator (i.e. ":") - it is
1312    # assumed that no part of a normal pathname contains ";" but that should
1313    # okay in the real world where ";" in dirpaths is itself problematic.
1314    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1315  else
1316    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1317  fi
1318  # Ok, now we have the path, separated by spaces, we can step through it
1319  # and add multilib dir if necessary.
1320  lt_tmp_lt_search_path_spec=
1321  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1322  for lt_sys_path in $lt_search_path_spec; do
1323    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1324      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1325    else
1326      test -d "$lt_sys_path" && \
1327	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1328    fi
1329  done
1330  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1331BEGIN {RS=" "; FS="/|\n";} {
1332  lt_foo="";
1333  lt_count=0;
1334  for (lt_i = NF; lt_i > 0; lt_i--) {
1335    if ($lt_i != "" && $lt_i != ".") {
1336      if ($lt_i == "..") {
1337        lt_count++;
1338      } else {
1339        if (lt_count == 0) {
1340          lt_foo="/" $lt_i lt_foo;
1341        } else {
1342          lt_count--;
1343        }
1344      }
1345    }
1346  }
1347  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1348  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1349}'`
1350  sys_lib_search_path_spec=`echo $lt_search_path_spec`
1351else
1352  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1353fi])
1354need_lib_prefix=unknown
1355hardcode_into_libs=no
1356
1357# when you set need_version to no, make sure it does not cause -set_version
1358# flags to be left without arguments
1359need_version=unknown
1360
1361case $host_os in
1362aix3*)
1363  version_type=linux
1364  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1365  shlibpath_var=LIBPATH
1366
1367  # AIX 3 has no versioning support, so we append a major version to the name.
1368  soname_spec='${libname}${release}${shared_ext}$major'
1369  ;;
1370
1371aix[[4-9]]*)
1372  version_type=linux
1373  need_lib_prefix=no
1374  need_version=no
1375  hardcode_into_libs=yes
1376  if test "$host_cpu" = ia64; then
1377    # AIX 5 supports IA64
1378    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1379    shlibpath_var=LD_LIBRARY_PATH
1380  else
1381    # With GCC up to 2.95.x, collect2 would create an import file
1382    # for dependence libraries.  The import file would start with
1383    # the line `#! .'.  This would cause the generated library to
1384    # depend on `.', always an invalid library.  This was fixed in
1385    # development snapshots of GCC prior to 3.0.
1386    case $host_os in
1387      aix4 | aix4.[[01]] | aix4.[[01]].*)
1388      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1389	   echo ' yes '
1390	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1391	:
1392      else
1393	can_build_shared=no
1394      fi
1395      ;;
1396    esac
1397    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1398    # soname into executable. Probably we can add versioning support to
1399    # collect2, so additional links can be useful in future.
1400    if test "$aix_use_runtimelinking" = yes; then
1401      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1402      # instead of lib<name>.a to let people know that these are not
1403      # typical AIX shared libraries.
1404      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1405    else
1406      # We preserve .a as extension for shared libraries through AIX4.2
1407      # and later when we are not doing run time linking.
1408      library_names_spec='${libname}${release}.a $libname.a'
1409      soname_spec='${libname}${release}${shared_ext}$major'
1410    fi
1411    shlibpath_var=LIBPATH
1412  fi
1413  ;;
1414
1415amigaos*)
1416  library_names_spec='$libname.ixlibrary $libname.a'
1417  # Create ${libname}_ixlibrary.a entries in /sys/libs.
1418  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'
1419  ;;
1420
1421beos*)
1422  library_names_spec='${libname}${shared_ext}'
1423  dynamic_linker="$host_os ld.so"
1424  shlibpath_var=LIBRARY_PATH
1425  ;;
1426
1427bsdi[[45]]*)
1428  version_type=linux
1429  need_version=no
1430  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1431  soname_spec='${libname}${release}${shared_ext}$major'
1432  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1433  shlibpath_var=LD_LIBRARY_PATH
1434  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1435  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1436  # the default ld.so.conf also contains /usr/contrib/lib and
1437  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1438  # libtool to hard-code these into programs
1439  ;;
1440
1441cygwin* | mingw* | pw32*)
1442  version_type=windows
1443  shrext_cmds=".dll"
1444  need_version=no
1445  need_lib_prefix=no
1446
1447  case $GCC,$host_os in
1448  yes,cygwin* | yes,mingw* | yes,pw32*)
1449    library_names_spec='$libname.dll.a'
1450    # DLL is installed to $(libdir)/../bin by postinstall_cmds
1451    postinstall_cmds='base_file=`basename \${file}`~
1452      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1453      dldir=$destdir/`dirname \$dlpath`~
1454      test -d \$dldir || mkdir -p \$dldir~
1455      $install_prog $dir/$dlname \$dldir/$dlname~
1456      chmod a+x \$dldir/$dlname'
1457    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1458      dlpath=$dir/\$dldll~
1459       $rm \$dlpath'
1460    shlibpath_overrides_runpath=yes
1461
1462    case $host_os in
1463    cygwin*)
1464      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1465      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1466      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1467      ;;
1468    mingw*)
1469      # MinGW DLLs use traditional 'lib' prefix
1470      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1471      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1472      if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
1473        # It is most probably a Windows format PATH printed by
1474        # mingw gcc, but we are running on Cygwin. Gcc prints its search
1475        # path with ; separators, and with drive letters. We can handle the
1476        # drive letters (cygwin fileutils understands them), so leave them,
1477        # especially as we might pass files found there to a mingw objdump,
1478        # which wouldn't understand a cygwinified path. Ahh.
1479        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1480      else
1481        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1482      fi
1483      ;;
1484    pw32*)
1485      # pw32 DLLs use 'pw' prefix rather than 'lib'
1486      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1487      ;;
1488    esac
1489    ;;
1490
1491  *)
1492    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1493    ;;
1494  esac
1495  dynamic_linker='Win32 ld.exe'
1496  # FIXME: first we should search . and the directory the executable is in
1497  shlibpath_var=PATH
1498  ;;
1499
1500darwin* | rhapsody*)
1501  dynamic_linker="$host_os dyld"
1502  version_type=darwin
1503  need_lib_prefix=no
1504  need_version=no
1505  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1506  soname_spec='${libname}${release}${major}$shared_ext'
1507  shlibpath_overrides_runpath=yes
1508  shlibpath_var=DYLD_LIBRARY_PATH
1509  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1510  m4_if([$1], [],[
1511  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
1512  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1513  ;;
1514
1515dgux*)
1516  version_type=linux
1517  need_lib_prefix=no
1518  need_version=no
1519  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1520  soname_spec='${libname}${release}${shared_ext}$major'
1521  shlibpath_var=LD_LIBRARY_PATH
1522  ;;
1523
1524freebsd1*)
1525  dynamic_linker=no
1526  ;;
1527
1528freebsd* | dragonfly*)
1529  # DragonFly does not have aout.  When/if they implement a new
1530  # versioning mechanism, adjust this.
1531  if test -x /usr/bin/objformat; then
1532    objformat=`/usr/bin/objformat`
1533  else
1534    case $host_os in
1535    freebsd[[123]]*) objformat=aout ;;
1536    *) objformat=elf ;;
1537    esac
1538  fi
1539  version_type=freebsd-$objformat
1540  case $version_type in
1541    freebsd-elf*)
1542      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1543      need_version=no
1544      need_lib_prefix=no
1545      ;;
1546    freebsd-*)
1547      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1548      need_version=yes
1549      ;;
1550  esac
1551  shlibpath_var=LD_LIBRARY_PATH
1552  case $host_os in
1553  freebsd2*)
1554    shlibpath_overrides_runpath=yes
1555    ;;
1556  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1557    shlibpath_overrides_runpath=yes
1558    hardcode_into_libs=yes
1559    ;;
1560  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
1561  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1562    shlibpath_overrides_runpath=no
1563    hardcode_into_libs=yes
1564    ;;
1565  *) # from 4.6 on, and DragonFly
1566    shlibpath_overrides_runpath=yes
1567    hardcode_into_libs=yes
1568    ;;
1569  esac
1570  ;;
1571
1572gnu*)
1573  version_type=linux
1574  need_lib_prefix=no
1575  need_version=no
1576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1577  soname_spec='${libname}${release}${shared_ext}$major'
1578  shlibpath_var=LD_LIBRARY_PATH
1579  hardcode_into_libs=yes
1580  ;;
1581
1582hpux9* | hpux10* | hpux11*)
1583  # Give a soname corresponding to the major version so that dld.sl refuses to
1584  # link against other versions.
1585  version_type=sunos
1586  need_lib_prefix=no
1587  need_version=no
1588  case $host_cp…

Large files files are truncated, but you can click here to view the full file