~ubuntu-branches/ubuntu/precise/libmtp/precise-proposed

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2009-12-14 22:32:10 UTC
  • mto: (16.1.3 sid) (0.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: james.westby@ubuntu.com-20091214223210-vekc5340wzmz54bw
Tags: upstream-1.0.1
ImportĀ upstreamĀ versionĀ 1.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.63 for libmtp 0.3.7.
 
3
# Generated by GNU Autoconf 2.63 for libmtp 1.0.1.
4
4
#
5
5
# Report bugs to <libmtp-discuss@lists.sourceforge.net>.
6
6
#
577
577
# Check that we are running under the correct shell.
578
578
SHELL=${CONFIG_SHELL-/bin/sh}
579
579
 
580
 
case X$ECHO in
 
580
case X$lt_ECHO in
581
581
X*--fallback-echo)
582
582
  # Remove one level of quotation (which was required for Make).
583
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
583
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584
584
  ;;
585
585
esac
586
586
 
587
 
echo=${ECHO-echo}
 
587
ECHO=${lt_ECHO-echo}
588
588
if test "X$1" = X--no-reexec; then
589
589
  # Discard the --no-reexec flag, and continue.
590
590
  shift
591
591
elif test "X$1" = X--fallback-echo; then
592
592
  # Avoid inline document here, it may be left over
593
593
  :
594
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595
 
  # Yippee, $echo works!
 
594
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
595
  # Yippee, $ECHO works!
596
596
  :
597
597
else
598
598
  # Restart under the correct shell.
602
602
if test "X$1" = X--fallback-echo; then
603
603
  # used as fallback echo
604
604
  shift
605
 
  cat <<EOF
 
605
  cat <<_LT_EOF
606
606
$*
607
 
EOF
 
607
_LT_EOF
608
608
  exit 0
609
609
fi
610
610
 
612
612
# if CDPATH is set.
613
613
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
614
 
615
 
if test -z "$ECHO"; then
616
 
if test "X${echo_test_string+set}" != Xset; then
617
 
# find a string as large as possible, as long as the shell can cope with it
618
 
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620
 
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621
 
       echo_test_string=`eval $cmd` &&
622
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623
 
    then
624
 
      break
625
 
    fi
626
 
  done
627
 
fi
628
 
 
629
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
632
 
  :
633
 
else
634
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
635
 
  # backslashes.  This makes it impossible to quote backslashes using
636
 
  #   echo "$something" | sed 's/\\/\\\\/g'
637
 
  #
638
 
  # So, first we look for a working echo in the user's PATH.
639
 
 
640
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641
 
  for dir in $PATH /usr/ucb; do
 
615
if test -z "$lt_ECHO"; then
 
616
  if test "X${echo_test_string+set}" != Xset; then
 
617
    # find a string as large as possible, as long as the shell can cope with it
 
618
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
619
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
620
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
621
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
622
      then
 
623
        break
 
624
      fi
 
625
    done
 
626
  fi
 
627
 
 
628
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
629
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
630
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
631
    :
 
632
  else
 
633
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
634
    # backslashes.  This makes it impossible to quote backslashes using
 
635
    #   echo "$something" | sed 's/\\/\\\\/g'
 
636
    #
 
637
    # So, first we look for a working echo in the user's PATH.
 
638
 
 
639
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
640
    for dir in $PATH /usr/ucb; do
 
641
      IFS="$lt_save_ifs"
 
642
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
643
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
644
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
645
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
646
        ECHO="$dir/echo"
 
647
        break
 
648
      fi
 
649
    done
642
650
    IFS="$lt_save_ifs"
643
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
647
 
      echo="$dir/echo"
648
 
      break
649
 
    fi
650
 
  done
651
 
  IFS="$lt_save_ifs"
652
651
 
653
 
  if test "X$echo" = Xecho; then
654
 
    # We didn't find a better echo, so look for alternatives.
655
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
658
 
      # This shell has a builtin print -r that does the trick.
659
 
      echo='print -r'
660
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
662
 
      # If we have ksh, try running configure again with it.
663
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664
 
      export ORIGINAL_CONFIG_SHELL
665
 
      CONFIG_SHELL=/bin/ksh
666
 
      export CONFIG_SHELL
667
 
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668
 
    else
669
 
      # Try using printf.
670
 
      echo='printf %s\n'
671
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
674
 
        # Cool, printf works
675
 
        :
676
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677
 
           test "X$echo_testing_string" = 'X\t' &&
678
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
680
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681
 
        export CONFIG_SHELL
682
 
        SHELL="$CONFIG_SHELL"
683
 
        export SHELL
684
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
685
 
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686
 
           test "X$echo_testing_string" = 'X\t' &&
687
 
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
689
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
652
    if test "X$ECHO" = Xecho; then
 
653
      # We didn't find a better echo, so look for alternatives.
 
654
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
655
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
656
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
657
        # This shell has a builtin print -r that does the trick.
 
658
        ECHO='print -r'
 
659
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
660
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
661
        # If we have ksh, try running configure again with it.
 
662
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
663
        export ORIGINAL_CONFIG_SHELL
 
664
        CONFIG_SHELL=/bin/ksh
 
665
        export CONFIG_SHELL
 
666
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
690
667
      else
691
 
        # maybe with a smaller string...
692
 
        prev=:
693
 
 
694
 
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696
 
          then
697
 
            break
 
668
        # Try using printf.
 
669
        ECHO='printf %s\n'
 
670
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
671
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
672
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
673
          # Cool, printf works
 
674
          :
 
675
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
676
             test "X$echo_testing_string" = 'X\t' &&
 
677
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
678
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
679
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
680
          export CONFIG_SHELL
 
681
          SHELL="$CONFIG_SHELL"
 
682
          export SHELL
 
683
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
684
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
685
             test "X$echo_testing_string" = 'X\t' &&
 
686
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
687
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
688
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
689
        else
 
690
          # maybe with a smaller string...
 
691
          prev=:
 
692
 
 
693
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
694
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
695
            then
 
696
              break
 
697
            fi
 
698
            prev="$cmd"
 
699
          done
 
700
 
 
701
          if test "$prev" != 'sed 50q "$0"'; then
 
702
            echo_test_string=`eval $prev`
 
703
            export echo_test_string
 
704
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
705
          else
 
706
            # Oops.  We lost completely, so just stick with echo.
 
707
            ECHO=echo
698
708
          fi
699
 
          prev="$cmd"
700
 
        done
701
 
 
702
 
        if test "$prev" != 'sed 50q "$0"'; then
703
 
          echo_test_string=`eval $prev`
704
 
          export echo_test_string
705
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706
 
        else
707
 
          # Oops.  We lost completely, so just stick with echo.
708
 
          echo=echo
709
 
        fi
 
709
        fi
710
710
      fi
711
711
    fi
712
712
  fi
713
713
fi
714
 
fi
715
714
 
716
715
# Copy echo and quote the copy suitably for passing to libtool from
717
716
# the Makefile, instead of quoting the original, which is used later.
718
 
ECHO=$echo
719
 
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720
 
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
717
lt_ECHO=$ECHO
 
718
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
719
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721
720
fi
722
721
 
723
722
 
724
723
 
725
724
 
726
 
tagnames=${tagnames+${tagnames},}CXX
727
 
 
728
 
tagnames=${tagnames+${tagnames},}F77
729
 
 
730
725
exec 7<&0 </dev/null 6>&1
731
726
 
732
727
# Name of the host.
750
745
# Identity of this package.
751
746
PACKAGE_NAME='libmtp'
752
747
PACKAGE_TARNAME='libmtp'
753
 
PACKAGE_VERSION='0.3.7'
754
 
PACKAGE_STRING='libmtp 0.3.7'
 
748
PACKAGE_VERSION='1.0.1'
 
749
PACKAGE_STRING='libmtp 1.0.1'
755
750
PACKAGE_BUGREPORT='libmtp-discuss@lists.sourceforge.net'
756
751
 
757
752
ac_unique_file="src/libmtp.c"
791
786
# include <unistd.h>
792
787
#endif"
793
788
 
794
 
ac_subst_vars='LTLIBOBJS
 
789
ac_subst_vars='am__EXEEXT_FALSE
 
790
am__EXEEXT_TRUE
 
791
LTLIBOBJS
795
792
effective_target
796
793
LIBOBJS
 
794
MS_LIB_EXE_FALSE
 
795
MS_LIB_EXE_TRUE
 
796
ms_lib_exe
797
797
COMPILE_MINGW32_FALSE
798
798
COMPILE_MINGW32_TRUE
799
799
OSFLAGS
800
800
HAVE_DOXYGEN_FALSE
801
801
HAVE_DOXYGEN_TRUE
802
802
HAVE_DOXYGEN
803
 
LIBTOOL
804
 
ac_ct_F77
805
 
FFLAGS
806
 
F77
807
 
CXXCPP
808
 
am__fastdepCXX_FALSE
809
 
am__fastdepCXX_TRUE
810
 
CXXDEPMODE
811
 
ac_ct_CXX
812
 
CXXFLAGS
813
 
CXX
 
803
LTLIBICONV
 
804
LIBICONV
814
805
CPP
815
 
OBJDUMP
816
 
AS
817
 
DLLTOOL
 
806
OTOOL64
 
807
OTOOL
 
808
LIPO
818
809
NMEDIT
819
810
DSYMUTIL
 
811
lt_ECHO
820
812
RANLIB
821
813
AR
822
 
ECHO
 
814
NM
 
815
ac_ct_DUMPBIN
 
816
DUMPBIN
 
817
LD
 
818
FGREP
823
819
EGREP
824
820
GREP
825
821
SED
 
822
LIBTOOL
 
823
OBJDUMP
 
824
DLLTOOL
 
825
AS
826
826
host_os
827
827
host_vendor
828
828
host_cpu
914
914
enable_dependency_tracking
915
915
enable_shared
916
916
enable_static
 
917
with_pic
917
918
enable_fast_install
918
919
with_gnu_ld
919
920
enable_libtool_lock
920
 
with_pic
921
 
with_tags
 
921
enable_rpath
 
922
with_libiconv_prefix
 
923
enable_largefile
922
924
'
923
925
      ac_precious_vars='build_alias
924
926
host_alias
928
930
LDFLAGS
929
931
LIBS
930
932
CPPFLAGS
931
 
CPP
932
 
CXX
933
 
CXXFLAGS
934
 
CCC
935
 
CXXCPP
936
 
F77
937
 
FFLAGS'
 
933
CPP'
938
934
 
939
935
 
940
936
# Initialize some variables set by options.
1487
1483
  # Omit some internal or obsolete options to make the list less imposing.
1488
1484
  # This message is too long to be a string in the A/UX 3.1 sh.
1489
1485
  cat <<_ACEOF
1490
 
\`configure' configures libmtp 0.3.7 to adapt to many kinds of systems.
 
1486
\`configure' configures libmtp 1.0.1 to adapt to many kinds of systems.
1491
1487
 
1492
1488
Usage: $0 [OPTION]... [VAR=VALUE]...
1493
1489
 
1557
1553
 
1558
1554
if test -n "$ac_init_help"; then
1559
1555
  case $ac_init_help in
1560
 
     short | recursive ) echo "Configuration of libmtp 0.3.7:";;
 
1556
     short | recursive ) echo "Configuration of libmtp 1.0.1:";;
1561
1557
   esac
1562
1558
  cat <<\_ACEOF
1563
1559
 
1572
1568
  --enable-fast-install[=PKGS]
1573
1569
                          optimize for fast installation [default=yes]
1574
1570
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1571
  --disable-rpath         do not hardcode runtime library paths
 
1572
  --disable-largefile     omit support for large files
1575
1573
 
1576
1574
Optional Packages:
1577
1575
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1578
1576
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1579
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1580
1577
  --with-pic              try to use only PIC/non-PIC objects [default=use
1581
1578
                          both]
1582
 
  --with-tags[=TAGS]      include additional configurations [automatic]
 
1579
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1580
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
1581
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
 
1582
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1583
1583
 
1584
1584
Some influential environment variables:
1585
1585
  CC          C compiler command
1590
1590
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1591
1591
              you have headers in a nonstandard directory <include dir>
1592
1592
  CPP         C preprocessor
1593
 
  CXX         C++ compiler command
1594
 
  CXXFLAGS    C++ compiler flags
1595
 
  CXXCPP      C++ preprocessor
1596
 
  F77         Fortran 77 compiler command
1597
 
  FFLAGS      Fortran 77 compiler flags
1598
1593
 
1599
1594
Use these variables to override the choices made by `configure' or to help
1600
1595
it to find libraries and programs with nonstandard names/locations.
1662
1657
test -n "$ac_init_help" && exit $ac_status
1663
1658
if $ac_init_version; then
1664
1659
  cat <<\_ACEOF
1665
 
libmtp configure 0.3.7
 
1660
libmtp configure 1.0.1
1666
1661
generated by GNU Autoconf 2.63
1667
1662
 
1668
1663
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1676
1671
This file contains any messages produced by compilers while
1677
1672
running configure, to aid debugging if configure makes a mistake.
1678
1673
 
1679
 
It was created by libmtp $as_me 0.3.7, which was
 
1674
It was created by libmtp $as_me 1.0.1, which was
1680
1675
generated by GNU Autoconf 2.63.  Invocation command line was
1681
1676
 
1682
1677
  $ $0 $@
2044
2039
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2045
2040
 
2046
2041
 
2047
 
am__api_version='1.10'
 
2042
 
 
2043
am__api_version='1.11'
2048
2044
 
2049
2045
ac_aux_dir=
2050
2046
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2175
2171
# Just in case
2176
2172
sleep 1
2177
2173
echo timestamp > conftest.file
 
2174
# Reject unsafe characters in $srcdir or the absolute working directory
 
2175
# name.  Accept space and tab only in the latter.
 
2176
am_lf='
 
2177
'
 
2178
case `pwd` in
 
2179
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2180
    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
 
2181
$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
 
2182
   { (exit 1); exit 1; }; };;
 
2183
esac
 
2184
case $srcdir in
 
2185
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2186
    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
 
2187
$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
 
2188
   { (exit 1); exit 1; }; };;
 
2189
esac
 
2190
 
2178
2191
# Do `set' in a subshell so we don't clobber the current shell's
2179
2192
# arguments.  Must try -L first in case configure is actually a
2180
2193
# symlink; some systems play weird games with the mod time of symlinks
2181
2194
# (eg FreeBSD returns the mod time of the symlink's containing
2182
2195
# directory).
2183
2196
if (
2184
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2197
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2185
2198
   if test "$*" = "X"; then
2186
2199
      # -L didn't work.
2187
 
      set X `ls -t $srcdir/configure conftest.file`
 
2200
      set X `ls -t "$srcdir/configure" conftest.file`
2188
2201
   fi
2189
2202
   rm -f conftest.file
2190
2203
   if test "$*" != "X $srcdir/configure conftest.file" \
2228
2241
# expand $ac_aux_dir to an absolute path
2229
2242
am_aux_dir=`cd $ac_aux_dir && pwd`
2230
2243
 
2231
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2244
if test x"${MISSING+set}" != xset; then
 
2245
  case $am_aux_dir in
 
2246
  *\ * | *\     *)
 
2247
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2248
  *)
 
2249
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2250
  esac
 
2251
fi
2232
2252
# Use eval to expand $SHELL
2233
2253
if eval "$MISSING --run true"; then
2234
2254
  am_missing_run="$MISSING --run "
2238
2258
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2239
2259
fi
2240
2260
 
 
2261
if test x"${install_sh}" != xset; then
 
2262
  case $am_aux_dir in
 
2263
  *\ * | *\     *)
 
2264
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2265
  *)
 
2266
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2267
  esac
 
2268
fi
 
2269
 
 
2270
# Installed binaries are usually stripped using `strip' when the user
 
2271
# run `make install-strip'.  However `strip' might not be the right
 
2272
# tool to use in cross-compilation environments, therefore Automake
 
2273
# will honor the `STRIP' environment variable to overrule this program.
 
2274
if test "$cross_compiling" != no; then
 
2275
  if test -n "$ac_tool_prefix"; then
 
2276
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2277
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2278
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2279
$as_echo_n "checking for $ac_word... " >&6; }
 
2280
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2281
  $as_echo_n "(cached) " >&6
 
2282
else
 
2283
  if test -n "$STRIP"; then
 
2284
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2285
else
 
2286
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2287
for as_dir in $PATH
 
2288
do
 
2289
  IFS=$as_save_IFS
 
2290
  test -z "$as_dir" && as_dir=.
 
2291
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2292
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2293
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2294
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2295
    break 2
 
2296
  fi
 
2297
done
 
2298
done
 
2299
IFS=$as_save_IFS
 
2300
 
 
2301
fi
 
2302
fi
 
2303
STRIP=$ac_cv_prog_STRIP
 
2304
if test -n "$STRIP"; then
 
2305
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
2306
$as_echo "$STRIP" >&6; }
 
2307
else
 
2308
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2309
$as_echo "no" >&6; }
 
2310
fi
 
2311
 
 
2312
 
 
2313
fi
 
2314
if test -z "$ac_cv_prog_STRIP"; then
 
2315
  ac_ct_STRIP=$STRIP
 
2316
  # Extract the first word of "strip", so it can be a program name with args.
 
2317
set dummy strip; ac_word=$2
 
2318
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2319
$as_echo_n "checking for $ac_word... " >&6; }
 
2320
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2321
  $as_echo_n "(cached) " >&6
 
2322
else
 
2323
  if test -n "$ac_ct_STRIP"; then
 
2324
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2325
else
 
2326
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2327
for as_dir in $PATH
 
2328
do
 
2329
  IFS=$as_save_IFS
 
2330
  test -z "$as_dir" && as_dir=.
 
2331
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2332
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2333
    ac_cv_prog_ac_ct_STRIP="strip"
 
2334
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2335
    break 2
 
2336
  fi
 
2337
done
 
2338
done
 
2339
IFS=$as_save_IFS
 
2340
 
 
2341
fi
 
2342
fi
 
2343
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2344
if test -n "$ac_ct_STRIP"; then
 
2345
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2346
$as_echo "$ac_ct_STRIP" >&6; }
 
2347
else
 
2348
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2349
$as_echo "no" >&6; }
 
2350
fi
 
2351
 
 
2352
  if test "x$ac_ct_STRIP" = x; then
 
2353
    STRIP=":"
 
2354
  else
 
2355
    case $cross_compiling:$ac_tool_warned in
 
2356
yes:)
 
2357
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2358
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2359
ac_tool_warned=yes ;;
 
2360
esac
 
2361
    STRIP=$ac_ct_STRIP
 
2362
  fi
 
2363
else
 
2364
  STRIP="$ac_cv_prog_STRIP"
 
2365
fi
 
2366
 
 
2367
fi
 
2368
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2369
 
2241
2370
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2242
2371
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2243
2372
if test -z "$MKDIR_P"; then
2392
2521
 
2393
2522
# Define the identity of the package.
2394
2523
 PACKAGE='libmtp'
2395
 
 VERSION='0.3.7'
 
2524
 VERSION='1.0.1'
2396
2525
 
2397
2526
 
2398
2527
cat >>confdefs.h <<_ACEOF
2420
2549
 
2421
2550
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2422
2551
 
2423
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2424
 
 
2425
 
# Installed binaries are usually stripped using `strip' when the user
2426
 
# run `make install-strip'.  However `strip' might not be the right
2427
 
# tool to use in cross-compilation environments, therefore Automake
2428
 
# will honor the `STRIP' environment variable to overrule this program.
2429
 
if test "$cross_compiling" != no; then
2430
 
  if test -n "$ac_tool_prefix"; then
2431
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2432
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
2433
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2434
 
$as_echo_n "checking for $ac_word... " >&6; }
2435
 
if test "${ac_cv_prog_STRIP+set}" = set; then
2436
 
  $as_echo_n "(cached) " >&6
2437
 
else
2438
 
  if test -n "$STRIP"; then
2439
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2440
 
else
2441
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442
 
for as_dir in $PATH
2443
 
do
2444
 
  IFS=$as_save_IFS
2445
 
  test -z "$as_dir" && as_dir=.
2446
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2447
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2448
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2449
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450
 
    break 2
2451
 
  fi
2452
 
done
2453
 
done
2454
 
IFS=$as_save_IFS
2455
 
 
2456
 
fi
2457
 
fi
2458
 
STRIP=$ac_cv_prog_STRIP
2459
 
if test -n "$STRIP"; then
2460
 
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2461
 
$as_echo "$STRIP" >&6; }
2462
 
else
2463
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
2464
 
$as_echo "no" >&6; }
2465
 
fi
2466
 
 
2467
 
 
2468
 
fi
2469
 
if test -z "$ac_cv_prog_STRIP"; then
2470
 
  ac_ct_STRIP=$STRIP
2471
 
  # Extract the first word of "strip", so it can be a program name with args.
2472
 
set dummy strip; ac_word=$2
2473
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2474
 
$as_echo_n "checking for $ac_word... " >&6; }
2475
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2476
 
  $as_echo_n "(cached) " >&6
2477
 
else
2478
 
  if test -n "$ac_ct_STRIP"; then
2479
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2480
 
else
2481
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482
 
for as_dir in $PATH
2483
 
do
2484
 
  IFS=$as_save_IFS
2485
 
  test -z "$as_dir" && as_dir=.
2486
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2487
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2488
 
    ac_cv_prog_ac_ct_STRIP="strip"
2489
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490
 
    break 2
2491
 
  fi
2492
 
done
2493
 
done
2494
 
IFS=$as_save_IFS
2495
 
 
2496
 
fi
2497
 
fi
2498
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2499
 
if test -n "$ac_ct_STRIP"; then
2500
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2501
 
$as_echo "$ac_ct_STRIP" >&6; }
2502
 
else
2503
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
2504
 
$as_echo "no" >&6; }
2505
 
fi
2506
 
 
2507
 
  if test "x$ac_ct_STRIP" = x; then
2508
 
    STRIP=":"
2509
 
  else
2510
 
    case $cross_compiling:$ac_tool_warned in
2511
 
yes:)
2512
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2513
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2514
 
ac_tool_warned=yes ;;
2515
 
esac
2516
 
    STRIP=$ac_ct_STRIP
2517
 
  fi
2518
 
else
2519
 
  STRIP="$ac_cv_prog_STRIP"
2520
 
fi
2521
 
 
2522
 
fi
2523
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2524
 
 
2525
2552
# We need awk for the "check" target.  The system "awk" is bad on
2526
2553
# some platforms.
2527
2554
# Always define AMTAR for backward compatibility.
3485
3512
am_make=${MAKE-make}
3486
3513
cat > confinc << 'END'
3487
3514
am__doit:
3488
 
        @echo done
 
3515
        @echo this is the am__doit target
3489
3516
.PHONY: am__doit
3490
3517
END
3491
3518
# If we don't find an include directive, just comment out the code.
3496
3523
_am_result=none
3497
3524
# First try GNU make style include.
3498
3525
echo "include confinc" > confmf
3499
 
# We grep out `Entering directory' and `Leaving directory'
3500
 
# messages which can occur if `w' ends up in MAKEFLAGS.
3501
 
# In particular we don't look at `^make:' because GNU make might
3502
 
# be invoked under some other name (usually "gmake"), in which
3503
 
# case it prints its new name instead of `make'.
3504
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3505
 
   am__include=include
3506
 
   am__quote=
3507
 
   _am_result=GNU
3508
 
fi
 
3526
# Ignore all kinds of additional output from `make'.
 
3527
case `$am_make -s -f confmf 2> /dev/null` in #(
 
3528
*the\ am__doit\ target*)
 
3529
  am__include=include
 
3530
  am__quote=
 
3531
  _am_result=GNU
 
3532
  ;;
 
3533
esac
3509
3534
# Now try BSD make style include.
3510
3535
if test "$am__include" = "#"; then
3511
3536
   echo '.include "confinc"' > confmf
3512
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3513
 
      am__include=.include
3514
 
      am__quote="\""
3515
 
      _am_result=BSD
3516
 
   fi
 
3537
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
3538
   *the\ am__doit\ target*)
 
3539
     am__include=.include
 
3540
     am__quote="\""
 
3541
     _am_result=BSD
 
3542
     ;;
 
3543
   esac
3517
3544
fi
3518
3545
 
3519
3546
 
3570
3597
  if test "$am_compiler_list" = ""; then
3571
3598
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3572
3599
  fi
 
3600
  am__universal=false
 
3601
  case " $depcc " in #(
 
3602
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3603
     esac
 
3604
 
3573
3605
  for depmode in $am_compiler_list; do
3574
3606
    # Setup a source with many dependencies, because some compilers
3575
3607
    # like to wrap large dependency lists on column 80 (with \), and
3587
3619
    done
3588
3620
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3589
3621
 
 
3622
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3623
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3624
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
3625
    # versions had trouble with output in subdirs
 
3626
    am__obj=sub/conftest.${OBJEXT-o}
 
3627
    am__minus_obj="-o $am__obj"
3590
3628
    case $depmode in
 
3629
    gcc)
 
3630
      # This depmode causes a compiler race in universal mode.
 
3631
      test "$am__universal" = false || continue
 
3632
      ;;
3591
3633
    nosideeffect)
3592
3634
      # after this tag, mechanisms are not by side-effect, so they'll
3593
3635
      # only be used when explicitly requested
3597
3639
        break
3598
3640
      fi
3599
3641
      ;;
 
3642
    msvisualcpp | msvcmsys)
 
3643
      # This compiler won't grok `-c -o', but also, the minuso test has
 
3644
      # not run yet.  These depmodes are late enough in the game, and
 
3645
      # so weak that their functioning should not be impacted.
 
3646
      am__obj=conftest.${OBJEXT-o}
 
3647
      am__minus_obj=
 
3648
      ;;
3600
3649
    none) break ;;
3601
3650
    esac
3602
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3603
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
3604
 
    # handle `-M -o', and we need to detect this.
3605
3651
    if depmode=$depmode \
3606
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3652
       source=sub/conftest.c object=$am__obj \
3607
3653
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3608
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3654
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3609
3655
         >/dev/null 2>conftest.err &&
3610
3656
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3611
3657
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3612
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3658
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3613
3659
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3614
3660
      # icc doesn't choke on unknown options, it will just issue warnings
3615
3661
      # or remarks (even with -Werror).  So we grep stderr for any message
3752
3798
$as_echo "no, using $LN_S" >&6; }
3753
3799
fi
3754
3800
 
3755
 
 
3756
 
 
3757
 
# Check whether --enable-shared was given.
3758
 
if test "${enable_shared+set}" = set; then
3759
 
  enableval=$enable_shared; p=${PACKAGE-default}
3760
 
    case $enableval in
3761
 
    yes) enable_shared=yes ;;
3762
 
    no) enable_shared=no ;;
3763
 
    *)
3764
 
      enable_shared=no
3765
 
      # Look at the argument we got.  We use all the common list separators.
3766
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3767
 
      for pkg in $enableval; do
3768
 
        IFS="$lt_save_ifs"
3769
 
        if test "X$pkg" = "X$p"; then
3770
 
          enable_shared=yes
3771
 
        fi
3772
 
      done
3773
 
      IFS="$lt_save_ifs"
3774
 
      ;;
3775
 
    esac
3776
 
else
3777
 
  enable_shared=yes
3778
 
fi
3779
 
 
3780
 
 
3781
 
# Check whether --enable-static was given.
3782
 
if test "${enable_static+set}" = set; then
3783
 
  enableval=$enable_static; p=${PACKAGE-default}
3784
 
    case $enableval in
3785
 
    yes) enable_static=yes ;;
3786
 
    no) enable_static=no ;;
3787
 
    *)
3788
 
     enable_static=no
3789
 
      # Look at the argument we got.  We use all the common list separators.
3790
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3791
 
      for pkg in $enableval; do
3792
 
        IFS="$lt_save_ifs"
3793
 
        if test "X$pkg" = "X$p"; then
3794
 
          enable_static=yes
3795
 
        fi
3796
 
      done
3797
 
      IFS="$lt_save_ifs"
3798
 
      ;;
3799
 
    esac
3800
 
else
3801
 
  enable_static=yes
3802
 
fi
3803
 
 
3804
 
 
3805
 
# Check whether --enable-fast-install was given.
3806
 
if test "${enable_fast_install+set}" = set; then
3807
 
  enableval=$enable_fast_install; p=${PACKAGE-default}
3808
 
    case $enableval in
3809
 
    yes) enable_fast_install=yes ;;
3810
 
    no) enable_fast_install=no ;;
3811
 
    *)
3812
 
      enable_fast_install=no
3813
 
      # Look at the argument we got.  We use all the common list separators.
3814
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3815
 
      for pkg in $enableval; do
3816
 
        IFS="$lt_save_ifs"
3817
 
        if test "X$pkg" = "X$p"; then
3818
 
          enable_fast_install=yes
3819
 
        fi
3820
 
      done
3821
 
      IFS="$lt_save_ifs"
3822
 
      ;;
3823
 
    esac
3824
 
else
3825
 
  enable_fast_install=yes
3826
 
fi
3827
 
 
3828
 
 
3829
3801
# Make sure we can run config.sub.
3830
3802
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3831
3803
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3909
3881
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3910
3882
 
3911
3883
 
 
3884
enable_win32_dll=yes
 
3885
 
 
3886
case $host in
 
3887
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
3888
  if test -n "$ac_tool_prefix"; then
 
3889
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
 
3890
set dummy ${ac_tool_prefix}as; ac_word=$2
 
3891
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3892
$as_echo_n "checking for $ac_word... " >&6; }
 
3893
if test "${ac_cv_prog_AS+set}" = set; then
 
3894
  $as_echo_n "(cached) " >&6
 
3895
else
 
3896
  if test -n "$AS"; then
 
3897
  ac_cv_prog_AS="$AS" # Let the user override the test.
 
3898
else
 
3899
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3900
for as_dir in $PATH
 
3901
do
 
3902
  IFS=$as_save_IFS
 
3903
  test -z "$as_dir" && as_dir=.
 
3904
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3905
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3906
    ac_cv_prog_AS="${ac_tool_prefix}as"
 
3907
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3908
    break 2
 
3909
  fi
 
3910
done
 
3911
done
 
3912
IFS=$as_save_IFS
 
3913
 
 
3914
fi
 
3915
fi
 
3916
AS=$ac_cv_prog_AS
 
3917
if test -n "$AS"; then
 
3918
  { $as_echo "$as_me:$LINENO: result: $AS" >&5
 
3919
$as_echo "$AS" >&6; }
 
3920
else
 
3921
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3922
$as_echo "no" >&6; }
 
3923
fi
 
3924
 
 
3925
 
 
3926
fi
 
3927
if test -z "$ac_cv_prog_AS"; then
 
3928
  ac_ct_AS=$AS
 
3929
  # Extract the first word of "as", so it can be a program name with args.
 
3930
set dummy as; ac_word=$2
 
3931
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3932
$as_echo_n "checking for $ac_word... " >&6; }
 
3933
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
 
3934
  $as_echo_n "(cached) " >&6
 
3935
else
 
3936
  if test -n "$ac_ct_AS"; then
 
3937
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
 
3938
else
 
3939
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3940
for as_dir in $PATH
 
3941
do
 
3942
  IFS=$as_save_IFS
 
3943
  test -z "$as_dir" && as_dir=.
 
3944
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3945
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3946
    ac_cv_prog_ac_ct_AS="as"
 
3947
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3948
    break 2
 
3949
  fi
 
3950
done
 
3951
done
 
3952
IFS=$as_save_IFS
 
3953
 
 
3954
fi
 
3955
fi
 
3956
ac_ct_AS=$ac_cv_prog_ac_ct_AS
 
3957
if test -n "$ac_ct_AS"; then
 
3958
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
 
3959
$as_echo "$ac_ct_AS" >&6; }
 
3960
else
 
3961
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3962
$as_echo "no" >&6; }
 
3963
fi
 
3964
 
 
3965
  if test "x$ac_ct_AS" = x; then
 
3966
    AS="false"
 
3967
  else
 
3968
    case $cross_compiling:$ac_tool_warned in
 
3969
yes:)
 
3970
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
3971
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3972
ac_tool_warned=yes ;;
 
3973
esac
 
3974
    AS=$ac_ct_AS
 
3975
  fi
 
3976
else
 
3977
  AS="$ac_cv_prog_AS"
 
3978
fi
 
3979
 
 
3980
  if test -n "$ac_tool_prefix"; then
 
3981
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
3982
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
3983
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3984
$as_echo_n "checking for $ac_word... " >&6; }
 
3985
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
 
3986
  $as_echo_n "(cached) " >&6
 
3987
else
 
3988
  if test -n "$DLLTOOL"; then
 
3989
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
3990
else
 
3991
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3992
for as_dir in $PATH
 
3993
do
 
3994
  IFS=$as_save_IFS
 
3995
  test -z "$as_dir" && as_dir=.
 
3996
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3997
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3998
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
3999
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4000
    break 2
 
4001
  fi
 
4002
done
 
4003
done
 
4004
IFS=$as_save_IFS
 
4005
 
 
4006
fi
 
4007
fi
 
4008
DLLTOOL=$ac_cv_prog_DLLTOOL
 
4009
if test -n "$DLLTOOL"; then
 
4010
  { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
 
4011
$as_echo "$DLLTOOL" >&6; }
 
4012
else
 
4013
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4014
$as_echo "no" >&6; }
 
4015
fi
 
4016
 
 
4017
 
 
4018
fi
 
4019
if test -z "$ac_cv_prog_DLLTOOL"; then
 
4020
  ac_ct_DLLTOOL=$DLLTOOL
 
4021
  # Extract the first word of "dlltool", so it can be a program name with args.
 
4022
set dummy dlltool; ac_word=$2
 
4023
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4024
$as_echo_n "checking for $ac_word... " >&6; }
 
4025
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
 
4026
  $as_echo_n "(cached) " >&6
 
4027
else
 
4028
  if test -n "$ac_ct_DLLTOOL"; then
 
4029
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
4030
else
 
4031
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4032
for as_dir in $PATH
 
4033
do
 
4034
  IFS=$as_save_IFS
 
4035
  test -z "$as_dir" && as_dir=.
 
4036
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4037
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4038
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
4039
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4040
    break 2
 
4041
  fi
 
4042
done
 
4043
done
 
4044
IFS=$as_save_IFS
 
4045
 
 
4046
fi
 
4047
fi
 
4048
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
4049
if test -n "$ac_ct_DLLTOOL"; then
 
4050
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
 
4051
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
4052
else
 
4053
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4054
$as_echo "no" >&6; }
 
4055
fi
 
4056
 
 
4057
  if test "x$ac_ct_DLLTOOL" = x; then
 
4058
    DLLTOOL="false"
 
4059
  else
 
4060
    case $cross_compiling:$ac_tool_warned in
 
4061
yes:)
 
4062
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
4063
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4064
ac_tool_warned=yes ;;
 
4065
esac
 
4066
    DLLTOOL=$ac_ct_DLLTOOL
 
4067
  fi
 
4068
else
 
4069
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
4070
fi
 
4071
 
 
4072
  if test -n "$ac_tool_prefix"; then
 
4073
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
4074
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
4075
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4076
$as_echo_n "checking for $ac_word... " >&6; }
 
4077
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
 
4078
  $as_echo_n "(cached) " >&6
 
4079
else
 
4080
  if test -n "$OBJDUMP"; then
 
4081
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
4082
else
 
4083
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4084
for as_dir in $PATH
 
4085
do
 
4086
  IFS=$as_save_IFS
 
4087
  test -z "$as_dir" && as_dir=.
 
4088
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4089
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4090
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
4091
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4092
    break 2
 
4093
  fi
 
4094
done
 
4095
done
 
4096
IFS=$as_save_IFS
 
4097
 
 
4098
fi
 
4099
fi
 
4100
OBJDUMP=$ac_cv_prog_OBJDUMP
 
4101
if test -n "$OBJDUMP"; then
 
4102
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
 
4103
$as_echo "$OBJDUMP" >&6; }
 
4104
else
 
4105
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4106
$as_echo "no" >&6; }
 
4107
fi
 
4108
 
 
4109
 
 
4110
fi
 
4111
if test -z "$ac_cv_prog_OBJDUMP"; then
 
4112
  ac_ct_OBJDUMP=$OBJDUMP
 
4113
  # Extract the first word of "objdump", so it can be a program name with args.
 
4114
set dummy objdump; ac_word=$2
 
4115
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4116
$as_echo_n "checking for $ac_word... " >&6; }
 
4117
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
 
4118
  $as_echo_n "(cached) " >&6
 
4119
else
 
4120
  if test -n "$ac_ct_OBJDUMP"; then
 
4121
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
4122
else
 
4123
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4124
for as_dir in $PATH
 
4125
do
 
4126
  IFS=$as_save_IFS
 
4127
  test -z "$as_dir" && as_dir=.
 
4128
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4129
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4130
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
4131
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4132
    break 2
 
4133
  fi
 
4134
done
 
4135
done
 
4136
IFS=$as_save_IFS
 
4137
 
 
4138
fi
 
4139
fi
 
4140
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
4141
if test -n "$ac_ct_OBJDUMP"; then
 
4142
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
 
4143
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
4144
else
 
4145
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4146
$as_echo "no" >&6; }
 
4147
fi
 
4148
 
 
4149
  if test "x$ac_ct_OBJDUMP" = x; then
 
4150
    OBJDUMP="false"
 
4151
  else
 
4152
    case $cross_compiling:$ac_tool_warned in
 
4153
yes:)
 
4154
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
4155
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4156
ac_tool_warned=yes ;;
 
4157
esac
 
4158
    OBJDUMP=$ac_ct_OBJDUMP
 
4159
  fi
 
4160
else
 
4161
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
4162
fi
 
4163
 
 
4164
  ;;
 
4165
esac
 
4166
 
 
4167
test -z "$AS" && AS=as
 
4168
 
 
4169
 
 
4170
 
 
4171
 
 
4172
 
 
4173
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
4174
 
 
4175
 
 
4176
 
 
4177
 
 
4178
 
 
4179
test -z "$OBJDUMP" && OBJDUMP=objdump
 
4180
 
 
4181
 
 
4182
 
 
4183
 
 
4184
 
 
4185
 
 
4186
 
 
4187
case `pwd` in
 
4188
  *\ * | *\     *)
 
4189
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
4190
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
4191
esac
 
4192
 
 
4193
 
 
4194
 
 
4195
macro_version='2.2.6'
 
4196
macro_revision='1.3012'
 
4197
 
 
4198
 
 
4199
 
 
4200
 
 
4201
 
 
4202
 
 
4203
 
 
4204
 
 
4205
 
 
4206
 
 
4207
 
 
4208
 
 
4209
 
 
4210
ltmain="$ac_aux_dir/ltmain.sh"
 
4211
 
3912
4212
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3913
4213
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3914
 
if test "${lt_cv_path_SED+set}" = set; then
 
4214
if test "${ac_cv_path_SED+set}" = set; then
3915
4215
  $as_echo_n "(cached) " >&6
3916
4216
else
3917
 
  # Loop through the user's path and test for sed and gsed.
3918
 
# Then use that list of sed's as ones to test for truncation.
3919
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4217
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
4218
     for ac_i in 1 2 3 4 5 6 7; do
 
4219
       ac_script="$ac_script$as_nl$ac_script"
 
4220
     done
 
4221
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
4222
     $as_unset ac_script || ac_script=
 
4223
     if test -z "$SED"; then
 
4224
  ac_path_SED_found=false
 
4225
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4226
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920
4227
for as_dir in $PATH
3921
4228
do
3922
4229
  IFS=$as_save_IFS
3923
4230
  test -z "$as_dir" && as_dir=.
3924
 
  for lt_ac_prog in sed gsed; do
 
4231
  for ac_prog in sed gsed; do
3925
4232
    for ac_exec_ext in '' $ac_executable_extensions; do
3926
 
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3927
 
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3928
 
      fi
 
4233
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
4234
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
4235
# Check for GNU ac_path_SED and select it if it is found.
 
4236
  # Check for GNU $ac_path_SED
 
4237
case `"$ac_path_SED" --version 2>&1` in
 
4238
*GNU*)
 
4239
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
4240
*)
 
4241
  ac_count=0
 
4242
  $as_echo_n 0123456789 >"conftest.in"
 
4243
  while :
 
4244
  do
 
4245
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4246
    mv "conftest.tmp" "conftest.in"
 
4247
    cp "conftest.in" "conftest.nl"
 
4248
    $as_echo '' >> "conftest.nl"
 
4249
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4250
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4251
    ac_count=`expr $ac_count + 1`
 
4252
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
4253
      # Best one so far, save it but keep looking for a better one
 
4254
      ac_cv_path_SED="$ac_path_SED"
 
4255
      ac_path_SED_max=$ac_count
 
4256
    fi
 
4257
    # 10*(2^10) chars as input seems more than enough
 
4258
    test $ac_count -gt 10 && break
 
4259
  done
 
4260
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4261
esac
 
4262
 
 
4263
      $ac_path_SED_found && break 3
3929
4264
    done
3930
4265
  done
3931
4266
done
3932
4267
IFS=$as_save_IFS
3933
 
lt_ac_max=0
3934
 
lt_ac_count=0
3935
 
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3936
 
# along with /bin/sed that truncates output.
3937
 
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3938
 
  test ! -f $lt_ac_sed && continue
3939
 
  cat /dev/null > conftest.in
3940
 
  lt_ac_count=0
3941
 
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3942
 
  # Check for GNU sed and select it if it is found.
3943
 
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3944
 
    lt_cv_path_SED=$lt_ac_sed
3945
 
    break
 
4268
  if test -z "$ac_cv_path_SED"; then
 
4269
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
 
4270
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
 
4271
   { (exit 1); exit 1; }; }
3946
4272
  fi
3947
 
  while true; do
3948
 
    cat conftest.in conftest.in >conftest.tmp
3949
 
    mv conftest.tmp conftest.in
3950
 
    cp conftest.in conftest.nl
3951
 
    echo >>conftest.nl
3952
 
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3953
 
    cmp -s conftest.out conftest.nl || break
3954
 
    # 10000 chars as input seems more than enough
3955
 
    test $lt_ac_count -gt 10 && break
3956
 
    lt_ac_count=`expr $lt_ac_count + 1`
3957
 
    if test $lt_ac_count -gt $lt_ac_max; then
3958
 
      lt_ac_max=$lt_ac_count
3959
 
      lt_cv_path_SED=$lt_ac_sed
3960
 
    fi
3961
 
  done
3962
 
done
3963
 
 
3964
 
fi
3965
 
 
3966
 
SED=$lt_cv_path_SED
3967
 
 
3968
 
{ $as_echo "$as_me:$LINENO: result: $SED" >&5
3969
 
$as_echo "$SED" >&6; }
 
4273
else
 
4274
  ac_cv_path_SED=$SED
 
4275
fi
 
4276
 
 
4277
fi
 
4278
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
 
4279
$as_echo "$ac_cv_path_SED" >&6; }
 
4280
 SED="$ac_cv_path_SED"
 
4281
  rm -f conftest.sed
 
4282
 
 
4283
test -z "$SED" && SED=sed
 
4284
Xsed="$SED -e 1s/^X//"
 
4285
 
 
4286
 
 
4287
 
 
4288
 
 
4289
 
 
4290
 
 
4291
 
 
4292
 
 
4293
 
 
4294
 
3970
4295
 
3971
4296
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3972
4297
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4102
4427
 EGREP="$ac_cv_path_EGREP"
4103
4428
 
4104
4429
 
 
4430
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
 
4431
$as_echo_n "checking for fgrep... " >&6; }
 
4432
if test "${ac_cv_path_FGREP+set}" = set; then
 
4433
  $as_echo_n "(cached) " >&6
 
4434
else
 
4435
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
4436
   then ac_cv_path_FGREP="$GREP -F"
 
4437
   else
 
4438
     if test -z "$FGREP"; then
 
4439
  ac_path_FGREP_found=false
 
4440
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4441
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4442
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4443
do
 
4444
  IFS=$as_save_IFS
 
4445
  test -z "$as_dir" && as_dir=.
 
4446
  for ac_prog in fgrep; do
 
4447
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4448
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4449
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
4450
# Check for GNU ac_path_FGREP and select it if it is found.
 
4451
  # Check for GNU $ac_path_FGREP
 
4452
case `"$ac_path_FGREP" --version 2>&1` in
 
4453
*GNU*)
 
4454
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
4455
*)
 
4456
  ac_count=0
 
4457
  $as_echo_n 0123456789 >"conftest.in"
 
4458
  while :
 
4459
  do
 
4460
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4461
    mv "conftest.tmp" "conftest.in"
 
4462
    cp "conftest.in" "conftest.nl"
 
4463
    $as_echo 'FGREP' >> "conftest.nl"
 
4464
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4465
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4466
    ac_count=`expr $ac_count + 1`
 
4467
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
4468
      # Best one so far, save it but keep looking for a better one
 
4469
      ac_cv_path_FGREP="$ac_path_FGREP"
 
4470
      ac_path_FGREP_max=$ac_count
 
4471
    fi
 
4472
    # 10*(2^10) chars as input seems more than enough
 
4473
    test $ac_count -gt 10 && break
 
4474
  done
 
4475
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4476
esac
 
4477
 
 
4478
      $ac_path_FGREP_found && break 3
 
4479
    done
 
4480
  done
 
4481
done
 
4482
IFS=$as_save_IFS
 
4483
  if test -z "$ac_cv_path_FGREP"; then
 
4484
    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4485
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4486
   { (exit 1); exit 1; }; }
 
4487
  fi
 
4488
else
 
4489
  ac_cv_path_FGREP=$FGREP
 
4490
fi
 
4491
 
 
4492
   fi
 
4493
fi
 
4494
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
 
4495
$as_echo "$ac_cv_path_FGREP" >&6; }
 
4496
 FGREP="$ac_cv_path_FGREP"
 
4497
 
 
4498
 
 
4499
test -z "$GREP" && GREP=grep
 
4500
 
 
4501
 
 
4502
 
 
4503
 
 
4504
 
 
4505
 
 
4506
 
 
4507
 
 
4508
 
 
4509
 
 
4510
 
 
4511
 
 
4512
 
 
4513
 
 
4514
 
 
4515
 
 
4516
 
 
4517
 
4105
4518
 
4106
4519
# Check whether --with-gnu-ld was given.
4107
4520
if test "${with_gnu_ld+set}" = set; then
4127
4540
    [\\/]* | ?:[\\/]*)
4128
4541
      re_direlt='/[^/][^/]*/\.\./'
4129
4542
      # Canonicalize the pathname of ld
4130
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4131
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4132
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
4543
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
4544
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
4545
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4133
4546
      done
4134
4547
      test -z "$LD" && LD="$ac_prog"
4135
4548
      ;;
4209
4622
with_gnu_ld=$lt_cv_prog_gnu_ld
4210
4623
 
4211
4624
 
4212
 
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4213
 
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4214
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
4215
 
  $as_echo_n "(cached) " >&6
4216
 
else
4217
 
  lt_cv_ld_reload_flag='-r'
4218
 
fi
4219
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4220
 
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4221
 
reload_flag=$lt_cv_ld_reload_flag
4222
 
case $reload_flag in
4223
 
"" | " "*) ;;
4224
 
*) reload_flag=" $reload_flag" ;;
4225
 
esac
4226
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4227
 
case $host_os in
4228
 
  darwin*)
4229
 
    if test "$GCC" = yes; then
4230
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4231
 
    else
4232
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4233
 
    fi
4234
 
    ;;
4235
 
esac
4236
 
 
4237
 
{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4238
 
$as_echo_n "checking for BSD-compatible nm... " >&6; }
 
4625
 
 
4626
 
 
4627
 
 
4628
 
 
4629
 
 
4630
 
 
4631
 
 
4632
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
 
4633
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4239
4634
if test "${lt_cv_path_NM+set}" = set; then
4240
4635
  $as_echo_n "(cached) " >&6
4241
4636
else
4280
4675
    done
4281
4676
    IFS="$lt_save_ifs"
4282
4677
  done
4283
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4678
  : ${lt_cv_path_NM=no}
4284
4679
fi
4285
4680
fi
4286
4681
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4287
4682
$as_echo "$lt_cv_path_NM" >&6; }
4288
 
NM="$lt_cv_path_NM"
 
4683
if test "$lt_cv_path_NM" != "no"; then
 
4684
  NM="$lt_cv_path_NM"
 
4685
else
 
4686
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
4687
  if test -n "$ac_tool_prefix"; then
 
4688
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
4689
  do
 
4690
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4691
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4692
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4693
$as_echo_n "checking for $ac_word... " >&6; }
 
4694
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
 
4695
  $as_echo_n "(cached) " >&6
 
4696
else
 
4697
  if test -n "$DUMPBIN"; then
 
4698
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
4699
else
 
4700
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4701
for as_dir in $PATH
 
4702
do
 
4703
  IFS=$as_save_IFS
 
4704
  test -z "$as_dir" && as_dir=.
 
4705
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4706
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4707
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
4708
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4709
    break 2
 
4710
  fi
 
4711
done
 
4712
done
 
4713
IFS=$as_save_IFS
 
4714
 
 
4715
fi
 
4716
fi
 
4717
DUMPBIN=$ac_cv_prog_DUMPBIN
 
4718
if test -n "$DUMPBIN"; then
 
4719
  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
 
4720
$as_echo "$DUMPBIN" >&6; }
 
4721
else
 
4722
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4723
$as_echo "no" >&6; }
 
4724
fi
 
4725
 
 
4726
 
 
4727
    test -n "$DUMPBIN" && break
 
4728
  done
 
4729
fi
 
4730
if test -z "$DUMPBIN"; then
 
4731
  ac_ct_DUMPBIN=$DUMPBIN
 
4732
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
4733
do
 
4734
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4735
set dummy $ac_prog; ac_word=$2
 
4736
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4737
$as_echo_n "checking for $ac_word... " >&6; }
 
4738
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
 
4739
  $as_echo_n "(cached) " >&6
 
4740
else
 
4741
  if test -n "$ac_ct_DUMPBIN"; then
 
4742
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
4743
else
 
4744
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4745
for as_dir in $PATH
 
4746
do
 
4747
  IFS=$as_save_IFS
 
4748
  test -z "$as_dir" && as_dir=.
 
4749
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4750
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4751
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
4752
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4753
    break 2
 
4754
  fi
 
4755
done
 
4756
done
 
4757
IFS=$as_save_IFS
 
4758
 
 
4759
fi
 
4760
fi
 
4761
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
4762
if test -n "$ac_ct_DUMPBIN"; then
 
4763
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
 
4764
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
4765
else
 
4766
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4767
$as_echo "no" >&6; }
 
4768
fi
 
4769
 
 
4770
 
 
4771
  test -n "$ac_ct_DUMPBIN" && break
 
4772
done
 
4773
 
 
4774
  if test "x$ac_ct_DUMPBIN" = x; then
 
4775
    DUMPBIN=":"
 
4776
  else
 
4777
    case $cross_compiling:$ac_tool_warned in
 
4778
yes:)
 
4779
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
4780
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4781
ac_tool_warned=yes ;;
 
4782
esac
 
4783
    DUMPBIN=$ac_ct_DUMPBIN
 
4784
  fi
 
4785
fi
 
4786
 
 
4787
 
 
4788
  if test "$DUMPBIN" != ":"; then
 
4789
    NM="$DUMPBIN"
 
4790
  fi
 
4791
fi
 
4792
test -z "$NM" && NM=nm
 
4793
 
 
4794
 
 
4795
 
 
4796
 
 
4797
 
 
4798
 
 
4799
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
 
4800
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
4801
if test "${lt_cv_nm_interface+set}" = set; then
 
4802
  $as_echo_n "(cached) " >&6
 
4803
else
 
4804
  lt_cv_nm_interface="BSD nm"
 
4805
  echo "int some_variable = 0;" > conftest.$ac_ext
 
4806
  (eval echo "\"\$as_me:4806: $ac_compile\"" >&5)
 
4807
  (eval "$ac_compile" 2>conftest.err)
 
4808
  cat conftest.err >&5
 
4809
  (eval echo "\"\$as_me:4809: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
4810
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
4811
  cat conftest.err >&5
 
4812
  (eval echo "\"\$as_me:4812: output\"" >&5)
 
4813
  cat conftest.out >&5
 
4814
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
4815
    lt_cv_nm_interface="MS dumpbin"
 
4816
  fi
 
4817
  rm -f conftest*
 
4818
fi
 
4819
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
 
4820
$as_echo "$lt_cv_nm_interface" >&6; }
 
4821
 
 
4822
# find the maximum length of command line arguments
 
4823
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
4824
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
4825
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
4826
  $as_echo_n "(cached) " >&6
 
4827
else
 
4828
    i=0
 
4829
  teststring="ABCD"
 
4830
 
 
4831
  case $build_os in
 
4832
  msdosdjgpp*)
 
4833
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
4834
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
4835
    # during glob expansion).  Even if it were fixed, the result of this
 
4836
    # check would be larger than it should be.
 
4837
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
4838
    ;;
 
4839
 
 
4840
  gnu*)
 
4841
    # Under GNU Hurd, this test is not required because there is
 
4842
    # no limit to the length of command line arguments.
 
4843
    # Libtool will interpret -1 as no limit whatsoever
 
4844
    lt_cv_sys_max_cmd_len=-1;
 
4845
    ;;
 
4846
 
 
4847
  cygwin* | mingw* | cegcc*)
 
4848
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
4849
    # about 5 minutes as the teststring grows exponentially.
 
4850
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
4851
    # you end up with a "frozen" computer, even though with patience
 
4852
    # the test eventually succeeds (with a max line length of 256k).
 
4853
    # Instead, let's just punt: use the minimum linelength reported by
 
4854
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
4855
    lt_cv_sys_max_cmd_len=8192;
 
4856
    ;;
 
4857
 
 
4858
  amigaos*)
 
4859
    # On AmigaOS with pdksh, this test takes hours, literally.
 
4860
    # So we just punt and use a minimum line length of 8192.
 
4861
    lt_cv_sys_max_cmd_len=8192;
 
4862
    ;;
 
4863
 
 
4864
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
4865
    # This has been around since 386BSD, at least.  Likely further.
 
4866
    if test -x /sbin/sysctl; then
 
4867
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
4868
    elif test -x /usr/sbin/sysctl; then
 
4869
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
4870
    else
 
4871
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
4872
    fi
 
4873
    # And add a safety zone
 
4874
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4875
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4876
    ;;
 
4877
 
 
4878
  interix*)
 
4879
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
4880
    lt_cv_sys_max_cmd_len=196608
 
4881
    ;;
 
4882
 
 
4883
  osf*)
 
4884
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
4885
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
4886
    # nice to cause kernel panics so lets avoid the loop below.
 
4887
    # First set a reasonable default.
 
4888
    lt_cv_sys_max_cmd_len=16384
 
4889
    #
 
4890
    if test -x /sbin/sysconfig; then
 
4891
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
4892
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
4893
      esac
 
4894
    fi
 
4895
    ;;
 
4896
  sco3.2v5*)
 
4897
    lt_cv_sys_max_cmd_len=102400
 
4898
    ;;
 
4899
  sysv5* | sco5v6* | sysv4.2uw2*)
 
4900
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
4901
    if test -n "$kargmax"; then
 
4902
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
4903
    else
 
4904
      lt_cv_sys_max_cmd_len=32768
 
4905
    fi
 
4906
    ;;
 
4907
  *)
 
4908
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
4909
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
4910
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4911
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4912
    else
 
4913
      # Make teststring a little bigger before we do anything with it.
 
4914
      # a 1K string should be a reasonable start.
 
4915
      for i in 1 2 3 4 5 6 7 8 ; do
 
4916
        teststring=$teststring$teststring
 
4917
      done
 
4918
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
4919
      # If test is not a shell built-in, we'll probably end up computing a
 
4920
      # maximum length that is only half of the actual maximum length, but
 
4921
      # we can't tell.
 
4922
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
4923
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
4924
              test $i != 17 # 1/2 MB should be enough
 
4925
      do
 
4926
        i=`expr $i + 1`
 
4927
        teststring=$teststring$teststring
 
4928
      done
 
4929
      # Only check the string length outside the loop.
 
4930
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
4931
      teststring=
 
4932
      # Add a significant safety factor because C++ compilers can tack on
 
4933
      # massive amounts of additional arguments before passing them to the
 
4934
      # linker.  It appears as though 1/2 is a usable value.
 
4935
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
4936
    fi
 
4937
    ;;
 
4938
  esac
 
4939
 
 
4940
fi
 
4941
 
 
4942
if test -n $lt_cv_sys_max_cmd_len ; then
 
4943
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
4944
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
4945
else
 
4946
  { $as_echo "$as_me:$LINENO: result: none" >&5
 
4947
$as_echo "none" >&6; }
 
4948
fi
 
4949
max_cmd_len=$lt_cv_sys_max_cmd_len
 
4950
 
 
4951
 
 
4952
 
 
4953
 
 
4954
 
 
4955
 
 
4956
: ${CP="cp -f"}
 
4957
: ${MV="mv -f"}
 
4958
: ${RM="rm -f"}
 
4959
 
 
4960
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
 
4961
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
4962
# Try some XSI features
 
4963
xsi_shell=no
 
4964
( _lt_dummy="a/b/c"
 
4965
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
4966
      = c,a/b,, \
 
4967
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
4968
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
4969
  && xsi_shell=yes
 
4970
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
 
4971
$as_echo "$xsi_shell" >&6; }
 
4972
 
 
4973
 
 
4974
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
 
4975
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
4976
lt_shell_append=no
 
4977
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
4978
    >/dev/null 2>&1 \
 
4979
  && lt_shell_append=yes
 
4980
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
 
4981
$as_echo "$lt_shell_append" >&6; }
 
4982
 
 
4983
 
 
4984
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
4985
  lt_unset=unset
 
4986
else
 
4987
  lt_unset=false
 
4988
fi
 
4989
 
 
4990
 
 
4991
 
 
4992
 
 
4993
 
 
4994
# test EBCDIC or ASCII
 
4995
case `echo X|tr X '\101'` in
 
4996
 A) # ASCII based system
 
4997
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
4998
  lt_SP2NL='tr \040 \012'
 
4999
  lt_NL2SP='tr \015\012 \040\040'
 
5000
  ;;
 
5001
 *) # EBCDIC based system
 
5002
  lt_SP2NL='tr \100 \n'
 
5003
  lt_NL2SP='tr \r\n \100\100'
 
5004
  ;;
 
5005
esac
 
5006
 
 
5007
 
 
5008
 
 
5009
 
 
5010
 
 
5011
 
 
5012
 
 
5013
 
 
5014
 
 
5015
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
5016
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
5017
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
5018
  $as_echo_n "(cached) " >&6
 
5019
else
 
5020
  lt_cv_ld_reload_flag='-r'
 
5021
fi
 
5022
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
5023
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
5024
reload_flag=$lt_cv_ld_reload_flag
 
5025
case $reload_flag in
 
5026
"" | " "*) ;;
 
5027
*) reload_flag=" $reload_flag" ;;
 
5028
esac
 
5029
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5030
case $host_os in
 
5031
  darwin*)
 
5032
    if test "$GCC" = yes; then
 
5033
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
5034
    else
 
5035
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5036
    fi
 
5037
    ;;
 
5038
esac
 
5039
 
 
5040
 
 
5041
 
 
5042
 
 
5043
 
 
5044
 
 
5045
 
 
5046
 
 
5047
 
 
5048
if test -n "$ac_tool_prefix"; then
 
5049
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
5050
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
5051
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5052
$as_echo_n "checking for $ac_word... " >&6; }
 
5053
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
 
5054
  $as_echo_n "(cached) " >&6
 
5055
else
 
5056
  if test -n "$OBJDUMP"; then
 
5057
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
5058
else
 
5059
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5060
for as_dir in $PATH
 
5061
do
 
5062
  IFS=$as_save_IFS
 
5063
  test -z "$as_dir" && as_dir=.
 
5064
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5065
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5066
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
5067
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5068
    break 2
 
5069
  fi
 
5070
done
 
5071
done
 
5072
IFS=$as_save_IFS
 
5073
 
 
5074
fi
 
5075
fi
 
5076
OBJDUMP=$ac_cv_prog_OBJDUMP
 
5077
if test -n "$OBJDUMP"; then
 
5078
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
 
5079
$as_echo "$OBJDUMP" >&6; }
 
5080
else
 
5081
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5082
$as_echo "no" >&6; }
 
5083
fi
 
5084
 
 
5085
 
 
5086
fi
 
5087
if test -z "$ac_cv_prog_OBJDUMP"; then
 
5088
  ac_ct_OBJDUMP=$OBJDUMP
 
5089
  # Extract the first word of "objdump", so it can be a program name with args.
 
5090
set dummy objdump; ac_word=$2
 
5091
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5092
$as_echo_n "checking for $ac_word... " >&6; }
 
5093
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
 
5094
  $as_echo_n "(cached) " >&6
 
5095
else
 
5096
  if test -n "$ac_ct_OBJDUMP"; then
 
5097
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
5098
else
 
5099
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5100
for as_dir in $PATH
 
5101
do
 
5102
  IFS=$as_save_IFS
 
5103
  test -z "$as_dir" && as_dir=.
 
5104
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5105
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5106
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
5107
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5108
    break 2
 
5109
  fi
 
5110
done
 
5111
done
 
5112
IFS=$as_save_IFS
 
5113
 
 
5114
fi
 
5115
fi
 
5116
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
5117
if test -n "$ac_ct_OBJDUMP"; then
 
5118
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
 
5119
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
5120
else
 
5121
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5122
$as_echo "no" >&6; }
 
5123
fi
 
5124
 
 
5125
  if test "x$ac_ct_OBJDUMP" = x; then
 
5126
    OBJDUMP="false"
 
5127
  else
 
5128
    case $cross_compiling:$ac_tool_warned in
 
5129
yes:)
 
5130
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5131
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5132
ac_tool_warned=yes ;;
 
5133
esac
 
5134
    OBJDUMP=$ac_ct_OBJDUMP
 
5135
  fi
 
5136
else
 
5137
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
5138
fi
 
5139
 
 
5140
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5141
 
 
5142
 
 
5143
 
 
5144
 
 
5145
 
4289
5146
 
4290
5147
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4291
5148
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4340
5197
  fi
4341
5198
  ;;
4342
5199
 
 
5200
cegcc)
 
5201
  # use the weaker test based on 'objdump'. See mingw*.
 
5202
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
5203
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5204
  ;;
 
5205
 
4343
5206
darwin* | rhapsody*)
4344
5207
  lt_cv_deplibs_check_method=pass_all
4345
5208
  ;;
4346
5209
 
4347
5210
freebsd* | dragonfly*)
4348
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
5211
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4349
5212
    case $host_cpu in
4350
5213
    i*86 )
4351
5214
      # Not sure whether the presence of OpenBSD here was a mistake.
4403
5266
  ;;
4404
5267
 
4405
5268
netbsd*)
4406
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
5269
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4407
5270
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4408
5271
  else
4409
5272
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4416
5279
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4417
5280
  ;;
4418
5281
 
4419
 
nto-qnx*)
4420
 
  lt_cv_deplibs_check_method=unknown
 
5282
*nto* | *qnx*)
 
5283
  lt_cv_deplibs_check_method=pass_all
4421
5284
  ;;
4422
5285
 
4423
5286
openbsd*)
4424
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5287
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4425
5288
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4426
5289
  else
4427
5290
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4440
5303
  lt_cv_deplibs_check_method=pass_all
4441
5304
  ;;
4442
5305
 
 
5306
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5307
  lt_cv_deplibs_check_method=pass_all
 
5308
  ;;
 
5309
 
4443
5310
sysv4 | sysv4.3*)
4444
5311
  case $host_vendor in
4445
5312
  motorola)
4467
5334
  esac
4468
5335
  ;;
4469
5336
 
4470
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5337
tpf*)
4471
5338
  lt_cv_deplibs_check_method=pass_all
4472
5339
  ;;
4473
5340
esac
4482
5349
 
4483
5350
 
4484
5351
 
 
5352
 
 
5353
 
 
5354
 
 
5355
 
 
5356
 
 
5357
 
 
5358
 
 
5359
 
 
5360
if test -n "$ac_tool_prefix"; then
 
5361
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
5362
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
5363
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5364
$as_echo_n "checking for $ac_word... " >&6; }
 
5365
if test "${ac_cv_prog_AR+set}" = set; then
 
5366
  $as_echo_n "(cached) " >&6
 
5367
else
 
5368
  if test -n "$AR"; then
 
5369
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5370
else
 
5371
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5372
for as_dir in $PATH
 
5373
do
 
5374
  IFS=$as_save_IFS
 
5375
  test -z "$as_dir" && as_dir=.
 
5376
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5377
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5378
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5379
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5380
    break 2
 
5381
  fi
 
5382
done
 
5383
done
 
5384
IFS=$as_save_IFS
 
5385
 
 
5386
fi
 
5387
fi
 
5388
AR=$ac_cv_prog_AR
 
5389
if test -n "$AR"; then
 
5390
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
 
5391
$as_echo "$AR" >&6; }
 
5392
else
 
5393
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5394
$as_echo "no" >&6; }
 
5395
fi
 
5396
 
 
5397
 
 
5398
fi
 
5399
if test -z "$ac_cv_prog_AR"; then
 
5400
  ac_ct_AR=$AR
 
5401
  # Extract the first word of "ar", so it can be a program name with args.
 
5402
set dummy ar; ac_word=$2
 
5403
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5404
$as_echo_n "checking for $ac_word... " >&6; }
 
5405
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
5406
  $as_echo_n "(cached) " >&6
 
5407
else
 
5408
  if test -n "$ac_ct_AR"; then
 
5409
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5410
else
 
5411
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5412
for as_dir in $PATH
 
5413
do
 
5414
  IFS=$as_save_IFS
 
5415
  test -z "$as_dir" && as_dir=.
 
5416
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5417
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5418
    ac_cv_prog_ac_ct_AR="ar"
 
5419
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5420
    break 2
 
5421
  fi
 
5422
done
 
5423
done
 
5424
IFS=$as_save_IFS
 
5425
 
 
5426
fi
 
5427
fi
 
5428
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5429
if test -n "$ac_ct_AR"; then
 
5430
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
5431
$as_echo "$ac_ct_AR" >&6; }
 
5432
else
 
5433
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5434
$as_echo "no" >&6; }
 
5435
fi
 
5436
 
 
5437
  if test "x$ac_ct_AR" = x; then
 
5438
    AR="false"
 
5439
  else
 
5440
    case $cross_compiling:$ac_tool_warned in
 
5441
yes:)
 
5442
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5443
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5444
ac_tool_warned=yes ;;
 
5445
esac
 
5446
    AR=$ac_ct_AR
 
5447
  fi
 
5448
else
 
5449
  AR="$ac_cv_prog_AR"
 
5450
fi
 
5451
 
 
5452
test -z "$AR" && AR=ar
 
5453
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
5454
 
 
5455
 
 
5456
 
 
5457
 
 
5458
 
 
5459
 
 
5460
 
 
5461
 
 
5462
 
 
5463
 
 
5464
 
 
5465
if test -n "$ac_tool_prefix"; then
 
5466
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5467
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5468
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5469
$as_echo_n "checking for $ac_word... " >&6; }
 
5470
if test "${ac_cv_prog_STRIP+set}" = set; then
 
5471
  $as_echo_n "(cached) " >&6
 
5472
else
 
5473
  if test -n "$STRIP"; then
 
5474
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5475
else
 
5476
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5477
for as_dir in $PATH
 
5478
do
 
5479
  IFS=$as_save_IFS
 
5480
  test -z "$as_dir" && as_dir=.
 
5481
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5482
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5483
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5484
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5485
    break 2
 
5486
  fi
 
5487
done
 
5488
done
 
5489
IFS=$as_save_IFS
 
5490
 
 
5491
fi
 
5492
fi
 
5493
STRIP=$ac_cv_prog_STRIP
 
5494
if test -n "$STRIP"; then
 
5495
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
5496
$as_echo "$STRIP" >&6; }
 
5497
else
 
5498
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5499
$as_echo "no" >&6; }
 
5500
fi
 
5501
 
 
5502
 
 
5503
fi
 
5504
if test -z "$ac_cv_prog_STRIP"; then
 
5505
  ac_ct_STRIP=$STRIP
 
5506
  # Extract the first word of "strip", so it can be a program name with args.
 
5507
set dummy strip; ac_word=$2
 
5508
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5509
$as_echo_n "checking for $ac_word... " >&6; }
 
5510
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
5511
  $as_echo_n "(cached) " >&6
 
5512
else
 
5513
  if test -n "$ac_ct_STRIP"; then
 
5514
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5515
else
 
5516
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5517
for as_dir in $PATH
 
5518
do
 
5519
  IFS=$as_save_IFS
 
5520
  test -z "$as_dir" && as_dir=.
 
5521
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5522
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5523
    ac_cv_prog_ac_ct_STRIP="strip"
 
5524
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5525
    break 2
 
5526
  fi
 
5527
done
 
5528
done
 
5529
IFS=$as_save_IFS
 
5530
 
 
5531
fi
 
5532
fi
 
5533
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5534
if test -n "$ac_ct_STRIP"; then
 
5535
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
5536
$as_echo "$ac_ct_STRIP" >&6; }
 
5537
else
 
5538
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5539
$as_echo "no" >&6; }
 
5540
fi
 
5541
 
 
5542
  if test "x$ac_ct_STRIP" = x; then
 
5543
    STRIP=":"
 
5544
  else
 
5545
    case $cross_compiling:$ac_tool_warned in
 
5546
yes:)
 
5547
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5548
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5549
ac_tool_warned=yes ;;
 
5550
esac
 
5551
    STRIP=$ac_ct_STRIP
 
5552
  fi
 
5553
else
 
5554
  STRIP="$ac_cv_prog_STRIP"
 
5555
fi
 
5556
 
 
5557
test -z "$STRIP" && STRIP=:
 
5558
 
 
5559
 
 
5560
 
 
5561
 
 
5562
 
 
5563
 
 
5564
if test -n "$ac_tool_prefix"; then
 
5565
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5566
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5567
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5568
$as_echo_n "checking for $ac_word... " >&6; }
 
5569
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
5570
  $as_echo_n "(cached) " >&6
 
5571
else
 
5572
  if test -n "$RANLIB"; then
 
5573
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5574
else
 
5575
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5576
for as_dir in $PATH
 
5577
do
 
5578
  IFS=$as_save_IFS
 
5579
  test -z "$as_dir" && as_dir=.
 
5580
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5581
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5582
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5583
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5584
    break 2
 
5585
  fi
 
5586
done
 
5587
done
 
5588
IFS=$as_save_IFS
 
5589
 
 
5590
fi
 
5591
fi
 
5592
RANLIB=$ac_cv_prog_RANLIB
 
5593
if test -n "$RANLIB"; then
 
5594
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
 
5595
$as_echo "$RANLIB" >&6; }
 
5596
else
 
5597
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5598
$as_echo "no" >&6; }
 
5599
fi
 
5600
 
 
5601
 
 
5602
fi
 
5603
if test -z "$ac_cv_prog_RANLIB"; then
 
5604
  ac_ct_RANLIB=$RANLIB
 
5605
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5606
set dummy ranlib; ac_word=$2
 
5607
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5608
$as_echo_n "checking for $ac_word... " >&6; }
 
5609
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
5610
  $as_echo_n "(cached) " >&6
 
5611
else
 
5612
  if test -n "$ac_ct_RANLIB"; then
 
5613
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5614
else
 
5615
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5616
for as_dir in $PATH
 
5617
do
 
5618
  IFS=$as_save_IFS
 
5619
  test -z "$as_dir" && as_dir=.
 
5620
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5621
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5622
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5623
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5624
    break 2
 
5625
  fi
 
5626
done
 
5627
done
 
5628
IFS=$as_save_IFS
 
5629
 
 
5630
fi
 
5631
fi
 
5632
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5633
if test -n "$ac_ct_RANLIB"; then
 
5634
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
5635
$as_echo "$ac_ct_RANLIB" >&6; }
 
5636
else
 
5637
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5638
$as_echo "no" >&6; }
 
5639
fi
 
5640
 
 
5641
  if test "x$ac_ct_RANLIB" = x; then
 
5642
    RANLIB=":"
 
5643
  else
 
5644
    case $cross_compiling:$ac_tool_warned in
 
5645
yes:)
 
5646
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5647
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5648
ac_tool_warned=yes ;;
 
5649
esac
 
5650
    RANLIB=$ac_ct_RANLIB
 
5651
  fi
 
5652
else
 
5653
  RANLIB="$ac_cv_prog_RANLIB"
 
5654
fi
 
5655
 
 
5656
test -z "$RANLIB" && RANLIB=:
 
5657
 
 
5658
 
 
5659
 
 
5660
 
 
5661
 
 
5662
 
 
5663
# Determine commands to create old-style static archives.
 
5664
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
5665
old_postinstall_cmds='chmod 644 $oldlib'
 
5666
old_postuninstall_cmds=
 
5667
 
 
5668
if test -n "$RANLIB"; then
 
5669
  case $host_os in
 
5670
  openbsd*)
 
5671
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
5672
    ;;
 
5673
  *)
 
5674
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
5675
    ;;
 
5676
  esac
 
5677
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
5678
fi
 
5679
 
 
5680
 
 
5681
 
 
5682
 
 
5683
 
 
5684
 
 
5685
 
 
5686
 
 
5687
 
 
5688
 
 
5689
 
 
5690
 
 
5691
 
 
5692
 
 
5693
 
 
5694
 
 
5695
 
 
5696
 
 
5697
 
 
5698
 
 
5699
 
 
5700
 
 
5701
 
 
5702
 
 
5703
 
 
5704
 
 
5705
 
 
5706
 
 
5707
 
 
5708
 
 
5709
 
 
5710
 
 
5711
 
 
5712
 
4485
5713
# If no C compiler was specified, use CC.
4486
5714
LTCC=${LTCC-"$CC"}
4487
5715
 
4492
5720
compiler=$CC
4493
5721
 
4494
5722
 
4495
 
# Check whether --enable-libtool-lock was given.
4496
 
if test "${enable_libtool_lock+set}" = set; then
4497
 
  enableval=$enable_libtool_lock;
4498
 
fi
4499
 
 
4500
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4501
 
 
4502
 
# Some flags need to be propagated to the compiler or linker for good
4503
 
# libtool support.
4504
 
case $host in
4505
 
ia64-*-hpux*)
4506
 
  # Find out which ABI we are using.
4507
 
  echo 'int i;' > conftest.$ac_ext
4508
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509
 
  (eval $ac_compile) 2>&5
4510
 
  ac_status=$?
4511
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512
 
  (exit $ac_status); }; then
4513
 
    case `/usr/bin/file conftest.$ac_objext` in
4514
 
    *ELF-32*)
4515
 
      HPUX_IA64_MODE="32"
4516
 
      ;;
4517
 
    *ELF-64*)
4518
 
      HPUX_IA64_MODE="64"
4519
 
      ;;
4520
 
    esac
4521
 
  fi
4522
 
  rm -rf conftest*
4523
 
  ;;
4524
 
*-*-irix6*)
4525
 
  # Find out which ABI we are using.
4526
 
  echo '#line 4526 "configure"' > conftest.$ac_ext
4527
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4528
 
  (eval $ac_compile) 2>&5
4529
 
  ac_status=$?
4530
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531
 
  (exit $ac_status); }; then
4532
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
4533
 
    case `/usr/bin/file conftest.$ac_objext` in
4534
 
    *32-bit*)
4535
 
      LD="${LD-ld} -melf32bsmip"
4536
 
      ;;
4537
 
    *N32*)
4538
 
      LD="${LD-ld} -melf32bmipn32"
4539
 
      ;;
4540
 
    *64-bit*)
4541
 
      LD="${LD-ld} -melf64bmip"
4542
 
      ;;
4543
 
    esac
4544
 
   else
4545
 
    case `/usr/bin/file conftest.$ac_objext` in
4546
 
    *32-bit*)
4547
 
      LD="${LD-ld} -32"
4548
 
      ;;
4549
 
    *N32*)
4550
 
      LD="${LD-ld} -n32"
4551
 
      ;;
4552
 
    *64-bit*)
4553
 
      LD="${LD-ld} -64"
4554
 
      ;;
4555
 
    esac
4556
 
   fi
4557
 
  fi
4558
 
  rm -rf conftest*
4559
 
  ;;
4560
 
 
4561
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4562
 
s390*-*linux*|sparc*-*linux*)
4563
 
  # Find out which ABI we are using.
4564
 
  echo 'int i;' > conftest.$ac_ext
4565
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4566
 
  (eval $ac_compile) 2>&5
4567
 
  ac_status=$?
4568
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569
 
  (exit $ac_status); }; then
4570
 
    case `/usr/bin/file conftest.o` in
4571
 
    *32-bit*)
4572
 
      case $host in
4573
 
        x86_64-*kfreebsd*-gnu)
4574
 
          LD="${LD-ld} -m elf_i386_fbsd"
4575
 
          ;;
4576
 
        x86_64-*linux*)
4577
 
          LD="${LD-ld} -m elf_i386"
4578
 
          ;;
4579
 
        ppc64-*linux*|powerpc64-*linux*)
4580
 
          LD="${LD-ld} -m elf32ppclinux"
4581
 
          ;;
4582
 
        s390x-*linux*)
4583
 
          LD="${LD-ld} -m elf_s390"
4584
 
          ;;
4585
 
        sparc64-*linux*)
4586
 
          LD="${LD-ld} -m elf32_sparc"
4587
 
          ;;
4588
 
      esac
4589
 
      ;;
4590
 
    *64-bit*)
4591
 
      libsuff=64
4592
 
      case $host in
4593
 
        x86_64-*kfreebsd*-gnu)
4594
 
          LD="${LD-ld} -m elf_x86_64_fbsd"
4595
 
          ;;
4596
 
        x86_64-*linux*)
4597
 
          LD="${LD-ld} -m elf_x86_64"
4598
 
          ;;
4599
 
        ppc*-*linux*|powerpc*-*linux*)
4600
 
          LD="${LD-ld} -m elf64ppc"
4601
 
          ;;
4602
 
        s390*-*linux*)
4603
 
          LD="${LD-ld} -m elf64_s390"
4604
 
          ;;
4605
 
        sparc*-*linux*)
4606
 
          LD="${LD-ld} -m elf64_sparc"
4607
 
          ;;
4608
 
      esac
4609
 
      ;;
4610
 
    esac
4611
 
  fi
4612
 
  rm -rf conftest*
4613
 
  ;;
4614
 
 
4615
 
*-*-sco3.2v5*)
4616
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4617
 
  SAVE_CFLAGS="$CFLAGS"
4618
 
  CFLAGS="$CFLAGS -belf"
4619
 
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4620
 
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4621
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
4622
 
  $as_echo_n "(cached) " >&6
4623
 
else
4624
 
  ac_ext=c
4625
 
ac_cpp='$CPP $CPPFLAGS'
4626
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4627
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4628
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4629
 
 
4630
 
     cat >conftest.$ac_ext <<_ACEOF
4631
 
/* confdefs.h.  */
4632
 
_ACEOF
4633
 
cat confdefs.h >>conftest.$ac_ext
4634
 
cat >>conftest.$ac_ext <<_ACEOF
4635
 
/* end confdefs.h.  */
4636
 
 
4637
 
int
4638
 
main ()
4639
 
{
4640
 
 
4641
 
  ;
4642
 
  return 0;
4643
 
}
4644
 
_ACEOF
4645
 
rm -f conftest.$ac_objext conftest$ac_exeext
4646
 
if { (ac_try="$ac_link"
4647
 
case "(($ac_try" in
4648
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649
 
  *) ac_try_echo=$ac_try;;
4650
 
esac
4651
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4652
 
$as_echo "$ac_try_echo") >&5
4653
 
  (eval "$ac_link") 2>conftest.er1
4654
 
  ac_status=$?
4655
 
  grep -v '^ *+' conftest.er1 >conftest.err
4656
 
  rm -f conftest.er1
4657
 
  cat conftest.err >&5
4658
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659
 
  (exit $ac_status); } && {
4660
 
         test -z "$ac_c_werror_flag" ||
4661
 
         test ! -s conftest.err
4662
 
       } && test -s conftest$ac_exeext && {
4663
 
         test "$cross_compiling" = yes ||
4664
 
         $as_test_x conftest$ac_exeext
4665
 
       }; then
4666
 
  lt_cv_cc_needs_belf=yes
4667
 
else
4668
 
  $as_echo "$as_me: failed program was:" >&5
4669
 
sed 's/^/| /' conftest.$ac_ext >&5
4670
 
 
4671
 
        lt_cv_cc_needs_belf=no
4672
 
fi
4673
 
 
4674
 
rm -rf conftest.dSYM
4675
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4676
 
      conftest$ac_exeext conftest.$ac_ext
4677
 
     ac_ext=c
4678
 
ac_cpp='$CPP $CPPFLAGS'
4679
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4680
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4681
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4682
 
 
4683
 
fi
4684
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4685
 
$as_echo "$lt_cv_cc_needs_belf" >&6; }
4686
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4687
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4688
 
    CFLAGS="$SAVE_CFLAGS"
4689
 
  fi
4690
 
  ;;
4691
 
sparc*-*solaris*)
4692
 
  # Find out which ABI we are using.
4693
 
  echo 'int i;' > conftest.$ac_ext
4694
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4695
 
  (eval $ac_compile) 2>&5
4696
 
  ac_status=$?
4697
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698
 
  (exit $ac_status); }; then
4699
 
    case `/usr/bin/file conftest.o` in
4700
 
    *64-bit*)
4701
 
      case $lt_cv_prog_gnu_ld in
4702
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4703
 
      *)
4704
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4705
 
          LD="${LD-ld} -64"
4706
 
        fi
4707
 
        ;;
4708
 
      esac
4709
 
      ;;
4710
 
    esac
4711
 
  fi
4712
 
  rm -rf conftest*
4713
 
  ;;
4714
 
 
4715
 
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4716
 
  if test -n "$ac_tool_prefix"; then
4717
 
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4718
 
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4719
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4720
 
$as_echo_n "checking for $ac_word... " >&6; }
4721
 
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4722
 
  $as_echo_n "(cached) " >&6
4723
 
else
4724
 
  if test -n "$DLLTOOL"; then
4725
 
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4726
 
else
4727
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728
 
for as_dir in $PATH
4729
 
do
4730
 
  IFS=$as_save_IFS
4731
 
  test -z "$as_dir" && as_dir=.
4732
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4733
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4734
 
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4735
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4736
 
    break 2
4737
 
  fi
4738
 
done
4739
 
done
4740
 
IFS=$as_save_IFS
4741
 
 
4742
 
fi
4743
 
fi
4744
 
DLLTOOL=$ac_cv_prog_DLLTOOL
4745
 
if test -n "$DLLTOOL"; then
4746
 
  { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4747
 
$as_echo "$DLLTOOL" >&6; }
4748
 
else
4749
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
4750
 
$as_echo "no" >&6; }
4751
 
fi
4752
 
 
4753
 
 
4754
 
fi
4755
 
if test -z "$ac_cv_prog_DLLTOOL"; then
4756
 
  ac_ct_DLLTOOL=$DLLTOOL
4757
 
  # Extract the first word of "dlltool", so it can be a program name with args.
4758
 
set dummy dlltool; ac_word=$2
4759
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4760
 
$as_echo_n "checking for $ac_word... " >&6; }
4761
 
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4762
 
  $as_echo_n "(cached) " >&6
4763
 
else
4764
 
  if test -n "$ac_ct_DLLTOOL"; then
4765
 
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4766
 
else
4767
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768
 
for as_dir in $PATH
4769
 
do
4770
 
  IFS=$as_save_IFS
4771
 
  test -z "$as_dir" && as_dir=.
4772
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4773
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4774
 
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4775
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4776
 
    break 2
4777
 
  fi
4778
 
done
4779
 
done
4780
 
IFS=$as_save_IFS
4781
 
 
4782
 
fi
4783
 
fi
4784
 
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4785
 
if test -n "$ac_ct_DLLTOOL"; then
4786
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4787
 
$as_echo "$ac_ct_DLLTOOL" >&6; }
4788
 
else
4789
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
4790
 
$as_echo "no" >&6; }
4791
 
fi
4792
 
 
4793
 
  if test "x$ac_ct_DLLTOOL" = x; then
4794
 
    DLLTOOL="false"
4795
 
  else
4796
 
    case $cross_compiling:$ac_tool_warned in
4797
 
yes:)
4798
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4799
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4800
 
ac_tool_warned=yes ;;
4801
 
esac
4802
 
    DLLTOOL=$ac_ct_DLLTOOL
4803
 
  fi
4804
 
else
4805
 
  DLLTOOL="$ac_cv_prog_DLLTOOL"
4806
 
fi
4807
 
 
4808
 
  if test -n "$ac_tool_prefix"; then
4809
 
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4810
 
set dummy ${ac_tool_prefix}as; ac_word=$2
4811
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4812
 
$as_echo_n "checking for $ac_word... " >&6; }
4813
 
if test "${ac_cv_prog_AS+set}" = set; then
4814
 
  $as_echo_n "(cached) " >&6
4815
 
else
4816
 
  if test -n "$AS"; then
4817
 
  ac_cv_prog_AS="$AS" # Let the user override the test.
4818
 
else
4819
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820
 
for as_dir in $PATH
4821
 
do
4822
 
  IFS=$as_save_IFS
4823
 
  test -z "$as_dir" && as_dir=.
4824
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4825
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826
 
    ac_cv_prog_AS="${ac_tool_prefix}as"
4827
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4828
 
    break 2
4829
 
  fi
4830
 
done
4831
 
done
4832
 
IFS=$as_save_IFS
4833
 
 
4834
 
fi
4835
 
fi
4836
 
AS=$ac_cv_prog_AS
4837
 
if test -n "$AS"; then
4838
 
  { $as_echo "$as_me:$LINENO: result: $AS" >&5
4839
 
$as_echo "$AS" >&6; }
4840
 
else
4841
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
4842
 
$as_echo "no" >&6; }
4843
 
fi
4844
 
 
4845
 
 
4846
 
fi
4847
 
if test -z "$ac_cv_prog_AS"; then
4848
 
  ac_ct_AS=$AS
4849
 
  # Extract the first word of "as", so it can be a program name with args.
4850
 
set dummy as; ac_word=$2
4851
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4852
 
$as_echo_n "checking for $ac_word... " >&6; }
4853
 
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4854
 
  $as_echo_n "(cached) " >&6
4855
 
else
4856
 
  if test -n "$ac_ct_AS"; then
4857
 
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4858
 
else
4859
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860
 
for as_dir in $PATH
4861
 
do
4862
 
  IFS=$as_save_IFS
4863
 
  test -z "$as_dir" && as_dir=.
4864
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4865
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4866
 
    ac_cv_prog_ac_ct_AS="as"
4867
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4868
 
    break 2
4869
 
  fi
4870
 
done
4871
 
done
4872
 
IFS=$as_save_IFS
4873
 
 
4874
 
fi
4875
 
fi
4876
 
ac_ct_AS=$ac_cv_prog_ac_ct_AS
4877
 
if test -n "$ac_ct_AS"; then
4878
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4879
 
$as_echo "$ac_ct_AS" >&6; }
4880
 
else
4881
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
4882
 
$as_echo "no" >&6; }
4883
 
fi
4884
 
 
4885
 
  if test "x$ac_ct_AS" = x; then
4886
 
    AS="false"
4887
 
  else
4888
 
    case $cross_compiling:$ac_tool_warned in
4889
 
yes:)
4890
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4891
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4892
 
ac_tool_warned=yes ;;
4893
 
esac
4894
 
    AS=$ac_ct_AS
4895
 
  fi
4896
 
else
4897
 
  AS="$ac_cv_prog_AS"
4898
 
fi
4899
 
 
4900
 
  if test -n "$ac_tool_prefix"; then
4901
 
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4902
 
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4903
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4904
 
$as_echo_n "checking for $ac_word... " >&6; }
4905
 
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4906
 
  $as_echo_n "(cached) " >&6
4907
 
else
4908
 
  if test -n "$OBJDUMP"; then
4909
 
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4910
 
else
4911
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912
 
for as_dir in $PATH
4913
 
do
4914
 
  IFS=$as_save_IFS
4915
 
  test -z "$as_dir" && as_dir=.
4916
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4917
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4918
 
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4919
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920
 
    break 2
4921
 
  fi
4922
 
done
4923
 
done
4924
 
IFS=$as_save_IFS
4925
 
 
4926
 
fi
4927
 
fi
4928
 
OBJDUMP=$ac_cv_prog_OBJDUMP
4929
 
if test -n "$OBJDUMP"; then
4930
 
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4931
 
$as_echo "$OBJDUMP" >&6; }
4932
 
else
4933
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
4934
 
$as_echo "no" >&6; }
4935
 
fi
4936
 
 
4937
 
 
4938
 
fi
4939
 
if test -z "$ac_cv_prog_OBJDUMP"; then
4940
 
  ac_ct_OBJDUMP=$OBJDUMP
4941
 
  # Extract the first word of "objdump", so it can be a program name with args.
4942
 
set dummy objdump; ac_word=$2
4943
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4944
 
$as_echo_n "checking for $ac_word... " >&6; }
4945
 
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4946
 
  $as_echo_n "(cached) " >&6
4947
 
else
4948
 
  if test -n "$ac_ct_OBJDUMP"; then
4949
 
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4950
 
else
4951
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952
 
for as_dir in $PATH
4953
 
do
4954
 
  IFS=$as_save_IFS
4955
 
  test -z "$as_dir" && as_dir=.
4956
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4957
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958
 
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4959
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4960
 
    break 2
4961
 
  fi
4962
 
done
4963
 
done
4964
 
IFS=$as_save_IFS
4965
 
 
4966
 
fi
4967
 
fi
4968
 
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4969
 
if test -n "$ac_ct_OBJDUMP"; then
4970
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4971
 
$as_echo "$ac_ct_OBJDUMP" >&6; }
4972
 
else
4973
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
4974
 
$as_echo "no" >&6; }
4975
 
fi
4976
 
 
4977
 
  if test "x$ac_ct_OBJDUMP" = x; then
4978
 
    OBJDUMP="false"
4979
 
  else
4980
 
    case $cross_compiling:$ac_tool_warned in
4981
 
yes:)
4982
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4983
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4984
 
ac_tool_warned=yes ;;
4985
 
esac
4986
 
    OBJDUMP=$ac_ct_OBJDUMP
4987
 
  fi
4988
 
else
4989
 
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4990
 
fi
4991
 
 
4992
 
  ;;
4993
 
 
4994
 
esac
4995
 
 
4996
 
need_locks="$enable_libtool_lock"
4997
 
 
4998
 
 
4999
 
ac_ext=c
5000
 
ac_cpp='$CPP $CPPFLAGS'
5001
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5002
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5003
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5004
 
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5005
 
$as_echo_n "checking how to run the C preprocessor... " >&6; }
5006
 
# On Suns, sometimes $CPP names a directory.
5007
 
if test -n "$CPP" && test -d "$CPP"; then
5008
 
  CPP=
5009
 
fi
5010
 
if test -z "$CPP"; then
5011
 
  if test "${ac_cv_prog_CPP+set}" = set; then
5012
 
  $as_echo_n "(cached) " >&6
5013
 
else
5014
 
      # Double quotes because CPP needs to be expanded
5015
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5016
 
    do
5017
 
      ac_preproc_ok=false
5018
 
for ac_c_preproc_warn_flag in '' yes
5019
 
do
5020
 
  # Use a header file that comes with gcc, so configuring glibc
5021
 
  # with a fresh cross-compiler works.
5022
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5023
 
  # <limits.h> exists even on freestanding compilers.
5024
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5025
 
  # not just through cpp. "Syntax error" is here to catch this case.
5026
 
  cat >conftest.$ac_ext <<_ACEOF
5027
 
/* confdefs.h.  */
5028
 
_ACEOF
5029
 
cat confdefs.h >>conftest.$ac_ext
5030
 
cat >>conftest.$ac_ext <<_ACEOF
5031
 
/* end confdefs.h.  */
5032
 
#ifdef __STDC__
5033
 
# include <limits.h>
5034
 
#else
5035
 
# include <assert.h>
5036
 
#endif
5037
 
                     Syntax error
5038
 
_ACEOF
5039
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5040
 
case "(($ac_try" in
5041
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042
 
  *) ac_try_echo=$ac_try;;
5043
 
esac
5044
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5045
 
$as_echo "$ac_try_echo") >&5
5046
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5047
 
  ac_status=$?
5048
 
  grep -v '^ *+' conftest.er1 >conftest.err
5049
 
  rm -f conftest.er1
5050
 
  cat conftest.err >&5
5051
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052
 
  (exit $ac_status); } >/dev/null && {
5053
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5054
 
         test ! -s conftest.err
5055
 
       }; then
5056
 
  :
5057
 
else
5058
 
  $as_echo "$as_me: failed program was:" >&5
5059
 
sed 's/^/| /' conftest.$ac_ext >&5
5060
 
 
5061
 
  # Broken: fails on valid input.
5062
 
continue
5063
 
fi
5064
 
 
5065
 
rm -f conftest.err conftest.$ac_ext
5066
 
 
5067
 
  # OK, works on sane cases.  Now check whether nonexistent headers
5068
 
  # can be detected and how.
5069
 
  cat >conftest.$ac_ext <<_ACEOF
5070
 
/* confdefs.h.  */
5071
 
_ACEOF
5072
 
cat confdefs.h >>conftest.$ac_ext
5073
 
cat >>conftest.$ac_ext <<_ACEOF
5074
 
/* end confdefs.h.  */
5075
 
#include <ac_nonexistent.h>
5076
 
_ACEOF
5077
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5078
 
case "(($ac_try" in
5079
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5080
 
  *) ac_try_echo=$ac_try;;
5081
 
esac
5082
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5083
 
$as_echo "$ac_try_echo") >&5
5084
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5085
 
  ac_status=$?
5086
 
  grep -v '^ *+' conftest.er1 >conftest.err
5087
 
  rm -f conftest.er1
5088
 
  cat conftest.err >&5
5089
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090
 
  (exit $ac_status); } >/dev/null && {
5091
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5092
 
         test ! -s conftest.err
5093
 
       }; then
5094
 
  # Broken: success on invalid input.
5095
 
continue
5096
 
else
5097
 
  $as_echo "$as_me: failed program was:" >&5
5098
 
sed 's/^/| /' conftest.$ac_ext >&5
5099
 
 
5100
 
  # Passes both tests.
5101
 
ac_preproc_ok=:
5102
 
break
5103
 
fi
5104
 
 
5105
 
rm -f conftest.err conftest.$ac_ext
5106
 
 
5107
 
done
5108
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5109
 
rm -f conftest.err conftest.$ac_ext
5110
 
if $ac_preproc_ok; then
5111
 
  break
5112
 
fi
5113
 
 
5114
 
    done
5115
 
    ac_cv_prog_CPP=$CPP
5116
 
 
5117
 
fi
5118
 
  CPP=$ac_cv_prog_CPP
5119
 
else
5120
 
  ac_cv_prog_CPP=$CPP
5121
 
fi
5122
 
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
5123
 
$as_echo "$CPP" >&6; }
5124
 
ac_preproc_ok=false
5125
 
for ac_c_preproc_warn_flag in '' yes
5126
 
do
5127
 
  # Use a header file that comes with gcc, so configuring glibc
5128
 
  # with a fresh cross-compiler works.
5129
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5130
 
  # <limits.h> exists even on freestanding compilers.
5131
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5132
 
  # not just through cpp. "Syntax error" is here to catch this case.
5133
 
  cat >conftest.$ac_ext <<_ACEOF
5134
 
/* confdefs.h.  */
5135
 
_ACEOF
5136
 
cat confdefs.h >>conftest.$ac_ext
5137
 
cat >>conftest.$ac_ext <<_ACEOF
5138
 
/* end confdefs.h.  */
5139
 
#ifdef __STDC__
5140
 
# include <limits.h>
5141
 
#else
5142
 
# include <assert.h>
5143
 
#endif
5144
 
                     Syntax error
5145
 
_ACEOF
5146
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5147
 
case "(($ac_try" in
5148
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5149
 
  *) ac_try_echo=$ac_try;;
5150
 
esac
5151
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5152
 
$as_echo "$ac_try_echo") >&5
5153
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5154
 
  ac_status=$?
5155
 
  grep -v '^ *+' conftest.er1 >conftest.err
5156
 
  rm -f conftest.er1
5157
 
  cat conftest.err >&5
5158
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159
 
  (exit $ac_status); } >/dev/null && {
5160
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5161
 
         test ! -s conftest.err
5162
 
       }; then
5163
 
  :
5164
 
else
5165
 
  $as_echo "$as_me: failed program was:" >&5
5166
 
sed 's/^/| /' conftest.$ac_ext >&5
5167
 
 
5168
 
  # Broken: fails on valid input.
5169
 
continue
5170
 
fi
5171
 
 
5172
 
rm -f conftest.err conftest.$ac_ext
5173
 
 
5174
 
  # OK, works on sane cases.  Now check whether nonexistent headers
5175
 
  # can be detected and how.
5176
 
  cat >conftest.$ac_ext <<_ACEOF
5177
 
/* confdefs.h.  */
5178
 
_ACEOF
5179
 
cat confdefs.h >>conftest.$ac_ext
5180
 
cat >>conftest.$ac_ext <<_ACEOF
5181
 
/* end confdefs.h.  */
5182
 
#include <ac_nonexistent.h>
5183
 
_ACEOF
5184
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5185
 
case "(($ac_try" in
5186
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187
 
  *) ac_try_echo=$ac_try;;
5188
 
esac
5189
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5190
 
$as_echo "$ac_try_echo") >&5
5191
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5192
 
  ac_status=$?
5193
 
  grep -v '^ *+' conftest.er1 >conftest.err
5194
 
  rm -f conftest.er1
5195
 
  cat conftest.err >&5
5196
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197
 
  (exit $ac_status); } >/dev/null && {
5198
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5199
 
         test ! -s conftest.err
5200
 
       }; then
5201
 
  # Broken: success on invalid input.
5202
 
continue
5203
 
else
5204
 
  $as_echo "$as_me: failed program was:" >&5
5205
 
sed 's/^/| /' conftest.$ac_ext >&5
5206
 
 
5207
 
  # Passes both tests.
5208
 
ac_preproc_ok=:
5209
 
break
5210
 
fi
5211
 
 
5212
 
rm -f conftest.err conftest.$ac_ext
5213
 
 
5214
 
done
5215
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5216
 
rm -f conftest.err conftest.$ac_ext
5217
 
if $ac_preproc_ok; then
5218
 
  :
5219
 
else
5220
 
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5221
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5222
 
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5223
 
See \`config.log' for more details." >&5
5224
 
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5225
 
See \`config.log' for more details." >&2;}
5226
 
   { (exit 1); exit 1; }; }; }
5227
 
fi
5228
 
 
5229
 
ac_ext=c
5230
 
ac_cpp='$CPP $CPPFLAGS'
5231
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5232
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5233
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5234
 
 
5235
 
 
5236
 
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5237
 
$as_echo_n "checking for ANSI C header files... " >&6; }
5238
 
if test "${ac_cv_header_stdc+set}" = set; then
5239
 
  $as_echo_n "(cached) " >&6
5240
 
else
5241
 
  cat >conftest.$ac_ext <<_ACEOF
5242
 
/* confdefs.h.  */
5243
 
_ACEOF
5244
 
cat confdefs.h >>conftest.$ac_ext
5245
 
cat >>conftest.$ac_ext <<_ACEOF
5246
 
/* end confdefs.h.  */
5247
 
#include <stdlib.h>
5248
 
#include <stdarg.h>
5249
 
#include <string.h>
5250
 
#include <float.h>
5251
 
 
5252
 
int
5253
 
main ()
5254
 
{
5255
 
 
5256
 
  ;
5257
 
  return 0;
5258
 
}
5259
 
_ACEOF
5260
 
rm -f conftest.$ac_objext
5261
 
if { (ac_try="$ac_compile"
5262
 
case "(($ac_try" in
5263
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5264
 
  *) ac_try_echo=$ac_try;;
5265
 
esac
5266
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5267
 
$as_echo "$ac_try_echo") >&5
5268
 
  (eval "$ac_compile") 2>conftest.er1
5269
 
  ac_status=$?
5270
 
  grep -v '^ *+' conftest.er1 >conftest.err
5271
 
  rm -f conftest.er1
5272
 
  cat conftest.err >&5
5273
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274
 
  (exit $ac_status); } && {
5275
 
         test -z "$ac_c_werror_flag" ||
5276
 
         test ! -s conftest.err
5277
 
       } && test -s conftest.$ac_objext; then
5278
 
  ac_cv_header_stdc=yes
5279
 
else
5280
 
  $as_echo "$as_me: failed program was:" >&5
5281
 
sed 's/^/| /' conftest.$ac_ext >&5
5282
 
 
5283
 
        ac_cv_header_stdc=no
5284
 
fi
5285
 
 
5286
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287
 
 
5288
 
if test $ac_cv_header_stdc = yes; then
5289
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5290
 
  cat >conftest.$ac_ext <<_ACEOF
5291
 
/* confdefs.h.  */
5292
 
_ACEOF
5293
 
cat confdefs.h >>conftest.$ac_ext
5294
 
cat >>conftest.$ac_ext <<_ACEOF
5295
 
/* end confdefs.h.  */
5296
 
#include <string.h>
5297
 
 
5298
 
_ACEOF
5299
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5300
 
  $EGREP "memchr" >/dev/null 2>&1; then
5301
 
  :
5302
 
else
5303
 
  ac_cv_header_stdc=no
5304
 
fi
5305
 
rm -f conftest*
5306
 
 
5307
 
fi
5308
 
 
5309
 
if test $ac_cv_header_stdc = yes; then
5310
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5311
 
  cat >conftest.$ac_ext <<_ACEOF
5312
 
/* confdefs.h.  */
5313
 
_ACEOF
5314
 
cat confdefs.h >>conftest.$ac_ext
5315
 
cat >>conftest.$ac_ext <<_ACEOF
5316
 
/* end confdefs.h.  */
5317
 
#include <stdlib.h>
5318
 
 
5319
 
_ACEOF
5320
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5321
 
  $EGREP "free" >/dev/null 2>&1; then
5322
 
  :
5323
 
else
5324
 
  ac_cv_header_stdc=no
5325
 
fi
5326
 
rm -f conftest*
5327
 
 
5328
 
fi
5329
 
 
5330
 
if test $ac_cv_header_stdc = yes; then
5331
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5332
 
  if test "$cross_compiling" = yes; then
5333
 
  :
5334
 
else
5335
 
  cat >conftest.$ac_ext <<_ACEOF
5336
 
/* confdefs.h.  */
5337
 
_ACEOF
5338
 
cat confdefs.h >>conftest.$ac_ext
5339
 
cat >>conftest.$ac_ext <<_ACEOF
5340
 
/* end confdefs.h.  */
5341
 
#include <ctype.h>
5342
 
#include <stdlib.h>
5343
 
#if ((' ' & 0x0FF) == 0x020)
5344
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5345
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5346
 
#else
5347
 
# define ISLOWER(c) \
5348
 
                   (('a' <= (c) && (c) <= 'i') \
5349
 
                     || ('j' <= (c) && (c) <= 'r') \
5350
 
                     || ('s' <= (c) && (c) <= 'z'))
5351
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5352
 
#endif
5353
 
 
5354
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5355
 
int
5356
 
main ()
5357
 
{
5358
 
  int i;
5359
 
  for (i = 0; i < 256; i++)
5360
 
    if (XOR (islower (i), ISLOWER (i))
5361
 
        || toupper (i) != TOUPPER (i))
5362
 
      return 2;
5363
 
  return 0;
5364
 
}
5365
 
_ACEOF
5366
 
rm -f conftest$ac_exeext
5367
 
if { (ac_try="$ac_link"
5368
 
case "(($ac_try" in
5369
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5370
 
  *) ac_try_echo=$ac_try;;
5371
 
esac
5372
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5373
 
$as_echo "$ac_try_echo") >&5
5374
 
  (eval "$ac_link") 2>&5
5375
 
  ac_status=$?
5376
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5378
 
  { (case "(($ac_try" in
5379
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5380
 
  *) ac_try_echo=$ac_try;;
5381
 
esac
5382
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5383
 
$as_echo "$ac_try_echo") >&5
5384
 
  (eval "$ac_try") 2>&5
5385
 
  ac_status=$?
5386
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387
 
  (exit $ac_status); }; }; then
5388
 
  :
5389
 
else
5390
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
5391
 
$as_echo "$as_me: failed program was:" >&5
5392
 
sed 's/^/| /' conftest.$ac_ext >&5
5393
 
 
5394
 
( exit $ac_status )
5395
 
ac_cv_header_stdc=no
5396
 
fi
5397
 
rm -rf conftest.dSYM
5398
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5399
 
fi
5400
 
 
5401
 
 
5402
 
fi
5403
 
fi
5404
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5405
 
$as_echo "$ac_cv_header_stdc" >&6; }
5406
 
if test $ac_cv_header_stdc = yes; then
5407
 
 
5408
 
cat >>confdefs.h <<\_ACEOF
5409
 
#define STDC_HEADERS 1
5410
 
_ACEOF
5411
 
 
5412
 
fi
5413
 
 
5414
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5415
 
 
5416
 
 
5417
 
 
5418
 
 
5419
 
 
5420
 
 
5421
 
 
5422
 
 
5423
 
 
5424
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5425
 
                  inttypes.h stdint.h unistd.h
5426
 
do
5427
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5428
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5429
 
$as_echo_n "checking for $ac_header... " >&6; }
5430
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5431
 
  $as_echo_n "(cached) " >&6
5432
 
else
5433
 
  cat >conftest.$ac_ext <<_ACEOF
5434
 
/* confdefs.h.  */
5435
 
_ACEOF
5436
 
cat confdefs.h >>conftest.$ac_ext
5437
 
cat >>conftest.$ac_ext <<_ACEOF
5438
 
/* end confdefs.h.  */
5439
 
$ac_includes_default
5440
 
 
5441
 
#include <$ac_header>
5442
 
_ACEOF
5443
 
rm -f conftest.$ac_objext
5444
 
if { (ac_try="$ac_compile"
5445
 
case "(($ac_try" in
5446
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5447
 
  *) ac_try_echo=$ac_try;;
5448
 
esac
5449
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5450
 
$as_echo "$ac_try_echo") >&5
5451
 
  (eval "$ac_compile") 2>conftest.er1
5452
 
  ac_status=$?
5453
 
  grep -v '^ *+' conftest.er1 >conftest.err
5454
 
  rm -f conftest.er1
5455
 
  cat conftest.err >&5
5456
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457
 
  (exit $ac_status); } && {
5458
 
         test -z "$ac_c_werror_flag" ||
5459
 
         test ! -s conftest.err
5460
 
       } && test -s conftest.$ac_objext; then
5461
 
  eval "$as_ac_Header=yes"
5462
 
else
5463
 
  $as_echo "$as_me: failed program was:" >&5
5464
 
sed 's/^/| /' conftest.$ac_ext >&5
5465
 
 
5466
 
        eval "$as_ac_Header=no"
5467
 
fi
5468
 
 
5469
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470
 
fi
5471
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
5472
 
                 $as_echo "$as_val"'`
5473
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5474
 
$as_echo "$ac_res" >&6; }
5475
 
as_val=`eval 'as_val=${'$as_ac_Header'}
5476
 
                 $as_echo "$as_val"'`
5477
 
   if test "x$as_val" = x""yes; then
5478
 
  cat >>confdefs.h <<_ACEOF
5479
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5480
 
_ACEOF
5481
 
 
5482
 
fi
5483
 
 
5484
 
done
5485
 
 
5486
 
 
5487
 
 
5488
 
for ac_header in dlfcn.h
5489
 
do
5490
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5491
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5492
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5493
 
$as_echo_n "checking for $ac_header... " >&6; }
5494
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5495
 
  $as_echo_n "(cached) " >&6
5496
 
fi
5497
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
5498
 
                 $as_echo "$as_val"'`
5499
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5500
 
$as_echo "$ac_res" >&6; }
5501
 
else
5502
 
  # Is the header compilable?
5503
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5504
 
$as_echo_n "checking $ac_header usability... " >&6; }
5505
 
cat >conftest.$ac_ext <<_ACEOF
5506
 
/* confdefs.h.  */
5507
 
_ACEOF
5508
 
cat confdefs.h >>conftest.$ac_ext
5509
 
cat >>conftest.$ac_ext <<_ACEOF
5510
 
/* end confdefs.h.  */
5511
 
$ac_includes_default
5512
 
#include <$ac_header>
5513
 
_ACEOF
5514
 
rm -f conftest.$ac_objext
5515
 
if { (ac_try="$ac_compile"
5516
 
case "(($ac_try" in
5517
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518
 
  *) ac_try_echo=$ac_try;;
5519
 
esac
5520
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5521
 
$as_echo "$ac_try_echo") >&5
5522
 
  (eval "$ac_compile") 2>conftest.er1
5523
 
  ac_status=$?
5524
 
  grep -v '^ *+' conftest.er1 >conftest.err
5525
 
  rm -f conftest.er1
5526
 
  cat conftest.err >&5
5527
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528
 
  (exit $ac_status); } && {
5529
 
         test -z "$ac_c_werror_flag" ||
5530
 
         test ! -s conftest.err
5531
 
       } && test -s conftest.$ac_objext; then
5532
 
  ac_header_compiler=yes
5533
 
else
5534
 
  $as_echo "$as_me: failed program was:" >&5
5535
 
sed 's/^/| /' conftest.$ac_ext >&5
5536
 
 
5537
 
        ac_header_compiler=no
5538
 
fi
5539
 
 
5540
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5541
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5542
 
$as_echo "$ac_header_compiler" >&6; }
5543
 
 
5544
 
# Is the header present?
5545
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5546
 
$as_echo_n "checking $ac_header presence... " >&6; }
5547
 
cat >conftest.$ac_ext <<_ACEOF
5548
 
/* confdefs.h.  */
5549
 
_ACEOF
5550
 
cat confdefs.h >>conftest.$ac_ext
5551
 
cat >>conftest.$ac_ext <<_ACEOF
5552
 
/* end confdefs.h.  */
5553
 
#include <$ac_header>
5554
 
_ACEOF
5555
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5556
 
case "(($ac_try" in
5557
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558
 
  *) ac_try_echo=$ac_try;;
5559
 
esac
5560
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5561
 
$as_echo "$ac_try_echo") >&5
5562
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5563
 
  ac_status=$?
5564
 
  grep -v '^ *+' conftest.er1 >conftest.err
5565
 
  rm -f conftest.er1
5566
 
  cat conftest.err >&5
5567
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568
 
  (exit $ac_status); } >/dev/null && {
5569
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5570
 
         test ! -s conftest.err
5571
 
       }; then
5572
 
  ac_header_preproc=yes
5573
 
else
5574
 
  $as_echo "$as_me: failed program was:" >&5
5575
 
sed 's/^/| /' conftest.$ac_ext >&5
5576
 
 
5577
 
  ac_header_preproc=no
5578
 
fi
5579
 
 
5580
 
rm -f conftest.err conftest.$ac_ext
5581
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5582
 
$as_echo "$ac_header_preproc" >&6; }
5583
 
 
5584
 
# So?  What about this header?
5585
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5586
 
  yes:no: )
5587
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5588
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5589
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5590
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5591
 
    ac_header_preproc=yes
5592
 
    ;;
5593
 
  no:yes:* )
5594
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5595
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5596
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5597
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5598
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5599
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5600
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5601
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5602
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5603
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5604
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5605
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5606
 
    ( cat <<\_ASBOX
5607
 
## --------------------------------------------------- ##
5608
 
## Report this to libmtp-discuss@lists.sourceforge.net ##
5609
 
## --------------------------------------------------- ##
5610
 
_ASBOX
5611
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
5612
 
    ;;
5613
 
esac
5614
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5615
 
$as_echo_n "checking for $ac_header... " >&6; }
5616
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5617
 
  $as_echo_n "(cached) " >&6
5618
 
else
5619
 
  eval "$as_ac_Header=\$ac_header_preproc"
5620
 
fi
5621
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
5622
 
                 $as_echo "$as_val"'`
5623
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5624
 
$as_echo "$ac_res" >&6; }
5625
 
 
5626
 
fi
5627
 
as_val=`eval 'as_val=${'$as_ac_Header'}
5628
 
                 $as_echo "$as_val"'`
5629
 
   if test "x$as_val" = x""yes; then
5630
 
  cat >>confdefs.h <<_ACEOF
5631
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5632
 
_ACEOF
5633
 
 
5634
 
fi
5635
 
 
5636
 
done
5637
 
 
5638
 
ac_ext=cpp
5639
 
ac_cpp='$CXXCPP $CPPFLAGS'
5640
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5641
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5642
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5643
 
if test -z "$CXX"; then
5644
 
  if test -n "$CCC"; then
5645
 
    CXX=$CCC
5646
 
  else
5647
 
    if test -n "$ac_tool_prefix"; then
5648
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5649
 
  do
5650
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5651
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5652
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5653
 
$as_echo_n "checking for $ac_word... " >&6; }
5654
 
if test "${ac_cv_prog_CXX+set}" = set; then
5655
 
  $as_echo_n "(cached) " >&6
5656
 
else
5657
 
  if test -n "$CXX"; then
5658
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5659
 
else
5660
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661
 
for as_dir in $PATH
5662
 
do
5663
 
  IFS=$as_save_IFS
5664
 
  test -z "$as_dir" && as_dir=.
5665
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5666
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5667
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5668
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5669
 
    break 2
5670
 
  fi
5671
 
done
5672
 
done
5673
 
IFS=$as_save_IFS
5674
 
 
5675
 
fi
5676
 
fi
5677
 
CXX=$ac_cv_prog_CXX
5678
 
if test -n "$CXX"; then
5679
 
  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5680
 
$as_echo "$CXX" >&6; }
5681
 
else
5682
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
5683
 
$as_echo "no" >&6; }
5684
 
fi
5685
 
 
5686
 
 
5687
 
    test -n "$CXX" && break
5688
 
  done
5689
 
fi
5690
 
if test -z "$CXX"; then
5691
 
  ac_ct_CXX=$CXX
5692
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5693
 
do
5694
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5695
 
set dummy $ac_prog; ac_word=$2
5696
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5697
 
$as_echo_n "checking for $ac_word... " >&6; }
5698
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5699
 
  $as_echo_n "(cached) " >&6
5700
 
else
5701
 
  if test -n "$ac_ct_CXX"; then
5702
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5703
 
else
5704
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705
 
for as_dir in $PATH
5706
 
do
5707
 
  IFS=$as_save_IFS
5708
 
  test -z "$as_dir" && as_dir=.
5709
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5710
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5711
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
5712
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5713
 
    break 2
5714
 
  fi
5715
 
done
5716
 
done
5717
 
IFS=$as_save_IFS
5718
 
 
5719
 
fi
5720
 
fi
5721
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5722
 
if test -n "$ac_ct_CXX"; then
5723
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5724
 
$as_echo "$ac_ct_CXX" >&6; }
5725
 
else
5726
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
5727
 
$as_echo "no" >&6; }
5728
 
fi
5729
 
 
5730
 
 
5731
 
  test -n "$ac_ct_CXX" && break
5732
 
done
5733
 
 
5734
 
  if test "x$ac_ct_CXX" = x; then
5735
 
    CXX="g++"
5736
 
  else
5737
 
    case $cross_compiling:$ac_tool_warned in
5738
 
yes:)
5739
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5740
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5741
 
ac_tool_warned=yes ;;
5742
 
esac
5743
 
    CXX=$ac_ct_CXX
5744
 
  fi
5745
 
fi
5746
 
 
5747
 
  fi
5748
 
fi
5749
 
# Provide some information about the compiler.
5750
 
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5751
 
set X $ac_compile
5752
 
ac_compiler=$2
5753
 
{ (ac_try="$ac_compiler --version >&5"
5754
 
case "(($ac_try" in
5755
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5756
 
  *) ac_try_echo=$ac_try;;
5757
 
esac
5758
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5759
 
$as_echo "$ac_try_echo") >&5
5760
 
  (eval "$ac_compiler --version >&5") 2>&5
5761
 
  ac_status=$?
5762
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763
 
  (exit $ac_status); }
5764
 
{ (ac_try="$ac_compiler -v >&5"
5765
 
case "(($ac_try" in
5766
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5767
 
  *) ac_try_echo=$ac_try;;
5768
 
esac
5769
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5770
 
$as_echo "$ac_try_echo") >&5
5771
 
  (eval "$ac_compiler -v >&5") 2>&5
5772
 
  ac_status=$?
5773
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774
 
  (exit $ac_status); }
5775
 
{ (ac_try="$ac_compiler -V >&5"
5776
 
case "(($ac_try" in
5777
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778
 
  *) ac_try_echo=$ac_try;;
5779
 
esac
5780
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5781
 
$as_echo "$ac_try_echo") >&5
5782
 
  (eval "$ac_compiler -V >&5") 2>&5
5783
 
  ac_status=$?
5784
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785
 
  (exit $ac_status); }
5786
 
 
5787
 
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5788
 
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5789
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5790
 
  $as_echo_n "(cached) " >&6
5791
 
else
5792
 
  cat >conftest.$ac_ext <<_ACEOF
5793
 
/* confdefs.h.  */
5794
 
_ACEOF
5795
 
cat confdefs.h >>conftest.$ac_ext
5796
 
cat >>conftest.$ac_ext <<_ACEOF
5797
 
/* end confdefs.h.  */
5798
 
 
5799
 
int
5800
 
main ()
5801
 
{
5802
 
#ifndef __GNUC__
5803
 
       choke me
5804
 
#endif
5805
 
 
5806
 
  ;
5807
 
  return 0;
5808
 
}
5809
 
_ACEOF
5810
 
rm -f conftest.$ac_objext
5811
 
if { (ac_try="$ac_compile"
5812
 
case "(($ac_try" in
5813
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814
 
  *) ac_try_echo=$ac_try;;
5815
 
esac
5816
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5817
 
$as_echo "$ac_try_echo") >&5
5818
 
  (eval "$ac_compile") 2>conftest.er1
5819
 
  ac_status=$?
5820
 
  grep -v '^ *+' conftest.er1 >conftest.err
5821
 
  rm -f conftest.er1
5822
 
  cat conftest.err >&5
5823
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824
 
  (exit $ac_status); } && {
5825
 
         test -z "$ac_cxx_werror_flag" ||
5826
 
         test ! -s conftest.err
5827
 
       } && test -s conftest.$ac_objext; then
5828
 
  ac_compiler_gnu=yes
5829
 
else
5830
 
  $as_echo "$as_me: failed program was:" >&5
5831
 
sed 's/^/| /' conftest.$ac_ext >&5
5832
 
 
5833
 
        ac_compiler_gnu=no
5834
 
fi
5835
 
 
5836
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5837
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5838
 
 
5839
 
fi
5840
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5841
 
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5842
 
if test $ac_compiler_gnu = yes; then
5843
 
  GXX=yes
5844
 
else
5845
 
  GXX=
5846
 
fi
5847
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
5848
 
ac_save_CXXFLAGS=$CXXFLAGS
5849
 
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5850
 
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5851
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
5852
 
  $as_echo_n "(cached) " >&6
5853
 
else
5854
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5855
 
   ac_cxx_werror_flag=yes
5856
 
   ac_cv_prog_cxx_g=no
5857
 
   CXXFLAGS="-g"
5858
 
   cat >conftest.$ac_ext <<_ACEOF
5859
 
/* confdefs.h.  */
5860
 
_ACEOF
5861
 
cat confdefs.h >>conftest.$ac_ext
5862
 
cat >>conftest.$ac_ext <<_ACEOF
5863
 
/* end confdefs.h.  */
5864
 
 
5865
 
int
5866
 
main ()
5867
 
{
5868
 
 
5869
 
  ;
5870
 
  return 0;
5871
 
}
5872
 
_ACEOF
5873
 
rm -f conftest.$ac_objext
5874
 
if { (ac_try="$ac_compile"
5875
 
case "(($ac_try" in
5876
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5877
 
  *) ac_try_echo=$ac_try;;
5878
 
esac
5879
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5880
 
$as_echo "$ac_try_echo") >&5
5881
 
  (eval "$ac_compile") 2>conftest.er1
5882
 
  ac_status=$?
5883
 
  grep -v '^ *+' conftest.er1 >conftest.err
5884
 
  rm -f conftest.er1
5885
 
  cat conftest.err >&5
5886
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887
 
  (exit $ac_status); } && {
5888
 
         test -z "$ac_cxx_werror_flag" ||
5889
 
         test ! -s conftest.err
5890
 
       } && test -s conftest.$ac_objext; then
5891
 
  ac_cv_prog_cxx_g=yes
5892
 
else
5893
 
  $as_echo "$as_me: failed program was:" >&5
5894
 
sed 's/^/| /' conftest.$ac_ext >&5
5895
 
 
5896
 
        CXXFLAGS=""
5897
 
      cat >conftest.$ac_ext <<_ACEOF
5898
 
/* confdefs.h.  */
5899
 
_ACEOF
5900
 
cat confdefs.h >>conftest.$ac_ext
5901
 
cat >>conftest.$ac_ext <<_ACEOF
5902
 
/* end confdefs.h.  */
5903
 
 
5904
 
int
5905
 
main ()
5906
 
{
5907
 
 
5908
 
  ;
5909
 
  return 0;
5910
 
}
5911
 
_ACEOF
5912
 
rm -f conftest.$ac_objext
5913
 
if { (ac_try="$ac_compile"
5914
 
case "(($ac_try" in
5915
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5916
 
  *) ac_try_echo=$ac_try;;
5917
 
esac
5918
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5919
 
$as_echo "$ac_try_echo") >&5
5920
 
  (eval "$ac_compile") 2>conftest.er1
5921
 
  ac_status=$?
5922
 
  grep -v '^ *+' conftest.er1 >conftest.err
5923
 
  rm -f conftest.er1
5924
 
  cat conftest.err >&5
5925
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926
 
  (exit $ac_status); } && {
5927
 
         test -z "$ac_cxx_werror_flag" ||
5928
 
         test ! -s conftest.err
5929
 
       } && test -s conftest.$ac_objext; then
5930
 
  :
5931
 
else
5932
 
  $as_echo "$as_me: failed program was:" >&5
5933
 
sed 's/^/| /' conftest.$ac_ext >&5
5934
 
 
5935
 
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5936
 
         CXXFLAGS="-g"
5937
 
         cat >conftest.$ac_ext <<_ACEOF
5938
 
/* confdefs.h.  */
5939
 
_ACEOF
5940
 
cat confdefs.h >>conftest.$ac_ext
5941
 
cat >>conftest.$ac_ext <<_ACEOF
5942
 
/* end confdefs.h.  */
5943
 
 
5944
 
int
5945
 
main ()
5946
 
{
5947
 
 
5948
 
  ;
5949
 
  return 0;
5950
 
}
5951
 
_ACEOF
5952
 
rm -f conftest.$ac_objext
5953
 
if { (ac_try="$ac_compile"
5954
 
case "(($ac_try" in
5955
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956
 
  *) ac_try_echo=$ac_try;;
5957
 
esac
5958
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5959
 
$as_echo "$ac_try_echo") >&5
5960
 
  (eval "$ac_compile") 2>conftest.er1
5961
 
  ac_status=$?
5962
 
  grep -v '^ *+' conftest.er1 >conftest.err
5963
 
  rm -f conftest.er1
5964
 
  cat conftest.err >&5
5965
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966
 
  (exit $ac_status); } && {
5967
 
         test -z "$ac_cxx_werror_flag" ||
5968
 
         test ! -s conftest.err
5969
 
       } && test -s conftest.$ac_objext; then
5970
 
  ac_cv_prog_cxx_g=yes
5971
 
else
5972
 
  $as_echo "$as_me: failed program was:" >&5
5973
 
sed 's/^/| /' conftest.$ac_ext >&5
5974
 
 
5975
 
 
5976
 
fi
5977
 
 
5978
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5979
 
fi
5980
 
 
5981
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5982
 
fi
5983
 
 
5984
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5985
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5986
 
fi
5987
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5988
 
$as_echo "$ac_cv_prog_cxx_g" >&6; }
5989
 
if test "$ac_test_CXXFLAGS" = set; then
5990
 
  CXXFLAGS=$ac_save_CXXFLAGS
5991
 
elif test $ac_cv_prog_cxx_g = yes; then
5992
 
  if test "$GXX" = yes; then
5993
 
    CXXFLAGS="-g -O2"
5994
 
  else
5995
 
    CXXFLAGS="-g"
5996
 
  fi
5997
 
else
5998
 
  if test "$GXX" = yes; then
5999
 
    CXXFLAGS="-O2"
6000
 
  else
6001
 
    CXXFLAGS=
6002
 
  fi
6003
 
fi
6004
 
ac_ext=cpp
6005
 
ac_cpp='$CXXCPP $CPPFLAGS'
6006
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6007
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6008
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6009
 
 
6010
 
depcc="$CXX"  am_compiler_list=
6011
 
 
6012
 
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6013
 
$as_echo_n "checking dependency style of $depcc... " >&6; }
6014
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6015
 
  $as_echo_n "(cached) " >&6
6016
 
else
6017
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6018
 
  # We make a subdir and do the tests there.  Otherwise we can end up
6019
 
  # making bogus files that we don't know about and never remove.  For
6020
 
  # instance it was reported that on HP-UX the gcc test will end up
6021
 
  # making a dummy file named `D' -- because `-MD' means `put the output
6022
 
  # in D'.
6023
 
  mkdir conftest.dir
6024
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
6025
 
  # using a relative directory.
6026
 
  cp "$am_depcomp" conftest.dir
6027
 
  cd conftest.dir
6028
 
  # We will build objects and dependencies in a subdirectory because
6029
 
  # it helps to detect inapplicable dependency modes.  For instance
6030
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
6031
 
  # side effect of compilation, but ICC will put the dependencies in
6032
 
  # the current directory while Tru64 will put them in the object
6033
 
  # directory.
6034
 
  mkdir sub
6035
 
 
6036
 
  am_cv_CXX_dependencies_compiler_type=none
6037
 
  if test "$am_compiler_list" = ""; then
6038
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6039
 
  fi
6040
 
  for depmode in $am_compiler_list; do
6041
 
    # Setup a source with many dependencies, because some compilers
6042
 
    # like to wrap large dependency lists on column 80 (with \), and
6043
 
    # we should not choose a depcomp mode which is confused by this.
6044
 
    #
6045
 
    # We need to recreate these files for each test, as the compiler may
6046
 
    # overwrite some of them when testing with obscure command lines.
6047
 
    # This happens at least with the AIX C compiler.
6048
 
    : > sub/conftest.c
6049
 
    for i in 1 2 3 4 5 6; do
6050
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6051
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6052
 
      # Solaris 8's {/usr,}/bin/sh.
6053
 
      touch sub/conftst$i.h
6054
 
    done
6055
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6056
 
 
6057
 
    case $depmode in
6058
 
    nosideeffect)
6059
 
      # after this tag, mechanisms are not by side-effect, so they'll
6060
 
      # only be used when explicitly requested
6061
 
      if test "x$enable_dependency_tracking" = xyes; then
6062
 
        continue
6063
 
      else
6064
 
        break
6065
 
      fi
6066
 
      ;;
6067
 
    none) break ;;
6068
 
    esac
6069
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6070
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
6071
 
    # handle `-M -o', and we need to detect this.
6072
 
    if depmode=$depmode \
6073
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6074
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6075
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6076
 
         >/dev/null 2>conftest.err &&
6077
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6078
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6079
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6080
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6081
 
      # icc doesn't choke on unknown options, it will just issue warnings
6082
 
      # or remarks (even with -Werror).  So we grep stderr for any message
6083
 
      # that says an option was ignored or not supported.
6084
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
6085
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
6086
 
      # The diagnosis changed in icc 8.0:
6087
 
      #   icc: Command line remark: option '-MP' not supported
6088
 
      if (grep 'ignoring option' conftest.err ||
6089
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6090
 
        am_cv_CXX_dependencies_compiler_type=$depmode
6091
 
        break
6092
 
      fi
6093
 
    fi
6094
 
  done
6095
 
 
6096
 
  cd ..
6097
 
  rm -rf conftest.dir
6098
 
else
6099
 
  am_cv_CXX_dependencies_compiler_type=none
6100
 
fi
6101
 
 
6102
 
fi
6103
 
{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6104
 
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6105
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6106
 
 
6107
 
 if
6108
 
  test "x$enable_dependency_tracking" != xno \
6109
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6110
 
  am__fastdepCXX_TRUE=
6111
 
  am__fastdepCXX_FALSE='#'
6112
 
else
6113
 
  am__fastdepCXX_TRUE='#'
6114
 
  am__fastdepCXX_FALSE=
6115
 
fi
6116
 
 
6117
 
 
6118
 
 
6119
 
 
6120
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6121
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6122
 
    (test "X$CXX" != "Xg++"))) ; then
6123
 
  ac_ext=cpp
6124
 
ac_cpp='$CXXCPP $CPPFLAGS'
6125
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6126
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6127
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6128
 
{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6129
 
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6130
 
if test -z "$CXXCPP"; then
6131
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6132
 
  $as_echo_n "(cached) " >&6
6133
 
else
6134
 
      # Double quotes because CXXCPP needs to be expanded
6135
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
6136
 
    do
6137
 
      ac_preproc_ok=false
6138
 
for ac_cxx_preproc_warn_flag in '' yes
6139
 
do
6140
 
  # Use a header file that comes with gcc, so configuring glibc
6141
 
  # with a fresh cross-compiler works.
6142
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6143
 
  # <limits.h> exists even on freestanding compilers.
6144
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
6145
 
  # not just through cpp. "Syntax error" is here to catch this case.
6146
 
  cat >conftest.$ac_ext <<_ACEOF
6147
 
/* confdefs.h.  */
6148
 
_ACEOF
6149
 
cat confdefs.h >>conftest.$ac_ext
6150
 
cat >>conftest.$ac_ext <<_ACEOF
6151
 
/* end confdefs.h.  */
6152
 
#ifdef __STDC__
6153
 
# include <limits.h>
6154
 
#else
6155
 
# include <assert.h>
6156
 
#endif
6157
 
                     Syntax error
6158
 
_ACEOF
6159
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6160
 
case "(($ac_try" in
6161
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162
 
  *) ac_try_echo=$ac_try;;
6163
 
esac
6164
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6165
 
$as_echo "$ac_try_echo") >&5
6166
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6167
 
  ac_status=$?
6168
 
  grep -v '^ *+' conftest.er1 >conftest.err
6169
 
  rm -f conftest.er1
6170
 
  cat conftest.err >&5
6171
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172
 
  (exit $ac_status); } >/dev/null && {
6173
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6174
 
         test ! -s conftest.err
6175
 
       }; then
6176
 
  :
6177
 
else
6178
 
  $as_echo "$as_me: failed program was:" >&5
6179
 
sed 's/^/| /' conftest.$ac_ext >&5
6180
 
 
6181
 
  # Broken: fails on valid input.
6182
 
continue
6183
 
fi
6184
 
 
6185
 
rm -f conftest.err conftest.$ac_ext
6186
 
 
6187
 
  # OK, works on sane cases.  Now check whether nonexistent headers
6188
 
  # can be detected and how.
6189
 
  cat >conftest.$ac_ext <<_ACEOF
6190
 
/* confdefs.h.  */
6191
 
_ACEOF
6192
 
cat confdefs.h >>conftest.$ac_ext
6193
 
cat >>conftest.$ac_ext <<_ACEOF
6194
 
/* end confdefs.h.  */
6195
 
#include <ac_nonexistent.h>
6196
 
_ACEOF
6197
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6198
 
case "(($ac_try" in
6199
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6200
 
  *) ac_try_echo=$ac_try;;
6201
 
esac
6202
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6203
 
$as_echo "$ac_try_echo") >&5
6204
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6205
 
  ac_status=$?
6206
 
  grep -v '^ *+' conftest.er1 >conftest.err
6207
 
  rm -f conftest.er1
6208
 
  cat conftest.err >&5
6209
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210
 
  (exit $ac_status); } >/dev/null && {
6211
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6212
 
         test ! -s conftest.err
6213
 
       }; then
6214
 
  # Broken: success on invalid input.
6215
 
continue
6216
 
else
6217
 
  $as_echo "$as_me: failed program was:" >&5
6218
 
sed 's/^/| /' conftest.$ac_ext >&5
6219
 
 
6220
 
  # Passes both tests.
6221
 
ac_preproc_ok=:
6222
 
break
6223
 
fi
6224
 
 
6225
 
rm -f conftest.err conftest.$ac_ext
6226
 
 
6227
 
done
6228
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6229
 
rm -f conftest.err conftest.$ac_ext
6230
 
if $ac_preproc_ok; then
6231
 
  break
6232
 
fi
6233
 
 
6234
 
    done
6235
 
    ac_cv_prog_CXXCPP=$CXXCPP
6236
 
 
6237
 
fi
6238
 
  CXXCPP=$ac_cv_prog_CXXCPP
6239
 
else
6240
 
  ac_cv_prog_CXXCPP=$CXXCPP
6241
 
fi
6242
 
{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
6243
 
$as_echo "$CXXCPP" >&6; }
6244
 
ac_preproc_ok=false
6245
 
for ac_cxx_preproc_warn_flag in '' yes
6246
 
do
6247
 
  # Use a header file that comes with gcc, so configuring glibc
6248
 
  # with a fresh cross-compiler works.
6249
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6250
 
  # <limits.h> exists even on freestanding compilers.
6251
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
6252
 
  # not just through cpp. "Syntax error" is here to catch this case.
6253
 
  cat >conftest.$ac_ext <<_ACEOF
6254
 
/* confdefs.h.  */
6255
 
_ACEOF
6256
 
cat confdefs.h >>conftest.$ac_ext
6257
 
cat >>conftest.$ac_ext <<_ACEOF
6258
 
/* end confdefs.h.  */
6259
 
#ifdef __STDC__
6260
 
# include <limits.h>
6261
 
#else
6262
 
# include <assert.h>
6263
 
#endif
6264
 
                     Syntax error
6265
 
_ACEOF
6266
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6267
 
case "(($ac_try" in
6268
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269
 
  *) ac_try_echo=$ac_try;;
6270
 
esac
6271
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6272
 
$as_echo "$ac_try_echo") >&5
6273
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6274
 
  ac_status=$?
6275
 
  grep -v '^ *+' conftest.er1 >conftest.err
6276
 
  rm -f conftest.er1
6277
 
  cat conftest.err >&5
6278
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279
 
  (exit $ac_status); } >/dev/null && {
6280
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6281
 
         test ! -s conftest.err
6282
 
       }; then
6283
 
  :
6284
 
else
6285
 
  $as_echo "$as_me: failed program was:" >&5
6286
 
sed 's/^/| /' conftest.$ac_ext >&5
6287
 
 
6288
 
  # Broken: fails on valid input.
6289
 
continue
6290
 
fi
6291
 
 
6292
 
rm -f conftest.err conftest.$ac_ext
6293
 
 
6294
 
  # OK, works on sane cases.  Now check whether nonexistent headers
6295
 
  # can be detected and how.
6296
 
  cat >conftest.$ac_ext <<_ACEOF
6297
 
/* confdefs.h.  */
6298
 
_ACEOF
6299
 
cat confdefs.h >>conftest.$ac_ext
6300
 
cat >>conftest.$ac_ext <<_ACEOF
6301
 
/* end confdefs.h.  */
6302
 
#include <ac_nonexistent.h>
6303
 
_ACEOF
6304
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6305
 
case "(($ac_try" in
6306
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6307
 
  *) ac_try_echo=$ac_try;;
6308
 
esac
6309
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6310
 
$as_echo "$ac_try_echo") >&5
6311
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6312
 
  ac_status=$?
6313
 
  grep -v '^ *+' conftest.er1 >conftest.err
6314
 
  rm -f conftest.er1
6315
 
  cat conftest.err >&5
6316
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317
 
  (exit $ac_status); } >/dev/null && {
6318
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6319
 
         test ! -s conftest.err
6320
 
       }; then
6321
 
  # Broken: success on invalid input.
6322
 
continue
6323
 
else
6324
 
  $as_echo "$as_me: failed program was:" >&5
6325
 
sed 's/^/| /' conftest.$ac_ext >&5
6326
 
 
6327
 
  # Passes both tests.
6328
 
ac_preproc_ok=:
6329
 
break
6330
 
fi
6331
 
 
6332
 
rm -f conftest.err conftest.$ac_ext
6333
 
 
6334
 
done
6335
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6336
 
rm -f conftest.err conftest.$ac_ext
6337
 
if $ac_preproc_ok; then
6338
 
  :
6339
 
else
6340
 
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6341
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6342
 
{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6343
 
See \`config.log' for more details." >&5
6344
 
$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6345
 
See \`config.log' for more details." >&2;}
6346
 
   { (exit 1); exit 1; }; }; }
6347
 
fi
6348
 
 
6349
 
ac_ext=cpp
6350
 
ac_cpp='$CXXCPP $CPPFLAGS'
6351
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6352
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6353
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6354
 
 
6355
 
fi
6356
 
 
6357
 
 
6358
 
ac_ext=f
6359
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6360
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6361
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6362
 
if test -n "$ac_tool_prefix"; then
6363
 
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6364
 
  do
6365
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6366
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6367
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6368
 
$as_echo_n "checking for $ac_word... " >&6; }
6369
 
if test "${ac_cv_prog_F77+set}" = set; then
6370
 
  $as_echo_n "(cached) " >&6
6371
 
else
6372
 
  if test -n "$F77"; then
6373
 
  ac_cv_prog_F77="$F77" # Let the user override the test.
6374
 
else
6375
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376
 
for as_dir in $PATH
6377
 
do
6378
 
  IFS=$as_save_IFS
6379
 
  test -z "$as_dir" && as_dir=.
6380
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6381
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6382
 
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6383
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6384
 
    break 2
6385
 
  fi
6386
 
done
6387
 
done
6388
 
IFS=$as_save_IFS
6389
 
 
6390
 
fi
6391
 
fi
6392
 
F77=$ac_cv_prog_F77
6393
 
if test -n "$F77"; then
6394
 
  { $as_echo "$as_me:$LINENO: result: $F77" >&5
6395
 
$as_echo "$F77" >&6; }
6396
 
else
6397
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6398
 
$as_echo "no" >&6; }
6399
 
fi
6400
 
 
6401
 
 
6402
 
    test -n "$F77" && break
6403
 
  done
6404
 
fi
6405
 
if test -z "$F77"; then
6406
 
  ac_ct_F77=$F77
6407
 
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6408
 
do
6409
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6410
 
set dummy $ac_prog; ac_word=$2
6411
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6412
 
$as_echo_n "checking for $ac_word... " >&6; }
6413
 
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6414
 
  $as_echo_n "(cached) " >&6
6415
 
else
6416
 
  if test -n "$ac_ct_F77"; then
6417
 
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6418
 
else
6419
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420
 
for as_dir in $PATH
6421
 
do
6422
 
  IFS=$as_save_IFS
6423
 
  test -z "$as_dir" && as_dir=.
6424
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6425
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6426
 
    ac_cv_prog_ac_ct_F77="$ac_prog"
6427
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6428
 
    break 2
6429
 
  fi
6430
 
done
6431
 
done
6432
 
IFS=$as_save_IFS
6433
 
 
6434
 
fi
6435
 
fi
6436
 
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6437
 
if test -n "$ac_ct_F77"; then
6438
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6439
 
$as_echo "$ac_ct_F77" >&6; }
6440
 
else
6441
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6442
 
$as_echo "no" >&6; }
6443
 
fi
6444
 
 
6445
 
 
6446
 
  test -n "$ac_ct_F77" && break
6447
 
done
6448
 
 
6449
 
  if test "x$ac_ct_F77" = x; then
6450
 
    F77=""
6451
 
  else
6452
 
    case $cross_compiling:$ac_tool_warned in
6453
 
yes:)
6454
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6455
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6456
 
ac_tool_warned=yes ;;
6457
 
esac
6458
 
    F77=$ac_ct_F77
6459
 
  fi
6460
 
fi
6461
 
 
6462
 
 
6463
 
# Provide some information about the compiler.
6464
 
$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6465
 
set X $ac_compile
6466
 
ac_compiler=$2
6467
 
{ (ac_try="$ac_compiler --version >&5"
6468
 
case "(($ac_try" in
6469
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6470
 
  *) ac_try_echo=$ac_try;;
6471
 
esac
6472
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6473
 
$as_echo "$ac_try_echo") >&5
6474
 
  (eval "$ac_compiler --version >&5") 2>&5
6475
 
  ac_status=$?
6476
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477
 
  (exit $ac_status); }
6478
 
{ (ac_try="$ac_compiler -v >&5"
6479
 
case "(($ac_try" in
6480
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6481
 
  *) ac_try_echo=$ac_try;;
6482
 
esac
6483
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6484
 
$as_echo "$ac_try_echo") >&5
6485
 
  (eval "$ac_compiler -v >&5") 2>&5
6486
 
  ac_status=$?
6487
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488
 
  (exit $ac_status); }
6489
 
{ (ac_try="$ac_compiler -V >&5"
6490
 
case "(($ac_try" in
6491
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492
 
  *) ac_try_echo=$ac_try;;
6493
 
esac
6494
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6495
 
$as_echo "$ac_try_echo") >&5
6496
 
  (eval "$ac_compiler -V >&5") 2>&5
6497
 
  ac_status=$?
6498
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499
 
  (exit $ac_status); }
6500
 
rm -f a.out
6501
 
 
6502
 
# If we don't use `.F' as extension, the preprocessor is not run on the
6503
 
# input file.  (Note that this only needs to work for GNU compilers.)
6504
 
ac_save_ext=$ac_ext
6505
 
ac_ext=F
6506
 
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6507
 
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6508
 
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6509
 
  $as_echo_n "(cached) " >&6
6510
 
else
6511
 
  cat >conftest.$ac_ext <<_ACEOF
6512
 
      program main
6513
 
#ifndef __GNUC__
6514
 
       choke me
6515
 
#endif
6516
 
 
6517
 
      end
6518
 
_ACEOF
6519
 
rm -f conftest.$ac_objext
6520
 
if { (ac_try="$ac_compile"
6521
 
case "(($ac_try" in
6522
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523
 
  *) ac_try_echo=$ac_try;;
6524
 
esac
6525
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6526
 
$as_echo "$ac_try_echo") >&5
6527
 
  (eval "$ac_compile") 2>conftest.er1
6528
 
  ac_status=$?
6529
 
  grep -v '^ *+' conftest.er1 >conftest.err
6530
 
  rm -f conftest.er1
6531
 
  cat conftest.err >&5
6532
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533
 
  (exit $ac_status); } && {
6534
 
         test -z "$ac_f77_werror_flag" ||
6535
 
         test ! -s conftest.err
6536
 
       } && test -s conftest.$ac_objext; then
6537
 
  ac_compiler_gnu=yes
6538
 
else
6539
 
  $as_echo "$as_me: failed program was:" >&5
6540
 
sed 's/^/| /' conftest.$ac_ext >&5
6541
 
 
6542
 
        ac_compiler_gnu=no
6543
 
fi
6544
 
 
6545
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546
 
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6547
 
 
6548
 
fi
6549
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6550
 
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6551
 
ac_ext=$ac_save_ext
6552
 
ac_test_FFLAGS=${FFLAGS+set}
6553
 
ac_save_FFLAGS=$FFLAGS
6554
 
FFLAGS=
6555
 
{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6556
 
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6557
 
if test "${ac_cv_prog_f77_g+set}" = set; then
6558
 
  $as_echo_n "(cached) " >&6
6559
 
else
6560
 
  FFLAGS=-g
6561
 
cat >conftest.$ac_ext <<_ACEOF
6562
 
      program main
6563
 
 
6564
 
      end
6565
 
_ACEOF
6566
 
rm -f conftest.$ac_objext
6567
 
if { (ac_try="$ac_compile"
6568
 
case "(($ac_try" in
6569
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6570
 
  *) ac_try_echo=$ac_try;;
6571
 
esac
6572
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6573
 
$as_echo "$ac_try_echo") >&5
6574
 
  (eval "$ac_compile") 2>conftest.er1
6575
 
  ac_status=$?
6576
 
  grep -v '^ *+' conftest.er1 >conftest.err
6577
 
  rm -f conftest.er1
6578
 
  cat conftest.err >&5
6579
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580
 
  (exit $ac_status); } && {
6581
 
         test -z "$ac_f77_werror_flag" ||
6582
 
         test ! -s conftest.err
6583
 
       } && test -s conftest.$ac_objext; then
6584
 
  ac_cv_prog_f77_g=yes
6585
 
else
6586
 
  $as_echo "$as_me: failed program was:" >&5
6587
 
sed 's/^/| /' conftest.$ac_ext >&5
6588
 
 
6589
 
        ac_cv_prog_f77_g=no
6590
 
fi
6591
 
 
6592
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6593
 
 
6594
 
fi
6595
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6596
 
$as_echo "$ac_cv_prog_f77_g" >&6; }
6597
 
if test "$ac_test_FFLAGS" = set; then
6598
 
  FFLAGS=$ac_save_FFLAGS
6599
 
elif test $ac_cv_prog_f77_g = yes; then
6600
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6601
 
    FFLAGS="-g -O2"
6602
 
  else
6603
 
    FFLAGS="-g"
6604
 
  fi
6605
 
else
6606
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6607
 
    FFLAGS="-O2"
6608
 
  else
6609
 
    FFLAGS=
6610
 
  fi
6611
 
fi
6612
 
 
6613
 
if test $ac_compiler_gnu = yes; then
6614
 
  G77=yes
6615
 
else
6616
 
  G77=
6617
 
fi
6618
 
ac_ext=c
6619
 
ac_cpp='$CPP $CPPFLAGS'
6620
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6621
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6622
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6623
 
 
6624
 
 
6625
 
 
6626
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6627
 
# find the maximum length of command line arguments
6628
 
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6629
 
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6630
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6631
 
  $as_echo_n "(cached) " >&6
6632
 
else
6633
 
    i=0
6634
 
  teststring="ABCD"
6635
 
 
6636
 
  case $build_os in
6637
 
  msdosdjgpp*)
6638
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
6639
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
6640
 
    # during glob expansion).  Even if it were fixed, the result of this
6641
 
    # check would be larger than it should be.
6642
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6643
 
    ;;
6644
 
 
6645
 
  gnu*)
6646
 
    # Under GNU Hurd, this test is not required because there is
6647
 
    # no limit to the length of command line arguments.
6648
 
    # Libtool will interpret -1 as no limit whatsoever
6649
 
    lt_cv_sys_max_cmd_len=-1;
6650
 
    ;;
6651
 
 
6652
 
  cygwin* | mingw*)
6653
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
6654
 
    # about 5 minutes as the teststring grows exponentially.
6655
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
6656
 
    # you end up with a "frozen" computer, even though with patience
6657
 
    # the test eventually succeeds (with a max line length of 256k).
6658
 
    # Instead, let's just punt: use the minimum linelength reported by
6659
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
6660
 
    lt_cv_sys_max_cmd_len=8192;
6661
 
    ;;
6662
 
 
6663
 
  amigaos*)
6664
 
    # On AmigaOS with pdksh, this test takes hours, literally.
6665
 
    # So we just punt and use a minimum line length of 8192.
6666
 
    lt_cv_sys_max_cmd_len=8192;
6667
 
    ;;
6668
 
 
6669
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6670
 
    # This has been around since 386BSD, at least.  Likely further.
6671
 
    if test -x /sbin/sysctl; then
6672
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6673
 
    elif test -x /usr/sbin/sysctl; then
6674
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6675
 
    else
6676
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6677
 
    fi
6678
 
    # And add a safety zone
6679
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6680
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6681
 
    ;;
6682
 
 
6683
 
  interix*)
6684
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6685
 
    lt_cv_sys_max_cmd_len=196608
6686
 
    ;;
6687
 
 
6688
 
  osf*)
6689
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6690
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6691
 
    # nice to cause kernel panics so lets avoid the loop below.
6692
 
    # First set a reasonable default.
6693
 
    lt_cv_sys_max_cmd_len=16384
6694
 
    #
6695
 
    if test -x /sbin/sysconfig; then
6696
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6697
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6698
 
      esac
6699
 
    fi
6700
 
    ;;
6701
 
  sco3.2v5*)
6702
 
    lt_cv_sys_max_cmd_len=102400
6703
 
    ;;
6704
 
  sysv5* | sco5v6* | sysv4.2uw2*)
6705
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6706
 
    if test -n "$kargmax"; then
6707
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6708
 
    else
6709
 
      lt_cv_sys_max_cmd_len=32768
6710
 
    fi
6711
 
    ;;
6712
 
  *)
6713
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6714
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
6715
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6716
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6717
 
    else
6718
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6719
 
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6720
 
               = "XX$teststring") >/dev/null 2>&1 &&
6721
 
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
6722
 
              lt_cv_sys_max_cmd_len=$new_result &&
6723
 
              test $i != 17 # 1/2 MB should be enough
6724
 
      do
6725
 
        i=`expr $i + 1`
6726
 
        teststring=$teststring$teststring
6727
 
      done
6728
 
      teststring=
6729
 
      # Add a significant safety factor because C++ compilers can tack on massive
6730
 
      # amounts of additional arguments before passing them to the linker.
6731
 
      # It appears as though 1/2 is a usable value.
6732
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6733
 
    fi
6734
 
    ;;
6735
 
  esac
6736
 
 
6737
 
fi
6738
 
 
6739
 
if test -n $lt_cv_sys_max_cmd_len ; then
6740
 
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6741
 
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6742
 
else
6743
 
  { $as_echo "$as_me:$LINENO: result: none" >&5
6744
 
$as_echo "none" >&6; }
6745
 
fi
6746
 
 
6747
 
 
6748
 
 
6749
 
 
6750
 
 
6751
5723
# Check for command to grab the raw symbol name followed by C symbol from nm.
6752
5724
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6753
5725
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6764
5736
# Regexp to match symbols that can be accessed directly from C.
6765
5737
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6766
5738
 
6767
 
# Transform an extracted symbol line into a proper C declaration
6768
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6769
 
 
6770
 
# Transform an extracted symbol line into symbol name and symbol address
6771
 
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'"
6772
 
 
6773
5739
# Define system-specific variables.
6774
5740
case $host_os in
6775
5741
aix*)
6776
5742
  symcode='[BCDT]'
6777
5743
  ;;
6778
 
cygwin* | mingw* | pw32*)
 
5744
cygwin* | mingw* | pw32* | cegcc*)
6779
5745
  symcode='[ABCDGISTW]'
6780
5746
  ;;
6781
 
hpux*) # Its linker distinguishes data from code symbols
 
5747
hpux*)
6782
5748
  if test "$host_cpu" = ia64; then
6783
5749
    symcode='[ABCDEGRST]'
6784
5750
  fi
6785
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6786
 
  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'"
6787
 
  ;;
6788
 
linux* | k*bsd*-gnu)
6789
 
  if test "$host_cpu" = ia64; then
6790
 
    symcode='[ABCDGIRSTW]'
6791
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6792
 
    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'"
6793
 
  fi
6794
5751
  ;;
6795
5752
irix* | nonstopux*)
6796
5753
  symcode='[BCDEGRST]'
6815
5772
  ;;
6816
5773
esac
6817
5774
 
 
5775
# If we're using GNU nm, then use its standard symbol codes.
 
5776
case `$NM -V 2>&1` in
 
5777
*GNU* | *'with BFD'*)
 
5778
  symcode='[ABCDGIRSTW]' ;;
 
5779
esac
 
5780
 
 
5781
# Transform an extracted symbol line into a proper C declaration.
 
5782
# Some systems (esp. on ia64) link data and code symbols differently,
 
5783
# so use this general approach.
 
5784
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5785
 
 
5786
# Transform an extracted symbol line into symbol name and symbol address
 
5787
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
5788
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
5789
 
6818
5790
# Handle CRLF in mingw tool chain
6819
5791
opt_cr=
6820
5792
case $build_os in
6821
5793
mingw*)
6822
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5794
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6823
5795
  ;;
6824
5796
esac
6825
5797
 
6826
 
# If we're using GNU nm, then use its standard symbol codes.
6827
 
case `$NM -V 2>&1` in
6828
 
*GNU* | *'with BFD'*)
6829
 
  symcode='[ABCDGIRSTW]' ;;
6830
 
esac
6831
 
 
6832
 
# Try without a prefix undercore, then with it.
 
5798
# Try without a prefix underscore, then with it.
6833
5799
for ac_symprfx in "" "_"; do
6834
5800
 
6835
5801
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6836
5802
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6837
5803
 
6838
5804
  # Write the raw and C identifiers.
6839
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
5805
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
5806
    # Fake it for dumpbin and say T for any non-static function
 
5807
    # and D for any global variable.
 
5808
    # Also find C++ and __fastcall symbols from MSVC++,
 
5809
    # which start with @ or ?.
 
5810
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
5811
"     {last_section=section; section=\$ 3};"\
 
5812
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
5813
"     \$ 0!~/External *\|/{next};"\
 
5814
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
5815
"     {if(hide[section]) next};"\
 
5816
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
5817
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
5818
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
5819
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
5820
"     ' prfx=^$ac_symprfx"
 
5821
  else
 
5822
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
5823
  fi
6840
5824
 
6841
5825
  # Check to see that the pipe works correctly.
6842
5826
  pipe_works=no
6843
5827
 
6844
5828
  rm -f conftest*
6845
 
  cat > conftest.$ac_ext <<EOF
 
5829
  cat > conftest.$ac_ext <<_LT_EOF
6846
5830
#ifdef __cplusplus
6847
5831
extern "C" {
6848
5832
#endif
6849
5833
char nm_test_var;
6850
 
void nm_test_func(){}
 
5834
void nm_test_func(void);
 
5835
void nm_test_func(void){}
6851
5836
#ifdef __cplusplus
6852
5837
}
6853
5838
#endif
6854
5839
int main(){nm_test_var='a';nm_test_func();return(0);}
6855
 
EOF
 
5840
_LT_EOF
6856
5841
 
6857
5842
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6858
5843
  (eval $ac_compile) 2>&5
6874
5859
      fi
6875
5860
 
6876
5861
      # Make sure that we snagged all the symbols we need.
6877
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6878
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6879
 
          cat <<EOF > conftest.$ac_ext
 
5862
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
5863
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
5864
          cat <<_LT_EOF > conftest.$ac_ext
6880
5865
#ifdef __cplusplus
6881
5866
extern "C" {
6882
5867
#endif
6883
5868
 
6884
 
EOF
 
5869
_LT_EOF
6885
5870
          # Now generate the symbol file.
6886
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6887
 
 
6888
 
          cat <<EOF >> conftest.$ac_ext
6889
 
#if defined (__STDC__) && __STDC__
6890
 
# define lt_ptr_t void *
6891
 
#else
6892
 
# define lt_ptr_t char *
6893
 
# define const
6894
 
#endif
6895
 
 
6896
 
/* The mapping between symbol names and symbols. */
 
5871
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
5872
 
 
5873
          cat <<_LT_EOF >> conftest.$ac_ext
 
5874
 
 
5875
/* The mapping between symbol names and symbols.  */
6897
5876
const struct {
6898
5877
  const char *name;
6899
 
  lt_ptr_t address;
 
5878
  void       *address;
6900
5879
}
6901
 
lt_preloaded_symbols[] =
 
5880
lt__PROGRAM__LTX_preloaded_symbols[] =
6902
5881
{
6903
 
EOF
6904
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6905
 
          cat <<\EOF >> conftest.$ac_ext
6906
 
  {0, (lt_ptr_t) 0}
 
5882
  { "@PROGRAM@", (void *) 0 },
 
5883
_LT_EOF
 
5884
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
5885
          cat <<\_LT_EOF >> conftest.$ac_ext
 
5886
  {0, (void *) 0}
6907
5887
};
6908
5888
 
 
5889
/* This works around a problem in FreeBSD linker */
 
5890
#ifdef FREEBSD_WORKAROUND
 
5891
static const void *lt_preloaded_setup() {
 
5892
  return lt__PROGRAM__LTX_preloaded_symbols;
 
5893
}
 
5894
#endif
 
5895
 
6909
5896
#ifdef __cplusplus
6910
5897
}
6911
5898
#endif
6912
 
EOF
 
5899
_LT_EOF
6913
5900
          # Now try linking the two files.
6914
5901
          mv conftest.$ac_objext conftstm.$ac_objext
6915
5902
          lt_save_LIBS="$LIBS"
6961
5948
$as_echo "ok" >&6; }
6962
5949
fi
6963
5950
 
6964
 
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6965
 
$as_echo_n "checking for objdir... " >&6; }
6966
 
if test "${lt_cv_objdir+set}" = set; then
6967
 
  $as_echo_n "(cached) " >&6
6968
 
else
6969
 
  rm -f .libs 2>/dev/null
6970
 
mkdir .libs 2>/dev/null
6971
 
if test -d .libs; then
6972
 
  lt_cv_objdir=.libs
6973
 
else
6974
 
  # MS-DOS does not allow filenames that begin with a dot.
6975
 
  lt_cv_objdir=_libs
6976
 
fi
6977
 
rmdir .libs 2>/dev/null
6978
 
fi
6979
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6980
 
$as_echo "$lt_cv_objdir" >&6; }
6981
 
objdir=$lt_cv_objdir
6982
 
 
6983
 
 
6984
 
 
6985
 
 
6986
 
 
6987
 
case $host_os in
6988
 
aix3*)
6989
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
6990
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6991
 
  # vanish in a puff of smoke.
6992
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
6993
 
    COLLECT_NAMES=
6994
 
    export COLLECT_NAMES
6995
 
  fi
6996
 
  ;;
6997
 
esac
6998
 
 
6999
 
# Sed substitution that helps us do robust quoting.  It backslashifies
7000
 
# metacharacters that are still active within double-quoted strings.
7001
 
Xsed='sed -e 1s/^X//'
7002
 
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7003
 
 
7004
 
# Same as above, but do not quote variable references.
7005
 
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7006
 
 
7007
 
# Sed substitution to delay expansion of an escaped shell variable in a
7008
 
# double_quote_subst'ed string.
7009
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7010
 
 
7011
 
# Sed substitution to avoid accidental globbing in evaled expressions
7012
 
no_glob_subst='s/\*/\\\*/g'
7013
 
 
7014
 
# Constants:
7015
 
rm="rm -f"
7016
 
 
7017
 
# Global variables:
7018
 
default_ofile=libtool
7019
 
can_build_shared=yes
7020
 
 
7021
 
# All known linkers require a `.a' archive for static linking (except MSVC,
7022
 
# which needs '.lib').
7023
 
libext=a
7024
 
ltmain="$ac_aux_dir/ltmain.sh"
7025
 
ofile="$default_ofile"
7026
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
7027
 
 
7028
 
if test -n "$ac_tool_prefix"; then
7029
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7030
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
7031
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7032
 
$as_echo_n "checking for $ac_word... " >&6; }
7033
 
if test "${ac_cv_prog_AR+set}" = set; then
7034
 
  $as_echo_n "(cached) " >&6
7035
 
else
7036
 
  if test -n "$AR"; then
7037
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
7038
 
else
7039
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040
 
for as_dir in $PATH
7041
 
do
7042
 
  IFS=$as_save_IFS
7043
 
  test -z "$as_dir" && as_dir=.
7044
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7045
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7046
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
7047
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7048
 
    break 2
7049
 
  fi
7050
 
done
7051
 
done
7052
 
IFS=$as_save_IFS
7053
 
 
7054
 
fi
7055
 
fi
7056
 
AR=$ac_cv_prog_AR
7057
 
if test -n "$AR"; then
7058
 
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
7059
 
$as_echo "$AR" >&6; }
7060
 
else
7061
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
7062
 
$as_echo "no" >&6; }
7063
 
fi
7064
 
 
7065
 
 
7066
 
fi
7067
 
if test -z "$ac_cv_prog_AR"; then
7068
 
  ac_ct_AR=$AR
7069
 
  # Extract the first word of "ar", so it can be a program name with args.
7070
 
set dummy ar; ac_word=$2
7071
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7072
 
$as_echo_n "checking for $ac_word... " >&6; }
7073
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7074
 
  $as_echo_n "(cached) " >&6
7075
 
else
7076
 
  if test -n "$ac_ct_AR"; then
7077
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7078
 
else
7079
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080
 
for as_dir in $PATH
7081
 
do
7082
 
  IFS=$as_save_IFS
7083
 
  test -z "$as_dir" && as_dir=.
7084
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7085
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7086
 
    ac_cv_prog_ac_ct_AR="ar"
7087
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7088
 
    break 2
7089
 
  fi
7090
 
done
7091
 
done
7092
 
IFS=$as_save_IFS
7093
 
 
7094
 
fi
7095
 
fi
7096
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7097
 
if test -n "$ac_ct_AR"; then
7098
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7099
 
$as_echo "$ac_ct_AR" >&6; }
7100
 
else
7101
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
7102
 
$as_echo "no" >&6; }
7103
 
fi
7104
 
 
7105
 
  if test "x$ac_ct_AR" = x; then
7106
 
    AR="false"
7107
 
  else
7108
 
    case $cross_compiling:$ac_tool_warned in
7109
 
yes:)
7110
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7111
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7112
 
ac_tool_warned=yes ;;
7113
 
esac
7114
 
    AR=$ac_ct_AR
7115
 
  fi
7116
 
else
7117
 
  AR="$ac_cv_prog_AR"
7118
 
fi
7119
 
 
7120
 
if test -n "$ac_tool_prefix"; then
7121
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7122
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7123
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7124
 
$as_echo_n "checking for $ac_word... " >&6; }
7125
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
7126
 
  $as_echo_n "(cached) " >&6
7127
 
else
7128
 
  if test -n "$RANLIB"; then
7129
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7130
 
else
7131
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132
 
for as_dir in $PATH
7133
 
do
7134
 
  IFS=$as_save_IFS
7135
 
  test -z "$as_dir" && as_dir=.
7136
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7137
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7138
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7139
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7140
 
    break 2
7141
 
  fi
7142
 
done
7143
 
done
7144
 
IFS=$as_save_IFS
7145
 
 
7146
 
fi
7147
 
fi
7148
 
RANLIB=$ac_cv_prog_RANLIB
7149
 
if test -n "$RANLIB"; then
7150
 
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7151
 
$as_echo "$RANLIB" >&6; }
7152
 
else
7153
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
7154
 
$as_echo "no" >&6; }
7155
 
fi
7156
 
 
7157
 
 
7158
 
fi
7159
 
if test -z "$ac_cv_prog_RANLIB"; then
7160
 
  ac_ct_RANLIB=$RANLIB
7161
 
  # Extract the first word of "ranlib", so it can be a program name with args.
7162
 
set dummy ranlib; ac_word=$2
7163
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7164
 
$as_echo_n "checking for $ac_word... " >&6; }
7165
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7166
 
  $as_echo_n "(cached) " >&6
7167
 
else
7168
 
  if test -n "$ac_ct_RANLIB"; then
7169
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7170
 
else
7171
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172
 
for as_dir in $PATH
7173
 
do
7174
 
  IFS=$as_save_IFS
7175
 
  test -z "$as_dir" && as_dir=.
7176
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7177
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7178
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
7179
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7180
 
    break 2
7181
 
  fi
7182
 
done
7183
 
done
7184
 
IFS=$as_save_IFS
7185
 
 
7186
 
fi
7187
 
fi
7188
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7189
 
if test -n "$ac_ct_RANLIB"; then
7190
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7191
 
$as_echo "$ac_ct_RANLIB" >&6; }
7192
 
else
7193
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
7194
 
$as_echo "no" >&6; }
7195
 
fi
7196
 
 
7197
 
  if test "x$ac_ct_RANLIB" = x; then
7198
 
    RANLIB=":"
7199
 
  else
7200
 
    case $cross_compiling:$ac_tool_warned in
7201
 
yes:)
7202
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7203
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7204
 
ac_tool_warned=yes ;;
7205
 
esac
7206
 
    RANLIB=$ac_ct_RANLIB
7207
 
  fi
7208
 
else
7209
 
  RANLIB="$ac_cv_prog_RANLIB"
7210
 
fi
7211
 
 
7212
 
if test -n "$ac_tool_prefix"; then
7213
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7214
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
7215
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7216
 
$as_echo_n "checking for $ac_word... " >&6; }
7217
 
if test "${ac_cv_prog_STRIP+set}" = set; then
7218
 
  $as_echo_n "(cached) " >&6
7219
 
else
7220
 
  if test -n "$STRIP"; then
7221
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7222
 
else
7223
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224
 
for as_dir in $PATH
7225
 
do
7226
 
  IFS=$as_save_IFS
7227
 
  test -z "$as_dir" && as_dir=.
7228
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7229
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7230
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7231
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7232
 
    break 2
7233
 
  fi
7234
 
done
7235
 
done
7236
 
IFS=$as_save_IFS
7237
 
 
7238
 
fi
7239
 
fi
7240
 
STRIP=$ac_cv_prog_STRIP
7241
 
if test -n "$STRIP"; then
7242
 
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7243
 
$as_echo "$STRIP" >&6; }
7244
 
else
7245
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
7246
 
$as_echo "no" >&6; }
7247
 
fi
7248
 
 
7249
 
 
7250
 
fi
7251
 
if test -z "$ac_cv_prog_STRIP"; then
7252
 
  ac_ct_STRIP=$STRIP
7253
 
  # Extract the first word of "strip", so it can be a program name with args.
7254
 
set dummy strip; ac_word=$2
7255
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7256
 
$as_echo_n "checking for $ac_word... " >&6; }
7257
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7258
 
  $as_echo_n "(cached) " >&6
7259
 
else
7260
 
  if test -n "$ac_ct_STRIP"; then
7261
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7262
 
else
7263
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264
 
for as_dir in $PATH
7265
 
do
7266
 
  IFS=$as_save_IFS
7267
 
  test -z "$as_dir" && as_dir=.
7268
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7269
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7270
 
    ac_cv_prog_ac_ct_STRIP="strip"
7271
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7272
 
    break 2
7273
 
  fi
7274
 
done
7275
 
done
7276
 
IFS=$as_save_IFS
7277
 
 
7278
 
fi
7279
 
fi
7280
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7281
 
if test -n "$ac_ct_STRIP"; then
7282
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7283
 
$as_echo "$ac_ct_STRIP" >&6; }
7284
 
else
7285
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
7286
 
$as_echo "no" >&6; }
7287
 
fi
7288
 
 
7289
 
  if test "x$ac_ct_STRIP" = x; then
7290
 
    STRIP=":"
7291
 
  else
7292
 
    case $cross_compiling:$ac_tool_warned in
7293
 
yes:)
7294
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7295
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7296
 
ac_tool_warned=yes ;;
7297
 
esac
7298
 
    STRIP=$ac_ct_STRIP
7299
 
  fi
7300
 
else
7301
 
  STRIP="$ac_cv_prog_STRIP"
7302
 
fi
7303
 
 
7304
 
 
7305
 
old_CC="$CC"
7306
 
old_CFLAGS="$CFLAGS"
7307
 
 
7308
 
# Set sane defaults for various variables
7309
 
test -z "$AR" && AR=ar
7310
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
7311
 
test -z "$AS" && AS=as
7312
 
test -z "$CC" && CC=cc
7313
 
test -z "$LTCC" && LTCC=$CC
7314
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7315
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
7316
 
test -z "$LD" && LD=ld
7317
 
test -z "$LN_S" && LN_S="ln -s"
7318
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7319
 
test -z "$NM" && NM=nm
7320
 
test -z "$SED" && SED=sed
7321
 
test -z "$OBJDUMP" && OBJDUMP=objdump
7322
 
test -z "$RANLIB" && RANLIB=:
7323
 
test -z "$STRIP" && STRIP=:
7324
 
test -z "$ac_objext" && ac_objext=o
7325
 
 
7326
 
# Determine commands to create old-style static archives.
7327
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7328
 
old_postinstall_cmds='chmod 644 $oldlib'
7329
 
old_postuninstall_cmds=
7330
 
 
7331
 
if test -n "$RANLIB"; then
7332
 
  case $host_os in
7333
 
  openbsd*)
7334
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7335
 
    ;;
7336
 
  *)
7337
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7338
 
    ;;
7339
 
  esac
7340
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7341
 
fi
7342
 
 
7343
 
for cc_temp in $compiler""; do
7344
 
  case $cc_temp in
7345
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7346
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7347
 
    \-*) ;;
7348
 
    *) break;;
7349
 
  esac
7350
 
done
7351
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7352
 
 
7353
 
 
7354
 
# Only perform the check for file, if the check method requires it
7355
 
case $deplibs_check_method in
7356
 
file_magic*)
7357
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7358
 
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7359
 
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7360
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7361
 
  $as_echo_n "(cached) " >&6
7362
 
else
7363
 
  case $MAGIC_CMD in
7364
 
[\\/*] |  ?:[\\/]*)
7365
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7366
 
  ;;
7367
 
*)
7368
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7369
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7370
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7371
 
  for ac_dir in $ac_dummy; do
7372
 
    IFS="$lt_save_ifs"
7373
 
    test -z "$ac_dir" && ac_dir=.
7374
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
7375
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7376
 
      if test -n "$file_magic_test_file"; then
7377
 
        case $deplibs_check_method in
7378
 
        "file_magic "*)
7379
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7380
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7381
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7382
 
            $EGREP "$file_magic_regex" > /dev/null; then
7383
 
            :
7384
 
          else
7385
 
            cat <<EOF 1>&2
7386
 
 
7387
 
*** Warning: the command libtool uses to detect shared libraries,
7388
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
7389
 
*** The result is that libtool may fail to recognize shared libraries
7390
 
*** as such.  This will affect the creation of libtool libraries that
7391
 
*** depend on shared libraries, but programs linked with such libtool
7392
 
*** libraries will work regardless of this problem.  Nevertheless, you
7393
 
*** may want to report the problem to your system manager and/or to
7394
 
*** bug-libtool@gnu.org
7395
 
 
7396
 
EOF
7397
 
          fi ;;
7398
 
        esac
7399
 
      fi
7400
 
      break
7401
 
    fi
7402
 
  done
7403
 
  IFS="$lt_save_ifs"
7404
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7405
 
  ;;
7406
 
esac
7407
 
fi
7408
 
 
7409
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7410
 
if test -n "$MAGIC_CMD"; then
7411
 
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7412
 
$as_echo "$MAGIC_CMD" >&6; }
7413
 
else
7414
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
7415
 
$as_echo "no" >&6; }
7416
 
fi
7417
 
 
7418
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
7419
 
  if test -n "$ac_tool_prefix"; then
7420
 
    { $as_echo "$as_me:$LINENO: checking for file" >&5
7421
 
$as_echo_n "checking for file... " >&6; }
7422
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7423
 
  $as_echo_n "(cached) " >&6
7424
 
else
7425
 
  case $MAGIC_CMD in
7426
 
[\\/*] |  ?:[\\/]*)
7427
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7428
 
  ;;
7429
 
*)
7430
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7431
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7432
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7433
 
  for ac_dir in $ac_dummy; do
7434
 
    IFS="$lt_save_ifs"
7435
 
    test -z "$ac_dir" && ac_dir=.
7436
 
    if test -f $ac_dir/file; then
7437
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7438
 
      if test -n "$file_magic_test_file"; then
7439
 
        case $deplibs_check_method in
7440
 
        "file_magic "*)
7441
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7442
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7443
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7444
 
            $EGREP "$file_magic_regex" > /dev/null; then
7445
 
            :
7446
 
          else
7447
 
            cat <<EOF 1>&2
7448
 
 
7449
 
*** Warning: the command libtool uses to detect shared libraries,
7450
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
7451
 
*** The result is that libtool may fail to recognize shared libraries
7452
 
*** as such.  This will affect the creation of libtool libraries that
7453
 
*** depend on shared libraries, but programs linked with such libtool
7454
 
*** libraries will work regardless of this problem.  Nevertheless, you
7455
 
*** may want to report the problem to your system manager and/or to
7456
 
*** bug-libtool@gnu.org
7457
 
 
7458
 
EOF
7459
 
          fi ;;
7460
 
        esac
7461
 
      fi
7462
 
      break
7463
 
    fi
7464
 
  done
7465
 
  IFS="$lt_save_ifs"
7466
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7467
 
  ;;
7468
 
esac
7469
 
fi
7470
 
 
7471
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7472
 
if test -n "$MAGIC_CMD"; then
7473
 
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7474
 
$as_echo "$MAGIC_CMD" >&6; }
7475
 
else
7476
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
7477
 
$as_echo "no" >&6; }
7478
 
fi
7479
 
 
7480
 
  else
7481
 
    MAGIC_CMD=:
7482
 
  fi
7483
 
fi
7484
 
 
7485
 
  fi
7486
 
  ;;
7487
 
esac
 
5951
 
 
5952
 
 
5953
 
 
5954
 
 
5955
 
 
5956
 
 
5957
 
 
5958
 
 
5959
 
 
5960
 
 
5961
 
 
5962
 
 
5963
 
 
5964
 
 
5965
 
 
5966
 
 
5967
 
 
5968
 
 
5969
 
 
5970
 
 
5971
 
 
5972
 
 
5973
# Check whether --enable-libtool-lock was given.
 
5974
if test "${enable_libtool_lock+set}" = set; then
 
5975
  enableval=$enable_libtool_lock;
 
5976
fi
 
5977
 
 
5978
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
5979
 
 
5980
# Some flags need to be propagated to the compiler or linker for good
 
5981
# libtool support.
 
5982
case $host in
 
5983
ia64-*-hpux*)
 
5984
  # Find out which ABI we are using.
 
5985
  echo 'int i;' > conftest.$ac_ext
 
5986
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5987
  (eval $ac_compile) 2>&5
 
5988
  ac_status=$?
 
5989
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5990
  (exit $ac_status); }; then
 
5991
    case `/usr/bin/file conftest.$ac_objext` in
 
5992
      *ELF-32*)
 
5993
        HPUX_IA64_MODE="32"
 
5994
        ;;
 
5995
      *ELF-64*)
 
5996
        HPUX_IA64_MODE="64"
 
5997
        ;;
 
5998
    esac
 
5999
  fi
 
6000
  rm -rf conftest*
 
6001
  ;;
 
6002
*-*-irix6*)
 
6003
  # Find out which ABI we are using.
 
6004
  echo '#line 6004 "configure"' > conftest.$ac_ext
 
6005
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6006
  (eval $ac_compile) 2>&5
 
6007
  ac_status=$?
 
6008
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6009
  (exit $ac_status); }; then
 
6010
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
6011
      case `/usr/bin/file conftest.$ac_objext` in
 
6012
        *32-bit*)
 
6013
          LD="${LD-ld} -melf32bsmip"
 
6014
          ;;
 
6015
        *N32*)
 
6016
          LD="${LD-ld} -melf32bmipn32"
 
6017
          ;;
 
6018
        *64-bit*)
 
6019
          LD="${LD-ld} -melf64bmip"
 
6020
        ;;
 
6021
      esac
 
6022
    else
 
6023
      case `/usr/bin/file conftest.$ac_objext` in
 
6024
        *32-bit*)
 
6025
          LD="${LD-ld} -32"
 
6026
          ;;
 
6027
        *N32*)
 
6028
          LD="${LD-ld} -n32"
 
6029
          ;;
 
6030
        *64-bit*)
 
6031
          LD="${LD-ld} -64"
 
6032
          ;;
 
6033
      esac
 
6034
    fi
 
6035
  fi
 
6036
  rm -rf conftest*
 
6037
  ;;
 
6038
 
 
6039
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
6040
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
6041
  # Find out which ABI we are using.
 
6042
  echo 'int i;' > conftest.$ac_ext
 
6043
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6044
  (eval $ac_compile) 2>&5
 
6045
  ac_status=$?
 
6046
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6047
  (exit $ac_status); }; then
 
6048
    case `/usr/bin/file conftest.o` in
 
6049
      *32-bit*)
 
6050
        case $host in
 
6051
          x86_64-*kfreebsd*-gnu)
 
6052
            LD="${LD-ld} -m elf_i386_fbsd"
 
6053
            ;;
 
6054
          x86_64-*linux*)
 
6055
            LD="${LD-ld} -m elf_i386"
 
6056
            ;;
 
6057
          ppc64-*linux*|powerpc64-*linux*)
 
6058
            LD="${LD-ld} -m elf32ppclinux"
 
6059
            ;;
 
6060
          s390x-*linux*)
 
6061
            LD="${LD-ld} -m elf_s390"
 
6062
            ;;
 
6063
          sparc64-*linux*)
 
6064
            LD="${LD-ld} -m elf32_sparc"
 
6065
            ;;
 
6066
        esac
 
6067
        ;;
 
6068
      *64-bit*)
 
6069
        case $host in
 
6070
          x86_64-*kfreebsd*-gnu)
 
6071
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
6072
            ;;
 
6073
          x86_64-*linux*)
 
6074
            LD="${LD-ld} -m elf_x86_64"
 
6075
            ;;
 
6076
          ppc*-*linux*|powerpc*-*linux*)
 
6077
            LD="${LD-ld} -m elf64ppc"
 
6078
            ;;
 
6079
          s390*-*linux*|s390*-*tpf*)
 
6080
            LD="${LD-ld} -m elf64_s390"
 
6081
            ;;
 
6082
          sparc*-*linux*)
 
6083
            LD="${LD-ld} -m elf64_sparc"
 
6084
            ;;
 
6085
        esac
 
6086
        ;;
 
6087
    esac
 
6088
  fi
 
6089
  rm -rf conftest*
 
6090
  ;;
 
6091
 
 
6092
*-*-sco3.2v5*)
 
6093
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
6094
  SAVE_CFLAGS="$CFLAGS"
 
6095
  CFLAGS="$CFLAGS -belf"
 
6096
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
6097
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
6098
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
6099
  $as_echo_n "(cached) " >&6
 
6100
else
 
6101
  ac_ext=c
 
6102
ac_cpp='$CPP $CPPFLAGS'
 
6103
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6104
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6105
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6106
 
 
6107
     cat >conftest.$ac_ext <<_ACEOF
 
6108
/* confdefs.h.  */
 
6109
_ACEOF
 
6110
cat confdefs.h >>conftest.$ac_ext
 
6111
cat >>conftest.$ac_ext <<_ACEOF
 
6112
/* end confdefs.h.  */
 
6113
 
 
6114
int
 
6115
main ()
 
6116
{
 
6117
 
 
6118
  ;
 
6119
  return 0;
 
6120
}
 
6121
_ACEOF
 
6122
rm -f conftest.$ac_objext conftest$ac_exeext
 
6123
if { (ac_try="$ac_link"
 
6124
case "(($ac_try" in
 
6125
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6126
  *) ac_try_echo=$ac_try;;
 
6127
esac
 
6128
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6129
$as_echo "$ac_try_echo") >&5
 
6130
  (eval "$ac_link") 2>conftest.er1
 
6131
  ac_status=$?
 
6132
  grep -v '^ *+' conftest.er1 >conftest.err
 
6133
  rm -f conftest.er1
 
6134
  cat conftest.err >&5
 
6135
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6136
  (exit $ac_status); } && {
 
6137
         test -z "$ac_c_werror_flag" ||
 
6138
         test ! -s conftest.err
 
6139
       } && test -s conftest$ac_exeext && {
 
6140
         test "$cross_compiling" = yes ||
 
6141
         $as_test_x conftest$ac_exeext
 
6142
       }; then
 
6143
  lt_cv_cc_needs_belf=yes
 
6144
else
 
6145
  $as_echo "$as_me: failed program was:" >&5
 
6146
sed 's/^/| /' conftest.$ac_ext >&5
 
6147
 
 
6148
        lt_cv_cc_needs_belf=no
 
6149
fi
 
6150
 
 
6151
rm -rf conftest.dSYM
 
6152
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6153
      conftest$ac_exeext conftest.$ac_ext
 
6154
     ac_ext=c
 
6155
ac_cpp='$CPP $CPPFLAGS'
 
6156
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6157
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6158
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6159
 
 
6160
fi
 
6161
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
6162
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
6163
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
6164
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
6165
    CFLAGS="$SAVE_CFLAGS"
 
6166
  fi
 
6167
  ;;
 
6168
sparc*-*solaris*)
 
6169
  # Find out which ABI we are using.
 
6170
  echo 'int i;' > conftest.$ac_ext
 
6171
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6172
  (eval $ac_compile) 2>&5
 
6173
  ac_status=$?
 
6174
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6175
  (exit $ac_status); }; then
 
6176
    case `/usr/bin/file conftest.o` in
 
6177
    *64-bit*)
 
6178
      case $lt_cv_prog_gnu_ld in
 
6179
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
6180
      *)
 
6181
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
6182
          LD="${LD-ld} -64"
 
6183
        fi
 
6184
        ;;
 
6185
      esac
 
6186
      ;;
 
6187
    esac
 
6188
  fi
 
6189
  rm -rf conftest*
 
6190
  ;;
 
6191
esac
 
6192
 
 
6193
need_locks="$enable_libtool_lock"
7488
6194
 
7489
6195
 
7490
6196
  case $host_os in
7673
6379
  NMEDIT="$ac_cv_prog_NMEDIT"
7674
6380
fi
7675
6381
 
 
6382
    if test -n "$ac_tool_prefix"; then
 
6383
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
6384
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
6385
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6386
$as_echo_n "checking for $ac_word... " >&6; }
 
6387
if test "${ac_cv_prog_LIPO+set}" = set; then
 
6388
  $as_echo_n "(cached) " >&6
 
6389
else
 
6390
  if test -n "$LIPO"; then
 
6391
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
6392
else
 
6393
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6394
for as_dir in $PATH
 
6395
do
 
6396
  IFS=$as_save_IFS
 
6397
  test -z "$as_dir" && as_dir=.
 
6398
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6399
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6400
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
6401
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6402
    break 2
 
6403
  fi
 
6404
done
 
6405
done
 
6406
IFS=$as_save_IFS
 
6407
 
 
6408
fi
 
6409
fi
 
6410
LIPO=$ac_cv_prog_LIPO
 
6411
if test -n "$LIPO"; then
 
6412
  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
 
6413
$as_echo "$LIPO" >&6; }
 
6414
else
 
6415
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6416
$as_echo "no" >&6; }
 
6417
fi
 
6418
 
 
6419
 
 
6420
fi
 
6421
if test -z "$ac_cv_prog_LIPO"; then
 
6422
  ac_ct_LIPO=$LIPO
 
6423
  # Extract the first word of "lipo", so it can be a program name with args.
 
6424
set dummy lipo; ac_word=$2
 
6425
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6426
$as_echo_n "checking for $ac_word... " >&6; }
 
6427
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
 
6428
  $as_echo_n "(cached) " >&6
 
6429
else
 
6430
  if test -n "$ac_ct_LIPO"; then
 
6431
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
6432
else
 
6433
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6434
for as_dir in $PATH
 
6435
do
 
6436
  IFS=$as_save_IFS
 
6437
  test -z "$as_dir" && as_dir=.
 
6438
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6439
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6440
    ac_cv_prog_ac_ct_LIPO="lipo"
 
6441
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6442
    break 2
 
6443
  fi
 
6444
done
 
6445
done
 
6446
IFS=$as_save_IFS
 
6447
 
 
6448
fi
 
6449
fi
 
6450
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
6451
if test -n "$ac_ct_LIPO"; then
 
6452
  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
 
6453
$as_echo "$ac_ct_LIPO" >&6; }
 
6454
else
 
6455
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6456
$as_echo "no" >&6; }
 
6457
fi
 
6458
 
 
6459
  if test "x$ac_ct_LIPO" = x; then
 
6460
    LIPO=":"
 
6461
  else
 
6462
    case $cross_compiling:$ac_tool_warned in
 
6463
yes:)
 
6464
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6465
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6466
ac_tool_warned=yes ;;
 
6467
esac
 
6468
    LIPO=$ac_ct_LIPO
 
6469
  fi
 
6470
else
 
6471
  LIPO="$ac_cv_prog_LIPO"
 
6472
fi
 
6473
 
 
6474
    if test -n "$ac_tool_prefix"; then
 
6475
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
6476
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
6477
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6478
$as_echo_n "checking for $ac_word... " >&6; }
 
6479
if test "${ac_cv_prog_OTOOL+set}" = set; then
 
6480
  $as_echo_n "(cached) " >&6
 
6481
else
 
6482
  if test -n "$OTOOL"; then
 
6483
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
6484
else
 
6485
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6486
for as_dir in $PATH
 
6487
do
 
6488
  IFS=$as_save_IFS
 
6489
  test -z "$as_dir" && as_dir=.
 
6490
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6491
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6492
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
6493
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6494
    break 2
 
6495
  fi
 
6496
done
 
6497
done
 
6498
IFS=$as_save_IFS
 
6499
 
 
6500
fi
 
6501
fi
 
6502
OTOOL=$ac_cv_prog_OTOOL
 
6503
if test -n "$OTOOL"; then
 
6504
  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
 
6505
$as_echo "$OTOOL" >&6; }
 
6506
else
 
6507
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6508
$as_echo "no" >&6; }
 
6509
fi
 
6510
 
 
6511
 
 
6512
fi
 
6513
if test -z "$ac_cv_prog_OTOOL"; then
 
6514
  ac_ct_OTOOL=$OTOOL
 
6515
  # Extract the first word of "otool", so it can be a program name with args.
 
6516
set dummy otool; ac_word=$2
 
6517
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6518
$as_echo_n "checking for $ac_word... " >&6; }
 
6519
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
 
6520
  $as_echo_n "(cached) " >&6
 
6521
else
 
6522
  if test -n "$ac_ct_OTOOL"; then
 
6523
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
6524
else
 
6525
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6526
for as_dir in $PATH
 
6527
do
 
6528
  IFS=$as_save_IFS
 
6529
  test -z "$as_dir" && as_dir=.
 
6530
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6531
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6532
    ac_cv_prog_ac_ct_OTOOL="otool"
 
6533
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6534
    break 2
 
6535
  fi
 
6536
done
 
6537
done
 
6538
IFS=$as_save_IFS
 
6539
 
 
6540
fi
 
6541
fi
 
6542
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
6543
if test -n "$ac_ct_OTOOL"; then
 
6544
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
 
6545
$as_echo "$ac_ct_OTOOL" >&6; }
 
6546
else
 
6547
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6548
$as_echo "no" >&6; }
 
6549
fi
 
6550
 
 
6551
  if test "x$ac_ct_OTOOL" = x; then
 
6552
    OTOOL=":"
 
6553
  else
 
6554
    case $cross_compiling:$ac_tool_warned in
 
6555
yes:)
 
6556
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6557
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6558
ac_tool_warned=yes ;;
 
6559
esac
 
6560
    OTOOL=$ac_ct_OTOOL
 
6561
  fi
 
6562
else
 
6563
  OTOOL="$ac_cv_prog_OTOOL"
 
6564
fi
 
6565
 
 
6566
    if test -n "$ac_tool_prefix"; then
 
6567
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
6568
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
6569
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6570
$as_echo_n "checking for $ac_word... " >&6; }
 
6571
if test "${ac_cv_prog_OTOOL64+set}" = set; then
 
6572
  $as_echo_n "(cached) " >&6
 
6573
else
 
6574
  if test -n "$OTOOL64"; then
 
6575
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
6576
else
 
6577
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6578
for as_dir in $PATH
 
6579
do
 
6580
  IFS=$as_save_IFS
 
6581
  test -z "$as_dir" && as_dir=.
 
6582
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6583
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6584
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
6585
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6586
    break 2
 
6587
  fi
 
6588
done
 
6589
done
 
6590
IFS=$as_save_IFS
 
6591
 
 
6592
fi
 
6593
fi
 
6594
OTOOL64=$ac_cv_prog_OTOOL64
 
6595
if test -n "$OTOOL64"; then
 
6596
  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
 
6597
$as_echo "$OTOOL64" >&6; }
 
6598
else
 
6599
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6600
$as_echo "no" >&6; }
 
6601
fi
 
6602
 
 
6603
 
 
6604
fi
 
6605
if test -z "$ac_cv_prog_OTOOL64"; then
 
6606
  ac_ct_OTOOL64=$OTOOL64
 
6607
  # Extract the first word of "otool64", so it can be a program name with args.
 
6608
set dummy otool64; ac_word=$2
 
6609
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6610
$as_echo_n "checking for $ac_word... " >&6; }
 
6611
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
 
6612
  $as_echo_n "(cached) " >&6
 
6613
else
 
6614
  if test -n "$ac_ct_OTOOL64"; then
 
6615
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
6616
else
 
6617
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6618
for as_dir in $PATH
 
6619
do
 
6620
  IFS=$as_save_IFS
 
6621
  test -z "$as_dir" && as_dir=.
 
6622
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6623
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6624
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
6625
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6626
    break 2
 
6627
  fi
 
6628
done
 
6629
done
 
6630
IFS=$as_save_IFS
 
6631
 
 
6632
fi
 
6633
fi
 
6634
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
6635
if test -n "$ac_ct_OTOOL64"; then
 
6636
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
 
6637
$as_echo "$ac_ct_OTOOL64" >&6; }
 
6638
else
 
6639
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6640
$as_echo "no" >&6; }
 
6641
fi
 
6642
 
 
6643
  if test "x$ac_ct_OTOOL64" = x; then
 
6644
    OTOOL64=":"
 
6645
  else
 
6646
    case $cross_compiling:$ac_tool_warned in
 
6647
yes:)
 
6648
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6649
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6650
ac_tool_warned=yes ;;
 
6651
esac
 
6652
    OTOOL64=$ac_ct_OTOOL64
 
6653
  fi
 
6654
else
 
6655
  OTOOL64="$ac_cv_prog_OTOOL64"
 
6656
fi
 
6657
 
 
6658
 
 
6659
 
 
6660
 
 
6661
 
 
6662
 
 
6663
 
 
6664
 
 
6665
 
 
6666
 
 
6667
 
 
6668
 
 
6669
 
 
6670
 
 
6671
 
 
6672
 
 
6673
 
 
6674
 
 
6675
 
 
6676
 
 
6677
 
 
6678
 
 
6679
 
 
6680
 
 
6681
 
 
6682
 
7676
6683
 
7677
6684
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7678
6685
$as_echo_n "checking for -single_module linker flag... " >&6; }
7681
6688
else
7682
6689
  lt_cv_apple_cc_single_mod=no
7683
6690
      if test -z "${LT_MULTI_MODULE}"; then
7684
 
   # By default we will add the -single_module flag. You can override
7685
 
   # by either setting the environment variable LT_MULTI_MODULE
7686
 
   # non-empty at configure time, or by adding -multi_module to the
7687
 
   # link flags.
7688
 
   echo "int foo(void){return 1;}" > conftest.c
7689
 
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7690
 
     -dynamiclib ${wl}-single_module conftest.c
7691
 
   if test -f libconftest.dylib; then
7692
 
     lt_cv_apple_cc_single_mod=yes
7693
 
     rm -rf libconftest.dylib*
7694
 
   fi
7695
 
   rm conftest.c
 
6691
        # By default we will add the -single_module flag. You can override
 
6692
        # by either setting the environment variable LT_MULTI_MODULE
 
6693
        # non-empty at configure time, or by adding -multi_module to the
 
6694
        # link flags.
 
6695
        rm -rf libconftest.dylib*
 
6696
        echo "int foo(void){return 1;}" > conftest.c
 
6697
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6698
-dynamiclib -Wl,-single_module conftest.c" >&5
 
6699
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6700
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
6701
        _lt_result=$?
 
6702
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
6703
          lt_cv_apple_cc_single_mod=yes
 
6704
        else
 
6705
          cat conftest.err >&5
 
6706
        fi
 
6707
        rm -rf libconftest.dylib*
 
6708
        rm -f conftest.*
7696
6709
      fi
7697
6710
fi
7698
6711
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7753
6766
rm -rf conftest.dSYM
7754
6767
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7755
6768
      conftest$ac_exeext conftest.$ac_ext
7756
 
   LDFLAGS="$save_LDFLAGS"
 
6769
        LDFLAGS="$save_LDFLAGS"
7757
6770
 
7758
6771
fi
7759
6772
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7760
6773
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7761
6774
    case $host_os in
7762
 
    rhapsody* | darwin1.[0123])
 
6775
    rhapsody* | darwin1.[012])
7763
6776
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7764
6777
    darwin1.*)
7765
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7766
 
    darwin*)
 
6778
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
6779
    darwin*) # darwin 5.x on
7767
6780
      # if running on 10.5 or later, the deployment target defaults
7768
6781
      # to the OS version, if on x86, and 10.4, the deployment
7769
6782
      # target defaults to 10.4. Don't you love it?
7770
6783
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7771
 
   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7772
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7773
 
   10.[012]*)
7774
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7775
 
   10.*)
7776
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
6784
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
6785
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
6786
        10.[012]*)
 
6787
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
6788
        10.*)
 
6789
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7777
6790
      esac
7778
6791
    ;;
7779
6792
  esac
7783
6796
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7784
6797
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7785
6798
    else
7786
 
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
6799
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7787
6800
    fi
7788
6801
    if test "$DSYMUTIL" != ":"; then
7789
 
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
6802
      _lt_dsymutil='~$DSYMUTIL $lib || :'
7790
6803
    else
7791
6804
      _lt_dsymutil=
7792
6805
    fi
7793
6806
    ;;
7794
6807
  esac
7795
6808
 
7796
 
 
7797
 
enable_dlopen=no
7798
 
enable_win32_dll=yes
7799
 
 
7800
 
# Check whether --enable-libtool-lock was given.
7801
 
if test "${enable_libtool_lock+set}" = set; then
7802
 
  enableval=$enable_libtool_lock;
7803
 
fi
7804
 
 
7805
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6809
ac_ext=c
 
6810
ac_cpp='$CPP $CPPFLAGS'
 
6811
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6812
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6813
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6814
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
6815
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
6816
# On Suns, sometimes $CPP names a directory.
 
6817
if test -n "$CPP" && test -d "$CPP"; then
 
6818
  CPP=
 
6819
fi
 
6820
if test -z "$CPP"; then
 
6821
  if test "${ac_cv_prog_CPP+set}" = set; then
 
6822
  $as_echo_n "(cached) " >&6
 
6823
else
 
6824
      # Double quotes because CPP needs to be expanded
 
6825
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
6826
    do
 
6827
      ac_preproc_ok=false
 
6828
for ac_c_preproc_warn_flag in '' yes
 
6829
do
 
6830
  # Use a header file that comes with gcc, so configuring glibc
 
6831
  # with a fresh cross-compiler works.
 
6832
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6833
  # <limits.h> exists even on freestanding compilers.
 
6834
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6835
  # not just through cpp. "Syntax error" is here to catch this case.
 
6836
  cat >conftest.$ac_ext <<_ACEOF
 
6837
/* confdefs.h.  */
 
6838
_ACEOF
 
6839
cat confdefs.h >>conftest.$ac_ext
 
6840
cat >>conftest.$ac_ext <<_ACEOF
 
6841
/* end confdefs.h.  */
 
6842
#ifdef __STDC__
 
6843
# include <limits.h>
 
6844
#else
 
6845
# include <assert.h>
 
6846
#endif
 
6847
                     Syntax error
 
6848
_ACEOF
 
6849
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6850
case "(($ac_try" in
 
6851
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6852
  *) ac_try_echo=$ac_try;;
 
6853
esac
 
6854
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6855
$as_echo "$ac_try_echo") >&5
 
6856
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6857
  ac_status=$?
 
6858
  grep -v '^ *+' conftest.er1 >conftest.err
 
6859
  rm -f conftest.er1
 
6860
  cat conftest.err >&5
 
6861
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6862
  (exit $ac_status); } >/dev/null && {
 
6863
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6864
         test ! -s conftest.err
 
6865
       }; then
 
6866
  :
 
6867
else
 
6868
  $as_echo "$as_me: failed program was:" >&5
 
6869
sed 's/^/| /' conftest.$ac_ext >&5
 
6870
 
 
6871
  # Broken: fails on valid input.
 
6872
continue
 
6873
fi
 
6874
 
 
6875
rm -f conftest.err conftest.$ac_ext
 
6876
 
 
6877
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6878
  # can be detected and how.
 
6879
  cat >conftest.$ac_ext <<_ACEOF
 
6880
/* confdefs.h.  */
 
6881
_ACEOF
 
6882
cat confdefs.h >>conftest.$ac_ext
 
6883
cat >>conftest.$ac_ext <<_ACEOF
 
6884
/* end confdefs.h.  */
 
6885
#include <ac_nonexistent.h>
 
6886
_ACEOF
 
6887
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6888
case "(($ac_try" in
 
6889
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6890
  *) ac_try_echo=$ac_try;;
 
6891
esac
 
6892
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6893
$as_echo "$ac_try_echo") >&5
 
6894
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6895
  ac_status=$?
 
6896
  grep -v '^ *+' conftest.er1 >conftest.err
 
6897
  rm -f conftest.er1
 
6898
  cat conftest.err >&5
 
6899
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6900
  (exit $ac_status); } >/dev/null && {
 
6901
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6902
         test ! -s conftest.err
 
6903
       }; then
 
6904
  # Broken: success on invalid input.
 
6905
continue
 
6906
else
 
6907
  $as_echo "$as_me: failed program was:" >&5
 
6908
sed 's/^/| /' conftest.$ac_ext >&5
 
6909
 
 
6910
  # Passes both tests.
 
6911
ac_preproc_ok=:
 
6912
break
 
6913
fi
 
6914
 
 
6915
rm -f conftest.err conftest.$ac_ext
 
6916
 
 
6917
done
 
6918
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6919
rm -f conftest.err conftest.$ac_ext
 
6920
if $ac_preproc_ok; then
 
6921
  break
 
6922
fi
 
6923
 
 
6924
    done
 
6925
    ac_cv_prog_CPP=$CPP
 
6926
 
 
6927
fi
 
6928
  CPP=$ac_cv_prog_CPP
 
6929
else
 
6930
  ac_cv_prog_CPP=$CPP
 
6931
fi
 
6932
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
 
6933
$as_echo "$CPP" >&6; }
 
6934
ac_preproc_ok=false
 
6935
for ac_c_preproc_warn_flag in '' yes
 
6936
do
 
6937
  # Use a header file that comes with gcc, so configuring glibc
 
6938
  # with a fresh cross-compiler works.
 
6939
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6940
  # <limits.h> exists even on freestanding compilers.
 
6941
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6942
  # not just through cpp. "Syntax error" is here to catch this case.
 
6943
  cat >conftest.$ac_ext <<_ACEOF
 
6944
/* confdefs.h.  */
 
6945
_ACEOF
 
6946
cat confdefs.h >>conftest.$ac_ext
 
6947
cat >>conftest.$ac_ext <<_ACEOF
 
6948
/* end confdefs.h.  */
 
6949
#ifdef __STDC__
 
6950
# include <limits.h>
 
6951
#else
 
6952
# include <assert.h>
 
6953
#endif
 
6954
                     Syntax error
 
6955
_ACEOF
 
6956
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6957
case "(($ac_try" in
 
6958
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6959
  *) ac_try_echo=$ac_try;;
 
6960
esac
 
6961
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6962
$as_echo "$ac_try_echo") >&5
 
6963
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6964
  ac_status=$?
 
6965
  grep -v '^ *+' conftest.er1 >conftest.err
 
6966
  rm -f conftest.er1
 
6967
  cat conftest.err >&5
 
6968
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6969
  (exit $ac_status); } >/dev/null && {
 
6970
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6971
         test ! -s conftest.err
 
6972
       }; then
 
6973
  :
 
6974
else
 
6975
  $as_echo "$as_me: failed program was:" >&5
 
6976
sed 's/^/| /' conftest.$ac_ext >&5
 
6977
 
 
6978
  # Broken: fails on valid input.
 
6979
continue
 
6980
fi
 
6981
 
 
6982
rm -f conftest.err conftest.$ac_ext
 
6983
 
 
6984
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6985
  # can be detected and how.
 
6986
  cat >conftest.$ac_ext <<_ACEOF
 
6987
/* confdefs.h.  */
 
6988
_ACEOF
 
6989
cat confdefs.h >>conftest.$ac_ext
 
6990
cat >>conftest.$ac_ext <<_ACEOF
 
6991
/* end confdefs.h.  */
 
6992
#include <ac_nonexistent.h>
 
6993
_ACEOF
 
6994
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6995
case "(($ac_try" in
 
6996
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6997
  *) ac_try_echo=$ac_try;;
 
6998
esac
 
6999
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7000
$as_echo "$ac_try_echo") >&5
 
7001
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
7002
  ac_status=$?
 
7003
  grep -v '^ *+' conftest.er1 >conftest.err
 
7004
  rm -f conftest.er1
 
7005
  cat conftest.err >&5
 
7006
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7007
  (exit $ac_status); } >/dev/null && {
 
7008
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
7009
         test ! -s conftest.err
 
7010
       }; then
 
7011
  # Broken: success on invalid input.
 
7012
continue
 
7013
else
 
7014
  $as_echo "$as_me: failed program was:" >&5
 
7015
sed 's/^/| /' conftest.$ac_ext >&5
 
7016
 
 
7017
  # Passes both tests.
 
7018
ac_preproc_ok=:
 
7019
break
 
7020
fi
 
7021
 
 
7022
rm -f conftest.err conftest.$ac_ext
 
7023
 
 
7024
done
 
7025
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7026
rm -f conftest.err conftest.$ac_ext
 
7027
if $ac_preproc_ok; then
 
7028
  :
 
7029
else
 
7030
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
7031
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
7032
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
7033
See \`config.log' for more details." >&5
 
7034
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
7035
See \`config.log' for more details." >&2;}
 
7036
   { (exit 1); exit 1; }; }; }
 
7037
fi
 
7038
 
 
7039
ac_ext=c
 
7040
ac_cpp='$CPP $CPPFLAGS'
 
7041
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7042
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7043
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7044
 
 
7045
 
 
7046
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
7047
$as_echo_n "checking for ANSI C header files... " >&6; }
 
7048
if test "${ac_cv_header_stdc+set}" = set; then
 
7049
  $as_echo_n "(cached) " >&6
 
7050
else
 
7051
  cat >conftest.$ac_ext <<_ACEOF
 
7052
/* confdefs.h.  */
 
7053
_ACEOF
 
7054
cat confdefs.h >>conftest.$ac_ext
 
7055
cat >>conftest.$ac_ext <<_ACEOF
 
7056
/* end confdefs.h.  */
 
7057
#include <stdlib.h>
 
7058
#include <stdarg.h>
 
7059
#include <string.h>
 
7060
#include <float.h>
 
7061
 
 
7062
int
 
7063
main ()
 
7064
{
 
7065
 
 
7066
  ;
 
7067
  return 0;
 
7068
}
 
7069
_ACEOF
 
7070
rm -f conftest.$ac_objext
 
7071
if { (ac_try="$ac_compile"
 
7072
case "(($ac_try" in
 
7073
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7074
  *) ac_try_echo=$ac_try;;
 
7075
esac
 
7076
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7077
$as_echo "$ac_try_echo") >&5
 
7078
  (eval "$ac_compile") 2>conftest.er1
 
7079
  ac_status=$?
 
7080
  grep -v '^ *+' conftest.er1 >conftest.err
 
7081
  rm -f conftest.er1
 
7082
  cat conftest.err >&5
 
7083
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7084
  (exit $ac_status); } && {
 
7085
         test -z "$ac_c_werror_flag" ||
 
7086
         test ! -s conftest.err
 
7087
       } && test -s conftest.$ac_objext; then
 
7088
  ac_cv_header_stdc=yes
 
7089
else
 
7090
  $as_echo "$as_me: failed program was:" >&5
 
7091
sed 's/^/| /' conftest.$ac_ext >&5
 
7092
 
 
7093
        ac_cv_header_stdc=no
 
7094
fi
 
7095
 
 
7096
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7097
 
 
7098
if test $ac_cv_header_stdc = yes; then
 
7099
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
7100
  cat >conftest.$ac_ext <<_ACEOF
 
7101
/* confdefs.h.  */
 
7102
_ACEOF
 
7103
cat confdefs.h >>conftest.$ac_ext
 
7104
cat >>conftest.$ac_ext <<_ACEOF
 
7105
/* end confdefs.h.  */
 
7106
#include <string.h>
 
7107
 
 
7108
_ACEOF
 
7109
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7110
  $EGREP "memchr" >/dev/null 2>&1; then
 
7111
  :
 
7112
else
 
7113
  ac_cv_header_stdc=no
 
7114
fi
 
7115
rm -f conftest*
 
7116
 
 
7117
fi
 
7118
 
 
7119
if test $ac_cv_header_stdc = yes; then
 
7120
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
7121
  cat >conftest.$ac_ext <<_ACEOF
 
7122
/* confdefs.h.  */
 
7123
_ACEOF
 
7124
cat confdefs.h >>conftest.$ac_ext
 
7125
cat >>conftest.$ac_ext <<_ACEOF
 
7126
/* end confdefs.h.  */
 
7127
#include <stdlib.h>
 
7128
 
 
7129
_ACEOF
 
7130
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7131
  $EGREP "free" >/dev/null 2>&1; then
 
7132
  :
 
7133
else
 
7134
  ac_cv_header_stdc=no
 
7135
fi
 
7136
rm -f conftest*
 
7137
 
 
7138
fi
 
7139
 
 
7140
if test $ac_cv_header_stdc = yes; then
 
7141
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
7142
  if test "$cross_compiling" = yes; then
 
7143
  :
 
7144
else
 
7145
  cat >conftest.$ac_ext <<_ACEOF
 
7146
/* confdefs.h.  */
 
7147
_ACEOF
 
7148
cat confdefs.h >>conftest.$ac_ext
 
7149
cat >>conftest.$ac_ext <<_ACEOF
 
7150
/* end confdefs.h.  */
 
7151
#include <ctype.h>
 
7152
#include <stdlib.h>
 
7153
#if ((' ' & 0x0FF) == 0x020)
 
7154
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
7155
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
7156
#else
 
7157
# define ISLOWER(c) \
 
7158
                   (('a' <= (c) && (c) <= 'i') \
 
7159
                     || ('j' <= (c) && (c) <= 'r') \
 
7160
                     || ('s' <= (c) && (c) <= 'z'))
 
7161
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
7162
#endif
 
7163
 
 
7164
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
7165
int
 
7166
main ()
 
7167
{
 
7168
  int i;
 
7169
  for (i = 0; i < 256; i++)
 
7170
    if (XOR (islower (i), ISLOWER (i))
 
7171
        || toupper (i) != TOUPPER (i))
 
7172
      return 2;
 
7173
  return 0;
 
7174
}
 
7175
_ACEOF
 
7176
rm -f conftest$ac_exeext
 
7177
if { (ac_try="$ac_link"
 
7178
case "(($ac_try" in
 
7179
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7180
  *) ac_try_echo=$ac_try;;
 
7181
esac
 
7182
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7183
$as_echo "$ac_try_echo") >&5
 
7184
  (eval "$ac_link") 2>&5
 
7185
  ac_status=$?
 
7186
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7187
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7188
  { (case "(($ac_try" in
 
7189
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7190
  *) ac_try_echo=$ac_try;;
 
7191
esac
 
7192
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7193
$as_echo "$ac_try_echo") >&5
 
7194
  (eval "$ac_try") 2>&5
 
7195
  ac_status=$?
 
7196
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7197
  (exit $ac_status); }; }; then
 
7198
  :
 
7199
else
 
7200
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
7201
$as_echo "$as_me: failed program was:" >&5
 
7202
sed 's/^/| /' conftest.$ac_ext >&5
 
7203
 
 
7204
( exit $ac_status )
 
7205
ac_cv_header_stdc=no
 
7206
fi
 
7207
rm -rf conftest.dSYM
 
7208
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7209
fi
 
7210
 
 
7211
 
 
7212
fi
 
7213
fi
 
7214
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
7215
$as_echo "$ac_cv_header_stdc" >&6; }
 
7216
if test $ac_cv_header_stdc = yes; then
 
7217
 
 
7218
cat >>confdefs.h <<\_ACEOF
 
7219
#define STDC_HEADERS 1
 
7220
_ACEOF
 
7221
 
 
7222
fi
 
7223
 
 
7224
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
7225
 
 
7226
 
 
7227
 
 
7228
 
 
7229
 
 
7230
 
 
7231
 
 
7232
 
 
7233
 
 
7234
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
7235
                  inttypes.h stdint.h unistd.h
 
7236
do
 
7237
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7238
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7239
$as_echo_n "checking for $ac_header... " >&6; }
 
7240
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
7241
  $as_echo_n "(cached) " >&6
 
7242
else
 
7243
  cat >conftest.$ac_ext <<_ACEOF
 
7244
/* confdefs.h.  */
 
7245
_ACEOF
 
7246
cat confdefs.h >>conftest.$ac_ext
 
7247
cat >>conftest.$ac_ext <<_ACEOF
 
7248
/* end confdefs.h.  */
 
7249
$ac_includes_default
 
7250
 
 
7251
#include <$ac_header>
 
7252
_ACEOF
 
7253
rm -f conftest.$ac_objext
 
7254
if { (ac_try="$ac_compile"
 
7255
case "(($ac_try" in
 
7256
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7257
  *) ac_try_echo=$ac_try;;
 
7258
esac
 
7259
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7260
$as_echo "$ac_try_echo") >&5
 
7261
  (eval "$ac_compile") 2>conftest.er1
 
7262
  ac_status=$?
 
7263
  grep -v '^ *+' conftest.er1 >conftest.err
 
7264
  rm -f conftest.er1
 
7265
  cat conftest.err >&5
 
7266
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7267
  (exit $ac_status); } && {
 
7268
         test -z "$ac_c_werror_flag" ||
 
7269
         test ! -s conftest.err
 
7270
       } && test -s conftest.$ac_objext; then
 
7271
  eval "$as_ac_Header=yes"
 
7272
else
 
7273
  $as_echo "$as_me: failed program was:" >&5
 
7274
sed 's/^/| /' conftest.$ac_ext >&5
 
7275
 
 
7276
        eval "$as_ac_Header=no"
 
7277
fi
 
7278
 
 
7279
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7280
fi
 
7281
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
7282
                 $as_echo "$as_val"'`
 
7283
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
7284
$as_echo "$ac_res" >&6; }
 
7285
as_val=`eval 'as_val=${'$as_ac_Header'}
 
7286
                 $as_echo "$as_val"'`
 
7287
   if test "x$as_val" = x""yes; then
 
7288
  cat >>confdefs.h <<_ACEOF
 
7289
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7290
_ACEOF
 
7291
 
 
7292
fi
 
7293
 
 
7294
done
 
7295
 
 
7296
 
 
7297
 
 
7298
for ac_header in dlfcn.h
 
7299
do
 
7300
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7301
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7302
$as_echo_n "checking for $ac_header... " >&6; }
 
7303
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
7304
  $as_echo_n "(cached) " >&6
 
7305
else
 
7306
  cat >conftest.$ac_ext <<_ACEOF
 
7307
/* confdefs.h.  */
 
7308
_ACEOF
 
7309
cat confdefs.h >>conftest.$ac_ext
 
7310
cat >>conftest.$ac_ext <<_ACEOF
 
7311
/* end confdefs.h.  */
 
7312
$ac_includes_default
 
7313
 
 
7314
#include <$ac_header>
 
7315
_ACEOF
 
7316
rm -f conftest.$ac_objext
 
7317
if { (ac_try="$ac_compile"
 
7318
case "(($ac_try" in
 
7319
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7320
  *) ac_try_echo=$ac_try;;
 
7321
esac
 
7322
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7323
$as_echo "$ac_try_echo") >&5
 
7324
  (eval "$ac_compile") 2>conftest.er1
 
7325
  ac_status=$?
 
7326
  grep -v '^ *+' conftest.er1 >conftest.err
 
7327
  rm -f conftest.er1
 
7328
  cat conftest.err >&5
 
7329
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7330
  (exit $ac_status); } && {
 
7331
         test -z "$ac_c_werror_flag" ||
 
7332
         test ! -s conftest.err
 
7333
       } && test -s conftest.$ac_objext; then
 
7334
  eval "$as_ac_Header=yes"
 
7335
else
 
7336
  $as_echo "$as_me: failed program was:" >&5
 
7337
sed 's/^/| /' conftest.$ac_ext >&5
 
7338
 
 
7339
        eval "$as_ac_Header=no"
 
7340
fi
 
7341
 
 
7342
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7343
fi
 
7344
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
7345
                 $as_echo "$as_val"'`
 
7346
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
7347
$as_echo "$ac_res" >&6; }
 
7348
as_val=`eval 'as_val=${'$as_ac_Header'}
 
7349
                 $as_echo "$as_val"'`
 
7350
   if test "x$as_val" = x""yes; then
 
7351
  cat >>confdefs.h <<_ACEOF
 
7352
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7353
_ACEOF
 
7354
 
 
7355
fi
 
7356
 
 
7357
done
 
7358
 
 
7359
 
 
7360
 
 
7361
# Set options
 
7362
 
 
7363
 
 
7364
 
 
7365
        enable_dlopen=no
 
7366
 
 
7367
 
 
7368
 
 
7369
            # Check whether --enable-shared was given.
 
7370
if test "${enable_shared+set}" = set; then
 
7371
  enableval=$enable_shared; p=${PACKAGE-default}
 
7372
    case $enableval in
 
7373
    yes) enable_shared=yes ;;
 
7374
    no) enable_shared=no ;;
 
7375
    *)
 
7376
      enable_shared=no
 
7377
      # Look at the argument we got.  We use all the common list separators.
 
7378
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7379
      for pkg in $enableval; do
 
7380
        IFS="$lt_save_ifs"
 
7381
        if test "X$pkg" = "X$p"; then
 
7382
          enable_shared=yes
 
7383
        fi
 
7384
      done
 
7385
      IFS="$lt_save_ifs"
 
7386
      ;;
 
7387
    esac
 
7388
else
 
7389
  enable_shared=yes
 
7390
fi
 
7391
 
 
7392
 
 
7393
 
 
7394
 
 
7395
 
 
7396
 
 
7397
 
 
7398
 
 
7399
 
 
7400
  # Check whether --enable-static was given.
 
7401
if test "${enable_static+set}" = set; then
 
7402
  enableval=$enable_static; p=${PACKAGE-default}
 
7403
    case $enableval in
 
7404
    yes) enable_static=yes ;;
 
7405
    no) enable_static=no ;;
 
7406
    *)
 
7407
     enable_static=no
 
7408
      # Look at the argument we got.  We use all the common list separators.
 
7409
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7410
      for pkg in $enableval; do
 
7411
        IFS="$lt_save_ifs"
 
7412
        if test "X$pkg" = "X$p"; then
 
7413
          enable_static=yes
 
7414
        fi
 
7415
      done
 
7416
      IFS="$lt_save_ifs"
 
7417
      ;;
 
7418
    esac
 
7419
else
 
7420
  enable_static=yes
 
7421
fi
 
7422
 
 
7423
 
 
7424
 
 
7425
 
 
7426
 
 
7427
 
 
7428
 
 
7429
 
7806
7430
 
7807
7431
 
7808
7432
# Check whether --with-pic was given.
7812
7436
  pic_mode=default
7813
7437
fi
7814
7438
 
 
7439
 
7815
7440
test -z "$pic_mode" && pic_mode=default
7816
7441
 
 
7442
 
 
7443
 
 
7444
 
 
7445
 
 
7446
 
 
7447
 
 
7448
  # Check whether --enable-fast-install was given.
 
7449
if test "${enable_fast_install+set}" = set; then
 
7450
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
7451
    case $enableval in
 
7452
    yes) enable_fast_install=yes ;;
 
7453
    no) enable_fast_install=no ;;
 
7454
    *)
 
7455
      enable_fast_install=no
 
7456
      # Look at the argument we got.  We use all the common list separators.
 
7457
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7458
      for pkg in $enableval; do
 
7459
        IFS="$lt_save_ifs"
 
7460
        if test "X$pkg" = "X$p"; then
 
7461
          enable_fast_install=yes
 
7462
        fi
 
7463
      done
 
7464
      IFS="$lt_save_ifs"
 
7465
      ;;
 
7466
    esac
 
7467
else
 
7468
  enable_fast_install=yes
 
7469
fi
 
7470
 
 
7471
 
 
7472
 
 
7473
 
 
7474
 
 
7475
 
 
7476
 
 
7477
 
 
7478
 
 
7479
 
 
7480
 
 
7481
# This can be used to rebuild libtool when needed
 
7482
LIBTOOL_DEPS="$ltmain"
 
7483
 
 
7484
# Always use our own libtool.
 
7485
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
7486
 
 
7487
 
 
7488
 
 
7489
 
 
7490
 
 
7491
 
 
7492
 
 
7493
 
 
7494
 
 
7495
 
 
7496
 
 
7497
 
 
7498
 
 
7499
 
 
7500
 
 
7501
 
 
7502
 
 
7503
 
 
7504
 
 
7505
 
 
7506
 
 
7507
 
 
7508
 
 
7509
 
 
7510
 
 
7511
test -z "$LN_S" && LN_S="ln -s"
 
7512
 
 
7513
 
 
7514
 
 
7515
 
 
7516
 
 
7517
 
 
7518
 
 
7519
 
 
7520
 
 
7521
 
 
7522
 
 
7523
 
 
7524
 
 
7525
 
 
7526
if test -n "${ZSH_VERSION+set}" ; then
 
7527
   setopt NO_GLOB_SUBST
 
7528
fi
 
7529
 
 
7530
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
 
7531
$as_echo_n "checking for objdir... " >&6; }
 
7532
if test "${lt_cv_objdir+set}" = set; then
 
7533
  $as_echo_n "(cached) " >&6
 
7534
else
 
7535
  rm -f .libs 2>/dev/null
 
7536
mkdir .libs 2>/dev/null
 
7537
if test -d .libs; then
 
7538
  lt_cv_objdir=.libs
 
7539
else
 
7540
  # MS-DOS does not allow filenames that begin with a dot.
 
7541
  lt_cv_objdir=_libs
 
7542
fi
 
7543
rmdir .libs 2>/dev/null
 
7544
fi
 
7545
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
7546
$as_echo "$lt_cv_objdir" >&6; }
 
7547
objdir=$lt_cv_objdir
 
7548
 
 
7549
 
 
7550
 
 
7551
 
 
7552
 
 
7553
cat >>confdefs.h <<_ACEOF
 
7554
#define LT_OBJDIR "$lt_cv_objdir/"
 
7555
_ACEOF
 
7556
 
 
7557
 
 
7558
 
 
7559
 
 
7560
 
 
7561
 
 
7562
 
 
7563
 
 
7564
 
 
7565
 
 
7566
 
 
7567
 
 
7568
 
 
7569
 
 
7570
 
 
7571
 
 
7572
 
 
7573
case $host_os in
 
7574
aix3*)
 
7575
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
7576
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
7577
  # vanish in a puff of smoke.
 
7578
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
7579
    COLLECT_NAMES=
 
7580
    export COLLECT_NAMES
 
7581
  fi
 
7582
  ;;
 
7583
esac
 
7584
 
 
7585
# Sed substitution that helps us do robust quoting.  It backslashifies
 
7586
# metacharacters that are still active within double-quoted strings.
 
7587
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
7588
 
 
7589
# Same as above, but do not quote variable references.
 
7590
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
7591
 
 
7592
# Sed substitution to delay expansion of an escaped shell variable in a
 
7593
# double_quote_subst'ed string.
 
7594
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
7595
 
 
7596
# Sed substitution to delay expansion of an escaped single quote.
 
7597
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
7598
 
 
7599
# Sed substitution to avoid accidental globbing in evaled expressions
 
7600
no_glob_subst='s/\*/\\\*/g'
 
7601
 
 
7602
# Global variables:
 
7603
ofile=libtool
 
7604
can_build_shared=yes
 
7605
 
 
7606
# All known linkers require a `.a' archive for static linking (except MSVC,
 
7607
# which needs '.lib').
 
7608
libext=a
 
7609
 
 
7610
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
7611
 
 
7612
old_CC="$CC"
 
7613
old_CFLAGS="$CFLAGS"
 
7614
 
 
7615
# Set sane defaults for various variables
 
7616
test -z "$CC" && CC=cc
 
7617
test -z "$LTCC" && LTCC=$CC
 
7618
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7619
test -z "$LD" && LD=ld
 
7620
test -z "$ac_objext" && ac_objext=o
 
7621
 
 
7622
for cc_temp in $compiler""; do
 
7623
  case $cc_temp in
 
7624
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7625
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7626
    \-*) ;;
 
7627
    *) break;;
 
7628
  esac
 
7629
done
 
7630
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7631
 
 
7632
 
 
7633
# Only perform the check for file, if the check method requires it
 
7634
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7635
case $deplibs_check_method in
 
7636
file_magic*)
 
7637
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7638
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7639
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
7640
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7641
  $as_echo_n "(cached) " >&6
 
7642
else
 
7643
  case $MAGIC_CMD in
 
7644
[\\/*] |  ?:[\\/]*)
 
7645
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7646
  ;;
 
7647
*)
 
7648
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7649
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7650
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7651
  for ac_dir in $ac_dummy; do
 
7652
    IFS="$lt_save_ifs"
 
7653
    test -z "$ac_dir" && ac_dir=.
 
7654
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7655
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7656
      if test -n "$file_magic_test_file"; then
 
7657
        case $deplibs_check_method in
 
7658
        "file_magic "*)
 
7659
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7660
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7661
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7662
            $EGREP "$file_magic_regex" > /dev/null; then
 
7663
            :
 
7664
          else
 
7665
            cat <<_LT_EOF 1>&2
 
7666
 
 
7667
*** Warning: the command libtool uses to detect shared libraries,
 
7668
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7669
*** The result is that libtool may fail to recognize shared libraries
 
7670
*** as such.  This will affect the creation of libtool libraries that
 
7671
*** depend on shared libraries, but programs linked with such libtool
 
7672
*** libraries will work regardless of this problem.  Nevertheless, you
 
7673
*** may want to report the problem to your system manager and/or to
 
7674
*** bug-libtool@gnu.org
 
7675
 
 
7676
_LT_EOF
 
7677
          fi ;;
 
7678
        esac
 
7679
      fi
 
7680
      break
 
7681
    fi
 
7682
  done
 
7683
  IFS="$lt_save_ifs"
 
7684
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7685
  ;;
 
7686
esac
 
7687
fi
 
7688
 
 
7689
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7690
if test -n "$MAGIC_CMD"; then
 
7691
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7692
$as_echo "$MAGIC_CMD" >&6; }
 
7693
else
 
7694
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7695
$as_echo "no" >&6; }
 
7696
fi
 
7697
 
 
7698
 
 
7699
 
 
7700
 
 
7701
 
 
7702
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7703
  if test -n "$ac_tool_prefix"; then
 
7704
    { $as_echo "$as_me:$LINENO: checking for file" >&5
 
7705
$as_echo_n "checking for file... " >&6; }
 
7706
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7707
  $as_echo_n "(cached) " >&6
 
7708
else
 
7709
  case $MAGIC_CMD in
 
7710
[\\/*] |  ?:[\\/]*)
 
7711
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7712
  ;;
 
7713
*)
 
7714
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7715
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7716
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7717
  for ac_dir in $ac_dummy; do
 
7718
    IFS="$lt_save_ifs"
 
7719
    test -z "$ac_dir" && ac_dir=.
 
7720
    if test -f $ac_dir/file; then
 
7721
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7722
      if test -n "$file_magic_test_file"; then
 
7723
        case $deplibs_check_method in
 
7724
        "file_magic "*)
 
7725
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7726
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7727
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7728
            $EGREP "$file_magic_regex" > /dev/null; then
 
7729
            :
 
7730
          else
 
7731
            cat <<_LT_EOF 1>&2
 
7732
 
 
7733
*** Warning: the command libtool uses to detect shared libraries,
 
7734
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7735
*** The result is that libtool may fail to recognize shared libraries
 
7736
*** as such.  This will affect the creation of libtool libraries that
 
7737
*** depend on shared libraries, but programs linked with such libtool
 
7738
*** libraries will work regardless of this problem.  Nevertheless, you
 
7739
*** may want to report the problem to your system manager and/or to
 
7740
*** bug-libtool@gnu.org
 
7741
 
 
7742
_LT_EOF
 
7743
          fi ;;
 
7744
        esac
 
7745
      fi
 
7746
      break
 
7747
    fi
 
7748
  done
 
7749
  IFS="$lt_save_ifs"
 
7750
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7751
  ;;
 
7752
esac
 
7753
fi
 
7754
 
 
7755
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7756
if test -n "$MAGIC_CMD"; then
 
7757
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7758
$as_echo "$MAGIC_CMD" >&6; }
 
7759
else
 
7760
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7761
$as_echo "no" >&6; }
 
7762
fi
 
7763
 
 
7764
 
 
7765
  else
 
7766
    MAGIC_CMD=:
 
7767
  fi
 
7768
fi
 
7769
 
 
7770
  fi
 
7771
  ;;
 
7772
esac
 
7773
 
7817
7774
# Use C for the default configuration in the libtool script
7818
 
tagname=
 
7775
 
7819
7776
lt_save_CC="$CC"
7820
7777
ac_ext=c
7821
7778
ac_cpp='$CPP $CPPFLAGS'
7838
7795
lt_simple_link_test_code='int main(){return(0);}'
7839
7796
 
7840
7797
 
 
7798
 
 
7799
 
 
7800
 
 
7801
 
 
7802
 
7841
7803
# If no C compiler was specified, use CC.
7842
7804
LTCC=${LTCC-"$CC"}
7843
7805
 
7847
7809
# Allow CC to be a program name with arguments.
7848
7810
compiler=$CC
7849
7811
 
 
7812
# Save the default compiler, since it gets overwritten when the other
 
7813
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
7814
compiler_DEFAULT=$CC
7850
7815
 
7851
7816
# save warnings/boilerplate of simple test code
7852
7817
ac_outfile=conftest.$ac_objext
7853
7818
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7854
7819
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7855
7820
_lt_compiler_boilerplate=`cat conftest.err`
7856
 
$rm conftest*
 
7821
$RM conftest*
7857
7822
 
7858
7823
ac_outfile=conftest.$ac_objext
7859
7824
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7860
7825
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7861
7826
_lt_linker_boilerplate=`cat conftest.err`
7862
 
$rm -r conftest*
7863
 
 
7864
 
 
 
7827
$RM -r conftest*
 
7828
 
 
7829
 
 
7830
## CAVEAT EMPTOR:
 
7831
## There is no encapsulation within the following macros, do not change
 
7832
## the running order or otherwise move them around unless you know exactly
 
7833
## what you are doing...
 
7834
if test -n "$compiler"; then
7865
7835
 
7866
7836
lt_prog_compiler_no_builtin_flag=
7867
7837
 
7868
7838
if test "$GCC" = yes; then
7869
7839
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7870
7840
 
7871
 
 
7872
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7841
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7873
7842
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7874
7843
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7875
7844
  $as_echo_n "(cached) " >&6
7876
7845
else
7877
7846
  lt_cv_prog_compiler_rtti_exceptions=no
7878
 
  ac_outfile=conftest.$ac_objext
 
7847
   ac_outfile=conftest.$ac_objext
7879
7848
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7880
7849
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7881
7850
   # Insert the option either (1) after the last *FLAGS variable, or
7887
7856
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7888
7857
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7889
7858
   -e 's:$: $lt_compiler_flag:'`
7890
 
   (eval echo "\"\$as_me:7890: $lt_compile\"" >&5)
 
7859
   (eval echo "\"\$as_me:7859: $lt_compile\"" >&5)
7891
7860
   (eval "$lt_compile" 2>conftest.err)
7892
7861
   ac_status=$?
7893
7862
   cat conftest.err >&5
7894
 
   echo "$as_me:7894: \$? = $ac_status" >&5
 
7863
   echo "$as_me:7863: \$? = $ac_status" >&5
7895
7864
   if (exit $ac_status) && test -s "$ac_outfile"; then
7896
7865
     # The compiler can only warn and ignore the option if not recognized
7897
7866
     # So say no if there are warnings other than the usual output.
7898
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7867
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7899
7868
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7900
7869
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7901
7870
       lt_cv_prog_compiler_rtti_exceptions=yes
7902
7871
     fi
7903
7872
   fi
7904
 
   $rm conftest*
 
7873
   $RM conftest*
7905
7874
 
7906
7875
fi
7907
7876
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7915
7884
 
7916
7885
fi
7917
7886
 
7918
 
lt_prog_compiler_wl=
 
7887
 
 
7888
 
 
7889
 
 
7890
 
 
7891
 
 
7892
  lt_prog_compiler_wl=
7919
7893
lt_prog_compiler_pic=
7920
7894
lt_prog_compiler_static=
7921
7895
 
7936
7910
      ;;
7937
7911
 
7938
7912
    amigaos*)
7939
 
      # FIXME: we need at least 68020 code to build shared libraries, but
7940
 
      # adding the `-m68020' flag to GCC prevents building anything better,
7941
 
      # like `-m68040'.
7942
 
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7913
      case $host_cpu in
 
7914
      powerpc)
 
7915
            # see comment about AmigaOS4 .so support
 
7916
            lt_prog_compiler_pic='-fPIC'
 
7917
        ;;
 
7918
      m68k)
 
7919
            # FIXME: we need at least 68020 code to build shared libraries, but
 
7920
            # adding the `-m68020' flag to GCC prevents building anything better,
 
7921
            # like `-m68040'.
 
7922
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7923
        ;;
 
7924
      esac
7943
7925
      ;;
7944
7926
 
7945
7927
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7946
7928
      # PIC is the default for these OSes.
7947
7929
      ;;
7948
7930
 
7949
 
    mingw* | cygwin* | pw32* | os2*)
 
7931
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7950
7932
      # This hack is so that the source file can tell whether it is being
7951
7933
      # built for inclusion in a dll (and should export symbols for example).
7952
7934
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7960
7942
      lt_prog_compiler_pic='-fno-common'
7961
7943
      ;;
7962
7944
 
 
7945
    hpux*)
 
7946
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
7947
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
7948
      # sets the default TLS model and affects inlining.
 
7949
      case $host_cpu in
 
7950
      hppa*64*)
 
7951
        # +Z the default
 
7952
        ;;
 
7953
      *)
 
7954
        lt_prog_compiler_pic='-fPIC'
 
7955
        ;;
 
7956
      esac
 
7957
      ;;
 
7958
 
7963
7959
    interix[3-9]*)
7964
7960
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7965
7961
      # Instead, we relocate shared libraries at runtime.
7972
7968
      enable_shared=no
7973
7969
      ;;
7974
7970
 
 
7971
    *nto* | *qnx*)
 
7972
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
7973
      # it will coredump.
 
7974
      lt_prog_compiler_pic='-fPIC -shared'
 
7975
      ;;
 
7976
 
7975
7977
    sysv4*MP*)
7976
7978
      if test -d /usr/nec; then
7977
7979
        lt_prog_compiler_pic=-Kconform_pic
7978
7980
      fi
7979
7981
      ;;
7980
7982
 
7981
 
    hpux*)
7982
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7983
 
      # not for PA HP-UX.
7984
 
      case $host_cpu in
7985
 
      hppa*64*|ia64*)
7986
 
        # +Z the default
7987
 
        ;;
7988
 
      *)
7989
 
        lt_prog_compiler_pic='-fPIC'
7990
 
        ;;
7991
 
      esac
7992
 
      ;;
7993
 
 
7994
7983
    *)
7995
7984
      lt_prog_compiler_pic='-fPIC'
7996
7985
      ;;
8007
7996
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8008
7997
      fi
8009
7998
      ;;
8010
 
      darwin*)
8011
 
        # PIC is the default on this platform
8012
 
        # Common symbols not allowed in MH_DYLIB files
8013
 
       case $cc_basename in
8014
 
         xlc*)
8015
 
         lt_prog_compiler_pic='-qnocommon'
8016
 
         lt_prog_compiler_wl='-Wl,'
8017
 
         ;;
8018
 
       esac
8019
 
       ;;
8020
7999
 
8021
 
    mingw* | cygwin* | pw32* | os2*)
 
8000
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8022
8001
      # This hack is so that the source file can tell whether it is being
8023
8002
      # built for inclusion in a dll (and should export symbols for example).
8024
8003
      lt_prog_compiler_pic='-DDLL_EXPORT'
8046
8025
      lt_prog_compiler_static='-non_shared'
8047
8026
      ;;
8048
8027
 
8049
 
    newsos6)
8050
 
      lt_prog_compiler_pic='-KPIC'
8051
 
      lt_prog_compiler_static='-Bstatic'
8052
 
      ;;
8053
 
 
8054
8028
    linux* | k*bsd*-gnu)
8055
8029
      case $cc_basename in
8056
 
      icc* | ecc*)
 
8030
      # old Intel for x86_64 which still supported -KPIC.
 
8031
      ecc*)
8057
8032
        lt_prog_compiler_wl='-Wl,'
8058
8033
        lt_prog_compiler_pic='-KPIC'
8059
8034
        lt_prog_compiler_static='-static'
8060
8035
        ;;
 
8036
      # icc used to be incompatible with GCC.
 
8037
      # ICC 10 doesn't accept -KPIC any more.
 
8038
      icc* | ifort*)
 
8039
        lt_prog_compiler_wl='-Wl,'
 
8040
        lt_prog_compiler_pic='-fPIC'
 
8041
        lt_prog_compiler_static='-static'
 
8042
        ;;
 
8043
      # Lahey Fortran 8.1.
 
8044
      lf95*)
 
8045
        lt_prog_compiler_wl='-Wl,'
 
8046
        lt_prog_compiler_pic='--shared'
 
8047
        lt_prog_compiler_static='--static'
 
8048
        ;;
8061
8049
      pgcc* | pgf77* | pgf90* | pgf95*)
8062
8050
        # Portland Group compilers (*not* the Pentium gcc compiler,
8063
8051
        # which looks to be a dead project)
8070
8058
        # All Alpha code is PIC.
8071
8059
        lt_prog_compiler_static='-non_shared'
8072
8060
        ;;
 
8061
      xl*)
 
8062
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
8063
        lt_prog_compiler_wl='-Wl,'
 
8064
        lt_prog_compiler_pic='-qpic'
 
8065
        lt_prog_compiler_static='-qstaticlink'
 
8066
        ;;
8073
8067
      *)
8074
 
        case `$CC -V 2>&1 | sed 5q` in
 
8068
        case `$CC -V 2>&1 | sed 5q` in
8075
8069
        *Sun\ C*)
8076
8070
          # Sun C 5.9
8077
8071
          lt_prog_compiler_pic='-KPIC'
8089
8083
      esac
8090
8084
      ;;
8091
8085
 
 
8086
    newsos6)
 
8087
      lt_prog_compiler_pic='-KPIC'
 
8088
      lt_prog_compiler_static='-Bstatic'
 
8089
      ;;
 
8090
 
 
8091
    *nto* | *qnx*)
 
8092
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8093
      # it will coredump.
 
8094
      lt_prog_compiler_pic='-fPIC -shared'
 
8095
      ;;
 
8096
 
8092
8097
    osf3* | osf4* | osf5*)
8093
8098
      lt_prog_compiler_wl='-Wl,'
8094
8099
      # All OSF/1 code is PIC.
8151
8156
    esac
8152
8157
  fi
8153
8158
 
 
8159
case $host_os in
 
8160
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8161
  *djgpp*)
 
8162
    lt_prog_compiler_pic=
 
8163
    ;;
 
8164
  *)
 
8165
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8166
    ;;
 
8167
esac
8154
8168
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8155
8169
$as_echo "$lt_prog_compiler_pic" >&6; }
8156
8170
 
 
8171
 
 
8172
 
 
8173
 
 
8174
 
 
8175
 
8157
8176
#
8158
8177
# Check to make sure the PIC flag actually works.
8159
8178
#
8160
8179
if test -n "$lt_prog_compiler_pic"; then
8161
 
 
8162
 
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8180
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8163
8181
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8164
8182
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8165
8183
  $as_echo_n "(cached) " >&6
8166
8184
else
8167
8185
  lt_cv_prog_compiler_pic_works=no
8168
 
  ac_outfile=conftest.$ac_objext
 
8186
   ac_outfile=conftest.$ac_objext
8169
8187
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8170
8188
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8171
8189
   # Insert the option either (1) after the last *FLAGS variable, or
8177
8195
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8178
8196
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8179
8197
   -e 's:$: $lt_compiler_flag:'`
8180
 
   (eval echo "\"\$as_me:8180: $lt_compile\"" >&5)
 
8198
   (eval echo "\"\$as_me:8198: $lt_compile\"" >&5)
8181
8199
   (eval "$lt_compile" 2>conftest.err)
8182
8200
   ac_status=$?
8183
8201
   cat conftest.err >&5
8184
 
   echo "$as_me:8184: \$? = $ac_status" >&5
 
8202
   echo "$as_me:8202: \$? = $ac_status" >&5
8185
8203
   if (exit $ac_status) && test -s "$ac_outfile"; then
8186
8204
     # The compiler can only warn and ignore the option if not recognized
8187
8205
     # So say no if there are warnings other than the usual output.
8188
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8206
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8189
8207
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8190
8208
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8191
8209
       lt_cv_prog_compiler_pic_works=yes
8192
8210
     fi
8193
8211
   fi
8194
 
   $rm conftest*
 
8212
   $RM conftest*
8195
8213
 
8196
8214
fi
8197
8215
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8208
8226
fi
8209
8227
 
8210
8228
fi
8211
 
case $host_os in
8212
 
  # For platforms which do not support PIC, -DPIC is meaningless:
8213
 
  *djgpp*)
8214
 
    lt_prog_compiler_pic=
8215
 
    ;;
8216
 
  *)
8217
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8218
 
    ;;
8219
 
esac
 
8229
 
 
8230
 
 
8231
 
 
8232
 
 
8233
 
8220
8234
 
8221
8235
#
8222
8236
# Check to make sure the static flag actually works.
8237
8251
     if test -s conftest.err; then
8238
8252
       # Append any errors to the config.log.
8239
8253
       cat conftest.err 1>&5
8240
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
8254
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8241
8255
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8242
8256
       if diff conftest.exp conftest.er2 >/dev/null; then
8243
8257
         lt_cv_prog_compiler_static_works=yes
8246
8260
       lt_cv_prog_compiler_static_works=yes
8247
8261
     fi
8248
8262
   fi
8249
 
   $rm -r conftest*
 
8263
   $RM -r conftest*
8250
8264
   LDFLAGS="$save_LDFLAGS"
8251
8265
 
8252
8266
fi
8260
8274
fi
8261
8275
 
8262
8276
 
8263
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8264
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8265
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8266
 
  $as_echo_n "(cached) " >&6
8267
 
else
8268
 
  lt_cv_prog_compiler_c_o=no
8269
 
   $rm -r conftest 2>/dev/null
8270
 
   mkdir conftest
8271
 
   cd conftest
8272
 
   mkdir out
8273
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8274
 
 
8275
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8276
 
   # Insert the option either (1) after the last *FLAGS variable, or
8277
 
   # (2) before a word containing "conftest.", or (3) at the end.
8278
 
   # Note that $ac_compile itself does not contain backslashes and begins
8279
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8280
 
   lt_compile=`echo "$ac_compile" | $SED \
8281
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8282
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8283
 
   -e 's:$: $lt_compiler_flag:'`
8284
 
   (eval echo "\"\$as_me:8284: $lt_compile\"" >&5)
8285
 
   (eval "$lt_compile" 2>out/conftest.err)
8286
 
   ac_status=$?
8287
 
   cat out/conftest.err >&5
8288
 
   echo "$as_me:8288: \$? = $ac_status" >&5
8289
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8290
 
   then
8291
 
     # The compiler can only warn and ignore the option if not recognized
8292
 
     # So say no if there are warnings
8293
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8294
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8295
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8296
 
       lt_cv_prog_compiler_c_o=yes
8297
 
     fi
8298
 
   fi
8299
 
   chmod u+w . 2>&5
8300
 
   $rm conftest*
8301
 
   # SGI C++ compiler will create directory out/ii_files/ for
8302
 
   # template instantiation
8303
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8304
 
   $rm out/* && rmdir out
8305
 
   cd ..
8306
 
   rmdir conftest
8307
 
   $rm conftest*
8308
 
 
8309
 
fi
8310
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8311
 
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8277
 
 
8278
 
 
8279
 
 
8280
 
 
8281
 
 
8282
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8283
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8284
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
8285
  $as_echo_n "(cached) " >&6
 
8286
else
 
8287
  lt_cv_prog_compiler_c_o=no
 
8288
   $RM -r conftest 2>/dev/null
 
8289
   mkdir conftest
 
8290
   cd conftest
 
8291
   mkdir out
 
8292
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8293
 
 
8294
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8295
   # Insert the option either (1) after the last *FLAGS variable, or
 
8296
   # (2) before a word containing "conftest.", or (3) at the end.
 
8297
   # Note that $ac_compile itself does not contain backslashes and begins
 
8298
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8299
   lt_compile=`echo "$ac_compile" | $SED \
 
8300
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8301
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8302
   -e 's:$: $lt_compiler_flag:'`
 
8303
   (eval echo "\"\$as_me:8303: $lt_compile\"" >&5)
 
8304
   (eval "$lt_compile" 2>out/conftest.err)
 
8305
   ac_status=$?
 
8306
   cat out/conftest.err >&5
 
8307
   echo "$as_me:8307: \$? = $ac_status" >&5
 
8308
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8309
   then
 
8310
     # The compiler can only warn and ignore the option if not recognized
 
8311
     # So say no if there are warnings
 
8312
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8313
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8314
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8315
       lt_cv_prog_compiler_c_o=yes
 
8316
     fi
 
8317
   fi
 
8318
   chmod u+w . 2>&5
 
8319
   $RM conftest*
 
8320
   # SGI C++ compiler will create directory out/ii_files/ for
 
8321
   # template instantiation
 
8322
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8323
   $RM out/* && rmdir out
 
8324
   cd ..
 
8325
   $RM -r conftest
 
8326
   $RM conftest*
 
8327
 
 
8328
fi
 
8329
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8330
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8331
 
 
8332
 
 
8333
 
 
8334
 
 
8335
 
 
8336
 
 
8337
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8338
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8339
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
8340
  $as_echo_n "(cached) " >&6
 
8341
else
 
8342
  lt_cv_prog_compiler_c_o=no
 
8343
   $RM -r conftest 2>/dev/null
 
8344
   mkdir conftest
 
8345
   cd conftest
 
8346
   mkdir out
 
8347
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8348
 
 
8349
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8350
   # Insert the option either (1) after the last *FLAGS variable, or
 
8351
   # (2) before a word containing "conftest.", or (3) at the end.
 
8352
   # Note that $ac_compile itself does not contain backslashes and begins
 
8353
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8354
   lt_compile=`echo "$ac_compile" | $SED \
 
8355
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8356
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8357
   -e 's:$: $lt_compiler_flag:'`
 
8358
   (eval echo "\"\$as_me:8358: $lt_compile\"" >&5)
 
8359
   (eval "$lt_compile" 2>out/conftest.err)
 
8360
   ac_status=$?
 
8361
   cat out/conftest.err >&5
 
8362
   echo "$as_me:8362: \$? = $ac_status" >&5
 
8363
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8364
   then
 
8365
     # The compiler can only warn and ignore the option if not recognized
 
8366
     # So say no if there are warnings
 
8367
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8368
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8369
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8370
       lt_cv_prog_compiler_c_o=yes
 
8371
     fi
 
8372
   fi
 
8373
   chmod u+w . 2>&5
 
8374
   $RM conftest*
 
8375
   # SGI C++ compiler will create directory out/ii_files/ for
 
8376
   # template instantiation
 
8377
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8378
   $RM out/* && rmdir out
 
8379
   cd ..
 
8380
   $RM -r conftest
 
8381
   $RM conftest*
 
8382
 
 
8383
fi
 
8384
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8385
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8386
 
 
8387
 
8312
8388
 
8313
8389
 
8314
8390
hard_links="nottested"
8317
8393
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8318
8394
$as_echo_n "checking if we can lock with hard links... " >&6; }
8319
8395
  hard_links=yes
8320
 
  $rm conftest*
 
8396
  $RM conftest*
8321
8397
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8322
8398
  touch conftest.a
8323
8399
  ln conftest.a conftest.b 2>&5 || hard_links=no
8333
8409
  need_locks=no
8334
8410
fi
8335
8411
 
8336
 
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8412
 
 
8413
 
 
8414
 
 
8415
 
 
8416
 
 
8417
  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8337
8418
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8338
8419
 
8339
8420
  runpath_var=
8340
8421
  allow_undefined_flag=
8341
 
  enable_shared_with_static_runtimes=no
 
8422
  always_export_symbols=no
8342
8423
  archive_cmds=
8343
8424
  archive_expsym_cmds=
8344
 
  old_archive_From_new_cmds=
8345
 
  old_archive_from_expsyms_cmds=
 
8425
  compiler_needs_object=no
 
8426
  enable_shared_with_static_runtimes=no
8346
8427
  export_dynamic_flag_spec=
8347
 
  whole_archive_flag_spec=
8348
 
  thread_safe_flag_spec=
 
8428
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8429
  hardcode_automatic=no
 
8430
  hardcode_direct=no
 
8431
  hardcode_direct_absolute=no
8349
8432
  hardcode_libdir_flag_spec=
8350
8433
  hardcode_libdir_flag_spec_ld=
8351
8434
  hardcode_libdir_separator=
8352
 
  hardcode_direct=no
8353
8435
  hardcode_minus_L=no
8354
8436
  hardcode_shlibpath_var=unsupported
 
8437
  inherit_rpath=no
8355
8438
  link_all_deplibs=unknown
8356
 
  hardcode_automatic=no
8357
8439
  module_cmds=
8358
8440
  module_expsym_cmds=
8359
 
  always_export_symbols=no
8360
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8441
  old_archive_from_new_cmds=
 
8442
  old_archive_from_expsyms_cmds=
 
8443
  thread_safe_flag_spec=
 
8444
  whole_archive_flag_spec=
8361
8445
  # include_expsyms should be a list of space-separated symbols to be *always*
8362
8446
  # included in the symbol list
8363
8447
  include_expsyms=
8373
8457
  # preloaded symbol tables.
8374
8458
  # Exclude shared library initialization/finalization symbols.
8375
8459
  extract_expsyms_cmds=
8376
 
  # Just being paranoid about ensuring that cc_basename is set.
8377
 
  for cc_temp in $compiler""; do
8378
 
  case $cc_temp in
8379
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8380
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8381
 
    \-*) ;;
8382
 
    *) break;;
8383
 
  esac
8384
 
done
8385
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8386
8460
 
8387
8461
  case $host_os in
8388
 
  cygwin* | mingw* | pw32*)
 
8462
  cygwin* | mingw* | pw32* | cegcc*)
8389
8463
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8390
8464
    # When not using gcc, we currently assume that we are using
8391
8465
    # Microsoft Visual C++.
8411
8485
    # are reset later if shared libraries are not supported. Putting them
8412
8486
    # here allows them to be overridden if necessary.
8413
8487
    runpath_var=LD_RUN_PATH
8414
 
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
8488
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8415
8489
    export_dynamic_flag_spec='${wl}--export-dynamic'
8416
8490
    # ancient GNU ld didn't support --whole-archive et. al.
8417
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8418
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8419
 
      else
8420
 
        whole_archive_flag_spec=
 
8491
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
8492
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8493
    else
 
8494
      whole_archive_flag_spec=
8421
8495
    fi
8422
8496
    supports_anon_versioning=no
8423
 
    case `$LD -v 2>/dev/null` in
 
8497
    case `$LD -v 2>&1` in
8424
8498
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8425
8499
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8426
8500
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8434
8508
      # On AIX/PPC, the GNU linker is very broken
8435
8509
      if test "$host_cpu" != ia64; then
8436
8510
        ld_shlibs=no
8437
 
        cat <<EOF 1>&2
 
8511
        cat <<_LT_EOF 1>&2
8438
8512
 
8439
8513
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8440
8514
*** to be unable to reliably create shared libraries on AIX.
8442
8516
*** really care for shared libraries, you may want to modify your PATH
8443
8517
*** so that a non-GNU linker is found, and then restart.
8444
8518
 
8445
 
EOF
 
8519
_LT_EOF
8446
8520
      fi
8447
8521
      ;;
8448
8522
 
8449
8523
    amigaos*)
8450
 
      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8451
 
      hardcode_libdir_flag_spec='-L$libdir'
8452
 
      hardcode_minus_L=yes
8453
 
 
8454
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8455
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
8456
 
      # to version 4, is to share data among multiple programs linked
8457
 
      # with the same dynamic library.  Since this doesn't match the
8458
 
      # behavior of shared libraries on other platforms, we can't use
8459
 
      # them.
8460
 
      ld_shlibs=no
 
8524
      case $host_cpu in
 
8525
      powerpc)
 
8526
            # see comment about AmigaOS4 .so support
 
8527
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8528
            archive_expsym_cmds=''
 
8529
        ;;
 
8530
      m68k)
 
8531
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
8532
            hardcode_libdir_flag_spec='-L$libdir'
 
8533
            hardcode_minus_L=yes
 
8534
        ;;
 
8535
      esac
8461
8536
      ;;
8462
8537
 
8463
8538
    beos*)
8464
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8539
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8465
8540
        allow_undefined_flag=unsupported
8466
8541
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8467
8542
        # support --undefined.  This deserves some investigation.  FIXME
8471
8546
      fi
8472
8547
      ;;
8473
8548
 
8474
 
    cygwin* | mingw* | pw32*)
8475
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8549
    cygwin* | mingw* | pw32* | cegcc*)
 
8550
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8476
8551
      # as there is no search path for DLLs.
8477
8552
      hardcode_libdir_flag_spec='-L$libdir'
8478
8553
      allow_undefined_flag=unsupported
8479
8554
      always_export_symbols=no
8480
8555
      enable_shared_with_static_runtimes=yes
8481
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
8556
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8482
8557
 
8483
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
8558
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8484
8559
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8485
8560
        # If the export-symbols file already is a .def file (1st line
8486
8561
        # is EXPORTS), use it as is; otherwise, prepend...
8511
8586
      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'
8512
8587
      ;;
8513
8588
 
8514
 
    gnu* | linux* | k*bsd*-gnu)
8515
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8589
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
8590
      tmp_diet=no
 
8591
      if test "$host_os" = linux-dietlibc; then
 
8592
        case $cc_basename in
 
8593
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
8594
        esac
 
8595
      fi
 
8596
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
8597
         && test "$tmp_diet" = no
 
8598
      then
8516
8599
        tmp_addflag=
 
8600
        tmp_sharedflag='-shared'
8517
8601
        case $cc_basename,$host_cpu in
8518
 
        pgcc*)                          # Portland Group C compiler
8519
 
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
8602
        pgcc*)                          # Portland Group C compiler
 
8603
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8520
8604
          tmp_addflag=' $pic_flag'
8521
8605
          ;;
8522
8606
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8523
 
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
8607
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8524
8608
          tmp_addflag=' $pic_flag -Mnomain' ;;
8525
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
8609
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8526
8610
          tmp_addflag=' -i_dynamic' ;;
8527
8611
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8528
8612
          tmp_addflag=' -i_dynamic -nofor_main' ;;
8529
8613
        ifc* | ifort*)                  # Intel Fortran compiler
8530
8614
          tmp_addflag=' -nofor_main' ;;
 
8615
        lf95*)                          # Lahey Fortran 8.1
 
8616
          whole_archive_flag_spec=
 
8617
          tmp_sharedflag='--shared' ;;
 
8618
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
 
8619
          tmp_sharedflag='-qmkshrobj'
 
8620
          tmp_addflag= ;;
8531
8621
        esac
8532
8622
        case `$CC -V 2>&1 | sed 5q` in
8533
8623
        *Sun\ C*)                       # Sun C 5.9
8534
 
          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'
 
8624
          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'
 
8625
          compiler_needs_object=yes
8535
8626
          tmp_sharedflag='-G' ;;
8536
8627
        *Sun\ F*)                       # Sun Fortran 8.3
8537
8628
          tmp_sharedflag='-G' ;;
8538
 
        *)
8539
 
          tmp_sharedflag='-shared' ;;
8540
8629
        esac
8541
8630
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8542
8631
 
8543
 
        if test $supports_anon_versioning = yes; then
8544
 
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8545
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8546
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
8547
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8548
 
        fi
 
8632
        if test "x$supports_anon_versioning" = xyes; then
 
8633
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8634
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8635
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
8636
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8637
        fi
 
8638
 
 
8639
        case $cc_basename in
 
8640
        xlf*)
 
8641
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
8642
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
8643
          hardcode_libdir_flag_spec=
 
8644
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8645
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
8646
          if test "x$supports_anon_versioning" = xyes; then
 
8647
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8648
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8649
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
8650
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
8651
          fi
 
8652
          ;;
 
8653
        esac
8549
8654
      else
8550
 
        ld_shlibs=no
 
8655
        ld_shlibs=no
8551
8656
      fi
8552
8657
      ;;
8553
8658
 
8554
8659
    netbsd*)
8555
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8660
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8556
8661
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8557
8662
        wlarc=
8558
8663
      else
8562
8667
      ;;
8563
8668
 
8564
8669
    solaris*)
8565
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
8670
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8566
8671
        ld_shlibs=no
8567
 
        cat <<EOF 1>&2
 
8672
        cat <<_LT_EOF 1>&2
8568
8673
 
8569
8674
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8570
8675
*** create shared libraries on Solaris systems.  Therefore, libtool
8573
8678
*** your PATH or compiler configuration so that the native linker is
8574
8679
*** used, and then restart.
8575
8680
 
8576
 
EOF
8577
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8681
_LT_EOF
 
8682
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8578
8683
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8579
8684
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8580
8685
      else
8598
8703
_LT_EOF
8599
8704
        ;;
8600
8705
        *)
8601
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8602
 
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8603
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8604
 
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
8706
          # For security reasons, it is highly recommended that you always
 
8707
          # use absolute paths for naming shared libraries, and exclude the
 
8708
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
8709
          # requires that you compile everything twice, which is a pain.
 
8710
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8711
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8712
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8713
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8605
8714
          else
8606
8715
            ld_shlibs=no
8607
8716
          fi
8617
8726
      ;;
8618
8727
 
8619
8728
    *)
8620
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8729
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8621
8730
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8622
8731
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8623
8732
      else
8659
8768
      else
8660
8769
        # If we're using GNU nm, then we don't want the "-C" option.
8661
8770
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8662
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8663
 
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
8771
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
8772
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8664
8773
        else
8665
 
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
8774
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8666
8775
        fi
8667
8776
        aix_use_runtimelinking=no
8668
8777
 
8671
8780
        # need to do runtime linking.
8672
8781
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8673
8782
          for ld_flag in $LDFLAGS; do
8674
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8675
 
            aix_use_runtimelinking=yes
8676
 
            break
8677
 
          fi
 
8783
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8784
            aix_use_runtimelinking=yes
 
8785
            break
 
8786
          fi
8678
8787
          done
8679
8788
          ;;
8680
8789
        esac
8691
8800
 
8692
8801
      archive_cmds=''
8693
8802
      hardcode_direct=yes
 
8803
      hardcode_direct_absolute=yes
8694
8804
      hardcode_libdir_separator=':'
8695
8805
      link_all_deplibs=yes
 
8806
      file_list_spec='${wl}-f,'
8696
8807
 
8697
8808
      if test "$GCC" = yes; then
8698
8809
        case $host_os in aix4.[012]|aix4.[012].*)
8699
8810
        # We only want to do this on AIX 4.2 and lower, the check
8700
8811
        # below for broken collect2 doesn't work under 4.3+
8701
8812
          collect2name=`${CC} -print-prog-name=collect2`
8702
 
          if test -f "$collect2name" && \
8703
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
8813
          if test -f "$collect2name" &&
 
8814
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8704
8815
          then
8705
 
          # We have reworked collect2
8706
 
          :
 
8816
          # We have reworked collect2
 
8817
          :
8707
8818
          else
8708
 
          # We have old collect2
8709
 
          hardcode_direct=unsupported
8710
 
          # It fails to find uninstalled libraries when the uninstalled
8711
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
8712
 
          # to unsupported forces relinking
8713
 
          hardcode_minus_L=yes
8714
 
          hardcode_libdir_flag_spec='-L$libdir'
8715
 
          hardcode_libdir_separator=
 
8819
          # We have old collect2
 
8820
          hardcode_direct=unsupported
 
8821
          # It fails to find uninstalled libraries when the uninstalled
 
8822
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8823
          # to unsupported forces relinking
 
8824
          hardcode_minus_L=yes
 
8825
          hardcode_libdir_flag_spec='-L$libdir'
 
8826
          hardcode_libdir_separator=
8716
8827
          fi
8717
8828
          ;;
8718
8829
        esac
8723
8834
      else
8724
8835
        # not using gcc
8725
8836
        if test "$host_cpu" = ia64; then
8726
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8727
 
        # chokes on -Wl,-G. The following line is correct:
 
8837
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8838
        # chokes on -Wl,-G. The following line is correct:
8728
8839
          shared_flag='-G'
8729
8840
        else
8730
8841
          if test "$aix_use_runtimelinking" = yes; then
8735
8846
        fi
8736
8847
      fi
8737
8848
 
 
8849
      export_dynamic_flag_spec='${wl}-bexpall'
8738
8850
      # It seems that -bexpall does not export symbols beginning with
8739
8851
      # underscore (_), so it is better to generate a list of symbols to export.
8740
8852
      always_export_symbols=yes
8742
8854
        # Warning - without using the other runtime loading flags (-brtl),
8743
8855
        # -berok will link without error, but may produce a broken library.
8744
8856
        allow_undefined_flag='-berok'
8745
 
       # Determine the default libpath from the value encoded in an empty executable.
8746
 
       cat >conftest.$ac_ext <<_ACEOF
 
8857
        # Determine the default libpath from the value encoded in an
 
8858
        # empty executable.
 
8859
        cat >conftest.$ac_ext <<_ACEOF
8747
8860
/* confdefs.h.  */
8748
8861
_ACEOF
8749
8862
cat confdefs.h >>conftest.$ac_ext
8804
8917
      conftest$ac_exeext conftest.$ac_ext
8805
8918
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8806
8919
 
8807
 
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8808
 
        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"
8809
 
       else
 
8920
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8921
        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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
8922
      else
8810
8923
        if test "$host_cpu" = ia64; then
8811
8924
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8812
8925
          allow_undefined_flag="-z nodefs"
8813
8926
          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"
8814
8927
        else
8815
 
         # Determine the default libpath from the value encoded in an empty executable.
 
8928
         # Determine the default libpath from the value encoded in an
 
8929
         # empty executable.
8816
8930
         cat >conftest.$ac_ext <<_ACEOF
8817
8931
/* confdefs.h.  */
8818
8932
_ACEOF
8889
9003
      ;;
8890
9004
 
8891
9005
    amigaos*)
8892
 
      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8893
 
      hardcode_libdir_flag_spec='-L$libdir'
8894
 
      hardcode_minus_L=yes
8895
 
      # see comment about different semantics on the GNU ld section
8896
 
      ld_shlibs=no
 
9006
      case $host_cpu in
 
9007
      powerpc)
 
9008
            # see comment about AmigaOS4 .so support
 
9009
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9010
            archive_expsym_cmds=''
 
9011
        ;;
 
9012
      m68k)
 
9013
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
9014
            hardcode_libdir_flag_spec='-L$libdir'
 
9015
            hardcode_minus_L=yes
 
9016
        ;;
 
9017
      esac
8897
9018
      ;;
8898
9019
 
8899
9020
    bsdi[45]*)
8900
9021
      export_dynamic_flag_spec=-rdynamic
8901
9022
      ;;
8902
9023
 
8903
 
    cygwin* | mingw* | pw32*)
 
9024
    cygwin* | mingw* | pw32* | cegcc*)
8904
9025
      # When not using gcc, we currently assume that we are using
8905
9026
      # Microsoft Visual C++.
8906
9027
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8912
9033
      # Tell ltmain to make .dll files, not .so files.
8913
9034
      shrext_cmds=".dll"
8914
9035
      # FIXME: Setting linknames here is a bad hack.
8915
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
9036
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8916
9037
      # The linker will automatically build a .lib file if we build a DLL.
8917
 
      old_archive_From_new_cmds='true'
 
9038
      old_archive_from_new_cmds='true'
8918
9039
      # FIXME: Should let the user specify the lib program.
8919
9040
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8920
9041
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8922
9043
      ;;
8923
9044
 
8924
9045
    darwin* | rhapsody*)
8925
 
      case $host_os in
8926
 
        rhapsody* | darwin1.[012])
8927
 
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8928
 
         ;;
8929
 
       *) # Darwin 1.3 on
8930
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8931
 
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8932
 
         else
8933
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
8934
 
             10.[012])
8935
 
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8936
 
               ;;
8937
 
             10.*)
8938
 
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8939
 
               ;;
8940
 
           esac
8941
 
         fi
8942
 
         ;;
8943
 
      esac
8944
 
      archive_cmds_need_lc=no
8945
 
      hardcode_direct=no
8946
 
      hardcode_automatic=yes
8947
 
      hardcode_shlibpath_var=unsupported
8948
 
      whole_archive_flag_spec=''
8949
 
      link_all_deplibs=yes
8950
 
    if test "$GCC" = yes ; then
8951
 
        output_verbose_link_cmd='echo'
8952
 
        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8953
 
        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8954
 
        archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8955
 
        module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8956
 
    else
8957
 
      case $cc_basename in
8958
 
        xlc*)
8959
 
         output_verbose_link_cmd='echo'
8960
 
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8961
 
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8962
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8963
 
         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}'
8964
 
          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}'
8965
 
          ;;
8966
 
       *)
8967
 
         ld_shlibs=no
8968
 
          ;;
8969
 
      esac
8970
 
    fi
 
9046
 
 
9047
 
 
9048
  archive_cmds_need_lc=no
 
9049
  hardcode_direct=no
 
9050
  hardcode_automatic=yes
 
9051
  hardcode_shlibpath_var=unsupported
 
9052
  whole_archive_flag_spec=''
 
9053
  link_all_deplibs=yes
 
9054
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
9055
  case $cc_basename in
 
9056
     ifort*) _lt_dar_can_shared=yes ;;
 
9057
     *) _lt_dar_can_shared=$GCC ;;
 
9058
  esac
 
9059
  if test "$_lt_dar_can_shared" = "yes"; then
 
9060
    output_verbose_link_cmd=echo
 
9061
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
9062
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
9063
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
9064
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
9065
 
 
9066
  else
 
9067
  ld_shlibs=no
 
9068
  fi
 
9069
 
8971
9070
      ;;
8972
9071
 
8973
9072
    dgux*)
9009
9108
 
9010
9109
    hpux9*)
9011
9110
      if test "$GCC" = yes; then
9012
 
        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
9111
        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9013
9112
      else
9014
 
        archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
9113
        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9015
9114
      fi
9016
9115
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9017
9116
      hardcode_libdir_separator=:
9031
9130
      fi
9032
9131
      if test "$with_gnu_ld" = no; then
9033
9132
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9133
        hardcode_libdir_flag_spec_ld='+b $libdir'
9034
9134
        hardcode_libdir_separator=:
9035
 
 
9036
9135
        hardcode_direct=yes
 
9136
        hardcode_direct_absolute=yes
9037
9137
        export_dynamic_flag_spec='${wl}-E'
9038
 
 
9039
9138
        # hardcode_minus_L: Not really in the search PATH,
9040
9139
        # but as the default location of the library.
9041
9140
        hardcode_minus_L=yes
9049
9148
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9050
9149
          ;;
9051
9150
        ia64*)
9052
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9151
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9053
9152
          ;;
9054
9153
        *)
9055
9154
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9074
9173
 
9075
9174
        case $host_cpu in
9076
9175
        hppa*64*|ia64*)
9077
 
          hardcode_libdir_flag_spec_ld='+b $libdir'
9078
9176
          hardcode_direct=no
9079
9177
          hardcode_shlibpath_var=no
9080
9178
          ;;
9081
9179
        *)
9082
9180
          hardcode_direct=yes
 
9181
          hardcode_direct_absolute=yes
9083
9182
          export_dynamic_flag_spec='${wl}-E'
9084
9183
 
9085
9184
          # hardcode_minus_L: Not really in the search PATH,
9092
9191
 
9093
9192
    irix5* | irix6* | nonstopux*)
9094
9193
      if test "$GCC" = yes; then
9095
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9194
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9195
        # Try to use the -exported_symbol ld option, if it does not
 
9196
        # work, assume that -exports_file does not work either and
 
9197
        # implicitly export all symbols.
 
9198
        save_LDFLAGS="$LDFLAGS"
 
9199
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
9200
        cat >conftest.$ac_ext <<_ACEOF
 
9201
int foo(void) {}
 
9202
_ACEOF
 
9203
rm -f conftest.$ac_objext conftest$ac_exeext
 
9204
if { (ac_try="$ac_link"
 
9205
case "(($ac_try" in
 
9206
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9207
  *) ac_try_echo=$ac_try;;
 
9208
esac
 
9209
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9210
$as_echo "$ac_try_echo") >&5
 
9211
  (eval "$ac_link") 2>conftest.er1
 
9212
  ac_status=$?
 
9213
  grep -v '^ *+' conftest.er1 >conftest.err
 
9214
  rm -f conftest.er1
 
9215
  cat conftest.err >&5
 
9216
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9217
  (exit $ac_status); } && {
 
9218
         test -z "$ac_c_werror_flag" ||
 
9219
         test ! -s conftest.err
 
9220
       } && test -s conftest$ac_exeext && {
 
9221
         test "$cross_compiling" = yes ||
 
9222
         $as_test_x conftest$ac_exeext
 
9223
       }; then
 
9224
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
9225
 
 
9226
else
 
9227
  $as_echo "$as_me: failed program was:" >&5
 
9228
sed 's/^/| /' conftest.$ac_ext >&5
 
9229
 
 
9230
 
 
9231
fi
 
9232
 
 
9233
rm -rf conftest.dSYM
 
9234
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9235
      conftest$ac_exeext conftest.$ac_ext
 
9236
        LDFLAGS="$save_LDFLAGS"
9096
9237
      else
9097
 
        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9098
 
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
9238
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
9239
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9099
9240
      fi
 
9241
      archive_cmds_need_lc='no'
9100
9242
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9101
9243
      hardcode_libdir_separator=:
 
9244
      inherit_rpath=yes
9102
9245
      link_all_deplibs=yes
9103
9246
      ;;
9104
9247
 
9105
9248
    netbsd*)
9106
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9249
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9107
9250
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9108
9251
      else
9109
9252
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9121
9264
      hardcode_shlibpath_var=no
9122
9265
      ;;
9123
9266
 
 
9267
    *nto* | *qnx*)
 
9268
      ;;
 
9269
 
9124
9270
    openbsd*)
9125
9271
      if test -f /usr/libexec/ld.so; then
9126
9272
        hardcode_direct=yes
9127
9273
        hardcode_shlibpath_var=no
9128
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9274
        hardcode_direct_absolute=yes
 
9275
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9129
9276
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9130
9277
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9131
9278
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9141
9288
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9142
9289
             ;;
9143
9290
          esac
9144
 
        fi
 
9291
        fi
9145
9292
      else
9146
9293
        ld_shlibs=no
9147
9294
      fi
9151
9298
      hardcode_libdir_flag_spec='-L$libdir'
9152
9299
      hardcode_minus_L=yes
9153
9300
      allow_undefined_flag=unsupported
9154
 
      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9155
 
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9301
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
9302
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9156
9303
      ;;
9157
9304
 
9158
9305
    osf3*)
9159
9306
      if test "$GCC" = yes; then
9160
9307
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9161
 
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9308
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9162
9309
      else
9163
9310
        allow_undefined_flag=' -expect_unresolved \*'
9164
 
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
9311
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9165
9312
      fi
 
9313
      archive_cmds_need_lc='no'
9166
9314
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9167
9315
      hardcode_libdir_separator=:
9168
9316
      ;;
9170
9318
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9171
9319
      if test "$GCC" = yes; then
9172
9320
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9173
 
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9321
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9174
9322
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9175
9323
      else
9176
9324
        allow_undefined_flag=' -expect_unresolved \*'
9177
 
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9178
 
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9179
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
9325
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
9326
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
 
9327
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9180
9328
 
9181
9329
        # Both c and cxx compiler support -rpath directly
9182
9330
        hardcode_libdir_flag_spec='-rpath $libdir'
9183
9331
      fi
 
9332
      archive_cmds_need_lc='no'
9184
9333
      hardcode_libdir_separator=:
9185
9334
      ;;
9186
9335
 
9187
9336
    solaris*)
9188
 
      no_undefined_flag=' -z text'
 
9337
      no_undefined_flag=' -z defs'
9189
9338
      if test "$GCC" = yes; then
9190
9339
        wlarc='${wl}'
9191
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9192
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9193
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
9340
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9341
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9342
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9194
9343
      else
9195
 
        wlarc=''
9196
 
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9197
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9198
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
9344
        case `$CC -V 2>&1` in
 
9345
        *"Compilers 5.0"*)
 
9346
          wlarc=''
 
9347
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9348
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9349
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
9350
          ;;
 
9351
        *)
 
9352
          wlarc='${wl}'
 
9353
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9354
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9355
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9356
          ;;
 
9357
        esac
9199
9358
      fi
9200
9359
      hardcode_libdir_flag_spec='-R$libdir'
9201
9360
      hardcode_shlibpath_var=no
9205
9364
        # The compiler driver will combine and reorder linker options,
9206
9365
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
9207
9366
        # but is careful enough not to reorder.
9208
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9367
        # Supported since Solaris 2.6 (maybe 2.5.1?)
9209
9368
        if test "$GCC" = yes; then
9210
9369
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9211
9370
        else
9294
9453
      allow_undefined_flag='${wl}-z,nodefs'
9295
9454
      archive_cmds_need_lc=no
9296
9455
      hardcode_shlibpath_var=no
9297
 
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
9456
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9298
9457
      hardcode_libdir_separator=':'
9299
9458
      link_all_deplibs=yes
9300
9459
      export_dynamic_flag_spec='${wl}-Bexport'
9301
9460
      runpath_var='LD_RUN_PATH'
9302
9461
 
9303
9462
      if test "$GCC" = yes; then
9304
 
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9305
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9463
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9464
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9306
9465
      else
9307
 
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9308
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9466
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9467
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9309
9468
      fi
9310
9469
      ;;
9311
9470
 
9319
9478
      ld_shlibs=no
9320
9479
      ;;
9321
9480
    esac
 
9481
 
 
9482
    if test x$host_vendor = xsni; then
 
9483
      case $host in
 
9484
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9485
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9486
        ;;
 
9487
      esac
 
9488
    fi
9322
9489
  fi
9323
9490
 
9324
9491
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9325
9492
$as_echo "$ld_shlibs" >&6; }
9326
9493
test "$ld_shlibs" = no && can_build_shared=no
9327
9494
 
 
9495
with_gnu_ld=$with_gnu_ld
 
9496
 
 
9497
 
 
9498
 
 
9499
 
 
9500
 
 
9501
 
 
9502
 
 
9503
 
 
9504
 
 
9505
 
 
9506
 
 
9507
 
 
9508
 
 
9509
 
 
9510
 
9328
9511
#
9329
9512
# Do we need to explicitly link libc?
9330
9513
#
9344
9527
      # to ld, don't add -lc before -lgcc.
9345
9528
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9346
9529
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9347
 
      $rm conftest*
 
9530
      $RM conftest*
9348
9531
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9349
9532
 
9350
9533
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9365
9548
        libname=conftest
9366
9549
        lt_save_allow_undefined_flag=$allow_undefined_flag
9367
9550
        allow_undefined_flag=
9368
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9369
 
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9551
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
9552
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9370
9553
  ac_status=$?
9371
9554
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372
9555
  (exit $ac_status); }
9379
9562
      else
9380
9563
        cat conftest.err 1>&5
9381
9564
      fi
9382
 
      $rm conftest*
 
9565
      $RM conftest*
9383
9566
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9384
9567
$as_echo "$archive_cmds_need_lc" >&6; }
9385
9568
      ;;
9388
9571
  ;;
9389
9572
esac
9390
9573
 
9391
 
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
9574
 
 
9575
 
 
9576
 
 
9577
 
 
9578
 
 
9579
 
 
9580
 
 
9581
 
 
9582
 
 
9583
 
 
9584
 
 
9585
 
 
9586
 
 
9587
 
 
9588
 
 
9589
 
 
9590
 
 
9591
 
 
9592
 
 
9593
 
 
9594
 
 
9595
 
 
9596
 
 
9597
 
 
9598
 
 
9599
 
 
9600
 
 
9601
 
 
9602
 
 
9603
 
 
9604
 
 
9605
 
 
9606
 
 
9607
 
 
9608
 
 
9609
 
 
9610
 
 
9611
 
 
9612
 
 
9613
 
 
9614
 
 
9615
 
 
9616
 
 
9617
 
 
9618
 
 
9619
 
 
9620
 
 
9621
 
 
9622
 
 
9623
 
 
9624
 
 
9625
 
 
9626
 
 
9627
 
 
9628
 
 
9629
 
 
9630
 
 
9631
 
 
9632
 
 
9633
 
 
9634
 
 
9635
 
 
9636
 
 
9637
 
 
9638
 
 
9639
 
 
9640
 
 
9641
 
 
9642
 
 
9643
 
 
9644
 
 
9645
 
 
9646
 
 
9647
 
 
9648
 
 
9649
 
 
9650
 
 
9651
 
 
9652
 
 
9653
 
 
9654
 
 
9655
 
 
9656
 
 
9657
 
 
9658
 
 
9659
 
 
9660
 
 
9661
 
 
9662
 
 
9663
 
 
9664
 
 
9665
 
 
9666
 
 
9667
 
 
9668
 
 
9669
 
 
9670
 
 
9671
 
 
9672
 
 
9673
 
 
9674
 
 
9675
 
 
9676
 
 
9677
 
 
9678
 
 
9679
 
 
9680
 
 
9681
 
 
9682
 
 
9683
 
 
9684
 
 
9685
 
 
9686
 
 
9687
 
 
9688
 
 
9689
 
 
9690
 
 
9691
 
 
9692
 
 
9693
 
 
9694
 
 
9695
 
 
9696
 
 
9697
 
 
9698
 
 
9699
 
 
9700
 
 
9701
 
 
9702
 
 
9703
 
 
9704
 
 
9705
 
 
9706
 
 
9707
 
 
9708
 
 
9709
 
 
9710
 
 
9711
 
 
9712
 
 
9713
 
 
9714
 
 
9715
 
 
9716
 
 
9717
 
 
9718
 
 
9719
 
 
9720
 
 
9721
 
 
9722
 
 
9723
 
 
9724
 
 
9725
 
 
9726
 
 
9727
 
 
9728
 
 
9729
 
 
9730
  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9392
9731
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9393
 
library_names_spec=
9394
 
libname_spec='lib$name'
9395
 
soname_spec=
9396
 
shrext_cmds=".so"
9397
 
postinstall_cmds=
9398
 
postuninstall_cmds=
9399
 
finish_cmds=
9400
 
finish_eval=
9401
 
shlibpath_var=
9402
 
shlibpath_overrides_runpath=unknown
9403
 
version_type=none
9404
 
dynamic_linker="$host_os ld.so"
9405
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9406
9732
 
9407
9733
if test "$GCC" = yes; then
9408
9734
  case $host_os in
9410
9736
    *) lt_awk_arg="/^libraries:/" ;;
9411
9737
  esac
9412
9738
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9413
 
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
9739
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9414
9740
    # if the path contains ";" then we assume it to be the separator
9415
9741
    # otherwise default to the standard path separator (i.e. ":") - it is
9416
9742
    # assumed that no part of a normal pathname contains ";" but that should
9417
9743
    # okay in the real world where ";" in dirpaths is itself problematic.
9418
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
9744
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9419
9745
  else
9420
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9746
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9421
9747
  fi
9422
9748
  # Ok, now we have the path, separated by spaces, we can step through it
9423
9749
  # and add multilib dir if necessary.
9431
9757
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9432
9758
    fi
9433
9759
  done
9434
 
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
9760
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9435
9761
BEGIN {RS=" "; FS="/|\n";} {
9436
9762
  lt_foo="";
9437
9763
  lt_count=0;
9451
9777
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9452
9778
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9453
9779
}'`
9454
 
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
 
9780
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9455
9781
else
9456
9782
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9457
9783
fi
 
9784
library_names_spec=
 
9785
libname_spec='lib$name'
 
9786
soname_spec=
 
9787
shrext_cmds=".so"
 
9788
postinstall_cmds=
 
9789
postuninstall_cmds=
 
9790
finish_cmds=
 
9791
finish_eval=
 
9792
shlibpath_var=
 
9793
shlibpath_overrides_runpath=unknown
 
9794
version_type=none
 
9795
dynamic_linker="$host_os ld.so"
 
9796
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9458
9797
need_lib_prefix=unknown
9459
9798
hardcode_into_libs=no
9460
9799
 
9491
9830
      aix4 | aix4.[01] | aix4.[01].*)
9492
9831
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9493
9832
           echo ' yes '
9494
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
9833
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9495
9834
        :
9496
9835
      else
9497
9836
        can_build_shared=no
9517
9856
  ;;
9518
9857
 
9519
9858
amigaos*)
9520
 
  library_names_spec='$libname.ixlibrary $libname.a'
9521
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9522
 
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
9859
  case $host_cpu in
 
9860
  powerpc)
 
9861
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
9862
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
9863
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9864
    ;;
 
9865
  m68k)
 
9866
    library_names_spec='$libname.ixlibrary $libname.a'
 
9867
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9868
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
9869
    ;;
 
9870
  esac
9523
9871
  ;;
9524
9872
 
9525
9873
beos*)
9542
9890
  # libtool to hard-code these into programs
9543
9891
  ;;
9544
9892
 
9545
 
cygwin* | mingw* | pw32*)
 
9893
cygwin* | mingw* | pw32* | cegcc*)
9546
9894
  version_type=windows
9547
9895
  shrext_cmds=".dll"
9548
9896
  need_version=no
9549
9897
  need_lib_prefix=no
9550
9898
 
9551
9899
  case $GCC,$host_os in
9552
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
9900
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9553
9901
    library_names_spec='$libname.dll.a'
9554
9902
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9555
9903
    postinstall_cmds='base_file=`basename \${file}`~
9556
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
9904
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9557
9905
      dldir=$destdir/`dirname \$dlpath`~
9558
9906
      test -d \$dldir || mkdir -p \$dldir~
9559
9907
      $install_prog $dir/$dlname \$dldir/$dlname~
9560
 
      chmod a+x \$dldir/$dlname'
 
9908
      chmod a+x \$dldir/$dlname~
 
9909
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
9910
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
9911
      fi'
9561
9912
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9562
9913
      dlpath=$dir/\$dldll~
9563
 
       $rm \$dlpath'
 
9914
       $RM \$dlpath'
9564
9915
    shlibpath_overrides_runpath=yes
9565
9916
 
9566
9917
    case $host_os in
9569
9920
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9570
9921
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9571
9922
      ;;
9572
 
    mingw*)
 
9923
    mingw* | cegcc*)
9573
9924
      # MinGW DLLs use traditional 'lib' prefix
9574
9925
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9575
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9576
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
9926
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9927
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9577
9928
        # It is most probably a Windows format PATH printed by
9578
9929
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9579
9930
        # path with ; separators, and with drive letters. We can handle the
9580
9931
        # drive letters (cygwin fileutils understands them), so leave them,
9581
9932
        # especially as we might pass files found there to a mingw objdump,
9582
9933
        # which wouldn't understand a cygwinified path. Ahh.
9583
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9934
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9584
9935
      else
9585
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9936
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9586
9937
      fi
9587
9938
      ;;
9588
9939
    pw32*)
9606
9957
  version_type=darwin
9607
9958
  need_lib_prefix=no
9608
9959
  need_version=no
9609
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9960
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9610
9961
  soname_spec='${libname}${release}${major}$shared_ext'
9611
9962
  shlibpath_overrides_runpath=yes
9612
9963
  shlibpath_var=DYLD_LIBRARY_PATH
9705
10056
    fi
9706
10057
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9707
10058
    ;;
9708
 
   hppa*64*)
9709
 
     shrext_cmds='.sl'
9710
 
     hardcode_into_libs=yes
9711
 
     dynamic_linker="$host_os dld.sl"
9712
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9713
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9714
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9715
 
     soname_spec='${libname}${release}${shared_ext}$major'
9716
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9717
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9718
 
     ;;
9719
 
   *)
 
10059
  hppa*64*)
 
10060
    shrext_cmds='.sl'
 
10061
    hardcode_into_libs=yes
 
10062
    dynamic_linker="$host_os dld.sl"
 
10063
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
10064
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10065
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10066
    soname_spec='${libname}${release}${shared_ext}$major'
 
10067
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
10068
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10069
    ;;
 
10070
  *)
9720
10071
    shrext_cmds='.sl'
9721
10072
    dynamic_linker="$host_os dld.sl"
9722
10073
    shlibpath_var=SHLIB_PATH
9793
10144
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9794
10145
  shlibpath_var=LD_LIBRARY_PATH
9795
10146
  shlibpath_overrides_runpath=no
 
10147
  # Some binutils ld are patched to set DT_RUNPATH
 
10148
  save_LDFLAGS=$LDFLAGS
 
10149
  save_libdir=$libdir
 
10150
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
10151
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
10152
  cat >conftest.$ac_ext <<_ACEOF
 
10153
/* confdefs.h.  */
 
10154
_ACEOF
 
10155
cat confdefs.h >>conftest.$ac_ext
 
10156
cat >>conftest.$ac_ext <<_ACEOF
 
10157
/* end confdefs.h.  */
 
10158
 
 
10159
int
 
10160
main ()
 
10161
{
 
10162
 
 
10163
  ;
 
10164
  return 0;
 
10165
}
 
10166
_ACEOF
 
10167
rm -f conftest.$ac_objext conftest$ac_exeext
 
10168
if { (ac_try="$ac_link"
 
10169
case "(($ac_try" in
 
10170
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10171
  *) ac_try_echo=$ac_try;;
 
10172
esac
 
10173
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10174
$as_echo "$ac_try_echo") >&5
 
10175
  (eval "$ac_link") 2>conftest.er1
 
10176
  ac_status=$?
 
10177
  grep -v '^ *+' conftest.er1 >conftest.err
 
10178
  rm -f conftest.er1
 
10179
  cat conftest.err >&5
 
10180
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10181
  (exit $ac_status); } && {
 
10182
         test -z "$ac_c_werror_flag" ||
 
10183
         test ! -s conftest.err
 
10184
       } && test -s conftest$ac_exeext && {
 
10185
         test "$cross_compiling" = yes ||
 
10186
         $as_test_x conftest$ac_exeext
 
10187
       }; then
 
10188
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
 
10189
  shlibpath_overrides_runpath=yes
 
10190
fi
 
10191
 
 
10192
else
 
10193
  $as_echo "$as_me: failed program was:" >&5
 
10194
sed 's/^/| /' conftest.$ac_ext >&5
 
10195
 
 
10196
 
 
10197
fi
 
10198
 
 
10199
rm -rf conftest.dSYM
 
10200
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10201
      conftest$ac_exeext conftest.$ac_ext
 
10202
  LDFLAGS=$save_LDFLAGS
 
10203
  libdir=$save_libdir
 
10204
 
9796
10205
  # This implies no fast_install, which is unacceptable.
9797
10206
  # Some rework will be needed to allow for fast_install
9798
10207
  # before this can be enabled.
9799
10208
  hardcode_into_libs=yes
9800
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9801
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
10209
 
 
10210
  # Add ABI-specific directories to the system library path.
 
10211
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9802
10212
 
9803
10213
  # Append ld.so.conf contents to the search path
9804
10214
  if test -f /etc/ld.so.conf; then
9805
 
    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' ' '`
 
10215
    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' ' '`
9806
10216
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9807
10217
  fi
9808
10218
 
9819
10229
  version_type=sunos
9820
10230
  need_lib_prefix=no
9821
10231
  need_version=no
9822
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10232
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9823
10233
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9824
10234
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9825
10235
    dynamic_linker='NetBSD (a.out) ld.so'
9840
10250
  shlibpath_overrides_runpath=yes
9841
10251
  ;;
9842
10252
 
9843
 
nto-qnx*)
9844
 
  version_type=linux
 
10253
*nto* | *qnx*)
 
10254
  version_type=qnx
9845
10255
  need_lib_prefix=no
9846
10256
  need_version=no
9847
10257
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9848
10258
  soname_spec='${libname}${release}${shared_ext}$major'
9849
10259
  shlibpath_var=LD_LIBRARY_PATH
9850
 
  shlibpath_overrides_runpath=yes
 
10260
  shlibpath_overrides_runpath=no
 
10261
  hardcode_into_libs=yes
 
10262
  dynamic_linker='ldqnx.so'
9851
10263
  ;;
9852
10264
 
9853
10265
openbsd*)
9856
10268
  need_lib_prefix=no
9857
10269
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9858
10270
  case $host_os in
9859
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9860
 
    *)                         need_version=no  ;;
 
10271
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
10272
    *)                          need_version=no  ;;
9861
10273
  esac
9862
10274
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9863
10275
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9864
10276
  shlibpath_var=LD_LIBRARY_PATH
9865
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10277
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9866
10278
    case $host_os in
9867
10279
      openbsd2.[89] | openbsd2.[89].*)
9868
10280
        shlibpath_overrides_runpath=no
9934
10346
    sni)
9935
10347
      shlibpath_overrides_runpath=no
9936
10348
      need_lib_prefix=no
9937
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
9938
10349
      runpath_var=LD_RUN_PATH
9939
10350
      ;;
9940
10351
    siemens)
9965
10376
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9966
10377
  soname_spec='${libname}${release}${shared_ext}$major'
9967
10378
  shlibpath_var=LD_LIBRARY_PATH
 
10379
  shlibpath_overrides_runpath=yes
9968
10380
  hardcode_into_libs=yes
9969
10381
  if test "$with_gnu_ld" = yes; then
9970
10382
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9971
 
    shlibpath_overrides_runpath=no
9972
10383
  else
9973
10384
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9974
 
    shlibpath_overrides_runpath=yes
9975
10385
    case $host_os in
9976
10386
      sco3.2v5*)
9977
10387
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9981
10391
  sys_lib_dlsearch_path_spec='/usr/lib'
9982
10392
  ;;
9983
10393
 
 
10394
tpf*)
 
10395
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
10396
  version_type=linux
 
10397
  need_lib_prefix=no
 
10398
  need_version=no
 
10399
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10400
  shlibpath_var=LD_LIBRARY_PATH
 
10401
  shlibpath_overrides_runpath=no
 
10402
  hardcode_into_libs=yes
 
10403
  ;;
 
10404
 
9984
10405
uts4*)
9985
10406
  version_type=linux
9986
10407
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9996
10417
$as_echo "$dynamic_linker" >&6; }
9997
10418
test "$dynamic_linker" = no && can_build_shared=no
9998
10419
 
9999
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10000
 
  $as_echo_n "(cached) " >&6
10001
 
else
10002
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
10003
 
fi
10004
 
 
10005
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10006
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10007
 
  $as_echo_n "(cached) " >&6
10008
 
else
10009
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
10010
 
fi
10011
 
 
10012
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10013
 
 
10014
10420
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10015
10421
if test "$GCC" = yes; then
10016
10422
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10017
10423
fi
10018
10424
 
10019
 
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
10425
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
10426
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
10427
fi
 
10428
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
10429
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
10430
fi
 
10431
 
 
10432
 
 
10433
 
 
10434
 
 
10435
 
 
10436
 
 
10437
 
 
10438
 
 
10439
 
 
10440
 
 
10441
 
 
10442
 
 
10443
 
 
10444
 
 
10445
 
 
10446
 
 
10447
 
 
10448
 
 
10449
 
 
10450
 
 
10451
 
 
10452
 
 
10453
 
 
10454
 
 
10455
 
 
10456
 
 
10457
 
 
10458
 
 
10459
 
 
10460
 
 
10461
 
 
10462
 
 
10463
 
 
10464
 
 
10465
 
 
10466
 
 
10467
 
 
10468
 
 
10469
 
 
10470
 
 
10471
 
 
10472
 
 
10473
 
 
10474
 
 
10475
 
 
10476
 
 
10477
 
 
10478
 
 
10479
 
 
10480
 
 
10481
 
 
10482
 
 
10483
 
 
10484
 
 
10485
 
 
10486
 
 
10487
 
 
10488
 
 
10489
 
 
10490
 
 
10491
 
 
10492
 
 
10493
 
 
10494
 
 
10495
 
 
10496
 
 
10497
 
 
10498
 
 
10499
 
 
10500
 
 
10501
 
 
10502
 
 
10503
 
 
10504
 
 
10505
 
 
10506
 
 
10507
 
 
10508
 
 
10509
 
 
10510
 
 
10511
 
 
10512
 
 
10513
 
 
10514
 
 
10515
 
 
10516
 
 
10517
 
 
10518
  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10020
10519
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10021
10520
hardcode_action=
10022
 
if test -n "$hardcode_libdir_flag_spec" || \
10023
 
   test -n "$runpath_var" || \
 
10521
if test -n "$hardcode_libdir_flag_spec" ||
 
10522
   test -n "$runpath_var" ||
10024
10523
   test "X$hardcode_automatic" = "Xyes" ; then
10025
10524
 
10026
 
  # We can hardcode non-existant directories.
 
10525
  # We can hardcode non-existent directories.
10027
10526
  if test "$hardcode_direct" != no &&
10028
10527
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10029
10528
     # have to relink, otherwise we might link with an installed library
10030
10529
     # when we should be linking with a yet-to-be-installed one
10031
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10530
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10032
10531
     test "$hardcode_minus_L" != no; then
10033
10532
    # Linking always hardcodes the temporary library directory.
10034
10533
    hardcode_action=relink
10044
10543
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10045
10544
$as_echo "$hardcode_action" >&6; }
10046
10545
 
10047
 
if test "$hardcode_action" = relink; then
 
10546
if test "$hardcode_action" = relink ||
 
10547
   test "$inherit_rpath" = yes; then
10048
10548
  # Fast installation is not supported
10049
10549
  enable_fast_install=no
10050
10550
elif test "$shlibpath_overrides_runpath" = yes ||
10053
10553
  enable_fast_install=needless
10054
10554
fi
10055
10555
 
10056
 
striplib=
10057
 
old_striplib=
10058
 
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10059
 
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10060
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10061
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10062
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10063
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
10064
 
$as_echo "yes" >&6; }
10065
 
else
10066
 
# FIXME - insert some real tests, host_os isn't really good enough
10067
 
  case $host_os in
10068
 
   darwin*)
10069
 
       if test -n "$STRIP" ; then
10070
 
         striplib="$STRIP -x"
10071
 
         old_striplib="$STRIP -S"
10072
 
         { $as_echo "$as_me:$LINENO: result: yes" >&5
10073
 
$as_echo "yes" >&6; }
10074
 
       else
10075
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
10076
 
$as_echo "no" >&6; }
10077
 
fi
10078
 
       ;;
10079
 
   *)
10080
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
10081
 
$as_echo "no" >&6; }
10082
 
    ;;
10083
 
  esac
10084
 
fi
10085
 
 
10086
 
if test "x$enable_dlopen" != xyes; then
 
10556
 
 
10557
 
 
10558
 
 
10559
 
 
10560
 
 
10561
  if test "x$enable_dlopen" != xyes; then
10087
10562
  enable_dlopen=unknown
10088
10563
  enable_dlopen_self=unknown
10089
10564
  enable_dlopen_self_static=unknown
10098
10573
    lt_cv_dlopen_self=yes
10099
10574
    ;;
10100
10575
 
10101
 
  mingw* | pw32*)
 
10576
  mingw* | pw32* | cegcc*)
10102
10577
    lt_cv_dlopen="LoadLibrary"
10103
10578
    lt_cv_dlopen_libs=
10104
 
   ;;
 
10579
    ;;
10105
10580
 
10106
10581
  cygwin*)
10107
10582
    lt_cv_dlopen="dlopen"
10108
10583
    lt_cv_dlopen_libs=
10109
 
   ;;
 
10584
    ;;
10110
10585
 
10111
10586
  darwin*)
10112
10587
  # if libdl is installed we need to link against it
10185
10660
 
10186
10661
fi
10187
10662
 
10188
 
   ;;
 
10663
    ;;
10189
10664
 
10190
10665
  *)
10191
10666
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10682
11157
else
10683
11158
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10684
11159
  lt_status=$lt_dlunknown
10685
 
  cat > conftest.$ac_ext <<EOF
10686
 
#line 10686 "configure"
 
11160
  cat > conftest.$ac_ext <<_LT_EOF
 
11161
#line 11161 "configure"
10687
11162
#include "confdefs.h"
10688
11163
 
10689
11164
#if HAVE_DLFCN_H
10724
11199
#  endif
10725
11200
#endif
10726
11201
 
10727
 
#ifdef __cplusplus
10728
 
extern "C" void exit (int);
10729
 
#endif
10730
 
 
10731
11202
void fnord() { int i=42;}
10732
11203
int main ()
10733
11204
{
10743
11214
  else
10744
11215
    puts (dlerror ());
10745
11216
 
10746
 
    exit (status);
 
11217
  return status;
10747
11218
}
10748
 
EOF
 
11219
_LT_EOF
10749
11220
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10750
11221
  (eval $ac_link) 2>&5
10751
11222
  ac_status=$?
10782
11253
else
10783
11254
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10784
11255
  lt_status=$lt_dlunknown
10785
 
  cat > conftest.$ac_ext <<EOF
10786
 
#line 10786 "configure"
 
11256
  cat > conftest.$ac_ext <<_LT_EOF
 
11257
#line 11257 "configure"
10787
11258
#include "confdefs.h"
10788
11259
 
10789
11260
#if HAVE_DLFCN_H
10824
11295
#  endif
10825
11296
#endif
10826
11297
 
10827
 
#ifdef __cplusplus
10828
 
extern "C" void exit (int);
10829
 
#endif
10830
 
 
10831
11298
void fnord() { int i=42;}
10832
11299
int main ()
10833
11300
{
10843
11310
  else
10844
11311
    puts (dlerror ());
10845
11312
 
10846
 
    exit (status);
 
11313
  return status;
10847
11314
}
10848
 
EOF
 
11315
_LT_EOF
10849
11316
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10850
11317
  (eval $ac_link) 2>&5
10851
11318
  ac_status=$?
10889
11356
fi
10890
11357
 
10891
11358
 
10892
 
# Report which library types will actually be built
10893
 
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
11359
 
 
11360
 
 
11361
 
 
11362
 
 
11363
 
 
11364
 
 
11365
 
 
11366
 
 
11367
 
 
11368
 
 
11369
 
 
11370
 
 
11371
 
 
11372
 
 
11373
 
 
11374
striplib=
 
11375
old_striplib=
 
11376
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
11377
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
11378
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
11379
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11380
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11381
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
11382
$as_echo "yes" >&6; }
 
11383
else
 
11384
# FIXME - insert some real tests, host_os isn't really good enough
 
11385
  case $host_os in
 
11386
  darwin*)
 
11387
    if test -n "$STRIP" ; then
 
11388
      striplib="$STRIP -x"
 
11389
      old_striplib="$STRIP -S"
 
11390
      { $as_echo "$as_me:$LINENO: result: yes" >&5
 
11391
$as_echo "yes" >&6; }
 
11392
    else
 
11393
      { $as_echo "$as_me:$LINENO: result: no" >&5
 
11394
$as_echo "no" >&6; }
 
11395
    fi
 
11396
    ;;
 
11397
  *)
 
11398
    { $as_echo "$as_me:$LINENO: result: no" >&5
 
11399
$as_echo "no" >&6; }
 
11400
    ;;
 
11401
  esac
 
11402
fi
 
11403
 
 
11404
 
 
11405
 
 
11406
 
 
11407
 
 
11408
 
 
11409
 
 
11410
 
 
11411
 
 
11412
 
 
11413
 
 
11414
 
 
11415
  # Report which library types will actually be built
 
11416
  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10894
11417
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10895
 
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
11418
  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10896
11419
$as_echo "$can_build_shared" >&6; }
10897
11420
 
10898
 
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
11421
  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10899
11422
$as_echo_n "checking whether to build shared libraries... " >&6; }
10900
 
test "$can_build_shared" = "no" && enable_shared=no
10901
 
 
10902
 
# On AIX, shared libraries and static libraries use the same namespace, and
10903
 
# are all built from PIC.
10904
 
case $host_os in
10905
 
aix3*)
10906
 
  test "$enable_shared" = yes && enable_static=no
10907
 
  if test -n "$RANLIB"; then
10908
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10909
 
    postinstall_cmds='$RANLIB $lib'
10910
 
  fi
10911
 
  ;;
10912
 
 
10913
 
aix[4-9]*)
10914
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11423
  test "$can_build_shared" = "no" && enable_shared=no
 
11424
 
 
11425
  # On AIX, shared libraries and static libraries use the same namespace, and
 
11426
  # are all built from PIC.
 
11427
  case $host_os in
 
11428
  aix3*)
10915
11429
    test "$enable_shared" = yes && enable_static=no
10916
 
  fi
10917
 
    ;;
10918
 
esac
10919
 
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
 
11430
    if test -n "$RANLIB"; then
 
11431
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11432
      postinstall_cmds='$RANLIB $lib'
 
11433
    fi
 
11434
    ;;
 
11435
 
 
11436
  aix[4-9]*)
 
11437
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11438
      test "$enable_shared" = yes && enable_static=no
 
11439
    fi
 
11440
    ;;
 
11441
  esac
 
11442
  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10920
11443
$as_echo "$enable_shared" >&6; }
10921
11444
 
10922
 
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
11445
  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10923
11446
$as_echo_n "checking whether to build static libraries... " >&6; }
10924
 
# Make sure either enable_shared or enable_static is yes.
10925
 
test "$enable_shared" = yes || enable_static=yes
10926
 
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
 
11447
  # Make sure either enable_shared or enable_static is yes.
 
11448
  test "$enable_shared" = yes || enable_static=yes
 
11449
  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10927
11450
$as_echo "$enable_static" >&6; }
10928
11451
 
10929
 
# The else clause should only fire when bootstrapping the
10930
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
10931
 
# with your package, and you will get complaints that there are
10932
 
# no rules to generate ltmain.sh.
10933
 
if test -f "$ltmain"; then
10934
 
  # See if we are running on zsh, and set the options which allow our commands through
10935
 
  # without removal of \ escapes.
10936
 
  if test -n "${ZSH_VERSION+set}" ; then
10937
 
    setopt NO_GLOB_SUBST
10938
 
  fi
10939
 
  # Now quote all the things that may contain metacharacters while being
10940
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10941
 
  # variables and quote the copies for generation of the libtool script.
10942
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10943
 
    SED SHELL STRIP \
10944
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10945
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10946
 
    deplibs_check_method reload_flag reload_cmds need_locks \
10947
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10948
 
    lt_cv_sys_global_symbol_to_c_name_address \
10949
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10950
 
    old_postinstall_cmds old_postuninstall_cmds \
10951
 
    compiler \
10952
 
    CC \
10953
 
    LD \
10954
 
    lt_prog_compiler_wl \
10955
 
    lt_prog_compiler_pic \
10956
 
    lt_prog_compiler_static \
10957
 
    lt_prog_compiler_no_builtin_flag \
10958
 
    export_dynamic_flag_spec \
10959
 
    thread_safe_flag_spec \
10960
 
    whole_archive_flag_spec \
10961
 
    enable_shared_with_static_runtimes \
10962
 
    old_archive_cmds \
10963
 
    old_archive_from_new_cmds \
10964
 
    predep_objects \
10965
 
    postdep_objects \
10966
 
    predeps \
10967
 
    postdeps \
10968
 
    compiler_lib_search_path \
10969
 
    compiler_lib_search_dirs \
10970
 
    archive_cmds \
10971
 
    archive_expsym_cmds \
10972
 
    postinstall_cmds \
10973
 
    postuninstall_cmds \
10974
 
    old_archive_from_expsyms_cmds \
10975
 
    allow_undefined_flag \
10976
 
    no_undefined_flag \
10977
 
    export_symbols_cmds \
10978
 
    hardcode_libdir_flag_spec \
10979
 
    hardcode_libdir_flag_spec_ld \
10980
 
    hardcode_libdir_separator \
10981
 
    hardcode_automatic \
10982
 
    module_cmds \
10983
 
    module_expsym_cmds \
10984
 
    lt_cv_prog_compiler_c_o \
10985
 
    fix_srcfile_path \
10986
 
    exclude_expsyms \
10987
 
    include_expsyms; do
10988
 
 
10989
 
    case $var in
10990
 
    old_archive_cmds | \
10991
 
    old_archive_from_new_cmds | \
10992
 
    archive_cmds | \
10993
 
    archive_expsym_cmds | \
10994
 
    module_cmds | \
10995
 
    module_expsym_cmds | \
10996
 
    old_archive_from_expsyms_cmds | \
10997
 
    export_symbols_cmds | \
10998
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10999
 
    postinstall_cmds | postuninstall_cmds | \
11000
 
    old_postinstall_cmds | old_postuninstall_cmds | \
11001
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11002
 
      # Double-quote double-evaled strings.
11003
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11004
 
      ;;
11005
 
    *)
11006
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11007
 
      ;;
11008
 
    esac
11009
 
  done
11010
 
 
11011
 
  case $lt_echo in
11012
 
  *'\$0 --fallback-echo"')
11013
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11014
 
    ;;
11015
 
  esac
11016
 
 
11017
 
cfgfile="${ofile}T"
11018
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11019
 
  $rm -f "$cfgfile"
11020
 
  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
11021
 
$as_echo "$as_me: creating $ofile" >&6;}
11022
 
 
11023
 
  cat <<__EOF__ >> "$cfgfile"
11024
 
#! $SHELL
11025
 
 
11026
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11027
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11028
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11029
 
#
11030
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
11031
 
# Free Software Foundation, Inc.
11032
 
#
11033
 
# This file is part of GNU Libtool:
11034
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11035
 
#
11036
 
# This program is free software; you can redistribute it and/or modify
11037
 
# it under the terms of the GNU General Public License as published by
11038
 
# the Free Software Foundation; either version 2 of the License, or
11039
 
# (at your option) any later version.
11040
 
#
11041
 
# This program is distributed in the hope that it will be useful, but
11042
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
11043
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11044
 
# General Public License for more details.
11045
 
#
11046
 
# You should have received a copy of the GNU General Public License
11047
 
# along with this program; if not, write to the Free Software
11048
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11049
 
#
11050
 
# As a special exception to the GNU General Public License, if you
11051
 
# distribute this file as part of a program that contains a
11052
 
# configuration script generated by Autoconf, you may include it under
11053
 
# the same distribution terms that you use for the rest of that program.
11054
 
 
11055
 
# A sed program that does not truncate output.
11056
 
SED=$lt_SED
11057
 
 
11058
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11059
 
Xsed="$SED -e 1s/^X//"
11060
 
 
11061
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
11062
 
# if CDPATH is set.
11063
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11064
 
 
11065
 
# The names of the tagged configurations supported by this script.
11066
 
available_tags=
11067
 
 
11068
 
# ### BEGIN LIBTOOL CONFIG
11069
 
 
11070
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11071
 
 
11072
 
# Shell to use when invoking shell scripts.
11073
 
SHELL=$lt_SHELL
11074
 
 
11075
 
# Whether or not to build shared libraries.
11076
 
build_libtool_libs=$enable_shared
11077
 
 
11078
 
# Whether or not to build static libraries.
11079
 
build_old_libs=$enable_static
11080
 
 
11081
 
# Whether or not to add -lc for building shared libraries.
11082
 
build_libtool_need_lc=$archive_cmds_need_lc
11083
 
 
11084
 
# Whether or not to disallow shared libs when runtime libs are static
11085
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11086
 
 
11087
 
# Whether or not to optimize for fast installation.
11088
 
fast_install=$enable_fast_install
11089
 
 
11090
 
# The host system.
11091
 
host_alias=$host_alias
11092
 
host=$host
11093
 
host_os=$host_os
11094
 
 
11095
 
# The build system.
11096
 
build_alias=$build_alias
11097
 
build=$build
11098
 
build_os=$build_os
11099
 
 
11100
 
# An echo program that does not interpret backslashes.
11101
 
echo=$lt_echo
11102
 
 
11103
 
# The archiver.
11104
 
AR=$lt_AR
11105
 
AR_FLAGS=$lt_AR_FLAGS
11106
 
 
11107
 
# A C compiler.
11108
 
LTCC=$lt_LTCC
11109
 
 
11110
 
# LTCC compiler flags.
11111
 
LTCFLAGS=$lt_LTCFLAGS
11112
 
 
11113
 
# A language-specific compiler.
11114
 
CC=$lt_compiler
11115
 
 
11116
 
# Is the compiler the GNU C compiler?
11117
 
with_gcc=$GCC
11118
 
 
11119
 
# An ERE matcher.
11120
 
EGREP=$lt_EGREP
11121
 
 
11122
 
# The linker used to build libraries.
11123
 
LD=$lt_LD
11124
 
 
11125
 
# Whether we need hard or soft links.
11126
 
LN_S=$lt_LN_S
11127
 
 
11128
 
# A BSD-compatible nm program.
11129
 
NM=$lt_NM
11130
 
 
11131
 
# A symbol stripping program
11132
 
STRIP=$lt_STRIP
11133
 
 
11134
 
# Used to examine libraries when file_magic_cmd begins "file"
11135
 
MAGIC_CMD=$MAGIC_CMD
11136
 
 
11137
 
# Used on cygwin: DLL creation program.
11138
 
DLLTOOL="$DLLTOOL"
11139
 
 
11140
 
# Used on cygwin: object dumper.
11141
 
OBJDUMP="$OBJDUMP"
11142
 
 
11143
 
# Used on cygwin: assembler.
11144
 
AS="$AS"
11145
 
 
11146
 
# The name of the directory that contains temporary libtool files.
11147
 
objdir=$objdir
11148
 
 
11149
 
# How to create reloadable object files.
11150
 
reload_flag=$lt_reload_flag
11151
 
reload_cmds=$lt_reload_cmds
11152
 
 
11153
 
# How to pass a linker flag through the compiler.
11154
 
wl=$lt_lt_prog_compiler_wl
11155
 
 
11156
 
# Object file suffix (normally "o").
11157
 
objext="$ac_objext"
11158
 
 
11159
 
# Old archive suffix (normally "a").
11160
 
libext="$libext"
11161
 
 
11162
 
# Shared library suffix (normally ".so").
11163
 
shrext_cmds='$shrext_cmds'
11164
 
 
11165
 
# Executable file suffix (normally "").
11166
 
exeext="$exeext"
11167
 
 
11168
 
# Additional compiler flags for building library objects.
11169
 
pic_flag=$lt_lt_prog_compiler_pic
11170
 
pic_mode=$pic_mode
11171
 
 
11172
 
# What is the maximum length of a command?
11173
 
max_cmd_len=$lt_cv_sys_max_cmd_len
11174
 
 
11175
 
# Does compiler simultaneously support -c and -o options?
11176
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11177
 
 
11178
 
# Must we lock files when doing compilation?
11179
 
need_locks=$lt_need_locks
11180
 
 
11181
 
# Do we need the lib prefix for modules?
11182
 
need_lib_prefix=$need_lib_prefix
11183
 
 
11184
 
# Do we need a version for libraries?
11185
 
need_version=$need_version
11186
 
 
11187
 
# Whether dlopen is supported.
11188
 
dlopen_support=$enable_dlopen
11189
 
 
11190
 
# Whether dlopen of programs is supported.
11191
 
dlopen_self=$enable_dlopen_self
11192
 
 
11193
 
# Whether dlopen of statically linked programs is supported.
11194
 
dlopen_self_static=$enable_dlopen_self_static
11195
 
 
11196
 
# Compiler flag to prevent dynamic linking.
11197
 
link_static_flag=$lt_lt_prog_compiler_static
11198
 
 
11199
 
# Compiler flag to turn off builtin functions.
11200
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11201
 
 
11202
 
# Compiler flag to allow reflexive dlopens.
11203
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11204
 
 
11205
 
# Compiler flag to generate shared objects directly from archives.
11206
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
11207
 
 
11208
 
# Compiler flag to generate thread-safe objects.
11209
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec
11210
 
 
11211
 
# Library versioning type.
11212
 
version_type=$version_type
11213
 
 
11214
 
# Format of library name prefix.
11215
 
libname_spec=$lt_libname_spec
11216
 
 
11217
 
# List of archive names.  First name is the real one, the rest are links.
11218
 
# The last name is the one that the linker finds with -lNAME.
11219
 
library_names_spec=$lt_library_names_spec
11220
 
 
11221
 
# The coded name of the library, if different from the real name.
11222
 
soname_spec=$lt_soname_spec
11223
 
 
11224
 
# Commands used to build and install an old-style archive.
11225
 
RANLIB=$lt_RANLIB
11226
 
old_archive_cmds=$lt_old_archive_cmds
11227
 
old_postinstall_cmds=$lt_old_postinstall_cmds
11228
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
11229
 
 
11230
 
# Create an old-style archive from a shared archive.
11231
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11232
 
 
11233
 
# Create a temporary old-style archive to link instead of a shared archive.
11234
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11235
 
 
11236
 
# Commands used to build and install a shared archive.
11237
 
archive_cmds=$lt_archive_cmds
11238
 
archive_expsym_cmds=$lt_archive_expsym_cmds
11239
 
postinstall_cmds=$lt_postinstall_cmds
11240
 
postuninstall_cmds=$lt_postuninstall_cmds
11241
 
 
11242
 
# Commands used to build a loadable module (assumed same as above if empty)
11243
 
module_cmds=$lt_module_cmds
11244
 
module_expsym_cmds=$lt_module_expsym_cmds
11245
 
 
11246
 
# Commands to strip libraries.
11247
 
old_striplib=$lt_old_striplib
11248
 
striplib=$lt_striplib
11249
 
 
11250
 
# Dependencies to place before the objects being linked to create a
11251
 
# shared library.
11252
 
predep_objects=$lt_predep_objects
11253
 
 
11254
 
# Dependencies to place after the objects being linked to create a
11255
 
# shared library.
11256
 
postdep_objects=$lt_postdep_objects
11257
 
 
11258
 
# Dependencies to place before the objects being linked to create a
11259
 
# shared library.
11260
 
predeps=$lt_predeps
11261
 
 
11262
 
# Dependencies to place after the objects being linked to create a
11263
 
# shared library.
11264
 
postdeps=$lt_postdeps
11265
 
 
11266
 
# The directories searched by this compiler when creating a shared
11267
 
# library
11268
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11269
 
 
11270
 
# The library search path used internally by the compiler when linking
11271
 
# a shared library.
11272
 
compiler_lib_search_path=$lt_compiler_lib_search_path
11273
 
 
11274
 
# Method to check whether dependent libraries are shared objects.
11275
 
deplibs_check_method=$lt_deplibs_check_method
11276
 
 
11277
 
# Command to use when deplibs_check_method == file_magic.
11278
 
file_magic_cmd=$lt_file_magic_cmd
11279
 
 
11280
 
# Flag that allows shared libraries with undefined symbols to be built.
11281
 
allow_undefined_flag=$lt_allow_undefined_flag
11282
 
 
11283
 
# Flag that forces no undefined symbols.
11284
 
no_undefined_flag=$lt_no_undefined_flag
11285
 
 
11286
 
# Commands used to finish a libtool library installation in a directory.
11287
 
finish_cmds=$lt_finish_cmds
11288
 
 
11289
 
# Same as above, but a single script fragment to be evaled but not shown.
11290
 
finish_eval=$lt_finish_eval
11291
 
 
11292
 
# Take the output of nm and produce a listing of raw symbols and C names.
11293
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11294
 
 
11295
 
# Transform the output of nm in a proper C declaration
11296
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11297
 
 
11298
 
# Transform the output of nm in a C name address pair
11299
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11300
 
 
11301
 
# This is the shared library runtime path variable.
11302
 
runpath_var=$runpath_var
11303
 
 
11304
 
# This is the shared library path variable.
11305
 
shlibpath_var=$shlibpath_var
11306
 
 
11307
 
# Is shlibpath searched before the hard-coded library search path?
11308
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11309
 
 
11310
 
# How to hardcode a shared library path into an executable.
11311
 
hardcode_action=$hardcode_action
11312
 
 
11313
 
# Whether we should hardcode library paths into libraries.
11314
 
hardcode_into_libs=$hardcode_into_libs
11315
 
 
11316
 
# Flag to hardcode \$libdir into a binary during linking.
11317
 
# This must work even if \$libdir does not exist.
11318
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11319
 
 
11320
 
# If ld is used when linking, flag to hardcode \$libdir into
11321
 
# a binary during linking. This must work even if \$libdir does
11322
 
# not exist.
11323
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11324
 
 
11325
 
# Whether we need a single -rpath flag with a separated argument.
11326
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11327
 
 
11328
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11329
 
# resulting binary.
11330
 
hardcode_direct=$hardcode_direct
11331
 
 
11332
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11333
 
# resulting binary.
11334
 
hardcode_minus_L=$hardcode_minus_L
11335
 
 
11336
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11337
 
# the resulting binary.
11338
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
11339
 
 
11340
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
11341
 
# and all subsequent libraries and executables linked against it.
11342
 
hardcode_automatic=$hardcode_automatic
11343
 
 
11344
 
# Variables whose values should be saved in libtool wrapper scripts and
11345
 
# restored at relink time.
11346
 
variables_saved_for_relink="$variables_saved_for_relink"
11347
 
 
11348
 
# Whether libtool must link a program against all its dependency libraries.
11349
 
link_all_deplibs=$link_all_deplibs
11350
 
 
11351
 
# Compile-time system search path for libraries
11352
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11353
 
 
11354
 
# Run-time system search path for libraries
11355
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11356
 
 
11357
 
# Fix the shell variable \$srcfile for the compiler.
11358
 
fix_srcfile_path=$lt_fix_srcfile_path
11359
 
 
11360
 
# Set to yes if exported symbols are required.
11361
 
always_export_symbols=$always_export_symbols
11362
 
 
11363
 
# The commands to list exported symbols.
11364
 
export_symbols_cmds=$lt_export_symbols_cmds
11365
 
 
11366
 
# The commands to extract the exported symbol list from a shared archive.
11367
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11368
 
 
11369
 
# Symbols that should not be listed in the preloaded symbols.
11370
 
exclude_expsyms=$lt_exclude_expsyms
11371
 
 
11372
 
# Symbols that must always be exported.
11373
 
include_expsyms=$lt_include_expsyms
11374
 
 
11375
 
# ### END LIBTOOL CONFIG
11376
 
 
11377
 
__EOF__
11378
 
 
11379
 
 
11380
 
  case $host_os in
11381
 
  aix3*)
11382
 
    cat <<\EOF >> "$cfgfile"
11383
 
 
11384
 
# AIX sometimes has problems with the GCC collect2 program.  For some
11385
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
11386
 
# vanish in a puff of smoke.
11387
 
if test "X${COLLECT_NAMES+set}" != Xset; then
11388
 
  COLLECT_NAMES=
11389
 
  export COLLECT_NAMES
11390
 
fi
11391
 
EOF
11392
 
    ;;
11393
 
  esac
11394
 
 
11395
 
  # We use sed instead of cat because bash on DJGPP gets confused if
11396
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11397
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
11398
 
  # is reportedly fixed, but why not run on old versions too?
11399
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11400
 
 
11401
 
  mv -f "$cfgfile" "$ofile" || \
11402
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11403
 
  chmod +x "$ofile"
11404
 
 
11405
 
else
11406
 
  # If there is no Makefile yet, we rely on a make rule to execute
11407
 
  # `config.status --recheck' to rerun these tests and create the
11408
 
  # libtool script then.
11409
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11410
 
  if test -f "$ltmain_in"; then
11411
 
    test -f Makefile && make "$ltmain"
11412
 
  fi
11413
 
fi
11414
 
 
11415
 
 
 
11452
 
 
11453
 
 
11454
 
 
11455
fi
11416
11456
ac_ext=c
11417
11457
ac_cpp='$CPP $CPPFLAGS'
11418
11458
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11422
11462
CC="$lt_save_CC"
11423
11463
 
11424
11464
 
11425
 
# Check whether --with-tags was given.
11426
 
if test "${with_tags+set}" = set; then
11427
 
  withval=$with_tags; tagnames="$withval"
11428
 
fi
11429
 
 
11430
 
 
11431
 
if test -f "$ltmain" && test -n "$tagnames"; then
11432
 
  if test ! -f "${ofile}"; then
11433
 
    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11434
 
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11435
 
  fi
11436
 
 
11437
 
  if test -z "$LTCC"; then
11438
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11439
 
    if test -z "$LTCC"; then
11440
 
      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11441
 
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11442
 
    else
11443
 
      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11444
 
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11445
 
    fi
11446
 
  fi
11447
 
  if test -z "$LTCFLAGS"; then
11448
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11449
 
  fi
11450
 
 
11451
 
  # Extract list of available tagged configurations in $ofile.
11452
 
  # Note that this assumes the entire list is on one line.
11453
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11454
 
 
11455
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11456
 
  for tagname in $tagnames; do
11457
 
    IFS="$lt_save_ifs"
11458
 
    # Check whether tagname contains only valid characters
11459
 
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11460
 
    "") ;;
11461
 
    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11462
 
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11463
 
   { (exit 1); exit 1; }; }
11464
 
        ;;
11465
 
    esac
11466
 
 
11467
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11468
 
    then
11469
 
      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11470
 
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11471
 
   { (exit 1); exit 1; }; }
11472
 
    fi
11473
 
 
11474
 
    # Update the list of available tags.
11475
 
    if test -n "$tagname"; then
11476
 
      echo appending configuration tag \"$tagname\" to $ofile
11477
 
 
11478
 
      case $tagname in
11479
 
      CXX)
11480
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11481
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11482
 
            (test "X$CXX" != "Xg++"))) ; then
11483
 
          ac_ext=cpp
11484
 
ac_cpp='$CXXCPP $CPPFLAGS'
11485
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11486
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11487
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11488
 
 
11489
 
 
11490
 
 
11491
 
 
11492
 
archive_cmds_need_lc_CXX=no
11493
 
allow_undefined_flag_CXX=
11494
 
always_export_symbols_CXX=no
11495
 
archive_expsym_cmds_CXX=
11496
 
export_dynamic_flag_spec_CXX=
11497
 
hardcode_direct_CXX=no
11498
 
hardcode_libdir_flag_spec_CXX=
11499
 
hardcode_libdir_flag_spec_ld_CXX=
11500
 
hardcode_libdir_separator_CXX=
11501
 
hardcode_minus_L_CXX=no
11502
 
hardcode_shlibpath_var_CXX=unsupported
11503
 
hardcode_automatic_CXX=no
11504
 
module_cmds_CXX=
11505
 
module_expsym_cmds_CXX=
11506
 
link_all_deplibs_CXX=unknown
11507
 
old_archive_cmds_CXX=$old_archive_cmds
11508
 
no_undefined_flag_CXX=
11509
 
whole_archive_flag_spec_CXX=
11510
 
enable_shared_with_static_runtimes_CXX=no
11511
 
 
11512
 
# Dependencies to place before and after the object being linked:
11513
 
predep_objects_CXX=
11514
 
postdep_objects_CXX=
11515
 
predeps_CXX=
11516
 
postdeps_CXX=
11517
 
compiler_lib_search_path_CXX=
11518
 
compiler_lib_search_dirs_CXX=
11519
 
 
11520
 
# Source file extension for C++ test sources.
11521
 
ac_ext=cpp
11522
 
 
11523
 
# Object file extension for compiled C++ test sources.
11524
 
objext=o
11525
 
objext_CXX=$objext
11526
 
 
11527
 
# Code to be used in simple compile tests
11528
 
lt_simple_compile_test_code="int some_variable = 0;"
11529
 
 
11530
 
# Code to be used in simple link tests
11531
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11532
 
 
11533
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11534
 
 
11535
 
# If no C compiler was specified, use CC.
11536
 
LTCC=${LTCC-"$CC"}
11537
 
 
11538
 
# If no C compiler flags were specified, use CFLAGS.
11539
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11540
 
 
11541
 
# Allow CC to be a program name with arguments.
11542
 
compiler=$CC
11543
 
 
11544
 
 
11545
 
# save warnings/boilerplate of simple test code
11546
 
ac_outfile=conftest.$ac_objext
11547
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11548
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11549
 
_lt_compiler_boilerplate=`cat conftest.err`
11550
 
$rm conftest*
11551
 
 
11552
 
ac_outfile=conftest.$ac_objext
11553
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11554
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11555
 
_lt_linker_boilerplate=`cat conftest.err`
11556
 
$rm -r conftest*
11557
 
 
11558
 
 
11559
 
# Allow CC to be a program name with arguments.
11560
 
lt_save_CC=$CC
11561
 
lt_save_LD=$LD
11562
 
lt_save_GCC=$GCC
11563
 
GCC=$GXX
11564
 
lt_save_with_gnu_ld=$with_gnu_ld
11565
 
lt_save_path_LD=$lt_cv_path_LD
11566
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11567
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11568
 
else
11569
 
  $as_unset lt_cv_prog_gnu_ld
11570
 
fi
11571
 
if test -n "${lt_cv_path_LDCXX+set}"; then
11572
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
11573
 
else
11574
 
  $as_unset lt_cv_path_LD
11575
 
fi
11576
 
test -z "${LDCXX+set}" || LD=$LDCXX
11577
 
CC=${CXX-"c++"}
11578
 
compiler=$CC
11579
 
compiler_CXX=$CC
11580
 
for cc_temp in $compiler""; do
11581
 
  case $cc_temp in
11582
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11583
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11584
 
    \-*) ;;
11585
 
    *) break;;
11586
 
  esac
11587
 
done
11588
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11589
 
 
11590
 
 
11591
 
# We don't want -fno-exception wen compiling C++ code, so set the
11592
 
# no_builtin_flag separately
11593
 
if test "$GXX" = yes; then
11594
 
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11595
 
else
11596
 
  lt_prog_compiler_no_builtin_flag_CXX=
11597
 
fi
11598
 
 
11599
 
if test "$GXX" = yes; then
11600
 
  # Set up default GNU C++ configuration
 
11465
 
 
11466
 
 
11467
 
 
11468
 
 
11469
 
 
11470
 
 
11471
 
 
11472
 
 
11473
 
 
11474
 
 
11475
 
 
11476
        ac_config_commands="$ac_config_commands libtool"
 
11477
 
 
11478
 
 
11479
 
 
11480
 
 
11481
# Only expand once:
 
11482
 
 
11483
 
 
11484
 
 
11485
      if test "X$prefix" = "XNONE"; then
 
11486
    acl_final_prefix="$ac_default_prefix"
 
11487
  else
 
11488
    acl_final_prefix="$prefix"
 
11489
  fi
 
11490
  if test "X$exec_prefix" = "XNONE"; then
 
11491
    acl_final_exec_prefix='${prefix}'
 
11492
  else
 
11493
    acl_final_exec_prefix="$exec_prefix"
 
11494
  fi
 
11495
  acl_save_prefix="$prefix"
 
11496
  prefix="$acl_final_prefix"
 
11497
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
 
11498
  prefix="$acl_save_prefix"
11601
11499
 
11602
11500
 
11603
11501
# Check whether --with-gnu-ld was given.
11607
11505
  with_gnu_ld=no
11608
11506
fi
11609
11507
 
 
11508
# Prepare PATH_SEPARATOR.
 
11509
# The user is always right.
 
11510
if test "${PATH_SEPARATOR+set}" != set; then
 
11511
  echo "#! /bin/sh" >conf$$.sh
 
11512
  echo  "exit 0"   >>conf$$.sh
 
11513
  chmod +x conf$$.sh
 
11514
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
11515
    PATH_SEPARATOR=';'
 
11516
  else
 
11517
    PATH_SEPARATOR=:
 
11518
  fi
 
11519
  rm -f conf$$.sh
 
11520
fi
11610
11521
ac_prog=ld
11611
11522
if test "$GCC" = yes; then
11612
11523
  # Check if gcc -print-prog-name=ld gives a path.
11613
 
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11614
 
$as_echo_n "checking for ld used by $CC... " >&6; }
 
11524
  { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
 
11525
$as_echo_n "checking for ld used by GCC... " >&6; }
11615
11526
  case $host in
11616
11527
  *-*-mingw*)
11617
11528
    # gcc leaves a trailing carriage return which upsets mingw
11621
11532
  esac
11622
11533
  case $ac_prog in
11623
11534
    # Accept absolute paths.
11624
 
    [\\/]* | ?:[\\/]*)
 
11535
    [\\/]* | [A-Za-z]:[\\/]*)
11625
11536
      re_direlt='/[^/][^/]*/\.\./'
11626
 
      # Canonicalize the pathname of ld
11627
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
11537
      # Canonicalize the path of ld
 
11538
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11628
11539
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11629
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
11540
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11630
11541
      done
11631
11542
      test -z "$LD" && LD="$ac_prog"
11632
11543
      ;;
11646
11557
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11647
11558
$as_echo_n "checking for non-GNU ld... " >&6; }
11648
11559
fi
11649
 
if test "${lt_cv_path_LD+set}" = set; then
 
11560
if test "${acl_cv_path_LD+set}" = set; then
11650
11561
  $as_echo_n "(cached) " >&6
11651
11562
else
11652
11563
  if test -z "$LD"; then
11653
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
11564
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11654
11565
  for ac_dir in $PATH; do
11655
 
    IFS="$lt_save_ifs"
11656
11566
    test -z "$ac_dir" && ac_dir=.
11657
11567
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11658
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
11568
      acl_cv_path_LD="$ac_dir/$ac_prog"
11659
11569
      # Check to see if the program is GNU ld.  I'd rather use --version,
11660
 
      # but apparently some variants of GNU ld only accept -v.
 
11570
      # but apparently some GNU ld's only accept -v.
11661
11571
      # Break only if it was the GNU/non-GNU ld that we prefer.
11662
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
11572
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
11663
11573
      *GNU* | *'with BFD'*)
11664
 
        test "$with_gnu_ld" != no && break
11665
 
        ;;
 
11574
        test "$with_gnu_ld" != no && break ;;
11666
11575
      *)
11667
 
        test "$with_gnu_ld" != yes && break
11668
 
        ;;
 
11576
        test "$with_gnu_ld" != yes && break ;;
11669
11577
      esac
11670
11578
    fi
11671
11579
  done
11672
 
  IFS="$lt_save_ifs"
 
11580
  IFS="$ac_save_ifs"
11673
11581
else
11674
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
11582
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
11675
11583
fi
11676
11584
fi
11677
11585
 
11678
 
LD="$lt_cv_path_LD"
 
11586
LD="$acl_cv_path_LD"
11679
11587
if test -n "$LD"; then
11680
11588
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
11681
11589
$as_echo "$LD" >&6; }
11688
11596
   { (exit 1); exit 1; }; }
11689
11597
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11690
11598
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11691
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
11599
if test "${acl_cv_prog_gnu_ld+set}" = set; then
11692
11600
  $as_echo_n "(cached) " >&6
11693
11601
else
11694
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
11602
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11695
11603
case `$LD -v 2>&1 </dev/null` in
11696
11604
*GNU* | *'with BFD'*)
11697
 
  lt_cv_prog_gnu_ld=yes
11698
 
  ;;
 
11605
  acl_cv_prog_gnu_ld=yes ;;
11699
11606
*)
11700
 
  lt_cv_prog_gnu_ld=no
11701
 
  ;;
 
11607
  acl_cv_prog_gnu_ld=no ;;
11702
11608
esac
11703
11609
fi
11704
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11705
 
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11706
 
with_gnu_ld=$lt_cv_prog_gnu_ld
11707
 
 
11708
 
 
11709
 
 
11710
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11711
 
  # archiving commands below assume that GNU ld is being used.
11712
 
  if test "$with_gnu_ld" = yes; then
11713
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11714
 
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11715
 
 
11716
 
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11717
 
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11718
 
 
11719
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
11720
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11721
 
    #     investigate it a little bit more. (MM)
11722
 
    wlarc='${wl}'
11723
 
 
11724
 
    # ancient GNU ld didn't support --whole-archive et. al.
11725
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11726
 
        grep 'no-whole-archive' > /dev/null; then
11727
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11728
 
    else
11729
 
      whole_archive_flag_spec_CXX=
11730
 
    fi
11731
 
  else
11732
 
    with_gnu_ld=no
11733
 
    wlarc=
11734
 
 
11735
 
    # A generic and very simple default shared library creation
11736
 
    # command for GNU C++ for the case where it uses the native
11737
 
    # linker, instead of GNU ld.  If possible, this setting should
11738
 
    # overridden to take advantage of the native linker features on
11739
 
    # the platform it is being used on.
11740
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11610
{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
 
11611
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
 
11612
with_gnu_ld=$acl_cv_prog_gnu_ld
 
11613
 
 
11614
 
 
11615
 
 
11616
 
 
11617
                                                { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
 
11618
$as_echo_n "checking for shared library run path origin... " >&6; }
 
11619
if test "${acl_cv_rpath+set}" = set; then
 
11620
  $as_echo_n "(cached) " >&6
 
11621
else
 
11622
 
 
11623
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
 
11624
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
 
11625
    . ./conftest.sh
 
11626
    rm -f ./conftest.sh
 
11627
    acl_cv_rpath=done
 
11628
 
 
11629
fi
 
11630
{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
 
11631
$as_echo "$acl_cv_rpath" >&6; }
 
11632
  wl="$acl_cv_wl"
 
11633
  acl_libext="$acl_cv_libext"
 
11634
  acl_shlibext="$acl_cv_shlibext"
 
11635
  acl_libname_spec="$acl_cv_libname_spec"
 
11636
  acl_library_names_spec="$acl_cv_library_names_spec"
 
11637
  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 
11638
  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 
11639
  acl_hardcode_direct="$acl_cv_hardcode_direct"
 
11640
  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
 
11641
    # Check whether --enable-rpath was given.
 
11642
if test "${enable_rpath+set}" = set; then
 
11643
  enableval=$enable_rpath; :
 
11644
else
 
11645
  enable_rpath=yes
 
11646
fi
 
11647
 
 
11648
 
 
11649
 
 
11650
                  acl_libdirstem=lib
 
11651
  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
 
11652
  if test -n "$searchpath"; then
 
11653
    acl_save_IFS="${IFS=        }"; IFS=":"
 
11654
    for searchdir in $searchpath; do
 
11655
      if test -d "$searchdir"; then
 
11656
        case "$searchdir" in
 
11657
          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
 
11658
          *) searchdir=`cd "$searchdir" && pwd`
 
11659
             case "$searchdir" in
 
11660
               */lib64 ) acl_libdirstem=lib64 ;;
 
11661
             esac ;;
 
11662
        esac
 
11663
      fi
 
11664
    done
 
11665
    IFS="$acl_save_IFS"
11741
11666
  fi
11742
11667
 
11743
 
  # Commands to make compiler produce verbose output that lists
11744
 
  # what "hidden" libraries, object files and flags are used when
11745
 
  # linking a shared library.
11746
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11747
 
 
11748
 
else
11749
 
  GXX=no
11750
 
  with_gnu_ld=no
11751
 
  wlarc=
11752
 
fi
11753
 
 
11754
 
# PORTME: fill in a description of your system's C++ link characteristics
11755
 
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11756
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11757
 
ld_shlibs_CXX=yes
11758
 
case $host_os in
11759
 
  aix3*)
11760
 
    # FIXME: insert proper C++ library support
11761
 
    ld_shlibs_CXX=no
11762
 
    ;;
11763
 
  aix[4-9]*)
11764
 
    if test "$host_cpu" = ia64; then
11765
 
      # On IA64, the linker does run time linking by default, so we don't
11766
 
      # have to do anything special.
11767
 
      aix_use_runtimelinking=no
11768
 
      exp_sym_flag='-Bexport'
11769
 
      no_entry_flag=""
11770
 
    else
11771
 
      aix_use_runtimelinking=no
11772
 
 
11773
 
      # Test if we are trying to use run time linking or normal
11774
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11775
 
      # need to do runtime linking.
11776
 
      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11777
 
        for ld_flag in $LDFLAGS; do
11778
 
          case $ld_flag in
11779
 
          *-brtl*)
11780
 
            aix_use_runtimelinking=yes
11781
 
            break
11782
 
            ;;
11783
 
          esac
11784
 
        done
11785
 
        ;;
11786
 
      esac
11787
 
 
11788
 
      exp_sym_flag='-bexport'
11789
 
      no_entry_flag='-bnoentry'
11790
 
    fi
11791
 
 
11792
 
    # When large executables or shared objects are built, AIX ld can
11793
 
    # have problems creating the table of contents.  If linking a library
11794
 
    # or program results in "error TOC overflow" add -mminimal-toc to
11795
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11796
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11797
 
 
11798
 
    archive_cmds_CXX=''
11799
 
    hardcode_direct_CXX=yes
11800
 
    hardcode_libdir_separator_CXX=':'
11801
 
    link_all_deplibs_CXX=yes
11802
 
 
11803
 
    if test "$GXX" = yes; then
11804
 
      case $host_os in aix4.[012]|aix4.[012].*)
11805
 
      # We only want to do this on AIX 4.2 and lower, the check
11806
 
      # below for broken collect2 doesn't work under 4.3+
11807
 
        collect2name=`${CC} -print-prog-name=collect2`
11808
 
        if test -f "$collect2name" && \
11809
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
11810
 
        then
11811
 
          # We have reworked collect2
11812
 
          :
11813
 
        else
11814
 
          # We have old collect2
11815
 
          hardcode_direct_CXX=unsupported
11816
 
          # It fails to find uninstalled libraries when the uninstalled
11817
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
11818
 
          # to unsupported forces relinking
11819
 
          hardcode_minus_L_CXX=yes
11820
 
          hardcode_libdir_flag_spec_CXX='-L$libdir'
11821
 
          hardcode_libdir_separator_CXX=
11822
 
        fi
11823
 
        ;;
11824
 
      esac
11825
 
      shared_flag='-shared'
11826
 
      if test "$aix_use_runtimelinking" = yes; then
11827
 
        shared_flag="$shared_flag "'${wl}-G'
11828
 
      fi
11829
 
    else
11830
 
      # not using gcc
11831
 
      if test "$host_cpu" = ia64; then
11832
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11833
 
        # chokes on -Wl,-G. The following line is correct:
11834
 
        shared_flag='-G'
 
11668
 
 
11669
 
 
11670
 
 
11671
 
 
11672
 
 
11673
 
 
11674
 
 
11675
 
 
11676
    use_additional=yes
 
11677
 
 
11678
  acl_save_prefix="$prefix"
 
11679
  prefix="$acl_final_prefix"
 
11680
  acl_save_exec_prefix="$exec_prefix"
 
11681
  exec_prefix="$acl_final_exec_prefix"
 
11682
 
 
11683
    eval additional_includedir=\"$includedir\"
 
11684
    eval additional_libdir=\"$libdir\"
 
11685
 
 
11686
  exec_prefix="$acl_save_exec_prefix"
 
11687
  prefix="$acl_save_prefix"
 
11688
 
 
11689
 
 
11690
# Check whether --with-libiconv-prefix was given.
 
11691
if test "${with_libiconv_prefix+set}" = set; then
 
11692
  withval=$with_libiconv_prefix;
 
11693
    if test "X$withval" = "Xno"; then
 
11694
      use_additional=no
 
11695
    else
 
11696
      if test "X$withval" = "X"; then
 
11697
 
 
11698
  acl_save_prefix="$prefix"
 
11699
  prefix="$acl_final_prefix"
 
11700
  acl_save_exec_prefix="$exec_prefix"
 
11701
  exec_prefix="$acl_final_exec_prefix"
 
11702
 
 
11703
          eval additional_includedir=\"$includedir\"
 
11704
          eval additional_libdir=\"$libdir\"
 
11705
 
 
11706
  exec_prefix="$acl_save_exec_prefix"
 
11707
  prefix="$acl_save_prefix"
 
11708
 
11835
11709
      else
11836
 
        if test "$aix_use_runtimelinking" = yes; then
11837
 
          shared_flag='${wl}-G'
11838
 
        else
11839
 
          shared_flag='${wl}-bM:SRE'
11840
 
        fi
11841
 
      fi
11842
 
    fi
11843
 
 
11844
 
    # It seems that -bexpall does not export symbols beginning with
11845
 
    # underscore (_), so it is better to generate a list of symbols to export.
11846
 
    always_export_symbols_CXX=yes
11847
 
    if test "$aix_use_runtimelinking" = yes; then
11848
 
      # Warning - without using the other runtime loading flags (-brtl),
11849
 
      # -berok will link without error, but may produce a broken library.
11850
 
      allow_undefined_flag_CXX='-berok'
11851
 
      # Determine the default libpath from the value encoded in an empty executable.
 
11710
        additional_includedir="$withval/include"
 
11711
        additional_libdir="$withval/$acl_libdirstem"
 
11712
      fi
 
11713
    fi
 
11714
 
 
11715
fi
 
11716
 
 
11717
      LIBICONV=
 
11718
  LTLIBICONV=
 
11719
  INCICONV=
 
11720
  LIBICONV_PREFIX=
 
11721
  rpathdirs=
 
11722
  ltrpathdirs=
 
11723
  names_already_handled=
 
11724
  names_next_round='iconv '
 
11725
  while test -n "$names_next_round"; do
 
11726
    names_this_round="$names_next_round"
 
11727
    names_next_round=
 
11728
    for name in $names_this_round; do
 
11729
      already_handled=
 
11730
      for n in $names_already_handled; do
 
11731
        if test "$n" = "$name"; then
 
11732
          already_handled=yes
 
11733
          break
 
11734
        fi
 
11735
      done
 
11736
      if test -z "$already_handled"; then
 
11737
        names_already_handled="$names_already_handled $name"
 
11738
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
11739
        eval value=\"\$HAVE_LIB$uppername\"
 
11740
        if test -n "$value"; then
 
11741
          if test "$value" = yes; then
 
11742
            eval value=\"\$LIB$uppername\"
 
11743
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
 
11744
            eval value=\"\$LTLIB$uppername\"
 
11745
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
 
11746
          else
 
11747
                                    :
 
11748
          fi
 
11749
        else
 
11750
                              found_dir=
 
11751
          found_la=
 
11752
          found_so=
 
11753
          found_a=
 
11754
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
11755
          if test -n "$acl_shlibext"; then
 
11756
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
11757
          else
 
11758
            shrext=
 
11759
          fi
 
11760
          if test $use_additional = yes; then
 
11761
            dir="$additional_libdir"
 
11762
                                    if test -n "$acl_shlibext"; then
 
11763
              if test -f "$dir/$libname$shrext"; then
 
11764
                found_dir="$dir"
 
11765
                found_so="$dir/$libname$shrext"
 
11766
              else
 
11767
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
11768
                  ver=`(cd "$dir" && \
 
11769
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
11770
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
11771
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
11772
                        | sed 1q ) 2>/dev/null`
 
11773
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
11774
                    found_dir="$dir"
 
11775
                    found_so="$dir/$libname$shrext.$ver"
 
11776
                  fi
 
11777
                else
 
11778
                  eval library_names=\"$acl_library_names_spec\"
 
11779
                  for f in $library_names; do
 
11780
                    if test -f "$dir/$f"; then
 
11781
                      found_dir="$dir"
 
11782
                      found_so="$dir/$f"
 
11783
                      break
 
11784
                    fi
 
11785
                  done
 
11786
                fi
 
11787
              fi
 
11788
            fi
 
11789
                        if test "X$found_dir" = "X"; then
 
11790
              if test -f "$dir/$libname.$acl_libext"; then
 
11791
                found_dir="$dir"
 
11792
                found_a="$dir/$libname.$acl_libext"
 
11793
              fi
 
11794
            fi
 
11795
            if test "X$found_dir" != "X"; then
 
11796
              if test -f "$dir/$libname.la"; then
 
11797
                found_la="$dir/$libname.la"
 
11798
              fi
 
11799
            fi
 
11800
          fi
 
11801
          if test "X$found_dir" = "X"; then
 
11802
            for x in $LDFLAGS $LTLIBICONV; do
 
11803
 
 
11804
  acl_save_prefix="$prefix"
 
11805
  prefix="$acl_final_prefix"
 
11806
  acl_save_exec_prefix="$exec_prefix"
 
11807
  exec_prefix="$acl_final_exec_prefix"
 
11808
  eval x=\"$x\"
 
11809
  exec_prefix="$acl_save_exec_prefix"
 
11810
  prefix="$acl_save_prefix"
 
11811
 
 
11812
              case "$x" in
 
11813
                -L*)
 
11814
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
11815
                                    if test -n "$acl_shlibext"; then
 
11816
                    if test -f "$dir/$libname$shrext"; then
 
11817
                      found_dir="$dir"
 
11818
                      found_so="$dir/$libname$shrext"
 
11819
                    else
 
11820
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
11821
                        ver=`(cd "$dir" && \
 
11822
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
11823
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
11824
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
11825
                              | sed 1q ) 2>/dev/null`
 
11826
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
11827
                          found_dir="$dir"
 
11828
                          found_so="$dir/$libname$shrext.$ver"
 
11829
                        fi
 
11830
                      else
 
11831
                        eval library_names=\"$acl_library_names_spec\"
 
11832
                        for f in $library_names; do
 
11833
                          if test -f "$dir/$f"; then
 
11834
                            found_dir="$dir"
 
11835
                            found_so="$dir/$f"
 
11836
                            break
 
11837
                          fi
 
11838
                        done
 
11839
                      fi
 
11840
                    fi
 
11841
                  fi
 
11842
                                    if test "X$found_dir" = "X"; then
 
11843
                    if test -f "$dir/$libname.$acl_libext"; then
 
11844
                      found_dir="$dir"
 
11845
                      found_a="$dir/$libname.$acl_libext"
 
11846
                    fi
 
11847
                  fi
 
11848
                  if test "X$found_dir" != "X"; then
 
11849
                    if test -f "$dir/$libname.la"; then
 
11850
                      found_la="$dir/$libname.la"
 
11851
                    fi
 
11852
                  fi
 
11853
                  ;;
 
11854
              esac
 
11855
              if test "X$found_dir" != "X"; then
 
11856
                break
 
11857
              fi
 
11858
            done
 
11859
          fi
 
11860
          if test "X$found_dir" != "X"; then
 
11861
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
 
11862
            if test "X$found_so" != "X"; then
 
11863
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
 
11864
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
11865
              else
 
11866
                                                                                haveit=
 
11867
                for x in $ltrpathdirs; do
 
11868
                  if test "X$x" = "X$found_dir"; then
 
11869
                    haveit=yes
 
11870
                    break
 
11871
                  fi
 
11872
                done
 
11873
                if test -z "$haveit"; then
 
11874
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
11875
                fi
 
11876
                                if test "$acl_hardcode_direct" = yes; then
 
11877
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
11878
                else
 
11879
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 
11880
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
11881
                                                            haveit=
 
11882
                    for x in $rpathdirs; do
 
11883
                      if test "X$x" = "X$found_dir"; then
 
11884
                        haveit=yes
 
11885
                        break
 
11886
                      fi
 
11887
                    done
 
11888
                    if test -z "$haveit"; then
 
11889
                      rpathdirs="$rpathdirs $found_dir"
 
11890
                    fi
 
11891
                  else
 
11892
                                                                                haveit=
 
11893
                    for x in $LDFLAGS $LIBICONV; do
 
11894
 
 
11895
  acl_save_prefix="$prefix"
 
11896
  prefix="$acl_final_prefix"
 
11897
  acl_save_exec_prefix="$exec_prefix"
 
11898
  exec_prefix="$acl_final_exec_prefix"
 
11899
  eval x=\"$x\"
 
11900
  exec_prefix="$acl_save_exec_prefix"
 
11901
  prefix="$acl_save_prefix"
 
11902
 
 
11903
                      if test "X$x" = "X-L$found_dir"; then
 
11904
                        haveit=yes
 
11905
                        break
 
11906
                      fi
 
11907
                    done
 
11908
                    if test -z "$haveit"; then
 
11909
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
 
11910
                    fi
 
11911
                    if test "$acl_hardcode_minus_L" != no; then
 
11912
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
11913
                    else
 
11914
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
11915
                    fi
 
11916
                  fi
 
11917
                fi
 
11918
              fi
 
11919
            else
 
11920
              if test "X$found_a" != "X"; then
 
11921
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
 
11922
              else
 
11923
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
 
11924
              fi
 
11925
            fi
 
11926
                        additional_includedir=
 
11927
            case "$found_dir" in
 
11928
              */$acl_libdirstem | */$acl_libdirstem/)
 
11929
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
11930
                LIBICONV_PREFIX="$basedir"
 
11931
                additional_includedir="$basedir/include"
 
11932
                ;;
 
11933
            esac
 
11934
            if test "X$additional_includedir" != "X"; then
 
11935
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
11936
                haveit=
 
11937
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
11938
                  if test -n "$GCC"; then
 
11939
                    case $host_os in
 
11940
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
11941
                    esac
 
11942
                  fi
 
11943
                fi
 
11944
                if test -z "$haveit"; then
 
11945
                  for x in $CPPFLAGS $INCICONV; do
 
11946
 
 
11947
  acl_save_prefix="$prefix"
 
11948
  prefix="$acl_final_prefix"
 
11949
  acl_save_exec_prefix="$exec_prefix"
 
11950
  exec_prefix="$acl_final_exec_prefix"
 
11951
  eval x=\"$x\"
 
11952
  exec_prefix="$acl_save_exec_prefix"
 
11953
  prefix="$acl_save_prefix"
 
11954
 
 
11955
                    if test "X$x" = "X-I$additional_includedir"; then
 
11956
                      haveit=yes
 
11957
                      break
 
11958
                    fi
 
11959
                  done
 
11960
                  if test -z "$haveit"; then
 
11961
                    if test -d "$additional_includedir"; then
 
11962
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
 
11963
                    fi
 
11964
                  fi
 
11965
                fi
 
11966
              fi
 
11967
            fi
 
11968
                        if test -n "$found_la"; then
 
11969
                                                        save_libdir="$libdir"
 
11970
              case "$found_la" in
 
11971
                */* | *\\*) . "$found_la" ;;
 
11972
                *) . "./$found_la" ;;
 
11973
              esac
 
11974
              libdir="$save_libdir"
 
11975
                            for dep in $dependency_libs; do
 
11976
                case "$dep" in
 
11977
                  -L*)
 
11978
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
11979
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
 
11980
                      haveit=
 
11981
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
 
11982
                        if test -n "$GCC"; then
 
11983
                          case $host_os in
 
11984
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
11985
                          esac
 
11986
                        fi
 
11987
                      fi
 
11988
                      if test -z "$haveit"; then
 
11989
                        haveit=
 
11990
                        for x in $LDFLAGS $LIBICONV; do
 
11991
 
 
11992
  acl_save_prefix="$prefix"
 
11993
  prefix="$acl_final_prefix"
 
11994
  acl_save_exec_prefix="$exec_prefix"
 
11995
  exec_prefix="$acl_final_exec_prefix"
 
11996
  eval x=\"$x\"
 
11997
  exec_prefix="$acl_save_exec_prefix"
 
11998
  prefix="$acl_save_prefix"
 
11999
 
 
12000
                          if test "X$x" = "X-L$additional_libdir"; then
 
12001
                            haveit=yes
 
12002
                            break
 
12003
                          fi
 
12004
                        done
 
12005
                        if test -z "$haveit"; then
 
12006
                          if test -d "$additional_libdir"; then
 
12007
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
 
12008
                          fi
 
12009
                        fi
 
12010
                        haveit=
 
12011
                        for x in $LDFLAGS $LTLIBICONV; do
 
12012
 
 
12013
  acl_save_prefix="$prefix"
 
12014
  prefix="$acl_final_prefix"
 
12015
  acl_save_exec_prefix="$exec_prefix"
 
12016
  exec_prefix="$acl_final_exec_prefix"
 
12017
  eval x=\"$x\"
 
12018
  exec_prefix="$acl_save_exec_prefix"
 
12019
  prefix="$acl_save_prefix"
 
12020
 
 
12021
                          if test "X$x" = "X-L$additional_libdir"; then
 
12022
                            haveit=yes
 
12023
                            break
 
12024
                          fi
 
12025
                        done
 
12026
                        if test -z "$haveit"; then
 
12027
                          if test -d "$additional_libdir"; then
 
12028
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
 
12029
                          fi
 
12030
                        fi
 
12031
                      fi
 
12032
                    fi
 
12033
                    ;;
 
12034
                  -R*)
 
12035
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
12036
                    if test "$enable_rpath" != no; then
 
12037
                                                                  haveit=
 
12038
                      for x in $rpathdirs; do
 
12039
                        if test "X$x" = "X$dir"; then
 
12040
                          haveit=yes
 
12041
                          break
 
12042
                        fi
 
12043
                      done
 
12044
                      if test -z "$haveit"; then
 
12045
                        rpathdirs="$rpathdirs $dir"
 
12046
                      fi
 
12047
                                                                  haveit=
 
12048
                      for x in $ltrpathdirs; do
 
12049
                        if test "X$x" = "X$dir"; then
 
12050
                          haveit=yes
 
12051
                          break
 
12052
                        fi
 
12053
                      done
 
12054
                      if test -z "$haveit"; then
 
12055
                        ltrpathdirs="$ltrpathdirs $dir"
 
12056
                      fi
 
12057
                    fi
 
12058
                    ;;
 
12059
                  -l*)
 
12060
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
12061
                    ;;
 
12062
                  *.la)
 
12063
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
12064
                    ;;
 
12065
                  *)
 
12066
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
 
12067
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
 
12068
                    ;;
 
12069
                esac
 
12070
              done
 
12071
            fi
 
12072
          else
 
12073
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
12074
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
 
12075
          fi
 
12076
        fi
 
12077
      fi
 
12078
    done
 
12079
  done
 
12080
  if test "X$rpathdirs" != "X"; then
 
12081
    if test -n "$acl_hardcode_libdir_separator"; then
 
12082
                        alldirs=
 
12083
      for found_dir in $rpathdirs; do
 
12084
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
 
12085
      done
 
12086
            acl_save_libdir="$libdir"
 
12087
      libdir="$alldirs"
 
12088
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
12089
      libdir="$acl_save_libdir"
 
12090
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
12091
    else
 
12092
            for found_dir in $rpathdirs; do
 
12093
        acl_save_libdir="$libdir"
 
12094
        libdir="$found_dir"
 
12095
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
12096
        libdir="$acl_save_libdir"
 
12097
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
12098
      done
 
12099
    fi
 
12100
  fi
 
12101
  if test "X$ltrpathdirs" != "X"; then
 
12102
            for found_dir in $ltrpathdirs; do
 
12103
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
 
12104
    done
 
12105
  fi
 
12106
 
 
12107
 
 
12108
 
 
12109
 
 
12110
 
 
12111
 
 
12112
 
 
12113
          am_save_CPPFLAGS="$CPPFLAGS"
 
12114
 
 
12115
  for element in $INCICONV; do
 
12116
    haveit=
 
12117
    for x in $CPPFLAGS; do
 
12118
 
 
12119
  acl_save_prefix="$prefix"
 
12120
  prefix="$acl_final_prefix"
 
12121
  acl_save_exec_prefix="$exec_prefix"
 
12122
  exec_prefix="$acl_final_exec_prefix"
 
12123
  eval x=\"$x\"
 
12124
  exec_prefix="$acl_save_exec_prefix"
 
12125
  prefix="$acl_save_prefix"
 
12126
 
 
12127
      if test "X$x" = "X$element"; then
 
12128
        haveit=yes
 
12129
        break
 
12130
      fi
 
12131
    done
 
12132
    if test -z "$haveit"; then
 
12133
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
12134
    fi
 
12135
  done
 
12136
 
 
12137
 
 
12138
  { $as_echo "$as_me:$LINENO: checking for iconv" >&5
 
12139
$as_echo_n "checking for iconv... " >&6; }
 
12140
if test "${am_cv_func_iconv+set}" = set; then
 
12141
  $as_echo_n "(cached) " >&6
 
12142
else
 
12143
 
 
12144
    am_cv_func_iconv="no, consider installing GNU libiconv"
 
12145
    am_cv_lib_iconv=no
 
12146
    cat >conftest.$ac_ext <<_ACEOF
 
12147
/* confdefs.h.  */
 
12148
_ACEOF
 
12149
cat confdefs.h >>conftest.$ac_ext
 
12150
cat >>conftest.$ac_ext <<_ACEOF
 
12151
/* end confdefs.h.  */
 
12152
#include <stdlib.h>
 
12153
#include <iconv.h>
 
12154
int
 
12155
main ()
 
12156
{
 
12157
iconv_t cd = iconv_open("","");
 
12158
       iconv(cd,NULL,NULL,NULL,NULL);
 
12159
       iconv_close(cd);
 
12160
  ;
 
12161
  return 0;
 
12162
}
 
12163
_ACEOF
 
12164
rm -f conftest.$ac_objext conftest$ac_exeext
 
12165
if { (ac_try="$ac_link"
 
12166
case "(($ac_try" in
 
12167
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12168
  *) ac_try_echo=$ac_try;;
 
12169
esac
 
12170
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12171
$as_echo "$ac_try_echo") >&5
 
12172
  (eval "$ac_link") 2>conftest.er1
 
12173
  ac_status=$?
 
12174
  grep -v '^ *+' conftest.er1 >conftest.err
 
12175
  rm -f conftest.er1
 
12176
  cat conftest.err >&5
 
12177
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12178
  (exit $ac_status); } && {
 
12179
         test -z "$ac_c_werror_flag" ||
 
12180
         test ! -s conftest.err
 
12181
       } && test -s conftest$ac_exeext && {
 
12182
         test "$cross_compiling" = yes ||
 
12183
         $as_test_x conftest$ac_exeext
 
12184
       }; then
 
12185
  am_cv_func_iconv=yes
 
12186
else
 
12187
  $as_echo "$as_me: failed program was:" >&5
 
12188
sed 's/^/| /' conftest.$ac_ext >&5
 
12189
 
 
12190
 
 
12191
fi
 
12192
 
 
12193
rm -rf conftest.dSYM
 
12194
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12195
      conftest$ac_exeext conftest.$ac_ext
 
12196
    if test "$am_cv_func_iconv" != yes; then
 
12197
      am_save_LIBS="$LIBS"
 
12198
      LIBS="$LIBS $LIBICONV"
11852
12199
      cat >conftest.$ac_ext <<_ACEOF
11853
12200
/* confdefs.h.  */
11854
12201
_ACEOF
11855
12202
cat confdefs.h >>conftest.$ac_ext
11856
12203
cat >>conftest.$ac_ext <<_ACEOF
11857
12204
/* end confdefs.h.  */
11858
 
 
11859
 
int
11860
 
main ()
11861
 
{
11862
 
 
11863
 
  ;
11864
 
  return 0;
11865
 
}
11866
 
_ACEOF
11867
 
rm -f conftest.$ac_objext conftest$ac_exeext
11868
 
if { (ac_try="$ac_link"
11869
 
case "(($ac_try" in
11870
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11871
 
  *) ac_try_echo=$ac_try;;
11872
 
esac
11873
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11874
 
$as_echo "$ac_try_echo") >&5
11875
 
  (eval "$ac_link") 2>conftest.er1
11876
 
  ac_status=$?
11877
 
  grep -v '^ *+' conftest.er1 >conftest.err
11878
 
  rm -f conftest.er1
11879
 
  cat conftest.err >&5
11880
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881
 
  (exit $ac_status); } && {
11882
 
         test -z "$ac_cxx_werror_flag" ||
11883
 
         test ! -s conftest.err
11884
 
       } && test -s conftest$ac_exeext && {
11885
 
         test "$cross_compiling" = yes ||
11886
 
         $as_test_x conftest$ac_exeext
11887
 
       }; then
11888
 
 
11889
 
lt_aix_libpath_sed='
11890
 
    /Import File Strings/,/^$/ {
11891
 
        /^0/ {
11892
 
            s/^0  *\(.*\)$/\1/
11893
 
            p
11894
 
        }
11895
 
    }'
11896
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11897
 
# Check for a 64-bit object if we didn't find anything.
11898
 
if test -z "$aix_libpath"; then
11899
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11900
 
fi
11901
 
else
11902
 
  $as_echo "$as_me: failed program was:" >&5
11903
 
sed 's/^/| /' conftest.$ac_ext >&5
11904
 
 
11905
 
 
11906
 
fi
11907
 
 
11908
 
rm -rf conftest.dSYM
11909
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11910
 
      conftest$ac_exeext conftest.$ac_ext
11911
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11912
 
 
11913
 
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11914
 
 
11915
 
      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"
11916
 
     else
11917
 
      if test "$host_cpu" = ia64; then
11918
 
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11919
 
        allow_undefined_flag_CXX="-z nodefs"
11920
 
        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"
11921
 
      else
11922
 
        # Determine the default libpath from the value encoded in an empty executable.
11923
 
        cat >conftest.$ac_ext <<_ACEOF
11924
 
/* confdefs.h.  */
11925
 
_ACEOF
11926
 
cat confdefs.h >>conftest.$ac_ext
11927
 
cat >>conftest.$ac_ext <<_ACEOF
11928
 
/* end confdefs.h.  */
11929
 
 
11930
 
int
11931
 
main ()
11932
 
{
11933
 
 
11934
 
  ;
11935
 
  return 0;
11936
 
}
11937
 
_ACEOF
11938
 
rm -f conftest.$ac_objext conftest$ac_exeext
11939
 
if { (ac_try="$ac_link"
11940
 
case "(($ac_try" in
11941
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11942
 
  *) ac_try_echo=$ac_try;;
11943
 
esac
11944
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11945
 
$as_echo "$ac_try_echo") >&5
11946
 
  (eval "$ac_link") 2>conftest.er1
11947
 
  ac_status=$?
11948
 
  grep -v '^ *+' conftest.er1 >conftest.err
11949
 
  rm -f conftest.er1
11950
 
  cat conftest.err >&5
11951
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952
 
  (exit $ac_status); } && {
11953
 
         test -z "$ac_cxx_werror_flag" ||
11954
 
         test ! -s conftest.err
11955
 
       } && test -s conftest$ac_exeext && {
11956
 
         test "$cross_compiling" = yes ||
11957
 
         $as_test_x conftest$ac_exeext
11958
 
       }; then
11959
 
 
11960
 
lt_aix_libpath_sed='
11961
 
    /Import File Strings/,/^$/ {
11962
 
        /^0/ {
11963
 
            s/^0  *\(.*\)$/\1/
11964
 
            p
11965
 
        }
11966
 
    }'
11967
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11968
 
# Check for a 64-bit object if we didn't find anything.
11969
 
if test -z "$aix_libpath"; then
11970
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11971
 
fi
11972
 
else
11973
 
  $as_echo "$as_me: failed program was:" >&5
11974
 
sed 's/^/| /' conftest.$ac_ext >&5
11975
 
 
11976
 
 
11977
 
fi
11978
 
 
11979
 
rm -rf conftest.dSYM
11980
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11981
 
      conftest$ac_exeext conftest.$ac_ext
11982
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11983
 
 
11984
 
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11985
 
        # Warning - without using the other run time loading flags,
11986
 
        # -berok will link without error, but may produce a broken library.
11987
 
        no_undefined_flag_CXX=' ${wl}-bernotok'
11988
 
        allow_undefined_flag_CXX=' ${wl}-berok'
11989
 
        # Exported symbols can be pulled into shared objects from archives
11990
 
        whole_archive_flag_spec_CXX='$convenience'
11991
 
        archive_cmds_need_lc_CXX=yes
11992
 
        # This is similar to how AIX traditionally builds its shared libraries.
11993
 
        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'
11994
 
      fi
11995
 
    fi
11996
 
    ;;
11997
 
 
11998
 
  beos*)
11999
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12000
 
      allow_undefined_flag_CXX=unsupported
12001
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12002
 
      # support --undefined.  This deserves some investigation.  FIXME
12003
 
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12004
 
    else
12005
 
      ld_shlibs_CXX=no
12006
 
    fi
12007
 
    ;;
12008
 
 
12009
 
  chorus*)
12010
 
    case $cc_basename in
12011
 
      *)
12012
 
        # FIXME: insert proper C++ library support
12013
 
        ld_shlibs_CXX=no
12014
 
        ;;
12015
 
    esac
12016
 
    ;;
12017
 
 
12018
 
  cygwin* | mingw* | pw32*)
12019
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12020
 
    # as there is no search path for DLLs.
12021
 
    hardcode_libdir_flag_spec_CXX='-L$libdir'
12022
 
    allow_undefined_flag_CXX=unsupported
12023
 
    always_export_symbols_CXX=no
12024
 
    enable_shared_with_static_runtimes_CXX=yes
12025
 
 
12026
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12027
 
      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'
12028
 
      # If the export-symbols file already is a .def file (1st line
12029
 
      # is EXPORTS), use it as is; otherwise, prepend...
12030
 
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12031
 
        cp $export_symbols $output_objdir/$soname.def;
12032
 
      else
12033
 
        echo EXPORTS > $output_objdir/$soname.def;
12034
 
        cat $export_symbols >> $output_objdir/$soname.def;
12035
 
      fi~
12036
 
      $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'
12037
 
    else
12038
 
      ld_shlibs_CXX=no
12039
 
    fi
12040
 
  ;;
12041
 
      darwin* | rhapsody*)
12042
 
      archive_cmds_need_lc_CXX=no
12043
 
      hardcode_direct_CXX=no
12044
 
      hardcode_automatic_CXX=yes
12045
 
      hardcode_shlibpath_var_CXX=unsupported
12046
 
      whole_archive_flag_spec_CXX=''
12047
 
      link_all_deplibs_CXX=yes
12048
 
      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12049
 
      if test "$GXX" = yes ; then
12050
 
      output_verbose_link_cmd='echo'
12051
 
      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12052
 
      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12053
 
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12054
 
      module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12055
 
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12056
 
        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12057
 
        archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12058
 
      fi
12059
 
      else
12060
 
      case $cc_basename in
12061
 
        xlc*)
12062
 
         output_verbose_link_cmd='echo'
12063
 
          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'
12064
 
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12065
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12066
 
          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}'
12067
 
          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}'
12068
 
          ;;
12069
 
       *)
12070
 
         ld_shlibs_CXX=no
12071
 
          ;;
12072
 
      esac
12073
 
      fi
12074
 
        ;;
12075
 
 
12076
 
  dgux*)
12077
 
    case $cc_basename in
12078
 
      ec++*)
12079
 
        # FIXME: insert proper C++ library support
12080
 
        ld_shlibs_CXX=no
12081
 
        ;;
12082
 
      ghcx*)
12083
 
        # Green Hills C++ Compiler
12084
 
        # FIXME: insert proper C++ library support
12085
 
        ld_shlibs_CXX=no
12086
 
        ;;
12087
 
      *)
12088
 
        # FIXME: insert proper C++ library support
12089
 
        ld_shlibs_CXX=no
12090
 
        ;;
12091
 
    esac
12092
 
    ;;
12093
 
  freebsd[12]*)
12094
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
12095
 
    ld_shlibs_CXX=no
12096
 
    ;;
12097
 
  freebsd-elf*)
12098
 
    archive_cmds_need_lc_CXX=no
12099
 
    ;;
12100
 
  freebsd* | dragonfly*)
12101
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12102
 
    # conventions
12103
 
    ld_shlibs_CXX=yes
12104
 
    ;;
12105
 
  gnu*)
12106
 
    ;;
12107
 
  hpux9*)
12108
 
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12109
 
    hardcode_libdir_separator_CXX=:
12110
 
    export_dynamic_flag_spec_CXX='${wl}-E'
12111
 
    hardcode_direct_CXX=yes
12112
 
    hardcode_minus_L_CXX=yes # Not in the search PATH,
12113
 
                                # but as the default
12114
 
                                # location of the library.
12115
 
 
12116
 
    case $cc_basename in
12117
 
    CC*)
12118
 
      # FIXME: insert proper C++ library support
12119
 
      ld_shlibs_CXX=no
12120
 
      ;;
12121
 
    aCC*)
12122
 
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12123
 
      # Commands to make compiler produce verbose output that lists
12124
 
      # what "hidden" libraries, object files and flags are used when
12125
 
      # linking a shared library.
12126
 
      #
12127
 
      # There doesn't appear to be a way to prevent this compiler from
12128
 
      # explicitly linking system object files so we need to strip them
12129
 
      # from the output so that they don't get included in the library
12130
 
      # dependencies.
12131
 
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12132
 
      ;;
12133
 
    *)
12134
 
      if test "$GXX" = yes; then
12135
 
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12136
 
      else
12137
 
        # FIXME: insert proper C++ library support
12138
 
        ld_shlibs_CXX=no
12139
 
      fi
12140
 
      ;;
12141
 
    esac
12142
 
    ;;
12143
 
  hpux10*|hpux11*)
12144
 
    if test $with_gnu_ld = no; then
12145
 
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12146
 
      hardcode_libdir_separator_CXX=:
12147
 
 
12148
 
      case $host_cpu in
12149
 
      hppa*64*|ia64*) ;;
12150
 
      *)
12151
 
        export_dynamic_flag_spec_CXX='${wl}-E'
12152
 
        ;;
12153
 
      esac
12154
 
    fi
12155
 
    case $host_cpu in
12156
 
    hppa*64*|ia64*)
12157
 
      hardcode_direct_CXX=no
12158
 
      hardcode_shlibpath_var_CXX=no
12159
 
      ;;
12160
 
    *)
12161
 
      hardcode_direct_CXX=yes
12162
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
12163
 
                                              # but as the default
12164
 
                                              # location of the library.
12165
 
      ;;
12166
 
    esac
12167
 
 
12168
 
    case $cc_basename in
12169
 
      CC*)
12170
 
        # FIXME: insert proper C++ library support
12171
 
        ld_shlibs_CXX=no
12172
 
        ;;
12173
 
      aCC*)
12174
 
        case $host_cpu in
12175
 
        hppa*64*)
12176
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12177
 
          ;;
12178
 
        ia64*)
12179
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12180
 
          ;;
12181
 
        *)
12182
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12183
 
          ;;
12184
 
        esac
12185
 
        # Commands to make compiler produce verbose output that lists
12186
 
        # what "hidden" libraries, object files and flags are used when
12187
 
        # linking a shared library.
12188
 
        #
12189
 
        # There doesn't appear to be a way to prevent this compiler from
12190
 
        # explicitly linking system object files so we need to strip them
12191
 
        # from the output so that they don't get included in the library
12192
 
        # dependencies.
12193
 
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12194
 
        ;;
12195
 
      *)
12196
 
        if test "$GXX" = yes; then
12197
 
          if test $with_gnu_ld = no; then
12198
 
            case $host_cpu in
12199
 
            hppa*64*)
12200
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12201
 
              ;;
12202
 
            ia64*)
12203
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12204
 
              ;;
12205
 
            *)
12206
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12207
 
              ;;
12208
 
            esac
12209
 
          fi
12210
 
        else
12211
 
          # FIXME: insert proper C++ library support
12212
 
          ld_shlibs_CXX=no
12213
 
        fi
12214
 
        ;;
12215
 
    esac
12216
 
    ;;
12217
 
  interix[3-9]*)
12218
 
    hardcode_direct_CXX=no
12219
 
    hardcode_shlibpath_var_CXX=no
12220
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12221
 
    export_dynamic_flag_spec_CXX='${wl}-E'
12222
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12223
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
12224
 
    # default) and relocated if they conflict, which is a slow very memory
12225
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
12226
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12227
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12228
 
    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'
12229
 
    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'
12230
 
    ;;
12231
 
  irix5* | irix6*)
12232
 
    case $cc_basename in
12233
 
      CC*)
12234
 
        # SGI C++
12235
 
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12236
 
 
12237
 
        # Archives containing C++ object files must be created using
12238
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12239
 
        # necessary to make sure instantiated templates are included
12240
 
        # in the archive.
12241
 
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12242
 
        ;;
12243
 
      *)
12244
 
        if test "$GXX" = yes; then
12245
 
          if test "$with_gnu_ld" = no; then
12246
 
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12247
 
          else
12248
 
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12249
 
          fi
12250
 
        fi
12251
 
        link_all_deplibs_CXX=yes
12252
 
        ;;
12253
 
    esac
12254
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12255
 
    hardcode_libdir_separator_CXX=:
12256
 
    ;;
12257
 
  linux* | k*bsd*-gnu)
12258
 
    case $cc_basename in
12259
 
      KCC*)
12260
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
12261
 
 
12262
 
        # KCC will only create a shared library if the output file
12263
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
12264
 
        # to its proper name (with version) after linking.
12265
 
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12266
 
        archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12267
 
        # Commands to make compiler produce verbose output that lists
12268
 
        # what "hidden" libraries, object files and flags are used when
12269
 
        # linking a shared library.
12270
 
        #
12271
 
        # There doesn't appear to be a way to prevent this compiler from
12272
 
        # explicitly linking system object files so we need to strip them
12273
 
        # from the output so that they don't get included in the library
12274
 
        # dependencies.
12275
 
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12276
 
 
12277
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12278
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12279
 
 
12280
 
        # Archives containing C++ object files must be created using
12281
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12282
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12283
 
        ;;
12284
 
      icpc*)
12285
 
        # Intel C++
12286
 
        with_gnu_ld=yes
12287
 
        # version 8.0 and above of icpc choke on multiply defined symbols
12288
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
12289
 
        # earlier do not add the objects themselves.
12290
 
        case `$CC -V 2>&1` in
12291
 
        *"Version 7."*)
12292
 
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12293
 
          archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12294
 
          ;;
12295
 
        *)  # Version 8.0 or newer
12296
 
          tmp_idyn=
12297
 
          case $host_cpu in
12298
 
            ia64*) tmp_idyn=' -i_dynamic';;
12299
 
          esac
12300
 
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12301
 
          archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12302
 
          ;;
12303
 
        esac
12304
 
        archive_cmds_need_lc_CXX=no
12305
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12306
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12307
 
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12308
 
        ;;
12309
 
      pgCC* | pgcpp*)
12310
 
        # Portland Group C++ compiler
12311
 
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12312
 
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12313
 
 
12314
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12315
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12316
 
        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12317
 
        ;;
12318
 
      cxx*)
12319
 
        # Compaq C++
12320
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12321
 
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12322
 
 
12323
 
        runpath_var=LD_RUN_PATH
12324
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12325
 
        hardcode_libdir_separator_CXX=:
12326
 
 
12327
 
        # Commands to make compiler produce verbose output that lists
12328
 
        # what "hidden" libraries, object files and flags are used when
12329
 
        # linking a shared library.
12330
 
        #
12331
 
        # There doesn't appear to be a way to prevent this compiler from
12332
 
        # explicitly linking system object files so we need to strip them
12333
 
        # from the output so that they don't get included in the library
12334
 
        # dependencies.
12335
 
        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'
12336
 
        ;;
12337
 
      *)
12338
 
        case `$CC -V 2>&1 | sed 5q` in
12339
 
        *Sun\ C*)
12340
 
          # Sun C++ 5.9
12341
 
          no_undefined_flag_CXX=' -zdefs'
12342
 
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12343
 
          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'
12344
 
          hardcode_libdir_flag_spec_CXX='-R$libdir'
12345
 
          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'
12346
 
 
12347
 
          # Not sure whether something based on
12348
 
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12349
 
          # would be better.
12350
 
          output_verbose_link_cmd='echo'
12351
 
 
12352
 
          # Archives containing C++ object files must be created using
12353
 
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12354
 
          # necessary to make sure instantiated templates are included
12355
 
          # in the archive.
12356
 
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12357
 
          ;;
12358
 
        esac
12359
 
        ;;
12360
 
    esac
12361
 
    ;;
12362
 
  lynxos*)
12363
 
    # FIXME: insert proper C++ library support
12364
 
    ld_shlibs_CXX=no
12365
 
    ;;
12366
 
  m88k*)
12367
 
    # FIXME: insert proper C++ library support
12368
 
    ld_shlibs_CXX=no
12369
 
    ;;
12370
 
  mvs*)
12371
 
    case $cc_basename in
12372
 
      cxx*)
12373
 
        # FIXME: insert proper C++ library support
12374
 
        ld_shlibs_CXX=no
12375
 
        ;;
12376
 
      *)
12377
 
        # FIXME: insert proper C++ library support
12378
 
        ld_shlibs_CXX=no
12379
 
        ;;
12380
 
    esac
12381
 
    ;;
12382
 
  netbsd*)
12383
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12384
 
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12385
 
      wlarc=
12386
 
      hardcode_libdir_flag_spec_CXX='-R$libdir'
12387
 
      hardcode_direct_CXX=yes
12388
 
      hardcode_shlibpath_var_CXX=no
12389
 
    fi
12390
 
    # Workaround some broken pre-1.5 toolchains
12391
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12392
 
    ;;
12393
 
  openbsd2*)
12394
 
    # C++ shared libraries are fairly broken
12395
 
    ld_shlibs_CXX=no
12396
 
    ;;
12397
 
  openbsd*)
12398
 
    if test -f /usr/libexec/ld.so; then
12399
 
      hardcode_direct_CXX=yes
12400
 
      hardcode_shlibpath_var_CXX=no
12401
 
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12402
 
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12403
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12404
 
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12405
 
        export_dynamic_flag_spec_CXX='${wl}-E'
12406
 
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12407
 
      fi
12408
 
      output_verbose_link_cmd='echo'
12409
 
    else
12410
 
      ld_shlibs_CXX=no
12411
 
    fi
12412
 
    ;;
12413
 
  osf3*)
12414
 
    case $cc_basename in
12415
 
      KCC*)
12416
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
12417
 
 
12418
 
        # KCC will only create a shared library if the output file
12419
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
12420
 
        # to its proper name (with version) after linking.
12421
 
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12422
 
 
12423
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12424
 
        hardcode_libdir_separator_CXX=:
12425
 
 
12426
 
        # Archives containing C++ object files must be created using
12427
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12428
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12429
 
 
12430
 
        ;;
12431
 
      RCC*)
12432
 
        # Rational C++ 2.4.1
12433
 
        # FIXME: insert proper C++ library support
12434
 
        ld_shlibs_CXX=no
12435
 
        ;;
12436
 
      cxx*)
12437
 
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12438
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12439
 
 
12440
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12441
 
        hardcode_libdir_separator_CXX=:
12442
 
 
12443
 
        # Commands to make compiler produce verbose output that lists
12444
 
        # what "hidden" libraries, object files and flags are used when
12445
 
        # linking a shared library.
12446
 
        #
12447
 
        # There doesn't appear to be a way to prevent this compiler from
12448
 
        # explicitly linking system object files so we need to strip them
12449
 
        # from the output so that they don't get included in the library
12450
 
        # dependencies.
12451
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "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'
12452
 
        ;;
12453
 
      *)
12454
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12455
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12456
 
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12457
 
 
12458
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12459
 
          hardcode_libdir_separator_CXX=:
12460
 
 
12461
 
          # Commands to make compiler produce verbose output that lists
12462
 
          # what "hidden" libraries, object files and flags are used when
12463
 
          # linking a shared library.
12464
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12465
 
 
12466
 
        else
12467
 
          # FIXME: insert proper C++ library support
12468
 
          ld_shlibs_CXX=no
12469
 
        fi
12470
 
        ;;
12471
 
    esac
12472
 
    ;;
12473
 
  osf4* | osf5*)
12474
 
    case $cc_basename in
12475
 
      KCC*)
12476
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
12477
 
 
12478
 
        # KCC will only create a shared library if the output file
12479
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
12480
 
        # to its proper name (with version) after linking.
12481
 
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12482
 
 
12483
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12484
 
        hardcode_libdir_separator_CXX=:
12485
 
 
12486
 
        # Archives containing C++ object files must be created using
12487
 
        # the KAI C++ compiler.
12488
 
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12489
 
        ;;
12490
 
      RCC*)
12491
 
        # Rational C++ 2.4.1
12492
 
        # FIXME: insert proper C++ library support
12493
 
        ld_shlibs_CXX=no
12494
 
        ;;
12495
 
      cxx*)
12496
 
        allow_undefined_flag_CXX=' -expect_unresolved \*'
12497
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12498
 
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12499
 
          echo "-hidden">> $lib.exp~
12500
 
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12501
 
          $rm $lib.exp'
12502
 
 
12503
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12504
 
        hardcode_libdir_separator_CXX=:
12505
 
 
12506
 
        # Commands to make compiler produce verbose output that lists
12507
 
        # what "hidden" libraries, object files and flags are used when
12508
 
        # linking a shared library.
12509
 
        #
12510
 
        # There doesn't appear to be a way to prevent this compiler from
12511
 
        # explicitly linking system object files so we need to strip them
12512
 
        # from the output so that they don't get included in the library
12513
 
        # dependencies.
12514
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "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'
12515
 
        ;;
12516
 
      *)
12517
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12518
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12519
 
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12520
 
 
12521
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12522
 
          hardcode_libdir_separator_CXX=:
12523
 
 
12524
 
          # Commands to make compiler produce verbose output that lists
12525
 
          # what "hidden" libraries, object files and flags are used when
12526
 
          # linking a shared library.
12527
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12528
 
 
12529
 
        else
12530
 
          # FIXME: insert proper C++ library support
12531
 
          ld_shlibs_CXX=no
12532
 
        fi
12533
 
        ;;
12534
 
    esac
12535
 
    ;;
12536
 
  psos*)
12537
 
    # FIXME: insert proper C++ library support
12538
 
    ld_shlibs_CXX=no
12539
 
    ;;
12540
 
  sunos4*)
12541
 
    case $cc_basename in
12542
 
      CC*)
12543
 
        # Sun C++ 4.x
12544
 
        # FIXME: insert proper C++ library support
12545
 
        ld_shlibs_CXX=no
12546
 
        ;;
12547
 
      lcc*)
12548
 
        # Lucid
12549
 
        # FIXME: insert proper C++ library support
12550
 
        ld_shlibs_CXX=no
12551
 
        ;;
12552
 
      *)
12553
 
        # FIXME: insert proper C++ library support
12554
 
        ld_shlibs_CXX=no
12555
 
        ;;
12556
 
    esac
12557
 
    ;;
12558
 
  solaris*)
12559
 
    case $cc_basename in
12560
 
      CC*)
12561
 
        # Sun C++ 4.2, 5.x and Centerline C++
12562
 
        archive_cmds_need_lc_CXX=yes
12563
 
        no_undefined_flag_CXX=' -zdefs'
12564
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12565
 
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12566
 
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12567
 
 
12568
 
        hardcode_libdir_flag_spec_CXX='-R$libdir'
12569
 
        hardcode_shlibpath_var_CXX=no
12570
 
        case $host_os in
12571
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
12572
 
          *)
12573
 
            # The compiler driver will combine and reorder linker options,
12574
 
            # but understands `-z linker_flag'.
12575
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
12576
 
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12577
 
            ;;
12578
 
        esac
12579
 
        link_all_deplibs_CXX=yes
12580
 
 
12581
 
        output_verbose_link_cmd='echo'
12582
 
 
12583
 
        # Archives containing C++ object files must be created using
12584
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12585
 
        # necessary to make sure instantiated templates are included
12586
 
        # in the archive.
12587
 
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12588
 
        ;;
12589
 
      gcx*)
12590
 
        # Green Hills C++ Compiler
12591
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12592
 
 
12593
 
        # The C++ compiler must be used to create the archive.
12594
 
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12595
 
        ;;
12596
 
      *)
12597
 
        # GNU C++ compiler with Solaris linker
12598
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12599
 
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12600
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
12601
 
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12602
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12603
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12604
 
 
12605
 
            # Commands to make compiler produce verbose output that lists
12606
 
            # what "hidden" libraries, object files and flags are used when
12607
 
            # linking a shared library.
12608
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12609
 
          else
12610
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
12611
 
            # platform.
12612
 
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12613
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12614
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12615
 
 
12616
 
            # Commands to make compiler produce verbose output that lists
12617
 
            # what "hidden" libraries, object files and flags are used when
12618
 
            # linking a shared library.
12619
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12620
 
          fi
12621
 
 
12622
 
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12623
 
          case $host_os in
12624
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
12625
 
          *)
12626
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12627
 
            ;;
12628
 
          esac
12629
 
        fi
12630
 
        ;;
12631
 
    esac
12632
 
    ;;
12633
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12634
 
    no_undefined_flag_CXX='${wl}-z,text'
12635
 
    archive_cmds_need_lc_CXX=no
12636
 
    hardcode_shlibpath_var_CXX=no
12637
 
    runpath_var='LD_RUN_PATH'
12638
 
 
12639
 
    case $cc_basename in
12640
 
      CC*)
12641
 
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12642
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12643
 
        ;;
12644
 
      *)
12645
 
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12646
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12647
 
        ;;
12648
 
    esac
12649
 
    ;;
12650
 
  sysv5* | sco3.2v5* | sco5v6*)
12651
 
    # Note: We can NOT use -z defs as we might desire, because we do not
12652
 
    # link with -lc, and that would cause any symbols used from libc to
12653
 
    # always be unresolved, which means just about no library would
12654
 
    # ever link correctly.  If we're not using GNU ld we use -z text
12655
 
    # though, which does catch some bad symbols but isn't as heavy-handed
12656
 
    # as -z defs.
12657
 
    # For security reasons, it is highly recommended that you always
12658
 
    # use absolute paths for naming shared libraries, and exclude the
12659
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
12660
 
    # requires that you compile everything twice, which is a pain.
12661
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
12662
 
    # non-empty value in the environment.  Most likely only useful for
12663
 
    # creating official distributions of packages.
12664
 
    # This is a hack until libtool officially supports absolute path
12665
 
    # names for shared libraries.
12666
 
    no_undefined_flag_CXX='${wl}-z,text'
12667
 
    allow_undefined_flag_CXX='${wl}-z,nodefs'
12668
 
    archive_cmds_need_lc_CXX=no
12669
 
    hardcode_shlibpath_var_CXX=no
12670
 
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12671
 
    hardcode_libdir_separator_CXX=':'
12672
 
    link_all_deplibs_CXX=yes
12673
 
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12674
 
    runpath_var='LD_RUN_PATH'
12675
 
 
12676
 
    case $cc_basename in
12677
 
      CC*)
12678
 
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12679
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12680
 
        ;;
12681
 
      *)
12682
 
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12683
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12684
 
        ;;
12685
 
    esac
12686
 
    ;;
12687
 
  tandem*)
12688
 
    case $cc_basename in
12689
 
      NCC*)
12690
 
        # NonStop-UX NCC 3.20
12691
 
        # FIXME: insert proper C++ library support
12692
 
        ld_shlibs_CXX=no
12693
 
        ;;
12694
 
      *)
12695
 
        # FIXME: insert proper C++ library support
12696
 
        ld_shlibs_CXX=no
12697
 
        ;;
12698
 
    esac
12699
 
    ;;
12700
 
  vxworks*)
12701
 
    # FIXME: insert proper C++ library support
12702
 
    ld_shlibs_CXX=no
12703
 
    ;;
12704
 
  *)
12705
 
    # FIXME: insert proper C++ library support
12706
 
    ld_shlibs_CXX=no
12707
 
    ;;
12708
 
esac
12709
 
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12710
 
$as_echo "$ld_shlibs_CXX" >&6; }
12711
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
12712
 
 
12713
 
GCC_CXX="$GXX"
12714
 
LD_CXX="$LD"
12715
 
 
12716
 
cat > conftest.$ac_ext <<EOF
12717
 
class Foo
12718
 
{
12719
 
public:
12720
 
  Foo (void) { a = 0; }
12721
 
private:
12722
 
  int a;
12723
 
};
12724
 
EOF
12725
 
 
12726
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12727
 
  (eval $ac_compile) 2>&5
12728
 
  ac_status=$?
12729
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730
 
  (exit $ac_status); }; then
12731
 
  # Parse the compiler output and extract the necessary
12732
 
  # objects, libraries and library flags.
12733
 
 
12734
 
  # Sentinel used to keep track of whether or not we are before
12735
 
  # the conftest object file.
12736
 
  pre_test_object_deps_done=no
12737
 
 
12738
 
  # The `*' in the case matches for architectures that use `case' in
12739
 
  # $output_verbose_cmd can trigger glob expansion during the loop
12740
 
  # eval without this substitution.
12741
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12742
 
 
12743
 
  for p in `eval $output_verbose_link_cmd`; do
12744
 
    case $p in
12745
 
 
12746
 
    -L* | -R* | -l*)
12747
 
       # Some compilers place space between "-{L,R}" and the path.
12748
 
       # Remove the space.
12749
 
       if test $p = "-L" \
12750
 
          || test $p = "-R"; then
12751
 
         prev=$p
12752
 
         continue
12753
 
       else
12754
 
         prev=
12755
 
       fi
12756
 
 
12757
 
       if test "$pre_test_object_deps_done" = no; then
12758
 
         case $p in
12759
 
         -L* | -R*)
12760
 
           # Internal compiler library paths should come after those
12761
 
           # provided the user.  The postdeps already come after the
12762
 
           # user supplied libs so there is no need to process them.
12763
 
           if test -z "$compiler_lib_search_path_CXX"; then
12764
 
             compiler_lib_search_path_CXX="${prev}${p}"
12765
 
           else
12766
 
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12767
 
           fi
12768
 
           ;;
12769
 
         # The "-l" case would never come before the object being
12770
 
         # linked, so don't bother handling this case.
12771
 
         esac
12772
 
       else
12773
 
         if test -z "$postdeps_CXX"; then
12774
 
           postdeps_CXX="${prev}${p}"
12775
 
         else
12776
 
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12777
 
         fi
12778
 
       fi
12779
 
       ;;
12780
 
 
12781
 
    *.$objext)
12782
 
       # This assumes that the test object file only shows up
12783
 
       # once in the compiler output.
12784
 
       if test "$p" = "conftest.$objext"; then
12785
 
         pre_test_object_deps_done=yes
12786
 
         continue
12787
 
       fi
12788
 
 
12789
 
       if test "$pre_test_object_deps_done" = no; then
12790
 
         if test -z "$predep_objects_CXX"; then
12791
 
           predep_objects_CXX="$p"
12792
 
         else
12793
 
           predep_objects_CXX="$predep_objects_CXX $p"
12794
 
         fi
12795
 
       else
12796
 
         if test -z "$postdep_objects_CXX"; then
12797
 
           postdep_objects_CXX="$p"
12798
 
         else
12799
 
           postdep_objects_CXX="$postdep_objects_CXX $p"
12800
 
         fi
12801
 
       fi
12802
 
       ;;
12803
 
 
12804
 
    *) ;; # Ignore the rest.
12805
 
 
12806
 
    esac
12807
 
  done
12808
 
 
12809
 
  # Clean up.
12810
 
  rm -f a.out a.exe
12811
 
else
12812
 
  echo "libtool.m4: error: problem compiling CXX test program"
12813
 
fi
12814
 
 
12815
 
$rm -f confest.$objext
12816
 
 
12817
 
compiler_lib_search_dirs_CXX=
12818
 
if test -n "$compiler_lib_search_path_CXX"; then
12819
 
  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12820
 
fi
12821
 
 
12822
 
# PORTME: override above test on systems where it is broken
12823
 
case $host_os in
12824
 
interix[3-9]*)
12825
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12826
 
  # hack all around it, let's just trust "g++" to DTRT.
12827
 
  predep_objects_CXX=
12828
 
  postdep_objects_CXX=
12829
 
  postdeps_CXX=
12830
 
  ;;
12831
 
 
12832
 
linux*)
12833
 
  case `$CC -V 2>&1 | sed 5q` in
12834
 
  *Sun\ C*)
12835
 
    # Sun C++ 5.9
12836
 
    #
12837
 
    # The more standards-conforming stlport4 library is
12838
 
    # incompatible with the Cstd library. Avoid specifying
12839
 
    # it if it's in CXXFLAGS. Ignore libCrun as
12840
 
    # -library=stlport4 depends on it.
12841
 
    case " $CXX $CXXFLAGS " in
12842
 
    *" -library=stlport4 "*)
12843
 
      solaris_use_stlport4=yes
12844
 
      ;;
12845
 
    esac
12846
 
    if test "$solaris_use_stlport4" != yes; then
12847
 
      postdeps_CXX='-library=Cstd -library=Crun'
12848
 
    fi
12849
 
    ;;
12850
 
  esac
12851
 
  ;;
12852
 
 
12853
 
solaris*)
12854
 
  case $cc_basename in
12855
 
  CC*)
12856
 
    # The more standards-conforming stlport4 library is
12857
 
    # incompatible with the Cstd library. Avoid specifying
12858
 
    # it if it's in CXXFLAGS. Ignore libCrun as
12859
 
    # -library=stlport4 depends on it.
12860
 
    case " $CXX $CXXFLAGS " in
12861
 
    *" -library=stlport4 "*)
12862
 
      solaris_use_stlport4=yes
12863
 
      ;;
12864
 
    esac
12865
 
 
12866
 
    # Adding this requires a known-good setup of shared libraries for
12867
 
    # Sun compiler versions before 5.6, else PIC objects from an old
12868
 
    # archive will be linked into the output, leading to subtle bugs.
12869
 
    if test "$solaris_use_stlport4" != yes; then
12870
 
      postdeps_CXX='-library=Cstd -library=Crun'
12871
 
    fi
12872
 
    ;;
12873
 
  esac
12874
 
  ;;
12875
 
esac
12876
 
 
12877
 
case " $postdeps_CXX " in
12878
 
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12879
 
esac
12880
 
 
12881
 
lt_prog_compiler_wl_CXX=
12882
 
lt_prog_compiler_pic_CXX=
12883
 
lt_prog_compiler_static_CXX=
12884
 
 
12885
 
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12886
 
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12887
 
 
12888
 
  # C++ specific cases for pic, static, wl, etc.
12889
 
  if test "$GXX" = yes; then
12890
 
    lt_prog_compiler_wl_CXX='-Wl,'
12891
 
    lt_prog_compiler_static_CXX='-static'
12892
 
 
12893
 
    case $host_os in
12894
 
    aix*)
12895
 
      # All AIX code is PIC.
12896
 
      if test "$host_cpu" = ia64; then
12897
 
        # AIX 5 now supports IA64 processor
12898
 
        lt_prog_compiler_static_CXX='-Bstatic'
12899
 
      fi
12900
 
      ;;
12901
 
    amigaos*)
12902
 
      # FIXME: we need at least 68020 code to build shared libraries, but
12903
 
      # adding the `-m68020' flag to GCC prevents building anything better,
12904
 
      # like `-m68040'.
12905
 
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12906
 
      ;;
12907
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12908
 
      # PIC is the default for these OSes.
12909
 
      ;;
12910
 
    mingw* | cygwin* | os2* | pw32*)
12911
 
      # This hack is so that the source file can tell whether it is being
12912
 
      # built for inclusion in a dll (and should export symbols for example).
12913
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12914
 
      # (--disable-auto-import) libraries
12915
 
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12916
 
      ;;
12917
 
    darwin* | rhapsody*)
12918
 
      # PIC is the default on this platform
12919
 
      # Common symbols not allowed in MH_DYLIB files
12920
 
      lt_prog_compiler_pic_CXX='-fno-common'
12921
 
      ;;
12922
 
    *djgpp*)
12923
 
      # DJGPP does not support shared libraries at all
12924
 
      lt_prog_compiler_pic_CXX=
12925
 
      ;;
12926
 
    interix[3-9]*)
12927
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12928
 
      # Instead, we relocate shared libraries at runtime.
12929
 
      ;;
12930
 
    sysv4*MP*)
12931
 
      if test -d /usr/nec; then
12932
 
        lt_prog_compiler_pic_CXX=-Kconform_pic
12933
 
      fi
12934
 
      ;;
12935
 
    hpux*)
12936
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12937
 
      # not for PA HP-UX.
12938
 
      case $host_cpu in
12939
 
      hppa*64*|ia64*)
12940
 
        ;;
12941
 
      *)
12942
 
        lt_prog_compiler_pic_CXX='-fPIC'
12943
 
        ;;
12944
 
      esac
12945
 
      ;;
12946
 
    *)
12947
 
      lt_prog_compiler_pic_CXX='-fPIC'
12948
 
      ;;
12949
 
    esac
12950
 
  else
12951
 
    case $host_os in
12952
 
      aix[4-9]*)
12953
 
        # All AIX code is PIC.
12954
 
        if test "$host_cpu" = ia64; then
12955
 
          # AIX 5 now supports IA64 processor
12956
 
          lt_prog_compiler_static_CXX='-Bstatic'
12957
 
        else
12958
 
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12959
 
        fi
12960
 
        ;;
12961
 
      chorus*)
12962
 
        case $cc_basename in
12963
 
        cxch68*)
12964
 
          # Green Hills C++ Compiler
12965
 
          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12966
 
          ;;
12967
 
        esac
12968
 
        ;;
12969
 
       darwin*)
12970
 
         # PIC is the default on this platform
12971
 
         # Common symbols not allowed in MH_DYLIB files
12972
 
         case $cc_basename in
12973
 
           xlc*)
12974
 
           lt_prog_compiler_pic_CXX='-qnocommon'
12975
 
           lt_prog_compiler_wl_CXX='-Wl,'
12976
 
           ;;
 
12205
#include <stdlib.h>
 
12206
#include <iconv.h>
 
12207
int
 
12208
main ()
 
12209
{
 
12210
iconv_t cd = iconv_open("","");
 
12211
         iconv(cd,NULL,NULL,NULL,NULL);
 
12212
         iconv_close(cd);
 
12213
  ;
 
12214
  return 0;
 
12215
}
 
12216
_ACEOF
 
12217
rm -f conftest.$ac_objext conftest$ac_exeext
 
12218
if { (ac_try="$ac_link"
 
12219
case "(($ac_try" in
 
12220
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12221
  *) ac_try_echo=$ac_try;;
 
12222
esac
 
12223
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12224
$as_echo "$ac_try_echo") >&5
 
12225
  (eval "$ac_link") 2>conftest.er1
 
12226
  ac_status=$?
 
12227
  grep -v '^ *+' conftest.er1 >conftest.err
 
12228
  rm -f conftest.er1
 
12229
  cat conftest.err >&5
 
12230
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12231
  (exit $ac_status); } && {
 
12232
         test -z "$ac_c_werror_flag" ||
 
12233
         test ! -s conftest.err
 
12234
       } && test -s conftest$ac_exeext && {
 
12235
         test "$cross_compiling" = yes ||
 
12236
         $as_test_x conftest$ac_exeext
 
12237
       }; then
 
12238
  am_cv_lib_iconv=yes
 
12239
        am_cv_func_iconv=yes
 
12240
else
 
12241
  $as_echo "$as_me: failed program was:" >&5
 
12242
sed 's/^/| /' conftest.$ac_ext >&5
 
12243
 
 
12244
 
 
12245
fi
 
12246
 
 
12247
rm -rf conftest.dSYM
 
12248
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12249
      conftest$ac_exeext conftest.$ac_ext
 
12250
      LIBS="$am_save_LIBS"
 
12251
    fi
 
12252
 
 
12253
fi
 
12254
{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
 
12255
$as_echo "$am_cv_func_iconv" >&6; }
 
12256
  if test "$am_cv_func_iconv" = yes; then
 
12257
    { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
 
12258
$as_echo_n "checking for working iconv... " >&6; }
 
12259
if test "${am_cv_func_iconv_works+set}" = set; then
 
12260
  $as_echo_n "(cached) " >&6
 
12261
else
 
12262
 
 
12263
            am_save_LIBS="$LIBS"
 
12264
      if test $am_cv_lib_iconv = yes; then
 
12265
        LIBS="$LIBS $LIBICONV"
 
12266
      fi
 
12267
      if test "$cross_compiling" = yes; then
 
12268
  case "$host_os" in
 
12269
           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
 
12270
           *)            am_cv_func_iconv_works="guessing yes" ;;
12977
12271
         esac
12978
 
       ;;
12979
 
      dgux*)
12980
 
        case $cc_basename in
12981
 
          ec++*)
12982
 
            lt_prog_compiler_pic_CXX='-KPIC'
12983
 
            ;;
12984
 
          ghcx*)
12985
 
            # Green Hills C++ Compiler
12986
 
            lt_prog_compiler_pic_CXX='-pic'
12987
 
            ;;
12988
 
          *)
12989
 
            ;;
12990
 
        esac
12991
 
        ;;
12992
 
      freebsd* | dragonfly*)
12993
 
        # FreeBSD uses GNU C++
12994
 
        ;;
12995
 
      hpux9* | hpux10* | hpux11*)
12996
 
        case $cc_basename in
12997
 
          CC*)
12998
 
            lt_prog_compiler_wl_CXX='-Wl,'
12999
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13000
 
            if test "$host_cpu" != ia64; then
13001
 
              lt_prog_compiler_pic_CXX='+Z'
13002
 
            fi
13003
 
            ;;
13004
 
          aCC*)
13005
 
            lt_prog_compiler_wl_CXX='-Wl,'
13006
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13007
 
            case $host_cpu in
13008
 
            hppa*64*|ia64*)
13009
 
              # +Z the default
13010
 
              ;;
13011
 
            *)
13012
 
              lt_prog_compiler_pic_CXX='+Z'
13013
 
              ;;
13014
 
            esac
13015
 
            ;;
13016
 
          *)
13017
 
            ;;
13018
 
        esac
13019
 
        ;;
13020
 
      interix*)
13021
 
        # This is c89, which is MS Visual C++ (no shared libs)
13022
 
        # Anyone wants to do a port?
13023
 
        ;;
13024
 
      irix5* | irix6* | nonstopux*)
13025
 
        case $cc_basename in
13026
 
          CC*)
13027
 
            lt_prog_compiler_wl_CXX='-Wl,'
13028
 
            lt_prog_compiler_static_CXX='-non_shared'
13029
 
            # CC pic flag -KPIC is the default.
13030
 
            ;;
13031
 
          *)
13032
 
            ;;
13033
 
        esac
13034
 
        ;;
13035
 
      linux* | k*bsd*-gnu)
13036
 
        case $cc_basename in
13037
 
          KCC*)
13038
 
            # KAI C++ Compiler
13039
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
13040
 
            lt_prog_compiler_pic_CXX='-fPIC'
13041
 
            ;;
13042
 
          icpc* | ecpc*)
13043
 
            # Intel C++
13044
 
            lt_prog_compiler_wl_CXX='-Wl,'
13045
 
            lt_prog_compiler_pic_CXX='-KPIC'
13046
 
            lt_prog_compiler_static_CXX='-static'
13047
 
            ;;
13048
 
          pgCC* | pgcpp*)
13049
 
            # Portland Group C++ compiler.
13050
 
            lt_prog_compiler_wl_CXX='-Wl,'
13051
 
            lt_prog_compiler_pic_CXX='-fpic'
13052
 
            lt_prog_compiler_static_CXX='-Bstatic'
13053
 
            ;;
13054
 
          cxx*)
13055
 
            # Compaq C++
13056
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
13057
 
            # Linux and Compaq Tru64 Unix objects are PIC.
13058
 
            lt_prog_compiler_pic_CXX=
13059
 
            lt_prog_compiler_static_CXX='-non_shared'
13060
 
            ;;
13061
 
          *)
13062
 
            case `$CC -V 2>&1 | sed 5q` in
13063
 
            *Sun\ C*)
13064
 
              # Sun C++ 5.9
13065
 
              lt_prog_compiler_pic_CXX='-KPIC'
13066
 
              lt_prog_compiler_static_CXX='-Bstatic'
13067
 
              lt_prog_compiler_wl_CXX='-Qoption ld '
13068
 
              ;;
13069
 
            esac
13070
 
            ;;
13071
 
        esac
13072
 
        ;;
13073
 
      lynxos*)
13074
 
        ;;
13075
 
      m88k*)
13076
 
        ;;
13077
 
      mvs*)
13078
 
        case $cc_basename in
13079
 
          cxx*)
13080
 
            lt_prog_compiler_pic_CXX='-W c,exportall'
13081
 
            ;;
13082
 
          *)
13083
 
            ;;
13084
 
        esac
13085
 
        ;;
13086
 
      netbsd*)
13087
 
        ;;
13088
 
      osf3* | osf4* | osf5*)
13089
 
        case $cc_basename in
13090
 
          KCC*)
13091
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
13092
 
            ;;
13093
 
          RCC*)
13094
 
            # Rational C++ 2.4.1
13095
 
            lt_prog_compiler_pic_CXX='-pic'
13096
 
            ;;
13097
 
          cxx*)
13098
 
            # Digital/Compaq C++
13099
 
            lt_prog_compiler_wl_CXX='-Wl,'
13100
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
13101
 
            # Linux and Compaq Tru64 Unix objects are PIC.
13102
 
            lt_prog_compiler_pic_CXX=
13103
 
            lt_prog_compiler_static_CXX='-non_shared'
13104
 
            ;;
13105
 
          *)
13106
 
            ;;
13107
 
        esac
13108
 
        ;;
13109
 
      psos*)
13110
 
        ;;
13111
 
      solaris*)
13112
 
        case $cc_basename in
13113
 
          CC*)
13114
 
            # Sun C++ 4.2, 5.x and Centerline C++
13115
 
            lt_prog_compiler_pic_CXX='-KPIC'
13116
 
            lt_prog_compiler_static_CXX='-Bstatic'
13117
 
            lt_prog_compiler_wl_CXX='-Qoption ld '
13118
 
            ;;
13119
 
          gcx*)
13120
 
            # Green Hills C++ Compiler
13121
 
            lt_prog_compiler_pic_CXX='-PIC'
13122
 
            ;;
13123
 
          *)
13124
 
            ;;
13125
 
        esac
13126
 
        ;;
13127
 
      sunos4*)
13128
 
        case $cc_basename in
13129
 
          CC*)
13130
 
            # Sun C++ 4.x
13131
 
            lt_prog_compiler_pic_CXX='-pic'
13132
 
            lt_prog_compiler_static_CXX='-Bstatic'
13133
 
            ;;
13134
 
          lcc*)
13135
 
            # Lucid
13136
 
            lt_prog_compiler_pic_CXX='-pic'
13137
 
            ;;
13138
 
          *)
13139
 
            ;;
13140
 
        esac
13141
 
        ;;
13142
 
      tandem*)
13143
 
        case $cc_basename in
13144
 
          NCC*)
13145
 
            # NonStop-UX NCC 3.20
13146
 
            lt_prog_compiler_pic_CXX='-KPIC'
13147
 
            ;;
13148
 
          *)
13149
 
            ;;
13150
 
        esac
13151
 
        ;;
13152
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13153
 
        case $cc_basename in
13154
 
          CC*)
13155
 
            lt_prog_compiler_wl_CXX='-Wl,'
13156
 
            lt_prog_compiler_pic_CXX='-KPIC'
13157
 
            lt_prog_compiler_static_CXX='-Bstatic'
13158
 
            ;;
13159
 
        esac
13160
 
        ;;
13161
 
      vxworks*)
13162
 
        ;;
13163
 
      *)
13164
 
        lt_prog_compiler_can_build_shared_CXX=no
13165
 
        ;;
13166
 
    esac
13167
 
  fi
13168
 
 
13169
 
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13170
 
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13171
 
 
13172
 
#
13173
 
# Check to make sure the PIC flag actually works.
13174
 
#
13175
 
if test -n "$lt_prog_compiler_pic_CXX"; then
13176
 
 
13177
 
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13178
 
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13179
 
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13180
 
  $as_echo_n "(cached) " >&6
13181
 
else
13182
 
  lt_cv_prog_compiler_pic_works_CXX=no
13183
 
  ac_outfile=conftest.$ac_objext
13184
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13185
 
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13186
 
   # Insert the option either (1) after the last *FLAGS variable, or
13187
 
   # (2) before a word containing "conftest.", or (3) at the end.
13188
 
   # Note that $ac_compile itself does not contain backslashes and begins
13189
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13190
 
   # The option is referenced via a variable to avoid confusing sed.
13191
 
   lt_compile=`echo "$ac_compile" | $SED \
13192
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13193
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13194
 
   -e 's:$: $lt_compiler_flag:'`
13195
 
   (eval echo "\"\$as_me:13195: $lt_compile\"" >&5)
13196
 
   (eval "$lt_compile" 2>conftest.err)
13197
 
   ac_status=$?
13198
 
   cat conftest.err >&5
13199
 
   echo "$as_me:13199: \$? = $ac_status" >&5
13200
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
13201
 
     # The compiler can only warn and ignore the option if not recognized
13202
 
     # So say no if there are warnings other than the usual output.
13203
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13204
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13205
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13206
 
       lt_cv_prog_compiler_pic_works_CXX=yes
13207
 
     fi
13208
 
   fi
13209
 
   $rm conftest*
13210
 
 
13211
 
fi
13212
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13213
 
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13214
 
 
13215
 
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13216
 
    case $lt_prog_compiler_pic_CXX in
13217
 
     "" | " "*) ;;
13218
 
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13219
 
     esac
13220
 
else
13221
 
    lt_prog_compiler_pic_CXX=
13222
 
     lt_prog_compiler_can_build_shared_CXX=no
13223
 
fi
13224
 
 
13225
 
fi
13226
 
case $host_os in
13227
 
  # For platforms which do not support PIC, -DPIC is meaningless:
13228
 
  *djgpp*)
13229
 
    lt_prog_compiler_pic_CXX=
13230
 
    ;;
13231
 
  *)
13232
 
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13233
 
    ;;
13234
 
esac
13235
 
 
13236
 
#
13237
 
# Check to make sure the static flag actually works.
13238
 
#
13239
 
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13240
 
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13241
 
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13242
 
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13243
 
  $as_echo_n "(cached) " >&6
13244
 
else
13245
 
  lt_cv_prog_compiler_static_works_CXX=no
13246
 
   save_LDFLAGS="$LDFLAGS"
13247
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13248
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13249
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13250
 
     # The linker can only warn and ignore the option if not recognized
13251
 
     # So say no if there are warnings
13252
 
     if test -s conftest.err; then
13253
 
       # Append any errors to the config.log.
13254
 
       cat conftest.err 1>&5
13255
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13256
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13257
 
       if diff conftest.exp conftest.er2 >/dev/null; then
13258
 
         lt_cv_prog_compiler_static_works_CXX=yes
13259
 
       fi
13260
 
     else
13261
 
       lt_cv_prog_compiler_static_works_CXX=yes
13262
 
     fi
13263
 
   fi
13264
 
   $rm -r conftest*
13265
 
   LDFLAGS="$save_LDFLAGS"
13266
 
 
13267
 
fi
13268
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13269
 
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13270
 
 
13271
 
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13272
 
    :
13273
 
else
13274
 
    lt_prog_compiler_static_CXX=
13275
 
fi
13276
 
 
13277
 
 
13278
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13279
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13280
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13281
 
  $as_echo_n "(cached) " >&6
13282
 
else
13283
 
  lt_cv_prog_compiler_c_o_CXX=no
13284
 
   $rm -r conftest 2>/dev/null
13285
 
   mkdir conftest
13286
 
   cd conftest
13287
 
   mkdir out
13288
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13289
 
 
13290
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13291
 
   # Insert the option either (1) after the last *FLAGS variable, or
13292
 
   # (2) before a word containing "conftest.", or (3) at the end.
13293
 
   # Note that $ac_compile itself does not contain backslashes and begins
13294
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13295
 
   lt_compile=`echo "$ac_compile" | $SED \
13296
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13297
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13298
 
   -e 's:$: $lt_compiler_flag:'`
13299
 
   (eval echo "\"\$as_me:13299: $lt_compile\"" >&5)
13300
 
   (eval "$lt_compile" 2>out/conftest.err)
13301
 
   ac_status=$?
13302
 
   cat out/conftest.err >&5
13303
 
   echo "$as_me:13303: \$? = $ac_status" >&5
13304
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13305
 
   then
13306
 
     # The compiler can only warn and ignore the option if not recognized
13307
 
     # So say no if there are warnings
13308
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13309
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13310
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13311
 
       lt_cv_prog_compiler_c_o_CXX=yes
13312
 
     fi
13313
 
   fi
13314
 
   chmod u+w . 2>&5
13315
 
   $rm conftest*
13316
 
   # SGI C++ compiler will create directory out/ii_files/ for
13317
 
   # template instantiation
13318
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13319
 
   $rm out/* && rmdir out
13320
 
   cd ..
13321
 
   rmdir conftest
13322
 
   $rm conftest*
13323
 
 
13324
 
fi
13325
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13326
 
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13327
 
 
13328
 
 
13329
 
hard_links="nottested"
13330
 
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13331
 
  # do not overwrite the value of need_locks provided by the user
13332
 
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13333
 
$as_echo_n "checking if we can lock with hard links... " >&6; }
13334
 
  hard_links=yes
13335
 
  $rm conftest*
13336
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13337
 
  touch conftest.a
13338
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
13339
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13340
 
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13341
 
$as_echo "$hard_links" >&6; }
13342
 
  if test "$hard_links" = no; then
13343
 
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13344
 
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13345
 
    need_locks=warn
13346
 
  fi
13347
 
else
13348
 
  need_locks=no
13349
 
fi
13350
 
 
13351
 
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13352
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13353
 
 
13354
 
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13355
 
  case $host_os in
13356
 
  aix[4-9]*)
13357
 
    # If we're using GNU nm, then we don't want the "-C" option.
13358
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13359
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13360
 
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13361
 
    else
13362
 
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13363
 
    fi
13364
 
    ;;
13365
 
  pw32*)
13366
 
    export_symbols_cmds_CXX="$ltdll_cmds"
13367
 
  ;;
13368
 
  cygwin* | mingw*)
13369
 
    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'
13370
 
  ;;
13371
 
  *)
13372
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13373
 
  ;;
13374
 
  esac
13375
 
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13376
 
 
13377
 
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13378
 
$as_echo "$ld_shlibs_CXX" >&6; }
13379
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
13380
 
 
13381
 
#
13382
 
# Do we need to explicitly link libc?
13383
 
#
13384
 
case "x$archive_cmds_need_lc_CXX" in
13385
 
x|xyes)
13386
 
  # Assume -lc should be added
13387
 
  archive_cmds_need_lc_CXX=yes
13388
 
 
13389
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
13390
 
    case $archive_cmds_CXX in
13391
 
    *'~'*)
13392
 
      # FIXME: we may have to deal with multi-command sequences.
13393
 
      ;;
13394
 
    '$CC '*)
13395
 
      # Test whether the compiler implicitly links with -lc since on some
13396
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13397
 
      # to ld, don't add -lc before -lgcc.
13398
 
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13399
 
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13400
 
      $rm conftest*
13401
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13402
 
 
13403
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13404
 
  (eval $ac_compile) 2>&5
13405
 
  ac_status=$?
13406
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407
 
  (exit $ac_status); } 2>conftest.err; then
13408
 
        soname=conftest
13409
 
        lib=conftest
13410
 
        libobjs=conftest.$ac_objext
13411
 
        deplibs=
13412
 
        wl=$lt_prog_compiler_wl_CXX
13413
 
        pic_flag=$lt_prog_compiler_pic_CXX
13414
 
        compiler_flags=-v
13415
 
        linker_flags=-v
13416
 
        verstring=
13417
 
        output_objdir=.
13418
 
        libname=conftest
13419
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13420
 
        allow_undefined_flag_CXX=
13421
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13422
 
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13423
 
  ac_status=$?
13424
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425
 
  (exit $ac_status); }
13426
 
        then
13427
 
          archive_cmds_need_lc_CXX=no
13428
 
        else
13429
 
          archive_cmds_need_lc_CXX=yes
13430
 
        fi
13431
 
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13432
 
      else
13433
 
        cat conftest.err 1>&5
13434
 
      fi
13435
 
      $rm conftest*
13436
 
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13437
 
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13438
 
      ;;
13439
 
    esac
13440
 
  fi
13441
 
  ;;
13442
 
esac
13443
 
 
13444
 
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13445
 
$as_echo_n "checking dynamic linker characteristics... " >&6; }
13446
 
library_names_spec=
13447
 
libname_spec='lib$name'
13448
 
soname_spec=
13449
 
shrext_cmds=".so"
13450
 
postinstall_cmds=
13451
 
postuninstall_cmds=
13452
 
finish_cmds=
13453
 
finish_eval=
13454
 
shlibpath_var=
13455
 
shlibpath_overrides_runpath=unknown
13456
 
version_type=none
13457
 
dynamic_linker="$host_os ld.so"
13458
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13459
 
 
13460
 
need_lib_prefix=unknown
13461
 
hardcode_into_libs=no
13462
 
 
13463
 
# when you set need_version to no, make sure it does not cause -set_version
13464
 
# flags to be left without arguments
13465
 
need_version=unknown
13466
 
 
13467
 
case $host_os in
13468
 
aix3*)
13469
 
  version_type=linux
13470
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13471
 
  shlibpath_var=LIBPATH
13472
 
 
13473
 
  # AIX 3 has no versioning support, so we append a major version to the name.
13474
 
  soname_spec='${libname}${release}${shared_ext}$major'
13475
 
  ;;
13476
 
 
13477
 
aix[4-9]*)
13478
 
  version_type=linux
13479
 
  need_lib_prefix=no
13480
 
  need_version=no
13481
 
  hardcode_into_libs=yes
13482
 
  if test "$host_cpu" = ia64; then
13483
 
    # AIX 5 supports IA64
13484
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13485
 
    shlibpath_var=LD_LIBRARY_PATH
13486
 
  else
13487
 
    # With GCC up to 2.95.x, collect2 would create an import file
13488
 
    # for dependence libraries.  The import file would start with
13489
 
    # the line `#! .'.  This would cause the generated library to
13490
 
    # depend on `.', always an invalid library.  This was fixed in
13491
 
    # development snapshots of GCC prior to 3.0.
13492
 
    case $host_os in
13493
 
      aix4 | aix4.[01] | aix4.[01].*)
13494
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13495
 
           echo ' yes '
13496
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13497
 
        :
13498
 
      else
13499
 
        can_build_shared=no
13500
 
      fi
13501
 
      ;;
13502
 
    esac
13503
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13504
 
    # soname into executable. Probably we can add versioning support to
13505
 
    # collect2, so additional links can be useful in future.
13506
 
    if test "$aix_use_runtimelinking" = yes; then
13507
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13508
 
      # instead of lib<name>.a to let people know that these are not
13509
 
      # typical AIX shared libraries.
13510
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13511
 
    else
13512
 
      # We preserve .a as extension for shared libraries through AIX4.2
13513
 
      # and later when we are not doing run time linking.
13514
 
      library_names_spec='${libname}${release}.a $libname.a'
13515
 
      soname_spec='${libname}${release}${shared_ext}$major'
13516
 
    fi
13517
 
    shlibpath_var=LIBPATH
13518
 
  fi
13519
 
  ;;
13520
 
 
13521
 
amigaos*)
13522
 
  library_names_spec='$libname.ixlibrary $libname.a'
13523
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13524
 
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13525
 
  ;;
13526
 
 
13527
 
beos*)
13528
 
  library_names_spec='${libname}${shared_ext}'
13529
 
  dynamic_linker="$host_os ld.so"
13530
 
  shlibpath_var=LIBRARY_PATH
13531
 
  ;;
13532
 
 
13533
 
bsdi[45]*)
13534
 
  version_type=linux
13535
 
  need_version=no
13536
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13537
 
  soname_spec='${libname}${release}${shared_ext}$major'
13538
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13539
 
  shlibpath_var=LD_LIBRARY_PATH
13540
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13541
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13542
 
  # the default ld.so.conf also contains /usr/contrib/lib and
13543
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13544
 
  # libtool to hard-code these into programs
13545
 
  ;;
13546
 
 
13547
 
cygwin* | mingw* | pw32*)
13548
 
  version_type=windows
13549
 
  shrext_cmds=".dll"
13550
 
  need_version=no
13551
 
  need_lib_prefix=no
13552
 
 
13553
 
  case $GCC,$host_os in
13554
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
13555
 
    library_names_spec='$libname.dll.a'
13556
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13557
 
    postinstall_cmds='base_file=`basename \${file}`~
13558
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13559
 
      dldir=$destdir/`dirname \$dlpath`~
13560
 
      test -d \$dldir || mkdir -p \$dldir~
13561
 
      $install_prog $dir/$dlname \$dldir/$dlname~
13562
 
      chmod a+x \$dldir/$dlname'
13563
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13564
 
      dlpath=$dir/\$dldll~
13565
 
       $rm \$dlpath'
13566
 
    shlibpath_overrides_runpath=yes
13567
 
 
13568
 
    case $host_os in
13569
 
    cygwin*)
13570
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13571
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13572
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13573
 
      ;;
13574
 
    mingw*)
13575
 
      # MinGW DLLs use traditional 'lib' prefix
13576
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13577
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13578
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13579
 
        # It is most probably a Windows format PATH printed by
13580
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13581
 
        # path with ; separators, and with drive letters. We can handle the
13582
 
        # drive letters (cygwin fileutils understands them), so leave them,
13583
 
        # especially as we might pass files found there to a mingw objdump,
13584
 
        # which wouldn't understand a cygwinified path. Ahh.
13585
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13586
 
      else
13587
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13588
 
      fi
13589
 
      ;;
13590
 
    pw32*)
13591
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
13592
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13593
 
      ;;
13594
 
    esac
13595
 
    ;;
13596
 
 
13597
 
  *)
13598
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13599
 
    ;;
13600
 
  esac
13601
 
  dynamic_linker='Win32 ld.exe'
13602
 
  # FIXME: first we should search . and the directory the executable is in
13603
 
  shlibpath_var=PATH
13604
 
  ;;
13605
 
 
13606
 
darwin* | rhapsody*)
13607
 
  dynamic_linker="$host_os dyld"
13608
 
  version_type=darwin
13609
 
  need_lib_prefix=no
13610
 
  need_version=no
13611
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13612
 
  soname_spec='${libname}${release}${major}$shared_ext'
13613
 
  shlibpath_overrides_runpath=yes
13614
 
  shlibpath_var=DYLD_LIBRARY_PATH
13615
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13616
 
 
13617
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13618
 
  ;;
13619
 
 
13620
 
dgux*)
13621
 
  version_type=linux
13622
 
  need_lib_prefix=no
13623
 
  need_version=no
13624
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13625
 
  soname_spec='${libname}${release}${shared_ext}$major'
13626
 
  shlibpath_var=LD_LIBRARY_PATH
13627
 
  ;;
13628
 
 
13629
 
freebsd1*)
13630
 
  dynamic_linker=no
13631
 
  ;;
13632
 
 
13633
 
freebsd* | dragonfly*)
13634
 
  # DragonFly does not have aout.  When/if they implement a new
13635
 
  # versioning mechanism, adjust this.
13636
 
  if test -x /usr/bin/objformat; then
13637
 
    objformat=`/usr/bin/objformat`
13638
 
  else
13639
 
    case $host_os in
13640
 
    freebsd[123]*) objformat=aout ;;
13641
 
    *) objformat=elf ;;
13642
 
    esac
13643
 
  fi
13644
 
  version_type=freebsd-$objformat
13645
 
  case $version_type in
13646
 
    freebsd-elf*)
13647
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13648
 
      need_version=no
13649
 
      need_lib_prefix=no
13650
 
      ;;
13651
 
    freebsd-*)
13652
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13653
 
      need_version=yes
13654
 
      ;;
13655
 
  esac
13656
 
  shlibpath_var=LD_LIBRARY_PATH
13657
 
  case $host_os in
13658
 
  freebsd2*)
13659
 
    shlibpath_overrides_runpath=yes
13660
 
    ;;
13661
 
  freebsd3.[01]* | freebsdelf3.[01]*)
13662
 
    shlibpath_overrides_runpath=yes
13663
 
    hardcode_into_libs=yes
13664
 
    ;;
13665
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13666
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13667
 
    shlibpath_overrides_runpath=no
13668
 
    hardcode_into_libs=yes
13669
 
    ;;
13670
 
  *) # from 4.6 on, and DragonFly
13671
 
    shlibpath_overrides_runpath=yes
13672
 
    hardcode_into_libs=yes
13673
 
    ;;
13674
 
  esac
13675
 
  ;;
13676
 
 
13677
 
gnu*)
13678
 
  version_type=linux
13679
 
  need_lib_prefix=no
13680
 
  need_version=no
13681
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13682
 
  soname_spec='${libname}${release}${shared_ext}$major'
13683
 
  shlibpath_var=LD_LIBRARY_PATH
13684
 
  hardcode_into_libs=yes
13685
 
  ;;
13686
 
 
13687
 
hpux9* | hpux10* | hpux11*)
13688
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
13689
 
  # link against other versions.
13690
 
  version_type=sunos
13691
 
  need_lib_prefix=no
13692
 
  need_version=no
13693
 
  case $host_cpu in
13694
 
  ia64*)
13695
 
    shrext_cmds='.so'
13696
 
    hardcode_into_libs=yes
13697
 
    dynamic_linker="$host_os dld.so"
13698
 
    shlibpath_var=LD_LIBRARY_PATH
13699
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13700
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13701
 
    soname_spec='${libname}${release}${shared_ext}$major'
13702
 
    if test "X$HPUX_IA64_MODE" = X32; then
13703
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13704
 
    else
13705
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13706
 
    fi
13707
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13708
 
    ;;
13709
 
   hppa*64*)
13710
 
     shrext_cmds='.sl'
13711
 
     hardcode_into_libs=yes
13712
 
     dynamic_linker="$host_os dld.sl"
13713
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13714
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13715
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13716
 
     soname_spec='${libname}${release}${shared_ext}$major'
13717
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13718
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13719
 
     ;;
13720
 
   *)
13721
 
    shrext_cmds='.sl'
13722
 
    dynamic_linker="$host_os dld.sl"
13723
 
    shlibpath_var=SHLIB_PATH
13724
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13725
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13726
 
    soname_spec='${libname}${release}${shared_ext}$major'
13727
 
    ;;
13728
 
  esac
13729
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13730
 
  postinstall_cmds='chmod 555 $lib'
13731
 
  ;;
13732
 
 
13733
 
interix[3-9]*)
13734
 
  version_type=linux
13735
 
  need_lib_prefix=no
13736
 
  need_version=no
13737
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13738
 
  soname_spec='${libname}${release}${shared_ext}$major'
13739
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13740
 
  shlibpath_var=LD_LIBRARY_PATH
13741
 
  shlibpath_overrides_runpath=no
13742
 
  hardcode_into_libs=yes
13743
 
  ;;
13744
 
 
13745
 
irix5* | irix6* | nonstopux*)
13746
 
  case $host_os in
13747
 
    nonstopux*) version_type=nonstopux ;;
13748
 
    *)
13749
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
13750
 
                version_type=linux
13751
 
        else
13752
 
                version_type=irix
13753
 
        fi ;;
13754
 
  esac
13755
 
  need_lib_prefix=no
13756
 
  need_version=no
13757
 
  soname_spec='${libname}${release}${shared_ext}$major'
13758
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13759
 
  case $host_os in
13760
 
  irix5* | nonstopux*)
13761
 
    libsuff= shlibsuff=
13762
 
    ;;
13763
 
  *)
13764
 
    case $LD in # libtool.m4 will add one of these switches to LD
13765
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13766
 
      libsuff= shlibsuff= libmagic=32-bit;;
13767
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13768
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
13769
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13770
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13771
 
    *) libsuff= shlibsuff= libmagic=never-match;;
13772
 
    esac
13773
 
    ;;
13774
 
  esac
13775
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13776
 
  shlibpath_overrides_runpath=no
13777
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13778
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13779
 
  hardcode_into_libs=yes
13780
 
  ;;
13781
 
 
13782
 
# No shared lib support for Linux oldld, aout, or coff.
13783
 
linux*oldld* | linux*aout* | linux*coff*)
13784
 
  dynamic_linker=no
13785
 
  ;;
13786
 
 
13787
 
# This must be Linux ELF.
13788
 
linux* | k*bsd*-gnu)
13789
 
  version_type=linux
13790
 
  need_lib_prefix=no
13791
 
  need_version=no
13792
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13793
 
  soname_spec='${libname}${release}${shared_ext}$major'
13794
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13795
 
  shlibpath_var=LD_LIBRARY_PATH
13796
 
  shlibpath_overrides_runpath=no
13797
 
  # This implies no fast_install, which is unacceptable.
13798
 
  # Some rework will be needed to allow for fast_install
13799
 
  # before this can be enabled.
13800
 
  hardcode_into_libs=yes
13801
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13802
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13803
 
 
13804
 
  # Append ld.so.conf contents to the search path
13805
 
  if test -f /etc/ld.so.conf; then
13806
 
    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' ' '`
13807
 
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13808
 
  fi
13809
 
 
13810
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
13811
 
  # powerpc, because MkLinux only supported shared libraries with the
13812
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
13813
 
  # most powerpc-linux boxes support dynamic linking these days and
13814
 
  # people can always --disable-shared, the test was removed, and we
13815
 
  # assume the GNU/Linux dynamic linker is in use.
13816
 
  dynamic_linker='GNU/Linux ld.so'
13817
 
  ;;
13818
 
 
13819
 
netbsd*)
13820
 
  version_type=sunos
13821
 
  need_lib_prefix=no
13822
 
  need_version=no
13823
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13824
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13825
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13826
 
    dynamic_linker='NetBSD (a.out) ld.so'
13827
 
  else
13828
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13829
 
    soname_spec='${libname}${release}${shared_ext}$major'
13830
 
    dynamic_linker='NetBSD ld.elf_so'
13831
 
  fi
13832
 
  shlibpath_var=LD_LIBRARY_PATH
13833
 
  shlibpath_overrides_runpath=yes
13834
 
  hardcode_into_libs=yes
13835
 
  ;;
13836
 
 
13837
 
newsos6)
13838
 
  version_type=linux
13839
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13840
 
  shlibpath_var=LD_LIBRARY_PATH
13841
 
  shlibpath_overrides_runpath=yes
13842
 
  ;;
13843
 
 
13844
 
nto-qnx*)
13845
 
  version_type=linux
13846
 
  need_lib_prefix=no
13847
 
  need_version=no
13848
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13849
 
  soname_spec='${libname}${release}${shared_ext}$major'
13850
 
  shlibpath_var=LD_LIBRARY_PATH
13851
 
  shlibpath_overrides_runpath=yes
13852
 
  ;;
13853
 
 
13854
 
openbsd*)
13855
 
  version_type=sunos
13856
 
  sys_lib_dlsearch_path_spec="/usr/lib"
13857
 
  need_lib_prefix=no
13858
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13859
 
  case $host_os in
13860
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13861
 
    *)                         need_version=no  ;;
13862
 
  esac
13863
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13864
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13865
 
  shlibpath_var=LD_LIBRARY_PATH
13866
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13867
 
    case $host_os in
13868
 
      openbsd2.[89] | openbsd2.[89].*)
13869
 
        shlibpath_overrides_runpath=no
13870
 
        ;;
13871
 
      *)
13872
 
        shlibpath_overrides_runpath=yes
13873
 
        ;;
13874
 
      esac
13875
 
  else
13876
 
    shlibpath_overrides_runpath=yes
13877
 
  fi
13878
 
  ;;
13879
 
 
13880
 
os2*)
13881
 
  libname_spec='$name'
13882
 
  shrext_cmds=".dll"
13883
 
  need_lib_prefix=no
13884
 
  library_names_spec='$libname${shared_ext} $libname.a'
13885
 
  dynamic_linker='OS/2 ld.exe'
13886
 
  shlibpath_var=LIBPATH
13887
 
  ;;
13888
 
 
13889
 
osf3* | osf4* | osf5*)
13890
 
  version_type=osf
13891
 
  need_lib_prefix=no
13892
 
  need_version=no
13893
 
  soname_spec='${libname}${release}${shared_ext}$major'
13894
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13895
 
  shlibpath_var=LD_LIBRARY_PATH
13896
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13897
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13898
 
  ;;
13899
 
 
13900
 
rdos*)
13901
 
  dynamic_linker=no
13902
 
  ;;
13903
 
 
13904
 
solaris*)
13905
 
  version_type=linux
13906
 
  need_lib_prefix=no
13907
 
  need_version=no
13908
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13909
 
  soname_spec='${libname}${release}${shared_ext}$major'
13910
 
  shlibpath_var=LD_LIBRARY_PATH
13911
 
  shlibpath_overrides_runpath=yes
13912
 
  hardcode_into_libs=yes
13913
 
  # ldd complains unless libraries are executable
13914
 
  postinstall_cmds='chmod +x $lib'
13915
 
  ;;
13916
 
 
13917
 
sunos4*)
13918
 
  version_type=sunos
13919
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13920
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13921
 
  shlibpath_var=LD_LIBRARY_PATH
13922
 
  shlibpath_overrides_runpath=yes
13923
 
  if test "$with_gnu_ld" = yes; then
13924
 
    need_lib_prefix=no
13925
 
  fi
13926
 
  need_version=yes
13927
 
  ;;
13928
 
 
13929
 
sysv4 | sysv4.3*)
13930
 
  version_type=linux
13931
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13932
 
  soname_spec='${libname}${release}${shared_ext}$major'
13933
 
  shlibpath_var=LD_LIBRARY_PATH
13934
 
  case $host_vendor in
13935
 
    sni)
13936
 
      shlibpath_overrides_runpath=no
13937
 
      need_lib_prefix=no
13938
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
13939
 
      runpath_var=LD_RUN_PATH
13940
 
      ;;
13941
 
    siemens)
13942
 
      need_lib_prefix=no
13943
 
      ;;
13944
 
    motorola)
13945
 
      need_lib_prefix=no
13946
 
      need_version=no
13947
 
      shlibpath_overrides_runpath=no
13948
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13949
 
      ;;
13950
 
  esac
13951
 
  ;;
13952
 
 
13953
 
sysv4*MP*)
13954
 
  if test -d /usr/nec ;then
13955
 
    version_type=linux
13956
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13957
 
    soname_spec='$libname${shared_ext}.$major'
13958
 
    shlibpath_var=LD_LIBRARY_PATH
13959
 
  fi
13960
 
  ;;
13961
 
 
13962
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13963
 
  version_type=freebsd-elf
13964
 
  need_lib_prefix=no
13965
 
  need_version=no
13966
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13967
 
  soname_spec='${libname}${release}${shared_ext}$major'
13968
 
  shlibpath_var=LD_LIBRARY_PATH
13969
 
  hardcode_into_libs=yes
13970
 
  if test "$with_gnu_ld" = yes; then
13971
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13972
 
    shlibpath_overrides_runpath=no
13973
 
  else
13974
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13975
 
    shlibpath_overrides_runpath=yes
13976
 
    case $host_os in
13977
 
      sco3.2v5*)
13978
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13979
 
        ;;
13980
 
    esac
13981
 
  fi
13982
 
  sys_lib_dlsearch_path_spec='/usr/lib'
13983
 
  ;;
13984
 
 
13985
 
uts4*)
13986
 
  version_type=linux
13987
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13988
 
  soname_spec='${libname}${release}${shared_ext}$major'
13989
 
  shlibpath_var=LD_LIBRARY_PATH
13990
 
  ;;
13991
 
 
13992
 
*)
13993
 
  dynamic_linker=no
13994
 
  ;;
13995
 
esac
13996
 
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13997
 
$as_echo "$dynamic_linker" >&6; }
13998
 
test "$dynamic_linker" = no && can_build_shared=no
13999
 
 
14000
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14001
 
  $as_echo_n "(cached) " >&6
14002
 
else
14003
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
14004
 
fi
14005
 
 
14006
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14007
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14008
 
  $as_echo_n "(cached) " >&6
14009
 
else
14010
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
14011
 
fi
14012
 
 
14013
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14014
 
 
14015
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14016
 
if test "$GCC" = yes; then
14017
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14018
 
fi
14019
 
 
14020
 
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14021
 
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14022
 
hardcode_action_CXX=
14023
 
if test -n "$hardcode_libdir_flag_spec_CXX" || \
14024
 
   test -n "$runpath_var_CXX" || \
14025
 
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14026
 
 
14027
 
  # We can hardcode non-existant directories.
14028
 
  if test "$hardcode_direct_CXX" != no &&
14029
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14030
 
     # have to relink, otherwise we might link with an installed library
14031
 
     # when we should be linking with a yet-to-be-installed one
14032
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14033
 
     test "$hardcode_minus_L_CXX" != no; then
14034
 
    # Linking always hardcodes the temporary library directory.
14035
 
    hardcode_action_CXX=relink
14036
 
  else
14037
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14038
 
    hardcode_action_CXX=immediate
14039
 
  fi
14040
 
else
14041
 
  # We cannot hardcode anything, or else we can only hardcode existing
14042
 
  # directories.
14043
 
  hardcode_action_CXX=unsupported
14044
 
fi
14045
 
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14046
 
$as_echo "$hardcode_action_CXX" >&6; }
14047
 
 
14048
 
if test "$hardcode_action_CXX" = relink; then
14049
 
  # Fast installation is not supported
14050
 
  enable_fast_install=no
14051
 
elif test "$shlibpath_overrides_runpath" = yes ||
14052
 
     test "$enable_shared" = no; then
14053
 
  # Fast installation is not necessary
14054
 
  enable_fast_install=needless
14055
 
fi
14056
 
 
14057
 
 
14058
 
# The else clause should only fire when bootstrapping the
14059
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
14060
 
# with your package, and you will get complaints that there are
14061
 
# no rules to generate ltmain.sh.
14062
 
if test -f "$ltmain"; then
14063
 
  # See if we are running on zsh, and set the options which allow our commands through
14064
 
  # without removal of \ escapes.
14065
 
  if test -n "${ZSH_VERSION+set}" ; then
14066
 
    setopt NO_GLOB_SUBST
14067
 
  fi
14068
 
  # Now quote all the things that may contain metacharacters while being
14069
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14070
 
  # variables and quote the copies for generation of the libtool script.
14071
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14072
 
    SED SHELL STRIP \
14073
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14074
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14075
 
    deplibs_check_method reload_flag reload_cmds need_locks \
14076
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14077
 
    lt_cv_sys_global_symbol_to_c_name_address \
14078
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14079
 
    old_postinstall_cmds old_postuninstall_cmds \
14080
 
    compiler_CXX \
14081
 
    CC_CXX \
14082
 
    LD_CXX \
14083
 
    lt_prog_compiler_wl_CXX \
14084
 
    lt_prog_compiler_pic_CXX \
14085
 
    lt_prog_compiler_static_CXX \
14086
 
    lt_prog_compiler_no_builtin_flag_CXX \
14087
 
    export_dynamic_flag_spec_CXX \
14088
 
    thread_safe_flag_spec_CXX \
14089
 
    whole_archive_flag_spec_CXX \
14090
 
    enable_shared_with_static_runtimes_CXX \
14091
 
    old_archive_cmds_CXX \
14092
 
    old_archive_from_new_cmds_CXX \
14093
 
    predep_objects_CXX \
14094
 
    postdep_objects_CXX \
14095
 
    predeps_CXX \
14096
 
    postdeps_CXX \
14097
 
    compiler_lib_search_path_CXX \
14098
 
    compiler_lib_search_dirs_CXX \
14099
 
    archive_cmds_CXX \
14100
 
    archive_expsym_cmds_CXX \
14101
 
    postinstall_cmds_CXX \
14102
 
    postuninstall_cmds_CXX \
14103
 
    old_archive_from_expsyms_cmds_CXX \
14104
 
    allow_undefined_flag_CXX \
14105
 
    no_undefined_flag_CXX \
14106
 
    export_symbols_cmds_CXX \
14107
 
    hardcode_libdir_flag_spec_CXX \
14108
 
    hardcode_libdir_flag_spec_ld_CXX \
14109
 
    hardcode_libdir_separator_CXX \
14110
 
    hardcode_automatic_CXX \
14111
 
    module_cmds_CXX \
14112
 
    module_expsym_cmds_CXX \
14113
 
    lt_cv_prog_compiler_c_o_CXX \
14114
 
    fix_srcfile_path_CXX \
14115
 
    exclude_expsyms_CXX \
14116
 
    include_expsyms_CXX; do
14117
 
 
14118
 
    case $var in
14119
 
    old_archive_cmds_CXX | \
14120
 
    old_archive_from_new_cmds_CXX | \
14121
 
    archive_cmds_CXX | \
14122
 
    archive_expsym_cmds_CXX | \
14123
 
    module_cmds_CXX | \
14124
 
    module_expsym_cmds_CXX | \
14125
 
    old_archive_from_expsyms_cmds_CXX | \
14126
 
    export_symbols_cmds_CXX | \
14127
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14128
 
    postinstall_cmds | postuninstall_cmds | \
14129
 
    old_postinstall_cmds | old_postuninstall_cmds | \
14130
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14131
 
      # Double-quote double-evaled strings.
14132
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14133
 
      ;;
14134
 
    *)
14135
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14136
 
      ;;
14137
 
    esac
14138
 
  done
14139
 
 
14140
 
  case $lt_echo in
14141
 
  *'\$0 --fallback-echo"')
14142
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14143
 
    ;;
14144
 
  esac
14145
 
 
14146
 
cfgfile="$ofile"
14147
 
 
14148
 
  cat <<__EOF__ >> "$cfgfile"
14149
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14150
 
 
14151
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14152
 
 
14153
 
# Shell to use when invoking shell scripts.
14154
 
SHELL=$lt_SHELL
14155
 
 
14156
 
# Whether or not to build shared libraries.
14157
 
build_libtool_libs=$enable_shared
14158
 
 
14159
 
# Whether or not to build static libraries.
14160
 
build_old_libs=$enable_static
14161
 
 
14162
 
# Whether or not to add -lc for building shared libraries.
14163
 
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14164
 
 
14165
 
# Whether or not to disallow shared libs when runtime libs are static
14166
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14167
 
 
14168
 
# Whether or not to optimize for fast installation.
14169
 
fast_install=$enable_fast_install
14170
 
 
14171
 
# The host system.
14172
 
host_alias=$host_alias
14173
 
host=$host
14174
 
host_os=$host_os
14175
 
 
14176
 
# The build system.
14177
 
build_alias=$build_alias
14178
 
build=$build
14179
 
build_os=$build_os
14180
 
 
14181
 
# An echo program that does not interpret backslashes.
14182
 
echo=$lt_echo
14183
 
 
14184
 
# The archiver.
14185
 
AR=$lt_AR
14186
 
AR_FLAGS=$lt_AR_FLAGS
14187
 
 
14188
 
# A C compiler.
14189
 
LTCC=$lt_LTCC
14190
 
 
14191
 
# LTCC compiler flags.
14192
 
LTCFLAGS=$lt_LTCFLAGS
14193
 
 
14194
 
# A language-specific compiler.
14195
 
CC=$lt_compiler_CXX
14196
 
 
14197
 
# Is the compiler the GNU C compiler?
14198
 
with_gcc=$GCC_CXX
14199
 
 
14200
 
# An ERE matcher.
14201
 
EGREP=$lt_EGREP
14202
 
 
14203
 
# The linker used to build libraries.
14204
 
LD=$lt_LD_CXX
14205
 
 
14206
 
# Whether we need hard or soft links.
14207
 
LN_S=$lt_LN_S
14208
 
 
14209
 
# A BSD-compatible nm program.
14210
 
NM=$lt_NM
14211
 
 
14212
 
# A symbol stripping program
14213
 
STRIP=$lt_STRIP
14214
 
 
14215
 
# Used to examine libraries when file_magic_cmd begins "file"
14216
 
MAGIC_CMD=$MAGIC_CMD
14217
 
 
14218
 
# Used on cygwin: DLL creation program.
14219
 
DLLTOOL="$DLLTOOL"
14220
 
 
14221
 
# Used on cygwin: object dumper.
14222
 
OBJDUMP="$OBJDUMP"
14223
 
 
14224
 
# Used on cygwin: assembler.
14225
 
AS="$AS"
14226
 
 
14227
 
# The name of the directory that contains temporary libtool files.
14228
 
objdir=$objdir
14229
 
 
14230
 
# How to create reloadable object files.
14231
 
reload_flag=$lt_reload_flag
14232
 
reload_cmds=$lt_reload_cmds
14233
 
 
14234
 
# How to pass a linker flag through the compiler.
14235
 
wl=$lt_lt_prog_compiler_wl_CXX
14236
 
 
14237
 
# Object file suffix (normally "o").
14238
 
objext="$ac_objext"
14239
 
 
14240
 
# Old archive suffix (normally "a").
14241
 
libext="$libext"
14242
 
 
14243
 
# Shared library suffix (normally ".so").
14244
 
shrext_cmds='$shrext_cmds'
14245
 
 
14246
 
# Executable file suffix (normally "").
14247
 
exeext="$exeext"
14248
 
 
14249
 
# Additional compiler flags for building library objects.
14250
 
pic_flag=$lt_lt_prog_compiler_pic_CXX
14251
 
pic_mode=$pic_mode
14252
 
 
14253
 
# What is the maximum length of a command?
14254
 
max_cmd_len=$lt_cv_sys_max_cmd_len
14255
 
 
14256
 
# Does compiler simultaneously support -c and -o options?
14257
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14258
 
 
14259
 
# Must we lock files when doing compilation?
14260
 
need_locks=$lt_need_locks
14261
 
 
14262
 
# Do we need the lib prefix for modules?
14263
 
need_lib_prefix=$need_lib_prefix
14264
 
 
14265
 
# Do we need a version for libraries?
14266
 
need_version=$need_version
14267
 
 
14268
 
# Whether dlopen is supported.
14269
 
dlopen_support=$enable_dlopen
14270
 
 
14271
 
# Whether dlopen of programs is supported.
14272
 
dlopen_self=$enable_dlopen_self
14273
 
 
14274
 
# Whether dlopen of statically linked programs is supported.
14275
 
dlopen_self_static=$enable_dlopen_self_static
14276
 
 
14277
 
# Compiler flag to prevent dynamic linking.
14278
 
link_static_flag=$lt_lt_prog_compiler_static_CXX
14279
 
 
14280
 
# Compiler flag to turn off builtin functions.
14281
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14282
 
 
14283
 
# Compiler flag to allow reflexive dlopens.
14284
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14285
 
 
14286
 
# Compiler flag to generate shared objects directly from archives.
14287
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14288
 
 
14289
 
# Compiler flag to generate thread-safe objects.
14290
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14291
 
 
14292
 
# Library versioning type.
14293
 
version_type=$version_type
14294
 
 
14295
 
# Format of library name prefix.
14296
 
libname_spec=$lt_libname_spec
14297
 
 
14298
 
# List of archive names.  First name is the real one, the rest are links.
14299
 
# The last name is the one that the linker finds with -lNAME.
14300
 
library_names_spec=$lt_library_names_spec
14301
 
 
14302
 
# The coded name of the library, if different from the real name.
14303
 
soname_spec=$lt_soname_spec
14304
 
 
14305
 
# Commands used to build and install an old-style archive.
14306
 
RANLIB=$lt_RANLIB
14307
 
old_archive_cmds=$lt_old_archive_cmds_CXX
14308
 
old_postinstall_cmds=$lt_old_postinstall_cmds
14309
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14310
 
 
14311
 
# Create an old-style archive from a shared archive.
14312
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14313
 
 
14314
 
# Create a temporary old-style archive to link instead of a shared archive.
14315
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14316
 
 
14317
 
# Commands used to build and install a shared archive.
14318
 
archive_cmds=$lt_archive_cmds_CXX
14319
 
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14320
 
postinstall_cmds=$lt_postinstall_cmds
14321
 
postuninstall_cmds=$lt_postuninstall_cmds
14322
 
 
14323
 
# Commands used to build a loadable module (assumed same as above if empty)
14324
 
module_cmds=$lt_module_cmds_CXX
14325
 
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14326
 
 
14327
 
# Commands to strip libraries.
14328
 
old_striplib=$lt_old_striplib
14329
 
striplib=$lt_striplib
14330
 
 
14331
 
# Dependencies to place before the objects being linked to create a
14332
 
# shared library.
14333
 
predep_objects=$lt_predep_objects_CXX
14334
 
 
14335
 
# Dependencies to place after the objects being linked to create a
14336
 
# shared library.
14337
 
postdep_objects=$lt_postdep_objects_CXX
14338
 
 
14339
 
# Dependencies to place before the objects being linked to create a
14340
 
# shared library.
14341
 
predeps=$lt_predeps_CXX
14342
 
 
14343
 
# Dependencies to place after the objects being linked to create a
14344
 
# shared library.
14345
 
postdeps=$lt_postdeps_CXX
14346
 
 
14347
 
# The directories searched by this compiler when creating a shared
14348
 
# library
14349
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14350
 
 
14351
 
# The library search path used internally by the compiler when linking
14352
 
# a shared library.
14353
 
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14354
 
 
14355
 
# Method to check whether dependent libraries are shared objects.
14356
 
deplibs_check_method=$lt_deplibs_check_method
14357
 
 
14358
 
# Command to use when deplibs_check_method == file_magic.
14359
 
file_magic_cmd=$lt_file_magic_cmd
14360
 
 
14361
 
# Flag that allows shared libraries with undefined symbols to be built.
14362
 
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14363
 
 
14364
 
# Flag that forces no undefined symbols.
14365
 
no_undefined_flag=$lt_no_undefined_flag_CXX
14366
 
 
14367
 
# Commands used to finish a libtool library installation in a directory.
14368
 
finish_cmds=$lt_finish_cmds
14369
 
 
14370
 
# Same as above, but a single script fragment to be evaled but not shown.
14371
 
finish_eval=$lt_finish_eval
14372
 
 
14373
 
# Take the output of nm and produce a listing of raw symbols and C names.
14374
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14375
 
 
14376
 
# Transform the output of nm in a proper C declaration
14377
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14378
 
 
14379
 
# Transform the output of nm in a C name address pair
14380
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14381
 
 
14382
 
# This is the shared library runtime path variable.
14383
 
runpath_var=$runpath_var
14384
 
 
14385
 
# This is the shared library path variable.
14386
 
shlibpath_var=$shlibpath_var
14387
 
 
14388
 
# Is shlibpath searched before the hard-coded library search path?
14389
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14390
 
 
14391
 
# How to hardcode a shared library path into an executable.
14392
 
hardcode_action=$hardcode_action_CXX
14393
 
 
14394
 
# Whether we should hardcode library paths into libraries.
14395
 
hardcode_into_libs=$hardcode_into_libs
14396
 
 
14397
 
# Flag to hardcode \$libdir into a binary during linking.
14398
 
# This must work even if \$libdir does not exist.
14399
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14400
 
 
14401
 
# If ld is used when linking, flag to hardcode \$libdir into
14402
 
# a binary during linking. This must work even if \$libdir does
14403
 
# not exist.
14404
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14405
 
 
14406
 
# Whether we need a single -rpath flag with a separated argument.
14407
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14408
 
 
14409
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14410
 
# resulting binary.
14411
 
hardcode_direct=$hardcode_direct_CXX
14412
 
 
14413
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14414
 
# resulting binary.
14415
 
hardcode_minus_L=$hardcode_minus_L_CXX
14416
 
 
14417
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14418
 
# the resulting binary.
14419
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14420
 
 
14421
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
14422
 
# and all subsequent libraries and executables linked against it.
14423
 
hardcode_automatic=$hardcode_automatic_CXX
14424
 
 
14425
 
# Variables whose values should be saved in libtool wrapper scripts and
14426
 
# restored at relink time.
14427
 
variables_saved_for_relink="$variables_saved_for_relink"
14428
 
 
14429
 
# Whether libtool must link a program against all its dependency libraries.
14430
 
link_all_deplibs=$link_all_deplibs_CXX
14431
 
 
14432
 
# Compile-time system search path for libraries
14433
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14434
 
 
14435
 
# Run-time system search path for libraries
14436
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14437
 
 
14438
 
# Fix the shell variable \$srcfile for the compiler.
14439
 
fix_srcfile_path=$lt_fix_srcfile_path
14440
 
 
14441
 
# Set to yes if exported symbols are required.
14442
 
always_export_symbols=$always_export_symbols_CXX
14443
 
 
14444
 
# The commands to list exported symbols.
14445
 
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14446
 
 
14447
 
# The commands to extract the exported symbol list from a shared archive.
14448
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14449
 
 
14450
 
# Symbols that should not be listed in the preloaded symbols.
14451
 
exclude_expsyms=$lt_exclude_expsyms_CXX
14452
 
 
14453
 
# Symbols that must always be exported.
14454
 
include_expsyms=$lt_include_expsyms_CXX
14455
 
 
14456
 
# ### END LIBTOOL TAG CONFIG: $tagname
14457
 
 
14458
 
__EOF__
14459
 
 
14460
 
 
14461
 
else
14462
 
  # If there is no Makefile yet, we rely on a make rule to execute
14463
 
  # `config.status --recheck' to rerun these tests and create the
14464
 
  # libtool script then.
14465
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14466
 
  if test -f "$ltmain_in"; then
14467
 
    test -f Makefile && make "$ltmain"
14468
 
  fi
14469
 
fi
14470
 
 
14471
 
 
14472
 
ac_ext=c
14473
 
ac_cpp='$CPP $CPPFLAGS'
14474
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14475
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14476
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14477
 
 
14478
 
CC=$lt_save_CC
14479
 
LDCXX=$LD
14480
 
LD=$lt_save_LD
14481
 
GCC=$lt_save_GCC
14482
 
with_gnu_ldcxx=$with_gnu_ld
14483
 
with_gnu_ld=$lt_save_with_gnu_ld
14484
 
lt_cv_path_LDCXX=$lt_cv_path_LD
14485
 
lt_cv_path_LD=$lt_save_path_LD
14486
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14487
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14488
 
 
14489
 
        else
14490
 
          tagname=""
14491
 
        fi
14492
 
        ;;
14493
 
 
14494
 
      F77)
14495
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
14496
 
 
14497
 
ac_ext=f
14498
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14499
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14500
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14501
 
 
14502
 
 
14503
 
archive_cmds_need_lc_F77=no
14504
 
allow_undefined_flag_F77=
14505
 
always_export_symbols_F77=no
14506
 
archive_expsym_cmds_F77=
14507
 
export_dynamic_flag_spec_F77=
14508
 
hardcode_direct_F77=no
14509
 
hardcode_libdir_flag_spec_F77=
14510
 
hardcode_libdir_flag_spec_ld_F77=
14511
 
hardcode_libdir_separator_F77=
14512
 
hardcode_minus_L_F77=no
14513
 
hardcode_automatic_F77=no
14514
 
module_cmds_F77=
14515
 
module_expsym_cmds_F77=
14516
 
link_all_deplibs_F77=unknown
14517
 
old_archive_cmds_F77=$old_archive_cmds
14518
 
no_undefined_flag_F77=
14519
 
whole_archive_flag_spec_F77=
14520
 
enable_shared_with_static_runtimes_F77=no
14521
 
 
14522
 
# Source file extension for f77 test sources.
14523
 
ac_ext=f
14524
 
 
14525
 
# Object file extension for compiled f77 test sources.
14526
 
objext=o
14527
 
objext_F77=$objext
14528
 
 
14529
 
# Code to be used in simple compile tests
14530
 
lt_simple_compile_test_code="\
14531
 
      subroutine t
14532
 
      return
14533
 
      end
14534
 
"
14535
 
 
14536
 
# Code to be used in simple link tests
14537
 
lt_simple_link_test_code="\
14538
 
      program t
14539
 
      end
14540
 
"
14541
 
 
14542
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14543
 
 
14544
 
# If no C compiler was specified, use CC.
14545
 
LTCC=${LTCC-"$CC"}
14546
 
 
14547
 
# If no C compiler flags were specified, use CFLAGS.
14548
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14549
 
 
14550
 
# Allow CC to be a program name with arguments.
14551
 
compiler=$CC
14552
 
 
14553
 
 
14554
 
# save warnings/boilerplate of simple test code
14555
 
ac_outfile=conftest.$ac_objext
14556
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14557
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14558
 
_lt_compiler_boilerplate=`cat conftest.err`
14559
 
$rm conftest*
14560
 
 
14561
 
ac_outfile=conftest.$ac_objext
14562
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14563
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14564
 
_lt_linker_boilerplate=`cat conftest.err`
14565
 
$rm -r conftest*
14566
 
 
14567
 
 
14568
 
# Allow CC to be a program name with arguments.
14569
 
lt_save_CC="$CC"
14570
 
CC=${F77-"f77"}
14571
 
compiler=$CC
14572
 
compiler_F77=$CC
14573
 
for cc_temp in $compiler""; do
14574
 
  case $cc_temp in
14575
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14576
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14577
 
    \-*) ;;
14578
 
    *) break;;
14579
 
  esac
14580
 
done
14581
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14582
 
 
14583
 
 
14584
 
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14585
 
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14586
 
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14587
 
$as_echo "$can_build_shared" >&6; }
14588
 
 
14589
 
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14590
 
$as_echo_n "checking whether to build shared libraries... " >&6; }
14591
 
test "$can_build_shared" = "no" && enable_shared=no
14592
 
 
14593
 
# On AIX, shared libraries and static libraries use the same namespace, and
14594
 
# are all built from PIC.
14595
 
case $host_os in
14596
 
aix3*)
14597
 
  test "$enable_shared" = yes && enable_static=no
14598
 
  if test -n "$RANLIB"; then
14599
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14600
 
    postinstall_cmds='$RANLIB $lib'
14601
 
  fi
14602
 
  ;;
14603
 
aix[4-9]*)
14604
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14605
 
    test "$enable_shared" = yes && enable_static=no
14606
 
  fi
14607
 
  ;;
14608
 
esac
14609
 
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14610
 
$as_echo "$enable_shared" >&6; }
14611
 
 
14612
 
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14613
 
$as_echo_n "checking whether to build static libraries... " >&6; }
14614
 
# Make sure either enable_shared or enable_static is yes.
14615
 
test "$enable_shared" = yes || enable_static=yes
14616
 
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14617
 
$as_echo "$enable_static" >&6; }
14618
 
 
14619
 
GCC_F77="$G77"
14620
 
LD_F77="$LD"
14621
 
 
14622
 
lt_prog_compiler_wl_F77=
14623
 
lt_prog_compiler_pic_F77=
14624
 
lt_prog_compiler_static_F77=
14625
 
 
14626
 
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14627
 
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14628
 
 
14629
 
  if test "$GCC" = yes; then
14630
 
    lt_prog_compiler_wl_F77='-Wl,'
14631
 
    lt_prog_compiler_static_F77='-static'
14632
 
 
14633
 
    case $host_os in
14634
 
      aix*)
14635
 
      # All AIX code is PIC.
14636
 
      if test "$host_cpu" = ia64; then
14637
 
        # AIX 5 now supports IA64 processor
14638
 
        lt_prog_compiler_static_F77='-Bstatic'
14639
 
      fi
14640
 
      ;;
14641
 
 
14642
 
    amigaos*)
14643
 
      # FIXME: we need at least 68020 code to build shared libraries, but
14644
 
      # adding the `-m68020' flag to GCC prevents building anything better,
14645
 
      # like `-m68040'.
14646
 
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14647
 
      ;;
14648
 
 
14649
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14650
 
      # PIC is the default for these OSes.
14651
 
      ;;
14652
 
 
14653
 
    mingw* | cygwin* | pw32* | os2*)
14654
 
      # This hack is so that the source file can tell whether it is being
14655
 
      # built for inclusion in a dll (and should export symbols for example).
14656
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14657
 
      # (--disable-auto-import) libraries
14658
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14659
 
      ;;
14660
 
 
14661
 
    darwin* | rhapsody*)
14662
 
      # PIC is the default on this platform
14663
 
      # Common symbols not allowed in MH_DYLIB files
14664
 
      lt_prog_compiler_pic_F77='-fno-common'
14665
 
      ;;
14666
 
 
14667
 
    interix[3-9]*)
14668
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14669
 
      # Instead, we relocate shared libraries at runtime.
14670
 
      ;;
14671
 
 
14672
 
    msdosdjgpp*)
14673
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
14674
 
      # on systems that don't support them.
14675
 
      lt_prog_compiler_can_build_shared_F77=no
14676
 
      enable_shared=no
14677
 
      ;;
14678
 
 
14679
 
    sysv4*MP*)
14680
 
      if test -d /usr/nec; then
14681
 
        lt_prog_compiler_pic_F77=-Kconform_pic
14682
 
      fi
14683
 
      ;;
14684
 
 
14685
 
    hpux*)
14686
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14687
 
      # not for PA HP-UX.
14688
 
      case $host_cpu in
14689
 
      hppa*64*|ia64*)
14690
 
        # +Z the default
14691
 
        ;;
14692
 
      *)
14693
 
        lt_prog_compiler_pic_F77='-fPIC'
14694
 
        ;;
14695
 
      esac
14696
 
      ;;
14697
 
 
14698
 
    *)
14699
 
      lt_prog_compiler_pic_F77='-fPIC'
14700
 
      ;;
14701
 
    esac
14702
 
  else
14703
 
    # PORTME Check for flag to pass linker flags through the system compiler.
14704
 
    case $host_os in
14705
 
    aix*)
14706
 
      lt_prog_compiler_wl_F77='-Wl,'
14707
 
      if test "$host_cpu" = ia64; then
14708
 
        # AIX 5 now supports IA64 processor
14709
 
        lt_prog_compiler_static_F77='-Bstatic'
14710
 
      else
14711
 
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14712
 
      fi
14713
 
      ;;
14714
 
      darwin*)
14715
 
        # PIC is the default on this platform
14716
 
        # Common symbols not allowed in MH_DYLIB files
14717
 
       case $cc_basename in
14718
 
         xlc*)
14719
 
         lt_prog_compiler_pic_F77='-qnocommon'
14720
 
         lt_prog_compiler_wl_F77='-Wl,'
14721
 
         ;;
14722
 
       esac
14723
 
       ;;
14724
 
 
14725
 
    mingw* | cygwin* | pw32* | os2*)
14726
 
      # This hack is so that the source file can tell whether it is being
14727
 
      # built for inclusion in a dll (and should export symbols for example).
14728
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14729
 
      ;;
14730
 
 
14731
 
    hpux9* | hpux10* | hpux11*)
14732
 
      lt_prog_compiler_wl_F77='-Wl,'
14733
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14734
 
      # not for PA HP-UX.
14735
 
      case $host_cpu in
14736
 
      hppa*64*|ia64*)
14737
 
        # +Z the default
14738
 
        ;;
14739
 
      *)
14740
 
        lt_prog_compiler_pic_F77='+Z'
14741
 
        ;;
14742
 
      esac
14743
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14744
 
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14745
 
      ;;
14746
 
 
14747
 
    irix5* | irix6* | nonstopux*)
14748
 
      lt_prog_compiler_wl_F77='-Wl,'
14749
 
      # PIC (with -KPIC) is the default.
14750
 
      lt_prog_compiler_static_F77='-non_shared'
14751
 
      ;;
14752
 
 
14753
 
    newsos6)
14754
 
      lt_prog_compiler_pic_F77='-KPIC'
14755
 
      lt_prog_compiler_static_F77='-Bstatic'
14756
 
      ;;
14757
 
 
14758
 
    linux* | k*bsd*-gnu)
14759
 
      case $cc_basename in
14760
 
      icc* | ecc*)
14761
 
        lt_prog_compiler_wl_F77='-Wl,'
14762
 
        lt_prog_compiler_pic_F77='-KPIC'
14763
 
        lt_prog_compiler_static_F77='-static'
14764
 
        ;;
14765
 
      pgcc* | pgf77* | pgf90* | pgf95*)
14766
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
14767
 
        # which looks to be a dead project)
14768
 
        lt_prog_compiler_wl_F77='-Wl,'
14769
 
        lt_prog_compiler_pic_F77='-fpic'
14770
 
        lt_prog_compiler_static_F77='-Bstatic'
14771
 
        ;;
14772
 
      ccc*)
14773
 
        lt_prog_compiler_wl_F77='-Wl,'
14774
 
        # All Alpha code is PIC.
14775
 
        lt_prog_compiler_static_F77='-non_shared'
14776
 
        ;;
14777
 
      *)
14778
 
        case `$CC -V 2>&1 | sed 5q` in
14779
 
        *Sun\ C*)
14780
 
          # Sun C 5.9
14781
 
          lt_prog_compiler_pic_F77='-KPIC'
14782
 
          lt_prog_compiler_static_F77='-Bstatic'
14783
 
          lt_prog_compiler_wl_F77='-Wl,'
14784
 
          ;;
14785
 
        *Sun\ F*)
14786
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
14787
 
          lt_prog_compiler_pic_F77='-KPIC'
14788
 
          lt_prog_compiler_static_F77='-Bstatic'
14789
 
          lt_prog_compiler_wl_F77=''
14790
 
          ;;
14791
 
        esac
14792
 
        ;;
14793
 
      esac
14794
 
      ;;
14795
 
 
14796
 
    osf3* | osf4* | osf5*)
14797
 
      lt_prog_compiler_wl_F77='-Wl,'
14798
 
      # All OSF/1 code is PIC.
14799
 
      lt_prog_compiler_static_F77='-non_shared'
14800
 
      ;;
14801
 
 
14802
 
    rdos*)
14803
 
      lt_prog_compiler_static_F77='-non_shared'
14804
 
      ;;
14805
 
 
14806
 
    solaris*)
14807
 
      lt_prog_compiler_pic_F77='-KPIC'
14808
 
      lt_prog_compiler_static_F77='-Bstatic'
14809
 
      case $cc_basename in
14810
 
      f77* | f90* | f95*)
14811
 
        lt_prog_compiler_wl_F77='-Qoption ld ';;
14812
 
      *)
14813
 
        lt_prog_compiler_wl_F77='-Wl,';;
14814
 
      esac
14815
 
      ;;
14816
 
 
14817
 
    sunos4*)
14818
 
      lt_prog_compiler_wl_F77='-Qoption ld '
14819
 
      lt_prog_compiler_pic_F77='-PIC'
14820
 
      lt_prog_compiler_static_F77='-Bstatic'
14821
 
      ;;
14822
 
 
14823
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
14824
 
      lt_prog_compiler_wl_F77='-Wl,'
14825
 
      lt_prog_compiler_pic_F77='-KPIC'
14826
 
      lt_prog_compiler_static_F77='-Bstatic'
14827
 
      ;;
14828
 
 
14829
 
    sysv4*MP*)
14830
 
      if test -d /usr/nec ;then
14831
 
        lt_prog_compiler_pic_F77='-Kconform_pic'
14832
 
        lt_prog_compiler_static_F77='-Bstatic'
14833
 
      fi
14834
 
      ;;
14835
 
 
14836
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14837
 
      lt_prog_compiler_wl_F77='-Wl,'
14838
 
      lt_prog_compiler_pic_F77='-KPIC'
14839
 
      lt_prog_compiler_static_F77='-Bstatic'
14840
 
      ;;
14841
 
 
14842
 
    unicos*)
14843
 
      lt_prog_compiler_wl_F77='-Wl,'
14844
 
      lt_prog_compiler_can_build_shared_F77=no
14845
 
      ;;
14846
 
 
14847
 
    uts4*)
14848
 
      lt_prog_compiler_pic_F77='-pic'
14849
 
      lt_prog_compiler_static_F77='-Bstatic'
14850
 
      ;;
14851
 
 
14852
 
    *)
14853
 
      lt_prog_compiler_can_build_shared_F77=no
14854
 
      ;;
14855
 
    esac
14856
 
  fi
14857
 
 
14858
 
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14859
 
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14860
 
 
14861
 
#
14862
 
# Check to make sure the PIC flag actually works.
14863
 
#
14864
 
if test -n "$lt_prog_compiler_pic_F77"; then
14865
 
 
14866
 
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14867
 
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14868
 
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14869
 
  $as_echo_n "(cached) " >&6
14870
 
else
14871
 
  lt_cv_prog_compiler_pic_works_F77=no
14872
 
  ac_outfile=conftest.$ac_objext
14873
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14874
 
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14875
 
   # Insert the option either (1) after the last *FLAGS variable, or
14876
 
   # (2) before a word containing "conftest.", or (3) at the end.
14877
 
   # Note that $ac_compile itself does not contain backslashes and begins
14878
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14879
 
   # The option is referenced via a variable to avoid confusing sed.
14880
 
   lt_compile=`echo "$ac_compile" | $SED \
14881
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14882
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14883
 
   -e 's:$: $lt_compiler_flag:'`
14884
 
   (eval echo "\"\$as_me:14884: $lt_compile\"" >&5)
14885
 
   (eval "$lt_compile" 2>conftest.err)
14886
 
   ac_status=$?
14887
 
   cat conftest.err >&5
14888
 
   echo "$as_me:14888: \$? = $ac_status" >&5
14889
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
14890
 
     # The compiler can only warn and ignore the option if not recognized
14891
 
     # So say no if there are warnings other than the usual output.
14892
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14893
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14894
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14895
 
       lt_cv_prog_compiler_pic_works_F77=yes
14896
 
     fi
14897
 
   fi
14898
 
   $rm conftest*
14899
 
 
14900
 
fi
14901
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14902
 
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14903
 
 
14904
 
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14905
 
    case $lt_prog_compiler_pic_F77 in
14906
 
     "" | " "*) ;;
14907
 
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14908
 
     esac
14909
 
else
14910
 
    lt_prog_compiler_pic_F77=
14911
 
     lt_prog_compiler_can_build_shared_F77=no
14912
 
fi
14913
 
 
14914
 
fi
14915
 
case $host_os in
14916
 
  # For platforms which do not support PIC, -DPIC is meaningless:
14917
 
  *djgpp*)
14918
 
    lt_prog_compiler_pic_F77=
14919
 
    ;;
14920
 
  *)
14921
 
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14922
 
    ;;
14923
 
esac
14924
 
 
14925
 
#
14926
 
# Check to make sure the static flag actually works.
14927
 
#
14928
 
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14929
 
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14930
 
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14931
 
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14932
 
  $as_echo_n "(cached) " >&6
14933
 
else
14934
 
  lt_cv_prog_compiler_static_works_F77=no
14935
 
   save_LDFLAGS="$LDFLAGS"
14936
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14937
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14938
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14939
 
     # The linker can only warn and ignore the option if not recognized
14940
 
     # So say no if there are warnings
14941
 
     if test -s conftest.err; then
14942
 
       # Append any errors to the config.log.
14943
 
       cat conftest.err 1>&5
14944
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14945
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14946
 
       if diff conftest.exp conftest.er2 >/dev/null; then
14947
 
         lt_cv_prog_compiler_static_works_F77=yes
14948
 
       fi
14949
 
     else
14950
 
       lt_cv_prog_compiler_static_works_F77=yes
14951
 
     fi
14952
 
   fi
14953
 
   $rm -r conftest*
14954
 
   LDFLAGS="$save_LDFLAGS"
14955
 
 
14956
 
fi
14957
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14958
 
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14959
 
 
14960
 
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14961
 
    :
14962
 
else
14963
 
    lt_prog_compiler_static_F77=
14964
 
fi
14965
 
 
14966
 
 
14967
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14968
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14969
 
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14970
 
  $as_echo_n "(cached) " >&6
14971
 
else
14972
 
  lt_cv_prog_compiler_c_o_F77=no
14973
 
   $rm -r conftest 2>/dev/null
14974
 
   mkdir conftest
14975
 
   cd conftest
14976
 
   mkdir out
14977
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14978
 
 
14979
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
14980
 
   # Insert the option either (1) after the last *FLAGS variable, or
14981
 
   # (2) before a word containing "conftest.", or (3) at the end.
14982
 
   # Note that $ac_compile itself does not contain backslashes and begins
14983
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14984
 
   lt_compile=`echo "$ac_compile" | $SED \
14985
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14986
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14987
 
   -e 's:$: $lt_compiler_flag:'`
14988
 
   (eval echo "\"\$as_me:14988: $lt_compile\"" >&5)
14989
 
   (eval "$lt_compile" 2>out/conftest.err)
14990
 
   ac_status=$?
14991
 
   cat out/conftest.err >&5
14992
 
   echo "$as_me:14992: \$? = $ac_status" >&5
14993
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14994
 
   then
14995
 
     # The compiler can only warn and ignore the option if not recognized
14996
 
     # So say no if there are warnings
14997
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14998
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14999
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15000
 
       lt_cv_prog_compiler_c_o_F77=yes
15001
 
     fi
15002
 
   fi
15003
 
   chmod u+w . 2>&5
15004
 
   $rm conftest*
15005
 
   # SGI C++ compiler will create directory out/ii_files/ for
15006
 
   # template instantiation
15007
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15008
 
   $rm out/* && rmdir out
15009
 
   cd ..
15010
 
   rmdir conftest
15011
 
   $rm conftest*
15012
 
 
15013
 
fi
15014
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15015
 
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
15016
 
 
15017
 
 
15018
 
hard_links="nottested"
15019
 
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15020
 
  # do not overwrite the value of need_locks provided by the user
15021
 
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15022
 
$as_echo_n "checking if we can lock with hard links... " >&6; }
15023
 
  hard_links=yes
15024
 
  $rm conftest*
15025
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15026
 
  touch conftest.a
15027
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
15028
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15029
 
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15030
 
$as_echo "$hard_links" >&6; }
15031
 
  if test "$hard_links" = no; then
15032
 
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15033
 
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15034
 
    need_locks=warn
15035
 
  fi
15036
 
else
15037
 
  need_locks=no
15038
 
fi
15039
 
 
15040
 
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15041
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15042
 
 
15043
 
  runpath_var=
15044
 
  allow_undefined_flag_F77=
15045
 
  enable_shared_with_static_runtimes_F77=no
15046
 
  archive_cmds_F77=
15047
 
  archive_expsym_cmds_F77=
15048
 
  old_archive_From_new_cmds_F77=
15049
 
  old_archive_from_expsyms_cmds_F77=
15050
 
  export_dynamic_flag_spec_F77=
15051
 
  whole_archive_flag_spec_F77=
15052
 
  thread_safe_flag_spec_F77=
15053
 
  hardcode_libdir_flag_spec_F77=
15054
 
  hardcode_libdir_flag_spec_ld_F77=
15055
 
  hardcode_libdir_separator_F77=
15056
 
  hardcode_direct_F77=no
15057
 
  hardcode_minus_L_F77=no
15058
 
  hardcode_shlibpath_var_F77=unsupported
15059
 
  link_all_deplibs_F77=unknown
15060
 
  hardcode_automatic_F77=no
15061
 
  module_cmds_F77=
15062
 
  module_expsym_cmds_F77=
15063
 
  always_export_symbols_F77=no
15064
 
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15065
 
  # include_expsyms should be a list of space-separated symbols to be *always*
15066
 
  # included in the symbol list
15067
 
  include_expsyms_F77=
15068
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
15069
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15070
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15071
 
  # as well as any symbol that contains `d'.
15072
 
  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15073
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15074
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
15075
 
  # the symbol is explicitly referenced.  Since portable code cannot
15076
 
  # rely on this symbol name, it's probably fine to never include it in
15077
 
  # preloaded symbol tables.
15078
 
  # Exclude shared library initialization/finalization symbols.
15079
 
  extract_expsyms_cmds=
15080
 
  # Just being paranoid about ensuring that cc_basename is set.
15081
 
  for cc_temp in $compiler""; do
15082
 
  case $cc_temp in
15083
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15084
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15085
 
    \-*) ;;
15086
 
    *) break;;
15087
 
  esac
15088
 
done
15089
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15090
 
 
15091
 
  case $host_os in
15092
 
  cygwin* | mingw* | pw32*)
15093
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15094
 
    # When not using gcc, we currently assume that we are using
15095
 
    # Microsoft Visual C++.
15096
 
    if test "$GCC" != yes; then
15097
 
      with_gnu_ld=no
15098
 
    fi
15099
 
    ;;
15100
 
  interix*)
15101
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
15102
 
    with_gnu_ld=yes
15103
 
    ;;
15104
 
  openbsd*)
15105
 
    with_gnu_ld=no
15106
 
    ;;
15107
 
  esac
15108
 
 
15109
 
  ld_shlibs_F77=yes
15110
 
  if test "$with_gnu_ld" = yes; then
15111
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
15112
 
    wlarc='${wl}'
15113
 
 
15114
 
    # Set some defaults for GNU ld with shared library support. These
15115
 
    # are reset later if shared libraries are not supported. Putting them
15116
 
    # here allows them to be overridden if necessary.
15117
 
    runpath_var=LD_RUN_PATH
15118
 
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15119
 
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15120
 
    # ancient GNU ld didn't support --whole-archive et. al.
15121
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15122
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15123
 
      else
15124
 
        whole_archive_flag_spec_F77=
15125
 
    fi
15126
 
    supports_anon_versioning=no
15127
 
    case `$LD -v 2>/dev/null` in
15128
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15129
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15130
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15131
 
      *\ 2.11.*) ;; # other 2.11 versions
15132
 
      *) supports_anon_versioning=yes ;;
15133
 
    esac
15134
 
 
15135
 
    # See if GNU ld supports shared libraries.
15136
 
    case $host_os in
15137
 
    aix[3-9]*)
15138
 
      # On AIX/PPC, the GNU linker is very broken
15139
 
      if test "$host_cpu" != ia64; then
15140
 
        ld_shlibs_F77=no
15141
 
        cat <<EOF 1>&2
15142
 
 
15143
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15144
 
*** to be unable to reliably create shared libraries on AIX.
15145
 
*** Therefore, libtool is disabling shared libraries support.  If you
15146
 
*** really care for shared libraries, you may want to modify your PATH
15147
 
*** so that a non-GNU linker is found, and then restart.
15148
 
 
15149
 
EOF
15150
 
      fi
15151
 
      ;;
15152
 
 
15153
 
    amigaos*)
15154
 
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15155
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15156
 
      hardcode_minus_L_F77=yes
15157
 
 
15158
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15159
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
15160
 
      # to version 4, is to share data among multiple programs linked
15161
 
      # with the same dynamic library.  Since this doesn't match the
15162
 
      # behavior of shared libraries on other platforms, we can't use
15163
 
      # them.
15164
 
      ld_shlibs_F77=no
15165
 
      ;;
15166
 
 
15167
 
    beos*)
15168
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15169
 
        allow_undefined_flag_F77=unsupported
15170
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15171
 
        # support --undefined.  This deserves some investigation.  FIXME
15172
 
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15173
 
      else
15174
 
        ld_shlibs_F77=no
15175
 
      fi
15176
 
      ;;
15177
 
 
15178
 
    cygwin* | mingw* | pw32*)
15179
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15180
 
      # as there is no search path for DLLs.
15181
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15182
 
      allow_undefined_flag_F77=unsupported
15183
 
      always_export_symbols_F77=no
15184
 
      enable_shared_with_static_runtimes_F77=yes
15185
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15186
 
 
15187
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15188
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15189
 
        # If the export-symbols file already is a .def file (1st line
15190
 
        # is EXPORTS), use it as is; otherwise, prepend...
15191
 
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15192
 
          cp $export_symbols $output_objdir/$soname.def;
15193
 
        else
15194
 
          echo EXPORTS > $output_objdir/$soname.def;
15195
 
          cat $export_symbols >> $output_objdir/$soname.def;
15196
 
        fi~
15197
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15198
 
      else
15199
 
        ld_shlibs_F77=no
15200
 
      fi
15201
 
      ;;
15202
 
 
15203
 
    interix[3-9]*)
15204
 
      hardcode_direct_F77=no
15205
 
      hardcode_shlibpath_var_F77=no
15206
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15207
 
      export_dynamic_flag_spec_F77='${wl}-E'
15208
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15209
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
15210
 
      # default) and relocated if they conflict, which is a slow very memory
15211
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
15212
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15213
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15214
 
      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'
15215
 
      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'
15216
 
      ;;
15217
 
 
15218
 
    gnu* | linux* | k*bsd*-gnu)
15219
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15220
 
        tmp_addflag=
15221
 
        case $cc_basename,$host_cpu in
15222
 
        pgcc*)                          # Portland Group C compiler
15223
 
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15224
 
          tmp_addflag=' $pic_flag'
15225
 
          ;;
15226
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15227
 
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15228
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
15229
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15230
 
          tmp_addflag=' -i_dynamic' ;;
15231
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15232
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
15233
 
        ifc* | ifort*)                  # Intel Fortran compiler
15234
 
          tmp_addflag=' -nofor_main' ;;
15235
 
        esac
15236
 
        case `$CC -V 2>&1 | sed 5q` in
15237
 
        *Sun\ C*)                       # Sun C 5.9
15238
 
          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'
15239
 
          tmp_sharedflag='-G' ;;
15240
 
        *Sun\ F*)                       # Sun Fortran 8.3
15241
 
          tmp_sharedflag='-G' ;;
15242
 
        *)
15243
 
          tmp_sharedflag='-shared' ;;
15244
 
        esac
15245
 
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15246
 
 
15247
 
        if test $supports_anon_versioning = yes; then
15248
 
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15249
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15250
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
15251
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15252
 
        fi
15253
 
      else
15254
 
        ld_shlibs_F77=no
15255
 
      fi
15256
 
      ;;
15257
 
 
15258
 
    netbsd*)
15259
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15260
 
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15261
 
        wlarc=
15262
 
      else
15263
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15264
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15265
 
      fi
15266
 
      ;;
15267
 
 
15268
 
    solaris*)
15269
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15270
 
        ld_shlibs_F77=no
15271
 
        cat <<EOF 1>&2
15272
 
 
15273
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15274
 
*** create shared libraries on Solaris systems.  Therefore, libtool
15275
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
15276
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
15277
 
*** your PATH or compiler configuration so that the native linker is
15278
 
*** used, and then restart.
15279
 
 
15280
 
EOF
15281
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15282
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15283
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15284
 
      else
15285
 
        ld_shlibs_F77=no
15286
 
      fi
15287
 
      ;;
15288
 
 
15289
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15290
 
      case `$LD -v 2>&1` in
15291
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15292
 
        ld_shlibs_F77=no
15293
 
        cat <<_LT_EOF 1>&2
15294
 
 
15295
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15296
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
15297
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
15298
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15299
 
*** your PATH or compiler configuration so that the native linker is
15300
 
*** used, and then restart.
15301
 
 
15302
 
_LT_EOF
15303
 
        ;;
15304
 
        *)
15305
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15306
 
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15307
 
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15308
 
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15309
 
          else
15310
 
            ld_shlibs_F77=no
15311
 
          fi
15312
 
        ;;
15313
 
      esac
15314
 
      ;;
15315
 
 
15316
 
    sunos4*)
15317
 
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15318
 
      wlarc=
15319
 
      hardcode_direct_F77=yes
15320
 
      hardcode_shlibpath_var_F77=no
15321
 
      ;;
15322
 
 
15323
 
    *)
15324
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15325
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15326
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15327
 
      else
15328
 
        ld_shlibs_F77=no
15329
 
      fi
15330
 
      ;;
15331
 
    esac
15332
 
 
15333
 
    if test "$ld_shlibs_F77" = no; then
15334
 
      runpath_var=
15335
 
      hardcode_libdir_flag_spec_F77=
15336
 
      export_dynamic_flag_spec_F77=
15337
 
      whole_archive_flag_spec_F77=
15338
 
    fi
15339
 
  else
15340
 
    # PORTME fill in a description of your system's linker (not GNU ld)
15341
 
    case $host_os in
15342
 
    aix3*)
15343
 
      allow_undefined_flag_F77=unsupported
15344
 
      always_export_symbols_F77=yes
15345
 
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15346
 
      # Note: this linker hardcodes the directories in LIBPATH if there
15347
 
      # are no directories specified by -L.
15348
 
      hardcode_minus_L_F77=yes
15349
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15350
 
        # Neither direct hardcoding nor static linking is supported with a
15351
 
        # broken collect2.
15352
 
        hardcode_direct_F77=unsupported
15353
 
      fi
15354
 
      ;;
15355
 
 
15356
 
    aix[4-9]*)
15357
 
      if test "$host_cpu" = ia64; then
15358
 
        # On IA64, the linker does run time linking by default, so we don't
15359
 
        # have to do anything special.
15360
 
        aix_use_runtimelinking=no
15361
 
        exp_sym_flag='-Bexport'
15362
 
        no_entry_flag=""
15363
 
      else
15364
 
        # If we're using GNU nm, then we don't want the "-C" option.
15365
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
15366
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15367
 
          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15368
 
        else
15369
 
          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15370
 
        fi
15371
 
        aix_use_runtimelinking=no
15372
 
 
15373
 
        # Test if we are trying to use run time linking or normal
15374
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15375
 
        # need to do runtime linking.
15376
 
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15377
 
          for ld_flag in $LDFLAGS; do
15378
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15379
 
            aix_use_runtimelinking=yes
15380
 
            break
15381
 
          fi
15382
 
          done
15383
 
          ;;
15384
 
        esac
15385
 
 
15386
 
        exp_sym_flag='-bexport'
15387
 
        no_entry_flag='-bnoentry'
15388
 
      fi
15389
 
 
15390
 
      # When large executables or shared objects are built, AIX ld can
15391
 
      # have problems creating the table of contents.  If linking a library
15392
 
      # or program results in "error TOC overflow" add -mminimal-toc to
15393
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15394
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15395
 
 
15396
 
      archive_cmds_F77=''
15397
 
      hardcode_direct_F77=yes
15398
 
      hardcode_libdir_separator_F77=':'
15399
 
      link_all_deplibs_F77=yes
15400
 
 
15401
 
      if test "$GCC" = yes; then
15402
 
        case $host_os in aix4.[012]|aix4.[012].*)
15403
 
        # We only want to do this on AIX 4.2 and lower, the check
15404
 
        # below for broken collect2 doesn't work under 4.3+
15405
 
          collect2name=`${CC} -print-prog-name=collect2`
15406
 
          if test -f "$collect2name" && \
15407
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
15408
 
          then
15409
 
          # We have reworked collect2
15410
 
          :
15411
 
          else
15412
 
          # We have old collect2
15413
 
          hardcode_direct_F77=unsupported
15414
 
          # It fails to find uninstalled libraries when the uninstalled
15415
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
15416
 
          # to unsupported forces relinking
15417
 
          hardcode_minus_L_F77=yes
15418
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
15419
 
          hardcode_libdir_separator_F77=
15420
 
          fi
15421
 
          ;;
15422
 
        esac
15423
 
        shared_flag='-shared'
15424
 
        if test "$aix_use_runtimelinking" = yes; then
15425
 
          shared_flag="$shared_flag "'${wl}-G'
15426
 
        fi
15427
 
      else
15428
 
        # not using gcc
15429
 
        if test "$host_cpu" = ia64; then
15430
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15431
 
        # chokes on -Wl,-G. The following line is correct:
15432
 
          shared_flag='-G'
15433
 
        else
15434
 
          if test "$aix_use_runtimelinking" = yes; then
15435
 
            shared_flag='${wl}-G'
15436
 
          else
15437
 
            shared_flag='${wl}-bM:SRE'
15438
 
          fi
15439
 
        fi
15440
 
      fi
15441
 
 
15442
 
      # It seems that -bexpall does not export symbols beginning with
15443
 
      # underscore (_), so it is better to generate a list of symbols to export.
15444
 
      always_export_symbols_F77=yes
15445
 
      if test "$aix_use_runtimelinking" = yes; then
15446
 
        # Warning - without using the other runtime loading flags (-brtl),
15447
 
        # -berok will link without error, but may produce a broken library.
15448
 
        allow_undefined_flag_F77='-berok'
15449
 
       # Determine the default libpath from the value encoded in an empty executable.
15450
 
       cat >conftest.$ac_ext <<_ACEOF
15451
 
      program main
15452
 
 
15453
 
      end
15454
 
_ACEOF
15455
 
rm -f conftest.$ac_objext conftest$ac_exeext
15456
 
if { (ac_try="$ac_link"
15457
 
case "(($ac_try" in
15458
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15459
 
  *) ac_try_echo=$ac_try;;
15460
 
esac
15461
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15462
 
$as_echo "$ac_try_echo") >&5
15463
 
  (eval "$ac_link") 2>conftest.er1
15464
 
  ac_status=$?
15465
 
  grep -v '^ *+' conftest.er1 >conftest.err
15466
 
  rm -f conftest.er1
15467
 
  cat conftest.err >&5
15468
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469
 
  (exit $ac_status); } && {
15470
 
         test -z "$ac_f77_werror_flag" ||
15471
 
         test ! -s conftest.err
15472
 
       } && test -s conftest$ac_exeext && {
15473
 
         test "$cross_compiling" = yes ||
15474
 
         $as_test_x conftest$ac_exeext
15475
 
       }; then
15476
 
 
15477
 
lt_aix_libpath_sed='
15478
 
    /Import File Strings/,/^$/ {
15479
 
        /^0/ {
15480
 
            s/^0  *\(.*\)$/\1/
15481
 
            p
15482
 
        }
15483
 
    }'
15484
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15485
 
# Check for a 64-bit object if we didn't find anything.
15486
 
if test -z "$aix_libpath"; then
15487
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15488
 
fi
15489
 
else
15490
 
  $as_echo "$as_me: failed program was:" >&5
15491
 
sed 's/^/| /' conftest.$ac_ext >&5
15492
 
 
15493
 
 
15494
 
fi
15495
 
 
15496
 
rm -rf conftest.dSYM
15497
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15498
 
      conftest$ac_exeext conftest.$ac_ext
15499
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15500
 
 
15501
 
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15502
 
        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"
15503
 
       else
15504
 
        if test "$host_cpu" = ia64; then
15505
 
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15506
 
          allow_undefined_flag_F77="-z nodefs"
15507
 
          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"
15508
 
        else
15509
 
         # Determine the default libpath from the value encoded in an empty executable.
15510
 
         cat >conftest.$ac_ext <<_ACEOF
15511
 
      program main
15512
 
 
15513
 
      end
15514
 
_ACEOF
15515
 
rm -f conftest.$ac_objext conftest$ac_exeext
15516
 
if { (ac_try="$ac_link"
15517
 
case "(($ac_try" in
15518
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15519
 
  *) ac_try_echo=$ac_try;;
15520
 
esac
15521
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15522
 
$as_echo "$ac_try_echo") >&5
15523
 
  (eval "$ac_link") 2>conftest.er1
15524
 
  ac_status=$?
15525
 
  grep -v '^ *+' conftest.er1 >conftest.err
15526
 
  rm -f conftest.er1
15527
 
  cat conftest.err >&5
15528
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529
 
  (exit $ac_status); } && {
15530
 
         test -z "$ac_f77_werror_flag" ||
15531
 
         test ! -s conftest.err
15532
 
       } && test -s conftest$ac_exeext && {
15533
 
         test "$cross_compiling" = yes ||
15534
 
         $as_test_x conftest$ac_exeext
15535
 
       }; then
15536
 
 
15537
 
lt_aix_libpath_sed='
15538
 
    /Import File Strings/,/^$/ {
15539
 
        /^0/ {
15540
 
            s/^0  *\(.*\)$/\1/
15541
 
            p
15542
 
        }
15543
 
    }'
15544
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15545
 
# Check for a 64-bit object if we didn't find anything.
15546
 
if test -z "$aix_libpath"; then
15547
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15548
 
fi
15549
 
else
15550
 
  $as_echo "$as_me: failed program was:" >&5
15551
 
sed 's/^/| /' conftest.$ac_ext >&5
15552
 
 
15553
 
 
15554
 
fi
15555
 
 
15556
 
rm -rf conftest.dSYM
15557
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15558
 
      conftest$ac_exeext conftest.$ac_ext
15559
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15560
 
 
15561
 
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15562
 
          # Warning - without using the other run time loading flags,
15563
 
          # -berok will link without error, but may produce a broken library.
15564
 
          no_undefined_flag_F77=' ${wl}-bernotok'
15565
 
          allow_undefined_flag_F77=' ${wl}-berok'
15566
 
          # Exported symbols can be pulled into shared objects from archives
15567
 
          whole_archive_flag_spec_F77='$convenience'
15568
 
          archive_cmds_need_lc_F77=yes
15569
 
          # This is similar to how AIX traditionally builds its shared libraries.
15570
 
          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'
15571
 
        fi
15572
 
      fi
15573
 
      ;;
15574
 
 
15575
 
    amigaos*)
15576
 
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15577
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15578
 
      hardcode_minus_L_F77=yes
15579
 
      # see comment about different semantics on the GNU ld section
15580
 
      ld_shlibs_F77=no
15581
 
      ;;
15582
 
 
15583
 
    bsdi[45]*)
15584
 
      export_dynamic_flag_spec_F77=-rdynamic
15585
 
      ;;
15586
 
 
15587
 
    cygwin* | mingw* | pw32*)
15588
 
      # When not using gcc, we currently assume that we are using
15589
 
      # Microsoft Visual C++.
15590
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
15591
 
      # no search path for DLLs.
15592
 
      hardcode_libdir_flag_spec_F77=' '
15593
 
      allow_undefined_flag_F77=unsupported
15594
 
      # Tell ltmain to make .lib files, not .a files.
15595
 
      libext=lib
15596
 
      # Tell ltmain to make .dll files, not .so files.
15597
 
      shrext_cmds=".dll"
15598
 
      # FIXME: Setting linknames here is a bad hack.
15599
 
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15600
 
      # The linker will automatically build a .lib file if we build a DLL.
15601
 
      old_archive_From_new_cmds_F77='true'
15602
 
      # FIXME: Should let the user specify the lib program.
15603
 
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15604
 
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15605
 
      enable_shared_with_static_runtimes_F77=yes
15606
 
      ;;
15607
 
 
15608
 
    darwin* | rhapsody*)
15609
 
      case $host_os in
15610
 
        rhapsody* | darwin1.[012])
15611
 
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15612
 
         ;;
15613
 
       *) # Darwin 1.3 on
15614
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15615
 
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15616
 
         else
15617
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
15618
 
             10.[012])
15619
 
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15620
 
               ;;
15621
 
             10.*)
15622
 
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15623
 
               ;;
15624
 
           esac
15625
 
         fi
15626
 
         ;;
15627
 
      esac
15628
 
      archive_cmds_need_lc_F77=no
15629
 
      hardcode_direct_F77=no
15630
 
      hardcode_automatic_F77=yes
15631
 
      hardcode_shlibpath_var_F77=unsupported
15632
 
      whole_archive_flag_spec_F77=''
15633
 
      link_all_deplibs_F77=yes
15634
 
    if test "$GCC" = yes ; then
15635
 
        output_verbose_link_cmd='echo'
15636
 
        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15637
 
        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15638
 
        archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15639
 
        module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15640
 
    else
15641
 
      case $cc_basename in
15642
 
        xlc*)
15643
 
         output_verbose_link_cmd='echo'
15644
 
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15645
 
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15646
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15647
 
         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}'
15648
 
          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}'
15649
 
          ;;
15650
 
       *)
15651
 
         ld_shlibs_F77=no
15652
 
          ;;
15653
 
      esac
15654
 
    fi
15655
 
      ;;
15656
 
 
15657
 
    dgux*)
15658
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15659
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15660
 
      hardcode_shlibpath_var_F77=no
15661
 
      ;;
15662
 
 
15663
 
    freebsd1*)
15664
 
      ld_shlibs_F77=no
15665
 
      ;;
15666
 
 
15667
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15668
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
15669
 
    # does not break anything, and helps significantly (at the cost of a little
15670
 
    # extra space).
15671
 
    freebsd2.2*)
15672
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15673
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15674
 
      hardcode_direct_F77=yes
15675
 
      hardcode_shlibpath_var_F77=no
15676
 
      ;;
15677
 
 
15678
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15679
 
    freebsd2*)
15680
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15681
 
      hardcode_direct_F77=yes
15682
 
      hardcode_minus_L_F77=yes
15683
 
      hardcode_shlibpath_var_F77=no
15684
 
      ;;
15685
 
 
15686
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15687
 
    freebsd* | dragonfly*)
15688
 
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15689
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15690
 
      hardcode_direct_F77=yes
15691
 
      hardcode_shlibpath_var_F77=no
15692
 
      ;;
15693
 
 
15694
 
    hpux9*)
15695
 
      if test "$GCC" = yes; then
15696
 
        archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15697
 
      else
15698
 
        archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15699
 
      fi
15700
 
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15701
 
      hardcode_libdir_separator_F77=:
15702
 
      hardcode_direct_F77=yes
15703
 
 
15704
 
      # hardcode_minus_L: Not really in the search PATH,
15705
 
      # but as the default location of the library.
15706
 
      hardcode_minus_L_F77=yes
15707
 
      export_dynamic_flag_spec_F77='${wl}-E'
15708
 
      ;;
15709
 
 
15710
 
    hpux10*)
15711
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15712
 
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15713
 
      else
15714
 
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15715
 
      fi
15716
 
      if test "$with_gnu_ld" = no; then
15717
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15718
 
        hardcode_libdir_separator_F77=:
15719
 
 
15720
 
        hardcode_direct_F77=yes
15721
 
        export_dynamic_flag_spec_F77='${wl}-E'
15722
 
 
15723
 
        # hardcode_minus_L: Not really in the search PATH,
15724
 
        # but as the default location of the library.
15725
 
        hardcode_minus_L_F77=yes
15726
 
      fi
15727
 
      ;;
15728
 
 
15729
 
    hpux11*)
15730
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15731
 
        case $host_cpu in
15732
 
        hppa*64*)
15733
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15734
 
          ;;
15735
 
        ia64*)
15736
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15737
 
          ;;
15738
 
        *)
15739
 
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15740
 
          ;;
15741
 
        esac
15742
 
      else
15743
 
        case $host_cpu in
15744
 
        hppa*64*)
15745
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15746
 
          ;;
15747
 
        ia64*)
15748
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15749
 
          ;;
15750
 
        *)
15751
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15752
 
          ;;
15753
 
        esac
15754
 
      fi
15755
 
      if test "$with_gnu_ld" = no; then
15756
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15757
 
        hardcode_libdir_separator_F77=:
15758
 
 
15759
 
        case $host_cpu in
15760
 
        hppa*64*|ia64*)
15761
 
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15762
 
          hardcode_direct_F77=no
15763
 
          hardcode_shlibpath_var_F77=no
15764
 
          ;;
15765
 
        *)
15766
 
          hardcode_direct_F77=yes
15767
 
          export_dynamic_flag_spec_F77='${wl}-E'
15768
 
 
15769
 
          # hardcode_minus_L: Not really in the search PATH,
15770
 
          # but as the default location of the library.
15771
 
          hardcode_minus_L_F77=yes
15772
 
          ;;
15773
 
        esac
15774
 
      fi
15775
 
      ;;
15776
 
 
15777
 
    irix5* | irix6* | nonstopux*)
15778
 
      if test "$GCC" = yes; then
15779
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15780
 
      else
15781
 
        archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15782
 
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15783
 
      fi
15784
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15785
 
      hardcode_libdir_separator_F77=:
15786
 
      link_all_deplibs_F77=yes
15787
 
      ;;
15788
 
 
15789
 
    netbsd*)
15790
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15791
 
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15792
 
      else
15793
 
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15794
 
      fi
15795
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15796
 
      hardcode_direct_F77=yes
15797
 
      hardcode_shlibpath_var_F77=no
15798
 
      ;;
15799
 
 
15800
 
    newsos6)
15801
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15802
 
      hardcode_direct_F77=yes
15803
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15804
 
      hardcode_libdir_separator_F77=:
15805
 
      hardcode_shlibpath_var_F77=no
15806
 
      ;;
15807
 
 
15808
 
    openbsd*)
15809
 
      if test -f /usr/libexec/ld.so; then
15810
 
        hardcode_direct_F77=yes
15811
 
        hardcode_shlibpath_var_F77=no
15812
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15813
 
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15814
 
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15815
 
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15816
 
          export_dynamic_flag_spec_F77='${wl}-E'
15817
 
        else
15818
 
          case $host_os in
15819
 
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15820
 
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15821
 
             hardcode_libdir_flag_spec_F77='-R$libdir'
15822
 
             ;;
15823
 
           *)
15824
 
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15825
 
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15826
 
             ;;
15827
 
          esac
15828
 
        fi
15829
 
      else
15830
 
        ld_shlibs_F77=no
15831
 
      fi
15832
 
      ;;
15833
 
 
15834
 
    os2*)
15835
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15836
 
      hardcode_minus_L_F77=yes
15837
 
      allow_undefined_flag_F77=unsupported
15838
 
      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15839
 
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15840
 
      ;;
15841
 
 
15842
 
    osf3*)
15843
 
      if test "$GCC" = yes; then
15844
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15845
 
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15846
 
      else
15847
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
15848
 
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15849
 
      fi
15850
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15851
 
      hardcode_libdir_separator_F77=:
15852
 
      ;;
15853
 
 
15854
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
15855
 
      if test "$GCC" = yes; then
15856
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15857
 
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15858
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15859
 
      else
15860
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
15861
 
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15862
 
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15863
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15864
 
 
15865
 
        # Both c and cxx compiler support -rpath directly
15866
 
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
15867
 
      fi
15868
 
      hardcode_libdir_separator_F77=:
15869
 
      ;;
15870
 
 
15871
 
    solaris*)
15872
 
      no_undefined_flag_F77=' -z text'
15873
 
      if test "$GCC" = yes; then
15874
 
        wlarc='${wl}'
15875
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15876
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15877
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15878
 
      else
15879
 
        wlarc=''
15880
 
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15881
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15882
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15883
 
      fi
15884
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15885
 
      hardcode_shlibpath_var_F77=no
15886
 
      case $host_os in
15887
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
15888
 
      *)
15889
 
        # The compiler driver will combine and reorder linker options,
15890
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
15891
 
        # but is careful enough not to reorder.
15892
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
15893
 
        if test "$GCC" = yes; then
15894
 
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15895
 
        else
15896
 
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15897
 
        fi
15898
 
        ;;
15899
 
      esac
15900
 
      link_all_deplibs_F77=yes
15901
 
      ;;
15902
 
 
15903
 
    sunos4*)
15904
 
      if test "x$host_vendor" = xsequent; then
15905
 
        # Use $CC to link under sequent, because it throws in some extra .o
15906
 
        # files that make .init and .fini sections work.
15907
 
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15908
 
      else
15909
 
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15910
 
      fi
15911
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15912
 
      hardcode_direct_F77=yes
15913
 
      hardcode_minus_L_F77=yes
15914
 
      hardcode_shlibpath_var_F77=no
15915
 
      ;;
15916
 
 
15917
 
    sysv4)
15918
 
      case $host_vendor in
15919
 
        sni)
15920
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15921
 
          hardcode_direct_F77=yes # is this really true???
15922
 
        ;;
15923
 
        siemens)
15924
 
          ## LD is ld it makes a PLAMLIB
15925
 
          ## CC just makes a GrossModule.
15926
 
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15927
 
          reload_cmds_F77='$CC -r -o $output$reload_objs'
15928
 
          hardcode_direct_F77=no
15929
 
        ;;
15930
 
        motorola)
15931
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15932
 
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15933
 
        ;;
15934
 
      esac
15935
 
      runpath_var='LD_RUN_PATH'
15936
 
      hardcode_shlibpath_var_F77=no
15937
 
      ;;
15938
 
 
15939
 
    sysv4.3*)
15940
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15941
 
      hardcode_shlibpath_var_F77=no
15942
 
      export_dynamic_flag_spec_F77='-Bexport'
15943
 
      ;;
15944
 
 
15945
 
    sysv4*MP*)
15946
 
      if test -d /usr/nec; then
15947
 
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15948
 
        hardcode_shlibpath_var_F77=no
15949
 
        runpath_var=LD_RUN_PATH
15950
 
        hardcode_runpath_var=yes
15951
 
        ld_shlibs_F77=yes
15952
 
      fi
15953
 
      ;;
15954
 
 
15955
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15956
 
      no_undefined_flag_F77='${wl}-z,text'
15957
 
      archive_cmds_need_lc_F77=no
15958
 
      hardcode_shlibpath_var_F77=no
15959
 
      runpath_var='LD_RUN_PATH'
15960
 
 
15961
 
      if test "$GCC" = yes; then
15962
 
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15963
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15964
 
      else
15965
 
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15966
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15967
 
      fi
15968
 
      ;;
15969
 
 
15970
 
    sysv5* | sco3.2v5* | sco5v6*)
15971
 
      # Note: We can NOT use -z defs as we might desire, because we do not
15972
 
      # link with -lc, and that would cause any symbols used from libc to
15973
 
      # always be unresolved, which means just about no library would
15974
 
      # ever link correctly.  If we're not using GNU ld we use -z text
15975
 
      # though, which does catch some bad symbols but isn't as heavy-handed
15976
 
      # as -z defs.
15977
 
      no_undefined_flag_F77='${wl}-z,text'
15978
 
      allow_undefined_flag_F77='${wl}-z,nodefs'
15979
 
      archive_cmds_need_lc_F77=no
15980
 
      hardcode_shlibpath_var_F77=no
15981
 
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15982
 
      hardcode_libdir_separator_F77=':'
15983
 
      link_all_deplibs_F77=yes
15984
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
15985
 
      runpath_var='LD_RUN_PATH'
15986
 
 
15987
 
      if test "$GCC" = yes; then
15988
 
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15989
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15990
 
      else
15991
 
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15992
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15993
 
      fi
15994
 
      ;;
15995
 
 
15996
 
    uts4*)
15997
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15998
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15999
 
      hardcode_shlibpath_var_F77=no
16000
 
      ;;
16001
 
 
16002
 
    *)
16003
 
      ld_shlibs_F77=no
16004
 
      ;;
16005
 
    esac
16006
 
  fi
16007
 
 
16008
 
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16009
 
$as_echo "$ld_shlibs_F77" >&6; }
16010
 
test "$ld_shlibs_F77" = no && can_build_shared=no
16011
 
 
16012
 
#
16013
 
# Do we need to explicitly link libc?
16014
 
#
16015
 
case "x$archive_cmds_need_lc_F77" in
16016
 
x|xyes)
16017
 
  # Assume -lc should be added
16018
 
  archive_cmds_need_lc_F77=yes
16019
 
 
16020
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
16021
 
    case $archive_cmds_F77 in
16022
 
    *'~'*)
16023
 
      # FIXME: we may have to deal with multi-command sequences.
16024
 
      ;;
16025
 
    '$CC '*)
16026
 
      # Test whether the compiler implicitly links with -lc since on some
16027
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16028
 
      # to ld, don't add -lc before -lgcc.
16029
 
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16030
 
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16031
 
      $rm conftest*
16032
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16033
 
 
16034
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16035
 
  (eval $ac_compile) 2>&5
16036
 
  ac_status=$?
16037
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038
 
  (exit $ac_status); } 2>conftest.err; then
16039
 
        soname=conftest
16040
 
        lib=conftest
16041
 
        libobjs=conftest.$ac_objext
16042
 
        deplibs=
16043
 
        wl=$lt_prog_compiler_wl_F77
16044
 
        pic_flag=$lt_prog_compiler_pic_F77
16045
 
        compiler_flags=-v
16046
 
        linker_flags=-v
16047
 
        verstring=
16048
 
        output_objdir=.
16049
 
        libname=conftest
16050
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16051
 
        allow_undefined_flag_F77=
16052
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16053
 
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16054
 
  ac_status=$?
16055
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056
 
  (exit $ac_status); }
16057
 
        then
16058
 
          archive_cmds_need_lc_F77=no
16059
 
        else
16060
 
          archive_cmds_need_lc_F77=yes
16061
 
        fi
16062
 
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16063
 
      else
16064
 
        cat conftest.err 1>&5
16065
 
      fi
16066
 
      $rm conftest*
16067
 
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16068
 
$as_echo "$archive_cmds_need_lc_F77" >&6; }
16069
 
      ;;
16070
 
    esac
16071
 
  fi
16072
 
  ;;
16073
 
esac
16074
 
 
16075
 
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16076
 
$as_echo_n "checking dynamic linker characteristics... " >&6; }
16077
 
library_names_spec=
16078
 
libname_spec='lib$name'
16079
 
soname_spec=
16080
 
shrext_cmds=".so"
16081
 
postinstall_cmds=
16082
 
postuninstall_cmds=
16083
 
finish_cmds=
16084
 
finish_eval=
16085
 
shlibpath_var=
16086
 
shlibpath_overrides_runpath=unknown
16087
 
version_type=none
16088
 
dynamic_linker="$host_os ld.so"
16089
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16090
 
 
16091
 
need_lib_prefix=unknown
16092
 
hardcode_into_libs=no
16093
 
 
16094
 
# when you set need_version to no, make sure it does not cause -set_version
16095
 
# flags to be left without arguments
16096
 
need_version=unknown
16097
 
 
16098
 
case $host_os in
16099
 
aix3*)
16100
 
  version_type=linux
16101
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16102
 
  shlibpath_var=LIBPATH
16103
 
 
16104
 
  # AIX 3 has no versioning support, so we append a major version to the name.
16105
 
  soname_spec='${libname}${release}${shared_ext}$major'
16106
 
  ;;
16107
 
 
16108
 
aix[4-9]*)
16109
 
  version_type=linux
16110
 
  need_lib_prefix=no
16111
 
  need_version=no
16112
 
  hardcode_into_libs=yes
16113
 
  if test "$host_cpu" = ia64; then
16114
 
    # AIX 5 supports IA64
16115
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16116
 
    shlibpath_var=LD_LIBRARY_PATH
16117
 
  else
16118
 
    # With GCC up to 2.95.x, collect2 would create an import file
16119
 
    # for dependence libraries.  The import file would start with
16120
 
    # the line `#! .'.  This would cause the generated library to
16121
 
    # depend on `.', always an invalid library.  This was fixed in
16122
 
    # development snapshots of GCC prior to 3.0.
16123
 
    case $host_os in
16124
 
      aix4 | aix4.[01] | aix4.[01].*)
16125
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16126
 
           echo ' yes '
16127
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16128
 
        :
16129
 
      else
16130
 
        can_build_shared=no
16131
 
      fi
16132
 
      ;;
16133
 
    esac
16134
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16135
 
    # soname into executable. Probably we can add versioning support to
16136
 
    # collect2, so additional links can be useful in future.
16137
 
    if test "$aix_use_runtimelinking" = yes; then
16138
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16139
 
      # instead of lib<name>.a to let people know that these are not
16140
 
      # typical AIX shared libraries.
16141
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16142
 
    else
16143
 
      # We preserve .a as extension for shared libraries through AIX4.2
16144
 
      # and later when we are not doing run time linking.
16145
 
      library_names_spec='${libname}${release}.a $libname.a'
16146
 
      soname_spec='${libname}${release}${shared_ext}$major'
16147
 
    fi
16148
 
    shlibpath_var=LIBPATH
16149
 
  fi
16150
 
  ;;
16151
 
 
16152
 
amigaos*)
16153
 
  library_names_spec='$libname.ixlibrary $libname.a'
16154
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16155
 
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16156
 
  ;;
16157
 
 
16158
 
beos*)
16159
 
  library_names_spec='${libname}${shared_ext}'
16160
 
  dynamic_linker="$host_os ld.so"
16161
 
  shlibpath_var=LIBRARY_PATH
16162
 
  ;;
16163
 
 
16164
 
bsdi[45]*)
16165
 
  version_type=linux
16166
 
  need_version=no
16167
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16168
 
  soname_spec='${libname}${release}${shared_ext}$major'
16169
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16170
 
  shlibpath_var=LD_LIBRARY_PATH
16171
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16172
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16173
 
  # the default ld.so.conf also contains /usr/contrib/lib and
16174
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16175
 
  # libtool to hard-code these into programs
16176
 
  ;;
16177
 
 
16178
 
cygwin* | mingw* | pw32*)
16179
 
  version_type=windows
16180
 
  shrext_cmds=".dll"
16181
 
  need_version=no
16182
 
  need_lib_prefix=no
16183
 
 
16184
 
  case $GCC,$host_os in
16185
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
16186
 
    library_names_spec='$libname.dll.a'
16187
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16188
 
    postinstall_cmds='base_file=`basename \${file}`~
16189
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16190
 
      dldir=$destdir/`dirname \$dlpath`~
16191
 
      test -d \$dldir || mkdir -p \$dldir~
16192
 
      $install_prog $dir/$dlname \$dldir/$dlname~
16193
 
      chmod a+x \$dldir/$dlname'
16194
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16195
 
      dlpath=$dir/\$dldll~
16196
 
       $rm \$dlpath'
16197
 
    shlibpath_overrides_runpath=yes
16198
 
 
16199
 
    case $host_os in
16200
 
    cygwin*)
16201
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16202
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16203
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16204
 
      ;;
16205
 
    mingw*)
16206
 
      # MinGW DLLs use traditional 'lib' prefix
16207
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16208
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16209
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16210
 
        # It is most probably a Windows format PATH printed by
16211
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16212
 
        # path with ; separators, and with drive letters. We can handle the
16213
 
        # drive letters (cygwin fileutils understands them), so leave them,
16214
 
        # especially as we might pass files found there to a mingw objdump,
16215
 
        # which wouldn't understand a cygwinified path. Ahh.
16216
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16217
 
      else
16218
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16219
 
      fi
16220
 
      ;;
16221
 
    pw32*)
16222
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
16223
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16224
 
      ;;
16225
 
    esac
16226
 
    ;;
16227
 
 
16228
 
  *)
16229
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16230
 
    ;;
16231
 
  esac
16232
 
  dynamic_linker='Win32 ld.exe'
16233
 
  # FIXME: first we should search . and the directory the executable is in
16234
 
  shlibpath_var=PATH
16235
 
  ;;
16236
 
 
16237
 
darwin* | rhapsody*)
16238
 
  dynamic_linker="$host_os dyld"
16239
 
  version_type=darwin
16240
 
  need_lib_prefix=no
16241
 
  need_version=no
16242
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16243
 
  soname_spec='${libname}${release}${major}$shared_ext'
16244
 
  shlibpath_overrides_runpath=yes
16245
 
  shlibpath_var=DYLD_LIBRARY_PATH
16246
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16247
 
 
16248
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16249
 
  ;;
16250
 
 
16251
 
dgux*)
16252
 
  version_type=linux
16253
 
  need_lib_prefix=no
16254
 
  need_version=no
16255
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16256
 
  soname_spec='${libname}${release}${shared_ext}$major'
16257
 
  shlibpath_var=LD_LIBRARY_PATH
16258
 
  ;;
16259
 
 
16260
 
freebsd1*)
16261
 
  dynamic_linker=no
16262
 
  ;;
16263
 
 
16264
 
freebsd* | dragonfly*)
16265
 
  # DragonFly does not have aout.  When/if they implement a new
16266
 
  # versioning mechanism, adjust this.
16267
 
  if test -x /usr/bin/objformat; then
16268
 
    objformat=`/usr/bin/objformat`
16269
 
  else
16270
 
    case $host_os in
16271
 
    freebsd[123]*) objformat=aout ;;
16272
 
    *) objformat=elf ;;
16273
 
    esac
16274
 
  fi
16275
 
  version_type=freebsd-$objformat
16276
 
  case $version_type in
16277
 
    freebsd-elf*)
16278
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16279
 
      need_version=no
16280
 
      need_lib_prefix=no
16281
 
      ;;
16282
 
    freebsd-*)
16283
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16284
 
      need_version=yes
16285
 
      ;;
16286
 
  esac
16287
 
  shlibpath_var=LD_LIBRARY_PATH
16288
 
  case $host_os in
16289
 
  freebsd2*)
16290
 
    shlibpath_overrides_runpath=yes
16291
 
    ;;
16292
 
  freebsd3.[01]* | freebsdelf3.[01]*)
16293
 
    shlibpath_overrides_runpath=yes
16294
 
    hardcode_into_libs=yes
16295
 
    ;;
16296
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16297
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16298
 
    shlibpath_overrides_runpath=no
16299
 
    hardcode_into_libs=yes
16300
 
    ;;
16301
 
  *) # from 4.6 on, and DragonFly
16302
 
    shlibpath_overrides_runpath=yes
16303
 
    hardcode_into_libs=yes
16304
 
    ;;
16305
 
  esac
16306
 
  ;;
16307
 
 
16308
 
gnu*)
16309
 
  version_type=linux
16310
 
  need_lib_prefix=no
16311
 
  need_version=no
16312
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16313
 
  soname_spec='${libname}${release}${shared_ext}$major'
16314
 
  shlibpath_var=LD_LIBRARY_PATH
16315
 
  hardcode_into_libs=yes
16316
 
  ;;
16317
 
 
16318
 
hpux9* | hpux10* | hpux11*)
16319
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
16320
 
  # link against other versions.
16321
 
  version_type=sunos
16322
 
  need_lib_prefix=no
16323
 
  need_version=no
16324
 
  case $host_cpu in
16325
 
  ia64*)
16326
 
    shrext_cmds='.so'
16327
 
    hardcode_into_libs=yes
16328
 
    dynamic_linker="$host_os dld.so"
16329
 
    shlibpath_var=LD_LIBRARY_PATH
16330
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16331
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16332
 
    soname_spec='${libname}${release}${shared_ext}$major'
16333
 
    if test "X$HPUX_IA64_MODE" = X32; then
16334
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16335
 
    else
16336
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16337
 
    fi
16338
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16339
 
    ;;
16340
 
   hppa*64*)
16341
 
     shrext_cmds='.sl'
16342
 
     hardcode_into_libs=yes
16343
 
     dynamic_linker="$host_os dld.sl"
16344
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16345
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16346
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16347
 
     soname_spec='${libname}${release}${shared_ext}$major'
16348
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16349
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16350
 
     ;;
16351
 
   *)
16352
 
    shrext_cmds='.sl'
16353
 
    dynamic_linker="$host_os dld.sl"
16354
 
    shlibpath_var=SHLIB_PATH
16355
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16356
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16357
 
    soname_spec='${libname}${release}${shared_ext}$major'
16358
 
    ;;
16359
 
  esac
16360
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16361
 
  postinstall_cmds='chmod 555 $lib'
16362
 
  ;;
16363
 
 
16364
 
interix[3-9]*)
16365
 
  version_type=linux
16366
 
  need_lib_prefix=no
16367
 
  need_version=no
16368
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16369
 
  soname_spec='${libname}${release}${shared_ext}$major'
16370
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16371
 
  shlibpath_var=LD_LIBRARY_PATH
16372
 
  shlibpath_overrides_runpath=no
16373
 
  hardcode_into_libs=yes
16374
 
  ;;
16375
 
 
16376
 
irix5* | irix6* | nonstopux*)
16377
 
  case $host_os in
16378
 
    nonstopux*) version_type=nonstopux ;;
16379
 
    *)
16380
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
16381
 
                version_type=linux
16382
 
        else
16383
 
                version_type=irix
16384
 
        fi ;;
16385
 
  esac
16386
 
  need_lib_prefix=no
16387
 
  need_version=no
16388
 
  soname_spec='${libname}${release}${shared_ext}$major'
16389
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16390
 
  case $host_os in
16391
 
  irix5* | nonstopux*)
16392
 
    libsuff= shlibsuff=
16393
 
    ;;
16394
 
  *)
16395
 
    case $LD in # libtool.m4 will add one of these switches to LD
16396
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16397
 
      libsuff= shlibsuff= libmagic=32-bit;;
16398
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16399
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
16400
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16401
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16402
 
    *) libsuff= shlibsuff= libmagic=never-match;;
16403
 
    esac
16404
 
    ;;
16405
 
  esac
16406
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16407
 
  shlibpath_overrides_runpath=no
16408
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16409
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16410
 
  hardcode_into_libs=yes
16411
 
  ;;
16412
 
 
16413
 
# No shared lib support for Linux oldld, aout, or coff.
16414
 
linux*oldld* | linux*aout* | linux*coff*)
16415
 
  dynamic_linker=no
16416
 
  ;;
16417
 
 
16418
 
# This must be Linux ELF.
16419
 
linux* | k*bsd*-gnu)
16420
 
  version_type=linux
16421
 
  need_lib_prefix=no
16422
 
  need_version=no
16423
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16424
 
  soname_spec='${libname}${release}${shared_ext}$major'
16425
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16426
 
  shlibpath_var=LD_LIBRARY_PATH
16427
 
  shlibpath_overrides_runpath=no
16428
 
  # This implies no fast_install, which is unacceptable.
16429
 
  # Some rework will be needed to allow for fast_install
16430
 
  # before this can be enabled.
16431
 
  hardcode_into_libs=yes
16432
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16433
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16434
 
 
16435
 
  # Append ld.so.conf contents to the search path
16436
 
  if test -f /etc/ld.so.conf; then
16437
 
    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' ' '`
16438
 
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16439
 
  fi
16440
 
 
16441
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
16442
 
  # powerpc, because MkLinux only supported shared libraries with the
16443
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
16444
 
  # most powerpc-linux boxes support dynamic linking these days and
16445
 
  # people can always --disable-shared, the test was removed, and we
16446
 
  # assume the GNU/Linux dynamic linker is in use.
16447
 
  dynamic_linker='GNU/Linux ld.so'
16448
 
  ;;
16449
 
 
16450
 
netbsd*)
16451
 
  version_type=sunos
16452
 
  need_lib_prefix=no
16453
 
  need_version=no
16454
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16455
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16456
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16457
 
    dynamic_linker='NetBSD (a.out) ld.so'
16458
 
  else
16459
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16460
 
    soname_spec='${libname}${release}${shared_ext}$major'
16461
 
    dynamic_linker='NetBSD ld.elf_so'
16462
 
  fi
16463
 
  shlibpath_var=LD_LIBRARY_PATH
16464
 
  shlibpath_overrides_runpath=yes
16465
 
  hardcode_into_libs=yes
16466
 
  ;;
16467
 
 
16468
 
newsos6)
16469
 
  version_type=linux
16470
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16471
 
  shlibpath_var=LD_LIBRARY_PATH
16472
 
  shlibpath_overrides_runpath=yes
16473
 
  ;;
16474
 
 
16475
 
nto-qnx*)
16476
 
  version_type=linux
16477
 
  need_lib_prefix=no
16478
 
  need_version=no
16479
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16480
 
  soname_spec='${libname}${release}${shared_ext}$major'
16481
 
  shlibpath_var=LD_LIBRARY_PATH
16482
 
  shlibpath_overrides_runpath=yes
16483
 
  ;;
16484
 
 
16485
 
openbsd*)
16486
 
  version_type=sunos
16487
 
  sys_lib_dlsearch_path_spec="/usr/lib"
16488
 
  need_lib_prefix=no
16489
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16490
 
  case $host_os in
16491
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16492
 
    *)                         need_version=no  ;;
16493
 
  esac
16494
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16495
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16496
 
  shlibpath_var=LD_LIBRARY_PATH
16497
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16498
 
    case $host_os in
16499
 
      openbsd2.[89] | openbsd2.[89].*)
16500
 
        shlibpath_overrides_runpath=no
16501
 
        ;;
16502
 
      *)
16503
 
        shlibpath_overrides_runpath=yes
16504
 
        ;;
16505
 
      esac
16506
 
  else
16507
 
    shlibpath_overrides_runpath=yes
16508
 
  fi
16509
 
  ;;
16510
 
 
16511
 
os2*)
16512
 
  libname_spec='$name'
16513
 
  shrext_cmds=".dll"
16514
 
  need_lib_prefix=no
16515
 
  library_names_spec='$libname${shared_ext} $libname.a'
16516
 
  dynamic_linker='OS/2 ld.exe'
16517
 
  shlibpath_var=LIBPATH
16518
 
  ;;
16519
 
 
16520
 
osf3* | osf4* | osf5*)
16521
 
  version_type=osf
16522
 
  need_lib_prefix=no
16523
 
  need_version=no
16524
 
  soname_spec='${libname}${release}${shared_ext}$major'
16525
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16526
 
  shlibpath_var=LD_LIBRARY_PATH
16527
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16528
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16529
 
  ;;
16530
 
 
16531
 
rdos*)
16532
 
  dynamic_linker=no
16533
 
  ;;
16534
 
 
16535
 
solaris*)
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=yes
16543
 
  hardcode_into_libs=yes
16544
 
  # ldd complains unless libraries are executable
16545
 
  postinstall_cmds='chmod +x $lib'
16546
 
  ;;
16547
 
 
16548
 
sunos4*)
16549
 
  version_type=sunos
16550
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16551
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16552
 
  shlibpath_var=LD_LIBRARY_PATH
16553
 
  shlibpath_overrides_runpath=yes
16554
 
  if test "$with_gnu_ld" = yes; then
16555
 
    need_lib_prefix=no
16556
 
  fi
16557
 
  need_version=yes
16558
 
  ;;
16559
 
 
16560
 
sysv4 | sysv4.3*)
16561
 
  version_type=linux
16562
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16563
 
  soname_spec='${libname}${release}${shared_ext}$major'
16564
 
  shlibpath_var=LD_LIBRARY_PATH
16565
 
  case $host_vendor in
16566
 
    sni)
16567
 
      shlibpath_overrides_runpath=no
16568
 
      need_lib_prefix=no
16569
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
16570
 
      runpath_var=LD_RUN_PATH
16571
 
      ;;
16572
 
    siemens)
16573
 
      need_lib_prefix=no
16574
 
      ;;
16575
 
    motorola)
16576
 
      need_lib_prefix=no
16577
 
      need_version=no
16578
 
      shlibpath_overrides_runpath=no
16579
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16580
 
      ;;
16581
 
  esac
16582
 
  ;;
16583
 
 
16584
 
sysv4*MP*)
16585
 
  if test -d /usr/nec ;then
16586
 
    version_type=linux
16587
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16588
 
    soname_spec='$libname${shared_ext}.$major'
16589
 
    shlibpath_var=LD_LIBRARY_PATH
16590
 
  fi
16591
 
  ;;
16592
 
 
16593
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16594
 
  version_type=freebsd-elf
16595
 
  need_lib_prefix=no
16596
 
  need_version=no
16597
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16598
 
  soname_spec='${libname}${release}${shared_ext}$major'
16599
 
  shlibpath_var=LD_LIBRARY_PATH
16600
 
  hardcode_into_libs=yes
16601
 
  if test "$with_gnu_ld" = yes; then
16602
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16603
 
    shlibpath_overrides_runpath=no
16604
 
  else
16605
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16606
 
    shlibpath_overrides_runpath=yes
16607
 
    case $host_os in
16608
 
      sco3.2v5*)
16609
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16610
 
        ;;
16611
 
    esac
16612
 
  fi
16613
 
  sys_lib_dlsearch_path_spec='/usr/lib'
16614
 
  ;;
16615
 
 
16616
 
uts4*)
16617
 
  version_type=linux
16618
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16619
 
  soname_spec='${libname}${release}${shared_ext}$major'
16620
 
  shlibpath_var=LD_LIBRARY_PATH
16621
 
  ;;
16622
 
 
16623
 
*)
16624
 
  dynamic_linker=no
16625
 
  ;;
16626
 
esac
16627
 
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16628
 
$as_echo "$dynamic_linker" >&6; }
16629
 
test "$dynamic_linker" = no && can_build_shared=no
16630
 
 
16631
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16632
 
  $as_echo_n "(cached) " >&6
16633
 
else
16634
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16635
 
fi
16636
 
 
16637
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16638
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16639
 
  $as_echo_n "(cached) " >&6
16640
 
else
16641
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16642
 
fi
16643
 
 
16644
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16645
 
 
16646
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16647
 
if test "$GCC" = yes; then
16648
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16649
 
fi
16650
 
 
16651
 
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16652
 
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16653
 
hardcode_action_F77=
16654
 
if test -n "$hardcode_libdir_flag_spec_F77" || \
16655
 
   test -n "$runpath_var_F77" || \
16656
 
   test "X$hardcode_automatic_F77" = "Xyes" ; then
16657
 
 
16658
 
  # We can hardcode non-existant directories.
16659
 
  if test "$hardcode_direct_F77" != no &&
16660
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16661
 
     # have to relink, otherwise we might link with an installed library
16662
 
     # when we should be linking with a yet-to-be-installed one
16663
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16664
 
     test "$hardcode_minus_L_F77" != no; then
16665
 
    # Linking always hardcodes the temporary library directory.
16666
 
    hardcode_action_F77=relink
16667
 
  else
16668
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16669
 
    hardcode_action_F77=immediate
16670
 
  fi
16671
 
else
16672
 
  # We cannot hardcode anything, or else we can only hardcode existing
16673
 
  # directories.
16674
 
  hardcode_action_F77=unsupported
16675
 
fi
16676
 
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16677
 
$as_echo "$hardcode_action_F77" >&6; }
16678
 
 
16679
 
if test "$hardcode_action_F77" = relink; then
16680
 
  # Fast installation is not supported
16681
 
  enable_fast_install=no
16682
 
elif test "$shlibpath_overrides_runpath" = yes ||
16683
 
     test "$enable_shared" = no; then
16684
 
  # Fast installation is not necessary
16685
 
  enable_fast_install=needless
16686
 
fi
16687
 
 
16688
 
 
16689
 
# The else clause should only fire when bootstrapping the
16690
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
16691
 
# with your package, and you will get complaints that there are
16692
 
# no rules to generate ltmain.sh.
16693
 
if test -f "$ltmain"; then
16694
 
  # See if we are running on zsh, and set the options which allow our commands through
16695
 
  # without removal of \ escapes.
16696
 
  if test -n "${ZSH_VERSION+set}" ; then
16697
 
    setopt NO_GLOB_SUBST
16698
 
  fi
16699
 
  # Now quote all the things that may contain metacharacters while being
16700
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16701
 
  # variables and quote the copies for generation of the libtool script.
16702
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16703
 
    SED SHELL STRIP \
16704
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16705
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16706
 
    deplibs_check_method reload_flag reload_cmds need_locks \
16707
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16708
 
    lt_cv_sys_global_symbol_to_c_name_address \
16709
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16710
 
    old_postinstall_cmds old_postuninstall_cmds \
16711
 
    compiler_F77 \
16712
 
    CC_F77 \
16713
 
    LD_F77 \
16714
 
    lt_prog_compiler_wl_F77 \
16715
 
    lt_prog_compiler_pic_F77 \
16716
 
    lt_prog_compiler_static_F77 \
16717
 
    lt_prog_compiler_no_builtin_flag_F77 \
16718
 
    export_dynamic_flag_spec_F77 \
16719
 
    thread_safe_flag_spec_F77 \
16720
 
    whole_archive_flag_spec_F77 \
16721
 
    enable_shared_with_static_runtimes_F77 \
16722
 
    old_archive_cmds_F77 \
16723
 
    old_archive_from_new_cmds_F77 \
16724
 
    predep_objects_F77 \
16725
 
    postdep_objects_F77 \
16726
 
    predeps_F77 \
16727
 
    postdeps_F77 \
16728
 
    compiler_lib_search_path_F77 \
16729
 
    compiler_lib_search_dirs_F77 \
16730
 
    archive_cmds_F77 \
16731
 
    archive_expsym_cmds_F77 \
16732
 
    postinstall_cmds_F77 \
16733
 
    postuninstall_cmds_F77 \
16734
 
    old_archive_from_expsyms_cmds_F77 \
16735
 
    allow_undefined_flag_F77 \
16736
 
    no_undefined_flag_F77 \
16737
 
    export_symbols_cmds_F77 \
16738
 
    hardcode_libdir_flag_spec_F77 \
16739
 
    hardcode_libdir_flag_spec_ld_F77 \
16740
 
    hardcode_libdir_separator_F77 \
16741
 
    hardcode_automatic_F77 \
16742
 
    module_cmds_F77 \
16743
 
    module_expsym_cmds_F77 \
16744
 
    lt_cv_prog_compiler_c_o_F77 \
16745
 
    fix_srcfile_path_F77 \
16746
 
    exclude_expsyms_F77 \
16747
 
    include_expsyms_F77; do
16748
 
 
16749
 
    case $var in
16750
 
    old_archive_cmds_F77 | \
16751
 
    old_archive_from_new_cmds_F77 | \
16752
 
    archive_cmds_F77 | \
16753
 
    archive_expsym_cmds_F77 | \
16754
 
    module_cmds_F77 | \
16755
 
    module_expsym_cmds_F77 | \
16756
 
    old_archive_from_expsyms_cmds_F77 | \
16757
 
    export_symbols_cmds_F77 | \
16758
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16759
 
    postinstall_cmds | postuninstall_cmds | \
16760
 
    old_postinstall_cmds | old_postuninstall_cmds | \
16761
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16762
 
      # Double-quote double-evaled strings.
16763
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16764
 
      ;;
16765
 
    *)
16766
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16767
 
      ;;
16768
 
    esac
16769
 
  done
16770
 
 
16771
 
  case $lt_echo in
16772
 
  *'\$0 --fallback-echo"')
16773
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16774
 
    ;;
16775
 
  esac
16776
 
 
16777
 
cfgfile="$ofile"
16778
 
 
16779
 
  cat <<__EOF__ >> "$cfgfile"
16780
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16781
 
 
16782
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16783
 
 
16784
 
# Shell to use when invoking shell scripts.
16785
 
SHELL=$lt_SHELL
16786
 
 
16787
 
# Whether or not to build shared libraries.
16788
 
build_libtool_libs=$enable_shared
16789
 
 
16790
 
# Whether or not to build static libraries.
16791
 
build_old_libs=$enable_static
16792
 
 
16793
 
# Whether or not to add -lc for building shared libraries.
16794
 
build_libtool_need_lc=$archive_cmds_need_lc_F77
16795
 
 
16796
 
# Whether or not to disallow shared libs when runtime libs are static
16797
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16798
 
 
16799
 
# Whether or not to optimize for fast installation.
16800
 
fast_install=$enable_fast_install
16801
 
 
16802
 
# The host system.
16803
 
host_alias=$host_alias
16804
 
host=$host
16805
 
host_os=$host_os
16806
 
 
16807
 
# The build system.
16808
 
build_alias=$build_alias
16809
 
build=$build
16810
 
build_os=$build_os
16811
 
 
16812
 
# An echo program that does not interpret backslashes.
16813
 
echo=$lt_echo
16814
 
 
16815
 
# The archiver.
16816
 
AR=$lt_AR
16817
 
AR_FLAGS=$lt_AR_FLAGS
16818
 
 
16819
 
# A C compiler.
16820
 
LTCC=$lt_LTCC
16821
 
 
16822
 
# LTCC compiler flags.
16823
 
LTCFLAGS=$lt_LTCFLAGS
16824
 
 
16825
 
# A language-specific compiler.
16826
 
CC=$lt_compiler_F77
16827
 
 
16828
 
# Is the compiler the GNU C compiler?
16829
 
with_gcc=$GCC_F77
16830
 
 
16831
 
# An ERE matcher.
16832
 
EGREP=$lt_EGREP
16833
 
 
16834
 
# The linker used to build libraries.
16835
 
LD=$lt_LD_F77
16836
 
 
16837
 
# Whether we need hard or soft links.
16838
 
LN_S=$lt_LN_S
16839
 
 
16840
 
# A BSD-compatible nm program.
16841
 
NM=$lt_NM
16842
 
 
16843
 
# A symbol stripping program
16844
 
STRIP=$lt_STRIP
16845
 
 
16846
 
# Used to examine libraries when file_magic_cmd begins "file"
16847
 
MAGIC_CMD=$MAGIC_CMD
16848
 
 
16849
 
# Used on cygwin: DLL creation program.
16850
 
DLLTOOL="$DLLTOOL"
16851
 
 
16852
 
# Used on cygwin: object dumper.
16853
 
OBJDUMP="$OBJDUMP"
16854
 
 
16855
 
# Used on cygwin: assembler.
16856
 
AS="$AS"
16857
 
 
16858
 
# The name of the directory that contains temporary libtool files.
16859
 
objdir=$objdir
16860
 
 
16861
 
# How to create reloadable object files.
16862
 
reload_flag=$lt_reload_flag
16863
 
reload_cmds=$lt_reload_cmds
16864
 
 
16865
 
# How to pass a linker flag through the compiler.
16866
 
wl=$lt_lt_prog_compiler_wl_F77
16867
 
 
16868
 
# Object file suffix (normally "o").
16869
 
objext="$ac_objext"
16870
 
 
16871
 
# Old archive suffix (normally "a").
16872
 
libext="$libext"
16873
 
 
16874
 
# Shared library suffix (normally ".so").
16875
 
shrext_cmds='$shrext_cmds'
16876
 
 
16877
 
# Executable file suffix (normally "").
16878
 
exeext="$exeext"
16879
 
 
16880
 
# Additional compiler flags for building library objects.
16881
 
pic_flag=$lt_lt_prog_compiler_pic_F77
16882
 
pic_mode=$pic_mode
16883
 
 
16884
 
# What is the maximum length of a command?
16885
 
max_cmd_len=$lt_cv_sys_max_cmd_len
16886
 
 
16887
 
# Does compiler simultaneously support -c and -o options?
16888
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16889
 
 
16890
 
# Must we lock files when doing compilation?
16891
 
need_locks=$lt_need_locks
16892
 
 
16893
 
# Do we need the lib prefix for modules?
16894
 
need_lib_prefix=$need_lib_prefix
16895
 
 
16896
 
# Do we need a version for libraries?
16897
 
need_version=$need_version
16898
 
 
16899
 
# Whether dlopen is supported.
16900
 
dlopen_support=$enable_dlopen
16901
 
 
16902
 
# Whether dlopen of programs is supported.
16903
 
dlopen_self=$enable_dlopen_self
16904
 
 
16905
 
# Whether dlopen of statically linked programs is supported.
16906
 
dlopen_self_static=$enable_dlopen_self_static
16907
 
 
16908
 
# Compiler flag to prevent dynamic linking.
16909
 
link_static_flag=$lt_lt_prog_compiler_static_F77
16910
 
 
16911
 
# Compiler flag to turn off builtin functions.
16912
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16913
 
 
16914
 
# Compiler flag to allow reflexive dlopens.
16915
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16916
 
 
16917
 
# Compiler flag to generate shared objects directly from archives.
16918
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16919
 
 
16920
 
# Compiler flag to generate thread-safe objects.
16921
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16922
 
 
16923
 
# Library versioning type.
16924
 
version_type=$version_type
16925
 
 
16926
 
# Format of library name prefix.
16927
 
libname_spec=$lt_libname_spec
16928
 
 
16929
 
# List of archive names.  First name is the real one, the rest are links.
16930
 
# The last name is the one that the linker finds with -lNAME.
16931
 
library_names_spec=$lt_library_names_spec
16932
 
 
16933
 
# The coded name of the library, if different from the real name.
16934
 
soname_spec=$lt_soname_spec
16935
 
 
16936
 
# Commands used to build and install an old-style archive.
16937
 
RANLIB=$lt_RANLIB
16938
 
old_archive_cmds=$lt_old_archive_cmds_F77
16939
 
old_postinstall_cmds=$lt_old_postinstall_cmds
16940
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16941
 
 
16942
 
# Create an old-style archive from a shared archive.
16943
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16944
 
 
16945
 
# Create a temporary old-style archive to link instead of a shared archive.
16946
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16947
 
 
16948
 
# Commands used to build and install a shared archive.
16949
 
archive_cmds=$lt_archive_cmds_F77
16950
 
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16951
 
postinstall_cmds=$lt_postinstall_cmds
16952
 
postuninstall_cmds=$lt_postuninstall_cmds
16953
 
 
16954
 
# Commands used to build a loadable module (assumed same as above if empty)
16955
 
module_cmds=$lt_module_cmds_F77
16956
 
module_expsym_cmds=$lt_module_expsym_cmds_F77
16957
 
 
16958
 
# Commands to strip libraries.
16959
 
old_striplib=$lt_old_striplib
16960
 
striplib=$lt_striplib
16961
 
 
16962
 
# Dependencies to place before the objects being linked to create a
16963
 
# shared library.
16964
 
predep_objects=$lt_predep_objects_F77
16965
 
 
16966
 
# Dependencies to place after the objects being linked to create a
16967
 
# shared library.
16968
 
postdep_objects=$lt_postdep_objects_F77
16969
 
 
16970
 
# Dependencies to place before the objects being linked to create a
16971
 
# shared library.
16972
 
predeps=$lt_predeps_F77
16973
 
 
16974
 
# Dependencies to place after the objects being linked to create a
16975
 
# shared library.
16976
 
postdeps=$lt_postdeps_F77
16977
 
 
16978
 
# The directories searched by this compiler when creating a shared
16979
 
# library
16980
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16981
 
 
16982
 
# The library search path used internally by the compiler when linking
16983
 
# a shared library.
16984
 
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16985
 
 
16986
 
# Method to check whether dependent libraries are shared objects.
16987
 
deplibs_check_method=$lt_deplibs_check_method
16988
 
 
16989
 
# Command to use when deplibs_check_method == file_magic.
16990
 
file_magic_cmd=$lt_file_magic_cmd
16991
 
 
16992
 
# Flag that allows shared libraries with undefined symbols to be built.
16993
 
allow_undefined_flag=$lt_allow_undefined_flag_F77
16994
 
 
16995
 
# Flag that forces no undefined symbols.
16996
 
no_undefined_flag=$lt_no_undefined_flag_F77
16997
 
 
16998
 
# Commands used to finish a libtool library installation in a directory.
16999
 
finish_cmds=$lt_finish_cmds
17000
 
 
17001
 
# Same as above, but a single script fragment to be evaled but not shown.
17002
 
finish_eval=$lt_finish_eval
17003
 
 
17004
 
# Take the output of nm and produce a listing of raw symbols and C names.
17005
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17006
 
 
17007
 
# Transform the output of nm in a proper C declaration
17008
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17009
 
 
17010
 
# Transform the output of nm in a C name address pair
17011
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17012
 
 
17013
 
# This is the shared library runtime path variable.
17014
 
runpath_var=$runpath_var
17015
 
 
17016
 
# This is the shared library path variable.
17017
 
shlibpath_var=$shlibpath_var
17018
 
 
17019
 
# Is shlibpath searched before the hard-coded library search path?
17020
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17021
 
 
17022
 
# How to hardcode a shared library path into an executable.
17023
 
hardcode_action=$hardcode_action_F77
17024
 
 
17025
 
# Whether we should hardcode library paths into libraries.
17026
 
hardcode_into_libs=$hardcode_into_libs
17027
 
 
17028
 
# Flag to hardcode \$libdir into a binary during linking.
17029
 
# This must work even if \$libdir does not exist.
17030
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17031
 
 
17032
 
# If ld is used when linking, flag to hardcode \$libdir into
17033
 
# a binary during linking. This must work even if \$libdir does
17034
 
# not exist.
17035
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17036
 
 
17037
 
# Whether we need a single -rpath flag with a separated argument.
17038
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17039
 
 
17040
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17041
 
# resulting binary.
17042
 
hardcode_direct=$hardcode_direct_F77
17043
 
 
17044
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17045
 
# resulting binary.
17046
 
hardcode_minus_L=$hardcode_minus_L_F77
17047
 
 
17048
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17049
 
# the resulting binary.
17050
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17051
 
 
17052
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
17053
 
# and all subsequent libraries and executables linked against it.
17054
 
hardcode_automatic=$hardcode_automatic_F77
17055
 
 
17056
 
# Variables whose values should be saved in libtool wrapper scripts and
17057
 
# restored at relink time.
17058
 
variables_saved_for_relink="$variables_saved_for_relink"
17059
 
 
17060
 
# Whether libtool must link a program against all its dependency libraries.
17061
 
link_all_deplibs=$link_all_deplibs_F77
17062
 
 
17063
 
# Compile-time system search path for libraries
17064
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17065
 
 
17066
 
# Run-time system search path for libraries
17067
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17068
 
 
17069
 
# Fix the shell variable \$srcfile for the compiler.
17070
 
fix_srcfile_path=$lt_fix_srcfile_path
17071
 
 
17072
 
# Set to yes if exported symbols are required.
17073
 
always_export_symbols=$always_export_symbols_F77
17074
 
 
17075
 
# The commands to list exported symbols.
17076
 
export_symbols_cmds=$lt_export_symbols_cmds_F77
17077
 
 
17078
 
# The commands to extract the exported symbol list from a shared archive.
17079
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17080
 
 
17081
 
# Symbols that should not be listed in the preloaded symbols.
17082
 
exclude_expsyms=$lt_exclude_expsyms_F77
17083
 
 
17084
 
# Symbols that must always be exported.
17085
 
include_expsyms=$lt_include_expsyms_F77
17086
 
 
17087
 
# ### END LIBTOOL TAG CONFIG: $tagname
17088
 
 
17089
 
__EOF__
17090
 
 
17091
 
 
17092
 
else
17093
 
  # If there is no Makefile yet, we rely on a make rule to execute
17094
 
  # `config.status --recheck' to rerun these tests and create the
17095
 
  # libtool script then.
17096
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17097
 
  if test -f "$ltmain_in"; then
17098
 
    test -f Makefile && make "$ltmain"
17099
 
  fi
17100
 
fi
17101
 
 
17102
 
 
17103
 
ac_ext=c
17104
 
ac_cpp='$CPP $CPPFLAGS'
17105
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17106
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17107
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17108
 
 
17109
 
CC="$lt_save_CC"
17110
 
 
17111
 
        else
17112
 
          tagname=""
17113
 
        fi
17114
 
        ;;
17115
 
 
17116
 
      GCJ)
17117
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17118
 
 
17119
 
 
17120
 
# Source file extension for Java test sources.
17121
 
ac_ext=java
17122
 
 
17123
 
# Object file extension for compiled Java test sources.
17124
 
objext=o
17125
 
objext_GCJ=$objext
17126
 
 
17127
 
# Code to be used in simple compile tests
17128
 
lt_simple_compile_test_code="class foo {}"
17129
 
 
17130
 
# Code to be used in simple link tests
17131
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17132
 
 
17133
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17134
 
 
17135
 
# If no C compiler was specified, use CC.
17136
 
LTCC=${LTCC-"$CC"}
17137
 
 
17138
 
# If no C compiler flags were specified, use CFLAGS.
17139
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17140
 
 
17141
 
# Allow CC to be a program name with arguments.
17142
 
compiler=$CC
17143
 
 
17144
 
 
17145
 
# save warnings/boilerplate of simple test code
17146
 
ac_outfile=conftest.$ac_objext
17147
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17148
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17149
 
_lt_compiler_boilerplate=`cat conftest.err`
17150
 
$rm conftest*
17151
 
 
17152
 
ac_outfile=conftest.$ac_objext
17153
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
17154
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17155
 
_lt_linker_boilerplate=`cat conftest.err`
17156
 
$rm -r conftest*
17157
 
 
17158
 
 
17159
 
# Allow CC to be a program name with arguments.
17160
 
lt_save_CC="$CC"
17161
 
CC=${GCJ-"gcj"}
17162
 
compiler=$CC
17163
 
compiler_GCJ=$CC
17164
 
for cc_temp in $compiler""; do
17165
 
  case $cc_temp in
17166
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17167
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17168
 
    \-*) ;;
17169
 
    *) break;;
17170
 
  esac
17171
 
done
17172
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17173
 
 
17174
 
 
17175
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
17176
 
archive_cmds_need_lc_GCJ=no
17177
 
 
17178
 
old_archive_cmds_GCJ=$old_archive_cmds
17179
 
 
17180
 
 
17181
 
lt_prog_compiler_no_builtin_flag_GCJ=
17182
 
 
17183
 
if test "$GCC" = yes; then
17184
 
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17185
 
 
17186
 
 
17187
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17188
 
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17189
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17190
 
  $as_echo_n "(cached) " >&6
17191
 
else
17192
 
  lt_cv_prog_compiler_rtti_exceptions=no
17193
 
  ac_outfile=conftest.$ac_objext
17194
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17195
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
17196
 
   # Insert the option either (1) after the last *FLAGS variable, or
17197
 
   # (2) before a word containing "conftest.", or (3) at the end.
17198
 
   # Note that $ac_compile itself does not contain backslashes and begins
17199
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17200
 
   # The option is referenced via a variable to avoid confusing sed.
17201
 
   lt_compile=`echo "$ac_compile" | $SED \
17202
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17203
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17204
 
   -e 's:$: $lt_compiler_flag:'`
17205
 
   (eval echo "\"\$as_me:17205: $lt_compile\"" >&5)
17206
 
   (eval "$lt_compile" 2>conftest.err)
17207
 
   ac_status=$?
17208
 
   cat conftest.err >&5
17209
 
   echo "$as_me:17209: \$? = $ac_status" >&5
17210
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
17211
 
     # The compiler can only warn and ignore the option if not recognized
17212
 
     # So say no if there are warnings other than the usual output.
17213
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17214
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17215
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17216
 
       lt_cv_prog_compiler_rtti_exceptions=yes
17217
 
     fi
17218
 
   fi
17219
 
   $rm conftest*
17220
 
 
17221
 
fi
17222
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17223
 
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17224
 
 
17225
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17226
 
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17227
 
else
17228
 
    :
17229
 
fi
17230
 
 
17231
 
fi
17232
 
 
17233
 
lt_prog_compiler_wl_GCJ=
17234
 
lt_prog_compiler_pic_GCJ=
17235
 
lt_prog_compiler_static_GCJ=
17236
 
 
17237
 
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17238
 
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17239
 
 
17240
 
  if test "$GCC" = yes; then
17241
 
    lt_prog_compiler_wl_GCJ='-Wl,'
17242
 
    lt_prog_compiler_static_GCJ='-static'
17243
 
 
17244
 
    case $host_os in
17245
 
      aix*)
17246
 
      # All AIX code is PIC.
17247
 
      if test "$host_cpu" = ia64; then
17248
 
        # AIX 5 now supports IA64 processor
17249
 
        lt_prog_compiler_static_GCJ='-Bstatic'
17250
 
      fi
17251
 
      ;;
17252
 
 
17253
 
    amigaos*)
17254
 
      # FIXME: we need at least 68020 code to build shared libraries, but
17255
 
      # adding the `-m68020' flag to GCC prevents building anything better,
17256
 
      # like `-m68040'.
17257
 
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17258
 
      ;;
17259
 
 
17260
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17261
 
      # PIC is the default for these OSes.
17262
 
      ;;
17263
 
 
17264
 
    mingw* | cygwin* | pw32* | os2*)
17265
 
      # This hack is so that the source file can tell whether it is being
17266
 
      # built for inclusion in a dll (and should export symbols for example).
17267
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17268
 
      # (--disable-auto-import) libraries
17269
 
 
17270
 
      ;;
17271
 
 
17272
 
    darwin* | rhapsody*)
17273
 
      # PIC is the default on this platform
17274
 
      # Common symbols not allowed in MH_DYLIB files
17275
 
      lt_prog_compiler_pic_GCJ='-fno-common'
17276
 
      ;;
17277
 
 
17278
 
    interix[3-9]*)
17279
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17280
 
      # Instead, we relocate shared libraries at runtime.
17281
 
      ;;
17282
 
 
17283
 
    msdosdjgpp*)
17284
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
17285
 
      # on systems that don't support them.
17286
 
      lt_prog_compiler_can_build_shared_GCJ=no
17287
 
      enable_shared=no
17288
 
      ;;
17289
 
 
17290
 
    sysv4*MP*)
17291
 
      if test -d /usr/nec; then
17292
 
        lt_prog_compiler_pic_GCJ=-Kconform_pic
17293
 
      fi
17294
 
      ;;
17295
 
 
17296
 
    hpux*)
17297
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17298
 
      # not for PA HP-UX.
17299
 
      case $host_cpu in
17300
 
      hppa*64*|ia64*)
17301
 
        # +Z the default
17302
 
        ;;
17303
 
      *)
17304
 
        lt_prog_compiler_pic_GCJ='-fPIC'
17305
 
        ;;
17306
 
      esac
17307
 
      ;;
17308
 
 
17309
 
    *)
17310
 
      lt_prog_compiler_pic_GCJ='-fPIC'
17311
 
      ;;
17312
 
    esac
17313
 
  else
17314
 
    # PORTME Check for flag to pass linker flags through the system compiler.
17315
 
    case $host_os in
17316
 
    aix*)
17317
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17318
 
      if test "$host_cpu" = ia64; then
17319
 
        # AIX 5 now supports IA64 processor
17320
 
        lt_prog_compiler_static_GCJ='-Bstatic'
17321
 
      else
17322
 
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17323
 
      fi
17324
 
      ;;
17325
 
      darwin*)
17326
 
        # PIC is the default on this platform
17327
 
        # Common symbols not allowed in MH_DYLIB files
17328
 
       case $cc_basename in
17329
 
         xlc*)
17330
 
         lt_prog_compiler_pic_GCJ='-qnocommon'
17331
 
         lt_prog_compiler_wl_GCJ='-Wl,'
17332
 
         ;;
17333
 
       esac
17334
 
       ;;
17335
 
 
17336
 
    mingw* | cygwin* | pw32* | os2*)
17337
 
      # This hack is so that the source file can tell whether it is being
17338
 
      # built for inclusion in a dll (and should export symbols for example).
17339
 
 
17340
 
      ;;
17341
 
 
17342
 
    hpux9* | hpux10* | hpux11*)
17343
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17344
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17345
 
      # not for PA HP-UX.
17346
 
      case $host_cpu in
17347
 
      hppa*64*|ia64*)
17348
 
        # +Z the default
17349
 
        ;;
17350
 
      *)
17351
 
        lt_prog_compiler_pic_GCJ='+Z'
17352
 
        ;;
17353
 
      esac
17354
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17355
 
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17356
 
      ;;
17357
 
 
17358
 
    irix5* | irix6* | nonstopux*)
17359
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17360
 
      # PIC (with -KPIC) is the default.
17361
 
      lt_prog_compiler_static_GCJ='-non_shared'
17362
 
      ;;
17363
 
 
17364
 
    newsos6)
17365
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17366
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17367
 
      ;;
17368
 
 
17369
 
    linux* | k*bsd*-gnu)
17370
 
      case $cc_basename in
17371
 
      icc* | ecc*)
17372
 
        lt_prog_compiler_wl_GCJ='-Wl,'
17373
 
        lt_prog_compiler_pic_GCJ='-KPIC'
17374
 
        lt_prog_compiler_static_GCJ='-static'
17375
 
        ;;
17376
 
      pgcc* | pgf77* | pgf90* | pgf95*)
17377
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
17378
 
        # which looks to be a dead project)
17379
 
        lt_prog_compiler_wl_GCJ='-Wl,'
17380
 
        lt_prog_compiler_pic_GCJ='-fpic'
17381
 
        lt_prog_compiler_static_GCJ='-Bstatic'
17382
 
        ;;
17383
 
      ccc*)
17384
 
        lt_prog_compiler_wl_GCJ='-Wl,'
17385
 
        # All Alpha code is PIC.
17386
 
        lt_prog_compiler_static_GCJ='-non_shared'
17387
 
        ;;
17388
 
      *)
17389
 
        case `$CC -V 2>&1 | sed 5q` in
17390
 
        *Sun\ C*)
17391
 
          # Sun C 5.9
17392
 
          lt_prog_compiler_pic_GCJ='-KPIC'
17393
 
          lt_prog_compiler_static_GCJ='-Bstatic'
17394
 
          lt_prog_compiler_wl_GCJ='-Wl,'
17395
 
          ;;
17396
 
        *Sun\ F*)
17397
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
17398
 
          lt_prog_compiler_pic_GCJ='-KPIC'
17399
 
          lt_prog_compiler_static_GCJ='-Bstatic'
17400
 
          lt_prog_compiler_wl_GCJ=''
17401
 
          ;;
17402
 
        esac
17403
 
        ;;
17404
 
      esac
17405
 
      ;;
17406
 
 
17407
 
    osf3* | osf4* | osf5*)
17408
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17409
 
      # All OSF/1 code is PIC.
17410
 
      lt_prog_compiler_static_GCJ='-non_shared'
17411
 
      ;;
17412
 
 
17413
 
    rdos*)
17414
 
      lt_prog_compiler_static_GCJ='-non_shared'
17415
 
      ;;
17416
 
 
17417
 
    solaris*)
17418
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17419
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17420
 
      case $cc_basename in
17421
 
      f77* | f90* | f95*)
17422
 
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17423
 
      *)
17424
 
        lt_prog_compiler_wl_GCJ='-Wl,';;
17425
 
      esac
17426
 
      ;;
17427
 
 
17428
 
    sunos4*)
17429
 
      lt_prog_compiler_wl_GCJ='-Qoption ld '
17430
 
      lt_prog_compiler_pic_GCJ='-PIC'
17431
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17432
 
      ;;
17433
 
 
17434
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
17435
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17436
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17437
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17438
 
      ;;
17439
 
 
17440
 
    sysv4*MP*)
17441
 
      if test -d /usr/nec ;then
17442
 
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
17443
 
        lt_prog_compiler_static_GCJ='-Bstatic'
17444
 
      fi
17445
 
      ;;
17446
 
 
17447
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17448
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17449
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17450
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17451
 
      ;;
17452
 
 
17453
 
    unicos*)
17454
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17455
 
      lt_prog_compiler_can_build_shared_GCJ=no
17456
 
      ;;
17457
 
 
17458
 
    uts4*)
17459
 
      lt_prog_compiler_pic_GCJ='-pic'
17460
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17461
 
      ;;
17462
 
 
17463
 
    *)
17464
 
      lt_prog_compiler_can_build_shared_GCJ=no
17465
 
      ;;
17466
 
    esac
17467
 
  fi
17468
 
 
17469
 
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17470
 
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17471
 
 
17472
 
#
17473
 
# Check to make sure the PIC flag actually works.
17474
 
#
17475
 
if test -n "$lt_prog_compiler_pic_GCJ"; then
17476
 
 
17477
 
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17478
 
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17479
 
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17480
 
  $as_echo_n "(cached) " >&6
17481
 
else
17482
 
  lt_cv_prog_compiler_pic_works_GCJ=no
17483
 
  ac_outfile=conftest.$ac_objext
17484
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17485
 
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17486
 
   # Insert the option either (1) after the last *FLAGS variable, or
17487
 
   # (2) before a word containing "conftest.", or (3) at the end.
17488
 
   # Note that $ac_compile itself does not contain backslashes and begins
17489
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17490
 
   # The option is referenced via a variable to avoid confusing sed.
17491
 
   lt_compile=`echo "$ac_compile" | $SED \
17492
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17493
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17494
 
   -e 's:$: $lt_compiler_flag:'`
17495
 
   (eval echo "\"\$as_me:17495: $lt_compile\"" >&5)
17496
 
   (eval "$lt_compile" 2>conftest.err)
17497
 
   ac_status=$?
17498
 
   cat conftest.err >&5
17499
 
   echo "$as_me:17499: \$? = $ac_status" >&5
17500
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
17501
 
     # The compiler can only warn and ignore the option if not recognized
17502
 
     # So say no if there are warnings other than the usual output.
17503
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17504
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17505
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17506
 
       lt_cv_prog_compiler_pic_works_GCJ=yes
17507
 
     fi
17508
 
   fi
17509
 
   $rm conftest*
17510
 
 
17511
 
fi
17512
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17513
 
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17514
 
 
17515
 
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17516
 
    case $lt_prog_compiler_pic_GCJ in
17517
 
     "" | " "*) ;;
17518
 
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17519
 
     esac
17520
 
else
17521
 
    lt_prog_compiler_pic_GCJ=
17522
 
     lt_prog_compiler_can_build_shared_GCJ=no
17523
 
fi
17524
 
 
17525
 
fi
17526
 
case $host_os in
17527
 
  # For platforms which do not support PIC, -DPIC is meaningless:
17528
 
  *djgpp*)
17529
 
    lt_prog_compiler_pic_GCJ=
17530
 
    ;;
17531
 
  *)
17532
 
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17533
 
    ;;
17534
 
esac
17535
 
 
17536
 
#
17537
 
# Check to make sure the static flag actually works.
17538
 
#
17539
 
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17540
 
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17541
 
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17542
 
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17543
 
  $as_echo_n "(cached) " >&6
17544
 
else
17545
 
  lt_cv_prog_compiler_static_works_GCJ=no
17546
 
   save_LDFLAGS="$LDFLAGS"
17547
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17548
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17549
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17550
 
     # The linker can only warn and ignore the option if not recognized
17551
 
     # So say no if there are warnings
17552
 
     if test -s conftest.err; then
17553
 
       # Append any errors to the config.log.
17554
 
       cat conftest.err 1>&5
17555
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17556
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17557
 
       if diff conftest.exp conftest.er2 >/dev/null; then
17558
 
         lt_cv_prog_compiler_static_works_GCJ=yes
17559
 
       fi
17560
 
     else
17561
 
       lt_cv_prog_compiler_static_works_GCJ=yes
17562
 
     fi
17563
 
   fi
17564
 
   $rm -r conftest*
17565
 
   LDFLAGS="$save_LDFLAGS"
17566
 
 
17567
 
fi
17568
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17569
 
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17570
 
 
17571
 
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17572
 
    :
17573
 
else
17574
 
    lt_prog_compiler_static_GCJ=
17575
 
fi
17576
 
 
17577
 
 
17578
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17579
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17580
 
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17581
 
  $as_echo_n "(cached) " >&6
17582
 
else
17583
 
  lt_cv_prog_compiler_c_o_GCJ=no
17584
 
   $rm -r conftest 2>/dev/null
17585
 
   mkdir conftest
17586
 
   cd conftest
17587
 
   mkdir out
17588
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17589
 
 
17590
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
17591
 
   # Insert the option either (1) after the last *FLAGS variable, or
17592
 
   # (2) before a word containing "conftest.", or (3) at the end.
17593
 
   # Note that $ac_compile itself does not contain backslashes and begins
17594
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17595
 
   lt_compile=`echo "$ac_compile" | $SED \
17596
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17597
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17598
 
   -e 's:$: $lt_compiler_flag:'`
17599
 
   (eval echo "\"\$as_me:17599: $lt_compile\"" >&5)
17600
 
   (eval "$lt_compile" 2>out/conftest.err)
17601
 
   ac_status=$?
17602
 
   cat out/conftest.err >&5
17603
 
   echo "$as_me:17603: \$? = $ac_status" >&5
17604
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17605
 
   then
17606
 
     # The compiler can only warn and ignore the option if not recognized
17607
 
     # So say no if there are warnings
17608
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17609
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17610
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17611
 
       lt_cv_prog_compiler_c_o_GCJ=yes
17612
 
     fi
17613
 
   fi
17614
 
   chmod u+w . 2>&5
17615
 
   $rm conftest*
17616
 
   # SGI C++ compiler will create directory out/ii_files/ for
17617
 
   # template instantiation
17618
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17619
 
   $rm out/* && rmdir out
17620
 
   cd ..
17621
 
   rmdir conftest
17622
 
   $rm conftest*
17623
 
 
17624
 
fi
17625
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17626
 
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17627
 
 
17628
 
 
17629
 
hard_links="nottested"
17630
 
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17631
 
  # do not overwrite the value of need_locks provided by the user
17632
 
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17633
 
$as_echo_n "checking if we can lock with hard links... " >&6; }
17634
 
  hard_links=yes
17635
 
  $rm conftest*
17636
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17637
 
  touch conftest.a
17638
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
17639
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17640
 
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17641
 
$as_echo "$hard_links" >&6; }
17642
 
  if test "$hard_links" = no; then
17643
 
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17644
 
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17645
 
    need_locks=warn
17646
 
  fi
17647
 
else
17648
 
  need_locks=no
17649
 
fi
17650
 
 
17651
 
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17652
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17653
 
 
17654
 
  runpath_var=
17655
 
  allow_undefined_flag_GCJ=
17656
 
  enable_shared_with_static_runtimes_GCJ=no
17657
 
  archive_cmds_GCJ=
17658
 
  archive_expsym_cmds_GCJ=
17659
 
  old_archive_From_new_cmds_GCJ=
17660
 
  old_archive_from_expsyms_cmds_GCJ=
17661
 
  export_dynamic_flag_spec_GCJ=
17662
 
  whole_archive_flag_spec_GCJ=
17663
 
  thread_safe_flag_spec_GCJ=
17664
 
  hardcode_libdir_flag_spec_GCJ=
17665
 
  hardcode_libdir_flag_spec_ld_GCJ=
17666
 
  hardcode_libdir_separator_GCJ=
17667
 
  hardcode_direct_GCJ=no
17668
 
  hardcode_minus_L_GCJ=no
17669
 
  hardcode_shlibpath_var_GCJ=unsupported
17670
 
  link_all_deplibs_GCJ=unknown
17671
 
  hardcode_automatic_GCJ=no
17672
 
  module_cmds_GCJ=
17673
 
  module_expsym_cmds_GCJ=
17674
 
  always_export_symbols_GCJ=no
17675
 
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17676
 
  # include_expsyms should be a list of space-separated symbols to be *always*
17677
 
  # included in the symbol list
17678
 
  include_expsyms_GCJ=
17679
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
17680
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17681
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17682
 
  # as well as any symbol that contains `d'.
17683
 
  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17684
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17685
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
17686
 
  # the symbol is explicitly referenced.  Since portable code cannot
17687
 
  # rely on this symbol name, it's probably fine to never include it in
17688
 
  # preloaded symbol tables.
17689
 
  # Exclude shared library initialization/finalization symbols.
17690
 
  extract_expsyms_cmds=
17691
 
  # Just being paranoid about ensuring that cc_basename is set.
17692
 
  for cc_temp in $compiler""; do
17693
 
  case $cc_temp in
17694
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17695
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17696
 
    \-*) ;;
17697
 
    *) break;;
17698
 
  esac
17699
 
done
17700
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17701
 
 
17702
 
  case $host_os in
17703
 
  cygwin* | mingw* | pw32*)
17704
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17705
 
    # When not using gcc, we currently assume that we are using
17706
 
    # Microsoft Visual C++.
17707
 
    if test "$GCC" != yes; then
17708
 
      with_gnu_ld=no
17709
 
    fi
17710
 
    ;;
17711
 
  interix*)
17712
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
17713
 
    with_gnu_ld=yes
17714
 
    ;;
17715
 
  openbsd*)
17716
 
    with_gnu_ld=no
17717
 
    ;;
17718
 
  esac
17719
 
 
17720
 
  ld_shlibs_GCJ=yes
17721
 
  if test "$with_gnu_ld" = yes; then
17722
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
17723
 
    wlarc='${wl}'
17724
 
 
17725
 
    # Set some defaults for GNU ld with shared library support. These
17726
 
    # are reset later if shared libraries are not supported. Putting them
17727
 
    # here allows them to be overridden if necessary.
17728
 
    runpath_var=LD_RUN_PATH
17729
 
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17730
 
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17731
 
    # ancient GNU ld didn't support --whole-archive et. al.
17732
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17733
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17734
 
      else
17735
 
        whole_archive_flag_spec_GCJ=
17736
 
    fi
17737
 
    supports_anon_versioning=no
17738
 
    case `$LD -v 2>/dev/null` in
17739
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17740
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17741
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17742
 
      *\ 2.11.*) ;; # other 2.11 versions
17743
 
      *) supports_anon_versioning=yes ;;
17744
 
    esac
17745
 
 
17746
 
    # See if GNU ld supports shared libraries.
17747
 
    case $host_os in
17748
 
    aix[3-9]*)
17749
 
      # On AIX/PPC, the GNU linker is very broken
17750
 
      if test "$host_cpu" != ia64; then
17751
 
        ld_shlibs_GCJ=no
17752
 
        cat <<EOF 1>&2
17753
 
 
17754
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17755
 
*** to be unable to reliably create shared libraries on AIX.
17756
 
*** Therefore, libtool is disabling shared libraries support.  If you
17757
 
*** really care for shared libraries, you may want to modify your PATH
17758
 
*** so that a non-GNU linker is found, and then restart.
17759
 
 
17760
 
EOF
17761
 
      fi
17762
 
      ;;
17763
 
 
17764
 
    amigaos*)
17765
 
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17766
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17767
 
      hardcode_minus_L_GCJ=yes
17768
 
 
17769
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17770
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
17771
 
      # to version 4, is to share data among multiple programs linked
17772
 
      # with the same dynamic library.  Since this doesn't match the
17773
 
      # behavior of shared libraries on other platforms, we can't use
17774
 
      # them.
17775
 
      ld_shlibs_GCJ=no
17776
 
      ;;
17777
 
 
17778
 
    beos*)
17779
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17780
 
        allow_undefined_flag_GCJ=unsupported
17781
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17782
 
        # support --undefined.  This deserves some investigation.  FIXME
17783
 
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17784
 
      else
17785
 
        ld_shlibs_GCJ=no
17786
 
      fi
17787
 
      ;;
17788
 
 
17789
 
    cygwin* | mingw* | pw32*)
17790
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17791
 
      # as there is no search path for DLLs.
17792
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17793
 
      allow_undefined_flag_GCJ=unsupported
17794
 
      always_export_symbols_GCJ=no
17795
 
      enable_shared_with_static_runtimes_GCJ=yes
17796
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17797
 
 
17798
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17799
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17800
 
        # If the export-symbols file already is a .def file (1st line
17801
 
        # is EXPORTS), use it as is; otherwise, prepend...
17802
 
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17803
 
          cp $export_symbols $output_objdir/$soname.def;
17804
 
        else
17805
 
          echo EXPORTS > $output_objdir/$soname.def;
17806
 
          cat $export_symbols >> $output_objdir/$soname.def;
17807
 
        fi~
17808
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17809
 
      else
17810
 
        ld_shlibs_GCJ=no
17811
 
      fi
17812
 
      ;;
17813
 
 
17814
 
    interix[3-9]*)
17815
 
      hardcode_direct_GCJ=no
17816
 
      hardcode_shlibpath_var_GCJ=no
17817
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17818
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
17819
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17820
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
17821
 
      # default) and relocated if they conflict, which is a slow very memory
17822
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
17823
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17824
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17825
 
      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'
17826
 
      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'
17827
 
      ;;
17828
 
 
17829
 
    gnu* | linux* | k*bsd*-gnu)
17830
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17831
 
        tmp_addflag=
17832
 
        case $cc_basename,$host_cpu in
17833
 
        pgcc*)                          # Portland Group C compiler
17834
 
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17835
 
          tmp_addflag=' $pic_flag'
17836
 
          ;;
17837
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17838
 
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17839
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
17840
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17841
 
          tmp_addflag=' -i_dynamic' ;;
17842
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17843
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
17844
 
        ifc* | ifort*)                  # Intel Fortran compiler
17845
 
          tmp_addflag=' -nofor_main' ;;
17846
 
        esac
17847
 
        case `$CC -V 2>&1 | sed 5q` in
17848
 
        *Sun\ C*)                       # Sun C 5.9
17849
 
          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'
17850
 
          tmp_sharedflag='-G' ;;
17851
 
        *Sun\ F*)                       # Sun Fortran 8.3
17852
 
          tmp_sharedflag='-G' ;;
17853
 
        *)
17854
 
          tmp_sharedflag='-shared' ;;
17855
 
        esac
17856
 
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17857
 
 
17858
 
        if test $supports_anon_versioning = yes; then
17859
 
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17860
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17861
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
17862
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17863
 
        fi
17864
 
      else
17865
 
        ld_shlibs_GCJ=no
17866
 
      fi
17867
 
      ;;
17868
 
 
17869
 
    netbsd*)
17870
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17871
 
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17872
 
        wlarc=
17873
 
      else
17874
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17875
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17876
 
      fi
17877
 
      ;;
17878
 
 
17879
 
    solaris*)
17880
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17881
 
        ld_shlibs_GCJ=no
17882
 
        cat <<EOF 1>&2
17883
 
 
17884
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17885
 
*** create shared libraries on Solaris systems.  Therefore, libtool
17886
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
17887
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
17888
 
*** your PATH or compiler configuration so that the native linker is
17889
 
*** used, and then restart.
17890
 
 
17891
 
EOF
17892
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17893
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17894
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17895
 
      else
17896
 
        ld_shlibs_GCJ=no
17897
 
      fi
17898
 
      ;;
17899
 
 
17900
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17901
 
      case `$LD -v 2>&1` in
17902
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17903
 
        ld_shlibs_GCJ=no
17904
 
        cat <<_LT_EOF 1>&2
17905
 
 
17906
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17907
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
17908
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
17909
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17910
 
*** your PATH or compiler configuration so that the native linker is
17911
 
*** used, and then restart.
17912
 
 
17913
 
_LT_EOF
17914
 
        ;;
17915
 
        *)
17916
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17917
 
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17918
 
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17919
 
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17920
 
          else
17921
 
            ld_shlibs_GCJ=no
17922
 
          fi
17923
 
        ;;
17924
 
      esac
17925
 
      ;;
17926
 
 
17927
 
    sunos4*)
17928
 
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17929
 
      wlarc=
17930
 
      hardcode_direct_GCJ=yes
17931
 
      hardcode_shlibpath_var_GCJ=no
17932
 
      ;;
17933
 
 
17934
 
    *)
17935
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17936
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17937
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17938
 
      else
17939
 
        ld_shlibs_GCJ=no
17940
 
      fi
17941
 
      ;;
17942
 
    esac
17943
 
 
17944
 
    if test "$ld_shlibs_GCJ" = no; then
17945
 
      runpath_var=
17946
 
      hardcode_libdir_flag_spec_GCJ=
17947
 
      export_dynamic_flag_spec_GCJ=
17948
 
      whole_archive_flag_spec_GCJ=
17949
 
    fi
17950
 
  else
17951
 
    # PORTME fill in a description of your system's linker (not GNU ld)
17952
 
    case $host_os in
17953
 
    aix3*)
17954
 
      allow_undefined_flag_GCJ=unsupported
17955
 
      always_export_symbols_GCJ=yes
17956
 
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17957
 
      # Note: this linker hardcodes the directories in LIBPATH if there
17958
 
      # are no directories specified by -L.
17959
 
      hardcode_minus_L_GCJ=yes
17960
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17961
 
        # Neither direct hardcoding nor static linking is supported with a
17962
 
        # broken collect2.
17963
 
        hardcode_direct_GCJ=unsupported
17964
 
      fi
17965
 
      ;;
17966
 
 
17967
 
    aix[4-9]*)
17968
 
      if test "$host_cpu" = ia64; then
17969
 
        # On IA64, the linker does run time linking by default, so we don't
17970
 
        # have to do anything special.
17971
 
        aix_use_runtimelinking=no
17972
 
        exp_sym_flag='-Bexport'
17973
 
        no_entry_flag=""
17974
 
      else
17975
 
        # If we're using GNU nm, then we don't want the "-C" option.
17976
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
17977
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17978
 
          export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17979
 
        else
17980
 
          export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17981
 
        fi
17982
 
        aix_use_runtimelinking=no
17983
 
 
17984
 
        # Test if we are trying to use run time linking or normal
17985
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17986
 
        # need to do runtime linking.
17987
 
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17988
 
          for ld_flag in $LDFLAGS; do
17989
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17990
 
            aix_use_runtimelinking=yes
17991
 
            break
17992
 
          fi
17993
 
          done
17994
 
          ;;
17995
 
        esac
17996
 
 
17997
 
        exp_sym_flag='-bexport'
17998
 
        no_entry_flag='-bnoentry'
17999
 
      fi
18000
 
 
18001
 
      # When large executables or shared objects are built, AIX ld can
18002
 
      # have problems creating the table of contents.  If linking a library
18003
 
      # or program results in "error TOC overflow" add -mminimal-toc to
18004
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18005
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18006
 
 
18007
 
      archive_cmds_GCJ=''
18008
 
      hardcode_direct_GCJ=yes
18009
 
      hardcode_libdir_separator_GCJ=':'
18010
 
      link_all_deplibs_GCJ=yes
18011
 
 
18012
 
      if test "$GCC" = yes; then
18013
 
        case $host_os in aix4.[012]|aix4.[012].*)
18014
 
        # We only want to do this on AIX 4.2 and lower, the check
18015
 
        # below for broken collect2 doesn't work under 4.3+
18016
 
          collect2name=`${CC} -print-prog-name=collect2`
18017
 
          if test -f "$collect2name" && \
18018
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
18019
 
          then
18020
 
          # We have reworked collect2
18021
 
          :
18022
 
          else
18023
 
          # We have old collect2
18024
 
          hardcode_direct_GCJ=unsupported
18025
 
          # It fails to find uninstalled libraries when the uninstalled
18026
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
18027
 
          # to unsupported forces relinking
18028
 
          hardcode_minus_L_GCJ=yes
18029
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
18030
 
          hardcode_libdir_separator_GCJ=
18031
 
          fi
18032
 
          ;;
18033
 
        esac
18034
 
        shared_flag='-shared'
18035
 
        if test "$aix_use_runtimelinking" = yes; then
18036
 
          shared_flag="$shared_flag "'${wl}-G'
18037
 
        fi
18038
 
      else
18039
 
        # not using gcc
18040
 
        if test "$host_cpu" = ia64; then
18041
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18042
 
        # chokes on -Wl,-G. The following line is correct:
18043
 
          shared_flag='-G'
18044
 
        else
18045
 
          if test "$aix_use_runtimelinking" = yes; then
18046
 
            shared_flag='${wl}-G'
18047
 
          else
18048
 
            shared_flag='${wl}-bM:SRE'
18049
 
          fi
18050
 
        fi
18051
 
      fi
18052
 
 
18053
 
      # It seems that -bexpall does not export symbols beginning with
18054
 
      # underscore (_), so it is better to generate a list of symbols to export.
18055
 
      always_export_symbols_GCJ=yes
18056
 
      if test "$aix_use_runtimelinking" = yes; then
18057
 
        # Warning - without using the other runtime loading flags (-brtl),
18058
 
        # -berok will link without error, but may produce a broken library.
18059
 
        allow_undefined_flag_GCJ='-berok'
18060
 
       # Determine the default libpath from the value encoded in an empty executable.
18061
 
       cat >conftest.$ac_ext <<_ACEOF
18062
 
/* confdefs.h.  */
18063
 
_ACEOF
18064
 
cat confdefs.h >>conftest.$ac_ext
18065
 
cat >>conftest.$ac_ext <<_ACEOF
18066
 
/* end confdefs.h.  */
18067
 
 
18068
 
int
18069
 
main ()
18070
 
{
18071
 
 
18072
 
  ;
18073
 
  return 0;
18074
 
}
18075
 
_ACEOF
18076
 
rm -f conftest.$ac_objext conftest$ac_exeext
18077
 
if { (ac_try="$ac_link"
18078
 
case "(($ac_try" in
18079
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18080
 
  *) ac_try_echo=$ac_try;;
18081
 
esac
18082
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18083
 
$as_echo "$ac_try_echo") >&5
18084
 
  (eval "$ac_link") 2>conftest.er1
18085
 
  ac_status=$?
18086
 
  grep -v '^ *+' conftest.er1 >conftest.err
18087
 
  rm -f conftest.er1
18088
 
  cat conftest.err >&5
18089
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090
 
  (exit $ac_status); } && {
18091
 
         test -z "$ac_c_werror_flag" ||
18092
 
         test ! -s conftest.err
18093
 
       } && test -s conftest$ac_exeext && {
18094
 
         test "$cross_compiling" = yes ||
18095
 
         $as_test_x conftest$ac_exeext
18096
 
       }; then
18097
 
 
18098
 
lt_aix_libpath_sed='
18099
 
    /Import File Strings/,/^$/ {
18100
 
        /^0/ {
18101
 
            s/^0  *\(.*\)$/\1/
18102
 
            p
18103
 
        }
18104
 
    }'
18105
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18106
 
# Check for a 64-bit object if we didn't find anything.
18107
 
if test -z "$aix_libpath"; then
18108
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18109
 
fi
18110
 
else
18111
 
  $as_echo "$as_me: failed program was:" >&5
18112
 
sed 's/^/| /' conftest.$ac_ext >&5
18113
 
 
18114
 
 
18115
 
fi
18116
 
 
18117
 
rm -rf conftest.dSYM
18118
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18119
 
      conftest$ac_exeext conftest.$ac_ext
18120
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18121
 
 
18122
 
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18123
 
        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"
18124
 
       else
18125
 
        if test "$host_cpu" = ia64; then
18126
 
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18127
 
          allow_undefined_flag_GCJ="-z nodefs"
18128
 
          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"
18129
 
        else
18130
 
         # Determine the default libpath from the value encoded in an empty executable.
18131
 
         cat >conftest.$ac_ext <<_ACEOF
18132
 
/* confdefs.h.  */
18133
 
_ACEOF
18134
 
cat confdefs.h >>conftest.$ac_ext
18135
 
cat >>conftest.$ac_ext <<_ACEOF
18136
 
/* end confdefs.h.  */
18137
 
 
18138
 
int
18139
 
main ()
18140
 
{
18141
 
 
18142
 
  ;
18143
 
  return 0;
18144
 
}
18145
 
_ACEOF
18146
 
rm -f conftest.$ac_objext conftest$ac_exeext
18147
 
if { (ac_try="$ac_link"
18148
 
case "(($ac_try" in
18149
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18150
 
  *) ac_try_echo=$ac_try;;
18151
 
esac
18152
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18153
 
$as_echo "$ac_try_echo") >&5
18154
 
  (eval "$ac_link") 2>conftest.er1
18155
 
  ac_status=$?
18156
 
  grep -v '^ *+' conftest.er1 >conftest.err
18157
 
  rm -f conftest.er1
18158
 
  cat conftest.err >&5
18159
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160
 
  (exit $ac_status); } && {
18161
 
         test -z "$ac_c_werror_flag" ||
18162
 
         test ! -s conftest.err
18163
 
       } && test -s conftest$ac_exeext && {
18164
 
         test "$cross_compiling" = yes ||
18165
 
         $as_test_x conftest$ac_exeext
18166
 
       }; then
18167
 
 
18168
 
lt_aix_libpath_sed='
18169
 
    /Import File Strings/,/^$/ {
18170
 
        /^0/ {
18171
 
            s/^0  *\(.*\)$/\1/
18172
 
            p
18173
 
        }
18174
 
    }'
18175
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18176
 
# Check for a 64-bit object if we didn't find anything.
18177
 
if test -z "$aix_libpath"; then
18178
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18179
 
fi
18180
 
else
18181
 
  $as_echo "$as_me: failed program was:" >&5
18182
 
sed 's/^/| /' conftest.$ac_ext >&5
18183
 
 
18184
 
 
18185
 
fi
18186
 
 
18187
 
rm -rf conftest.dSYM
18188
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18189
 
      conftest$ac_exeext conftest.$ac_ext
18190
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18191
 
 
18192
 
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18193
 
          # Warning - without using the other run time loading flags,
18194
 
          # -berok will link without error, but may produce a broken library.
18195
 
          no_undefined_flag_GCJ=' ${wl}-bernotok'
18196
 
          allow_undefined_flag_GCJ=' ${wl}-berok'
18197
 
          # Exported symbols can be pulled into shared objects from archives
18198
 
          whole_archive_flag_spec_GCJ='$convenience'
18199
 
          archive_cmds_need_lc_GCJ=yes
18200
 
          # This is similar to how AIX traditionally builds its shared libraries.
18201
 
          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'
18202
 
        fi
18203
 
      fi
18204
 
      ;;
18205
 
 
18206
 
    amigaos*)
18207
 
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
18208
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18209
 
      hardcode_minus_L_GCJ=yes
18210
 
      # see comment about different semantics on the GNU ld section
18211
 
      ld_shlibs_GCJ=no
18212
 
      ;;
18213
 
 
18214
 
    bsdi[45]*)
18215
 
      export_dynamic_flag_spec_GCJ=-rdynamic
18216
 
      ;;
18217
 
 
18218
 
    cygwin* | mingw* | pw32*)
18219
 
      # When not using gcc, we currently assume that we are using
18220
 
      # Microsoft Visual C++.
18221
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
18222
 
      # no search path for DLLs.
18223
 
      hardcode_libdir_flag_spec_GCJ=' '
18224
 
      allow_undefined_flag_GCJ=unsupported
18225
 
      # Tell ltmain to make .lib files, not .a files.
18226
 
      libext=lib
18227
 
      # Tell ltmain to make .dll files, not .so files.
18228
 
      shrext_cmds=".dll"
18229
 
      # FIXME: Setting linknames here is a bad hack.
18230
 
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18231
 
      # The linker will automatically build a .lib file if we build a DLL.
18232
 
      old_archive_From_new_cmds_GCJ='true'
18233
 
      # FIXME: Should let the user specify the lib program.
18234
 
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18235
 
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18236
 
      enable_shared_with_static_runtimes_GCJ=yes
18237
 
      ;;
18238
 
 
18239
 
    darwin* | rhapsody*)
18240
 
      case $host_os in
18241
 
        rhapsody* | darwin1.[012])
18242
 
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18243
 
         ;;
18244
 
       *) # Darwin 1.3 on
18245
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18246
 
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18247
 
         else
18248
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
18249
 
             10.[012])
18250
 
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18251
 
               ;;
18252
 
             10.*)
18253
 
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18254
 
               ;;
18255
 
           esac
18256
 
         fi
18257
 
         ;;
18258
 
      esac
18259
 
      archive_cmds_need_lc_GCJ=no
18260
 
      hardcode_direct_GCJ=no
18261
 
      hardcode_automatic_GCJ=yes
18262
 
      hardcode_shlibpath_var_GCJ=unsupported
18263
 
      whole_archive_flag_spec_GCJ=''
18264
 
      link_all_deplibs_GCJ=yes
18265
 
    if test "$GCC" = yes ; then
18266
 
        output_verbose_link_cmd='echo'
18267
 
        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18268
 
        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18269
 
        archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18270
 
        module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18271
 
    else
18272
 
      case $cc_basename in
18273
 
        xlc*)
18274
 
         output_verbose_link_cmd='echo'
18275
 
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18276
 
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18277
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18278
 
         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}'
18279
 
          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}'
18280
 
          ;;
18281
 
       *)
18282
 
         ld_shlibs_GCJ=no
18283
 
          ;;
18284
 
      esac
18285
 
    fi
18286
 
      ;;
18287
 
 
18288
 
    dgux*)
18289
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18290
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18291
 
      hardcode_shlibpath_var_GCJ=no
18292
 
      ;;
18293
 
 
18294
 
    freebsd1*)
18295
 
      ld_shlibs_GCJ=no
18296
 
      ;;
18297
 
 
18298
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18299
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
18300
 
    # does not break anything, and helps significantly (at the cost of a little
18301
 
    # extra space).
18302
 
    freebsd2.2*)
18303
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18304
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18305
 
      hardcode_direct_GCJ=yes
18306
 
      hardcode_shlibpath_var_GCJ=no
18307
 
      ;;
18308
 
 
18309
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18310
 
    freebsd2*)
18311
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18312
 
      hardcode_direct_GCJ=yes
18313
 
      hardcode_minus_L_GCJ=yes
18314
 
      hardcode_shlibpath_var_GCJ=no
18315
 
      ;;
18316
 
 
18317
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18318
 
    freebsd* | dragonfly*)
18319
 
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18320
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18321
 
      hardcode_direct_GCJ=yes
18322
 
      hardcode_shlibpath_var_GCJ=no
18323
 
      ;;
18324
 
 
18325
 
    hpux9*)
18326
 
      if test "$GCC" = yes; then
18327
 
        archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18328
 
      else
18329
 
        archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18330
 
      fi
18331
 
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18332
 
      hardcode_libdir_separator_GCJ=:
18333
 
      hardcode_direct_GCJ=yes
18334
 
 
18335
 
      # hardcode_minus_L: Not really in the search PATH,
18336
 
      # but as the default location of the library.
18337
 
      hardcode_minus_L_GCJ=yes
18338
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
18339
 
      ;;
18340
 
 
18341
 
    hpux10*)
18342
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18343
 
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18344
 
      else
18345
 
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18346
 
      fi
18347
 
      if test "$with_gnu_ld" = no; then
18348
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18349
 
        hardcode_libdir_separator_GCJ=:
18350
 
 
18351
 
        hardcode_direct_GCJ=yes
18352
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
18353
 
 
18354
 
        # hardcode_minus_L: Not really in the search PATH,
18355
 
        # but as the default location of the library.
18356
 
        hardcode_minus_L_GCJ=yes
18357
 
      fi
18358
 
      ;;
18359
 
 
18360
 
    hpux11*)
18361
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18362
 
        case $host_cpu in
18363
 
        hppa*64*)
18364
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18365
 
          ;;
18366
 
        ia64*)
18367
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18368
 
          ;;
18369
 
        *)
18370
 
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18371
 
          ;;
18372
 
        esac
18373
 
      else
18374
 
        case $host_cpu in
18375
 
        hppa*64*)
18376
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18377
 
          ;;
18378
 
        ia64*)
18379
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18380
 
          ;;
18381
 
        *)
18382
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18383
 
          ;;
18384
 
        esac
18385
 
      fi
18386
 
      if test "$with_gnu_ld" = no; then
18387
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18388
 
        hardcode_libdir_separator_GCJ=:
18389
 
 
18390
 
        case $host_cpu in
18391
 
        hppa*64*|ia64*)
18392
 
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18393
 
          hardcode_direct_GCJ=no
18394
 
          hardcode_shlibpath_var_GCJ=no
18395
 
          ;;
18396
 
        *)
18397
 
          hardcode_direct_GCJ=yes
18398
 
          export_dynamic_flag_spec_GCJ='${wl}-E'
18399
 
 
18400
 
          # hardcode_minus_L: Not really in the search PATH,
18401
 
          # but as the default location of the library.
18402
 
          hardcode_minus_L_GCJ=yes
18403
 
          ;;
18404
 
        esac
18405
 
      fi
18406
 
      ;;
18407
 
 
18408
 
    irix5* | irix6* | nonstopux*)
18409
 
      if test "$GCC" = yes; then
18410
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18411
 
      else
18412
 
        archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18413
 
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18414
 
      fi
18415
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18416
 
      hardcode_libdir_separator_GCJ=:
18417
 
      link_all_deplibs_GCJ=yes
18418
 
      ;;
18419
 
 
18420
 
    netbsd*)
18421
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18422
 
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18423
 
      else
18424
 
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18425
 
      fi
18426
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18427
 
      hardcode_direct_GCJ=yes
18428
 
      hardcode_shlibpath_var_GCJ=no
18429
 
      ;;
18430
 
 
18431
 
    newsos6)
18432
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18433
 
      hardcode_direct_GCJ=yes
18434
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18435
 
      hardcode_libdir_separator_GCJ=:
18436
 
      hardcode_shlibpath_var_GCJ=no
18437
 
      ;;
18438
 
 
18439
 
    openbsd*)
18440
 
      if test -f /usr/libexec/ld.so; then
18441
 
        hardcode_direct_GCJ=yes
18442
 
        hardcode_shlibpath_var_GCJ=no
18443
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18444
 
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18445
 
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18446
 
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18447
 
          export_dynamic_flag_spec_GCJ='${wl}-E'
18448
 
        else
18449
 
          case $host_os in
18450
 
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18451
 
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18452
 
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
18453
 
             ;;
18454
 
           *)
18455
 
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18456
 
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18457
 
             ;;
18458
 
          esac
18459
 
        fi
18460
 
      else
18461
 
        ld_shlibs_GCJ=no
18462
 
      fi
18463
 
      ;;
18464
 
 
18465
 
    os2*)
18466
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18467
 
      hardcode_minus_L_GCJ=yes
18468
 
      allow_undefined_flag_GCJ=unsupported
18469
 
      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
18470
 
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18471
 
      ;;
18472
 
 
18473
 
    osf3*)
18474
 
      if test "$GCC" = yes; then
18475
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18476
 
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18477
 
      else
18478
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
18479
 
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18480
 
      fi
18481
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18482
 
      hardcode_libdir_separator_GCJ=:
18483
 
      ;;
18484
 
 
18485
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
18486
 
      if test "$GCC" = yes; then
18487
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18488
 
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18489
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18490
 
      else
18491
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
18492
 
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18493
 
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18494
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18495
 
 
18496
 
        # Both c and cxx compiler support -rpath directly
18497
 
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18498
 
      fi
18499
 
      hardcode_libdir_separator_GCJ=:
18500
 
      ;;
18501
 
 
18502
 
    solaris*)
18503
 
      no_undefined_flag_GCJ=' -z text'
18504
 
      if test "$GCC" = yes; then
18505
 
        wlarc='${wl}'
18506
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18507
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18508
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18509
 
      else
18510
 
        wlarc=''
18511
 
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18512
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18513
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18514
 
      fi
18515
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18516
 
      hardcode_shlibpath_var_GCJ=no
18517
 
      case $host_os in
18518
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
18519
 
      *)
18520
 
        # The compiler driver will combine and reorder linker options,
18521
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
18522
 
        # but is careful enough not to reorder.
18523
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
18524
 
        if test "$GCC" = yes; then
18525
 
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18526
 
        else
18527
 
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18528
 
        fi
18529
 
        ;;
18530
 
      esac
18531
 
      link_all_deplibs_GCJ=yes
18532
 
      ;;
18533
 
 
18534
 
    sunos4*)
18535
 
      if test "x$host_vendor" = xsequent; then
18536
 
        # Use $CC to link under sequent, because it throws in some extra .o
18537
 
        # files that make .init and .fini sections work.
18538
 
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18539
 
      else
18540
 
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18541
 
      fi
18542
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18543
 
      hardcode_direct_GCJ=yes
18544
 
      hardcode_minus_L_GCJ=yes
18545
 
      hardcode_shlibpath_var_GCJ=no
18546
 
      ;;
18547
 
 
18548
 
    sysv4)
18549
 
      case $host_vendor in
18550
 
        sni)
18551
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18552
 
          hardcode_direct_GCJ=yes # is this really true???
18553
 
        ;;
18554
 
        siemens)
18555
 
          ## LD is ld it makes a PLAMLIB
18556
 
          ## CC just makes a GrossModule.
18557
 
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18558
 
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18559
 
          hardcode_direct_GCJ=no
18560
 
        ;;
18561
 
        motorola)
18562
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18563
 
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18564
 
        ;;
18565
 
      esac
18566
 
      runpath_var='LD_RUN_PATH'
18567
 
      hardcode_shlibpath_var_GCJ=no
18568
 
      ;;
18569
 
 
18570
 
    sysv4.3*)
18571
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18572
 
      hardcode_shlibpath_var_GCJ=no
18573
 
      export_dynamic_flag_spec_GCJ='-Bexport'
18574
 
      ;;
18575
 
 
18576
 
    sysv4*MP*)
18577
 
      if test -d /usr/nec; then
18578
 
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18579
 
        hardcode_shlibpath_var_GCJ=no
18580
 
        runpath_var=LD_RUN_PATH
18581
 
        hardcode_runpath_var=yes
18582
 
        ld_shlibs_GCJ=yes
18583
 
      fi
18584
 
      ;;
18585
 
 
18586
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18587
 
      no_undefined_flag_GCJ='${wl}-z,text'
18588
 
      archive_cmds_need_lc_GCJ=no
18589
 
      hardcode_shlibpath_var_GCJ=no
18590
 
      runpath_var='LD_RUN_PATH'
18591
 
 
18592
 
      if test "$GCC" = yes; then
18593
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18594
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18595
 
      else
18596
 
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18597
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18598
 
      fi
18599
 
      ;;
18600
 
 
18601
 
    sysv5* | sco3.2v5* | sco5v6*)
18602
 
      # Note: We can NOT use -z defs as we might desire, because we do not
18603
 
      # link with -lc, and that would cause any symbols used from libc to
18604
 
      # always be unresolved, which means just about no library would
18605
 
      # ever link correctly.  If we're not using GNU ld we use -z text
18606
 
      # though, which does catch some bad symbols but isn't as heavy-handed
18607
 
      # as -z defs.
18608
 
      no_undefined_flag_GCJ='${wl}-z,text'
18609
 
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18610
 
      archive_cmds_need_lc_GCJ=no
18611
 
      hardcode_shlibpath_var_GCJ=no
18612
 
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18613
 
      hardcode_libdir_separator_GCJ=':'
18614
 
      link_all_deplibs_GCJ=yes
18615
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18616
 
      runpath_var='LD_RUN_PATH'
18617
 
 
18618
 
      if test "$GCC" = yes; then
18619
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18620
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18621
 
      else
18622
 
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18623
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18624
 
      fi
18625
 
      ;;
18626
 
 
18627
 
    uts4*)
18628
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18629
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18630
 
      hardcode_shlibpath_var_GCJ=no
18631
 
      ;;
18632
 
 
18633
 
    *)
18634
 
      ld_shlibs_GCJ=no
18635
 
      ;;
18636
 
    esac
18637
 
  fi
18638
 
 
18639
 
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18640
 
$as_echo "$ld_shlibs_GCJ" >&6; }
18641
 
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18642
 
 
18643
 
#
18644
 
# Do we need to explicitly link libc?
18645
 
#
18646
 
case "x$archive_cmds_need_lc_GCJ" in
18647
 
x|xyes)
18648
 
  # Assume -lc should be added
18649
 
  archive_cmds_need_lc_GCJ=yes
18650
 
 
18651
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
18652
 
    case $archive_cmds_GCJ in
18653
 
    *'~'*)
18654
 
      # FIXME: we may have to deal with multi-command sequences.
18655
 
      ;;
18656
 
    '$CC '*)
18657
 
      # Test whether the compiler implicitly links with -lc since on some
18658
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18659
 
      # to ld, don't add -lc before -lgcc.
18660
 
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18661
 
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18662
 
      $rm conftest*
18663
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18664
 
 
18665
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18666
 
  (eval $ac_compile) 2>&5
18667
 
  ac_status=$?
18668
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669
 
  (exit $ac_status); } 2>conftest.err; then
18670
 
        soname=conftest
18671
 
        lib=conftest
18672
 
        libobjs=conftest.$ac_objext
18673
 
        deplibs=
18674
 
        wl=$lt_prog_compiler_wl_GCJ
18675
 
        pic_flag=$lt_prog_compiler_pic_GCJ
18676
 
        compiler_flags=-v
18677
 
        linker_flags=-v
18678
 
        verstring=
18679
 
        output_objdir=.
18680
 
        libname=conftest
18681
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18682
 
        allow_undefined_flag_GCJ=
18683
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18684
 
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18685
 
  ac_status=$?
18686
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687
 
  (exit $ac_status); }
18688
 
        then
18689
 
          archive_cmds_need_lc_GCJ=no
18690
 
        else
18691
 
          archive_cmds_need_lc_GCJ=yes
18692
 
        fi
18693
 
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18694
 
      else
18695
 
        cat conftest.err 1>&5
18696
 
      fi
18697
 
      $rm conftest*
18698
 
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18699
 
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18700
 
      ;;
18701
 
    esac
18702
 
  fi
18703
 
  ;;
18704
 
esac
18705
 
 
18706
 
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18707
 
$as_echo_n "checking dynamic linker characteristics... " >&6; }
18708
 
library_names_spec=
18709
 
libname_spec='lib$name'
18710
 
soname_spec=
18711
 
shrext_cmds=".so"
18712
 
postinstall_cmds=
18713
 
postuninstall_cmds=
18714
 
finish_cmds=
18715
 
finish_eval=
18716
 
shlibpath_var=
18717
 
shlibpath_overrides_runpath=unknown
18718
 
version_type=none
18719
 
dynamic_linker="$host_os ld.so"
18720
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18721
 
 
18722
 
need_lib_prefix=unknown
18723
 
hardcode_into_libs=no
18724
 
 
18725
 
# when you set need_version to no, make sure it does not cause -set_version
18726
 
# flags to be left without arguments
18727
 
need_version=unknown
18728
 
 
18729
 
case $host_os in
18730
 
aix3*)
18731
 
  version_type=linux
18732
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18733
 
  shlibpath_var=LIBPATH
18734
 
 
18735
 
  # AIX 3 has no versioning support, so we append a major version to the name.
18736
 
  soname_spec='${libname}${release}${shared_ext}$major'
18737
 
  ;;
18738
 
 
18739
 
aix[4-9]*)
18740
 
  version_type=linux
18741
 
  need_lib_prefix=no
18742
 
  need_version=no
18743
 
  hardcode_into_libs=yes
18744
 
  if test "$host_cpu" = ia64; then
18745
 
    # AIX 5 supports IA64
18746
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18747
 
    shlibpath_var=LD_LIBRARY_PATH
18748
 
  else
18749
 
    # With GCC up to 2.95.x, collect2 would create an import file
18750
 
    # for dependence libraries.  The import file would start with
18751
 
    # the line `#! .'.  This would cause the generated library to
18752
 
    # depend on `.', always an invalid library.  This was fixed in
18753
 
    # development snapshots of GCC prior to 3.0.
18754
 
    case $host_os in
18755
 
      aix4 | aix4.[01] | aix4.[01].*)
18756
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18757
 
           echo ' yes '
18758
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18759
 
        :
18760
 
      else
18761
 
        can_build_shared=no
18762
 
      fi
18763
 
      ;;
18764
 
    esac
18765
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18766
 
    # soname into executable. Probably we can add versioning support to
18767
 
    # collect2, so additional links can be useful in future.
18768
 
    if test "$aix_use_runtimelinking" = yes; then
18769
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18770
 
      # instead of lib<name>.a to let people know that these are not
18771
 
      # typical AIX shared libraries.
18772
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18773
 
    else
18774
 
      # We preserve .a as extension for shared libraries through AIX4.2
18775
 
      # and later when we are not doing run time linking.
18776
 
      library_names_spec='${libname}${release}.a $libname.a'
18777
 
      soname_spec='${libname}${release}${shared_ext}$major'
18778
 
    fi
18779
 
    shlibpath_var=LIBPATH
18780
 
  fi
18781
 
  ;;
18782
 
 
18783
 
amigaos*)
18784
 
  library_names_spec='$libname.ixlibrary $libname.a'
18785
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18786
 
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18787
 
  ;;
18788
 
 
18789
 
beos*)
18790
 
  library_names_spec='${libname}${shared_ext}'
18791
 
  dynamic_linker="$host_os ld.so"
18792
 
  shlibpath_var=LIBRARY_PATH
18793
 
  ;;
18794
 
 
18795
 
bsdi[45]*)
18796
 
  version_type=linux
18797
 
  need_version=no
18798
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18799
 
  soname_spec='${libname}${release}${shared_ext}$major'
18800
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18801
 
  shlibpath_var=LD_LIBRARY_PATH
18802
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18803
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18804
 
  # the default ld.so.conf also contains /usr/contrib/lib and
18805
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18806
 
  # libtool to hard-code these into programs
18807
 
  ;;
18808
 
 
18809
 
cygwin* | mingw* | pw32*)
18810
 
  version_type=windows
18811
 
  shrext_cmds=".dll"
18812
 
  need_version=no
18813
 
  need_lib_prefix=no
18814
 
 
18815
 
  case $GCC,$host_os in
18816
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
18817
 
    library_names_spec='$libname.dll.a'
18818
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18819
 
    postinstall_cmds='base_file=`basename \${file}`~
18820
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18821
 
      dldir=$destdir/`dirname \$dlpath`~
18822
 
      test -d \$dldir || mkdir -p \$dldir~
18823
 
      $install_prog $dir/$dlname \$dldir/$dlname~
18824
 
      chmod a+x \$dldir/$dlname'
18825
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18826
 
      dlpath=$dir/\$dldll~
18827
 
       $rm \$dlpath'
18828
 
    shlibpath_overrides_runpath=yes
18829
 
 
18830
 
    case $host_os in
18831
 
    cygwin*)
18832
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18833
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18834
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18835
 
      ;;
18836
 
    mingw*)
18837
 
      # MinGW DLLs use traditional 'lib' prefix
18838
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18839
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18840
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18841
 
        # It is most probably a Windows format PATH printed by
18842
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18843
 
        # path with ; separators, and with drive letters. We can handle the
18844
 
        # drive letters (cygwin fileutils understands them), so leave them,
18845
 
        # especially as we might pass files found there to a mingw objdump,
18846
 
        # which wouldn't understand a cygwinified path. Ahh.
18847
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18848
 
      else
18849
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18850
 
      fi
18851
 
      ;;
18852
 
    pw32*)
18853
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
18854
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18855
 
      ;;
18856
 
    esac
18857
 
    ;;
18858
 
 
18859
 
  *)
18860
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18861
 
    ;;
18862
 
  esac
18863
 
  dynamic_linker='Win32 ld.exe'
18864
 
  # FIXME: first we should search . and the directory the executable is in
18865
 
  shlibpath_var=PATH
18866
 
  ;;
18867
 
 
18868
 
darwin* | rhapsody*)
18869
 
  dynamic_linker="$host_os dyld"
18870
 
  version_type=darwin
18871
 
  need_lib_prefix=no
18872
 
  need_version=no
18873
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18874
 
  soname_spec='${libname}${release}${major}$shared_ext'
18875
 
  shlibpath_overrides_runpath=yes
18876
 
  shlibpath_var=DYLD_LIBRARY_PATH
18877
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18878
 
 
18879
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18880
 
  ;;
18881
 
 
18882
 
dgux*)
18883
 
  version_type=linux
18884
 
  need_lib_prefix=no
18885
 
  need_version=no
18886
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18887
 
  soname_spec='${libname}${release}${shared_ext}$major'
18888
 
  shlibpath_var=LD_LIBRARY_PATH
18889
 
  ;;
18890
 
 
18891
 
freebsd1*)
18892
 
  dynamic_linker=no
18893
 
  ;;
18894
 
 
18895
 
freebsd* | dragonfly*)
18896
 
  # DragonFly does not have aout.  When/if they implement a new
18897
 
  # versioning mechanism, adjust this.
18898
 
  if test -x /usr/bin/objformat; then
18899
 
    objformat=`/usr/bin/objformat`
18900
 
  else
18901
 
    case $host_os in
18902
 
    freebsd[123]*) objformat=aout ;;
18903
 
    *) objformat=elf ;;
18904
 
    esac
18905
 
  fi
18906
 
  version_type=freebsd-$objformat
18907
 
  case $version_type in
18908
 
    freebsd-elf*)
18909
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18910
 
      need_version=no
18911
 
      need_lib_prefix=no
18912
 
      ;;
18913
 
    freebsd-*)
18914
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18915
 
      need_version=yes
18916
 
      ;;
18917
 
  esac
18918
 
  shlibpath_var=LD_LIBRARY_PATH
18919
 
  case $host_os in
18920
 
  freebsd2*)
18921
 
    shlibpath_overrides_runpath=yes
18922
 
    ;;
18923
 
  freebsd3.[01]* | freebsdelf3.[01]*)
18924
 
    shlibpath_overrides_runpath=yes
18925
 
    hardcode_into_libs=yes
18926
 
    ;;
18927
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18928
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18929
 
    shlibpath_overrides_runpath=no
18930
 
    hardcode_into_libs=yes
18931
 
    ;;
18932
 
  *) # from 4.6 on, and DragonFly
18933
 
    shlibpath_overrides_runpath=yes
18934
 
    hardcode_into_libs=yes
18935
 
    ;;
18936
 
  esac
18937
 
  ;;
18938
 
 
18939
 
gnu*)
18940
 
  version_type=linux
18941
 
  need_lib_prefix=no
18942
 
  need_version=no
18943
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18944
 
  soname_spec='${libname}${release}${shared_ext}$major'
18945
 
  shlibpath_var=LD_LIBRARY_PATH
18946
 
  hardcode_into_libs=yes
18947
 
  ;;
18948
 
 
18949
 
hpux9* | hpux10* | hpux11*)
18950
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
18951
 
  # link against other versions.
18952
 
  version_type=sunos
18953
 
  need_lib_prefix=no
18954
 
  need_version=no
18955
 
  case $host_cpu in
18956
 
  ia64*)
18957
 
    shrext_cmds='.so'
18958
 
    hardcode_into_libs=yes
18959
 
    dynamic_linker="$host_os dld.so"
18960
 
    shlibpath_var=LD_LIBRARY_PATH
18961
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18962
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18963
 
    soname_spec='${libname}${release}${shared_ext}$major'
18964
 
    if test "X$HPUX_IA64_MODE" = X32; then
18965
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18966
 
    else
18967
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18968
 
    fi
18969
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18970
 
    ;;
18971
 
   hppa*64*)
18972
 
     shrext_cmds='.sl'
18973
 
     hardcode_into_libs=yes
18974
 
     dynamic_linker="$host_os dld.sl"
18975
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18976
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18977
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18978
 
     soname_spec='${libname}${release}${shared_ext}$major'
18979
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18980
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18981
 
     ;;
18982
 
   *)
18983
 
    shrext_cmds='.sl'
18984
 
    dynamic_linker="$host_os dld.sl"
18985
 
    shlibpath_var=SHLIB_PATH
18986
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18987
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18988
 
    soname_spec='${libname}${release}${shared_ext}$major'
18989
 
    ;;
18990
 
  esac
18991
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18992
 
  postinstall_cmds='chmod 555 $lib'
18993
 
  ;;
18994
 
 
18995
 
interix[3-9]*)
18996
 
  version_type=linux
18997
 
  need_lib_prefix=no
18998
 
  need_version=no
18999
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19000
 
  soname_spec='${libname}${release}${shared_ext}$major'
19001
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19002
 
  shlibpath_var=LD_LIBRARY_PATH
19003
 
  shlibpath_overrides_runpath=no
19004
 
  hardcode_into_libs=yes
19005
 
  ;;
19006
 
 
19007
 
irix5* | irix6* | nonstopux*)
19008
 
  case $host_os in
19009
 
    nonstopux*) version_type=nonstopux ;;
19010
 
    *)
19011
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
19012
 
                version_type=linux
19013
 
        else
19014
 
                version_type=irix
19015
 
        fi ;;
19016
 
  esac
19017
 
  need_lib_prefix=no
19018
 
  need_version=no
19019
 
  soname_spec='${libname}${release}${shared_ext}$major'
19020
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19021
 
  case $host_os in
19022
 
  irix5* | nonstopux*)
19023
 
    libsuff= shlibsuff=
19024
 
    ;;
19025
 
  *)
19026
 
    case $LD in # libtool.m4 will add one of these switches to LD
19027
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19028
 
      libsuff= shlibsuff= libmagic=32-bit;;
19029
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19030
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
19031
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19032
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19033
 
    *) libsuff= shlibsuff= libmagic=never-match;;
19034
 
    esac
19035
 
    ;;
19036
 
  esac
19037
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19038
 
  shlibpath_overrides_runpath=no
19039
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19040
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19041
 
  hardcode_into_libs=yes
19042
 
  ;;
19043
 
 
19044
 
# No shared lib support for Linux oldld, aout, or coff.
19045
 
linux*oldld* | linux*aout* | linux*coff*)
19046
 
  dynamic_linker=no
19047
 
  ;;
19048
 
 
19049
 
# This must be Linux ELF.
19050
 
linux* | k*bsd*-gnu)
19051
 
  version_type=linux
19052
 
  need_lib_prefix=no
19053
 
  need_version=no
19054
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19055
 
  soname_spec='${libname}${release}${shared_ext}$major'
19056
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19057
 
  shlibpath_var=LD_LIBRARY_PATH
19058
 
  shlibpath_overrides_runpath=no
19059
 
  # This implies no fast_install, which is unacceptable.
19060
 
  # Some rework will be needed to allow for fast_install
19061
 
  # before this can be enabled.
19062
 
  hardcode_into_libs=yes
19063
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19064
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19065
 
 
19066
 
  # Append ld.so.conf contents to the search path
19067
 
  if test -f /etc/ld.so.conf; then
19068
 
    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' ' '`
19069
 
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19070
 
  fi
19071
 
 
19072
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
19073
 
  # powerpc, because MkLinux only supported shared libraries with the
19074
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
19075
 
  # most powerpc-linux boxes support dynamic linking these days and
19076
 
  # people can always --disable-shared, the test was removed, and we
19077
 
  # assume the GNU/Linux dynamic linker is in use.
19078
 
  dynamic_linker='GNU/Linux ld.so'
19079
 
  ;;
19080
 
 
19081
 
netbsd*)
19082
 
  version_type=sunos
19083
 
  need_lib_prefix=no
19084
 
  need_version=no
19085
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19086
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19087
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19088
 
    dynamic_linker='NetBSD (a.out) ld.so'
19089
 
  else
19090
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19091
 
    soname_spec='${libname}${release}${shared_ext}$major'
19092
 
    dynamic_linker='NetBSD ld.elf_so'
19093
 
  fi
19094
 
  shlibpath_var=LD_LIBRARY_PATH
19095
 
  shlibpath_overrides_runpath=yes
19096
 
  hardcode_into_libs=yes
19097
 
  ;;
19098
 
 
19099
 
newsos6)
19100
 
  version_type=linux
19101
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19102
 
  shlibpath_var=LD_LIBRARY_PATH
19103
 
  shlibpath_overrides_runpath=yes
19104
 
  ;;
19105
 
 
19106
 
nto-qnx*)
19107
 
  version_type=linux
19108
 
  need_lib_prefix=no
19109
 
  need_version=no
19110
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19111
 
  soname_spec='${libname}${release}${shared_ext}$major'
19112
 
  shlibpath_var=LD_LIBRARY_PATH
19113
 
  shlibpath_overrides_runpath=yes
19114
 
  ;;
19115
 
 
19116
 
openbsd*)
19117
 
  version_type=sunos
19118
 
  sys_lib_dlsearch_path_spec="/usr/lib"
19119
 
  need_lib_prefix=no
19120
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19121
 
  case $host_os in
19122
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19123
 
    *)                         need_version=no  ;;
19124
 
  esac
19125
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19126
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19127
 
  shlibpath_var=LD_LIBRARY_PATH
19128
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19129
 
    case $host_os in
19130
 
      openbsd2.[89] | openbsd2.[89].*)
19131
 
        shlibpath_overrides_runpath=no
19132
 
        ;;
19133
 
      *)
19134
 
        shlibpath_overrides_runpath=yes
19135
 
        ;;
19136
 
      esac
19137
 
  else
19138
 
    shlibpath_overrides_runpath=yes
19139
 
  fi
19140
 
  ;;
19141
 
 
19142
 
os2*)
19143
 
  libname_spec='$name'
19144
 
  shrext_cmds=".dll"
19145
 
  need_lib_prefix=no
19146
 
  library_names_spec='$libname${shared_ext} $libname.a'
19147
 
  dynamic_linker='OS/2 ld.exe'
19148
 
  shlibpath_var=LIBPATH
19149
 
  ;;
19150
 
 
19151
 
osf3* | osf4* | osf5*)
19152
 
  version_type=osf
19153
 
  need_lib_prefix=no
19154
 
  need_version=no
19155
 
  soname_spec='${libname}${release}${shared_ext}$major'
19156
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19157
 
  shlibpath_var=LD_LIBRARY_PATH
19158
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19159
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19160
 
  ;;
19161
 
 
19162
 
rdos*)
19163
 
  dynamic_linker=no
19164
 
  ;;
19165
 
 
19166
 
solaris*)
19167
 
  version_type=linux
19168
 
  need_lib_prefix=no
19169
 
  need_version=no
19170
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19171
 
  soname_spec='${libname}${release}${shared_ext}$major'
19172
 
  shlibpath_var=LD_LIBRARY_PATH
19173
 
  shlibpath_overrides_runpath=yes
19174
 
  hardcode_into_libs=yes
19175
 
  # ldd complains unless libraries are executable
19176
 
  postinstall_cmds='chmod +x $lib'
19177
 
  ;;
19178
 
 
19179
 
sunos4*)
19180
 
  version_type=sunos
19181
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19182
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19183
 
  shlibpath_var=LD_LIBRARY_PATH
19184
 
  shlibpath_overrides_runpath=yes
19185
 
  if test "$with_gnu_ld" = yes; then
19186
 
    need_lib_prefix=no
19187
 
  fi
19188
 
  need_version=yes
19189
 
  ;;
19190
 
 
19191
 
sysv4 | sysv4.3*)
19192
 
  version_type=linux
19193
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19194
 
  soname_spec='${libname}${release}${shared_ext}$major'
19195
 
  shlibpath_var=LD_LIBRARY_PATH
19196
 
  case $host_vendor in
19197
 
    sni)
19198
 
      shlibpath_overrides_runpath=no
19199
 
      need_lib_prefix=no
19200
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
19201
 
      runpath_var=LD_RUN_PATH
19202
 
      ;;
19203
 
    siemens)
19204
 
      need_lib_prefix=no
19205
 
      ;;
19206
 
    motorola)
19207
 
      need_lib_prefix=no
19208
 
      need_version=no
19209
 
      shlibpath_overrides_runpath=no
19210
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19211
 
      ;;
19212
 
  esac
19213
 
  ;;
19214
 
 
19215
 
sysv4*MP*)
19216
 
  if test -d /usr/nec ;then
19217
 
    version_type=linux
19218
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19219
 
    soname_spec='$libname${shared_ext}.$major'
19220
 
    shlibpath_var=LD_LIBRARY_PATH
19221
 
  fi
19222
 
  ;;
19223
 
 
19224
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19225
 
  version_type=freebsd-elf
19226
 
  need_lib_prefix=no
19227
 
  need_version=no
19228
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19229
 
  soname_spec='${libname}${release}${shared_ext}$major'
19230
 
  shlibpath_var=LD_LIBRARY_PATH
19231
 
  hardcode_into_libs=yes
19232
 
  if test "$with_gnu_ld" = yes; then
19233
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19234
 
    shlibpath_overrides_runpath=no
19235
 
  else
19236
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19237
 
    shlibpath_overrides_runpath=yes
19238
 
    case $host_os in
19239
 
      sco3.2v5*)
19240
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19241
 
        ;;
19242
 
    esac
19243
 
  fi
19244
 
  sys_lib_dlsearch_path_spec='/usr/lib'
19245
 
  ;;
19246
 
 
19247
 
uts4*)
19248
 
  version_type=linux
19249
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19250
 
  soname_spec='${libname}${release}${shared_ext}$major'
19251
 
  shlibpath_var=LD_LIBRARY_PATH
19252
 
  ;;
19253
 
 
19254
 
*)
19255
 
  dynamic_linker=no
19256
 
  ;;
19257
 
esac
19258
 
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19259
 
$as_echo "$dynamic_linker" >&6; }
19260
 
test "$dynamic_linker" = no && can_build_shared=no
19261
 
 
19262
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19263
 
  $as_echo_n "(cached) " >&6
19264
 
else
19265
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19266
 
fi
19267
 
 
19268
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19269
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19270
 
  $as_echo_n "(cached) " >&6
19271
 
else
19272
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19273
 
fi
19274
 
 
19275
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19276
 
 
19277
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19278
 
if test "$GCC" = yes; then
19279
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19280
 
fi
19281
 
 
19282
 
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19283
 
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19284
 
hardcode_action_GCJ=
19285
 
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19286
 
   test -n "$runpath_var_GCJ" || \
19287
 
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19288
 
 
19289
 
  # We can hardcode non-existant directories.
19290
 
  if test "$hardcode_direct_GCJ" != no &&
19291
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19292
 
     # have to relink, otherwise we might link with an installed library
19293
 
     # when we should be linking with a yet-to-be-installed one
19294
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19295
 
     test "$hardcode_minus_L_GCJ" != no; then
19296
 
    # Linking always hardcodes the temporary library directory.
19297
 
    hardcode_action_GCJ=relink
19298
 
  else
19299
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19300
 
    hardcode_action_GCJ=immediate
19301
 
  fi
19302
 
else
19303
 
  # We cannot hardcode anything, or else we can only hardcode existing
19304
 
  # directories.
19305
 
  hardcode_action_GCJ=unsupported
19306
 
fi
19307
 
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19308
 
$as_echo "$hardcode_action_GCJ" >&6; }
19309
 
 
19310
 
if test "$hardcode_action_GCJ" = relink; then
19311
 
  # Fast installation is not supported
19312
 
  enable_fast_install=no
19313
 
elif test "$shlibpath_overrides_runpath" = yes ||
19314
 
     test "$enable_shared" = no; then
19315
 
  # Fast installation is not necessary
19316
 
  enable_fast_install=needless
19317
 
fi
19318
 
 
19319
 
 
19320
 
# The else clause should only fire when bootstrapping the
19321
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
19322
 
# with your package, and you will get complaints that there are
19323
 
# no rules to generate ltmain.sh.
19324
 
if test -f "$ltmain"; then
19325
 
  # See if we are running on zsh, and set the options which allow our commands through
19326
 
  # without removal of \ escapes.
19327
 
  if test -n "${ZSH_VERSION+set}" ; then
19328
 
    setopt NO_GLOB_SUBST
19329
 
  fi
19330
 
  # Now quote all the things that may contain metacharacters while being
19331
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19332
 
  # variables and quote the copies for generation of the libtool script.
19333
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19334
 
    SED SHELL STRIP \
19335
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19336
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19337
 
    deplibs_check_method reload_flag reload_cmds need_locks \
19338
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19339
 
    lt_cv_sys_global_symbol_to_c_name_address \
19340
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19341
 
    old_postinstall_cmds old_postuninstall_cmds \
19342
 
    compiler_GCJ \
19343
 
    CC_GCJ \
19344
 
    LD_GCJ \
19345
 
    lt_prog_compiler_wl_GCJ \
19346
 
    lt_prog_compiler_pic_GCJ \
19347
 
    lt_prog_compiler_static_GCJ \
19348
 
    lt_prog_compiler_no_builtin_flag_GCJ \
19349
 
    export_dynamic_flag_spec_GCJ \
19350
 
    thread_safe_flag_spec_GCJ \
19351
 
    whole_archive_flag_spec_GCJ \
19352
 
    enable_shared_with_static_runtimes_GCJ \
19353
 
    old_archive_cmds_GCJ \
19354
 
    old_archive_from_new_cmds_GCJ \
19355
 
    predep_objects_GCJ \
19356
 
    postdep_objects_GCJ \
19357
 
    predeps_GCJ \
19358
 
    postdeps_GCJ \
19359
 
    compiler_lib_search_path_GCJ \
19360
 
    compiler_lib_search_dirs_GCJ \
19361
 
    archive_cmds_GCJ \
19362
 
    archive_expsym_cmds_GCJ \
19363
 
    postinstall_cmds_GCJ \
19364
 
    postuninstall_cmds_GCJ \
19365
 
    old_archive_from_expsyms_cmds_GCJ \
19366
 
    allow_undefined_flag_GCJ \
19367
 
    no_undefined_flag_GCJ \
19368
 
    export_symbols_cmds_GCJ \
19369
 
    hardcode_libdir_flag_spec_GCJ \
19370
 
    hardcode_libdir_flag_spec_ld_GCJ \
19371
 
    hardcode_libdir_separator_GCJ \
19372
 
    hardcode_automatic_GCJ \
19373
 
    module_cmds_GCJ \
19374
 
    module_expsym_cmds_GCJ \
19375
 
    lt_cv_prog_compiler_c_o_GCJ \
19376
 
    fix_srcfile_path_GCJ \
19377
 
    exclude_expsyms_GCJ \
19378
 
    include_expsyms_GCJ; do
19379
 
 
19380
 
    case $var in
19381
 
    old_archive_cmds_GCJ | \
19382
 
    old_archive_from_new_cmds_GCJ | \
19383
 
    archive_cmds_GCJ | \
19384
 
    archive_expsym_cmds_GCJ | \
19385
 
    module_cmds_GCJ | \
19386
 
    module_expsym_cmds_GCJ | \
19387
 
    old_archive_from_expsyms_cmds_GCJ | \
19388
 
    export_symbols_cmds_GCJ | \
19389
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19390
 
    postinstall_cmds | postuninstall_cmds | \
19391
 
    old_postinstall_cmds | old_postuninstall_cmds | \
19392
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19393
 
      # Double-quote double-evaled strings.
19394
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19395
 
      ;;
19396
 
    *)
19397
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19398
 
      ;;
19399
 
    esac
19400
 
  done
19401
 
 
19402
 
  case $lt_echo in
19403
 
  *'\$0 --fallback-echo"')
19404
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19405
 
    ;;
19406
 
  esac
19407
 
 
19408
 
cfgfile="$ofile"
19409
 
 
19410
 
  cat <<__EOF__ >> "$cfgfile"
19411
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19412
 
 
19413
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19414
 
 
19415
 
# Shell to use when invoking shell scripts.
19416
 
SHELL=$lt_SHELL
19417
 
 
19418
 
# Whether or not to build shared libraries.
19419
 
build_libtool_libs=$enable_shared
19420
 
 
19421
 
# Whether or not to build static libraries.
19422
 
build_old_libs=$enable_static
19423
 
 
19424
 
# Whether or not to add -lc for building shared libraries.
19425
 
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19426
 
 
19427
 
# Whether or not to disallow shared libs when runtime libs are static
19428
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19429
 
 
19430
 
# Whether or not to optimize for fast installation.
19431
 
fast_install=$enable_fast_install
19432
 
 
19433
 
# The host system.
19434
 
host_alias=$host_alias
19435
 
host=$host
19436
 
host_os=$host_os
19437
 
 
19438
 
# The build system.
19439
 
build_alias=$build_alias
19440
 
build=$build
19441
 
build_os=$build_os
19442
 
 
19443
 
# An echo program that does not interpret backslashes.
19444
 
echo=$lt_echo
19445
 
 
19446
 
# The archiver.
19447
 
AR=$lt_AR
19448
 
AR_FLAGS=$lt_AR_FLAGS
19449
 
 
19450
 
# A C compiler.
19451
 
LTCC=$lt_LTCC
19452
 
 
19453
 
# LTCC compiler flags.
19454
 
LTCFLAGS=$lt_LTCFLAGS
19455
 
 
19456
 
# A language-specific compiler.
19457
 
CC=$lt_compiler_GCJ
19458
 
 
19459
 
# Is the compiler the GNU C compiler?
19460
 
with_gcc=$GCC_GCJ
19461
 
 
19462
 
# An ERE matcher.
19463
 
EGREP=$lt_EGREP
19464
 
 
19465
 
# The linker used to build libraries.
19466
 
LD=$lt_LD_GCJ
19467
 
 
19468
 
# Whether we need hard or soft links.
19469
 
LN_S=$lt_LN_S
19470
 
 
19471
 
# A BSD-compatible nm program.
19472
 
NM=$lt_NM
19473
 
 
19474
 
# A symbol stripping program
19475
 
STRIP=$lt_STRIP
19476
 
 
19477
 
# Used to examine libraries when file_magic_cmd begins "file"
19478
 
MAGIC_CMD=$MAGIC_CMD
19479
 
 
19480
 
# Used on cygwin: DLL creation program.
19481
 
DLLTOOL="$DLLTOOL"
19482
 
 
19483
 
# Used on cygwin: object dumper.
19484
 
OBJDUMP="$OBJDUMP"
19485
 
 
19486
 
# Used on cygwin: assembler.
19487
 
AS="$AS"
19488
 
 
19489
 
# The name of the directory that contains temporary libtool files.
19490
 
objdir=$objdir
19491
 
 
19492
 
# How to create reloadable object files.
19493
 
reload_flag=$lt_reload_flag
19494
 
reload_cmds=$lt_reload_cmds
19495
 
 
19496
 
# How to pass a linker flag through the compiler.
19497
 
wl=$lt_lt_prog_compiler_wl_GCJ
19498
 
 
19499
 
# Object file suffix (normally "o").
19500
 
objext="$ac_objext"
19501
 
 
19502
 
# Old archive suffix (normally "a").
19503
 
libext="$libext"
19504
 
 
19505
 
# Shared library suffix (normally ".so").
19506
 
shrext_cmds='$shrext_cmds'
19507
 
 
19508
 
# Executable file suffix (normally "").
19509
 
exeext="$exeext"
19510
 
 
19511
 
# Additional compiler flags for building library objects.
19512
 
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19513
 
pic_mode=$pic_mode
19514
 
 
19515
 
# What is the maximum length of a command?
19516
 
max_cmd_len=$lt_cv_sys_max_cmd_len
19517
 
 
19518
 
# Does compiler simultaneously support -c and -o options?
19519
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19520
 
 
19521
 
# Must we lock files when doing compilation?
19522
 
need_locks=$lt_need_locks
19523
 
 
19524
 
# Do we need the lib prefix for modules?
19525
 
need_lib_prefix=$need_lib_prefix
19526
 
 
19527
 
# Do we need a version for libraries?
19528
 
need_version=$need_version
19529
 
 
19530
 
# Whether dlopen is supported.
19531
 
dlopen_support=$enable_dlopen
19532
 
 
19533
 
# Whether dlopen of programs is supported.
19534
 
dlopen_self=$enable_dlopen_self
19535
 
 
19536
 
# Whether dlopen of statically linked programs is supported.
19537
 
dlopen_self_static=$enable_dlopen_self_static
19538
 
 
19539
 
# Compiler flag to prevent dynamic linking.
19540
 
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19541
 
 
19542
 
# Compiler flag to turn off builtin functions.
19543
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19544
 
 
19545
 
# Compiler flag to allow reflexive dlopens.
19546
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19547
 
 
19548
 
# Compiler flag to generate shared objects directly from archives.
19549
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19550
 
 
19551
 
# Compiler flag to generate thread-safe objects.
19552
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19553
 
 
19554
 
# Library versioning type.
19555
 
version_type=$version_type
19556
 
 
19557
 
# Format of library name prefix.
19558
 
libname_spec=$lt_libname_spec
19559
 
 
19560
 
# List of archive names.  First name is the real one, the rest are links.
19561
 
# The last name is the one that the linker finds with -lNAME.
19562
 
library_names_spec=$lt_library_names_spec
19563
 
 
19564
 
# The coded name of the library, if different from the real name.
19565
 
soname_spec=$lt_soname_spec
19566
 
 
19567
 
# Commands used to build and install an old-style archive.
19568
 
RANLIB=$lt_RANLIB
19569
 
old_archive_cmds=$lt_old_archive_cmds_GCJ
19570
 
old_postinstall_cmds=$lt_old_postinstall_cmds
19571
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19572
 
 
19573
 
# Create an old-style archive from a shared archive.
19574
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19575
 
 
19576
 
# Create a temporary old-style archive to link instead of a shared archive.
19577
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19578
 
 
19579
 
# Commands used to build and install a shared archive.
19580
 
archive_cmds=$lt_archive_cmds_GCJ
19581
 
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19582
 
postinstall_cmds=$lt_postinstall_cmds
19583
 
postuninstall_cmds=$lt_postuninstall_cmds
19584
 
 
19585
 
# Commands used to build a loadable module (assumed same as above if empty)
19586
 
module_cmds=$lt_module_cmds_GCJ
19587
 
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19588
 
 
19589
 
# Commands to strip libraries.
19590
 
old_striplib=$lt_old_striplib
19591
 
striplib=$lt_striplib
19592
 
 
19593
 
# Dependencies to place before the objects being linked to create a
19594
 
# shared library.
19595
 
predep_objects=$lt_predep_objects_GCJ
19596
 
 
19597
 
# Dependencies to place after the objects being linked to create a
19598
 
# shared library.
19599
 
postdep_objects=$lt_postdep_objects_GCJ
19600
 
 
19601
 
# Dependencies to place before the objects being linked to create a
19602
 
# shared library.
19603
 
predeps=$lt_predeps_GCJ
19604
 
 
19605
 
# Dependencies to place after the objects being linked to create a
19606
 
# shared library.
19607
 
postdeps=$lt_postdeps_GCJ
19608
 
 
19609
 
# The directories searched by this compiler when creating a shared
19610
 
# library
19611
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19612
 
 
19613
 
# The library search path used internally by the compiler when linking
19614
 
# a shared library.
19615
 
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19616
 
 
19617
 
# Method to check whether dependent libraries are shared objects.
19618
 
deplibs_check_method=$lt_deplibs_check_method
19619
 
 
19620
 
# Command to use when deplibs_check_method == file_magic.
19621
 
file_magic_cmd=$lt_file_magic_cmd
19622
 
 
19623
 
# Flag that allows shared libraries with undefined symbols to be built.
19624
 
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19625
 
 
19626
 
# Flag that forces no undefined symbols.
19627
 
no_undefined_flag=$lt_no_undefined_flag_GCJ
19628
 
 
19629
 
# Commands used to finish a libtool library installation in a directory.
19630
 
finish_cmds=$lt_finish_cmds
19631
 
 
19632
 
# Same as above, but a single script fragment to be evaled but not shown.
19633
 
finish_eval=$lt_finish_eval
19634
 
 
19635
 
# Take the output of nm and produce a listing of raw symbols and C names.
19636
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19637
 
 
19638
 
# Transform the output of nm in a proper C declaration
19639
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19640
 
 
19641
 
# Transform the output of nm in a C name address pair
19642
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19643
 
 
19644
 
# This is the shared library runtime path variable.
19645
 
runpath_var=$runpath_var
19646
 
 
19647
 
# This is the shared library path variable.
19648
 
shlibpath_var=$shlibpath_var
19649
 
 
19650
 
# Is shlibpath searched before the hard-coded library search path?
19651
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19652
 
 
19653
 
# How to hardcode a shared library path into an executable.
19654
 
hardcode_action=$hardcode_action_GCJ
19655
 
 
19656
 
# Whether we should hardcode library paths into libraries.
19657
 
hardcode_into_libs=$hardcode_into_libs
19658
 
 
19659
 
# Flag to hardcode \$libdir into a binary during linking.
19660
 
# This must work even if \$libdir does not exist.
19661
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19662
 
 
19663
 
# If ld is used when linking, flag to hardcode \$libdir into
19664
 
# a binary during linking. This must work even if \$libdir does
19665
 
# not exist.
19666
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19667
 
 
19668
 
# Whether we need a single -rpath flag with a separated argument.
19669
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19670
 
 
19671
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19672
 
# resulting binary.
19673
 
hardcode_direct=$hardcode_direct_GCJ
19674
 
 
19675
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19676
 
# resulting binary.
19677
 
hardcode_minus_L=$hardcode_minus_L_GCJ
19678
 
 
19679
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19680
 
# the resulting binary.
19681
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19682
 
 
19683
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
19684
 
# and all subsequent libraries and executables linked against it.
19685
 
hardcode_automatic=$hardcode_automatic_GCJ
19686
 
 
19687
 
# Variables whose values should be saved in libtool wrapper scripts and
19688
 
# restored at relink time.
19689
 
variables_saved_for_relink="$variables_saved_for_relink"
19690
 
 
19691
 
# Whether libtool must link a program against all its dependency libraries.
19692
 
link_all_deplibs=$link_all_deplibs_GCJ
19693
 
 
19694
 
# Compile-time system search path for libraries
19695
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19696
 
 
19697
 
# Run-time system search path for libraries
19698
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19699
 
 
19700
 
# Fix the shell variable \$srcfile for the compiler.
19701
 
fix_srcfile_path=$lt_fix_srcfile_path
19702
 
 
19703
 
# Set to yes if exported symbols are required.
19704
 
always_export_symbols=$always_export_symbols_GCJ
19705
 
 
19706
 
# The commands to list exported symbols.
19707
 
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19708
 
 
19709
 
# The commands to extract the exported symbol list from a shared archive.
19710
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19711
 
 
19712
 
# Symbols that should not be listed in the preloaded symbols.
19713
 
exclude_expsyms=$lt_exclude_expsyms_GCJ
19714
 
 
19715
 
# Symbols that must always be exported.
19716
 
include_expsyms=$lt_include_expsyms_GCJ
19717
 
 
19718
 
# ### END LIBTOOL TAG CONFIG: $tagname
19719
 
 
19720
 
__EOF__
19721
 
 
19722
 
 
19723
 
else
19724
 
  # If there is no Makefile yet, we rely on a make rule to execute
19725
 
  # `config.status --recheck' to rerun these tests and create the
19726
 
  # libtool script then.
19727
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19728
 
  if test -f "$ltmain_in"; then
19729
 
    test -f Makefile && make "$ltmain"
19730
 
  fi
19731
 
fi
19732
 
 
19733
 
 
19734
 
ac_ext=c
19735
 
ac_cpp='$CPP $CPPFLAGS'
19736
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19737
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19738
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19739
 
 
19740
 
CC="$lt_save_CC"
19741
 
 
19742
 
        else
19743
 
          tagname=""
19744
 
        fi
19745
 
        ;;
19746
 
 
19747
 
      RC)
19748
 
 
19749
 
 
19750
 
# Source file extension for RC test sources.
19751
 
ac_ext=rc
19752
 
 
19753
 
# Object file extension for compiled RC test sources.
19754
 
objext=o
19755
 
objext_RC=$objext
19756
 
 
19757
 
# Code to be used in simple compile tests
19758
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19759
 
 
19760
 
# Code to be used in simple link tests
19761
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
19762
 
 
19763
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19764
 
 
19765
 
# If no C compiler was specified, use CC.
19766
 
LTCC=${LTCC-"$CC"}
19767
 
 
19768
 
# If no C compiler flags were specified, use CFLAGS.
19769
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19770
 
 
19771
 
# Allow CC to be a program name with arguments.
19772
 
compiler=$CC
19773
 
 
19774
 
 
19775
 
# save warnings/boilerplate of simple test code
19776
 
ac_outfile=conftest.$ac_objext
19777
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19778
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19779
 
_lt_compiler_boilerplate=`cat conftest.err`
19780
 
$rm conftest*
19781
 
 
19782
 
ac_outfile=conftest.$ac_objext
19783
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19784
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19785
 
_lt_linker_boilerplate=`cat conftest.err`
19786
 
$rm -r conftest*
19787
 
 
19788
 
 
19789
 
# Allow CC to be a program name with arguments.
19790
 
lt_save_CC="$CC"
19791
 
CC=${RC-"windres"}
19792
 
compiler=$CC
19793
 
compiler_RC=$CC
19794
 
for cc_temp in $compiler""; do
19795
 
  case $cc_temp in
19796
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19797
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19798
 
    \-*) ;;
19799
 
    *) break;;
19800
 
  esac
19801
 
done
19802
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19803
 
 
19804
 
lt_cv_prog_compiler_c_o_RC=yes
19805
 
 
19806
 
# The else clause should only fire when bootstrapping the
19807
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
19808
 
# with your package, and you will get complaints that there are
19809
 
# no rules to generate ltmain.sh.
19810
 
if test -f "$ltmain"; then
19811
 
  # See if we are running on zsh, and set the options which allow our commands through
19812
 
  # without removal of \ escapes.
19813
 
  if test -n "${ZSH_VERSION+set}" ; then
19814
 
    setopt NO_GLOB_SUBST
19815
 
  fi
19816
 
  # Now quote all the things that may contain metacharacters while being
19817
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19818
 
  # variables and quote the copies for generation of the libtool script.
19819
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19820
 
    SED SHELL STRIP \
19821
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19822
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19823
 
    deplibs_check_method reload_flag reload_cmds need_locks \
19824
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19825
 
    lt_cv_sys_global_symbol_to_c_name_address \
19826
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19827
 
    old_postinstall_cmds old_postuninstall_cmds \
19828
 
    compiler_RC \
19829
 
    CC_RC \
19830
 
    LD_RC \
19831
 
    lt_prog_compiler_wl_RC \
19832
 
    lt_prog_compiler_pic_RC \
19833
 
    lt_prog_compiler_static_RC \
19834
 
    lt_prog_compiler_no_builtin_flag_RC \
19835
 
    export_dynamic_flag_spec_RC \
19836
 
    thread_safe_flag_spec_RC \
19837
 
    whole_archive_flag_spec_RC \
19838
 
    enable_shared_with_static_runtimes_RC \
19839
 
    old_archive_cmds_RC \
19840
 
    old_archive_from_new_cmds_RC \
19841
 
    predep_objects_RC \
19842
 
    postdep_objects_RC \
19843
 
    predeps_RC \
19844
 
    postdeps_RC \
19845
 
    compiler_lib_search_path_RC \
19846
 
    compiler_lib_search_dirs_RC \
19847
 
    archive_cmds_RC \
19848
 
    archive_expsym_cmds_RC \
19849
 
    postinstall_cmds_RC \
19850
 
    postuninstall_cmds_RC \
19851
 
    old_archive_from_expsyms_cmds_RC \
19852
 
    allow_undefined_flag_RC \
19853
 
    no_undefined_flag_RC \
19854
 
    export_symbols_cmds_RC \
19855
 
    hardcode_libdir_flag_spec_RC \
19856
 
    hardcode_libdir_flag_spec_ld_RC \
19857
 
    hardcode_libdir_separator_RC \
19858
 
    hardcode_automatic_RC \
19859
 
    module_cmds_RC \
19860
 
    module_expsym_cmds_RC \
19861
 
    lt_cv_prog_compiler_c_o_RC \
19862
 
    fix_srcfile_path_RC \
19863
 
    exclude_expsyms_RC \
19864
 
    include_expsyms_RC; do
19865
 
 
19866
 
    case $var in
19867
 
    old_archive_cmds_RC | \
19868
 
    old_archive_from_new_cmds_RC | \
19869
 
    archive_cmds_RC | \
19870
 
    archive_expsym_cmds_RC | \
19871
 
    module_cmds_RC | \
19872
 
    module_expsym_cmds_RC | \
19873
 
    old_archive_from_expsyms_cmds_RC | \
19874
 
    export_symbols_cmds_RC | \
19875
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19876
 
    postinstall_cmds | postuninstall_cmds | \
19877
 
    old_postinstall_cmds | old_postuninstall_cmds | \
19878
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19879
 
      # Double-quote double-evaled strings.
19880
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19881
 
      ;;
19882
 
    *)
19883
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19884
 
      ;;
19885
 
    esac
19886
 
  done
19887
 
 
19888
 
  case $lt_echo in
19889
 
  *'\$0 --fallback-echo"')
19890
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19891
 
    ;;
19892
 
  esac
19893
 
 
19894
 
cfgfile="$ofile"
19895
 
 
19896
 
  cat <<__EOF__ >> "$cfgfile"
19897
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19898
 
 
19899
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19900
 
 
19901
 
# Shell to use when invoking shell scripts.
19902
 
SHELL=$lt_SHELL
19903
 
 
19904
 
# Whether or not to build shared libraries.
19905
 
build_libtool_libs=$enable_shared
19906
 
 
19907
 
# Whether or not to build static libraries.
19908
 
build_old_libs=$enable_static
19909
 
 
19910
 
# Whether or not to add -lc for building shared libraries.
19911
 
build_libtool_need_lc=$archive_cmds_need_lc_RC
19912
 
 
19913
 
# Whether or not to disallow shared libs when runtime libs are static
19914
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19915
 
 
19916
 
# Whether or not to optimize for fast installation.
19917
 
fast_install=$enable_fast_install
19918
 
 
19919
 
# The host system.
19920
 
host_alias=$host_alias
19921
 
host=$host
19922
 
host_os=$host_os
19923
 
 
19924
 
# The build system.
19925
 
build_alias=$build_alias
19926
 
build=$build
19927
 
build_os=$build_os
19928
 
 
19929
 
# An echo program that does not interpret backslashes.
19930
 
echo=$lt_echo
19931
 
 
19932
 
# The archiver.
19933
 
AR=$lt_AR
19934
 
AR_FLAGS=$lt_AR_FLAGS
19935
 
 
19936
 
# A C compiler.
19937
 
LTCC=$lt_LTCC
19938
 
 
19939
 
# LTCC compiler flags.
19940
 
LTCFLAGS=$lt_LTCFLAGS
19941
 
 
19942
 
# A language-specific compiler.
19943
 
CC=$lt_compiler_RC
19944
 
 
19945
 
# Is the compiler the GNU C compiler?
19946
 
with_gcc=$GCC_RC
19947
 
 
19948
 
# An ERE matcher.
19949
 
EGREP=$lt_EGREP
19950
 
 
19951
 
# The linker used to build libraries.
19952
 
LD=$lt_LD_RC
19953
 
 
19954
 
# Whether we need hard or soft links.
19955
 
LN_S=$lt_LN_S
19956
 
 
19957
 
# A BSD-compatible nm program.
19958
 
NM=$lt_NM
19959
 
 
19960
 
# A symbol stripping program
19961
 
STRIP=$lt_STRIP
19962
 
 
19963
 
# Used to examine libraries when file_magic_cmd begins "file"
19964
 
MAGIC_CMD=$MAGIC_CMD
19965
 
 
19966
 
# Used on cygwin: DLL creation program.
19967
 
DLLTOOL="$DLLTOOL"
19968
 
 
19969
 
# Used on cygwin: object dumper.
19970
 
OBJDUMP="$OBJDUMP"
19971
 
 
19972
 
# Used on cygwin: assembler.
19973
 
AS="$AS"
19974
 
 
19975
 
# The name of the directory that contains temporary libtool files.
19976
 
objdir=$objdir
19977
 
 
19978
 
# How to create reloadable object files.
19979
 
reload_flag=$lt_reload_flag
19980
 
reload_cmds=$lt_reload_cmds
19981
 
 
19982
 
# How to pass a linker flag through the compiler.
19983
 
wl=$lt_lt_prog_compiler_wl_RC
19984
 
 
19985
 
# Object file suffix (normally "o").
19986
 
objext="$ac_objext"
19987
 
 
19988
 
# Old archive suffix (normally "a").
19989
 
libext="$libext"
19990
 
 
19991
 
# Shared library suffix (normally ".so").
19992
 
shrext_cmds='$shrext_cmds'
19993
 
 
19994
 
# Executable file suffix (normally "").
19995
 
exeext="$exeext"
19996
 
 
19997
 
# Additional compiler flags for building library objects.
19998
 
pic_flag=$lt_lt_prog_compiler_pic_RC
19999
 
pic_mode=$pic_mode
20000
 
 
20001
 
# What is the maximum length of a command?
20002
 
max_cmd_len=$lt_cv_sys_max_cmd_len
20003
 
 
20004
 
# Does compiler simultaneously support -c and -o options?
20005
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20006
 
 
20007
 
# Must we lock files when doing compilation?
20008
 
need_locks=$lt_need_locks
20009
 
 
20010
 
# Do we need the lib prefix for modules?
20011
 
need_lib_prefix=$need_lib_prefix
20012
 
 
20013
 
# Do we need a version for libraries?
20014
 
need_version=$need_version
20015
 
 
20016
 
# Whether dlopen is supported.
20017
 
dlopen_support=$enable_dlopen
20018
 
 
20019
 
# Whether dlopen of programs is supported.
20020
 
dlopen_self=$enable_dlopen_self
20021
 
 
20022
 
# Whether dlopen of statically linked programs is supported.
20023
 
dlopen_self_static=$enable_dlopen_self_static
20024
 
 
20025
 
# Compiler flag to prevent dynamic linking.
20026
 
link_static_flag=$lt_lt_prog_compiler_static_RC
20027
 
 
20028
 
# Compiler flag to turn off builtin functions.
20029
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20030
 
 
20031
 
# Compiler flag to allow reflexive dlopens.
20032
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20033
 
 
20034
 
# Compiler flag to generate shared objects directly from archives.
20035
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20036
 
 
20037
 
# Compiler flag to generate thread-safe objects.
20038
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20039
 
 
20040
 
# Library versioning type.
20041
 
version_type=$version_type
20042
 
 
20043
 
# Format of library name prefix.
20044
 
libname_spec=$lt_libname_spec
20045
 
 
20046
 
# List of archive names.  First name is the real one, the rest are links.
20047
 
# The last name is the one that the linker finds with -lNAME.
20048
 
library_names_spec=$lt_library_names_spec
20049
 
 
20050
 
# The coded name of the library, if different from the real name.
20051
 
soname_spec=$lt_soname_spec
20052
 
 
20053
 
# Commands used to build and install an old-style archive.
20054
 
RANLIB=$lt_RANLIB
20055
 
old_archive_cmds=$lt_old_archive_cmds_RC
20056
 
old_postinstall_cmds=$lt_old_postinstall_cmds
20057
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20058
 
 
20059
 
# Create an old-style archive from a shared archive.
20060
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20061
 
 
20062
 
# Create a temporary old-style archive to link instead of a shared archive.
20063
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20064
 
 
20065
 
# Commands used to build and install a shared archive.
20066
 
archive_cmds=$lt_archive_cmds_RC
20067
 
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20068
 
postinstall_cmds=$lt_postinstall_cmds
20069
 
postuninstall_cmds=$lt_postuninstall_cmds
20070
 
 
20071
 
# Commands used to build a loadable module (assumed same as above if empty)
20072
 
module_cmds=$lt_module_cmds_RC
20073
 
module_expsym_cmds=$lt_module_expsym_cmds_RC
20074
 
 
20075
 
# Commands to strip libraries.
20076
 
old_striplib=$lt_old_striplib
20077
 
striplib=$lt_striplib
20078
 
 
20079
 
# Dependencies to place before the objects being linked to create a
20080
 
# shared library.
20081
 
predep_objects=$lt_predep_objects_RC
20082
 
 
20083
 
# Dependencies to place after the objects being linked to create a
20084
 
# shared library.
20085
 
postdep_objects=$lt_postdep_objects_RC
20086
 
 
20087
 
# Dependencies to place before the objects being linked to create a
20088
 
# shared library.
20089
 
predeps=$lt_predeps_RC
20090
 
 
20091
 
# Dependencies to place after the objects being linked to create a
20092
 
# shared library.
20093
 
postdeps=$lt_postdeps_RC
20094
 
 
20095
 
# The directories searched by this compiler when creating a shared
20096
 
# library
20097
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20098
 
 
20099
 
# The library search path used internally by the compiler when linking
20100
 
# a shared library.
20101
 
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20102
 
 
20103
 
# Method to check whether dependent libraries are shared objects.
20104
 
deplibs_check_method=$lt_deplibs_check_method
20105
 
 
20106
 
# Command to use when deplibs_check_method == file_magic.
20107
 
file_magic_cmd=$lt_file_magic_cmd
20108
 
 
20109
 
# Flag that allows shared libraries with undefined symbols to be built.
20110
 
allow_undefined_flag=$lt_allow_undefined_flag_RC
20111
 
 
20112
 
# Flag that forces no undefined symbols.
20113
 
no_undefined_flag=$lt_no_undefined_flag_RC
20114
 
 
20115
 
# Commands used to finish a libtool library installation in a directory.
20116
 
finish_cmds=$lt_finish_cmds
20117
 
 
20118
 
# Same as above, but a single script fragment to be evaled but not shown.
20119
 
finish_eval=$lt_finish_eval
20120
 
 
20121
 
# Take the output of nm and produce a listing of raw symbols and C names.
20122
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20123
 
 
20124
 
# Transform the output of nm in a proper C declaration
20125
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20126
 
 
20127
 
# Transform the output of nm in a C name address pair
20128
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20129
 
 
20130
 
# This is the shared library runtime path variable.
20131
 
runpath_var=$runpath_var
20132
 
 
20133
 
# This is the shared library path variable.
20134
 
shlibpath_var=$shlibpath_var
20135
 
 
20136
 
# Is shlibpath searched before the hard-coded library search path?
20137
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20138
 
 
20139
 
# How to hardcode a shared library path into an executable.
20140
 
hardcode_action=$hardcode_action_RC
20141
 
 
20142
 
# Whether we should hardcode library paths into libraries.
20143
 
hardcode_into_libs=$hardcode_into_libs
20144
 
 
20145
 
# Flag to hardcode \$libdir into a binary during linking.
20146
 
# This must work even if \$libdir does not exist.
20147
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20148
 
 
20149
 
# If ld is used when linking, flag to hardcode \$libdir into
20150
 
# a binary during linking. This must work even if \$libdir does
20151
 
# not exist.
20152
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20153
 
 
20154
 
# Whether we need a single -rpath flag with a separated argument.
20155
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20156
 
 
20157
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20158
 
# resulting binary.
20159
 
hardcode_direct=$hardcode_direct_RC
20160
 
 
20161
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20162
 
# resulting binary.
20163
 
hardcode_minus_L=$hardcode_minus_L_RC
20164
 
 
20165
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20166
 
# the resulting binary.
20167
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20168
 
 
20169
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
20170
 
# and all subsequent libraries and executables linked against it.
20171
 
hardcode_automatic=$hardcode_automatic_RC
20172
 
 
20173
 
# Variables whose values should be saved in libtool wrapper scripts and
20174
 
# restored at relink time.
20175
 
variables_saved_for_relink="$variables_saved_for_relink"
20176
 
 
20177
 
# Whether libtool must link a program against all its dependency libraries.
20178
 
link_all_deplibs=$link_all_deplibs_RC
20179
 
 
20180
 
# Compile-time system search path for libraries
20181
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20182
 
 
20183
 
# Run-time system search path for libraries
20184
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20185
 
 
20186
 
# Fix the shell variable \$srcfile for the compiler.
20187
 
fix_srcfile_path=$lt_fix_srcfile_path
20188
 
 
20189
 
# Set to yes if exported symbols are required.
20190
 
always_export_symbols=$always_export_symbols_RC
20191
 
 
20192
 
# The commands to list exported symbols.
20193
 
export_symbols_cmds=$lt_export_symbols_cmds_RC
20194
 
 
20195
 
# The commands to extract the exported symbol list from a shared archive.
20196
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20197
 
 
20198
 
# Symbols that should not be listed in the preloaded symbols.
20199
 
exclude_expsyms=$lt_exclude_expsyms_RC
20200
 
 
20201
 
# Symbols that must always be exported.
20202
 
include_expsyms=$lt_include_expsyms_RC
20203
 
 
20204
 
# ### END LIBTOOL TAG CONFIG: $tagname
20205
 
 
20206
 
__EOF__
20207
 
 
20208
 
 
20209
 
else
20210
 
  # If there is no Makefile yet, we rely on a make rule to execute
20211
 
  # `config.status --recheck' to rerun these tests and create the
20212
 
  # libtool script then.
20213
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20214
 
  if test -f "$ltmain_in"; then
20215
 
    test -f Makefile && make "$ltmain"
20216
 
  fi
20217
 
fi
20218
 
 
20219
 
 
20220
 
ac_ext=c
20221
 
ac_cpp='$CPP $CPPFLAGS'
20222
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20223
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20224
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20225
 
 
20226
 
CC="$lt_save_CC"
20227
 
 
20228
 
        ;;
20229
 
 
20230
 
      *)
20231
 
        { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20232
 
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20233
 
   { (exit 1); exit 1; }; }
20234
 
        ;;
20235
 
      esac
20236
 
 
20237
 
      # Append the new tag name to the list of available tags.
20238
 
      if test -n "$tagname" ; then
20239
 
      available_tags="$available_tags $tagname"
20240
 
    fi
20241
 
    fi
20242
 
  done
20243
 
  IFS="$lt_save_ifs"
20244
 
 
20245
 
  # Now substitute the updated list of available tags.
20246
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20247
 
    mv "${ofile}T" "$ofile"
20248
 
    chmod +x "$ofile"
20249
 
  else
20250
 
    rm -f "${ofile}T"
20251
 
    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20252
 
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20253
 
   { (exit 1); exit 1; }; }
20254
 
  fi
20255
 
fi
20256
 
 
20257
 
 
20258
 
 
20259
 
# This can be used to rebuild libtool when needed
20260
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20261
 
 
20262
 
# Always use our own libtool.
20263
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20264
 
 
20265
 
# Prevent multiple expansion
20266
 
 
20267
 
 
20268
 
 
20269
 
 
20270
 
 
20271
 
 
20272
 
 
20273
 
 
20274
 
 
20275
 
 
20276
 
 
20277
 
 
20278
 
 
20279
 
 
20280
 
 
20281
 
 
20282
 
 
20283
 
 
 
12272
else
 
12273
  cat >conftest.$ac_ext <<_ACEOF
 
12274
/* confdefs.h.  */
 
12275
_ACEOF
 
12276
cat confdefs.h >>conftest.$ac_ext
 
12277
cat >>conftest.$ac_ext <<_ACEOF
 
12278
/* end confdefs.h.  */
 
12279
 
 
12280
#include <iconv.h>
 
12281
#include <string.h>
 
12282
int main ()
 
12283
{
 
12284
  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
 
12285
     returns.  */
 
12286
  {
 
12287
    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
 
12288
    if (cd_utf8_to_88591 != (iconv_t)(-1))
 
12289
      {
 
12290
        static const char input[] = "\342\202\254"; /* EURO SIGN */
 
12291
        char buf[10];
 
12292
        const char *inptr = input;
 
12293
        size_t inbytesleft = strlen (input);
 
12294
        char *outptr = buf;
 
12295
        size_t outbytesleft = sizeof (buf);
 
12296
        size_t res = iconv (cd_utf8_to_88591,
 
12297
                            (char **) &inptr, &inbytesleft,
 
12298
                            &outptr, &outbytesleft);
 
12299
        if (res == 0)
 
12300
          return 1;
 
12301
      }
 
12302
  }
 
12303
#if 0 /* This bug could be worked around by the caller.  */
 
12304
  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
 
12305
  {
 
12306
    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
 
12307
    if (cd_88591_to_utf8 != (iconv_t)(-1))
 
12308
      {
 
12309
        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
 
12310
        char buf[50];
 
12311
        const char *inptr = input;
 
12312
        size_t inbytesleft = strlen (input);
 
12313
        char *outptr = buf;
 
12314
        size_t outbytesleft = sizeof (buf);
 
12315
        size_t res = iconv (cd_88591_to_utf8,
 
12316
                            (char **) &inptr, &inbytesleft,
 
12317
                            &outptr, &outbytesleft);
 
12318
        if ((int)res > 0)
 
12319
          return 1;
 
12320
      }
 
12321
  }
 
12322
#endif
 
12323
  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
 
12324
     provided.  */
 
12325
  if (/* Try standardized names.  */
 
12326
      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
 
12327
      /* Try IRIX, OSF/1 names.  */
 
12328
      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
 
12329
      /* Try AIX names.  */
 
12330
      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
 
12331
      /* Try HP-UX names.  */
 
12332
      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
 
12333
    return 1;
 
12334
  return 0;
 
12335
}
 
12336
_ACEOF
 
12337
rm -f conftest$ac_exeext
 
12338
if { (ac_try="$ac_link"
 
12339
case "(($ac_try" in
 
12340
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12341
  *) ac_try_echo=$ac_try;;
 
12342
esac
 
12343
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12344
$as_echo "$ac_try_echo") >&5
 
12345
  (eval "$ac_link") 2>&5
 
12346
  ac_status=$?
 
12347
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12348
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
12349
  { (case "(($ac_try" in
 
12350
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12351
  *) ac_try_echo=$ac_try;;
 
12352
esac
 
12353
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12354
$as_echo "$ac_try_echo") >&5
 
12355
  (eval "$ac_try") 2>&5
 
12356
  ac_status=$?
 
12357
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12358
  (exit $ac_status); }; }; then
 
12359
  am_cv_func_iconv_works=yes
 
12360
else
 
12361
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
12362
$as_echo "$as_me: failed program was:" >&5
 
12363
sed 's/^/| /' conftest.$ac_ext >&5
 
12364
 
 
12365
( exit $ac_status )
 
12366
am_cv_func_iconv_works=no
 
12367
fi
 
12368
rm -rf conftest.dSYM
 
12369
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
12370
fi
 
12371
 
 
12372
 
 
12373
      LIBS="$am_save_LIBS"
 
12374
 
 
12375
fi
 
12376
{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
 
12377
$as_echo "$am_cv_func_iconv_works" >&6; }
 
12378
    case "$am_cv_func_iconv_works" in
 
12379
      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
 
12380
      *)   am_func_iconv=yes ;;
 
12381
    esac
 
12382
  else
 
12383
    am_func_iconv=no am_cv_lib_iconv=no
 
12384
  fi
 
12385
  if test "$am_func_iconv" = yes; then
 
12386
 
 
12387
cat >>confdefs.h <<\_ACEOF
 
12388
#define HAVE_ICONV 1
 
12389
_ACEOF
 
12390
 
 
12391
  fi
 
12392
  if test "$am_cv_lib_iconv" = yes; then
 
12393
    { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
 
12394
$as_echo_n "checking how to link with libiconv... " >&6; }
 
12395
    { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
 
12396
$as_echo "$LIBICONV" >&6; }
 
12397
  else
 
12398
            CPPFLAGS="$am_save_CPPFLAGS"
 
12399
    LIBICONV=
 
12400
    LTLIBICONV=
 
12401
  fi
 
12402
 
 
12403
 
 
12404
 
 
12405
  if test "$am_cv_func_iconv" = yes; then
 
12406
    { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
 
12407
$as_echo_n "checking for iconv declaration... " >&6; }
 
12408
    if test "${am_cv_proto_iconv+set}" = set; then
 
12409
  $as_echo_n "(cached) " >&6
 
12410
else
 
12411
 
 
12412
      cat >conftest.$ac_ext <<_ACEOF
 
12413
/* confdefs.h.  */
 
12414
_ACEOF
 
12415
cat confdefs.h >>conftest.$ac_ext
 
12416
cat >>conftest.$ac_ext <<_ACEOF
 
12417
/* end confdefs.h.  */
 
12418
 
 
12419
#include <stdlib.h>
 
12420
#include <iconv.h>
 
12421
extern
 
12422
#ifdef __cplusplus
 
12423
"C"
 
12424
#endif
 
12425
#if defined(__STDC__) || defined(__cplusplus)
 
12426
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
 
12427
#else
 
12428
size_t iconv();
 
12429
#endif
 
12430
 
 
12431
int
 
12432
main ()
 
12433
{
 
12434
 
 
12435
  ;
 
12436
  return 0;
 
12437
}
 
12438
_ACEOF
 
12439
rm -f conftest.$ac_objext
 
12440
if { (ac_try="$ac_compile"
 
12441
case "(($ac_try" in
 
12442
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12443
  *) ac_try_echo=$ac_try;;
 
12444
esac
 
12445
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12446
$as_echo "$ac_try_echo") >&5
 
12447
  (eval "$ac_compile") 2>conftest.er1
 
12448
  ac_status=$?
 
12449
  grep -v '^ *+' conftest.er1 >conftest.err
 
12450
  rm -f conftest.er1
 
12451
  cat conftest.err >&5
 
12452
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12453
  (exit $ac_status); } && {
 
12454
         test -z "$ac_c_werror_flag" ||
 
12455
         test ! -s conftest.err
 
12456
       } && test -s conftest.$ac_objext; then
 
12457
  am_cv_proto_iconv_arg1=""
 
12458
else
 
12459
  $as_echo "$as_me: failed program was:" >&5
 
12460
sed 's/^/| /' conftest.$ac_ext >&5
 
12461
 
 
12462
        am_cv_proto_iconv_arg1="const"
 
12463
fi
 
12464
 
 
12465
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12466
      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
 
12467
fi
 
12468
 
 
12469
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
 
12470
    { $as_echo "$as_me:$LINENO: result: ${ac_t:-
 
12471
         }$am_cv_proto_iconv" >&5
 
12472
$as_echo "${ac_t:-
 
12473
         }$am_cv_proto_iconv" >&6; }
 
12474
 
 
12475
cat >>confdefs.h <<_ACEOF
 
12476
#define ICONV_CONST $am_cv_proto_iconv_arg1
 
12477
_ACEOF
 
12478
 
 
12479
  fi
20284
12480
 
20285
12481
 
20286
12482
# Check for doxygen
20371
12567
fi
20372
12568
 
20373
12569
 
 
12570
# Check if Microsoft LIB.EXE is available
 
12571
if test "$mingw_compiler" = "yes"; then
 
12572
  # Extract the first word of "lib.exe", so it can be a program name with args.
 
12573
set dummy lib.exe; ac_word=$2
 
12574
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12575
$as_echo_n "checking for $ac_word... " >&6; }
 
12576
if test "${ac_cv_prog_ms_lib_exe+set}" = set; then
 
12577
  $as_echo_n "(cached) " >&6
 
12578
else
 
12579
  if test -n "$ms_lib_exe"; then
 
12580
  ac_cv_prog_ms_lib_exe="$ms_lib_exe" # Let the user override the test.
 
12581
else
 
12582
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12583
for as_dir in $PATH
 
12584
do
 
12585
  IFS=$as_save_IFS
 
12586
  test -z "$as_dir" && as_dir=.
 
12587
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12588
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12589
    ac_cv_prog_ms_lib_exe="yes"
 
12590
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12591
    break 2
 
12592
  fi
 
12593
done
 
12594
done
 
12595
IFS=$as_save_IFS
 
12596
 
 
12597
  test -z "$ac_cv_prog_ms_lib_exe" && ac_cv_prog_ms_lib_exe="no"
 
12598
fi
 
12599
fi
 
12600
ms_lib_exe=$ac_cv_prog_ms_lib_exe
 
12601
if test -n "$ms_lib_exe"; then
 
12602
  { $as_echo "$as_me:$LINENO: result: $ms_lib_exe" >&5
 
12603
$as_echo "$ms_lib_exe" >&6; }
 
12604
else
 
12605
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
12606
$as_echo "no" >&6; }
 
12607
fi
 
12608
 
 
12609
 
 
12610
fi
 
12611
 if test x$ms_lib_exe = xyes; then
 
12612
  MS_LIB_EXE_TRUE=
 
12613
  MS_LIB_EXE_FALSE='#'
 
12614
else
 
12615
  MS_LIB_EXE_TRUE='#'
 
12616
  MS_LIB_EXE_FALSE=
 
12617
fi
 
12618
 
20374
12619
 
20375
12620
# Checks for libraries.
20376
12621
 
20715
12960
 
20716
12961
 
20717
12962
 
 
12963
 
 
12964
 
 
12965
 
20718
12966
for ac_header in ctype.h errno.h fcntl.h getopt.h libgen.h \
20719
12967
        limits.h stdio.h string.h sys/stat.h sys/time.h unistd.h \
20720
 
        iconv.h langinfo.h locale.h
 
12968
        iconv.h langinfo.h locale.h arpa/inet.h byteswap.h sys/uio.h
20721
12969
do
20722
12970
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20723
12971
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22015
14263
 
22016
14264
 
22017
14265
 
22018
 
for ac_func in basename memset select strdup strerror strrchr strtoul usleep
 
14266
 
 
14267
for ac_func in basename memset select strdup strerror strrchr strtoul usleep mkstemp
22019
14268
do
22020
14269
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22021
14270
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22118
14367
 
22119
14368
# Switches.
22120
14369
# Enable LFS (Large File Support)
22121
 
CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64"
 
14370
# Check whether --enable-largefile was given.
 
14371
if test "${enable_largefile+set}" = set; then
 
14372
  enableval=$enable_largefile;
 
14373
fi
 
14374
 
 
14375
if test "$enable_largefile" != no; then
 
14376
 
 
14377
  { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
 
14378
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
 
14379
if test "${ac_cv_sys_largefile_CC+set}" = set; then
 
14380
  $as_echo_n "(cached) " >&6
 
14381
else
 
14382
  ac_cv_sys_largefile_CC=no
 
14383
     if test "$GCC" != yes; then
 
14384
       ac_save_CC=$CC
 
14385
       while :; do
 
14386
         # IRIX 6.2 and later do not support large files by default,
 
14387
         # so use the C compiler's -n32 option if that helps.
 
14388
         cat >conftest.$ac_ext <<_ACEOF
 
14389
/* confdefs.h.  */
 
14390
_ACEOF
 
14391
cat confdefs.h >>conftest.$ac_ext
 
14392
cat >>conftest.$ac_ext <<_ACEOF
 
14393
/* end confdefs.h.  */
 
14394
#include <sys/types.h>
 
14395
 /* Check that off_t can represent 2**63 - 1 correctly.
 
14396
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
14397
    since some C++ compilers masquerading as C compilers
 
14398
    incorrectly reject 9223372036854775807.  */
 
14399
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
14400
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
14401
                       && LARGE_OFF_T % 2147483647 == 1)
 
14402
                      ? 1 : -1];
 
14403
int
 
14404
main ()
 
14405
{
 
14406
 
 
14407
  ;
 
14408
  return 0;
 
14409
}
 
14410
_ACEOF
 
14411
         rm -f conftest.$ac_objext
 
14412
if { (ac_try="$ac_compile"
 
14413
case "(($ac_try" in
 
14414
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14415
  *) ac_try_echo=$ac_try;;
 
14416
esac
 
14417
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14418
$as_echo "$ac_try_echo") >&5
 
14419
  (eval "$ac_compile") 2>conftest.er1
 
14420
  ac_status=$?
 
14421
  grep -v '^ *+' conftest.er1 >conftest.err
 
14422
  rm -f conftest.er1
 
14423
  cat conftest.err >&5
 
14424
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14425
  (exit $ac_status); } && {
 
14426
         test -z "$ac_c_werror_flag" ||
 
14427
         test ! -s conftest.err
 
14428
       } && test -s conftest.$ac_objext; then
 
14429
  break
 
14430
else
 
14431
  $as_echo "$as_me: failed program was:" >&5
 
14432
sed 's/^/| /' conftest.$ac_ext >&5
 
14433
 
 
14434
 
 
14435
fi
 
14436
 
 
14437
rm -f core conftest.err conftest.$ac_objext
 
14438
         CC="$CC -n32"
 
14439
         rm -f conftest.$ac_objext
 
14440
if { (ac_try="$ac_compile"
 
14441
case "(($ac_try" in
 
14442
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14443
  *) ac_try_echo=$ac_try;;
 
14444
esac
 
14445
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14446
$as_echo "$ac_try_echo") >&5
 
14447
  (eval "$ac_compile") 2>conftest.er1
 
14448
  ac_status=$?
 
14449
  grep -v '^ *+' conftest.er1 >conftest.err
 
14450
  rm -f conftest.er1
 
14451
  cat conftest.err >&5
 
14452
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14453
  (exit $ac_status); } && {
 
14454
         test -z "$ac_c_werror_flag" ||
 
14455
         test ! -s conftest.err
 
14456
       } && test -s conftest.$ac_objext; then
 
14457
  ac_cv_sys_largefile_CC=' -n32'; break
 
14458
else
 
14459
  $as_echo "$as_me: failed program was:" >&5
 
14460
sed 's/^/| /' conftest.$ac_ext >&5
 
14461
 
 
14462
 
 
14463
fi
 
14464
 
 
14465
rm -f core conftest.err conftest.$ac_objext
 
14466
         break
 
14467
       done
 
14468
       CC=$ac_save_CC
 
14469
       rm -f conftest.$ac_ext
 
14470
    fi
 
14471
fi
 
14472
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
 
14473
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
 
14474
  if test "$ac_cv_sys_largefile_CC" != no; then
 
14475
    CC=$CC$ac_cv_sys_largefile_CC
 
14476
  fi
 
14477
 
 
14478
  { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
 
14479
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
 
14480
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
 
14481
  $as_echo_n "(cached) " >&6
 
14482
else
 
14483
  while :; do
 
14484
  cat >conftest.$ac_ext <<_ACEOF
 
14485
/* confdefs.h.  */
 
14486
_ACEOF
 
14487
cat confdefs.h >>conftest.$ac_ext
 
14488
cat >>conftest.$ac_ext <<_ACEOF
 
14489
/* end confdefs.h.  */
 
14490
#include <sys/types.h>
 
14491
 /* Check that off_t can represent 2**63 - 1 correctly.
 
14492
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
14493
    since some C++ compilers masquerading as C compilers
 
14494
    incorrectly reject 9223372036854775807.  */
 
14495
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
14496
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
14497
                       && LARGE_OFF_T % 2147483647 == 1)
 
14498
                      ? 1 : -1];
 
14499
int
 
14500
main ()
 
14501
{
 
14502
 
 
14503
  ;
 
14504
  return 0;
 
14505
}
 
14506
_ACEOF
 
14507
rm -f conftest.$ac_objext
 
14508
if { (ac_try="$ac_compile"
 
14509
case "(($ac_try" in
 
14510
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14511
  *) ac_try_echo=$ac_try;;
 
14512
esac
 
14513
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14514
$as_echo "$ac_try_echo") >&5
 
14515
  (eval "$ac_compile") 2>conftest.er1
 
14516
  ac_status=$?
 
14517
  grep -v '^ *+' conftest.er1 >conftest.err
 
14518
  rm -f conftest.er1
 
14519
  cat conftest.err >&5
 
14520
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14521
  (exit $ac_status); } && {
 
14522
         test -z "$ac_c_werror_flag" ||
 
14523
         test ! -s conftest.err
 
14524
       } && test -s conftest.$ac_objext; then
 
14525
  ac_cv_sys_file_offset_bits=no; break
 
14526
else
 
14527
  $as_echo "$as_me: failed program was:" >&5
 
14528
sed 's/^/| /' conftest.$ac_ext >&5
 
14529
 
 
14530
 
 
14531
fi
 
14532
 
 
14533
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14534
  cat >conftest.$ac_ext <<_ACEOF
 
14535
/* confdefs.h.  */
 
14536
_ACEOF
 
14537
cat confdefs.h >>conftest.$ac_ext
 
14538
cat >>conftest.$ac_ext <<_ACEOF
 
14539
/* end confdefs.h.  */
 
14540
#define _FILE_OFFSET_BITS 64
 
14541
#include <sys/types.h>
 
14542
 /* Check that off_t can represent 2**63 - 1 correctly.
 
14543
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
14544
    since some C++ compilers masquerading as C compilers
 
14545
    incorrectly reject 9223372036854775807.  */
 
14546
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
14547
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
14548
                       && LARGE_OFF_T % 2147483647 == 1)
 
14549
                      ? 1 : -1];
 
14550
int
 
14551
main ()
 
14552
{
 
14553
 
 
14554
  ;
 
14555
  return 0;
 
14556
}
 
14557
_ACEOF
 
14558
rm -f conftest.$ac_objext
 
14559
if { (ac_try="$ac_compile"
 
14560
case "(($ac_try" in
 
14561
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14562
  *) ac_try_echo=$ac_try;;
 
14563
esac
 
14564
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14565
$as_echo "$ac_try_echo") >&5
 
14566
  (eval "$ac_compile") 2>conftest.er1
 
14567
  ac_status=$?
 
14568
  grep -v '^ *+' conftest.er1 >conftest.err
 
14569
  rm -f conftest.er1
 
14570
  cat conftest.err >&5
 
14571
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14572
  (exit $ac_status); } && {
 
14573
         test -z "$ac_c_werror_flag" ||
 
14574
         test ! -s conftest.err
 
14575
       } && test -s conftest.$ac_objext; then
 
14576
  ac_cv_sys_file_offset_bits=64; break
 
14577
else
 
14578
  $as_echo "$as_me: failed program was:" >&5
 
14579
sed 's/^/| /' conftest.$ac_ext >&5
 
14580
 
 
14581
 
 
14582
fi
 
14583
 
 
14584
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14585
  ac_cv_sys_file_offset_bits=unknown
 
14586
  break
 
14587
done
 
14588
fi
 
14589
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
 
14590
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
 
14591
case $ac_cv_sys_file_offset_bits in #(
 
14592
  no | unknown) ;;
 
14593
  *)
 
14594
cat >>confdefs.h <<_ACEOF
 
14595
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
 
14596
_ACEOF
 
14597
;;
 
14598
esac
 
14599
rm -rf conftest*
 
14600
  if test $ac_cv_sys_file_offset_bits = unknown; then
 
14601
    { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
 
14602
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
 
14603
if test "${ac_cv_sys_large_files+set}" = set; then
 
14604
  $as_echo_n "(cached) " >&6
 
14605
else
 
14606
  while :; do
 
14607
  cat >conftest.$ac_ext <<_ACEOF
 
14608
/* confdefs.h.  */
 
14609
_ACEOF
 
14610
cat confdefs.h >>conftest.$ac_ext
 
14611
cat >>conftest.$ac_ext <<_ACEOF
 
14612
/* end confdefs.h.  */
 
14613
#include <sys/types.h>
 
14614
 /* Check that off_t can represent 2**63 - 1 correctly.
 
14615
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
14616
    since some C++ compilers masquerading as C compilers
 
14617
    incorrectly reject 9223372036854775807.  */
 
14618
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
14619
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
14620
                       && LARGE_OFF_T % 2147483647 == 1)
 
14621
                      ? 1 : -1];
 
14622
int
 
14623
main ()
 
14624
{
 
14625
 
 
14626
  ;
 
14627
  return 0;
 
14628
}
 
14629
_ACEOF
 
14630
rm -f conftest.$ac_objext
 
14631
if { (ac_try="$ac_compile"
 
14632
case "(($ac_try" in
 
14633
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14634
  *) ac_try_echo=$ac_try;;
 
14635
esac
 
14636
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14637
$as_echo "$ac_try_echo") >&5
 
14638
  (eval "$ac_compile") 2>conftest.er1
 
14639
  ac_status=$?
 
14640
  grep -v '^ *+' conftest.er1 >conftest.err
 
14641
  rm -f conftest.er1
 
14642
  cat conftest.err >&5
 
14643
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14644
  (exit $ac_status); } && {
 
14645
         test -z "$ac_c_werror_flag" ||
 
14646
         test ! -s conftest.err
 
14647
       } && test -s conftest.$ac_objext; then
 
14648
  ac_cv_sys_large_files=no; break
 
14649
else
 
14650
  $as_echo "$as_me: failed program was:" >&5
 
14651
sed 's/^/| /' conftest.$ac_ext >&5
 
14652
 
 
14653
 
 
14654
fi
 
14655
 
 
14656
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14657
  cat >conftest.$ac_ext <<_ACEOF
 
14658
/* confdefs.h.  */
 
14659
_ACEOF
 
14660
cat confdefs.h >>conftest.$ac_ext
 
14661
cat >>conftest.$ac_ext <<_ACEOF
 
14662
/* end confdefs.h.  */
 
14663
#define _LARGE_FILES 1
 
14664
#include <sys/types.h>
 
14665
 /* Check that off_t can represent 2**63 - 1 correctly.
 
14666
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
14667
    since some C++ compilers masquerading as C compilers
 
14668
    incorrectly reject 9223372036854775807.  */
 
14669
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
14670
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
14671
                       && LARGE_OFF_T % 2147483647 == 1)
 
14672
                      ? 1 : -1];
 
14673
int
 
14674
main ()
 
14675
{
 
14676
 
 
14677
  ;
 
14678
  return 0;
 
14679
}
 
14680
_ACEOF
 
14681
rm -f conftest.$ac_objext
 
14682
if { (ac_try="$ac_compile"
 
14683
case "(($ac_try" in
 
14684
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14685
  *) ac_try_echo=$ac_try;;
 
14686
esac
 
14687
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14688
$as_echo "$ac_try_echo") >&5
 
14689
  (eval "$ac_compile") 2>conftest.er1
 
14690
  ac_status=$?
 
14691
  grep -v '^ *+' conftest.er1 >conftest.err
 
14692
  rm -f conftest.er1
 
14693
  cat conftest.err >&5
 
14694
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14695
  (exit $ac_status); } && {
 
14696
         test -z "$ac_c_werror_flag" ||
 
14697
         test ! -s conftest.err
 
14698
       } && test -s conftest.$ac_objext; then
 
14699
  ac_cv_sys_large_files=1; break
 
14700
else
 
14701
  $as_echo "$as_me: failed program was:" >&5
 
14702
sed 's/^/| /' conftest.$ac_ext >&5
 
14703
 
 
14704
 
 
14705
fi
 
14706
 
 
14707
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14708
  ac_cv_sys_large_files=unknown
 
14709
  break
 
14710
done
 
14711
fi
 
14712
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
 
14713
$as_echo "$ac_cv_sys_large_files" >&6; }
 
14714
case $ac_cv_sys_large_files in #(
 
14715
  no | unknown) ;;
 
14716
  *)
 
14717
cat >>confdefs.h <<_ACEOF
 
14718
#define _LARGE_FILES $ac_cv_sys_large_files
 
14719
_ACEOF
 
14720
;;
 
14721
esac
 
14722
rm -rf conftest*
 
14723
  fi
 
14724
fi
 
14725
 
22122
14726
# Stick in "-Werror" if you want to be more aggressive.
22123
14727
# (No need to use AC_SUBST on this default substituted environment variable.)
22124
14728
CFLAGS="$CFLAGS -Wall -Wmissing-prototypes"
23510
16114
LTLIBOBJS=$ac_ltlibobjs
23511
16115
 
23512
16116
 
 
16117
 if test -n "$EXEEXT"; then
 
16118
  am__EXEEXT_TRUE=
 
16119
  am__EXEEXT_FALSE='#'
 
16120
else
 
16121
  am__EXEEXT_TRUE='#'
 
16122
  am__EXEEXT_FALSE=
 
16123
fi
 
16124
 
23513
16125
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23514
16126
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23515
16127
Usually this means the macro was only invoked conditionally." >&5
23524
16136
Usually this means the macro was only invoked conditionally." >&2;}
23525
16137
   { (exit 1); exit 1; }; }
23526
16138
fi
23527
 
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23528
 
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23529
 
Usually this means the macro was only invoked conditionally." >&5
23530
 
$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23531
 
Usually this means the macro was only invoked conditionally." >&2;}
23532
 
   { (exit 1); exit 1; }; }
23533
 
fi
23534
16139
if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
23535
16140
  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DOXYGEN\" was never defined.
23536
16141
Usually this means the macro was only invoked conditionally." >&5
23545
16150
Usually this means the macro was only invoked conditionally." >&2;}
23546
16151
   { (exit 1); exit 1; }; }
23547
16152
fi
 
16153
if test -z "${MS_LIB_EXE_TRUE}" && test -z "${MS_LIB_EXE_FALSE}"; then
 
16154
  { { $as_echo "$as_me:$LINENO: error: conditional \"MS_LIB_EXE\" was never defined.
 
16155
Usually this means the macro was only invoked conditionally." >&5
 
16156
$as_echo "$as_me: error: conditional \"MS_LIB_EXE\" was never defined.
 
16157
Usually this means the macro was only invoked conditionally." >&2;}
 
16158
   { (exit 1); exit 1; }; }
 
16159
fi
23548
16160
 
23549
16161
 
23550
16162
: ${CONFIG_STATUS=./config.status}
23868
16480
# report actual input values of CONFIG_FILES etc. instead of their
23869
16481
# values after options handling.
23870
16482
ac_log="
23871
 
This file was extended by libmtp $as_me 0.3.7, which was
 
16483
This file was extended by libmtp $as_me 1.0.1, which was
23872
16484
generated by GNU Autoconf 2.63.  Invocation command line was
23873
16485
 
23874
16486
  CONFIG_FILES    = $CONFIG_FILES
23931
16543
_ACEOF
23932
16544
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23933
16545
ac_cs_version="\\
23934
 
libmtp config.status 0.3.7
 
16546
libmtp config.status 1.0.1
23935
16547
configured by $0, generated by GNU Autoconf 2.63,
23936
16548
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23937
16549
 
24046
16658
#
24047
16659
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24048
16660
 
 
16661
 
 
16662
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
16663
# if CDPATH is set.
 
16664
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
16665
 
 
16666
sed_quote_subst='$sed_quote_subst'
 
16667
double_quote_subst='$double_quote_subst'
 
16668
delay_variable_subst='$delay_variable_subst'
 
16669
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
 
16670
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
16671
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
 
16672
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
 
16673
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
 
16674
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
 
16675
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
 
16676
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
 
16677
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
 
16678
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
16679
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
 
16680
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
 
16681
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
16682
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
 
16683
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
 
16684
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
 
16685
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
 
16686
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
 
16687
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
16688
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
16689
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
 
16690
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
 
16691
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
 
16692
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
 
16693
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
 
16694
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
 
16695
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
 
16696
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
 
16697
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
 
16698
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
16699
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16700
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
 
16701
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
 
16702
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
 
16703
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
16704
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
 
16705
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
 
16706
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16707
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16708
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16709
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
 
16710
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
16711
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
 
16712
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
 
16713
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
 
16714
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
 
16715
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
 
16716
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
16717
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
 
16718
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
 
16719
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
 
16720
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
 
16721
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
16722
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
 
16723
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
 
16724
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
 
16725
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
 
16726
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
 
16727
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
 
16728
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
 
16729
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
 
16730
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
16731
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
 
16732
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
 
16733
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16734
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16735
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
 
16736
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
 
16737
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
16738
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
16739
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
 
16740
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16741
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16742
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16743
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16744
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16745
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16746
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
16747
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
16748
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
16749
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
16750
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
16751
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
 
16752
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
 
16753
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
 
16754
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
 
16755
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
16756
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
 
16757
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
 
16758
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
 
16759
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
 
16760
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
 
16761
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16762
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
16763
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
16764
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16765
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
16766
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
 
16767
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
16768
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
 
16769
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
 
16770
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
16771
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
16772
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
 
16773
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
16774
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
16775
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
16776
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16777
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16778
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16779
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
 
16780
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
 
16781
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
16782
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
16783
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
 
16784
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
 
16785
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
 
16786
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
 
16787
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
16788
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
16789
 
 
16790
LTCC='$LTCC'
 
16791
LTCFLAGS='$LTCFLAGS'
 
16792
compiler='$compiler_DEFAULT'
 
16793
 
 
16794
# Quote evaled strings.
 
16795
for var in SED \
 
16796
GREP \
 
16797
EGREP \
 
16798
FGREP \
 
16799
LD \
 
16800
NM \
 
16801
LN_S \
 
16802
lt_SP2NL \
 
16803
lt_NL2SP \
 
16804
reload_flag \
 
16805
deplibs_check_method \
 
16806
file_magic_cmd \
 
16807
AR \
 
16808
AR_FLAGS \
 
16809
STRIP \
 
16810
RANLIB \
 
16811
CC \
 
16812
CFLAGS \
 
16813
compiler \
 
16814
lt_cv_sys_global_symbol_pipe \
 
16815
lt_cv_sys_global_symbol_to_cdecl \
 
16816
lt_cv_sys_global_symbol_to_c_name_address \
 
16817
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
16818
SHELL \
 
16819
ECHO \
 
16820
lt_prog_compiler_no_builtin_flag \
 
16821
lt_prog_compiler_wl \
 
16822
lt_prog_compiler_pic \
 
16823
lt_prog_compiler_static \
 
16824
lt_cv_prog_compiler_c_o \
 
16825
need_locks \
 
16826
DSYMUTIL \
 
16827
NMEDIT \
 
16828
LIPO \
 
16829
OTOOL \
 
16830
OTOOL64 \
 
16831
shrext_cmds \
 
16832
export_dynamic_flag_spec \
 
16833
whole_archive_flag_spec \
 
16834
compiler_needs_object \
 
16835
with_gnu_ld \
 
16836
allow_undefined_flag \
 
16837
no_undefined_flag \
 
16838
hardcode_libdir_flag_spec \
 
16839
hardcode_libdir_flag_spec_ld \
 
16840
hardcode_libdir_separator \
 
16841
fix_srcfile_path \
 
16842
exclude_expsyms \
 
16843
include_expsyms \
 
16844
file_list_spec \
 
16845
variables_saved_for_relink \
 
16846
libname_spec \
 
16847
library_names_spec \
 
16848
soname_spec \
 
16849
finish_eval \
 
16850
old_striplib \
 
16851
striplib; do
 
16852
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
16853
    *[\\\\\\\`\\"\\\$]*)
 
16854
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
16855
      ;;
 
16856
    *)
 
16857
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
16858
      ;;
 
16859
    esac
 
16860
done
 
16861
 
 
16862
# Double-quote double-evaled strings.
 
16863
for var in reload_cmds \
 
16864
old_postinstall_cmds \
 
16865
old_postuninstall_cmds \
 
16866
old_archive_cmds \
 
16867
extract_expsyms_cmds \
 
16868
old_archive_from_new_cmds \
 
16869
old_archive_from_expsyms_cmds \
 
16870
archive_cmds \
 
16871
archive_expsym_cmds \
 
16872
module_cmds \
 
16873
module_expsym_cmds \
 
16874
export_symbols_cmds \
 
16875
prelink_cmds \
 
16876
postinstall_cmds \
 
16877
postuninstall_cmds \
 
16878
finish_cmds \
 
16879
sys_lib_search_path_spec \
 
16880
sys_lib_dlsearch_path_spec; do
 
16881
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
16882
    *[\\\\\\\`\\"\\\$]*)
 
16883
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
16884
      ;;
 
16885
    *)
 
16886
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
16887
      ;;
 
16888
    esac
 
16889
done
 
16890
 
 
16891
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
16892
case \$lt_ECHO in
 
16893
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
 
16894
  ;;
 
16895
esac
 
16896
 
 
16897
ac_aux_dir='$ac_aux_dir'
 
16898
xsi_shell='$xsi_shell'
 
16899
lt_shell_append='$lt_shell_append'
 
16900
 
 
16901
# See if we are running on zsh, and set the options which allow our
 
16902
# commands through without removal of \ escapes INIT.
 
16903
if test -n "\${ZSH_VERSION+set}" ; then
 
16904
   setopt NO_GLOB_SUBST
 
16905
fi
 
16906
 
 
16907
 
 
16908
    PACKAGE='$PACKAGE'
 
16909
    VERSION='$VERSION'
 
16910
    TIMESTAMP='$TIMESTAMP'
 
16911
    RM='$RM'
 
16912
    ofile='$ofile'
 
16913
 
 
16914
 
 
16915
 
 
16916
 
24049
16917
_ACEOF
24050
16918
 
24051
16919
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24056
16924
  case $ac_config_target in
24057
16925
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24058
16926
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
16927
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24059
16928
    "src/libmtp.h") CONFIG_FILES="$CONFIG_FILES src/libmtp.h" ;;
24060
16929
    "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
24061
16930
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24719
17588
 
24720
17589
 
24721
17590
  case $ac_file$ac_mode in
24722
 
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24723
 
  # Strip MF so we end up with the name of the file.
24724
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
24725
 
  # Check whether this is an Automake generated Makefile or not.
24726
 
  # We used to match only the files named `Makefile.in', but
24727
 
  # some people rename them; so instead we look at the file content.
24728
 
  # Grep'ing the first line is not enough: some people post-process
24729
 
  # each Makefile.in and add a new line on top of each file to say so.
24730
 
  # Grep'ing the whole file is not good either: AIX grep has a line
24731
 
  # limit of 2048, but all sed's we know have understand at least 4000.
24732
 
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24733
 
    dirpart=`$as_dirname -- "$mf" ||
 
17591
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
17592
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
17593
  # are listed without --file.  Let's play safe and only enable the eval
 
17594
  # if we detect the quoting.
 
17595
  case $CONFIG_FILES in
 
17596
  *\'*) eval set x "$CONFIG_FILES" ;;
 
17597
  *)   set x $CONFIG_FILES ;;
 
17598
  esac
 
17599
  shift
 
17600
  for mf
 
17601
  do
 
17602
    # Strip MF so we end up with the name of the file.
 
17603
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
17604
    # Check whether this is an Automake generated Makefile or not.
 
17605
    # We used to match only the files named `Makefile.in', but
 
17606
    # some people rename them; so instead we look at the file content.
 
17607
    # Grep'ing the first line is not enough: some people post-process
 
17608
    # each Makefile.in and add a new line on top of each file to say so.
 
17609
    # Grep'ing the whole file is not good either: AIX grep has a line
 
17610
    # limit of 2048, but all sed's we know have understand at least 4000.
 
17611
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
17612
      dirpart=`$as_dirname -- "$mf" ||
24734
17613
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24735
17614
         X"$mf" : 'X\(//\)[^/]' \| \
24736
17615
         X"$mf" : 'X\(//\)$' \| \
24753
17632
            q
24754
17633
          }
24755
17634
          s/.*/./; q'`
24756
 
  else
24757
 
    continue
24758
 
  fi
24759
 
  # Extract the definition of DEPDIR, am__include, and am__quote
24760
 
  # from the Makefile without running `make'.
24761
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24762
 
  test -z "$DEPDIR" && continue
24763
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
24764
 
  test -z "am__include" && continue
24765
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24766
 
  # When using ansi2knr, U may be empty or an underscore; expand it
24767
 
  U=`sed -n 's/^U = //p' < "$mf"`
24768
 
  # Find all dependency output files, they are included files with
24769
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
24770
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
24771
 
  # expansion.
24772
 
  for file in `sed -n "
24773
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24774
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24775
 
    # Make sure the directory exists.
24776
 
    test -f "$dirpart/$file" && continue
24777
 
    fdir=`$as_dirname -- "$file" ||
 
17635
    else
 
17636
      continue
 
17637
    fi
 
17638
    # Extract the definition of DEPDIR, am__include, and am__quote
 
17639
    # from the Makefile without running `make'.
 
17640
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
17641
    test -z "$DEPDIR" && continue
 
17642
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
17643
    test -z "am__include" && continue
 
17644
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
17645
    # When using ansi2knr, U may be empty or an underscore; expand it
 
17646
    U=`sed -n 's/^U = //p' < "$mf"`
 
17647
    # Find all dependency output files, they are included files with
 
17648
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
17649
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
17650
    # expansion.
 
17651
    for file in `sed -n "
 
17652
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
17653
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
17654
      # Make sure the directory exists.
 
17655
      test -f "$dirpart/$file" && continue
 
17656
      fdir=`$as_dirname -- "$file" ||
24778
17657
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24779
17658
         X"$file" : 'X\(//\)[^/]' \| \
24780
17659
         X"$file" : 'X\(//\)$' \| \
24797
17676
            q
24798
17677
          }
24799
17678
          s/.*/./; q'`
24800
 
    { as_dir=$dirpart/$fdir
 
17679
      { as_dir=$dirpart/$fdir
24801
17680
  case $as_dir in #(
24802
17681
  -*) as_dir=./$as_dir;;
24803
17682
  esac
24838
17717
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24839
17718
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
24840
17719
   { (exit 1); exit 1; }; }; }
24841
 
    # echo "creating $dirpart/$file"
24842
 
    echo '# dummy' > "$dirpart/$file"
 
17720
      # echo "creating $dirpart/$file"
 
17721
      echo '# dummy' > "$dirpart/$file"
 
17722
    done
24843
17723
  done
24844
 
done
 
17724
}
 
17725
 ;;
 
17726
    "libtool":C)
 
17727
 
 
17728
    # See if we are running on zsh, and set the options which allow our
 
17729
    # commands through without removal of \ escapes.
 
17730
    if test -n "${ZSH_VERSION+set}" ; then
 
17731
      setopt NO_GLOB_SUBST
 
17732
    fi
 
17733
 
 
17734
    cfgfile="${ofile}T"
 
17735
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
17736
    $RM "$cfgfile"
 
17737
 
 
17738
    cat <<_LT_EOF >> "$cfgfile"
 
17739
#! $SHELL
 
17740
 
 
17741
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
17742
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
17743
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
17744
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
17745
#
 
17746
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
17747
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
17748
#   Written by Gordon Matzigkeit, 1996
 
17749
#
 
17750
#   This file is part of GNU Libtool.
 
17751
#
 
17752
# GNU Libtool is free software; you can redistribute it and/or
 
17753
# modify it under the terms of the GNU General Public License as
 
17754
# published by the Free Software Foundation; either version 2 of
 
17755
# the License, or (at your option) any later version.
 
17756
#
 
17757
# As a special exception to the GNU General Public License,
 
17758
# if you distribute this file as part of a program or library that
 
17759
# is built using GNU Libtool, you may include this file under the
 
17760
# same distribution terms that you use for the rest of that program.
 
17761
#
 
17762
# GNU Libtool is distributed in the hope that it will be useful,
 
17763
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17764
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17765
# GNU General Public License for more details.
 
17766
#
 
17767
# You should have received a copy of the GNU General Public License
 
17768
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
17769
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
17770
# obtained by writing to the Free Software Foundation, Inc.,
 
17771
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
17772
 
 
17773
 
 
17774
# The names of the tagged configurations supported by this script.
 
17775
available_tags=""
 
17776
 
 
17777
# ### BEGIN LIBTOOL CONFIG
 
17778
 
 
17779
# Assembler program.
 
17780
AS=$AS
 
17781
 
 
17782
# DLL creation program.
 
17783
DLLTOOL=$DLLTOOL
 
17784
 
 
17785
# Object dumper program.
 
17786
OBJDUMP=$OBJDUMP
 
17787
 
 
17788
# Which release of libtool.m4 was used?
 
17789
macro_version=$macro_version
 
17790
macro_revision=$macro_revision
 
17791
 
 
17792
# Whether or not to build shared libraries.
 
17793
build_libtool_libs=$enable_shared
 
17794
 
 
17795
# Whether or not to build static libraries.
 
17796
build_old_libs=$enable_static
 
17797
 
 
17798
# What type of objects to build.
 
17799
pic_mode=$pic_mode
 
17800
 
 
17801
# Whether or not to optimize for fast installation.
 
17802
fast_install=$enable_fast_install
 
17803
 
 
17804
# The host system.
 
17805
host_alias=$host_alias
 
17806
host=$host
 
17807
host_os=$host_os
 
17808
 
 
17809
# The build system.
 
17810
build_alias=$build_alias
 
17811
build=$build
 
17812
build_os=$build_os
 
17813
 
 
17814
# A sed program that does not truncate output.
 
17815
SED=$lt_SED
 
17816
 
 
17817
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
17818
Xsed="\$SED -e 1s/^X//"
 
17819
 
 
17820
# A grep program that handles long lines.
 
17821
GREP=$lt_GREP
 
17822
 
 
17823
# An ERE matcher.
 
17824
EGREP=$lt_EGREP
 
17825
 
 
17826
# A literal string matcher.
 
17827
FGREP=$lt_FGREP
 
17828
 
 
17829
# A BSD- or MS-compatible name lister.
 
17830
NM=$lt_NM
 
17831
 
 
17832
# Whether we need soft or hard links.
 
17833
LN_S=$lt_LN_S
 
17834
 
 
17835
# What is the maximum length of a command?
 
17836
max_cmd_len=$max_cmd_len
 
17837
 
 
17838
# Object file suffix (normally "o").
 
17839
objext=$ac_objext
 
17840
 
 
17841
# Executable file suffix (normally "").
 
17842
exeext=$exeext
 
17843
 
 
17844
# whether the shell understands "unset".
 
17845
lt_unset=$lt_unset
 
17846
 
 
17847
# turn spaces into newlines.
 
17848
SP2NL=$lt_lt_SP2NL
 
17849
 
 
17850
# turn newlines into spaces.
 
17851
NL2SP=$lt_lt_NL2SP
 
17852
 
 
17853
# How to create reloadable object files.
 
17854
reload_flag=$lt_reload_flag
 
17855
reload_cmds=$lt_reload_cmds
 
17856
 
 
17857
# Method to check whether dependent libraries are shared objects.
 
17858
deplibs_check_method=$lt_deplibs_check_method
 
17859
 
 
17860
# Command to use when deplibs_check_method == "file_magic".
 
17861
file_magic_cmd=$lt_file_magic_cmd
 
17862
 
 
17863
# The archiver.
 
17864
AR=$lt_AR
 
17865
AR_FLAGS=$lt_AR_FLAGS
 
17866
 
 
17867
# A symbol stripping program.
 
17868
STRIP=$lt_STRIP
 
17869
 
 
17870
# Commands used to install an old-style archive.
 
17871
RANLIB=$lt_RANLIB
 
17872
old_postinstall_cmds=$lt_old_postinstall_cmds
 
17873
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
17874
 
 
17875
# A C compiler.
 
17876
LTCC=$lt_CC
 
17877
 
 
17878
# LTCC compiler flags.
 
17879
LTCFLAGS=$lt_CFLAGS
 
17880
 
 
17881
# Take the output of nm and produce a listing of raw symbols and C names.
 
17882
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
17883
 
 
17884
# Transform the output of nm in a proper C declaration.
 
17885
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
17886
 
 
17887
# Transform the output of nm in a C name address pair.
 
17888
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
17889
 
 
17890
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
17891
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
17892
 
 
17893
# The name of the directory that contains temporary libtool files.
 
17894
objdir=$objdir
 
17895
 
 
17896
# Shell to use when invoking shell scripts.
 
17897
SHELL=$lt_SHELL
 
17898
 
 
17899
# An echo program that does not interpret backslashes.
 
17900
ECHO=$lt_ECHO
 
17901
 
 
17902
# Used to examine libraries when file_magic_cmd begins with "file".
 
17903
MAGIC_CMD=$MAGIC_CMD
 
17904
 
 
17905
# Must we lock files when doing compilation?
 
17906
need_locks=$lt_need_locks
 
17907
 
 
17908
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
17909
DSYMUTIL=$lt_DSYMUTIL
 
17910
 
 
17911
# Tool to change global to local symbols on Mac OS X.
 
17912
NMEDIT=$lt_NMEDIT
 
17913
 
 
17914
# Tool to manipulate fat objects and archives on Mac OS X.
 
17915
LIPO=$lt_LIPO
 
17916
 
 
17917
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
17918
OTOOL=$lt_OTOOL
 
17919
 
 
17920
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
17921
OTOOL64=$lt_OTOOL64
 
17922
 
 
17923
# Old archive suffix (normally "a").
 
17924
libext=$libext
 
17925
 
 
17926
# Shared library suffix (normally ".so").
 
17927
shrext_cmds=$lt_shrext_cmds
 
17928
 
 
17929
# The commands to extract the exported symbol list from a shared archive.
 
17930
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
17931
 
 
17932
# Variables whose values should be saved in libtool wrapper scripts and
 
17933
# restored at link time.
 
17934
variables_saved_for_relink=$lt_variables_saved_for_relink
 
17935
 
 
17936
# Do we need the "lib" prefix for modules?
 
17937
need_lib_prefix=$need_lib_prefix
 
17938
 
 
17939
# Do we need a version for libraries?
 
17940
need_version=$need_version
 
17941
 
 
17942
# Library versioning type.
 
17943
version_type=$version_type
 
17944
 
 
17945
# Shared library runtime path variable.
 
17946
runpath_var=$runpath_var
 
17947
 
 
17948
# Shared library path variable.
 
17949
shlibpath_var=$shlibpath_var
 
17950
 
 
17951
# Is shlibpath searched before the hard-coded library search path?
 
17952
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
17953
 
 
17954
# Format of library name prefix.
 
17955
libname_spec=$lt_libname_spec
 
17956
 
 
17957
# List of archive names.  First name is the real one, the rest are links.
 
17958
# The last name is the one that the linker finds with -lNAME
 
17959
library_names_spec=$lt_library_names_spec
 
17960
 
 
17961
# The coded name of the library, if different from the real name.
 
17962
soname_spec=$lt_soname_spec
 
17963
 
 
17964
# Command to use after installation of a shared archive.
 
17965
postinstall_cmds=$lt_postinstall_cmds
 
17966
 
 
17967
# Command to use after uninstallation of a shared archive.
 
17968
postuninstall_cmds=$lt_postuninstall_cmds
 
17969
 
 
17970
# Commands used to finish a libtool library installation in a directory.
 
17971
finish_cmds=$lt_finish_cmds
 
17972
 
 
17973
# As "finish_cmds", except a single script fragment to be evaled but
 
17974
# not shown.
 
17975
finish_eval=$lt_finish_eval
 
17976
 
 
17977
# Whether we should hardcode library paths into libraries.
 
17978
hardcode_into_libs=$hardcode_into_libs
 
17979
 
 
17980
# Compile-time system search path for libraries.
 
17981
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
17982
 
 
17983
# Run-time system search path for libraries.
 
17984
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
17985
 
 
17986
# Whether dlopen is supported.
 
17987
dlopen_support=$enable_dlopen
 
17988
 
 
17989
# Whether dlopen of programs is supported.
 
17990
dlopen_self=$enable_dlopen_self
 
17991
 
 
17992
# Whether dlopen of statically linked programs is supported.
 
17993
dlopen_self_static=$enable_dlopen_self_static
 
17994
 
 
17995
# Commands to strip libraries.
 
17996
old_striplib=$lt_old_striplib
 
17997
striplib=$lt_striplib
 
17998
 
 
17999
 
 
18000
# The linker used to build libraries.
 
18001
LD=$lt_LD
 
18002
 
 
18003
# Commands used to build an old-style archive.
 
18004
old_archive_cmds=$lt_old_archive_cmds
 
18005
 
 
18006
# A language specific compiler.
 
18007
CC=$lt_compiler
 
18008
 
 
18009
# Is the compiler the GNU compiler?
 
18010
with_gcc=$GCC
 
18011
 
 
18012
# Compiler flag to turn off builtin functions.
 
18013
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
18014
 
 
18015
# How to pass a linker flag through the compiler.
 
18016
wl=$lt_lt_prog_compiler_wl
 
18017
 
 
18018
# Additional compiler flags for building library objects.
 
18019
pic_flag=$lt_lt_prog_compiler_pic
 
18020
 
 
18021
# Compiler flag to prevent dynamic linking.
 
18022
link_static_flag=$lt_lt_prog_compiler_static
 
18023
 
 
18024
# Does compiler simultaneously support -c and -o options?
 
18025
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
18026
 
 
18027
# Whether or not to add -lc for building shared libraries.
 
18028
build_libtool_need_lc=$archive_cmds_need_lc
 
18029
 
 
18030
# Whether or not to disallow shared libs when runtime libs are static.
 
18031
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
18032
 
 
18033
# Compiler flag to allow reflexive dlopens.
 
18034
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
18035
 
 
18036
# Compiler flag to generate shared objects directly from archives.
 
18037
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
18038
 
 
18039
# Whether the compiler copes with passing no objects directly.
 
18040
compiler_needs_object=$lt_compiler_needs_object
 
18041
 
 
18042
# Create an old-style archive from a shared archive.
 
18043
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
18044
 
 
18045
# Create a temporary old-style archive to link instead of a shared archive.
 
18046
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
18047
 
 
18048
# Commands used to build a shared archive.
 
18049
archive_cmds=$lt_archive_cmds
 
18050
archive_expsym_cmds=$lt_archive_expsym_cmds
 
18051
 
 
18052
# Commands used to build a loadable module if different from building
 
18053
# a shared archive.
 
18054
module_cmds=$lt_module_cmds
 
18055
module_expsym_cmds=$lt_module_expsym_cmds
 
18056
 
 
18057
# Whether we are building with GNU ld or not.
 
18058
with_gnu_ld=$lt_with_gnu_ld
 
18059
 
 
18060
# Flag that allows shared libraries with undefined symbols to be built.
 
18061
allow_undefined_flag=$lt_allow_undefined_flag
 
18062
 
 
18063
# Flag that enforces no undefined symbols.
 
18064
no_undefined_flag=$lt_no_undefined_flag
 
18065
 
 
18066
# Flag to hardcode \$libdir into a binary during linking.
 
18067
# This must work even if \$libdir does not exist
 
18068
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
18069
 
 
18070
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
18071
# during linking.  This must work even if \$libdir does not exist.
 
18072
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
18073
 
 
18074
# Whether we need a single "-rpath" flag with a separated argument.
 
18075
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
18076
 
 
18077
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
18078
# DIR into the resulting binary.
 
18079
hardcode_direct=$hardcode_direct
 
18080
 
 
18081
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
18082
# DIR into the resulting binary and the resulting library dependency is
 
18083
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
18084
# library is relocated.
 
18085
hardcode_direct_absolute=$hardcode_direct_absolute
 
18086
 
 
18087
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
18088
# into the resulting binary.
 
18089
hardcode_minus_L=$hardcode_minus_L
 
18090
 
 
18091
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
18092
# into the resulting binary.
 
18093
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
18094
 
 
18095
# Set to "yes" if building a shared library automatically hardcodes DIR
 
18096
# into the library and all subsequent libraries and executables linked
 
18097
# against it.
 
18098
hardcode_automatic=$hardcode_automatic
 
18099
 
 
18100
# Set to yes if linker adds runtime paths of dependent libraries
 
18101
# to runtime path list.
 
18102
inherit_rpath=$inherit_rpath
 
18103
 
 
18104
# Whether libtool must link a program against all its dependency libraries.
 
18105
link_all_deplibs=$link_all_deplibs
 
18106
 
 
18107
# Fix the shell variable \$srcfile for the compiler.
 
18108
fix_srcfile_path=$lt_fix_srcfile_path
 
18109
 
 
18110
# Set to "yes" if exported symbols are required.
 
18111
always_export_symbols=$always_export_symbols
 
18112
 
 
18113
# The commands to list exported symbols.
 
18114
export_symbols_cmds=$lt_export_symbols_cmds
 
18115
 
 
18116
# Symbols that should not be listed in the preloaded symbols.
 
18117
exclude_expsyms=$lt_exclude_expsyms
 
18118
 
 
18119
# Symbols that must always be exported.
 
18120
include_expsyms=$lt_include_expsyms
 
18121
 
 
18122
# Commands necessary for linking programs (against libraries) with templates.
 
18123
prelink_cmds=$lt_prelink_cmds
 
18124
 
 
18125
# Specify filename containing input files.
 
18126
file_list_spec=$lt_file_list_spec
 
18127
 
 
18128
# How to hardcode a shared library path into an executable.
 
18129
hardcode_action=$hardcode_action
 
18130
 
 
18131
# ### END LIBTOOL CONFIG
 
18132
 
 
18133
_LT_EOF
 
18134
 
 
18135
  case $host_os in
 
18136
  aix3*)
 
18137
    cat <<\_LT_EOF >> "$cfgfile"
 
18138
# AIX sometimes has problems with the GCC collect2 program.  For some
 
18139
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
18140
# vanish in a puff of smoke.
 
18141
if test "X${COLLECT_NAMES+set}" != Xset; then
 
18142
  COLLECT_NAMES=
 
18143
  export COLLECT_NAMES
 
18144
fi
 
18145
_LT_EOF
 
18146
    ;;
 
18147
  esac
 
18148
 
 
18149
 
 
18150
ltmain="$ac_aux_dir/ltmain.sh"
 
18151
 
 
18152
 
 
18153
  # We use sed instead of cat because bash on DJGPP gets confused if
 
18154
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
18155
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
18156
  # is reportedly fixed, but why not run on old versions too?
 
18157
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
18158
    || (rm -f "$cfgfile"; exit 1)
 
18159
 
 
18160
  case $xsi_shell in
 
18161
  yes)
 
18162
    cat << \_LT_EOF >> "$cfgfile"
 
18163
 
 
18164
# func_dirname file append nondir_replacement
 
18165
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
18166
# otherwise set result to NONDIR_REPLACEMENT.
 
18167
func_dirname ()
 
18168
{
 
18169
  case ${1} in
 
18170
    */*) func_dirname_result="${1%/*}${2}" ;;
 
18171
    *  ) func_dirname_result="${3}" ;;
 
18172
  esac
 
18173
}
 
18174
 
 
18175
# func_basename file
 
18176
func_basename ()
 
18177
{
 
18178
  func_basename_result="${1##*/}"
 
18179
}
 
18180
 
 
18181
# func_dirname_and_basename file append nondir_replacement
 
18182
# perform func_basename and func_dirname in a single function
 
18183
# call:
 
18184
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
18185
#             add APPEND to the result, otherwise set result
 
18186
#             to NONDIR_REPLACEMENT.
 
18187
#             value returned in "$func_dirname_result"
 
18188
#   basename: Compute filename of FILE.
 
18189
#             value retuned in "$func_basename_result"
 
18190
# Implementation must be kept synchronized with func_dirname
 
18191
# and func_basename. For efficiency, we do not delegate to
 
18192
# those functions but instead duplicate the functionality here.
 
18193
func_dirname_and_basename ()
 
18194
{
 
18195
  case ${1} in
 
18196
    */*) func_dirname_result="${1%/*}${2}" ;;
 
18197
    *  ) func_dirname_result="${3}" ;;
 
18198
  esac
 
18199
  func_basename_result="${1##*/}"
 
18200
}
 
18201
 
 
18202
# func_stripname prefix suffix name
 
18203
# strip PREFIX and SUFFIX off of NAME.
 
18204
# PREFIX and SUFFIX must not contain globbing or regex special
 
18205
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
18206
# dot (in which case that matches only a dot).
 
18207
func_stripname ()
 
18208
{
 
18209
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
18210
  # positional parameters, so assign one to ordinary parameter first.
 
18211
  func_stripname_result=${3}
 
18212
  func_stripname_result=${func_stripname_result#"${1}"}
 
18213
  func_stripname_result=${func_stripname_result%"${2}"}
 
18214
}
 
18215
 
 
18216
# func_opt_split
 
18217
func_opt_split ()
 
18218
{
 
18219
  func_opt_split_opt=${1%%=*}
 
18220
  func_opt_split_arg=${1#*=}
 
18221
}
 
18222
 
 
18223
# func_lo2o object
 
18224
func_lo2o ()
 
18225
{
 
18226
  case ${1} in
 
18227
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
18228
    *)    func_lo2o_result=${1} ;;
 
18229
  esac
 
18230
}
 
18231
 
 
18232
# func_xform libobj-or-source
 
18233
func_xform ()
 
18234
{
 
18235
  func_xform_result=${1%.*}.lo
 
18236
}
 
18237
 
 
18238
# func_arith arithmetic-term...
 
18239
func_arith ()
 
18240
{
 
18241
  func_arith_result=$(( $* ))
 
18242
}
 
18243
 
 
18244
# func_len string
 
18245
# STRING may not start with a hyphen.
 
18246
func_len ()
 
18247
{
 
18248
  func_len_result=${#1}
 
18249
}
 
18250
 
 
18251
_LT_EOF
 
18252
    ;;
 
18253
  *) # Bourne compatible functions.
 
18254
    cat << \_LT_EOF >> "$cfgfile"
 
18255
 
 
18256
# func_dirname file append nondir_replacement
 
18257
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
18258
# otherwise set result to NONDIR_REPLACEMENT.
 
18259
func_dirname ()
 
18260
{
 
18261
  # Extract subdirectory from the argument.
 
18262
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
18263
  if test "X$func_dirname_result" = "X${1}"; then
 
18264
    func_dirname_result="${3}"
 
18265
  else
 
18266
    func_dirname_result="$func_dirname_result${2}"
 
18267
  fi
 
18268
}
 
18269
 
 
18270
# func_basename file
 
18271
func_basename ()
 
18272
{
 
18273
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
18274
}
 
18275
 
 
18276
 
 
18277
# func_stripname prefix suffix name
 
18278
# strip PREFIX and SUFFIX off of NAME.
 
18279
# PREFIX and SUFFIX must not contain globbing or regex special
 
18280
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
18281
# dot (in which case that matches only a dot).
 
18282
# func_strip_suffix prefix name
 
18283
func_stripname ()
 
18284
{
 
18285
  case ${2} in
 
18286
    .*) func_stripname_result=`$ECHO "X${3}" \
 
18287
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
18288
    *)  func_stripname_result=`$ECHO "X${3}" \
 
18289
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
18290
  esac
 
18291
}
 
18292
 
 
18293
# sed scripts:
 
18294
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
 
18295
my_sed_long_arg='1s/^-[^=]*=//'
 
18296
 
 
18297
# func_opt_split
 
18298
func_opt_split ()
 
18299
{
 
18300
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
18301
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
18302
}
 
18303
 
 
18304
# func_lo2o object
 
18305
func_lo2o ()
 
18306
{
 
18307
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
18308
}
 
18309
 
 
18310
# func_xform libobj-or-source
 
18311
func_xform ()
 
18312
{
 
18313
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
 
18314
}
 
18315
 
 
18316
# func_arith arithmetic-term...
 
18317
func_arith ()
 
18318
{
 
18319
  func_arith_result=`expr "$@"`
 
18320
}
 
18321
 
 
18322
# func_len string
 
18323
# STRING may not start with a hyphen.
 
18324
func_len ()
 
18325
{
 
18326
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
 
18327
}
 
18328
 
 
18329
_LT_EOF
 
18330
esac
 
18331
 
 
18332
case $lt_shell_append in
 
18333
  yes)
 
18334
    cat << \_LT_EOF >> "$cfgfile"
 
18335
 
 
18336
# func_append var value
 
18337
# Append VALUE to the end of shell variable VAR.
 
18338
func_append ()
 
18339
{
 
18340
  eval "$1+=\$2"
 
18341
}
 
18342
_LT_EOF
 
18343
    ;;
 
18344
  *)
 
18345
    cat << \_LT_EOF >> "$cfgfile"
 
18346
 
 
18347
# func_append var value
 
18348
# Append VALUE to the end of shell variable VAR.
 
18349
func_append ()
 
18350
{
 
18351
  eval "$1=\$$1\$2"
 
18352
}
 
18353
 
 
18354
_LT_EOF
 
18355
    ;;
 
18356
  esac
 
18357
 
 
18358
 
 
18359
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
18360
    || (rm -f "$cfgfile"; exit 1)
 
18361
 
 
18362
  mv -f "$cfgfile" "$ofile" ||
 
18363
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
18364
  chmod +x "$ofile"
 
18365
 
24845
18366
 ;;
24846
18367
 
24847
18368
  esac