Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7 in downloads for configure


Ignore:
Timestamp:
Oct 9, 2007, 10:26:37 PM (17 years ago)
Author:
anonymous
Message:

=

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r5 r7  
    819819INSTALL_SCRIPT
    820820INSTALL_DATA
     821am__isrc
    821822CYGPATH_W
    822823PACKAGE
     
    874875OGRE_OSX_TRUE
    875876OGRE_OSX_FALSE
     877SED
    876878GREP
    877879EGREP
     
    22352237# New syntax; PACKAGE gets defined as 'OGRE' not 'ogre'
    22362238#AM_INIT_AUTOMAKE([OGRE], 1.4.5)
    2237 am__api_version="1.9"
     2239am__api_version='1.10'
     2240
    22382241# Find a good install program.  We prefer a C program (faster),
    22392242# so one script is as good as another.  But avoid the broken or
     
    23872390fi
    23882391
    2389 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
    2390   # We used to keeping the `.' as first argument, in order to
    2391   # allow $(mkdir_p) to be used without argument.  As in
    2392   #   $(mkdir_p) $(somedir)
    2393   # where $(somedir) is conditionally defined.  However this is wrong
    2394   # for two reasons:
    2395   #  1. if the package is installed by a user who cannot write `.'
    2396   #     make install will fail,
    2397   #  2. the above comment should most certainly read
    2398   #     $(mkdir_p) $(DESTDIR)$(somedir)
    2399   #     so it does not work when $(somedir) is undefined and
    2400   #     $(DESTDIR) is not.
    2401   #  To support the latter case, we have to write
    2402   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
    2403   #  so the `.' trick is pointless.
    2404   mkdir_p='mkdir -p --'
    2405 else
    2406   # On NextStep and OpenStep, the `mkdir' command does not
    2407   # recognize any option.  It will interpret all options as
    2408   # directories to create, and then abort because `.' already
    2409   # exists.
    2410   for d in ./-p ./--version;
    2411   do
    2412     test -d $d && rmdir $d
    2413   done
    2414   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
    2415   if test -f "$ac_aux_dir/mkinstalldirs"; then
    2416     mkdir_p='$(mkinstalldirs)'
     2392{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
     2393echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
     2394if test -z "$MKDIR_P"; then
     2395  if test "${ac_cv_path_mkdir+set}" = set; then
     2396  echo $ECHO_N "(cached) $ECHO_C" >&6
     2397else
     2398  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2399for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
     2400do
     2401  IFS=$as_save_IFS
     2402  test -z "$as_dir" && as_dir=.
     2403  for ac_prog in mkdir gmkdir; do
     2404         for ac_exec_ext in '' $ac_executable_extensions; do
     2405           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
     2406           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
     2407             'mkdir (GNU coreutils) '* | \
     2408             'mkdir (coreutils) '* | \
     2409             'mkdir (fileutils) '4.1*)
     2410               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
     2411               break 3;;
     2412           esac
     2413         done
     2414       done
     2415done
     2416IFS=$as_save_IFS
     2417
     2418fi
     2419
     2420  if test "${ac_cv_path_mkdir+set}" = set; then
     2421    MKDIR_P="$ac_cv_path_mkdir -p"
    24172422  else
    2418     mkdir_p='$(install_sh) -d'
     2423    # As a last resort, use the slow shell script.  Don't cache a
     2424    # value for MKDIR_P within a source directory, because that will
     2425    # break other packages using the cache if that directory is
     2426    # removed, or if the value is a relative name.
     2427    test -d ./--version && rmdir ./--version
     2428    MKDIR_P="$ac_install_sh -d"
    24192429  fi
    24202430fi
     2431{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
     2432echo "${ECHO_T}$MKDIR_P" >&6; }
     2433
     2434mkdir_p="$MKDIR_P"
     2435case $mkdir_p in
     2436  [\\/$]* | ?:[\\/]*) ;;
     2437  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
     2438esac
    24212439
    24222440for ac_prog in gawk mawk nawk awk
     
    25012519rmdir .tst 2>/dev/null
    25022520
    2503 # test to see if srcdir already configured
    2504 if test "`cd $srcdir && pwd`" != "`pwd`" &&
    2505    test -f $srcdir/config.status; then
    2506   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
     2521if test "`cd $srcdir && pwd`" != "`pwd`"; then
     2522  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
     2523  # is not polluted with repeated "-I."
     2524  am__isrc=' -I$(srcdir)'
     2525  # test to see if srcdir already configured
     2526  if test -f $srcdir/config.status; then
     2527    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
    25072528echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
    25082529   { (exit 1); exit 1; }; }
     2530  fi
    25092531fi
    25102532
     
    25492571MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
    25502572
    2551 install_sh=${install_sh-"$am_aux_dir/install-sh"}
     2573install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
    25522574
    25532575# Installed binaries are usually stripped using `strip' when the user
     
    26532675
    26542676fi
    2655 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
     2677INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
    26562678
    26572679# We need awk for the "check" target.  The system "awk" is bad on
     
    36413663  AMDEPBACKSLASH='\'
    36423664fi
    3643 
    3644 
    3645 if test "x$enable_dependency_tracking" != xno; then
     3665 if test "x$enable_dependency_tracking" != xno; then
    36463666  AMDEP_TRUE=
    36473667  AMDEP_FALSE='#'
     
    36503670  AMDEP_FALSE=
    36513671fi
    3652 
    36533672
    36543673
     
    37213740       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
    37223741         >/dev/null 2>conftest.err &&
     3742       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
    37233743       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
    37243744       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
     
    37503770CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
    37513771
    3752 
    3753 
    3754 if
     3772 if
    37553773  test "x$enable_dependency_tracking" != xno \
    37563774  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
     
    41944212       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
    41954213         >/dev/null 2>conftest.err &&
     4214       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
    41964215       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
    41974216       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
     
    42234242CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
    42244243
    4225 
    4226 
    4227 if
     4244 if
    42284245  test "x$enable_dependency_tracking" != xno \
    42294246  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
     
    43614378fi
    43624379
     4380
    43634381# Find a good install program.  We prefer a C program (faster),
    43644382# so one script is as good as another.  But avoid the broken or
     
    48174835;;
    48184836esac
    4819 
    4820 
    4821 if test x$nt = xtrue; then
     4837 if test x$nt = xtrue; then
    48224838  OGRE_NT_TRUE=
    48234839  OGRE_NT_FALSE='#'
     
    48274843fi
    48284844
    4829 
    4830 
    4831 if test x$linux = xtrue; then
     4845 if test x$linux = xtrue; then
    48324846  OGRE_LINUX_TRUE=
    48334847  OGRE_LINUX_FALSE='#'
     
    48374851fi
    48384852
    4839 
    4840 
    4841 if test x$osx = xtrue ; then
     4853 if test x$osx = xtrue ; then
    48424854  OGRE_OSX_TRUE=
    48434855  OGRE_OSX_FALSE='#'
     
    49364948  for lt_ac_prog in sed gsed; do
    49374949    for ac_exec_ext in '' $ac_executable_extensions; do
    4938       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
     4950      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
    49394951        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
    49404952      fi
     
    49424954  done
    49434955done
     4956IFS=$as_save_IFS
    49444957lt_ac_max=0
    49454958lt_ac_count=0
     
    49764989
    49774990SED=$lt_cv_path_SED
     4991
    49784992{ echo "$as_me:$LINENO: result: $SED" >&5
    49794993echo "${ECHO_T}$SED" >&6; }
     
    52665280  darwin*)
    52675281    if test "$GCC" = yes; then
    5268       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
     5282      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
    52695283    else
    52705284      reload_cmds='$LD$reload_flag -o $output$reload_objs'
     
    52825296  lt_cv_path_NM="$NM"
    52835297else
    5284   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    5285   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
    5286     IFS="$lt_save_ifs"
    5287     test -z "$ac_dir" && ac_dir=.
    5288     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
    5289     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
    5290       # Check to see if the nm accepts a BSD-compat flag.
    5291       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
    5292       #   nm: unknown option "B" ignored
    5293       # Tru64's nm complains that /dev/null is an invalid object file
    5294       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
    5295       */dev/null* | *'Invalid file or object type'*)
    5296         lt_cv_path_NM="$tmp_nm -B"
    5297         break
    5298         ;;
    5299       *)
    5300         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
    5301         */dev/null*)
    5302           lt_cv_path_NM="$tmp_nm -p"
     5298  lt_nm_to_check="${ac_tool_prefix}nm"
     5299  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
     5300    lt_nm_to_check="$lt_nm_to_check nm"
     5301  fi
     5302  for lt_tmp_nm in $lt_nm_to_check; do
     5303    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
     5304    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
     5305      IFS="$lt_save_ifs"
     5306      test -z "$ac_dir" && ac_dir=.
     5307      tmp_nm="$ac_dir/$lt_tmp_nm"
     5308      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
     5309        # Check to see if the nm accepts a BSD-compat flag.
     5310        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
     5311        #   nm: unknown option "B" ignored
     5312        # Tru64's nm complains that /dev/null is an invalid object file
     5313        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
     5314        */dev/null* | *'Invalid file or object type'*)
     5315          lt_cv_path_NM="$tmp_nm -B"
    53035316          break
    53045317          ;;
    53055318        *)
    5306           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
    5307           continue # so that we can try to find one that supports BSD flags
     5319          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
     5320          */dev/null*)
     5321            lt_cv_path_NM="$tmp_nm -p"
     5322            break
     5323            ;;
     5324          *)
     5325            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
     5326            continue # so that we can try to find one that supports BSD flags
     5327            ;;
     5328          esac
    53085329          ;;
    53095330        esac
    5310       esac
    5311     fi
     5331      fi
     5332    done
     5333    IFS="$lt_save_ifs"
    53125334  done
    5313   IFS="$lt_save_ifs"
    53145335  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
    53155336fi
     
    53305351fi
    53315352
    5332 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
    5333 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
     5353{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
     5354echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
    53345355if test "${lt_cv_deplibs_check_method+set}" = set; then
    53355356  echo $ECHO_N "(cached) $ECHO_C" >&6
     
    53725393mingw* | pw32*)
    53735394  # Base MSYS/MinGW do not provide the 'file' command needed by
    5374   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
    5375   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
    5376   lt_cv_file_magic_cmd='$OBJDUMP -f'
     5395  # func_win32_libid shell function, so use a weaker test based on 'objdump',
     5396  # unless we find 'file', for example because we are cross-compiling.
     5397  if ( file / ) >/dev/null 2>&1; then
     5398    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
     5399    lt_cv_file_magic_cmd='func_win32_libid'
     5400  else
     5401    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
     5402    lt_cv_file_magic_cmd='$OBJDUMP -f'
     5403  fi
    53775404  ;;
    53785405
     
    53815408  ;;
    53825409
    5383 freebsd* | kfreebsd*-gnu | dragonfly*)
     5410freebsd* | dragonfly*)
    53845411  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    53855412    case $host_cpu in
     
    54195446  ;;
    54205447
     5448interix[3-9]*)
     5449  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
     5450  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
     5451  ;;
     5452
    54215453irix5* | irix6* | nonstopux*)
    54225454  case $LD in
     
    54305462
    54315463# This must be Linux ELF.
    5432 linux*)
     5464linux* | k*bsd*-gnu)
    54335465  lt_cv_deplibs_check_method=pass_all
    54345466  ;;
     
    54645496  ;;
    54655497
    5466 sco3.2v5*)
     5498rdos*)
    54675499  lt_cv_deplibs_check_method=pass_all
    54685500  ;;
     
    54725504  ;;
    54735505
    5474 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
     5506sysv4 | sysv4.3*)
    54755507  case $host_vendor in
    54765508  motorola)
     
    54935525    lt_cv_deplibs_check_method=pass_all
    54945526    ;;
     5527  pc)
     5528    lt_cv_deplibs_check_method=pass_all
     5529    ;;
    54955530  esac
    54965531  ;;
    54975532
    5498 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
     5533sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
    54995534  lt_cv_deplibs_check_method=pass_all
    55005535  ;;
     
    55135548# If no C compiler was specified, use CC.
    55145549LTCC=${LTCC-"$CC"}
     5550
     5551# If no C compiler flags were specified, use CFLAGS.
     5552LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
    55155553
    55165554# Allow CC to be a program name with arguments.
     
    55485586*-*-irix6*)
    55495587  # Find out which ABI we are using.
    5550   echo '#line 5550 "configure"' > conftest.$ac_ext
     5588  echo '#line 5588 "configure"' > conftest.$ac_ext
    55515589  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    55525590  (eval $ac_compile) 2>&5
     
    55835621  ;;
    55845622
    5585 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
     5623x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
     5624s390*-*linux*|sparc*-*linux*)
    55865625  # Find out which ABI we are using.
    55875626  echo 'int i;' > conftest.$ac_ext
     
    55945633    *32-bit*)
    55955634      case $host in
     5635        x86_64-*kfreebsd*-gnu)
     5636          LD="${LD-ld} -m elf_i386_fbsd"
     5637          ;;
    55965638        x86_64-*linux*)
    55975639          LD="${LD-ld} -m elf_i386"
     
    56105652    *64-bit*)
    56115653      case $host in
     5654        x86_64-*kfreebsd*-gnu)
     5655          LD="${LD-ld} -m elf_x86_64_fbsd"
     5656          ;;
    56125657        x86_64-*linux*)
    56135658          LD="${LD-ld} -m elf_x86_64"
     
    57015746  fi
    57025747  ;;
     5748sparc*-*solaris*)
     5749  # Find out which ABI we are using.
     5750  echo 'int i;' > conftest.$ac_ext
     5751  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5752  (eval $ac_compile) 2>&5
     5753  ac_status=$?
     5754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5755  (exit $ac_status); }; then
     5756    case `/usr/bin/file conftest.o` in
     5757    *64-bit*)
     5758      case $lt_cv_prog_gnu_ld in
     5759      yes*) LD="${LD-ld} -m elf64_sparc" ;;
     5760      *)    LD="${LD-ld} -64" ;;
     5761      esac
     5762      ;;
     5763    esac
     5764  fi
     5765  rm -rf conftest*
     5766  ;;
     5767
    57035768
    57045769esac
     
    68746939    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    68756940    ;;
     6941
     6942  interix*)
     6943    # We know the value 262144 and hardcode it with a safety zone (like BSD)
     6944    lt_cv_sys_max_cmd_len=196608
     6945    ;;
     6946
    68766947  osf*)
    68776948    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
     
    68876958    fi
    68886959    ;;
     6960  sco3.2v5*)
     6961    lt_cv_sys_max_cmd_len=102400
     6962    ;;
     6963  sysv5* | sco5v6* | sysv4.2uw2*)
     6964    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
     6965    if test -n "$kargmax"; then
     6966      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
     6967    else
     6968      lt_cv_sys_max_cmd_len=32768
     6969    fi
     6970    ;;
    68896971  *)
    6890     # If test is not a shell built-in, we'll probably end up computing a
    6891     # maximum length that is only half of the actual maximum length, but
    6892     # we can't tell.
    6893     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
    6894     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
     6972    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
     6973    if test -n "$lt_cv_sys_max_cmd_len"; then
     6974      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
     6975      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
     6976    else
     6977      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
     6978      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
    68956979               = "XX$teststring") >/dev/null 2>&1 &&
    6896             new_result=`expr "X$teststring" : ".*" 2>&1` &&
    6897             lt_cv_sys_max_cmd_len=$new_result &&
    6898             test $i != 17 # 1/2 MB should be enough
    6899     do
    6900       i=`expr $i + 1`
    6901       teststring=$teststring$teststring
    6902     done
    6903     teststring=
    6904     # Add a significant safety factor because C++ compilers can tack on massive
    6905     # amounts of additional arguments before passing them to the linker.
    6906     # It appears as though 1/2 is a usable value.
    6907     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
     6980              new_result=`expr "X$teststring" : ".*" 2>&1` &&
     6981              lt_cv_sys_max_cmd_len=$new_result &&
     6982              test $i != 17 # 1/2 MB should be enough
     6983      do
     6984        i=`expr $i + 1`
     6985        teststring=$teststring$teststring
     6986      done
     6987      teststring=
     6988      # Add a significant safety factor because C++ compilers can tack on massive
     6989      # amounts of additional arguments before passing them to the linker.
     6990      # It appears as though 1/2 is a usable value.
     6991      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
     6992    fi
    69086993    ;;
    69096994  esac
     
    69187003echo "${ECHO_T}none" >&6; }
    69197004fi
     7005
    69207006
    69217007
     
    69597045  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
    69607046  ;;
    6961 linux*)
     7047linux* | k*bsd*-gnu)
    69627048  if test "$host_cpu" = ia64; then
    69637049    symcode='[ABCDGIRSTW]'
     
    69727058  symcode='[BCDEGQRST]'
    69737059  ;;
    6974 solaris* | sysv5*)
     7060solaris*)
    69757061  symcode='[BDRT]'
     7062  ;;
     7063sco3.2v5*)
     7064  symcode='[DT]'
     7065  ;;
     7066sysv4.2uw2*)
     7067  symcode='[DT]'
     7068  ;;
     7069sysv5* | sco5v6* | unixware* | OpenUNIX*)
     7070  symcode='[ABDT]'
    69767071  ;;
    69777072sysv4)
     
    74887583test -z "$CC" && CC=cc
    74897584test -z "$LTCC" && LTCC=$CC
     7585test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
    74907586test -z "$DLLTOOL" && DLLTOOL=dlltool
    74917587test -z "$LD" && LD=ld
     
    75007596
    75017597# Determine commands to create old-style static archives.
    7502 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
     7598old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
    75037599old_postinstall_cmds='chmod 644 $oldlib'
    75047600old_postuninstall_cmds=
     
    75077603  case $host_os in
    75087604  openbsd*)
    7509     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
     7605    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
    75107606    ;;
    75117607  *)
    7512     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
     7608    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
    75137609    ;;
    75147610  esac
     
    77007796
    77017797# Code to be used in simple compile tests
    7702 lt_simple_compile_test_code="int some_variable = 0;\n"
     7798lt_simple_compile_test_code="int some_variable = 0;"
    77037799
    77047800# Code to be used in simple link tests
    7705 lt_simple_link_test_code='int main(){return(0);}\n'
     7801lt_simple_link_test_code='int main(){return(0);}'
    77067802
    77077803
     
    77097805LTCC=${LTCC-"$CC"}
    77107806
     7807# If no C compiler flags were specified, use CFLAGS.
     7808LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
     7809
    77117810# Allow CC to be a program name with arguments.
    77127811compiler=$CC
     
    77157814# save warnings/boilerplate of simple test code
    77167815ac_outfile=conftest.$ac_objext
    7717 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
    7718 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
     7816echo "$lt_simple_compile_test_code" >conftest.$ac_ext
     7817eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
    77197818_lt_compiler_boilerplate=`cat conftest.err`
    77207819$rm conftest*
    77217820
    77227821ac_outfile=conftest.$ac_objext
    7723 printf "$lt_simple_link_test_code" >conftest.$ac_ext
    7724 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
     7822echo "$lt_simple_link_test_code" >conftest.$ac_ext
     7823eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
    77257824_lt_linker_boilerplate=`cat conftest.err`
    77267825$rm conftest*
    7727 
    7728 
    7729 #
    7730 # Check for any special shared library compilation flags.
    7731 #
    7732 lt_prog_cc_shlib=
    7733 if test "$GCC" = no; then
    7734   case $host_os in
    7735   sco3.2v5*)
    7736     lt_prog_cc_shlib='-belf'
    7737     ;;
    7738   esac
    7739 fi
    7740 if test -n "$lt_prog_cc_shlib"; then
    7741   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
    7742 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
    7743   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
    7744   else
    7745     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
    7746 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
    7747     lt_cv_prog_cc_can_build_shared=no
    7748   fi
    7749 fi
    7750 
    7751 
    7752 #
    7753 # Check to make sure the static flag actually works.
    7754 #
    7755 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
    7756 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
    7757 if test "${lt_prog_compiler_static_works+set}" = set; then
    7758   echo $ECHO_N "(cached) $ECHO_C" >&6
    7759 else
    7760   lt_prog_compiler_static_works=no
    7761    save_LDFLAGS="$LDFLAGS"
    7762    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
    7763    printf "$lt_simple_link_test_code" > conftest.$ac_ext
    7764    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
    7765      # The linker can only warn and ignore the option if not recognized
    7766      # So say no if there are warnings
    7767      if test -s conftest.err; then
    7768        # Append any errors to the config.log.
    7769        cat conftest.err 1>&5
    7770        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
    7771        $SED '/^$/d' conftest.err >conftest.er2
    7772        if diff conftest.exp conftest.er2 >/dev/null; then
    7773          lt_prog_compiler_static_works=yes
    7774        fi
    7775      else
    7776        lt_prog_compiler_static_works=yes
    7777      fi
    7778    fi
    7779    $rm conftest*
    7780    LDFLAGS="$save_LDFLAGS"
    7781 
    7782 fi
    7783 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
    7784 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
    7785 
    7786 if test x"$lt_prog_compiler_static_works" = xyes; then
    7787     :
    7788 else
    7789     lt_prog_compiler_static=
    7790 fi
    7791 
    77927826
    77937827
     
    78067840  lt_cv_prog_compiler_rtti_exceptions=no
    78077841  ac_outfile=conftest.$ac_objext
    7808    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     7842   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    78097843   lt_compiler_flag="-fno-rtti -fno-exceptions"
    78107844   # Insert the option either (1) after the last *FLAGS variable, or
     
    78177851   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    78187852   -e 's:$: $lt_compiler_flag:'`
    7819    (eval echo "\"\$as_me:7819: $lt_compile\"" >&5)
     7853   (eval echo "\"\$as_me:7853: $lt_compile\"" >&5)
    78207854   (eval "$lt_compile" 2>conftest.err)
    78217855   ac_status=$?
    78227856   cat conftest.err >&5
    7823    echo "$as_me:7823: \$? = $ac_status" >&5
     7857   echo "$as_me:7857: \$? = $ac_status" >&5
    78247858   if (exit $ac_status) && test -s "$ac_outfile"; then
    78257859     # The compiler can only warn and ignore the option if not recognized
    78267860     # So say no if there are warnings other than the usual output.
    7827      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
    7828      $SED '/^$/d' conftest.err >conftest.er2
    7829      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
     7861     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     7862     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     7863     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
    78307864       lt_cv_prog_compiler_rtti_exceptions=yes
    78317865     fi
     
    78727906      ;;
    78737907
    7874     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
     7908    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
    78757909      # PIC is the default for these OSes.
    78767910      ;;
    78777911
    7878     mingw* | pw32* | os2*)
     7912    mingw* | cygwin* | pw32* | os2*)
    78797913      # This hack is so that the source file can tell whether it is being
    78807914      # built for inclusion in a dll (and should export symbols for example).
     7915      # Although the cygwin gcc ignores -fPIC, still need this for old-style
     7916      # (--disable-auto-import) libraries
    78817917      lt_prog_compiler_pic='-DDLL_EXPORT'
    78827918      ;;
     
    78867922      # Common symbols not allowed in MH_DYLIB files
    78877923      lt_prog_compiler_pic='-fno-common'
     7924      ;;
     7925
     7926    interix[3-9]*)
     7927      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
     7928      # Instead, we relocate shared libraries at runtime.
    78887929      ;;
    78897930
     
    79417982       ;;
    79427983
    7943     mingw* | pw32* | os2*)
     7984    mingw* | cygwin* | pw32* | os2*)
    79447985      # This hack is so that the source file can tell whether it is being
    79457986      # built for inclusion in a dll (and should export symbols for example).
     
    79748015      ;;
    79758016
    7976     linux*)
     8017    linux* | k*bsd*-gnu)
    79778018      case $cc_basename in
    79788019      icc* | ecc*)
     
    79938034        lt_prog_compiler_static='-non_shared'
    79948035        ;;
     8036      *)
     8037        case `$CC -V 2>&1 | sed 5q` in
     8038        *Sun\ C*)
     8039          # Sun C 5.9
     8040          lt_prog_compiler_pic='-KPIC'
     8041          lt_prog_compiler_static='-Bstatic'
     8042          lt_prog_compiler_wl='-Wl,'
     8043          ;;
     8044        *Sun\ F*)
     8045          # Sun Fortran 8.3 passes all unrecognized flags to the linker
     8046          lt_prog_compiler_pic='-KPIC'
     8047          lt_prog_compiler_static='-Bstatic'
     8048          lt_prog_compiler_wl=''
     8049          ;;
     8050        esac
     8051        ;;
    79958052      esac
    79968053      ;;
     
    80028059      ;;
    80038060
    8004     sco3.2v5*)
    8005       lt_prog_compiler_pic='-Kpic'
    8006       lt_prog_compiler_static='-dn'
     8061    rdos*)
     8062      lt_prog_compiler_static='-non_shared'
    80078063      ;;
    80088064
     
    80248080      ;;
    80258081
    8026     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
     8082    sysv4 | sysv4.2uw2* | sysv4.3*)
    80278083      lt_prog_compiler_wl='-Wl,'
    80288084      lt_prog_compiler_pic='-KPIC'
     
    80378093      ;;
    80388094
     8095    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
     8096      lt_prog_compiler_wl='-Wl,'
     8097      lt_prog_compiler_pic='-KPIC'
     8098      lt_prog_compiler_static='-Bstatic'
     8099      ;;
     8100
    80398101    unicos*)
    80408102      lt_prog_compiler_wl='-Wl,'
     
    80688130  lt_prog_compiler_pic_works=no
    80698131  ac_outfile=conftest.$ac_objext
    8070    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     8132   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    80718133   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
    80728134   # Insert the option either (1) after the last *FLAGS variable, or
     
    80798141   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    80808142   -e 's:$: $lt_compiler_flag:'`
    8081    (eval echo "\"\$as_me:8081: $lt_compile\"" >&5)
     8143   (eval echo "\"\$as_me:8143: $lt_compile\"" >&5)
    80828144   (eval "$lt_compile" 2>conftest.err)
    80838145   ac_status=$?
    80848146   cat conftest.err >&5
    8085    echo "$as_me:8085: \$? = $ac_status" >&5
     8147   echo "$as_me:8147: \$? = $ac_status" >&5
    80868148   if (exit $ac_status) && test -s "$ac_outfile"; then
    80878149     # The compiler can only warn and ignore the option if not recognized
    80888150     # So say no if there are warnings other than the usual output.
    8089      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
    8090      $SED '/^$/d' conftest.err >conftest.er2
    8091      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
     8151     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     8152     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     8153     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
    80928154       lt_prog_compiler_pic_works=yes
    80938155     fi
     
    81208182esac
    81218183
     8184#
     8185# Check to make sure the static flag actually works.
     8186#
     8187wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
     8188{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
     8189echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
     8190if test "${lt_prog_compiler_static_works+set}" = set; then
     8191  echo $ECHO_N "(cached) $ECHO_C" >&6
     8192else
     8193  lt_prog_compiler_static_works=no
     8194   save_LDFLAGS="$LDFLAGS"
     8195   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
     8196   echo "$lt_simple_link_test_code" > conftest.$ac_ext
     8197   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     8198     # The linker can only warn and ignore the option if not recognized
     8199     # So say no if there are warnings
     8200     if test -s conftest.err; then
     8201       # Append any errors to the config.log.
     8202       cat conftest.err 1>&5
     8203       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
     8204       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     8205       if diff conftest.exp conftest.er2 >/dev/null; then
     8206         lt_prog_compiler_static_works=yes
     8207       fi
     8208     else
     8209       lt_prog_compiler_static_works=yes
     8210     fi
     8211   fi
     8212   $rm conftest*
     8213   LDFLAGS="$save_LDFLAGS"
     8214
     8215fi
     8216{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
     8217echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
     8218
     8219if test x"$lt_prog_compiler_static_works" = xyes; then
     8220    :
     8221else
     8222    lt_prog_compiler_static=
     8223fi
     8224
     8225
    81228226{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
    81238227echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
     
    81308234   cd conftest
    81318235   mkdir out
    8132    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     8236   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    81338237
    81348238   lt_compiler_flag="-o out/conftest2.$ac_objext"
     
    81418245   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    81428246   -e 's:$: $lt_compiler_flag:'`
    8143    (eval echo "\"\$as_me:8143: $lt_compile\"" >&5)
     8247   (eval echo "\"\$as_me:8247: $lt_compile\"" >&5)
    81448248   (eval "$lt_compile" 2>out/conftest.err)
    81458249   ac_status=$?
    81468250   cat out/conftest.err >&5
    8147    echo "$as_me:8147: \$? = $ac_status" >&5
     8251   echo "$as_me:8251: \$? = $ac_status" >&5
    81488252   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    81498253   then
    81508254     # The compiler can only warn and ignore the option if not recognized
    81518255     # So say no if there are warnings
    8152      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
    8153      $SED '/^$/d' out/conftest.err >out/conftest.er2
    8154      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
     8256     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     8257     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     8258     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
    81558259       lt_cv_prog_compiler_c_o=yes
    81568260     fi
     
    82528356    fi
    82538357    ;;
     8358  interix*)
     8359    # we just hope/assume this is gcc and not c89 (= MSVC++)
     8360    with_gnu_ld=yes
     8361    ;;
    82548362  openbsd*)
    82558363    with_gnu_ld=no
     
    83338441      always_export_symbols=no
    83348442      enable_shared_with_static_runtimes=yes
    8335       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
     8443      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
    83368444
    83378445      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
    8338         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
     8446        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    83398447        # If the export-symbols file already is a .def file (1st line
    83408448        # is EXPORTS), use it as is; otherwise, prepend...
     
    83458453          cat $export_symbols >> $output_objdir/$soname.def;
    83468454        fi~
    8347         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
     8455        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    83488456      else
    83498457        ld_shlibs=no
     
    83518459      ;;
    83528460
    8353     linux*)
     8461    interix[3-9]*)
     8462      hardcode_direct=no
     8463      hardcode_shlibpath_var=no
     8464      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
     8465      export_dynamic_flag_spec='${wl}-E'
     8466      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
     8467      # Instead, shared libraries are loaded at an image base (0x10000000 by
     8468      # default) and relocated if they conflict, which is a slow very memory
     8469      # consuming and fragmenting process.  To avoid this, we pick a random,
     8470      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
     8471      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
     8472      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
     8473      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
     8474      ;;
     8475
     8476    gnu* | linux* | k*bsd*-gnu)
    83548477      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    83558478        tmp_addflag=
     
    83698492          tmp_addflag=' -nofor_main' ;;
    83708493        esac
    8371         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     8494        case `$CC -V 2>&1 | sed 5q` in
     8495        *Sun\ C*)                       # Sun C 5.9
     8496          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
     8497          tmp_sharedflag='-G' ;;
     8498        *Sun\ F*)                       # Sun Fortran 8.3
     8499          tmp_sharedflag='-G' ;;
     8500        *)
     8501          tmp_sharedflag='-shared' ;;
     8502        esac
     8503        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    83728504
    83738505        if test $supports_anon_versioning = yes; then
     
    83758507  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
    83768508  $echo "local: *; };" >> $output_objdir/$libname.ver~
    8377           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
     8509          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
    83788510        fi
    83798511      else
     
    83928524      ;;
    83938525
    8394     solaris* | sysv5*)
     8526    solaris*)
    83958527      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
    83968528        ld_shlibs=no
     
    84118543        ld_shlibs=no
    84128544      fi
     8545      ;;
     8546
     8547    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
     8548      case `$LD -v 2>&1` in
     8549        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
     8550        ld_shlibs=no
     8551        cat <<_LT_EOF 1>&2
     8552
     8553*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
     8554*** reliably create shared libraries on SCO systems.  Therefore, libtool
     8555*** is disabling shared libraries support.  We urge you to upgrade GNU
     8556*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
     8557*** your PATH or compiler configuration so that the native linker is
     8558*** used, and then restart.
     8559
     8560_LT_EOF
     8561        ;;
     8562        *)
     8563          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
     8564            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
     8565            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
     8566            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
     8567          else
     8568            ld_shlibs=no
     8569          fi
     8570        ;;
     8571      esac
    84138572      ;;
    84148573
     
    84468605      # are no directories specified by -L.
    84478606      hardcode_minus_L=yes
    8448       if test "$GCC" = yes && test -z "$link_static_flag"; then
     8607      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
    84498608        # Neither direct hardcoding nor static linking is supported with a
    84508609        # broken collect2.
     
    84808639          fi
    84818640          done
     8641          ;;
    84828642        esac
    84838643
     
    85068666          then
    85078667          # We have reworked collect2
    8508           hardcode_direct=yes
     8668          :
    85098669          else
    85108670          # We have old collect2
     
    85178677          hardcode_libdir_separator=
    85188678          fi
     8679          ;;
    85198680        esac
    85208681        shared_flag='-shared'
     
    85298690          shared_flag='-G'
    85308691        else
    8531         if test "$aix_use_runtimelinking" = yes; then
     8692          if test "$aix_use_runtimelinking" = yes; then
    85328693            shared_flag='${wl}-G'
    85338694          else
    85348695            shared_flag='${wl}-bM:SRE'
    8535         fi
     8696          fi
    85368697        fi
    85378698      fi
     
    85798740       $as_test_x conftest$ac_exeext; then
    85808741
    8581 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    8582 }'`
     8742lt_aix_libpath_sed='
     8743    /Import File Strings/,/^$/ {
     8744        /^0/ {
     8745            s/^0  *\(.*\)$/\1/
     8746            p
     8747        }
     8748    }'
     8749aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
    85838750# Check for a 64-bit object if we didn't find anything.
    8584 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    8585 }'`; fi
     8751if test -z "$aix_libpath"; then
     8752  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     8753fi
    85868754else
    85878755  echo "$as_me: failed program was:" >&5
     
    85968764
    85978765       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
    8598         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"
     8766        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
    85998767       else
    86008768        if test "$host_cpu" = ia64; then
    86018769          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
    86028770          allow_undefined_flag="-z nodefs"
    8603           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
     8771          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
    86048772        else
    86058773         # Determine the default libpath from the value encoded in an empty executable.
     
    86388806       $as_test_x conftest$ac_exeext; then
    86398807
    8640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    8641 }'`
     8808lt_aix_libpath_sed='
     8809    /Import File Strings/,/^$/ {
     8810        /^0/ {
     8811            s/^0  *\(.*\)$/\1/
     8812            p
     8813        }
     8814    }'
     8815aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
    86428816# Check for a 64-bit object if we didn't find anything.
    8643 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    8644 }'`; fi
     8817if test -z "$aix_libpath"; then
     8818  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     8819fi
    86458820else
    86468821  echo "$as_me: failed program was:" >&5
     
    86598834          no_undefined_flag=' ${wl}-bernotok'
    86608835          allow_undefined_flag=' ${wl}-berok'
    8661           # -bexpall does not export symbols beginning with underscore (_)
    8662           always_export_symbols=yes
    86638836          # Exported symbols can be pulled into shared objects from archives
    8664           whole_archive_flag_spec=' '
     8837          whole_archive_flag_spec='$convenience'
    86658838          archive_cmds_need_lc=yes
    86668839          # This is similar to how AIX traditionally builds its shared libraries.
    8667           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
     8840          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
    86688841        fi
    86698842      fi
     
    86988871      old_archive_From_new_cmds='true'
    86998872      # FIXME: Should let the user specify the lib program.
    8700       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
     8873      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
    87018874      fix_srcfile_path='`cygpath -w "$srcfile"`'
    87028875      enable_shared_with_static_runtimes=yes
     
    87408913        xlc*)
    87418914         output_verbose_link_cmd='echo'
    8742          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
     8915         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
    87438916         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    87448917          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
    8745          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
     8918         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    87468919          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    87478920          ;;
     
    87838956
    87848957    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    8785     freebsd* | kfreebsd*-gnu | dragonfly*)
     8958    freebsd* | dragonfly*)
    87868959      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
    87878960      hardcode_libdir_flag_spec='-R$libdir'
     
    88068979      ;;
    88078980
    8808     hpux10* | hpux11*)
     8981    hpux10*)
     8982      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
     8983        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
     8984      else
     8985        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
     8986      fi
     8987      if test "$with_gnu_ld" = no; then
     8988        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
     8989        hardcode_libdir_separator=:
     8990
     8991        hardcode_direct=yes
     8992        export_dynamic_flag_spec='${wl}-E'
     8993
     8994        # hardcode_minus_L: Not really in the search PATH,
     8995        # but as the default location of the library.
     8996        hardcode_minus_L=yes
     8997      fi
     8998      ;;
     8999
     9000    hpux11*)
    88099001      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
    88109002        case $host_cpu in
    8811         hppa*64*|ia64*)
     9003        hppa*64*)
    88129004          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
     9005          ;;
     9006        ia64*)
     9007          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
    88139008          ;;
    88149009        *)
     
    88189013      else
    88199014        case $host_cpu in
    8820         hppa*64*|ia64*)
    8821           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
     9015        hppa*64*)
     9016          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
     9017          ;;
     9018        ia64*)
     9019          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
    88229020          ;;
    88239021        *)
    8824           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
     9022          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
    88259023          ;;
    88269024        esac
    88279025      fi
    88289026      if test "$with_gnu_ld" = no; then
     9027        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
     9028        hardcode_libdir_separator=:
     9029
    88299030        case $host_cpu in
    8830         hppa*64*)
    8831           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
     9031        hppa*64*|ia64*)
    88329032          hardcode_libdir_flag_spec_ld='+b $libdir'
    8833           hardcode_libdir_separator=:
    88349033          hardcode_direct=no
    88359034          hardcode_shlibpath_var=no
    88369035          ;;
    8837         ia64*)
    8838           hardcode_libdir_flag_spec='-L$libdir'
    8839           hardcode_direct=no
    8840           hardcode_shlibpath_var=no
    8841 
    8842           # hardcode_minus_L: Not really in the search PATH,
    8843           # but as the default location of the library.
    8844           hardcode_minus_L=yes
    8845           ;;
    88469036        *)
    8847           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
    8848           hardcode_libdir_separator=:
    88499037          hardcode_direct=yes
    88509038          export_dynamic_flag_spec='${wl}-E'
     
    88909078
    88919079    openbsd*)
    8892       hardcode_direct=yes
    8893       hardcode_shlibpath_var=no
    8894       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    8895         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    8896         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
    8897         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
    8898         export_dynamic_flag_spec='${wl}-E'
     9080      if test -f /usr/libexec/ld.so; then
     9081        hardcode_direct=yes
     9082        hardcode_shlibpath_var=no
     9083        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     9084          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
     9085          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
     9086          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
     9087          export_dynamic_flag_spec='${wl}-E'
     9088        else
     9089          case $host_os in
     9090           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
     9091             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
     9092             hardcode_libdir_flag_spec='-R$libdir'
     9093             ;;
     9094           *)
     9095             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
     9096             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
     9097             ;;
     9098          esac
     9099        fi
    88999100      else
    8900        case $host_os in
    8901          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
    8902            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    8903            hardcode_libdir_flag_spec='-R$libdir'
    8904            ;;
    8905          *)
    8906            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    8907            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
    8908            ;;
    8909        esac
     9101        ld_shlibs=no
    89109102      fi
    89119103      ;;
     
    89469138      fi
    89479139      hardcode_libdir_separator=:
    8948       ;;
    8949 
    8950     sco3.2v5*)
    8951       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    8952       hardcode_shlibpath_var=no
    8953       export_dynamic_flag_spec='${wl}-Bexport'
    8954       runpath_var=LD_RUN_PATH
    8955       hardcode_runpath_var=yes
    89569140      ;;
    89579141
     
    89749158      solaris2.[0-5] | solaris2.[0-5].*) ;;
    89759159      *)
    8976         # The compiler driver will combine linker options so we
    8977         # cannot just pass the convience library names through
    8978         # without $wl, iff we do not link with $LD.
    8979         # Luckily, gcc supports the same syntax we need for Sun Studio.
     9160        # The compiler driver will combine and reorder linker options,
     9161        # but understands `-z linker_flag'.  GCC discards it without `$wl',
     9162        # but is careful enough not to reorder.
    89809163        # Supported since Solaris 2.6 (maybe 2.5.1?)
    8981         case $wlarc in
    8982         '')
    8983           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
    8984         *)
    8985           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
    8986         esac ;;
     9164        if test "$GCC" = yes; then
     9165          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
     9166        else
     9167          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
     9168        fi
     9169        ;;
    89879170      esac
    89889171      link_all_deplibs=yes
     
    90419224      ;;
    90429225
    9043     sysv4.2uw2*)
    9044       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
    9045       hardcode_direct=yes
    9046       hardcode_minus_L=no
    9047       hardcode_shlibpath_var=no
    9048       hardcode_runpath_var=yes
    9049       runpath_var=LD_RUN_PATH
    9050       ;;
    9051 
    9052    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
    9053       no_undefined_flag='${wl}-z ${wl}text'
    9054       if test "$GCC" = yes; then
    9055         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    9056       else
    9057         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    9058       fi
    9059       runpath_var='LD_RUN_PATH'
    9060       hardcode_shlibpath_var=no
    9061       ;;
    9062 
    9063     sysv5*)
    9064       no_undefined_flag=' -z text'
    9065       # $CC -shared without GNU ld will not create a library from C++
    9066       # object files and a static libstdc++, better avoid it by now
    9067       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
    9068       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    9069                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
    9070       hardcode_libdir_flag_spec=
     9226    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
     9227      no_undefined_flag='${wl}-z,text'
     9228      archive_cmds_need_lc=no
    90719229      hardcode_shlibpath_var=no
    90729230      runpath_var='LD_RUN_PATH'
     9231
     9232      if test "$GCC" = yes; then
     9233        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     9234        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     9235      else
     9236        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     9237        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     9238      fi
     9239      ;;
     9240
     9241    sysv5* | sco3.2v5* | sco5v6*)
     9242      # Note: We can NOT use -z defs as we might desire, because we do not
     9243      # link with -lc, and that would cause any symbols used from libc to
     9244      # always be unresolved, which means just about no library would
     9245      # ever link correctly.  If we're not using GNU ld we use -z text
     9246      # though, which does catch some bad symbols but isn't as heavy-handed
     9247      # as -z defs.
     9248      no_undefined_flag='${wl}-z,text'
     9249      allow_undefined_flag='${wl}-z,nodefs'
     9250      archive_cmds_need_lc=no
     9251      hardcode_shlibpath_var=no
     9252      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
     9253      hardcode_libdir_separator=':'
     9254      link_all_deplibs=yes
     9255      export_dynamic_flag_spec='${wl}-Bexport'
     9256      runpath_var='LD_RUN_PATH'
     9257
     9258      if test "$GCC" = yes; then
     9259        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     9260        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     9261      else
     9262        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     9263        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     9264      fi
    90739265      ;;
    90749266
     
    90889280echo "${ECHO_T}$ld_shlibs" >&6; }
    90899281test "$ld_shlibs" = no && can_build_shared=no
    9090 
    9091 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
    9092 if test "$GCC" = yes; then
    9093   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
    9094 fi
    90959282
    90969283#
     
    91149301echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
    91159302      $rm conftest*
    9116       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     9303      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    91179304
    91189305      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     
    91269313        deplibs=
    91279314        wl=$lt_prog_compiler_wl
     9315        pic_flag=$lt_prog_compiler_pic
    91289316        compiler_flags=-v
    91299317        linker_flags=-v
     
    91719359dynamic_linker="$host_os ld.so"
    91729360sys_lib_dlsearch_path_spec="/lib /usr/lib"
     9361
    91739362if test "$GCC" = yes; then
    9174   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    9175   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
     9363  case $host_os in
     9364    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
     9365    *) lt_awk_arg="/^libraries:/" ;;
     9366  esac
     9367  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
     9368  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
    91769369    # if the path contains ";" then we assume it to be the separator
    91779370    # otherwise default to the standard path separator (i.e. ":") - it is
    91789371    # assumed that no part of a normal pathname contains ";" but that should
    91799372    # okay in the real world where ";" in dirpaths is itself problematic.
    9180     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
     9373    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
    91819374  else
    9182     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
     9375    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    91839376  fi
     9377  # Ok, now we have the path, separated by spaces, we can step through it
     9378  # and add multilib dir if necessary.
     9379  lt_tmp_lt_search_path_spec=
     9380  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
     9381  for lt_sys_path in $lt_search_path_spec; do
     9382    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
     9383      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
     9384    else
     9385      test -d "$lt_sys_path" && \
     9386        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
     9387    fi
     9388  done
     9389  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
     9390BEGIN {RS=" "; FS="/|\n";} {
     9391  lt_foo="";
     9392  lt_count=0;
     9393  for (lt_i = NF; lt_i > 0; lt_i--) {
     9394    if ($lt_i != "" && $lt_i != ".") {
     9395      if ($lt_i == "..") {
     9396        lt_count++;
     9397      } else {
     9398        if (lt_count == 0) {
     9399          lt_foo="/" $lt_i lt_foo;
     9400        } else {
     9401          lt_count--;
     9402        }
     9403      }
     9404    }
     9405  }
     9406  if (lt_foo != "") { lt_freq[lt_foo]++; }
     9407  if (lt_freq[lt_foo] == 1) { print lt_foo; }
     9408}'`
     9409  sys_lib_search_path_spec=`echo $lt_search_path_spec`
    91849410else
    91859411  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
     
    93419567  shlibpath_var=DYLD_LIBRARY_PATH
    93429568  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
    9343   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
    9344   if test "$GCC" = yes; then
    9345     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
    9346   else
    9347     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
    9348   fi
     9569
     9570  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
    93499571  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
    93509572  ;;
     
    93619583freebsd1*)
    93629584  dynamic_linker=no
    9363   ;;
    9364 
    9365 kfreebsd*-gnu)
    9366   version_type=linux
    9367   need_lib_prefix=no
    9368   need_version=no
    9369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    9370   soname_spec='${libname}${release}${shared_ext}$major'
    9371   shlibpath_var=LD_LIBRARY_PATH
    9372   shlibpath_overrides_runpath=no
    9373   hardcode_into_libs=yes
    9374   dynamic_linker='GNU ld.so'
    93759585  ;;
    93769586
     
    94079617    hardcode_into_libs=yes
    94089618    ;;
    9409   *) # from 3.2 on
     9619  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
     9620  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    94109621    shlibpath_overrides_runpath=no
     9622    hardcode_into_libs=yes
     9623    ;;
     9624  *) # from 4.6 on, and DragonFly
     9625    shlibpath_overrides_runpath=yes
    94119626    hardcode_into_libs=yes
    94129627    ;;
     
    94709685  ;;
    94719686
     9687interix[3-9]*)
     9688  version_type=linux
     9689  need_lib_prefix=no
     9690  need_version=no
     9691  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
     9692  soname_spec='${libname}${release}${shared_ext}$major'
     9693  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
     9694  shlibpath_var=LD_LIBRARY_PATH
     9695  shlibpath_overrides_runpath=no
     9696  hardcode_into_libs=yes
     9697  ;;
     9698
    94729699irix5* | irix6* | nonstopux*)
    94739700  case $host_os in
     
    95139740
    95149741# This must be Linux ELF.
    9515 linux*)
     9742linux* | k*bsd*-gnu)
    95169743  version_type=linux
    95179744  need_lib_prefix=no
     
    95299756  # Append ld.so.conf contents to the search path
    95309757  if test -f /etc/ld.so.conf; then
    9531     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
     9758    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    95329759    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
    95339760  fi
     
    95409767  # assume the GNU/Linux dynamic linker is in use.
    95419768  dynamic_linker='GNU/Linux ld.so'
    9542   ;;
    9543 
    9544 knetbsd*-gnu)
    9545   version_type=linux
    9546   need_lib_prefix=no
    9547   need_version=no
    9548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    9549   soname_spec='${libname}${release}${shared_ext}$major'
    9550   shlibpath_var=LD_LIBRARY_PATH
    9551   shlibpath_overrides_runpath=no
    9552   hardcode_into_libs=yes
    9553   dynamic_linker='GNU ld.so'
    95549769  ;;
    95559770
     
    95919806openbsd*)
    95929807  version_type=sunos
     9808  sys_lib_dlsearch_path_spec="/usr/lib"
    95939809  need_lib_prefix=no
    95949810  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
     
    96349850  ;;
    96359851
    9636 sco3.2v5*)
    9637   version_type=osf
    9638   soname_spec='${libname}${release}${shared_ext}$major'
    9639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    9640   shlibpath_var=LD_LIBRARY_PATH
     9852rdos*)
     9853  dynamic_linker=no
    96419854  ;;
    96429855
     
    96669879  ;;
    96679880
    9668 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
     9881sysv4 | sysv4.3*)
    96699882  version_type=linux
    96709883  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     
    96999912  ;;
    97009913
     9914sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
     9915  version_type=freebsd-elf
     9916  need_lib_prefix=no
     9917  need_version=no
     9918  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
     9919  soname_spec='${libname}${release}${shared_ext}$major'
     9920  shlibpath_var=LD_LIBRARY_PATH
     9921  hardcode_into_libs=yes
     9922  if test "$with_gnu_ld" = yes; then
     9923    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
     9924    shlibpath_overrides_runpath=no
     9925  else
     9926    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
     9927    shlibpath_overrides_runpath=yes
     9928    case $host_os in
     9929      sco3.2v5*)
     9930        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
     9931        ;;
     9932    esac
     9933  fi
     9934  sys_lib_dlsearch_path_spec='/usr/lib'
     9935  ;;
     9936
    97019937uts4*)
    97029938  version_type=linux
     
    97139949echo "${ECHO_T}$dynamic_linker" >&6; }
    97149950test "$dynamic_linker" = no && can_build_shared=no
     9951
     9952variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
     9953if test "$GCC" = yes; then
     9954  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
     9955fi
    97159956
    97169957{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
     
    976610007       if test -n "$STRIP" ; then
    976710008         striplib="$STRIP -x"
     10009         old_striplib="$STRIP -S"
    976810010         { echo "$as_me:$LINENO: result: yes" >&5
    976910011echo "${ECHO_T}yes" >&6; }
     
    1033610578
    1033710579    save_LDFLAGS="$LDFLAGS"
    10338     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
     10580    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
    1033910581
    1034010582    save_LIBS="$LIBS"
     
    1035210594  lt_status=$lt_dlunknown
    1035310595  cat > conftest.$ac_ext <<EOF
    10354 #line 10354 "configure"
     10596#line 10596 "configure"
    1035510597#include "confdefs.h"
    1035610598
     
    1040910651      /* dlclose (self); */
    1041010652    }
     10653  else
     10654    puts (dlerror ());
    1041110655
    1041210656    exit (status);
     
    1042310667      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
    1042410668      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
    10425       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
     10669      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
    1042610670    esac
    1042710671  else :
     
    1043810682
    1043910683    if test "x$lt_cv_dlopen_self" = xyes; then
    10440       LDFLAGS="$LDFLAGS $link_static_flag"
     10684      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
    1044110685      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
    1044210686echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
     
    1045010694  lt_status=$lt_dlunknown
    1045110695  cat > conftest.$ac_ext <<EOF
    10452 #line 10452 "configure"
     10696#line 10696 "configure"
    1045310697#include "confdefs.h"
    1045410698
     
    1050710751      /* dlclose (self); */
    1050810752    }
     10753  else
     10754    puts (dlerror ());
    1050910755
    1051010756    exit (status);
     
    1052110767      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
    1052210768      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
    10523       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
     10769      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
    1052410770    esac
    1052510771  else :
     
    1055410800
    1055510801
    10556 # Report which librarie types wil actually be built
     10802# Report which library types will actually be built
    1055710803{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
    1055810804echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
     
    1060410850  # careful not to overquote the AC_SUBSTed values.  We take copies of the
    1060510851  # variables and quote the copies for generation of the libtool script.
    10606   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
     10852  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    1060710853    SED SHELL STRIP \
    1060810854    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
     
    1064610892    module_expsym_cmds \
    1064710893    lt_cv_prog_compiler_c_o \
     10894    fix_srcfile_path \
    1064810895    exclude_expsyms \
    1064910896    include_expsyms; do
     
    1069010937# NOTE: Changes made to this file will be lost: look at ltmain.sh.
    1069110938#
    10692 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
     10939# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
    1069310940# Free Software Foundation, Inc.
    1069410941#
     
    1077011017LTCC=$lt_LTCC
    1077111018
     11019# LTCC compiler flags.
     11020LTCFLAGS=$lt_LTCFLAGS
     11021
    1077211022# A language-specific compiler.
    1077311023CC=$lt_compiler
     
    1101111261
    1101211262# Fix the shell variable \$srcfile for the compiler.
    11013 fix_srcfile_path="$fix_srcfile_path"
     11263fix_srcfile_path=$lt_fix_srcfile_path
    1101411264
    1101511265# Set to yes if exported symbols are required.
     
    1109911349echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
    1110011350    fi
     11351  fi
     11352  if test -z "$LTCFLAGS"; then
     11353    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
    1110111354  fi
    1110211355
     
    1115211405hardcode_libdir_separator_CXX=
    1115311406hardcode_minus_L_CXX=no
     11407hardcode_shlibpath_var_CXX=unsupported
    1115411408hardcode_automatic_CXX=no
    1115511409module_cmds_CXX=
     
    1117611430
    1117711431# Code to be used in simple compile tests
    11178 lt_simple_compile_test_code="int some_variable = 0;\n"
     11432lt_simple_compile_test_code="int some_variable = 0;"
    1117911433
    1118011434# Code to be used in simple link tests
    11181 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
     11435lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
    1118211436
    1118311437# ltmain only uses $CC for tagged configurations so make sure $CC is set.
     
    1118611440LTCC=${LTCC-"$CC"}
    1118711441
     11442# If no C compiler flags were specified, use CFLAGS.
     11443LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
     11444
    1118811445# Allow CC to be a program name with arguments.
    1118911446compiler=$CC
     
    1119211449# save warnings/boilerplate of simple test code
    1119311450ac_outfile=conftest.$ac_objext
    11194 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
    11195 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
     11451echo "$lt_simple_compile_test_code" >conftest.$ac_ext
     11452eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
    1119611453_lt_compiler_boilerplate=`cat conftest.err`
    1119711454$rm conftest*
    1119811455
    1119911456ac_outfile=conftest.$ac_objext
    11200 printf "$lt_simple_link_test_code" >conftest.$ac_ext
    11201 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
     11457echo "$lt_simple_link_test_code" >conftest.$ac_ext
     11458eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
    1120211459_lt_linker_boilerplate=`cat conftest.err`
    1120311460$rm conftest*
     
    1121411471  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
    1121511472else
    11216   unset lt_cv_prog_gnu_ld
     11473  $as_unset lt_cv_prog_gnu_ld
    1121711474fi
    1121811475if test -n "${lt_cv_path_LDCXX+set}"; then
    1121911476  lt_cv_path_LD=$lt_cv_path_LDCXX
    1122011477else
    11221   unset lt_cv_path_LD
     11478  $as_unset lt_cv_path_LD
    1122211479fi
    1122311480test -z "${LDCXX+set}" || LD=$LDCXX
     
    1143011687          esac
    1143111688        done
     11689        ;;
    1143211690      esac
    1143311691
     
    1145611714        then
    1145711715          # We have reworked collect2
    11458           hardcode_direct_CXX=yes
     11716          :
    1145911717        else
    1146011718          # We have old collect2
     
    1146711725          hardcode_libdir_separator_CXX=
    1146811726        fi
     11727        ;;
    1146911728      esac
    1147011729      shared_flag='-shared'
     
    1152911788       $as_test_x conftest$ac_exeext; then
    1153011789
    11531 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    11532 }'`
     11790lt_aix_libpath_sed='
     11791    /Import File Strings/,/^$/ {
     11792        /^0/ {
     11793            s/^0  *\(.*\)$/\1/
     11794            p
     11795        }
     11796    }'
     11797aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
    1153311798# Check for a 64-bit object if we didn't find anything.
    11534 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    11535 }'`; fi
     11799if test -z "$aix_libpath"; then
     11800  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     11801fi
    1153611802else
    1153711803  echo "$as_me: failed program was:" >&5
     
    1154711813      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
    1154811814
    11549       archive_expsym_cmds_CXX="\$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"
     11815      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
    1155011816     else
    1155111817      if test "$host_cpu" = ia64; then
    1155211818        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
    1155311819        allow_undefined_flag_CXX="-z nodefs"
    11554         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
     11820        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
    1155511821      else
    1155611822        # Determine the default libpath from the value encoded in an empty executable.
     
    1158911855       $as_test_x conftest$ac_exeext; then
    1159011856
    11591 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    11592 }'`
     11857lt_aix_libpath_sed='
     11858    /Import File Strings/,/^$/ {
     11859        /^0/ {
     11860            s/^0  *\(.*\)$/\1/
     11861            p
     11862        }
     11863    }'
     11864aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
    1159311865# Check for a 64-bit object if we didn't find anything.
    11594 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    11595 }'`; fi
     11866if test -z "$aix_libpath"; then
     11867  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     11868fi
    1159611869else
    1159711870  echo "$as_me: failed program was:" >&5
     
    1161011883        no_undefined_flag_CXX=' ${wl}-bernotok'
    1161111884        allow_undefined_flag_CXX=' ${wl}-berok'
    11612         # -bexpall does not export symbols beginning with underscore (_)
    11613         always_export_symbols_CXX=yes
    1161411885        # Exported symbols can be pulled into shared objects from archives
    11615         whole_archive_flag_spec_CXX=' '
     11886        whole_archive_flag_spec_CXX='$convenience'
    1161611887        archive_cmds_need_lc_CXX=yes
    1161711888        # This is similar to how AIX traditionally builds its shared libraries.
    11618         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
     11889        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
    1161911890      fi
    1162011891    fi
    1162111892    ;;
     11893
     11894  beos*)
     11895    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
     11896      allow_undefined_flag_CXX=unsupported
     11897      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
     11898      # support --undefined.  This deserves some investigation.  FIXME
     11899      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     11900    else
     11901      ld_shlibs_CXX=no
     11902    fi
     11903    ;;
     11904
    1162211905  chorus*)
    1162311906    case $cc_basename in
     
    1162911912    ;;
    1163011913
    11631 
    1163211914  cygwin* | mingw* | pw32*)
    1163311915    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
     
    1163911921
    1164011922    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
    11641       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
     11923      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    1164211924      # If the export-symbols file already is a .def file (1st line
    1164311925      # is EXPORTS), use it as is; otherwise, prepend...
     
    1164811930        cat $export_symbols >> $output_objdir/$soname.def;
    1164911931      fi~
    11650       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
     11932      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    1165111933    else
    1165211934      ld_shlibs_CXX=no
     
    1170311985        xlc*)
    1170411986         output_verbose_link_cmd='echo'
    11705           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
     11987          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
    1170611988          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    1170711989          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
    11708           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
     11990          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    1170911991          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    1171011992          ;;
     
    1174012022    archive_cmds_need_lc_CXX=no
    1174112023    ;;
    11742   freebsd* | kfreebsd*-gnu | dragonfly*)
     12024  freebsd* | dragonfly*)
    1174312025    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
    1174412026    # conventions
     
    1178512067  hpux10*|hpux11*)
    1178612068    if test $with_gnu_ld = no; then
     12069      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
     12070      hardcode_libdir_separator_CXX=:
     12071
    1178712072      case $host_cpu in
    11788       hppa*64*)
    11789         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
    11790         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
    11791         hardcode_libdir_separator_CXX=:
    11792         ;;
    11793       ia64*)
    11794         hardcode_libdir_flag_spec_CXX='-L$libdir'
    11795         ;;
     12073      hppa*64*|ia64*) ;;
    1179612074      *)
    11797         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
    11798         hardcode_libdir_separator_CXX=:
    1179912075        export_dynamic_flag_spec_CXX='${wl}-E'
    1180012076        ;;
     
    1180212078    fi
    1180312079    case $host_cpu in
    11804     hppa*64*)
     12080    hppa*64*|ia64*)
    1180512081      hardcode_direct_CXX=no
    1180612082      hardcode_shlibpath_var_CXX=no
    11807       ;;
    11808     ia64*)
    11809       hardcode_direct_CXX=no
    11810       hardcode_shlibpath_var_CXX=no
    11811       hardcode_minus_L_CXX=yes # Not in the search PATH,
    11812                                               # but as the default
    11813                                               # location of the library.
    1181412083      ;;
    1181512084    *)
     
    1182812097      aCC*)
    1182912098        case $host_cpu in
    11830         hppa*64*|ia64*)
    11831           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
     12099        hppa*64*)
     12100          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     12101          ;;
     12102        ia64*)
     12103          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    1183212104          ;;
    1183312105        *)
     
    1184912121          if test $with_gnu_ld = no; then
    1185012122            case $host_cpu in
    11851             ia64*|hppa*64*)
    11852               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
     12123            hppa*64*)
     12124              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     12125              ;;
     12126            ia64*)
     12127              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    1185312128              ;;
    1185412129            *)
     
    1186312138        ;;
    1186412139    esac
     12140    ;;
     12141  interix[3-9]*)
     12142    hardcode_direct_CXX=no
     12143    hardcode_shlibpath_var_CXX=no
     12144    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
     12145    export_dynamic_flag_spec_CXX='${wl}-E'
     12146    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
     12147    # Instead, shared libraries are loaded at an image base (0x10000000 by
     12148    # default) and relocated if they conflict, which is a slow very memory
     12149    # consuming and fragmenting process.  To avoid this, we pick a random,
     12150    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
     12151    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
     12152    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
     12153    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
    1186512154    ;;
    1186612155  irix5* | irix6*)
     
    1189012179    hardcode_libdir_separator_CXX=:
    1189112180    ;;
    11892   linux*)
     12181  linux* | k*bsd*-gnu)
    1189312182    case $cc_basename in
    1189412183      KCC*)
     
    1196912258        # dependencies.
    1197012259        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
     12260        ;;
     12261      *)
     12262        case `$CC -V 2>&1 | sed 5q` in
     12263        *Sun\ C*)
     12264          # Sun C++ 5.9
     12265          no_undefined_flag_CXX=' -zdefs'
     12266          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     12267          archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
     12268          hardcode_libdir_flag_spec_CXX='-R$libdir'
     12269          whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
     12270
     12271          # Not sure whether something based on
     12272          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
     12273          # would be better.
     12274          output_verbose_link_cmd='echo'
     12275
     12276          # Archives containing C++ object files must be created using
     12277          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
     12278          # necessary to make sure instantiated templates are included
     12279          # in the archive.
     12280          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
     12281          ;;
     12282        esac
    1197112283        ;;
    1197212284    esac
     
    1200812320    ;;
    1200912321  openbsd*)
    12010     hardcode_direct_CXX=yes
    12011     hardcode_shlibpath_var_CXX=no
    12012     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
    12013     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
    12014     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    12015       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
    12016       export_dynamic_flag_spec_CXX='${wl}-E'
    12017       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
     12322    if test -f /usr/libexec/ld.so; then
     12323      hardcode_direct_CXX=yes
     12324      hardcode_shlibpath_var_CXX=no
     12325      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
     12326      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
     12327      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     12328        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
     12329        export_dynamic_flag_spec_CXX='${wl}-E'
     12330        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
     12331      fi
     12332      output_verbose_link_cmd='echo'
     12333    else
     12334      ld_shlibs_CXX=no
    1201812335    fi
    12019     output_verbose_link_cmd='echo'
    1202012336    ;;
    1202112337  osf3*)
     
    1214512461    # FIXME: insert proper C++ library support
    1214612462    ld_shlibs_CXX=no
    12147     ;;
    12148   sco*)
    12149     archive_cmds_need_lc_CXX=no
    12150     case $cc_basename in
    12151       CC*)
    12152         # FIXME: insert proper C++ library support
    12153         ld_shlibs_CXX=no
    12154         ;;
    12155       *)
    12156         # FIXME: insert proper C++ library support
    12157         ld_shlibs_CXX=no
    12158         ;;
    12159     esac
    1216012463    ;;
    1216112464  sunos4*)
     
    1219212495          solaris2.[0-5] | solaris2.[0-5].*) ;;
    1219312496          *)
    12194             # The C++ compiler is used as linker so we must use $wl
    12195             # flag to pass the commands to the underlying system
    12196             # linker. We must also pass each convience library through
    12197             # to the system linker between allextract/defaultextract.
    12198             # The C++ compiler will combine linker options so we
    12199             # cannot just pass the convience library names through
    12200             # without $wl.
     12497            # The compiler driver will combine and reorder linker options,
     12498            # but understands `-z linker_flag'.
    1220112499            # Supported since Solaris 2.6 (maybe 2.5.1?)
    12202             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
     12500            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
    1220312501            ;;
    1220412502        esac
     
    1224712545
    1224812546          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
     12547          case $host_os in
     12548          solaris2.[0-5] | solaris2.[0-5].*) ;;
     12549          *)
     12550            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
     12551            ;;
     12552          esac
    1224912553        fi
    1225012554        ;;
    1225112555    esac
    1225212556    ;;
    12253   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
     12557  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
     12558    no_undefined_flag_CXX='${wl}-z,text'
    1225412559    archive_cmds_need_lc_CXX=no
     12560    hardcode_shlibpath_var_CXX=no
     12561    runpath_var='LD_RUN_PATH'
     12562
     12563    case $cc_basename in
     12564      CC*)
     12565        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     12566        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     12567        ;;
     12568      *)
     12569        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     12570        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     12571        ;;
     12572    esac
     12573    ;;
     12574  sysv5* | sco3.2v5* | sco5v6*)
     12575    # Note: We can NOT use -z defs as we might desire, because we do not
     12576    # link with -lc, and that would cause any symbols used from libc to
     12577    # always be unresolved, which means just about no library would
     12578    # ever link correctly.  If we're not using GNU ld we use -z text
     12579    # though, which does catch some bad symbols but isn't as heavy-handed
     12580    # as -z defs.
     12581    # For security reasons, it is highly recommended that you always
     12582    # use absolute paths for naming shared libraries, and exclude the
     12583    # DT_RUNPATH tag from executables and libraries.  But doing so
     12584    # requires that you compile everything twice, which is a pain.
     12585    # So that behaviour is only enabled if SCOABSPATH is set to a
     12586    # non-empty value in the environment.  Most likely only useful for
     12587    # creating official distributions of packages.
     12588    # This is a hack until libtool officially supports absolute path
     12589    # names for shared libraries.
     12590    no_undefined_flag_CXX='${wl}-z,text'
     12591    allow_undefined_flag_CXX='${wl}-z,nodefs'
     12592    archive_cmds_need_lc_CXX=no
     12593    hardcode_shlibpath_var_CXX=no
     12594    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
     12595    hardcode_libdir_separator_CXX=':'
     12596    link_all_deplibs_CXX=yes
     12597    export_dynamic_flag_spec_CXX='${wl}-Bexport'
     12598    runpath_var='LD_RUN_PATH'
     12599
     12600    case $cc_basename in
     12601      CC*)
     12602        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     12603        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     12604        ;;
     12605      *)
     12606        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     12607        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     12608        ;;
     12609    esac
    1225512610    ;;
    1225612611  tandem*)
     
    1238712742# PORTME: override above test on systems where it is broken
    1238812743case $host_os in
     12744interix[3-9]*)
     12745  # Interix 3.5 installs completely hosed .la files for C++, so rather than
     12746  # hack all around it, let's just trust "g++" to DTRT.
     12747  predep_objects_CXX=
     12748  postdep_objects_CXX=
     12749  postdeps_CXX=
     12750  ;;
     12751
     12752linux*)
     12753  case `$CC -V 2>&1 | sed 5q` in
     12754  *Sun\ C*)
     12755    # Sun C++ 5.9
     12756    #
     12757    # The more standards-conforming stlport4 library is
     12758    # incompatible with the Cstd library. Avoid specifying
     12759    # it if it's in CXXFLAGS. Ignore libCrun as
     12760    # -library=stlport4 depends on it.
     12761    case " $CXX $CXXFLAGS " in
     12762    *" -library=stlport4 "*)
     12763      solaris_use_stlport4=yes
     12764      ;;
     12765    esac
     12766    if test "$solaris_use_stlport4" != yes; then
     12767      postdeps_CXX='-library=Cstd -library=Crun'
     12768    fi
     12769    ;;
     12770  esac
     12771  ;;
     12772
    1238912773solaris*)
    1239012774  case $cc_basename in
    1239112775  CC*)
     12776    # The more standards-conforming stlport4 library is
     12777    # incompatible with the Cstd library. Avoid specifying
     12778    # it if it's in CXXFLAGS. Ignore libCrun as
     12779    # -library=stlport4 depends on it.
     12780    case " $CXX $CXXFLAGS " in
     12781    *" -library=stlport4 "*)
     12782      solaris_use_stlport4=yes
     12783      ;;
     12784    esac
     12785
    1239212786    # Adding this requires a known-good setup of shared libraries for
    1239312787    # Sun compiler versions before 5.6, else PIC objects from an old
    1239412788    # archive will be linked into the output, leading to subtle bugs.
    12395     postdeps_CXX='-lCstd -lCrun'
     12789    if test "$solaris_use_stlport4" != yes; then
     12790      postdeps_CXX='-library=Cstd -library=Crun'
     12791    fi
    1239612792    ;;
    1239712793  esac
     12794  ;;
    1239812795esac
    1239912796
     
    1242912826      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
    1243012827      ;;
    12431     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
     12828    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
    1243212829      # PIC is the default for these OSes.
    1243312830      ;;
    12434     mingw* | os2* | pw32*)
     12831    mingw* | cygwin* | os2* | pw32*)
    1243512832      # This hack is so that the source file can tell whether it is being
    1243612833      # built for inclusion in a dll (and should export symbols for example).
     12834      # Although the cygwin gcc ignores -fPIC, still need this for old-style
     12835      # (--disable-auto-import) libraries
    1243712836      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
    1243812837      ;;
     
    1244512844      # DJGPP does not support shared libraries at all
    1244612845      lt_prog_compiler_pic_CXX=
     12846      ;;
     12847    interix[3-9]*)
     12848      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
     12849      # Instead, we relocate shared libraries at runtime.
    1244712850      ;;
    1244812851    sysv4*MP*)
     
    1250812911        esac
    1250912912        ;;
    12510       freebsd* | kfreebsd*-gnu | dragonfly*)
     12913      freebsd* | dragonfly*)
    1251112914        # FreeBSD uses GNU C++
    1251212915        ;;
     
    1251512918          CC*)
    1251612919            lt_prog_compiler_wl_CXX='-Wl,'
    12517             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
     12920            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
    1251812921            if test "$host_cpu" != ia64; then
    1251912922              lt_prog_compiler_pic_CXX='+Z'
     
    1252212925          aCC*)
    1252312926            lt_prog_compiler_wl_CXX='-Wl,'
    12524             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
     12927            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
    1252512928            case $host_cpu in
    1252612929            hppa*64*|ia64*)
     
    1253612939        esac
    1253712940        ;;
     12941      interix*)
     12942        # This is c89, which is MS Visual C++ (no shared libs)
     12943        # Anyone wants to do a port?
     12944        ;;
    1253812945      irix5* | irix6* | nonstopux*)
    1253912946        case $cc_basename in
     
    1254712954        esac
    1254812955        ;;
    12549       linux*)
     12956      linux* | k*bsd*-gnu)
    1255012957        case $cc_basename in
    1255112958          KCC*)
     
    1257412981            ;;
    1257512982          *)
     12983            case `$CC -V 2>&1 | sed 5q` in
     12984            *Sun\ C*)
     12985              # Sun C++ 5.9
     12986              lt_prog_compiler_pic_CXX='-KPIC'
     12987              lt_prog_compiler_static_CXX='-Bstatic'
     12988              lt_prog_compiler_wl_CXX='-Qoption ld '
     12989              ;;
     12990            esac
    1257612991            ;;
    1257712992        esac
     
    1261413029        ;;
    1261513030      psos*)
    12616         ;;
    12617       sco*)
    12618         case $cc_basename in
    12619           CC*)
    12620             lt_prog_compiler_pic_CXX='-fPIC'
    12621             ;;
    12622           *)
    12623             ;;
    12624         esac
    1262513031        ;;
    1262613032      solaris*)
     
    1266513071        esac
    1266613072        ;;
    12667       unixware*)
     13073      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
     13074        case $cc_basename in
     13075          CC*)
     13076            lt_prog_compiler_wl_CXX='-Wl,'
     13077            lt_prog_compiler_pic_CXX='-KPIC'
     13078            lt_prog_compiler_static_CXX='-Bstatic'
     13079            ;;
     13080        esac
    1266813081        ;;
    1266913082      vxworks*)
     
    1269013103  lt_prog_compiler_pic_works_CXX=no
    1269113104  ac_outfile=conftest.$ac_objext
    12692    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     13105   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    1269313106   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
    1269413107   # Insert the option either (1) after the last *FLAGS variable, or
     
    1270113114   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1270213115   -e 's:$: $lt_compiler_flag:'`
    12703    (eval echo "\"\$as_me:12703: $lt_compile\"" >&5)
     13116   (eval echo "\"\$as_me:13116: $lt_compile\"" >&5)
    1270413117   (eval "$lt_compile" 2>conftest.err)
    1270513118   ac_status=$?
    1270613119   cat conftest.err >&5
    12707    echo "$as_me:12707: \$? = $ac_status" >&5
     13120   echo "$as_me:13120: \$? = $ac_status" >&5
    1270813121   if (exit $ac_status) && test -s "$ac_outfile"; then
    1270913122     # The compiler can only warn and ignore the option if not recognized
    1271013123     # So say no if there are warnings other than the usual output.
    12711      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
    12712      $SED '/^$/d' conftest.err >conftest.er2
    12713      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
     13124     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     13125     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     13126     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
    1271413127       lt_prog_compiler_pic_works_CXX=yes
    1271513128     fi
     
    1274213155esac
    1274313156
     13157#
     13158# Check to make sure the static flag actually works.
     13159#
     13160wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
     13161{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
     13162echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
     13163if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
     13164  echo $ECHO_N "(cached) $ECHO_C" >&6
     13165else
     13166  lt_prog_compiler_static_works_CXX=no
     13167   save_LDFLAGS="$LDFLAGS"
     13168   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
     13169   echo "$lt_simple_link_test_code" > conftest.$ac_ext
     13170   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     13171     # The linker can only warn and ignore the option if not recognized
     13172     # So say no if there are warnings
     13173     if test -s conftest.err; then
     13174       # Append any errors to the config.log.
     13175       cat conftest.err 1>&5
     13176       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
     13177       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     13178       if diff conftest.exp conftest.er2 >/dev/null; then
     13179         lt_prog_compiler_static_works_CXX=yes
     13180       fi
     13181     else
     13182       lt_prog_compiler_static_works_CXX=yes
     13183     fi
     13184   fi
     13185   $rm conftest*
     13186   LDFLAGS="$save_LDFLAGS"
     13187
     13188fi
     13189{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
     13190echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
     13191
     13192if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
     13193    :
     13194else
     13195    lt_prog_compiler_static_CXX=
     13196fi
     13197
     13198
    1274413199{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
    1274513200echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
     
    1275213207   cd conftest
    1275313208   mkdir out
    12754    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     13209   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    1275513210
    1275613211   lt_compiler_flag="-o out/conftest2.$ac_objext"
     
    1276313218   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1276413219   -e 's:$: $lt_compiler_flag:'`
    12765    (eval echo "\"\$as_me:12765: $lt_compile\"" >&5)
     13220   (eval echo "\"\$as_me:13220: $lt_compile\"" >&5)
    1276613221   (eval "$lt_compile" 2>out/conftest.err)
    1276713222   ac_status=$?
    1276813223   cat out/conftest.err >&5
    12769    echo "$as_me:12769: \$? = $ac_status" >&5
     13224   echo "$as_me:13224: \$? = $ac_status" >&5
    1277013225   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1277113226   then
    1277213227     # The compiler can only warn and ignore the option if not recognized
    1277313228     # So say no if there are warnings
    12774      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
    12775      $SED '/^$/d' out/conftest.err >out/conftest.er2
    12776      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
     13229     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     13230     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     13231     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
    1277713232       lt_cv_prog_compiler_c_o_CXX=yes
    1277813233     fi
     
    1283313288  ;;
    1283413289  cygwin* | mingw*)
    12835     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
     13290    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
    1283613291  ;;
    1283713292  *)
     
    1284313298echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
    1284413299test "$ld_shlibs_CXX" = no && can_build_shared=no
    12845 
    12846 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
    12847 if test "$GCC" = yes; then
    12848   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
    12849 fi
    1285013300
    1285113301#
     
    1286913319echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
    1287013320      $rm conftest*
    12871       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     13321      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    1287213322
    1287313323      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     
    1288113331        deplibs=
    1288213332        wl=$lt_prog_compiler_wl_CXX
     13333        pic_flag=$lt_prog_compiler_pic_CXX
    1288313334        compiler_flags=-v
    1288413335        linker_flags=-v
     
    1292613377dynamic_linker="$host_os ld.so"
    1292713378sys_lib_dlsearch_path_spec="/lib /usr/lib"
    12928 if test "$GCC" = yes; then
    12929   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    12930   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    12931     # if the path contains ";" then we assume it to be the separator
    12932     # otherwise default to the standard path separator (i.e. ":") - it is
    12933     # assumed that no part of a normal pathname contains ";" but that should
    12934     # okay in the real world where ";" in dirpaths is itself problematic.
    12935     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
    12936   else
    12937     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    12938   fi
    12939 else
    12940   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
    12941 fi
     13379
    1294213380need_lib_prefix=unknown
    1294313381hardcode_into_libs=no
     
    1309613534  shlibpath_var=DYLD_LIBRARY_PATH
    1309713535  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
    13098   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
    13099   if test "$GCC" = yes; then
    13100     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
    13101   else
    13102     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
    13103   fi
     13536
    1310413537  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
    1310513538  ;;
     
    1311613549freebsd1*)
    1311713550  dynamic_linker=no
    13118   ;;
    13119 
    13120 kfreebsd*-gnu)
    13121   version_type=linux
    13122   need_lib_prefix=no
    13123   need_version=no
    13124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    13125   soname_spec='${libname}${release}${shared_ext}$major'
    13126   shlibpath_var=LD_LIBRARY_PATH
    13127   shlibpath_overrides_runpath=no
    13128   hardcode_into_libs=yes
    13129   dynamic_linker='GNU ld.so'
    1313013551  ;;
    1313113552
     
    1316213583    hardcode_into_libs=yes
    1316313584    ;;
    13164   *) # from 3.2 on
     13585  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
     13586  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    1316513587    shlibpath_overrides_runpath=no
     13588    hardcode_into_libs=yes
     13589    ;;
     13590  *) # from 4.6 on, and DragonFly
     13591    shlibpath_overrides_runpath=yes
    1316613592    hardcode_into_libs=yes
    1316713593    ;;
     
    1322513651  ;;
    1322613652
     13653interix[3-9]*)
     13654  version_type=linux
     13655  need_lib_prefix=no
     13656  need_version=no
     13657  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
     13658  soname_spec='${libname}${release}${shared_ext}$major'
     13659  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
     13660  shlibpath_var=LD_LIBRARY_PATH
     13661  shlibpath_overrides_runpath=no
     13662  hardcode_into_libs=yes
     13663  ;;
     13664
    1322713665irix5* | irix6* | nonstopux*)
    1322813666  case $host_os in
     
    1326813706
    1326913707# This must be Linux ELF.
    13270 linux*)
     13708linux* | k*bsd*-gnu)
    1327113709  version_type=linux
    1327213710  need_lib_prefix=no
     
    1328413722  # Append ld.so.conf contents to the search path
    1328513723  if test -f /etc/ld.so.conf; then
    13286     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
     13724    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    1328713725    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
    1328813726  fi
     
    1329513733  # assume the GNU/Linux dynamic linker is in use.
    1329613734  dynamic_linker='GNU/Linux ld.so'
    13297   ;;
    13298 
    13299 knetbsd*-gnu)
    13300   version_type=linux
    13301   need_lib_prefix=no
    13302   need_version=no
    13303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    13304   soname_spec='${libname}${release}${shared_ext}$major'
    13305   shlibpath_var=LD_LIBRARY_PATH
    13306   shlibpath_overrides_runpath=no
    13307   hardcode_into_libs=yes
    13308   dynamic_linker='GNU ld.so'
    1330913735  ;;
    1331013736
     
    1334613772openbsd*)
    1334713773  version_type=sunos
     13774  sys_lib_dlsearch_path_spec="/usr/lib"
    1334813775  need_lib_prefix=no
    1334913776  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
     
    1338913816  ;;
    1339013817
    13391 sco3.2v5*)
    13392   version_type=osf
    13393   soname_spec='${libname}${release}${shared_ext}$major'
    13394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    13395   shlibpath_var=LD_LIBRARY_PATH
     13818rdos*)
     13819  dynamic_linker=no
    1339613820  ;;
    1339713821
     
    1342113845  ;;
    1342213846
    13423 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
     13847sysv4 | sysv4.3*)
    1342413848  version_type=linux
    1342513849  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     
    1345413878  ;;
    1345513879
     13880sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
     13881  version_type=freebsd-elf
     13882  need_lib_prefix=no
     13883  need_version=no
     13884  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
     13885  soname_spec='${libname}${release}${shared_ext}$major'
     13886  shlibpath_var=LD_LIBRARY_PATH
     13887  hardcode_into_libs=yes
     13888  if test "$with_gnu_ld" = yes; then
     13889    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
     13890    shlibpath_overrides_runpath=no
     13891  else
     13892    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
     13893    shlibpath_overrides_runpath=yes
     13894    case $host_os in
     13895      sco3.2v5*)
     13896        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
     13897        ;;
     13898    esac
     13899  fi
     13900  sys_lib_dlsearch_path_spec='/usr/lib'
     13901  ;;
     13902
    1345613903uts4*)
    1345713904  version_type=linux
     
    1346813915echo "${ECHO_T}$dynamic_linker" >&6; }
    1346913916test "$dynamic_linker" = no && can_build_shared=no
     13917
     13918variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
     13919if test "$GCC" = yes; then
     13920  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
     13921fi
    1347013922
    1347113923{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
     
    1350613958fi
    1350713959
    13508 striplib=
    13509 old_striplib=
    13510 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
    13511 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
    13512 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
    13513   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
    13514   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
    13515   { echo "$as_me:$LINENO: result: yes" >&5
    13516 echo "${ECHO_T}yes" >&6; }
    13517 else
    13518 # FIXME - insert some real tests, host_os isn't really good enough
    13519   case $host_os in
    13520    darwin*)
    13521        if test -n "$STRIP" ; then
    13522          striplib="$STRIP -x"
    13523          { echo "$as_me:$LINENO: result: yes" >&5
    13524 echo "${ECHO_T}yes" >&6; }
    13525        else
    13526   { echo "$as_me:$LINENO: result: no" >&5
    13527 echo "${ECHO_T}no" >&6; }
    13528 fi
    13529        ;;
    13530    *)
    13531   { echo "$as_me:$LINENO: result: no" >&5
    13532 echo "${ECHO_T}no" >&6; }
    13533     ;;
    13534   esac
    13535 fi
    13536 
    13537 if test "x$enable_dlopen" != xyes; then
    13538   enable_dlopen=unknown
    13539   enable_dlopen_self=unknown
    13540   enable_dlopen_self_static=unknown
    13541 else
    13542   lt_cv_dlopen=no
    13543   lt_cv_dlopen_libs=
    13544 
    13545   case $host_os in
    13546   beos*)
    13547     lt_cv_dlopen="load_add_on"
    13548     lt_cv_dlopen_libs=
    13549     lt_cv_dlopen_self=yes
    13550     ;;
    13551 
    13552   mingw* | pw32*)
    13553     lt_cv_dlopen="LoadLibrary"
    13554     lt_cv_dlopen_libs=
    13555    ;;
    13556 
    13557   cygwin*)
    13558     lt_cv_dlopen="dlopen"
    13559     lt_cv_dlopen_libs=
    13560    ;;
    13561 
    13562   darwin*)
    13563   # if libdl is installed we need to link against it
    13564     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
    13565 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
    13566 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
    13567   echo $ECHO_N "(cached) $ECHO_C" >&6
    13568 else
    13569   ac_check_lib_save_LIBS=$LIBS
    13570 LIBS="-ldl  $LIBS"
    13571 cat >conftest.$ac_ext <<_ACEOF
    13572 /* confdefs.h.  */
    13573 _ACEOF
    13574 cat confdefs.h >>conftest.$ac_ext
    13575 cat >>conftest.$ac_ext <<_ACEOF
    13576 /* end confdefs.h.  */
    13577 
    13578 /* Override any GCC internal prototype to avoid an error.
    13579    Use char because int might match the return type of a GCC
    13580    builtin and then its argument prototype would still apply.  */
    13581 #ifdef __cplusplus
    13582 extern "C"
    13583 #endif
    13584 char dlopen ();
    13585 int
    13586 main ()
    13587 {
    13588 return dlopen ();
    13589   ;
    13590   return 0;
    13591 }
    13592 _ACEOF
    13593 rm -f conftest.$ac_objext conftest$ac_exeext
    13594 if { (ac_try="$ac_link"
    13595 case "(($ac_try" in
    13596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    13597   *) ac_try_echo=$ac_try;;
    13598 esac
    13599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    13600   (eval "$ac_link") 2>conftest.er1
    13601   ac_status=$?
    13602   grep -v '^ *+' conftest.er1 >conftest.err
    13603   rm -f conftest.er1
    13604   cat conftest.err >&5
    13605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13606   (exit $ac_status); } && {
    13607          test -z "$ac_cxx_werror_flag" ||
    13608          test ! -s conftest.err
    13609        } && test -s conftest$ac_exeext &&
    13610        $as_test_x conftest$ac_exeext; then
    13611   ac_cv_lib_dl_dlopen=yes
    13612 else
    13613   echo "$as_me: failed program was:" >&5
    13614 sed 's/^/| /' conftest.$ac_ext >&5
    13615 
    13616         ac_cv_lib_dl_dlopen=no
    13617 fi
    13618 
    13619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    13620       conftest$ac_exeext conftest.$ac_ext
    13621 LIBS=$ac_check_lib_save_LIBS
    13622 fi
    13623 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
    13624 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
    13625 if test $ac_cv_lib_dl_dlopen = yes; then
    13626   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
    13627 else
    13628 
    13629     lt_cv_dlopen="dyld"
    13630     lt_cv_dlopen_libs=
    13631     lt_cv_dlopen_self=yes
    13632 
    13633 fi
    13634 
    13635    ;;
    13636 
    13637   *)
    13638     { echo "$as_me:$LINENO: checking for shl_load" >&5
    13639 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
    13640 if test "${ac_cv_func_shl_load+set}" = set; then
    13641   echo $ECHO_N "(cached) $ECHO_C" >&6
    13642 else
    13643   cat >conftest.$ac_ext <<_ACEOF
    13644 /* confdefs.h.  */
    13645 _ACEOF
    13646 cat confdefs.h >>conftest.$ac_ext
    13647 cat >>conftest.$ac_ext <<_ACEOF
    13648 /* end confdefs.h.  */
    13649 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
    13650    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    13651 #define shl_load innocuous_shl_load
    13652 
    13653 /* System header to define __stub macros and hopefully few prototypes,
    13654     which can conflict with char shl_load (); below.
    13655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    13656     <limits.h> exists even on freestanding compilers.  */
    13657 
    13658 #ifdef __STDC__
    13659 # include <limits.h>
    13660 #else
    13661 # include <assert.h>
    13662 #endif
    13663 
    13664 #undef shl_load
    13665 
    13666 /* Override any GCC internal prototype to avoid an error.
    13667    Use char because int might match the return type of a GCC
    13668    builtin and then its argument prototype would still apply.  */
    13669 #ifdef __cplusplus
    13670 extern "C"
    13671 #endif
    13672 char shl_load ();
    13673 /* The GNU C library defines this for functions which it implements
    13674     to always fail with ENOSYS.  Some functions are actually named
    13675     something starting with __ and the normal name is an alias.  */
    13676 #if defined __stub_shl_load || defined __stub___shl_load
    13677 choke me
    13678 #endif
    13679 
    13680 int
    13681 main ()
    13682 {
    13683 return shl_load ();
    13684   ;
    13685   return 0;
    13686 }
    13687 _ACEOF
    13688 rm -f conftest.$ac_objext conftest$ac_exeext
    13689 if { (ac_try="$ac_link"
    13690 case "(($ac_try" in
    13691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    13692   *) ac_try_echo=$ac_try;;
    13693 esac
    13694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    13695   (eval "$ac_link") 2>conftest.er1
    13696   ac_status=$?
    13697   grep -v '^ *+' conftest.er1 >conftest.err
    13698   rm -f conftest.er1
    13699   cat conftest.err >&5
    13700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13701   (exit $ac_status); } && {
    13702          test -z "$ac_cxx_werror_flag" ||
    13703          test ! -s conftest.err
    13704        } && test -s conftest$ac_exeext &&
    13705        $as_test_x conftest$ac_exeext; then
    13706   ac_cv_func_shl_load=yes
    13707 else
    13708   echo "$as_me: failed program was:" >&5
    13709 sed 's/^/| /' conftest.$ac_ext >&5
    13710 
    13711         ac_cv_func_shl_load=no
    13712 fi
    13713 
    13714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    13715       conftest$ac_exeext conftest.$ac_ext
    13716 fi
    13717 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
    13718 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
    13719 if test $ac_cv_func_shl_load = yes; then
    13720   lt_cv_dlopen="shl_load"
    13721 else
    13722   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
    13723 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
    13724 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
    13725   echo $ECHO_N "(cached) $ECHO_C" >&6
    13726 else
    13727   ac_check_lib_save_LIBS=$LIBS
    13728 LIBS="-ldld  $LIBS"
    13729 cat >conftest.$ac_ext <<_ACEOF
    13730 /* confdefs.h.  */
    13731 _ACEOF
    13732 cat confdefs.h >>conftest.$ac_ext
    13733 cat >>conftest.$ac_ext <<_ACEOF
    13734 /* end confdefs.h.  */
    13735 
    13736 /* Override any GCC internal prototype to avoid an error.
    13737    Use char because int might match the return type of a GCC
    13738    builtin and then its argument prototype would still apply.  */
    13739 #ifdef __cplusplus
    13740 extern "C"
    13741 #endif
    13742 char shl_load ();
    13743 int
    13744 main ()
    13745 {
    13746 return shl_load ();
    13747   ;
    13748   return 0;
    13749 }
    13750 _ACEOF
    13751 rm -f conftest.$ac_objext conftest$ac_exeext
    13752 if { (ac_try="$ac_link"
    13753 case "(($ac_try" in
    13754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    13755   *) ac_try_echo=$ac_try;;
    13756 esac
    13757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    13758   (eval "$ac_link") 2>conftest.er1
    13759   ac_status=$?
    13760   grep -v '^ *+' conftest.er1 >conftest.err
    13761   rm -f conftest.er1
    13762   cat conftest.err >&5
    13763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13764   (exit $ac_status); } && {
    13765          test -z "$ac_cxx_werror_flag" ||
    13766          test ! -s conftest.err
    13767        } && test -s conftest$ac_exeext &&
    13768        $as_test_x conftest$ac_exeext; then
    13769   ac_cv_lib_dld_shl_load=yes
    13770 else
    13771   echo "$as_me: failed program was:" >&5
    13772 sed 's/^/| /' conftest.$ac_ext >&5
    13773 
    13774         ac_cv_lib_dld_shl_load=no
    13775 fi
    13776 
    13777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    13778       conftest$ac_exeext conftest.$ac_ext
    13779 LIBS=$ac_check_lib_save_LIBS
    13780 fi
    13781 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
    13782 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
    13783 if test $ac_cv_lib_dld_shl_load = yes; then
    13784   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
    13785 else
    13786   { echo "$as_me:$LINENO: checking for dlopen" >&5
    13787 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
    13788 if test "${ac_cv_func_dlopen+set}" = set; then
    13789   echo $ECHO_N "(cached) $ECHO_C" >&6
    13790 else
    13791   cat >conftest.$ac_ext <<_ACEOF
    13792 /* confdefs.h.  */
    13793 _ACEOF
    13794 cat confdefs.h >>conftest.$ac_ext
    13795 cat >>conftest.$ac_ext <<_ACEOF
    13796 /* end confdefs.h.  */
    13797 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
    13798    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    13799 #define dlopen innocuous_dlopen
    13800 
    13801 /* System header to define __stub macros and hopefully few prototypes,
    13802     which can conflict with char dlopen (); below.
    13803     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    13804     <limits.h> exists even on freestanding compilers.  */
    13805 
    13806 #ifdef __STDC__
    13807 # include <limits.h>
    13808 #else
    13809 # include <assert.h>
    13810 #endif
    13811 
    13812 #undef dlopen
    13813 
    13814 /* Override any GCC internal prototype to avoid an error.
    13815    Use char because int might match the return type of a GCC
    13816    builtin and then its argument prototype would still apply.  */
    13817 #ifdef __cplusplus
    13818 extern "C"
    13819 #endif
    13820 char dlopen ();
    13821 /* The GNU C library defines this for functions which it implements
    13822     to always fail with ENOSYS.  Some functions are actually named
    13823     something starting with __ and the normal name is an alias.  */
    13824 #if defined __stub_dlopen || defined __stub___dlopen
    13825 choke me
    13826 #endif
    13827 
    13828 int
    13829 main ()
    13830 {
    13831 return dlopen ();
    13832   ;
    13833   return 0;
    13834 }
    13835 _ACEOF
    13836 rm -f conftest.$ac_objext conftest$ac_exeext
    13837 if { (ac_try="$ac_link"
    13838 case "(($ac_try" in
    13839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    13840   *) ac_try_echo=$ac_try;;
    13841 esac
    13842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    13843   (eval "$ac_link") 2>conftest.er1
    13844   ac_status=$?
    13845   grep -v '^ *+' conftest.er1 >conftest.err
    13846   rm -f conftest.er1
    13847   cat conftest.err >&5
    13848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13849   (exit $ac_status); } && {
    13850          test -z "$ac_cxx_werror_flag" ||
    13851          test ! -s conftest.err
    13852        } && test -s conftest$ac_exeext &&
    13853        $as_test_x conftest$ac_exeext; then
    13854   ac_cv_func_dlopen=yes
    13855 else
    13856   echo "$as_me: failed program was:" >&5
    13857 sed 's/^/| /' conftest.$ac_ext >&5
    13858 
    13859         ac_cv_func_dlopen=no
    13860 fi
    13861 
    13862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    13863       conftest$ac_exeext conftest.$ac_ext
    13864 fi
    13865 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
    13866 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
    13867 if test $ac_cv_func_dlopen = yes; then
    13868   lt_cv_dlopen="dlopen"
    13869 else
    13870   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
    13871 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
    13872 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
    13873   echo $ECHO_N "(cached) $ECHO_C" >&6
    13874 else
    13875   ac_check_lib_save_LIBS=$LIBS
    13876 LIBS="-ldl  $LIBS"
    13877 cat >conftest.$ac_ext <<_ACEOF
    13878 /* confdefs.h.  */
    13879 _ACEOF
    13880 cat confdefs.h >>conftest.$ac_ext
    13881 cat >>conftest.$ac_ext <<_ACEOF
    13882 /* end confdefs.h.  */
    13883 
    13884 /* Override any GCC internal prototype to avoid an error.
    13885    Use char because int might match the return type of a GCC
    13886    builtin and then its argument prototype would still apply.  */
    13887 #ifdef __cplusplus
    13888 extern "C"
    13889 #endif
    13890 char dlopen ();
    13891 int
    13892 main ()
    13893 {
    13894 return dlopen ();
    13895   ;
    13896   return 0;
    13897 }
    13898 _ACEOF
    13899 rm -f conftest.$ac_objext conftest$ac_exeext
    13900 if { (ac_try="$ac_link"
    13901 case "(($ac_try" in
    13902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    13903   *) ac_try_echo=$ac_try;;
    13904 esac
    13905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    13906   (eval "$ac_link") 2>conftest.er1
    13907   ac_status=$?
    13908   grep -v '^ *+' conftest.er1 >conftest.err
    13909   rm -f conftest.er1
    13910   cat conftest.err >&5
    13911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13912   (exit $ac_status); } && {
    13913          test -z "$ac_cxx_werror_flag" ||
    13914          test ! -s conftest.err
    13915        } && test -s conftest$ac_exeext &&
    13916        $as_test_x conftest$ac_exeext; then
    13917   ac_cv_lib_dl_dlopen=yes
    13918 else
    13919   echo "$as_me: failed program was:" >&5
    13920 sed 's/^/| /' conftest.$ac_ext >&5
    13921 
    13922         ac_cv_lib_dl_dlopen=no
    13923 fi
    13924 
    13925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    13926       conftest$ac_exeext conftest.$ac_ext
    13927 LIBS=$ac_check_lib_save_LIBS
    13928 fi
    13929 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
    13930 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
    13931 if test $ac_cv_lib_dl_dlopen = yes; then
    13932   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
    13933 else
    13934   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
    13935 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
    13936 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
    13937   echo $ECHO_N "(cached) $ECHO_C" >&6
    13938 else
    13939   ac_check_lib_save_LIBS=$LIBS
    13940 LIBS="-lsvld  $LIBS"
    13941 cat >conftest.$ac_ext <<_ACEOF
    13942 /* confdefs.h.  */
    13943 _ACEOF
    13944 cat confdefs.h >>conftest.$ac_ext
    13945 cat >>conftest.$ac_ext <<_ACEOF
    13946 /* end confdefs.h.  */
    13947 
    13948 /* Override any GCC internal prototype to avoid an error.
    13949    Use char because int might match the return type of a GCC
    13950    builtin and then its argument prototype would still apply.  */
    13951 #ifdef __cplusplus
    13952 extern "C"
    13953 #endif
    13954 char dlopen ();
    13955 int
    13956 main ()
    13957 {
    13958 return dlopen ();
    13959   ;
    13960   return 0;
    13961 }
    13962 _ACEOF
    13963 rm -f conftest.$ac_objext conftest$ac_exeext
    13964 if { (ac_try="$ac_link"
    13965 case "(($ac_try" in
    13966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    13967   *) ac_try_echo=$ac_try;;
    13968 esac
    13969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    13970   (eval "$ac_link") 2>conftest.er1
    13971   ac_status=$?
    13972   grep -v '^ *+' conftest.er1 >conftest.err
    13973   rm -f conftest.er1
    13974   cat conftest.err >&5
    13975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13976   (exit $ac_status); } && {
    13977          test -z "$ac_cxx_werror_flag" ||
    13978          test ! -s conftest.err
    13979        } && test -s conftest$ac_exeext &&
    13980        $as_test_x conftest$ac_exeext; then
    13981   ac_cv_lib_svld_dlopen=yes
    13982 else
    13983   echo "$as_me: failed program was:" >&5
    13984 sed 's/^/| /' conftest.$ac_ext >&5
    13985 
    13986         ac_cv_lib_svld_dlopen=no
    13987 fi
    13988 
    13989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    13990       conftest$ac_exeext conftest.$ac_ext
    13991 LIBS=$ac_check_lib_save_LIBS
    13992 fi
    13993 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
    13994 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
    13995 if test $ac_cv_lib_svld_dlopen = yes; then
    13996   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
    13997 else
    13998   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
    13999 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
    14000 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
    14001   echo $ECHO_N "(cached) $ECHO_C" >&6
    14002 else
    14003   ac_check_lib_save_LIBS=$LIBS
    14004 LIBS="-ldld  $LIBS"
    14005 cat >conftest.$ac_ext <<_ACEOF
    14006 /* confdefs.h.  */
    14007 _ACEOF
    14008 cat confdefs.h >>conftest.$ac_ext
    14009 cat >>conftest.$ac_ext <<_ACEOF
    14010 /* end confdefs.h.  */
    14011 
    14012 /* Override any GCC internal prototype to avoid an error.
    14013    Use char because int might match the return type of a GCC
    14014    builtin and then its argument prototype would still apply.  */
    14015 #ifdef __cplusplus
    14016 extern "C"
    14017 #endif
    14018 char dld_link ();
    14019 int
    14020 main ()
    14021 {
    14022 return dld_link ();
    14023   ;
    14024   return 0;
    14025 }
    14026 _ACEOF
    14027 rm -f conftest.$ac_objext conftest$ac_exeext
    14028 if { (ac_try="$ac_link"
    14029 case "(($ac_try" in
    14030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    14031   *) ac_try_echo=$ac_try;;
    14032 esac
    14033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    14034   (eval "$ac_link") 2>conftest.er1
    14035   ac_status=$?
    14036   grep -v '^ *+' conftest.er1 >conftest.err
    14037   rm -f conftest.er1
    14038   cat conftest.err >&5
    14039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14040   (exit $ac_status); } && {
    14041          test -z "$ac_cxx_werror_flag" ||
    14042          test ! -s conftest.err
    14043        } && test -s conftest$ac_exeext &&
    14044        $as_test_x conftest$ac_exeext; then
    14045   ac_cv_lib_dld_dld_link=yes
    14046 else
    14047   echo "$as_me: failed program was:" >&5
    14048 sed 's/^/| /' conftest.$ac_ext >&5
    14049 
    14050         ac_cv_lib_dld_dld_link=no
    14051 fi
    14052 
    14053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    14054       conftest$ac_exeext conftest.$ac_ext
    14055 LIBS=$ac_check_lib_save_LIBS
    14056 fi
    14057 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
    14058 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
    14059 if test $ac_cv_lib_dld_dld_link = yes; then
    14060   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
    14061 fi
    14062 
    14063 
    14064 fi
    14065 
    14066 
    14067 fi
    14068 
    14069 
    14070 fi
    14071 
    14072 
    14073 fi
    14074 
    14075 
    14076 fi
    14077 
    14078     ;;
    14079   esac
    14080 
    14081   if test "x$lt_cv_dlopen" != xno; then
    14082     enable_dlopen=yes
    14083   else
    14084     enable_dlopen=no
    14085   fi
    14086 
    14087   case $lt_cv_dlopen in
    14088   dlopen)
    14089     save_CPPFLAGS="$CPPFLAGS"
    14090     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
    14091 
    14092     save_LDFLAGS="$LDFLAGS"
    14093     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
    14094 
    14095     save_LIBS="$LIBS"
    14096     LIBS="$lt_cv_dlopen_libs $LIBS"
    14097 
    14098     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
    14099 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
    14100 if test "${lt_cv_dlopen_self+set}" = set; then
    14101   echo $ECHO_N "(cached) $ECHO_C" >&6
    14102 else
    14103           if test "$cross_compiling" = yes; then :
    14104   lt_cv_dlopen_self=cross
    14105 else
    14106   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
    14107   lt_status=$lt_dlunknown
    14108   cat > conftest.$ac_ext <<EOF
    14109 #line 14109 "configure"
    14110 #include "confdefs.h"
    14111 
    14112 #if HAVE_DLFCN_H
    14113 #include <dlfcn.h>
    14114 #endif
    14115 
    14116 #include <stdio.h>
    14117 
    14118 #ifdef RTLD_GLOBAL
    14119 #  define LT_DLGLOBAL           RTLD_GLOBAL
    14120 #else
    14121 #  ifdef DL_GLOBAL
    14122 #    define LT_DLGLOBAL         DL_GLOBAL
    14123 #  else
    14124 #    define LT_DLGLOBAL         0
    14125 #  endif
    14126 #endif
    14127 
    14128 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
    14129    find out it does not work in some platform. */
    14130 #ifndef LT_DLLAZY_OR_NOW
    14131 #  ifdef RTLD_LAZY
    14132 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
    14133 #  else
    14134 #    ifdef DL_LAZY
    14135 #      define LT_DLLAZY_OR_NOW          DL_LAZY
    14136 #    else
    14137 #      ifdef RTLD_NOW
    14138 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
    14139 #      else
    14140 #        ifdef DL_NOW
    14141 #          define LT_DLLAZY_OR_NOW      DL_NOW
    14142 #        else
    14143 #          define LT_DLLAZY_OR_NOW      0
    14144 #        endif
    14145 #      endif
    14146 #    endif
    14147 #  endif
    14148 #endif
    14149 
    14150 #ifdef __cplusplus
    14151 extern "C" void exit (int);
    14152 #endif
    14153 
    14154 void fnord() { int i=42;}
    14155 int main ()
    14156 {
    14157   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
    14158   int status = $lt_dlunknown;
    14159 
    14160   if (self)
    14161     {
    14162       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
    14163       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
    14164       /* dlclose (self); */
    14165     }
    14166 
    14167     exit (status);
    14168 }
    14169 EOF
    14170   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    14171   (eval $ac_link) 2>&5
    14172   ac_status=$?
    14173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14174   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
    14175     (./conftest; exit; ) >&5 2>/dev/null
    14176     lt_status=$?
    14177     case x$lt_status in
    14178       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
    14179       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
    14180       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
    14181     esac
    14182   else :
    14183     # compilation failed
    14184     lt_cv_dlopen_self=no
    14185   fi
    14186 fi
    14187 rm -fr conftest*
    14188 
    14189 
    14190 fi
    14191 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
    14192 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
    14193 
    14194     if test "x$lt_cv_dlopen_self" = xyes; then
    14195       LDFLAGS="$LDFLAGS $link_static_flag"
    14196       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
    14197 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
    14198 if test "${lt_cv_dlopen_self_static+set}" = set; then
    14199   echo $ECHO_N "(cached) $ECHO_C" >&6
    14200 else
    14201           if test "$cross_compiling" = yes; then :
    14202   lt_cv_dlopen_self_static=cross
    14203 else
    14204   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
    14205   lt_status=$lt_dlunknown
    14206   cat > conftest.$ac_ext <<EOF
    14207 #line 14207 "configure"
    14208 #include "confdefs.h"
    14209 
    14210 #if HAVE_DLFCN_H
    14211 #include <dlfcn.h>
    14212 #endif
    14213 
    14214 #include <stdio.h>
    14215 
    14216 #ifdef RTLD_GLOBAL
    14217 #  define LT_DLGLOBAL           RTLD_GLOBAL
    14218 #else
    14219 #  ifdef DL_GLOBAL
    14220 #    define LT_DLGLOBAL         DL_GLOBAL
    14221 #  else
    14222 #    define LT_DLGLOBAL         0
    14223 #  endif
    14224 #endif
    14225 
    14226 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
    14227    find out it does not work in some platform. */
    14228 #ifndef LT_DLLAZY_OR_NOW
    14229 #  ifdef RTLD_LAZY
    14230 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
    14231 #  else
    14232 #    ifdef DL_LAZY
    14233 #      define LT_DLLAZY_OR_NOW          DL_LAZY
    14234 #    else
    14235 #      ifdef RTLD_NOW
    14236 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
    14237 #      else
    14238 #        ifdef DL_NOW
    14239 #          define LT_DLLAZY_OR_NOW      DL_NOW
    14240 #        else
    14241 #          define LT_DLLAZY_OR_NOW      0
    14242 #        endif
    14243 #      endif
    14244 #    endif
    14245 #  endif
    14246 #endif
    14247 
    14248 #ifdef __cplusplus
    14249 extern "C" void exit (int);
    14250 #endif
    14251 
    14252 void fnord() { int i=42;}
    14253 int main ()
    14254 {
    14255   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
    14256   int status = $lt_dlunknown;
    14257 
    14258   if (self)
    14259     {
    14260       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
    14261       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
    14262       /* dlclose (self); */
    14263     }
    14264 
    14265     exit (status);
    14266 }
    14267 EOF
    14268   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    14269   (eval $ac_link) 2>&5
    14270   ac_status=$?
    14271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14272   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
    14273     (./conftest; exit; ) >&5 2>/dev/null
    14274     lt_status=$?
    14275     case x$lt_status in
    14276       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
    14277       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
    14278       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
    14279     esac
    14280   else :
    14281     # compilation failed
    14282     lt_cv_dlopen_self_static=no
    14283   fi
    14284 fi
    14285 rm -fr conftest*
    14286 
    14287 
    14288 fi
    14289 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
    14290 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
    14291     fi
    14292 
    14293     CPPFLAGS="$save_CPPFLAGS"
    14294     LDFLAGS="$save_LDFLAGS"
    14295     LIBS="$save_LIBS"
    14296     ;;
    14297   esac
    14298 
    14299   case $lt_cv_dlopen_self in
    14300   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
    14301   *) enable_dlopen_self=unknown ;;
    14302   esac
    14303 
    14304   case $lt_cv_dlopen_self_static in
    14305   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
    14306   *) enable_dlopen_self_static=unknown ;;
    14307   esac
    14308 fi
    14309 
    1431013960
    1431113961# The else clause should only fire when bootstrapping the
     
    1432213972  # careful not to overquote the AC_SUBSTed values.  We take copies of the
    1432313973  # variables and quote the copies for generation of the libtool script.
    14324   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
     13974  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    1432513975    SED SHELL STRIP \
    1432613976    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
     
    1436414014    module_expsym_cmds_CXX \
    1436514015    lt_cv_prog_compiler_c_o_CXX \
     14016    fix_srcfile_path_CXX \
    1436614017    exclude_expsyms_CXX \
    1436714018    include_expsyms_CXX; do
     
    1444014091LTCC=$lt_LTCC
    1444114092
     14093# LTCC compiler flags.
     14094LTCFLAGS=$lt_LTCFLAGS
     14095
    1444214096# A language-specific compiler.
    1444314097CC=$lt_compiler_CXX
     
    1468114335
    1468214336# Fix the shell variable \$srcfile for the compiler.
    14683 fix_srcfile_path="$fix_srcfile_path_CXX"
     14337fix_srcfile_path=$lt_fix_srcfile_path
    1468414338
    1468514339# Set to yes if exported symbols are required.
     
    1477214426
    1477314427# Code to be used in simple compile tests
    14774 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
     14428lt_simple_compile_test_code="\
     14429      subroutine t
     14430      return
     14431      end
     14432"
    1477514433
    1477614434# Code to be used in simple link tests
    14777 lt_simple_link_test_code="      program t\n      end\n"
     14435lt_simple_link_test_code="\
     14436      program t
     14437      end
     14438"
    1477814439
    1477914440# ltmain only uses $CC for tagged configurations so make sure $CC is set.
     
    1478214443LTCC=${LTCC-"$CC"}
    1478314444
     14445# If no C compiler flags were specified, use CFLAGS.
     14446LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
     14447
    1478414448# Allow CC to be a program name with arguments.
    1478514449compiler=$CC
     
    1478814452# save warnings/boilerplate of simple test code
    1478914453ac_outfile=conftest.$ac_objext
    14790 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
    14791 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
     14454echo "$lt_simple_compile_test_code" >conftest.$ac_ext
     14455eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
    1479214456_lt_compiler_boilerplate=`cat conftest.err`
    1479314457$rm conftest*
    1479414458
    1479514459ac_outfile=conftest.$ac_objext
    14796 printf "$lt_simple_link_test_code" >conftest.$ac_ext
    14797 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
     14460echo "$lt_simple_link_test_code" >conftest.$ac_ext
     14461eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
    1479814462_lt_linker_boilerplate=`cat conftest.err`
    1479914463$rm conftest*
     
    1485114515echo "${ECHO_T}$enable_static" >&6; }
    1485214516
    14853 test "$ld_shlibs_F77" = no && can_build_shared=no
    14854 
    1485514517GCC_F77="$G77"
    1485614518LD_F77="$LD"
     
    1488314545      ;;
    1488414546
    14885     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
     14547    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
    1488614548      # PIC is the default for these OSes.
    1488714549      ;;
    1488814550
    14889     mingw* | pw32* | os2*)
     14551    mingw* | cygwin* | pw32* | os2*)
    1489014552      # This hack is so that the source file can tell whether it is being
    1489114553      # built for inclusion in a dll (and should export symbols for example).
     14554      # Although the cygwin gcc ignores -fPIC, still need this for old-style
     14555      # (--disable-auto-import) libraries
    1489214556      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
    1489314557      ;;
     
    1489714561      # Common symbols not allowed in MH_DYLIB files
    1489814562      lt_prog_compiler_pic_F77='-fno-common'
     14563      ;;
     14564
     14565    interix[3-9]*)
     14566      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
     14567      # Instead, we relocate shared libraries at runtime.
    1489914568      ;;
    1490014569
     
    1495214621       ;;
    1495314622
    14954     mingw* | pw32* | os2*)
     14623    mingw* | cygwin* | pw32* | os2*)
    1495514624      # This hack is so that the source file can tell whether it is being
    1495614625      # built for inclusion in a dll (and should export symbols for example).
     
    1498514654      ;;
    1498614655
    14987     linux*)
     14656    linux* | k*bsd*-gnu)
    1498814657      case $cc_basename in
    1498914658      icc* | ecc*)
     
    1500414673        lt_prog_compiler_static_F77='-non_shared'
    1500514674        ;;
     14675      *)
     14676        case `$CC -V 2>&1 | sed 5q` in
     14677        *Sun\ C*)
     14678          # Sun C 5.9
     14679          lt_prog_compiler_pic_F77='-KPIC'
     14680          lt_prog_compiler_static_F77='-Bstatic'
     14681          lt_prog_compiler_wl_F77='-Wl,'
     14682          ;;
     14683        *Sun\ F*)
     14684          # Sun Fortran 8.3 passes all unrecognized flags to the linker
     14685          lt_prog_compiler_pic_F77='-KPIC'
     14686          lt_prog_compiler_static_F77='-Bstatic'
     14687          lt_prog_compiler_wl_F77=''
     14688          ;;
     14689        esac
     14690        ;;
    1500614691      esac
    1500714692      ;;
     
    1501314698      ;;
    1501414699
    15015     sco3.2v5*)
    15016       lt_prog_compiler_pic_F77='-Kpic'
    15017       lt_prog_compiler_static_F77='-dn'
     14700    rdos*)
     14701      lt_prog_compiler_static_F77='-non_shared'
    1501814702      ;;
    1501914703
     
    1503514719      ;;
    1503614720
    15037     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
     14721    sysv4 | sysv4.2uw2* | sysv4.3*)
    1503814722      lt_prog_compiler_wl_F77='-Wl,'
    1503914723      lt_prog_compiler_pic_F77='-KPIC'
     
    1504814732      ;;
    1504914733
     14734    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
     14735      lt_prog_compiler_wl_F77='-Wl,'
     14736      lt_prog_compiler_pic_F77='-KPIC'
     14737      lt_prog_compiler_static_F77='-Bstatic'
     14738      ;;
     14739
    1505014740    unicos*)
    1505114741      lt_prog_compiler_wl_F77='-Wl,'
     
    1507914769  lt_prog_compiler_pic_works_F77=no
    1508014770  ac_outfile=conftest.$ac_objext
    15081    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     14771   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    1508214772   lt_compiler_flag="$lt_prog_compiler_pic_F77"
    1508314773   # Insert the option either (1) after the last *FLAGS variable, or
     
    1509014780   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1509114781   -e 's:$: $lt_compiler_flag:'`
    15092    (eval echo "\"\$as_me:15092: $lt_compile\"" >&5)
     14782   (eval echo "\"\$as_me:14782: $lt_compile\"" >&5)
    1509314783   (eval "$lt_compile" 2>conftest.err)
    1509414784   ac_status=$?
    1509514785   cat conftest.err >&5
    15096    echo "$as_me:15096: \$? = $ac_status" >&5
     14786   echo "$as_me:14786: \$? = $ac_status" >&5
    1509714787   if (exit $ac_status) && test -s "$ac_outfile"; then
    1509814788     # The compiler can only warn and ignore the option if not recognized
    1509914789     # So say no if there are warnings other than the usual output.
    15100      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
    15101      $SED '/^$/d' conftest.err >conftest.er2
    15102      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
     14790     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     14791     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     14792     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
    1510314793       lt_prog_compiler_pic_works_F77=yes
    1510414794     fi
     
    1513114821esac
    1513214822
     14823#
     14824# Check to make sure the static flag actually works.
     14825#
     14826wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
     14827{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
     14828echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
     14829if test "${lt_prog_compiler_static_works_F77+set}" = set; then
     14830  echo $ECHO_N "(cached) $ECHO_C" >&6
     14831else
     14832  lt_prog_compiler_static_works_F77=no
     14833   save_LDFLAGS="$LDFLAGS"
     14834   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
     14835   echo "$lt_simple_link_test_code" > conftest.$ac_ext
     14836   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     14837     # The linker can only warn and ignore the option if not recognized
     14838     # So say no if there are warnings
     14839     if test -s conftest.err; then
     14840       # Append any errors to the config.log.
     14841       cat conftest.err 1>&5
     14842       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
     14843       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     14844       if diff conftest.exp conftest.er2 >/dev/null; then
     14845         lt_prog_compiler_static_works_F77=yes
     14846       fi
     14847     else
     14848       lt_prog_compiler_static_works_F77=yes
     14849     fi
     14850   fi
     14851   $rm conftest*
     14852   LDFLAGS="$save_LDFLAGS"
     14853
     14854fi
     14855{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
     14856echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
     14857
     14858if test x"$lt_prog_compiler_static_works_F77" = xyes; then
     14859    :
     14860else
     14861    lt_prog_compiler_static_F77=
     14862fi
     14863
     14864
    1513314865{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
    1513414866echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
     
    1514114873   cd conftest
    1514214874   mkdir out
    15143    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     14875   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    1514414876
    1514514877   lt_compiler_flag="-o out/conftest2.$ac_objext"
     
    1515214884   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1515314885   -e 's:$: $lt_compiler_flag:'`
    15154    (eval echo "\"\$as_me:15154: $lt_compile\"" >&5)
     14886   (eval echo "\"\$as_me:14886: $lt_compile\"" >&5)
    1515514887   (eval "$lt_compile" 2>out/conftest.err)
    1515614888   ac_status=$?
    1515714889   cat out/conftest.err >&5
    15158    echo "$as_me:15158: \$? = $ac_status" >&5
     14890   echo "$as_me:14890: \$? = $ac_status" >&5
    1515914891   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1516014892   then
    1516114893     # The compiler can only warn and ignore the option if not recognized
    1516214894     # So say no if there are warnings
    15163      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
    15164      $SED '/^$/d' out/conftest.err >out/conftest.er2
    15165      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
     14895     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     14896     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     14897     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
    1516614898       lt_cv_prog_compiler_c_o_F77=yes
    1516714899     fi
     
    1526314995    fi
    1526414996    ;;
     14997  interix*)
     14998    # we just hope/assume this is gcc and not c89 (= MSVC++)
     14999    with_gnu_ld=yes
     15000    ;;
    1526515001  openbsd*)
    1526615002    with_gnu_ld=no
     
    1534415080      always_export_symbols_F77=no
    1534515081      enable_shared_with_static_runtimes_F77=yes
    15346       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
     15082      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
    1534715083
    1534815084      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
    15349         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
     15085        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    1535015086        # If the export-symbols file already is a .def file (1st line
    1535115087        # is EXPORTS), use it as is; otherwise, prepend...
     
    1535615092          cat $export_symbols >> $output_objdir/$soname.def;
    1535715093        fi~
    15358         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
     15094        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    1535915095      else
    1536015096        ld_shlibs_F77=no
     
    1536215098      ;;
    1536315099
    15364     linux*)
     15100    interix[3-9]*)
     15101      hardcode_direct_F77=no
     15102      hardcode_shlibpath_var_F77=no
     15103      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
     15104      export_dynamic_flag_spec_F77='${wl}-E'
     15105      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
     15106      # Instead, shared libraries are loaded at an image base (0x10000000 by
     15107      # default) and relocated if they conflict, which is a slow very memory
     15108      # consuming and fragmenting process.  To avoid this, we pick a random,
     15109      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
     15110      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
     15111      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
     15112      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
     15113      ;;
     15114
     15115    gnu* | linux* | k*bsd*-gnu)
    1536515116      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    1536615117        tmp_addflag=
     
    1538015131          tmp_addflag=' -nofor_main' ;;
    1538115132        esac
    15382         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     15133        case `$CC -V 2>&1 | sed 5q` in
     15134        *Sun\ C*)                       # Sun C 5.9
     15135          whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
     15136          tmp_sharedflag='-G' ;;
     15137        *Sun\ F*)                       # Sun Fortran 8.3
     15138          tmp_sharedflag='-G' ;;
     15139        *)
     15140          tmp_sharedflag='-shared' ;;
     15141        esac
     15142        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    1538315143
    1538415144        if test $supports_anon_versioning = yes; then
     
    1538615146  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
    1538715147  $echo "local: *; };" >> $output_objdir/$libname.ver~
    15388           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
     15148          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
    1538915149        fi
    1539015150      else
     
    1540315163      ;;
    1540415164
    15405     solaris* | sysv5*)
     15165    solaris*)
    1540615166      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
    1540715167        ld_shlibs_F77=no
     
    1542215182        ld_shlibs_F77=no
    1542315183      fi
     15184      ;;
     15185
     15186    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
     15187      case `$LD -v 2>&1` in
     15188        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
     15189        ld_shlibs_F77=no
     15190        cat <<_LT_EOF 1>&2
     15191
     15192*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
     15193*** reliably create shared libraries on SCO systems.  Therefore, libtool
     15194*** is disabling shared libraries support.  We urge you to upgrade GNU
     15195*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
     15196*** your PATH or compiler configuration so that the native linker is
     15197*** used, and then restart.
     15198
     15199_LT_EOF
     15200        ;;
     15201        *)
     15202          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
     15203            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
     15204            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
     15205            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
     15206          else
     15207            ld_shlibs_F77=no
     15208          fi
     15209        ;;
     15210      esac
    1542415211      ;;
    1542515212
     
    1545715244      # are no directories specified by -L.
    1545815245      hardcode_minus_L_F77=yes
    15459       if test "$GCC" = yes && test -z "$link_static_flag"; then
     15246      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
    1546015247        # Neither direct hardcoding nor static linking is supported with a
    1546115248        # broken collect2.
     
    1549115278          fi
    1549215279          done
     15280          ;;
    1549315281        esac
    1549415282
     
    1551715305          then
    1551815306          # We have reworked collect2
    15519           hardcode_direct_F77=yes
     15307          :
    1552015308          else
    1552115309          # We have old collect2
     
    1552815316          hardcode_libdir_separator_F77=
    1552915317          fi
     15318          ;;
    1553015319        esac
    1553115320        shared_flag='-shared'
     
    1554015329          shared_flag='-G'
    1554115330        else
    15542         if test "$aix_use_runtimelinking" = yes; then
     15331          if test "$aix_use_runtimelinking" = yes; then
    1554315332            shared_flag='${wl}-G'
    1554415333          else
    1554515334            shared_flag='${wl}-bM:SRE'
    15546         fi
     15335          fi
    1554715336        fi
    1554815337      fi
     
    1558015369       $as_test_x conftest$ac_exeext; then
    1558115370
    15582 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    15583 }'`
     15371lt_aix_libpath_sed='
     15372    /Import File Strings/,/^$/ {
     15373        /^0/ {
     15374            s/^0  *\(.*\)$/\1/
     15375            p
     15376        }
     15377    }'
     15378aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
    1558415379# Check for a 64-bit object if we didn't find anything.
    15585 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    15586 }'`; fi
     15380if test -z "$aix_libpath"; then
     15381  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     15382fi
    1558715383else
    1558815384  echo "$as_me: failed program was:" >&5
     
    1559715393
    1559815394       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
    15599         archive_expsym_cmds_F77="\$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"
     15395        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
    1560015396       else
    1560115397        if test "$host_cpu" = ia64; then
    1560215398          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
    1560315399          allow_undefined_flag_F77="-z nodefs"
    15604           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
     15400          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
    1560515401        else
    1560615402         # Determine the default libpath from the value encoded in an empty executable.
     
    1562915425       $as_test_x conftest$ac_exeext; then
    1563015426
    15631 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    15632 }'`
     15427lt_aix_libpath_sed='
     15428    /Import File Strings/,/^$/ {
     15429        /^0/ {
     15430            s/^0  *\(.*\)$/\1/
     15431            p
     15432        }
     15433    }'
     15434aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
    1563315435# Check for a 64-bit object if we didn't find anything.
    15634 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    15635 }'`; fi
     15436if test -z "$aix_libpath"; then
     15437  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     15438fi
    1563615439else
    1563715440  echo "$as_me: failed program was:" >&5
     
    1565015453          no_undefined_flag_F77=' ${wl}-bernotok'
    1565115454          allow_undefined_flag_F77=' ${wl}-berok'
    15652           # -bexpall does not export symbols beginning with underscore (_)
    15653           always_export_symbols_F77=yes
    1565415455          # Exported symbols can be pulled into shared objects from archives
    15655           whole_archive_flag_spec_F77=' '
     15456          whole_archive_flag_spec_F77='$convenience'
    1565615457          archive_cmds_need_lc_F77=yes
    1565715458          # This is similar to how AIX traditionally builds its shared libraries.
    15658           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
     15459          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
    1565915460        fi
    1566015461      fi
     
    1568915490      old_archive_From_new_cmds_F77='true'
    1569015491      # FIXME: Should let the user specify the lib program.
    15691       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
     15492      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
    1569215493      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
    1569315494      enable_shared_with_static_runtimes_F77=yes
     
    1573115532        xlc*)
    1573215533         output_verbose_link_cmd='echo'
    15733          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
     15534         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
    1573415535         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    1573515536          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
    15736          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
     15537         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    1573715538          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    1573815539          ;;
     
    1577415575
    1577515576    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    15776     freebsd* | kfreebsd*-gnu | dragonfly*)
     15577    freebsd* | dragonfly*)
    1577715578      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
    1577815579      hardcode_libdir_flag_spec_F77='-R$libdir'
     
    1579715598      ;;
    1579815599
    15799     hpux10* | hpux11*)
     15600    hpux10*)
     15601      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
     15602        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
     15603      else
     15604        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
     15605      fi
     15606      if test "$with_gnu_ld" = no; then
     15607        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
     15608        hardcode_libdir_separator_F77=:
     15609
     15610        hardcode_direct_F77=yes
     15611        export_dynamic_flag_spec_F77='${wl}-E'
     15612
     15613        # hardcode_minus_L: Not really in the search PATH,
     15614        # but as the default location of the library.
     15615        hardcode_minus_L_F77=yes
     15616      fi
     15617      ;;
     15618
     15619    hpux11*)
    1580015620      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
    1580115621        case $host_cpu in
    15802         hppa*64*|ia64*)
     15622        hppa*64*)
    1580315623          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
     15624          ;;
     15625        ia64*)
     15626          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
    1580415627          ;;
    1580515628        *)
     
    1580915632      else
    1581015633        case $host_cpu in
    15811         hppa*64*|ia64*)
    15812           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
     15634        hppa*64*)
     15635          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
     15636          ;;
     15637        ia64*)
     15638          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
    1581315639          ;;
    1581415640        *)
    15815           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
     15641          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
    1581615642          ;;
    1581715643        esac
    1581815644      fi
    1581915645      if test "$with_gnu_ld" = no; then
     15646        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
     15647        hardcode_libdir_separator_F77=:
     15648
    1582015649        case $host_cpu in
    15821         hppa*64*)
    15822           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
     15650        hppa*64*|ia64*)
    1582315651          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
    15824           hardcode_libdir_separator_F77=:
    1582515652          hardcode_direct_F77=no
    1582615653          hardcode_shlibpath_var_F77=no
    1582715654          ;;
    15828         ia64*)
    15829           hardcode_libdir_flag_spec_F77='-L$libdir'
    15830           hardcode_direct_F77=no
    15831           hardcode_shlibpath_var_F77=no
    15832 
    15833           # hardcode_minus_L: Not really in the search PATH,
    15834           # but as the default location of the library.
    15835           hardcode_minus_L_F77=yes
    15836           ;;
    1583715655        *)
    15838           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
    15839           hardcode_libdir_separator_F77=:
    1584015656          hardcode_direct_F77=yes
    1584115657          export_dynamic_flag_spec_F77='${wl}-E'
     
    1588115697
    1588215698    openbsd*)
    15883       hardcode_direct_F77=yes
    15884       hardcode_shlibpath_var_F77=no
    15885       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    15886         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    15887         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
    15888         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
    15889         export_dynamic_flag_spec_F77='${wl}-E'
     15699      if test -f /usr/libexec/ld.so; then
     15700        hardcode_direct_F77=yes
     15701        hardcode_shlibpath_var_F77=no
     15702        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     15703          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
     15704          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
     15705          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
     15706          export_dynamic_flag_spec_F77='${wl}-E'
     15707        else
     15708          case $host_os in
     15709           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
     15710             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
     15711             hardcode_libdir_flag_spec_F77='-R$libdir'
     15712             ;;
     15713           *)
     15714             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
     15715             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
     15716             ;;
     15717          esac
     15718        fi
    1589015719      else
    15891        case $host_os in
    15892          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
    15893            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    15894            hardcode_libdir_flag_spec_F77='-R$libdir'
    15895            ;;
    15896          *)
    15897            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    15898            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
    15899            ;;
    15900        esac
     15720        ld_shlibs_F77=no
    1590115721      fi
    1590215722      ;;
     
    1593715757      fi
    1593815758      hardcode_libdir_separator_F77=:
    15939       ;;
    15940 
    15941     sco3.2v5*)
    15942       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    15943       hardcode_shlibpath_var_F77=no
    15944       export_dynamic_flag_spec_F77='${wl}-Bexport'
    15945       runpath_var=LD_RUN_PATH
    15946       hardcode_runpath_var=yes
    1594715759      ;;
    1594815760
     
    1596515777      solaris2.[0-5] | solaris2.[0-5].*) ;;
    1596615778      *)
    15967         # The compiler driver will combine linker options so we
    15968         # cannot just pass the convience library names through
    15969         # without $wl, iff we do not link with $LD.
    15970         # Luckily, gcc supports the same syntax we need for Sun Studio.
     15779        # The compiler driver will combine and reorder linker options,
     15780        # but understands `-z linker_flag'.  GCC discards it without `$wl',
     15781        # but is careful enough not to reorder.
    1597115782        # Supported since Solaris 2.6 (maybe 2.5.1?)
    15972         case $wlarc in
    15973         '')
    15974           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
    15975         *)
    15976           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
    15977         esac ;;
     15783        if test "$GCC" = yes; then
     15784          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
     15785        else
     15786          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
     15787        fi
     15788        ;;
    1597815789      esac
    1597915790      link_all_deplibs_F77=yes
     
    1603215843      ;;
    1603315844
    16034     sysv4.2uw2*)
    16035       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
    16036       hardcode_direct_F77=yes
    16037       hardcode_minus_L_F77=no
    16038       hardcode_shlibpath_var_F77=no
    16039       hardcode_runpath_var=yes
    16040       runpath_var=LD_RUN_PATH
    16041       ;;
    16042 
    16043    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
    16044       no_undefined_flag_F77='${wl}-z ${wl}text'
    16045       if test "$GCC" = yes; then
    16046         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    16047       else
    16048         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    16049       fi
    16050       runpath_var='LD_RUN_PATH'
    16051       hardcode_shlibpath_var_F77=no
    16052       ;;
    16053 
    16054     sysv5*)
    16055       no_undefined_flag_F77=' -z text'
    16056       # $CC -shared without GNU ld will not create a library from C++
    16057       # object files and a static libstdc++, better avoid it by now
    16058       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
    16059       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    16060                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
    16061       hardcode_libdir_flag_spec_F77=
     15845    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
     15846      no_undefined_flag_F77='${wl}-z,text'
     15847      archive_cmds_need_lc_F77=no
    1606215848      hardcode_shlibpath_var_F77=no
    1606315849      runpath_var='LD_RUN_PATH'
     15850
     15851      if test "$GCC" = yes; then
     15852        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     15853        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     15854      else
     15855        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     15856        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     15857      fi
     15858      ;;
     15859
     15860    sysv5* | sco3.2v5* | sco5v6*)
     15861      # Note: We can NOT use -z defs as we might desire, because we do not
     15862      # link with -lc, and that would cause any symbols used from libc to
     15863      # always be unresolved, which means just about no library would
     15864      # ever link correctly.  If we're not using GNU ld we use -z text
     15865      # though, which does catch some bad symbols but isn't as heavy-handed
     15866      # as -z defs.
     15867      no_undefined_flag_F77='${wl}-z,text'
     15868      allow_undefined_flag_F77='${wl}-z,nodefs'
     15869      archive_cmds_need_lc_F77=no
     15870      hardcode_shlibpath_var_F77=no
     15871      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
     15872      hardcode_libdir_separator_F77=':'
     15873      link_all_deplibs_F77=yes
     15874      export_dynamic_flag_spec_F77='${wl}-Bexport'
     15875      runpath_var='LD_RUN_PATH'
     15876
     15877      if test "$GCC" = yes; then
     15878        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     15879        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     15880      else
     15881        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     15882        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     15883      fi
    1606415884      ;;
    1606515885
     
    1607915899echo "${ECHO_T}$ld_shlibs_F77" >&6; }
    1608015900test "$ld_shlibs_F77" = no && can_build_shared=no
    16081 
    16082 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
    16083 if test "$GCC" = yes; then
    16084   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
    16085 fi
    1608615901
    1608715902#
     
    1610515920echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
    1610615921      $rm conftest*
    16107       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     15922      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    1610815923
    1610915924      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     
    1611715932        deplibs=
    1611815933        wl=$lt_prog_compiler_wl_F77
     15934        pic_flag=$lt_prog_compiler_pic_F77
    1611915935        compiler_flags=-v
    1612015936        linker_flags=-v
     
    1616215978dynamic_linker="$host_os ld.so"
    1616315979sys_lib_dlsearch_path_spec="/lib /usr/lib"
    16164 if test "$GCC" = yes; then
    16165   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    16166   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    16167     # if the path contains ";" then we assume it to be the separator
    16168     # otherwise default to the standard path separator (i.e. ":") - it is
    16169     # assumed that no part of a normal pathname contains ";" but that should
    16170     # okay in the real world where ";" in dirpaths is itself problematic.
    16171     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
    16172   else
    16173     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    16174   fi
    16175 else
    16176   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
    16177 fi
     15980
    1617815981need_lib_prefix=unknown
    1617915982hardcode_into_libs=no
     
    1633216135  shlibpath_var=DYLD_LIBRARY_PATH
    1633316136  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
    16334   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
    16335   if test "$GCC" = yes; then
    16336     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
    16337   else
    16338     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
    16339   fi
     16137
    1634016138  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
    1634116139  ;;
     
    1635216150freebsd1*)
    1635316151  dynamic_linker=no
    16354   ;;
    16355 
    16356 kfreebsd*-gnu)
    16357   version_type=linux
    16358   need_lib_prefix=no
    16359   need_version=no
    16360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    16361   soname_spec='${libname}${release}${shared_ext}$major'
    16362   shlibpath_var=LD_LIBRARY_PATH
    16363   shlibpath_overrides_runpath=no
    16364   hardcode_into_libs=yes
    16365   dynamic_linker='GNU ld.so'
    1636616152  ;;
    1636716153
     
    1639816184    hardcode_into_libs=yes
    1639916185    ;;
    16400   *) # from 3.2 on
     16186  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
     16187  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    1640116188    shlibpath_overrides_runpath=no
     16189    hardcode_into_libs=yes
     16190    ;;
     16191  *) # from 4.6 on, and DragonFly
     16192    shlibpath_overrides_runpath=yes
    1640216193    hardcode_into_libs=yes
    1640316194    ;;
     
    1646116252  ;;
    1646216253
     16254interix[3-9]*)
     16255  version_type=linux
     16256  need_lib_prefix=no
     16257  need_version=no
     16258  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
     16259  soname_spec='${libname}${release}${shared_ext}$major'
     16260  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
     16261  shlibpath_var=LD_LIBRARY_PATH
     16262  shlibpath_overrides_runpath=no
     16263  hardcode_into_libs=yes
     16264  ;;
     16265
    1646316266irix5* | irix6* | nonstopux*)
    1646416267  case $host_os in
     
    1650416307
    1650516308# This must be Linux ELF.
    16506 linux*)
     16309linux* | k*bsd*-gnu)
    1650716310  version_type=linux
    1650816311  need_lib_prefix=no
     
    1652016323  # Append ld.so.conf contents to the search path
    1652116324  if test -f /etc/ld.so.conf; then
    16522     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
     16325    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    1652316326    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
    1652416327  fi
     
    1653116334  # assume the GNU/Linux dynamic linker is in use.
    1653216335  dynamic_linker='GNU/Linux ld.so'
    16533   ;;
    16534 
    16535 knetbsd*-gnu)
    16536   version_type=linux
    16537   need_lib_prefix=no
    16538   need_version=no
    16539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    16540   soname_spec='${libname}${release}${shared_ext}$major'
    16541   shlibpath_var=LD_LIBRARY_PATH
    16542   shlibpath_overrides_runpath=no
    16543   hardcode_into_libs=yes
    16544   dynamic_linker='GNU ld.so'
    1654516336  ;;
    1654616337
     
    1658216373openbsd*)
    1658316374  version_type=sunos
     16375  sys_lib_dlsearch_path_spec="/usr/lib"
    1658416376  need_lib_prefix=no
    1658516377  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
     
    1662516417  ;;
    1662616418
    16627 sco3.2v5*)
    16628   version_type=osf
    16629   soname_spec='${libname}${release}${shared_ext}$major'
    16630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    16631   shlibpath_var=LD_LIBRARY_PATH
     16419rdos*)
     16420  dynamic_linker=no
    1663216421  ;;
    1663316422
     
    1665716446  ;;
    1665816447
    16659 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
     16448sysv4 | sysv4.3*)
    1666016449  version_type=linux
    1666116450  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     
    1669016479  ;;
    1669116480
     16481sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
     16482  version_type=freebsd-elf
     16483  need_lib_prefix=no
     16484  need_version=no
     16485  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
     16486  soname_spec='${libname}${release}${shared_ext}$major'
     16487  shlibpath_var=LD_LIBRARY_PATH
     16488  hardcode_into_libs=yes
     16489  if test "$with_gnu_ld" = yes; then
     16490    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
     16491    shlibpath_overrides_runpath=no
     16492  else
     16493    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
     16494    shlibpath_overrides_runpath=yes
     16495    case $host_os in
     16496      sco3.2v5*)
     16497        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
     16498        ;;
     16499    esac
     16500  fi
     16501  sys_lib_dlsearch_path_spec='/usr/lib'
     16502  ;;
     16503
    1669216504uts4*)
    1669316505  version_type=linux
     
    1670416516echo "${ECHO_T}$dynamic_linker" >&6; }
    1670516517test "$dynamic_linker" = no && can_build_shared=no
     16518
     16519variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
     16520if test "$GCC" = yes; then
     16521  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
     16522fi
    1670616523
    1670716524{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
     
    1674216559fi
    1674316560
    16744 striplib=
    16745 old_striplib=
    16746 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
    16747 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
    16748 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
    16749   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
    16750   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
    16751   { echo "$as_me:$LINENO: result: yes" >&5
    16752 echo "${ECHO_T}yes" >&6; }
    16753 else
    16754 # FIXME - insert some real tests, host_os isn't really good enough
    16755   case $host_os in
    16756    darwin*)
    16757        if test -n "$STRIP" ; then
    16758          striplib="$STRIP -x"
    16759          { echo "$as_me:$LINENO: result: yes" >&5
    16760 echo "${ECHO_T}yes" >&6; }
    16761        else
    16762   { echo "$as_me:$LINENO: result: no" >&5
    16763 echo "${ECHO_T}no" >&6; }
    16764 fi
    16765        ;;
    16766    *)
    16767   { echo "$as_me:$LINENO: result: no" >&5
    16768 echo "${ECHO_T}no" >&6; }
    16769     ;;
    16770   esac
    16771 fi
    16772 
    16773 
    1677416561
    1677516562# The else clause should only fire when bootstrapping the
     
    1678616573  # careful not to overquote the AC_SUBSTed values.  We take copies of the
    1678716574  # variables and quote the copies for generation of the libtool script.
    16788   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
     16575  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    1678916576    SED SHELL STRIP \
    1679016577    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
     
    1682816615    module_expsym_cmds_F77 \
    1682916616    lt_cv_prog_compiler_c_o_F77 \
     16617    fix_srcfile_path_F77 \
    1683016618    exclude_expsyms_F77 \
    1683116619    include_expsyms_F77; do
     
    1690416692LTCC=$lt_LTCC
    1690516693
     16694# LTCC compiler flags.
     16695LTCFLAGS=$lt_LTCFLAGS
     16696
    1690616697# A language-specific compiler.
    1690716698CC=$lt_compiler_F77
     
    1714516936
    1714616937# Fix the shell variable \$srcfile for the compiler.
    17147 fix_srcfile_path="$fix_srcfile_path_F77"
     16938fix_srcfile_path=$lt_fix_srcfile_path
    1714816939
    1714916940# Set to yes if exported symbols are required.
     
    1720316994
    1720416995# Code to be used in simple compile tests
    17205 lt_simple_compile_test_code="class foo {}\n"
     16996lt_simple_compile_test_code="class foo {}"
    1720616997
    1720716998# Code to be used in simple link tests
    17208 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
     16999lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
    1720917000
    1721017001# ltmain only uses $CC for tagged configurations so make sure $CC is set.
     
    1721317004LTCC=${LTCC-"$CC"}
    1721417005
     17006# If no C compiler flags were specified, use CFLAGS.
     17007LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
     17008
    1721517009# Allow CC to be a program name with arguments.
    1721617010compiler=$CC
     
    1721917013# save warnings/boilerplate of simple test code
    1722017014ac_outfile=conftest.$ac_objext
    17221 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
    17222 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
     17015echo "$lt_simple_compile_test_code" >conftest.$ac_ext
     17016eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
    1722317017_lt_compiler_boilerplate=`cat conftest.err`
    1722417018$rm conftest*
    1722517019
    1722617020ac_outfile=conftest.$ac_objext
    17227 printf "$lt_simple_link_test_code" >conftest.$ac_ext
    17228 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
     17021echo "$lt_simple_link_test_code" >conftest.$ac_ext
     17022eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
    1722917023_lt_linker_boilerplate=`cat conftest.err`
    1723017024$rm conftest*
     
    1726617060  lt_cv_prog_compiler_rtti_exceptions=no
    1726717061  ac_outfile=conftest.$ac_objext
    17268    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     17062   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    1726917063   lt_compiler_flag="-fno-rtti -fno-exceptions"
    1727017064   # Insert the option either (1) after the last *FLAGS variable, or
     
    1727717071   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1727817072   -e 's:$: $lt_compiler_flag:'`
    17279    (eval echo "\"\$as_me:17279: $lt_compile\"" >&5)
     17073   (eval echo "\"\$as_me:17073: $lt_compile\"" >&5)
    1728017074   (eval "$lt_compile" 2>conftest.err)
    1728117075   ac_status=$?
    1728217076   cat conftest.err >&5
    17283    echo "$as_me:17283: \$? = $ac_status" >&5
     17077   echo "$as_me:17077: \$? = $ac_status" >&5
    1728417078   if (exit $ac_status) && test -s "$ac_outfile"; then
    1728517079     # The compiler can only warn and ignore the option if not recognized
    1728617080     # So say no if there are warnings other than the usual output.
    17287      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
    17288      $SED '/^$/d' conftest.err >conftest.er2
    17289      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
     17081     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     17082     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     17083     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
    1729017084       lt_cv_prog_compiler_rtti_exceptions=yes
    1729117085     fi
     
    1733217126      ;;
    1733317127
    17334     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
     17128    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
    1733517129      # PIC is the default for these OSes.
    1733617130      ;;
    1733717131
    17338     mingw* | pw32* | os2*)
     17132    mingw* | cygwin* | pw32* | os2*)
    1733917133      # This hack is so that the source file can tell whether it is being
    1734017134      # built for inclusion in a dll (and should export symbols for example).
     17135      # Although the cygwin gcc ignores -fPIC, still need this for old-style
     17136      # (--disable-auto-import) libraries
    1734117137      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
    1734217138      ;;
     
    1734617142      # Common symbols not allowed in MH_DYLIB files
    1734717143      lt_prog_compiler_pic_GCJ='-fno-common'
     17144      ;;
     17145
     17146    interix[3-9]*)
     17147      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
     17148      # Instead, we relocate shared libraries at runtime.
    1734817149      ;;
    1734917150
     
    1740117202       ;;
    1740217203
    17403     mingw* | pw32* | os2*)
     17204    mingw* | cygwin* | pw32* | os2*)
    1740417205      # This hack is so that the source file can tell whether it is being
    1740517206      # built for inclusion in a dll (and should export symbols for example).
     
    1743417235      ;;
    1743517236
    17436     linux*)
     17237    linux* | k*bsd*-gnu)
    1743717238      case $cc_basename in
    1743817239      icc* | ecc*)
     
    1745317254        lt_prog_compiler_static_GCJ='-non_shared'
    1745417255        ;;
     17256      *)
     17257        case `$CC -V 2>&1 | sed 5q` in
     17258        *Sun\ C*)
     17259          # Sun C 5.9
     17260          lt_prog_compiler_pic_GCJ='-KPIC'
     17261          lt_prog_compiler_static_GCJ='-Bstatic'
     17262          lt_prog_compiler_wl_GCJ='-Wl,'
     17263          ;;
     17264        *Sun\ F*)
     17265          # Sun Fortran 8.3 passes all unrecognized flags to the linker
     17266          lt_prog_compiler_pic_GCJ='-KPIC'
     17267          lt_prog_compiler_static_GCJ='-Bstatic'
     17268          lt_prog_compiler_wl_GCJ=''
     17269          ;;
     17270        esac
     17271        ;;
    1745517272      esac
    1745617273      ;;
     
    1746217279      ;;
    1746317280
    17464     sco3.2v5*)
    17465       lt_prog_compiler_pic_GCJ='-Kpic'
    17466       lt_prog_compiler_static_GCJ='-dn'
     17281    rdos*)
     17282      lt_prog_compiler_static_GCJ='-non_shared'
    1746717283      ;;
    1746817284
     
    1748417300      ;;
    1748517301
    17486     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
     17302    sysv4 | sysv4.2uw2* | sysv4.3*)
    1748717303      lt_prog_compiler_wl_GCJ='-Wl,'
    1748817304      lt_prog_compiler_pic_GCJ='-KPIC'
     
    1749717313      ;;
    1749817314
     17315    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
     17316      lt_prog_compiler_wl_GCJ='-Wl,'
     17317      lt_prog_compiler_pic_GCJ='-KPIC'
     17318      lt_prog_compiler_static_GCJ='-Bstatic'
     17319      ;;
     17320
    1749917321    unicos*)
    1750017322      lt_prog_compiler_wl_GCJ='-Wl,'
     
    1752817350  lt_prog_compiler_pic_works_GCJ=no
    1752917351  ac_outfile=conftest.$ac_objext
    17530    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     17352   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    1753117353   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
    1753217354   # Insert the option either (1) after the last *FLAGS variable, or
     
    1753917361   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1754017362   -e 's:$: $lt_compiler_flag:'`
    17541    (eval echo "\"\$as_me:17541: $lt_compile\"" >&5)
     17363   (eval echo "\"\$as_me:17363: $lt_compile\"" >&5)
    1754217364   (eval "$lt_compile" 2>conftest.err)
    1754317365   ac_status=$?
    1754417366   cat conftest.err >&5
    17545    echo "$as_me:17545: \$? = $ac_status" >&5
     17367   echo "$as_me:17367: \$? = $ac_status" >&5
    1754617368   if (exit $ac_status) && test -s "$ac_outfile"; then
    1754717369     # The compiler can only warn and ignore the option if not recognized
    1754817370     # So say no if there are warnings other than the usual output.
    17549      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
    17550      $SED '/^$/d' conftest.err >conftest.er2
    17551      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
     17371     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     17372     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     17373     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
    1755217374       lt_prog_compiler_pic_works_GCJ=yes
    1755317375     fi
     
    1758017402esac
    1758117403
     17404#
     17405# Check to make sure the static flag actually works.
     17406#
     17407wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
     17408{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
     17409echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
     17410if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
     17411  echo $ECHO_N "(cached) $ECHO_C" >&6
     17412else
     17413  lt_prog_compiler_static_works_GCJ=no
     17414   save_LDFLAGS="$LDFLAGS"
     17415   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
     17416   echo "$lt_simple_link_test_code" > conftest.$ac_ext
     17417   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     17418     # The linker can only warn and ignore the option if not recognized
     17419     # So say no if there are warnings
     17420     if test -s conftest.err; then
     17421       # Append any errors to the config.log.
     17422       cat conftest.err 1>&5
     17423       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
     17424       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     17425       if diff conftest.exp conftest.er2 >/dev/null; then
     17426         lt_prog_compiler_static_works_GCJ=yes
     17427       fi
     17428     else
     17429       lt_prog_compiler_static_works_GCJ=yes
     17430     fi
     17431   fi
     17432   $rm conftest*
     17433   LDFLAGS="$save_LDFLAGS"
     17434
     17435fi
     17436{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
     17437echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
     17438
     17439if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
     17440    :
     17441else
     17442    lt_prog_compiler_static_GCJ=
     17443fi
     17444
     17445
    1758217446{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
    1758317447echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
     
    1759017454   cd conftest
    1759117455   mkdir out
    17592    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     17456   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    1759317457
    1759417458   lt_compiler_flag="-o out/conftest2.$ac_objext"
     
    1760117465   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1760217466   -e 's:$: $lt_compiler_flag:'`
    17603    (eval echo "\"\$as_me:17603: $lt_compile\"" >&5)
     17467   (eval echo "\"\$as_me:17467: $lt_compile\"" >&5)
    1760417468   (eval "$lt_compile" 2>out/conftest.err)
    1760517469   ac_status=$?
    1760617470   cat out/conftest.err >&5
    17607    echo "$as_me:17607: \$? = $ac_status" >&5
     17471   echo "$as_me:17471: \$? = $ac_status" >&5
    1760817472   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1760917473   then
    1761017474     # The compiler can only warn and ignore the option if not recognized
    1761117475     # So say no if there are warnings
    17612      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
    17613      $SED '/^$/d' out/conftest.err >out/conftest.er2
    17614      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
     17476     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     17477     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     17478     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
    1761517479       lt_cv_prog_compiler_c_o_GCJ=yes
    1761617480     fi
     
    1771217576    fi
    1771317577    ;;
     17578  interix*)
     17579    # we just hope/assume this is gcc and not c89 (= MSVC++)
     17580    with_gnu_ld=yes
     17581    ;;
    1771417582  openbsd*)
    1771517583    with_gnu_ld=no
     
    1779317661      always_export_symbols_GCJ=no
    1779417662      enable_shared_with_static_runtimes_GCJ=yes
    17795       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
     17663      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
    1779617664
    1779717665      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
    17798         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
     17666        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    1779917667        # If the export-symbols file already is a .def file (1st line
    1780017668        # is EXPORTS), use it as is; otherwise, prepend...
     
    1780517673          cat $export_symbols >> $output_objdir/$soname.def;
    1780617674        fi~
    17807         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
     17675        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    1780817676      else
    1780917677        ld_shlibs_GCJ=no
     
    1781117679      ;;
    1781217680
    17813     linux*)
     17681    interix[3-9]*)
     17682      hardcode_direct_GCJ=no
     17683      hardcode_shlibpath_var_GCJ=no
     17684      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
     17685      export_dynamic_flag_spec_GCJ='${wl}-E'
     17686      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
     17687      # Instead, shared libraries are loaded at an image base (0x10000000 by
     17688      # default) and relocated if they conflict, which is a slow very memory
     17689      # consuming and fragmenting process.  To avoid this, we pick a random,
     17690      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
     17691      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
     17692      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
     17693      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
     17694      ;;
     17695
     17696    gnu* | linux* | k*bsd*-gnu)
    1781417697      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    1781517698        tmp_addflag=
     
    1782917712          tmp_addflag=' -nofor_main' ;;
    1783017713        esac
    17831         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     17714        case `$CC -V 2>&1 | sed 5q` in
     17715        *Sun\ C*)                       # Sun C 5.9
     17716          whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
     17717          tmp_sharedflag='-G' ;;
     17718        *Sun\ F*)                       # Sun Fortran 8.3
     17719          tmp_sharedflag='-G' ;;
     17720        *)
     17721          tmp_sharedflag='-shared' ;;
     17722        esac
     17723        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    1783217724
    1783317725        if test $supports_anon_versioning = yes; then
     
    1783517727  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
    1783617728  $echo "local: *; };" >> $output_objdir/$libname.ver~
    17837           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
     17729          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
    1783817730        fi
    1783917731      else
     
    1785217744      ;;
    1785317745
    17854     solaris* | sysv5*)
     17746    solaris*)
    1785517747      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
    1785617748        ld_shlibs_GCJ=no
     
    1787117763        ld_shlibs_GCJ=no
    1787217764      fi
     17765      ;;
     17766
     17767    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
     17768      case `$LD -v 2>&1` in
     17769        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
     17770        ld_shlibs_GCJ=no
     17771        cat <<_LT_EOF 1>&2
     17772
     17773*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
     17774*** reliably create shared libraries on SCO systems.  Therefore, libtool
     17775*** is disabling shared libraries support.  We urge you to upgrade GNU
     17776*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
     17777*** your PATH or compiler configuration so that the native linker is
     17778*** used, and then restart.
     17779
     17780_LT_EOF
     17781        ;;
     17782        *)
     17783          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
     17784            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
     17785            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
     17786            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
     17787          else
     17788            ld_shlibs_GCJ=no
     17789          fi
     17790        ;;
     17791      esac
    1787317792      ;;
    1787417793
     
    1790617825      # are no directories specified by -L.
    1790717826      hardcode_minus_L_GCJ=yes
    17908       if test "$GCC" = yes && test -z "$link_static_flag"; then
     17827      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
    1790917828        # Neither direct hardcoding nor static linking is supported with a
    1791017829        # broken collect2.
     
    1794017859          fi
    1794117860          done
     17861          ;;
    1794217862        esac
    1794317863
     
    1796617886          then
    1796717887          # We have reworked collect2
    17968           hardcode_direct_GCJ=yes
     17888          :
    1796917889          else
    1797017890          # We have old collect2
     
    1797717897          hardcode_libdir_separator_GCJ=
    1797817898          fi
     17899          ;;
    1797917900        esac
    1798017901        shared_flag='-shared'
     
    1798917910          shared_flag='-G'
    1799017911        else
    17991         if test "$aix_use_runtimelinking" = yes; then
     17912          if test "$aix_use_runtimelinking" = yes; then
    1799217913            shared_flag='${wl}-G'
    1799317914          else
    1799417915            shared_flag='${wl}-bM:SRE'
    17995         fi
     17916          fi
    1799617917        fi
    1799717918      fi
     
    1803917960       $as_test_x conftest$ac_exeext; then
    1804017961
    18041 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    18042 }'`
     17962lt_aix_libpath_sed='
     17963    /Import File Strings/,/^$/ {
     17964        /^0/ {
     17965            s/^0  *\(.*\)$/\1/
     17966            p
     17967        }
     17968    }'
     17969aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
    1804317970# Check for a 64-bit object if we didn't find anything.
    18044 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    18045 }'`; fi
     17971if test -z "$aix_libpath"; then
     17972  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     17973fi
    1804617974else
    1804717975  echo "$as_me: failed program was:" >&5
     
    1805617984
    1805717985       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
    18058         archive_expsym_cmds_GCJ="\$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"
     17986        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
    1805917987       else
    1806017988        if test "$host_cpu" = ia64; then
    1806117989          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
    1806217990          allow_undefined_flag_GCJ="-z nodefs"
    18063           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
     17991          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
    1806417992        else
    1806517993         # Determine the default libpath from the value encoded in an empty executable.
     
    1809818026       $as_test_x conftest$ac_exeext; then
    1809918027
    18100 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    18101 }'`
     18028lt_aix_libpath_sed='
     18029    /Import File Strings/,/^$/ {
     18030        /^0/ {
     18031            s/^0  *\(.*\)$/\1/
     18032            p
     18033        }
     18034    }'
     18035aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
    1810218036# Check for a 64-bit object if we didn't find anything.
    18103 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    18104 }'`; fi
     18037if test -z "$aix_libpath"; then
     18038  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     18039fi
    1810518040else
    1810618041  echo "$as_me: failed program was:" >&5
     
    1811918054          no_undefined_flag_GCJ=' ${wl}-bernotok'
    1812018055          allow_undefined_flag_GCJ=' ${wl}-berok'
    18121           # -bexpall does not export symbols beginning with underscore (_)
    18122           always_export_symbols_GCJ=yes
    1812318056          # Exported symbols can be pulled into shared objects from archives
    18124           whole_archive_flag_spec_GCJ=' '
     18057          whole_archive_flag_spec_GCJ='$convenience'
    1812518058          archive_cmds_need_lc_GCJ=yes
    1812618059          # This is similar to how AIX traditionally builds its shared libraries.
    18127           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
     18060          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
    1812818061        fi
    1812918062      fi
     
    1815818091      old_archive_From_new_cmds_GCJ='true'
    1815918092      # FIXME: Should let the user specify the lib program.
    18160       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
     18093      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
    1816118094      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
    1816218095      enable_shared_with_static_runtimes_GCJ=yes
     
    1820018133        xlc*)
    1820118134         output_verbose_link_cmd='echo'
    18202          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
     18135         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
    1820318136         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    1820418137          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
    18205          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
     18138         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    1820618139          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    1820718140          ;;
     
    1824318176
    1824418177    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    18245     freebsd* | kfreebsd*-gnu | dragonfly*)
     18178    freebsd* | dragonfly*)
    1824618179      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
    1824718180      hardcode_libdir_flag_spec_GCJ='-R$libdir'
     
    1826618199      ;;
    1826718200
    18268     hpux10* | hpux11*)
     18201    hpux10*)
     18202      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
     18203        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
     18204      else
     18205        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
     18206      fi
     18207      if test "$with_gnu_ld" = no; then
     18208        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
     18209        hardcode_libdir_separator_GCJ=:
     18210
     18211        hardcode_direct_GCJ=yes
     18212        export_dynamic_flag_spec_GCJ='${wl}-E'
     18213
     18214        # hardcode_minus_L: Not really in the search PATH,
     18215        # but as the default location of the library.
     18216        hardcode_minus_L_GCJ=yes
     18217      fi
     18218      ;;
     18219
     18220    hpux11*)
    1826918221      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
    1827018222        case $host_cpu in
    18271         hppa*64*|ia64*)
     18223        hppa*64*)
    1827218224          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
     18225          ;;
     18226        ia64*)
     18227          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
    1827318228          ;;
    1827418229        *)
     
    1827818233      else
    1827918234        case $host_cpu in
    18280         hppa*64*|ia64*)
    18281           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
     18235        hppa*64*)
     18236          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
     18237          ;;
     18238        ia64*)
     18239          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
    1828218240          ;;
    1828318241        *)
    18284           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
     18242          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
    1828518243          ;;
    1828618244        esac
    1828718245      fi
    1828818246      if test "$with_gnu_ld" = no; then
     18247        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
     18248        hardcode_libdir_separator_GCJ=:
     18249
    1828918250        case $host_cpu in
    18290         hppa*64*)
    18291           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
     18251        hppa*64*|ia64*)
    1829218252          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
    18293           hardcode_libdir_separator_GCJ=:
    1829418253          hardcode_direct_GCJ=no
    1829518254          hardcode_shlibpath_var_GCJ=no
    1829618255          ;;
    18297         ia64*)
    18298           hardcode_libdir_flag_spec_GCJ='-L$libdir'
    18299           hardcode_direct_GCJ=no
    18300           hardcode_shlibpath_var_GCJ=no
    18301 
    18302           # hardcode_minus_L: Not really in the search PATH,
    18303           # but as the default location of the library.
    18304           hardcode_minus_L_GCJ=yes
    18305           ;;
    1830618256        *)
    18307           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
    18308           hardcode_libdir_separator_GCJ=:
    1830918257          hardcode_direct_GCJ=yes
    1831018258          export_dynamic_flag_spec_GCJ='${wl}-E'
     
    1835018298
    1835118299    openbsd*)
    18352       hardcode_direct_GCJ=yes
    18353       hardcode_shlibpath_var_GCJ=no
    18354       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    18355         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    18356         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
    18357         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
    18358         export_dynamic_flag_spec_GCJ='${wl}-E'
     18300      if test -f /usr/libexec/ld.so; then
     18301        hardcode_direct_GCJ=yes
     18302        hardcode_shlibpath_var_GCJ=no
     18303        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     18304          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
     18305          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
     18306          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
     18307          export_dynamic_flag_spec_GCJ='${wl}-E'
     18308        else
     18309          case $host_os in
     18310           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
     18311             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
     18312             hardcode_libdir_flag_spec_GCJ='-R$libdir'
     18313             ;;
     18314           *)
     18315             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
     18316             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
     18317             ;;
     18318          esac
     18319        fi
    1835918320      else
    18360        case $host_os in
    18361          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
    18362            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    18363            hardcode_libdir_flag_spec_GCJ='-R$libdir'
    18364            ;;
    18365          *)
    18366            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    18367            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
    18368            ;;
    18369        esac
     18321        ld_shlibs_GCJ=no
    1837018322      fi
    1837118323      ;;
     
    1840618358      fi
    1840718359      hardcode_libdir_separator_GCJ=:
    18408       ;;
    18409 
    18410     sco3.2v5*)
    18411       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    18412       hardcode_shlibpath_var_GCJ=no
    18413       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
    18414       runpath_var=LD_RUN_PATH
    18415       hardcode_runpath_var=yes
    1841618360      ;;
    1841718361
     
    1843418378      solaris2.[0-5] | solaris2.[0-5].*) ;;
    1843518379      *)
    18436         # The compiler driver will combine linker options so we
    18437         # cannot just pass the convience library names through
    18438         # without $wl, iff we do not link with $LD.
    18439         # Luckily, gcc supports the same syntax we need for Sun Studio.
     18380        # The compiler driver will combine and reorder linker options,
     18381        # but understands `-z linker_flag'.  GCC discards it without `$wl',
     18382        # but is careful enough not to reorder.
    1844018383        # Supported since Solaris 2.6 (maybe 2.5.1?)
    18441         case $wlarc in
    18442         '')
    18443           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
    18444         *)
    18445           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
    18446         esac ;;
     18384        if test "$GCC" = yes; then
     18385          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
     18386        else
     18387          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
     18388        fi
     18389        ;;
    1844718390      esac
    1844818391      link_all_deplibs_GCJ=yes
     
    1850118444      ;;
    1850218445
    18503     sysv4.2uw2*)
    18504       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
    18505       hardcode_direct_GCJ=yes
    18506       hardcode_minus_L_GCJ=no
    18507       hardcode_shlibpath_var_GCJ=no
    18508       hardcode_runpath_var=yes
    18509       runpath_var=LD_RUN_PATH
    18510       ;;
    18511 
    18512    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
    18513       no_undefined_flag_GCJ='${wl}-z ${wl}text'
    18514       if test "$GCC" = yes; then
    18515         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    18516       else
    18517         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    18518       fi
    18519       runpath_var='LD_RUN_PATH'
    18520       hardcode_shlibpath_var_GCJ=no
    18521       ;;
    18522 
    18523     sysv5*)
    18524       no_undefined_flag_GCJ=' -z text'
    18525       # $CC -shared without GNU ld will not create a library from C++
    18526       # object files and a static libstdc++, better avoid it by now
    18527       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
    18528       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    18529                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
    18530       hardcode_libdir_flag_spec_GCJ=
     18446    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
     18447      no_undefined_flag_GCJ='${wl}-z,text'
     18448      archive_cmds_need_lc_GCJ=no
    1853118449      hardcode_shlibpath_var_GCJ=no
    1853218450      runpath_var='LD_RUN_PATH'
     18451
     18452      if test "$GCC" = yes; then
     18453        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     18454        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     18455      else
     18456        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     18457        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     18458      fi
     18459      ;;
     18460
     18461    sysv5* | sco3.2v5* | sco5v6*)
     18462      # Note: We can NOT use -z defs as we might desire, because we do not
     18463      # link with -lc, and that would cause any symbols used from libc to
     18464      # always be unresolved, which means just about no library would
     18465      # ever link correctly.  If we're not using GNU ld we use -z text
     18466      # though, which does catch some bad symbols but isn't as heavy-handed
     18467      # as -z defs.
     18468      no_undefined_flag_GCJ='${wl}-z,text'
     18469      allow_undefined_flag_GCJ='${wl}-z,nodefs'
     18470      archive_cmds_need_lc_GCJ=no
     18471      hardcode_shlibpath_var_GCJ=no
     18472      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
     18473      hardcode_libdir_separator_GCJ=':'
     18474      link_all_deplibs_GCJ=yes
     18475      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
     18476      runpath_var='LD_RUN_PATH'
     18477
     18478      if test "$GCC" = yes; then
     18479        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     18480        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     18481      else
     18482        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     18483        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     18484      fi
    1853318485      ;;
    1853418486
     
    1854818500echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
    1854918501test "$ld_shlibs_GCJ" = no && can_build_shared=no
    18550 
    18551 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
    18552 if test "$GCC" = yes; then
    18553   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
    18554 fi
    1855518502
    1855618503#
     
    1857418521echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
    1857518522      $rm conftest*
    18576       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     18523      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    1857718524
    1857818525      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     
    1858618533        deplibs=
    1858718534        wl=$lt_prog_compiler_wl_GCJ
     18535        pic_flag=$lt_prog_compiler_pic_GCJ
    1858818536        compiler_flags=-v
    1858918537        linker_flags=-v
     
    1863118579dynamic_linker="$host_os ld.so"
    1863218580sys_lib_dlsearch_path_spec="/lib /usr/lib"
    18633 if test "$GCC" = yes; then
    18634   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    18635   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    18636     # if the path contains ";" then we assume it to be the separator
    18637     # otherwise default to the standard path separator (i.e. ":") - it is
    18638     # assumed that no part of a normal pathname contains ";" but that should
    18639     # okay in the real world where ";" in dirpaths is itself problematic.
    18640     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
    18641   else
    18642     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    18643   fi
    18644 else
    18645   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
    18646 fi
     18581
    1864718582need_lib_prefix=unknown
    1864818583hardcode_into_libs=no
     
    1880118736  shlibpath_var=DYLD_LIBRARY_PATH
    1880218737  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
    18803   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
    18804   if test "$GCC" = yes; then
    18805     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
    18806   else
    18807     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
    18808   fi
     18738
    1880918739  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
    1881018740  ;;
     
    1882118751freebsd1*)
    1882218752  dynamic_linker=no
    18823   ;;
    18824 
    18825 kfreebsd*-gnu)
    18826   version_type=linux
    18827   need_lib_prefix=no
    18828   need_version=no
    18829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    18830   soname_spec='${libname}${release}${shared_ext}$major'
    18831   shlibpath_var=LD_LIBRARY_PATH
    18832   shlibpath_overrides_runpath=no
    18833   hardcode_into_libs=yes
    18834   dynamic_linker='GNU ld.so'
    1883518753  ;;
    1883618754
     
    1886718785    hardcode_into_libs=yes
    1886818786    ;;
    18869   *) # from 3.2 on
     18787  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
     18788  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    1887018789    shlibpath_overrides_runpath=no
     18790    hardcode_into_libs=yes
     18791    ;;
     18792  *) # from 4.6 on, and DragonFly
     18793    shlibpath_overrides_runpath=yes
    1887118794    hardcode_into_libs=yes
    1887218795    ;;
     
    1893018853  ;;
    1893118854
     18855interix[3-9]*)
     18856  version_type=linux
     18857  need_lib_prefix=no
     18858  need_version=no
     18859  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
     18860  soname_spec='${libname}${release}${shared_ext}$major'
     18861  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
     18862  shlibpath_var=LD_LIBRARY_PATH
     18863  shlibpath_overrides_runpath=no
     18864  hardcode_into_libs=yes
     18865  ;;
     18866
    1893218867irix5* | irix6* | nonstopux*)
    1893318868  case $host_os in
     
    1897318908
    1897418909# This must be Linux ELF.
    18975 linux*)
     18910linux* | k*bsd*-gnu)
    1897618911  version_type=linux
    1897718912  need_lib_prefix=no
     
    1898918924  # Append ld.so.conf contents to the search path
    1899018925  if test -f /etc/ld.so.conf; then
    18991     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
     18926    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    1899218927    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
    1899318928  fi
     
    1900018935  # assume the GNU/Linux dynamic linker is in use.
    1900118936  dynamic_linker='GNU/Linux ld.so'
    19002   ;;
    19003 
    19004 knetbsd*-gnu)
    19005   version_type=linux
    19006   need_lib_prefix=no
    19007   need_version=no
    19008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    19009   soname_spec='${libname}${release}${shared_ext}$major'
    19010   shlibpath_var=LD_LIBRARY_PATH
    19011   shlibpath_overrides_runpath=no
    19012   hardcode_into_libs=yes
    19013   dynamic_linker='GNU ld.so'
    1901418937  ;;
    1901518938
     
    1905118974openbsd*)
    1905218975  version_type=sunos
     18976  sys_lib_dlsearch_path_spec="/usr/lib"
    1905318977  need_lib_prefix=no
    1905418978  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
     
    1909419018  ;;
    1909519019
    19096 sco3.2v5*)
    19097   version_type=osf
    19098   soname_spec='${libname}${release}${shared_ext}$major'
    19099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    19100   shlibpath_var=LD_LIBRARY_PATH
     19020rdos*)
     19021  dynamic_linker=no
    1910119022  ;;
    1910219023
     
    1912619047  ;;
    1912719048
    19128 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
     19049sysv4 | sysv4.3*)
    1912919050  version_type=linux
    1913019051  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     
    1915919080  ;;
    1916019081
     19082sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
     19083  version_type=freebsd-elf
     19084  need_lib_prefix=no
     19085  need_version=no
     19086  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
     19087  soname_spec='${libname}${release}${shared_ext}$major'
     19088  shlibpath_var=LD_LIBRARY_PATH
     19089  hardcode_into_libs=yes
     19090  if test "$with_gnu_ld" = yes; then
     19091    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
     19092    shlibpath_overrides_runpath=no
     19093  else
     19094    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
     19095    shlibpath_overrides_runpath=yes
     19096    case $host_os in
     19097      sco3.2v5*)
     19098        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
     19099        ;;
     19100    esac
     19101  fi
     19102  sys_lib_dlsearch_path_spec='/usr/lib'
     19103  ;;
     19104
    1916119105uts4*)
    1916219106  version_type=linux
     
    1917319117echo "${ECHO_T}$dynamic_linker" >&6; }
    1917419118test "$dynamic_linker" = no && can_build_shared=no
     19119
     19120variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
     19121if test "$GCC" = yes; then
     19122  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
     19123fi
    1917519124
    1917619125{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
     
    1921119160fi
    1921219161
    19213 striplib=
    19214 old_striplib=
    19215 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
    19216 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
    19217 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
    19218   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
    19219   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
    19220   { echo "$as_me:$LINENO: result: yes" >&5
    19221 echo "${ECHO_T}yes" >&6; }
    19222 else
    19223 # FIXME - insert some real tests, host_os isn't really good enough
    19224   case $host_os in
    19225    darwin*)
    19226        if test -n "$STRIP" ; then
    19227          striplib="$STRIP -x"
    19228          { echo "$as_me:$LINENO: result: yes" >&5
    19229 echo "${ECHO_T}yes" >&6; }
    19230        else
    19231   { echo "$as_me:$LINENO: result: no" >&5
    19232 echo "${ECHO_T}no" >&6; }
    19233 fi
    19234        ;;
    19235    *)
    19236   { echo "$as_me:$LINENO: result: no" >&5
    19237 echo "${ECHO_T}no" >&6; }
    19238     ;;
    19239   esac
    19240 fi
    19241 
    19242 if test "x$enable_dlopen" != xyes; then
    19243   enable_dlopen=unknown
    19244   enable_dlopen_self=unknown
    19245   enable_dlopen_self_static=unknown
    19246 else
    19247   lt_cv_dlopen=no
    19248   lt_cv_dlopen_libs=
    19249 
    19250   case $host_os in
    19251   beos*)
    19252     lt_cv_dlopen="load_add_on"
    19253     lt_cv_dlopen_libs=
    19254     lt_cv_dlopen_self=yes
    19255     ;;
    19256 
    19257   mingw* | pw32*)
    19258     lt_cv_dlopen="LoadLibrary"
    19259     lt_cv_dlopen_libs=
    19260    ;;
    19261 
    19262   cygwin*)
    19263     lt_cv_dlopen="dlopen"
    19264     lt_cv_dlopen_libs=
    19265    ;;
    19266 
    19267   darwin*)
    19268   # if libdl is installed we need to link against it
    19269     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
    19270 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
    19271 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
    19272   echo $ECHO_N "(cached) $ECHO_C" >&6
    19273 else
    19274   ac_check_lib_save_LIBS=$LIBS
    19275 LIBS="-ldl  $LIBS"
    19276 cat >conftest.$ac_ext <<_ACEOF
    19277 /* confdefs.h.  */
    19278 _ACEOF
    19279 cat confdefs.h >>conftest.$ac_ext
    19280 cat >>conftest.$ac_ext <<_ACEOF
    19281 /* end confdefs.h.  */
    19282 
    19283 /* Override any GCC internal prototype to avoid an error.
    19284    Use char because int might match the return type of a GCC
    19285    builtin and then its argument prototype would still apply.  */
    19286 #ifdef __cplusplus
    19287 extern "C"
    19288 #endif
    19289 char dlopen ();
    19290 int
    19291 main ()
    19292 {
    19293 return dlopen ();
    19294   ;
    19295   return 0;
    19296 }
    19297 _ACEOF
    19298 rm -f conftest.$ac_objext conftest$ac_exeext
    19299 if { (ac_try="$ac_link"
    19300 case "(($ac_try" in
    19301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    19302   *) ac_try_echo=$ac_try;;
    19303 esac
    19304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    19305   (eval "$ac_link") 2>conftest.er1
    19306   ac_status=$?
    19307   grep -v '^ *+' conftest.er1 >conftest.err
    19308   rm -f conftest.er1
    19309   cat conftest.err >&5
    19310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19311   (exit $ac_status); } && {
    19312          test -z "$ac_c_werror_flag" ||
    19313          test ! -s conftest.err
    19314        } && test -s conftest$ac_exeext &&
    19315        $as_test_x conftest$ac_exeext; then
    19316   ac_cv_lib_dl_dlopen=yes
    19317 else
    19318   echo "$as_me: failed program was:" >&5
    19319 sed 's/^/| /' conftest.$ac_ext >&5
    19320 
    19321         ac_cv_lib_dl_dlopen=no
    19322 fi
    19323 
    19324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    19325       conftest$ac_exeext conftest.$ac_ext
    19326 LIBS=$ac_check_lib_save_LIBS
    19327 fi
    19328 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
    19329 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
    19330 if test $ac_cv_lib_dl_dlopen = yes; then
    19331   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
    19332 else
    19333 
    19334     lt_cv_dlopen="dyld"
    19335     lt_cv_dlopen_libs=
    19336     lt_cv_dlopen_self=yes
    19337 
    19338 fi
    19339 
    19340    ;;
    19341 
    19342   *)
    19343     { echo "$as_me:$LINENO: checking for shl_load" >&5
    19344 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
    19345 if test "${ac_cv_func_shl_load+set}" = set; then
    19346   echo $ECHO_N "(cached) $ECHO_C" >&6
    19347 else
    19348   cat >conftest.$ac_ext <<_ACEOF
    19349 /* confdefs.h.  */
    19350 _ACEOF
    19351 cat confdefs.h >>conftest.$ac_ext
    19352 cat >>conftest.$ac_ext <<_ACEOF
    19353 /* end confdefs.h.  */
    19354 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
    19355    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    19356 #define shl_load innocuous_shl_load
    19357 
    19358 /* System header to define __stub macros and hopefully few prototypes,
    19359     which can conflict with char shl_load (); below.
    19360     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    19361     <limits.h> exists even on freestanding compilers.  */
    19362 
    19363 #ifdef __STDC__
    19364 # include <limits.h>
    19365 #else
    19366 # include <assert.h>
    19367 #endif
    19368 
    19369 #undef shl_load
    19370 
    19371 /* Override any GCC internal prototype to avoid an error.
    19372    Use char because int might match the return type of a GCC
    19373    builtin and then its argument prototype would still apply.  */
    19374 #ifdef __cplusplus
    19375 extern "C"
    19376 #endif
    19377 char shl_load ();
    19378 /* The GNU C library defines this for functions which it implements
    19379     to always fail with ENOSYS.  Some functions are actually named
    19380     something starting with __ and the normal name is an alias.  */
    19381 #if defined __stub_shl_load || defined __stub___shl_load
    19382 choke me
    19383 #endif
    19384 
    19385 int
    19386 main ()
    19387 {
    19388 return shl_load ();
    19389   ;
    19390   return 0;
    19391 }
    19392 _ACEOF
    19393 rm -f conftest.$ac_objext conftest$ac_exeext
    19394 if { (ac_try="$ac_link"
    19395 case "(($ac_try" in
    19396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    19397   *) ac_try_echo=$ac_try;;
    19398 esac
    19399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    19400   (eval "$ac_link") 2>conftest.er1
    19401   ac_status=$?
    19402   grep -v '^ *+' conftest.er1 >conftest.err
    19403   rm -f conftest.er1
    19404   cat conftest.err >&5
    19405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19406   (exit $ac_status); } && {
    19407          test -z "$ac_c_werror_flag" ||
    19408          test ! -s conftest.err
    19409        } && test -s conftest$ac_exeext &&
    19410        $as_test_x conftest$ac_exeext; then
    19411   ac_cv_func_shl_load=yes
    19412 else
    19413   echo "$as_me: failed program was:" >&5
    19414 sed 's/^/| /' conftest.$ac_ext >&5
    19415 
    19416         ac_cv_func_shl_load=no
    19417 fi
    19418 
    19419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    19420       conftest$ac_exeext conftest.$ac_ext
    19421 fi
    19422 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
    19423 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
    19424 if test $ac_cv_func_shl_load = yes; then
    19425   lt_cv_dlopen="shl_load"
    19426 else
    19427   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
    19428 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
    19429 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
    19430   echo $ECHO_N "(cached) $ECHO_C" >&6
    19431 else
    19432   ac_check_lib_save_LIBS=$LIBS
    19433 LIBS="-ldld  $LIBS"
    19434 cat >conftest.$ac_ext <<_ACEOF
    19435 /* confdefs.h.  */
    19436 _ACEOF
    19437 cat confdefs.h >>conftest.$ac_ext
    19438 cat >>conftest.$ac_ext <<_ACEOF
    19439 /* end confdefs.h.  */
    19440 
    19441 /* Override any GCC internal prototype to avoid an error.
    19442    Use char because int might match the return type of a GCC
    19443    builtin and then its argument prototype would still apply.  */
    19444 #ifdef __cplusplus
    19445 extern "C"
    19446 #endif
    19447 char shl_load ();
    19448 int
    19449 main ()
    19450 {
    19451 return shl_load ();
    19452   ;
    19453   return 0;
    19454 }
    19455 _ACEOF
    19456 rm -f conftest.$ac_objext conftest$ac_exeext
    19457 if { (ac_try="$ac_link"
    19458 case "(($ac_try" in
    19459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    19460   *) ac_try_echo=$ac_try;;
    19461 esac
    19462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    19463   (eval "$ac_link") 2>conftest.er1
    19464   ac_status=$?
    19465   grep -v '^ *+' conftest.er1 >conftest.err
    19466   rm -f conftest.er1
    19467   cat conftest.err >&5
    19468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19469   (exit $ac_status); } && {
    19470          test -z "$ac_c_werror_flag" ||
    19471          test ! -s conftest.err
    19472        } && test -s conftest$ac_exeext &&
    19473        $as_test_x conftest$ac_exeext; then
    19474   ac_cv_lib_dld_shl_load=yes
    19475 else
    19476   echo "$as_me: failed program was:" >&5
    19477 sed 's/^/| /' conftest.$ac_ext >&5
    19478 
    19479         ac_cv_lib_dld_shl_load=no
    19480 fi
    19481 
    19482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    19483       conftest$ac_exeext conftest.$ac_ext
    19484 LIBS=$ac_check_lib_save_LIBS
    19485 fi
    19486 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
    19487 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
    19488 if test $ac_cv_lib_dld_shl_load = yes; then
    19489   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
    19490 else
    19491   { echo "$as_me:$LINENO: checking for dlopen" >&5
    19492 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
    19493 if test "${ac_cv_func_dlopen+set}" = set; then
    19494   echo $ECHO_N "(cached) $ECHO_C" >&6
    19495 else
    19496   cat >conftest.$ac_ext <<_ACEOF
    19497 /* confdefs.h.  */
    19498 _ACEOF
    19499 cat confdefs.h >>conftest.$ac_ext
    19500 cat >>conftest.$ac_ext <<_ACEOF
    19501 /* end confdefs.h.  */
    19502 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
    19503    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    19504 #define dlopen innocuous_dlopen
    19505 
    19506 /* System header to define __stub macros and hopefully few prototypes,
    19507     which can conflict with char dlopen (); below.
    19508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    19509     <limits.h> exists even on freestanding compilers.  */
    19510 
    19511 #ifdef __STDC__
    19512 # include <limits.h>
    19513 #else
    19514 # include <assert.h>
    19515 #endif
    19516 
    19517 #undef dlopen
    19518 
    19519 /* Override any GCC internal prototype to avoid an error.
    19520    Use char because int might match the return type of a GCC
    19521    builtin and then its argument prototype would still apply.  */
    19522 #ifdef __cplusplus
    19523 extern "C"
    19524 #endif
    19525 char dlopen ();
    19526 /* The GNU C library defines this for functions which it implements
    19527     to always fail with ENOSYS.  Some functions are actually named
    19528     something starting with __ and the normal name is an alias.  */
    19529 #if defined __stub_dlopen || defined __stub___dlopen
    19530 choke me
    19531 #endif
    19532 
    19533 int
    19534 main ()
    19535 {
    19536 return dlopen ();
    19537   ;
    19538   return 0;
    19539 }
    19540 _ACEOF
    19541 rm -f conftest.$ac_objext conftest$ac_exeext
    19542 if { (ac_try="$ac_link"
    19543 case "(($ac_try" in
    19544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    19545   *) ac_try_echo=$ac_try;;
    19546 esac
    19547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    19548   (eval "$ac_link") 2>conftest.er1
    19549   ac_status=$?
    19550   grep -v '^ *+' conftest.er1 >conftest.err
    19551   rm -f conftest.er1
    19552   cat conftest.err >&5
    19553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19554   (exit $ac_status); } && {
    19555          test -z "$ac_c_werror_flag" ||
    19556          test ! -s conftest.err
    19557        } && test -s conftest$ac_exeext &&
    19558        $as_test_x conftest$ac_exeext; then
    19559   ac_cv_func_dlopen=yes
    19560 else
    19561   echo "$as_me: failed program was:" >&5
    19562 sed 's/^/| /' conftest.$ac_ext >&5
    19563 
    19564         ac_cv_func_dlopen=no
    19565 fi
    19566 
    19567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    19568       conftest$ac_exeext conftest.$ac_ext
    19569 fi
    19570 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
    19571 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
    19572 if test $ac_cv_func_dlopen = yes; then
    19573   lt_cv_dlopen="dlopen"
    19574 else
    19575   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
    19576 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
    19577 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
    19578   echo $ECHO_N "(cached) $ECHO_C" >&6
    19579 else
    19580   ac_check_lib_save_LIBS=$LIBS
    19581 LIBS="-ldl  $LIBS"
    19582 cat >conftest.$ac_ext <<_ACEOF
    19583 /* confdefs.h.  */
    19584 _ACEOF
    19585 cat confdefs.h >>conftest.$ac_ext
    19586 cat >>conftest.$ac_ext <<_ACEOF
    19587 /* end confdefs.h.  */
    19588 
    19589 /* Override any GCC internal prototype to avoid an error.
    19590    Use char because int might match the return type of a GCC
    19591    builtin and then its argument prototype would still apply.  */
    19592 #ifdef __cplusplus
    19593 extern "C"
    19594 #endif
    19595 char dlopen ();
    19596 int
    19597 main ()
    19598 {
    19599 return dlopen ();
    19600   ;
    19601   return 0;
    19602 }
    19603 _ACEOF
    19604 rm -f conftest.$ac_objext conftest$ac_exeext
    19605 if { (ac_try="$ac_link"
    19606 case "(($ac_try" in
    19607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    19608   *) ac_try_echo=$ac_try;;
    19609 esac
    19610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    19611   (eval "$ac_link") 2>conftest.er1
    19612   ac_status=$?
    19613   grep -v '^ *+' conftest.er1 >conftest.err
    19614   rm -f conftest.er1
    19615   cat conftest.err >&5
    19616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19617   (exit $ac_status); } && {
    19618          test -z "$ac_c_werror_flag" ||
    19619          test ! -s conftest.err
    19620        } && test -s conftest$ac_exeext &&
    19621        $as_test_x conftest$ac_exeext; then
    19622   ac_cv_lib_dl_dlopen=yes
    19623 else
    19624   echo "$as_me: failed program was:" >&5
    19625 sed 's/^/| /' conftest.$ac_ext >&5
    19626 
    19627         ac_cv_lib_dl_dlopen=no
    19628 fi
    19629 
    19630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    19631       conftest$ac_exeext conftest.$ac_ext
    19632 LIBS=$ac_check_lib_save_LIBS
    19633 fi
    19634 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
    19635 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
    19636 if test $ac_cv_lib_dl_dlopen = yes; then
    19637   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
    19638 else
    19639   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
    19640 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
    19641 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
    19642   echo $ECHO_N "(cached) $ECHO_C" >&6
    19643 else
    19644   ac_check_lib_save_LIBS=$LIBS
    19645 LIBS="-lsvld  $LIBS"
    19646 cat >conftest.$ac_ext <<_ACEOF
    19647 /* confdefs.h.  */
    19648 _ACEOF
    19649 cat confdefs.h >>conftest.$ac_ext
    19650 cat >>conftest.$ac_ext <<_ACEOF
    19651 /* end confdefs.h.  */
    19652 
    19653 /* Override any GCC internal prototype to avoid an error.
    19654    Use char because int might match the return type of a GCC
    19655    builtin and then its argument prototype would still apply.  */
    19656 #ifdef __cplusplus
    19657 extern "C"
    19658 #endif
    19659 char dlopen ();
    19660 int
    19661 main ()
    19662 {
    19663 return dlopen ();
    19664   ;
    19665   return 0;
    19666 }
    19667 _ACEOF
    19668 rm -f conftest.$ac_objext conftest$ac_exeext
    19669 if { (ac_try="$ac_link"
    19670 case "(($ac_try" in
    19671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    19672   *) ac_try_echo=$ac_try;;
    19673 esac
    19674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    19675   (eval "$ac_link") 2>conftest.er1
    19676   ac_status=$?
    19677   grep -v '^ *+' conftest.er1 >conftest.err
    19678   rm -f conftest.er1
    19679   cat conftest.err >&5
    19680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19681   (exit $ac_status); } && {
    19682          test -z "$ac_c_werror_flag" ||
    19683          test ! -s conftest.err
    19684        } && test -s conftest$ac_exeext &&
    19685        $as_test_x conftest$ac_exeext; then
    19686   ac_cv_lib_svld_dlopen=yes
    19687 else
    19688   echo "$as_me: failed program was:" >&5
    19689 sed 's/^/| /' conftest.$ac_ext >&5
    19690 
    19691         ac_cv_lib_svld_dlopen=no
    19692 fi
    19693 
    19694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    19695       conftest$ac_exeext conftest.$ac_ext
    19696 LIBS=$ac_check_lib_save_LIBS
    19697 fi
    19698 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
    19699 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
    19700 if test $ac_cv_lib_svld_dlopen = yes; then
    19701   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
    19702 else
    19703   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
    19704 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
    19705 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
    19706   echo $ECHO_N "(cached) $ECHO_C" >&6
    19707 else
    19708   ac_check_lib_save_LIBS=$LIBS
    19709 LIBS="-ldld  $LIBS"
    19710 cat >conftest.$ac_ext <<_ACEOF
    19711 /* confdefs.h.  */
    19712 _ACEOF
    19713 cat confdefs.h >>conftest.$ac_ext
    19714 cat >>conftest.$ac_ext <<_ACEOF
    19715 /* end confdefs.h.  */
    19716 
    19717 /* Override any GCC internal prototype to avoid an error.
    19718    Use char because int might match the return type of a GCC
    19719    builtin and then its argument prototype would still apply.  */
    19720 #ifdef __cplusplus
    19721 extern "C"
    19722 #endif
    19723 char dld_link ();
    19724 int
    19725 main ()
    19726 {
    19727 return dld_link ();
    19728   ;
    19729   return 0;
    19730 }
    19731 _ACEOF
    19732 rm -f conftest.$ac_objext conftest$ac_exeext
    19733 if { (ac_try="$ac_link"
    19734 case "(($ac_try" in
    19735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    19736   *) ac_try_echo=$ac_try;;
    19737 esac
    19738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    19739   (eval "$ac_link") 2>conftest.er1
    19740   ac_status=$?
    19741   grep -v '^ *+' conftest.er1 >conftest.err
    19742   rm -f conftest.er1
    19743   cat conftest.err >&5
    19744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19745   (exit $ac_status); } && {
    19746          test -z "$ac_c_werror_flag" ||
    19747          test ! -s conftest.err
    19748        } && test -s conftest$ac_exeext &&
    19749        $as_test_x conftest$ac_exeext; then
    19750   ac_cv_lib_dld_dld_link=yes
    19751 else
    19752   echo "$as_me: failed program was:" >&5
    19753 sed 's/^/| /' conftest.$ac_ext >&5
    19754 
    19755         ac_cv_lib_dld_dld_link=no
    19756 fi
    19757 
    19758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    19759       conftest$ac_exeext conftest.$ac_ext
    19760 LIBS=$ac_check_lib_save_LIBS
    19761 fi
    19762 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
    19763 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
    19764 if test $ac_cv_lib_dld_dld_link = yes; then
    19765   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
    19766 fi
    19767 
    19768 
    19769 fi
    19770 
    19771 
    19772 fi
    19773 
    19774 
    19775 fi
    19776 
    19777 
    19778 fi
    19779 
    19780 
    19781 fi
    19782 
    19783     ;;
    19784   esac
    19785 
    19786   if test "x$lt_cv_dlopen" != xno; then
    19787     enable_dlopen=yes
    19788   else
    19789     enable_dlopen=no
    19790   fi
    19791 
    19792   case $lt_cv_dlopen in
    19793   dlopen)
    19794     save_CPPFLAGS="$CPPFLAGS"
    19795     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
    19796 
    19797     save_LDFLAGS="$LDFLAGS"
    19798     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
    19799 
    19800     save_LIBS="$LIBS"
    19801     LIBS="$lt_cv_dlopen_libs $LIBS"
    19802 
    19803     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
    19804 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
    19805 if test "${lt_cv_dlopen_self+set}" = set; then
    19806   echo $ECHO_N "(cached) $ECHO_C" >&6
    19807 else
    19808           if test "$cross_compiling" = yes; then :
    19809   lt_cv_dlopen_self=cross
    19810 else
    19811   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
    19812   lt_status=$lt_dlunknown
    19813   cat > conftest.$ac_ext <<EOF
    19814 #line 19814 "configure"
    19815 #include "confdefs.h"
    19816 
    19817 #if HAVE_DLFCN_H
    19818 #include <dlfcn.h>
    19819 #endif
    19820 
    19821 #include <stdio.h>
    19822 
    19823 #ifdef RTLD_GLOBAL
    19824 #  define LT_DLGLOBAL           RTLD_GLOBAL
    19825 #else
    19826 #  ifdef DL_GLOBAL
    19827 #    define LT_DLGLOBAL         DL_GLOBAL
    19828 #  else
    19829 #    define LT_DLGLOBAL         0
    19830 #  endif
    19831 #endif
    19832 
    19833 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
    19834    find out it does not work in some platform. */
    19835 #ifndef LT_DLLAZY_OR_NOW
    19836 #  ifdef RTLD_LAZY
    19837 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
    19838 #  else
    19839 #    ifdef DL_LAZY
    19840 #      define LT_DLLAZY_OR_NOW          DL_LAZY
    19841 #    else
    19842 #      ifdef RTLD_NOW
    19843 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
    19844 #      else
    19845 #        ifdef DL_NOW
    19846 #          define LT_DLLAZY_OR_NOW      DL_NOW
    19847 #        else
    19848 #          define LT_DLLAZY_OR_NOW      0
    19849 #        endif
    19850 #      endif
    19851 #    endif
    19852 #  endif
    19853 #endif
    19854 
    19855 #ifdef __cplusplus
    19856 extern "C" void exit (int);
    19857 #endif
    19858 
    19859 void fnord() { int i=42;}
    19860 int main ()
    19861 {
    19862   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
    19863   int status = $lt_dlunknown;
    19864 
    19865   if (self)
    19866     {
    19867       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
    19868       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
    19869       /* dlclose (self); */
    19870     }
    19871 
    19872     exit (status);
    19873 }
    19874 EOF
    19875   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    19876   (eval $ac_link) 2>&5
    19877   ac_status=$?
    19878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19879   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
    19880     (./conftest; exit; ) >&5 2>/dev/null
    19881     lt_status=$?
    19882     case x$lt_status in
    19883       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
    19884       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
    19885       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
    19886     esac
    19887   else :
    19888     # compilation failed
    19889     lt_cv_dlopen_self=no
    19890   fi
    19891 fi
    19892 rm -fr conftest*
    19893 
    19894 
    19895 fi
    19896 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
    19897 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
    19898 
    19899     if test "x$lt_cv_dlopen_self" = xyes; then
    19900       LDFLAGS="$LDFLAGS $link_static_flag"
    19901       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
    19902 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
    19903 if test "${lt_cv_dlopen_self_static+set}" = set; then
    19904   echo $ECHO_N "(cached) $ECHO_C" >&6
    19905 else
    19906           if test "$cross_compiling" = yes; then :
    19907   lt_cv_dlopen_self_static=cross
    19908 else
    19909   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
    19910   lt_status=$lt_dlunknown
    19911   cat > conftest.$ac_ext <<EOF
    19912 #line 19912 "configure"
    19913 #include "confdefs.h"
    19914 
    19915 #if HAVE_DLFCN_H
    19916 #include <dlfcn.h>
    19917 #endif
    19918 
    19919 #include <stdio.h>
    19920 
    19921 #ifdef RTLD_GLOBAL
    19922 #  define LT_DLGLOBAL           RTLD_GLOBAL
    19923 #else
    19924 #  ifdef DL_GLOBAL
    19925 #    define LT_DLGLOBAL         DL_GLOBAL
    19926 #  else
    19927 #    define LT_DLGLOBAL         0
    19928 #  endif
    19929 #endif
    19930 
    19931 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
    19932    find out it does not work in some platform. */
    19933 #ifndef LT_DLLAZY_OR_NOW
    19934 #  ifdef RTLD_LAZY
    19935 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
    19936 #  else
    19937 #    ifdef DL_LAZY
    19938 #      define LT_DLLAZY_OR_NOW          DL_LAZY
    19939 #    else
    19940 #      ifdef RTLD_NOW
    19941 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
    19942 #      else
    19943 #        ifdef DL_NOW
    19944 #          define LT_DLLAZY_OR_NOW      DL_NOW
    19945 #        else
    19946 #          define LT_DLLAZY_OR_NOW      0
    19947 #        endif
    19948 #      endif
    19949 #    endif
    19950 #  endif
    19951 #endif
    19952 
    19953 #ifdef __cplusplus
    19954 extern "C" void exit (int);
    19955 #endif
    19956 
    19957 void fnord() { int i=42;}
    19958 int main ()
    19959 {
    19960   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
    19961   int status = $lt_dlunknown;
    19962 
    19963   if (self)
    19964     {
    19965       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
    19966       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
    19967       /* dlclose (self); */
    19968     }
    19969 
    19970     exit (status);
    19971 }
    19972 EOF
    19973   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    19974   (eval $ac_link) 2>&5
    19975   ac_status=$?
    19976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19977   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
    19978     (./conftest; exit; ) >&5 2>/dev/null
    19979     lt_status=$?
    19980     case x$lt_status in
    19981       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
    19982       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
    19983       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
    19984     esac
    19985   else :
    19986     # compilation failed
    19987     lt_cv_dlopen_self_static=no
    19988   fi
    19989 fi
    19990 rm -fr conftest*
    19991 
    19992 
    19993 fi
    19994 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
    19995 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
    19996     fi
    19997 
    19998     CPPFLAGS="$save_CPPFLAGS"
    19999     LDFLAGS="$save_LDFLAGS"
    20000     LIBS="$save_LIBS"
    20001     ;;
    20002   esac
    20003 
    20004   case $lt_cv_dlopen_self in
    20005   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
    20006   *) enable_dlopen_self=unknown ;;
    20007   esac
    20008 
    20009   case $lt_cv_dlopen_self_static in
    20010   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
    20011   *) enable_dlopen_self_static=unknown ;;
    20012   esac
    20013 fi
    20014 
    2001519162
    2001619163# The else clause should only fire when bootstrapping the
     
    2002719174  # careful not to overquote the AC_SUBSTed values.  We take copies of the
    2002819175  # variables and quote the copies for generation of the libtool script.
    20029   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
     19176  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    2003019177    SED SHELL STRIP \
    2003119178    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
     
    2006919216    module_expsym_cmds_GCJ \
    2007019217    lt_cv_prog_compiler_c_o_GCJ \
     19218    fix_srcfile_path_GCJ \
    2007119219    exclude_expsyms_GCJ \
    2007219220    include_expsyms_GCJ; do
     
    2014519293LTCC=$lt_LTCC
    2014619294
     19295# LTCC compiler flags.
     19296LTCFLAGS=$lt_LTCFLAGS
     19297
    2014719298# A language-specific compiler.
    2014819299CC=$lt_compiler_GCJ
     
    2038619537
    2038719538# Fix the shell variable \$srcfile for the compiler.
    20388 fix_srcfile_path="$fix_srcfile_path_GCJ"
     19539fix_srcfile_path=$lt_fix_srcfile_path
    2038919540
    2039019541# Set to yes if exported symbols are required.
     
    2044319594
    2044419595# Code to be used in simple compile tests
    20445 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
     19596lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
    2044619597
    2044719598# Code to be used in simple link tests
     
    2045319604LTCC=${LTCC-"$CC"}
    2045419605
     19606# If no C compiler flags were specified, use CFLAGS.
     19607LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
     19608
    2045519609# Allow CC to be a program name with arguments.
    2045619610compiler=$CC
     
    2045919613# save warnings/boilerplate of simple test code
    2046019614ac_outfile=conftest.$ac_objext
    20461 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
    20462 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
     19615echo "$lt_simple_compile_test_code" >conftest.$ac_ext
     19616eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
    2046319617_lt_compiler_boilerplate=`cat conftest.err`
    2046419618$rm conftest*
    2046519619
    2046619620ac_outfile=conftest.$ac_objext
    20467 printf "$lt_simple_link_test_code" >conftest.$ac_ext
    20468 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
     19621echo "$lt_simple_link_test_code" >conftest.$ac_ext
     19622eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
    2046919623_lt_linker_boilerplate=`cat conftest.err`
    2047019624$rm conftest*
     
    2050119655  # careful not to overquote the AC_SUBSTed values.  We take copies of the
    2050219656  # variables and quote the copies for generation of the libtool script.
    20503   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
     19657  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    2050419658    SED SHELL STRIP \
    2050519659    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
     
    2054319697    module_expsym_cmds_RC \
    2054419698    lt_cv_prog_compiler_c_o_RC \
     19699    fix_srcfile_path_RC \
    2054519700    exclude_expsyms_RC \
    2054619701    include_expsyms_RC; do
     
    2061919774LTCC=$lt_LTCC
    2062019775
     19776# LTCC compiler flags.
     19777LTCFLAGS=$lt_LTCFLAGS
     19778
    2062119779# A language-specific compiler.
    2062219780CC=$lt_compiler_RC
     
    2086020018
    2086120019# Fix the shell variable \$srcfile for the compiler.
    20862 fix_srcfile_path="$fix_srcfile_path_RC"
     20020fix_srcfile_path=$lt_fix_srcfile_path
    2086320021
    2086420022# Set to yes if exported symbols are required.
     
    2097820136hardcode_libdir_separator_CXX=
    2097920137hardcode_minus_L_CXX=no
     20138hardcode_shlibpath_var_CXX=unsupported
    2098020139hardcode_automatic_CXX=no
    2098120140module_cmds_CXX=
     
    2100220161
    2100320162# Code to be used in simple compile tests
    21004 lt_simple_compile_test_code="int some_variable = 0;\n"
     20163lt_simple_compile_test_code="int some_variable = 0;"
    2100520164
    2100620165# Code to be used in simple link tests
    21007 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
     20166lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
    2100820167
    2100920168# ltmain only uses $CC for tagged configurations so make sure $CC is set.
     
    2101220171LTCC=${LTCC-"$CC"}
    2101320172
     20173# If no C compiler flags were specified, use CFLAGS.
     20174LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
     20175
    2101420176# Allow CC to be a program name with arguments.
    2101520177compiler=$CC
     
    2101820180# save warnings/boilerplate of simple test code
    2101920181ac_outfile=conftest.$ac_objext
    21020 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
    21021 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
     20182echo "$lt_simple_compile_test_code" >conftest.$ac_ext
     20183eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
    2102220184_lt_compiler_boilerplate=`cat conftest.err`
    2102320185$rm conftest*
    2102420186
    2102520187ac_outfile=conftest.$ac_objext
    21026 printf "$lt_simple_link_test_code" >conftest.$ac_ext
    21027 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
     20188echo "$lt_simple_link_test_code" >conftest.$ac_ext
     20189eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
    2102820190_lt_linker_boilerplate=`cat conftest.err`
    2102920191$rm conftest*
     
    2104020202  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
    2104120203else
    21042   unset lt_cv_prog_gnu_ld
     20204  $as_unset lt_cv_prog_gnu_ld
    2104320205fi
    2104420206if test -n "${lt_cv_path_LDCXX+set}"; then
    2104520207  lt_cv_path_LD=$lt_cv_path_LDCXX
    2104620208else
    21047   unset lt_cv_path_LD
     20209  $as_unset lt_cv_path_LD
    2104820210fi
    2104920211test -z "${LDCXX+set}" || LD=$LDCXX
     
    2125620418          esac
    2125720419        done
     20420        ;;
    2125820421      esac
    2125920422
     
    2128220445        then
    2128320446          # We have reworked collect2
    21284           hardcode_direct_CXX=yes
     20447          :
    2128520448        else
    2128620449          # We have old collect2
     
    2129320456          hardcode_libdir_separator_CXX=
    2129420457        fi
     20458        ;;
    2129520459      esac
    2129620460      shared_flag='-shared'
     
    2135520519       $as_test_x conftest$ac_exeext; then
    2135620520
    21357 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    21358 }'`
     20521lt_aix_libpath_sed='
     20522    /Import File Strings/,/^$/ {
     20523        /^0/ {
     20524            s/^0  *\(.*\)$/\1/
     20525            p
     20526        }
     20527    }'
     20528aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
    2135920529# Check for a 64-bit object if we didn't find anything.
    21360 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    21361 }'`; fi
     20530if test -z "$aix_libpath"; then
     20531  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     20532fi
    2136220533else
    2136320534  echo "$as_me: failed program was:" >&5
     
    2137320544      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
    2137420545
    21375       archive_expsym_cmds_CXX="\$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"
     20546      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
    2137620547     else
    2137720548      if test "$host_cpu" = ia64; then
    2137820549        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
    2137920550        allow_undefined_flag_CXX="-z nodefs"
    21380         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
     20551        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
    2138120552      else
    2138220553        # Determine the default libpath from the value encoded in an empty executable.
     
    2141520586       $as_test_x conftest$ac_exeext; then
    2141620587
    21417 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    21418 }'`
     20588lt_aix_libpath_sed='
     20589    /Import File Strings/,/^$/ {
     20590        /^0/ {
     20591            s/^0  *\(.*\)$/\1/
     20592            p
     20593        }
     20594    }'
     20595aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
    2141920596# Check for a 64-bit object if we didn't find anything.
    21420 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    21421 }'`; fi
     20597if test -z "$aix_libpath"; then
     20598  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     20599fi
    2142220600else
    2142320601  echo "$as_me: failed program was:" >&5
     
    2143620614        no_undefined_flag_CXX=' ${wl}-bernotok'
    2143720615        allow_undefined_flag_CXX=' ${wl}-berok'
    21438         # -bexpall does not export symbols beginning with underscore (_)
    21439         always_export_symbols_CXX=yes
    2144020616        # Exported symbols can be pulled into shared objects from archives
    21441         whole_archive_flag_spec_CXX=' '
     20617        whole_archive_flag_spec_CXX='$convenience'
    2144220618        archive_cmds_need_lc_CXX=yes
    2144320619        # This is similar to how AIX traditionally builds its shared libraries.
    21444         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
     20620        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
    2144520621      fi
    2144620622    fi
    2144720623    ;;
     20624
     20625  beos*)
     20626    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
     20627      allow_undefined_flag_CXX=unsupported
     20628      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
     20629      # support --undefined.  This deserves some investigation.  FIXME
     20630      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     20631    else
     20632      ld_shlibs_CXX=no
     20633    fi
     20634    ;;
     20635
    2144820636  chorus*)
    2144920637    case $cc_basename in
     
    2145520643    ;;
    2145620644
    21457 
    2145820645  cygwin* | mingw* | pw32*)
    2145920646    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
     
    2146520652
    2146620653    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
    21467       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
     20654      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    2146820655      # If the export-symbols file already is a .def file (1st line
    2146920656      # is EXPORTS), use it as is; otherwise, prepend...
     
    2147420661        cat $export_symbols >> $output_objdir/$soname.def;
    2147520662      fi~
    21476       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
     20663      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    2147720664    else
    2147820665      ld_shlibs_CXX=no
     
    2152920716        xlc*)
    2153020717         output_verbose_link_cmd='echo'
    21531           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
     20718          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
    2153220719          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    2153320720          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
    21534           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
     20721          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    2153520722          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    2153620723          ;;
     
    2156620753    archive_cmds_need_lc_CXX=no
    2156720754    ;;
    21568   freebsd* | kfreebsd*-gnu | dragonfly*)
     20755  freebsd* | dragonfly*)
    2156920756    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
    2157020757    # conventions
     
    2161120798  hpux10*|hpux11*)
    2161220799    if test $with_gnu_ld = no; then
     20800      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
     20801      hardcode_libdir_separator_CXX=:
     20802
    2161320803      case $host_cpu in
    21614       hppa*64*)
    21615         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
    21616         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
    21617         hardcode_libdir_separator_CXX=:
    21618         ;;
    21619       ia64*)
    21620         hardcode_libdir_flag_spec_CXX='-L$libdir'
    21621         ;;
     20804      hppa*64*|ia64*) ;;
    2162220805      *)
    21623         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
    21624         hardcode_libdir_separator_CXX=:
    2162520806        export_dynamic_flag_spec_CXX='${wl}-E'
    2162620807        ;;
     
    2162820809    fi
    2162920810    case $host_cpu in
    21630     hppa*64*)
     20811    hppa*64*|ia64*)
    2163120812      hardcode_direct_CXX=no
    2163220813      hardcode_shlibpath_var_CXX=no
    21633       ;;
    21634     ia64*)
    21635       hardcode_direct_CXX=no
    21636       hardcode_shlibpath_var_CXX=no
    21637       hardcode_minus_L_CXX=yes # Not in the search PATH,
    21638                                               # but as the default
    21639                                               # location of the library.
    2164020814      ;;
    2164120815    *)
     
    2165420828      aCC*)
    2165520829        case $host_cpu in
    21656         hppa*64*|ia64*)
    21657           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
     20830        hppa*64*)
     20831          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     20832          ;;
     20833        ia64*)
     20834          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    2165820835          ;;
    2165920836        *)
     
    2167520852          if test $with_gnu_ld = no; then
    2167620853            case $host_cpu in
    21677             ia64*|hppa*64*)
    21678               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
     20854            hppa*64*)
     20855              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     20856              ;;
     20857            ia64*)
     20858              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    2167920859              ;;
    2168020860            *)
     
    2168920869        ;;
    2169020870    esac
     20871    ;;
     20872  interix[3-9]*)
     20873    hardcode_direct_CXX=no
     20874    hardcode_shlibpath_var_CXX=no
     20875    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
     20876    export_dynamic_flag_spec_CXX='${wl}-E'
     20877    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
     20878    # Instead, shared libraries are loaded at an image base (0x10000000 by
     20879    # default) and relocated if they conflict, which is a slow very memory
     20880    # consuming and fragmenting process.  To avoid this, we pick a random,
     20881    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
     20882    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
     20883    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
     20884    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
    2169120885    ;;
    2169220886  irix5* | irix6*)
     
    2171620910    hardcode_libdir_separator_CXX=:
    2171720911    ;;
    21718   linux*)
     20912  linux* | k*bsd*-gnu)
    2171920913    case $cc_basename in
    2172020914      KCC*)
     
    2179520989        # dependencies.
    2179620990        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
     20991        ;;
     20992      *)
     20993        case `$CC -V 2>&1 | sed 5q` in
     20994        *Sun\ C*)
     20995          # Sun C++ 5.9
     20996          no_undefined_flag_CXX=' -zdefs'
     20997          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     20998          archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
     20999          hardcode_libdir_flag_spec_CXX='-R$libdir'
     21000          whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
     21001
     21002          # Not sure whether something based on
     21003          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
     21004          # would be better.
     21005          output_verbose_link_cmd='echo'
     21006
     21007          # Archives containing C++ object files must be created using
     21008          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
     21009          # necessary to make sure instantiated templates are included
     21010          # in the archive.
     21011          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
     21012          ;;
     21013        esac
    2179721014        ;;
    2179821015    esac
     
    2183421051    ;;
    2183521052  openbsd*)
    21836     hardcode_direct_CXX=yes
    21837     hardcode_shlibpath_var_CXX=no
    21838     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
    21839     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
    21840     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    21841       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
    21842       export_dynamic_flag_spec_CXX='${wl}-E'
    21843       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
     21053    if test -f /usr/libexec/ld.so; then
     21054      hardcode_direct_CXX=yes
     21055      hardcode_shlibpath_var_CXX=no
     21056      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
     21057      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
     21058      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     21059        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
     21060        export_dynamic_flag_spec_CXX='${wl}-E'
     21061        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
     21062      fi
     21063      output_verbose_link_cmd='echo'
     21064    else
     21065      ld_shlibs_CXX=no
    2184421066    fi
    21845     output_verbose_link_cmd='echo'
    2184621067    ;;
    2184721068  osf3*)
     
    2197121192    # FIXME: insert proper C++ library support
    2197221193    ld_shlibs_CXX=no
    21973     ;;
    21974   sco*)
    21975     archive_cmds_need_lc_CXX=no
    21976     case $cc_basename in
    21977       CC*)
    21978         # FIXME: insert proper C++ library support
    21979         ld_shlibs_CXX=no
    21980         ;;
    21981       *)
    21982         # FIXME: insert proper C++ library support
    21983         ld_shlibs_CXX=no
    21984         ;;
    21985     esac
    2198621194    ;;
    2198721195  sunos4*)
     
    2201821226          solaris2.[0-5] | solaris2.[0-5].*) ;;
    2201921227          *)
    22020             # The C++ compiler is used as linker so we must use $wl
    22021             # flag to pass the commands to the underlying system
    22022             # linker. We must also pass each convience library through
    22023             # to the system linker between allextract/defaultextract.
    22024             # The C++ compiler will combine linker options so we
    22025             # cannot just pass the convience library names through
    22026             # without $wl.
     21228            # The compiler driver will combine and reorder linker options,
     21229            # but understands `-z linker_flag'.
    2202721230            # Supported since Solaris 2.6 (maybe 2.5.1?)
    22028             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
     21231            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
    2202921232            ;;
    2203021233        esac
     
    2207321276
    2207421277          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
     21278          case $host_os in
     21279          solaris2.[0-5] | solaris2.[0-5].*) ;;
     21280          *)
     21281            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
     21282            ;;
     21283          esac
    2207521284        fi
    2207621285        ;;
    2207721286    esac
    2207821287    ;;
    22079   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
     21288  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
     21289    no_undefined_flag_CXX='${wl}-z,text'
    2208021290    archive_cmds_need_lc_CXX=no
     21291    hardcode_shlibpath_var_CXX=no
     21292    runpath_var='LD_RUN_PATH'
     21293
     21294    case $cc_basename in
     21295      CC*)
     21296        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     21297        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     21298        ;;
     21299      *)
     21300        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     21301        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     21302        ;;
     21303    esac
     21304    ;;
     21305  sysv5* | sco3.2v5* | sco5v6*)
     21306    # Note: We can NOT use -z defs as we might desire, because we do not
     21307    # link with -lc, and that would cause any symbols used from libc to
     21308    # always be unresolved, which means just about no library would
     21309    # ever link correctly.  If we're not using GNU ld we use -z text
     21310    # though, which does catch some bad symbols but isn't as heavy-handed
     21311    # as -z defs.
     21312    # For security reasons, it is highly recommended that you always
     21313    # use absolute paths for naming shared libraries, and exclude the
     21314    # DT_RUNPATH tag from executables and libraries.  But doing so
     21315    # requires that you compile everything twice, which is a pain.
     21316    # So that behaviour is only enabled if SCOABSPATH is set to a
     21317    # non-empty value in the environment.  Most likely only useful for
     21318    # creating official distributions of packages.
     21319    # This is a hack until libtool officially supports absolute path
     21320    # names for shared libraries.
     21321    no_undefined_flag_CXX='${wl}-z,text'
     21322    allow_undefined_flag_CXX='${wl}-z,nodefs'
     21323    archive_cmds_need_lc_CXX=no
     21324    hardcode_shlibpath_var_CXX=no
     21325    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
     21326    hardcode_libdir_separator_CXX=':'
     21327    link_all_deplibs_CXX=yes
     21328    export_dynamic_flag_spec_CXX='${wl}-Bexport'
     21329    runpath_var='LD_RUN_PATH'
     21330
     21331    case $cc_basename in
     21332      CC*)
     21333        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     21334        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     21335        ;;
     21336      *)
     21337        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     21338        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     21339        ;;
     21340    esac
    2208121341    ;;
    2208221342  tandem*)
     
    2221321473# PORTME: override above test on systems where it is broken
    2221421474case $host_os in
     21475interix[3-9]*)
     21476  # Interix 3.5 installs completely hosed .la files for C++, so rather than
     21477  # hack all around it, let's just trust "g++" to DTRT.
     21478  predep_objects_CXX=
     21479  postdep_objects_CXX=
     21480  postdeps_CXX=
     21481  ;;
     21482
     21483linux*)
     21484  case `$CC -V 2>&1 | sed 5q` in
     21485  *Sun\ C*)
     21486    # Sun C++ 5.9
     21487    #
     21488    # The more standards-conforming stlport4 library is
     21489    # incompatible with the Cstd library. Avoid specifying
     21490    # it if it's in CXXFLAGS. Ignore libCrun as
     21491    # -library=stlport4 depends on it.
     21492    case " $CXX $CXXFLAGS " in
     21493    *" -library=stlport4 "*)
     21494      solaris_use_stlport4=yes
     21495      ;;
     21496    esac
     21497    if test "$solaris_use_stlport4" != yes; then
     21498      postdeps_CXX='-library=Cstd -library=Crun'
     21499    fi
     21500    ;;
     21501  esac
     21502  ;;
     21503
    2221521504solaris*)
    2221621505  case $cc_basename in
    2221721506  CC*)
     21507    # The more standards-conforming stlport4 library is
     21508    # incompatible with the Cstd library. Avoid specifying
     21509    # it if it's in CXXFLAGS. Ignore libCrun as
     21510    # -library=stlport4 depends on it.
     21511    case " $CXX $CXXFLAGS " in
     21512    *" -library=stlport4 "*)
     21513      solaris_use_stlport4=yes
     21514      ;;
     21515    esac
     21516
    2221821517    # Adding this requires a known-good setup of shared libraries for
    2221921518    # Sun compiler versions before 5.6, else PIC objects from an old
    2222021519    # archive will be linked into the output, leading to subtle bugs.
    22221     postdeps_CXX='-lCstd -lCrun'
     21520    if test "$solaris_use_stlport4" != yes; then
     21521      postdeps_CXX='-library=Cstd -library=Crun'
     21522    fi
    2222221523    ;;
    2222321524  esac
     21525  ;;
    2222421526esac
    2222521527
     
    2225521557      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
    2225621558      ;;
    22257     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
     21559    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
    2225821560      # PIC is the default for these OSes.
    2225921561      ;;
    22260     mingw* | os2* | pw32*)
     21562    mingw* | cygwin* | os2* | pw32*)
    2226121563      # This hack is so that the source file can tell whether it is being
    2226221564      # built for inclusion in a dll (and should export symbols for example).
     21565      # Although the cygwin gcc ignores -fPIC, still need this for old-style
     21566      # (--disable-auto-import) libraries
    2226321567      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
    2226421568      ;;
     
    2227121575      # DJGPP does not support shared libraries at all
    2227221576      lt_prog_compiler_pic_CXX=
     21577      ;;
     21578    interix[3-9]*)
     21579      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
     21580      # Instead, we relocate shared libraries at runtime.
    2227321581      ;;
    2227421582    sysv4*MP*)
     
    2233421642        esac
    2233521643        ;;
    22336       freebsd* | kfreebsd*-gnu | dragonfly*)
     21644      freebsd* | dragonfly*)
    2233721645        # FreeBSD uses GNU C++
    2233821646        ;;
     
    2234121649          CC*)
    2234221650            lt_prog_compiler_wl_CXX='-Wl,'
    22343             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
     21651            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
    2234421652            if test "$host_cpu" != ia64; then
    2234521653              lt_prog_compiler_pic_CXX='+Z'
     
    2234821656          aCC*)
    2234921657            lt_prog_compiler_wl_CXX='-Wl,'
    22350             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
     21658            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
    2235121659            case $host_cpu in
    2235221660            hppa*64*|ia64*)
     
    2236221670        esac
    2236321671        ;;
     21672      interix*)
     21673        # This is c89, which is MS Visual C++ (no shared libs)
     21674        # Anyone wants to do a port?
     21675        ;;
    2236421676      irix5* | irix6* | nonstopux*)
    2236521677        case $cc_basename in
     
    2237321685        esac
    2237421686        ;;
    22375       linux*)
     21687      linux* | k*bsd*-gnu)
    2237621688        case $cc_basename in
    2237721689          KCC*)
     
    2240021712            ;;
    2240121713          *)
     21714            case `$CC -V 2>&1 | sed 5q` in
     21715            *Sun\ C*)
     21716              # Sun C++ 5.9
     21717              lt_prog_compiler_pic_CXX='-KPIC'
     21718              lt_prog_compiler_static_CXX='-Bstatic'
     21719              lt_prog_compiler_wl_CXX='-Qoption ld '
     21720              ;;
     21721            esac
    2240221722            ;;
    2240321723        esac
     
    2244021760        ;;
    2244121761      psos*)
    22442         ;;
    22443       sco*)
    22444         case $cc_basename in
    22445           CC*)
    22446             lt_prog_compiler_pic_CXX='-fPIC'
    22447             ;;
    22448           *)
    22449             ;;
    22450         esac
    2245121762        ;;
    2245221763      solaris*)
     
    2249121802        esac
    2249221803        ;;
    22493       unixware*)
     21804      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
     21805        case $cc_basename in
     21806          CC*)
     21807            lt_prog_compiler_wl_CXX='-Wl,'
     21808            lt_prog_compiler_pic_CXX='-KPIC'
     21809            lt_prog_compiler_static_CXX='-Bstatic'
     21810            ;;
     21811        esac
    2249421812        ;;
    2249521813      vxworks*)
     
    2251621834  lt_prog_compiler_pic_works_CXX=no
    2251721835  ac_outfile=conftest.$ac_objext
    22518    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     21836   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    2251921837   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
    2252021838   # Insert the option either (1) after the last *FLAGS variable, or
     
    2252721845   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    2252821846   -e 's:$: $lt_compiler_flag:'`
    22529    (eval echo "\"\$as_me:22529: $lt_compile\"" >&5)
     21847   (eval echo "\"\$as_me:21847: $lt_compile\"" >&5)
    2253021848   (eval "$lt_compile" 2>conftest.err)
    2253121849   ac_status=$?
    2253221850   cat conftest.err >&5
    22533    echo "$as_me:22533: \$? = $ac_status" >&5
     21851   echo "$as_me:21851: \$? = $ac_status" >&5
    2253421852   if (exit $ac_status) && test -s "$ac_outfile"; then
    2253521853     # The compiler can only warn and ignore the option if not recognized
    2253621854     # So say no if there are warnings other than the usual output.
    22537      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
    22538      $SED '/^$/d' conftest.err >conftest.er2
    22539      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
     21855     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     21856     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     21857     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
    2254021858       lt_prog_compiler_pic_works_CXX=yes
    2254121859     fi
     
    2256821886esac
    2256921887
     21888#
     21889# Check to make sure the static flag actually works.
     21890#
     21891wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
     21892{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
     21893echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
     21894if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
     21895  echo $ECHO_N "(cached) $ECHO_C" >&6
     21896else
     21897  lt_prog_compiler_static_works_CXX=no
     21898   save_LDFLAGS="$LDFLAGS"
     21899   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
     21900   echo "$lt_simple_link_test_code" > conftest.$ac_ext
     21901   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     21902     # The linker can only warn and ignore the option if not recognized
     21903     # So say no if there are warnings
     21904     if test -s conftest.err; then
     21905       # Append any errors to the config.log.
     21906       cat conftest.err 1>&5
     21907       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
     21908       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     21909       if diff conftest.exp conftest.er2 >/dev/null; then
     21910         lt_prog_compiler_static_works_CXX=yes
     21911       fi
     21912     else
     21913       lt_prog_compiler_static_works_CXX=yes
     21914     fi
     21915   fi
     21916   $rm conftest*
     21917   LDFLAGS="$save_LDFLAGS"
     21918
     21919fi
     21920{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
     21921echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
     21922
     21923if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
     21924    :
     21925else
     21926    lt_prog_compiler_static_CXX=
     21927fi
     21928
     21929
    2257021930{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
    2257121931echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
     
    2257821938   cd conftest
    2257921939   mkdir out
    22580    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     21940   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    2258121941
    2258221942   lt_compiler_flag="-o out/conftest2.$ac_objext"
     
    2258921949   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    2259021950   -e 's:$: $lt_compiler_flag:'`
    22591    (eval echo "\"\$as_me:22591: $lt_compile\"" >&5)
     21951   (eval echo "\"\$as_me:21951: $lt_compile\"" >&5)
    2259221952   (eval "$lt_compile" 2>out/conftest.err)
    2259321953   ac_status=$?
    2259421954   cat out/conftest.err >&5
    22595    echo "$as_me:22595: \$? = $ac_status" >&5
     21955   echo "$as_me:21955: \$? = $ac_status" >&5
    2259621956   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    2259721957   then
    2259821958     # The compiler can only warn and ignore the option if not recognized
    2259921959     # So say no if there are warnings
    22600      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
    22601      $SED '/^$/d' out/conftest.err >out/conftest.er2
    22602      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
     21960     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     21961     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     21962     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
    2260321963       lt_cv_prog_compiler_c_o_CXX=yes
    2260421964     fi
     
    2265922019  ;;
    2266022020  cygwin* | mingw*)
    22661     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
     22021    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
    2266222022  ;;
    2266322023  *)
     
    2266922029echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
    2267022030test "$ld_shlibs_CXX" = no && can_build_shared=no
    22671 
    22672 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
    22673 if test "$GCC" = yes; then
    22674   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
    22675 fi
    2267622031
    2267722032#
     
    2269522050echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
    2269622051      $rm conftest*
    22697       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     22052      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    2269822053
    2269922054      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     
    2270722062        deplibs=
    2270822063        wl=$lt_prog_compiler_wl_CXX
     22064        pic_flag=$lt_prog_compiler_pic_CXX
    2270922065        compiler_flags=-v
    2271022066        linker_flags=-v
     
    2275222108dynamic_linker="$host_os ld.so"
    2275322109sys_lib_dlsearch_path_spec="/lib /usr/lib"
    22754 if test "$GCC" = yes; then
    22755   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    22756   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    22757     # if the path contains ";" then we assume it to be the separator
    22758     # otherwise default to the standard path separator (i.e. ":") - it is
    22759     # assumed that no part of a normal pathname contains ";" but that should
    22760     # okay in the real world where ";" in dirpaths is itself problematic.
    22761     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
    22762   else
    22763     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    22764   fi
    22765 else
    22766   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
    22767 fi
     22110
    2276822111need_lib_prefix=unknown
    2276922112hardcode_into_libs=no
     
    2292222265  shlibpath_var=DYLD_LIBRARY_PATH
    2292322266  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
    22924   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
    22925   if test "$GCC" = yes; then
    22926     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
    22927   else
    22928     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
    22929   fi
     22267
    2293022268  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
    2293122269  ;;
     
    2294222280freebsd1*)
    2294322281  dynamic_linker=no
    22944   ;;
    22945 
    22946 kfreebsd*-gnu)
    22947   version_type=linux
    22948   need_lib_prefix=no
    22949   need_version=no
    22950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    22951   soname_spec='${libname}${release}${shared_ext}$major'
    22952   shlibpath_var=LD_LIBRARY_PATH
    22953   shlibpath_overrides_runpath=no
    22954   hardcode_into_libs=yes
    22955   dynamic_linker='GNU ld.so'
    2295622282  ;;
    2295722283
     
    2298822314    hardcode_into_libs=yes
    2298922315    ;;
    22990   *) # from 3.2 on
     22316  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
     22317  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    2299122318    shlibpath_overrides_runpath=no
     22319    hardcode_into_libs=yes
     22320    ;;
     22321  *) # from 4.6 on, and DragonFly
     22322    shlibpath_overrides_runpath=yes
    2299222323    hardcode_into_libs=yes
    2299322324    ;;
     
    2305122382  ;;
    2305222383
     22384interix[3-9]*)
     22385  version_type=linux
     22386  need_lib_prefix=no
     22387  need_version=no
     22388  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
     22389  soname_spec='${libname}${release}${shared_ext}$major'
     22390  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
     22391  shlibpath_var=LD_LIBRARY_PATH
     22392  shlibpath_overrides_runpath=no
     22393  hardcode_into_libs=yes
     22394  ;;
     22395
    2305322396irix5* | irix6* | nonstopux*)
    2305422397  case $host_os in
     
    2309422437
    2309522438# This must be Linux ELF.
    23096 linux*)
     22439linux* | k*bsd*-gnu)
    2309722440  version_type=linux
    2309822441  need_lib_prefix=no
     
    2311022453  # Append ld.so.conf contents to the search path
    2311122454  if test -f /etc/ld.so.conf; then
    23112     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
     22455    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    2311322456    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
    2311422457  fi
     
    2312122464  # assume the GNU/Linux dynamic linker is in use.
    2312222465  dynamic_linker='GNU/Linux ld.so'
    23123   ;;
    23124 
    23125 knetbsd*-gnu)
    23126   version_type=linux
    23127   need_lib_prefix=no
    23128   need_version=no
    23129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    23130   soname_spec='${libname}${release}${shared_ext}$major'
    23131   shlibpath_var=LD_LIBRARY_PATH
    23132   shlibpath_overrides_runpath=no
    23133   hardcode_into_libs=yes
    23134   dynamic_linker='GNU ld.so'
    2313522466  ;;
    2313622467
     
    2317222503openbsd*)
    2317322504  version_type=sunos
     22505  sys_lib_dlsearch_path_spec="/usr/lib"
    2317422506  need_lib_prefix=no
    2317522507  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
     
    2321522547  ;;
    2321622548
    23217 sco3.2v5*)
    23218   version_type=osf
    23219   soname_spec='${libname}${release}${shared_ext}$major'
    23220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    23221   shlibpath_var=LD_LIBRARY_PATH
     22549rdos*)
     22550  dynamic_linker=no
    2322222551  ;;
    2322322552
     
    2324722576  ;;
    2324822577
    23249 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
     22578sysv4 | sysv4.3*)
    2325022579  version_type=linux
    2325122580  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     
    2328022609  ;;
    2328122610
     22611sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
     22612  version_type=freebsd-elf
     22613  need_lib_prefix=no
     22614  need_version=no
     22615  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
     22616  soname_spec='${libname}${release}${shared_ext}$major'
     22617  shlibpath_var=LD_LIBRARY_PATH
     22618  hardcode_into_libs=yes
     22619  if test "$with_gnu_ld" = yes; then
     22620    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
     22621    shlibpath_overrides_runpath=no
     22622  else
     22623    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
     22624    shlibpath_overrides_runpath=yes
     22625    case $host_os in
     22626      sco3.2v5*)
     22627        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
     22628        ;;
     22629    esac
     22630  fi
     22631  sys_lib_dlsearch_path_spec='/usr/lib'
     22632  ;;
     22633
    2328222634uts4*)
    2328322635  version_type=linux
     
    2329422646echo "${ECHO_T}$dynamic_linker" >&6; }
    2329522647test "$dynamic_linker" = no && can_build_shared=no
     22648
     22649variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
     22650if test "$GCC" = yes; then
     22651  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
     22652fi
    2329622653
    2329722654{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
     
    2333222689fi
    2333322690
    23334 striplib=
    23335 old_striplib=
    23336 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
    23337 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
    23338 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
    23339   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
    23340   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
    23341   { echo "$as_me:$LINENO: result: yes" >&5
    23342 echo "${ECHO_T}yes" >&6; }
    23343 else
    23344 # FIXME - insert some real tests, host_os isn't really good enough
    23345   case $host_os in
    23346    darwin*)
    23347        if test -n "$STRIP" ; then
    23348          striplib="$STRIP -x"
    23349          { echo "$as_me:$LINENO: result: yes" >&5
    23350 echo "${ECHO_T}yes" >&6; }
    23351        else
    23352   { echo "$as_me:$LINENO: result: no" >&5
    23353 echo "${ECHO_T}no" >&6; }
    23354 fi
    23355        ;;
    23356    *)
    23357   { echo "$as_me:$LINENO: result: no" >&5
    23358 echo "${ECHO_T}no" >&6; }
    23359     ;;
    23360   esac
    23361 fi
    23362 
    23363 if test "x$enable_dlopen" != xyes; then
    23364   enable_dlopen=unknown
    23365   enable_dlopen_self=unknown
    23366   enable_dlopen_self_static=unknown
    23367 else
    23368   lt_cv_dlopen=no
    23369   lt_cv_dlopen_libs=
    23370 
    23371   case $host_os in
    23372   beos*)
    23373     lt_cv_dlopen="load_add_on"
    23374     lt_cv_dlopen_libs=
    23375     lt_cv_dlopen_self=yes
    23376     ;;
    23377 
    23378   mingw* | pw32*)
    23379     lt_cv_dlopen="LoadLibrary"
    23380     lt_cv_dlopen_libs=
    23381    ;;
    23382 
    23383   cygwin*)
    23384     lt_cv_dlopen="dlopen"
    23385     lt_cv_dlopen_libs=
    23386    ;;
    23387 
    23388   darwin*)
    23389   # if libdl is installed we need to link against it
    23390     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
    23391 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
    23392 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
    23393   echo $ECHO_N "(cached) $ECHO_C" >&6
    23394 else
    23395   ac_check_lib_save_LIBS=$LIBS
    23396 LIBS="-ldl  $LIBS"
    23397 cat >conftest.$ac_ext <<_ACEOF
    23398 /* confdefs.h.  */
    23399 _ACEOF
    23400 cat confdefs.h >>conftest.$ac_ext
    23401 cat >>conftest.$ac_ext <<_ACEOF
    23402 /* end confdefs.h.  */
    23403 
    23404 /* Override any GCC internal prototype to avoid an error.
    23405    Use char because int might match the return type of a GCC
    23406    builtin and then its argument prototype would still apply.  */
    23407 #ifdef __cplusplus
    23408 extern "C"
    23409 #endif
    23410 char dlopen ();
    23411 int
    23412 main ()
    23413 {
    23414 return dlopen ();
    23415   ;
    23416   return 0;
    23417 }
    23418 _ACEOF
    23419 rm -f conftest.$ac_objext conftest$ac_exeext
    23420 if { (ac_try="$ac_link"
    23421 case "(($ac_try" in
    23422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    23423   *) ac_try_echo=$ac_try;;
    23424 esac
    23425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    23426   (eval "$ac_link") 2>conftest.er1
    23427   ac_status=$?
    23428   grep -v '^ *+' conftest.er1 >conftest.err
    23429   rm -f conftest.er1
    23430   cat conftest.err >&5
    23431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23432   (exit $ac_status); } && {
    23433          test -z "$ac_cxx_werror_flag" ||
    23434          test ! -s conftest.err
    23435        } && test -s conftest$ac_exeext &&
    23436        $as_test_x conftest$ac_exeext; then
    23437   ac_cv_lib_dl_dlopen=yes
    23438 else
    23439   echo "$as_me: failed program was:" >&5
    23440 sed 's/^/| /' conftest.$ac_ext >&5
    23441 
    23442         ac_cv_lib_dl_dlopen=no
    23443 fi
    23444 
    23445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    23446       conftest$ac_exeext conftest.$ac_ext
    23447 LIBS=$ac_check_lib_save_LIBS
    23448 fi
    23449 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
    23450 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
    23451 if test $ac_cv_lib_dl_dlopen = yes; then
    23452   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
    23453 else
    23454 
    23455     lt_cv_dlopen="dyld"
    23456     lt_cv_dlopen_libs=
    23457     lt_cv_dlopen_self=yes
    23458 
    23459 fi
    23460 
    23461    ;;
    23462 
    23463   *)
    23464     { echo "$as_me:$LINENO: checking for shl_load" >&5
    23465 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
    23466 if test "${ac_cv_func_shl_load+set}" = set; then
    23467   echo $ECHO_N "(cached) $ECHO_C" >&6
    23468 else
    23469   cat >conftest.$ac_ext <<_ACEOF
    23470 /* confdefs.h.  */
    23471 _ACEOF
    23472 cat confdefs.h >>conftest.$ac_ext
    23473 cat >>conftest.$ac_ext <<_ACEOF
    23474 /* end confdefs.h.  */
    23475 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
    23476    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    23477 #define shl_load innocuous_shl_load
    23478 
    23479 /* System header to define __stub macros and hopefully few prototypes,
    23480     which can conflict with char shl_load (); below.
    23481     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    23482     <limits.h> exists even on freestanding compilers.  */
    23483 
    23484 #ifdef __STDC__
    23485 # include <limits.h>
    23486 #else
    23487 # include <assert.h>
    23488 #endif
    23489 
    23490 #undef shl_load
    23491 
    23492 /* Override any GCC internal prototype to avoid an error.
    23493    Use char because int might match the return type of a GCC
    23494    builtin and then its argument prototype would still apply.  */
    23495 #ifdef __cplusplus
    23496 extern "C"
    23497 #endif
    23498 char shl_load ();
    23499 /* The GNU C library defines this for functions which it implements
    23500     to always fail with ENOSYS.  Some functions are actually named
    23501     something starting with __ and the normal name is an alias.  */
    23502 #if defined __stub_shl_load || defined __stub___shl_load
    23503 choke me
    23504 #endif
    23505 
    23506 int
    23507 main ()
    23508 {
    23509 return shl_load ();
    23510   ;
    23511   return 0;
    23512 }
    23513 _ACEOF
    23514 rm -f conftest.$ac_objext conftest$ac_exeext
    23515 if { (ac_try="$ac_link"
    23516 case "(($ac_try" in
    23517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    23518   *) ac_try_echo=$ac_try;;
    23519 esac
    23520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    23521   (eval "$ac_link") 2>conftest.er1
    23522   ac_status=$?
    23523   grep -v '^ *+' conftest.er1 >conftest.err
    23524   rm -f conftest.er1
    23525   cat conftest.err >&5
    23526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23527   (exit $ac_status); } && {
    23528          test -z "$ac_cxx_werror_flag" ||
    23529          test ! -s conftest.err
    23530        } && test -s conftest$ac_exeext &&
    23531        $as_test_x conftest$ac_exeext; then
    23532   ac_cv_func_shl_load=yes
    23533 else
    23534   echo "$as_me: failed program was:" >&5
    23535 sed 's/^/| /' conftest.$ac_ext >&5
    23536 
    23537         ac_cv_func_shl_load=no
    23538 fi
    23539 
    23540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    23541       conftest$ac_exeext conftest.$ac_ext
    23542 fi
    23543 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
    23544 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
    23545 if test $ac_cv_func_shl_load = yes; then
    23546   lt_cv_dlopen="shl_load"
    23547 else
    23548   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
    23549 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
    23550 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
    23551   echo $ECHO_N "(cached) $ECHO_C" >&6
    23552 else
    23553   ac_check_lib_save_LIBS=$LIBS
    23554 LIBS="-ldld  $LIBS"
    23555 cat >conftest.$ac_ext <<_ACEOF
    23556 /* confdefs.h.  */
    23557 _ACEOF
    23558 cat confdefs.h >>conftest.$ac_ext
    23559 cat >>conftest.$ac_ext <<_ACEOF
    23560 /* end confdefs.h.  */
    23561 
    23562 /* Override any GCC internal prototype to avoid an error.
    23563    Use char because int might match the return type of a GCC
    23564    builtin and then its argument prototype would still apply.  */
    23565 #ifdef __cplusplus
    23566 extern "C"
    23567 #endif
    23568 char shl_load ();
    23569 int
    23570 main ()
    23571 {
    23572 return shl_load ();
    23573   ;
    23574   return 0;
    23575 }
    23576 _ACEOF
    23577 rm -f conftest.$ac_objext conftest$ac_exeext
    23578 if { (ac_try="$ac_link"
    23579 case "(($ac_try" in
    23580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    23581   *) ac_try_echo=$ac_try;;
    23582 esac
    23583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    23584   (eval "$ac_link") 2>conftest.er1
    23585   ac_status=$?
    23586   grep -v '^ *+' conftest.er1 >conftest.err
    23587   rm -f conftest.er1
    23588   cat conftest.err >&5
    23589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23590   (exit $ac_status); } && {
    23591          test -z "$ac_cxx_werror_flag" ||
    23592          test ! -s conftest.err
    23593        } && test -s conftest$ac_exeext &&
    23594        $as_test_x conftest$ac_exeext; then
    23595   ac_cv_lib_dld_shl_load=yes
    23596 else
    23597   echo "$as_me: failed program was:" >&5
    23598 sed 's/^/| /' conftest.$ac_ext >&5
    23599 
    23600         ac_cv_lib_dld_shl_load=no
    23601 fi
    23602 
    23603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    23604       conftest$ac_exeext conftest.$ac_ext
    23605 LIBS=$ac_check_lib_save_LIBS
    23606 fi
    23607 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
    23608 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
    23609 if test $ac_cv_lib_dld_shl_load = yes; then
    23610   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
    23611 else
    23612   { echo "$as_me:$LINENO: checking for dlopen" >&5
    23613 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
    23614 if test "${ac_cv_func_dlopen+set}" = set; then
    23615   echo $ECHO_N "(cached) $ECHO_C" >&6
    23616 else
    23617   cat >conftest.$ac_ext <<_ACEOF
    23618 /* confdefs.h.  */
    23619 _ACEOF
    23620 cat confdefs.h >>conftest.$ac_ext
    23621 cat >>conftest.$ac_ext <<_ACEOF
    23622 /* end confdefs.h.  */
    23623 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
    23624    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    23625 #define dlopen innocuous_dlopen
    23626 
    23627 /* System header to define __stub macros and hopefully few prototypes,
    23628     which can conflict with char dlopen (); below.
    23629     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    23630     <limits.h> exists even on freestanding compilers.  */
    23631 
    23632 #ifdef __STDC__
    23633 # include <limits.h>
    23634 #else
    23635 # include <assert.h>
    23636 #endif
    23637 
    23638 #undef dlopen
    23639 
    23640 /* Override any GCC internal prototype to avoid an error.
    23641    Use char because int might match the return type of a GCC
    23642    builtin and then its argument prototype would still apply.  */
    23643 #ifdef __cplusplus
    23644 extern "C"
    23645 #endif
    23646 char dlopen ();
    23647 /* The GNU C library defines this for functions which it implements
    23648     to always fail with ENOSYS.  Some functions are actually named
    23649     something starting with __ and the normal name is an alias.  */
    23650 #if defined __stub_dlopen || defined __stub___dlopen
    23651 choke me
    23652 #endif
    23653 
    23654 int
    23655 main ()
    23656 {
    23657 return dlopen ();
    23658   ;
    23659   return 0;
    23660 }
    23661 _ACEOF
    23662 rm -f conftest.$ac_objext conftest$ac_exeext
    23663 if { (ac_try="$ac_link"
    23664 case "(($ac_try" in
    23665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    23666   *) ac_try_echo=$ac_try;;
    23667 esac
    23668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    23669   (eval "$ac_link") 2>conftest.er1
    23670   ac_status=$?
    23671   grep -v '^ *+' conftest.er1 >conftest.err
    23672   rm -f conftest.er1
    23673   cat conftest.err >&5
    23674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23675   (exit $ac_status); } && {
    23676          test -z "$ac_cxx_werror_flag" ||
    23677          test ! -s conftest.err
    23678        } && test -s conftest$ac_exeext &&
    23679        $as_test_x conftest$ac_exeext; then
    23680   ac_cv_func_dlopen=yes
    23681 else
    23682   echo "$as_me: failed program was:" >&5
    23683 sed 's/^/| /' conftest.$ac_ext >&5
    23684 
    23685         ac_cv_func_dlopen=no
    23686 fi
    23687 
    23688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    23689       conftest$ac_exeext conftest.$ac_ext
    23690 fi
    23691 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
    23692 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
    23693 if test $ac_cv_func_dlopen = yes; then
    23694   lt_cv_dlopen="dlopen"
    23695 else
    23696   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
    23697 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
    23698 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
    23699   echo $ECHO_N "(cached) $ECHO_C" >&6
    23700 else
    23701   ac_check_lib_save_LIBS=$LIBS
    23702 LIBS="-ldl  $LIBS"
    23703 cat >conftest.$ac_ext <<_ACEOF
    23704 /* confdefs.h.  */
    23705 _ACEOF
    23706 cat confdefs.h >>conftest.$ac_ext
    23707 cat >>conftest.$ac_ext <<_ACEOF
    23708 /* end confdefs.h.  */
    23709 
    23710 /* Override any GCC internal prototype to avoid an error.
    23711    Use char because int might match the return type of a GCC
    23712    builtin and then its argument prototype would still apply.  */
    23713 #ifdef __cplusplus
    23714 extern "C"
    23715 #endif
    23716 char dlopen ();
    23717 int
    23718 main ()
    23719 {
    23720 return dlopen ();
    23721   ;
    23722   return 0;
    23723 }
    23724 _ACEOF
    23725 rm -f conftest.$ac_objext conftest$ac_exeext
    23726 if { (ac_try="$ac_link"
    23727 case "(($ac_try" in
    23728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    23729   *) ac_try_echo=$ac_try;;
    23730 esac
    23731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    23732   (eval "$ac_link") 2>conftest.er1
    23733   ac_status=$?
    23734   grep -v '^ *+' conftest.er1 >conftest.err
    23735   rm -f conftest.er1
    23736   cat conftest.err >&5
    23737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23738   (exit $ac_status); } && {
    23739          test -z "$ac_cxx_werror_flag" ||
    23740          test ! -s conftest.err
    23741        } && test -s conftest$ac_exeext &&
    23742        $as_test_x conftest$ac_exeext; then
    23743   ac_cv_lib_dl_dlopen=yes
    23744 else
    23745   echo "$as_me: failed program was:" >&5
    23746 sed 's/^/| /' conftest.$ac_ext >&5
    23747 
    23748         ac_cv_lib_dl_dlopen=no
    23749 fi
    23750 
    23751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    23752       conftest$ac_exeext conftest.$ac_ext
    23753 LIBS=$ac_check_lib_save_LIBS
    23754 fi
    23755 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
    23756 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
    23757 if test $ac_cv_lib_dl_dlopen = yes; then
    23758   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
    23759 else
    23760   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
    23761 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
    23762 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
    23763   echo $ECHO_N "(cached) $ECHO_C" >&6
    23764 else
    23765   ac_check_lib_save_LIBS=$LIBS
    23766 LIBS="-lsvld  $LIBS"
    23767 cat >conftest.$ac_ext <<_ACEOF
    23768 /* confdefs.h.  */
    23769 _ACEOF
    23770 cat confdefs.h >>conftest.$ac_ext
    23771 cat >>conftest.$ac_ext <<_ACEOF
    23772 /* end confdefs.h.  */
    23773 
    23774 /* Override any GCC internal prototype to avoid an error.
    23775    Use char because int might match the return type of a GCC
    23776    builtin and then its argument prototype would still apply.  */
    23777 #ifdef __cplusplus
    23778 extern "C"
    23779 #endif
    23780 char dlopen ();
    23781 int
    23782 main ()
    23783 {
    23784 return dlopen ();
    23785   ;
    23786   return 0;
    23787 }
    23788 _ACEOF
    23789 rm -f conftest.$ac_objext conftest$ac_exeext
    23790 if { (ac_try="$ac_link"
    23791 case "(($ac_try" in
    23792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    23793   *) ac_try_echo=$ac_try;;
    23794 esac
    23795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    23796   (eval "$ac_link") 2>conftest.er1
    23797   ac_status=$?
    23798   grep -v '^ *+' conftest.er1 >conftest.err
    23799   rm -f conftest.er1
    23800   cat conftest.err >&5
    23801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23802   (exit $ac_status); } && {
    23803          test -z "$ac_cxx_werror_flag" ||
    23804          test ! -s conftest.err
    23805        } && test -s conftest$ac_exeext &&
    23806        $as_test_x conftest$ac_exeext; then
    23807   ac_cv_lib_svld_dlopen=yes
    23808 else
    23809   echo "$as_me: failed program was:" >&5
    23810 sed 's/^/| /' conftest.$ac_ext >&5
    23811 
    23812         ac_cv_lib_svld_dlopen=no
    23813 fi
    23814 
    23815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    23816       conftest$ac_exeext conftest.$ac_ext
    23817 LIBS=$ac_check_lib_save_LIBS
    23818 fi
    23819 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
    23820 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
    23821 if test $ac_cv_lib_svld_dlopen = yes; then
    23822   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
    23823 else
    23824   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
    23825 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
    23826 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
    23827   echo $ECHO_N "(cached) $ECHO_C" >&6
    23828 else
    23829   ac_check_lib_save_LIBS=$LIBS
    23830 LIBS="-ldld  $LIBS"
    23831 cat >conftest.$ac_ext <<_ACEOF
    23832 /* confdefs.h.  */
    23833 _ACEOF
    23834 cat confdefs.h >>conftest.$ac_ext
    23835 cat >>conftest.$ac_ext <<_ACEOF
    23836 /* end confdefs.h.  */
    23837 
    23838 /* Override any GCC internal prototype to avoid an error.
    23839    Use char because int might match the return type of a GCC
    23840    builtin and then its argument prototype would still apply.  */
    23841 #ifdef __cplusplus
    23842 extern "C"
    23843 #endif
    23844 char dld_link ();
    23845 int
    23846 main ()
    23847 {
    23848 return dld_link ();
    23849   ;
    23850   return 0;
    23851 }
    23852 _ACEOF
    23853 rm -f conftest.$ac_objext conftest$ac_exeext
    23854 if { (ac_try="$ac_link"
    23855 case "(($ac_try" in
    23856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    23857   *) ac_try_echo=$ac_try;;
    23858 esac
    23859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    23860   (eval "$ac_link") 2>conftest.er1
    23861   ac_status=$?
    23862   grep -v '^ *+' conftest.er1 >conftest.err
    23863   rm -f conftest.er1
    23864   cat conftest.err >&5
    23865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23866   (exit $ac_status); } && {
    23867          test -z "$ac_cxx_werror_flag" ||
    23868          test ! -s conftest.err
    23869        } && test -s conftest$ac_exeext &&
    23870        $as_test_x conftest$ac_exeext; then
    23871   ac_cv_lib_dld_dld_link=yes
    23872 else
    23873   echo "$as_me: failed program was:" >&5
    23874 sed 's/^/| /' conftest.$ac_ext >&5
    23875 
    23876         ac_cv_lib_dld_dld_link=no
    23877 fi
    23878 
    23879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    23880       conftest$ac_exeext conftest.$ac_ext
    23881 LIBS=$ac_check_lib_save_LIBS
    23882 fi
    23883 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
    23884 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
    23885 if test $ac_cv_lib_dld_dld_link = yes; then
    23886   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
    23887 fi
    23888 
    23889 
    23890 fi
    23891 
    23892 
    23893 fi
    23894 
    23895 
    23896 fi
    23897 
    23898 
    23899 fi
    23900 
    23901 
    23902 fi
    23903 
    23904     ;;
    23905   esac
    23906 
    23907   if test "x$lt_cv_dlopen" != xno; then
    23908     enable_dlopen=yes
    23909   else
    23910     enable_dlopen=no
    23911   fi
    23912 
    23913   case $lt_cv_dlopen in
    23914   dlopen)
    23915     save_CPPFLAGS="$CPPFLAGS"
    23916     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
    23917 
    23918     save_LDFLAGS="$LDFLAGS"
    23919     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
    23920 
    23921     save_LIBS="$LIBS"
    23922     LIBS="$lt_cv_dlopen_libs $LIBS"
    23923 
    23924     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
    23925 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
    23926 if test "${lt_cv_dlopen_self+set}" = set; then
    23927   echo $ECHO_N "(cached) $ECHO_C" >&6
    23928 else
    23929           if test "$cross_compiling" = yes; then :
    23930   lt_cv_dlopen_self=cross
    23931 else
    23932   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
    23933   lt_status=$lt_dlunknown
    23934   cat > conftest.$ac_ext <<EOF
    23935 #line 23935 "configure"
    23936 #include "confdefs.h"
    23937 
    23938 #if HAVE_DLFCN_H
    23939 #include <dlfcn.h>
    23940 #endif
    23941 
    23942 #include <stdio.h>
    23943 
    23944 #ifdef RTLD_GLOBAL
    23945 #  define LT_DLGLOBAL           RTLD_GLOBAL
    23946 #else
    23947 #  ifdef DL_GLOBAL
    23948 #    define LT_DLGLOBAL         DL_GLOBAL
    23949 #  else
    23950 #    define LT_DLGLOBAL         0
    23951 #  endif
    23952 #endif
    23953 
    23954 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
    23955    find out it does not work in some platform. */
    23956 #ifndef LT_DLLAZY_OR_NOW
    23957 #  ifdef RTLD_LAZY
    23958 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
    23959 #  else
    23960 #    ifdef DL_LAZY
    23961 #      define LT_DLLAZY_OR_NOW          DL_LAZY
    23962 #    else
    23963 #      ifdef RTLD_NOW
    23964 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
    23965 #      else
    23966 #        ifdef DL_NOW
    23967 #          define LT_DLLAZY_OR_NOW      DL_NOW
    23968 #        else
    23969 #          define LT_DLLAZY_OR_NOW      0
    23970 #        endif
    23971 #      endif
    23972 #    endif
    23973 #  endif
    23974 #endif
    23975 
    23976 #ifdef __cplusplus
    23977 extern "C" void exit (int);
    23978 #endif
    23979 
    23980 void fnord() { int i=42;}
    23981 int main ()
    23982 {
    23983   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
    23984   int status = $lt_dlunknown;
    23985 
    23986   if (self)
    23987     {
    23988       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
    23989       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
    23990       /* dlclose (self); */
    23991     }
    23992 
    23993     exit (status);
    23994 }
    23995 EOF
    23996   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    23997   (eval $ac_link) 2>&5
    23998   ac_status=$?
    23999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    24000   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
    24001     (./conftest; exit; ) >&5 2>/dev/null
    24002     lt_status=$?
    24003     case x$lt_status in
    24004       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
    24005       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
    24006       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
    24007     esac
    24008   else :
    24009     # compilation failed
    24010     lt_cv_dlopen_self=no
    24011   fi
    24012 fi
    24013 rm -fr conftest*
    24014 
    24015 
    24016 fi
    24017 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
    24018 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
    24019 
    24020     if test "x$lt_cv_dlopen_self" = xyes; then
    24021       LDFLAGS="$LDFLAGS $link_static_flag"
    24022       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
    24023 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
    24024 if test "${lt_cv_dlopen_self_static+set}" = set; then
    24025   echo $ECHO_N "(cached) $ECHO_C" >&6
    24026 else
    24027           if test "$cross_compiling" = yes; then :
    24028   lt_cv_dlopen_self_static=cross
    24029 else
    24030   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
    24031   lt_status=$lt_dlunknown
    24032   cat > conftest.$ac_ext <<EOF
    24033 #line 24033 "configure"
    24034 #include "confdefs.h"
    24035 
    24036 #if HAVE_DLFCN_H
    24037 #include <dlfcn.h>
    24038 #endif
    24039 
    24040 #include <stdio.h>
    24041 
    24042 #ifdef RTLD_GLOBAL
    24043 #  define LT_DLGLOBAL           RTLD_GLOBAL
    24044 #else
    24045 #  ifdef DL_GLOBAL
    24046 #    define LT_DLGLOBAL         DL_GLOBAL
    24047 #  else
    24048 #    define LT_DLGLOBAL         0
    24049 #  endif
    24050 #endif
    24051 
    24052 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
    24053    find out it does not work in some platform. */
    24054 #ifndef LT_DLLAZY_OR_NOW
    24055 #  ifdef RTLD_LAZY
    24056 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
    24057 #  else
    24058 #    ifdef DL_LAZY
    24059 #      define LT_DLLAZY_OR_NOW          DL_LAZY
    24060 #    else
    24061 #      ifdef RTLD_NOW
    24062 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
    24063 #      else
    24064 #        ifdef DL_NOW
    24065 #          define LT_DLLAZY_OR_NOW      DL_NOW
    24066 #        else
    24067 #          define LT_DLLAZY_OR_NOW      0
    24068 #        endif
    24069 #      endif
    24070 #    endif
    24071 #  endif
    24072 #endif
    24073 
    24074 #ifdef __cplusplus
    24075 extern "C" void exit (int);
    24076 #endif
    24077 
    24078 void fnord() { int i=42;}
    24079 int main ()
    24080 {
    24081   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
    24082   int status = $lt_dlunknown;
    24083 
    24084   if (self)
    24085     {
    24086       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
    24087       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
    24088       /* dlclose (self); */
    24089     }
    24090 
    24091     exit (status);
    24092 }
    24093 EOF
    24094   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    24095   (eval $ac_link) 2>&5
    24096   ac_status=$?
    24097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    24098   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
    24099     (./conftest; exit; ) >&5 2>/dev/null
    24100     lt_status=$?
    24101     case x$lt_status in
    24102       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
    24103       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
    24104       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
    24105     esac
    24106   else :
    24107     # compilation failed
    24108     lt_cv_dlopen_self_static=no
    24109   fi
    24110 fi
    24111 rm -fr conftest*
    24112 
    24113 
    24114 fi
    24115 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
    24116 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
    24117     fi
    24118 
    24119     CPPFLAGS="$save_CPPFLAGS"
    24120     LDFLAGS="$save_LDFLAGS"
    24121     LIBS="$save_LIBS"
    24122     ;;
    24123   esac
    24124 
    24125   case $lt_cv_dlopen_self in
    24126   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
    24127   *) enable_dlopen_self=unknown ;;
    24128   esac
    24129 
    24130   case $lt_cv_dlopen_self_static in
    24131   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
    24132   *) enable_dlopen_self_static=unknown ;;
    24133   esac
    24134 fi
    24135 
    2413622691
    2413722692# The else clause should only fire when bootstrapping the
     
    2414822703  # careful not to overquote the AC_SUBSTed values.  We take copies of the
    2414922704  # variables and quote the copies for generation of the libtool script.
    24150   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
     22705  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    2415122706    SED SHELL STRIP \
    2415222707    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
     
    2419022745    module_expsym_cmds_CXX \
    2419122746    lt_cv_prog_compiler_c_o_CXX \
     22747    fix_srcfile_path_CXX \
    2419222748    exclude_expsyms_CXX \
    2419322749    include_expsyms_CXX; do
     
    2426622822LTCC=$lt_LTCC
    2426722823
     22824# LTCC compiler flags.
     22825LTCFLAGS=$lt_LTCFLAGS
     22826
    2426822827# A language-specific compiler.
    2426922828CC=$lt_compiler_CXX
     
    2450723066
    2450823067# Fix the shell variable \$srcfile for the compiler.
    24509 fix_srcfile_path="$fix_srcfile_path_CXX"
     23068fix_srcfile_path=$lt_fix_srcfile_path
    2451023069
    2451123070# Set to yes if exported symbols are required.
     
    2457923138  ogre_prog_compiler_supports_visibility=no
    2458023139  ac_outfile=conftest.$ac_objext
    24581    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     23140   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    2458223141   lt_compiler_flag="-fvisibility=hidden -fvisibility-inlines-hidden"
    2458323142   # Insert the option either (1) after the last *FLAGS variable, or
     
    2459023149   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    2459123150   -e 's:$: $lt_compiler_flag:'`
    24592    (eval echo "\"\$as_me:24592: $lt_compile\"" >&5)
     23151   (eval echo "\"\$as_me:23151: $lt_compile\"" >&5)
    2459323152   (eval "$lt_compile" 2>conftest.err)
    2459423153   ac_status=$?
    2459523154   cat conftest.err >&5
    24596    echo "$as_me:24596: \$? = $ac_status" >&5
     23155   echo "$as_me:23155: \$? = $ac_status" >&5
    2459723156   if (exit $ac_status) && test -s "$ac_outfile"; then
    2459823157     # The compiler can only warn and ignore the option if not recognized
    2459923158     # So say no if there are warnings other than the usual output.
    24600      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
    24601      $SED '/^$/d' conftest.err >conftest.er2
    24602      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
     23159     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     23160     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     23161     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
    2460323162       ogre_prog_compiler_supports_visibility=yes
    2460423163     fi
     
    2549024049
    2549124050
    25492 
    25493 
    25494 if test x$build_unit_tests = xtrue; then
     24051 if test x$build_unit_tests = xtrue; then
    2549524052  BUILD_UNIT_TESTS_TRUE=
    2549624053  BUILD_UNIT_TESTS_FALSE='#'
     
    2571324270See the pkg-config man page for more details.
    2571424271
    25715 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
     24272To get pkg-config, see <http://pkg-config.freedesktop.org/>.
    2571624273See \`config.log' for more details." >&5
    2571724274echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
     
    2572324280See the pkg-config man page for more details.
    2572424281
    25725 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
     24282To get pkg-config, see <http://pkg-config.freedesktop.org/>.
    2572624283See \`config.log' for more details." >&2;}
    2572724284   { (exit 1); exit 1; }; }
     
    2679325350        echo "$GTK_PKG_ERRORS" >&5
    2679425351
     25352        { echo "$as_me:$LINENO: result: no" >&5
     25353echo "${ECHO_T}no" >&6; }
    2679525354
    2679625355            if test "x$with_gui" == "xgtk"; then
     
    2704025599
    2704125600
    27042 
    27043 
    27044 if test x$build_freeimage = xyes; then
     25601 if test x$build_freeimage = xyes; then
    2704525602  USE_FREEIMAGE_TRUE=
    2704625603  USE_FREEIMAGE_FALSE='#'
     
    2716525722
    2716625723
    27167 
    27168 
    27169 if test x$build_il = xyes && test x$build_freeimage = xno; then
     25724 if test x$build_il = xyes && test x$build_freeimage = xno; then
    2717025725  USE_DEVIL_TRUE=
    2717125726  USE_DEVIL_FALSE='#'
     
    2746526020fi
    2746626021
    27467 
    27468 
    27469 if test x$build_cg = xyes; then
     26022 if test x$build_cg = xyes; then
    2747026023  BUILD_CGPLUGIN_TRUE=
    2747126024  BUILD_CGPLUGIN_FALSE='#'
     
    2754526098        echo "$OPENEXR_PKG_ERRORS" >&5
    2754626099
    27547         build_exr=no
     26100        { echo "$as_me:$LINENO: result: no" >&5
     26101echo "${ECHO_T}no" >&6; }
     26102                build_exr=no
    2754826103elif test $pkg_failed = untried; then
    2754926104        build_exr=no
     
    2756626121fi
    2756726122
    27568 
    27569 
    27570 if test x$build_exr = xyes; then
     26123 if test x$build_exr = xyes; then
    2757126124  BUILD_EXRPLUGIN_TRUE=
    2757226125  BUILD_EXRPLUGIN_FALSE='#'
     
    2758626139
    2758726140
    27588 
    27589 
    27590 if test x$build_dx9 = xyes; then
     26141 if test x$build_dx9 = xyes; then
    2759126142  BUILD_DX9RENDERSYSTEM_TRUE=
    2759226143  BUILD_DX9RENDERSYSTEM_FALSE='#'
     
    2761126162{ echo "$as_me:$LINENO: result: $build_sse" >&5
    2761226163echo "${ECHO_T}$build_sse" >&6; }
    27613 
    27614 
    27615 if test x$build_sse = xyes; then
     26164 if test x$build_sse = xyes; then
    2761626165  OGRE_BUILD_SSE_TRUE=
    2761726166  OGRE_BUILD_SSE_FALSE='#'
     
    2762326172
    2762426173
    27625 
    27626 
    27627 if test "x$OGRE_PLATFORM" = "x$OGRE_GUI"; then
     26174 if test "x$OGRE_PLATFORM" = "x$OGRE_GUI"; then
    2762826175  SAME_PLATFORM_AND_GUI_TRUE=
    2762926176  SAME_PLATFORM_AND_GUI_FALSE='#'
     
    2770426251        echo "$OIS_PKG_ERRORS" >&5
    2770526252
    27706         ois_found=no
     26253        { echo "$as_me:$LINENO: result: no" >&5
     26254echo "${ECHO_T}no" >&6; }
     26255                ois_found=no
    2770726256elif test $pkg_failed = untried; then
    2770826257        ois_found=no
     
    2774526294    fi
    2774626295
    27747 
    27748 
    27749 if test x$build_ogre_demos = xyes; then
     26296     if test x$build_ogre_demos = xyes; then
    2775026297  OGRE_BUILDING_DEMOS_TRUE=
    2775126298  OGRE_BUILDING_DEMOS_FALSE='#'
     
    2790326450        echo "$CEGUI_PKG_ERRORS" >&5
    2790426451
    27905         build_cegui_sample=false
     26452        { echo "$as_me:$LINENO: result: no" >&5
     26453echo "${ECHO_T}no" >&6; }
     26454                build_cegui_sample=false
    2790626455elif test $pkg_failed = untried; then
    2790726456        build_cegui_sample=false
     
    2792426473echo "${ECHO_T}CEGUI not available, Gui and FacialAnimation samples will not be built" >&6; }
    2792526474    fi
    27926 
    27927 
    27928 if test x$build_cegui_sample = xtrue; then
     26475     if test x$build_cegui_sample = xtrue; then
    2792926476  HAVE_CEGUI_TRUE=
    2793026477  HAVE_CEGUI_FALSE='#'
     
    2851927066srcdir='$srcdir'
    2852027067INSTALL='$INSTALL'
     27068MKDIR_P='$MKDIR_P'
    2852127069_ACEOF
    2852227070
     
    2887827426INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
    2887927427INSTALL_DATA!$INSTALL_DATA$ac_delim
     27428am__isrc!$am__isrc$ac_delim
    2888027429CYGPATH_W!$CYGPATH_W$ac_delim
    2888127430PACKAGE!$PACKAGE$ac_delim
     
    2892227471LEX!$LEX$ac_delim
    2892327472LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
    28924 LEXLIB!$LEXLIB$ac_delim
    2892527473_ACEOF
    2892627474
     
    2896427512for ac_last_try in false false false false false :; do
    2896527513  cat >conf$$subs.sed <<_ACEOF
     27514LEXLIB!$LEXLIB$ac_delim
    2896627515SHARED_FLAGS!$SHARED_FLAGS$ac_delim
    2896727516PLUGIN_FLAGS!$PLUGIN_FLAGS$ac_delim
     
    2897427523OGRE_OSX_TRUE!$OGRE_OSX_TRUE$ac_delim
    2897527524OGRE_OSX_FALSE!$OGRE_OSX_FALSE$ac_delim
     27525SED!$SED$ac_delim
    2897627526GREP!$GREP$ac_delim
    2897727527EGREP!$EGREP$ac_delim
     
    2904227592_ACEOF
    2904327593
    29044   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
     27594  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 78; then
    2904527595    break
    2904627596  elif $ac_last_try; then
     
    2926927819  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
    2927027820  esac
     27821  ac_MKDIR_P=$MKDIR_P
     27822  case $MKDIR_P in
     27823  [\\/$]* | ?:[\\/]* ) ;;
     27824  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
     27825  esac
    2927127826_ACEOF
    2927227827
     
    2932227877s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
    2932327878s&@INSTALL@&$ac_INSTALL&;t t
     27879s&@MKDIR_P@&$ac_MKDIR_P&;t t
    2932427880$ac_datarootdir_hack
    2932527881" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
     
    2948628042  # Grep'ing the first line is not enough: some people post-process
    2948728043  # each Makefile.in and add a new line on top of each file to say so.
    29488   # So let's grep whole file.
    29489   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
     28044  # Grep'ing the whole file is not good either: AIX grep has a line
     28045  # limit of 2048, but all sed's we know have understand at least 4000.
     28046  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
    2949028047    dirpart=`$as_dirname -- "$mf" ||
    2949128048$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Note: See TracChangeset for help on using the changeset viewer.